dsh-runnpu 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/client.js CHANGED
@@ -4,25 +4,7 @@ window.__ModuleLoader__.load({
4
4
  var module = { exports: {} };
5
5
  var exports = module.exports;
6
6
 
7
- var bh=Object.defineProperty;var QA=Object.getOwnPropertyDescriptor;var JA=Object.getOwnPropertyNames;var eD=Object.prototype.hasOwnProperty;var Ft=(t,e)=>{for(var r in e)bh(t,r,{get:e[r],enumerable:!0})},tD=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of JA(e))!eD.call(t,n)&&n!==r&&bh(t,n,{get:()=>e[n],enumerable:!(i=QA(e,n))||i.enumerable});return t};var rD=t=>tD(bh({},"__esModule",{value:!0}),t);var NU={};Ft(NU,{apply:()=>LU,inject:()=>OU});module.exports=rD(NU);var gu=require("react");var rt="/runnpu-api",As="/training-api",Ds=globalThis.__RUNNPU_NONCE__;async function Jy(){try{let t=await fetch("/",{headers:{accept:"text/html"},cache:"no-store"});if(!t.ok)return;let e=await t.text(),r=/__RUNNPU_NONCE__\s*=\s*"([A-Za-z0-9_-]+)"/.exec(e);return r&&(Ds=r[1]),r?.[1]}catch{return}}async function $y(t,e){return await fetch(t,{...e,headers:{accept:"application/json",...e?.body?{"content-type":"application/json"}:{},...Ds?{"x-runnpu-nonce":Ds}:{},...e?.headers}})}async function Qy(t){let e=await t.text();try{return e?JSON.parse(e):void 0}catch{return}}async function dt(t,e){let r=await $y(t,e),i=await Qy(r);if(r.status===401&&i?.error==="unauthenticated"&&await Jy()!==void 0&&(r=await $y(t,e),i=await Qy(r)),!r.ok){let n=new Error(i?.message??`${r.status} ${r.statusText}`);throw n.code=i?.error,n.status=r.status,n.details=i?.details,n}return i}var On=(t,e,r,i)=>{let n=new URL(`${t}${e}`,globalThis.location.origin);r&&n.searchParams.set("cwd",r);for(let[a,o]of Object.entries(i??{}))o!==void 0&&o!==""&&n.searchParams.set(a,String(o));return n.toString()},it={state:t=>dt(On(rt,"/state",t)),login:t=>dt(`${rt}/login`,{method:"POST",body:JSON.stringify(t)}),logout:t=>dt(`${rt}/logout`,{method:"POST",body:JSON.stringify({cwd:t})}),query:(t,e,r)=>dt(On(rt,"/query",t,{id:e,...r})),pins:t=>dt(On(rt,"/pins",t)),pin:t=>dt(`${rt}/pins`,{method:"POST",body:JSON.stringify(t)}),unpin:t=>dt(`${rt}/pins?id=${encodeURIComponent(t)}`,{method:"DELETE"}),refresh:()=>dt(`${rt}/pins/refresh`,{method:"POST",body:"{}"}),setRange:t=>dt(`${rt}/range`,{method:"POST",body:JSON.stringify({range:t})}),workloads:t=>dt(On(rt,"/workloads",t)),anomalies:t=>dt(On(rt,"/anomalies",t)),act:t=>dt(`${rt}/workloads/action`,{method:"POST",body:JSON.stringify(t)}),operations:()=>dt(`${rt}/operations`),followups:t=>dt(`${rt}/followups?sessionId=${encodeURIComponent(t??"")}`)},In={state:t=>dt(On(As,"/state",t)),metrics:t=>dt(On(As,"/metrics",t)),configureSwanlab:t=>dt(`${As}/swanlab`,{method:"POST",body:JSON.stringify(t)})},wh=new Map;function iD(t){let e=new URL(t,globalThis.location.origin);return e.searchParams.delete("nonce"),e.pathname+e.search}function e_(t,e){let r=new URL(t,globalThis.location.origin);Ds&&r.searchParams.set("nonce",Ds);let i=new EventSource(r.toString());e.source=i,e.attached.clear();for(let n of e.listeners.keys())t_(e,n);i.onopen=()=>{e.retried=!1},i.onerror=()=>{e.closed||e.retried||(e.retried=!0,i.close(),Jy().then(n=>{n===void 0||e.closed||e_(t,e)}))}}function t_(t,e){t.attached.has(e)||!t.source||(t.attached.add(e),t.source.addEventListener(e,r=>{let i;try{i=JSON.parse(r.data)}catch{return}for(let n of t.listeners.get(e)??[])try{n(i)}catch{}}))}function Ln(t,e){let r=iD(t),i=wh.get(r);i||(i={listeners:new Map,attached:new Set,refs:0,closed:!1,retried:!1},wh.set(r,i),e_(r,i)),i.refs+=1;for(let[a,o]of Object.entries(e))i.listeners.has(a)||i.listeners.set(a,new Set),i.listeners.get(a).add(o),t_(i,a);let n=!1;return()=>{if(!n){n=!0;for(let[a,o]of Object.entries(e))i.listeners.get(a)?.delete(o);i.refs-=1,!(i.refs>0)&&(i.closed=!0,i.source?.close(),wh.delete(r))}}}var jt=require("react");var Yg={};Ft(Yg,{Axis:()=>Mp,ChartView:()=>xt,ComponentModel:()=>xe,ComponentView:()=>st,List:()=>rp,Model:()=>Te,PRIORITY:()=>rg,SeriesModel:()=>Rt,color:()=>Hu,connect:()=>VP,dataTool:()=>ZP,dependencies:()=>wP,disConnect:()=>HP,disconnect:()=>bT,dispose:()=>GP,env:()=>ee,extendChartView:()=>bk,extendComponentModel:()=>_k,extendComponentView:()=>xk,extendSeriesModel:()=>Sk,format:()=>Fg,getCoordinateSystemDimensions:()=>YP,getInstanceByDom:()=>ag,getInstanceById:()=>WP,getMap:()=>KP,graphic:()=>zg,helper:()=>Ig,init:()=>FP,innerDrawElementOnCanvas:()=>is,matrix:()=>bi,number:()=>Bg,parseGeoJSON:()=>Ap,parseGeoJson:()=>Ap,registerAction:()=>gn,registerCoordinateSystem:()=>ug,registerCustomSeries:()=>XP,registerLayout:()=>fg,registerLoading:()=>Jc,registerLocale:()=>Kf,registerMap:()=>pg,registerPostInit:()=>sg,registerPostUpdate:()=>lg,registerPreprocessor:()=>$c,registerProcessor:()=>Qc,registerTheme:()=>og,registerTransform:()=>hg,registerUpdateLifecycle:()=>Hl,registerVisual:()=>ki,setCanvasCreator:()=>qP,setPlatformAPI:()=>Su,throttle:()=>Ua,time:()=>Ug,use:()=>Ut,util:()=>Vg,vector:()=>Br,version:()=>bP,zrUtil:()=>se,zrender:()=>rf});var Th=function(t,e){return Th=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},Th(t,e)};function L(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Th(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var rf={};Ft(rf,{dispose:()=>VM,disposeAll:()=>HM,getElementSSRData:()=>WM,getInstance:()=>GM,init:()=>tf,registerPainter:()=>Od,registerSSRDataGetter:()=>Id,version:()=>YM});var nD=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),aD=(function(){function t(){this.browser=new nD,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 t})(),Hi=new aD;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Hi.wxa=!0,Hi.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Hi.worker=!0:!Hi.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Hi.node=!0,Hi.svgSupported=!0):oD(navigator.userAgent,Hi);function oD(t,e){var r=e.browser,i=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var ee=Hi;var se={};Ft(se,{EPSILON:()=>wD,HashMap:()=>s_,RADIAN_TO_DEGREE:()=>Nh,assert:()=>Ye,assignProps:()=>Mh,bind:()=>pe,clone:()=>Q,concatArray:()=>Lh,createCanvas:()=>yD,createHashMap:()=>V,createObject:()=>xi,curry:()=>Ce,defaults:()=>re,disableUserSelect:()=>Ls,each:()=>w,eqNaN:()=>_i,extend:()=>N,filter:()=>De,find:()=>Oh,guid:()=>Ms,hasOwn:()=>Me,indexOf:()=>ne,inherits:()=>Os,isArray:()=>P,isArrayLike:()=>We,isBuiltInObject:()=>Eh,isDom:()=>Nn,isFunction:()=>G,isGradientObject:()=>yi,isImagePatternObject:()=>Ih,isNumber:()=>le,isObject:()=>F,isPrimitive:()=>ro,isRegExp:()=>xD,isString:()=>B,isStringSafe:()=>no,isTypedArray:()=>Fe,keys:()=>fe,logError:()=>Pn,map:()=>U,merge:()=>ue,mergeAll:()=>gD,mixin:()=>lt,noop:()=>ke,normalizeCssArray:()=>kn,reduce:()=>St,retrieve:()=>Rn,retrieve2:()=>Y,retrieve3:()=>vr,setAsPrimitive:()=>Bn,slice:()=>Is,trim:()=>ut});var xu=12,sD="sans-serif",dr=xu+"px "+sD,lD=20,uD=100,fD="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function cD(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var i=String.fromCharCode(r+32),n=(t.charCodeAt(r)-lD)/uD;e[i]=n}return e}var pD=cD(fD),Re={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,i){if(!t){var n=Re.createCanvas();t=n&&n.getContext("2d")}if(t)return e!==i&&(e=t.font=i||dr),t.measureText(r);r=r||"",i=i||dr;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||xu,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=pD[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var i=new Image;return i.onload=e,i.onerror=r,i.src=t,i},getTime:function(){return Date.now?Date.now():+new Date}};function Su(t){for(var e in Re)Re.hasOwnProperty(e)&&t[e]&&(Re[e]=t[e])}var i_=St(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),n_=St(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),io=Object.prototype.toString,wu=Array.prototype,hD=wu.forEach,dD=wu.filter,Ah=wu.slice,vD=wu.map,r_=function(){}.constructor,bu=r_?r_.prototype:null,Dh="__proto__",Ch=2311,mD=Math.pow(2,53)-1;function Ms(){return Ch>=mD&&(Ch=0),Ch++}function Pn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function Q(t){if(t==null||typeof t!="object")return t;var e=t,r=io.call(t);if(r==="[object Array]"){if(!ro(t)){e=[];for(var i=0,n=t.length;i<n;i++)e[i]=Q(t[i])}}else if(n_[r]){if(!ro(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var i=0,n=t.length;i<n;i++)e[i]=t[i]}}}else if(!i_[r]&&!ro(t)&&!Nn(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==Dh&&(e[o]=Q(t[o]))}return e}function ue(t,e,r){if(!F(e)||!F(t))return r?Q(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==Dh){var n=t[i],a=e[i];F(a)&&F(n)&&!P(a)&&!P(n)&&!Nn(a)&&!Nn(n)&&!Eh(a)&&!Eh(n)&&!ro(a)&&!ro(n)?ue(n,a,r):(r||!(i in t))&&(t[i]=Q(e[i]))}return t}function gD(t,e){for(var r=t[0],i=1,n=t.length;i<n;i++)r=ue(r,t[i],e);return r}function N(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==Dh&&(t[r]=e[r]);return t}function Mh(t,e,r){t=t||{};for(var i=0;i<r.length;i++){var n=r[i];t[n]=e[n]}return t}function re(t,e,r){for(var i=fe(e),n=0,a=i.length;n<a;n++){var o=i[n];(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var yD=Re.createCanvas;function ne(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r}return-1}function Os(t,e){var r=t.prototype;function i(){}i.prototype=e.prototype,t.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(t.prototype[n]=r[n]);t.prototype.constructor=t,t.superClass=e}function lt(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(r?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else re(t,e,r)}function We(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function w(t,e,r){if(t&&e)if(t.forEach&&t.forEach===hD)t.forEach(e,r);else if(t.length===+t.length)for(var i=0,n=t.length;i<n;i++)e.call(r,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function U(t,e,r){if(!t)return[];if(!e)return Is(t);if(t.map&&t.map===vD)return t.map(e,r);for(var i=[],n=0,a=t.length;n<a;n++)i.push(e.call(r,t[n],n,t));return i}function St(t,e,r,i){if(t&&e){for(var n=0,a=t.length;n<a;n++)r=e.call(i,r,t[n],n,t);return r}}function De(t,e,r){if(!t)return[];if(!e)return Is(t);if(t.filter&&t.filter===dD)return t.filter(e,r);for(var i=[],n=0,a=t.length;n<a;n++)e.call(r,t[n],n,t)&&i.push(t[n]);return i}function Oh(t,e,r){if(t&&e){for(var i=0,n=t.length;i<n;i++)if(e.call(r,t[i],i,t))return t[i]}}function fe(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function _D(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return t.apply(e,r.concat(Ah.call(arguments)))}}var pe=bu&&G(bu.bind)?bu.call.bind(bu.bind):_D;function Ce(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(Ah.call(arguments)))}}function P(t){return Array.isArray?Array.isArray(t):io.call(t)==="[object Array]"}function G(t){return typeof t=="function"}function B(t){return typeof t=="string"}function no(t){return io.call(t)==="[object String]"}function le(t){return typeof t=="number"}function F(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Eh(t){return!!i_[io.call(t)]}function Fe(t){return!!n_[io.call(t)]}function Nn(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function yi(t){return t.colorStops!=null}function Ih(t){return t.image!=null}function xD(t){return io.call(t)==="[object RegExp]"}function _i(t){return t!==t}function Rn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,i=t.length;r<i;r++)if(t[r]!=null)return t[r]}function Y(t,e){return t??e}function vr(t,e,r){return t??e??r}function Is(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return Ah.apply(t,e)}function kn(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Ye(t,e){if(!t)throw new Error(e)}function ut(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var a_="__ec_primitive__";function Bn(t){t[a_]=!0}function ro(t){return t[a_]}var SD=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return fe(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&e(r[i],i)},t})(),o_=typeof Map=="function";function bD(){return o_?new Map:new SD}var s_=(function(){function t(e){var r=P(e);this.data=bD();var i=this;e instanceof t?e.each(n):e&&w(e,n);function n(a,o){r?i.set(a,o):i.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(i,n){e.call(r,i,n)})},t.prototype.keys=function(){var e=this.data.keys();return o_?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function V(t){return new s_(t)}function Lh(t,e){for(var r=new t.constructor(t.length+e.length),i=0;i<t.length;i++)r[i]=t[i];for(var n=t.length,i=0;i<e.length;i++)r[i+n]=e[i];return r}function xi(t,e){var r;if(Object.create)r=Object.create(t);else{var i=function(){};i.prototype=t,r=new i}return e&&N(r,e),r}function Ls(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Me(t,e){return t.hasOwnProperty(e)}function ke(){}var Nh=180/Math.PI,wD=Number.EPSILON||Math.pow(2,-52);var Br={};Ft(Br,{add:()=>Tu,applyTransform:()=>Xe,clone:()=>Ph,copy:()=>TD,create:()=>Si,dist:()=>zh,distSquare:()=>Gi,distance:()=>Rs,distanceSquare:()=>l_,div:()=>MD,dot:()=>OD,len:()=>kh,lenSquare:()=>Bh,length:()=>ED,lengthSquare:()=>AD,lerp:()=>LD,max:()=>gr,min:()=>mr,mul:()=>DD,negate:()=>ID,normalize:()=>Uh,scale:()=>Ps,scaleAndAdd:()=>CD,set:()=>Ns,sub:()=>Rh});function Si(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function TD(t,e){return t[0]=e[0],t[1]=e[1],t}function Ph(t){return[t[0],t[1]]}function Ns(t,e,r){return t[0]=e,t[1]=r,t}function Tu(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function CD(t,e,r,i){return t[0]=e[0]+r[0]*i,t[1]=e[1]+r[1]*i,t}function Rh(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function kh(t){return Math.sqrt(Bh(t))}var ED=kh;function Bh(t){return t[0]*t[0]+t[1]*t[1]}var AD=Bh;function DD(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function MD(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function OD(t,e){return t[0]*e[0]+t[1]*e[1]}function Ps(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function Uh(t,e){var r=kh(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function Rs(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var zh=Rs;function l_(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Gi=l_;function ID(t,e){return t[0]=-e[0],t[1]=-e[1],t}function LD(t,e,r,i){return t[0]=e[0]+i*(r[0]-e[0]),t[1]=e[1]+i*(r[1]-e[1]),t}function Xe(t,e,r){var i=e[0],n=e[1];return t[0]=r[0]*i+r[2]*n+r[4],t[1]=r[1]*i+r[3]*n+r[5],t}function mr(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function gr(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var ao=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),ND=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new ao(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var i=e.offsetX,n=e.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,r.drift(a,o,e),this.handler.dispatchToElement(new ao(r,e),"drag",e.event);var s=this.handler.findHover(i,n,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ao(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new ao(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new ao(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new ao(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),u_=ND;var PD=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(n=i,i=r,r=null),!i||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===i)return this;var l={h:i,query:r,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(r){if(i[e]){for(var n=[],a=0,o=i[e].length;a<o;a++)i[e][a].h!==r&&n.push(i[e][a]);i[e]=n}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},t.prototype.trigger=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=r.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=r.length,s=r[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),vt=PD;var RD=Math.log(2);function Fh(t,e,r,i,n,a){var o=i+"-"+n,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/RD);return t[r][l]}for(var u=i|1<<r,f=r+1;i&1<<f;)f++;for(var c=0,p=0,h=0;p<s;p++){var d=1<<p;d&n||(c+=(h%2?-1:1)*t[r][p]*Fh(t,e-1,f,u,n|d,a),h++)}return a[o]=c,c}function Vh(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},n=Fh(r,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Fh(r,7,o===0?1:0,1<<o,1<<s,i)/n*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var Cu="___zrEVENTSAVED",Hh=[];function f_(t,e,r,i,n){return Eu(Hh,e,i,n,!0)&&Eu(t,r,Hh[0],Hh[1])}function c_(t,e){t&&r(t),e&&r(e);function r(i){var n=i[Cu];n&&(n.clearMarkers&&n.clearMarkers(),delete i[Cu])}}function Eu(t,e,r,i,n){if(e.getBoundingClientRect&&ee.domSupported&&!Gh(e)){var a=e[Cu]||(e[Cu]={}),o=kD(e,a),s=BD(o,a,n);if(s)return s(t,r,i),!0}return!1}function kD(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[u]+":0",i[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){w(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function BD(t,e,r){for(var i=r?"invTrans":"trans",n=e[i],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,p=f.left,h=f.top;o.push(p,h),l=l&&a&&p===a[c]&&h===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[i]=r?Vh(s,o):Vh(o,s))}function Gh(t){return t.nodeName.toUpperCase()==="CANVAS"}var UD=/([&<>"'])/g,zD={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function nt(t){return t==null?"":(t+"").replace(UD,function(e,r){return zD[r]})}var FD=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Wh=[],VD=ee.browser.firefox&&+ee.browser.version.split(".")[0]<39;function Au(t,e,r,i){return r=r||{},i?p_(t,e,r):VD&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):p_(t,e,r),r}function p_(t,e,r){if(ee.domSupported&&t.getBoundingClientRect){var i=e.clientX,n=e.clientY;if(Gh(t)){var a=t.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(Eu(Wh,t,i,n)){r.zrX=Wh[0],r.zrY=Wh[1];return}}r.zrX=r.zrY=0}function Du(t){return t||window.event}function Vt(t,e,r){if(e=Du(e),e.zrX!=null)return e;var i=e.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Au(t,o,e,r)}else{Au(t,e,e,r);var a=HD(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&FD.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function HD(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,i=t.deltaY;if(r==null||i==null)return e;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function h_(t,e,r,i){t.addEventListener(e,r,i)}function d_(t,e,r,i){t.removeEventListener(e,r,i)}var Mu=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var m_=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,i){return this._doTrack(e,r,i),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,i){var n=e.touches;if(n){for(var a={points:[],touches:[],target:r,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=Au(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in Xh)if(Xh.hasOwnProperty(r)){var i=Xh[r](this._track,e);if(i)return i}},t})();function v_(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function GD(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Xh={pinch:function(t,e){var r=t.length;if(r){var i=(t[r-1]||{}).points,n=(t[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=v_(i)/v_(n);!isFinite(a)&&(a=1),e.pinchScale=a;var o=GD(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};var bi={};Ft(bi,{clone:()=>WD,copy:()=>Un,create:()=>mt,identity:()=>yr,invert:()=>Jt,mul:()=>Ur,rotate:()=>zn,scale:()=>qh,translate:()=>oo});function mt(){return[1,0,0,1,0,0]}function yr(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Un(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Ur(t,e,r){var i=e[0]*r[0]+e[2]*r[1],n=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=i,t[1]=n,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function oo(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function zn(t,e,r,i){i===void 0&&(i=[0,0]);var n=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=n*c+s*f,t[1]=-n*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-i[0])+f*(u-i[1])+i[0],t[5]=c*(u-i[1])-f*(o-i[0])+i[1],t}function qh(t,e,r){var i=r[0],n=r[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function Jt(t,e){var r=e[0],i=e[2],n=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*i;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-i*l,t[3]=r*l,t[4]=(i*s-o*n)*l,t[5]=(a*n-r*s)*l,t):null}function WD(t){var e=mt();return Un(e,t),e}var YD=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,i=this.y-e.y;return Math.sqrt(r*r+i*i)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,i=this.y-e.y;return r*r+i*i},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,i=this.y;return this.x=e[0]*r+e[2]*i+e[4],this.y=e[1]*r+e[3]*i+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,i){e.x=r,e.y=i},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,i){e.x=r.x+i.x,e.y=r.y+i.y},t.sub=function(e,r,i){e.x=r.x-i.x,e.y=r.y-i.y},t.scale=function(e,r,i){e.x=r.x*i,e.y=r.y*i},t.scaleAndAdd=function(e,r,i,n){e.x=r.x+i.x*n,e.y=r.y+i.y*n},t.lerp=function(e,r,i,n){var a=1-n;e.x=a*r.x+n*i.x,e.y=a*r.y+n*i.y},t})(),Ee=YD;var Wn=Math.min,so=Math.max,jh=Math.abs,g_=["x","y"],XD=["width","height"],Fn=new Ee,Vn=new Ee,Hn=new Ee,Gn=new Ee,er=Qh(),ks=er.minTv,$h=er.maxTv,Bs=[0,0],wi=(function(){function t(e,r,i,n){Kh(this,e,r,i,n)}return t.set=function(e,r,i,n,a){return n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),e.x=r,e.y=i,e.width=n,e.height=a,e},t.prototype.union=function(e){var r=Wn(e.x,this.x),i=Wn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=so(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=so(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=r,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return qD(mt(),this,e)},t.prototype.intersect=function(e,r,i){return t.intersect(this,e,r,i)},t.intersect=function(e,r,i,n){i&&Ee.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=Kh(KD,e.x,e.y,e.width,e.height)),r instanceof t||(r=Kh(ZD,r.x,r.y,r.width,r.height));var s=!!i;er.reset(n,s);var l=er.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,p=e.y+e.height-l,h=r.x+l,d=r.x+r.width-l,v=r.y+l,m=r.y+r.height-l;if(u>f||c>p||h>d||v>m)return!1;var g=!(f<h||d<u||p<v||m<c);return(s||a)&&(Bs[0]=1/0,Bs[1]=0,__(u,f,h,d,0,s,a,o),__(c,p,v,m,1,s,a,o),s&&Ee.copy(i,g?er.useDir?er.dirMinTv:ks:$h)),g},t.contain=function(e,r,i){return r>=e.x&&r<=e.x+e.width&&i>=e.y&&i<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){y_(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,i){if(!i){e!==r&&y_(e,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];e.x=r.x*n+o,e.y=r.y*a+s,e.width=r.width*n,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Fn.x=Hn.x=r.x,Fn.y=Gn.y=r.y,Vn.x=Gn.x=r.x+r.width,Vn.y=Hn.y=r.y+r.height,Fn.transform(i),Gn.transform(i),Vn.transform(i),Hn.transform(i),e.x=Wn(Fn.x,Vn.x,Hn.x,Gn.x),e.y=Wn(Fn.y,Vn.y,Hn.y,Gn.y);var l=so(Fn.x,Vn.x,Hn.x,Gn.x),u=so(Fn.y,Vn.y,Hn.y,Gn.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,i){var n=i.width/r.width,a=i.height/r.height;return e=yr(e||[]),oo(e,e,Ns(Zh,-r.x,-r.y)),qh(e,e,Ns(Zh,n,a)),oo(e,e,Ns(Zh,i.x,i.y)),e},t})(),QU=wi.create,Kh=wi.set,y_=wi.copy,qD=wi.calculateTransform,JU=wi.applyTransform,ez=wi.contain,KD=new wi(0,0,0,0),ZD=new wi(0,0,0,0),Zh=[];function __(t,e,r,i,n,a,o,s){var l=jh(e-r),u=jh(i-t),f=Wn(l,u),c=g_[n],p=g_[1-n],h=XD[n];e<r||i<t?l<u?(a&&($h[c]=-l),s&&(o[c]=e,o[h]=0)):(a&&($h[c]=u),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=so(t,r),o[h]=Wn(e,i)-o[c]),a&&(f<Bs[0]||er.useDir)&&(Bs[0]=Wn(f,Bs[0]),(l<u||!er.bidirectional)&&(ks[c]=l,ks[p]=0,er.useDir&&er.calcDirMTV()),(l>=u||!er.bidirectional)&&(ks[c]=-u,ks[p]=0,er.useDir&&er.calcDirMTV())))}function Qh(){var t=0,e=new Ee,r=new Ee,i={minTv:new Ee,maxTv:new Ee,useDir:!1,dirMinTv:new Ee,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=so(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),r.copy(i.minTv),t=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),f=l*a.y+u*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,n(r.x)&&n(r.y)){o.set(0,0);return}(i.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function n(a){return jh(a)<1e-10}return i}var j=wi;var S_="silent";function jD(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:$D}}function $D(){Mu(this.event)}var QD=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(vt),Us=(function(){function t(e,r){this.x=e,this.y=r}return t})(),JD=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Jh=new j(0,0,0,0),b_=(function(t){L(e,t);function e(r,i,n,a,o){var s=t.call(this)||this;return s._hovered=new Us(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new QD,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new u_(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(w(JD,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=w_(this,i,n),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 Us(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Us(0,0)},e.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},e.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=jD(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},e.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new Us(r,i);if(x_(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new j(r-u,i-u,l,l),c=a.length-1;c>=0;c--){var p=a[c];p!==n&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(Jh.copy(p.getBoundingRect()),p.transform&&Jh.applyTransform(p.transform),Jh.intersect(f)&&s.push(p))}if(s.length)for(var h=4,d=Math.PI/12,v=Math.PI*2,m=0;m<u;m+=h)for(var g=0;g<v;g+=d){var y=r+m*Math.cos(g),_=i+m*Math.sin(g);if(x_(s,o,y,_,n),o.target)return o}}return o},e.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new m_);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Us;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(vt);w(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){b_.prototype[t]=function(e){var r=e.zrX,i=e.zrY,n=w_(this,r,i),a,o;if((t!=="mouseup"||!n)&&(a=this.findHover(r,i),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||zh(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function eM(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var i=t,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(e,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?S_:!0}return!1}function x_(t,e,r,i,n){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==n&&!o.ignore&&(s=eM(o,r,i))&&(!e.topTarget&&(e.topTarget=o),s!==S_)){e.target=o;break}}}function w_(t,e,r){var i=t.painter;return e<0||e>i.getWidth()||r<0||r>i.getHeight()}var T_=b_;var A_=32,zs=7;function tM(t){for(var e=0;t>=A_;)e|=t&1,t>>=1;return t+e}function C_(t,e,r,i){var n=e+1;if(n===r)return 1;if(i(t[n++],t[e])<0){for(;n<r&&i(t[n],t[n-1])<0;)n++;rM(t,e,n)}else for(;n<r&&i(t[n],t[n-1])>=0;)n++;return n-e}function rM(t,e,r){for(r--;e<r;){var i=t[e];t[e++]=t[r],t[r--]=i}}function E_(t,e,r,i,n){for(i===e&&i++;i<r;i++){for(var a=t[i],o=e,s=i,l;o<s;)l=o+s>>>1,n(a,t[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function ed(t,e,r,i,n,a){var o=0,s=0,l=1;if(a(t,e[r+n])>0){for(s=i-n;l<s&&a(t,e[r+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&a(t,e[r+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])>0?o=f+1:l=f}return l}function td(t,e,r,i,n,a){var o=0,s=0,l=1;if(a(t,e[r+n])<0){for(s=n+1;l<s&&a(t,e[r+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l<s&&a(t,e[r+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])<0?l=f:o=f+1}return l}function iM(t,e){var r=zs,i,n,a=0,o=[];i=[],n=[];function s(h,d){i[a]=h,n[a]=d,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]<n[h+1]&&h--;else if(n[h]>n[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&n[h-1]<n[h+1]&&h--,f(h)}}function f(h){var d=i[h],v=n[h],m=i[h+1],g=n[h+1];n[h]=v+g,h===a-3&&(i[h+1]=i[h+2],n[h+1]=n[h+2]),a--;var y=td(t[m],t,d,v,0,e);d+=y,v-=y,v!==0&&(g=ed(t[d+v-1],t,m,g,g-1,e),g!==0&&(v<=g?c(d,v,m,g):p(d,v,m,g)))}function c(h,d,v,m){var g=0;for(g=0;g<d;g++)o[g]=t[h+g];var y=0,_=v,x=h;if(t[x++]=t[_++],--m===0){for(g=0;g<d;g++)t[x+g]=o[y+g];return}if(d===1){for(g=0;g<m;g++)t[x+g]=t[_+g];t[x+m]=o[y];return}for(var S=r,b,T,C;;){b=0,T=0,C=!1;do if(e(t[_],o[y])<0){if(t[x++]=t[_++],T++,b=0,--m===0){C=!0;break}}else if(t[x++]=o[y++],b++,T=0,--d===1){C=!0;break}while((b|T)<S);if(C)break;do{if(b=td(t[_],o,y,d,0,e),b!==0){for(g=0;g<b;g++)t[x+g]=o[y+g];if(x+=b,y+=b,d-=b,d<=1){C=!0;break}}if(t[x++]=t[_++],--m===0){C=!0;break}if(T=ed(o[y],t,_,m,0,e),T!==0){for(g=0;g<T;g++)t[x+g]=t[_+g];if(x+=T,_+=T,m-=T,m===0){C=!0;break}}if(t[x++]=o[y++],--d===1){C=!0;break}S--}while(b>=zs||T>=zs);if(C)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),d===1){for(g=0;g<m;g++)t[x+g]=t[_+g];t[x+m]=o[y]}else{if(d===0)throw new Error;for(g=0;g<d;g++)t[x+g]=o[y+g]}}function p(h,d,v,m){var g=0;for(g=0;g<m;g++)o[g]=t[v+g];var y=h+d-1,_=m-1,x=v+m-1,S=0,b=0;if(t[x--]=t[y--],--d===0){for(S=x-(m-1),g=0;g<m;g++)t[S+g]=o[g];return}if(m===1){for(x-=d,y-=d,b=x+1,S=y+1,g=d-1;g>=0;g--)t[b+g]=t[S+g];t[x]=o[_];return}for(var T=r;;){var C=0,A=0,E=!1;do if(e(o[_],t[y])<0){if(t[x--]=t[y--],C++,A=0,--d===0){E=!0;break}}else if(t[x--]=o[_--],A++,C=0,--m===1){E=!0;break}while((C|A)<T);if(E)break;do{if(C=d-td(o[_],t,h,d,d-1,e),C!==0){for(x-=C,y-=C,d-=C,b=x+1,S=y+1,g=C-1;g>=0;g--)t[b+g]=t[S+g];if(d===0){E=!0;break}}if(t[x--]=o[_--],--m===1){E=!0;break}if(A=m-ed(t[y],o,0,m,m-1,e),A!==0){for(x-=A,_-=A,m-=A,b=x+1,S=_+1,g=0;g<A;g++)t[b+g]=o[S+g];if(m<=1){E=!0;break}}if(t[x--]=t[y--],--d===0){E=!0;break}T--}while(C>=zs||A>=zs);if(E)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),m===1){for(x-=d,y-=d,b=x+1,S=y+1,g=d-1;g>=0;g--)t[b+g]=t[S+g];t[x]=o[_]}else{if(m===0)throw new Error;for(S=x-(m-1),g=0;g<m;g++)t[S+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Yn(t,e,r,i){r||(r=0),i||(i=t.length);var n=i-r;if(!(n<2)){var a=0;if(n<A_){a=C_(t,r,i,e),E_(t,r,i,r+a,e);return}var o=iM(t,e),s=tM(n);do{if(a=C_(t,r,i,e),a<s){var l=n;l>s&&(l=s),E_(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var qe=1,Xn=2,Wi=4;var D_=!1;function rd(){D_||(D_=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function M_(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var nM=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=M_}return t.prototype.traverse=function(e,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var i=this._displayList;return(e||!i.length)&&this.updateDisplayList(r),i},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,a=r.length;n<a;n++)this._updateAndAddDisplayable(r[n],null,e);i.length=this._displayListLen,Yn(i,M_)},t.prototype._updateAndAddDisplayable=function(e,r,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||n)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=n,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),p=0;p<c.length;p++){var h=c[p];e.__dirty&&(h.__dirty|=qe),this._updateAndAddDisplayable(h,s,i)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(rd(),d.z=0),isNaN(d.z2)&&(rd(),d.z2=0),isNaN(d.zlevel)&&(rd(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var v=e.getDecalElement&&e.getDecalElement();v&&this._updateAndAddDisplayable(v,s,i);var m=e.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,i);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,i)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,i=e.length;r<i;r++)this.delRoot(e[r]);return}var n=ne(this._roots,e);n>=0&&this._roots.splice(n,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),O_=nM;var I_;I_=ee.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Fs=I_;var Ou={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)))},elasticOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ou.bounceOut(1-t)},bounceOut:function(t){return t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375},bounceInOut:function(t){return t<.5?Ou.bounceIn(t*2)*.5:Ou.bounceOut(t*2-1)*.5+.5}},Iu=Ou;var Lu=Math.pow,Xi=Math.sqrt,Pu=1e-8,N_=1e-4,L_=Xi(3),Nu=1/3,Jr=Si(),_r=Si(),lo=Si();function Yi(t){return t>-Pu&&t<Pu}function P_(t){return t>Pu||t<-Pu}function Be(t,e,r,i,n){var a=1-n;return a*a*(a*t+3*n*e)+n*n*(n*i+3*a*r)}function id(t,e,r,i,n){var a=1-n;return 3*(((e-t)*a+2*(r-e)*n)*a+(i-r)*n*n)}function qn(t,e,r,i,n,a){var o=i+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-n,f=s*s-3*o*l,c=s*l-9*o*u,p=l*l-3*s*u,h=0;if(Yi(f)&&Yi(c))if(Yi(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[h++]=d)}else{var v=c*c-4*f*p;if(Yi(v)){var m=c/f,d=-s/o+m,g=-m/2;d>=0&&d<=1&&(a[h++]=d),g>=0&&g<=1&&(a[h++]=g)}else if(v>0){var y=Xi(v),_=f*s+1.5*o*(-c+y),x=f*s+1.5*o*(-c-y);_<0?_=-Lu(-_,Nu):_=Lu(_,Nu),x<0?x=-Lu(-x,Nu):x=Lu(x,Nu);var d=(-s-(_+x))/(3*o);d>=0&&d<=1&&(a[h++]=d)}else{var S=(2*f*s-3*o*c)/(2*Xi(f*f*f)),b=Math.acos(S)/3,T=Xi(f),C=Math.cos(b),d=(-s-2*T*C)/(3*o),g=(-s+T*(C+L_*Math.sin(b)))/(3*o),A=(-s+T*(C-L_*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[h++]=d),g>=0&&g<=1&&(a[h++]=g),A>=0&&A<=1&&(a[h++]=A)}}return h}function Ru(t,e,r,i,n){var a=6*r-12*e+6*t,o=9*e+3*i-3*t-9*r,s=3*e-3*t,l=0;if(Yi(o)){if(P_(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(Yi(f))n[0]=-a/(2*o);else if(f>0){var c=Xi(f),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function uo(t,e,r,i,n,a){var o=(e-t)*n+t,s=(r-e)*n+e,l=(i-r)*n+r,u=(s-o)*n+o,f=(l-s)*n+s,c=(f-u)*n+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=i}function R_(t,e,r,i,n,a,o,s,l,u,f){var c,p=.005,h=1/0,d,v,m,g;Jr[0]=l,Jr[1]=u;for(var y=0;y<1;y+=.05)_r[0]=Be(t,r,n,o,y),_r[1]=Be(e,i,a,s,y),m=Gi(Jr,_r),m<h&&(c=y,h=m);h=1/0;for(var _=0;_<32&&!(p<N_);_++)d=c-p,v=c+p,_r[0]=Be(t,r,n,o,d),_r[1]=Be(e,i,a,s,d),m=Gi(_r,Jr),d>=0&&m<h?(c=d,h=m):(lo[0]=Be(t,r,n,o,v),lo[1]=Be(e,i,a,s,v),g=Gi(lo,Jr),v<=1&&g<h?(c=v,h=g):p*=.5);return f&&(f[0]=Be(t,r,n,o,c),f[1]=Be(e,i,a,s,c)),Xi(h)}function k_(t,e,r,i,n,a,o,s,l){for(var u=t,f=e,c=0,p=1/l,h=1;h<=l;h++){var d=h*p,v=Be(t,r,n,o,d),m=Be(e,i,a,s,d),g=v-u,y=m-f;c+=Math.sqrt(g*g+y*y),u=v,f=m}return c}function at(t,e,r,i){var n=1-i;return n*(n*t+2*i*e)+i*i*r}function nd(t,e,r,i){return 2*((1-i)*(e-t)+i*(r-e))}function B_(t,e,r,i,n){var a=t-2*e+r,o=2*(e-t),s=t-i,l=0;if(Yi(a)){if(P_(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(Yi(f)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var c=Xi(f),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function ku(t,e,r){var i=t+r-2*e;return i===0?.5:(t-e)/i}function fo(t,e,r,i,n){var a=(e-t)*i+t,o=(r-e)*i+e,s=(o-a)*i+a;n[0]=t,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function U_(t,e,r,i,n,a,o,s,l){var u,f=.005,c=1/0;Jr[0]=o,Jr[1]=s;for(var p=0;p<1;p+=.05){_r[0]=at(t,r,n,p),_r[1]=at(e,i,a,p);var h=Gi(Jr,_r);h<c&&(u=p,c=h)}c=1/0;for(var d=0;d<32&&!(f<N_);d++){var v=u-f,m=u+f;_r[0]=at(t,r,n,v),_r[1]=at(e,i,a,v);var h=Gi(_r,Jr);if(v>=0&&h<c)u=v,c=h;else{lo[0]=at(t,r,n,m),lo[1]=at(e,i,a,m);var g=Gi(lo,Jr);m<=1&&g<c?(u=m,c=g):f*=.5}}return l&&(l[0]=at(t,r,n,u),l[1]=at(e,i,a,u)),Xi(c)}function z_(t,e,r,i,n,a,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var p=c*f,h=at(t,r,n,p),d=at(e,i,a,p),v=h-s,m=d-l;u+=Math.sqrt(v*v+m*m),s=h,l=d}return u}var aM=/cubic-bezier\(([0-9,\.e ]+)\)/;function Bu(t){var e=t&&aM.exec(t);if(e){var r=e[1].split(","),i=+ut(r[0]),n=+ut(r[1]),a=+ut(r[2]),o=+ut(r[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:qn(0,i,a,1,l,s)&&Be(0,n,o,1,s[0])}}}var oM=(function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||ke,this.ondestroy=e.ondestroy||ke,this.onrestart=e.onrestart||ke,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=e-this._startTime-this._pausedTime,a=n/i;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=n%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=G(e)?e:Iu[e]||Bu(e)},t})(),F_=oM;var Hu={};Ft(Hu,{fastLerp:()=>Y_,fastMapToColor:()=>pM,lerp:()=>Fu,lift:()=>ud,liftColor:()=>Vu,lum:()=>Kn,mapToColor:()=>hM,modifyAlpha:()=>dM,modifyHSL:()=>po,parse:()=>bt,parseCssFloat:()=>Ki,parseCssInt:()=>zu,random:()=>vM,stringify:()=>ti,toHex:()=>cM});var V_=(function(){function t(e){this.value=e}return t})();var sM=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new V_(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,i=e.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})();var lM=(function(){function t(e){this._list=new sM,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var i=this._list,n=this._map,a=null;if(n[e]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new V_(r),s.key=e,i.insertEntry(s),n[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),ei=lM;var H_={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 zr(t){return t=Math.round(t),t<0?0:t>255?255:t}function uM(t){return t=Math.round(t),t<0?0:t>360?360:t}function Vs(t){return t<0?0:t>1?1:t}function zu(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?zr(parseFloat(e)/100*255):zr(parseInt(e,10))}function Ki(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Vs(parseFloat(e)/100):Vs(parseFloat(e))}function od(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function qi(t,e,r){return t+(e-t)*r}function xr(t,e,r,i,n){return t[0]=e,t[1]=r,t[2]=i,t[3]=n,t}function sd(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var W_=new ei(20),Uu=null;function co(t,e){Uu&&sd(Uu,e),Uu=W_.put(t,Uu||e.slice())}function bt(t,e){if(t){e=e||[];var r=W_.get(t);if(r)return sd(e,r);t=t+"";var i=t.replace(/ /g,"").toLowerCase();if(i in H_)return sd(e,H_[i]),co(t,e),e;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){xr(e,0,0,0,1);return}return xr(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),co(t,e),e}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){xr(e,0,0,0,1);return}return xr(e,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),co(t,e),e}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?xr(e,+u[0],+u[1],+u[2],1):xr(e,0,0,0,1);f=Ki(u.pop());case"rgb":if(u.length>=3)return xr(e,zu(u[0]),zu(u[1]),zu(u[2]),u.length===3?f:Ki(u[3])),co(t,e),e;xr(e,0,0,0,1);return;case"hsla":if(u.length!==4){xr(e,0,0,0,1);return}return u[3]=Ki(u[3]),ld(u,e),co(t,e),e;case"hsl":if(u.length!==3){xr(e,0,0,0,1);return}return ld(u,e),co(t,e),e;default:return}}xr(e,0,0,0,1)}}function ld(t,e){var r=(parseFloat(t[0])%360+360)%360/360,i=Ki(t[1]),n=Ki(t[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return e=e||[],xr(e,zr(od(o,a,r+1/3)*255),zr(od(o,a,r)*255),zr(od(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function fM(t){if(t){var e=t[0]/255,r=t[1]/255,i=t[2]/255,n=Math.min(e,r,i),a=Math.max(e,r,i),o=a-n,s=(a+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+n):u=o/(2-a-n);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,p=((a-i)/6+o/2)/o;e===a?l=p-c:r===a?l=1/3+f-p:i===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return t[3]!=null&&h.push(t[3]),h}}function ud(t,e){var r=bt(t);if(r){for(var i=0;i<3;i++)e<0?r[i]=r[i]*(1-e)|0:r[i]=(255-r[i])*e+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return ti(r,r.length===4?"rgba":"rgb")}}function cM(t){var e=bt(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Y_(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var i=t*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=e[n],s=e[a],l=i-n;return r[0]=zr(qi(o[0],s[0],l)),r[1]=zr(qi(o[1],s[1],l)),r[2]=zr(qi(o[2],s[2],l)),r[3]=Vs(qi(o[3],s[3],l)),r}}var pM=Y_;function Fu(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var i=t*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=bt(e[n]),s=bt(e[a]),l=i-n,u=ti([zr(qi(o[0],s[0],l)),zr(qi(o[1],s[1],l)),zr(qi(o[2],s[2],l)),Vs(qi(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:n,rightIndex:a,value:i}:u}}var hM=Fu;function po(t,e,r,i){var n=bt(t);if(t)return n=fM(n),e!=null&&(n[0]=uM(G(e)?e(n[0]):e)),r!=null&&(n[1]=Ki(G(r)?r(n[1]):r)),i!=null&&(n[2]=Ki(G(i)?i(n[2]):i)),ti(ld(n),"rgba")}function dM(t,e){var r=bt(t);if(r&&e!=null)return r[3]=Vs(e),ti(r,"rgba")}function ti(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function Kn(t,e){var r=bt(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function vM(){return ti([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var G_=new ei(100);function Vu(t){if(B(t)){var e=G_.get(t);return e||(e=ud(t,-.1),G_.put(t,e)),e}else if(yi(t)){var r=N({},t);return r.colorStops=U(t.colorStops,function(i){return{offset:i.offset,color:ud(i.color,-.1)}}),r}return t}function X_(t){return t.type==="linear"}function q_(t){return t.type==="radial"}var Az=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(t){return Buffer.from(t).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}})();var cd=Array.prototype.slice;function Ti(t,e,r){return(e-t)*r+t}function fd(t,e,r,i){for(var n=e.length,a=0;a<n;a++)t[a]=Ti(e[a],r[a],i);return t}function mM(t,e,r,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=Ti(e[o][s],r[o][s],i)}return t}function Gu(t,e,r,i){for(var n=e.length,a=0;a<n;a++)t[a]=e[a]+r[a]*i;return t}function K_(t,e,r,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*i}return t}function gM(t,e){for(var r=t.length,i=e.length,n=r>i?e:t,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function yM(t,e,r){var i=t,n=e;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var l=a;l<o;l++)i.push(r===1?n[l]:cd.call(n[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(r===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function Ws(t){if(We(t)){var e=t.length;if(We(t[0])){for(var r=[],i=0;i<e;i++)r.push(cd.call(t[i]));return r}return cd.call(t)}return t}function Xu(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function _M(t){return We(t&&t[0])?2:1}var Wu=0,qu=1,$_=2,Gs=3,pd=4,hd=5,Z_=6;function j_(t){return t===pd||t===hd}function Yu(t){return t===qu||t===$_}var Hs=[0,0,0,0],xM=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Z_,l=r;if(We(r)){var u=_M(r);s=u,(u===1&&!le(r[0])||u===2&&!le(r[0][0]))&&(o=!0)}else if(le(r)&&!_i(r))s=Wu;else if(B(r))if(!isNaN(+r))s=Wu;else{var f=bt(r);f&&(l=f,s=Gs)}else if(yi(r)){var c=N({},l);c.colorStops=U(r.colorStops,function(h){return{offset:h.offset,color:bt(h.color)}}),X_(r)?s=pd:q_(r)&&(s=hd),l=c}a===0?this.valType=s:(s!==this.valType||s===Z_)&&(o=!0),this.discrete=this.discrete||o;var p={time:e,value:l,rawValue:r,percent:0};return i&&(p.easing=i,p.easingFunc=G(i)?i:Iu[i]||Bu(i)),n.push(p),p},t.prototype.prepare=function(e,r){var i=this.keyframes;this._needsSort&&i.sort(function(v,m){return v.time-m.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=Yu(n),u=j_(n),f=0;f<a;f++){var c=i[f],p=c.value,h=o.value;c.percent=c.time/e,s||(l&&f!==a-1?yM(p,h,n):u&&gM(p.colorStops,h.colorStops))}if(!s&&n!==hd&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var d=i[0].value,f=0;f<a;f++)n===Wu?i[f].additiveValue=i[f].value-d:n===Gs?i[f].additiveValue=Gu([],i[f].value,d,-1):Yu(n)&&(i[f].additiveValue=n===qu?Gu([],i[f].value,d,-1):K_([],i[f].value,d,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Gs,f,c=this._lastFr,p=Math.min,h,d;if(s===1)h=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var v=p(c+1,s-1);for(f=v;f>=0&&!(o[f].percent<=r);f--);f=p(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=p(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=r;var m=d.percent-h.percent,g=m===0?1:p((r-h.percent)/m,1);d.easingFunc&&(g=d.easingFunc(g));var y=i?this._additiveValue:u?Hs:e[l];if((Yu(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?h.rawValue:d.rawValue;else if(Yu(a))a===qu?fd(y,h[n],d[n],g):mM(y,h[n],d[n],g);else if(j_(a)){var _=h[n],x=d[n],S=a===pd;e[l]={type:S?"linear":"radial",x:Ti(_.x,x.x,g),y:Ti(_.y,x.y,g),colorStops:U(_.colorStops,function(T,C){var A=x.colorStops[C];return{offset:Ti(T.offset,A.offset,g),color:Xu(fd([],T.color,A.color,g))}}),global:x.global},S?(e[l].x2=Ti(_.x2,x.x2,g),e[l].y2=Ti(_.y2,x.y2,g)):e[l].r=Ti(_.r,x.r,g)}else if(u)fd(y,h[n],d[n],g),i||(e[l]=Xu(y));else{var b=Ti(h[n],d[n],g);i?this._additiveValue=b:e[l]=b}i&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,i=this.propName,n=this._additiveValue;r===Wu?e[i]=e[i]+n:r===Gs?(bt(e[i],Hs),Gu(Hs,Hs,n,1),e[i]=Xu(Hs)):r===qu?Gu(e[i],e[i],n,1):r===$_&&K_(e[i],e[i],n,1)},t})(),SM=(function(){function t(e,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&n){Pn("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,i){return this.whenWithKeys(e,r,fe(r),i)},t.prototype.whenWithKeys=function(e,r,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new xM(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,p=c[c.length-1];u=p&&p.value,f.valType===Gs&&u&&(u=Xu(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Ws(u),n),this._trackKeys.push(s)}l.addKeyframe(e,Ws(r[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,i=0;i<r;i++)e[i].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)e[r[i]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new F_({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var d=r._additiveAnimators;if(d){for(var v=!1,m=0;m<d.length;m++)if(d[m]._clip){v=!0;break}v||(r._additiveAnimators=null)}for(var m=0;m<i.length;m++)i[m].step(r._target,h);var g=r._onframeCbs;if(g)for(var m=0;m<g.length;m++)g[m](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return U(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<e.length;a++){var o=i[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,i){if(e){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(e[a]=Ws(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||fe(e);for(var i=0;i<r.length;i++){var n=r[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})(),Ys=SM;function Zn(){return new Date().getTime()}var bM=(function(t){L(e,t);function e(r){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},e.prototype.update=function(r){for(var i=Zn()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(Fs(i),!r._paused&&r.update())}Fs(i)},e.prototype.start=function(){this._running||(this._time=Zn(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Zn(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Zn()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,i){i=i||{},this.start();var n=new Ys(r,i.loop);return this.addAnimator(n),n},e})(vt),Q_=bM;var wM=300,dd=ee.domSupported,vd=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=U(t,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:t,touch:e,pointer:i}})(),J_={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},e0=!1;function yd(t){var e=t.pointerType;return e==="pen"||e==="touch"}function TM(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function md(t){t&&(t.zrByTouch=!0)}function CM(t,e){return Vt(t.dom,new EM(t,e),!0)}function r0(t,e){for(var r=e,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return i}var EM=(function(){function t(e,r){this.stopPropagation=ke,this.stopImmediatePropagation=ke,this.preventDefault=ke,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),Fr={mousedown:function(t){t=Vt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Vt(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Vt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Vt(this.dom,t);var e=t.toElement||t.relatedTarget;r0(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){e0=!0,t=Vt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){e0||(t=Vt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Vt(this.dom,t),md(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Fr.mousemove.call(this,t),Fr.mousedown.call(this,t)},touchmove:function(t){t=Vt(this.dom,t),md(t),this.handler.processGesture(t,"change"),Fr.mousemove.call(this,t)},touchend:function(t){t=Vt(this.dom,t),md(t),this.handler.processGesture(t,"end"),Fr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<wM&&Fr.click.call(this,t)},pointerdown:function(t){Fr.mousedown.call(this,t)},pointermove:function(t){yd(t)||Fr.mousemove.call(this,t)},pointerup:function(t){Fr.mouseup.call(this,t)},pointerout:function(t){yd(t)||Fr.mouseout.call(this,t)}};w(["click","dblclick","contextmenu"],function(t){Fr[t]=function(e){e=Vt(this.dom,e),this.trigger(t,e)}});var _d={pointermove:function(t){yd(t)||_d.mousemove.call(this,t)},pointerup:function(t){_d.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function AM(t,e){var r=e.domHandlers;ee.pointerEventsSupported?w(vd.pointer,function(i){Ku(e,i,function(n){r[i].call(t,n)})}):(ee.touchEventsSupported&&w(vd.touch,function(i){Ku(e,i,function(n){r[i].call(t,n),TM(e)})}),w(vd.mouse,function(i){Ku(e,i,function(n){n=Du(n),e.touching||r[i].call(t,n)})}))}function DM(t,e){ee.pointerEventsSupported?w(J_.pointer,r):ee.touchEventsSupported||w(J_.mouse,r);function r(i){function n(a){a=Du(a),r0(t,a.target)||(a=CM(t,a),e.domHandlers[i].call(t,a))}Ku(e,i,n,{capture:!0})}}function Ku(t,e,r,i){t.mounted[e]=r,t.listenerOpts[e]=i,h_(t.domTarget,e,r,i)}function gd(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&d_(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var t0=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),MM=(function(t){L(e,t);function e(r,i){var n=t.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new t0(r,Fr),dd&&(n._globalHandlerScope=new t0(document,_d)),AM(n,n._localHandlerScope),n}return e.prototype.dispose=function(){gd(this._localHandlerScope),dd&&gd(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,dd&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?DM(this,i):gd(i)}},e})(vt),i0=MM;var n0=1;ee.hasGlobalWindow&&(n0=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var jn=n0,Xs=.4,qs="#333",Ks="#ccc",a0="#eee";var o0=yr,s0=5e-5;function $n(t){return t>s0||t<-s0}var Qn=[],ho=[],xd=mt(),Sd=Math.abs,l0=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return OM(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return $n(this.rotation)||$n(this.x)||$n(this.y)||$n(this.scaleX-1)||$n(this.scaleY-1)||$n(this.skewX)||$n(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||e)){i&&(o0(i),this.invTransform=null);return}i=i||mt(),r?this.getLocalTransform(i):o0(i),e&&(r?Ur(i,e,i):Un(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||mt(),Jt(this.invTransform,i)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Qn);var i=Qn[0]<0?-1:1,n=Qn[1]<0?-1:1,a=((Qn[0]-i)*r+i)/Qn[0]||0,o=((Qn[1]-n)*r+n)/Qn[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),a=Math.PI/2+n-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||mt(),Ur(ho,e.invTransform,r),r=ho);var i=this.originX,n=this.originY;(i||n)&&(xd[4]=i,xd[5]=n,Ur(ho,r,xd),ho[4]-=i,ho[5]-=n,r=ho),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var i=[e,r],n=this.invTransform;return n&&Xe(i,i,n),i},t.prototype.transformCoordToGlobal=function(e,r){var i=[e,r],n=this.transform;return n&&Xe(i,i,n),i},t.prototype.getLineScale=function(){var e=this.transform;return e&&Sd(e[0]-1)>1e-10&&Sd(e[3]-1)>1e-10?Math.sqrt(Sd(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){mo(this,e)},t.getLocalTransform=function(e,r){r=r||[];var i=e.originX||0,n=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,p=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(i||n||s||l){var d=i+s,v=n+l;r[4]=-d*a-p*v*o,r[5]=-v*o-h*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=p*o,u&&zn(r,r,u),r[4]+=i+f,r[5]+=n+c,r},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),OM=l0.getLocalTransform;var vo=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function mo(t,e){return Mh(t,e,vo)}var go=l0;function Hr(t){Zu||(Zu=new ei(100)),t=t||dr;var e=Zu.get(t);return e||(e={font:t,strWidthCache:new ei(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Re.measureText("\u56FD",t).width,asciiCharWidth:Re.measureText("a",t).width},Zu.put(t,e)),e}var Zu;function IM(t){if(!(bd>=u0)){t=t||dr;for(var e=[],r=+new Date,i=0;i<=127;i++)e[i]=Re.measureText(String.fromCharCode(i),t).width;var n=+new Date-r;return n>16?bd=u0:n>2&&bd++,e}}var bd=0,u0=5;function wd(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=IM(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Gr(t,e){var r=t.strWidthCache,i=r.get(e);return i==null&&(i=Re.measureText(e,t.font).width,r.put(e,i)),i}function f0(t,e,r,i){var n=Gr(Hr(e),t),a=Zs(e),o=Zi(0,n,r),s=Ci(0,a,i),l=new j(o,s,n,a);return l}function ju(t,e,r,i){var n=((t||"")+"").split(`
8
- `),a=n.length;if(a===1)return f0(n[0],e,r,i);for(var o=new j(0,0,0,0),s=0;s<n.length;s++){var l=f0(n[s],e,r,i);s===0?o.copy(l):o.union(l)}return o}function Zi(t,e,r,i){return r==="right"?i?t+=e:t-=e:r==="center"&&(i?t+=e/2:t-=e/2),t}function Ci(t,e,r,i){return r==="middle"?i?t+=e/2:t-=e/2:r==="bottom"&&(i?t+=e:t-=e),t}function Zs(t){return Hr(t).stWideCharWidth}function Vr(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Jn(t,e,r){var i=e.position||"inside",n=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(i instanceof Array)l+=Vr(i[0],r.width),u+=Vr(i[1],r.height),f=null,c=null;else switch(i){case"left":l-=n,u+=s,f="right",c="middle";break;case"right":l+=n+o,u+=s,c="middle";break;case"top":l+=o/2,u-=n,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=n,u+=s,c="middle";break;case"insideRight":l+=o-n,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=a-n,f="center",c="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=a-n,c="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,f="right",c="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=c,t}var Td="__zr_normal__",Cd=vo.concat(["ignore"]),LM=St(vo,function(t,e){return t[e]=!0,t},{ignore:!1}),yo={},NM=new j(0,0,0,0),$u=[],Qu=0,_o=1,Dd=(function(){function t(e){this.id=Ms(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var u=!1;a.copyTransform(r);var f=i.position!=null,c=i.autoOverflowArea,p=void 0;if((c||f)&&(p=NM,i.layoutRect?p.copy(i.layoutRect):p.copy(this.getBoundingRect()),n||p.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(yo,i,p):Jn(yo,i,p),a.x=yo.x,a.y=yo.y,o=yo.align,s=yo.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var d=void 0,v=void 0;h==="center"?(d=p.width*.5,v=p.height*.5):(d=Vr(h[0],p.width),v=Vr(h[1],p.height)),u=!0,a.originX=-a.x+d+(n?0:p.x),a.originY=-a.y+v+(n?0:p.y)}}i.rotation!=null&&(a.rotation=i.rotation);var m=i.offset;m&&(a.x+=m[0],a.y+=m[1],u||(a.originX=-m[0],a.originY=-m[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=g.overflowRect=g.overflowRect||new j(0,0,0,0);a.getLocalTransform($u),Jt($u,$u),j.copy(y,p),y.applyTransform($u)}else g.overflowRect=null;var _=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,x=void 0,S=void 0,b=void 0;_&&this.canBeInsideText()?(x=i.insideFill,S=i.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(x),b=!0)):(x=i.outsideFill,S=i.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(x),b=!0)),x=x||"#000",(x!==g.fill||S!==g.stroke||b!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=x,g.stroke=S,g.autoStroke=b,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=qe,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ks:qs},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&bt(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,ti(i,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},N(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(F(e))for(var i=e,n=fe(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==Td)){var o=n.targetName,s=o?r[o]:r;n.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,Cd)},t.prototype._savePrimaryToNormal=function(e,r,i){for(var n=0;n<i.length;n++){var a=i[n];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Td,!1,e)},t.prototype.useState=function(e,r,i,n){var a=e===Td,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ne(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){Pn("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=this._textContent,c=p0(this,f,u,n);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,r,d0(this,i,l),l);var p=this._textGuide;return f&&f.useState(e,r,i,!!c),p&&p.useState(e,r,i,!!c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=Qu,this.__dirty&=~qe),u}}},t.prototype.useStates=function(e,r,i){if(!e.length)this.clearStates();else{var n=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&n.push(f)}var c=n[o-1],p=this._textContent,h=p0(this,p,c,i);h&&!this.__inHover&&(this.__inHover=h);var d=this._mergeStates(n),v=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,d0(this,r,v),v);var m=this._textGuide;p&&p.useStates(e,r,!!h),m&&m.useStates(e,r,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=Qu,this.__dirty&=~qe)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=ne(this.currentStates,e);if(r>=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},t.prototype.replaceState=function(e,r,i){var n=this.currentStates.slice(),a=ne(n,e),o=ne(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},i,n=0;n<e.length;n++){var a=e[n];N(r,a),a.textConfig&&(i=i||{},N(i,a.textConfig))}return i&&(r.textConfig=i),r},t.prototype._applyStateObj=function(e,r,i,n,a,o){if(this.__inHover!==_o){var s=!(r&&n);r&&r.textConfig?(this.textConfig=N({},n?this.textConfig:i.textConfig),N(this.textConfig,r.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<Cd.length;f++){var c=Cd[f],p=a&&LM[c];r&&r[c]!=null?p?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&i[c]!=null&&(p?(u=!0,l[c]=i[c]):this[c]=i[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(r||i)[d]:r||i)}u&&this._transitionState(e,l,o)}},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new go,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),N(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=qe;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.addAnimator(r[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.removeAnimator(r[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,i){var n=e?this[e]:this,a=new Ys(n,r,i);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var i=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(r)}).done(function(){var a=n.animators,o=ne(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,i){Ed(this,e,r,i)},t.prototype.animateFrom=function(e,r,i){Ed(this,e,r,i,!0)},t.prototype._transitionState=function(e,r,i,n){for(var a=Ed(this,r,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=Qu,e.__dirty=qe;var r={};function i(a,o,s){r[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[a+o+s]=!0)}function n(a,o,s,l){Object.defineProperty(e,a,{get:function(){if(!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(p){f[s]=p}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(p){f[l]=p}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),t})();lt(Dd,vt);lt(Dd,go);function Ed(t,e,r,i,n){r=r||{};var a=[];v0(t,"",t,e,r,i,a,n);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(d,v){r.during(v)});for(var p=0;p<a.length;p++){var h=a[p];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function Ad(t,e,r){for(var i=0;i<r;i++)t[i]=e[i]}function PM(t){return We(t[0])}function RM(t,e,r){if(We(e[r]))if(We(t[r])||(t[r]=[]),Fe(e[r])){var i=e[r].length;t[r].length!==i&&(t[r]=new e[r].constructor(i),Ad(t[r],e[r],i))}else{var n=e[r],a=t[r],o=n.length;if(PM(n))for(var s=n[0].length,l=0;l<o;l++)a[l]?Ad(a[l],n[l],s):a[l]=Array.prototype.slice.call(n[l]);else Ad(a,n,o);a.length=n.length}else t[r]=e[r]}function kM(t,e){return t===e||We(t)&&We(e)&&BM(t,e)}function BM(t,e){var r=t.length;if(r!==e.length)return!1;for(var i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}function v0(t,e,r,i,n,a,o,s){for(var l=fe(i),u=n.duration,f=n.delay,c=n.additive,p=n.setToFinal,h=!F(a),d=t.animators,v=[],m=0;m<l.length;m++){var g=l[m],y=i[g];if(y!=null&&r[g]!=null&&(h||a[g]))if(F(y)&&!We(y)&&!yi(y)){if(e){s||(r[g]=y,t.updateDuringAnimation(e));continue}v0(t,g,r[g],y,n,a&&a[g],o,s)}else v.push(g);else s||(r[g]=y,t.updateDuringAnimation(e),v.push(g))}var _=v.length;if(!c&&_)for(var x=0;x<d.length;x++){var S=d[x];if(S.targetName===e){var b=S.stopTracks(v);if(b){var T=ne(d,S);d.splice(T,1)}}}if(n.force||(v=De(v,function(D){return!kM(i[D],r[D])}),_=v.length),_>0||n.force&&!o.length){var C=void 0,A=void 0,E=void 0;if(s){A={},p&&(C={});for(var x=0;x<_;x++){var g=v[x];A[g]=r[g],p?C[g]=i[g]:r[g]=i[g]}}else if(p){E={};for(var x=0;x<_;x++){var g=v[x];E[g]=Ws(r[g]),RM(r,i,g)}}var S=new Ys(r,!1,!1,c?De(d,function(O){return O.targetName===e}):null);S.targetName=e,n.scope&&(S.scope=n.scope),p&&C&&S.whenWithKeys(0,C,v),E&&S.whenWithKeys(0,E,v),S.whenWithKeys(u??500,s?A:i,v).delay(f||0),t.addAnimator(S,e),o.push(S)}}function p0(t,e,r,i){return!(r&&r.hoverLayer||i)||h0(t)||e&&h0(e)?Qu:_o}function h0(t){return t.type==="text"||t.type==="tspan"}function d0(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var Ju=Dd;var m0=(function(t){L(e,t);function e(r){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===r)return i[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,i){if(r&&r!==this&&r.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,i){var n=ne(this._children,r);return n>=0&&this.replaceAt(i,n),this},e.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(r){var i=this.__zr,n=this._children,a=ne(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n<r.length;n++){var a=r[n];i&&a.removeSelfFromZr(i),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];r.call(i,o,a)}return this},e.prototype.traverse=function(r,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=r.call(i,a);a.isGroup&&!o&&a.traverse(r,i)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var i=new j(0,0,0,0),n=r||this._children,a=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(j.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},e})(Ju);m0.prototype.type="group";var we=m0;var ef={},ea={};function UM(t){delete ea[t]}function zM(t){if(!t)return!1;if(typeof t=="string")return Kn(t,1)<Xs;if(t.colorStops){for(var e=t.colorStops,r=0,i=e.length,n=0;n<i;n++)r+=Kn(e[n].color,1);return r/=i,r<Xs}return!1}var FM=(function(){function t(e,r,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=r,this.id=e;var a=new O_,o=i.renderer||"canvas";ef[o]||(o=fe(ef)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new ef[o](r,a,i,e),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!ee.node&&!ee.worker&&!l?new i0(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,c=f==null||f==="auto"?ee.touchEventsSupported:!!f,p=44,h;c&&(h=Y(i.pointerSize,p)),this.handler=new T_(a,s,u,s.root,h),this.animation=new Q_({stage:{update:l?null:function(){return n._flush(!1)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=zM(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,i=Zn(),n=this._needsRefresh,a=this._needsRefreshHover;(n||a)&&(r=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:a}));var o=Zn();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,i){return this._disposed||this.handler.on(e,r,i),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof we&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,UM(this.id))},t})();function tf(t,e){var r=new FM(Ms(),t,e);return ea[r.id]=r,r}function VM(t){t.dispose()}function HM(){for(var t in ea)ea.hasOwnProperty(t)&&ea[t].dispose();ea={}}function GM(t){return ea[t]}function Od(t,e){ef[t]=e}var Md;function WM(t){if(typeof Md=="function")return Md(t)}function Id(t){Md=t}var YM="6.1.0";var g0=1e-4,nf=20;function XM(t){return t.replace(/^\s+|\s+$/g,"")}var Ue=Math.min,ce=Math.max,Le=Math.abs,Ht=Math.round,Sr=Math.floor,$i=Math.ceil,Qi=Math.pow,ji=Math.log,js=Math.LN10,qM=Math.PI,KM=Math.random;function $s(t,e,r,i){var n=e[0],a=e[1],o=r[0],s=r[1],l=a-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(t<=n)return o;if(t>=a)return s}else{if(t>=n)return o;if(t<=a)return s}else{if(t===n)return o;if(t===a)return s}return(t-n)/l*u+o}var Ke=ZM;function ZM(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return af(t,e,r)}function af(t,e,r){return B(t)?jM(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function jM(t){return!!XM(t).match(/%$/)}function ve(t,e,r){return isNaN(e)?r?""+t:+t:(e=Ue(ce(0,e),nf),t=(+t).toFixed(e),r?t:+t)}function y0(t,e,r){return e==null&&(e=10),ve(t,e,r)}function Ji(t){return t.sort(function(e,r){return e-r}),t}function tr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Ht(t*e)/e===t)return r}return Ld(t)}function Ld(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),i=r>0?+e.slice(r+1):0,n=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:n-1-a;return ce(0,o-i)}function _0(t,e){var r=Sr(ji(t[1]-t[0])/js),i=Ht(ji(Le(e[1]-e[0]))/js),n=Ue(ce(-r+i,0),nf);return isFinite(n)?n:nf}function x0(t,e,r){var i=Le(t[1]-t[0]);if(!isFinite(i)||i===0)return NaN;var n=ji(2*Le(r||1)*Le(i))/js,a=ji(Le(e))/js,o=ce(0,$i(-n+a));return isFinite(o)||(o=NaN),o}function S0(t,e,r){if(!t[e])return 0;var i=$M(t,r);return i[e]||0}function $M(t,e){var r=St(t,function(h,d){return h+(isNaN(d)?0:d)},0);if(r===0)return[];for(var i=Qi(10,e),n=U(t,function(h){return(isNaN(h)?0:h)/r*i*100}),a=i*100,o=U(n,function(h){return Sr(h)}),s=St(o,function(h,d){return h+d},0),l=U(n,function(h,d){return h-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,p=l.length;c<p;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return U(o,function(h){return h/i})}function b0(t,e){var r=ce(tr(t),tr(e)),i=t+e;return r>nf?i:ve(i,r)}var Qs=Qi(2,53)-1;function Js(t){var e=qM*2;return(t%e+e)%e}function ta(t){return t>-g0&&t<g0}var QM=/^(?:(\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 It(t){if(t instanceof Date)return t;if(B(t)){var e=QM.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Ht(t))}function xo(t){return Qi(10,So(t))}function So(t){if(t===0)return 0;var e=Sr(ji(t)/js);return t/Qi(10,e)>=10&&e++,e}var Nd=2;function Ei(t,e){var r=So(t),i=Qi(10,r),n=t/i,a;return e===Nd?a=1:e?n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10:n<1?a=1:n<2?a=2:n<3?a=3:n<5?a=5:a=10,t=a*i,ve(t,-r)}function w0(t,e){var r=(t.length-1)*e+1,i=Sr(r),n=+t[i-1],a=r-i;return a?n+a*(t[i]-n):n}function T0(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,r=1,i=0;i<t.length;){for(var n=t[i].interval,a=t[i].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,a[o]=o?1:1-r),e=n[o],r=a[o];n[0]===n[1]&&a[0]*a[1]!==1?t.splice(i,1):i++}return t;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function br(t){var e=parseFloat(t);return e==t&&(e!==0||!B(t)||t.indexOf("x")<=0)?e:NaN}function el(t){return!isNaN(br(t))}function tl(){return Ht(KM()*9)}function C0(t,e){return e===0?t:C0(e,t%e)}function Pd(t,e){return t==null?e:e==null?t:t*e/C0(t,e)}function $e(t){return t!=null&&isFinite(t)}var JM="[ECharts] ",A0={},eO=typeof console<"u"&&console.warn&&console.log;function tO(t,e,r){if(eO){if(r){if(A0[e])return;A0[e]=!0}console[t](JM+e)}}function Rd(t,e){tO("error",t,e)}function ft(t){throw new Error(t)}function D0(t,e,r){return(e-t)*r+t}var M0="series\0",rO="\0_ec_\0";function ze(t){return t instanceof Array?t:t==null?[]:[t]}function kd(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,n=r.length;i<n;i++){var a=r[i];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var Bd=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Ai(t){return F(t)&&!P(t)&&!(t instanceof Date)?t.value:t}function O0(t){return F(t)&&!(t instanceof Array)}function I0(t,e,r){var i=r==="normalMerge",n=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=V();w(e,function(l,u){if(!F(l)){e[u]=null;return}});var s=iO(t,o,r);return(i||n)&&nO(s,t,o,e),i&&aO(s,e),i||n?oO(s,e,n):a&&sO(s,e),lO(s),s}function iO(t,e,r){var i=[];if(r==="replaceAll")return i;for(var n=0;n<t.length;n++){var a=t[n];a&&a.id!=null&&e.set(a.id,n),i.push({existing:r==="replaceMerge"||bo(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function nO(t,e,r,i){w(i,function(n,a){if(!(!n||n.id==null)){var o=rl(n.id),s=r.get(o);if(s!=null){var l=t[s];Ye(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],i[a]=null}}})}function aO(t,e){w(e,function(r,i){if(!(!r||r.name==null))for(var n=0;n<t.length;n++){var a=t[n].existing;if(!t[n].newOption&&a&&(a.id==null||r.id==null)&&!bo(r)&&!bo(a)&&L0("name",a,r)){t[n].newOption=r,e[i]=null;return}}})}function oO(t,e,r){w(e,function(i){if(i){for(var n,a=0;(n=t[a])&&(n.newOption||bo(n.existing)||n.existing&&i.id!=null&&!L0("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=r):t.push({newOption:i,brandNew:r,existing:null,keyInfo:null}),a++}})}function sO(t,e){w(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function lO(t){var e=V();w(t,function(r){var i=r.existing;i&&e.set(i.id,r)}),w(t,function(r){var i=r.newOption;Ye(!i||i.id==null||!e.get(i.id)||e.get(i.id)===r,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&e.set(i.id,r),!r.keyInfo&&(r.keyInfo={})}),w(t,function(r,i){var n=r.existing,a=r.newOption,o=r.keyInfo;if(F(a)){if(o.name=a.name!=null?rl(a.name):n?n.name:M0+i,n)o.id=rl(n.id);else if(a.id!=null)o.id=rl(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function L0(t,e,r){var i=rr(e[t],null),n=rr(r[t],null);return i!=null&&n!=null&&i===n}function rl(t){return rr(t,"")}function rr(t,e){return t==null?e:B(t)?t:le(t)||no(t)?t+"":e}function wo(t){var e=t.name;return!!(e&&e.indexOf(M0))}function bo(t){return t&&t.id!=null&&rl(t.id).indexOf(rO)===0}function N0(t,e,r){w(t,function(i){var n=i.newOption;F(n)&&(i.keyInfo.mainType=e,i.keyInfo.subType=uO(e,n,i.existing,r))})}function uO(t,e,r,i){var n=e.type?e.type:r?r.subType:i.determineSubType(t,e);return n}function wr(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return P(e.dataIndex)?U(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return P(e.name)?U(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function ae(){var t="__ec_inner_"+fO++;return function(e){return e[t]||(e[t]={})}}var fO=tl();function of(t,e,r){var i=il(e,r),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,l=r?r.defaultMainType:null;return!n&&l&&a.set(l,{}),a.each(function(u,f){var c=en(t,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function il(t,e){var r;if(B(t)){var i={};i[t+"Index"]=0,r=i}else r=t;var n=V(),a={},o=!1;return w(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&ne(e.includeMainTypes,f)<0)){o=o||!!f;var p=n.get(f)||n.set(f,{});p[c]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var gt={useDefault:!0,enableAll:!1,enableNone:!1};function en(t,e,r,i){i=i||gt;var n=r.index,a=r.id,o=r.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(n==="none"||n===!1){if(i.enableNone)return s.models=[],s;n=-1}return n==="all"&&(i.enableAll?n=a=o=null:n=-1),s.models=t.queryComponents({mainType:e,index:n,id:a,name:o}),s}function P0(t,e,r){var i={};i[e+"Id"]=t[e+"Id"],i[e+"Index"]=t[e+"Index"],i[e+"Name"]=t[e+"Name"];var n={mainType:e,query:i};return r&&(n.subType=r),n}function Ud(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function R0(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function k0(t){return t==="auto"?ee.domSupported?"html":"richText":t||"html"}function zd(t,e,r,i,n){var a=e==null||e==="auto";if(i==null)return i;if(le(i)){var o=D0(r||0,i,n);return ve(o,a?Math.max(tr(r||0),tr(i)):e)}else{if(B(i))return n<1?r:i;for(var s=[],l=r,u=i,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var p=t.getDimensionInfo(c);if(p&&p.type==="ordinal")s[c]=(n<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,d=u[c],o=D0(h,d,n);s[c]=ve(o,a?Math.max(tr(h),tr(d)):e)}}return s}}var CF=(function(){function t(){}return t.prototype.reset=function(e,r,i,n){return this._list=e,this._step=n=n||1,this._idx=r,this._end=i??(n>0?e.length:0),this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},t})();function yt(){return[1/0,-1/0]}function nl(t,e){Wr(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function Fd(t,e){Wr(e)&&e<t[0]&&(t[0]=e)}function Vd(t,e){Wr(e)&&e>t[1]&&(t[1]=e)}function B0(t,e){Di(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function Wr(t){return t!=null&&isFinite(t)}function Di(t,e){return Wr(t)&&Wr(e)&&t<=e}function U0(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function z0(t){Di(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function sf(){var t="__ec_once_"+cO++;return function(e,r){Me(e,t)||(e[t]=1,r())}}var cO=tl();function To(t,e,r){var i=V(),n=0;w(t,function(a){var o=e(a),s=i.get(o)||0;r&&r(a,s),!s&&!r&&(t[n++]=a),i.set(o,s+1)}),r||(t.length=n)}function F0(t){return t.value+""}function V0(t){return t+""}function H0(t,e){return Y(e,!0)?t.seriesIndex+2:0}function lf(t,e,r){var i=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&i>=r.threshold,large:t.get("large")&&i>=t.get("largeThreshold"),modDataCount:t.get("progressiveChunkMode")==="mod"?t.getData().count():null}}function Co(t){return{overallReset:t}}var pO=".",ia="___EC__COMPONENT__CONTAINER___",G0="___EC__EXTENDED_CLASS___";function Gt(t){var e={main:"",sub:""};if(t){var r=t.split(pO);e.main=r[0]||"",e.sub=r[1]||""}return e}function hO(t){Ye(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function W0(t){return!!(t&&t[G0])}function Eo(t,e){t.$constructor=t,t.extend=function(r){var i=this,n;return dO(i)?n=(function(a){L(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(r.$constructor||i).apply(this,arguments)},Os(n,this)),N(n.prototype,r),n[G0]=!0,n.extend=this.extend,n.superCall=mO,n.superApply=gO,n.superClass=i,n}}function dO(t){return G(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function uf(t,e){t.extend=e.extend}var vO=Math.round(Math.random()*10);function Y0(t){var e=["__\0is_clz",vO++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function mO(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,r)}function gO(t,e,r){return this.superClass.prototype[e].apply(t,r)}function tn(t){var e={};t.registerClass=function(i){var n=i.type||i.prototype.type;if(n){hO(n),i.prototype.type=n;var a=Gt(n);if(!a.sub)e[a.main]=i;else if(a.sub!==ia){var o=r(a);o[a.sub]=i}}return i},t.getClass=function(i,n,a){var o=e[i];if(o&&o[ia]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},t.getClassesByMainType=function(i){var n=Gt(i),a=[],o=e[n.main];return o&&o[ia]?w(o,function(s,l){l!==ia&&a.push(s)}):a.push(o),a},t.hasClass=function(i){var n=Gt(i);return!!e[n.main]},t.getAllClassMainTypes=function(){var i=[];return w(e,function(n,a){i.push(a)}),i},t.hasSubTypes=function(i){var n=Gt(i),a=e[n.main];return a&&a[ia]};function r(i){var n=e[i.main];return(!n||!n[ia])&&(n=e[i.main]={},n[ia]=!0),n}}function ri(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(i,n,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(n&&ne(n,l)>=0||a&&ne(a,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var yO=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],_O=ri(yO),X0=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return _O(this,e,r)},t})();var Gd=new ei(50);function K0(t){if(typeof t=="string"){var e=Gd.get(t);return e&&e.image}else return t}function Wd(t,e,r,i,n){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=Gd.get(t),o={hostEl:r,cb:i,cbPayload:n};return a?(e=a.image,!Ao(e)&&a.pending.push(o)):(e=Re.loadImage(t,q0,q0),e.__zrImageSrc=t,Gd.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function q0(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function Ao(t){return t&&t.width&&t.height}var Yd=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function qd(t,e,r,i,n){var a={};return Q0(a,t,e,r,i,n),a.text}function Q0(t,e,r,i,n,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
9
- `);a=J0(r,i,n,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)ex(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
10
- `),t.isTruncated=s}function J0(t,e,r,i){i=i||{};var n=N({},i);r=Y(r,"..."),n.maxIterations=Y(i.maxIterations,2);var a=n.minChar=Y(i.minChar,0),o=n.fontMeasureInfo=Hr(e),s=o.asciiCharWidth;n.placeholder=Y(i.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var f=Gr(o,r);return f>l&&(r="",f=0),l=t-f,n.ellipsis=r,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=t,n}function ex(t,e,r){var i=r.containerWidth,n=r.contentWidth,a=r.fontMeasureInfo;if(!i){t.textLine="",t.isTruncated=!1;return}var o=Gr(a,e);if(o<=i){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?SO(e,n,a):o>0?Math.floor(e.length*n/o):0;e=e.substr(0,l),o=Gr(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function SO(t,e,r){for(var i=0,n=0,a=t.length;n<a&&i<e;n++)i+=wd(r,t.charCodeAt(n));return n}function tx(t,e,r,i){var n=Zd(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=a==="truncate",c=Zs(u),p=Y(e.lineHeight,c),h=e.lineOverflow==="truncate",d=!1,v=e.width;v==null&&r!=null&&(v=r-s);var m=e.height;m==null&&i!=null&&(m=i-l);var g;v!=null&&(a==="break"||a==="breakAll")?g=n?ix(n,e.font,v,a==="breakAll",0).lines:[]:g=n?n.split(`
11
- `):[];var y=g.length*p;if(m==null&&(m=y),y>m&&h){var _=Math.floor(m/p);d=d||g.length>_,g=g.slice(0,_),y=g.length*p}if(n&&f&&v!=null)for(var x=J0(v,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={},b=0;b<g.length;b++)ex(S,g[b],x),g[b]=S.textLine,d=d||S.isTruncated;for(var T=m,C=0,A=Hr(u),b=0;b<g.length;b++)C=Math.max(Gr(A,g[b]),C);v==null&&(v=C);var E=v;return T+=l,E+=s,{lines:g,height:m,outerWidth:E,outerHeight:T,lineHeight:p,calculatedLineHeight:c,contentWidth:C,contentHeight:y,width:v,isTruncated:d}}var bO=(function(){function t(){}return t})(),Z0=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),wO=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function rx(t,e,r,i,n){var a=new wO,o=Zd(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&r!=null&&(f=r-l);var c=e.height;c==null&&i!=null&&(c=i-u);for(var p=e.overflow,h=(p==="break"||p==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:p==="breakAll"}:null,d=Yd.lastIndex=0,v;(v=Yd.exec(o))!=null;){var m=v.index;m>d&&Xd(a,o.substring(d,m),e,h),Xd(a,v[2],e,h,v[1]),d=Yd.lastIndex}d<o.length&&Xd(a,o.substring(d,o.length),e,h);var g=[],y=0,_=0,x=p==="truncate",S=e.lineOverflow==="truncate",b={};function T(Se,Mt,kr){Se.width=Mt,Se.lineHeight=kr,y+=kr,_=Math.max(_,Mt)}e:for(var C=0;C<a.lines.length;C++){for(var A=a.lines[C],E=0,D=0,O=0;O<A.tokens.length;O++){var M=A.tokens[O],I=M.styleName&&e.rich[M.styleName]||{},R=M.textPadding=I.padding,k=R?R[1]+R[3]:0,W=M.font=I.font||e.font;M.contentHeight=Zs(W);var z=Y(I.height,M.contentHeight);if(M.innerHeight=z,R&&(z+=R[0]+R[2]),M.height=z,M.lineHeight=vr(I.lineHeight,e.lineHeight,z),M.align=I&&I.align||n,M.verticalAlign=I&&I.verticalAlign||"middle",S&&c!=null&&y+M.lineHeight>c){var X=a.lines.length;O>0?(A.tokens=A.tokens.slice(0,O),T(A,D,E),a.lines=a.lines.slice(0,C+1)):a.lines=a.lines.slice(0,C),a.isTruncated=a.isTruncated||a.lines.length<X;break e}var $=I.width,K=$==null||$==="auto";if(typeof $=="string"&&$.charAt($.length-1)==="%")M.percentWidth=$,g.push(M),M.contentWidth=Gr(Hr(W),M.text);else{if(K){var te=I.backgroundColor,ie=te&&te.image;ie&&(ie=K0(ie),Ao(ie)&&(M.width=Math.max(M.width,ie.width*z/ie.height)))}var q=x&&f!=null?f-D:null;q!=null&&q<M.width?!K||q<k?(M.text="",M.width=M.contentWidth=0):(Q0(b,M.text,q-k,W,e.ellipsis,{minChar:e.truncateMinChar}),M.text=b.text,a.isTruncated=a.isTruncated||b.isTruncated,M.width=M.contentWidth=Gr(Hr(W),M.text)):M.contentWidth=Gr(Hr(W),M.text)}M.width+=k,D+=M.width,I&&(E=Math.max(E,M.lineHeight))}T(A,D,E)}a.outerWidth=a.width=Y(f,_),a.outerHeight=a.height=Y(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var C=0;C<g.length;C++){var M=g[C],me=M.percentWidth;M.width=parseInt(me,10)/100*a.width}return a}function Xd(t,e,r,i,n){var a=e==="",o=n&&r.rich[n]||{},s=t.lines,l=o.font||r.font,u=!1,f,c;if(i){var p=o.padding,h=p?p[1]+p[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Vr(o.width,i.width)+h;s.length>0&&d+i.accumWidth>i.width&&(f=e.split(`
12
- `),u=!0),i.accumWidth=d}else{var v=ix(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=v.accumWidth+h,c=v.linesWidths,f=v.lines}}f||(f=e.split(`
13
- `));for(var m=Hr(l),g=0;g<f.length;g++){var y=f[g],_=new bO;if(_.styleName=n,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=c?c[g]:Gr(m,y),!g&&!u){var x=(s[s.length-1]||(s[0]=new Z0)).tokens,S=x.length;S===1&&x[0].isLineHolder?x[0]=_:(y||!S||a)&&x.push(_)}else s.push(new Z0([_]))}}function TO(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var CO=St(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function EO(t){return TO(t)?!!CO[t]:!0}function ix(t,e,r,i,n){for(var a=[],o=[],s="",l="",u=0,f=0,c=Hr(e),p=0;p<t.length;p++){var h=t.charAt(p);if(h===`
14
- `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=wd(c,h.charCodeAt(0)),v=i?!1:!EO(h);if(a.length?f+d>r:n+f+d>r){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=d)):v?(a.push(l),o.push(u),l=h,u=d):(a.push(h),o.push(d));continue}f+=d,v?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}function Kd(t,e,r,i,n,a){if(t.baseX=r,t.baseY=i,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;j.set(j0,Zi(r,o,n),Ci(i,s,a),o,s),j.intersect(e,j0,null,$0);var l=$0.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Zi(l.x,l.width,n,!0),t.baseY=Ci(l.y,l.height,a,!0)}}var j0=new j(0,0,0,0),$0={outIntersectRect:{},clamp:!0};function Zd(t){return t!=null?t+="":t=""}function nx(t){var e=Zd(t.text),r=t.font,i=Gr(Hr(r),e),n=Zs(r);return ff(t,i,n,null)}function ff(t,e,r,i){var n=new j(Zi(t.x||0,e,t.textAlign),Ci(t.y||0,r,t.textBaseline),e,r),a=i??(jd(t)?t.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function jd(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var Jd="__zr_style_"+Math.round(Math.random()*10),ii={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},na={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ii[Jd]=!0;var ax=["z","z2","invisible"],AO=["invisible"],DO=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var i=fe(r),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(r){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&MO(this,r,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,i){return this.rectContain(r,i)},e.prototype.traverse=function(r,i){r.call(i,this)},e.prototype.rectContain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new j(0,0,0,0)),i?j.applyTransform(r,n,i):r.copy(n),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new j(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,i){r!=="style"?t.prototype.attrKV.call(this,r,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(r,i){return typeof r=="string"?this.style[r]=i:N(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Xn,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Xn)},e.prototype.styleUpdated=function(){this.__dirty&=~Xn},e.prototype.createStyle=function(r){return xi(ii,r)},e.prototype.useStyle=function(r){r[Jd]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[Jd]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,i,ax)},e.prototype._applyStateObj=function(r,i,n,a,o,s){t.prototype._applyStateObj.call(this,r,i,n,a,o,s);var l=!(i&&a),u=this.__inHover===_o,f;if(i&&i.style?o?a?f=i.style:(f=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(f,i.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(f,i.style)):l&&(f=n.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var p=fe(c),h=0;h<p.length;h++){var d=p[h];d in f&&(f[d]=f[d],this.style[d]=c[d])}for(var v=fe(f),h=0;h<v.length;h++){var d=v[h];this.style[d]=this.style[d]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var m=this.__inHover?AO:ax,h=0;h<m.length;h++){var d=m[h];i&&i[d]!=null?this[d]=i[d]:l&&n[d]!=null&&(this[d]=n[d])}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(r,i){return N(r,i),r},e.prototype.getAnimationStyleProps=function(){return na},e.initDefaultProps=(function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=qe|Xn})(),e})(Ju),$d=new j(0,0,0,0),Qd=new j(0,0,0,0);function MO(t,e,r){return $d.copy(t.getBoundingRect()),t.transform&&$d.applyTransform(t.transform),Qd.width=e,Qd.height=r,!$d.intersect(Qd)}var ni=DO;var Tr=Math.min,Cr=Math.max,ev=Math.sin,tv=Math.cos,aa=Math.PI*2,cf=Si(),pf=Si(),hf=Si();function rv(t,e,r,i,n,a){n[0]=Tr(t,r),n[1]=Tr(e,i),a[0]=Cr(t,r),a[1]=Cr(e,i)}var ox=[],sx=[];function lx(t,e,r,i,n,a,o,s,l,u){var f=Ru,c=Be,p=f(t,r,n,o,ox);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<p;h++){var d=c(t,r,n,o,ox[h]);l[0]=Tr(d,l[0]),u[0]=Cr(d,u[0])}p=f(e,i,a,s,sx);for(var h=0;h<p;h++){var v=c(e,i,a,s,sx[h]);l[1]=Tr(v,l[1]),u[1]=Cr(v,u[1])}l[0]=Tr(t,l[0]),u[0]=Cr(t,u[0]),l[0]=Tr(o,l[0]),u[0]=Cr(o,u[0]),l[1]=Tr(e,l[1]),u[1]=Cr(e,u[1]),l[1]=Tr(s,l[1]),u[1]=Cr(s,u[1])}function ux(t,e,r,i,n,a,o,s){var l=ku,u=at,f=Cr(Tr(l(t,r,n),1),0),c=Cr(Tr(l(e,i,a),1),0),p=u(t,r,n,f),h=u(e,i,a,c);o[0]=Tr(t,n,p),o[1]=Tr(e,a,h),s[0]=Cr(t,n,p),s[1]=Cr(e,a,h)}function fx(t,e,r,i,n,a,o,s,l){var u=mr,f=gr,c=Math.abs(n-a);if(c%aa<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-i,l[0]=t+r,l[1]=e+i;return}if(cf[0]=tv(n)*r+t,cf[1]=ev(n)*i+e,pf[0]=tv(a)*r+t,pf[1]=ev(a)*i+e,u(s,cf,pf),f(l,cf,pf),n=n%aa,n<0&&(n=n+aa),a=a%aa,a<0&&(a=a+aa),n>a&&!o?a+=aa:n<a&&o&&(n+=aa),o){var p=a;a=n,n=p}for(var h=0;h<a;h+=Math.PI/2)h>n&&(hf[0]=tv(h)*r+t,hf[1]=ev(h)*i+e,u(s,hf,s),f(l,hf,l))}var Ae={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},oa=[],sa=[],ai=[],rn=[],oi=[],si=[],iv=Math.min,nv=Math.max,la=Math.cos,ua=Math.sin,Mi=Math.abs,sv=Math.PI,nn=sv*2,av=typeof Float32Array<"u",al=[];function ov(t){var e=Math.round(t/sv*1e8)/1e8;return e%2*sv}function OO(t,e){var r=ov(t[0]);r<0&&(r+=nn);var i=r-t[0],n=t[1];n+=i,!e&&n-r>=nn?n=r+nn:e&&r-n>=nn?n=r-nn:!e&&r>n?n=r+(nn-ov(r-n)):e&&r<n&&(n=r-(nn-ov(n-r))),t[0]=r,t[1]=n}var IO=(function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,i){i=i||0,i>0&&(this._ux=Mi(i/jn/e)||0,this._uy=Mi(i/jn/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Ae.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var i=Mi(e-this._xi),n=Mi(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(Ae.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,i,n,a,o){return this._drawPendingPt(),this.addData(Ae.C,e,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,i,n,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,i,n){return this._drawPendingPt(),this.addData(Ae.Q,e,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(e,r,i,n),this._xi=i,this._yi=n,this},t.prototype.arc=function(e,r,i,n,a,o){this._drawPendingPt(),al[0]=n,al[1]=a,OO(al,o),n=al[0],a=al[1];var s=a-n;return this.addData(Ae.A,e,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,i,n,a,o),this._xi=la(a)*i+e,this._yi=ua(a)*i+r,this},t.prototype.arcTo=function(e,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,i,n,a),this},t.prototype.rect=function(e,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,i,n),this.addData(Ae.R,e,r,i,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ae.Z);var e=this._ctx,r=this._x0,i=this._y0;return e&&e.closePath(),this._xi=r,this._yi=i,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&av&&(this.data=new Float32Array(r));for(var i=0;i<r;i++)this.data[i]=e[i];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,i=0,n=this._len,a=0;a<r;a++)i+=e[a].len();var o=this.data;if(av&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[n++]=l[s];this._len=n}},t.prototype.addData=function(e,r,i,n,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,av&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){ai[0]=ai[1]=oi[0]=oi[1]=Number.MAX_VALUE,rn[0]=rn[1]=si[0]=si[1]=-Number.MAX_VALUE;var e=this.data,r=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],i=e[o+1],n=r,a=i),s){case Ae.M:r=n=e[o++],i=a=e[o++],oi[0]=n,oi[1]=a,si[0]=n,si[1]=a;break;case Ae.L:rv(r,i,e[o],e[o+1],oi,si),r=e[o++],i=e[o++];break;case Ae.C:lx(r,i,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],oi,si),r=e[o++],i=e[o++];break;case Ae.Q:ux(r,i,e[o++],e[o++],e[o],e[o+1],oi,si),r=e[o++],i=e[o++];break;case Ae.A:var u=e[o++],f=e[o++],c=e[o++],p=e[o++],h=e[o++],d=e[o++]+h;o+=1;var v=!e[o++];l&&(n=la(h)*c+u,a=ua(h)*p+f),fx(u,f,c,p,h,d,v,oi,si),r=la(d)*c+u,i=ua(d)*p+f;break;case Ae.R:n=r=e[o++],a=i=e[o++];var m=e[o++],g=e[o++];rv(n,a,n+m,a+g,oi,si);break;case Ae.Z:r=n,i=a;break}mr(ai,ai,oi),gr(rn,rn,si)}return o===0&&(ai[0]=ai[1]=rn[0]=rn[1]=0),new j(ai[0],ai[1],rn[0]-ai[0],rn[1]-ai[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,p=0;p<r;){var h=e[p++],d=p===1;d&&(a=e[p],o=e[p+1],s=a,l=o);var v=-1;switch(h){case Ae.M:a=s=e[p++],o=l=e[p++];break;case Ae.L:{var m=e[p++],g=e[p++],y=m-a,_=g-o;(Mi(y)>i||Mi(_)>n||p===r-1)&&(v=Math.sqrt(y*y+_*_),a=m,o=g);break}case Ae.C:{var x=e[p++],S=e[p++],m=e[p++],g=e[p++],b=e[p++],T=e[p++];v=k_(a,o,x,S,m,g,b,T,10),a=b,o=T;break}case Ae.Q:{var x=e[p++],S=e[p++],m=e[p++],g=e[p++];v=z_(a,o,x,S,m,g,10),a=m,o=g;break}case Ae.A:var C=e[p++],A=e[p++],E=e[p++],D=e[p++],O=e[p++],M=e[p++],I=M+O;p+=1,d&&(s=la(O)*E+C,l=ua(O)*D+A),v=nv(E,D)*iv(nn,Math.abs(M)),a=la(I)*E+C,o=ua(I)*D+A;break;case Ae.R:{s=a=e[p++],l=o=e[p++];var R=e[p++],k=e[p++];v=R*2+k*2;break}case Ae.Z:{var y=s-a,_=l-o;v=Math.sqrt(y*y+_*_),a=s,o=l;break}}v>=0&&(u[c++]=v,f+=v)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,u,f,c,p,h=r<1,d,v,m=0,g=0,y,_=0,x,S;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,v=this._pathLen,y=r*v,!y)))e:for(var b=0;b<o;){var T=i[b++],C=b===1;switch(C&&(u=i[b],f=i[b+1],s=u,l=f),T!==Ae.L&&_>0&&(e.lineTo(x,S),_=0),T){case Ae.M:s=u=i[b++],l=f=i[b++],e.moveTo(u,f);break;case Ae.L:{c=i[b++],p=i[b++];var A=Mi(c-u),E=Mi(p-f);if(A>n||E>a){if(h){var D=d[g++];if(m+D>y){var O=(y-m)/D;e.lineTo(u*(1-O)+c*O,f*(1-O)+p*O);break e}m+=D}e.lineTo(c,p),u=c,f=p,_=0}else{var M=A*A+E*E;M>_&&(x=c,S=p,_=M)}break}case Ae.C:{var I=i[b++],R=i[b++],k=i[b++],W=i[b++],z=i[b++],X=i[b++];if(h){var D=d[g++];if(m+D>y){var O=(y-m)/D;uo(u,I,k,z,O,oa),uo(f,R,W,X,O,sa),e.bezierCurveTo(oa[1],sa[1],oa[2],sa[2],oa[3],sa[3]);break e}m+=D}e.bezierCurveTo(I,R,k,W,z,X),u=z,f=X;break}case Ae.Q:{var I=i[b++],R=i[b++],k=i[b++],W=i[b++];if(h){var D=d[g++];if(m+D>y){var O=(y-m)/D;fo(u,I,k,O,oa),fo(f,R,W,O,sa),e.quadraticCurveTo(oa[1],sa[1],oa[2],sa[2]);break e}m+=D}e.quadraticCurveTo(I,R,k,W),u=k,f=W;break}case Ae.A:var $=i[b++],K=i[b++],te=i[b++],ie=i[b++],q=i[b++],me=i[b++],Se=i[b++],Mt=!i[b++],kr=te>ie?te:ie,Pe=Mi(te-ie)>.001,tt=q+me,de=!1;if(h){var D=d[g++];m+D>y&&(tt=q+me*(y-m)/D,de=!0),m+=D}if(Pe&&e.ellipse?e.ellipse($,K,te,ie,Se,q,tt,Mt):e.arc($,K,kr,q,tt,Mt),de)break e;C&&(s=la(q)*te+$,l=ua(q)*ie+K),u=la(tt)*te+$,f=ua(tt)*ie+K;break;case Ae.R:s=u=i[b],l=f=i[b+1],c=i[b++],p=i[b++];var be=i[b++],Mn=i[b++];if(h){var D=d[g++];if(m+D>y){var Ot=y-m;e.moveTo(c,p),e.lineTo(c+iv(Ot,be),p),Ot-=be,Ot>0&&e.lineTo(c+be,p+iv(Ot,Mn)),Ot-=Mn,Ot>0&&e.lineTo(c+nv(be-Ot,0),p+Mn),Ot-=be,Ot>0&&e.lineTo(c,p+nv(Mn-Ot,0));break e}m+=D}e.rect(c,p,be,Mn);break;case Ae.Z:if(h){var D=d[g++];if(m+D>y){var O=(y-m)/D;e.lineTo(u*(1-O)+s*O,f*(1-O)+l*O);break e}m+=D}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=Ae,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})(),ir=IO;function fa(t,e,r,i,n,a,o){if(n===0)return!1;var s=n,l=0,u=t;if(o>e+s&&o>i+s||o<e-s&&o<i-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-i)/(t-r),u=(t*i-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function cx(t,e,r,i,n,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>i+c&&f>a+c&&f>s+c||f<e-c&&f<i-c&&f<a-c&&f<s-c||u>t+c&&u>r+c&&u>n+c&&u>o+c||u<t-c&&u<r-c&&u<n-c&&u<o-c)return!1;var p=R_(t,e,r,i,n,a,o,s,u,f,null);return p<=c/2}function px(t,e,r,i,n,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>i+u&&l>a+u||l<e-u&&l<i-u&&l<a-u||s>t+u&&s>r+u&&s>n+u||s<t-u&&s<r-u&&s<n-u)return!1;var f=U_(t,e,r,i,n,a,s,l,null);return f<=u/2}var hx=Math.PI*2;function ol(t){return t%=hx,t<0&&(t+=hx),t}var sl=Math.PI*2;function dx(t,e,r,i,n,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(i-n)%sl<1e-4)return!0;if(a){var c=i;i=ol(n),n=ol(c)}else i=ol(i),n=ol(n);i>n&&(n+=sl);var p=Math.atan2(l,s);return p<0&&(p+=sl),p>=i&&p<=n||p+sl>=i&&p+sl<=n}function Er(t,e,r,i,n,a){if(a>e&&a>i||a<e&&a<i||i===e)return 0;var o=(a-e)/(i-e),s=i<e?1:-1;(o===1||o===0)&&(s=i<e?.5:-.5);var l=o*(r-t)+t;return l===n?1/0:l>n?s:0}var an=ir.CMD,ca=Math.PI*2,kO=1e-4;function BO(t,e){return Math.abs(t-e)<kO}var Lt=[-1,-1,-1],Ar=[-1,-1];function UO(){var t=Ar[0];Ar[0]=Ar[1],Ar[1]=t}function zO(t,e,r,i,n,a,o,s,l,u){if(u>e&&u>i&&u>a&&u>s||u<e&&u<i&&u<a&&u<s)return 0;var f=qn(e,i,a,s,u,Lt);if(f===0)return 0;for(var c=0,p=-1,h=void 0,d=void 0,v=0;v<f;v++){var m=Lt[v],g=m===0||m===1?.5:1,y=Be(t,r,n,o,m);y<l||(p<0&&(p=Ru(e,i,a,s,Ar),Ar[1]<Ar[0]&&p>1&&UO(),h=Be(e,i,a,s,Ar[0]),p>1&&(d=Be(e,i,a,s,Ar[1]))),p===2?m<Ar[0]?c+=h<e?g:-g:m<Ar[1]?c+=d<h?g:-g:c+=s<d?g:-g:m<Ar[0]?c+=h<e?g:-g:c+=s<h?g:-g)}return c}function FO(t,e,r,i,n,a,o,s){if(s>e&&s>i&&s>a||s<e&&s<i&&s<a)return 0;var l=B_(e,i,a,s,Lt);if(l===0)return 0;var u=ku(e,i,a);if(u>=0&&u<=1){for(var f=0,c=at(e,i,a,u),p=0;p<l;p++){var h=Lt[p]===0||Lt[p]===1?.5:1,d=at(t,r,n,Lt[p]);d<o||(Lt[p]<u?f+=c<e?h:-h:f+=a<c?h:-h)}return f}else{var h=Lt[0]===0||Lt[0]===1?.5:1,d=at(t,r,n,Lt[0]);return d<o?0:a<e?h:-h}}function VO(t,e,r,i,n,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Lt[0]=-l,Lt[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=ca-1e-4){i=0,n=ca;var f=a?1:-1;return o>=Lt[0]+t&&o<=Lt[1]+t?f:0}if(i>n){var c=i;i=n,n=c}i<0&&(i+=ca,n+=ca);for(var p=0,h=0;h<2;h++){var d=Lt[h];if(d+t>o){var v=Math.atan2(s,d),f=a?1:-1;v<0&&(v=ca+v),(v>=i&&v<=n||v+ca>=i&&v+ca<=n)&&(v>Math.PI/2&&v<Math.PI*1.5&&(f=-f),p+=f)}}return p}function vx(t,e,r,i,n){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,p,h,d=0;d<o;){var v=a[d++],m=d===1;switch(v===an.M&&d>1&&(r||(s+=Er(l,u,f,c,i,n))),m&&(l=a[d],u=a[d+1],f=l,c=u),v){case an.M:f=a[d++],c=a[d++],l=f,u=c;break;case an.L:if(r){if(fa(l,u,a[d],a[d+1],e,i,n))return!0}else s+=Er(l,u,a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case an.C:if(r){if(cx(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,i,n))return!0}else s+=zO(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case an.Q:if(r){if(px(l,u,a[d++],a[d++],a[d],a[d+1],e,i,n))return!0}else s+=FO(l,u,a[d++],a[d++],a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case an.A:var g=a[d++],y=a[d++],_=a[d++],x=a[d++],S=a[d++],b=a[d++];d+=1;var T=!!(1-a[d++]);p=Math.cos(S)*_+g,h=Math.sin(S)*x+y,m?(f=p,c=h):s+=Er(l,u,p,h,i,n);var C=(i-g)*x/_+g;if(r){if(dx(g,y,x,S,S+b,T,e,C,n))return!0}else s+=VO(g,y,x,S,S+b,T,C,n);l=Math.cos(S+b)*_+g,u=Math.sin(S+b)*x+y;break;case an.R:f=l=a[d++],c=u=a[d++];var A=a[d++],E=a[d++];if(p=f+A,h=c+E,r){if(fa(f,c,p,c,e,i,n)||fa(p,c,p,h,e,i,n)||fa(p,h,f,h,e,i,n)||fa(f,h,f,c,e,i,n))return!0}else s+=Er(p,c,p,h,i,n),s+=Er(f,h,f,c,i,n);break;case an.Z:if(r){if(fa(l,u,f,c,e,i,n))return!0}else s+=Er(l,u,f,c,i,n);l=f,u=c;break}}return!r&&!BO(u,c)&&(s+=Er(l,u,f,c,i,n)||0),s!==0}function mx(t,e,r){return vx(t,0,!1,e,r)}function gx(t,e,r,i){return vx(t,e,!0,r,i)}var uv=re({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ii),GO={style:re({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},na.style)},lv=vo.concat(["invisible","culling","z","z2","zlevel","parent"]),WO=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){r.buildPath(l,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<lv.length;++s)n[lv[s]]=this[lv[s]];n.__dirty|=qe}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var i=fe(r);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=r[o];o==="style"?this.style?N(this.style,s):this.useStyle(s):o==="shape"?N(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(B(r)){var i=Kn(r,0);return i>.5?qs:i>.2?a0:Ks}else if(r)return Ks}return qs},e.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(B(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=Kn(r,0)<Xs;if(a===o)return i}},e.prototype.buildPath=function(r,i,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Wi},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new ir(!1)},e.prototype.hasStroke=function(){var r=this.style,i=r.stroke;return!(i==null||i==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Wi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);var l=i.strokeNoScale?this.getLineScale():1,u=i.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 r},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,i)){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)),gx(s,l/u,r,i)))return!0}if(this.hasFill())return mx(s,r,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Wi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,i){r==="shape"?this.setShape(i):t.prototype.attrKV.call(this,r,i)},e.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=i:N(n,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Wi)},e.prototype.createStyle=function(r){return xi(uv,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=N({},this.shape))},e.prototype._applyStateObj=function(r,i,n,a,o,s){if(t.prototype._applyStateObj.call(this,r,i,n,a,o,s),this.__inHover!==_o){var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=N({},n.shape),N(u,i.shape)):(u=N({},a?this.shape:n.shape),N(u,i.shape)):l&&(u=n.shape),u)if(o){this.shape=N({},this.shape);for(var f={},c=fe(u),p=0;p<c.length;p++){var h=c[p];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return GO},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var i=(function(a){L(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Q(r.style)},o.prototype.getDefaultShape=function(){return Q(r.shape)},o})(e);for(var n in r)typeof r[n]=="function"&&(i.prototype[n]=r[n]);return i},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=qe|Xn|Wi})(),e})(ni),oe=WO;var YO=re({strokeFirst:!0,font:dr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},uv),yx=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return jd(this.style)},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(r){return xi(YO,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=nx(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(ni);yx.prototype.type="tspan";var ll=yx;var XO=re({x:0,y:0},ii),qO={style:re({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},na.style)};function KO(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var _x=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return xi(XO,r)},e.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=KO(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return qO},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new j(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(ni);_x.prototype.type="image";var Wt=_x;function xx(t,e){var r=e.x,i=e.y,n=e.width,a=e.height,o=e.r,s,l,u,f;n<0&&(r=r+n,n=-n),a<0&&(i=i+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 c;s+l>n&&(c=s+l,s*=n/c,l*=n/c),u+f>n&&(c=u+f,u*=n/c,f*=n/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,i),t.lineTo(r+n-l,i),l!==0&&t.arc(r+n-l,i+l,l,-Math.PI/2,0),t.lineTo(r+n,i+a-u),u!==0&&t.arc(r+n-u,i+a-u,u,0,Math.PI/2),t.lineTo(r+f,i+a),f!==0&&t.arc(r+f,i+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,i+s),s!==0&&t.arc(r+s,i+s,s,Math.PI,Math.PI*1.5),t.closePath()}var Do=Math.round;function df(t,e,r){if(e){var i=e.x1,n=e.x2,a=e.y1,o=e.y2;t.x1=i,t.x2=n,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(Do(i*2)===Do(n*2)&&(t.x1=t.x2=on(i,s,!0)),Do(a*2)===Do(o*2)&&(t.y1=t.y2=on(a,s,!0))),t}}function vf(t,e,r){if(e){var i=e.x,n=e.y,a=e.width,o=e.height;t.x=i,t.y=n,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=on(i,s,!0),t.y=on(n,s,!0),t.width=Math.max(on(i+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(on(n+o,s,!1)-t.y,o===0?0:1)),t}}function on(t,e,r){if(!e)return t;var i=Do(t*2);return(i+Do(e))%2===0?i/2:(i+(r?1:-1))/2}var $O=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})();var QO={},Sx=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new $O},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=vf(QO,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?xx(r,i):r.rect(n,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(oe);Sx.prototype.type="rect";var _e=Sx;var bx={fill:"#000"},Tx=2,li={},JO={style:re({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},na.style)},Lx=(function(t){L(e,t);function e(r){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=bx,i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var i=this._children[r];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var i=this.innerTransformable;return i?i.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,nI(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new j(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||bx},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,i){if(!i)return r;var n=i.rich,a=r.rich||n&&{};return N(r,i),n&&a?(this._mergeRich(a,n),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,i){for(var n=fe(i),a=0;a<n.length;a++){var o=n[a];r[o]=r[o]||{},N(r[o],i[o])}},e.prototype.getAnimationStyleProps=function(){return JO},e.prototype._getOrCreateChild=function(r){var i=this._children[this._childCursor];return(!i||!(i instanceof r))&&(i=new r),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var r=this.style,i=r.font||dr,n=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";Kd(li,a.overflowRect,o,s,l,u),o=li.baseX,s=li.baseY;var f=Ix(r),c=tx(f,r,li.outerWidth,li.outerHeight),p=fv(r),h=!!r.backgroundColor,d=c.outerHeight,v=c.outerWidth,m=c.lines,g=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=Ci(s,c.contentHeight,u);if(p||n){var x=Zi(o,v,l),S=Ci(s,d,u);p&&this._renderBackground(r,r,x,S,v,d)}_+=g/2,n&&(y=Ox(o,l,n),u==="top"?_+=n[0]:u==="bottom"&&(_-=n[2]));for(var b=0,T=!1,C=!1,A=Mx("fill"in r?r.fill:(C=!0,a.fill)),E=Dx("stroke"in r?r.stroke:!h&&(!a.autoStroke||C)?(b=Tx,T=!0,a.stroke):null),D=r.textShadowBlur>0,O=0;O<m.length;O++){var M=this._getOrCreateChild(ll),I=M.createStyle();M.useStyle(I),I.text=m[O],I.x=y,I.y=_,l&&(I.textAlign=l),I.textBaseline="middle",I.opacity=r.opacity,I.strokeFirst=!0,D&&(I.shadowBlur=r.textShadowBlur||0,I.shadowColor=r.textShadowColor||"transparent",I.shadowOffsetX=r.textShadowOffsetX||0,I.shadowOffsetY=r.textShadowOffsetY||0),I.stroke=E,I.fill=A,E&&(I.lineWidth=r.lineWidth||b,I.lineDash=r.lineDash,I.lineDashOffset=r.lineDashOffset||0),I.font=i,Ex(I,r),_+=g,M.setBoundingRect(ff(I,c.contentWidth,c.calculatedLineHeight,T?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,i=this._defaultStyle,n=r.align||i.align,a=r.verticalAlign||i.verticalAlign,o=r.x||0,s=r.y||0;Kd(li,i.overflowRect,o,s,n,a),o=li.baseX,s=li.baseY;var l=Ix(r),u=rx(l,r,li.outerWidth,li.outerHeight,n),f=u.width,c=u.outerWidth,p=u.outerHeight,h=r.padding;this.isTruncated=!!u.isTruncated;var d=Zi(o,c,n),v=Ci(s,p,a),m=d,g=v;h&&(m+=h[3],g+=h[0]);var y=m+f;fv(r)&&this._renderBackground(r,r,d,v,c,p);for(var _=!!r.backgroundColor,x=0;x<u.lines.length;x++){for(var S=u.lines[x],b=S.tokens,T=b.length,C=S.lineHeight,A=S.width,E=0,D=m,O=y,M=T-1,I=void 0;E<T&&(I=b[E],!I.align||I.align==="left");)this._placeToken(I,r,C,g,D,"left",_),A-=I.width,D+=I.width,E++;for(;M>=0&&(I=b[M],I.align==="right");)this._placeToken(I,r,C,g,O,"right",_),A-=I.width,O-=I.width,M--;for(D+=(f-(D-m)-(y-O)-A)/2;E<=M;)I=b[E],this._placeToken(I,r,C,g,D+I.width/2,"center",_),D+=I.width,E++;g+=C}},e.prototype._placeToken=function(r,i,n,a,o,s,l){var u=i.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+n/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+n-r.height/2);var p=!r.isLineHolder&&fv(u);p&&this._renderBackground(u,i,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,d=r.textPadding;d&&(o=Ox(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var v=this._getOrCreateChild(ll),m=v.createStyle();v.useStyle(m);var g=this._defaultStyle,y=!1,_=0,x=!1,S=Mx("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,g.fill)),b=Dx("stroke"in u?u.stroke:"stroke"in i?i.stroke:!h&&!l&&(!g.autoStroke||y)?(_=Tx,x=!0,g.stroke):null),T=u.textShadowBlur>0||i.textShadowBlur>0;m.text=r.text,m.x=o,m.y=c,T&&(m.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,m.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||dr,m.opacity=vr(u.opacity,i.opacity,1),Ex(m,u),b&&(m.lineWidth=vr(u.lineWidth,i.lineWidth,_),m.lineDash=Y(u.lineDash,i.lineDash),m.lineDashOffset=i.lineDashOffset||0,m.stroke=b),S&&(m.fill=S),v.setBoundingRect(ff(m,r.contentWidth,r.contentHeight,x?0:null))},e.prototype._renderBackground=function(r,i,n,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,p=l&&!c,h=r.borderRadius,d=this,v,m;if(p||r.lineHeight||u&&f){v=this._getOrCreateChild(_e),v.useStyle(v.createStyle()),v.style.fill=null;var g=v.shape;g.x=n,g.y=a,g.width=o,g.height=s,g.r=h,v.dirtyShape()}if(p){var y=v.style;y.fill=l||null,y.fillOpacity=Y(r.fillOpacity,1)}else if(c){m=this._getOrCreateChild(Wt),m.onload=function(){d.dirtyStyle()};var _=m.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&f){var y=v.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=Y(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(v||m).style;x.shadowBlur=r.shadowBlur||0,x.shadowColor=r.shadowColor||"transparent",x.shadowOffsetX=r.shadowOffsetX||0,x.shadowOffsetY=r.shadowOffsetY||0,x.opacity=vr(r.opacity,i.opacity,1)},e.makeFont=function(r){var i="";return iI(r)&&(i=[r.fontStyle,r.fontWeight,rI(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&ut(i)||r.textFont||r.font},e})(ni),eI={left:!0,right:1,center:1},tI={top:1,bottom:1,middle:1},Cx=["fontStyle","fontWeight","fontSize","fontFamily"];function rI(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?xu+"px":t+"px"}function Ex(t,e){for(var r=0;r<Cx.length;r++){var i=Cx[r],n=e[i];n!=null&&(t[i]=n)}}function iI(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function nI(t){return Ax(t),w(t.rich,Ax),t}function Ax(t){if(t){t.font=Lx.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||eI[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||tI[r]?r:"top";var i=t.padding;i&&(t.padding=kn(t.padding))}}function Dx(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function Mx(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function Ox(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function Ix(t){var e=t.text;return e!=null&&(e+=""),e}function fv(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Oe=Lx;var he=ae(),Nx=function(t,e,r,i){if(i){var n=he(i);n.dataIndex=r,n.dataType=e,n.seriesIndex=t,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=he(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}};var sn="undefined",mf="series",gf=V(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ot="original",Qe="arrayRows",Nt="objectRows",nr="keyedColumns",ar="typedArray",cv="unknown",or="column",ui="row";var aI=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],oI=(function(){function t(e){w(aI,function(r){this[r]=pe(e[r],e)},this)}return t})();function Px(t,e){return e.mainType===mf?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var yf=oI;var Rx=1,kx={},Vx=ae(),dv=ae(),vv=0,ul=1,fl=2,Dr=["emphasis","blur","select"],mv=["normal","emphasis","blur","select"],sI=10,lI=9,ln="highlight",cl="downplay",pl="select",xf="unselect",hl="toggleSelect",Sf="selectchanged";function Mo(t){return t!=null&&t!=="none"}function bf(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function Hx(t){bf(t,"emphasis",fl)}function Gx(t){t.hoverState===fl&&bf(t,"normal",vv)}function gv(t){bf(t,"blur",ul)}function Wx(t){t.hoverState===ul&&bf(t,"normal",vv)}function uI(t){t.selected=!0}function fI(t){t.selected=!1}function Bx(t,e,r){e(t,r)}function Oi(t,e,r){Bx(t,e,r),t.isGroup&&t.traverse(function(i){Bx(i,e,r)})}function yv(t,e){switch(e){case"emphasis":t.hoverState=fl;break;case"normal":t.hoverState=vv;break;case"blur":t.hoverState=ul;break;case"select":t.selected=!0}}function cI(t,e,r,i){for(var n=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=n[s];a[s]=l??(i&&i[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function pI(t,e,r,i){var n=r&&ne(r,"select")>=0,a=!1;if(t instanceof oe){var o=Vx(t),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Mo(s)||Mo(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(a=!0,i=N({},i),u=N({},u),u.fill=s):!Mo(u.fill)&&Mo(s)?(a=!0,i=N({},i),u=N({},u),u.fill=Vu(s)):!Mo(u.stroke)&&Mo(l)&&(a||(i=N({},i),u=N({},u)),u.stroke=Vu(l)),i.style=u}}if(i&&i.z2==null){a||(i=N({},i));var f=t.z2EmphasisLift;i.z2=t.z2+(f??sI)}return i}function hI(t,e,r){if(r&&r.z2==null){r=N({},r);var i=t.z2SelectLift;r.z2=t.z2+(i??lI)}return r}function dI(t,e,r){var i=ne(t.currentStates,e)>=0,n=t.style.opacity,a=i?null:cI(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=N({},r),o=N({opacity:i?n:a.opacity*.1},o),r.style=o),r}function pv(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return pI(this,t,e,r);if(t==="blur")return dI(this,t,r);if(t==="select")return hI(this,t,r)}return r}function vI(t){t.stateProxy=pv;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=pv),r&&(r.stateProxy=pv)}function Ux(t,e){!Xx(t,e)&&!t.__highByOuter&&Oi(t,Hx)}function zx(t,e){!Xx(t,e)&&!t.__highByOuter&&Oi(t,Gx)}function pa(t,e){t.__highByOuter|=1<<(e||0),Oi(t,Hx)}function ha(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Oi(t,Gx)}function Yx(t){Oi(t,gv)}function _v(t){Oi(t,Wx)}function xv(t){Oi(t,uI)}function Sv(t){Oi(t,fI)}function Xx(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function bv(t){var e=t.getModel(),r=[],i=[];e.eachComponent(function(n,a){var o=dv(a),s=Px(t,a),l=n==="series";!l&&i.push(s),o.isBlured&&(s.group.traverse(function(u){Wx(u)}),l&&r.push(a)),o.isBlured=!1}),w(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(r,!1,e)})}function hv(t,e,r,i){var n=i.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var p=u.getItemGraphicEl(f[c]);p&&_v(p)}}if(t!=null&&!(!e||e==="none")){var o=n.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var p=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!p||e==="series"&&f)){var h=i.getViewOfSeriesModel(u);if(h.group.traverse(function(m){m.__highByOuter&&f&&e==="self"||gv(m)}),We(e))a(u.getData(),e);else if(F(e))for(var d=fe(e),v=0;v<d.length;v++)a(u.getData(d[v]),e[d[v]]);l.push(u),dv(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var c=i.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,n)}})}}function _f(t,e,r){if(!(t==null||e==null)){var i=r.getModel().getComponent(t,e);if(i){dv(i).isBlured=!0;var n=r.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){gv(a)})}}}function qx(t,e,r){var i=t.seriesIndex,n=t.getData(e.dataType);if(n){var a=wr(n,e);a=(P(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=he(o);hv(i,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&hv(i,f,c,r)}}}function wf(t,e,r,i){var n={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return n;var a=i.getModel().getComponent(t,e);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(he(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Kx(t,e,r){var i=he(t),n=wf(i.componentMainType,i.componentIndex,i.componentHighDownName,r),a=n.dispatchers,o=n.focusSelf;a?(o&&_f(i.componentMainType,i.componentIndex,r),w(a,function(s){return Ux(s,e)})):(hv(i.seriesIndex,i.focus,i.blurScope,r),i.focus==="self"&&_f(i.componentMainType,i.componentIndex,r),Ux(t,e))}function Zx(t,e,r){bv(r);var i=he(t),n=wf(i.componentMainType,i.componentIndex,i.componentHighDownName,r).dispatchers;n?w(n,function(a){return zx(a,e)}):zx(t,e)}function jx(t,e,r){if(Tf(e)){var i=e.dataType,n=t.getData(i),a=wr(n,e);P(a)||(a=[a]),t[e.type===hl?"toggleSelect":e.type===pl?"select":"unselect"](a,i)}}function wv(t){var e=t.getAllData();w(e,function(r){var i=r.data,n=r.type;i.eachItemGraphicEl(function(a,o){t.isSelected(o,n)?xv(a):Sv(a)})})}function $x(t){var e=[];return t.eachSeries(function(r){var i=r.getAllData();w(i,function(n){var a=n.data,o=n.type,s=r.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:r.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function Oo(t,e,r){Qx(t,!0),Oi(t,vI),gI(t,e,r)}function mI(t){Qx(t,!1)}function da(t,e,r,i){i?mI(t):Oo(t,e,r)}function gI(t,e,r){var i=he(t);e!=null?(i.focus=e,i.blurScope=r):i.focus&&(i.focus=null)}var Fx=["emphasis","blur","select"],yI={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function dl(t,e,r,i){r=r||"itemStyle";for(var n=0;n<Fx.length;n++){var a=Fx[n],o=e.getModel([a,r]),s=t.ensureState(a);s.style=i?i(o):o[yI[r]]()}}function Qx(t,e){var r=e===!1,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r)}function vl(t){return!!(t&&t.__highDownDispatcher)}function Jx(t){var e=kx[t];return e==null&&Rx<=32&&(e=kx[t]=Rx++),e}function Tf(t){var e=t.type;return e===pl||e===xf||e===hl}function Tv(t){var e=t.type;return e===ln||e===cl}function eS(t){var e=Vx(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var _t={};Ft(_t,{Arc:()=>ga,BezierCurve:()=>wl,BoundingRect:()=>j,Circle:()=>va,CompoundPath:()=>Mf,Ellipse:()=>gl,Group:()=>we,HOVER_LAYER_FOR_INCREMENTAL:()=>Cl,HOVER_LAYER_FROM_THRESHOLD:()=>Bv,HOVER_LAYER_NO:()=>kv,Image:()=>Wt,IncrementalDisplayable:()=>kf,Line:()=>sr,LinearGradient:()=>No,OrientedBoundingRect:()=>Rf,Path:()=>oe,Point:()=>Ee,Polygon:()=>Sl,Polyline:()=>bl,RadialGradient:()=>If,Rect:()=>_e,Ring:()=>xl,Sector:()=>ci,Text:()=>Oe,WH:()=>Sa,XY:()=>Ii,applyTransform:()=>Ff,calcZ2Range:()=>rL,clipPointsByRect:()=>Wv,clipRectByRect:()=>Yv,createIcon:()=>wa,decomposeTransform:()=>nL,ensureCopyRect:()=>Fo,ensureCopyTransform:()=>Hf,expandOrShrinkRect:()=>Uo,extendPath:()=>zv,extendShape:()=>Uv,getCurrentCanvasPainter:()=>aL,getShapeClass:()=>Fv,getTransform:()=>Hv,groupTransition:()=>Gv,initProps:()=>Tt,isBoundingRectAxisAligned:()=>Vf,isElementRemoved:()=>xa,lineLineIntersect:()=>LS,linePolygonIntersect:()=>eL,makeImage:()=>El,makePath:()=>Bo,mergePath:()=>Vv,payloadDisableAnimation:()=>iL,registerShape:()=>lr,removeElement:()=>Ro,removeElementWithFadeOut:()=>ko,resizePath:()=>zf,retrieveZInfo:()=>Xv,setTooltipConfig:()=>zo,subPixelOptimize:()=>$I,subPixelOptimizeLine:()=>ba,subPixelOptimizeRect:()=>jI,transformDirection:()=>QI,traverseElements:()=>Ta,traverseUpdateZ:()=>qv,updateProps:()=>He});var Io=ir.CMD,_I=[[],[],[]],tS=Math.sqrt,xI=Math.atan2;function Cv(t,e){if(e){var r=t.data,i=t.len(),n,a,o,s,l,u,f=Io.M,c=Io.C,p=Io.L,h=Io.R,d=Io.A,v=Io.Q;for(o=0,s=0;o<i;){switch(n=r[o++],s=o,a=0,n){case f:a=1;break;case p:a=1;break;case c:a=3;break;case v:a=2;break;case d:var m=e[4],g=e[5],y=tS(e[0]*e[0]+e[1]*e[1]),_=tS(e[2]*e[2]+e[3]*e[3]),x=xI(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=m,r[o]*=_,r[o++]+=g,r[o++]*=y,r[o++]*=_,r[o++]+=x,r[o++]+=x,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],Xe(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Xe(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var S=_I[l];S[0]=r[o++],S[1]=r[o++],Xe(S,S,e),r[s++]=S[0],r[s++]=S[1]}}t.increaseVersion()}}var Ev=Math.sqrt,Cf=Math.sin,Ef=Math.cos,ml=Math.PI;function rS(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Av(t,e){return(t[0]*e[0]+t[1]*e[1])/(rS(t)*rS(e))}function iS(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Av(t,e))}function nS(t,e,r,i,n,a,o,s,l,u,f){var c=l*(ml/180),p=Ef(c)*(t-r)/2+Cf(c)*(e-i)/2,h=-1*Cf(c)*(t-r)/2+Ef(c)*(e-i)/2,d=p*p/(o*o)+h*h/(s*s);d>1&&(o*=Ev(d),s*=Ev(d));var v=(n===a?-1:1)*Ev((o*o*(s*s)-o*o*(h*h)-s*s*(p*p))/(o*o*(h*h)+s*s*(p*p)))||0,m=v*o*h/s,g=v*-s*p/o,y=(t+r)/2+Ef(c)*m-Cf(c)*g,_=(e+i)/2+Cf(c)*m+Ef(c)*g,x=iS([1,0],[(p-m)/o,(h-g)/s]),S=[(p-m)/o,(h-g)/s],b=[(-1*p-m)/o,(-1*h-g)/s],T=iS(S,b);if(Av(S,b)<=-1&&(T=ml),Av(S,b)>=1&&(T=0),T<0){var C=Math.round(T/ml*1e6)/1e6;T=ml*2+C%2*ml}f.addData(u,y,_,o,s,x,T,c,a)}var SI=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,bI=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function wI(t){var e=new ir;if(!t)return e;var r=0,i=0,n=r,a=i,o,s=ir.CMD,l=t.match(SI);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),p=void 0,h=f.match(bI)||[],d=h.length,v=0;v<d;v++)h[v]=parseFloat(h[v]);for(var m=0;m<d;){var g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0,T=void 0,C=r,A=i,E=void 0,D=void 0;switch(c){case"l":r+=h[m++],i+=h[m++],p=s.L,e.addData(p,r,i);break;case"L":r=h[m++],i=h[m++],p=s.L,e.addData(p,r,i);break;case"m":r+=h[m++],i+=h[m++],p=s.M,e.addData(p,r,i),n=r,a=i,c="l";break;case"M":r=h[m++],i=h[m++],p=s.M,e.addData(p,r,i),n=r,a=i,c="L";break;case"h":r+=h[m++],p=s.L,e.addData(p,r,i);break;case"H":r=h[m++],p=s.L,e.addData(p,r,i);break;case"v":i+=h[m++],p=s.L,e.addData(p,r,i);break;case"V":i=h[m++],p=s.L,e.addData(p,r,i);break;case"C":p=s.C,e.addData(p,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),r=h[m-2],i=h[m-1];break;case"c":p=s.C,e.addData(p,h[m++]+r,h[m++]+i,h[m++]+r,h[m++]+i,h[m++]+r,h[m++]+i),r+=h[m-2],i+=h[m-1];break;case"S":g=r,y=i,E=e.len(),D=e.data,o===s.C&&(g+=r-D[E-4],y+=i-D[E-3]),p=s.C,C=h[m++],A=h[m++],r=h[m++],i=h[m++],e.addData(p,g,y,C,A,r,i);break;case"s":g=r,y=i,E=e.len(),D=e.data,o===s.C&&(g+=r-D[E-4],y+=i-D[E-3]),p=s.C,C=r+h[m++],A=i+h[m++],r+=h[m++],i+=h[m++],e.addData(p,g,y,C,A,r,i);break;case"Q":C=h[m++],A=h[m++],r=h[m++],i=h[m++],p=s.Q,e.addData(p,C,A,r,i);break;case"q":C=h[m++]+r,A=h[m++]+i,r+=h[m++],i+=h[m++],p=s.Q,e.addData(p,C,A,r,i);break;case"T":g=r,y=i,E=e.len(),D=e.data,o===s.Q&&(g+=r-D[E-4],y+=i-D[E-3]),r=h[m++],i=h[m++],p=s.Q,e.addData(p,g,y,r,i);break;case"t":g=r,y=i,E=e.len(),D=e.data,o===s.Q&&(g+=r-D[E-4],y+=i-D[E-3]),r+=h[m++],i+=h[m++],p=s.Q,e.addData(p,g,y,r,i);break;case"A":_=h[m++],x=h[m++],S=h[m++],b=h[m++],T=h[m++],C=r,A=i,r=h[m++],i=h[m++],p=s.A,nS(C,A,r,i,b,T,_,x,S,p,e);break;case"a":_=h[m++],x=h[m++],S=h[m++],b=h[m++],T=h[m++],C=r,A=i,r+=h[m++],i+=h[m++],p=s.A,nS(C,A,r,i,b,T,_,x,S,p,e);break}}(c==="z"||c==="Z")&&(p=s.Z,e.addData(p),r=n,i=a),o=p}return e.toStatic(),e}var aS=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(oe);function oS(t){return t.setData!=null}function sS(t,e){var r=wI(t),i=N({},e);return i.buildPath=function(n){var a=oS(n);if(a&&n.canSave()){n.appendPath(r);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&r.rebuildPath(o,1)}},i.applyTransform=function(n){Cv(r,n),this.dirtyShape()},i}function lS(t,e){return new aS(sS(t,e))}function uS(t,e){var r=sS(t,e),i=(function(n){L(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(aS);return i}function fS(t,e){for(var r=[],i=t.length,n=0;n<i;n++){var a=t[n];r.push(a.getUpdatedPathProxy(!0))}var o=new oe(e);return o.createPathProxy(),o.buildPath=function(s){if(oS(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var CI=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})();var cS=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new CI},e.prototype.buildPath=function(r,i){r.moveTo(i.cx+i.r,i.cy),r.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e})(oe);cS.prototype.type="circle";var va=cS;var EI=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})();var pS=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new EI},e.prototype.buildPath=function(r,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*n,f=l*n;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},e})(oe);pS.prototype.type="ellipse";var gl=pS;var dS=Math.PI,Dv=dS*2,ma=Math.sin,Lo=Math.cos,AI=Math.acos,wt=Math.atan2,hS=Math.abs,_l=Math.sqrt,yl=Math.max,fi=Math.min,Yr=1e-4;function DI(t,e,r,i,n,a,o,s){var l=r-t,u=i-e,f=o-n,c=s-a,p=c*l-f*u;if(!(p*p<Yr))return p=(f*(e-a)-c*(t-n))/p,[t+p*l,e+p*u]}function Af(t,e,r,i,n,a,o){var s=t-r,l=e-i,u=(o?a:-a)/_l(s*s+l*l),f=u*l,c=-u*s,p=t+f,h=e+c,d=r+f,v=i+c,m=(p+d)/2,g=(h+v)/2,y=d-p,_=v-h,x=y*y+_*_,S=n-a,b=p*v-d*h,T=(_<0?-1:1)*_l(yl(0,S*S*x-b*b)),C=(b*_-y*T)/x,A=(-b*y-_*T)/x,E=(b*_+y*T)/x,D=(-b*y+_*T)/x,O=C-m,M=A-g,I=E-m,R=D-g;return O*O+M*M>I*I+R*R&&(C=E,A=D),{cx:C,cy:A,x0:-f,y0:-c,x1:C*(n/S-1),y1:A*(n/S-1)}}function MI(t){var e;if(P(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function vS(t,e){var r,i=yl(e.r,0),n=yl(e.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,p=!!e.clockwise,h=hS(u-l),d=h>Dv&&h%Dv;if(d>Yr&&(h=d),!(i>Yr))t.moveTo(f,c);else if(h>Dv-Yr)t.moveTo(f+i*Lo(l),c+i*ma(l)),t.arc(f,c,i,l,u,!p),n>Yr&&(t.moveTo(f+n*Lo(u),c+n*ma(u)),t.arc(f,c,n,u,l,p));else{var v=void 0,m=void 0,g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0,T=void 0,C=void 0,A=void 0,E=void 0,D=void 0,O=void 0,M=void 0,I=void 0,R=i*Lo(l),k=i*ma(l),W=n*Lo(u),z=n*ma(u),X=h>Yr;if(X){var $=e.cornerRadius;$&&(r=MI($),v=r[0],m=r[1],g=r[2],y=r[3]);var K=hS(i-n)/2;if(_=fi(K,g),x=fi(K,y),S=fi(K,v),b=fi(K,m),A=T=yl(_,x),E=C=yl(S,b),(T>Yr||C>Yr)&&(D=i*Lo(u),O=i*ma(u),M=n*Lo(l),I=n*ma(l),h<dS)){var te=DI(R,k,M,I,D,O,W,z);if(te){var ie=R-te[0],q=k-te[1],me=D-te[0],Se=O-te[1],Mt=1/ma(AI((ie*me+q*Se)/(_l(ie*ie+q*q)*_l(me*me+Se*Se)))/2),kr=_l(te[0]*te[0]+te[1]*te[1]);A=fi(T,(i-kr)/(Mt+1)),E=fi(C,(n-kr)/(Mt-1))}}}if(!X)t.moveTo(f+R,c+k);else if(A>Yr){var Pe=fi(g,A),tt=fi(y,A),de=Af(M,I,R,k,i,Pe,p),be=Af(D,O,W,z,i,tt,p);t.moveTo(f+de.cx+de.x0,c+de.cy+de.y0),A<T&&Pe===tt?t.arc(f+de.cx,c+de.cy,A,wt(de.y0,de.x0),wt(be.y0,be.x0),!p):(Pe>0&&t.arc(f+de.cx,c+de.cy,Pe,wt(de.y0,de.x0),wt(de.y1,de.x1),!p),t.arc(f,c,i,wt(de.cy+de.y1,de.cx+de.x1),wt(be.cy+be.y1,be.cx+be.x1),!p),tt>0&&t.arc(f+be.cx,c+be.cy,tt,wt(be.y1,be.x1),wt(be.y0,be.x0),!p))}else t.moveTo(f+R,c+k),t.arc(f,c,i,l,u,!p);if(!(n>Yr)||!X)t.lineTo(f+W,c+z);else if(E>Yr){var Pe=fi(v,E),tt=fi(m,E),de=Af(W,z,D,O,n,-tt,p),be=Af(R,k,M,I,n,-Pe,p);t.lineTo(f+de.cx+de.x0,c+de.cy+de.y0),E<C&&Pe===tt?t.arc(f+de.cx,c+de.cy,E,wt(de.y0,de.x0),wt(be.y0,be.x0),!p):(tt>0&&t.arc(f+de.cx,c+de.cy,tt,wt(de.y0,de.x0),wt(de.y1,de.x1),!p),t.arc(f,c,n,wt(de.cy+de.y1,de.cx+de.x1),wt(be.cy+be.y1,be.cx+be.x1),p),Pe>0&&t.arc(f+be.cx,c+be.cy,Pe,wt(be.y1,be.x1),wt(be.y0,be.x0),!p))}else t.lineTo(f+W,c+z),t.arc(f,c,n,u,l,p)}t.closePath()}}}var II=(function(){function t(){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 t})();var mS=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new II},e.prototype.buildPath=function(r,i){vS(r,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(oe);mS.prototype.type="sector";var ci=mS;var LI=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})();var gS=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new LI},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},e})(oe);gS.prototype.type="ring";var xl=gS;function Mv(t,e,r,i){var n=[],a=[],o=[],s=[],l,u,f,c;if(i){f=[1/0,1/0],c=[-1/0,-1/0];for(var p=0,h=t.length;p<h;p++)mr(f,f,t[p]),gr(c,c,t[p]);mr(f,f,i[0]),gr(c,c,i[1])}for(var p=0,h=t.length;p<h;p++){var d=t[p];if(r)l=t[p?p-1:h-1],u=t[(p+1)%h];else if(p===0||p===h-1){n.push(Ph(t[p]));continue}else l=t[p-1],u=t[p+1];Rh(a,u,l),Ps(a,a,e);var v=Rs(d,l),m=Rs(d,u),g=v+m;g!==0&&(v/=g,m/=g),Ps(o,a,-v),Ps(s,a,m);var y=Tu([],d,o),_=Tu([],d,s);i&&(gr(y,y,f),mr(y,y,c),gr(_,_,f),mr(_,_,c)),n.push(y),n.push(_)}return r&&n.push(n.shift()),n}function Df(t,e,r){var i=e.smooth,n=e.points;if(n&&n.length>=2){if(i){var a=Mv(n,i,r,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=n[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;s<c;s++)t.lineTo(n[s][0],n[s][1])}r&&t.closePath()}}var NI=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})();var _S=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new NI},e.prototype.buildPath=function(r,i){Df(r,i,!0)},e})(oe);_S.prototype.type="polygon";var Sl=_S;var PI=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})();var xS=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new PI},e.prototype.buildPath=function(r,i){Df(r,i,!1)},e})(oe);xS.prototype.type="polyline";var bl=xS;var RI={},kI=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})();var SS=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new kI},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=df(RI,i,this.style);n=l.x1,a=l.y1,o=l.x2,s=l.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(r.moveTo(n,a),u<1&&(o=n*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var i=this.shape;return[i.x1*(1-r)+i.x2*r,i.y1*(1-r)+i.y2*r]},e})(oe);SS.prototype.type="line";var sr=SS;var Yt=[],BI=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function bS(t,e,r){var i=t.cpx2,n=t.cpy2;return i!=null||n!=null?[(r?id:Be)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?id:Be)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?nd:at)(t.x1,t.cpx1,t.x2,e),(r?nd:at)(t.y1,t.cpy1,t.y2,e)]}var wS=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new BI},e.prototype.buildPath=function(r,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,c=i.cpy2,p=i.percent;p!==0&&(r.moveTo(n,a),f==null||c==null?(p<1&&(fo(n,l,o,p,Yt),l=Yt[1],o=Yt[2],fo(a,u,s,p,Yt),u=Yt[1],s=Yt[2]),r.quadraticCurveTo(l,u,o,s)):(p<1&&(uo(n,l,f,o,p,Yt),l=Yt[1],f=Yt[2],o=Yt[3],uo(a,u,c,s,p,Yt),u=Yt[1],c=Yt[2],s=Yt[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return bS(this.shape,r,!1)},e.prototype.tangentAt=function(r){var i=bS(this.shape,r,!0);return Uh(i,i)},e})(oe);wS.prototype.type="bezier-curve";var wl=wS;var UI=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})();var TS=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new UI},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+n,c*o+a),r.arc(n,a,o,s,l,!u)},e})(oe);TS.prototype.type="arc";var ga=TS;var zI=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,i=this.shapeChanged(),n=0;n<r.length;n++)i=i||r[n].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<r.length;n++)r[n].path||r[n].createPathProxy(),r[n].path.setScale(i[0],i[1],r[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(r,n[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],i=0;i<r.length;i++)r[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),oe.prototype.getBoundingRect.call(this)},e})(oe),Mf=zI;var FI=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),Of=FI;var VI=(function(t){L(e,t);function e(r,i,n,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=i??0,l.x2=n??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e})(Of),No=VI;var HI=(function(t){L(e,t);function e(r,i,n,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return e})(Of),If=HI;var Ov=Math.min,GI=Math.max,Lf=Math.abs,ya=[0,0],_a=[0,0],ct=Qh(),Nf=ct.minTv,Pf=ct.maxTv,WI=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new Ee;for(var i=0;i<2;i++)this._axes[i]=new Ee;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var i=this._corners,n=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,l),i[3].set(a,l),r)for(var u=0;u<4;u++)i[u].transform(r);Ee.sub(n[0],i[1],i[0]),Ee.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(i[0])},t.prototype.intersect=function(e,r,i){var n=!0,a=!r;return r&&Ee.set(r,0,0),ct.reset(i,!a),!this._intersectCheckOneSide(this,e,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(n=!1,a)||!a&&!ct.negativeSize&&Ee.copy(r,n?ct.useDir?ct.dirMinTv:Nf:Pf),n},t.prototype._intersectCheckOneSide=function(e,r,i,n){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,ya),e._getProjMinMaxOnAxis(o,r._corners,_a),ct.negativeSize||ya[1]<_a[0]||ya[0]>_a[1]){if(a=!1,ct.negativeSize||i)return a;var l=Lf(_a[0]-ya[1]),u=Lf(ya[0]-_a[1]);Ov(l,u)>Pf.len()&&(l<u?Ee.scale(Pf,s,-l*n):Ee.scale(Pf,s,u*n))}else if(!i){var l=Lf(_a[0]-ya[1]),u=Lf(ya[0]-_a[1]);(ct.useDir||Ov(l,u)<Nf.len())&&((l<u||!ct.bidirectional)&&(Ee.scale(Nf,s,l*n),ct.useDir&&ct.calcDirMTV()),(l>=u||!ct.bidirectional)&&(Ee.scale(Nf,s,-u*n),ct.useDir&&ct.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,i){for(var n=this._axes[e],a=this._origin,o=r[0].dot(n)+a[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(n)+a[e];s=Ov(f,s),l=GI(f,l)}i[0]=s+ct.touchThreshold,i[1]=l-ct.touchThreshold,ct.negativeSize=i[1]<i[0]},t})(),Rf=WI;var Iv=0,CS=1,ES=2,AS=1,Po=0;var YI=[],XI=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=CS,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,i){r.call(i,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,i){i?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,i){i=i||!1;for(var n=0;n<r.length;n++)this.addDisplayable(r[n],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var i=this._cursor;i<this._displayables.length;i++)r&&r(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)r&&r(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var i=this._displayables[r];i.parent=this,i.update(),i.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var i=this._temporaryDisplayables[r];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new j(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(YI)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,i))return!0}return!1},e})(ni),kf=XI;var qI=ae();function KI(t,e,r,i,n){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,c=void 0;i?(u=Y(i.duration,200),f=Y(i.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),G(c)&&(c=c(r,n)),G(u)&&(u=u(r));var p={duration:u||0,delay:c,easing:f};return p}else return null}function Lv(t,e,r,i,n,a,o){var s=!1,l;G(n)?(o=a,a=n,n=null):F(n)&&(a=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=KI(t,i,n,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var c=f.duration,p=f.delay,h=f.easing,d={duration:c,delay:p||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function He(t,e,r,i,n,a){Lv("update",t,e,r,i,n,a)}function Tt(t,e,r,i,n,a){Lv("enter",t,e,r,i,n,a)}function xa(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function Ro(t,e,r,i,n,a){xa(t)||Lv("leave",t,e,r,i,n,a)}function DS(t,e,r,i){t.removeTextContent(),t.removeTextGuideLine(),Ro(t,{style:{opacity:0}},e,r,i)}function ko(t,e,r){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(n){n.isGroup||DS(n,e,r,i)}):DS(t,e,r,i)}function Bf(t){qI(t).oldStyle=t.style}var Pv={},Ii=["x","y"],Sa=["width","height"],kv=0,Bv=1,Cl=2;function Uv(t){return oe.extend(t)}var ZI=uS;function zv(t,e){return ZI(t,e)}function lr(t,e){Pv[t]=e}function Fv(t){if(Pv.hasOwnProperty(t))return Pv[t]}function Bo(t,e,r,i){var n=lS(t,e);return r&&(i==="center"&&(r=IS(r,n.getBoundingRect())),zf(n,r)),n}function El(t,e,r){var i=new Wt({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(r==="center"){var a={width:n.width,height:n.height};i.setStyle(IS(e,a))}}});return i}function IS(t,e){var r=e.width/e.height,i=t.height*r,n;i<=t.width?n=t.height:(i=t.width,n=i/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var Vv=fS;function zf(t,e){if(t.applyTransform){var r=t.getBoundingRect(),i=r.calculateTransform(e);t.applyTransform(i)}}function ba(t,e){return df(t,t,{lineWidth:e}),t}function jI(t,e){return vf(t,t,e),t}var $I=on;function Hv(t,e){for(var r=yr([]);t&&t!==e;)Ur(r,t.getLocalTransform(),r),t=t.parent;return r}function Ff(t,e,r){return e&&!We(e)&&(e=go.getLocalTransform(e)),r&&(e=Jt([],e)),Xe([],t,e)}function QI(t,e,r){var i=e[4]===0||e[5]===0||e[0]===0?1:Le(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:Le(2*e[4]/e[2]),a=[t==="left"?-i:t==="right"?i:0,t==="top"?-n:t==="bottom"?n:0];return a=Ff(a,e,r),Le(a[0])>Le(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function MS(t){return!t.isGroup}function JI(t){return t.shape!=null}function Gv(t,e,r){if(!t||!e)return;function i(o){var s={};return o.traverse(function(l){MS(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return JI(o)&&(s.shape=Q(o.shape)),s}var a=i(t);e.traverse(function(o){if(MS(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),He(o,l,r,he(o).dataIndex)}}})}function Wv(t,e){return U(t,function(r){var i=r[0];i=ce(i,e.x),i=Ue(i,e.x+e.width);var n=r[1];return n=ce(n,e.y),n=Ue(n,e.y+e.height),[i,n]})}function Yv(t,e){var r=ce(t.x,e.x),i=Ue(t.x+t.width,e.x+e.width),n=ce(t.y,e.y),a=Ue(t.y+t.height,e.y+e.height);if(i>=r&&a>=n)return{x:r,y:n,width:i-r,height:a-n}}function wa(t,e,r){var i=N({rectHover:!0},e),n=i.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(n.image=t.slice(8),re(n,r),new Wt(i)):Bo(t.replace("path://",""),i,r,"center")}function eL(t,e,r,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(LS(t,e,r,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function LS(t,e,r,i,n,a,o,s){var l=r-t,u=i-e,f=o-n,c=s-a,p=Nv(f,c,l,u);if(tL(p))return!1;var h=t-n,d=e-a,v=Nv(h,d,l,u)/p;if(v<0||v>1)return!1;var m=Nv(h,d,f,c)/p;return!(m<0||m>1)}function Nv(t,e,r,i){return t*i-r*e}function tL(t){return t<=1e-6&&t>=-1e-6}function Uo(t,e,r,i,n){return e==null||(le(e)?Ne[0]=Ne[1]=Ne[2]=Ne[3]=e:(Ne[0]=e[0],Ne[1]=e[1],Ne[2]=e[2],Ne[3]=e[3]),i&&(Ne[0]=ce(0,Ne[0]),Ne[1]=ce(0,Ne[1]),Ne[2]=ce(0,Ne[2]),Ne[3]=ce(0,Ne[3])),r&&(Ne[0]=-Ne[0],Ne[1]=-Ne[1],Ne[2]=-Ne[2],Ne[3]=-Ne[3]),OS(t,Ne,"x","width",3,1,n&&n[0]||0),OS(t,Ne,"y","height",0,2,n&&n[1]||0)),t}var Ne=[0,0,0,0];function OS(t,e,r,i,n,a,o){var s=e[a]+e[n],l=t[i];t[i]+=s,o=ce(0,Ue(o,l)),t[i]<o?(t[i]=o,t[r]+=e[n]>=0?-e[n]:e[a]>=0?l+e[a]:Le(s)>1e-8?(l-o)*e[n]/s:0):t[r]-=e[n]}function zo(t){var e=t.itemTooltipOption,r=t.componentModel,i=t.itemName,n=B(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&w(fe(l),function(f){Me(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=he(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:re({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function Rv(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Ta(t,e){if(t)if(P(t))for(var r=0;r<t.length;r++)Rv(t[r],e);else Rv(t,e)}function Vf(t){return!t||Le(t[1])<Uf&&Le(t[2])<Uf||Le(t[0])<Uf&&Le(t[3])<Uf}var Uf=1e-5;function Fo(t,e){return t?j.copy(t,e):e.clone()}function Hf(t,e){return e?Un(t||mt(),e):void 0}function Xv(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function rL(t){var e=-1/0,r=1/0;Rv(t,function(a){i(a),i(a.getTextContent()),i(a.getTextGuideLine())});function i(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(a.states[o[s]]);n(a)}}function n(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function qv(t,e,r){NS(t,e,r,-1/0)}function NS(t,e,r,i){if(t.ignoreModelZ)return i;var n=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=ce(NS(s[l],e,r,i),i);else t.z=e,t.zlevel=r,i=ce(t.z2||0,i);if(n&&(n.z=e,n.zlevel=r,isFinite(i)&&(n.z2=i+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function iL(t){return t.animation={duration:0},t}function nL(t,e){return e?Un(Tl.transform,e):yr(Tl.transform),Tl.decomposeTransform(),mo(t,Tl),t}var Tl=new go;Tl.transform=mt();function aL(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}lr("circle",va);lr("ellipse",gl);lr("sector",ci);lr("ring",xl);lr("polygon",Sl);lr("polyline",bl);lr("rect",_e);lr("line",sr);lr("bezierCurve",wl);lr("arc",ga);var Gf={};function oL(t,e){for(var r=0;r<Dr.length;r++){var i=Dr[r],n=e[i],a=t.ensureState(i);a.style=a.style||{},a.style.text=n}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function PS(t,e,r){var i=t.labelFetcher,n=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=G(t.defaultText)?t.defaultText(n,t,r):t.defaultText);for(var l={normal:s},u=0;u<Dr.length;u++){var f=Dr[u],c=e[f];l[f]=Y(i?i.getFormattedLabel(n,f,null,a,c&&c.get("formatter")):null,s)}return l}function un(t,e,r,i){r=r||Gf;for(var n=t instanceof Oe,a=!1,o=0;o<mv.length;o++){var s=e[mv[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=n?t:t.getTextContent();if(a){n||(l||(l=new Oe,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=PS(r,e),f=e.normal,c=!!f.getShallow("show"),p=Xr(f,i&&i.normal,r,!1,!n);p.text=u.normal,n||t.setTextConfig(RS(f,r,!1));for(var o=0;o<Dr.length;o++){var h=Dr[o],s=e[h];if(s){var d=l.ensureState(h),v=!!Y(s.getShallow("show"),c);if(v!==c&&(d.ignore=!v),d.style=Xr(s,i&&i[h],r,!0,!n),d.style.text=u[h],!n){var m=t.ensureState(h);m.textConfig=RS(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(p.x=l.style.x),l.style.y!=null&&(p.y=l.style.y),l.ignore=!c,l.useStyle(p),l.dirty(),r.enableTextSetter&&(Vo(l).setLabelText=function(g){var y=PS(r,e,g);oL(l,y)})}else l&&(l.ignore=!0);t.dirty()}function fn(t,e){e=e||"label";for(var r={normal:t.getModel(e)},i=0;i<Dr.length;i++){var n=Dr[i];r[n]=t.getModel([n,e])}return r}function Xr(t,e,r,i,n){var a={};return sL(a,t,r,i,n),e&&N(a,e),a}function RS(t,e,r){e=e||{};var i={},n,a=t.getShallow("rotate"),o=Y(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return n=t.getShallow("position")||(r?null:"inside"),n==="outside"&&(n=e.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(i.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(i.layoutRect=e.layoutRect),i}function sL(t,e,r,i,n){r=r||Gf;var a=e.ecModel,o=a&&a.option.textStyle,s=lL(e),l;if(s){l={};var u="richInheritPlainLabel",f=Y(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var p=e.getModel(["rich",c]);zS(l[c]={},p,o,e,f,r,i,n,!1,!0)}}l&&(t.rich=l);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var v=t,m=e.get("minMargin");if(m!=null)m=le(m)?m/2:0,v.margin=[m,m,m,m],v.__marginType=Ca.minMargin;else{var g=e.get("textMargin");g!=null&&(v.margin=kn(g),v.__marginType=Ca.textMargin)}zS(t,e,o,null,null,r,i,n,!0,!1)}function lL(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Gf).rich;if(r){e=e||{};for(var i=fe(r),n=0;n<i.length;n++){var a=i[n];e[a]=1}}t=t.parentModel}return e}var kS=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],BS=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],US=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function zS(t,e,r,i,n,a,o,s,l,u){r=!o&&r||Gf;var f=a&&a.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),h=Y(e.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(p==="inherit"||p==="auto")&&(f?p=f:p=null),s||(c=c||r.color,p=p||r.textBorderColor),c!=null&&(t.fill=c),p!=null&&(t.stroke=p);var d=Y(e.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(t.lineWidth=d);var v=Y(e.getShallow("textBorderType"),r.textBorderType);v!=null&&(t.lineDash=v);var m=Y(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);m!=null&&(t.lineDashOffset=m),!o&&h==null&&!u&&(h=a&&a.defaultOpacity),h!=null&&(t.opacity=h),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var g=0;g<kS.length;g++){var y=kS[g],_=n!==!1&&i?vr(e.getShallow(y),i.getShallow(y),r[y]):Y(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var g=0;g<BS.length;g++){var y=BS[g],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var x=e.getShallow("baseline");x!=null&&(t.verticalAlign=x)}if(!l||!a.disableBox){for(var g=0;g<US.length;g++){var y=US[g],_=e.getShallow(y);_!=null&&(t[y]=_)}var S=e.getShallow("borderType");S!=null&&(t.borderDash=S),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function FS(t,e){var r=e&&e.getModel("textStyle");return ut([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var Vo=ae();function VS(t,e,r,i){if(t){var n=Vo(t);n.prevValue=n.value,n.value=r;var a=e.normal;n.valueAnimation=a.get("valueAnimation"),n.valueAnimation&&(n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=e)}}var Ca={minMargin:1,textMargin:2};var uL=["textStyle","color"],Kv=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Zv=new Oe,fL=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(uL):null)},t.prototype.getFont=function(){return FS({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<Kv.length;i++)r[Kv[i]]=this.getShallow(Kv[i]);return Zv.useStyle(r),Zv.update(),Zv.getBoundingRect()},t})(),HS=fL;var jv=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],cL=ri(jv),GS=(function(){function t(){}return t.prototype.getLineStyle=function(e){return cL(this,e)},t})();var $v=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],pL=ri($v),WS=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return pL(this,e,r)},t})();var Ea=(function(){function t(e,r,i){this.parentModel=r,this.ecModel=i,this.option=e}return t.prototype.init=function(e,r,i){for(var n=[],a=3;a<arguments.length;a++)n[a-3]=arguments[a]},t.prototype.mergeOption=function(e,r){ue(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var i=this.option,n=i==null?i:i[e];if(n==null&&!r){var a=this.parentModel;a&&(n=a.getShallow(e))}return n},t.prototype.getModel=function(e,r){var i=e!=null,n=i?this.parsePath(e):null,a=i?this._doGet(n):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(Q(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!ee.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var i=this.option;if(!e)return i;for(var n=0;n<e.length&&!(e[n]&&(i=i&&typeof i=="object"?i[e[n]]:null,i==null));n++);return i==null&&r&&(i=r._doGet(this.resolveParentPath(e),r.parentModel)),i},t})();Eo(Ea);Y0(Ea);lt(Ea,GS);lt(Ea,WS);lt(Ea,X0);lt(Ea,HS);var Te=Ea;var hL=Math.round(Math.random()*10);function cn(t){return[t||"",hL++].join("_")}function YS(t){var e={};t.registerSubTypeDefaulter=function(r,i){var n=Gt(r);e[n.main]=i},t.determineSubType=function(r,i){var n=i.type;if(!n){var a=Gt(r).main;t.hasSubTypes(r)&&e[a]&&(n=e[a](i))}return n}}function XS(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,p={};for(w(a,function(y){p[y]=!0});c.length;){var h=c.pop(),d=f[h],v=!!p[h];v&&(s.call(l,h,d.originalDeps.slice()),delete p[h]),w(d.successor,v?g:m)}w(p,function(){var y="";throw new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function g(y){p[y]=!0,m(y)}};function r(a){var o={},s=[];return w(a,function(l){var u=i(o,l),f=u.originalDeps=e(l),c=n(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),w(c,function(p){ne(u.predecessor,p)<0&&u.predecessor.push(p);var h=i(o,p);ne(h.successor,p)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return w(a,function(l){ne(o,l)>=0&&s.push(l)}),s}}function Wf(t,e){return ue(ue({},t,!0),e,!0)}var qS={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}};var KS={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var Xf="ZH",Jv="EN",Ho=Jv,Yf={},em={},qf=ee.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ho).toUpperCase();return t.indexOf(Xf)>-1?Xf:Ho})():Ho;function Kf(t,e){t=t.toUpperCase(),em[t]=new Te(e),Yf[t]=e}function ZS(t){if(B(t)){var e=Yf[t.toUpperCase()]||{};return t===Xf||t===Jv?Q(e):ue(Q(e),Q(Yf[Ho]),!1)}else return ue(Q(t),Q(Yf[Ho]),!1)}function jS(t){return em[t]}function $S(){return em[Ho]}Kf(Jv,qS);Kf(Xf,KS);var dL=null;function Ve(){return dL}function Zf(t,e){var r=Ve(),i=e.breakOption,n=e.breakParsed;return!n&&r&&(n=r.parseAxisBreakOption(i,t)),n}function Aa(t){var e=t.brk;return e?e.breaks:[]}function Da(t){var e=t.brk;return e?e.hasBreaks():!1}var Qf=1e3,Jf=Qf*60,Go=Jf*60,ur=Go*24,tm=ur*365,vL={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},$f={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},mL="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",jf="{yyyy}-{MM}-{dd}",rm={year:"{yyyy}",month:"{yyyy}-{MM}",day:jf,hour:jf+" "+$f.hour,minute:jf+" "+$f.minute,second:jf+" "+$f.second,millisecond:mL},Xt=["year","month","day","hour","minute","second","millisecond"],QS=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function JS(t){return!B(t)&&!G(t)?gL(t):t}function gL(t){t=t||{};var e={},r=!0;return w(Xt,function(i){r&&(r=t[i]==null)}),w(Xt,function(i,n){var a=t[i];e[i]={};for(var o=null,s=n;s>=0;s--){var l=Xt[s],u=F(a)&&!P(a)?a[l]:a,f=void 0;P(u)?(f=u.slice(),o=f[0]||""):B(u)?(o=u,f=[o]):(o==null?o=$f[i]:vL[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[i][l]=f}}),e}function Ct(t,e){return t+="","0000".substr(0,e-t.length)+t}function Wo(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function eb(t){return t===Wo(t)}function tb(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Li(t,e,r,i){var n=It(t),a=n[im(r)](),o=n[ec(r)]()+1,s=Math.floor((o-1)/3)+1,l=n[tc(r)](),u=n["get"+(r?"UTC":"")+"Day"](),f=n[rc(r)](),c=(f-1)%12+1,p=n[ic(r)](),h=n[nc(r)](),d=n[ac(r)](),v=f>=12?"pm":"am",m=v.toUpperCase(),g=i instanceof Te?i:jS(i||qf)||$S(),y=g.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),S=y.get("dayOfWeek"),b=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,v+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Ct(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,Ct(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ct(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ct(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ct(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Ct(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Ct(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ct(d,3)).replace(/{S}/g,d+"")}function rb(t,e,r,i,n){var a=null;if(B(r))a=r;else if(G(r)){var o={time:t.time,level:t.time?t.time.level:0},s=Ve();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=Ma(t.value,n);a=r[f][f][0]}}return Li(new Date(t.value),a,n,i)}function Ma(t,e){var r=It(t),i=r[ec(e)]()+1,n=r[tc(e)](),a=r[rc(e)](),o=r[ic(e)](),s=r[nc(e)](),l=r[ac(e)](),u=l===0,f=u&&s===0,c=f&&o===0,p=c&&a===0,h=p&&n===1,d=h&&i===1;return d?"year":h?"month":p?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Yo(t,e,r){switch(e){case"year":t[nm(r)](0);case"month":t[am(r)](1);case"day":t[om(r)](0);case"hour":t[sm(r)](0);case"minute":t[lm(r)](0);case"second":t[um(r)](0)}return t}function im(t){return t?"getUTCFullYear":"getFullYear"}function ec(t){return t?"getUTCMonth":"getMonth"}function tc(t){return t?"getUTCDate":"getDate"}function rc(t){return t?"getUTCHours":"getHours"}function ic(t){return t?"getUTCMinutes":"getMinutes"}function nc(t){return t?"getUTCSeconds":"getSeconds"}function ac(t){return t?"getUTCMilliseconds":"getMilliseconds"}function ib(t){return t?"setUTCFullYear":"setFullYear"}function nm(t){return t?"setUTCMonth":"setMonth"}function am(t){return t?"setUTCDate":"setDate"}function om(t){return t?"setUTCHours":"setHours"}function sm(t){return t?"setUTCMinutes":"setMinutes"}function lm(t){return t?"setUTCSeconds":"setSeconds"}function um(t){return t?"setUTCMilliseconds":"setMilliseconds"}function fm(t,e,r,i,n,a,o,s){var l=new Oe({style:{text:t,font:e,align:r,verticalAlign:i,padding:n,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function Al(t){if(!el(t))return B(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Xo(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,i){return i.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var pi=kn;function oc(t,e,r){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&ut(f)?f:"-"}function a(f){return $e(f)}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?It(t):t;if(isNaN(+l)){if(s)return"-"}else return Li(l,i,r)}if(e==="ordinal")return no(t)?n(t):le(t)&&a(t)?t+"":"-";var u=br(t);return a(u)?Al(u):no(t)?n(t):typeof t=="boolean"?t+"":"-"}var nb=["a","b","c","d","e","f","g"],cm=function(t,e){return"{"+t+(e??"")+"}"};function qo(t,e,r){P(e)||(e=[e]);var i=e.length;if(!i)return"";for(var n=e[0].$vars||[],a=0;a<n.length;a++){var o=nb[a];t=t.replace(cm(o),cm(o,0))}for(var s=0;s<i;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];t=t.replace(cm(nb[l],s),r?nt(u):u)}return t}function sc(t,e){var r=B(t)?{color:t,extraCssText:e}:t||{},i=r.color,n=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+nt(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+nt(i)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function ab(t,e,r){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
15
- yyyy`);var i=It(e),n=r?"getUTC":"get",a=i[n+"FullYear"](),o=i[n+"Month"]()+1,s=i[n+"Date"](),l=i[n+"Hours"](),u=i[n+"Minutes"](),f=i[n+"Seconds"](),c=i[n+"Milliseconds"]();return t=t.replace("MM",Ct(o,2)).replace("M",o).replace("yyyy",a).replace("yy",Ct(a%100+"",2)).replace("dd",Ct(s,2)).replace("d",s).replace("hh",Ct(l,2)).replace("h",l).replace("mm",Ct(u,2)).replace("m",u).replace("ss",Ct(f,2)).replace("s",f).replace("SSS",Ct(c,3)),t}function ob(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function qr(t,e){return e=e||"transparent",B(t)?t:F(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var lc={},hm={},yL=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=i(lc,!0),this._normalMasterList=i(hm,!1);function i(n,a){var o=[];return w(n,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){w(this._normalMasterList,function(i){i.update&&i.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){lc[e]=r;return}hm[e]=r},t.get=function(e){return hm[e]||lc[e]},t})();function _L(t){return!!lc[t]}var xL=1,sb=2;var SL=V();function fc(t){var e=t.getShallow("coord",!0),r=xL;if(e==null){var i=SL.get(t.type);i&&i.getCoord2&&(r=sb,e=i.getCoord2(t))}return{coord:e,from:r}}var Ko=0,uc=1,bL=2;function wL(t,e){var r=t.getShallow("coordinateSystem"),i=t.getShallow("coordinateSystemUsage",!0),n=i!=null,a=Ko;if(r){var o=t.mainType==="series";i==null&&(i=o?"data":"box"),i==="data"?(a=uc,o||(a=Ko)):i==="box"&&(a=bL,!o&&!_L(r)&&(a=Ko))}return{coordSysType:r,kind:a}}function lb(t){var e=t.targetModel,r=t.coordSysType,i=t.coordSysProvider,n=t.isDefaultDataCoordSys,a=t.allowNotFound,o=wL(e,!0),s=o.kind,l=o.coordSysType;if(n&&s!==uc&&(s=uc,l=r),s===Ko||l!==r)return Ko;var u=i(r,e);return u?(s===uc?e.coordinateSystem=u:e.boxCoordinateSystem=u,s):Ko}var Zo=yL;var hc=w,TL=["left","right","top","bottom","width","height"],cc=[["width","left","right"],["height","top","bottom"]];function dm(t,e,r,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),p=c&&c.getBoundingRect(),h,d;if(t==="horizontal"){var v=f.width+(p?-p.x+f.x:0);h=a+v,h>i||l.newline?(a=0,h=v,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(p?-p.y+f.y:0);d=o+m,d>n||l.newline?(a+=s+r,o=0,d=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=h+r:o=d+r)})}var Oa=dm,wG=Ce(dm,"vertical"),TG=Ce(dm,"horizontal");function ub(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function hi(t,e,r){r=pi(r||0);var i=e.width,n=e.height,a=Ke(t.left,i),o=Ke(t.top,n),s=Ke(t.right,i),l=Ke(t.bottom,n),u=Ke(t.width,i),f=Ke(t.height,n),c=r[2]+r[0],p=r[1]+r[3],h=t.aspect;switch(isNaN(u)&&(u=i-s-p-a),isNaN(f)&&(f=n-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>i/n?u=i*.8:f=n*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=i-s-u-p),isNaN(o)&&(o=n-l-f-c),t.left||t.right){case"center":a=i/2-u/2-r[3];break;case"right":a=i-u-p;break}switch(t.top||t.bottom){case"middle":case"center":o=n/2-f/2-r[0];break;case"bottom":o=n-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=i-p-a-(s||0)),isNaN(f)&&(f=n-c-o-(l||0));var d=new j((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,f);return d.margin=r,d}var pc={rect:1,point:2};function dc(t,e,r){var i,n,a,o=t.boxCoordinateSystem,s;if(o){var l=fc(t),u=l.coord,f=l.from;if(o.dataToLayout){a=pc.rect,s=f;var c=o.dataToLayout(u);i=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=pc.point,s=f,n=o.dataToPoint(u))}return a==null&&(a=pc.rect),a===pc.rect&&(i||(i={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),n=[i.x+i.width/2,i.y+i.height/2]),{type:a,refContainer:i,refPoint:n,boxCoordFrom:s}}function pn(t){var e=t.layoutMode||t.constructor.layoutMode;return F(e)?e:e?{type:e}:null}function fr(t,e,r){var i=r&&r.ignoreSize;!P(i)&&(i=[i,i]);var n=o(cc[0],0),a=o(cc[1],1);l(cc[0],t,n),l(cc[1],t,a);function o(u,f){var c={},p=0,h={},d=0,v=2;if(hc(u,function(y){h[y]=t[y]}),hc(u,function(y){Me(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&p++,s(h,y)&&d++}),i[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(d===v||!p)return h;if(p>=v)return c;for(var m=0;m<u.length;m++){var g=u[m];if(!Me(c,g)&&Me(t,g)){c[g]=t[g];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){hc(u,function(p){f[p]=c[p]})}}function di(t){return CL({},t)}function CL(t,e){return e&&t&&hc(TL,function(r){Me(e,r)&&(t[r]=e[r])}),t}var EL=ae(),jo=(function(t){L(e,t);function e(r,i,n){var a=t.call(this,r,i,n)||this;return a.uid=cn("ec_cpt_model"),a}return e.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=pn(this),a=n?di(r):{},o=i.getTheme();ue(r,o.get(this.mainType)),ue(r,this.getDefaultOption()),n&&fr(r,a,n)},e.prototype.mergeOption=function(r,i){ue(this.option,r,!0);var n=pn(this);n&&fr(this.option,r,n)},e.prototype.optionUpdated=function(r,i){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!W0(r))return r.defaultOption;var i=EL(this);if(!i.defaultOption){for(var n=[],a=r;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},l=n.length-1;l>=0;l--)s=ue(s,n[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(r,i){var n=r+"Index",a=r+"Id";return en(this.ecModel,r,{index:this.get(n,!0),id:this.get(a,!0)},i)},e.prototype.getBoxLayoutParams=function(){return ub(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})(Te);uf(jo,Te);tn(jo);YS(jo);XS(jo,AL);function AL(t){var e=[];return w(jo.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=U(e,function(r){return Gt(r).main}),t!=="dataset"&&ne(e,"dataset")<=0&&e.unshift("dataset"),e}var xe=jo;var Ia={color:{},darkColor:{},size:{}},Ge=Ia.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};N(Ge,{primary:Ge.neutral80,secondary:Ge.neutral70,tertiary:Ge.neutral60,quaternary:Ge.neutral50,disabled:Ge.neutral20,border:Ge.neutral30,borderTint:Ge.neutral20,borderShade:Ge.neutral40,background:Ge.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Ge.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Ge.neutral70,axisLineTint:Ge.neutral40,axisTick:Ge.neutral70,axisTickMinor:Ge.neutral60,axisLabel:Ge.neutral70,axisSplitLine:Ge.neutral15,axisMinorSplitLine:Ge.neutral05});for(hn in Ge)Ge.hasOwnProperty(hn)&&(mm=Ge[hn],hn==="theme"?Ia.darkColor.theme=Ge.theme.slice():hn==="highlight"?Ia.darkColor.highlight="rgba(255,231,130,0.4)":hn.indexOf("accent")===0?Ia.darkColor[hn]=po(mm,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):Ia.darkColor[hn]=po(mm,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)}));var mm,hn;Ia.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Z=Ia;var fb="";typeof navigator<"u"&&(fb=navigator.platform||"");var $o="rgba(0, 0, 0, 0.2)",cb=Z.color.theme[0],DL=po(cb,null,null,.9),vc={darkMode:"auto",colorBy:"series",color:Z.color.theme,gradientColor:[DL,cb],aria:{decal:{decals:[{color:$o,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:$o,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:$o,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:$o,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:$o,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:$o,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:fb.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 Pt={Must:1,Might:2,Not:3},pb=ae();function hb(t){pb(t).datasetMap=V()}function db(t,e,r){var i={},n=gm(e);if(!n||!t)return i;var a=[],o=[],s=e.ecModel,l=pb(s).datasetMap,u=n.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),w(t,function(v,m){var g=F(v)?v:t[m]={name:v};g.type==="ordinal"&&f==null&&(f=m,c=d(g)),i[g.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});w(t,function(v,m){var g=v.name,y=d(v);if(f==null){var _=p.valueWayDim;h(i[g],_,y),h(o,_,y),p.valueWayDim+=y}else if(f===m)h(i[g],0,y),h(a,0,y);else{var _=p.categoryWayDim;h(i[g],_,y),h(o,_,y),p.categoryWayDim+=y}});function h(v,m,g){for(var y=0;y<g;y++)v.push(m+y)}function d(v){var m=v.dimsDef;return m?m.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function gm(t){var e=t.get("data",!0);if(!e)return en(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},gt).models[0]}function vb(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:en(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},gt).models}function mc(t,e){return ML(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function ML(t,e,r,i,n,a){var o,s=5;if(Fe(t))return Pt.Not;var l,u;if(i){var f=i[a];F(f)?(l=f.name,u=f.type):B(f)&&(l=f)}if(u!=null)return u==="ordinal"?Pt.Must:Pt.Not;if(e===Qe){var c=t;if(r===ui){for(var p=c[a],h=0;h<(p||[]).length&&h<s;h++)if((o=x(p[n+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var d=c[n+h];if(d&&(o=x(d[a]))!=null)return o}}else if(e===Nt){var v=t;if(!l)return Pt.Not;for(var h=0;h<v.length&&h<s;h++){var m=v[h];if(m&&(o=x(m[l]))!=null)return o}}else if(e===nr){var g=t;if(!l)return Pt.Not;var p=g[l];if(!p||Fe(p))return Pt.Not;for(var h=0;h<p.length&&h<s;h++)if((o=x(p[h]))!=null)return o}else if(e===ot)for(var y=t,h=0;h<y.length&&h<s;h++){var m=y[h],_=Ai(m);if(!P(_))return Pt.Not;if((o=x(_[a]))!=null)return o}function x(S){var b=B(S);if(S!=null&&isFinite(Number(S))&&S!=="")return b?Pt.Might:Pt.Not;if(b&&S!=="-")return Pt.Must}return Pt.Not}var OL=V();function mb(t,e,r){var i=OL.get(e);if(!i)return r;var n=i(t);if(!n)return r;if(0)for(var a;a<n.length;a++);return r.concat(n)}var gb=ae(),GG=ae(),Dl=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,i){var n=ze(this.get("color",!0)),a=this.get("colorLayer",!0);return LL(this,gb,n,a,e,r,i)},t.prototype.clearColorPalette=function(){NL(this,gb)},t})();function IL(t,e){for(var r=t.length,i=0;i<r;i++)if(t[i].length>e)return t[i];return t[r-1]}function LL(t,e,r,i,n,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!i?r:IL(i,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return n&&(u[n]=c),s.paletteIdx=(l+1)%f.length,c}}function NL(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var gc,Ml,yb,_b="\0_ec_inner",PL=1;var wb=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,i,n,a,o,s){a=a||{},this.option=null,this._theme=new Te(a),this._locale=new Te(o),this._optionManager=s},e.prototype.setOption=function(r,i,n){var a=bb(i);this._optionManager.setOption(r,n,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,i){return this._resetOption(r,bb(i))},e.prototype._resetOption=function(r,i){var n=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?yb(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&w(l,function(u){n=!0,this._mergeOption(u,i)},this)}return n},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=V(),u=i&&i.replaceMergeMainTypeMap;hb(this),w(r,function(c,p){c!=null&&(xe.hasClass(p)?p&&(s.push(p),l.set(p,!0)):n[p]=n[p]==null?Q(c):ue(n[p],c,!0))}),u&&u.each(function(c,p){xe.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),xe.topologicalTravel(s,xe.getAllClassMainTypes(),f,this);function f(c){var p=mb(this,c,ze(r[c])),h=a.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",v=I0(h,p,d);N0(v,c,xe),n[c]=null,a.set(c,null),o.set(c,0);var m=[],g=[],y=0,_,x;w(v,function(S,b){var T=S.existing,C=S.newOption;if(!C)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var A=c==="series",E=xe.getClass(c,S.keyInfo.subType,!A);if(!E){if(0)var D,O;return}if(c==="tooltip"){if(_)return;_=!0}if(T&&T.constructor===E)T.name=S.keyInfo.name,T.mergeOption(C,this),T.optionUpdated(C,!1);else{var M=N({componentIndex:b},S.keyInfo);T=new E(C,this,this,M),N(T,M),S.brandNew&&(T.__requireNewView=!0),T.init(C,this,this),T.optionUpdated(null,!0)}}T?(m.push(T.option),g.push(T),y++):(m.push(void 0),g.push(void 0))},this),n[c]=m,a.set(c,g),o.set(c,y),c==="series"&&gc(this)}this._seriesIndices||gc(this)},e.prototype.getOption=function(){var r=Q(this.option);return w(r,function(i,n){if(xe.hasClass(n)){for(var a=ze(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!bo(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[n]=a}}),delete r[_b],r},e.prototype.setTheme=function(r){this._theme=new Te(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,i){var n=this._componentsMap.get(r);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(r){var i=r.mainType;if(!i)return[];var n=r.index,a=r.id,o=r.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return n!=null?(l=[],w(ze(n),function(u){s[u]&&l.push(s[u])})):a!=null?l=xb("id",a,s):o!=null?l=xb("name",o,s):l=De(s,function(u){return!!u}),Sb(l,r)},e.prototype.findComponents=function(r){var i=r.query,n=r.mainType,a=s(i),o=a?this.queryComponents(a):De(this._componentsMap.get(n),function(u){return!!u});return l(Sb(o,r));function s(u){var f=n+"Index",c=n+"Id",p=n+"Name";return u&&(u[f]!=null||u[c]!=null||u[p]!=null)?{mainType:n,index:u[f],id:u[c],name:u[p]}:null}function l(u){return r.filter?De(u,r.filter):u}},e.prototype.eachComponent=function(r,i,n){var a=this._componentsMap;if(G(r)){var o=i,s=r;a.each(function(c,p){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,p,d,d.componentIndex)}})}else for(var l=B(r)?a.get(r):F(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(n,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var i=rr(r,null);return De(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return De(this._componentsMap.get("series"),function(i){return!!i&&i.subType===r})},e.prototype.getSeries=function(){return De(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,i){Ml(this),w(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];r.call(i,a,n)},this)},e.prototype.eachRawSeries=function(r,i){w(this._componentsMap.get("series"),function(n){n&&r.call(i,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(r,i,n){Ml(this),w(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&i.call(n,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,i,n){return w(this.getSeriesByType(r),i,n)},e.prototype.isSeriesFiltered=function(r){return Ml(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,i){Ml(this);var n=[];w(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=V(n)},e.prototype.restoreData=function(r){gc(this);var i=this._componentsMap,n=[];i.each(function(a,o){xe.hasClass(o)&&n.push(o)}),xe.topologicalTravel(n,xe.getAllClassMainTypes(),function(a){w(i.get(a),function(o){o&&(a!=="series"||!RL(o,r))&&o.restoreData()})})},e.internalField=(function(){gc=function(r){var i=r._seriesIndices=[];w(r._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),r._seriesIndicesMap=V(i)},Ml=function(r){},yb=function(r,i){r.option={},r.option[_b]=PL,r._componentsMap=V({series:[]}),r._componentsCount=V();var n=i.aria;F(n)&&n.enabled==null&&(n.enabled=!0),kL(i,r._theme.option),ue(i,vc,!1),r._mergeOption(i,null)}})(),e})(Te);function RL(t,e){if(e){var r=e.seriesIndex,i=e.seriesId,n=e.seriesName;return r!=null&&t.componentIndex!==r||i!=null&&t.id!==i||n!=null&&t.name!==n}}function kL(t,e){var r=t.color&&!t.colorLayer;w(e,function(i,n){n==="colorLayer"&&r||n==="color"&&t.color||xe.hasClass(n)||(typeof i=="object"?t[n]=t[n]?ue(t[n],i,!1):Q(i):t[n]==null&&(t[n]=i))})}function xb(t,e,r){if(P(e)){var i=V();return w(e,function(a){if(a!=null){var o=rr(a,null);o!=null&&i.set(a,!0)}}),De(r,function(a){return a&&i.get(a[t])})}else{var n=rr(e,null);return De(r,function(a){return a&&n!=null&&a[t]===n})}}function Sb(t,e){return e.hasOwnProperty("subType")?De(t,function(r){return r&&r.subType===e.subType}):t}function bb(t){var e=V();return t&&w(ze(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}lt(wb,Dl);var yc=wb;var BL=/^(min|max)?(.+)$/,UL=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,i){e&&(w(ze(e.series),function(o){o&&o.data&&Fe(o.data)&&Bn(o.data)}),w(ze(e.dataset),function(o){o&&o.source&&Fe(o.source)&&Bn(o.source)})),e=Q(e);var n=this._optionBackup,a=zL(e,r,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Q(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,i=this._timelineOptions;if(i.length){var n=e.getComponent("timeline");n&&(r=Q(i[n.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var l=0,u=n.length;l<u;l++)FL(n[l].query,r,i)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!HL(o,this._currentMediaIndices)&&(s=U(o,function(f){return Q(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},t})();function zL(t,e,r){var i=[],n,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(t.options=t.media=null),a=t),f&&P(u)&&w(u,function(h){h&&h.option&&(h.query?i.push(h):n||(n=h))}),p(a),w(l,function(h){return p(h)}),w(i,function(h){return p(h.option)});function p(h){w(e,function(d){d(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function FL(t,e,r){var i={width:e,height:r,aspectratio:e/r},n=!0;return w(t,function(a,o){var s=o.match(BL);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();VL(i[u],a,l)||(n=!1)}}),n}function VL(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function HL(t,e){return t.join(",")===e.join(",")}var Tb=UL;var Kr=w,Il=F,Cb=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ym(t){var e=t&&t.itemStyle;if(e)for(var r=0,i=Cb.length;r<i;r++){var n=Cb[r],a=e.normal,o=e.emphasis;a&&a[n]&&(t[n]=t[n]||{},t[n].normal?ue(t[n].normal,a[n]):t[n].normal=a[n],a[n]=null),o&&o[n]&&(t[n]=t[n]||{},t[n].emphasis?ue(t[n].emphasis,o[n]):t[n].emphasis=o[n],o[n]=null)}}function Et(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,n=t[e].emphasis;i&&(r?(t[e].normal=t[e].emphasis=null,re(t[e],i)):t[e]=i),n&&(t.emphasis=t.emphasis||{},t.emphasis[e]=n,n.focus&&(t.emphasis.focus=n.focus),n.blurScope&&(t.emphasis.blurScope=n.blurScope))}}function Ol(t){Et(t,"itemStyle"),Et(t,"lineStyle"),Et(t,"areaStyle"),Et(t,"label"),Et(t,"labelLine"),Et(t,"upperLabel"),Et(t,"edgeLabel")}function Ze(t,e){var r=Il(t)&&t[e],i=Il(r)&&r.textStyle;if(i)for(var n=0,a=Bd.length;n<a;n++){var o=Bd[n];i.hasOwnProperty(o)&&(r[o]=i[o])}}function Mr(t){t&&(Ol(t),Ze(t,"label"),t.emphasis&&Ze(t.emphasis,"label"))}function GL(t){if(Il(t)){ym(t),Ol(t),Ze(t,"label"),Ze(t,"upperLabel"),Ze(t,"edgeLabel"),t.emphasis&&(Ze(t.emphasis,"label"),Ze(t.emphasis,"upperLabel"),Ze(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(ym(e),Mr(e));var r=t.markLine;r&&(ym(r),Mr(r));var i=t.markArea;i&&Mr(i);var n=t.data;if(t.type==="graph"){n=n||t.nodes;var a=t.links||t.edges;if(a&&!Fe(a))for(var o=0;o<a.length;o++)Mr(a[o]);w(t.categories,function(u){Ol(u)})}if(n&&!Fe(n))for(var o=0;o<n.length;o++)Mr(n[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Mr(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)P(l[o])?(Mr(l[o][0]),Mr(l[o][1])):Mr(l[o]);t.type==="gauge"?(Ze(t,"axisLabel"),Ze(t,"title"),Ze(t,"detail")):t.type==="treemap"?(Et(t.breadcrumb,"itemStyle"),w(t.levels,function(u){Ol(u)})):t.type==="tree"&&Ol(t.leaves)}}function Ni(t){return P(t)?t:t?[t]:[]}function Eb(t){return(P(t)?t[0]:t)||{}}function _m(t,e){Kr(Ni(t.series),function(i){Il(i)&&GL(i)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Kr(r,function(i){Kr(Ni(t[i]),function(n){n&&(Ze(n,"axisLabel"),Ze(n.axisPointer,"label"))})}),Kr(Ni(t.parallel),function(i){var n=i&&i.parallelAxisDefault;Ze(n,"axisLabel"),Ze(n&&n.axisPointer,"label")}),Kr(Ni(t.calendar),function(i){Et(i,"itemStyle"),Ze(i,"dayLabel"),Ze(i,"monthLabel"),Ze(i,"yearLabel")}),Kr(Ni(t.radar),function(i){Ze(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),Kr(Ni(t.geo),function(i){Il(i)&&(Mr(i),Kr(Ni(i.regions),function(n){Mr(n)}))}),Kr(Ni(t.timeline),function(i){Mr(i),Et(i,"label"),Et(i,"itemStyle"),Et(i,"controlStyle",!0);var n=i.data;P(n)&&w(n,function(a){F(a)&&(Et(a,"label"),Et(a,"itemStyle"))})}),Kr(Ni(t.toolbox),function(i){Et(i,"iconStyle"),Kr(i.feature,function(n){Et(n,"iconStyle")})}),Ze(Eb(t.axisPointer),"label"),Ze(Eb(t.tooltip).axisPointer,"label")}function WL(t,e){for(var r=e.split(","),i=t,n=0;n<r.length&&(i=i&&i[r[n]],i!=null);n++);return i}function YL(t,e,r,i){for(var n=e.split(","),a=t,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];(i||a[n[s]]==null)&&(a[n[s]]=r)}function Ab(t){t&&w(XL,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var XL=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],qL=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],xm=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ll(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<xm.length;r++){var i=xm[r][1],n=xm[r][0];e[i]!=null&&(e[n]=e[i])}}function Db(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function Mb(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function KL(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function Ob(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&Ob(t[r].children,e)}function _c(t,e){_m(t,e),t.series=ze(t.series),w(t.series,function(r){if(F(r)){var i=r.type;if(i==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(i==="pie"||i==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),Db(r.label);var n=r.data;if(n&&!Fe(n))for(var a=0;a<n.length;a++)Db(n[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(i==="gauge"){var o=WL(r,"pointer.color");o!=null&&YL(r,"itemStyle.color",o)}else if(i==="bar"){Ll(r),Ll(r.backgroundStyle),Ll(r.emphasis);var n=r.data;if(n&&!Fe(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(Ll(n[a]),Ll(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),Mb(r),Ob(r.data,Mb)}else i==="graph"||i==="sankey"?KL(r):i==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&re(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),Ab(r)}}),t.dataRange&&(t.visualMap=t.dataRange),w(qL,function(r){var i=t[r];i&&(P(i)||(i=[i]),w(i,function(n){Ab(n)}))})}var Ib=Co(ZL);function ZL(t){var e=V();t.eachSeries(function(r){var i=r.get("stack");if(i){var n=e.get(i)||e.set(i,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),e.each(function(r){if(r.length!==0){var i=r[0].seriesModel,n=i.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&r.reverse(),w(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),jL(r)}})}function jL(t){w(t,function(e,r){var i=[],n=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var p=o.get(e.stackedDimension,c);if(isNaN(p))return n;var h,d;s?d=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var v=NaN,m=r-1;m>=0;m--){var g=t[m];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,h)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&p>=0&&y>0||l==="samesign"&&p<=0&&y<0){p=b0(p,y),v=y;break}}}return i[0]=p,i[1]=v,i})})}var xc=(function(){function t(e){this.data=e.data||(e.sourceFormat===nr?{}:[]),this.sourceFormat=e.sourceFormat||cv,this.seriesLayoutBy=e.seriesLayoutBy||or,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var i=0;i<r.length;i++){var n=r[i];n.type==null&&mc(this,i)===Pt.Must&&(n.type="ordinal")}}return t})();function Qo(t){return t instanceof xc}function Nl(t,e,r){r=r||Sm(t);var i=e.seriesLayoutBy,n=$L(t,r,i,e.sourceHeader,e.dimensions),a=new xc({data:t,sourceFormat:r,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:Q(e)});return a}function Jo(t){return new xc({data:t,sourceFormat:Fe(t)?ar:ot})}function Pb(t){return new xc({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Q(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Sm(t){var e=cv;if(Fe(t))e=ar;else if(P(t)){t.length===0&&(e=Qe);for(var r=0,i=t.length;r<i;r++){var n=t[r];if(n!=null){if(P(n)||Fe(n)){e=Qe;break}else if(F(n)){e=Nt;break}}}}else if(F(t)){for(var a in t)if(Me(t,a)&&We(t[a])){e=nr;break}}return e}function $L(t,e,r,i,n){var a,o;if(!t)return{dimensionsDefine:Lb(n),startIndex:o,dimensionsDetectedCount:a};if(e===Qe){var s=t;i==="auto"||i==null?Nb(function(u){u!=null&&u!=="-"&&(B(u)?o==null&&(o=1):o=0)},r,s,10):o=le(i)?i:i?1:0,!n&&o===1&&(n=[],Nb(function(u,f){n[f]=u!=null?u+"":""},r,s,1/0)),a=n?n.length:r===ui?s.length:s[0]?s[0].length:null}else if(e===Nt)n||(n=QL(t));else if(e===nr)n||(n=[],w(t,function(u,f){n.push(f)}));else if(e===ot){var l=Ai(t[0]);a=P(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Lb(n),dimensionsDetectedCount:a}}function QL(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return fe(r)}function Lb(t){if(t){var e=V();return U(t,function(r,i){r=F(r)?r:{name:r};var n={name:r.name,displayName:r.displayName,type:r.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=e.get(n.name);return a?n.name+="-"+a.count++:e.set(n.name,{count:1}),n})}}function Nb(t,e,r,i){if(e===ui)for(var n=0;n<r.length&&n<i;n++)t(r[n]?r[n][0]:null,n);else for(var a=r[0]||[],n=0;n<a.length&&n<i;n++)t(a[n],n)}function Sc(t){var e=t.sourceFormat;return e===Nt||e===nr}var La,Na,Pa,Ra,Rb,kb,wc=(function(){function t(e,r){var i=Qo(e)?e:Jo(e);this._source=i;var n=this._data=i.data,a=i.sourceFormat,o=i.seriesLayoutBy;if(a===ar&&(this._offset=0,this._dimSize=r,this._data=n),0)var s;kb(this,n,i)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;kb=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,p=l.dimensionsDefine,h=Rb[Em(u,f)];if(N(o,h),u===ar)o.getItem=r,o.count=n,o.fillStorage=i;else{var d=wm(u,f);o.getItem=pe(d,null,s,c,p);var v=Tm(u,f);o.count=pe(v,null,s,c,p)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},i=function(o,s,l,u){for(var f=this._data,c=this._dimSize,p=0;p<c;p++){for(var h=u[p],d=h[0]==null?1/0:h[0],v=h[1]==null?-1/0:h[1],m=s-o,g=l[p],y=0;y<m;y++){var _=f[y*c+p];g[o+y]=_,_<d&&(d=_),_>v&&(v=_)}h[0]=d,h[1]=v}},n=function(){return this._data?this._data.length/this._dimSize:0};Rb=(e={},e[Qe+"_"+or]={pure:!0,appendData:a},e[Qe+"_"+ui]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Nt]={pure:!0,appendData:a},e[nr]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[ot]={appendData:a},e[ar]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})();var bc=function(t){P(t)||Rd("series.data or dataset.source must be an array.")},A3=(La={},La[Qe+"_"+or]=bc,La[Qe+"_"+ui]=bc,La[Nt]=bc,La[nr]=function(t,e){for(var r=0;r<e.length;r++){var i=e[r].name;i==null&&Rd("dimension name must not be null/undefined.")}},La[ot]=bc,La),Bb=function(t,e,r,i){return t[i]},JL=(Na={},Na[Qe+"_"+or]=function(t,e,r,i){return t[i+e]},Na[Qe+"_"+ui]=function(t,e,r,i,n){i+=e;for(var a=n||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},Na[Nt]=Bb,Na[nr]=function(t,e,r,i,n){for(var a=n||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;a[o]=l?l[i]:null}return a},Na[ot]=Bb,Na);function wm(t,e){var r=JL[Em(t,e)];return r}var Ub=function(t,e,r){return t.length},eN=(Pa={},Pa[Qe+"_"+or]=function(t,e,r){return Math.max(0,t.length-e)},Pa[Qe+"_"+ui]=function(t,e,r){var i=t[0];return i?Math.max(0,i.length-e):0},Pa[Nt]=Ub,Pa[nr]=function(t,e,r){var i=r[0].name,n=i!=null?t[i]:null;return n?n.length:0},Pa[ot]=Ub,Pa);function Tm(t,e){var r=eN[Em(t,e)];return r}var bm=function(t,e,r){return t[e]},tN=(Ra={},Ra[Qe]=bm,Ra[Nt]=function(t,e,r){return t[r]},Ra[nr]=bm,Ra[ot]=function(t,e,r){var i=Ai(t);return i instanceof Array?i[e]:i},Ra[ar]=bm,Ra);function Cm(t){var e=tN[t];return e}function Em(t,e){return t===Qe?t+"_"+e:t}function Pi(t,e,r){if(t){var i=t.getRawDataItem(e);if(i!=null){var n=t.getStore(),a=n.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=n.getDimensionProperty(o);return Cm(a)(i,o,s)}else{var l=i;return a===ot&&(l=Ai(i)),l}}}}var rN=/\{@(.+?)\}/g,zb=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var i=this.getData(r),n=this.getRawValue(e,r),a=i.getRawIndex(e),o=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,"style"),u=l&&l[i.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,p=c==="series",h=i.userOutput&&i.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:n,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,i,n,a,o){r=r||"normal";var s=this.getData(i),l=this.getDataParams(e,i);if(o&&(l.value=o.interpolatedValue),n!=null&&P(l.value)&&(l.value=l.value[n]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(G(a))return l.status=r,l.dimensionIndex=n,a(l);if(B(a)){var f=qo(a,l);return f.replace(rN,function(c,p){var h=p.length,d=p;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var v=Pi(s,e,d);if(o&&P(o.interpolatedValue)){var m=s.getDimensionIndex(d);m>=0&&(v=o.interpolatedValue[m])}return v!=null?v+"":""})}},t.prototype.getRawValue=function(e,r){return Pi(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,i){},t})();function Am(t){var e,r;return F(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function dn(t){return new iN(t)}var iN=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,i=e&&e.skip;if(this._dirty&&r){var n=this.context;n.data=n.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(i)),this._modBy=l,this._modDataCount=u;var p=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(c||h<d)){var v=this._progress;if(P(v))for(var m=0;m<v.length;m++)this._doProgress(v[m],h,d,l,u);else this._doProgress(v,h,d,l,u)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,i,n,a){Fb.reset(r,i,n,a),this._callingProgress=e,this._callingProgress({start:r,end:i,count:i-r,next:Fb.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,i;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(i=r.forceFirstProgress,r=r.progress),P(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})();var Fb=(function(){var t,e,r,i,n,a={reset:function(l,u,f,c){e=l,t=u,r=f,i=c,n=Math.ceil(i/r),a.next=r>1&&i>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%n*r+Math.ceil(e/n),u=e>=t?null:l<i?l:e;return e++,u}})();function es(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!le(t)&&t!=null&&t!=="-"&&(t=+It(t)),t==null||t===""?NaN:Number(t))}var U3=V({number:function(t){return parseFloat(t)},time:function(t){return+It(t)},trim:function(t){return B(t)?ut(t):t}});var nN={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},z3=(function(){function t(e,r){if(!le(r)){var i="";ft(i)}this._opFn=nN[e],this._rvalFloat=br(r)}return t.prototype.evaluate=function(e){return le(e)?this._opFn(e,this._rvalFloat):this._opFn(br(e),this._rvalFloat)},t})(),Vb=(function(){function t(e,r){var i=e==="desc";this._resultLT=i?1:-1,r==null&&(r=i?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var i=le(e)?e:br(e),n=le(r)?r:br(r),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=B(e),l=B(r);s&&(i=l?e:0),l&&(n=s?r:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},t})();var F3=(function(){function t(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=br(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(r=br(e)===this._rvalFloat)}return this._isEQ?r:!r},t})();function Tc(t){var e="",r=-1/0,i=-1/0,n=1/0,a=1/0;return t&&(t.g!=null&&(e+="G"+t.g,r=t.g),t.ge!=null&&(e+="GE"+t.ge,i=t.ge),t.l!=null&&(e+="L"+t.l,n=t.l),t.le!=null&&(e+="LE"+t.le,a=t.le)),{key:e,g:r,ge:i,l:n,le:a}}function Cc(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var aN=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return es(e,r)},t})();function oN(t,e){var r=new aN,i=t.data,n=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==or&&ft(o);var s=[],l={},u=t.dimensionsDefine;if(u)w(u,function(v,m){var g=v.name,y={index:m,name:g,displayName:v.displayName};if(s.push(y),g!=null){var _="";Me(l,g)&&ft(_),l[g]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=wm(n,or);e.__isBuiltIn&&(r.getRawDataItem=function(v){return c(i,a,s,v)},r.getRawData=pe(sN,null,t)),r.cloneRawData=pe(lN,null,t);var p=Tm(n,or);r.count=pe(p,null,i,a,s);var h=Cm(n);r.retrieveValue=function(v,m){var g=c(i,a,s,v);return d(g,m)};var d=r.retrieveValueFromItem=function(v,m){if(v!=null){var g=s[m];if(g)return h(v,m,g.name)}};return r.getDimensionInfo=pe(uN,null,s,l),r.cloneAllDimensionInfo=pe(fN,null,s),r}function sN(t){var e=t.sourceFormat;if(!Dm(e)){var r="";ft(r)}return t.data}function lN(t){var e=t.sourceFormat,r=t.data;if(!Dm(e)){var i="";ft(i)}if(e===Qe){for(var n=[],a=0,o=r.length;a<o;a++)n.push(r[a].slice());return n}else if(e===Nt){for(var n=[],a=0,o=r.length;a<o;a++)n.push(N({},r[a]));return n}}function uN(t,e,r){if(r!=null){if(le(r)||!isNaN(r)&&!Me(e,r))return t[r];if(Me(e,r))return e[r]}}function fN(t){return Q(t)}var Hb=V();function Gb(t){t=Q(t);var e=t.type,r="";e||ft(r);var i=e.split(":");i.length!==2&&ft(r);var n=!1;i[0]==="echarts"&&(e=i[1],n=!0),t.__isBuiltIn=n,Hb.set(e,t)}function Wb(t,e,r){var i=ze(t),n=i.length,a="";n||ft(a);for(var o=0,s=n;o<s;o++){var l=i[o];e=cN(l,e,r,n===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function cN(t,e,r,i){var n="";e.length||ft(n),F(t)||ft(n);var a=t.type,o=Hb.get(a);o||ft(n);var s=U(e,function(f){return oN(f,o)}),l=ze(o.transform({upstream:s[0],upstreamList:s,config:Q(t.config)}));if(0&&t.print)var u;return U(l,function(f,c){var p="";F(f)||ft(p),f.data||ft(p);var h=Sm(f.data);Dm(h)||ft(p);var d,v=e[0];if(v&&c===0&&!f.dimensions){var m=v.startIndex;m&&(f.data=v.data.slice(0,m).concat(f.data)),d={seriesLayoutBy:or,sourceHeader:m,dimensions:v.metaRawOption.dimensions}}else d={seriesLayoutBy:or,sourceHeader:0,dimensions:f.dimensions};return Nl(f.data,d,null)})}function Dm(t){return t===Qe||t===Nt}var pN=typeof Uint32Array===sn?Array:Uint32Array,hN=typeof Uint16Array===sn?Array:Uint16Array,Om=typeof Int32Array===sn?Array:Int32Array,Yb=typeof Float64Array===sn?Array:Float64Array,qb={float:Yb,int:Om,ordinal:Array,number:Array,time:Yb},Mm;function ts(t){return t>65535?pN:hN}function dN(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Xb(t,e,r,i,n){var a=qb[r||"float"];if(n){var o=t[e],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(i)}var vN=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=V()}return t.prototype.initData=function(e,r,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),a=this.defaultDimValueGetter=Mm[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[];var o=Sc(n);this._dimensions=U(r,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(e);if(a!=null){if(n[a].type===r)return a}else a=n.length;return n[a]={type:r},i.set(e,a),this._chunks[a]=new qb[r||"float"](this._rawCount),this._rawExtent[a]=yt(),a},t.prototype.collectOrdinalMeta=function(e,r){var i=this._chunks[e],n=this._dimensions[e],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[e]=yt());for(var l=a[e],u=o;u<s;u++){var f=i[u]=r.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=r,n.ordinalOffset=s,n.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],i=r.ordinalMeta;return i},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,i=this.count();r.appendData(e);var n=r.count();return r.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},t.prototype.appendValues=function(e,r){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var f=n[u];Xb(i,u,f.type,l,!0)}for(var c=[],p=s;p<l;p++)for(var h=p-s,d=0;d<a;d++){var f=n[d],v=Mm.arrayRows.call(this,e[h]||c,f.property,h,d);i[d][p]=v;var m=o[d];v<m[0]&&(m[0]=v),v>m[1]&&(m[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=U(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=yt()),Xb(a,f,c.type,r,i)}if(n.fillStorage)n.fillStorage(e,r,a,l);else for(var p=[],h=e;h<r;h++){p=n.getItem(h,p);for(var d=0;d<s;d++){var v=a[d],m=this._dimValueGetter(p,u[d],h,d);v[h]=m;var g=l[d];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var i=this._chunks[e];return i?i[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var i=[],n=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=e;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],r));return i},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var i=this._chunks[e];return i?i[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],i=0;if(r)for(var n=0,a=this.count();n<a;n++){var o=this.get(e,n);isNaN(o)||(i+=o)}return i},t.prototype.getMedian=function(e){var r=[];this.each([e],function(n){isNaN(n)||r.push(n)}),Ji(r);var i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,i=r[e];if(i!=null&&i<this._count&&i===e)return e;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(r[o]<e)n=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var i=r.constructor,n=this._count;if(i===Array){e=new i(n);for(var a=0;a<n;a++)e[a]=r[a]}else e=new i(r.buffer,0,n)}else{var i=ts(this._rawCount);e=new i(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=ts(i._rawCount),o=new a(n),s=[],l=e.length,u=0,f=e[0],c=i._chunks,p=0;p<n;p++){var h=void 0,d=i.getRawIndex(p);if(l===0)h=r(p);else if(l===1){var v=c[f][d];h=r(v,p)}else{for(var m=0;m<l;m++)s[m]=c[e[m]][d];s[m]=p,h=r.apply(null,s)}h&&(o[u++]=d)}return u<n&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},t.prototype.selectRange=function(e){var r=this.clone(),i=r._count;if(!i)return this;var n=fe(e),a=n.length;if(!a)return this;var o=r.count(),s=ts(r._rawCount),l=new s(o),u=0,f=n[0],c=e[f][0],p=e[f][1],h=r._chunks,d=!1;if(!r._indices){var v=0;if(a===1){for(var m=h[n[0]],g=0;g<i;g++){var y=m[g];(y>=c&&y<=p||isNaN(y))&&(l[u++]=v),v++}d=!0}else if(a===2){for(var m=h[n[0]],_=h[n[1]],x=e[n[1]][0],S=e[n[1]][1],g=0;g<i;g++){var y=m[g],b=_[g];(y>=c&&y<=p||isNaN(y))&&(b>=x&&b<=S||isNaN(b))&&(l[u++]=v),v++}d=!0}}if(!d)if(a===1)for(var g=0;g<o;g++){var T=r.getRawIndex(g),y=h[n[0]][T];(y>=c&&y<=p||isNaN(y))&&(l[u++]=T)}else for(var g=0;g<o;g++){for(var C=!0,T=r.getRawIndex(g),A=0;A<a;A++){var E=n[A],y=h[E][T];(y<e[E][0]||y>e[E][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(g))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var i=this.clone(e);return this._updateDims(i,e,r),i},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,i){for(var n=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=yt();for(var c=0;c<s;c++){for(var p=e.getRawIndex(c),h=0;h<o;h++)l[h]=n[r[h]][p];l[o]=c;var d=i&&i.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var v=r[f],m=d[f],g=u[v],y=n[v];y&&(y[p]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},t.prototype.lttbDownSample=function(e,r){var i=this.clone([e],!0),n=i._chunks,a=n[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,p,h=new(ts(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;d<o-1;d+=l){for(var v=Math.min(d+l,o-1),m=Math.min(d+l*2,o),g=(m+v)/2,y=0,_=v;_<m;_++){var x=this.getRawIndex(_),S=a[x];isNaN(S)||(y+=S)}y/=m-v;var b=d,T=Math.min(d+l,o),C=d-1,A=a[u];f=-1,p=b;for(var E=-1,D=0,_=b;_<T;_++){var x=this.getRawIndex(_),S=a[x];if(isNaN(S)){D++,E<0&&(E=x);continue}c=Math.abs((C-g)*(S-A)-(C-_)*(y-A)),c>f&&(f=c,p=x)}D>0&&D<T-b&&(h[s++]=Math.min(E,p),p=Math.max(E,p)),h[s++]=p,u=p}return h[s++]=this.getRawIndex(o-1),i._count=s,i._indices=h,i.getRawIndex=this._getRawIdx,i},t.prototype.minmaxDownSample=function(e,r){for(var i=this.clone([e],!0),n=i._chunks,a=Math.floor(1/r),o=n[e],s=this.count(),l=new(ts(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,p=o[this.getRawIndex(c)],h=f,d=o[this.getRawIndex(h)],v=a;f+a>s&&(v=s-f);for(var m=0;m<v;m++){var g=this.getRawIndex(f+m),y=o[g];y<p&&(p=y,c=f+m),y>d&&(d=y,h=f+m)}var _=this.getRawIndex(c),x=this.getRawIndex(h);c<h?(l[u++]=_,l[u++]=x):(l[u++]=x,l[u++]=_)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},t.prototype.downSample=function(e,r,i,n){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),c=a._rawExtent[e]=yt(),p=new(ts(this._rawCount))(Math.ceil(f/l)),h=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var v=0;v<l;v++){var m=this.getRawIndex(d+v);s[v]=u[m]}var g=i(s),y=this.getRawIndex(Math.min(d+n(s,g)||0,f-1));u[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),p[h++]=y}return a._count=h,a._indices=p,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var i=e.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:r(a);break;case 1:r(n[e[0]][s],a);break;case 2:r(n[e[0]][s],n[e[1]][s],a);break;default:for(var l=0,u=[];l<i;l++)u[l]=n[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e,r){var i=this._chunks[e],n=yt();if(!i)return n;var a=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=Tc(r),f=u.key,c=l[f];if(c)return c.slice();for(var p=n[0],h=n[1],d=0;d<a;d++){var v=this.getRawIndex(d),m=i[v];(!r||Cc(u,m))&&(m<p&&(p=m),m>h&&(h=m))}return l[f]=[p,h]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][r]);return i},t.prototype.clone=function(e,r){var i=new t,n=this._chunks,a=e&&St(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?dN(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),r||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Q(this._extent),e._rawExtent=Q(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var i=this._indices.length;r=new e(i);for(var n=0;n<i;n++)r[n]=this._indices[n]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,i,n,a){return es(r[a],this._dimensions[a])}Mm={arrayRows:e,objectRows:function(r,i,n,a){return es(r[i],this._dimensions[a])},keyedColumns:e,original:function(r,i,n,a){var o=r&&(r.value==null?r:r.value);return es(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,i,n,a){return r[a]}}})(),t})(),Pl=vN;var Zb=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length,n,a;if(Ec(e)){var o=e,s=void 0,l=void 0,u=void 0;if(i){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=Fe(s)?ar:ot,a=[];var c=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},h=Y(c.seriesLayoutBy,p.seriesLayoutBy)||null,d=Y(c.sourceHeader,p.sourceHeader),v=Y(c.dimensions,p.dimensions),m=h!==p.seriesLayoutBy||!!d!=!!p.sourceHeader||v;n=m?[Nl(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:v},l)]:[]}else{var g=e;if(i){var y=this._applyTransform(r);n=y.sourceList,a=y.upstreamSignList}else{var _=g.get("source",!0);n=[Nl(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,i=r.get("transform",!0),n=r.get("fromTransformResult",!0);if(n!=null){var a="";e.length!==1&&Kb(a)}var o,s=[],l=[];return w(e,function(u){u.prepareSource();var f=u.getSource(n||0),c="";n!=null&&!f&&Kb(c),s.push(f),l.push(u._getVersionSign())}),i?o=Wb(i,s,{datasetIndex:r.componentIndex}):n!=null&&(o=[Pb(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var i=e[r];if(i._isDirty()||this._upstreamSignList[r]!==i._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];Ec(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,i):(s=new Pl,s.initData(new wc(r,e.length),e)),o[i]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Ec(e)){var r=gm(e);return r?[r.getSourceManager()]:[]}else return U(vb(e),function(i){return i.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,i,n;if(Ec(e))r=e.get("seriesLayoutBy",!0),i=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:i,dimensions:n}},t})();function Ec(t){return t.mainType==="series"}function Kb(t){throw new Error(t)}var mN="line-height:1";function jb(t){var e=t.lineHeight;return e==null?mN:"line-height:"+nt(e+"")+"px"}function $b(t,e){var r=t.color||Z.color.tertiary,i=t.fontSize||12,n=t.fontWeight||"400",a=t.color||Z.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+nt(i+"")+"px;color:"+nt(r)+";font-weight:"+nt(n+""),valueStyle:"font-size:"+nt(o+"")+"px;color:"+nt(a)+";font-weight:"+nt(s+"")}:{nameStyle:{fontSize:i,fill:r,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var gN=[0,10,20,30],yN=["",`
16
- `,`
17
-
18
- `,`
19
-
20
-
21
- `];function ka(t,e){return e.type=t,e}function Im(t){return t.type==="section"}function Qb(t){return Im(t)?_N:xN}function Jb(t){if(Im(t)){var e=0,r=t.blocks.length,i=r>1||r>0&&!t.noHeader;return w(t.blocks,function(n){var a=Jb(n);a>=e&&(e=a+ +(i&&(!a||Im(n)&&!n.noHeader)))}),e}return 0}function _N(t,e,r,i){var n=e.noHeader,a=SN(Jb(e)),o=[],s=e.blocks||[];Ye(!s||P(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Me(u,l)){var f=new Vb(u[l],null);s.sort(function(v,m){return f.evaluate(v.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(v,m){var g=e.valueFormatter,y=Qb(v)(g?N(N({},t),{valueFormatter:g}):t,v,m>0?a.html:0,i);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(a.richText):Lm(i,o.join(""),n?r:a.html);if(n)return c;var p=oc(e.header,"ordinal",t.useUTC),h=$b(i,t.renderMode).nameStyle,d=jb(i);return t.renderMode==="richText"?ew(t,p,h)+a.richText+c:Lm(i,'<div style="'+h+";"+d+';">'+nt(p)+"</div>"+c,r)}function xN(t,e,r,i){var n=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(x){return x=P(x)?x:[x],U(x,function(S,b){return oc(S,P(h)?h[b]:h,u)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||Z.color.secondary,n),p=a?"":oc(l,"ordinal",u),h=e.valueType,d=o?[]:f(e.value,e.rawDataIndex),v=!s||!a,m=!s&&a,g=$b(i,n),y=g.nameStyle,_=g.valueStyle;return n==="richText"?(s?"":c)+(a?"":ew(t,p,y))+(o?"":TN(t,d,v,m,_)):Lm(i,(s?"":c)+(a?"":bN(p,!s,y))+(o?"":wN(d,v,m,_)),r)}}function Nm(t,e,r,i,n,a){if(t){var o=Qb(t),s={useUTC:n,renderMode:r,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function SN(t){return{html:gN[t],richText:yN[t]}}function Lm(t,e,r){var i='<div style="clear:both"></div>',n="margin: "+r+"px 0 0",a=jb(t);return'<div style="'+n+";"+a+';">'+e+i+"</div>"}function bN(t,e,r){var i=e?"margin-left:2px":"";return'<span style="'+r+";"+i+'">'+nt(t)+"</span>"}function wN(t,e,r,i){var n=r?"10px":"20px",a=e?"float:right;margin-left:"+n:"";return t=P(t)?t:[t],'<span style="'+a+";"+i+'">'+U(t,function(o){return nt(o)}).join("&nbsp;&nbsp;")+"</span>"}function ew(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function TN(t,e,r,i,n){var a=[n],o=i?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(P(e)?e.join(" "):e,a)}function tw(t,e){var r=t.getData().getItemVisual(e,"style"),i=r[t.visualDrawType];return qr(i)}function Ac(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var Dc=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=tl()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,i){var n=i==="richText"?this._generateStyleName():null,a=sc({color:r,type:e,renderMode:i,markerId:n});return B(a)?a:(this.richTextStyles[n]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var i={};P(r)?w(r,function(a){return N(i,a)}):N(i,r);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+e+"}"},t})();function rw(t){var e=t.series,r=t.dataIndex,i=t.multipleSeries,n=e.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=P(s),u=tw(e,r),f,c,p,h;if(o>1||l&&!o){var d=CN(s,e,r,a,u);f=d.inlineValues,c=d.inlineValueTypes,p=d.blocks,h=d.inlineValues[0]}else if(o){var v=n.getDimensionInfo(a[0]);h=f=Pi(n,r,a[0]),c=v.type}else h=f=l?s[0]:s;var m=wo(e),g=m&&e.name||"",y=n.getName(r),_=i?g:y;return ka("section",{header:g,noHeader:i||!m,sortParam:h,blocks:[ka("nameValue",{markerType:"item",markerColor:u,name:_,noName:!ut(_),value:f,valueType:c,rawDataIndex:n.getRawIndex(r)})].concat(p||[])})}function CN(t,e,r,i,n){var a=e.getData(),o=St(t,function(c,p,h){var d=a.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];i.length?w(i,function(c){f(Pi(a,r,c),c)}):w(t,f);function f(c,p){var h=a.getDimensionInfo(p);!h||h.otherDims.tooltip===!1||(o?u.push(ka("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var vn=ae();function Mc(t,e){return t.getName(e)||t.getId(e)}var EN="__universalTransitionEnabled",Oc=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,i,n){this.seriesIndex=this.componentIndex,this.dataTask=dn({count:DN,reset:MN}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);var a=vn(this).sourceManager=new Zb(this);a.prepareSource();var o=this.getInitialData(r,n);nw(o,this),this.dataTask.context.data=o,vn(this).dataBeforeProcessed=o,iw(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=pn(this),a=n?di(r):{},o=this.subType;xe.hasClass(o)&&(o+="Series"),ue(r,i.getTheme().get(this.subType)),ue(r,this.getDefaultOption()),kd(r,"label",["show"]),this.fillDataTextStyle(r.data),n&&fr(r,a,n)},e.prototype.mergeOption=function(r,i){r=ue(this.option,r,!0),this.fillDataTextStyle(r.data);var n=pn(this);n&&fr(this.option,r,n);var a=vn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,i);nw(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,vn(this).dataBeforeProcessed=o,iw(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!Fe(r))for(var i=["show"],n=0;n<r.length;n++)r[n]&&r[n].label&&kd(r[n],"label",i)},e.prototype.getInitialData=function(r,i){},e.prototype.appendData=function(r){var i=this.getRawData();i.appendData(r.data)},e.prototype.getData=function(r){var i=Pm(this);if(i){var n=i.context.data;return r==null||!n.getLinkedData?n:n.getLinkedData(r)}else return vn(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var i=Pm(this);if(i){var n=i.context;n.outputData=r,i!==this.dataTask&&(n.data=r)}vn(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return V(r)},e.prototype.getSourceManager=function(){return vn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return vn(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,i,n,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(n);a==null&&(a=1/0);for(var f=[],c=1/0,p=-1,h=0,d=o.getDimensionIndex(i),v=o.getStore(),m=0,g=v.count();m<g;m++){var y=v.get(d,m),_=l.dataToCoord(y),x=u-_,S=Math.abs(x);S<=a&&((S<c||S===c&&x>=0&&p<0)&&(c=S,p=x,h=0),x===p&&(f[h++]=m))}return f.length=h,f},e.prototype.formatTooltip=function(r,i,n){return rw({series:this,dataIndex:r,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ee.node&&!(r&&r.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,i,n){var a=this.ecModel,o=Dl.prototype.getColorFromPalette.call(this,r,i,n);return o||(o=a.getColorFromPalette(r,i,n)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,i){this._innerSelect(this.getData(i),r)},e.prototype.unselect=function(r,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Mc(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,i){for(var n=[],a=0;a<r.length;a++)n[0]=r[a],this.isSelected(r[a],i)?this.unselect(n,i):this.select(n,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,i=fe(r),n=[],a=0;a<i.length;a++){var o=r[i[a]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(r,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[Mc(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[EN])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){F(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=i[f],p=Mc(r,c);u[p]=!0,this._selectedDataIndicesMap[p]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=i[l-1],p=Mc(r,h);o.selectedMap=(n={},n[p]=!0,n),this._selectedDataIndicesMap=(a={},a[p]=r.getRawIndex(h),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var i=[];r.hasItemOption&&r.each(function(n){var a=r.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(r,i)}},e.registerClass=function(r){return xe.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(xe);lt(Oc,zb);lt(Oc,Dl);uf(Oc,xe);function iw(t){var e=t.name;wo(t)||(t.name=AN(t)||e)}function AN(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),i=[];return w(r,function(n){var a=e.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function DN(t){return t.model.getRawData().count()}function MN(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),ON}function ON(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function nw(t,e){w(Lh(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Ce(IN,e))})}function IN(t,e){var r=Pm(t);return r&&r.setOutputEnd((e||this).count()),e}function Pm(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var i=r.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(t.uid))}return i}}var Rt=Oc;var Rm=(function(){function t(){this.group=new we,this.uid=cn("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,n){},t.prototype.updateLayout=function(e,r,i,n){},t.prototype.updateVisual=function(e,r,i,n){},t.prototype.toggleBlurSeries=function(e,r,i){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();Eo(Rm);tn(Rm);var st=Rm;function Ba(){var t=ae();return function(e){var r=t(e),i=e.pipelineContext,n=!!r.large,a=!!r.progressiveRender,o=r.large=!!(i&&i.large),s=r.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var sw=ae(),LN=Ba(),km=(function(){function t(){this.group=new we,this.uid=cn("viewChart"),this.renderTask=dn({plan:NN,reset:PN}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){},t.prototype.highlight=function(e,r,i,n){var a=e.getData(n&&n.dataType);a&&ow(a,n,"emphasis")},t.prototype.downplay=function(e,r,i,n){var a=e.getData(n&&n.dataType);a&&ow(a,n,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,n){this.render(e,r,i,n)},t.prototype.updateVisual=function(e,r,i,n){this.render(e,r,i,n)},t.prototype.eachRendered=function(e){Ta(this.group,e)},t.markUpdateMethod=function(e,r){sw(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function aw(t,e,r){t&&vl(t)&&(e==="emphasis"?pa:ha)(t,r)}function ow(t,e,r){var i=wr(t,e),n=e&&e.highlightKey!=null?Jx(e.highlightKey):null;i!=null?w(ze(i),function(a){aw(t.getItemGraphicEl(a),r,n)}):t.eachItemGraphicEl(function(a){aw(a,r,n)})}Eo(km,["dispose"]);tn(km);function NN(t){return LN(t.model)}function PN(t){var e=t.model,r=t.ecModel,i=t.api,n=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=n&&sw(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,i,n),RN[l]}var RN={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},xt=km;var Ic="\0__throttleOriginMethod",lw="\0__throttleRate",uw="\0__throttleType";function Ua(t,e,r){var i,n=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var p=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];i=new Date().getTime(),l=this,u=h;var v=f||e,m=f||r;f=null,s=i-(m?n:a)-v,clearTimeout(o),m?o=setTimeout(c,v):s>=0?c():o=setTimeout(c,-s),n=i};return p.clear=function(){o&&(clearTimeout(o),o=null)},p.debounceNextCall=function(h){f=h},p}function Lc(t,e,r,i){var n=t[e];if(n){var a=n[Ic]||n,o=n[uw],s=n[lw];if(s!==r||o!==i){if(r==null||!i)return t[e]=a;n=t[e]=Ua(a,r,i==="debounce"),n[Ic]=a,n[uw]=i,n[lw]=r}return n}}function Rl(t,e){var r=t[e];r&&r[Ic]&&(r.clear&&r.clear(),t[e]=r[Ic])}var fw=ae(),cw={itemStyle:ri($v,!0),lineStyle:ri(jv,!0)},BN={lineStyle:"stroke",itemStyle:"fill"};function pw(t,e){var r=t.visualStyleMapper||cw[e];return r||(console.warn("Unknown style type '"+e+"'."),cw.itemStyle)}function hw(t,e){var r=t.visualDrawType||BN[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var dw={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=t.getModel(i),a=pw(t,i),o=a(n),s=n.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=hw(t,i),u=o[l],f=G(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=p,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||G(o.fill)?p:o.fill,o.stroke=o.stroke==="auto"||G(o.stroke)?p:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var v=t.getDataParams(d),m=N({},o);m[l]=f(v),h.setItemVisual(d,"style",m)}}}},kl=new Te,vw={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=pw(t,i),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){kl.option=l[i];var u=n(kl),f=o.ensureUniqueItemVisual(s,"style");N(f,u),kl.option.decal&&(o.setItemVisual(s,"decal",kl.option.decal),kl.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},mw={performRawSeries:!0,overallReset:function(t){var e=V();t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.type+"-"+r.getColorBy();fw(r).scope=e.get(i)||e.set(i,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.getRawData(),n={},a=r.getData(),o=fw(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=hw(r,s);a.each(function(u){var f=a.getRawIndex(u);n[f]=u}),i.each(function(u){var f=n[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var p=a.ensureUniqueItemVisual(f,"style"),h=i.getName(u)||u+"",d=i.count();p[l]=r.getColorFromPalette(h,o,d)}})}})}};var Nc=Math.PI;function Bm(t,e){e=e||{},re(e,{text:"loading",textColor:Z.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Z.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new we,i=new _e({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(i);var n=new Oe({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new _e({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new ga({shape:{startAngle:-Nc/2,endAngle:-Nc/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Nc*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Nc*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var UN=(function(){function t(e,r,i,n){this._stageTaskMap=V(),this.ecInstance=e,this.api=r,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),n=i.context,a=!r&&i.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var i=this._pipelineMap.get(e.uid),n=e.__preparePipelineContext?e.__preparePipelineContext(r,i):lf(e,r,i);e.pipelineContext=i.context=n},t.prototype.restorePipelines=function(e,r){var i=this,n=i._pipelineMap=V();r.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;n.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),i._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),i=this.api;w(this._allHandlers,function(n){var a=e.get(n.uid)||e.set(n.uid,{}),o="";Ye(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,r,i),n.overallReset&&this._createOverallStageTask(n,a,r,i)},this)},t.prototype.prepareView=function(e,r,i,n){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=i,o.api=n,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,i){this._performStageTasks(this._visualHandlers,e,r,i)},t.prototype._performStageTasks=function(e,r,i,n){n=n||{};var a=!1,o=this;w(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,p=f.overallTask;if(p){var h,d=p.agentStubMap;d.each(function(m){s(n,m)&&(m.dirty(),h=!0)}),h&&p.dirty(),o.updatePayload(p,i);var v=o.getPerformArgs(p,n.block);d.each(function(m){m.perform(v)}),p.perform(v)&&(a=!0)}else c&&c.each(function(m,g){s(n,m)&&m.dirty();var y=o.getPerformArgs(m,n.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,i),m.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(i){r=i.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,i,n){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=V(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,n).each(f);function f(c){var p=c.uid,h=s.set(p,o&&o.get(p)||dn({plan:GN,reset:WN,count:XN}));h.context={model:c,ecModel:i,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,i,n){var a=this,o=r.overallTask=r.overallTask||dn({reset:zN});o.context={ecModel:i,api:n,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=V(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,p=!1,h="";Ye(!e.createOnAllSeries,h),u?i.eachRawSeriesByType(u,d):f?f(i,n).each(d):w(i.getSeries(),d);function d(v){var m=v.uid,g=l.set(m,s&&s.get(m)||(p=!0,dn({reset:FN,onDirty:HN})));g.context={model:v,dirtyOnOverallProgress:c},g.agent=o,g.__block=c,a._pipe(v,g)}p&&o.dirty()},t.prototype._pipe=function(e,r){var i=e.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=r),n.tail&&n.tail.pipe(r),n.tail=r,r.__idxInPipeline=n.count++,r.__pipeline=n},t.wrapStageHandler=function(e,r){return G(e)&&(e={overallReset:e,seriesType:qN(e)}),e.uid=cn("stageHandler"),r&&(e.visualType=r),e},t})();function zN(t){t.overallReset(t.ecModel,t.api,t.payload)}function FN(t){return t.dirtyOnOverallProgress&&VN}function VN(){this.agent.dirty(),this.getDownstream().dirty()}function HN(){this.agent&&this.agent.dirty()}function GN(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function WN(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=ze(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?U(e,function(r,i){return gw(i)}):YN}var YN=gw(0);function gw(t){return function(e,r){var i=r.data,n=r.resetDefines[t];if(n&&n.dataEach)for(var a=e.start;a<e.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(e,i)}}function XN(t){return t.data.count()}function qN(t){Pc=null;try{t(Bl,yw)}catch{}return Pc}var Bl={},yw={},Pc;_w(Bl,yc);_w(yw,yf);Bl.eachSeriesByType=Bl.eachRawSeriesByType=function(t){Pc=t};Bl.eachComponent=function(t){t.mainType==="series"&&t.subType&&(Pc=t.subType)};function _w(t,e){for(var r in e.prototype)t[r]=ke}var Um=UN;var H=Z.darkColor,xw=H.background,Ul=function(){return{axisLine:{lineStyle:{color:H.axisLine}},splitLine:{lineStyle:{color:H.axisSplitLine}},splitArea:{areaStyle:{color:[H.backgroundTint,H.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:H.axisMinorSplitLine}},axisLabel:{color:H.axisLabel},axisName:{}}},Sw={label:{color:H.secondary},itemStyle:{borderColor:H.borderTint},dividerLineStyle:{color:H.border}},bw={darkMode:!0,color:H.theme,backgroundColor:xw,axisPointer:{lineStyle:{color:H.border},crossStyle:{color:H.borderShade},label:{color:H.tertiary}},legend:{textStyle:{color:H.secondary},pageTextStyle:{color:H.tertiary}},textStyle:{color:H.secondary},title:{textStyle:{color:H.primary},subtextStyle:{color:H.quaternary}},toolbox:{iconStyle:{borderColor:H.accent50},feature:{dataView:{backgroundColor:xw,textColor:H.primary,textareaColor:H.background,textareaBorderColor:H.border,buttonColor:H.accent50,buttonTextColor:H.neutral00}}},tooltip:{backgroundColor:H.neutral20,defaultBorderColor:H.border,textStyle:{color:H.tertiary}},dataZoom:{borderColor:H.accent10,textStyle:{color:H.tertiary},brushStyle:{color:H.backgroundTint},handleStyle:{color:H.neutral00,borderColor:H.accent20},moveHandleStyle:{color:H.accent40},emphasis:{handleStyle:{borderColor:H.accent50}},dataBackground:{lineStyle:{color:H.accent30},areaStyle:{color:H.accent20}},selectedDataBackground:{lineStyle:{color:H.accent50},areaStyle:{color:H.accent30}}},visualMap:{textStyle:{color:H.secondary},handleStyle:{borderColor:H.neutral30}},timeline:{lineStyle:{color:H.accent10},label:{color:H.tertiary},controlStyle:{color:H.accent30,borderColor:H.accent30}},calendar:{itemStyle:{color:H.neutral00,borderColor:H.neutral20},dayLabel:{color:H.tertiary},monthLabel:{color:H.secondary},yearLabel:{color:H.secondary}},matrix:{x:Sw,y:Sw,backgroundColor:{borderColor:H.axisLine},body:{itemStyle:{borderColor:H.borderTint}}},timeAxis:Ul(),logAxis:Ul(),valueAxis:Ul(),categoryAxis:Ul(),line:{symbol:"circle"},graph:{color:H.theme},gauge:{title:{color:H.secondary},axisLine:{lineStyle:{color:[[1,H.neutral05]]}},axisLabel:{color:H.axisLabel},detail:{color:H.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:H.background}},radar:(function(){var t=Ul();return t.axisName={color:H.axisLabel},t.axisLine.lineStyle.color=H.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:H.neutral20,textStyle:{color:H.secondary}},emphasis:{itemStyle:{color:H.neutral30}}}},sunburst:{itemStyle:{borderColor:H.background}},map:{itemStyle:{borderColor:H.border,areaColor:H.neutral10},label:{color:H.tertiary},emphasis:{label:{color:H.primary},itemStyle:{areaColor:H.highlight}},select:{label:{color:H.primary},itemStyle:{areaColor:H.highlight}}},geo:{itemStyle:{borderColor:H.border,areaColor:H.neutral10},emphasis:{label:{color:H.primary},itemStyle:{areaColor:H.highlight}},select:{label:{color:H.primary},itemStyle:{color:H.highlight}}}};bw.categoryAxis.splitLine.show=!1;var ww=bw;var Tw=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},i={},n={};if(B(e)){var a=Gt(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};w(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var p=o[c],h=u.lastIndexOf(p);if(h>0&&h===u.length-p.length){var d=u.slice(0,h);d!=="data"&&(r.mainType=d,r[p.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:r,dataQuery:i,otherQuery:n}},t.prototype.filter=function(e,r){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.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(e,r.otherQuery,n,a));function f(c,p,h,d){return c[h]==null||p[d||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})();var zm=["symbol","symbolSize","symbolRotate","symbolOffset"],Cw=zm.concat(["symbolKeepAspect"]),Ew={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<zm.length;o++){var s=zm[o],l=t.get(s);G(l)?(a=!0,n[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,r.setVisual(N({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),e.isSeriesFiltered(t))return;var u=fe(n);function f(c,p){for(var h=t.getRawValue(p),d=t.getDataParams(p),v=0;v<u.length;v++){var m=u[v];c.setItemVisual(p,m,n[m](h,d))}}return{dataEach:a?f:null}}},Aw={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<Cw.length;s++){var l=Cw[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?i:null}}};function Dw(t,e,r){switch(r){case"color":var i=t.getItemVisual(e,"style");return i[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r);default:}}function Mw(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:}}function rs(t,e,r,i,n){var a=t+e;r.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),p=wr(c,n.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:P(p)?c.getName(p[0]):c.getName(p),selected:B(l)?l:N({},l)})}})}function Ow(t,e,r){t.on("selectchanged",function(i){var n=r.getModel();i.isFromClick?(rs("map","selectchanged",e,n,i),rs("pie","selectchanged",e,n,i)):i.fromAction==="select"?(rs("map","selected",e,n,i),rs("pie","selected",e,n,i)):i.fromAction==="unselect"&&(rs("map","unselected",e,n,i),rs("pie","unselected",e,n,i))})}function za(t,e,r){for(var i;t&&!(e(t)&&(i=t,r));)t=t.__hostTarget||t.parent;return i}var KN=new vt,cr=KN;var Iw={};function Lw(t,e){Iw[t]=e}function Fm(t){return Iw[t]}var ZN={};function Rc(t,e){ZN[t]=e}var kc=ae();function Nw(t){kc(t).prepare={}}function Pw(t){kc(t).fullUpdate={}}function Rw(t){return kc(t).prepare}function Fa(t){return kc(t).fullUpdate}var jN=Math.round(Math.random()*9),$N=typeof Object.defineProperty=="function",QN=(function(){function t(){this._id="__ec_inner_"+jN++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var i=this._guard(e);return $N?Object.defineProperty(i,this._id,{value:r,enumerable:!1,configurable:!0}):i[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})(),kw=QN;var JN=oe.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i+a),t.lineTo(r-n,i+a),t.closePath()}}),eP=oe.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i),t.lineTo(r,i+a),t.lineTo(r-n,i),t.closePath()}}),tP=oe.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,i=e.y,n=e.width/5*3,a=Math.max(n,e.height),o=n/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),p=Math.cos(u),h=o*.6,d=o*.7;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-c*h,l+s+p*h,r,i-d,r,i),t.bezierCurveTo(r,i-d,r-f+c*h,l+s+p*h,r-f,l+s),t.closePath()}}),rP=oe.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,i=e.width,n=e.x,a=e.y,o=i/3*2;t.moveTo(n,a),t.lineTo(n+o,a+r),t.lineTo(n,a+r/4*3),t.lineTo(n-o,a+r),t.lineTo(n,a),t.closePath()}}),iP={line:sr,rect:_e,roundRect:_e,square:_e,circle:va,diamond:eP,pin:tP,arrow:rP,triangle:JN},nP={line:function(t,e,r,i,n){n.x1=t,n.y1=e+i/2,n.x2=t+r,n.y2=e+i/2},rect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i},roundRect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i,n.r=Math.min(r,i)/4},square:function(t,e,r,i,n){var a=Math.min(r,i);n.x=t,n.y=e,n.width=a,n.height=a},circle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.r=Math.min(r,i)/2},diamond:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i},pin:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},arrow:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},triangle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i}},Vm={};w(iP,function(t,e){Vm[e]=new t});var aP=oe.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var i=Jn(t,e,r),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(i.y=r.y+r.height*.4),i},buildPath:function(t,e,r){var i=e.symbolType;if(i!=="none"){var n=Vm[i];n||(i="rect",n=Vm[i]),nP[i](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,r)}}});function oP(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||Z.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function pr(t,e,r,i,n,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=El(t.slice(8),new j(e,r,i,n),o?"center":"cover"):t.indexOf("path://")===0?l=Bo(t.slice(7),{},new j(e,r,i,n),o?"center":"cover"):l=new aP({shape:{symbolType:t,x:e,y:r,width:i,height:n}}),l.__isEmptyBrush=s,l.setColor=oP,a&&l.setColor(a),l}function Bw(t){return P(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function Bc(t,e){if(t!=null)return P(t)||(t=[t,t]),[Ke(t[0],e[0])||0,Ke(Y(t[1],t[0]),e[1])||0]}function Va(t){return isFinite(t)}function sP(t,e,r){var i=e.x==null?0:e.x,n=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(i=i*r.width+r.x,n=n*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),i=Va(i)?i:0,n=Va(n)?n:1,a=Va(a)?a:0,o=Va(o)?o:0;var s=t.createLinearGradient(i,a,n,o);return s}function lP(t,e,r){var i=r.width,n=r.height,a=Math.min(i,n),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*i+r.x,s=s*n+r.y,l=l*a),o=Va(o)?o:.5,s=Va(s)?s:.5,l=l>=0&&Va(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function zl(t,e,r){for(var i=e.type==="radial"?lP(t,e,r):sP(t,e,r),n=e.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function Uw(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function Uc(t){return parseInt(t,10)}function Fl(t,e,r){var i=["width","height"][e],n=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[i]!=null&&r[i]!=="auto")return parseFloat(r[i]);var s=document.defaultView.getComputedStyle(t);return(t[n]||Uc(s[i])||Uc(t.style[i]))-(Uc(s[a])||0)-(Uc(s[o])||0)||0}function uP(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:le(t)?[t]:P(t)?t:null}function Hm(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&uP(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(r){var n=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;n&&n!==1&&(r=U(r,function(a){return a/n}),i/=n)}return[r,i]}var fP=new ir(!0);function zc(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function zw(t){return typeof t=="string"&&t!=="none"}function Fc(t){var e=t.fill;return e!=null&&e!=="none"}function Fw(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function Vw(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function Vc(t,e,r){var i=Wd(e.image,e.__image,r);if(Ao(i)){var n=t.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*Nh),a.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(a)}return n}}function cP(t,e,r,i,n){var a,o=zc(r),s=Fc(r),l=r.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||fP,p=e.__dirty;if(!i){var h=r.fill,d=r.stroke,v=s&&!!h.colorStops,m=o&&!!d.colorStops,g=s&&!!h.image,y=o&&!!d.image,_=void 0,x=void 0,S=void 0,b=void 0,T=void 0;(v||m)&&(T=e.getBoundingRect()),v&&(_=p?zl(t,h,T):e.__canvasFillGradient,e.__canvasFillGradient=_),m&&(x=p?zl(t,d,T):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),g&&(S=p||!e.__canvasFillPattern?Vc(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(b=p||!e.__canvasStrokePattern?Vc(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),v?t.fillStyle=_:g&&(S?t.fillStyle=S:s=!1),m?t.strokeStyle=x:y&&(b?t.strokeStyle=b:o=!1)}var C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold);var A,E;t.setLineDash&&r.lineDash&&(a=Hm(e),A=a[0],E=a[1]);var D=!0;(f||p&Wi)&&(c.setDPR(t.dpr),u?c.setContext(null):(c.setContext(t),D=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),D&&c.rebuildPath(t,u?l:1),A&&(t.setLineDash(A),t.lineDashOffset=E),i?(n.batchFill=s,n.batchStroke=o):r.strokeFirst?(o&&Vw(t,r),s&&Fw(t,r)):(s&&Fw(t,r),o&&Vw(t,r)),A&&t.setLineDash([])}function pP(t,e,r){var i=e.__image=Wd(r.image,e.__image,e,e.onload);if(!(!i||!Ao(i))){var n=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(i,u,f,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,p=s-f;t.drawImage(i,u,f,c,p,n,a,o,s)}else t.drawImage(i,n,a,o,s)}}function hP(t,e,r){var i,n=r.text;if(n!=null&&(n+=""),n){t.font=r.font||dr,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(i=Hm(e),a=i[0],o=i[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(zc(r)&&t.strokeText(n,r.x,r.y),Fc(r)&&t.fillText(n,r.x,r.y)):(Fc(r)&&t.fillText(n,r.x,r.y),zc(r)&&t.strokeText(n,r.x,r.y)),a&&t.setLineDash([])}}var Hw=["shadowBlur","shadowOffsetX","shadowOffsetY"],Gw=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Zw(t,e,r,i,n){var a=!1;if(!i&&(r=r||{},e===r))return!1;if(i||e.opacity!==r.opacity){kt(t,n),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?ii.opacity:o}(i||e.blend!==r.blend)&&(a||(kt(t,n),a=!0),t.globalCompositeOperation=e.blend||ii.blend);for(var s=0;s<Hw.length;s++){var l=Hw[s];(i||e[l]!==r[l])&&(a||(kt(t,n),a=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==r.shadowColor)&&(a||(kt(t,n),a=!0),t.shadowColor=e.shadowColor||ii.shadowColor),a}function Ww(t,e,r,i,n){var a=e.style,o=i?null:r&&r.style||{};if(a===o)return!1;var s=Zw(t,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(kt(t,n),s=!0),zw(a.fill)&&(t.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(kt(t,n),s=!0),zw(a.stroke)&&(t.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(kt(t,n),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(kt(t,n),s=!0),t.lineWidth=u)}for(var f=0;f<Gw.length;f++){var c=Gw[f],p=c[0];(i||a[p]!==o[p])&&(s||(kt(t,n),s=!0),t[p]=a[p]||c[1])}return s}function dP(t,e,r,i,n){return Zw(t,e.style,r&&r.style,i,n)}function jw(t,e){var r=e.transform,i=t.dpr||1;r?t.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]):t.setTransform(i,0,0,i,0,0)}function vP(t,e,r){for(var i=!1,n=0;n<t.length;n++){var a=t[n];i=i||a.isZeroArea(),jw(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=i}function mP(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var Yw=1,Xw=2,qw=3,Kw=4;function gP(t){var e=Fc(t),r=zc(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function kt(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function is(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};mn(t,e,r),Ha(t,r)}function mn(t,e,r){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~qe,e.__isRendered=!1;return}var n=e.__clipPaths,a=r.prevElClipPaths,o=e.style,s=!1,l=!1;if((!a||Uw(n,a))&&(a&&(kt(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),n&&n.length&&(kt(t,r),t.save(),vP(n,t,r),s=!0,r.prevElClipPaths=n)),r.allClipped){e.__dirty&=~qe,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof oe&&e.autoBatch&&gP(o);s||mP(i,u.transform)?(kt(t,r),jw(t,e)):f||kt(t,r),e instanceof oe?(r.lastDrawType!==Yw&&(l=!0,r.lastDrawType=Yw),Ww(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),cP(t,e,o,f,r)):e instanceof ll?(r.lastDrawType!==qw&&(l=!0,r.lastDrawType=qw),Ww(t,e,u,l,r),hP(t,e,o)):e instanceof Wt?(r.lastDrawType!==Xw&&(l=!0,r.lastDrawType=Xw),dP(t,e,u,l,r),pP(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==Kw&&(l=!0,r.lastDrawType=Kw),yP(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&&kt(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Ha(t,e){kt(t,e),e.prevElClipPaths&&t.restore()}function yP(t,e,r){var i=e.getDisplayables(),n=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),mn(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Ha(t,a);for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),mn(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Ha(t,a),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Gm=new kw,$w=new ei(100),Qw=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Vl(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),i=e.getZr(),n=i.painter.type==="svg";t.dirty&&Gm.delete(t);var a=Gm.get(t);if(a)return a;var o=re(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/r,Gm.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,p=0;p<Qw.length;++p){var h=o[Qw[p]];if(h!=null&&!P(h)&&!B(h)&&!le(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var d;if(c){d=f.join(",")+(n?"-svg":"");var v=$w.get(d);v&&(n?u.svgElement=v:u.image=v)}var m=eT(o.dashArrayX),g=_P(o.dashArrayY),y=Jw(o.symbol),_=xP(m),x=tT(g),S=!n&&Re.createCanvas(),b=n&&{tag:"g",attrs:{},key:"dcl",children:[]},T=A(),C;S&&(S.width=T.width*r,S.height=T.height*r,C=S.getContext("2d")),E(),c&&$w.put(d,S||b),u.image=S,u.svgElement=b,u.svgWidth=T.width,u.svgHeight=T.height;function A(){for(var D=1,O=0,M=_.length;O<M;++O)D=Pd(D,_[O]);for(var I=1,O=0,M=y.length;O<M;++O)I=Pd(I,y[O].length);D*=I;var R=x*_.length*y.length;if(0)var k;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function E(){C&&(C.clearRect(0,0,S.width,S.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,S.width,S.height)));for(var D=0,O=0;O<g.length;++O)D+=g[O];if(D<=0)return;for(var M=-x,I=0,R=0,k=0;M<T.height;){if(I%2===0){for(var W=R/2%y.length,z=0,X=0,$=0;z<T.width*2;){for(var K=0,O=0;O<m[k].length;++O)K+=m[k][O];if(K<=0)break;if(X%2===0){var te=(1-o.symbolSize)*.5,ie=z+m[k][X]*te,q=M+g[I]*te,me=m[k][X]*o.symbolSize,Se=g[I]*o.symbolSize,Mt=$/2%y[W].length;kr(ie,q,me,Se,y[W][Mt])}z+=m[k][X],++$,++X,X===m[k].length&&(X=0)}++k,k===m.length&&(k=0)}M+=g[I],++R,++I,I===g.length&&(I=0)}function kr(Pe,tt,de,be,Mn){var Ot=n?1:r,Zy=pr(Mn,Pe*Ot,tt*Ot,de*Ot,be*Ot,o.color,o.symbolKeepAspect);if(n){var jy=i.painter.renderOneToVNode(Zy);jy&&b.children.push(jy)}else is(C,Zy)}}}}function Jw(t){if(!t||t.length===0)return[["rect"]];if(B(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!B(t[r])){e=!1;break}if(e)return Jw([t]);for(var i=[],r=0;r<t.length;++r)B(t[r])?i.push([t[r]]):i.push(t[r]);return i}function eT(t){if(!t||t.length===0)return[[0,0]];if(le(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,i=0;i<t.length;++i)if(!le(t[i])){r=!1;break}if(r)return eT([t]);for(var n=[],i=0;i<t.length;++i)if(le(t[i])){var e=Math.ceil(t[i]);n.push([e,e])}else{var e=U(t[i],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function _P(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(le(t)){var e=Math.ceil(t);return[e,e]}var r=U(t,function(i){return Math.ceil(i)});return t.length%2?r.concat(r):r}function xP(t){return U(t,function(e){return tT(e)})}function tT(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var rT=Co(SP);function SP(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var i=r.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=Vl(s,e)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=Vl(n,e)}}})}var bP="6.1.0",wP={zrender:"6.1.0"},TP=1,CP=800,EP=900,AP=920,DP=1e3,MP=2e3,iT=5e3,pT=1e3,OP=1100,tg=2e3,hT=3e3,IP=4e3,jc=4500,LP=4600,NP=5e3,PP=6e3,dT=7e3,rg={PROCESSOR:{SERIES_FILTER:CP,AXIS_STATISTICS:AP,FILTER:DP,STATISTIC:iT,STATISTICS:iT},VISUAL:{LAYOUT:pT,PROGRESSIVE_LAYOUT:OP,GLOBAL:tg,CHART:hT,POST_CHART_LAYOUT:LP,COMPONENT:IP,BRUSH:NP,CHART_ITEM:jc,ARIA:PP,DECAL:dT}},Je="__flagInMainProcess",Hc="__mainProcessVersion",pt="__pendingUpdate",Wm="__needsUpdateStatus",nT=/^[a-zA-Z0-9_]+$/,Ym="__connectUpdateStatus",aT=0,RP=1,kP=2;function vT(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return gT(this,t,e)}}function mT(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return gT(this,t,e)}}function gT(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),vt.prototype[e].apply(t,r)}var yT=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(vt),_T=yT.prototype;_T.on=mT("on");_T.off=mT("off");var Ga,Xm,Gc,Ri,Wc,qm,Km,ns,as,oT,sT,Zm,lT,Yc,uT,xT,Or,fT,os,Xc=(function(t){L(e,t);function e(r,i,n){var a=t.call(this,new Tw)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},a.__v_skip=!0,a._dom=r;var o="canvas",s="auto",l=!1;if(a[Hc]=1,0)var u;n.ssr&&Id(function(h){var d=he(h),v=d.dataIndex;if(v!=null){var m=V();return m.set("series_index",d.seriesIndex),m.set("data_index",v),d.ssrType&&m.set("ssr_type",d.ssrType),m}});var f=a._zr=tf(r,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:Y(n.useDirtyRect,l),useCoarsePointer:Y(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=Ua(pe(f.flush,f),17),a._updateTheme(i),a._locale=ZS(n.locale||qf),a._coordSysMgr=new Zo;var c=a._api=uT(a);function p(h,d){return h.__prio-d.__prio}return Yn(Kc,p),Yn(Qm,p),a._scheduler=new Um(a,c,Qm,Kc),a._messageCenter=new yT,a._initEvents(),a.resize=pe(a.resize,a),f.animation.on("frame",a._onframe,a),oT(f,a),sT(f,a),Bn(a),a}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,i=this._model,n=this._api;if(fT(this),this[pt]){var a=this[pt].silent;this[Je]=!0,os(this);try{Ga(this),Ri.update.call(this,null,this[pt].updateParams)}catch(l){throw this[Je]=!1,this[pt]=null,l}this._zr.flush(),this[Je]=!1,this[pt]=null,ns.call(this,a),as.call(this,a)}else if(r.unfinished){var o=TP;do{r.unfinished=!1;var s=Re.getTime();r.performSeriesTasks(i),r.performDataProcessorTasks(i),qm(this,i),r.performVisualTasks(i),Yc(this,this._model,n,"remain",{}),o-=Re.getTime()-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,i,n){if(!this[Je]){if(this._disposed){this.id;return}var a,o,s;if(F(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[Je]=!0,os(this),!this._model||i){var l=new Tb(this._api),u=this._theme,f=this._model=new yc;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Jm);var c={seriesTransition:s,optionChanged:!0};if(n)this[pt]={silent:a,updateParams:c},this[Je]=!1,this.getZr().wakeUp();else{try{Ga(this),Ri.update.call(this,null,c)}catch(p){throw this[pt]=null,this[Je]=!1,p}this._ssr||this._zr.flush(),this[pt]=null,this[Je]=!1,ns.call(this,a),as.call(this,a)}}},e.prototype.setTheme=function(r,i){if(!this[Je]){if(this._disposed){this.id;return}var n=this._model;if(n){var a=i&&i.silent,o=null;this[pt]&&(a==null&&(a=this[pt].silent),o=this[pt].updateParams,this[pt]=null),this[Je]=!0,os(this);try{this._updateTheme(r),n.setTheme(this._theme),Ga(this),Ri.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Je]=!1,s}this[Je]=!1,ns.call(this,a),as.call(this,a)}}},e.prototype._updateTheme=function(r){B(r)&&(r=ST[r]),r&&(r=Q(r),r&&_c(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ee.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var i=this._zr.painter;return i.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,i=r.storage.getDisplayList();return w(i,function(n){n.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var i=r.excludeComponents,n=this._model,a=[],o=this;w(i,function(l){n.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(r).toDataURL("image/"+(r&&r.type||"png"));return w(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var i=r.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(Zc[n]){var l=s,u=s,f=-s,c=-s,p=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();w(Wa,function(_,x){if(_.group===n){var S=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Q(r)),b=_.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),f=o(b.right,f),c=o(b.bottom,c),p.push({dom:S,left:b.left,top:b.top})}}),l*=h,u*=h,f*=h,c*=h;var d=f-l,v=c-u,m=Re.createCanvas(),g=tf(m,{renderer:i?"svg":"canvas"});if(g.resize({width:d,height:v}),i){var y="";return w(p,function(_){var x=_.left-l,S=_.top-u;y+='<g transform="translate('+x+","+S+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new _e({shape:{x:0,y:0,width:d,height:v},style:{fill:r.connectedBackgroundColor}})),w(p,function(_){var x=new Wt({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});g.add(x)}),g.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,i,n){return Wc(this,"convertToPixel",r,i,n)},e.prototype.convertToLayout=function(r,i,n){return Wc(this,"convertToLayout",r,i,n)},e.prototype.convertFromPixel=function(r,i,n){return Wc(this,"convertFromPixel",r,i,n)},e.prototype.containPixel=function(r,i){if(this._disposed){this.id;return}var n=this._model,a,o=of(n,r);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(i);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(i,u))}},this)},this),!!a},e.prototype.getVisual=function(r,i){var n=this._model,a=of(n,r,{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?Dw(s,l,i):Mw(s,i)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;w(BP,function(n){var a=function(o){var s=r.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&za(l,function(v){var m=he(v);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=g&&g.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=N({},m.eventData),!0},!0),u){var c=u.componentType,p=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",p=u.seriesIndex);var h=c&&p!=null&&s.getComponent(c,p),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=n,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},r.trigger(n,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)});var i=this._messageCenter;w($m,function(n,a){i.on(a,function(o){r.trigger(a,o)})}),Ow(i,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&Ud(this.getDom(),ng,"");var i=this,n=i._api,a=i._model;w(i._componentsViews,function(o){o.dispose(a,n)}),w(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete Wa[i.id]},e.prototype.resize=function(r){if(!this[Je]){if(this._disposed){this.id;return}this._zr.resize(r);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=r&&r.silent;this[pt]&&(a==null&&(a=this[pt].silent),n=!0,this[pt]=null),this[Je]=!0,os(this);try{n&&Ga(this),Ri.update.call(this,{type:"resize",animation:N({duration:0},r&&r.animation)})}catch(o){throw this[Je]=!1,o}this[Je]=!1,ns.call(this,a),as.call(this,a)}}},e.prototype.showLoading=function(r,i){if(this._disposed){this.id;return}if(F(r)&&(i=r,r=""),r=r||"default",this.hideLoading(),!!eg[r]){var n=eg[r](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var i=N({},r);return i.type=jm[r.type],i},e.prototype.dispatchAction=function(r,i){if(this._disposed){this.id;return}if(F(i)||(i={silent:!!i}),!!qc[r.type]&&this._model){if(this[Je]){this._pendingActions.push(r);return}var n=i.silent;Km.call(this,r,n);var a=i.flush;a?this._zr.flush():a!==!1&&ee.browser.weChat&&this._throttledZrFlush(),ns.call(this,n),as.call(this,n)}},e.prototype.updateLabelLayout=function(){cr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var i=r.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){Ga=function(c){Nw(c._model);var p=c._scheduler;p.restorePipelines(c._zr,c._model),p.prepareStageTasks(),Xm(c,!0),Xm(c,!1),p.plan()},Xm=function(c,p){for(var h=c._model,d=c._scheduler,v=p?c._componentsViews:c._chartsViews,m=p?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,_=0;_<v.length;_++)v[_].__alive=!1;p?h.eachComponent(function(b,T){b!=="series"&&x(T)}):h.eachSeries(x);function x(b){var T=b.__requireNewView;b.__requireNewView=!1;var C="_ec_"+b.id+"_"+b.type,A=!T&&m[C];if(!A){var E=Gt(b.type),D=p?st.getClass(E.main,E.sub):xt.getClass(E.sub);A=new D,A.init(h,y),m[C]=A,v.push(A),g.add(A.group)}b.__viewId=A.__id=C,A.__alive=!0,A.__model=b,A.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!p&&d.prepareView(A,b,h,y)}for(var _=0;_<v.length;){var S=v[_];S.__alive?_++:(!p&&S.renderTask.dispose(),g.remove(S.group),S.dispose(h,y),v.splice(_,1),m[S.__id]===S&&delete m[S.__id],S.__id=S.group.__ecComponentInfo=null)}},Gc=function(c,p,h,d,v){var m=c._model;if(m.setUpdatePayload(h),!d){w([].concat(c._componentsViews).concat(c._chartsViews),x);return}var g=P0(h,d,v),y=h.excludeSeriesId,_;y!=null&&(_=V(),w(ze(y),function(S){var b=rr(S,null);b!=null&&_.set(b,!0)})),m&&m.eachComponent(g,function(S){var b=_&&_.get(S.id)!=null;if(!b)if(Tv(h))if(S instanceof Rt)h.type===ln&&!h.notBlur&&!S.get(["emphasis","disabled"])&&qx(S,h,c._api);else{var T=wf(S.mainType,S.componentIndex,h.name,c._api),C=T.focusSelf,A=T.dispatchers;h.type===ln&&C&&!h.notBlur&&_f(S.mainType,S.componentIndex,c._api),A&&w(A,function(E){h.type===ln?pa(E):ha(E)})}else Tf(h)&&S instanceof Rt&&(jx(S,h,c._api),wv(S),Or(c))},c),m&&m.eachComponent(g,function(S){var b=_&&_.get(S.id)!=null;b||x(c[d==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},c);function x(S){S&&S.__alive&&S[p]&&S[p](S.__model,m,c._api,h)}},Ri={prepareAndUpdate:function(c){Ga(this),Ri.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,p){var h=this._model,d=this._api,v=this._zr,m=this._coordSysMgr,g=this._scheduler;if(h){Pw(h),h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),m.create(h,d),cr.trigger("coordsys:aftercreate",h,d),g.performDataProcessorTasks(h,c),qm(this,h),m.update(h,d),i(h),g.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";v.setBackgroundColor(y);var _=h.get("darkMode");_!=null&&_!=="auto"&&v.setDarkMode(_),Zm(this,h,d,c,p),cr.trigger("afterupdate",h,d)}},updateTransform:function(c){var p=this,h=p._model,d=p._api;if(h){h.setUpdatePayload(c);var v=[];h.eachComponent(function(g,y){if(g!==mf){var _=p.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,h,d,c);x&&x.update&&v.push(_)}else v.push(_)}});var m=V();h.eachSeries(function(g){var y=p._chartsMap[g.__viewId],_=g.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var x=y.updateTransform(g,h,d,c);x&&x.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),p._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:m}),Yc(p,h,d,c,{},m),cr.trigger("afterupdate",h,d)}},updateView:function(c){var p=this._model;p&&(p.setUpdatePayload(c),xt.markUpdateMethod(c,"updateView"),i(p),this._scheduler.performVisualTasks(p,c,{setDirty:!0}),Zm(this,p,this._api,c,{}),cr.trigger("afterupdate",p,this._api))},updateVisual:function(c){var p=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(d){d.getData().clearAllVisual()}),xt.markUpdateMethod(c,"updateVisual"),i(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,v){if(d!=="series"){var m=p.getViewOfComponentModel(v);m&&m.__alive&&m.updateVisual(v,h,p._api,c)}}),h.eachSeries(function(d){var v=p._chartsMap[d.__viewId];v.updateVisual(d,h,p._api,c)}),cr.trigger("afterupdate",h,this._api))},updateLayout:function(c){Ri.update.call(this,c)}};function r(c,p,h,d,v){if(c._disposed){c.id;return}for(var m=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,_=of(m,h),x=0;x<g.length;x++){var S=g[x];if(S[p]&&(y=S[p](m,_,d,v))!=null)return y}}Wc=r,qm=function(c,p){var h=c._chartsMap,d=c._scheduler;p.eachSeries(function(v){d.updateStreamModes(v,h[v.__viewId])})},Km=function(c,p){var h=this,d=this.getModel(),v=c.type,m=c.escapeConnect,g=qc[v],y=(g.update||"update").split(":"),_=y.pop(),x=y[0]!=null&&Gt(y[0]);this[Je]=!0,os(this);var S=[c],b=!1;c.batch&&(b=!0,S=U(c.batch,function(k){return k=re(N({},k),c),k.batch=null,k}));var T=[],C,A=[],E=g.nonRefinedEventType,D=Tf(c),O=Tv(c);if(O&&bv(this._api),w(S,function(k){var W=g.action(k,d,h._api);if(g.refineEvent?A.push(W):C=W,C=C||N({},k),C.type=E,T.push(C),O){var z=il(c),X=z.queryOptionMap,$=z.mainTypeSpecified,K=$?X.keys()[0]:"series";Gc(h,_,k,K),Or(h)}else D?(Gc(h,_,k,"series"),Or(h)):x&&Gc(h,_,k,x.main,x.sub)}),_!=="none"&&!O&&!D&&!x)try{this[pt]?(Ga(this),Ri.update.call(this,c),this[pt]=null):Ri[_].call(this,c)}catch(k){throw this[Je]=!1,k}if(b?C={type:E,escapeConnect:m,batch:T}:C=T[0],this[Je]=!1,!p){var M=void 0;if(g.refineEvent){var I=g.refineEvent(A,c,d,this._api).eventContent;Ye(F(I)),M=re({type:g.refinedEventType},I),M.fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var R=this._messageCenter;R.trigger(C.type,C),M&&R.trigger(M.type,M)}},ns=function(c){for(var p=this._pendingActions;p.length;){var h=p.shift();Km.call(this,h,c)}},as=function(c){!c&&this.trigger("updated")},oT=function(c,p){c.on("rendered",function(h){p.trigger("rendered",h),c.animation.isFinished()&&!p[pt]&&!p._scheduler.unfinished&&!p._pendingActions.length?p.trigger("finished"):c.refresh()})},sT=function(c,p){c.on("mouseover",function(h){var d=h.target,v=za(d,vl);v&&(Kx(v,h,p._api),Or(p))}).on("mouseout",function(h){var d=h.target,v=za(d,vl);v&&(Zx(v,h,p._api),Or(p))}).on("click",function(h){var d=h.target,v=za(d,function(y){return he(y).dataIndex!=null},!0);if(v){var m=v.selected?"unselect":"select",g=he(v);p._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function i(c){c.clearColorPalette(),c.eachSeries(function(p){p.clearColorPalette()})}function n(c){var p=[],h=[],d=!1;if(c.eachComponent(function(y,_){var x=_.get("zlevel")||0,S=_.get("z")||0,b=_.getZLevelKey();d=d||!!b,(y==="series"?h:p).push({zlevel:x,z:S,idx:_.componentIndex,type:y,key:b})}),d){var v=p.concat(h),m,g;Yn(v,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),w(v,function(y){var _=c.getComponent(y.type,y.idx),x=y.zlevel,S=y.key;m!=null&&(x=Math.max(m,x)),S?(x===m&&S!==g&&x++,g=S):g&&(x===m&&x++,g=""),m=x,_.setZLevel(x)})}}Zm=function(c,p,h,d,v){n(p),lT(c,p,h,d,v),w(c._chartsViews,function(m){m.__alive=!1}),Yc(c,p,h,d,v),w(c._chartsViews,function(m){m.__alive||m.remove(p,h)})},lT=function(c,p,h,d,v,m){w(m||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,p,h,d),l(y,g),f(y,g)})},Yc=function(c,p,h,d,v,m){var g=c._scheduler;v=N(v||{},{updatedSeries:p.getSeries()}),cr.trigger("series:beforeupdate",p,h,v);var y=!1;p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];x.__alive=!0;var S=x.renderTask;g.updatePayload(S,d),u(_,x),m&&m.get(_.uid)&&S.dirty(),S.perform(g.getPerformArgs(S))&&(y=!0),x.group.silent=!!_.get("silent"),s(_,x),wv(_)}),g.unfinished=y||g.unfinished,cr.trigger("series:layoutlabels",p,h,v),cr.trigger("series:transition",p,h,v),p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];l(_,x),f(_,x)}),o(c,p),cr.trigger("series:afterupdate",p,h,v)},Or=function(c){c[Wm]=!0,c.getZr().wakeUp()},os=function(c){c[Hc]=(c[Hc]+1)%1e6},fT=function(c){c[Wm]&&(c.getZr().storage.traverse(function(p){xa(p)||a(p)}),c[Wm]=!1)};function a(c){for(var p=[],h=c.currentStates,d=0;d<h.length;d++){var v=h[d];v==="emphasis"||v==="blur"||v==="select"||p.push(v)}c.selected&&c.states.select&&p.push("select"),c.hoverState===fl&&c.states.emphasis?p.push("emphasis"):c.hoverState===ul&&c.states.blur&&p.push("blur"),c.useStates(p)}function o(c,p){var h=c._zr;if(h.painter.type==="canvas"){var d=h.storage,v=0;d.traverse(function(g){g.isGroup||v++});var m=v>Y(p.get("hoverLayerThreshold"),vc.hoverLayerThreshold)&&!ee.node&&!ee.worker;(c._usingTHL||m)&&(p.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(_){var x=_.states.emphasis;x&&x.hoverLayer!==Cl&&(x.hoverLayer=m?Bv:kv)})}}),c._usingTHL=m)}}function s(c,p){var h=c.get("blendMode")||null;p.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(c,p){if(!c.preventAutoZ){var h=Xv(c);p.eachRendered(function(d){return qv(d,h.z,h.zlevel),!0})}}function u(c,p){p.eachRendered(function(h){if(!xa(h)){var d=h.getTextContent(),v=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,p){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),v=h.get("duration"),m=v>0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;p.eachRendered(function(g){if(g.states&&g.states.emphasis){if(xa(g))return;if(g instanceof oe&&eS(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=m;var _=g.getTextContent(),x=g.getTextGuideLine();_&&(_.stateTransition=m),x&&(x.stateTransition=m)}g.__dirty&&a(g)}})}uT=function(c){return new((function(p){L(h,p);function h(){return p!==null&&p.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var v=d.__ecComponentInfo;if(v!=null)return c._model.getComponent(v.mainType,v.index);d=d.parent}},h.prototype.enterEmphasis=function(d,v){pa(d,v),Or(c)},h.prototype.leaveEmphasis=function(d,v){ha(d,v),Or(c)},h.prototype.enterBlur=function(d){Yx(d),Or(c)},h.prototype.leaveBlur=function(d){_v(d),Or(c)},h.prototype.enterSelect=function(d){xv(d),Or(c)},h.prototype.leaveSelect=function(d){Sv(d),Or(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h.prototype.getECUpdateCycleVersion=function(){return c[Hc]},h.prototype.usingTHL=function(){return c._usingTHL},h})(yf))(c)},xT=function(c){function p(h,d){for(var v=0;v<h.length;v++){var m=h[v];m[Ym]=d}}w(jm,function(h,d){c._messageCenter.on(d,function(v){if(Zc[c.group]&&c[Ym]!==aT){if(v&&v.escapeConnect)return;var m=c.makeActionFromEvent(v),g=[];w(Wa,function(y){y!==c&&y.group===c.group&&g.push(y)}),p(g,aT),w(g,function(y){y[Ym]!==RP&&y.dispatchAction(m)}),p(g,kP)}})})}})(),e})(vt),ig=Xc.prototype;ig.on=vT("on");ig.off=vT("off");ig.one=function(t,e,r){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),i.off(t,n)}this.on.call(this,t,n,r)};var BP=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var qc={},jm={},$m={},Qm=[],Jm=[],Kc=[],ST={},eg={},Wa={},Zc={},UP=+new Date-0,zP=+new Date-0,ng="_echarts_instance_";function FP(t,e,r){var i=!(r&&r.ssr);if(i){var n=ag(t);if(n)return n}var a=new Xc(t,e,r);return a.id="ec_"+UP++,Wa[a.id]=a,i&&Ud(t,ng,a.id),xT(a),cr.trigger("afterinit",a),a}function VP(t){if(P(t)){var e=t;t=null,w(e,function(r){r.group!=null&&(t=r.group)}),t=t||"g_"+zP++,w(e,function(r){r.group=t})}return Zc[t]=!0,t}function bT(t){Zc[t]=!1}var HP=bT;function GP(t){B(t)?t=Wa[t]:t instanceof Xc||(t=ag(t)),t instanceof Xc&&!t.isDisposed()&&t.dispose()}function ag(t){return Wa[R0(t,ng)]}function WP(t){return Wa[t]}function og(t,e){ST[t]=e}function $c(t){ne(Jm,t)<0&&Jm.push(t)}function Qc(t,e){cg(Qm,t,e,MP)}function sg(t){Hl("afterinit",t)}function lg(t){Hl("afterupdate",t)}function Hl(t,e){cr.on(t,e)}function gn(t,e,r){var i,n,a,o,s;G(e)&&(r=e,e=""),F(t)?(i=t.type,n=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(i=t,n=e);function l(f){return f.toLowerCase()}n=l(n||i);var u=a?l(i):n;qc[i]||(Ye(nT.test(i)&&nT.test(n)),a&&Ye(n!==i),qc[i]={actionType:i,refinedEventType:n,nonRefinedEventType:u,update:o,action:r,refineEvent:a},$m[n]=1,a&&s&&($m[u]=1),jm[u]=i)}function ug(t,e){Zo.register(t,e)}function YP(t){var e=Zo.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function XP(t,e){Rc(t,e)}function fg(t,e){cg(Kc,t,e,pT,"layout",!0)}function ki(t,e){cg(Kc,t,e,hT,"visual",!0)}var cT=[];function cg(t,e,r,i,n,a){if((G(e)||F(e))&&(r=e,e=i),!(ne(cT,r)>=0)){cT.push(r);var o=Um.wrapStageHandler(r,n);o.__prio=e,o.__raw=r,t.push(o)}}function Jc(t,e){eg[t]=e}function qP(t){Su({createCanvas:t})}function pg(t,e,r){var i=Fm("registerMap");i&&i(t,e,r)}function KP(t){var e=Fm("getMap");return e&&e(t)}var hg=Gb;ki(tg,dw);ki(jc,vw);ki(jc,mw);ki(tg,Ew);ki(jc,Aw);ki(dT,rT);$c(_c);Qc(EP,Ib);Jc("default",Bm);gn({type:ln,event:ln,update:ln},ke);gn({type:cl,event:cl,update:cl},ke);gn({type:pl,event:Sf,update:pl,action:ke,refineEvent:dg,publishNonRefinedEvent:!0});gn({type:xf,event:Sf,update:xf,action:ke,refineEvent:dg,publishNonRefinedEvent:!0});gn({type:hl,event:Sf,update:hl,action:ke,refineEvent:dg,publishNonRefinedEvent:!0});function dg(t,e,r,i){return{eventContent:{selected:$x(r),isFromClick:e.isFromClick||!1}}}og("default",{});og("dark",ww);var ZP={};function Gl(t){return t==null?0:t.length||1}function wT(t){return t}var jP=(function(){function t(e,r,i,n,a,o){this._old=e,this._new=r,this._oldKeyGetter=i||wT,this._newKeyGetter=n||wT,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,i={},n=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(r,i,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],l=i[s],u=Gl(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,i={},n={},a=[],o=[];this._initIndexMap(e,i,a,"_oldKeyGetter"),this._initIndexMap(r,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=i[l],f=n[l],c=Gl(u),p=Gl(f);if(c>1&&p===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(c===1&&p>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(c===1&&p===1)this._update&&this._update(f,u),n[l]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},t.prototype._performRestAdd=function(e,r){for(var i=0;i<e.length;i++){var n=e[i],a=r[n],o=Gl(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[n]=null}},t.prototype._initIndexMap=function(e,r,i,n){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(a||(i[o]=s),!!r){var l=r[s],u=Gl(l);u===0?(r[s]=o,a&&i.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),TT=jP;var $P=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function CT(t,e){var r={},i=r.encode={},n=V(),a=[],o=[],s={};w(t.dimensions,function(p){var h=t.getDimensionInfo(p),d=h.coordDim;if(d){var v=h.coordDimIndex;vg(i,d)[v]=p,h.isExtraCoord||(n.set(d,1),QP(h.type)&&(a[0]=p),vg(s,d)[v]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(p)}gf.each(function(m,g){var y=vg(i,g),_=h.otherDims[g];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};n.each(function(p,h){var d=i[h];u[h]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=U(l,function(p){return t.getDimensionInfo(p).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(a=f.slice());var c=i.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,r.userOutput=new $P(s,e),r}function vg(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function ET(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function QP(t){return!(t==="ordinal"||t==="time")}var JP=(function(){function t(e){this.otherDims={},e!=null&&N(this,e)}return t})(),ss=JP;var eR=ae(),tR={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},mg=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=gg(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Y(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=Sc(this.source),i=!yg(e),n="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var p=this.getSourceDimension(o);p&&(l=r?p.name:null,u=p.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=tR[u]||"f",f&&(n+=f.uid),n+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,n].join("$$");return{dimensions:a,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,i=0;r<this._fullDimCount;r++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(r);o&&(n=o.name)}e.push(n)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function ep(t){return t instanceof mg}function Wl(t){for(var e=V(),r=0;r<(t||[]).length;r++){var i=t[r],n=F(i)?i.name:i;n!=null&&e.get(n)==null&&e.set(n,r)}return e}function gg(t){var e=eR(t);return e.dimNameMap||(e.dimNameMap=Wl(t.dimensionsDefine))}function yg(t){return t>30}var Yl=F,yn=U,rR=typeof Int32Array>"u"?Array:Int32Array,iR="e\0\0",AT=-1,nR=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],aR=["_approximateExtent"],DT,tp,Xl,ql,_g,Kl,xg,oR=(function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,n=!1;ep(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,i=e),i=i||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var c=i[f],p=B(c)?new ss({name:c}):c instanceof ss?c:new ss(c),h=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=h,p.coordDimIndex=0);var d=p.otherDims=p.otherDims||{};o.push(h),a[h]=p,u[h]!=null&&(l=!0),p.createInvertedIndices&&(s[h]=[]),n&&(p.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=p.storeDimIndex),d.itemId===0&&(this._idDimIdx=p.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var v=this._dimIdxToName=V();w(o,function(m){v.set(a[m].storeDimIndex,m)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var i=this._dimIdxToName.get(r);if(i!=null)return i;var n=this._schema.getSourceDimension(r);if(n)return n.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(le(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(i){return r.hasOwnProperty(i)?r[i]:void 0}:function(i){return r[i]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var i=this._dimSummary;if(r==null)return i.encodeFirstDimNotExtra[e];var n=i.encode[e];return n?n[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,i=r.encode[e];return(i||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,i){var n=this,a;if(e instanceof Pl&&(a=e),!a){var o=this.dimensions,s=Qo(e)||We(e)?new wc(e,o.length):e;a=new Pl;var l=yn(o,function(u){return{type:n._dimInfos[u].type,property:u}});a.initData(s,l,i)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=CT(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var i=this._store.appendValues(e,r&&r.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=n;s<a;s++){var l=s-n;this._nameList[s]=r[l],o&&xg(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,i=0;i<r.length;i++){var n=this._dimInfos[r[i]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==ar&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===ot;if(l&&!n.pure)for(var u=[],f=e;f<r;f++){var c=n.getItem(f,u);if(!this.hasItemOption&&O0(c)&&(this.hasItemOption=!0),c){var p=c.name;a[f]==null&&p!=null&&(a[f]=rr(p,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=rr(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)xg(this,f);DT(this)}},t.prototype.getApproximateExtent=function(e,r){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),r)},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){Yl(e)?N(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),i=this._nameList[r];return i==null&&this._nameDimIdx!=null&&(i=Xl(this,this._nameDimIdx,r)),i==null&&(i=""),i},t.prototype._getCategory=function(e,r){var i=this._store.get(e,r),n=this._store.getOrdinalMeta(e);return n?n.categories[i]:i},t.prototype.getId=function(e){return tp(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var i=this._store,n=this._dimInfos[e];if(n)return i.get(n.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var i=this._store,n=this._dimInfos[e];if(n)return i.getByRawIndex(n.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var i=this,n=this._store;return P(e)?n.getValues(yn(e,function(a){return i._getStoreDimIndex(a)}),r):n.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,i=0,n=r.length;i<n;i++)if(isNaN(this._store.get(r[i],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,i=this._store.count();r<i;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var i=e&&this._invertedIndicesMap[e],n=i&&i[r];return n==null||isNaN(n)?AT:n},t.prototype.each=function(e,r,i){"use strict";G(e)&&(i=r,r=e,e=[]);var n=i||this,a=yn(ql(e),this._getStoreDimIndex,this);this._store.each(a,n?pe(r,n):r)},t.prototype.filterSelf=function(e,r,i){"use strict";G(e)&&(i=r,r=e,e=[]);var n=i||this,a=yn(ql(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?pe(r,n):r),this},t.prototype.selectRange=function(e){"use strict";var r=this,i={},n=fe(e),a=[];return w(n,function(o){var s=r._getStoreDimIndex(o);i[s]=e[o],a.push(s)}),this._store=this._store.selectRange(i),this},t.prototype.mapArray=function(e,r,i){"use strict";G(e)&&(i=r,r=e,e=[]),i=i||this;var n=[];return this.each(e,function(){n.push(r&&r.apply(this,arguments))},i),n},t.prototype.map=function(e,r,i,n){"use strict";var a=i||n||this,o=yn(ql(e),this._getStoreDimIndex,this),s=Kl(this);return s._store=this._store.map(o,a?pe(r,a):r),s},t.prototype.modify=function(e,r,i,n){var a=this,o=i||n||this,s=yn(ql(e),this._getStoreDimIndex,this);this._store.modify(s,o?pe(r,o):r)},t.prototype.downSample=function(e,r,i,n){var a=Kl(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,i,n),a},t.prototype.minmaxDownSample=function(e,r){var i=Kl(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),i},t.prototype.lttbDownSample=function(e,r){var i=Kl(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),i},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,i=this.getRawDataItem(e);return new Te(i,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new TT(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return tp(e,i)},function(i){return tp(r,i)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},Yl(e)?N(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var i=this._itemVisuals[e],n=i&&i[r];return n??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var i=this._itemVisuals,n=i[e];n||(n=i[e]={});var a=n[r];return a==null&&(a=this.getVisual(r),P(a)?a=a.slice():Yl(a)&&(a=N({},a)),n[r]=a),a},t.prototype.setItemVisual=function(e,r,i){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,Yl(r)?N(n,r):n[r]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Yl(e)?N(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,i){this._itemLayouts[e]=i?N(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var i=this.hostModel&&this.hostModel.seriesIndex;Nx(i,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){w(this._graphicEls,function(i,n){i&&e&&e.call(r,i,n)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:yn(this.dimensions,this._getDimInfo,this),this.hostModel)),_g(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var i=this[e];G(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=i.apply(this,arguments);return r.apply(this,[n].concat(Is(arguments)))})},t.internalField=(function(){DT=function(e){var r=e._invertedIndicesMap;w(r,function(i,n){var a=e._dimInfos[n],o=a.ordinalMeta,s=e._store;if(o){i=r[n]=new rR(o.categories.length);for(var l=0;l<i.length;l++)i[l]=AT;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},Xl=function(e,r,i){return rr(e._getCategory(r,i),null)},tp=function(e,r){var i=e._idList[r];return i==null&&e._idDimIdx!=null&&(i=Xl(e,e._idDimIdx,r)),i==null&&(i=iR+r),i},ql=function(e){return P(e)||(e=e!=null?[e]:[]),e},Kl=function(e){var r=new t(e._schema?e._schema:yn(e.dimensions,e._getDimInfo,e),e.hostModel);return _g(r,e),r},_g=function(e,r){w(nR.concat(r.__wrappedMethods||[]),function(i){r.hasOwnProperty(i)&&(e[i]=r[i])}),e.__wrappedMethods=r.__wrappedMethods,w(aR,function(i){e[i]=Q(r[i])}),e._calculationInfo=N({},r._calculationInfo)},xg=function(e,r){var i=e._nameList,n=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=i[r],l=n[r];if(s==null&&a!=null&&(i[r]=s=Xl(e,a,r)),l==null&&o!=null&&(n[r]=l=Xl(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[r]=l}}})(),t})(),rp=oR;var Ig={};Ft(Ig,{createDimensions:()=>MT,createList:()=>KR,createScale:()=>jR,createSymbol:()=>pr,createTextStyle:()=>QR,dataStack:()=>ZR,enableHoverEmphasis:()=>Oo,getECData:()=>he,getLayoutRect:()=>hi,mixinAxisModelCommonMethods:()=>$R});function MT(t,e){return ip(t,e).dimensions}function ip(t,e){Qo(t)||(t=Jo(t)),e=e||{};var r=e.coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],n=V(),a=[],o=sR(t,r,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&yg(o),l=i===t.dimensionsDefine,u=l?gg(t):Wl(i),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=V(f),p=new Om(o),h=0;h<p.length;h++)p[h]=-1;function d(A){var E=p[A];if(E<0){var D=i[A],O=F(D)?D:{name:D},M=new ss,I=O.name;I!=null&&u.get(I)!=null&&(M.name=M.displayName=I),O.type!=null&&(M.type=O.type),O.displayName!=null&&(M.displayName=O.displayName);var R=a.length;return p[A]=R,M.storeDimIndex=A,a.push(M),M}return a[E]}if(!s)for(var h=0;h<o;h++)d(h);c.each(function(A,E){var D=ze(A).slice();if(D.length===1&&!B(D[0])&&D[0]<0){c.set(E,!1);return}var O=c.set(E,[]);w(D,function(M,I){var R=B(M)?u.get(M):M;R!=null&&R<o&&(O[I]=R,m(d(R),E,I))})});var v=0;w(r,function(A){var E,D,O,M;if(B(A))E=A,M={};else{M=A,E=M.name;var I=M.ordinalMeta;M.ordinalMeta=null,M=N({},M),M.ordinalMeta=I,D=M.dimsDef,O=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var R=c.get(E);if(R!==!1){if(R=ze(R),!R.length)for(var k=0;k<(D&&D.length||1);k++){for(;v<o&&d(v).coordDim!=null;)v++;v<o&&R.push(v++)}w(R,function(W,z){var X=d(W);if(l&&M.type!=null&&(X.type=M.type),m(re(X,M),E,z),X.name==null&&D){var $=D[z];!F($)&&($={name:$}),X.name=X.displayName=$.name,X.defaultTooltip=$.defaultTooltip}O&&re(X.otherDims,O)})}});function m(A,E,D){gf.get(E)!=null?A.otherDims[E]=D:(A.coordDim=E,A.coordDimIndex=D,n.set(E,!0))}var g=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=g?y||1:0;var x=g||"value";function S(A){A.name==null&&(A.name=A.coordDim)}if(s)w(a,function(A){S(A)}),a.sort(function(A,E){return A.storeDimIndex-E.storeDimIndex});else for(var b=0;b<o;b++){var T=d(b),C=T.coordDim;C==null&&(T.coordDim=lR(x,n,_),T.coordDimIndex=0,(!g||y<=0)&&(T.isExtraCoord=!0),y--),S(T),T.type==null&&(mc(t,b)===Pt.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return To(a,function(A){return A.name},function(A,E){E>0&&(A.name=A.name+(E-1))}),new mg({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function sR(t,e,r,i){var n=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,i||0);return w(e,function(a){var o;F(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function lR(t,e,r){if(r||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}var uR=(function(){function t(e){this.coordSysDims=[],this.axisMap=V(),this.categoryAxisMap=V(),this.coordSysName=e}return t})();function OT(t){var e=t.get("coordinateSystem"),r=new uR(e),i=fR[e];if(i)return i(t,r,r.axisMap,r.categoryAxisMap),r}var fR={cartesian2d:function(t,e,r,i){var n=t.getReferringComponents("xAxis",gt).models[0],a=t.getReferringComponents("yAxis",gt).models[0];e.coordSysDims=["x","y"],r.set("x",n),r.set("y",a),ls(n)&&(i.set("x",n),e.firstCategoryDimIndex=0),ls(a)&&(i.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,i){var n=t.getReferringComponents("singleAxis",gt).models[0];e.coordSysDims=["single"],r.set("single",n),ls(n)&&(i.set("single",n),e.firstCategoryDimIndex=0)},polar:function(t,e,r,i){var n=t.getReferringComponents("polar",gt).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),ls(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),ls(o)&&(i.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,i){var n=t.ecModel,a=n.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();w(a.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];r.set(f,u),ls(u)&&(i.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,i){var n=t.getReferringComponents("matrix",gt).models[0];e.coordSysDims=["x","y"];var a=n.getDimensionModel("x"),o=n.getDimensionModel("y");r.set("x",a),r.set("y",o),i.set("x",a),i.set("y",o)}};function ls(t){return t.get("type")==="category"}function np(t,e,r){r=r||{};var i=r.byIndex,n=r.stackedCoordDimension,a,o,s;cR(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,p,h=!0;function d(x){return x.type!=="ordinal"&&x.type!=="time"}if(w(a,function(x,S){B(x)&&(a[S]=x={name:x}),d(x)||(h=!1)}),w(a,function(x,S){l&&!x.isExtraCoord&&(!i&&!u&&x.ordinalMeta&&(u=x),!f&&d(x)&&(!h||x.coordDim!=="x"&&x.coordDim!=="angle")&&(!n||n===x.coordDim)&&(f=x))}),f&&!i&&!u&&(i=!0),f){c="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,m=f.type,g=0;w(a,function(x){x.coordDim===v&&g++});var y={name:c,coordDim:v,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:p,coordDim:p,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(p,m),_.storeDimIndex=s.ensureCalculationDimension(c,m)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:c}}function cR(t){return!ep(t.schema)}function Zr(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function ap(t,e){return Zr(t,e)?t.getCalculationInfo("stackResultDimension"):e}function pR(t,e){var r=t.get("coordinateSystem"),i=Zo.get(r),n;return e&&e.coordSysDims&&(n=U(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=ET(l)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function hR(t,e,r){var i,n;return r&&w(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(t[i].otherDims.itemName=0),i}function dR(t,e,r){r=r||{};var i=e.getSourceManager(),n,a=!1;t?(a=!0,n=Jo(t)):(n=i.getSource(),a=n.sourceFormat===ot);var o=OT(e),s=pR(e,o),l=r.useEncodeDefaulter,u=G(l)?l:l?Ce(db,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=ip(n,f),p=hR(c.dimensions,r.createInvertedIndices,o),h=a?null:i.getSharedDataStore(c),d=np(e,{schema:c,store:h}),v=new rp(c,e);v.setCalculationInfo(d);var m=p!=null&&vR(n)?function(g,y,_,x){return x===p?_:this.defaultDimValueGetter(g,y,_,x)}:null;return v.hasItemOption=!1,v.initData(a?n:h,null,m),v}function vR(t){if(t.sourceFormat===ot){var e=mR(t.data||[]);return!P(Ai(e))}}function mR(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var _n=dR;var IT=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();tn(IT);var Bt=IT;var gR=0,yR=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++gR,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,i=r.data,n=i&&U(i,_R);return new t({categories:n,needCollect:!n,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,i=this._needCollect;if(!B(e)&&!i)return e;if(i&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var n=this._getOrCreateMap();return r=n.get(e),r==null&&(i?(r=this.categories.length,this.categories[r]=e,n.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=V(this.categories))},t})();function _R(t){return F(t)&&t.value!=null?t.value:t+""}var Zl=yR;var qt=0,us=1,xR={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},NT=fe(xR),fs=2,PT=3;function cs(t,e,r){var i;t=t||{};var n=Ve();if(n){var a=n.createBreakScaleMapper(e,r);a.hasBreaks()&&(w(NT,function(o){a[o]&&(t[o]=pe(a[o],a))}),i=a)}return i==null&&SR(t,r),{brk:i,mapper:t}}function op(t,e){w(NT,function(r){t[r]=e[r]})}function sp(t,e){t.freeze=ke}function Bi(t){return t.getExtentUnsafe(qt,fs)}function Ya(t,e){return t.getExtentUnsafe(us,e)||t.getExtentUnsafe(qt,e)}function RT(t){var e=Ya(t,PT);return e[1]-e[0]}function ps(t){var e=t.getExtentUnsafe(qt,PT);return e[1]-e[0]}function SR(t,e){var r=t||{},i=[];return r._extents=i,i[qt]=e?e.slice():yt(),N(r,bR),r}var bR={needTransform:function(){return!1},normalize:function(t){var e=this._extents[us]||this._extents[qt];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[us]||this._extents[qt];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=Ya(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[qt].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){LT(this._extents,qt,t,e)},setExtent2:function(t,e,r){var i=this._extents;i[t]||(i[t]=i[qt].slice()),LT(i,t,e,r)},freeze:function(){}};function LT(t,e,r,i){Di(r,i)&&(t[e][0]=r,t[e][1]=i)}function lp(t){return hs(t)||vi(t)}function hs(t){return t.type==="interval"}function ds(t){return t.type==="time"}function vi(t){return t.type==="log"}function ht(t){return t.type==="ordinal"}function kT(t){var e=So(t),r=Qi(10,e),i=Ht(t/r);return i?i===2?i=3:i===3?i=5:i*=2:i=1,ve(i*r,-e)}function jr(t){return tr(t)+2}function jl(t,e){return ji(t)/ji(e)}function up(t,e,r){var i=r&&r.lookup;if(i){for(var n=0;n<i.from.length;n++)if(t===i.from[n])return i.to[n]}return Qi(e,t)}function fp(t,e,r){var i=t.slice();if(i[0]===i[1]){var n=r&&r.ctnShp;if(i[0]!==0){var a=Le(i[0]);e[1]||(i[1]+=a/2),i[0]-=a/2}else n&&(i[0]=-1),i[1]=1}return(!Wr(i[0])||!Wr(i[1]))&&(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function BT(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function $l(t,e){return t=t||e,Ht(ce(t,1))}function cp(t,e,r){var i=Bi(t),n=i[0],a=t.count(),o=Math.max((e||0)+1,1);n!==0&&o>1&&a/o>2&&(n=Math.round(Math.ceil(n/o)*o)),n!==i[0]&&l(i[0],!0,!0);for(var s=n;s<=i[1];s+=o)l(s,!1,s===i[0]||s===i[1]);s-o!==i[1]&&l(i[1],!0,!0);function l(u,f,c){r({value:u,offInterval:f},c)}}var UT=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i.type="ordinal",i.parse=e.parse,op(i,e.decoratedMethods);var n=r.ordinalMeta;n||(n=new Zl({})),P(n)&&(n=new Zl({categories:U(n,function(o){return F(o)?o.value:o})})),i._ordinalMeta=n;var a=cs(null,null,r.extent||[0,n.categories.length-1]);return i._mapper=a.mapper,sp(i,a.mapper),i}return e.parse=function(r){return r==null?r=NaN:B(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=Ht(r),r},e.prototype.getTicks=function(){var r=[];return cp(this,0,function(i){r.push(i)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=r.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Ue(s,i.length);o<l;++o){var u=n[o]=i[o];a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;n[o]=f,a[f]=o}},e.prototype._getTickNumber=function(r){var i=this._ticksByOrdinalNumber;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getRawOrdinalNumber=function(r){var i=this._ordinalNumbersByTick;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var i=this.getRawOrdinalNumber(r.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},e.prototype.count=function(){var r=Bi(this._mapper);return r[1]-r[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(Ht(this._mapper.scale(r)))},transformIn:function(r,i){return this._mapper.transformIn(this._getTickNumber(r),i)},transformOut:function(r,i){return this.getRawOrdinalNumber(this._mapper.transformOut(r,i))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,i){return this._mapper.getExtentUnsafe(r,i)},setExtent:function(r,i){return this._mapper.setExtent(r,i)},setExtent2:function(r,i,n){return this._mapper.setExtent2(r,i,n)}},e})(Bt);Bt.registerClass(UT);var zT=UT;function vs(t,e,r,i){for(var n=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent(),s=1;s<n.length;s++){var l=n[s],u=n[s-1];if(!(u.break||l.break)){for(var f=0,c=[],p=l.value-u.value,h=p/e,d=jr(h);f<e-1;){var v=ve(u.value+(f+1)*h,d);v>o[0]&&v<o[1]&&c.push(v),f++}var m=Ve();m&&m.pruneTicksByBreak("auto",c,r,function(g){return g},i,o),a.push(c)}}return a}var FT=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i.type="interval",i.parse=e.parse,r=r||{};var n=Zf(i,r),a=cs(i,n,null);return i.brk=a.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return Q(this._cfg)},e.prototype.setConfig=function(r){var i=Bi(this);this._cfg=r=Q(r),r.niceExtent==null&&(r.niceExtent=i.slice()),r.intervalPrecision==null&&(r.intervalPrecision=jr(r.interval))},e.prototype.getTicks=function(r){r=r||{};var i=this._cfg,n=i.interval,a=Bi(this),o=i.niceExtent,s=i.intervalPrecision,l=Ve(),u=this.brk,f=l&&u,c=[];if(!n)return c;if(r.breakTicks==="only_break"&&f)return l.addBreaksToTicks(c,u.breaks,a),c;var p=3e3;a[0]<o[0]&&c.push({value:r.expandToNicedExtent?ve(o[0]-n,s):a[0]});for(var h=function(_,x){return Ht((x-_)/n)},d=i.intervalCount,v=o[0],m=0;;m++){if(d==null){if(v>o[1]||!isFinite(v)||!isFinite(o[1]))break}else{if(m>d)break;v=Ue(v,o[1]),m===d&&(v=o[1])}if(c.push({value:v}),v=ve(v+n,s),u){var g=u.calcNiceTickMultiple(v,h);g>=0&&(v=ve(v+g*n,s))}if(c.length>0&&v===c[c.length-1].value)break;if(c.length>p)return[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:r.expandToNicedExtent?ve(y+n,s):a[1]}),f&&l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(_){return _.value},i.interval,a),f&&r.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,a),c},e.prototype.getMinorTicks=function(r){return vs(this,r,Aa(this),this._cfg.interval)},e.prototype.getLabel=function(r,i){if(r==null)return"";var n=i&&i.precision;n==null?n=tr(r.value)||0:n==="auto"&&(n=this._cfg.intervalPrecision);var a=ve(r.value,n,!0);return Al(a)},e.type="interval",e})(Bt);Bt.registerClass(FT);var Xa=FT;var wR=function(t,e,r,i){for(;r<i;){var n=r+i>>>1;t[n][1]<e?r=n+1:i=n}return r},HT=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i.type="time",i.parse=e.parse,i._locale=r.locale,i._useUTC=r.useUTC,i._interval=0;var n=Zf(i,r),a=cs(i,n,null);return i.brk=a.brk,i}return e.prototype.getLabel=function(r){return Li(r.value,rm[tb(Wo(this._minLevelUnit))]||rm.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,i,n){return rb(r,i,n,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var i=this._interval,n=Bi(this),a=Ve(),o=this.brk,s=a&&o,l=[];if(!i)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return Ve().addBreaksToTicks(l,o.breaks,n),l;l=OR(this._minLevelUnit,this._approxInterval,u,n,ps(this),o);var f=Xt.length-1,c=0;return w(l,function(p){p.time&&(f=Math.min(f,ne(Xt,p.time.upperTimeUnit)),c=Math.max(c,p.time.level))}),s&&Ve().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(p){return p.value},this._approxInterval,n),s&&r.breakTicks!=="none"&&Ve().addBreaksToTicks(l,o.breaks,n,function(p){for(var h=Math.max(ne(Xt,Ma(p.vmin,u)),ne(Xt,Ma(p.vmax,u))),d=0,v=0;v<Xt.length;v++)if(!GT(Xt[v],p.vmin,p.vmax,u)){d=v;break}var m=Math.min(d,f),g=Math.max(m,h);return{level:c,lowerTimeUnit:Xt[g],upperTimeUnit:Xt[m]}}),l},e.prototype.getMinorTicks=function(r){return vs(this,r,Aa(this),this._interval)},e.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},e.parse=function(r){return le(r)?Math.round(r):+It(r)},e.type="time",e})(Bt),pp=[["second",Qf],["minute",Jf],["hour",Go],["quarter-day",Go*6],["half-day",Go*12],["day",ur*1.2],["half-week",ur*3.5],["week",ur*7],["month",ur*31],["quarter",ur*95],["half-year",tm/2],["year",tm]];function GT(t,e,r,i){return Yo(new Date(e),t,i).getTime()===Yo(new Date(r),t,i).getTime()}function TR(t,e){return t/=ur,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function CR(t){var e=30*ur;return t/=e,t>6?6:t>3?3:t>2?2:1}function ER(t){return t/=Go,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function VT(t,e){return t/=e?Jf:Qf,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function AR(t){return ce(Ei(t,!0),1)}function DR(t,e,r){var i=Math.max(0,ne(Xt,e)-1);return Yo(new Date(t),Xt[i],r).getTime()}function MR(t,e){var r=new Date(0);r[t](1);var i=r.getTime();r[t](1+e);var n=r.getTime()-i;return function(a,o){return Math.max(0,Math.round((o-a)/n))}}function OR(t,e,r,i,n,a){var o=3e3,s=QS,l=0;function u(k,W,z,X,$,K,te){for(var ie=MR($,k),q=W,me=new Date(q);q<z&&q<=i[1]&&(te.push({value:q}),!(l++>o));)if(me[$](me[X]()+k),q=me.getTime(),a){var Se=a.calcNiceTickMultiple(q,ie);Se>0&&(me[$](me[X]()+Se*k),q=me.getTime())}te.push({value:q,notAdd:q>i[1]})}function f(k,W,z){var X=[],$=!W.length;if(!GT(Wo(k),i[0],i[1],r)){$&&(W=[{value:DR(i[0],k,r)},{value:i[1]}]);for(var K=0;K<W.length-1;K++){var te=W[K].value,ie=W[K+1].value;if(te!==ie){var q=void 0,me=void 0,Se=void 0,Mt=!1;switch(k){case"year":q=Math.max(1,Math.round(e/ur/365)),me=im(r),Se=ib(r);break;case"half-year":case"quarter":case"month":q=CR(e),me=ec(r),Se=nm(r);break;case"week":case"half-week":case"day":q=TR(e,31),me=tc(r),Se=am(r),Mt=!0;break;case"half-day":case"quarter-day":case"hour":q=ER(e),me=rc(r),Se=om(r);break;case"minute":q=VT(e,!0),me=ic(r),Se=sm(r);break;case"second":q=VT(e,!1),me=nc(r),Se=lm(r);break;case"millisecond":q=AR(e),me=ac(r),Se=um(r);break}ie>=i[0]&&te<=i[1]&&u(q,te,ie,me,Se,Mt,X),k==="year"&&z.length>1&&K===0&&z.unshift({value:z[0].value-q})}}for(var K=0;K<X.length;K++)z.push(X[K])}}for(var c=[],p=[],h=0,d=0,v=0;v<s.length;++v){var m=Wo(s[v]);if(eb(s[v])){f(s[v],c[c.length-1]||[],p);var g=s[v+1]?Wo(s[v+1]):null;if(m!==g){if(p.length){d=h,p.sort(function(k,W){return k.value-W.value});for(var y=[],_=0;_<p.length;++_){var x=p[_].value;(_===0||p[_-1].value!==x)&&(y.push(p[_]),x>=i[0]&&x<=i[1]&&h++)}var S=n/e;if(h>S*1.5&&d>S/1.5||(c.push(y),h>S||t===s[v]))break}p=[]}}}for(var b=De(U(c,function(k){return De(k,function(W){return W.value>=i[0]&&W.value<=i[1]&&!W.notAdd})}),function(k){return k.length>0}),T=b.length-1,C=[],v=0;v<b.length;++v)for(var A=b[v],E=0;E<A.length;++E){var D=Ma(A[E].value,r);C.push({value:A[E].value,time:{level:T-v,upperTimeUnit:D,lowerTimeUnit:D}})}To(C,F0,null),C.sort(function(k,W){return k.value-W.value});var O=C[0],M=C[C.length-1],I=Ma(i[0],r),R=Ma(i[1],r);return(!O||O.value>i[0])&&C.unshift({value:i[0],time:{level:0,upperTimeUnit:I,lowerTimeUnit:I},notNice:!0}),(!M||M.value<i[1])&&C.push({value:i[1],time:{level:0,upperTimeUnit:R,lowerTimeUnit:R},notNice:!0}),C}var WT=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=ur,r[1]+=ur),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-ur}t.setExtent(r[0],r[1]);var n=$l(e.splitNumber,10),a=ps(t)/n,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var l=pp.length,u=Math.min(wR(pp,a,0,l),l-1),f=pp[u][1],c=pp[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};Bt.registerClass(HT);var YT=HT;var hp=0,dp=1,IR=2,ZT=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i.type="log",i.parse=Xa.parse,i.base=r.logBase||10;var n=[],a=[],o=i._lookup={from:n,to:a};n[hp]=n[dp]=a[hp]=a[dp]=NaN,op(i,e.mapperMethods);var s=Ve(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},IR,u),i.powStub=new Xa({breakParsed:u.original}),i.intervalStub=new Xa({breakParsed:u.transformed}),sp(i,i.intervalStub),i}return e.prototype.getTicks=function(r){var i=this.base,n=this.powStub,a=Ve(),o=this.intervalStub,s=o.getExtent(),l=n.getExtent(),u={lookup:{from:s,to:l}};return U(o.getTicks(r||{}),function(f){var c=f.value,p=up(c,i,u),h;if(a){var d=a.getTicksBreakOutwardTransform(this,f,Aa(n),this._lookup);d&&(h=d.vBreak,p=d.tickVal)}return{value:p,break:h}},this)},e.prototype.getMinorTicks=function(r){return vs(this,r,Aa(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,i){return this.intervalStub.getLabel(r,i)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(jl(r,this.base))},scale:function(r){return up(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,i){return r=jl(r,this.base),i&&i.depth===fs?r:this.intervalStub.transformIn(r,i)},transformOut:function(r,i){var n=i?i.depth:null;return XT.depth=n,qT.lookup=this._lookup,up(n===fs?r:this.intervalStub.transformOut(r,XT),this.base,qT)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,i){this.setExtent2(qt,r,i)},setExtent2:function(r,i,n){if(!(!Di(i,n)||i<=0||n<=0)){var a=KT,o=KT;if(r===qt){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[hp]=i,a[dp]=n);var l=this.base;this.intervalStub.setExtent2(r,o[hp]=jl(i,l),o[dp]=jl(n,l))}},getFilter:function(){return{g:0}},sanitize:function(r,i){return Di(i[0],i[1])&&$e(r)&&r<=0&&(r=i[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,i){return i===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,i)}},e})(Bt);Bt.registerClass(ZT);var XT={},qT={},KT=[],jT=ZT;var vp={value:1,category:1,time:1,log:1};var $T=ae();function gp(t){var e=t.get("type");return(e==null||!Me(vp,e)&&!Bt.getClass(e))&&(e="value"),e}function yp(t,e,r){var i=Ve(),n;switch(i&&(n=Sg(t,e,r)),e){case"category":return new zT({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:yt()});case"time":return new YT({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:n});case"log":return new jT({logBase:t.get("logBase"),breakOption:n});case"value":return new Xa({breakOption:n});default:return new(Bt.getClass(e)||Xa)({})}}function QT(t,e,r){var i=r?Ya(t,null):t.getExtentUnsafe(qt,null),n=i[0],a=i[1];return Di(n,a)?n===e||a===e?NR:n<e&&a>e?LR:mp:mp}var LR=1,NR=2,mp=3;function JT(t){$T(t).noOnMyZero=!0}function e1(t){return $T(t).noOnMyZero}function Ql(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=JS(e);return function(n,a){return t.scale.getFormattedLabel(n,a,r)}}else{if(B(e))return function(n){var a=t.scale.getLabel(n),o=e.replace("{value}",a??"");return o};if(G(e)){if(t.type==="category")return function(n,a){return e(ms(t,n),n.value-t.scale.getExtent()[0],null)};var i=Ve();return function(n,a){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,n.break)),e(ms(t,n),a,o)}}else return function(n){return t.scale.getLabel(n)}}}function ms(t,e){var r=t.scale;return ht(r)?r.getLabel(e):e.value}function _p(t){var e=t.get("interval");return e??"auto"}function t1(t){return t.type==="category"&&_p(t.getLabelModel())===0}function r1(t,e){var r={};return w(t.mapDimensionsAll(e),function(i){r[ap(t,i)]=!0}),fe(r)}function xn(t){return t==="middle"||t==="center"}function qa(t){return t.getShallow("show")}function Sg(t,e,r){var i=t.get("breaks",!0);if(i!=null){if(!Ve())return;if(!r||!PR(e)){if(0)var n;return}return i}}function PR(t){return t!=="category"}function xp(t,e,r,i,n,a){var o=vi(t),s=o?t.intervalStub:t;if(s.setExtent(i[0],i[1]),o){var l=t.powStub,u={depth:fs},f=t.transformOut(i[0],u),c=t.transformOut(i[1],u),p=BT(r,i);e[0]&&!p[0]&&(f=n[0]),e[1]&&!p[1]&&(c=n[1]),l.setExtent(f,c)}s.setConfig(a)}function Ui(t,e){return ht(t)?t.getRawOrdinalNumber(e.value):e.value}function Sp(t,e){return ht(t)&&!!e.get("boundaryGap")}var bp=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})();var RR=sf(),wp="|&",gs=ae(),Tp=-2,i1=-1,kR=ae();function n1(t,e){var r=t.model,i=gs(Fa(r.ecModel)).keyed,n=i&&i.get(e);return n&&n.get(r.uid)}function a1(t,e){return l1(n1(t,e))}function o1(t,e){var r=[];return s1(t.model.ecModel,function(i){for(var n=0;n<e.length;n++)e[n]&&i.serByIdx[e[n].seriesIndex]&&r.push(l1(i))}),r}function s1(t,e){var r=gs(Fa(t)).keyed;r&&r.each(function(i,n){i.each(function(a,o){e(a,n,o)})})}function l1(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function u1(t,e){var r=t.model.ecModel,i=gs(Fa(r)).axSer;i&&Cp(r,i.get(t.model.uid),e)}function Cg(t,e,r){var i=n1(t,e);i&&Cp(t.model.ecModel,i.sers,r)}function Cp(t,e,r){if(e)for(var i=0;i<e.length;i++){var n=e[i];t.isSeriesFiltered(n)||r(n)}}function f1(t,e,r){var i=gs(Fa(t)).keyed,n=i&&i.get(e);n&&n.each(function(a){r(a.axis)})}function Eg(t,e){var r=t.model,i=gs(Fa(r.ecModel)).keys;i&&w(i.get(r.uid),function(n){if(0)var a;e(n)})}function BR(t){var e=kR(Rw(t)),r=e.keyed||(e.keyed=V());s1(t,function(i,n,a){var o=r.get(n)||r.set(n,V()),s=o.get(a)||o.set(a,{});i.metrics.liPosMinGap&&p1.liPosMinGap(t,i,s)})}function c1(t,e){p1[t]=e}var p1={};function Ag(t,e,r){if(t){var i=e.ecModel,n=gs(Fa(i)),a=t.model.uid;if(0)var o,s;var l=n.axSer||(n.axSer=V()),u=l.get(a)||l.set(a,[]);if(0)var f;u.push(e);var c=e.subType,p=e.getBaseAxis()===t,h=Tg.get(wg(c,p,r))||Tg.get(wg(c,p,null));if(h){var d=n.keyed||(n.keyed=V()),v=n.keys||(n.keys=V()),m=h.key,g=d.get(m)||d.set(m,V()),y=g.get(a);y||(y=g.set(a,{axis:t,sers:[],serByIdx:[]}),y.metrics=h.getMetrics(t),(v.get(a)||v.set(a,[])).push(m)),y.sers.push(e),y.serByIdx[e.seriesIndex]=e}}}function wg(t,e,r){return t+wp+Y(e,!0)+wp+(r||"")}function h1(t,e){var r=wg(e.seriesType,e.baseAxis,e.coordSysType);Tg.set(r,e),RR(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:BR})})}var Tg=V();var UR=ae(),m1=1;var zR=3,g1=(function(){function t(e,r,i,n,a){var o=ht(e),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var f=i.slice();(hs(e)||vi(e)||ds(e))&&(Fd(f,Jl(e,r.get("dataMin",!0))),Vd(f,Jl(e,r.get("dataMax",!0)))),U0(f)||(f[0]=f[1]=NaN);var c=[],p=[!1,!1],h=r.get("min",!0);h==="dataMin"?(c[0]=f[0],p[0]=!0):(c[0]=Jl(e,G(h)?h({min:f[0],max:f[1]}):h),p[0]=c[0]!=null);var d=r.get("max",!0);d==="dataMax"?(c[1]=f[1],p[1]=!0):(c[1]=Jl(e,G(d)?d({min:f[0],max:f[1]}):d),p[1]=c[1]!=null);var v=FR(e,r),m=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-v[0]*m),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+v[1]*m),!Wr(c[0])&&(c[0]=NaN),!Wr(c[1])&&(c[1]=NaN);var g=l||_i(c[0])||_i(c[1])||o&&!s,y=hs(e),_=y&&r.needIncludeZero&&r.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!p[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!p[1]&&(c[1]=0));var x=!1;c[0]>c[1]&&(c.reverse(),x=!0);var S=Jl(e,r.get("startValue",!0)),b=S!=null;!$e(S)&&n&&(S=e.getDefaultStartValue?e.getDefaultStartValue():0),$e(S)&&(b||!y||_)&&(S<c[0]&&!p[0]?(c[0]=S,p[0]=!0):S>c[1]&&!p[1]&&(c[1]=S,p[1]=!0));var T=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:p,zoomFixMM:[!1,!1],startValue:S,isBlank:g,incl0:_,tggAxInv:x,ctnShp:a};d1(T,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,i=e.noZoomEffMM,n=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:n,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:i.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=n[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=n[1]=!0),d1(e,s),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},t})();function d1(t,e){var r=t.scale,i=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],i),e[1]=r.sanitize(e[1],i),z0(e))}function Jl(t,e){return e==null?null:_i(e)?NaN:t.parse(e)}function FR(t,e){var r;if(ht(t))r=[0,0];else{var i=e.get("boundaryGap");typeof i=="boolean"&&(i=null),r=P(i)?i:[i,i]}return[v1(r[0]),v1(r[1])]}function v1(t){return Vr(typeof t=="boolean"?0:t,1)||0}function y1(t){var e=UR(t.scale);return e.extent||(e.extent=yt()),e}function _1(t,e){y1(t).dimIdxInCoord=e.get(t.dim)}function x1(t,e){var r=t.scale,i=t.model,n=t.dim;r.rawExtentInfo||VR(r,t,n,i,e)}function VR(t,e,r,i,n){var a=y1(e),o=a.extent,s=!1;u1(e,function(f){if(f.boxCoordinateSystem){var c=fc(f).coord,p=a.dimIdxInCoord;if(p>=0){if(P(c)){var h=c[p];h!=null&&!P(h)&&nl(o,t.parse(h))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var v=t.getFilter?t.getFilter():null;w(r1(d,r),function(m){B0(o,d.getApproximateExtent(m,v))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=GR(t,e,i),u=new g1(t,i,o,s,l);S1(t,u,n),a.extent=null}function HR(t,e){var r=t.scale;S1(r,new g1(r,t.model,e,!1,!1),zR)}function S1(t,e,r){t.rawExtentInfo=e,e.from=r}function b1(t,e){Dg.set(t,e)}var Dg=V();function Ep(t,e,r,i,n){t.rawExtentInfo||HR({scale:t,model:e},n||yt());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;return t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),i&&a.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(i.inverse=!i.inverse),a}function GR(t,e,r){var i=Sp(t,r),n=r.get("containShape",!0);if(n==null&&!i&&(n=!0),!n)return!1;var a=!1;return Eg(e,function(o){a=!!Dg.get(o)||a}),a}function w1(t,e,r,i){if(r.ctnShp){var n;if(Eg(t,function(s){var l=Dg.get(s);if(l){var u=l(t,i);u&&(n=n||[0,0],Fd(n,u[0]),Vd(n,u[1]),JT(t))}}),!!n){var a=e.getExtent();if(ht(e))t.onBand||e.setExtent2(us,Ue(a[0],a[0]+n[0]),ce(a[1],a[1]+n[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=Ue(o[0],e.transformOut(e.transformIn(o[0],null)+n[0],null))),r.zoomFixMM[1]||(o[1]=ce(o[1],e.transformOut(e.transformIn(o[1],null)+n[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(us,o[0],o[1])}}}}function T1(t,e){var r=vi(t),i=r?t.intervalStub:t,n=e.fixMinMax||[],a=r?t.getExtent():null,o=i.getExtent(),s=fp(o,n,e.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=r?YR(i,e):WR(i,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=jr(c)),n[0]||(s[0]=ve(Sr(s[0]/f)*f,u)),n[1]||(s[1]=ve($i(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),xp(t,n,o,s,a,l)}function WR(t,e){var r=$l(e.splitNumber,5),i=ps(t),n=e.minInterval,a=e.maxInterval,o=Ei(i/r,!0);n!=null&&o<n&&(o=n),a!=null&&o>a&&(o=a);var s=jr(o),l=t.getExtent(),u=[ve($i(l[0]/o)*o,s),ve(Sr(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function YR(t,e){var r=$l(e.splitNumber,10),i=t.getExtent(),n=ps(t),a=ce(xo(n),1),o=r/n*a;o<=.5&&(a*=10);var s=jr(a),l=[ve($i(i[0]/a)*a,s),ve(Sr(i[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function Mg(t){var e=t.scale,r=t.model,i=r.axis,n=r.ecModel;Og(e,r,i,n,null)}function Og(t,e,r,i,n){var a=Ep(t,e,i,r,n),o=hs(t)||ds(t);XR(t,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),r&&i&&w1(r,t,a,i)}function XR(t,e){qR[t.type](t,e)}var qR={interval:T1,log:T1,time:WT,ordinal:ke};function KR(t){return _n(null,t)}var ZR={isDimensionStacked:Zr,enableDataStack:np,getStackedDimension:ap};function jR(t,e){var r=e;e instanceof Te||(r=new Te(e));var i=gp(r),n=yp(r,i,!1);return t[1]<t[0]&&(t=t.slice().reverse()),Og(n,r,null,null,t),n}function $R(t){lt(t,bp)}function QR(t,e){return e=e||{},Xr(t,null,null,e.state!=="normal")}var C1=[],JR={registerPreprocessor:$c,registerProcessor:Qc,registerPostInit:sg,registerPostUpdate:lg,registerUpdateLifecycle:Hl,registerAction:gn,registerCoordinateSystem:ug,registerLayout:fg,registerVisual:ki,registerTransform:hg,registerLoading:Jc,registerMap:pg,registerImpl:Lw,PRIORITY:rg,ComponentModel:xe,ComponentView:st,SeriesModel:Rt,ChartView:xt,registerComponentModel:function(t){xe.registerClass(t)},registerComponentView:function(t){st.registerClass(t)},registerSeriesModel:function(t){Rt.registerClass(t)},registerChartView:function(t){xt.registerClass(t)},registerCustomSeries:function(t,e){Rc(t,e)},registerSubTypeDefaulter:function(t,e){xe.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Od(t,e)}};function Ut(t){if(P(t)){w(t,function(e){Ut(e)});return}ne(C1,t)>=0||(C1.push(t),G(t)&&(t={install:t}),t.install(JR))}var ek=1e-8;function E1(t,e){return Math.abs(t-e)<ek}function Lg(t,e,r){var i=0,n=t[0];if(!n)return!1;for(var a=1;a<t.length;a++){var o=t[a];i+=Er(n[0],n[1],o[0],o[1],e,r),n=o}var s=t[0];return(!E1(n[0],s[0])||!E1(n[1],s[1]))&&(i+=Er(n[0],n[1],s[0],s[1],e,r)),i!==0}var rk=[];function Ng(t,e){for(var r=0;r<t.length;r++)Xe(t[r],t[r],e)}function A1(t,e,r,i){for(var n=0;n<t.length;n++){var a=t[n];i&&(a=i.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(mr(e,e,a),gr(r,r,a))}}function ik(t){for(var e=0,r=0,i=0,n=t.length,a=t[n-1][0],o=t[n-1][1],s=0;s<n;s++){var l=t[s][0],u=t[s][1],f=a*u-l*o;e+=f,r+=(a+l)*f,i+=(o+u)*f,a=l,o=u}return e?[r/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}var D1=(function(){function t(e){this.name=e}return t.prototype.setCenter=function(e){this._center=e},t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},t})();var Pg=(function(){function t(e,r){this.type="polygon",this.exterior=e,this.interiors=r}return t})();var Rg=(function(){function t(e){this.type="linestring",this.points=e}return t})();var M1=(function(t){L(e,t);function e(r,i,n){var a=t.call(this,r)||this;return a.type="geoJSON",a.geometries=i,a._center=n&&[n[0],n[1]],a}return e.prototype.calcCenter=function(){for(var r=this.geometries,i,n=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,l=s&&s.length;l>n&&(i=o,n=l)}if(i)return ik(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(r){var i=this._rect;if(i&&!r)return i;var n=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return w(o,function(s){s.type==="polygon"?A1(s.exterior,n,a,r):w(s.points,function(l){A1(l,n,a,r)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])||(n[0]=n[1]=a[0]=a[1]=0),i=new j(n[0],n[1],a[0]-n[0],a[1]-n[1]),r||(this._rect=i),i},e.prototype.contain=function(r){var i=this.getBoundingRect(),n=this.geometries;if(!i.contain(r[0],r[1]))return!1;e:for(var a=0,o=n.length;a<o;a++){var s=n[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Lg(l,r[0],r[1])){for(var f=0;f<(u?u.length:0);f++)if(Lg(u[f],r[0],r[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(r,i,n,a){var o=this.getBoundingRect(),s=o.width/o.height;n?a||(a=n/s):n=s*a;for(var l=new j(r,i,n,a),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var p=f[c];p.type==="polygon"?(Ng(p.exterior,u),w(p.interiors,function(h){Ng(h,u)})):w(p.points,function(h){Ng(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(r){r==null&&(r=this.name);var i=new e(r,this.geometries,this._center);return i._rect=this._rect,i.transformTo=null,i},e})(D1);var tq=(function(t){L(e,t);function e(r,i){var n=t.call(this,r)||this;return n.type="geoSVG",n._elOnlyForCalculate=i,n}return e.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,i=r.getBoundingRect(),n=[i.x+i.width/2,i.y+i.height/2],a=yr(rk),o=r;o&&!o.isGeoSVGGraphicRoot;)Ur(a,o.getLocalTransform(),a),o=o.parent;return Jt(a,a),Xe(n,n,a),n},e})(D1);function nk(t){if(!t.UTF8Encoding)return t;var e=t,r=e.UTF8Scale;r==null&&(r=1024);var i=e.features;return w(i,function(n){var a=n.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=O1(s,o,r);break;case"Polygon":kg(s,o,r);break;case"MultiLineString":kg(s,o,r);break;case"MultiPolygon":w(s,function(l,u){return kg(l,o[u],r)})}}),e.UTF8Encoding=!1,e}function kg(t,e,r){for(var i=0;i<t.length;i++)t[i]=O1(t[i],e[i],r)}function O1(t,e,r){for(var i=[],n=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=a,n=s,a=l,i.push([s/r,l/r])}return i}function Ap(t,e){return t=nk(t),U(De(t.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var i=r.properties,n=r.geometry,a=[];switch(n.type){case"Polygon":var o=n.coordinates;a.push(new Pg(o[0],o.slice(1)));break;case"MultiPolygon":w(n.coordinates,function(l){l[0]&&a.push(new Pg(l[0],l.slice(1)))});break;case"LineString":a.push(new Rg([n.coordinates]));break;case"MultiLineString":a.push(new Rg(n.coordinates))}var s=new M1(i[e||"name"],a,i.cp);return s.properties=i,s})}var Bg={};Ft(Bg,{MAX_SAFE_INTEGER:()=>Qs,asc:()=>Ji,getPercentWithPrecision:()=>S0,getPixelPrecision:()=>_0,getPrecision:()=>tr,getPrecisionSafe:()=>Ld,isNumeric:()=>el,isRadianAroundZero:()=>ta,linearMap:()=>$s,nice:()=>Ei,numericToNumber:()=>br,parseDate:()=>It,parsePercent:()=>Ke,quantile:()=>w0,quantity:()=>xo,quantityExponent:()=>So,reformIntervals:()=>T0,remRadian:()=>Js,round:()=>y0});var Ug={};Ft(Ug,{format:()=>Li,parse:()=>It,roundTime:()=>Yo});var zg={};Ft(zg,{Arc:()=>ga,BezierCurve:()=>wl,BoundingRect:()=>j,Circle:()=>va,CompoundPath:()=>Mf,Ellipse:()=>gl,Group:()=>we,Image:()=>Wt,IncrementalDisplayable:()=>kf,Line:()=>sr,LinearGradient:()=>No,Polygon:()=>Sl,Polyline:()=>bl,RadialGradient:()=>If,Rect:()=>_e,Ring:()=>xl,Sector:()=>ci,Text:()=>Oe,clipPointsByRect:()=>Wv,clipRectByRect:()=>Yv,createIcon:()=>wa,extendPath:()=>zv,extendShape:()=>Uv,getShapeClass:()=>Fv,getTransform:()=>Hv,initProps:()=>Tt,makeImage:()=>El,makePath:()=>Bo,mergePath:()=>Vv,registerShape:()=>lr,resizePath:()=>zf,updateProps:()=>He});var Fg={};Ft(Fg,{addCommas:()=>Al,capitalFirst:()=>ob,encodeHTML:()=>nt,formatTime:()=>ab,formatTpl:()=>qo,getTextRect:()=>fm,getTooltipMarker:()=>sc,normalizeCssArray:()=>pi,toCamelCase:()=>Xo,truncateText:()=>qd});var Vg={};Ft(Vg,{bind:()=>pe,clone:()=>Q,curry:()=>Ce,defaults:()=>re,each:()=>w,extend:()=>N,filter:()=>De,indexOf:()=>ne,inherits:()=>Os,isArray:()=>P,isFunction:()=>G,isObject:()=>F,isString:()=>B,map:()=>U,merge:()=>ue,reduce:()=>St});var ak=ae(),eu=ae(),Kt={estimate:1,determine:2};function ys(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function I1(t,e){var r=t.getLabelModel().get("customValues");if(r){var i=t.scale;return{labels:U(N1(r,i),function(n,a){return{formattedLabel:Ql(t)(n,a),rawLabel:i.getLabel(n),tick:n}})}}return t.type==="category"?ok(t,e):lk(t)}function L1(t,e,r){var i=t.scale,n=t.getTickModel().get("customValues");return n?{ticks:N1(n,i)}:t.type==="category"?sk(t,e):{ticks:i.getTicks(r)}}function N1(t,e){var r=e.getExtent(),i=[];return w(t,function(n){n=e.parse(n),n>=r[0]&&n<=r[1]&&i.push(n)}),To(i,V0,null),Ji(i),U(i,function(n){return{value:n}})}function ok(t,e){var r=t.getLabelModel(),i=P1(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:i}function P1(t,e,r){var i=fk(t),n=_p(e),a=r.kind===Kt.estimate;if(!a){var o=k1(i,n);if(o)return o}var s,l;G(n)?s=Dp(t,n,!1):(l=n==="auto"?ck(t,r):n,s=Dp(t,l,!1));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return Hg(i,n,u),!0}):Hg(i,n,u),u}function sk(t,e){var r=uk(t),i=_p(e),n=k1(r,i);if(n)return n;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),G(i))a=Dp(t,i,!0);else if(i==="auto"){var s=P1(t,t.getLabelModel(),ys(Kt.determine));o=s.labelCategoryInterval,a=U(s.labels,function(l){return l.tick})}else o=i,a=Dp(t,o,!0);return Hg(r,i,{ticks:a,tickCategoryInterval:o})}function lk(t){var e=t.scale.getTicks(),r=Ql(t);return{labels:U(e,function(i,n){return{formattedLabel:r(i,n),rawLabel:t.scale.getLabel(i),tick:i}})}}var uk=R1("axisTick"),fk=R1("axisLabel");function R1(t){return function(r){return eu(r)[t]||(eu(r)[t]={list:[]})}}function k1(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function Hg(t,e,r){return t.list.push({key:e,value:r}),r}function ck(t,e){if(e.kind===Kt.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return eu(t).autoInterval=r,!0}),r}var i=eu(t).autoInterval;return i??(eu(t).autoInterval=t.calculateCategoryInterval(e))}function B1(t,e){var r=e.kind,i=hk(t),n=Ql(t),a=(i.axisRotate-i.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],p=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(p*Math.cos(a)),d=Math.abs(p*Math.sin(a)),v=0,m=0;c<=s[1];c+=u){var g=0,y=0,_=ju(n({value:c}),i.font,"center","top");g=_.width*1.3,y=_.height*1.3,v=Math.max(v,g,7),m=Math.max(m,y,7)}var x=v/h,S=m/d;isNaN(x)&&(x=1/0),isNaN(S)&&(S=1/0);var b=Math.max(0,Math.floor(Math.min(x,S)));if(r===Kt.estimate)return e.out.noPxChangeTryDetermine.push(pe(pk,null,t,b,l)),b;var T=U1(t,b,l);return T??b}function pk(t,e,r){return U1(t,e,r)==null}function U1(t,e,r){var i=ak(t.model),n=t.getExtent(),a=i.lastAutoInterval,o=i.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&i.axisExtent0===n[0]&&i.axisExtent1===n[1])return a;i.lastTickCount=r,i.lastAutoInterval=e,i.axisExtent0=n[0],i.axisExtent1=n[1]}function hk(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Dp(t,e,r){var i=Ql(t),n=t.scale,a=[],o=G(e);return cp(n,o?0:e,function(s,l){var u=n.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}a.push(r?s:{formattedLabel:i(s),rawLabel:u,tick:s})}),a}var dk=.8;function $r(t,e){e=e||{};var r={w:NaN,w2:NaN},i=t.scale,n=e.fromStat,a=e.min,o=RT(i);$e(o)||(o=NaN);var s=t.getExtent(),l=Le(s[1]-s[0]);return ht(i)?vk(r,t,o,l):n?mk(r,t,o,l,n):a==null,a!=null&&(r.w=$e(r.w)?ce(a,r.w):a),r}function vk(t,e,r,i){var n=e.onBand,a=r+(n?1:0);a===0&&(a=1),t.w=i/a,!n&&r&&i&&(t.w2=t.w*r/i)}function mk(t,e,r,i,n){var a=!1,o=-1/0;w(n.key?[a1(e,n.key)]:o1(e,n.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===Tp&&(a=!0))}),$e(r)&&r>0&&$e(o)?(t.w=i/r*o,t.w2=o):a&&(t.w=i*dk,t.w2=t.w*r/i)}var z1=[0,1],gk=(function(){function t(e,r,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=i||[0,0]}return t.prototype.contain=function(e){var r=this._extent,i=Math.min(r[0],r[1]),n=Math.max(r[0],r[1]);return e>=i&&e<=n},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var i=this._extent;i[0]=e,i[1]=r},t.prototype.dataToCoord=function(e,r){var i=this.scale;return e=i.normalize(i.parse(e)),$s(e,z1,F1(this),r)},t.prototype.coordToData=function(e,r){var i=$s(e,F1(this),z1,r);return this.scale.scale(i)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),i=L1(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),n=U(i.ticks,function(s){return{coord:this.dataToCoord(Ui(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=yk(this,n,a);return U(n,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(ht(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var i=this.scale.getMinorTicks(r),n=U(i,function(a){return U(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},t.prototype.getViewLabels=function(e){return e=e||ys(Kt.determine),I1(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return $r(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||ys(Kt.determine),B1(this,e)},t})();function F1(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],i=r/t.scale.count()/2;e[0]+=i,e[1]-=i}return e}function yk(t,e,r){var i=e.length;if(!t.onBand||r||!i)return!1;var n=$r(t).w;if(!n)return!1;w(e,function(s){s.coord-=n/2});var a=t.scale.getExtent(),o=e[i-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+n,tick:{value:a[1]+1}}),!0}var Mp=gk;function _k(t){var e=xe.extend(t);return xe.registerClass(e),e}function xk(t){var e=st.extend(t);return st.registerClass(e),e}function Sk(t){var e=Rt.extend(t);return Rt.registerClass(e),e}function bk(t){var e=xt.extend(t);return xt.registerClass(e),e}var V1=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],wk=1,Op=2,G1=wk|Op;function tu(t,e,r){r=r||G1,e?t.dirty|=r:t.dirty&=~r}function W1(t,e){return e=e||G1,t.dirty==null||!!(t.dirty&e)}function Qr(t){if(t)return W1(t)&&Tk(t,t.label,t),t}function Tk(t,e,r){var i=e.getComputedTransform();t.transform=Hf(t.transform,i);var n=t.localRect=Fo(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=Ca.textMargin);for(var c=0;c<4;c++)Gg[c]=f===Ca.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===Ca.textMargin&&Uo(n,Gg,!1,!1);var p=t.rect=Fo(t.rect,n);return i&&p.applyTransform(i),f===Ca.minMargin&&Uo(p,Gg,!1,!1),t.axisAligned=Vf(i),(t.label=t.label||{}).ignore=e.ignore,tu(t,!1),tu(t,!0,Op),t}var Gg=[0,0,0,0];function Y1(t,e,r){return t.transform=Hf(t.transform,r),t.localRect=Fo(t.localRect,e),t.rect=Fo(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=Vf(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function X1(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var i=t.rect;i&&(i.x+=e.x,i.y+=e.y);var n=t.obb;n&&n.fromBoundingRect(t.localRect,r)}}function Wg(t,e){for(var r=0;r<V1.length;r++){var i=V1[r];t[i]==null&&(t[i]=e[i])}return Qr(t)}function H1(t){var e=t.obb;return(!e||W1(t,Op))&&(t.obb=e=e||new Rf,e.fromBoundingRect(t.localRect,t.transform),tu(t,!1,Op)),e}function q1(t){var e=[];t.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var i=0;i<t.length;i++){var n=Qr(t[i]);if(!n.label.ignore){for(var a=n.label,o=n.labelLine,s=!1,l=0;l<e.length;l++)if(Ip(n,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(n)}}}function Ip(t,e,r,i){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,i)?!1:t.axisAligned&&e.axisAligned?!0:H1(t).intersect(H1(e),r,i)}var Ck=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){if(0)var i;return _n(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var i=new we,n=pr("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);i.add(n),n.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=pr(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);i.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=Z.color.neutral00,u.style.lineWidth=2),i},e.type="series.line",e.dependencies=["grid","polar"],e.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:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e})(Rt),K1=Ck;function _s(t,e){var r=t.mapDimensionsAll("defaultedLabel"),i=r.length;if(i===1){var n=Pi(t,e,r[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<r.length;o++)a.push(Pi(t,e,r[o]));return a.join(" ")}}function Lp(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!P(e))return e+"";for(var i=[],n=0;n<r.length;n++){var a=t.getDimensionIndex(r[n]);a>=0&&i.push(e[a])}return i.join(" ")}var Ek=(function(t){L(e,t);function e(r,i,n,a){var o=t.call(this)||this;return o.updateData(r,i,n,a),o}return e.prototype._createSymbol=function(r,i,n,a,o,s){this.removeAll();var l=pr(r,-1,-1,2,2,null,s);l.attr({z2:Y(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=Ak,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){pa(this.childAt(0))},e.prototype.downplay=function(){ha(this.childAt(0))},e.prototype.setZ=function(r,i){var n=this.childAt(0);n.zlevel=r,n.z=i},e.prototype.setDraggable=function(r,i){var n=this.childAt(0);n.draggable=r,n.cursor=!i&&r?"move":n.cursor},e.prototype.updateData=function(r,i,n,a){this.silent=!1;var o=r.getItemVisual(i,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,i),u=e.getSymbolZ2(r,i),f=o!==this._symbolType,c=a&&a.disableAnimation;if(f){var p=r.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,r,i,l,u,p)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):He(h,d,s,i),Bf(h)}if(this._updateCommon(r,i,l,n,a),f){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Tt(h,d,s,i)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,i,n,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,p,h,d,v,m,g;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,p=a.focus,h=a.blurScope,v=a.labelStatesModels,m=a.hoverScale,g=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(i),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),p=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),v=fn(y),m=_.getShallow("scale"),g=y.getShallow("cursor")}var x=r.getItemVisual(i,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var S=Bc(r.getItemVisual(i,"symbolOffset"),n);S&&(s.x=S[0],s.y=S[1]),g&&s.attr("cursor",g);var b=r.getItemVisual(i,"style"),T=b.fill;if(s instanceof Wt){var C=s.style;s.useStyle(N({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},b))}else s.__isEmptyBrush?s.useStyle(N({},b)):s.useStyle(b),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=r.getItemVisual(i,"liftZ"),E=this._z2;A!=null?E==null&&(this._z2=s.z2,s.z2+=A):E!=null&&(s.z2=E,this._z2=null);var D=o&&o.useNameLabel;un(s,v,{labelFetcher:l,labelDataIndex:i,defaultText:O,inheritColor:T,defaultOpacity:b.opacity});function O(R){return D?r.getName(R):_s(r,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var I=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;M.scaleX=this._sizeX*I,M.scaleY=this._sizeY*I,this.setSymbolScale(1),da(this,p,h,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,i,n){var a=this.childAt(0),o=he(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();l&&Ro(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ro(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,i){return Bw(r.getItemVisual(i,"symbolSize"))},e.getSymbolZ2=function(r,i){return r.getItemVisual(i,"z2")},e})(we);function Ak(t,e){this.parent.drift(t,e)}var ru=Ek;function Np(t,e,r,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i&&i.isIgnore&&i.isIgnore(r))&&!(i&&i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function Z1(t){return t!=null&&!F(t)&&(t={isIgnore:t}),t||{}}function j1(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:fn(e),cursorStyle:e.get("cursor")}}function $1(t,e,r,i,n,a,o){var s=new t(e,r,i,n);return s.setPosition(a),e.setItemGraphicEl(r,s),o.add(s),s}var Dk=(function(){function t(e){this.group=new we,this._SymbolCtor=e||ru}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=Z1(r);var i=this.group,n=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=j1(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||i.removeAll(),e.diff(a).add(function(c){var p=f(c);Np(e,p,c,r)&&$1(o,e,c,l,u,p,i)}).update(function(c,p){var h=a.getItemGraphicEl(p),d=f(c);if(!Np(e,d,c,r)){i.remove(h);return}var v=e.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==v)i.remove(h),h=new o(e,c,l,u),h.setPosition(d);else{h.updateData(e,c,l,u);var g={x:d[0],y:d[1]};s?h.attr(g):He(h,g,n)}i.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var p=a.getItemGraphicEl(c);p&&p.fadeOut(function(){i.remove(p)},n)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(e){var r=this._data;if(r)for(var i=this,n=r.getStore(),a=0,o=n.count();a<o;a++){var s=r.getItemGraphicEl(a),l=i._getSymbolPoint(a);Np(r,l,a,e)?(s=s||$1(i._SymbolCtor,r,a,i._seriesScope,{disableAnimation:!0},l,i.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(i.group.remove(s),r.setItemGraphicEl(a,null))}},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=j1(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,i,n){this._progressiveEls=[],n=Z1(n);function a(u){u.isGroup||(u.incremental=i,u.ensureState("emphasis").hoverLayer=Cl)}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if(Np(r,s,o,n)){var l=new this._SymbolCtor(r,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),r.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(e){Ta(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(n){n.fadeOut(function(){r.remove(n)},i.hostModel)}):r.removeAll()},t})(),Q1=Dk;function Pp(t,e,r){var i=t.getBaseAxis(),n=t.getOtherAxis(i),a=Mk(n,r),o=i.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=U(t.dimensions,function(d){return e.mapDimension(d)}),p=!1,h=e.getCalculationInfo("stackResultDimension");return Zr(e,c[0])&&(p=!0,c[0]=h),Zr(e,c[1])&&(p=!0,c[1]=h),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Mk(t,e){var r=0,i=t.scale.getExtent();return e==="start"?r=i[0]:e==="end"?r=i[1]:le(e)&&!isNaN(e)?r=e:i[0]>0?r=i[0]:i[1]<0&&(r=i[1]),r}function Rp(t,e,r,i){var n=NaN;t.stacked&&(n=r.get(r.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,i),o[1-a]=n,e.dataToPoint(o)}function Zt(t,e){return!isFinite(t)||!isFinite(e)}var Ok=typeof Float32Array!==sn?Float32Array:void 0,J1=typeof Float64Array!==sn?Float64Array:void 0;function hr(t){return kp({ctor:Ok},t).arr}function kp(t,e){var r=t.arr,i=t.ctor;if(e>Qs&&(e=Qs),!r||t.typed&&r.length<e){var n=void 0;if(i)try{n=new i(e),t.typed=!0,r&&n.set(r)}catch{}if(!n&&(n=[],t.typed=!1,r))for(var a=0,o=r.length;a<o;a++)n[a]=r[a];t.arr=n}return t}function Ik(t,e){var r=[];return e.diff(t).add(function(i){r.push({cmd:"+",idx:i})}).update(function(i,n){r.push({cmd:"=",idx:n,idx1:i})}).remove(function(i){r.push({cmd:"-",idx:i})}).execute(),r}function Xg(t,e,r,i,n,a,o,s){for(var l=Ik(t,e),u=[],f=[],c=[],p=[],h=[],d=[],v=[],m=Pp(n,e,o),g=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],S=!0,b=void 0,T=void 0;switch(x.cmd){case"=":b=x.idx*2,T=x.idx1*2;var C=g[b],A=g[b+1],E=y[T],D=y[T+1];(isNaN(C)||isNaN(A))&&(C=E,A=D),u.push(C,A),f.push(E,D),c.push(r[b],r[b+1]),p.push(i[T],i[T+1]),v.push(e.getRawIndex(x.idx1));break;case"+":var O=x.idx,M=m.dataDimsForPoint,I=n.dataToPoint([e.get(M[0],O),e.get(M[1],O)]);T=O*2,u.push(I[0],I[1]),f.push(y[T],y[T+1]);var R=Rp(m,n,e,O);c.push(R[0],R[1]),p.push(i[T],i[T+1]),v.push(e.getRawIndex(O));break;case"-":S=!1}S&&(h.push(x),d.push(d.length))}d.sort(function(me,Se){return v[me]-v[Se]});for(var k=u.length,W=hr(k),z=hr(k),X=hr(k),$=hr(k),K=[],_=0;_<d.length;_++){var te=d[_],ie=_*2,q=te*2;W[ie]=u[q],W[ie+1]=u[q+1],z[ie]=f[q],z[ie+1]=f[q+1],X[ie]=c[q],X[ie+1]=c[q+1],$[ie]=p[q],$[ie+1]=p[q+1],K[_]=h[te]}return{current:W,next:z,stackedOnCurrent:X,stackedOnNext:$,status:K}}var Sn=Math.min,bn=Math.max;function qg(t,e,r,i,n,a,o,s,l){for(var u,f,c,p,h,d,v=r,m=0;m<i;m++){var g=e[v*2],y=e[v*2+1];if(v>=n||v<0)break;if(Zt(g,y)){if(l){v+=a;continue}break}if(v===r)t[a>0?"moveTo":"lineTo"](g,y),c=g,p=y;else{var _=g-u,x=y-f;if(_*_+x*x<.5){v+=a;continue}if(o>0){for(var S=v+a,b=e[S*2],T=e[S*2+1];b===g&&T===y&&m<i;)m++,S+=a,v+=a,b=e[S*2],T=e[S*2+1],g=e[v*2],y=e[v*2+1],_=g-u,x=y-f;var C=m+1;if(l)for(;Zt(b,T)&&C<i;)C++,S+=a,b=e[S*2],T=e[S*2+1];var A=.5,E=0,D=0,O=void 0,M=void 0;if(C>=i||Zt(b,T))h=g,d=y;else{E=b-u,D=T-f;var I=g-u,R=b-g,k=y-f,W=T-y,z=void 0,X=void 0;if(s==="x"){z=Math.abs(I),X=Math.abs(R);var $=E>0?1:-1;h=g-$*z*o,d=y,O=g+$*X*o,M=y}else if(s==="y"){z=Math.abs(k),X=Math.abs(W);var K=D>0?1:-1;h=g,d=y-K*z*o,O=g,M=y+K*X*o}else z=Math.sqrt(I*I+k*k),X=Math.sqrt(R*R+W*W),A=X/(X+z),h=g-E*o*(1-A),d=y-D*o*(1-A),O=g+E*o*A,M=y+D*o*A,O=Sn(O,bn(b,g)),M=Sn(M,bn(T,y)),O=bn(O,Sn(b,g)),M=bn(M,Sn(T,y)),E=O-g,D=M-y,h=g-E*z/X,d=y-D*z/X,h=Sn(h,bn(u,g)),d=Sn(d,bn(f,y)),h=bn(h,Sn(u,g)),d=bn(d,Sn(f,y)),E=g-h,D=y-d,O=g+E*X/z,M=y+D*X/z}t.bezierCurveTo(c,p,h,d,g,y),c=O,p=M}else t.lineTo(g,y)}u=g,f=y,v+=a}return m}var eC=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),tC=(function(t){L(e,t);function e(r){var i=t.call(this,r)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:Z.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new eC},e.prototype.buildPath=function(r,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&Zt(n[o*2-2],n[o*2-1]);o--);for(;a<o&&Zt(n[a*2],n[a*2+1]);a++);}for(;a<o;)a+=qg(r,n,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},e.prototype.getPointOn=function(r,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,a=n.data,o=ir.CMD,s,l,u=i==="x",f=[],c=0;c<a.length;){var p=a[c++],h=void 0,d=void 0,v=void 0,m=void 0,g=void 0,y=void 0,_=void 0;switch(p){case o.M:s=a[c++],l=a[c++];break;case o.L:if(h=a[c++],d=a[c++],_=u?(r-s)/(h-s):(r-l)/(d-l),_<=1&&_>=0){var x=u?(d-l)*_+l:(h-s)*_+s;return u?[r,x]:[x,r]}s=h,l=d;break;case o.C:h=a[c++],d=a[c++],v=a[c++],m=a[c++],g=a[c++],y=a[c++];var S=u?qn(s,h,v,g,r,f):qn(l,d,m,y,r,f);if(S>0)for(var b=0;b<S;b++){var T=f[b];if(T<=1&&T>=0){var x=u?Be(l,d,m,y,T):Be(s,h,v,g,T);return u?[r,x]:[x,r]}}s=g,l=y;break}}},e})(oe);var Lk=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(eC),rC=(function(t){L(e,t);function e(r){var i=t.call(this,r)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new Lk},e.prototype.buildPath=function(r,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Zt(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Zt(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=qg(r,n,o,s,s,1,i.smooth,l,i.connectNulls);qg(r,a,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,r.closePath()}},e})(oe);function Kg(t,e,r,i,n){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new _e({shape:{x:o,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),h=p.isHorizontal(),d=p.inverse;h?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var v=G(n)?function(m){n(m,c)}:null;Tt(c,{shape:{width:l,height:u,x:o,y:s}},r,null,i,v)}return c}function Zg(t,e,r){var i=t.getArea(),n=ve(i.r0,1),a=ve(i.r,1),o=new ci({shape:{cx:ve(t.cx,1),cy:ve(t.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=n,Tt(o,{shape:{endAngle:i.endAngle,r:a}},r)}return o}function iC(t,e,r,i,n){if(t){if(t.type==="polar")return Zg(t,e,r);if(t.type==="cartesian2d")return Kg(t,e,r,i,n)}else return null;return null}function Bp(t,e){return t.type===e}function nC(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function aC(t){for(var e=yt(),r=yt(),i=0;i<t.length;){var n=t[i++],a=t[i++];Zt(n,a)||(nl(e,n),nl(r,a))}return[e,r]}function oC(t,e){var r=aC(t),i=r[0],n=r[1],a=aC(e),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(n[0]-s[0]),Math.abs(i[1]-o[1]),Math.abs(n[1]-s[1]))}function sC(t){return le(t)?t:t?.5:0}function Nk(t,e,r){if(r.valueDim==null)return[];for(var i=e.count(),n=hr(i*2),a=0;a<i;a++){var o=Rp(r,t,e,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function wn(t,e,r,i,n){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],p=[];if(n){for(l=0;l<t.length;l+=2){var h=e||t;Zt(h[l],h[l+1])||p.push(t[l],t[l+1])}t=p}for(l=0;l<t.length-2;l+=2)switch(c[0]=t[l+2],c[1]=t[l+3],f[0]=t[l],f[1]=t[l+1],s.push(f[0],f[1]),i){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+c[o])/2,v=[];u[o]=v[o]=d,u[1-o]=f[1-o],v[1-o]=c[1-o],s.push(u[0],u[1]),s.push(v[0],v[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function Pk(t,e){var r=[],i=t.length,n,a;function o(f,c,p){var h=f.coord,d=(p-h)/(c.coord-h),v=Fu(d,[f.color,c.color]);return{coord:p,color:v}}for(var s=0;s<i;s++){var l=t[s],u=l.coord;if(u<0)n=l;else if(u>e){a?r.push(o(a,l,e)):n&&r.push(o(n,l,0),o(n,l,e));break}else n&&(r.push(o(n,l,0)),n=null),r.push(l),a=l}return r}function Rk(t,e,r){var i=t.getVisual("visualMeta");if(!(!i||!i.length||!t.count())&&e.type==="cartesian2d"){for(var n,a,o=i.length-1;o>=0;o--){var s=t.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){a=i[o];break}}if(a){var l=e.getAxis(n),u=U(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var p=Pk(u,n==="x"?r.getWidth():r.getHeight()),h=p.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,v=p[0].coord-d,m=p[h-1].coord+d,g=m-v;if(g<.001)return"transparent";w(p,function(_){_.offset=(_.coord-v)/g}),p.push({offset:h?p[h-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:h?p[0].offset:.5,color:c[0]||"transparent"});var y=new No(0,0,0,0,p,!0);return y[n]=v,y[n+"2"]=m,y}}}function kk(t,e,r){var i=t.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(n&&Bk(a,e))){var o=e.mapDimension(a.dim),s={};return w(a.getViewLabels(),function(l){l.tick.offInterval||(s[Ui(a.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function Bk(t,e){var r=t.getExtent(),i=Math.abs(r[1]-r[0])/t.scale.count();isNaN(i)&&(i=0);for(var n=e.count(),a=Math.max(1,Math.round(n/5)),o=0;o<n;o+=a)if(ru.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>i)return!1;return!0}function Uk(t){for(var e=t.length/2;e>0&&Zt(t[e*2-2],t[e*2-1]);e--);return e-1}function lC(t,e){return[t[e*2],t[e*2+1]]}function zk(t,e,r){for(var i=t.length/2,n=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<i;u++)if(o=t[u*2+n],!Zt(o,t[u*2+1-n])){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function uC(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Dr.length;e++)if(t.get([Dr[e],"endLabel","show"]))return!0;return!1}function jg(t,e,r,i){if(Bp(e,"cartesian2d")){var n=i.getModel("endLabel"),a=n.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=uC(i)?function(h,d){t._endLabelOnDuring(h,d,o,s,a,n,e)}:null,u=e.getBaseAxis().isHorizontal(),f=Kg(e,r,i,function(){var h=t._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var c=f.shape,p=Math.max(c.width,c.height);u?(c.y-=p,c.height+=p*2):(c.x-=p,c.width+=p*2)}return l&&l(1,f),f}else return Zg(e,r,i)}function Fk(t,e){var r=e.getBaseAxis(),i=r.isHorizontal(),n=r.inverse,a=i?n?"right":"left":"center",o=i?"middle":n?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var Vk=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new we,i=new Q1;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=r,this._changePolyState=pe(this._changePolyState,this)},e.prototype.render=function(r,i,n){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],c=a.type==="polar",p=this._coordSys,h=this._symbolDraw,d=this._polyline,v=this._polygon,m=this._lineGroup,g=!i.ssr&&r.get("animation"),y=!u.isEmpty(),_=u.get("origin"),x=Pp(a,s,_),S=y&&Nk(a,s,x),b=r.get("showSymbol"),T=r.get("connectNulls"),C=b&&!c&&kk(r,s,a),A=this._data;A&&A.eachItemGraphicEl(function(Pe,tt){Pe.__temp&&(o.remove(Pe),A.setItemGraphicEl(tt,null))}),b||h.remove(),o.add(m);var E=c?!1:r.get("step"),D;a&&a.getArea&&r.get("clip",!0)&&(D=a.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var O=Rk(s,a,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&p.type===a.type&&E===this._step))b&&h.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(Pe){return[f[Pe*2],f[Pe*2+1]]}}),g&&this._initSymbolLabelAnimation(s,a,D),E&&(S&&(S=wn(S,f,a,E,T)),f=wn(f,null,a,E,T)),d=this._newPolyline(f),y?v=this._newPolygon(f,S):v&&(m.remove(v),v=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,qr(O)),m.setClipPath(jg(this,a,!0,r));else{y&&!v?v=this._newPolygon(f,S):v&&!y&&(m.remove(v),v=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,qr(O));var M=m.getClipPath();if(M){var I=jg(this,a,!1,r);Tt(M,{shape:I.shape},r)}else m.setClipPath(jg(this,a,!0,r));b&&h.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(Pe){return[f[Pe*2],f[Pe*2+1]]}}),(!nC(this._stackedOnPoints,S)||!nC(this._points,f))&&(g?this._doUpdateAnimation(s,S,a,n,E,_,T):(E&&(S&&(S=wn(S,f,a,E,T)),f=wn(f,null,a,E,T)),d.setShape({points:f}),v&&v.setShape({points:f,stackedOnPoints:S})))}var R=r.getModel("emphasis"),k=R.get("focus"),W=R.get("blurScope"),z=R.get("disabled");if(d.useStyle(re(l.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"})),dl(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var X=d.getState("emphasis").style;X.lineWidth=+d.style.lineWidth+1}he(d).seriesIndex=r.seriesIndex,da(d,k,W,z);var $=sC(r.get("smooth")),K=r.get("smoothMonotone");if(d.setShape({smooth:$,smoothMonotone:K,connectNulls:T}),v){var te=s.getCalculationInfo("stackedOnSeries"),ie=0;v.useStyle(re(u.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),te&&(ie=sC(te.get("smooth"))),v.setShape({smooth:$,stackedOnSmooth:ie,smoothMonotone:K,connectNulls:T}),dl(v,r,"areaStyle"),he(v).seriesIndex=r.seriesIndex,da(v,k,W,z)}var q=this._changePolyState;s.eachItemGraphicEl(function(Pe){Pe&&(Pe.onHoverStateChange=q)}),this._polyline.onHoverStateChange=q,this._data=s,this._coordSys=a,this._stackedOnPoints=S,this._points=f,this._step=E,this._valueOrigin=_;var me=r.get("triggerEvent"),Se=r.get("triggerLineEvent"),Mt=Se===!0||me===!0||me==="line",kr=Se===!0||me===!0||me==="area";this.packEventData(r,d,Mt),v&&this.packEventData(r,v,kr)},e.prototype.packEventData=function(r,i,n){he(i).eventData=n?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:i===this._polygon?"area":"line"}:null},e.prototype.highlight=function(r,i,n,a){var o=r.getData(),s=wr(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],c=l[s*2+1];if(Zt(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var p=r.get("zlevel")||0,h=r.get("z")||0;u=new ru(o,s),u.x=f,u.y=c,u.setZ(p,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=p,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else xt.prototype.highlight.call(this,r,i,n,a)},e.prototype.downplay=function(r,i,n,a){var o=r.getData(),s=wr(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 xt.prototype.downplay.call(this,r,i,n,a)},e.prototype._changePolyState=function(r){var i=this._polygon;yv(this._polyline,r),i&&yv(i,r)},e.prototype._newPolyline=function(r){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new tC({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(r,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new rC({shape:{points:r,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(r,i,n){var a,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");G(f)&&(f=f(null));var c=u.get("animationDelay")||0,p=G(c)?c(null):c;r.eachItemGraphicEl(function(h,d){var v=h;if(v){var m=[h.x,h.y],g=void 0,y=void 0,_=void 0;if(n)if(o){var x=n,S=i.pointToCoord(m);a?(g=x.startAngle,y=x.endAngle,_=-S[1]/180*Math.PI):(g=x.r0,y=x.r,_=S[0])}else{var b=n;a?(g=b.x,y=b.x+b.width,_=h.x):(g=b.y+b.height,y=b.y,_=h.y)}var T=y===g?0:(_-g)/(y-g);l&&(T=1-T);var C=G(c)?c(d):f*T+p,A=v.getSymbolPath(),E=A.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),E&&E.animateFrom({style:{opacity:0}},{duration:300,delay:C}),A.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,i,n){var a=r.getModel("endLabel");if(uC(r)){var o=r.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 Oe({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=Uk(l);f>=0&&(un(s,fn(r,"endLabel"),{inheritColor:n,labelFetcher:r,labelDataIndex:f,defaultText:function(c,p,h){return h!=null?Lp(o,h):_s(o,c)},enableTextSetter:!0},Fk(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,i,n,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=n.getLayout("points"),p=n.hostModel,h=p.get("connectNulls"),d=s.get("precision"),v=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,_=i.shape,x=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,S=(g?v:0)*(y?-1:1),b=(g?0:-v)*(y?-1:1),T=g?"x":"y",C=zk(c,x,T),A=C.range,E=A[1]-A[0],D=void 0;if(E>=1){if(E>1&&!h){var O=lC(c,A[0]);u.attr({x:O[0]+S,y:O[1]+b}),o&&(D=p.getRawValue(A[0]))}else{var O=f.getPointOn(x,T);O&&u.attr({x:O[0]+S,y:O[1]+b});var M=p.getRawValue(A[0]),I=p.getRawValue(A[1]);o&&(D=zd(n,d,M,I,C.t))}a.lastFrameIndex=A[0]}else{var R=r===1||a.lastFrameIndex>0?A[0]:0,O=lC(c,R);o&&(D=p.getRawValue(R)),u.attr({x:O[0]+S,y:O[1]+b})}if(o){var k=Vo(u);typeof k.setLabelText=="function"&&k.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(r,i,n,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,p=Xg(this._data,r,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin,s),h=p.current,d=p.stackedOnCurrent,v=p.next,m=p.stackedOnNext;if(o&&(d=wn(p.stackedOnCurrent,p.current,n,o,l),h=wn(p.current,null,n,o,l),m=wn(p.stackedOnNext,p.next,n,o,l),v=wn(p.next,null,n,o,l)),oC(h,v)>3e3||f&&oC(d,m)>3e3){u.stopAnimation(),u.setShape({points:v}),f&&(f.stopAnimation(),f.setShape({points:v,stackedOnPoints:m}));return}u.shape.__points=p.current,u.shape.points=h;var g={shape:{points:v}};p.current!==h&&(g.shape.__points=p.next),u.stopAnimation(),He(u,g,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),He(f,{shape:{stackedOnPoints:m}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=p.status,x=0;x<_.length;x++){var S=_[x].cmd;if(S==="="){var b=r.getItemGraphicEl(_[x].idx1);b&&y.push({el:b,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var T=u.shape.__points,C=0;C<y.length;C++){var A=y[C].el,E=y[C].ptIdx*2;A.x=T[E],A.y=T[E+1],A.markRedraw()}})},e.prototype.remove=function(r){var i=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(a,o){a.__temp&&(i.remove(a),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(xt),fC=Vk;function $g(t,e){return{seriesType:t,plan:Ba(),reset:function(r){var i=r.getData(),n=r.coordinateSystem,a=r.pipelineContext,o=e||a.large;if(n){var s=U(n.dimensions,function(h){return i.mapDimension(h)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");Zr(i,s[0])&&(s[0]=u),Zr(i,s[1])&&(s[1]=u);var f=i.getStore(),c=i.getDimensionIndex(s[0]),p=i.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var v=h.end-h.start,m=o&&hr(v*l),g=[],y=[],_=h.start,x=0;_<h.end;_++){var S=void 0;if(l===1){var b=f.get(c,_);S=n.dataToPoint(b,null,y)}else g[0]=f.get(c,_),g[1]=f.get(p,_),S=n.dataToPoint(g,null,y);o?(m[x++]=S[0],m[x++]=S[1]):d.setItemLayout(_,S.slice())}o&&(d.setLayout("points",m),d.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var Hk={average:function(t){for(var e=0,r=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},Gk=function(t){return Math.round(t.length/2)};function iu(t){return{seriesType:t,reset:function(e,r,i){var n=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=i.getDevicePixelRatio(),p=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/p);if(isFinite(h)&&h>1){a==="lttb"?e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h)):a==="minmax"&&e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var d=void 0;B(a)?d=Hk[a]:G(a)&&(d=a),d&&e.setData(n.downSample(n.mapDimension(u.dim),1/h,d,Gk))}}}}}function Qg(t){t.registerChartView(fC),t.registerSeriesModel(K1),t.registerLayout($g("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",i)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,iu("line"))}var Wk=(function(t){L(e,t);function e(r,i,n,a,o){var s=t.call(this,r,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),r&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(r,i){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(Mp),cC=Wk;var Yk=null;function Ka(){return Yk}var pC="expandAxisBreak";var Tn=Math.PI,Xk=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],qk=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Cn=ae(),vC=ae(),ey=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,i=e.componentIndex,n=this.recordMap,a=n[r]||(n[r]=[]);return a[i]||(a[i]={ready:{}})},t})();function Kk(t,e,r,i){var n=r.axis,a=e.ensureRecord(r),o=[],s,l=iy(t.axisName)&&xn(t.nameLocation);w(i,function(d){var v=Qr(d);if(!(!v||v.label.ignore)){o.push(v);var m=a.transGroup;l&&(m.transform?Jt(nu,m.transform):yr(nu),v.transform&&Ur(nu,nu,v.transform),j.copy(Up,v.localRect),Up.applyTransform(nu),s?s.union(Up):j.copy(s=new j(0,0,0,0),Up))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(d,v){return Math.abs(d.label[u]-f)-Math.abs(v.label[u]-f)}),l&&s){var c=n.getExtent(),p=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-p;s.union(new j(p,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var nu=mt(),Up=new j(0,0,0,0),ty=function(t,e,r,i,n,a){if(xn(t.nameLocation)){var o=a.stOccupiedRect;o&&mC(Y1({},o,a.transGroup.transform),i,n)}else ry(a.labelInfoList,a.dirVec,i,n)};function mC(t,e,r){var i=new Ee;Ip(t,e,i,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&X1(e,i)}function ry(t,e,r,i){for(var n=Ee.dot(i,e)>=0,a=0,o=t.length;a<o;a++){var s=t[n?a:o-1-a];s.label.ignore||mC(s,r,i)}}var Za=(function(){function t(e,r,i,n){this.group=new we,this._axisModel=e,this._api=r,this._local={},this._shared=n||new ey(ty),this._resetCfgDetermined(i)}return t.prototype.updateCfg=function(e){if(0)var r;var i=this._cfg.raw;i.position=e.position,i.labelOffset=e.labelOffset,this._resetCfgDetermined(i)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,i=r.getDefaultOption?r.getDefaultOption():{},n=Y(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=Y(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Y(e.nameDirection,1),tickDirection:Y(e.tickDirection,1),labelDirection:Y(e.labelDirection,1),labelOffset:Y(e.labelOffset,0),silent:Y(e.silent,!0),axisName:n,nameLocation:vr(r.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:iy(n)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new we({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new Ee(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var i=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),w(Zk,function(n){e[n]&&jk[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,r||{})}),this},t.innerTextLayout=function(e,r,i){var n=Js(r-e),a,o;return ta(n)?(o=i>0?"top":"bottom",a="center"):ta(n-Tn)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<Tn?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),Zk=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],jk={axisLine:function(t,e,r,i,n,a,o){if(0)var s;var l=i.get(["axisLine","show"]);if(l==="auto"&&(l=!0,t.raw.axisLineAutoShow!=null&&(l=!!t.raw.axisLineAutoShow)),!!l){var u=i.axis.getExtent(),f=a.transform,c=[u[0],0],p=[u[1],0],h=c[0]>p[0];f&&(Xe(c,c,f),Xe(p,p,f));var d=N({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),v={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(i.get(["axisLine","breakLine"])&&Da(i.axis.scale))Ka().buildAxisBreakLine(i,n,a,v);else{var m=new sr(N({shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]}},v));ba(m.shape,m.style.lineWidth),m.anid="line",n.add(m)}var g=i.get(["axisLine","symbol"]);if(g!=null){var y=i.get(["axisLine","symbolSize"]);B(g)&&(g=[g,g]),(B(y)||le(y))&&(y=[y,y]);var _=Bc(i.get(["axisLine","symbolOffset"])||0,y),x=y[0],S=y[1];w([{rotate:t.rotation+Math.PI/2,offset:_[0],r:0},{rotate:t.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((c[0]-p[0])*(c[0]-p[0])+(c[1]-p[1])*(c[1]-p[1]))}],function(b,T){if(g[T]!=="none"&&g[T]!=null){var C=pr(g[T],-x/2,-S/2,x,S,d.stroke,!0),A=b.r+b.offset,E=h?p:c;C.attr({rotation:b.rotate,x:E[0]+A*Math.cos(t.rotation),y:E[1]-A*Math.sin(t.rotation),silent:!0,z2:11}),n.add(C)}})}}},axisTickLabelEstimate:function(t,e,r,i,n,a,o,s){if(0)var l;var u=dC(e,n,s);u&&hC(t,e,r,i,n,a,o,Kt.estimate)},axisTickLabelDetermine:function(t,e,r,i,n,a,o,s){if(0)var l;var u=dC(e,n,s);u&&hC(t,e,r,i,n,a,o,Kt.determine);var f=e2(t,n,a,i);Jk(t,e.labelLayoutList,f),t2(t,n,a,i,t.tickDirection)},axisName:function(t,e,r,i,n,a,o,s){var l=r.ensureRecord(i);if(0)var u;e.nameEl&&(n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=t.axisName;if(iy(f)){var c=t.nameLocation,p=t.nameDirection,h=i.getModel("nameTextStyle"),d=i.get("nameGap")||0,v=i.axis.getExtent(),m=i.axis.inverse?-1:1,g=new Ee(0,0),y=new Ee(0,0);c==="start"?(g.x=v[0]-m*d,y.x=-m):c==="end"?(g.x=v[1]+m*d,y.x=m):(g.x=(v[0]+v[1])/2,g.y=t.labelOffset+p*d,y.y=p);var _=mt();y.transform(zn(_,_,t.rotation));var x=i.get("nameRotate");x!=null&&(x=x*Tn/180);var S,b;xn(c)?S=Za.innerTextLayout(t.rotation,x??t.rotation,p):(S=$k(t.rotation,c,x||0,v),b=t.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var T=h.getFont(),C=i.get("nameTruncate",!0)||{},A=C.ellipsis,E=Rn(t.raw.nameTruncateMaxWidth,C.maxWidth,b),D=s.nameMarginLevel||0,O=new Oe({x:g.x,y:g.y,rotation:S.rotation,silent:Za.isLabelSilent(i),style:Xr(h,{text:f,font:T,overflow:"truncate",width:E,ellipsis:A,fill:h.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(zo({el:O,componentModel:i,itemName:f}),O.__fullText=f,O.anid="name",i.get("triggerEvent")){var M=Za.makeAxisEventDataBase(i);M.targetType="axisName",M.name=f,he(O).eventData=M}a.add(O),O.updateTransform(),e.nameEl=O;var I=l.nameLayout=Qr({label:O,priority:O.z2,defaultAttr:{ignore:O.ignore},marginDefault:xn(c)?Xk[D]:qk[D]});if(l.nameLocation=c,n.add(O),O.decomposeTransform(),t.shouldNameMoveOverlap&&I){var R=r.ensureRecord(i);r.resolveAxisNameOverlap(t,r,i,I,y,R)}}}};function hC(t,e,r,i,n,a,o,s){yC(e)||r2(t,e,n,s,i,o);var l=e.labelLayoutList;i2(t,i,l,a),o2(i,t.rotation,l);var u=t.optionHideOverlap;Qk(i,l,u),u&&q1(De(l,function(f){return f&&!f.label.ignore})),Kk(t,r,i,l)}function $k(t,e,r,i){var n=Js(r-t),a,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return ta(n-Tn/2)?(o=l?"bottom":"top",a="center"):ta(n-Tn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",n<Tn*1.5&&n>Tn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function Qk(t,e,r){var i=t.axis,n=t.get(["axisLabel","customValues"]);if(t1(i))return;function a(u,f,c){var p=Qr(e[f]),h=Qr(e[c]),d=i.scale;if(!(!p||!h)){if(u==null){if(!r&&n)return;var v=Cn(p.label).labelInfo.tick;if(ds(d)&&v.notNice||ht(d)&&v.offInterval){xs(p.label);return}}if(u===!1||p.suggestIgnore){xs(p.label);return}if(h.suggestIgnore){xs(h.label);return}var m=.1;if(!r){var g=[0,0,0,0];p=Wg({marginForce:g},p),h=Wg({marginForce:g},h)}Ip(p,h,null,{touchThreshold:m})&&xs(u?h.label:p.label)}}var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),l=e.length;a(o,0,1),a(s,l-1,l-2)}function Jk(t,e,r){t.showMinorTicks||w(e,function(i){if(i&&i.label.ignore)for(var n=0;n<r.length;n++){var a=r[n],o=vC(a),s=Cn(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){xs(a);return}}})}function xs(t){t&&(t.ignore=!0)}function gC(t,e,r,i,n){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(Xe(o,o,e),Xe(s,s,e));var f=new sr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});ba(f.shape,f.style.lineWidth),f.anid=n+"_"+t[l].tickValue,a.push(f);var c=vC(f);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return a}function e2(t,e,r,i){var n=i.axis,a=i.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=n.getTicksCoords(),f=gC(u,r.transform,l,re(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function t2(t,e,r,i,n){var a=i.axis,o=i.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),f=re(l.getLineStyle(),re(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var p=gC(s[c],r.transform,u,f,"minorticks_"+c),h=0;h<p.length;h++)e.add(p[h])}}function dC(t,e,r){if(yC(t)){var i=t.axisLabelsCreationContext,n=i.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<n.length;o++)a=a&&n[o]();if(a)return!1}n.length&&(e.remove(t.labelGroup),Jg(t,null,null,null))}return!0}function r2(t,e,r,i,n,a){var o=n.axis,s=Rn(t.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new we;r.add(l);var u=ys(i);if(!s||o.scale.isBlank()){Jg(e,[],l,u);return}var f=n.getModel("axisLabel"),c=o.getViewLabels(u),p=(Rn(t.raw.labelRotate,f.get("rotate"))||0)*Tn/180,h=Za.innerTextLayout(t.rotation,p,t.labelDirection),d=n.getCategories&&n.getCategories(!0),v=[],m=n.get("triggerEvent"),g=1/0,y=-1/0;w(c,function(x,S){var b,T=x.tick,C=x.formattedLabel,A=x.rawLabel,E=f,D=Ui(o.scale,T);if(d&&d[D]){var O=d[D];F(O)&&O.textStyle&&(E=new Te(O.textStyle,f,n.ecModel))}var M=E.getTextColor()||n.get(["axisLine","lineStyle","color"]),I=E.getShallow("align",!0)||h.textAlign,R=Y(E.getShallow("alignMinLabel",!0),I),k=Y(E.getShallow("alignMaxLabel",!0),I),W=E.getShallow("verticalAlign",!0)||E.getShallow("baseline",!0)||h.textVerticalAlign,z=Y(E.getShallow("verticalAlignMinLabel",!0),W),X=Y(E.getShallow("verticalAlignMaxLabel",!0),W),$=10+(((b=T.time)===null||b===void 0?void 0:b.level)||0);g=Math.min(g,$),y=Math.max(y,$);var K=new Oe({x:0,y:0,rotation:0,silent:Za.isLabelSilent(n),z2:$,style:Xr(E,{text:C,align:S===0?R:S===c.length-1?k:I,verticalAlign:S===0?z:S===c.length-1?X:W,fill:G(M)?M(o.type==="category"?A:o.type==="value"?D+"":D,S):M})});K.anid="label_"+D;var te=Cn(K);if(te.labelInfo=x,te.layoutRotation=h.rotation,zo({el:K,componentModel:n,itemName:C,formatterParamsExtra:{isTruncated:function(){return K.isTruncated},value:A,tickIndex:S}}),m){var ie=Za.makeAxisEventDataBase(n);ie.targetType="axisLabel",ie.value=A,ie.tickIndex=S;var q=x.tick.break;if(q){var me=q.parsedBreak;ie.break={start:me.vmin,end:me.vmax}}o.type==="category"&&(ie.dataIndex=D),he(K).eventData=ie,q&&a2(n,a,K,q)}v.push(K),l.add(K)});var _=U(v,function(x){return{label:x,priority:Cn(x).labelInfo.tick.break?x.z2+(y-g+1):x.z2,defaultAttr:{ignore:x.ignore}}});Jg(e,_,l,u)}function yC(t){return!!t.labelLayoutList}function Jg(t,e,r,i){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=i}function i2(t,e,r,i){var n=e.get(["axisLabel","margin"]);w(r,function(a,o){var s=Qr(a);if(s){var l=s.label,u=Cn(l);s.suggestIgnore=l.ignore,l.ignore=!1,mo(zi,n2);var f=e.axis;zi.x=f.dataToCoord(Ui(f.scale,u.labelInfo.tick)),zi.y=t.labelOffset+t.labelDirection*n,zi.rotation=u.layoutRotation,i.add(zi),zi.updateTransform(),i.remove(zi),zi.decomposeTransform(),mo(l,zi),l.markRedraw(),tu(s,!0),Qr(s)}})}var zi=new _e,n2=new _e;function iy(t){return!!t}function a2(t,e,r,i){r.on("click",function(n){var a={type:pC,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function o2(t,e,r){var i=Ve();if(i){var n=i.retrieveAxisBreakPairs(r,function(o){return o&&Cn(o.label).labelInfo.tick.break},!0),a=t.get(["breakLabelLayout","moveOverlap"],!0);(a===!0||a==="auto")&&w(n,function(o){Ka().adjustBreakLabelPair(t.axis.inverse,e,[Qr(r[o[0]]),Qr(r[o[1]])])})}}var zp=Za;function au(t,e,r){r=r||{};var i=e.axis,n={},a=i.getAxesOnZeroOf()[0],o=i.position,s=a?"onZero":o,l=i.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));p[f.onZero]=Math.max(Math.min(h,p[1]),p[0])}n.position=[l==="y"?p[f[s]]:u[0],l==="x"?p[f[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=d[o],n.labelOffset=a?p[f[o]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Rn(r.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var v=e.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-v:v,n.z2=1,n}function _C(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function xC(t){var e={xAxisModel:null,yAxisModel:null};return w(e,function(r,i){var n=i.replace(/Model$/,""),a=t.getReferringComponents(n,gt).models[0];e[i]=a}),e}function SC(t,e,r,i,n,a){for(var o=au(t,r),s=!1,l=!1,u=0;u<e.length;u++)lp(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new zp(r,i,o,n)}function bC(t,e,r){var i=au(e,r);if(0)var n;t.updateCfg(i)}function wC(){c1("liPosMinGap",l2)}function l2(t,e,r){var i=V(),n=r.serUids,a=r.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=Tc(f);function p(_){Cp(t,e.sers,function(x){var S=x.getRawData(),b=S.getDimensionIndex(S.mapDimension(s.dim));b>=0&&_(b,x,S.getStore())})}var h=0;if(p(function(_,x,S){i.set(x.uid,1),(!n||!n.hasKey(x.uid))&&(o=!0),h+=S.count()}),(!n||n.keys().length!==i.keys().length)&&(o=!0),!o&&a!=null){e.liPosMinGap=a;return}kp(ja,h);var d=0;p(function(_,x,S){for(var b=0,T=S.count();b<T;++b){var C=S.get(_,b);isFinite(C)&&(!f||Cc(c,C))&&(u&&(C=l.transformIn(C,null)),ja.arr[d++]=C)}});var v=ja.typed?ja.arr.subarray(0,d):(ja.arr.length=d,ja.arr);ja.typed?v.sort():Ji(v);for(var m=1/0,g=1;g<d;++g){var y=v[g]-v[g-1];y>0&&y<m&&(m=y)}r.liPosMinGap=e.liPosMinGap=$e(m)?m:d>0?Tp:i1,r.serUids=i}var ja=kp({ctor:J1},50);function TC(t){return function(e,r){var i=$r(e,{fromStat:{key:t}});if($e(i.w2))return[-i.w2/2,i.w2/2]}}function ou(t,e){return t+wp+e}function CC(t){return wC(),{liPosMinGap:!ht(t.scale)}}var Fi="bar";function EC(t,e,r,i){h1(t,{key:e,seriesType:r,coordSysType:i,getMetrics:CC})}function AC(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var ny={left:0,right:0,top:0,bottom:0},su=["25%","25%"],Ir="cartesian2d",u2=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,i){var n=di(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&r.outerBounds&&fr(r.outerBounds,n)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&fr(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:ny,outerBoundsContain:"all",outerBoundsClampWidth:su[0],outerBoundsClampHeight:su[1],backgroundColor:Z.color.transparent,borderWidth:1,borderColor:Z.color.neutral30},e})(xe),DC=u2;var f2=sf(),c2="__ec_stack_";function MC(t){return t.get("stack")||c2+t.seriesIndex}function p2(t,e){var r=h2(t,e);return r.columnMap=d2(r),r}function h2(t,e){var r=ou(e,Ir),i=[],n=$r(t,{fromStat:{key:r},min:1});return Cg(t,r,function(a){i.push({barWidth:Ke(a.get("barWidth"),n.w),barMaxWidth:Ke(a.get("barMaxWidth"),n.w),barMinWidth:Ke(a.get("barMinWidth")||(LC(a)?.5:1),n.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:MC(a)})}),{bandWidthResult:n,seriesInfo:i}}function d2(t){var e=t.bandWidthResult.w,r=e,i=0,n,a,o=[],s={};w(t.seriesInfo,function(v,m){m||(a=v.defaultBarGap||0);var g=v.stackId;Me(s,g)||i++;var y=s[g];y||(y=s[g]={width:0,maxWidth:0},o.push(g));var _=v.barWidth;_&&!y.width&&(y.width=_,_=Ue(r,_),r-=_);var x=v.barMaxWidth;x&&(y.maxWidth=x);var S=v.barMinWidth;S&&(y.minWidth=S);var b=v.barGap;b!=null&&(a=b);var T=v.barCategoryGap;T!=null&&(n=T)}),n==null&&(n=ce(35-o.length*4,15)+"%");var l=Ke(n,e),u=Ke(a,1),f=(r-l)/(i+(i-1)*u);f=ce(f,0),w(o,function(v){var m=s[v],g=m.maxWidth,y=m.minWidth;if(m.width){var _=m.width;g&&(_=Ue(_,g)),y&&(_=ce(_,y)),m.width=_,r-=_+u*_,i--}else{var _=f;g&&g<_&&(_=Ue(g,r)),y&&y>_&&(_=y),_!==f&&(m.width=_,r-=_+u*_,i--)}}),f=(r-l)/(i+(i-1)*u),f=ce(f,0);var c=0,p;w(o,function(v){var m=s[v];m.width||(m.width=f),p=m,c+=m.width*(1+u)}),p&&(c-=p.width*u);var h={},d=-c/2;return w(o,function(v){var m=s[v];h[v]=h[v]||{bandWidth:e,offset:d,width:m.width},d+=m.width*(1+u)}),h}function OC(t){return{seriesType:t,overallReset:function(e){var r=ou(t,Ir);f1(e,r,function(i){var n=p2(i,t);Cg(i,r,function(a){var o=n.columnMap[MC(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function IC(t){return{seriesType:t,plan:Ba(),reset:function(e){if(_C(e)){var r=e.getData(),i=e.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(n.dim)),l=e.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=Zr(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),p=a.isHorizontal(),h=a.toGlobalCoord(a.dataToCoord(AC(a))),d=LC(e),v=e.get("barMinHeight")||0,m=f&&r.getDimensionIndex(f),g=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,x){for(var S=_.count,b=d&&hr(S*3),T=d&&l&&hr(S*3),C=d&&hr(S),A=i.master.getRect(),E=p?A.width:A.height,D,O=x.getStore(),M=0;(D=_.next())!=null;){var I=O.get(c?m:o,D),R=O.get(s,D),k=h,W=void 0;c&&(W=+I-O.get(o,D));var z=void 0,X=void 0,$=void 0,K=void 0;if(p){var te=i.dataToPoint([I,R]);c&&(k=i.dataToPoint([W,R])[0]),z=k,X=te[1]+y,$=te[0]-k,K=g,Le($)<v&&($=($<0?-1:1)*v)}else{var te=i.dataToPoint([R,I]);c&&(k=i.dataToPoint([R,W])[1]),z=te[0]+y,X=k,$=g,K=te[1]-k,Le(K)<v&&(K=(K<=0?-1:1)*v)}d?(b[M]=z,b[M+1]=X,b[M+2]=p?$:K,T&&(T[M]=p?A.x:z,T[M+1]=p?X:A.y,T[M+2]=E),C[D]=D):x.setItemLayout(D,{x:z,y:X,width:$,height:K}),M+=3}d&&x.setLayout({largePoints:b,largeDataIndices:C,largeBackgroundPoints:T,valueAxisHorizontal:p})}}}}}}function LC(t){return t.pipelineContext&&t.pipelineContext.large}function v2(t){return TC(ou(t,Ir))}function NC(t){f2(t,function(){function e(r){var i=ou(r,Ir);EC(t,i,r,Ir),b1(i,v2(r))}e("bar"),e("pictorialBar")})}var PC=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,i){return _n(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,i,n){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(n)w(a.getAxes(),function(p,h){if(p.type==="category"&&i!=null){var d=p.getTicksCoords(),v=p.getTickModel().get("alignWithLabel"),m=o[h],g=i[h]==="x1"||i[h]==="y1";if(g&&!v&&(m+=1),d.length<2)return;if(d.length===2){s[h]=p.toGlobalCoord(p.getExtent()[g?1:0]);return}for(var y=void 0,_=void 0,x=1,S=0;S<d.length;S++){var b=d[S].coord,T=S===d.length-1?d[S-1].tickValue+x:d[S].tickValue;if(T===m){_=b;break}else if(T<m)y=b;else if(y!=null&&T>m){_=(b+y)/2;break}S===1&&(x=T-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[h]=p.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(r){return this.getBaseAxis()!==r},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(Rt);Rt.registerClass(PC);var ay=PC;var m2=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return _n(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(r,i){var n=lf(this,r,i);return n.progressiveRender&&(n.large=!0),n},e.prototype.brushSelector=function(r,i,n){return n.rect(i.getItemLayout(r))},e.type="series."+Fi,e.dependencies=["grid","polar"],e.defaultOption=Wf(ay.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:Z.color.primary,borderWidth:2}},realtimeSort:!1}),e})(ay),RC=m2;var g2=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),y2=(function(t){L(e,t);function e(r){var i=t.call(this,r)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new g2},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,u=o+l,f=i.startAngle,c=i.endAngle,p=i.clockwise,h=Math.PI*2,d=p?c-f<h:f-c<h;d||(f=c-(p?h:-h));var v=Math.cos(f),m=Math.sin(f),g=Math.cos(c),y=Math.sin(c);d?(r.moveTo(v*o+n,m*o+a),r.arc(v*u+n,m*u+a,l,-Math.PI+f,f,!p)):r.moveTo(v*s+n,m*s+a),r.arc(n,a,s,f,c,!p),r.arc(g*u+n,y*u+a,l,c-Math.PI*2,c-Math.PI,!p),o!==0&&r.arc(n,a,o,c,f,p)},e})(oe),oy=y2;function kC(t,e){e=e||{};var r=e.isRoundCap;return function(i,n,a){var o=n.position;if(!o||o instanceof Array)return Jn(i,n,a);var s=t(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,c=u.cy,p=u.r,h=u.r0,d=(p+h)/2,v=u.startAngle,m=u.endAngle,g=(v+m)/2,y=r?Math.abs(p-h)/2:0,_=Math.cos,x=Math.sin,S=f+p*_(v),b=c+p*x(v),T="left",C="top";switch(s){case"startArc":S=f+(h-l)*_(g),b=c+(h-l)*x(g),T="center",C="top";break;case"insideStartArc":S=f+(h+l)*_(g),b=c+(h+l)*x(g),T="center",C="bottom";break;case"startAngle":S=f+d*_(v)+Fp(v,l+y,!1),b=c+d*x(v)+Vp(v,l+y,!1),T="right",C="middle";break;case"insideStartAngle":S=f+d*_(v)+Fp(v,-l+y,!1),b=c+d*x(v)+Vp(v,-l+y,!1),T="left",C="middle";break;case"middle":S=f+d*_(g),b=c+d*x(g),T="center",C="middle";break;case"endArc":S=f+(p+l)*_(g),b=c+(p+l)*x(g),T="center",C="bottom";break;case"insideEndArc":S=f+(p-l)*_(g),b=c+(p-l)*x(g),T="center",C="top";break;case"endAngle":S=f+d*_(m)+Fp(m,l+y,!0),b=c+d*x(m)+Vp(m,l+y,!0),T="left",C="middle";break;case"insideEndAngle":S=f+d*_(m)+Fp(m,-l+y,!0),b=c+d*x(m)+Vp(m,-l+y,!0),T="right",C="middle";break;default:return Jn(i,n,a)}return i=i||{},i.x=S,i.y=b,i.align=T,i.verticalAlign=C,i}}function BC(t,e,r,i){if(le(i)){t.setTextConfig({rotation:i});return}else if(P(e)){t.setTextConfig({rotation:0});return}var n=t.shape,a=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(a+o)/2,l,u=r(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),t.setTextConfig({rotation:f})}function Fp(t,e,r){return e*Math.sin(t)*(r?-1:1)}function Vp(t,e,r){return e*Math.cos(t)*(r?1:-1)}function UC(t,e,r){var i=t.get("borderRadius");if(i==null)return r?{cornerRadius:0}:null;P(i)||(i=[i,i,i,i]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:U(i,function(a){return Vr(a,n)})}}var sy=Math.max,ly=Math.min,_2=(function(t){L(e,t);function e(){var r=t.call(this)||this;return r.type=Fi,r._isFirstFrame=!0,r}return e.prototype.render=function(r,i,n,a){this._model=r,this._removeOnRenderedListener(n),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,i,n):this._renderNormal(r,i,n,a))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,i){this._progressiveEls=[],this._incrementalRenderLarge(r,i)},e.prototype.eachRendered=function(r){Ta(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var i=r.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(r,i,n,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var p=r.isAnimationEnabled()?r:null,h=x2(r,u);h&&this._enableRealtimeSort(h,s,n);var d=r.get("clip",!0)||h,v=u.getArea();o.removeClipPath();var m=r.get("roundCap",!0),g=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,x=[],S=this._backgroundEls,b=a&&a.isInitSort,T=a&&a.type==="changeAxisOrder";function C(D){var O=Hp[u.type](s,D);if(!O)return null;var M=A2(u,c,O);return M.useStyle(y.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",_):M.setShape("cornerRadius",_),x[D]=M,M}s.diff(l).add(function(D){var O=s.getItemModel(D),M=Hp[u.type](s,D,O);if(M&&(g&&C(D),!(!s.hasValue(D)||!GC[u.type](M)))){var I=!1;d&&(I=zC[u.type](v,M));var R=FC[u.type](r,s,D,M,c,p,f.model,!1,m);h&&(R.forceLabelAnimation=!0),WC(R,s,D,O,M,r,c,u.type==="polar"),b?R.attr({shape:M}):h?VC(h,p,R,M,D,c,!1,!1):Tt(R,{shape:M},r,D),s.setItemGraphicEl(D,R),o.add(R),R.ignore=I}}).update(function(D,O){var M=s.getItemModel(D),I=Hp[u.type](s,D,M);if(I){if(g){var R=void 0;S.length===0?R=C(O):(R=S[O],R.useStyle(y.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),x[D]=R);var k=Hp[u.type](s,D),W=ZC(c,k,u);He(R,{shape:W},p,D)}var z=l.getItemGraphicEl(O);if(!s.hasValue(D)||!GC[u.type](I)){o.remove(z);return}var X=!1;d&&(X=zC[u.type](v,I),X&&o.remove(z));var $=z&&(z.type==="sector"&&m||z.type==="sausage"&&!m);if($&&(z&&ko(z,r,O),z=null),z?Bf(z):z=FC[u.type](r,s,D,I,c,p,f.model,!0,m),h&&(z.forceLabelAnimation=!0),T){var K=z.getTextContent();if(K){var te=Vo(K);te.prevValue!=null&&(te.prevValue=te.value)}}else WC(z,s,D,M,I,r,c,u.type==="polar");b?z.attr({shape:I}):h?VC(h,p,z,I,D,c,!0,T):He(z,{shape:I},r,D,null),s.setItemGraphicEl(D,z),z.ignore=X,o.add(z)}}).remove(function(D){var O=l.getItemGraphicEl(D);O&&ko(O,r,D)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new we);A.removeAll();for(var E=0;E<x.length;++E)A.add(x[E]);o.add(A),this._backgroundEls=x,this._data=s},e.prototype._renderLarge=function(r,i,n){this._clear(),XC(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,i){this._removeBackground(),XC(i,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var i=r.get("clip",!0)&&iC(r.coordinateSystem,!1,r),n=this.group;i?n.setClipPath(i):n.removeClipPath()},e.prototype._enableRealtimeSort=function(r,i,n){var a=this;if(i.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,r,n),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(i,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,i,n){var a=[];return r.each(r.mapDimension(i.dim),function(o,s){var l=n(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:U(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,i,n){for(var a=n.scale,o=r.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:i(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(r,i){for(var n=i.scale,a=n.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,i,n,a){if(this._isOrderChangedWithinSameData(r,i,n)){var o=this._dataSort(r,n,i);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,i,n){var a=i.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(i.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(r,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(r,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var i=this.group,n=this._data;r&&r.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){ko(a,r,he(a).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=Fi,e})(xt),zC={cartesian2d:function(t,e){var r=e.width<0?-1:1,i=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var n=t.x+t.width,a=t.y+t.height,o=sy(e.x,t.x),s=ly(e.x+e.width,n),l=sy(e.y,t.y),u=ly(e.y+e.height,a),f=s<o,c=u<l;return e.x=f&&o>n?s:o,e.y=c&&l>a?u:l,e.width=f?0:s-o,e.height=c?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var i=e.r;e.r=e.r0,e.r0=i}var n=ly(e.r,t.r),a=sy(e.r0,t.r0);e.r=n,e.r0=a;var o=n-a<0;if(r<0){var i=e.r;e.r=e.r0,e.r0=i}return o}},FC={cartesian2d:function(t,e,r,i,n,a,o,s,l){var u=new _e({shape:N({},i),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,c=n?"height":"width";f[c]=0}return u},polar:function(t,e,r,i,n,a,o,s,l){var u=!n&&l?oy:ci,f=new u({shape:i,z2:1});f.name="item";var c=KC(n);if(f.calculateTextPosition=kC(c,{isRoundCap:u===oy}),a){var p=f.shape,h=n?"r":"endAngle",d={};p[h]=n?i.r0:i.startAngle,d[h]=i[h],(s?He:Tt)(f,{shape:d},a)}return f}};function x2(t,e){var r=t.get("realtimeSort",!0),i=e.getBaseAxis();if(r&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function VC(t,e,r,i,n,a,o,s){var l,u;a?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?He:Tt)(r,{shape:l},e,n,null);var f=e?t.baseAxis.model:null;(o?He:Tt)(r,{shape:u},f,n)}function HC(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var S2=["x","y","width","height"],b2=["cx","cy","r","startAngle","endAngle"],GC={cartesian2d:function(t){return!HC(t,S2)},polar:function(t){return!HC(t,b2)}},Hp={cartesian2d:function(t,e,r){var i=t.getItemLayout(e);if(!i)return null;var n=r?T2(r,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*n/2,y:i.y+o*n/2,width:i.width-a*n,height:i.height-o*n}},polar:function(t,e,r){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function w2(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function KC(t){return(function(e){var r=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+r;default:return i}}})(t)}function WC(t,e,r,i,n,a,o,s){var l=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=t.shape,c=UC(i.getModel("itemStyle"),f,!0);N(f,c),t.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var p=i.getShallow("cursor");p&&t.attr("cursor",p);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?D2(n,a.coordinateSystem):M2(n,a.coordinateSystem),d=fn(i);un(t,d,{labelFetcher:a,labelDataIndex:r,defaultText:_s(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=t.getTextContent();if(s&&v){var m=i.get(["label","position"]);t.textConfig.inside=m==="middle"?!0:null,BC(t,m==="outside"?h:m,KC(o),i.get(["label","rotate"]))}VS(v,d,a.getRawValue(r),function(y){return Lp(e,y)});var g=i.getModel(["emphasis"]);da(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),dl(t,i),w2(n)&&(t.style.fill="none",t.style.stroke="none",w(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function T2(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var i=t.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,n,a)}var C2=(function(){function t(){}return t})(),YC=(function(t){L(e,t);function e(r){var i=t.call(this,r)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new C2},e.prototype.buildPath=function(r,i){for(var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[a]=u,l[o]=n[f+2],s[a]=n[f+a],s[o]=n[f+o],r.rect(s[0],s[1],l[0],l[1])},e})(oe);function XC(t,e,r,i){var n=t.getData(),a=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=t.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints"),f=i?H0(t):0;if(u){var c=new YC({shape:{points:u},incremental:f,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),r&&r.push(c)}var p=new YC({shape:{points:n.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});p.baseDimIdx=a,p.largeDataIndices=o,p.barWidth=s,e.add(p),p.useStyle(n.getVisual("style")),p.style.stroke=null,he(p).seriesIndex=t.seriesIndex,t.get("silent")||(p.on("mousedown",qC),p.on("mousemove",qC)),r&&r.push(p)}var qC=Ua(function(t){var e=this,r=E2(e,t.offsetX,t.offsetY);he(e).dataIndex=r>=0?r:null},30,!1);function E2(t,e,r){for(var i=t.baseDimIdx,n=1-i,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,f=0,c=a.length/3;f<c;f++){var p=f*3;if(l[i]=u,l[n]=a[p+2],s[i]=a[p+i],s[n]=a[p+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function ZC(t,e,r){if(Bp(r,"cartesian2d")){var i=e,n=r.getArea();return{x:t?i.x:n.x,y:t?n.y:i.y,width:t?i.width:n.width,height:t?n.height:i.height}}else{var n=r.getArea(),a=e;return{cx:n.cx,cy:n.cy,r0:t?n.r0:a.r0,r:t?n.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function A2(t,e,r){var i=t.type==="polar"?ci:_e;return new i({shape:ZC(e,r,t),silent:!0,z2:0})}function D2(t,e){if(t.height===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function M2(t,e){if(t.width===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"left":"right"}return t.width>=0?"right":"left"}var jC=_2;function uy(t){t.registerChartView(jC),t.registerSeriesModel(RC),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,OC(Fi)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,IC(Fi)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,iu(Fi)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var i=e.componentType||"series";r.eachComponent({mainType:i,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})}),NC(t)}var Gp=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",gt).models[0]},e.type="cartesian2dAxis",e})(xe);lt(Gp,bp);var $C={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:"auto",onZeroAxisIndex:null,lineStyle:{color:Z.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:Z.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Z.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[Z.color.backgroundTint,Z.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Z.color.neutral00,borderColor:Z.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},O2=ue({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},$C),fy=ue({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Z.color.axisMinorSplitLine,width:1}}},$C),I2=ue({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},fy),L2=re({logBase:10},fy),QC={category:O2,value:fy,time:I2,log:L2};function Wp(t,e,r,i){w(vp,function(n,a){var o=ue(ue({},QC[a],!0),i,!0),s=(function(l){L(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var p=pn(this),h=p?di(f):{},d=c.getTheme();ue(f,d.get(a+"Axis")),ue(f,this.getDefaultOption()),f.type=JC(f),p&&fr(f,h,p)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Zl.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=Ka();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",JC)}function JC(t){return t.type||(t.data?"category":"value")}var N2=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return U(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),De(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),eE=N2;var lu=["x","y"];function tE(t){return(t.type==="interval"||t.type==="time")&&!Da(t)}var P2=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ir,r.dimensions=lu,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!tE(r)||!tE(i))){var n=Ya(r,null),a=Ya(i,null),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),l=n[1]-n[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,p=o[0]-n[0]*f,h=o[1]-a[0]*c,d=this._transform=[f,0,0,c,p,h];this._invTransform=Jt([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(r[0]))&&n.contain(n.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,i){var n=this.dataToPoint(r),a=this.dataToPoint(i),o=this.getArea(),s=new j(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,i,n){n=n||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Xe(n,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=l.toGlobalCoord(l.dataToCoord(o,i)),n},e.prototype.clampData=function(r,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),l=n.parse(r[0]),u=a.parse(r[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},e.prototype.pointToData=function(r,i,n){if(n=n||[],this._invTransform)return Xe(n,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(r[0]),i),n[1]=o.coordToData(o.toLocalCoord(r[1]),i),n},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-r,o=Math.min(n[0],n[1])-r,s=Math.max(i[0],i[1])-a+r,l=Math.max(n[0],n[1])-o+r;return new j(a,o,s,l)},e})(eE),rE=P2;function iE(t,e){var r=t.scale,i=t.model,n=Ep(r,i,i.ecModel,t,null),a=vi(r),o=vi(e)?e.intervalStub:e,s=a?r.intervalStub:r,l=r.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,p,h,d;if(c===1)p=h=0,d=1;else if(c===2){var v=Le(u[0].value-u[1].value),m=Le(u[1].value-u[2].value);p=h=0,v===m?d=2:(d=1,v<m?p=v/m:h=m/v)}else{var g=o.getConfig().interval;p=(1-(u[0].value-f[0].value)/g)%1,h=(1-(f[c].value-u[c].value)/g)%1,d=c-(p?1:0)-(h?1:0)}var y=n.zoomFixMM,_=y[0]||y[1],x=[n.fixMM[0]||_,n.fixMM[1]||_],S=r.getExtent(),b=s.getExtent(),T=fp(b,x),C,A,E,D,O,M;function I(te){for(var ie=50,q=0;q<ie&&!te();q++)E=a?E*ce(l,2):kT(E),D=jr(E)}function R(){C=ve(M-E*p,D)}function k(){A=ve(O+E*h,D)}function W(){M=p?ve(C+E*p,D):C}function z(){O=h?ve(A-E*h,D):A}if(x[0]&&x[1]){C=T[0],A=T[1],E=(A-C)/(d+p+h);var X=t.getExtent(),$=Le(X[1]-X[0]);D=x0([A,C],$,.5/d),W(),z(),$e(D)&&(E=ve(E,D))}else{var K=T[1]-T[0];E=a?ce(xo(K),1):Ei(K/d,Nd),D=jr(E),x[0]?(C=T[0],I(function(){if(W(),O=ve(M+E*d,D),k(),A>=T[1])return!0})):x[1]?(A=T[1],I(function(){if(z(),M=ve(O-E*d,D),R(),C<=T[0])return!0})):I(function(){M=ve($i(T[0]/E)*E,D),O=ve(Sr(T[1]/E)*E,D);var te=Ht((O-M)/E);if(te<=d){var ie=d-te,q=void 0,me=n.incl0||a;if(me&&T[0]===0)q=[0,ie];else if(me&&T[1]===0)q=[ie,0];else{var Se=Sr(ie/2);q=ie%2===0?[Se,Se]:C+A<T[0]+T[1]?[Se,Se+1]:[Se+1,Se]}if(M=ve(M-E*q[0],D),O=ve(O+E*q[1],D),R(),k(),C<=T[0]&&A>=T[1])return!0}})}xp(r,x,b,[C,A],S,{interval:E,intervalCount:d,intervalPrecision:D,niceExtent:[M,O]})}var nE=[[3,1],[0,2]],R2=(function(){function t(e,r,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=lu,this._initCartesian(e,r,i),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var i=this._axesMap;w(this._axesList,function(o){x1(o,m1);var s=o.scale;ht(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function n(o){for(var s=fe(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):Mg(f)}w(l,function(c){B2(c,c.__alignTo)?Mg(c):iE(c,c.__alignTo.scale)})}n(i.x),n(i.y);var a={};w(i.x,function(o){aE(i,"y",o,a)}),w(i.y,function(o){aE(i,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,i){var n=dc(e,r),a=this._rect=hi(e.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(cy(o,a),!i){var u=z2(a,s,o,l,r),f=void 0;if(l)uE?(uE(this._axesList,a),cy(o,a)):f=fE(a.clone(),"axisLabel",null,a,o,u,n);else{var c=F2(e,a,n),p=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;p&&(f=fE(p,h,d,a,o,u,n))}cE(a,o,Kt.determine,null,f,n),w(this._coordsList,function(v){v.calcAffineTransform()})}},t.prototype.getAxis=function(e,r){var i=this._axesMap[e];if(i!=null)return i[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var i="x"+e+"y"+r;return this._coordsMap[i]}F(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===e||a[n].getAxis("y").index===r)return a[n]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},t.prototype.convertFromPixel=function(e,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",gt).models[0],n=e.yAxisModel||r&&r.getReferringComponents("yAxis",gt).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,ne(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,i){var n=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,w(s.x,function(f,c){w(s.y,function(p,h){var d="x"+c+"y"+h,v=new rE(d);v.master=n,v.model=e,n._coordsMap[d]=v,n._coordsList.push(v),v.addAxis(f),v.addAxis(p)})}),sE(s.x),sE(s.y);function u(f){return function(c,p){if(k2(c,e)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=gp(c),v=new cC(f,yp(c,d,!0),[0,0],d,h);v.onBand=Sp(v.scale,c),v.inverse=c.get("inverse"),c.axis=v,v.model=c,v.grid=a,v.index=p,a._axesList.push(v),s[f][p]=v,l[f]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],i=[];return w(this.getCartesians(),function(n){var a=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(a);ne(r,a)<0&&r.push(a),ne(i,o)<0&&i.push(o)}),{baseAxes:r,otherAxes:i}},t.create=function(e,r){var i=[];return e.eachComponent("grid",function(n,a){var o=new t(n,e,r);o.name="grid_"+a,o.resize(n,r,!0),n.coordinateSystem=o,i.push(o),w(o._axesList,function(s){_1(s,t.dimIdxMap)})}),e.eachSeries(function(n){var a,o;lb({targetModel:n,coordSysType:Ir,coordSysProvider:s});function s(){var l=xC(n),u=l.xAxisModel,f=l.yAxisModel;a=u.axis,o=f.axis;var c=u.getCoordSysModel(),p=c.coordinateSystem;return p.getCartesian(u.componentIndex,f.componentIndex)}a&&o&&(Ag(a,n,Ir),Ag(o,n,Ir))},this),i},t.dimensions=lu,t.dimIdxMap=Wl(lu),t})();function k2(t,e){return t.getCoordSysModel()===e}function aE(t,e,r,i){r.getAxesOnZeroOf=function(){return a?[a]:[]};var n=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)oE(s,n[l])&&(a=n[l]);else for(var u in n)if(Me(n,u)&&oE(s,n[u])&&!i[f(n[u])]){a=n[u];break}a&&(i[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function oE(t,e){if(!e)return!1;var r=e.scale,i=QT(r,0,!1),n=e&&e.type!=="category"&&e.type!=="time"&&i!==mp;return n&&t==="auto"&&e1(e)&&(n=!1),n}function sE(t){for(var e=fe(t),r,i=[],n=e.length-1;n>=0;n--){var a=t[+e[n]];lp(a.scale)&&Sg(a.model,a.type,!0)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?i.push(a):r=a)}r||(r=i.pop()),r&&w(i,function(o){o.__alignTo=r})}function B2(t,e){return Da(t.scale)||Da(e.scale)||e.scale.getTicks().length<2}function U2(t,e){var r=t.getExtent(),i=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(n){return n+e}:function(n){return i-n+e},t.toLocalCoord=t.dim==="x"?function(n){return n-e}:function(n){return i-n+e}}function cy(t,e){w(t.x,function(r){return lE(r,e.x,e.width)}),w(t.y,function(r){return lE(r,e.y,e.height)})}function lE(t,e,r){var i=[0,r],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),U2(t,e)}var uE;function fE(t,e,r,i,n,a,o){cE(i,n,Kt.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(i,0,NaN),f(i,1,NaN);var l=Oh(s,function(p){return p>0})==null;return Uo(i,s,!0,!0,r),cy(n,i),l;function u(p){w(n[Ii[p]],function(h){if(qa(h.model)){var d=a.ensureRecord(h.model),v=d.labelInfoList;if(v)for(var m=0;m<v.length;m++){var g=v[m],y=h.scale.normalize(Ui(h.scale,Cn(g.label).labelInfo.tick));y=p===1?1-y:y,f(g.rect,p,y),f(g.rect,1-p,NaN)}var _=d.nameLayout;if(_){var y=xn(d.nameLocation)?.5:NaN;f(_.rect,p,y),f(_.rect,1-p,NaN)}}})}function f(p,h,d){var v=t[Ii[h]]-p[Ii[h]],m=p[Sa[h]]+p[Ii[h]]-(t[Sa[h]]+t[Ii[h]]);v=c(v,1-d),m=c(m,d);var g=nE[h][0],y=nE[h][1];s[g]=ce(s[g],v),s[y]=ce(s[y],m)}function c(p,h){return p>0&&!_i(h)&&h>1e-4&&(p/=h),p}}function z2(t,e,r,i,n){var a=new ey(V2);return w(r,function(o){return w(o,function(s){if(qa(s.model)){var l=!i;s.axisBuilder=SC(t,e,s.model,n,a,l)}})}),a}function cE(t,e,r,i,n,a){var o=r===Kt.determine;w(e,function(u){return w(u,function(f){qa(f.model)&&(bC(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Ii[1-u]]=t[Sa[u]]<=a.refContainer[Sa[u]]*.5?0:1-u===1?2:1}w(e,function(u,f){return w(u,function(c){qa(c.model)&&((i==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function F2(t,e,r){var i,n=t.get("outerBoundsMode",!0);n==="same"?i=e.clone():(n==null||n==="auto")&&(i=hi(t.get("outerBounds",!0)||ny,r.refContainer));var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"||ne(["all","axisLabel"],a)<0?o="all":o=a;var s=[af(Y(t.get("outerBoundsClampWidth",!0),su[0]),e.width),af(Y(t.get("outerBoundsClampHeight",!0),su[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var V2=function(t,e,r,i,n,a){var o=r.axis.dim==="x"?"y":"x";ty(t,e,r,i,n,a),xn(t.nameLocation)||w(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&ry(s.labelInfoList,s.dirVec,i,n)})},pE=R2;function hE(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return H2(r,t,e),r.seriesInvolved&&W2(r,t),r}function H2(t,e,r){var i=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];w(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Ss(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",i);if(w(s.getAxes(),Ce(v,!1,null)),s.getTooltipAxes&&i&&c.get("show")){var p=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(p||h)&&w(d.baseAxes,Ce(v,h?"cross":!0,p)),h&&w(d.otherAxes,Ce(v,"cross",!1))}function v(m,g,y){var _=y.model.getModel("axisPointer",n),x=_.get("show");if(!(!x||x==="auto"&&!m&&!hy(_))){g==null&&(g=_.get("triggerTooltip")),_=m?G2(y,c,n,e,m,g):_;var S=_.get("snap"),b=_.get("triggerEmphasis"),T=Ss(y.model),C=g||S||y.type==="category",A=t.axesInfo[T]={key:T,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:b,involveSeries:C,snap:S,useHandle:hy(_),seriesModels:[],linkGroup:null};u[T]=A,t.seriesInvolved=t.seriesInvolved||C;var E=Y2(a,y);if(E!=null){var D=o[E]||(o[E]={axesInfo:{}});D.axesInfo[T]=A,D.mapper=a[E].mapper,A.linkGroup=D}}}})}function G2(t,e,r,i,n,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};w(s,function(p){l[p]=Q(o.get(p))}),l.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&re(u,c.textStyle)}}return t.model.getModel("axisPointer",new Te(l,r,i))}function W2(t,e){e.eachSeries(function(r){var i=r.coordinateSystem,n=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!i||!i.model||n==="none"||n===!1||n==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||w(t.coordSysAxesInfo[Ss(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function Y2(t,e){for(var r=e.model,i=e.dim,n=0;n<t.length;n++){var a=t[n]||{};if(py(a[i+"AxisId"],r.id)||py(a[i+"AxisIndex"],r.componentIndex)||py(a[i+"AxisName"],r.name))return n}}function py(t,e){return t==="all"||P(t)&&ne(t,e)>=0||t===e}function dE(t){var e=Yp(t);if(e){var r=e.axisPointerModel,i=e.axis.scale,n=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=i.parse(o));var s=hy(r);a==null&&(n.status=s?"show":"hide");var l=i.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function Yp(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Ss(t)]}function vE(t){var e=Yp(t);return e&&e.axisPointerModel}function hy(t){return!!t.get(["handle","show"])}function Ss(t){return t.type+"||"+t.id}var mE={},X2=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n,a){this.axisPointerClass&&dE(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,n,!0)},e.prototype.updateAxisPointer=function(r,i,n,a){this._doUpdateAxisPointerClass(r,n,!1)},e.prototype.remove=function(r,i){var n=this._axisPointer;n&&n.remove(i)},e.prototype.dispose=function(r,i){this._disposeAxisPointer(i),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,i,n){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=vE(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,i,n):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,i){mE[r]=i},e.getAxisPointerClass=function(r){return r&&mE[r]},e.type="axis",e})(st),Xp=X2;var vy=ae();function gE(t,e,r,i){var n=r.axis;if(!n.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=vy(t).splitAreaColors,p=V(),h=0;if(c)for(var d=0;d<u.length;d++){var v=c.get(u[d].tickValue);if(v!=null){h=(v+(f-1)*d)%f;break}}var m=n.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=P(s)?s:[s];for(var d=1;d<u.length;d++){var y=n.toGlobalCoord(u[d].coord),_=void 0,x=void 0,S=void 0,b=void 0;n.isHorizontal()?(_=m,x=l.y,S=y-_,b=l.height,m=_+S):(_=l.x,x=m,S=l.width,b=y-x,m=x+b);var T=u[d-1].tickValue;T!=null&&p.set(T,h),e.add(new _e({anid:T!=null?"area_"+T:null,shape:{x:_,y:x,width:S,height:b},style:re({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%f}vy(t).splitAreaColors=p}}}function yE(t){vy(t).splitAreaColors=null}var q2=["splitArea","splitLine","minorSplitLine","breakArea"],_E=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new we,this.group.add(this._axisGroup),!!qa(r)){this._axisGroup.add(r.axis.axisBuilder.group),w(q2,function(l){r.get([l,"show"])&&K2[l](this,this._axisGroup,r,r.getCoordSysModel(),n)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||Gv(o,this._axisGroup,r),t.prototype.render.call(this,r,i,n,a)}},e.prototype.remove=function(){yE(this)},e.type="cartesianAxis",e})(Xp),K2={splitLine:function(t,e,r,i,n){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=P(l)?l:[l];for(var c=i.coordinateSystem.getRect(),p=a.isHorizontal(),h=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),v=[],m=[],g=s.getLineStyle(),y=0;y<d.length;y++){var _=a.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!f)){var x=d[y].tickValue;p?(v[0]=_,v[1]=c.y,m[0]=_,m[1]=c.y+c.height):(v[0]=c.x,v[1]=_,m[0]=c.x+c.width,m[1]=_);var S=h++%l.length,b=new sr({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:m[0],y2:m[1]},style:re({stroke:l[S]},g),silent:!0});ba(b.shape,g.lineWidth),e.add(b)}}}},minorSplitLine:function(t,e,r,i,n){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=i.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],p=[],h=s.getLineStyle(),d=0;d<f.length;d++)for(var v=0;v<f[d].length;v++){var m=a.toGlobalCoord(f[d][v].coord);u?(c[0]=m,c[1]=l.y,p[0]=m,p[1]=l.y+l.height):(c[0]=l.x,c[1]=m,p[0]=l.x+l.width,p[1]=m);var g=new sr({anid:"minor_line_"+f[d][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:h,silent:!0});ba(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,r,i,n){gE(t,e,r,i)},breakArea:function(t,e,r,i,n){var a=Ka(),o=r.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(e,t,r,i.coordinateSystem.getRect(),n)}},my=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(_E);var xE=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=my.type,r}return e.type="yAxis",e})(_E);var Z2=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,i){this.group.removeAll(),r.get("show")&&this.group.add(new _e({shape:r.coordinateSystem.getRect(),style:re({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(st),SE={offset:0};function bE(t){t.registerComponentView(Z2),t.registerComponentModel(DC),t.registerCoordinateSystem("cartesian2d",pE),Wp(t,"x",Gp,SE),Wp(t,"y",Gp,SE),t.registerComponentView(my),t.registerComponentView(xE),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var $a=ae(),wE=Q,gy=pe,j2=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,i,n){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,r,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new we,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),i.getZr().add(s);else{var p=Ce(TE,r,c);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,r)}EE(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var i=r.get("animation"),n=e.axis,a=n.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&$r(n).w>s)return!0;if(o){var l=Yp(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},t.prototype.makeElOption=function(e,r,i,n,a){},t.prototype.createPointerEl=function(e,r,i,n){var a=r.pointer;if(a){var o=$a(e).pointerEl=new _t[a.type](wE(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,i,n){if(r.label){var a=$a(e).labelEl=new Oe(wE(r.label));e.add(a),CE(a,n)}},t.prototype.updatePointerEl=function(e,r,i){var n=$a(e).pointerEl;n&&r.pointer&&(n.setStyle(r.pointer.style),i(n,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,i,n){var a=$a(e).labelEl;a&&(a.setStyle(r.label.style),i(a,{x:r.label.x,y:r.label.y}),CE(a,n))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=wa(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Mu(u.event)},onmousedown:gy(this._onHandleDragMove,this,0,0),drift:gy(this._onHandleDragMove,this),ondragend:gy(this._onHandleDragEnd,this)}),i.add(n)),EE(n,r,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");P(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Lc(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){TE(this._axisPointerModel,!r&&this._moveAnimation,this._handle,yy(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(yy(i),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(yy(n)),$a(i).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),i=this._group,n=this._handle;r&&i&&(this._lastGraphicKey=null,i&&r.remove(i),n&&r.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Rl(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,i){return i=i||0,{x:e[i],y:e[1-i],width:r[i],height:r[1-i]}},t})();function TE(t,e,r,i){AE($a(r).lastProp,i)||($a(r).lastProp=i,e?He(r,i,t):(r.stopAnimation(),r.attr(i)))}function AE(t,e){if(F(t)&&F(e)){var r=!0;return w(e,function(i,n){r=r&&AE(t[n],i)}),!!r}else return t===e}function CE(t,e){t[e.get(["label","show"])?"show":"hide"]()}function yy(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function EE(t,e,r){var i=e.get("z"),n=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=r)})}var DE=j2;function ME(t){var e=t.get("type"),r=t.getModel(e+"Style"),i;return e==="line"?(i=r.getLineStyle(),i.fill=null):e==="shadow"&&(i=r.getAreaStyle(),i.stroke=null),i}function $2(t,e,r,i,n){var a=r.get("value"),o=_y(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=pi(s.get("padding")||0),u=s.getFont(),f=ju(o,u),c=n.position,p=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=n.align;d==="right"&&(c[0]-=p),d==="center"&&(c[0]-=p/2);var v=n.verticalAlign;v==="bottom"&&(c[1]-=h),v==="middle"&&(c[1]-=h/2),Q2(c,p,h,i);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Xr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function Q2(t,e,r,i){var n=i.getWidth(),a=i.getHeight();t[0]=Math.min(t[0]+e,n)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function _y(t,e,r,i,n){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:n.precision}),o=n.formatter;if(o){var s={value:ms(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};w(i,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),B(o)?a=o.replace("{value}",a):G(o)&&(a=o(s))}return a}function xy(t,e,r){var i=mt();return zn(i,i,r.rotation),oo(i,i,r.position),Ff([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],i)}function OE(t,e,r,i,n,a){var o=zp.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get(["label","margin"]),$2(e,i,n,a,{position:xy(i.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function IE(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function LE(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function NE(t,e,r){return $r(t,{fromStat:{sers:U(e,function(i){return r.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function PE(t,e,r){return[ce(Ue(e[0],e[1]),t-r/2),Ue(t+r/2,ce(e[0],e[1]))]}var J2=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,i,n,a,o){var s=n.axis,l=s.grid,u=a.get("type"),f=s.getGlobalExtent(),c=kE(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var h=ME(a),d=eB[u](s,p,f,c,a.get("seriesDataIndices"),a.ecModel);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=au(l.getRect(),n);OE(i,r,v,n,a,o)},e.prototype.getHandleTransform=function(r,i,n){var a=au(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=xy(i.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=kE(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=i[f],c[f]=Ue(l[1],c[f]),c[f]=ce(l[0],c[f]);var p=(u[1]+u[0])/2,h=[p,p];h[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:d[f]}},e})(DE);function kE(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var eB={line:function(t,e,r,i){var n=IE([e,i[0]],[e,i[1]],BE(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r,i,n,a){var o=NE(t,n,a),s=i[1]-i[0],l=PE(e,r,o),u=l[0],f=l[1];return{type:"Rect",shape:LE([u,i[0]],[f-u,s],BE(t))}}};function BE(t){return t.dim==="x"?0:1}var UE=J2;var tB=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Z.color.border,width:1,type:"dashed"},shadowStyle:{color:Z.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:Z.color.neutral00,padding:[5,7,5,7],backgroundColor:Z.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:Z.color.accent40,throttle:40}},e})(xe),zE=tB;var Vi=ae(),rB=w;function qp(t,e,r){if(!ee.node){var i=e.getZr();Vi(i).records||(Vi(i).records={}),iB(i,e);var n=Vi(i).records[t]||(Vi(i).records[t]={});n.handler=r}}function iB(t,e){if(Vi(t).initialized)return;Vi(t).initialized=!0,r("click",Ce(Sy,"click")),r("mousemove",Ce(Sy,"mousemove")),r("mousewheel",Ce(Sy,"mousewheel")),r("globalout",aB);function r(i,n){t.on(i,function(a){var o=oB(e);rB(Vi(t).records,function(s){s&&n(s,a,o.dispatchAction)}),nB(o.pendings,e)})}}function nB(t,e){var r=t.showTip.length,i=t.hideTip.length,n;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function aB(t,e,r){t.handler("leave",null,r)}function Sy(t,e,r,i){e.handler(t,r,i)}function oB(t){var e={showTip:[],hideTip:[]},r=function(i){var n=e[i.type];n?n.push(i):(i.dispatchAction=r,t.dispatchAction(i))};return{dispatchAction:r,pendings:e}}function uu(t,e){if(!ee.node){var r=e.getZr(),i=(Vi(r).records||{})[t];i&&(Vi(r).records[t]=null)}}var sB=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n){var a=i.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";qp("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,i){uu("axisPointer",i)},e.prototype.dispose=function(r,i){uu("axisPointer",i)},e.type="axisPointer",e})(st),VE=sB;function fu(t,e){var r=[],i=t.seriesIndex,n;if(i==null||!(n=e.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=wr(a,t);if(o==null||o<0||P(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,p=u.dim,h=c==="x"||c==="radius"?1:0,d=a.mapDimension(p),v=[];v[h]=a.get(d,o),v[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(v)||[]}else r=l.dataToPoint(a.getValues(U(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var HE=ae();function by(t,e,r){var i=t.currTrigger,n=[t.x,t.y],a=t,o=t.dispatchAction||pe(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Kp(n)&&(n=fu({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Kp(n),u=a.axesInfo,f=s.axesInfo,c=i==="leave"||Kp(n),p={},h={},d={list:[],map:{}},v={showPointer:Ce(uB,h),showTooltip:Ce(fB,d)};w(s.coordSysMap,function(g,y){var _=l||g.containPoint(n);w(s.coordSysAxesInfo[y],function(x,S){var b=x.axis,T=dB(u,x);if(!c&&_&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=b.pointToData(n)),C!=null&&GE(x,C,v,!1,p)}})});var m={};return w(f,function(g,y){var _=g.linkGroup;_&&!h[y]&&w(_.axesInfo,function(x,S){var b=h[S];if(x!==g&&b){var T=b.value;_.mapper&&(T=g.axis.scale.parse(_.mapper(T,WE(x),WE(g)))),m[g.key]=T}})}),w(m,function(g,y){GE(f[y],g,v,!0,p)}),cB(h,f,p),pB(d,n,t,o),hB(f,o,r),p}}function GE(t,e,r,i,n){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=lB(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&N(n,s[0]),!i&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function lB(t,e){var r=e.axis,i=r.dim,n=t,a=[],o=Number.MAX_VALUE,s=-1;return w(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),c,p;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,t,r);p=h.dataIndices,c=h.nestestValue}else{if(p=l.indicesOfNearest(i,f[0],t,r.type==="category"?.5:null),!p.length)return;c=l.getData().get(f[0],p[0])}if($e(c)){var d=t-c,v=Math.abs(d);v<=o&&((v<o||d>=0&&s<0)&&(o=v,s=d,n=c,a.length=0),w(p,function(m){a.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:n}}function uB(t,e,r,i){t[e.key]={value:r,payloadBatch:i}}function fB(t,e,r,i){var n=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=Ss(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function cB(t,e,r){var i=r.axesInfo=[];w(e,function(n,a){var o=n.axisPointerModel.option,s=t[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function pB(t,e,r,i){if(Kp(e)||!t.list.length){i({type:"hideTip"});return}var n=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:t.list})}function hB(t,e,r){var i=r.getZr(),n="axisPointerLastHighlights",a=HE(i)[n]||{},o=HE(i)[n]={};w(t,function(f,c){var p=f.axisPointerModel.option;p.status==="show"&&f.triggerEmphasis&&w(p.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}w(a,function(f,c){!o[c]&&l.push(u(f))}),w(o,function(f,c){!a[c]&&s.push(u(f))}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function dB(t,e){for(var r=0;r<(t||[]).length;r++){var i=t[r];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function WE(t){var e=t.axis.model,r={},i=r.axisDim=t.axis.dim;return r.axisIndex=r[i+"AxisIndex"]=e.componentIndex,r.axisName=r[i+"AxisName"]=e.name,r.axisId=r[i+"AxisId"]=e.id,r}function Kp(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function Zp(t){Xp.registerAxisPointerClass("CartesianAxisPointer",UE),t.registerComponentModel(zE),t.registerComponentView(VE),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!P(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=hE(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},by)}function wy(t){Ut(bE),Ut(Zp)}function YE(t,e){var r=pi(e.get("padding")),i=e.getItemStyle(["color","opacity"]);i.fill=e.get("backgroundColor");var n=new _e({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1});return n}var vB=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Z.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Z.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:Z.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:Z.color.tertiary,fontSize:14}},e})(xe),XE=vB;function jp(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function qE(t){if(ee.domSupported){for(var e=document.documentElement.style,r=0,i=t.length;r<i;r++)if(t[r]in e)return t[r]}}var Ty=qE(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),KE=qE(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Cy(t,e){if(!t)return e;e=Xo(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function ZE(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}var mB=Cy(KE,"transition"),Ey=Cy(Ty,"transform"),gB="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ee.transform3dSupported?"will-change:transform;":"");function yB(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function _B(t,e,r){if(!B(r)||r==="inside")return"";var i=t.get("backgroundColor"),n=t.get("borderWidth");e=qr(e);var a=yB(r),o=Math.max(Math.round(n)*1.5,6),s="",l=Ey+":",u;ne(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+n,p=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((p-Math.SQRT2*n)/2+Math.SQRT2*n-(p-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var d=e+" solid "+n+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"];return'<div style="'+v.join("")+'"></div>'}function xB(t,e,r){var i="cubic-bezier(0.23,1,0.32,1)",n="",a="";return r&&(n=" "+t/2+"s "+i,a="opacity"+n+",visibility"+n),e||(n=" "+t+"s "+i,a+=(a.length?",":"")+(ee.transformSupported?""+Ey+n:",left"+n+",top"+n)),mB+":"+a}function jE(t,e,r){var i=t.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!ee.transformSupported)return r?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=ee.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return r?"top:0;left:0;"+Ey+":"+o+";":[["top",0],["left",0],[Ty,o]]}function SB(t){var e=[],r=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var n=Y(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+n+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),w(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function bB(t,e,r,i){var n=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),c=t.getModel("textStyle"),p=Ac(t,"html"),h=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+h),e&&a>0&&n.push(xB(a,r,i)),o&&n.push("background-color:"+o),w(["width","color","radius"],function(d){var v="border-"+d,m=Xo(v),g=t.get(m);g!=null&&n.push(v+":"+g+(d==="color"?"":"px"))}),n.push(SB(c)),p!=null&&n.push("padding:"+pi(p).join("px ")+"px"),n.join(";")+";"}function $E(t,e,r,i,n){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&f_(t,o,r,i,n)}else{t[0]=i,t[1]=n;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var wB=(function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ee.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=e.getZr(),a=r.appendTo,o=a&&(B(a)?document.querySelector(a):Nn(a)?a:G(a)&&a(e.getDom()));$E(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(i),this._api=e,this._container=o;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=n.handler,f=n.painter.getViewportRoot();Vt(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),i=ZE(r,"position"),n=r.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=gB+bB(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+jE(a[0],a[1],!0)+("border-color:"+qr(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,i,n,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(B(a)&&i.get("trigger")==="item"&&!jp(i)&&(s=_B(i,n,a)),B(e))o.innerHTML=e+s;else if(e){o.innerHTML="",P(e)||(e=[e]);for(var l=0;l<e.length;l++)Nn(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var i=this._styleCoord;if($E(i,this._zr,this._container,e,r),i[0]!=null&&i[1]!=null){var n=this.el.style,a=jE(i[0],i[1]);w(a,function(o){n[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",ee.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(pe(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;c_(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var i=r.parentNode;i&&i.removeChild(r)}this.el=this._container=null},t})(),QE=wB;var TB=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),eA(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,i,n,a){var o=this;F(e)&&ft(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new Oe({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Ac(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),w(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),w(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),i=JE(e.style);return[r.width+i.left+i.right,r.height+i.top+i.bottom]},t.prototype.moveTo=function(e,r){var i=this.el;if(i){var n=this._styleCoord;eA(n,this._zr,e,r),e=n[0],r=n[1];var a=i.style,o=En(a.borderWidth||0),s=JE(a);i.x=e+o+s.left,i.y=r+o+s.top,i.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(pe(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function En(t){return Math.max(0,t)}function JE(t){var e=En(t.shadowBlur||0),r=En(t.shadowOffsetX||0),i=En(t.shadowOffsetY||0);return{left:En(e-r),right:En(e+r),top:En(e-i),bottom:En(e+i)}}function eA(t,e,r,i){t[0]=r,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var tA=TB;var CB=new _e({shape:{x:-1,y:-1,width:2,height:2}}),EB=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,i){if(!(ee.node||!i.getDom())){var n=r.getComponent("tooltip"),a=this._renderMode=k0(n.get("renderMode"));this._tooltipContent=a==="richText"?new tA(i):new QE(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(r,i,n){if(!(ee.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Lc(this,"_updatePosition",50,"fixRate"):Rl(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,i=r.get("triggerOn");qp("itemTooltip",this._api,pe(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,i=this._ecModel,n=this._api,a=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(r,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,i,n,a){if(!(a.from===this.uid||ee.node||!n.getDom())){var o=rA(a,n);this._ticket="";var s=a.dataByCoordSys,l=OB(a,i,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=CB;f.x=a.x,f.y=a.y,f.update(),he(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(r,i,n,a))return;var c=fu(a,i),p=c.point[0],h=c.point[1];p!=null&&h!=null&&this._tryShow({offsetX:p,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide(rA(a,n))},e.prototype._manuallyAxisShowTip=function(r,i,n,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),c=cu([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,i){var n=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(n){var s=he(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;za(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(he(f).dataIndex!=null?l=f:he(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,i):u?this._showComponentItemTooltip(r,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(i)}},e.prototype._showOrMove=function(r,i){var n=r.get("showDelay");i=pe(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},e.prototype._showAxisTooltip=function(r,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=cu([i.tooltipOption],a),l=this._renderMode,u=[],f=ka("section",{blocks:[],noHeader:!0}),c=[],p=new Dc;w(r,function(y){w(y.dataByAxis,function(_){var x=n.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value,b=x.axis,T=b.scale.parse(S);if(!(!x||S==null)){var C=_y(S,b,n,_.seriesDataIndices,_.valueLabelOpt),A=ka("section",{header:C,noHeader:!ut(C),sortBlocks:!0,blocks:[]});f.blocks.push(A),w(_.seriesDataIndices,function(E){var D=n.getSeriesByIndex(E.seriesIndex),O=E.dataIndexInside,M=D.getDataParams(O);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=ms(x.axis,{value:T}),M.axisValueLabel=C,M.marker=p.makeTooltipMarker("item",qr(M.color),l);var I=Am(D.formatTooltip(O,!0,null)),R=I.frag;if(R){var k=cu([D],a).get("valueFormatter");A.blocks.push(k?N({valueFormatter:k},R):R)}I.text&&c.push(I.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var h=i.position,d=s.get("order"),v=Nm(f,p,l,d,n.get("useUTC"),s.get("textStyle"));v&&c.unshift(v);var m=l==="richText"?`
22
-
23
- `:"<br/>",g=c.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],h,null,p)})},e.prototype._showSeriesItemTooltip=function(r,i,n){var a=this._ecModel,o=he(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,p=u.getData(c),h=this._renderMode,d=r.positionDefault,v=cu([p.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),m=v.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,c),y=new Dc;g.marker=y.makeTooltipMarker("item",qr(g.color),h);var _=Am(u.formatTooltip(f,!1,c)),x=v.get("order"),S=v.get("valueFormatter"),b=_.frag,T=b?Nm(S?N({valueFormatter:S},b):b,y,h,x,a.get("useUTC"),v.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(v,function(){this._showTooltipContent(v,T,g,C,r.offsetX,r.offsetY,r.position,r.target,y)}),n({type:"showTip",dataIndexInside:f,dataIndex:p.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,i,n){var a=this._renderMode==="html",o=he(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(B(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=Q(l),l.content=nt(l.content));var c=[l],p=this._ecModel.getComponent(o.componentMainType,o.componentIndex);p&&c.push(p),c.push({formatter:l.content});var h=r.positionDefault,d=cu(c,this._tooltipModel,h?{position:h}:null),v=d.get("content"),m=Math.random()+"",g=new Dc;this._showOrMove(d,function(){var y=Q(d.get("formatterParams")||{});this._showTooltipContent(d,v,y,m,r.offsetX,r.offsetY,r.position,i,g)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,i,n,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var p=r.get("formatter");l=l||r.get("position");var h=i,d=this._getNearestPoint([o,s],n,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),v=d.color;if(p)if(B(p)){var m=r.ecModel.get("useUTC"),g=P(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=p,y&&(h=Li(g.axisValue,h,m)),h=qo(h,n,!0)}else if(G(p)){var _=pe(function(x,S){x===this._ticket&&(c.setContent(S,f,r,v,l),this._updatePosition(r,l,o,s,c,n,u))},this);this._ticket=a,h=p(n,a,_)}else h=p;c.setContent(h,f,r,v,l),c.show(r,v),this._updatePosition(r,l,o,s,c,n,u)}},e.prototype._getNearestPoint=function(r,i,n,a,o){if(n==="axis"||P(i))return{color:a||o};if(!P(i))return{color:a||i.color||i.borderColor}},e.prototype._updatePosition=function(r,i,n,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||r.get("position");var c=o.getSize(),p=r.get("align"),h=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),G(i)&&(i=i([n,a],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),P(i))n=Ke(i[0],u),a=Ke(i[1],f);else if(F(i)){var v=i;v.width=c[0],v.height=c[1];var m=hi(v,{width:u,height:f});n=m.x,a=m.y,p=null,h=null}else if(B(i)&&l){var g=MB(i,d,c,r.get("borderWidth"));n=g[0],a=g[1]}else{var g=AB(n,a,o,u,f,p?null:20,h?null:20);n=g[0],a=g[1]}if(p&&(n-=iA(p)?c[0]/2:p==="right"?c[0]:0),h&&(a-=iA(h)?c[1]/2:h==="bottom"?c[1]:0),jp(r)){var g=DB(n,a,o,u,f);n=g[0],a=g[1]}o.moveTo(n,a)},e.prototype._updateContentNotChangedOnAxis=function(r,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===r.length;return o&&w(n,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&w(u,function(p,h){var d=c[h]||{},v=p.seriesDataIndices||[],m=d.seriesDataIndices||[];o=o&&p.value===d.value&&p.axisType===d.axisType&&p.axisId===d.axisId&&v.length===m.length,o&&w(v,function(g,y){var _=m[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&w(p.seriesDataIndices,function(g){var y=g.seriesIndex,_=i[y],x=a[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=i,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,i){ee.node||!i.getDom()||(Rl(this,"_updatePosition"),this._tooltipContent.dispose(),uu("itemTooltip",i),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(st);function cu(t,e,r){var i=e.ecModel,n;r?(n=new Te(r,i,i),n=new Te(e.option,n,i)):n=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof Te&&(o=o.get("tooltip",!0)),B(o)&&(o={formatter:o}),o&&(n=new Te(o,n,i)))}return n}function rA(t,e){return t.dispatchAction||pe(e.dispatchAction,e)}function AB(t,e,r,i,n,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>i?t-=l+a:t+=a),o!=null&&(e+u+o>n?e-=u+o:e+=o),[t,e]}function DB(t,e,r,i,n){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,i)-o,e=Math.min(e+s,n)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function MB(t,e,r,i){var n=r[0],a=r[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-n/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function iA(t){return t==="center"||t==="middle"}function OB(t,e,r){var i=il(t).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=en(e,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=he(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}var nA=EB;function Ay(t){Ut(Zp),t.registerComponentModel(XE),t.registerComponentView(nA),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ke),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ke)}var IB=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},LB=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.call(this,r,i),this._updateSelector(r)},e.prototype._updateSelector=function(r){var i=r.selector,n=this.ecModel;i===!0&&(i=r.selector=["all","inverse"]),P(i)&&w(i,function(a,o){B(a)&&(a={type:a}),i[o]=ue(a,IB(n,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var i=!1,n=0;n<r.length;n++){var a=r[n].get("name");if(this.isSelected(a)){this.select(a),i=!0;break}}!i&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var i=[],n=[];r.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,p=c.getAllNames();r.isSeriesFiltered(l)||(n=n.concat(p)),p.length?i=i.concat(p):f=!0}else f=!0;f&&wo(l)&&i.push(l.name)}),this._availableNames=n;var a=this.get("data")||i,o=V(),s=U(a,function(l){return(B(l)||le(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Te(l,this,this.ecModel))},this);this._data=De(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var i=this.option.selected,n=this.get("selectedMode");if(n==="single"){var a=this._data;w(a,function(o){i[o.get("name")]=!1})}i[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var i=this.option.selected;i.hasOwnProperty(r)||(i[r]=!0),this[i[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,i=this.option.selected;w(r,function(n){i[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,i=this.option.selected;w(r,function(n){var a=n.get("name",!0);i.hasOwnProperty(a)||(i[a]=!0),i[a]=!i[a]})},e.prototype.isSelected=function(r){var i=this.option.selected;return!(i.hasOwnProperty(r)&&!i[r])&&ne(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:Z.size.m,align:"auto",backgroundColor:Z.color.transparent,borderColor:Z.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:Z.color.disabled,inactiveBorderColor:Z.color.disabled,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:Z.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:Z.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:Z.color.tertiary,borderWidth:1,borderColor:Z.color.border},emphasis:{selectorLabel:{show:!0,color:Z.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(xe),pu=LB;var bs=Ce,Dy=w,$p=we,NB=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new $p),this.group.add(this._selectorGroup=new $p),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,i,n,l,s,u);var f=dc(r,n).refContainer,c=r.getBoxLayoutParams(),p=r.get("padding"),h=hi(c,f,p),d=this.layoutInner(r,o,h,a,l,u),v=hi(re({width:d.width,height:d.height},c),f,p);this.group.x=v.x-d.x,this.group.y=v.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=YE(d,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,i,n,a,o,s,l){var u=this.getContentGroup(),f=V(),c=i.get("selectedMode"),p=i.get("triggerEvent"),h=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),Dy(i.getData(),function(d,v){var m=this,g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
24
- `)){var y=new $p;y.newline=!0,u.add(y);return}var _=n.getSeriesByName(g)[0];if(!f.get(g))if(_){var x=_.getData(),S=x.getVisual("legendLineStyle")||{},b=x.getVisual("legendIcon"),T=x.getVisual("style"),C=this._createItem(_,g,v,d,i,r,S,T,b,c,a);C.on("click",bs(aA,g,null,a,h)).on("mouseover",bs(My,_.name,null,a,h)).on("mouseout",bs(Oy,_.name,null,a,h)),n.ssr&&C.eachChild(function(A){var E=he(A);E.seriesIndex=_.seriesIndex,E.dataIndex=v,E.ssrType="legend"}),p&&C.eachChild(function(A){m.packEventData(A,i,_,v,g)}),f.set(g,!0)}else n.eachRawSeries(function(A){var E=this;if(!f.get(g)&&A.legendVisualProvider){var D=A.legendVisualProvider;if(!D.containName(g))return;var O=D.indexOfName(g),M=D.getItemVisual(O,"style"),I=D.getItemVisual(O,"legendIcon"),R=bt(M.fill);R&&R[3]===0&&(R[3]=.2,M=N(N({},M),{fill:ti(R,"rgba")}));var k=this._createItem(A,g,v,d,i,r,{},M,I,c,a);k.on("click",bs(aA,null,g,a,h)).on("mouseover",bs(My,null,g,a,h)).on("mouseout",bs(Oy,null,g,a,h)),n.ssr&&k.eachChild(function(W){var z=he(W);z.seriesIndex=A.seriesIndex,z.dataIndex=v,z.ssrType="legend"}),p&&k.eachChild(function(W){E.packEventData(W,i,A,v,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,i,a,s,l)},e.prototype.packEventData=function(r,i,n,a,o){var s={componentType:"legend",componentIndex:i.componentIndex,dataIndex:a,value:o,seriesIndex:n.seriesIndex};he(r).eventData=s},e.prototype._createSelector=function(r,i,n,a,o){var s=this.getSelectorGroup();Dy(r,function(u){var f=u.type,c=new Oe({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(c);var p=i.getModel("selectorLabel"),h=i.getModel(["emphasis","selectorLabel"]);un(c,{normal:p,emphasis:h},{defaultText:u.title}),Oo(c)})},e.prototype._createItem=function(r,i,n,a,o,s,l,u,f,c,p){var h=r.visualDrawType,d=o.get("itemWidth"),v=o.get("itemHeight"),m=o.isSelected(i),g=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var x=PB(f,a,l,u,h,m,p),S=new $p,b=a.getModel("textStyle");if(G(r.getLegendIcon)&&(!_||_==="inherit"))S.add(r.getLegendIcon({itemWidth:d,itemHeight:v,icon:f,iconRotate:g,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var T=_==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;S.add(RB({itemWidth:d,itemHeight:v,icon:f,iconRotate:T,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?d+5:-5,A=s,E=o.get("formatter"),D=i;B(E)&&E?D=E.replace("{name}",i??""):G(E)&&(D=E(i));var O=m?b.getTextColor():a.get("inactiveColor");S.add(new Oe({style:Xr(b,{text:D,x:C,y:v/2,fill:O,align:A,verticalAlign:"middle"},{inheritColor:O})}));var M=new _e({shape:S.getBoundingRect(),style:{fill:"transparent"}}),I=a.getModel("tooltip");return I.get("show")&&zo({el:M,componentModel:o,itemName:i,itemTooltipOption:I.option}),S.add(M),S.eachChild(function(R){R.silent=!0}),M.silent=!c,this.getContentGroup().add(S),Oo(S),S.__legendDataIndex=n,S},e.prototype.layoutInner=function(r,i,n,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Oa(r.get("orient"),l,r.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Oa("horizontal",u,r.get("selectorItemGap",!0));var p=u.getBoundingRect(),h=[-p.x,-p.y],d=r.get("selectorButtonGap",!0),v=r.getOrient().index,m=v===0?"width":"height",g=v===0?"height":"width",y=v===0?"y":"x";s==="end"?h[v]+=f[m]+d:c[v]+=p[m]+d,h[1-v]+=f[g]/2-p[g]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[m]=f[m]+d+p[m],_[g]=Math.max(f[g],p[g]),_[y]=Math.min(0,p[y]+h[1-v]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(st);function PB(t,e,r,i,n,a,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),Dy(m,function(y,_){m[_]==="inherit"&&(m[_]=g[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=t.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?i.decal:Vl(c,o),u.fill==="inherit"&&(u.fill=i[n]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?i:r).opacity),s(u,i);var p=e.getModel("lineStyle"),h=p.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),h.stroke==="auto"&&(h.stroke=i.fill),!a){var d=e.get("inactiveBorderWidth"),v=u[f];u.lineWidth=d==="auto"?i.lineWidth>0&&v?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=p.get("inactiveColor"),h.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function RB(t){var e=t.icon||"roundRect",r=pr(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=Z.color.neutral00,r.style.lineWidth=2),r}function aA(t,e,r,i){Oy(t,e,r,i),r.dispatchAction({type:"legendToggleSelect",name:t??e}),My(t,e,r,i)}function My(t,e,r,i){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function Oy(t,e,r,i){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}var Qp=NB;function hu(t,e,r){var i=t==="allSelect"||t==="inverseSelect",n={},a=[];r.eachComponent({mainType:"legend",query:e},function(s){i?s[t]():s[t](e.name),oA(s,n),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){w(n,function(l,u){s[l?"select":"unSelect"](u)}),oA(s,o)}),i?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function oA(t,e){var r=e||{};return w(t.getData(),function(i){var n=i.get("name");if(!(n===`
25
- `||n==="")){var a=t.isSelected(n);Me(r,n)?r[n]=r[n]&&a:r[n]=a}}),r}function sA(t){t.registerAction("legendToggleSelect","legendselectchanged",Ce(hu,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Ce(hu,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Ce(hu,"inverseSelect")),t.registerAction("legendSelect","legendselected",Ce(hu,"select")),t.registerAction("legendUnSelect","legendunselected",Ce(hu,"unSelect"))}var lA=Co(kB);function kB(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var i=0;i<e.length;i++)if(!e[i].isSelected(r.name))return!1;return!0})}function Jp(t){t.registerComponentModel(pu),t.registerComponentView(Qp),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,lA),t.registerSubTypeDefaulter("legend",function(){return"plain"}),sA(t)}var BB=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,i,n){var a=di(r);t.prototype.init.call(this,r,i,n),uA(this,r,a)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.call(this,r,i),uA(this,this.option,r)},e.type="legend.scroll",e.defaultOption=Wf(pu.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:Z.color.accent50,pageIconInactiveColor:Z.color.accent10,pageIconSize:15,pageTextStyle:{color:Z.color.tertiary},animationDurationUpdate:800}),e})(pu);function uA(t,e,r){var i=t.getOrient(),n=[1,1];n[i.index]=0,fr(e,r,{type:"box",ignoreSize:!!n})}var fA=BB;var cA=we,Iy=["width","height"],Ly=["x","y"],UB=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new cA),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new cA)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,i,n,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,i,n,a,o,s,l);var f=this._controllerGroup,c=i.get("pageIconSize",!0),p=P(c)?c:[c,c];d("pagePrev",0);var h=i.getModel("pageTextStyle");f.add(new Oe({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(v,m){var g=v+"DataIndex",y=wa(i.get("pageIcons",!0)[i.getOrient().name][m],{onclick:pe(u._pageGo,u,g,i,a)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});y.name=v,f.add(y)}},e.prototype.layoutInner=function(r,i,n,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=Iy[u],c=Ly[u],p=Iy[1-u],h=Ly[1-u];o&&Oa("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),v=l.getBoundingRect(),m=[-v.x,-v.y],g=Q(n);o&&(g[f]=n[f]-v[f]-d);var y=this._layoutContentAndController(r,a,g,u,f,p,h,c);if(o){if(s==="end")m[u]+=y[f]+d;else{var _=v[f]+d;m[u]-=_,y[c]-=_}y[f]+=v[f]+d,m[1-u]+=y[h]+y[p]/2-v[p]/2,y[p]=Math.max(y[p],v[p]),y[h]=Math.min(y[h],v[h]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,i,n,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,p=this._controllerGroup;Oa(r.get("orient"),f,r.get("itemGap"),a?n.width:null,a?null:n.height),Oa("horizontal",p,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=p.getBoundingRect(),v=this._showController=h[o]>n[o],m=[-h.x,-h.y];i||(m[a]=f[u]);var g=[0,0],y=[-d.x,-d.y],_=Y(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var x=r.get("pageButtonPosition",!0);x==="end"?y[a]+=n[o]-d[o]:g[a]+=d[o]+_}y[1-a]+=h[s]/2-d[s]/2,f.setPosition(m),c.setPosition(g),p.setPosition(y);var S={x:0,y:0};if(S[o]=v?n[o]:h[o],S[s]=Math.max(h[s],d[s]),S[l]=Math.min(0,d[l]+y[1-a]),c.__rectSize=n[o],v){var b={x:0,y:0};b[o]=Math.max(n[o]-d[o]-_,0),b[s]=S[s],c.setClipPath(new _e({shape:b})),c.__rectSize=b[o]}else p.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&He(f,{x:T.contentPosition[0],y:T.contentPosition[1]},v?r:null),this._updatePageInfoView(r,T),S},e.prototype._pageGo=function(r,i,n){var a=this._getPageInfo(i)[r];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},e.prototype._updatePageInfoView=function(r,i){var n=this._controllerGroup;w(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",p=i[c]!=null,h=n.childOfName(f);h&&(h.setStyle("fill",p?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=p?"pointer":"default")});var a=n.childOfName("pageText"),o=r.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;a&&o&&a.setStyle("text",B(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var i=r.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Iy[o],l=Ly[o],u=this._findTargetItemIndex(i),f=n.children(),c=f[u],p=f.length,h=p?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var v=x(c);d.contentPosition[o]=-v.s;for(var m=u+1,g=v,y=v,_=null;m<=p;++m)_=x(f[m]),(!_&&y.e>g.s+a||_&&!S(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=_;for(var m=u-1,g=v,y=v,_=null;m>=-1;--m)_=x(f[m]),(!_||!S(y,_.s))&&g.i<y.i&&(y=g,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=_;return d;function x(b){if(b){var T=b.getBoundingRect(),C=T[l]+b[l];return{s:C,e:C+T[s],i:b.__legendDataIndex}}}function S(b,T){return b.e>=T&&b.s<=T+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(i=s)}),i??a},e.type="legend.scroll",e})(Qp),pA=UB;function Ny(t){t.registerAction("legendScroll","legendscroll",function(e,r){var i=e.scrollDataIndex;i!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(i)})})}function hA(t){Ut(Jp),t.registerComponentModel(fA),t.registerComponentView(pA),Ny(t)}function Py(t){Ut(Jp),Ut(hA)}function dA(t,e,r){var i=Re.createCanvas(),n=e.getWidth(),a=e.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",t)),i.width=n*r,i.height=a*r,i}function eh(t){return!t.__cursors.get(Iv)}function vA(t){var e=t.__cursors.get(Iv);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var zB=(function(t){L(e,t);function e(r,i,n){var a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.zlevel=0,a.zlevel2=Po,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0};var o;n=n||jn,typeof r=="string"?o=dA(r,i,n):F(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(Ls(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}return e.prototype.afterBrush=function(){this.__prevIdx=vA(this)},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=dA("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new j(0,0,0,0);function f(x){if(!(!x.isFinite()||x.isZero()))if(o.length===0){var S=new j(0,0,0,0);S.copy(x),o.push(S)}else{for(var b=!1,T=1/0,C=0,A=0;A<o.length;++A){var E=o[A];if(E.intersect(x)){var D=new j(0,0,0,0);D.copy(E),D.union(x),o[A]=D,b=!0;break}else if(l){u.copy(x),u.union(E);var O=x.width*x.height,M=E.width*E.height,I=u.width*u.height,R=I-O-M;R<T&&(T=R,C=A)}}if(l&&(o[C].union(x),b=!0),!b){var S=new j(0,0,0,0);S.copy(x),o.push(S)}l||(l=o.length>=s)}}for(var c=vA(this),p=c.startIdx;p<c.endIdx;++p){var h=r[p];if(h){var d=h.shouldBePainted(n,a,!0,!0),v=h.__isRendered&&(h.__dirty&qe||!d)?h.getPrevPaintRect():null;v&&f(v);var m=d&&(h.__dirty&qe||!h.__isRendered)?h.getPaintRect():null;m&&f(m)}}for(var g=this.__prevIdx,p=g.startIdx;p<g.endIdx;++p){var h=i[p],d=h&&h.shouldBePainted(n,a,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){var v=h.getPrevPaintRect();v&&f(v)}}var y;do{y=!1;for(var p=0;p<o.length;){if(o[p].isZero()){o.splice(p,1);continue}for(var _=p+1;_<o.length;)o[p].intersect(o[_])?(y=!0,o[p].union(o[_]),o.splice(_,1)):_++;p++}}while(y);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=i+"px"),a.width=r*n,a.height=i*n,s&&(s.width=r*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},e.prototype.clear=function(r,i,n){var a=this.dom,o=this.ctx,s=a.width,l=a.height;i=i||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,p=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,l/c));var h=this.domBack;function d(v,m,g,y){if(o.clearRect(v,m,g,y),i&&i!=="transparent"){var _=void 0;if(yi(i)){var x=i.global||i.__width===g&&i.__height===y;_=x&&i.__canvasGradient||zl(o,i,{x:0,y:0,width:g,height:y}),i.__canvasGradient=_,i.__width=g,i.__height=y}else Ih(i)&&(i.scaleX=i.scaleX||c,i.scaleY=i.scaleY||c,_=Vc(o,i,{dirty:function(){p.setUnpainted(),p.painter.refresh()}}));o.save(),o.fillStyle=_||i,o.fillRect(v,m,g,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,v,m,g,y),o.restore())}!n||u?d(0,0,s,l):n.length&&w(n,function(v){d(v.x*c,v.y*c,v.width*c,v.height*c)})},e})(vt),Ry=zB;var mA=1e5,Qa=314159,ky=void 0,FB=1,By=2;function VB(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function HB(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}function gA(t,e,r,i){var n=new Ry(t,e,e.dpr);return n.zlevel=r,n.zlevel2=i,n.__builtin__=!0,yA(n),n}function yA(t){t.__cursorStack=[],t.__cursors=V()}function GB(t){return t.startIdx=t.drawIdx=t.endIdx=t.endIdxNew=0,t.used=!1,t.first=t.last=NaN,t.notClearIdx=-1,t}function WB(t,e){var r=t.__cursors,i=+e;return r.get(i)||(t.__cursorStack.push(i),r.set(i,GB({key:i})))}function th(t,e){for(var r=t.__cursorStack,i=0;i<r.length;i++)e(t.__cursors.get(r[i]))}function Uy(t,e){var r=t.layers;return r[e]||(r[e]=new Array(3))}function At(t,e,r){for(var i=t.layerStack,n=0;n<i.length;n++){var a=i[n].zl,o=i[n].zl2,s=t.layers[a][o];(!r||(!(r&du)||s.__builtin__)&&(!(r&zy)||!s.__builtin__)&&(!(r&_A)||s!==t.hoverlayer))&&e(s,a,o,n)}}var du=1,zy=2,_A=4,rh=du|_A,YB=(function(){function t(e,r,i,n){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=i=N({},i||{}),this.dpr=i.devicePixelRatio||jn,this._singleCanvas=a,this.root=e;var o=e.style;if(o&&(Ls(e),e.innerHTML=""),this.storage=r,this._prevDisplayList=[],a){var l=e,u=l.width,f=l.height;i.width!=null&&(u=i.width),i.height!=null&&(f=i.height),this.dpr=i.devicePixelRatio||1,l.width=u*this.dpr,l.height=f*this.dpr,this._width=u,this._height=f;var c=gA(l,this,Qa,Po);c.initContext(),this._insertLayer(c,Qa,Po,!0),this._domRoot=e}else{this._width=Fl(e,0,i),this._height=Fl(e,1,i);var s=this._domRoot=HB(this._width,this._height);e.appendChild(s)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r;e&&!F(e)?r={paintAll:!!e}:r=e||{};var i=Y(r.refresh,!0),n=Y(r.refreshHover,!1);if(n&&(this._hoverLayerDirty=By),!i)return n&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var a=this.storage.getDisplayList(!0);this._updateLayerStatus(a,r.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(a,o,this._redrawId);var s=this._backgroundColor;return At(this._i,function(l,u,f,c){l.refresh&&l.refresh(c===0?s:null)},zy),this._opts.useDirtyRect&&(this._prevDisplayList=a.slice()),this},t.prototype._paintHoverList=function(e){var r=this._i.hoverlayer,i=this._hoverLayerDirty;if(this._hoverLayerDirty=ky,i!==ky&&(!r&&i===By&&(r=this._i.hoverlayer=this._ensureLayer(mA)),!!r)){r.clear();for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a,o=0,s=e.length;o<s;o++){var l=e[o];if(l.__inHover){a||(a=r.ctx,a.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),mn(a,l,n),u&&(l.style=f)}}a&&(Ha(a,n),a.restore())}},t.prototype.getHoverLayer=function(){return this._ensureLayer(mA)},t.prototype.paintOne=function(e,r){is(e,r)},t.prototype._paintList=function(e,r,i){if(this._redrawId===i){var n=this._doPaintList(e,r);if(this._needsManuallyCompositing&&this._compositeManually(),n)At(this._i,function(o){o.afterBrush&&o.afterBrush()},rh),this._paintHoverList(e);else{var a=this;Fs(function(){a._paintList(e,r,i)})}}},t.prototype._compositeManually=function(){var e=this._ensureLayer(Qa).ctx,r=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,r,i),At(this._i,function(n){n.virtual&&e.drawImage(n.dom,0,0,r,i)},du)},t.prototype._doPaintList=function(e,r){var i=this,n=!0;return At(this._i,function(a){var o=!1;if(th(a,function(c){(c.drawIdx<c.endIdx||c.notClearIdx>=0)&&(o=!0)}),!(!o&&!a.__dirty)){var s=i._opts.useDirtyRect&&!eh(a)?a.createRepaintRects(e,r,i._width,i._height):null,l=i._i.layerStack[0],u=!0;if(a.__dirty){u=!1,a.__dirty=!1;var f=a.zlevel===l.zl&&a.zlevel2===l.zl2?i._backgroundColor:null;a.clear(!1,f,s)}th(a,function(c){var p=i._paintPerCursor(a,c,e,s,u);n=n&&p})}},rh),ee.wxa&&At(this._i,function(a){a&&a.ctx&&a.ctx.draw&&a.ctx.draw()}),n},t.prototype._paintPerCursor=function(e,r,i,n,a){var o=e.ctx;if(n)if(!n.length)r.drawIdx=r.endIdx;else for(var s=this.dpr,l=0;l<n.length;++l){var u=n[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(e,r,i,u,a),o.restore()}else o.save(),this._paintPerCursorInRect(e,r,i,null,a),o.restore();return r.drawIdx>=r.endIdx},t.prototype._paintPerCursorInRect=function(e,r,i,n,a){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:a}},s=e.ctx,l=eh(e),u=l&&Re.getTime(),f=r.drawIdx,c=r.notClearIdx,p=c>=0?Math.min(c,f):f;p<r.endIdx;p++){var h=i[p];if(!(p<f&&!h.notClear)){if(h.__inHover&&(this._hoverLayerDirty=By),n!=null){var d=h.getPaintRect();d&&d.intersect(n)&&(mn(s,h,o),h.setPrevPaintRect(d))}else mn(s,h,o);if(l){var v=Re.getTime()-u;if(v>15){p++;break}}}}Ha(s,o),r.drawIdx=Math.max(p,f)},t.prototype.getLayer=function(e,r){return this._ensureLayer(e,0,r)},t.prototype._ensureLayer=function(e,r,i){r=r||0;var n=this._singleCanvas;n&&!this._needsManuallyCompositing&&(e=Qa,r=0);var a=Uy(this._i,e)[r];return a||(a=gA("zr_"+e+"."+r,this,e,r),this._layerConfig[e]&&ue(a,this._layerConfig[e],!0),(i||n&&e!==Qa)&&(a.virtual=!0),this._insertLayer(a,e,r,!1),a.initContext()),a},t.prototype.insertLayer=function(e,r){this._insertLayer(r,e,0,!1)},t.prototype._insertLayer=function(e,r,i,n){var a=this._i,o=a.layers,s=a.layerStack,l=this._domRoot,u=null;if(!(o[r]&&o[r][i])&&VB(e)){for(var f=s.length,c=0;c<f&&(s[c].zl<r||s[c].zl===r&&s[c].zl2<i);)c++;if(c>0&&(u=Uy(a,s[c-1].zl)[s[c-1].zl2]),s.splice(c,0,{zl:r,zl2:i}),Uy(a,r)[i]=e,!n&&!e.virtual)if(u){var p=u.dom;p.nextSibling?l.insertBefore(e.dom,p.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(e,r){return At(this._i,function(i,n){e.call(r,i,n)})},t.prototype.eachBuiltinLayer=function(e,r){return At(this._i,function(i,n){e.call(r,i,n)},du)},t.prototype.eachOtherLayer=function(e,r){return At(this._i,function(i,n){e.call(r,i,n)},zy)},t.prototype.getLayers=function(){var e={};return At(this._i,function(r,i,n){e[r.id]=r}),e},t.prototype._updateLayerStatus=function(e,r){var i=this;if(i._singleCanvas)for(var n=1;n<e.length;n++){var a=e[n];if(a.zlevel!==e[n-1].zlevel||a.incremental){i._needsManuallyCompositing=!0;break}}At(i._i,function(m){m.__dirty=!1,th(m,function(g){g.used=!1,g.endIdxNew=0,g.notClearIdx=-1})},rh);for(var o,s=null,l=null,u=!1,f=0,c=e.length;f<c;f++){var a=e[f],p=a.zlevel,h=a.incremental,d=void 0;if(o!==p&&(o=p,u=!1),h?(u=!0,d=AS):d=u?ES:Po,(!s||p!==s.zlevel||d!==s.zlevel2)&&(s=i._ensureLayer(p,d),l=null,!s.__builtin__)){Pn("ZLevel "+p+" has been used by unknown layer "+s.id);continue}if((!l||h!==l.key)&&(l=WB(s,h),!l.used))if(l.used=!0,!r&&l.first===a.id){var v=f-l.startIdx;l.startIdx=f,l.drawIdx+=v,l.endIdx+=v}else s.__dirty=!0,l.first=a.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;l.endIdxNew=f+1,a.__dirty&qe&&!a.__inHover&&((!h||!a.notClear&&f<l.drawIdx)&&(s.__dirty=!0),h&&a.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}At(i._i,function(m){for(var g=m.__cursorStack,y=m.__cursors,_=g.length-1;_>=0;_--){var x=y.get(g[_]);if(!x.used)m.__dirty=!0,y.removeKey(g[_]),g.splice(_,1);else{var S=x.endIdxNew;(eh(m)?S<x.drawIdx:S!==x.endIdx||!S||e[S-1].id!==x.last)&&(m.__dirty=!0),x.endIdx=x.endIdxNew,x.last=S?e[S-1].id:NaN}}m.__dirty&&(th(m,function(b){b.drawIdx=b.startIdx}),i._hoverLayerDirty===ky&&(i._hoverLayerDirty=FB))},rh)},t.prototype.clear=function(){return At(this._i,function(e){e.clear(),yA(e)},du),this},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,At(this._i,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var i=this._layerConfig;i[e]?ue(i[e],r,!0):i[e]=r,At(this._i,function(n,a){ue(n,i[a],!0)})}},t.prototype.delLayer=function(e){for(var r=this._i.layerStack,i=this._i.layers,n=r.length-1;n>=0;n--){var a=r[n];if(a.zl===e){var o=i[e][a.zl2];if(o.__builtin__)continue;if(r.splice(n,1),i[e][a.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},t.prototype.resize=function(e,r){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;e!=null&&(n.width=e),r!=null&&(n.height=r),e=Fl(a,0,n),r=Fl(a,1,n),i.style.display="",(this._width!==e||r!==this._height)&&(i.style.width=e+"px",i.style.height=r+"px",At(this._i,function(o){o.resize(e,r)}),this.refresh({paintAll:!0})),this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this._ensureLayer(Qa).resize(e,r)}return this},t.prototype.clearLayer=function(e){w(this._i.layers[e],function(r){r&&!r.__builtin__&&r.clear()})},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[Qa][0].dom;var r=new Ry("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var i=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var n=r.dom.width,a=r.dom.height;At(this._i,function(c){c.__builtin__?i.drawImage(c.dom,0,0,n,a):c.renderToCanvas&&(i.save(),c.renderToCanvas(i),i.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];mn(i,f,o)}Ha(i,o)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t})(),xA=YB;function Fy(t){t.registerPainter("canvas",xA)}Ut([Qg,uy,wy,Ay,Py,Fy]);var ih=Yg;var vu=require("react/jsx-runtime"),nh=["#3b82f6","#16a34a","#d97706","#dc2626","#7c3aed"],ah=t=>String(t).padStart(2,"0"),SA=t=>`${ah(new Date(t).getHours())}:${ah(new Date(t).getMinutes())}`;function ws(t){let e=getComputedStyle(t),r=(i,n)=>e.getPropertyValue(i).trim()||n;return{label:r("--dsw-alias-label-secondary","rgba(128,128,128,.95)"),axis:r("--dsw-alias-border-secondary","rgba(128,128,128,.35)"),split:r("--dsw-alias-border-tertiary","rgba(128,128,128,.18)"),surface:r("--dsw-alias-bg-layer-2","#fff")}}var Gy=new Set,bA=!1;function wA(){for(let t of[...Gy])try{t()}catch{}}function TA(t){if(!bA){bA=!0,globalThis.matchMedia?.("(prefers-color-scheme: dark)")?.addEventListener?.("change",wA);let e=globalThis.document?.documentElement;e&&new MutationObserver(wA).observe(e,{attributes:!0,attributeFilter:["class","data-theme"]})}return Gy.add(t),()=>Gy.delete(t)}function Vy(t,e,r){let i=r??t.find(a=>a.unit)?.unit??"",n=Math.max(1,Math.ceil(t.length/3));return{animation:!1,textStyle:{fontSize:11,color:e.label},tooltip:{trigger:"axis",confine:!0,backgroundColor:e.surface,borderColor:e.axis,textStyle:{fontSize:11,color:e.label},axisPointer:{type:"line",lineStyle:{color:e.label,width:1,type:"dashed"},label:{show:!1}},formatter:a=>{if(!a?.length)return"";let o=new Date(Number(a[0].axisValue));return`<div style="font-weight:600;margin-bottom:4px">${ah(o.getMonth()+1)}-${ah(o.getDate())} ${SA(o)}</div>`+a.map(l=>{let u=l.value?.[1],f=Number.isFinite(u)?`${Number(Number(u).toPrecision(4))}${i}`:"\u2014";return`<div style="display:flex;gap:8px;align-items:center;line-height:20px"><span style="width:8px;height:8px;border-radius:2px;background:${l.color}"></span><span style="flex:1">${l.seriesName}</span><b style="font-variant-numeric:tabular-nums">${f}</b></div>`}).join("")}},legend:{top:0,left:0,itemWidth:10,itemHeight:10,itemGap:12,icon:"roundRect",textStyle:{fontSize:11,color:e.label},width:"98%"},grid:{left:46,right:12,top:18+18*n,bottom:22,containLabel:!1},xAxis:{type:"time",axisLine:{lineStyle:{color:e.axis}},axisTick:{show:!1},axisLabel:{fontSize:10,color:e.label,formatter:SA,hideOverlap:!0},splitLine:{show:!1},axisPointer:{show:!0,label:{show:!1}}},yAxis:{type:"value",splitNumber:3,max:i==="%"?100:void 0,splitLine:{lineStyle:{color:e.split}},axisLabel:{fontSize:10,color:e.label,formatter:a=>`${a}${i}`,hideOverlap:!0}},series:t.map((a,o)=>{let s=nh[o%nh.length];return{name:a.name,type:"line",smooth:!1,showSymbol:!1,symbolSize:6,lineStyle:{width:1.5,color:s},itemStyle:{color:s},emphasis:{focus:"series"},data:a.points}})}}function Hy(t,e,r){return{animation:!1,textStyle:{fontSize:11,color:r.label},tooltip:{trigger:"axis",confine:!0,axisPointer:{type:"shadow"},backgroundColor:r.surface,borderColor:r.axis,textStyle:{fontSize:11,color:r.label}},legend:{top:0,left:0,itemWidth:10,itemHeight:10,itemGap:12,icon:"roundRect",textStyle:{fontSize:11,color:r.label}},grid:{left:8,right:12,top:e.length>1?30:12,bottom:6,containLabel:!0},yAxis:{type:"category",inverse:!0,data:t,axisLine:{lineStyle:{color:r.axis}},axisTick:{show:!1},axisLabel:{fontSize:10,color:r.label,width:96,overflow:"truncate"}},xAxis:{type:"value",splitNumber:3,axisLabel:{fontSize:10,color:r.label,hideOverlap:!0},splitLine:{lineStyle:{color:r.split}}},series:e.map((i,n)=>({name:i.name,type:"bar",barMaxWidth:14,itemStyle:{color:nh[n%nh.length],borderRadius:[0,2,2,0]},emphasis:{focus:"series"},data:i.data}))}}var XB=(t,e)=>Math.max(90,26+t.length*(e>1?10+8*e:20));function CA({categories:t,series:e}){let r=(0,jt.useRef)(null),i=(0,jt.useRef)(null),n=(0,jt.useRef)(void 0);return n.current={categories:t??[],series:e??[]},(0,jt.useEffect)(()=>{let a=r.current;if(!a)return;let o=ih.init(a);i.current=o,o.setOption(Hy(n.current.categories,n.current.series,ws(a)),!0);let s=new ResizeObserver(()=>i.current?.resize());return s.observe(a),()=>{s.disconnect(),o.dispose(),i.current=null}},[]),(0,jt.useEffect)(()=>{let a=r.current;!i.current||!a||i.current.setOption(Hy(t??[],e??[],ws(a)),!0)},[t,e]),(0,jt.useEffect)(()=>TA(()=>{let a=r.current,o=i.current;!a||!o||o.isDisposed?.()||o.setOption(Hy(n.current.categories,n.current.series,ws(a)),!0)}),[]),!t||t.length===0?(0,vu.jsx)("div",{className:"rnm-empty",children:"\u6682\u65E0\u53EF\u7ED8\u5236\u7684\u6570\u636E"}):(0,vu.jsx)("div",{ref:r,style:{width:"100%",height:XB(t,e?.length??1)}})}function oh({series:t,height:e=160,group:r,unit:i}){let n=(0,jt.useRef)(null),a=(0,jt.useRef)(null),o=(0,jt.useRef)(void 0);return o.current=t,(0,jt.useEffect)(()=>{let s=n.current;if(!s)return;let l=ih.init(s);a.current=l,r&&(l.group=r,ih.connect(r)),l.setOption(Vy(o.current??[],ws(s),i),!0);let u=new ResizeObserver(()=>a.current?.resize());return u.observe(s),()=>{u.disconnect(),l.dispose(),a.current=null}},[r,i]),(0,jt.useEffect)(()=>{let s=n.current;!a.current||!s||a.current.setOption(Vy(t??[],ws(s),i),!0)},[t,i]),(0,jt.useEffect)(()=>TA(()=>{let s=n.current,l=a.current;!s||!l||l.isDisposed?.()||l.setOption(Vy(o.current??[],ws(s),i),!0)}),[i]),!t||t.length===0?(0,vu.jsx)("div",{className:"rnm-empty",children:"\u6682\u65E0\u53EF\u7ED8\u5236\u7684\u6570\u636E"}):(0,vu.jsx)("div",{ref:n,style:{width:"100%",height:e}})}var Lr=require("react/jsx-runtime");function EA({columns:t,rows:e,total:r,dense:i=!1}){return!t||t.length===0||!e||e.length===0?(0,Lr.jsx)("div",{className:"rnm-empty",children:"\u8FD9\u6B21\u67E5\u8BE2\u6CA1\u6709\u8FD4\u56DE\u6570\u636E\u884C\u3002"}):(0,Lr.jsxs)("div",{className:"rnm-table-wrap",children:[(0,Lr.jsxs)("table",{className:`rnm-table${i?" rnm-table--dense":""}`,children:[(0,Lr.jsx)("thead",{children:(0,Lr.jsx)("tr",{children:t.map(n=>(0,Lr.jsx)("th",{children:n.label},n.key))})}),(0,Lr.jsx)("tbody",{children:e.map((n,a)=>(0,Lr.jsx)("tr",{children:n.map((o,s)=>(0,Lr.jsx)("td",{style:{textAlign:o.align},children:o.text},s))},a))})]}),typeof r=="number"&&r>e.length?(0,Lr.jsxs)("div",{className:"rnm-sub",children:["\u5171 ",r," \u884C\uFF0C\u663E\u793A\u524D ",e.length," \u884C"]}):void 0]})}var mu=require("react/jsx-runtime");function sh({view:t,height:e=160,group:r}){return t?t.kind==="table"?(0,mu.jsx)(EA,{columns:t.columns,rows:t.rows,total:t.total,dense:!!r}):t.kind==="bar"?(0,mu.jsx)(CA,{categories:t.categories,series:t.series}):(0,mu.jsx)(oh,{series:t.series,height:e,group:r,unit:t.series?.[0]?.unit}):(0,mu.jsx)("div",{className:"rnm-empty",children:"\u6682\u65E0\u6570\u636E"})}function AA(t){return t?t.kind==="table"?!t.rows||t.rows.length===0:t.kind==="bar"?!t.categories||t.categories.length===0:!t.series||t.series.length===0:!0}var je=require("react/jsx-runtime"),DA=new Set;function Ja({size:t=14,children:e,...r}){for(let i of Object.keys(r))!i.startsWith("aria-")||DA.has(i)||(DA.add(i),console.warn(`[dsh-runnpu] <Icon> ignores ${i}: icons are aria-hidden by construction. Put the accessible name on the surrounding control, or in a visually hidden span next to the icon.`));return(0,je.jsx)("svg",{width:t,height:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",style:{flex:"none",display:"block"},children:e})}function lh(t){return(0,je.jsx)(Ja,{...t,children:(0,je.jsx)("path",{d:"M4 6.5 8 10.5 12 6.5"})})}function uh(t){return(0,je.jsx)(Ja,{...t,children:(0,je.jsx)("path",{d:"M4 9.5 8 5.5 12 9.5"})})}function fh(t){return(0,je.jsx)(Ja,{...t,children:(0,je.jsx)("path",{d:"M4 4 12 12M12 4 4 12"})})}function MA(t){return(0,je.jsx)(Ja,{...t,children:(0,je.jsx)("path",{d:"M3.5 8.5 6.5 11.5 12.5 5"})})}function OA(t){return(0,je.jsxs)(Ja,{...t,children:[(0,je.jsx)("path",{d:"M9 3.5h3.5V7"}),(0,je.jsx)("path",{d:"M12.5 3.5 7.5 8.5"}),(0,je.jsx)("path",{d:"M12 10v2.5H3.5V4H6"})]})}function IA(t){return(0,je.jsxs)(Ja,{...t,children:[(0,je.jsx)("path",{d:"M3 6.5h7.5A2.5 2.5 0 0 1 10.5 11.5H4"}),(0,je.jsx)("path",{d:"M5 4.5 3 6.5 5 8.5"})]})}function ch(t){return(0,je.jsxs)(Ja,{...t,children:[(0,je.jsx)("path",{d:"M13 8a5 5 0 1 1-1.6-3.7"}),(0,je.jsx)("path",{d:"M13 3v3h-3"})]})}var $t=require("react/jsx-runtime");function qB(t){let e=("kind"in t?t.call?.argsRaw:t.argsRaw)??"";try{return e?JSON.parse(e):{}}catch{return{}}}function LA({callId:t,block:e,sessionId:r,useSessions:i}){let[n,a]=(0,gu.useState)("idle"),[o,s]=(0,gu.useState)(void 0),l=i(v=>r?v?.byId?.[r]?.title:void 0),u="kind"in e,f=e.meta??e.resultView,c=u&&f?.card==="runnpu-chart"?f:void 0,p=qB(e),h=(0,gu.useCallback)(async()=>{if(c){a("busy"),s(void 0);try{let v=await it.pin({title:c.title,query:c.query,params:c.params,series:p.series,view:c.spec,sessionId:r,question:l,note:c.note??"\u5728\u5BF9\u8BDD\u4E2D\u70B9\u51FB\u300C\u56FA\u5B9A\u5230\u53F3\u680F\u300D"});a(v?.duplicate?"already":"done")}catch(v){a("idle"),s(v?.message??String(v))}}},[c,p.series,r,l]);if(!u)return(0,$t.jsxs)("div",{className:"rnm-sub",children:["\u6B63\u5728\u53D6\u6570\u5E76\u7ED8\u5236\u300C",p.title??"\u96C6\u7FA4\u89C6\u56FE","\u300D\u2026"]});if(e.isError)return(0,$t.jsxs)("div",{className:"rnm-err",children:["\u56FE\u8868\u751F\u6210\u5931\u8D25\uFF1A",p.title??""]});if(!c)return;let d=AA(c.view);return(0,$t.jsxs)("section",{className:"rnm-card","data-call":t,children:[(0,$t.jsxs)("div",{className:"rnm-card-head",children:[(0,$t.jsx)("span",{className:"rnm-title rnm-ellipsis",children:c.title}),(0,$t.jsxs)("button",{className:"rnm-btn rnm-btn--icon-text",type:"button",onClick:h,disabled:n!=="idle"||d,title:d?"\u6CA1\u6709\u6570\u636E\u53EF\u56FA\u5B9A":"\u56FA\u5B9A\u5230\u53F3\u680F\uFF0C\u4E4B\u540E\u81EA\u52A8\u5237\u65B0",children:[n==="done"||n==="already"?(0,$t.jsx)(MA,{}):void 0,n==="done"?"\u5DF2\u56FA\u5B9A":n==="already"?"\u53F3\u680F\u5DF2\u6709":n==="busy"?"\u56FA\u5B9A\u4E2D\u2026":"\u56FA\u5B9A\u5230\u53F3\u680F"]})]}),d?(0,$t.jsx)("div",{className:"rnm-empty",children:"\u8FD9\u6B21\u67E5\u8BE2\u6CA1\u6709\u8FD4\u56DE\u53EF\u7ED8\u5236\u7684\u6570\u636E\u3002"}):(0,$t.jsx)(sh,{view:c.view,height:180}),c.note?(0,$t.jsx)("div",{className:"rnm-sub",children:c.note}):void 0,(0,$t.jsxs)("div",{className:"rnm-sub rnm-mono",children:[c.query,c.view?.source?` \xB7 ${c.view.source}`:"",c.params?.group?` \xB7 ${c.params.group}`:"",c.params?.range?` \xB7 ${c.params.range}`:""]}),o?(0,$t.jsxs)("div",{className:"rnm-err",children:["\u56FA\u5B9A\u5931\u8D25\uFF1A",o]}):void 0]})}var Dt=require("react");function ph(t){return t?.projectionValues?.agentPreset??t?.agentPreset}function Ts(t,e){return t(r=>e?ph(r?.byId?.[e]):void 0)}function NA(t){return t(e=>{let r=e?.current;return r?ph(e?.byId?.[r]):void 0})}function hh(t,e){return t(r=>e?r?.items?.find(n=>n.sessionIds?.includes(e))?.path:void 0)}var KB=["utilization","allocation","storage","workloads"],ZB={cpu:{label:"CPU \u5229\u7528\u7387",unit:"%",rows:[["cpu_pct","CPU \u5229\u7528\u7387"]]},memory:{label:"\u5185\u5B58\u5229\u7528\u7387",unit:"%",rows:[["memory_pct","\u5185\u5B58\u5229\u7528\u7387"]]},net:{label:"\u7F51\u7EDC\u541E\u5410",unit:"B/s",rows:[["net_rx_bps","\u63A5\u6536"],["net_tx_bps","\u53D1\u9001"]]},disk:{label:"\u78C1\u76D8\u541E\u5410",unit:"B/s",rows:[["disk_read_bps","\u8BFB"],["disk_write_bps","\u5199"]]}},jB=240;function $B(t,e){if(t==="workload.metrics"){let i={};for(let n of e?.groups??[])i[n.key]={label:n.title??n.key,unit:n.unit,rows:n.series??[]};return i}if(t==="node.metrics"){let i={};for(let[n,a]of Object.entries(ZB)){let o=a.rows.filter(([s])=>Array.isArray(e?.[s])).map(([s,l])=>({key:s,label:l,unit:a.unit,data:e[s]}));o.length>0&&(i[n]={label:a.label,unit:a.unit,rows:o})}return i}let r={};for(let i of KB)Array.isArray(e?.[i])&&(r[i]={label:i,unit:e[i][0]?.unit,rows:e[i]});return r}function PA(t,e={}){let r=e.query??"overview.trends",i=t?.timestamps;if(!Array.isArray(i))return{series:[],note:"\u8BE5\u67E5\u8BE2\u6CA1\u6709\u65F6\u95F4\u8F74\uFF0C\u65E0\u6CD5\u753B\u6210\u66F2\u7EBF"};let n=$B(r,t),a=Object.keys(n);if(a.length===0)return{series:[],note:"\u8FD9\u6B21\u54CD\u5E94\u91CC\u6CA1\u6709\u4EFB\u4F55\u53EF\u7ED8\u5236\u7684\u6307\u6807\u7EC4"};let o=e.group??a[0],s=n[o]??n[a[0]],l=n[o]===void 0,u=i.map(d=>new Date(d).getTime()),f=e.series?.length?new Set(e.series):void 0,c=Math.max(1,Math.ceil(u.length/jB)),p=(s.rows??[]).filter(d=>f?f.has(d.key):!0).slice(0,5).map(d=>({key:d.key,name:d.label??d.key,unit:d.unit??s.unit,points:(d.data??[]).map((v,m)=>[u[m],v]).filter((v,m)=>m%c===0).filter(([v])=>Number.isFinite(v)).map(([v,m])=>[v,typeof m=="number"&&Number.isFinite(m)?m:null])})),h=[];return l&&h.push(`\u6CA1\u6709 ${o} \u8FD9\u4E00\u7EC4\uFF0C\u753B\u7684\u662F ${a[0]}\uFF08\u53EF\u7528\uFF1A${a.join(" / ")}\uFF09`),t?.metrics?.available===!1&&h.push(`\u6307\u6807\u6E90\u672A\u63A5\u5165\uFF08${t.metrics.reason??"\u539F\u56E0\u672A\u7ED9\u51FA"}\uFF09\uFF0C\u8FD9\u7EC4\u66F2\u7EBF\u6CA1\u6709\u6570\u636E`),{series:p,group:n[o]?o:a[0],note:h.length>0?h.join("\uFF1B"):void 0}}var QB=["line","area","bar","table"],Yy={projects:{items:{label:"\u9879\u76EE",at:t=>t?.items},usage:{label:"\u9879\u76EE \xD7 \u8D44\u6E90\u6C60 \u7528\u91CF",at:t=>Wy(t,"usage",JB)},storage:{label:"\u9879\u76EE \xD7 \u5B58\u50A8\u6C60 \u7528\u91CF",at:t=>Wy(t,"storage",eU)},queues:{label:"\u9879\u76EE\u961F\u5217\u51C6\u5165",at:t=>Wy(t,"queues",tU)}},workloads:{items:{label:"\u8D1F\u8F7D",at:t=>t?.items}},nodes:{items:{label:"\u8282\u70B9",at:t=>t?.items}},cluster:{items:{label:"\u96C6\u7FA4\u7EC4\u4EF6",at:t=>t?.items}},overview:{projects:{label:"\u9879\u76EE\u914D\u989D\u4E0E\u7528\u91CF",at:t=>t?.projects},idle:{label:"\u95F2\u7F6E\u5360\u7528",at:t=>t?.idle},queued:{label:"\u6392\u961F\u8D1F\u8F7D",at:t=>t?.queued},nodes:{label:"\u8282\u70B9",at:t=>t?.nodes}}},aee=Object.fromEntries(Object.entries(Yy).map(([t,e])=>[t,Object.entries(e).map(([r,i])=>({key:r,label:i.label}))]));function Wy(t,e,r){let i=[];for(let n of t?.items??[])for(let a of n?.cluster?.[e]??[])i.push({project:n.slug,project_name:n.name,...r(a)});return i}function JB(t){let e=t?.guaranteed??0,r=t?.used??0;return{pool:t?.pool,device_type:t?.device_type,guaranteed:e,used:r,over_guarantee:r-e}}function eU(t){let e=t?.limit_gib??0,r=t?.remaining_gib,i=typeof r=="number"&&e>0?e-r:void 0;return{pool:t?.pool,limit_gib:t?.limit_gib,persistent_gib:t?.persistent_gib,runtime_gib:t?.runtime_gib,remaining_gib:r,used_gib:i,used_pct:i===void 0||e<=0?void 0:Math.round(i/e*1e3)/10}}function tU(t){return{queue:t?.name,pool:t?.pool,admitted:t?.admitted,reason:t?.reason}}function rU(t,e,r){if(t==="overview"&&e==="idle"){let i=r?.workload;return{workload:typeof i=="string"?i:`${i?.project??"?"}/${i?.name??"?"}`,type:typeof i=="object"?i?.display_type:void 0,idle_cards:r?.idle_cards,idle_hours:r?.idle_seconds===void 0?void 0:Math.round(r.idle_seconds/3600*10)/10,source:r?.source}}return r}var iU={"workloads/items":["project","name","status","xpu_count","pods_ready","pods_total","pool"],"overview/queued":["project","name","xpu_count","pool","created_at"],"overview/projects":["slug","quota_cards","used_cards","running","queued"],"overview/idle":["workload","idle_cards","idle_hours","source"],"overview/nodes":["name","status","cards_total","cards_allocated","cards_free"],"nodes/items":["name","status","pool","cards_total","cards_allocated","cards_free","avg_util"],"projects/items":["slug","name","member_count","created_at"],"projects/usage":["project","pool","guaranteed","used","over_guarantee"],"projects/storage":["project","pool","limit_gib","used_gib","used_pct","remaining_gib"],"projects/queues":["project","queue","pool","admitted","reason"],"cluster/items":["name","status","ready","total","version"]};var RA={project:"\u9879\u76EE",project_name:"\u9879\u76EE\u540D",slug:"\u9879\u76EE",name:"\u540D\u79F0",workload:"\u8D1F\u8F7D",status:"\u72B6\u6001",phase:"\u9636\u6BB5",pool:"\u8D44\u6E90\u6C60",type:"\u7C7B\u578B",display_type:"\u7C7B\u578B",xpu_count:"\u5361\u6570",quota_cards:"\u914D\u989D(\u5361)",used_cards:"\u5DF2\u7528(\u5361)",running:"\u8FD0\u884C",queued:"\u6392\u961F",idle_cards:"\u95F2\u7F6E(\u5361)",idle_hours:"\u95F2\u7F6E(\u5C0F\u65F6)",source:"\u5224\u5B9A\u6765\u6E90",pods_ready:"\u5C31\u7EEA Pod",pods_total:"\u603B Pod",member_count:"\u6210\u5458\u6570",cards_total:"\u603B\u5361",cards_allocated:"\u5DF2\u5206\u914D",cards_free:"\u7A7A\u95F2",cards_healthy:"\u5065\u5EB7",cards_allocatable:"\u53EF\u5206\u914D",avg_util:"\u5E73\u5747\u5229\u7528\u7387",cpu_cores:"CPU \u6838",ready:"\u5C31\u7EEA",total:"\u603B\u6570",version:"\u7248\u672C",arch:"\u67B6\u6784",os:"\u7CFB\u7EDF",guaranteed:"\u4FDD\u5E95(\u5361)",used:"\u5B9E\u9645\u7528(\u5361)",over_guarantee:"\u8D85\u51FA\u4FDD\u5E95",limit_gib:"\u914D\u989D(GiB)",used_gib:"\u5DF2\u7528(GiB)",used_pct:"\u5DF2\u7528\u6BD4\u4F8B",remaining_gib:"\u5269\u4F59(GiB)",persistent_gib:"\u6301\u4E45(GiB)",runtime_gib:"\u8FD0\u884C\u65F6(GiB)",queue:"\u961F\u5217",admitted:"\u5DF2\u51C6\u5165",reason:"\u539F\u56E0",created_at:"\u521B\u5EFA\u65F6\u95F4",admitted_at:"\u51C6\u5165\u65F6\u95F4",started_at:"\u5F00\u59CB\u65F6\u95F4",last_activity_at:"\u6700\u8FD1\u6D3B\u52A8",updated_at:"\u66F4\u65B0\u65F6\u95F4",internal_ip:"\u5185\u7F51 IP",owner_name:"\u6240\u6709\u8005",image:"\u955C\u50CF",device_type:"\u8BBE\u5907\u578B\u53F7",chip_model:"\u82AF\u7247"},nU=t=>t===null||["string","number","boolean"].includes(typeof t);function aU(t,e){if(e==null||e==="")return{text:"\u2014",align:"right"};if(typeof e=="boolean")return{text:e?"\u662F":"\u5426",align:"center"};if(typeof e=="number")return t.endsWith("_bytes")?{text:oU(e),align:"right"}:t.endsWith("_pct")||t==="avg_util"?{text:`${Number(e.toPrecision(3))}%`,align:"right"}:{text:String(Number(e.toPrecision(6))),align:"right"};if(t.endsWith("_at")&&/^\d{4}-\d{2}-\d{2}T/.test(e)){let r=new Date(e);if(Number.isFinite(r.getTime())){let i=n=>String(n).padStart(2,"0");return{text:`${i(r.getMonth()+1)}-${i(r.getDate())} ${i(r.getHours())}:${i(r.getMinutes())}`,align:"right"}}}return{text:String(e),align:"left"}}function oU(t){let e=["B","KiB","MiB","GiB","TiB"],r=t,i=0;for(;Math.abs(r)>=1024&&i<e.length-1;)r/=1024,i+=1;return`${Number(r.toPrecision(3))} ${e[i]}`}function sU(t,e,r){let i=Yy[t];if(!i)return;let n=r&&i[r]?r:Object.keys(i)[0],a=i[n]?.at(e);if(Array.isArray(a))return{source:n,rows:a.map(o=>rU(t,n,o))}}function lU(t){let e=[];for(let r of t.slice(0,20))for(let[i,n]of Object.entries(r??{}))nU(n)&&!e.includes(i)&&e.push(i);return e}function uU(t,e,r,i){let n=new Set(r),a=Array.isArray(i)?i:[],o=a.filter(u=>!n.has(u)),s=a.filter(u=>n.has(u));if(s.length>0)return{columns:s,dropped:o};let l=iU[`${t}/${e}`];if(l){let u=l.filter(f=>n.has(f));if(u.length>0)return{columns:u,dropped:o}}return{columns:r.slice(0,8),dropped:o}}var fU=50,cU=t=>Number.isFinite(t)?Math.max(1,Math.min(200,t)):fU;function pU(t,e,r){if(!e)return t;let i=r===!1?1:-1;return[...t].sort((n,a)=>{let o=n?.[e],s=a?.[e];return typeof o=="number"&&typeof s=="number"?(o-s)*i:String(o??"").localeCompare(String(s??""))*i})}function kA(t,e,r={}){let i=QB.includes(r.kind)?r.kind:"line";if(i==="line"||i==="area"){let v=PA(e,{query:t,group:r.group,series:r.series});return{kind:i,series:v.series,group:v.group,note:v.note}}let n=sU(t,e,r.source);if(!n){let v=Object.keys(Yy).join(" / ");return{kind:i,columns:[],rows:[],note:`${t} \u6CA1\u6709\u53EF\u5217\u8868\u5316\u7684\u6570\u636E\uFF08\u652F\u6301\uFF1A${v}\uFF09`}}let{source:a,rows:o}=n;if(o.length===0)return{kind:i,source:a,columns:[],rows:[],note:"\u8FD9\u6B21\u67E5\u8BE2\u6CA1\u6709\u8FD4\u56DE\u4EFB\u4F55\u884C"};let s=cU(r.limit),l=pU(o,r.sort,r.desc),u=l.slice(0,s),f=l.length>u.length?l.length-u.length:0,c=[];f>0&&c.push(`\u53EA\u663E\u793A\u524D ${u.length} \u884C\uFF0C\u53E6\u6709 ${f} \u884C\u672A\u663E\u793A`);let p=lU(o);if(r.sort&&!p.includes(r.sort)&&c.push(`\u6CA1\u6709 ${r.sort} \u8FD9\u4E00\u5217\uFF0C\u6392\u5E8F\u6CA1\u6709\u751F\u6548\uFF08\u53EF\u7528\uFF1A${p.join(" / ")}\uFF09`),i==="bar"){let v=p.filter(S=>o.slice(0,20).some(b=>typeof b?.[S]=="number")),m=r.dimension&&p.includes(r.dimension)?r.dimension:["slug","name","workload","project"].find(S=>p.includes(S))??p[0],g=Array.isArray(r.measures)?r.measures:[],y=g.filter(S=>v.includes(S)),_=g.filter(S=>!v.includes(S)),x=y.length>0?y.slice(0,5):v.slice(0,2);return x.length===0?{kind:i,source:a,categories:[],series:[],note:"\u8FD9\u7EC4\u6570\u636E\u91CC\u6CA1\u6709\u53EF\u7528\u4F5C\u67F1\u9AD8\u7684\u6570\u503C\u5217"}:(_.length>0&&c.push(`\u6CA1\u6709 ${_.join("/")} \u8FD9\u4E9B\u6570\u503C\u5217\uFF0C\u753B\u7684\u662F ${x.join("/")}\uFF08\u53EF\u7528\uFF1A${v.join(" / ")}\uFF09`),{kind:i,source:a,categories:u.map(S=>String(S?.[m]??"\u2014")),series:x.map(S=>({key:S,name:RA[S]??S,data:u.map(b=>typeof b?.[S]=="number"?b[S]:null)})),dimension:m,note:c.length>0?c.join("\uFF1B"):void 0})}let{columns:h,dropped:d}=uU(t,a,p,r.columns);return d.length>0&&c.push(`\u6CA1\u6709 ${d.join("/")} \u8FD9\u4E9B\u5217\uFF0C\u663E\u793A\u7684\u662F ${h.join("/")}\uFF08\u53EF\u7528\uFF1A${p.join(" / ")}\uFF09`),{kind:"table",source:a,columns:h.map(v=>({key:v,label:RA[v]??v})),rows:u.map(v=>h.map(m=>{let g=aU(m,v?.[m]);return{text:g.text,align:g.align}})),total:o.length,note:c.length>0?c.join("\uFF1B"):void 0}}function Xy(t){return{kind:"line",...t?.view??{}}}var to=require("react");function dh(t){let e=t,r=new Set;return{get:()=>e,set(i){if(!Object.is(i,e)){e=i;for(let n of[...r])try{n(e)}catch{}}},subscribe(i){return r.add(i),()=>r.delete(i)}}}var eo=dh(void 0),qy=dh(void 0),see=dh(void 0),Qt={compute:"compute",training:"training"},vh={[Qt.compute]:["\u73B0\u5728\u96C6\u7FA4\u6574\u4F53\u662F\u4EC0\u4E48\u72B6\u51B5\uFF1F\u6709\u6CA1\u6709\u5F02\u5E38\uFF1F","\u8C01\u5360\u4E86\u6700\u591A\u7684\u5361\uFF1F\u6709\u6CA1\u6709\u5360\u7740\u4E0D\u7528\u7684\uFF1F","\u5404\u9879\u76EE\u7684\u914D\u989D\u7528\u4E86\u591A\u5C11\uFF1F\u8FD8\u591F\u4E0D\u591F\u5206\uFF1F","\u5E2E\u6211\u62C9\u8D77\u4E00\u4E2A\u5F00\u53D1\u73AF\u5883","\u628A\u95F2\u7F6E\u8D85\u8FC7 2 \u5C0F\u65F6\u7684\u8D1F\u8F7D\u5217\u51FA\u6765\uFF0C\u6211\u51B3\u5B9A\u505C\u54EA\u4E9B","\u518D\u6765 3 \u4E2A\u4EBA\u505A\u5FAE\u8C03\uFF0C\u73B0\u5728\u7684\u5361\u591F\u4E0D\u591F\uFF1F"],[Qt.training]:["\u770B\u4E00\u4E0B\u8FD9\u4E2A\u76EE\u5F55\u91CC\u7684\u8BAD\u7EC3\u5DE5\u7A0B\uFF0C\u5173\u952E\u6307\u6807\u5E94\u8BE5\u76EF\u54EA\u51E0\u4E2A\uFF1F","\u8FD9\u6B21\u8BAD\u7EC3\u8981\u7528\u4EC0\u4E48\u914D\u7F6E\uFF1F\u5148\u8BF4\u65B9\u6848\uFF0C\u6211\u786E\u8BA4\u540E\u518D\u63D0\u4EA4\u3002","\u524D\u51E0\u6B21\u8BAD\u7EC3\u90FD\u8BD5\u4E86\u4EC0\u4E48\uFF1F\u4E0B\u4E00\u6B65\u5EFA\u8BAE\u600E\u4E48\u8C03\uFF1F"]},yu=dh(void 0);function mh(t){let e=i=>{!i||yu.get()!==i||(yu.set(void 0),t(i))},r=yu.subscribe(e);return e(yu.get()),r}function BA(t){typeof t=="string"&&t.trim()!==""&&yu.set(t.trim())}var Nr=require("react/jsx-runtime");function UA({cwd:t,connected:e,refreshMs:r=6e4}){let[i,n]=(0,to.useState)(void 0),[a,o]=(0,to.useState)(!1),s=(0,to.useCallback)(async()=>{if(e)try{let u=await it.anomalies(t);n(u?.findings??[])}catch{n(void 0)}},[t,e]);if((0,to.useEffect)(()=>{s();let u=setInterval(s,r);return()=>clearInterval(u)},[s,r]),!e||i===void 0||i.length===0)return;let l=i.filter(u=>u.severity==="high").length;return(0,Nr.jsxs)("section",{className:"rnm-card",children:[(0,Nr.jsxs)("div",{className:"rnm-card-head",children:[(0,Nr.jsxs)("span",{className:"rnm-title rnm-grow",children:["\u9700\u8981\u6CE8\u610F ",i.length,l>0?(0,Nr.jsxs)("span",{className:"rnm-badge",children:[l," \u91CD\u8981"]}):void 0]}),(0,Nr.jsx)("button",{className:"rnm-btn rnm-btn--ghost rnm-icon-btn",type:"button",onClick:()=>o(u=>!u),"aria-label":a?"\u5C55\u5F00\u5F02\u5E38\u5217\u8868":"\u6536\u8D77\u5F02\u5E38\u5217\u8868","aria-expanded":!a,children:a?(0,Nr.jsx)(uh,{}):(0,Nr.jsx)(lh,{})})]}),a?void 0:i.slice(0,6).map(u=>(0,Nr.jsxs)("button",{type:"button",className:`rnm-finding rnm-finding--${u.severity}`,onClick:()=>BA(`${u.subject}\uFF1A${u.detail.split("\u3002")[0]}\u3002\u8FD9\u4E2A\u8BE5\u600E\u4E48\u5904\u7406\uFF1F`),title:"\u5728\u5BF9\u8BDD\u91CC\u8FFD\u95EE\u8FD9\u4E00\u6761",children:[(0,Nr.jsx)("span",{className:"rnm-finding-subject rnm-mono",children:u.subject}),(0,Nr.jsx)("span",{className:"rnm-sub",children:u.detail})]},`${u.kind}:${u.subject}`))]})}var zt=require("react"),J=require("react/jsx-runtime"),hU={connected:"connected",unauthenticated:"warn",unconfigured:"idle",unreachable:"error",error:"error"},dU={connected:"\u5DF2\u8FDE\u63A5",unauthenticated:"\u672A\u767B\u5F55",unconfigured:"\u672A\u914D\u7F6E",unreachable:"\u65E0\u6CD5\u8FDE\u901A",error:"\u8FDE\u63A5\u5F02\u5E38"};function An({label:t,health:e}){let r=e?.state??"unconfigured";return(0,J.jsxs)("div",{className:"rnm-row",children:[(0,J.jsx)("span",{className:`rnm-dot rnm-dot--${hU[r]??"idle"}`}),(0,J.jsx)("span",{className:"rnm-title",children:t}),(0,J.jsx)("span",{className:"rnm-sub",children:dU[r]??r}),e?.reason?(0,J.jsx)("span",{className:"rnm-sub rnm-grow rnm-ellipsis",children:e.reason}):void 0]})}function gh({defaultServer:t,cwd:e,onSubmit:r,busy:i}){let[n,a]=(0,zt.useState)(t??""),[o,s]=(0,zt.useState)(""),[l,u]=(0,zt.useState)(""),[f,c]=(0,zt.useState)("global"),[p,h]=(0,zt.useState)(void 0),d=(0,zt.useCallback)(async v=>{v.preventDefault(),h(void 0);try{await r({server:n.trim(),email:o.trim(),password:l,scope:f,cwd:e}),u("")}catch(m){h(m?.message??String(m))}},[n,o,l,f,e,r]);return(0,J.jsxs)("form",{className:"rnm-card",onSubmit:d,children:[(0,J.jsx)("div",{className:"rnm-title",children:"\u8FDE\u63A5 RunNPU"}),(0,J.jsxs)("div",{className:"rnm-field",children:[(0,J.jsx)("label",{className:"rnm-label",htmlFor:"rnm-server",children:"\u767B\u5F55\u5730\u5740"}),(0,J.jsx)("input",{id:"rnm-server",className:"rnm-input",value:n,placeholder:"https://runnpu.example.com",onChange:v=>a(v.target.value),autoComplete:"url"})]}),(0,J.jsxs)("div",{className:"rnm-field",children:[(0,J.jsx)("label",{className:"rnm-label",htmlFor:"rnm-email",children:"\u8D26\u53F7"}),(0,J.jsx)("input",{id:"rnm-email",className:"rnm-input",value:o,placeholder:"you@example.com",onChange:v=>s(v.target.value),autoComplete:"username"})]}),(0,J.jsxs)("div",{className:"rnm-field",children:[(0,J.jsx)("label",{className:"rnm-label",htmlFor:"rnm-password",children:"\u5BC6\u7801"}),(0,J.jsx)("input",{id:"rnm-password",className:"rnm-input",type:"password",value:l,onChange:v=>u(v.target.value),autoComplete:"current-password"})]}),e?(0,J.jsxs)("div",{className:"rnm-field",children:[(0,J.jsx)("label",{className:"rnm-label",htmlFor:"rnm-scope",children:"\u4FDD\u5B58\u4F4D\u7F6E"}),(0,J.jsxs)("select",{id:"rnm-scope",className:"rnm-input",value:f,onChange:v=>c(v.target.value),children:[(0,J.jsx)("option",{value:"global",children:"\u5168\u5C40\uFF08\u6240\u6709\u9879\u76EE\u5171\u7528\uFF09"}),(0,J.jsx)("option",{value:"project",children:"\u5F53\u524D\u9879\u76EE .train/secrets.json"})]})]}):void 0,(0,J.jsx)("div",{className:"rnm-sub",children:"\u5BC6\u7801\u53EA\u7528\u4E8E\u6362\u53D6\u957F\u671F API Token\uFF0C\u4E0D\u4F1A\u4FDD\u5B58\u3001\u4E0D\u4F1A\u8FDB\u5165\u5BF9\u8BDD\u8BB0\u5F55\u3002"}),p?(0,J.jsx)("div",{className:"rnm-err",children:p}):void 0,(0,J.jsx)("div",{className:"rnm-row",children:(0,J.jsx)("button",{className:"rnm-btn rnm-btn--primary",type:"submit",disabled:i,children:i?"\u767B\u5F55\u4E2D\u2026":"\u767B\u5F55"})})]})}function yh({current:t,cwd:e,onSubmit:r,busy:i}){let[n,a]=(0,zt.useState)(t?.mode??"cloud"),[o,s]=(0,zt.useState)(t?.apiHost??""),[l,u]=(0,zt.useState)(t?.webHost??""),[f,c]=(0,zt.useState)(""),[p,h]=(0,zt.useState)(e?"project":"global"),[d,v]=(0,zt.useState)(void 0),m=(0,zt.useCallback)(async g=>{g.preventDefault(),v(void 0);try{await r({mode:n,apiHost:o.trim(),webHost:l.trim(),apiKey:f,scope:p,cwd:e}),c("")}catch(y){v(y?.message??String(y))}},[n,o,l,f,p,e,r]);return(0,J.jsxs)("form",{className:"rnm-card",onSubmit:m,children:[(0,J.jsx)("div",{className:"rnm-title",children:"SwanLab \u90E8\u7F72"}),(0,J.jsxs)("div",{className:"rnm-field",children:[(0,J.jsx)("label",{className:"rnm-label",htmlFor:"rnm-sl-mode",children:"\u90E8\u7F72\u5F62\u6001"}),(0,J.jsxs)("select",{id:"rnm-sl-mode",className:"rnm-input",value:n,onChange:g=>a(g.target.value),children:[(0,J.jsx)("option",{value:"cloud",children:"\u4E91\u7AEF swanlab.cn"}),(0,J.jsx)("option",{value:"self-hosted",children:"\u79C1\u6709\u90E8\u7F72"})]})]}),n==="self-hosted"?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)("div",{className:"rnm-field",children:[(0,J.jsx)("label",{className:"rnm-label",htmlFor:"rnm-sl-api",children:"API \u5730\u5740"}),(0,J.jsx)("input",{id:"rnm-sl-api",className:"rnm-input",value:o,placeholder:"https://swanlab.\u5185\u7F51\u57DF\u540D",onChange:g=>s(g.target.value)})]}),(0,J.jsxs)("div",{className:"rnm-field",children:[(0,J.jsx)("label",{className:"rnm-label",htmlFor:"rnm-sl-web",children:"Web \u9762\u677F\u5730\u5740"}),(0,J.jsx)("input",{id:"rnm-sl-web",className:"rnm-input",value:l,placeholder:"\u7559\u7A7A\u5219\u4E0E API \u5730\u5740\u76F8\u540C",onChange:g=>u(g.target.value)})]}),(0,J.jsx)("div",{className:"rnm-sub",children:"\u4E24\u4E2A\u5730\u5740\u662F\u5206\u5F00\u7684\uFF1AAPI \u7528\u4E8E SDK \u4E0A\u62A5\uFF0CWeb \u7528\u4E8E\u62FC\u7ED9\u4F60\u70B9\u5F00\u7684\u5B9E\u9A8C\u94FE\u63A5\u3002"})]}):void 0,(0,J.jsxs)("div",{className:"rnm-field",children:[(0,J.jsx)("label",{className:"rnm-label",htmlFor:"rnm-sl-key",children:"API Key"}),(0,J.jsx)("input",{id:"rnm-sl-key",className:"rnm-input",type:"password",value:f,placeholder:t?.configured?"\u5DF2\u914D\u7F6E\uFF0C\u7559\u7A7A\u5219\u4E0D\u53D8":"",onChange:g=>c(g.target.value)})]}),e?(0,J.jsxs)("div",{className:"rnm-field",children:[(0,J.jsx)("label",{className:"rnm-label",htmlFor:"rnm-sl-scope",children:"\u4FDD\u5B58\u4F4D\u7F6E"}),(0,J.jsxs)("select",{id:"rnm-sl-scope",className:"rnm-input",value:p,onChange:g=>h(g.target.value),children:[(0,J.jsx)("option",{value:"project",children:"\u5F53\u524D\u9879\u76EE .train/\uFF08\u8DDF\u7740\u4EE3\u7801\u8D70\uFF09"}),(0,J.jsx)("option",{value:"global",children:"\u5168\u5C40\uFF08\u65B0\u9879\u76EE\u7EE7\u627F\uFF09"})]})]}):void 0,d?(0,J.jsx)("div",{className:"rnm-err",children:d}):void 0,(0,J.jsx)("div",{className:"rnm-row",children:(0,J.jsx)("button",{className:"rnm-btn rnm-btn--primary",type:"submit",disabled:i,children:i?"\u4FDD\u5B58\u4E2D\u2026":"\u4FDD\u5B58\u5E76\u6D4B\u8BD5"})})]})}var Pr=require("react");var Ie=require("react/jsx-runtime"),vU={running:"connected",admitted:"warn",queued:"warn",pending:"warn",submitting:"idle",completed:"idle",stopped:"idle",failed:"error",rejected:"error"};function mU(t,e){let[r,i]=(0,Pr.useState)(void 0),[n,a]=(0,Pr.useState)(void 0),o=(0,Pr.useCallback)(async()=>{if(e)try{let s=await it.workloads(t);i(s?.items??[]),a(void 0)}catch(s){a(s?.message??String(s))}},[t,e]);return(0,Pr.useEffect)(()=>{o()},[o]),(0,Pr.useEffect)(()=>{if(e)return Ln(`${rt}/events`,{workloads:s=>{i(s?.items??[]),a(void 0)}})},[e]),{rows:r,error:n,reload:o}}function zA({cwd:t,connected:e}){let{rows:r,error:i,reload:n}=mU(t,e),[a,o]=(0,Pr.useState)(void 0),[s,l]=(0,Pr.useState)(void 0),[u,f]=(0,Pr.useState)(void 0),c=(0,Pr.useCallback)(async(p,h)=>{let d=`${p.project}/${p.name}`;o(d),l(void 0);try{let v=await it.act({project:p.project,name:p.name,action:h,cwd:t});v.outcome==="skipped"&&l(v.detail),await n()}catch(v){l(v?.message??String(v))}finally{o(void 0),f(void 0)}},[t,n]);if(e)return(0,Ie.jsxs)("section",{className:"rnm-card",children:[(0,Ie.jsxs)("div",{className:"rnm-card-head",children:[(0,Ie.jsx)("span",{className:"rnm-title rnm-grow",children:"\u8D1F\u8F7D"}),(0,Ie.jsx)("button",{className:"rnm-btn rnm-btn--ghost rnm-icon-btn",type:"button",onClick:n,"aria-label":"\u5237\u65B0\u8D1F\u8F7D\u5217\u8868",title:"\u5237\u65B0",children:(0,Ie.jsx)(ch,{})})]}),i?(0,Ie.jsx)("div",{className:"rnm-err",children:i}):void 0,r===void 0?(0,Ie.jsx)("div",{className:"rnm-sub",children:"\u8BFB\u53D6\u4E2D\u2026"}):void 0,r?.length===0?(0,Ie.jsx)("div",{className:"rnm-empty",children:"\u5F53\u524D\u6CA1\u6709\u8D1F\u8F7D\u3002"}):void 0,(r??[]).map(p=>{let h=`${p.project}/${p.name}`,d=String(p.status??"unknown"),v=d==="stopped",m=a===h;return(0,Ie.jsxs)("div",{className:"rnm-wl",children:[(0,Ie.jsx)("span",{className:`rnm-dot rnm-dot--${vU[d]??"idle"}`}),(0,Ie.jsx)("span",{className:"rnm-grow rnm-ellipsis rnm-mono",title:h,children:h}),(0,Ie.jsx)("span",{className:"rnm-sub",children:d}),p.xpu_count?(0,Ie.jsxs)("span",{className:"rnm-sub",children:[p.xpu_count," \u5361"]}):void 0,u===h?(0,Ie.jsxs)(Ie.Fragment,{children:[(0,Ie.jsx)("span",{className:"rnm-sub",children:"\u786E\u8BA4\u5220\u9664\uFF1F"}),(0,Ie.jsx)("button",{className:"rnm-btn",type:"button",disabled:m,onClick:()=>c(p,"delete"),children:"\u5220\u9664"}),(0,Ie.jsx)("button",{className:"rnm-btn rnm-btn--ghost",type:"button",onClick:()=>f(void 0),children:"\u53D6\u6D88"})]}):(0,Ie.jsxs)(Ie.Fragment,{children:[(0,Ie.jsx)("button",{className:"rnm-btn rnm-btn--ghost",type:"button",disabled:m,onClick:()=>c(p,v?"start":"stop"),children:v?"\u542F\u52A8":"\u505C\u6B62"}),(0,Ie.jsx)("button",{className:"rnm-btn rnm-btn--ghost rnm-icon-btn",type:"button",disabled:m,onClick:()=>f(h),"aria-label":`\u5220\u9664 ${h}`,title:"\u5220\u9664",children:(0,Ie.jsx)(fh,{})})]})]},h)}),s?(0,Ie.jsx)("div",{className:"rnm-sub",children:s}):void 0]})}var ge=require("react/jsx-runtime");function gU({pin:t,onUnpin:e}){let r=t.latest,i=r?.ok?kA(t.query,r.data,{...Xy(t),group:t.params?.group??Xy(t).group,series:t.series}):void 0,n=i?.note,a=r&&!r.ok;return(0,ge.jsxs)("section",{className:"rnm-card",children:[(0,ge.jsxs)("div",{className:"rnm-card-head",children:[(0,ge.jsx)("span",{className:"rnm-title rnm-ellipsis",children:t.title}),(0,ge.jsx)("button",{className:"rnm-btn rnm-btn--ghost rnm-icon-btn",type:"button",onClick:()=>e(t.id),"aria-label":`\u53D6\u6D88\u56FA\u5B9A\u300C${t.title}\u300D`,title:"\u53D6\u6D88\u56FA\u5B9A",children:(0,ge.jsx)(fh,{})})]}),a?(0,ge.jsxs)("div",{className:"rnm-err",children:["\u5237\u65B0\u5931\u8D25\uFF1A",r.error]}):(0,ge.jsx)(sh,{view:i,height:140,group:"runnpu-pins"}),n?(0,ge.jsx)("div",{className:"rnm-sub",children:n}):void 0,(0,ge.jsxs)("div",{className:"rnm-pin-provenance",children:[(0,ge.jsxs)("div",{children:["\u6765\u6E90 ",(0,ge.jsx)("span",{className:"rnm-mono",children:t.query}),r?.at?` \xB7 \u66F4\u65B0\u4E8E ${new Date(r.at).toLocaleTimeString()}`:""]}),t.provenance?.question?(0,ge.jsxs)("div",{children:["\u5F53\u65F6\u7684\u95EE\u9898\uFF1A",t.provenance.question]}):void 0,t.provenance?.note?(0,ge.jsx)("div",{children:t.provenance.note}):void 0]})]})}function Cs({useWorkspaces:t,useSessions:e,sessionId:r,openDetails:i}){let n=e(_=>_?.current),a=r??n,[o,s]=(0,Dt.useState)(void 0),[l,u]=(0,Dt.useState)(!1),[f,c]=(0,Dt.useState)(!1),[p,h]=(0,Dt.useState)(void 0),d=hh(t,a),v=(0,Dt.useCallback)(async()=>{try{s(await it.state(d)),h(void 0)}catch(_){h(_?.message??String(_))}},[d]);(0,Dt.useEffect)(()=>{v()},[v]),(0,Dt.useEffect)(()=>{i?.()},[i]),(0,Dt.useEffect)(()=>Ln(`${rt}/events`,{pins:_=>{s(x=>{if(!x)return x;let S=new Map(_.map(b=>[b.id,b]));return{...x,pins:x.pins.map(b=>S.has(b.id)?{...b,latest:S.get(b.id)}:b)}})},health:_=>s(x=>x&&{...x,health:_}),list:_=>s(x=>x&&{...x,pins:_}),unpinned:({id:_})=>s(x=>x&&{...x,pins:x.pins.filter(S=>S.id!==_)})}),[]);let m=(0,Dt.useCallback)(async _=>{u(!0);try{await it.login(_),await v()}finally{u(!1)}},[v]),g=(0,Dt.useCallback)(async _=>{await it.unpin(_),s(x=>x&&{...x,pins:x.pins.filter(S=>S.id!==_)})},[]),y=o?.health?.state==="connected";return(0,ge.jsxs)("div",{className:"rnm-panel",children:[(0,ge.jsxs)("section",{className:"rnm-card",children:[(0,ge.jsx)(An,{label:"RunNPU",health:o?.health}),o?.connection?.runnpu?.server?(0,ge.jsx)("div",{className:"rnm-sub rnm-ellipsis rnm-mono",children:o.connection.runnpu.server}):void 0,y?(0,ge.jsxs)("div",{className:"rnm-row",children:[(0,ge.jsxs)("span",{className:"rnm-sub rnm-grow",children:[o.health.platform?.version?`\u5E73\u53F0 ${o.health.platform.version}`:"",o.health.platform?.cluster?.reachable===!1?" \xB7 \u96C6\u7FA4\u672A\u8FDE\u901A":""]}),(0,ge.jsx)("button",{className:"rnm-btn rnm-btn--ghost",type:"button",onClick:async()=>{let _=await it.logout(d);await v(),_?.residual&&h(_.reason)},children:"\u65AD\u5F00"})]}):void 0,p?(0,ge.jsx)("div",{className:"rnm-err",children:p}):void 0]}),y?void 0:(0,ge.jsx)(gh,{defaultServer:o?.connection?.runnpu?.server,cwd:d,onSubmit:m,busy:l},o?.connection?.runnpu?.server??""),(0,ge.jsx)(UA,{cwd:d,connected:y}),(0,ge.jsx)("div",{className:"rnm-stack",children:(0,ge.jsx)(zA,{cwd:d,connected:y})}),(0,ge.jsxs)("div",{className:"rnm-row rnm-pin-head",children:[(0,ge.jsx)("span",{className:"rnm-title rnm-grow",children:"\u56FE\u8868\u56FA\u5B9A\u533A"}),(0,ge.jsx)("label",{className:"rnm-sub",htmlFor:"rnm-range",children:"\u65F6\u95F4\u8303\u56F4"}),(0,ge.jsx)("select",{id:"rnm-range",className:"rnm-input rnm-range",value:o?.range??"24h",disabled:!y||f,onChange:_=>{let x=_.target.value;c(!0),it.setRange(x).then(()=>s(S=>S&&{...S,range:x})).catch(()=>{}).finally(()=>c(!1))},children:["1h","6h","24h","7d"].map(_=>(0,ge.jsx)("option",{value:_,children:_},_))}),(0,ge.jsx)("button",{className:"rnm-btn rnm-btn--ghost rnm-icon-btn",type:"button",onClick:()=>it.refresh().catch(()=>{}),disabled:!y,"aria-label":"\u7ACB\u5373\u5237\u65B0\u6240\u6709\u56FA\u5B9A\u56FE\u8868",title:"\u7ACB\u5373\u5237\u65B0",children:(0,ge.jsx)(ch,{})})]}),(0,ge.jsx)("div",{className:"rnm-stack",children:(o?.pins??[]).length===0?(0,ge.jsx)("div",{className:"rnm-empty",children:"\u8FD8\u6CA1\u6709\u56FA\u5B9A\u7684\u56FE\u8868\u3002\u5728\u5BF9\u8BDD\u91CC\u8BA9 Agent \u51FA\u56FE\u540E\u70B9\u300C\u56FA\u5B9A\u300D\uFF0C\u56FE\u8868\u4F1A\u7559\u5728\u8FD9\u91CC\u5E76\u81EA\u52A8\u5237\u65B0\u4E3A\u6700\u65B0\u6570\u636E\u3002"}):o.pins.map(_=>(0,ge.jsx)(gU,{pin:_,onUnpin:g},_.id))})]})}function FA({inputActions:t,useInput:e,useSession:r,useSessions:i,sessionId:n}){let a=Ts(i,n),o=i(h=>n?!!h?.byId?.[n]?.blank:!0),s=e(h=>!!(h?.draft??h?.text)),l=r(h=>!!h?.running),[u,f]=(0,Dt.useState)([]),c=a==="compute"&&!o;if((0,Dt.useEffect)(()=>{if(!c||!n)return;let h=!1;it.followups(n).then(v=>{h||f(v.questions??[])}).catch(()=>{});let d=Ln(`${rt}/events`,{followups:v=>{v.sessionId===n&&f(v.questions??[])}});return()=>{h=!0,d()}},[c,n]),(0,Dt.useEffect)(()=>{if(!(!c||l))return mh(h=>{t.setDraft(h),t.submit()})},[c,l,t]),!c||l||s)return;let p=u.length>0?u:vh[Qt.compute];return(0,ge.jsx)("div",{className:"rnm-chips",children:p.map(h=>(0,ge.jsx)("button",{className:"rnm-chip",type:"button",onClick:()=>{t.setDraft(h),t.submit()},children:h},h))})}var xh=require("react");var _u={};function _h(t){for(let e of["useSessions","useWorkspaces"]){let r=t?.[e];typeof r=="function"&&_u[e]!==r&&(_u[e]=r)}}var mi=require("react/jsx-runtime"),VA=!1;function HA(t){let{useWorkspaces:e,useSessions:r}=t;_h(t);let[i,n]=(0,xh.useState)(VA);(0,xh.useEffect)(()=>{VA=i},[i]);let a=r(l=>l?.current),o=Ts(r,a),s=r(l=>{let u=l?.current;return u?!!l?.byId?.[u]?.blank:!0});if(!(o!==Qt.compute||!s))return(0,mi.jsxs)("div",{style:{position:"fixed",right:16,bottom:16,width:i?"auto":"min(360px, 32vw)",maxHeight:"60vh",pointerEvents:"auto",display:"flex",flexDirection:"column",border:"1px solid var(--dsw-alias-border-secondary, rgba(128,128,128,.3))",background:"var(--dsw-alias-bg-layer-1, #fff)",boxShadow:"0 6px 24px rgba(0,0,0,.10)",overflow:"hidden"},children:[(0,mi.jsxs)("div",{className:"rnm-row",style:{padding:"6px 10px",borderBottom:i?"none":"1px solid var(--dsw-alias-border-secondary, rgba(128,128,128,.2))",background:"var(--dsw-alias-bg-layer-2, transparent)"},children:[(0,mi.jsx)("span",{className:"rnm-title rnm-grow",children:"\u7B97\u529B\u9762\u677F"}),(0,mi.jsx)("button",{className:"rnm-btn rnm-btn--ghost rnm-icon-btn",type:"button",onClick:()=>n(l=>!l),"aria-label":i?"\u5C55\u5F00\u7B97\u529B\u9762\u677F":"\u6536\u8D77\u7B97\u529B\u9762\u677F","aria-expanded":!i,title:i?"\u5C55\u5F00":"\u6536\u8D77",children:i?(0,mi.jsx)(uh,{}):(0,mi.jsx)(lh,{})})]}),i?void 0:(0,mi.jsx)("div",{style:{overflow:"auto",minHeight:0},children:(0,mi.jsx)(Cs,{useWorkspaces:e,useSessions:r})})]})}var Dn=require("react");var Es=require("react/jsx-runtime"),yU={[Qt.compute]:"\u7B97\u529B\u7BA1\u7406\u6A21\u5F0F \xB7 \u53EF\u4EE5\u5148\u95EE",[Qt.training]:"\u8BAD\u7EC3\u6A21\u5F0F \xB7 \u53EF\u4EE5\u5148\u95EE"},GA='textarea, [contenteditable="true"]';function _U(){let t=document.querySelector(GA);if(!t)return;let e=t,r=t.getBoundingClientRect().bottom;for(let i=0;i<6&&e.parentElement;i+=1){e=e.parentElement;let n=e.getBoundingClientRect();if(n.bottom>r+1)return n}return t.getBoundingClientRect()}function xU(t){let[e,r]=(0,Dn.useState)(void 0);return(0,Dn.useEffect)(()=>{if(!t)return;let i=0,n=()=>{i===0&&(i=setTimeout(()=>{i=0,a()},80))},a=()=>{let u=_U();if(!u||u.width===0){r(void 0);return}r(f=>f&&f.left===u.left&&f.width===u.width&&f.bottom===u.bottom?f:{left:u.left,width:u.width,bottom:u.bottom})};a(),window.addEventListener("resize",n);let o=new ResizeObserver(n);o.observe(document.body);let s=new MutationObserver(()=>{document.querySelector(GA)&&(n(),s.disconnect())});s.observe(document.body,{childList:!0,subtree:!0});let l=setTimeout(()=>s.disconnect(),1e4);return()=>{clearTimeout(i),clearTimeout(l),window.removeEventListener("resize",n),o.disconnect(),s.disconnect()}},[t]),e}function WA({useSessions:t,send:e}){let[r,i]=(0,Dn.useState)(!1),n=t(l=>{let u=l?.current,f=u?l?.byId?.[u]:void 0;return f?.blank?ph(f):void 0}),a=n?vh[n]:void 0,o=xU(!!a),s=(0,Dn.useCallback)(async l=>{if(!r){i(!0);try{await e(l)}finally{i(!1)}}},[e,r]);if((0,Dn.useEffect)(()=>{if(a)return mh(s)},[a,s]),!!a)return(0,Es.jsxs)("div",{style:{position:"fixed",...o?{left:o.left,width:o.width,top:o.bottom+12}:{left:"50%",top:"calc(50% + 104px)",transform:"translateX(-50%)",width:"min(560px, 88vw)"},pointerEvents:"auto",display:"flex",flexDirection:"column",gap:6,alignItems:"center"},children:[(0,Es.jsx)("div",{className:"rnm-sub",children:yU[n]}),(0,Es.jsx)("div",{className:"rnm-chips",style:{justifyContent:"center"},children:a.map(l=>(0,Es.jsx)("button",{className:"rnm-chip",type:"button",disabled:r,onClick:()=>s(l),children:l},l))})]})}var qA=require("react/jsx-runtime"),SU="dsh-runnpu/compute",Sh="runnpu-compute";function YA(){return{id:SU,kind:Sh,title:()=>"\u96C6\u7FA4",guide:[{kind:Sh,title:"\u96C6\u7FA4\u9762\u677F",description:"\u8FDE\u63A5\u72B6\u6001\u3001\u56FA\u5B9A\u56FE\u8868\u3001\u9700\u8981\u6CE8\u610F\u7684\u8D1F\u8F7D",order:40}]}}function XA(t){let e=t.useSessions??_u.useSessions,r=t.useWorkspaces??_u.useWorkspaces;if(!(!e||!r))return(0,qA.jsx)(Cs,{useSessions:e,useWorkspaces:r,sessionId:t.sessionId})}var Rr=require("react");var et=require("react/jsx-runtime");function KA(){let[t,e]=(0,Rr.useState)(void 0),[r,i]=(0,Rr.useState)(!1),[n,a]=(0,Rr.useState)(void 0),[o,s]=(0,Rr.useState)(void 0),l=(0,Rr.useCallback)(async()=>{try{let[h,d]=await Promise.all([it.state(void 0),In.state(void 0)]);e({...h,swanlab:d.swanlab,swanlabConfig:d.connection?.swanlab}),a(void 0)}catch(h){a(h?.message??String(h))}},[]);(0,Rr.useEffect)(()=>{l()},[l]);let u=(0,Rr.useCallback)(async h=>{i(!0),s(void 0);try{let d=await it.login({...h,scope:"global"});s(`\u5DF2\u767B\u5F55\uFF1A${d.identity?.user?.display_name??d.identity?.user?.email??"\u6210\u529F"}`),await l()}finally{i(!1)}},[l]),f=(0,Rr.useCallback)(async h=>{i(!0),s(void 0);try{let d=await In.configureSwanlab({...h,scope:"global"});return s(d.health?.state==="connected"?"SwanLab \u5DF2\u8FDE\u63A5":`\u5DF2\u4FDD\u5B58\uFF0C\u4F46\u72B6\u6001\u662F\u300C${d.health?.state}\u300D\uFF1A${d.health?.reason??""}`),await l(),d}finally{i(!1)}},[l]),c=(0,Rr.useCallback)(async()=>{let h=await it.logout();s(h?.residual?h.reason:"\u5DF2\u65AD\u5F00 RunNPU"),await l()},[l]),p=t?.health?.state==="connected";return(0,et.jsxs)("div",{className:"rnm-settings",children:[(0,et.jsxs)("section",{className:"rnm-card",children:[(0,et.jsx)(An,{label:"RunNPU",health:t?.health}),t?.connection?.runnpu?.server?(0,et.jsx)("div",{className:"rnm-sub rnm-mono rnm-ellipsis",children:t.connection.runnpu.server}):void 0,t?.connection?.runnpu?.tokenSource?(0,et.jsxs)("div",{className:"rnm-sub",children:["\u51ED\u636E\u6765\u6E90\uFF1A",t.connection.runnpu.tokenSource]}):void 0,p?(0,et.jsxs)("div",{className:"rnm-row",children:[(0,et.jsxs)("span",{className:"rnm-sub rnm-grow",children:[t.health.platform?.version?`\u5E73\u53F0 ${t.health.platform.version}`:"",t.health.platform?.cluster?.reachable===!1?" \xB7 \u96C6\u7FA4\u672A\u8FDE\u901A":""]}),(0,et.jsx)("button",{className:"rnm-btn",type:"button",onClick:c,children:"\u65AD\u5F00"})]}):void 0]}),p?void 0:(0,et.jsx)(gh,{defaultServer:t?.connection?.runnpu?.server,onSubmit:u,busy:r},t?.connection?.runnpu?.server??""),(0,et.jsxs)("section",{className:"rnm-card",children:[(0,et.jsx)(An,{label:"SwanLab",health:t?.swanlab}),(0,et.jsx)("div",{className:"rnm-sub",children:"\u8BAD\u7EC3\u6A21\u5F0F\u7528\u5B83\u8BB0\u5F55\u4E0E\u8BFB\u53D6\u5B9E\u9A8C\u66F2\u7EBF\u3002\u79C1\u6709\u90E8\u7F72\u7684 API \u5730\u5740\u4E0E Web \u9762\u677F\u5730\u5740\u662F\u4E24\u4E2A\u503C\uFF0C\u90FD\u8981\u586B\u3002"})]}),(0,et.jsx)(yh,{current:t?.swanlabConfig,onSubmit:f,busy:r},`${t?.swanlabConfig?.mode??""}|${t?.swanlabConfig?.apiHost??""}`),o?(0,et.jsx)("div",{className:"rnm-sub",children:o}):void 0,n?(0,et.jsx)("div",{className:"rnm-err",children:n}):void 0,(0,et.jsxs)("div",{className:"rnm-sub",children:["\u8FD9\u91CC\u4FDD\u5B58\u7684\u662F",(0,et.jsx)("strong",{children:"\u5168\u5C40\u9ED8\u8BA4"}),"\u3002\u5728\u8BAD\u7EC3\u6A21\u5F0F\u7684\u5DE5\u4F5C\u76EE\u5F55\u91CC\uFF0C\u53EF\u4EE5\u628A SwanLab \u914D\u7F6E\u6539\u5B58\u5230\u9879\u76EE\u81EA\u5DF1\u7684",(0,et.jsx)("span",{className:"rnm-mono",children:" .train/ "}),"\u4E0B\uFF0C\u8DDF\u7740\u4EE3\u7801\u8D70\u3002"]})]})}var bU=`
7
+ var wh=Object.defineProperty;var sD=Object.getOwnPropertyDescriptor;var lD=Object.getOwnPropertyNames;var uD=Object.prototype.hasOwnProperty;var Ft=(t,e)=>{for(var r in e)wh(t,r,{get:e[r],enumerable:!0})},fD=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of lD(e))!uD.call(t,n)&&n!==r&&wh(t,n,{get:()=>e[n],enumerable:!(i=sD(e,n))||i.enumerable});return t};var cD=t=>fD(wh({},"__esModule",{value:!0}),t);var WU={};Ft(WU,{apply:()=>GU,inject:()=>VU});module.exports=cD(WU);var Ot=Object.freeze({compute:Object.freeze({id:"compute",name:"\u7B97\u529B\u7BA1\u7406",description:"\u96C6\u7FA4\u72B6\u6001\u3001\u5360\u5361\u3001\u914D\u989D\u4E0E\u5F02\u5E38\uFF1B\u56FE\u8868\u53EF\u56FA\u5B9A\u5230\u53F3\u680F\u5E76\u81EA\u52A8\u5237\u65B0\u3002",needsWorkspace:!1,apiPath:"/runnpu-api",refreshMs:3e4,openers:Object.freeze(["\u73B0\u5728\u96C6\u7FA4\u6574\u4F53\u662F\u4EC0\u4E48\u72B6\u51B5\uFF1F\u6709\u6CA1\u6709\u5F02\u5E38\uFF1F","\u8C01\u5360\u4E86\u6700\u591A\u7684\u5361\uFF1F\u6709\u6CA1\u6709\u5360\u7740\u4E0D\u7528\u7684\uFF1F","\u5404\u9879\u76EE\u7684\u914D\u989D\u7528\u4E86\u591A\u5C11\uFF1F\u8FD8\u591F\u4E0D\u591F\u5206\uFF1F","\u5E2E\u6211\u62C9\u8D77\u4E00\u4E2A\u5F00\u53D1\u73AF\u5883","\u628A\u95F2\u7F6E\u8D85\u8FC7 2 \u5C0F\u65F6\u7684\u8D1F\u8F7D\u5217\u51FA\u6765\uFF0C\u6211\u51B3\u5B9A\u505C\u54EA\u4E9B","\u518D\u6765 3 \u4E2A\u4EBA\u505A\u5FAE\u8C03\uFF0C\u73B0\u5728\u7684\u5361\u591F\u4E0D\u591F\uFF1F"])}),training:Object.freeze({id:"training",name:"\u8BAD\u7EC3",description:"\u628A\u5DE5\u4F5C\u76EE\u5F55\u91CC\u7684\u8BAD\u7EC3\u5DE5\u7A0B\u90E8\u7F72\u5230\u96C6\u7FA4\uFF0CSwanLab \u8BB0\u5F55\uFF0C\u5173\u952E\u6307\u6807\u5E38\u9A7B\u8F93\u5165\u6846\u4E0A\u65B9\u3002",needsWorkspace:!0,apiPath:"/training-api",refreshMs:15e3,openers:Object.freeze(["\u770B\u4E00\u4E0B\u8FD9\u4E2A\u76EE\u5F55\u91CC\u7684\u8BAD\u7EC3\u5DE5\u7A0B\uFF0C\u5173\u952E\u6307\u6807\u5E94\u8BE5\u76EF\u54EA\u51E0\u4E2A\uFF1F","\u8FD9\u6B21\u8BAD\u7EC3\u8981\u7528\u4EC0\u4E48\u914D\u7F6E\uFF1F\u5148\u8BF4\u65B9\u6848\uFF0C\u6211\u786E\u8BA4\u540E\u518D\u63D0\u4EA4\u3002","\u524D\u51E0\u6B21\u8BAD\u7EC3\u90FD\u8BD5\u4E86\u4EC0\u4E48\uFF1F\u4E0B\u4E00\u6B65\u5EFA\u8BAE\u600E\u4E48\u8C03\uFF1F"])})});var $e="/runnpu-api",Es="/training-api",pD=Object.freeze({request:(t,e)=>fetch(t,e)}),ro=pD;function i_(t){if(typeof t?.request!="function")throw new TypeError("configureTransport: transport.request must be a function");let e=ro;return ro=t,e}async function t_(t,e){return await ro.request(t,{...e,headers:{accept:"application/json",...e?.body?{"content-type":"application/json"}:{},...e?.headers}})}async function r_(t){let e=await t.text();try{return e?JSON.parse(e):void 0}catch{return}}async function dt(t,e){let r=await t_(t,e),i=await r_(r);if(!r.ok&&ro.shouldRetry&&await ro.shouldRetry(r,i)&&(r=await t_(t,e),i=await r_(r)),!r.ok){let n=new Error(i?.message??`${r.status} ${r.statusText}`);throw n.code=i?.error,n.status=r.status,n.details=i?.details,n}return i}var In=(t,e,r,i)=>{let n=new URL(`${t}${e}`,globalThis.location.origin);r&&n.searchParams.set("cwd",r);for(let[a,o]of Object.entries(i??{}))o!==void 0&&o!==""&&n.searchParams.set(a,String(o));return n.toString()},Qe={state:t=>dt(In($e,"/state",t)),login:t=>dt(`${$e}/login`,{method:"POST",body:JSON.stringify(t)}),logout:t=>dt(`${$e}/logout`,{method:"POST",body:JSON.stringify({cwd:t})}),query:(t,e,r)=>dt(In($e,"/query",t,{id:e,...r})),pins:t=>dt(In($e,"/pins",t)),pin:t=>dt(`${$e}/pins`,{method:"POST",body:JSON.stringify(t)}),unpin:t=>dt(`${$e}/pins?id=${encodeURIComponent(t)}`,{method:"DELETE"}),refresh:()=>dt(`${$e}/pins/refresh`,{method:"POST",body:"{}"}),setRange:t=>dt(`${$e}/range`,{method:"POST",body:JSON.stringify({range:t})}),workloads:t=>dt(In($e,"/workloads",t)),anomalies:t=>dt(In($e,"/anomalies",t)),act:t=>dt(`${$e}/workloads/action`,{method:"POST",body:JSON.stringify(t)}),operations:()=>dt(`${$e}/operations`),followups:t=>dt(`${$e}/followups?sessionId=${encodeURIComponent(t??"")}`)},Ln={state:t=>dt(In(Es,"/state",t)),metrics:t=>dt(In(Es,"/metrics",t)),configureSwanlab:t=>dt(`${Es}/swanlab`,{method:"POST",body:JSON.stringify(t)})},Th=new Map;function hD(t){let e=new URL(t,globalThis.location.origin);return e.pathname+e.search}function n_(t,e){let r=new URL(t,globalThis.location.origin).toString(),i=new EventSource(e.transport.streamUrl?e.transport.streamUrl(r):r);e.source=i,e.attached.clear();for(let a of e.listeners.keys())a_(e,a);i.onopen=()=>{e.retried=!1};let n=e.transport.recoverStream;n&&(i.onerror=()=>{e.closed||e.retried||(e.retried=!0,i.close(),Promise.resolve(n()).catch(()=>!1).then(a=>{!a||e.closed||n_(t,e)}))})}function a_(t,e){t.attached.has(e)||!t.source||(t.attached.add(e),t.source.addEventListener(e,r=>{let i;try{i=JSON.parse(r.data)}catch{return}for(let n of t.listeners.get(e)??[])try{n(i)}catch{}}))}function Hi(t,e){let r=hD(t),i=Th.get(r);i||(i={listeners:new Map,attached:new Set,refs:0,closed:!1,retried:!1,transport:ro},Th.set(r,i),n_(r,i)),i.refs+=1;for(let[a,o]of Object.entries(e))i.listeners.has(a)||i.listeners.set(a,new Set),i.listeners.get(a).add(o),a_(i,a);let n=!1;return()=>{if(!n){n=!0;for(let[a,o]of Object.entries(e))i.listeners.get(a)?.delete(o);i.refs-=1,!(i.refs>0)&&(i.closed=!0,i.source?.close(),Th.delete(r))}}}var hr=require("react");var It=require("react"),J=require("react/jsx-runtime"),dD={connected:"connected",unauthenticated:"warn",unconfigured:"idle",unreachable:"error",error:"error"},vD={connected:"\u5DF2\u8FDE\u63A5",unauthenticated:"\u672A\u767B\u5F55",unconfigured:"\u672A\u914D\u7F6E",unreachable:"\u65E0\u6CD5\u8FDE\u901A",error:"\u8FDE\u63A5\u5F02\u5E38"};function Gi({label:t,health:e}){let r=e?.state??"unconfigured";return(0,J.jsxs)("div",{className:"rnm-row",children:[(0,J.jsx)("span",{className:`rnm-dot rnm-dot--${dD[r]??"idle"}`}),(0,J.jsx)("span",{className:"rnm-title",children:t}),(0,J.jsx)("span",{className:"rnm-sub",children:vD[r]??r}),e?.reason?(0,J.jsx)("span",{className:"rnm-sub rnm-grow rnm-ellipsis",children:e.reason}):void 0]})}function Su({defaultServer:t,cwd:e,onSubmit:r,busy:i}){let[n,a]=(0,It.useState)(t??""),[o,s]=(0,It.useState)(""),[l,u]=(0,It.useState)(""),[f,c]=(0,It.useState)("global"),[p,h]=(0,It.useState)(void 0),d=(0,It.useCallback)(async v=>{v.preventDefault(),h(void 0);try{await r({server:n.trim(),email:o.trim(),password:l,scope:f,cwd:e}),u("")}catch(m){h(m?.message??String(m))}},[n,o,l,f,e,r]);return(0,J.jsxs)("form",{className:"rnm-card",onSubmit:d,children:[(0,J.jsx)("div",{className:"rnm-title",children:"\u8FDE\u63A5 RunNPU"}),(0,J.jsxs)("div",{className:"rnm-field",children:[(0,J.jsx)("label",{className:"rnm-label",htmlFor:"rnm-server",children:"\u767B\u5F55\u5730\u5740"}),(0,J.jsx)("input",{id:"rnm-server",className:"rnm-input",value:n,placeholder:"https://runnpu.example.com",onChange:v=>a(v.target.value),autoComplete:"url"})]}),(0,J.jsxs)("div",{className:"rnm-field",children:[(0,J.jsx)("label",{className:"rnm-label",htmlFor:"rnm-email",children:"\u8D26\u53F7"}),(0,J.jsx)("input",{id:"rnm-email",className:"rnm-input",value:o,placeholder:"you@example.com",onChange:v=>s(v.target.value),autoComplete:"username"})]}),(0,J.jsxs)("div",{className:"rnm-field",children:[(0,J.jsx)("label",{className:"rnm-label",htmlFor:"rnm-password",children:"\u5BC6\u7801"}),(0,J.jsx)("input",{id:"rnm-password",className:"rnm-input",type:"password",value:l,onChange:v=>u(v.target.value),autoComplete:"current-password"})]}),e?(0,J.jsxs)("div",{className:"rnm-field",children:[(0,J.jsx)("label",{className:"rnm-label",htmlFor:"rnm-scope",children:"\u4FDD\u5B58\u4F4D\u7F6E"}),(0,J.jsxs)("select",{id:"rnm-scope",className:"rnm-input",value:f,onChange:v=>c(v.target.value),children:[(0,J.jsx)("option",{value:"global",children:"\u5168\u5C40\uFF08\u6240\u6709\u9879\u76EE\u5171\u7528\uFF09"}),(0,J.jsx)("option",{value:"project",children:"\u5F53\u524D\u9879\u76EE .train/secrets.json"})]})]}):void 0,(0,J.jsx)("div",{className:"rnm-sub",children:"\u5BC6\u7801\u53EA\u7528\u4E8E\u6362\u53D6\u957F\u671F API Token\uFF0C\u4E0D\u4F1A\u4FDD\u5B58\u3001\u4E0D\u4F1A\u8FDB\u5165\u5BF9\u8BDD\u8BB0\u5F55\u3002"}),p?(0,J.jsx)("div",{className:"rnm-err",children:p}):void 0,(0,J.jsx)("div",{className:"rnm-row",children:(0,J.jsx)("button",{className:"rnm-btn rnm-btn--primary",type:"submit",disabled:i,children:i?"\u767B\u5F55\u4E2D\u2026":"\u767B\u5F55"})})]})}function bu({current:t,cwd:e,onSubmit:r,busy:i}){let[n,a]=(0,It.useState)(t?.mode??"cloud"),[o,s]=(0,It.useState)(t?.apiHost??""),[l,u]=(0,It.useState)(t?.webHost??""),[f,c]=(0,It.useState)(""),[p,h]=(0,It.useState)(e?"project":"global"),[d,v]=(0,It.useState)(void 0),m=(0,It.useCallback)(async g=>{g.preventDefault(),v(void 0);try{await r({mode:n,apiHost:o.trim(),webHost:l.trim(),apiKey:f,scope:p,cwd:e}),c("")}catch(y){v(y?.message??String(y))}},[n,o,l,f,p,e,r]);return(0,J.jsxs)("form",{className:"rnm-card",onSubmit:m,children:[(0,J.jsx)("div",{className:"rnm-title",children:"SwanLab \u90E8\u7F72"}),(0,J.jsxs)("div",{className:"rnm-field",children:[(0,J.jsx)("label",{className:"rnm-label",htmlFor:"rnm-sl-mode",children:"\u90E8\u7F72\u5F62\u6001"}),(0,J.jsxs)("select",{id:"rnm-sl-mode",className:"rnm-input",value:n,onChange:g=>a(g.target.value),children:[(0,J.jsx)("option",{value:"cloud",children:"\u4E91\u7AEF swanlab.cn"}),(0,J.jsx)("option",{value:"self-hosted",children:"\u79C1\u6709\u90E8\u7F72"})]})]}),n==="self-hosted"?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)("div",{className:"rnm-field",children:[(0,J.jsx)("label",{className:"rnm-label",htmlFor:"rnm-sl-api",children:"API \u5730\u5740"}),(0,J.jsx)("input",{id:"rnm-sl-api",className:"rnm-input",value:o,placeholder:"https://swanlab.\u5185\u7F51\u57DF\u540D",onChange:g=>s(g.target.value)})]}),(0,J.jsxs)("div",{className:"rnm-field",children:[(0,J.jsx)("label",{className:"rnm-label",htmlFor:"rnm-sl-web",children:"Web \u9762\u677F\u5730\u5740"}),(0,J.jsx)("input",{id:"rnm-sl-web",className:"rnm-input",value:l,placeholder:"\u7559\u7A7A\u5219\u4E0E API \u5730\u5740\u76F8\u540C",onChange:g=>u(g.target.value)})]}),(0,J.jsx)("div",{className:"rnm-sub",children:"\u4E24\u4E2A\u5730\u5740\u662F\u5206\u5F00\u7684\uFF1AAPI \u7528\u4E8E SDK \u4E0A\u62A5\uFF0CWeb \u7528\u4E8E\u62FC\u7ED9\u4F60\u70B9\u5F00\u7684\u5B9E\u9A8C\u94FE\u63A5\u3002"})]}):void 0,(0,J.jsxs)("div",{className:"rnm-field",children:[(0,J.jsx)("label",{className:"rnm-label",htmlFor:"rnm-sl-key",children:"API Key"}),(0,J.jsx)("input",{id:"rnm-sl-key",className:"rnm-input",type:"password",value:f,placeholder:t?.configured?"\u5DF2\u914D\u7F6E\uFF0C\u7559\u7A7A\u5219\u4E0D\u53D8":"",onChange:g=>c(g.target.value)})]}),e?(0,J.jsxs)("div",{className:"rnm-field",children:[(0,J.jsx)("label",{className:"rnm-label",htmlFor:"rnm-sl-scope",children:"\u4FDD\u5B58\u4F4D\u7F6E"}),(0,J.jsxs)("select",{id:"rnm-sl-scope",className:"rnm-input",value:p,onChange:g=>h(g.target.value),children:[(0,J.jsx)("option",{value:"project",children:"\u5F53\u524D\u9879\u76EE .train/\uFF08\u8DDF\u7740\u4EE3\u7801\u8D70\uFF09"}),(0,J.jsx)("option",{value:"global",children:"\u5168\u5C40\uFF08\u65B0\u9879\u76EE\u7EE7\u627F\uFF09"})]})]}):void 0,d?(0,J.jsx)("div",{className:"rnm-err",children:d}):void 0,(0,J.jsx)("div",{className:"rnm-row",children:(0,J.jsx)("button",{className:"rnm-btn rnm-btn--primary",type:"submit",disabled:i,children:i?"\u4FDD\u5B58\u4E2D\u2026":"\u4FDD\u5B58\u5E76\u6D4B\u8BD5"})})]})}var Je=require("react/jsx-runtime");function o_(){let[t,e]=(0,hr.useState)(void 0),[r,i]=(0,hr.useState)(!1),[n,a]=(0,hr.useState)(void 0),[o,s]=(0,hr.useState)(void 0),l=(0,hr.useCallback)(async()=>{try{let[h,d]=await Promise.all([Qe.state(void 0),Ln.state(void 0)]);e({...h,swanlab:d.swanlab,swanlabConfig:d.connection?.swanlab}),a(void 0)}catch(h){a(h?.message??String(h))}},[]);(0,hr.useEffect)(()=>{l()},[l]);let u=(0,hr.useCallback)(async h=>{i(!0),s(void 0);try{let d=await Qe.login({...h,scope:"global"});s(`\u5DF2\u767B\u5F55\uFF1A${d.identity?.user?.display_name??d.identity?.user?.email??"\u6210\u529F"}`),await l()}finally{i(!1)}},[l]),f=(0,hr.useCallback)(async h=>{i(!0),s(void 0);try{let d=await Ln.configureSwanlab({...h,scope:"global"});return s(d.health?.state==="connected"?"SwanLab \u5DF2\u8FDE\u63A5":`\u5DF2\u4FDD\u5B58\uFF0C\u4F46\u72B6\u6001\u662F\u300C${d.health?.state}\u300D\uFF1A${d.health?.reason??""}`),await l(),d}finally{i(!1)}},[l]),c=(0,hr.useCallback)(async()=>{let h=await Qe.logout();s(h?.residual?h.reason:"\u5DF2\u65AD\u5F00 RunNPU"),await l()},[l]),p=t?.health?.state==="connected";return(0,Je.jsxs)("div",{className:"rnm-settings",children:[(0,Je.jsxs)("section",{className:"rnm-card",children:[(0,Je.jsx)(Gi,{label:"RunNPU",health:t?.health}),t?.connection?.runnpu?.server?(0,Je.jsx)("div",{className:"rnm-sub rnm-mono rnm-ellipsis",children:t.connection.runnpu.server}):void 0,t?.connection?.runnpu?.tokenSource?(0,Je.jsxs)("div",{className:"rnm-sub",children:["\u51ED\u636E\u6765\u6E90\uFF1A",t.connection.runnpu.tokenSource]}):void 0,p?(0,Je.jsxs)("div",{className:"rnm-row",children:[(0,Je.jsxs)("span",{className:"rnm-sub rnm-grow",children:[t.health.platform?.version?`\u5E73\u53F0 ${t.health.platform.version}`:"",t.health.platform?.cluster?.reachable===!1?" \xB7 \u96C6\u7FA4\u672A\u8FDE\u901A":""]}),(0,Je.jsx)("button",{className:"rnm-btn",type:"button",onClick:c,children:"\u65AD\u5F00"})]}):void 0]}),p?void 0:(0,Je.jsx)(Su,{defaultServer:t?.connection?.runnpu?.server,onSubmit:u,busy:r},t?.connection?.runnpu?.server??""),(0,Je.jsxs)("section",{className:"rnm-card",children:[(0,Je.jsx)(Gi,{label:"SwanLab",health:t?.swanlab}),(0,Je.jsx)("div",{className:"rnm-sub",children:"\u8BAD\u7EC3\u6A21\u5F0F\u7528\u5B83\u8BB0\u5F55\u4E0E\u8BFB\u53D6\u5B9E\u9A8C\u66F2\u7EBF\u3002\u79C1\u6709\u90E8\u7F72\u7684 API \u5730\u5740\u4E0E Web \u9762\u677F\u5730\u5740\u662F\u4E24\u4E2A\u503C\uFF0C\u90FD\u8981\u586B\u3002"})]}),(0,Je.jsx)(bu,{current:t?.swanlabConfig,onSubmit:f,busy:r},`${t?.swanlabConfig?.mode??""}|${t?.swanlabConfig?.apiHost??""}`),o?(0,Je.jsx)("div",{className:"rnm-sub",children:o}):void 0,n?(0,Je.jsx)("div",{className:"rnm-err",children:n}):void 0,(0,Je.jsxs)("div",{className:"rnm-sub",children:["\u8FD9\u91CC\u4FDD\u5B58\u7684\u662F",(0,Je.jsx)("strong",{children:"\u5168\u5C40\u9ED8\u8BA4"}),"\u3002\u5728\u8BAD\u7EC3\u6A21\u5F0F\u7684\u5DE5\u4F5C\u76EE\u5F55\u91CC\uFF0C\u53EF\u4EE5\u628A SwanLab \u914D\u7F6E\u6539\u5B58\u5230\u9879\u76EE\u81EA\u5DF1\u7684",(0,Je.jsx)("span",{className:"rnm-mono",children:" .train/ "}),"\u4E0B\uFF0C\u8DDF\u7740\u4EE3\u7801\u8D70\u3002"]})]})}var mD=`
26
8
  /* ONE scroll for the whole column.
27
9
  Each section used to scroll inside its own fixed slice, so the pinned area
28
10
  was a small window you paged through while the panel around it stayed put \u2014
@@ -180,7 +162,25 @@ yyyy`);var i=It(e),n=r?"getUTC":"get",a=i[n+"FullYear"](),o=i[n+"Month"]()+1,s=i
180
162
  padding-left: 8px; font-size: 11px; line-height: 1.6;
181
163
  color: var(--dsw-alias-label-tertiary, rgba(128,128,128,.9));
182
164
  }
183
- `,Ky=!1;function ZA(){if(Ky)return()=>{};let t=document.createElement("style");return t.dataset.owner="dsh-runnpu",t.textContent=bU,document.head.append(t),Ky=!0,()=>{t.remove(),Ky=!1}}var gi=require("react");var ye=require("react/jsx-runtime"),wU={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap"};function TU(t,e){let r=t?.[e];if(Array.isArray(r))for(let i=r.length-1;i>=0;i-=1){let n=r[i]?.[1];if(typeof n=="number")return n}}function CU(t,e){return e.map(r=>{let i=t?.[r.name];if(!(!Array.isArray(i)||i.length===0))return{name:r.name,points:i}}).filter(Boolean)}var EU={promote:{text:"\u6700\u4F18",cls:"rnm-badge rnm-badge--promote"},discard:{text:"\u5DF2\u5F03",cls:"rnm-badge rnm-badge--discard"},next:{text:"\u5F85\u8FED\u4EE3",cls:"rnm-badge rnm-badge--next"}};function AU({version:t}){if(!t)return;let e=Object.entries(t.hyperparams??{}).filter(([n,a])=>t.previous&&t.previous[n]!==a),r=EU[t.decision],i=typeof t.promotedSeq=="number"&&t.promotedSeq!==t.seq;return(0,ye.jsxs)("div",{className:"rnm-row rnm-row--wrap",children:[(0,ye.jsxs)("span",{className:"rnm-title",children:["\u7B2C ",t.seq," \u6B21\u8BAD\u7EC3"]}),r?(0,ye.jsx)("span",{className:r.cls,children:r.text}):void 0,(0,ye.jsxs)("span",{className:"rnm-sub",children:["\u5171 ",t.total," \u6B21"]}),i?(0,ye.jsxs)("span",{className:"rnm-sub",title:"\u8D26\u672C\u4E2D\u6700\u8FD1\u4E00\u6B21 promote \u7684\u8F6E\u6B21",children:["\u5F53\u524D\u6700\u4F18\uFF1A\u7B2C ",t.promotedSeq," \u6B21"]}):void 0,t.status?(0,ye.jsx)("span",{className:"rnm-sub",children:t.status}):void 0,t.template?.id?(0,ye.jsxs)("span",{className:"rnm-sub rnm-mono",children:[t.template.id,t.template.version?`@${t.template.version}`:""]}):void 0,Object.entries(t.hyperparams??{}).map(([n,a])=>{let o=e.some(([s])=>s===n);return(0,ye.jsxs)("span",{className:"rnm-sub rnm-mono rnm-icon-text",title:o?"\u4E0E\u4E0A\u4E00\u6B21\u4E0D\u540C":void 0,children:[n,"=",String(a),o?(0,ye.jsxs)(ye.Fragment,{children:[(0,ye.jsx)(IA,{size:12}),(0,ye.jsx)("span",{style:wU,children:"\uFF08\u4E0E\u4E0A\u4E00\u6B21\u4E0D\u540C\uFF09"})]}):void 0]},n)})]})}function DU({strip:t}){let e=t.unknownKeys??[],r=(t.missingKeys??[]).filter(i=>!e.includes(i));if(!(e.length===0&&r.length===0&&!t.hint))return(0,ye.jsxs)(ye.Fragment,{children:[e.length>0?(0,ye.jsxs)("div",{className:"rnm-err",children:["\u5B9E\u9A8C\u91CC\u6CA1\u6709\u8FD9\u4E9B\u6307\u6807\uFF1A",e.join("\u3001")," \u2014\u2014 .train/metrics.json \u63A8\u65AD\u6709\u8BEF\uFF0C\u5EFA\u8BAE\u8BA9 Agent \u91CD\u65B0\u5206\u6790\u5E76 training_metrics_set\u3002"]}):void 0,r.length>0?(0,ye.jsxs)("div",{className:"rnm-sub",children:["\u8FD9\u4E9B\u6307\u6807\u6682\u65F6\u6CA1\u6709\u6570\u636E\uFF1A",r.join("\u3001")," \u2014\u2014 \u82E5\u8BAD\u7EC3\u5DF2\u7ECF\u8DD1\u4E86\u4E00\u6BB5\u65F6\u95F4\uFF0C\u5EFA\u8BAE\u8BA9 Agent \u91CD\u65B0\u5206\u6790\u5E76 training_metrics_set\u3002"]}):void 0,t.hint?(0,ye.jsx)("div",{className:"rnm-sub",children:t.hint}):void 0]})}var MU={"not-training-project":void 0,"no-workspace":void 0,"no-metric-keys":"\u5173\u952E\u6307\u6807\u8FD8\u6CA1\u4ECE\u8BAD\u7EC3\u4EE3\u7801\u91CC\u5206\u6790\u51FA\u6765 \u2014\u2014 \u8BA9 Agent \u8BFB\u4E00\u904D\u4EE3\u7801\u5E76\u5199\u5165 .train/metrics.json\u3002","no-run":"\u8FD8\u6CA1\u6709\u5DF2\u8BB0\u5F55\u7684\u8BAD\u7EC3\u8FD0\u884C\u3002","swanlab-unconfigured":"SwanLab \u5C1A\u672A\u914D\u7F6E\uFF0C\u66F2\u7EBF\u65E0\u6CD5\u62C9\u53D6\u3002"};function jA({useSessions:t,useWorkspaces:e,sessionId:r}){let i=Ts(t,r),n=hh(e,r),[a,o]=(0,gi.useState)(void 0),[s,l]=(0,gi.useState)(!1),[u,f]=(0,gi.useState)(void 0),[c,p]=(0,gi.useState)(!1),h=i==="training";(0,gi.useEffect)(()=>{if(!h)return;let y=!1;return In.metrics(n).then(_=>{y||o(_)}).catch(()=>{}),In.state(n).then(_=>{y||f(_)}).catch(()=>{}),()=>{y=!0}},[h,n]),(0,gi.useEffect)(()=>{if(!h)return;let y=new URL(`${As}/events`,globalThis.location.origin);return n&&y.searchParams.set("cwd",n),Ln(y.toString(),{strip:_=>{(_.cwd??void 0)===(n??void 0)&&o(_.strip)}})},[h,n]);let d=(0,gi.useCallback)(async y=>{p(!0);try{let _=await In.configureSwanlab(y);return f(x=>x&&{...x,swanlab:_.health}),_.health?.state==="connected"&&l(!1),_}finally{p(!1)}},[]);if(!h||!a||a.state==="no-workspace"||a.state==="not-training-project")return;let v=a.keys??[],m=a.state==="ok"?CU(a.metrics,v):[],g=u?.connection?.swanlab??u?.swanlab;return(0,ye.jsxs)("div",{className:"rnm-strip",children:[(0,ye.jsxs)("div",{className:"rnm-row rnm-row--wrap",children:[(0,ye.jsx)(An,{label:"SwanLab",health:u?.swanlab}),(0,ye.jsx)(An,{label:"RunNPU",health:u?.runnpu}),(0,ye.jsx)("span",{className:"rnm-grow"}),a.runUrl?(0,ye.jsxs)("a",{className:"rnm-sub rnm-icon-text",href:a.runUrl,target:"_blank",rel:"noreferrer",children:["\u6253\u5F00\u5B9E\u9A8C",(0,ye.jsx)(OA,{size:12})]}):void 0,(0,ye.jsx)("button",{className:"rnm-btn rnm-btn--ghost",type:"button",onClick:()=>l(y=>!y),children:s?"\u6536\u8D77\u914D\u7F6E":"\u914D\u7F6E\u8FDE\u63A5"})]}),(0,ye.jsx)(AU,{version:a.version}),s?(0,ye.jsx)(yh,{current:g,cwd:n,onSubmit:d,busy:c},`${g?.mode??""}|${g?.apiHost??""}`):void 0,a.state==="ok"?(0,ye.jsxs)(ye.Fragment,{children:[(0,ye.jsx)("div",{className:"rnm-metrics",children:v.map(y=>{let _=TU(a.metrics,y.name);return(0,ye.jsxs)("div",{className:"rnm-metric",children:[(0,ye.jsx)("span",{className:"rnm-metric-name",children:y.name}),(0,ye.jsx)("span",{className:"rnm-metric-value",children:_===void 0?"\u2014":Number(_.toPrecision(6))})]},y.name)})}),(0,ye.jsx)(oh,{series:m,height:120,group:"runnpu-training"}),(0,ye.jsx)(DU,{strip:a})]}):(0,ye.jsx)("div",{className:"rnm-sub",children:MU[a.state]??a.reason??a.hint})]})}var $A=require("react/jsx-runtime"),OU=["slots"];function IU(t){let{useSessions:e}=t;_h(t);let r=NA(e),i=e(o=>{let s=o?.current;return s?!!o?.byId?.[s]?.blank:!0});qy.get()!==r&&qy.set(r);let n=r===void 0?void 0:`${r}|${i}`;eo.get()!==n&&eo.set(n);let a=r===Qt.compute?"\u7B97\u529B\u7BA1\u7406\u6A21\u5F0F":r===Qt.training?"\u8BAD\u7EC3\u6A21\u5F0F":void 0;if(a)return(0,$A.jsx)("div",{style:{position:"absolute",top:8,right:12,pointerEvents:"auto",fontSize:11,padding:"2px 8px",border:"1px solid var(--dsw-alias-border-secondary, rgba(128,128,128,.3))",background:"var(--dsw-alias-bg-layer-2, transparent)",color:"var(--dsw-alias-label-tertiary, inherit)"},children:a})}function LU(t){t.effect(()=>ZA(),"runnpu-modes: stylesheet"),t.slots.inject("conversation.input.dock",()=>t.slots.register({name:"conversation.input.dock",id:"runnpu-training-strip",order:-10},jA)),t.slots.inject("conversation.input.dock",()=>t.slots.register({name:"conversation.input.dock",id:"runnpu-suggestions",order:100},FA)),t.slots.inject("shell.overlay",()=>t.slots.register({name:"shell.overlay",id:"runnpu-mode-badge",order:10},IU)),t.slots.inject("shell.overlay",()=>t.slots.register({name:"shell.overlay",id:"runnpu-floating-panel",order:30},HA)),t.slots.inject("settings.section",()=>t.slots.register({name:"settings.section",id:"runnpu-connections",order:60,label:()=>"RunNPU / SwanLab"},KA)),t.inject(["sessions"],i=>{let n=async a=>{let s=i.sessions.list.getSnapshot()?.current;if(!s)return;await i.sessions.binding(s)?.session?.prompt([{type:"text",text:a}],"queue")};i.slots.inject("shell.overlay",()=>i.slots.register({name:"shell.overlay",id:"runnpu-hero-openers",order:20,inject:()=>({send:n})},WA))}),t.slots.inject("tool.call.toolview",()=>t.slots.register({name:"tool.call.toolview",key:"cluster_chart"},LA));let e,r=i=>{if(t.get("sidebarRightTabs"))return;let n=i===`${Qt.compute}|false`;if(n&&!e){let a=t.slots.inject("details",()=>t.slots.register({name:"details",priority:-1,inject:()=>({openDetails:()=>t.get("layout")?.openDetails?.()})},Cs));typeof a=="function"?e=a:console.warn("[dsh-runnpu] slots.inject returned no disposer; compute panel not mounted");return}!n&&e&&(e(),e=void 0)};t.effect(()=>{let i=eo.subscribe(r);return r(eo.get()),()=>{i(),e&&(e(),e=void 0)}},"runnpu-modes: compute details column"),t.inject(["sidebarRightTabs","sidebarRight","sessions"],i=>{let n,a,o=s=>{let[l,u]=String(s??"").split("|"),f=l===Qt.compute;if(f&&!n&&(n=i.sidebarRightTabs.register(YA())),!f&&n&&(n(),n=void 0),!f||u!=="false")return;let c=i.sessions.list.getSnapshot()?.current;!c||a===c||(a=c,setTimeout(()=>{try{i.sidebarRight.openTab(Sh,{revealIfOpened:!0})}catch(p){console.warn("[dsh-runnpu] could not open the compute tab",p)}},0))};i.effect(()=>{let s=eo.subscribe(o);return o(eo.get()),()=>{s(),n&&(n(),n=void 0)}},"runnpu-modes: compute right tab"),i.slots.inject("sidebar.right.pane.tab",()=>i.slots.register({name:"sidebar.right.pane.tab",key:"dsh-runnpu/compute",inject:s=>({sessionId:s})},XA))})}
165
+ `,Ch=!1;function s_(){if(Ch)return()=>{};let t=document.createElement("style");return t.dataset.owner="dsh-runnpu",t.textContent=mD,document.head.append(t),Ch=!0,()=>{t.remove(),Ch=!1}}var Sh=require("react");var We=require("react/jsx-runtime"),l_=new Set;function Nn({size:t=14,children:e,...r}){for(let i of Object.keys(r))!i.startsWith("aria-")||l_.has(i)||(l_.add(i),console.warn(`[dsh-runnpu] <Icon> ignores ${i}: icons are aria-hidden by construction. Put the accessible name on the surrounding control, or in a visually hidden span next to the icon.`));return(0,We.jsx)("svg",{width:t,height:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",style:{flex:"none",display:"block"},children:e})}function wu(t){return(0,We.jsx)(Nn,{...t,children:(0,We.jsx)("path",{d:"M4 6.5 8 10.5 12 6.5"})})}function Tu(t){return(0,We.jsx)(Nn,{...t,children:(0,We.jsx)("path",{d:"M4 9.5 8 5.5 12 9.5"})})}function Cu(t){return(0,We.jsx)(Nn,{...t,children:(0,We.jsx)("path",{d:"M4 4 12 12M12 4 4 12"})})}function u_(t){return(0,We.jsx)(Nn,{...t,children:(0,We.jsx)("path",{d:"M3.5 8.5 6.5 11.5 12.5 5"})})}function f_(t){return(0,We.jsxs)(Nn,{...t,children:[(0,We.jsx)("path",{d:"M9 3.5h3.5V7"}),(0,We.jsx)("path",{d:"M12.5 3.5 7.5 8.5"}),(0,We.jsx)("path",{d:"M12 10v2.5H3.5V4H6"})]})}function c_(t){return(0,We.jsxs)(Nn,{...t,children:[(0,We.jsx)("path",{d:"M3 6.5h7.5A2.5 2.5 0 0 1 10.5 11.5H4"}),(0,We.jsx)("path",{d:"M5 4.5 3 6.5 5 8.5"})]})}function Eu(t){return(0,We.jsxs)(Nn,{...t,children:[(0,We.jsx)("path",{d:"M13 8a5 5 0 1 1-1.6-3.7"}),(0,We.jsx)("path",{d:"M13 3v3h-3"})]})}var As={};function Au(t){for(let e of["useSessions","useWorkspaces"]){let r=t?.[e];typeof r=="function"&&As[e]!==r&&(As[e]=r)}}function Du(t){return t?.projectionValues?.agentPreset??t?.agentPreset}function Ds(t,e){return t(r=>e?Du(r?.byId?.[e]):void 0)}function p_(t){return t(e=>{let r=e?.current;return r?Du(e?.byId?.[r]):void 0})}function Eh(t,e){return t(r=>e?r?.items?.find(n=>n.sessionIds?.includes(e))?.path:void 0)}var Qy=require("react");var gu=require("react");var jt=require("react");var Kg={};Ft(Kg,{Axis:()=>Up,ChartView:()=>xt,ComponentModel:()=>xe,ComponentView:()=>st,List:()=>cp,Model:()=>Te,PRIORITY:()=>ag,SeriesModel:()=>kt,color:()=>$u,connect:()=>eR,dataTool:()=>lR,dependencies:()=>kP,disConnect:()=>tR,disconnect:()=>NT,dispose:()=>rR,env:()=>ee,extendChartView:()=>Rk,extendComponentModel:()=>Lk,extendComponentView:()=>Nk,extendSeriesModel:()=>Pk,format:()=>Gg,getCoordinateSystemDimensions:()=>nR,getInstanceByDom:()=>lg,getInstanceById:()=>iR,getMap:()=>sR,graphic:()=>Hg,helper:()=>Pg,init:()=>JP,innerDrawElementOnCanvas:()=>ns,matrix:()=>bi,number:()=>Fg,parseGeoJSON:()=>kp,parseGeoJson:()=>kp,registerAction:()=>_n,registerCoordinateSystem:()=>pg,registerCustomSeries:()=>aR,registerLayout:()=>hg,registerLoading:()=>lp,registerLocale:()=>ic,registerMap:()=>vg,registerPostInit:()=>fg,registerPostUpdate:()=>cg,registerPreprocessor:()=>op,registerProcessor:()=>sp,registerTheme:()=>ug,registerTransform:()=>mg,registerUpdateLifecycle:()=>Hl,registerVisual:()=>ki,setCanvasCreator:()=>oR,setPlatformAPI:()=>Ou,throttle:()=>za,time:()=>Vg,use:()=>zt,util:()=>Wg,vector:()=>Br,version:()=>RP,zrUtil:()=>se,zrender:()=>pf});var Ah=function(t,e){return Ah=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},Ah(t,e)};function L(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ah(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var pf={};Ft(pf,{dispose:()=>eO,disposeAll:()=>tO,getElementSSRData:()=>iO,getInstance:()=>rO,init:()=>cf,registerPainter:()=>Nd,registerSSRDataGetter:()=>Pd,version:()=>nO});var gD=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),yD=(function(){function t(){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 t})(),Wi=new yD;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Wi.wxa=!0,Wi.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Wi.worker=!0:!Wi.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Wi.node=!0,Wi.svgSupported=!0):_D(navigator.userAgent,Wi);function _D(t,e){var r=e.browser,i=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var ee=Wi;var se={};Ft(se,{EPSILON:()=>kD,HashMap:()=>y_,RADIAN_TO_DEGREE:()=>kh,assert:()=>Xe,assignProps:()=>Lh,bind:()=>pe,clone:()=>Q,concatArray:()=>Rh,createCanvas:()=>ID,createHashMap:()=>V,createObject:()=>xi,curry:()=>Ce,defaults:()=>re,disableUserSelect:()=>Ls,each:()=>w,eqNaN:()=>_i,extend:()=>N,filter:()=>De,find:()=>Nh,guid:()=>Ms,hasOwn:()=>Me,indexOf:()=>ne,inherits:()=>Os,isArray:()=>P,isArrayLike:()=>Ye,isBuiltInObject:()=>Mh,isDom:()=>Pn,isFunction:()=>G,isGradientObject:()=>yi,isImagePatternObject:()=>Ph,isNumber:()=>le,isObject:()=>F,isPrimitive:()=>io,isRegExp:()=>ND,isString:()=>B,isStringSafe:()=>ao,isTypedArray:()=>Fe,keys:()=>fe,logError:()=>Rn,map:()=>U,merge:()=>ue,mergeAll:()=>OD,mixin:()=>lt,noop:()=>ke,normalizeCssArray:()=>Bn,reduce:()=>St,retrieve:()=>kn,retrieve2:()=>Y,retrieve3:()=>vr,setAsPrimitive:()=>Un,slice:()=>Is,trim:()=>ut});var Mu=12,xD="sans-serif",dr=Mu+"px "+xD,SD=20,bD=100,wD="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function TD(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var i=String.fromCharCode(r+32),n=(t.charCodeAt(r)-SD)/bD;e[i]=n}return e}var CD=TD(wD),Re={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,i){if(!t){var n=Re.createCanvas();t=n&&n.getContext("2d")}if(t)return e!==i&&(e=t.font=i||dr),t.measureText(r);r=r||"",i=i||dr;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||Mu,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=CD[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var i=new Image;return i.onload=e,i.onerror=r,i.src=t,i},getTime:function(){return Date.now?Date.now():+new Date}};function Ou(t){for(var e in Re)Re.hasOwnProperty(e)&&t[e]&&(Re[e]=t[e])}var d_=St(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),v_=St(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),no=Object.prototype.toString,Lu=Array.prototype,ED=Lu.forEach,AD=Lu.filter,Oh=Lu.slice,DD=Lu.map,h_=function(){}.constructor,Iu=h_?h_.prototype:null,Ih="__proto__",Dh=2311,MD=Math.pow(2,53)-1;function Ms(){return Dh>=MD&&(Dh=0),Dh++}function Rn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function Q(t){if(t==null||typeof t!="object")return t;var e=t,r=no.call(t);if(r==="[object Array]"){if(!io(t)){e=[];for(var i=0,n=t.length;i<n;i++)e[i]=Q(t[i])}}else if(v_[r]){if(!io(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var i=0,n=t.length;i<n;i++)e[i]=t[i]}}}else if(!d_[r]&&!io(t)&&!Pn(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==Ih&&(e[o]=Q(t[o]))}return e}function ue(t,e,r){if(!F(e)||!F(t))return r?Q(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==Ih){var n=t[i],a=e[i];F(a)&&F(n)&&!P(a)&&!P(n)&&!Pn(a)&&!Pn(n)&&!Mh(a)&&!Mh(n)&&!io(a)&&!io(n)?ue(n,a,r):(r||!(i in t))&&(t[i]=Q(e[i]))}return t}function OD(t,e){for(var r=t[0],i=1,n=t.length;i<n;i++)r=ue(r,t[i],e);return r}function N(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==Ih&&(t[r]=e[r]);return t}function Lh(t,e,r){t=t||{};for(var i=0;i<r.length;i++){var n=r[i];t[n]=e[n]}return t}function re(t,e,r){for(var i=fe(e),n=0,a=i.length;n<a;n++){var o=i[n];(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var ID=Re.createCanvas;function ne(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r}return-1}function Os(t,e){var r=t.prototype;function i(){}i.prototype=e.prototype,t.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(t.prototype[n]=r[n]);t.prototype.constructor=t,t.superClass=e}function lt(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(r?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else re(t,e,r)}function Ye(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function w(t,e,r){if(t&&e)if(t.forEach&&t.forEach===ED)t.forEach(e,r);else if(t.length===+t.length)for(var i=0,n=t.length;i<n;i++)e.call(r,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function U(t,e,r){if(!t)return[];if(!e)return Is(t);if(t.map&&t.map===DD)return t.map(e,r);for(var i=[],n=0,a=t.length;n<a;n++)i.push(e.call(r,t[n],n,t));return i}function St(t,e,r,i){if(t&&e){for(var n=0,a=t.length;n<a;n++)r=e.call(i,r,t[n],n,t);return r}}function De(t,e,r){if(!t)return[];if(!e)return Is(t);if(t.filter&&t.filter===AD)return t.filter(e,r);for(var i=[],n=0,a=t.length;n<a;n++)e.call(r,t[n],n,t)&&i.push(t[n]);return i}function Nh(t,e,r){if(t&&e){for(var i=0,n=t.length;i<n;i++)if(e.call(r,t[i],i,t))return t[i]}}function fe(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function LD(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return t.apply(e,r.concat(Oh.call(arguments)))}}var pe=Iu&&G(Iu.bind)?Iu.call.bind(Iu.bind):LD;function Ce(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(Oh.call(arguments)))}}function P(t){return Array.isArray?Array.isArray(t):no.call(t)==="[object Array]"}function G(t){return typeof t=="function"}function B(t){return typeof t=="string"}function ao(t){return no.call(t)==="[object String]"}function le(t){return typeof t=="number"}function F(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Mh(t){return!!d_[no.call(t)]}function Fe(t){return!!v_[no.call(t)]}function Pn(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function yi(t){return t.colorStops!=null}function Ph(t){return t.image!=null}function ND(t){return no.call(t)==="[object RegExp]"}function _i(t){return t!==t}function kn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,i=t.length;r<i;r++)if(t[r]!=null)return t[r]}function Y(t,e){return t??e}function vr(t,e,r){return t??e??r}function Is(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return Oh.apply(t,e)}function Bn(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Xe(t,e){if(!t)throw new Error(e)}function ut(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var m_="__ec_primitive__";function Un(t){t[m_]=!0}function io(t){return t[m_]}var PD=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return fe(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&e(r[i],i)},t})(),g_=typeof Map=="function";function RD(){return g_?new Map:new PD}var y_=(function(){function t(e){var r=P(e);this.data=RD();var i=this;e instanceof t?e.each(n):e&&w(e,n);function n(a,o){r?i.set(a,o):i.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(i,n){e.call(r,i,n)})},t.prototype.keys=function(){var e=this.data.keys();return g_?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function V(t){return new y_(t)}function Rh(t,e){for(var r=new t.constructor(t.length+e.length),i=0;i<t.length;i++)r[i]=t[i];for(var n=t.length,i=0;i<e.length;i++)r[i+n]=e[i];return r}function xi(t,e){var r;if(Object.create)r=Object.create(t);else{var i=function(){};i.prototype=t,r=new i}return e&&N(r,e),r}function Ls(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Me(t,e){return t.hasOwnProperty(e)}function ke(){}var kh=180/Math.PI,kD=Number.EPSILON||Math.pow(2,-52);var Br={};Ft(Br,{add:()=>Nu,applyTransform:()=>qe,clone:()=>Bh,copy:()=>BD,create:()=>Si,dist:()=>Hh,distSquare:()=>Yi,distance:()=>Rs,distanceSquare:()=>__,div:()=>HD,dot:()=>GD,len:()=>zh,lenSquare:()=>Fh,length:()=>zD,lengthSquare:()=>FD,lerp:()=>YD,max:()=>gr,min:()=>mr,mul:()=>VD,negate:()=>WD,normalize:()=>Vh,scale:()=>Ps,scaleAndAdd:()=>UD,set:()=>Ns,sub:()=>Uh});function Si(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function BD(t,e){return t[0]=e[0],t[1]=e[1],t}function Bh(t){return[t[0],t[1]]}function Ns(t,e,r){return t[0]=e,t[1]=r,t}function Nu(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function UD(t,e,r,i){return t[0]=e[0]+r[0]*i,t[1]=e[1]+r[1]*i,t}function Uh(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function zh(t){return Math.sqrt(Fh(t))}var zD=zh;function Fh(t){return t[0]*t[0]+t[1]*t[1]}var FD=Fh;function VD(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function HD(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function GD(t,e){return t[0]*e[0]+t[1]*e[1]}function Ps(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function Vh(t,e){var r=zh(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function Rs(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Hh=Rs;function __(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Yi=__;function WD(t,e){return t[0]=-e[0],t[1]=-e[1],t}function YD(t,e,r,i){return t[0]=e[0]+i*(r[0]-e[0]),t[1]=e[1]+i*(r[1]-e[1]),t}function qe(t,e,r){var i=e[0],n=e[1];return t[0]=r[0]*i+r[2]*n+r[4],t[1]=r[1]*i+r[3]*n+r[5],t}function mr(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function gr(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var oo=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),XD=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new oo(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var i=e.offsetX,n=e.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,r.drift(a,o,e),this.handler.dispatchToElement(new oo(r,e),"drag",e.event);var s=this.handler.findHover(i,n,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new oo(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new oo(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new oo(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new oo(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),x_=XD;var qD=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(n=i,i=r,r=null),!i||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===i)return this;var l={h:i,query:r,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(r){if(i[e]){for(var n=[],a=0,o=i[e].length;a<o;a++)i[e][a].h!==r&&n.push(i[e][a]);i[e]=n}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},t.prototype.trigger=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=r.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=r.length,s=r[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),vt=qD;var KD=Math.log(2);function Gh(t,e,r,i,n,a){var o=i+"-"+n,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/KD);return t[r][l]}for(var u=i|1<<r,f=r+1;i&1<<f;)f++;for(var c=0,p=0,h=0;p<s;p++){var d=1<<p;d&n||(c+=(h%2?-1:1)*t[r][p]*Gh(t,e-1,f,u,n|d,a),h++)}return a[o]=c,c}function Wh(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},n=Gh(r,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Gh(r,7,o===0?1:0,1<<o,1<<s,i)/n*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var Pu="___zrEVENTSAVED",Yh=[];function S_(t,e,r,i,n){return Ru(Yh,e,i,n,!0)&&Ru(t,r,Yh[0],Yh[1])}function b_(t,e){t&&r(t),e&&r(e);function r(i){var n=i[Pu];n&&(n.clearMarkers&&n.clearMarkers(),delete i[Pu])}}function Ru(t,e,r,i,n){if(e.getBoundingClientRect&&ee.domSupported&&!Xh(e)){var a=e[Pu]||(e[Pu]={}),o=ZD(e,a),s=jD(o,a,n);if(s)return s(t,r,i),!0}return!1}function ZD(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[u]+":0",i[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){w(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function jD(t,e,r){for(var i=r?"invTrans":"trans",n=e[i],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,p=f.left,h=f.top;o.push(p,h),l=l&&a&&p===a[c]&&h===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[i]=r?Wh(s,o):Wh(o,s))}function Xh(t){return t.nodeName.toUpperCase()==="CANVAS"}var $D=/([&<>"'])/g,QD={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function nt(t){return t==null?"":(t+"").replace($D,function(e,r){return QD[r]})}var JD=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,qh=[],eM=ee.browser.firefox&&+ee.browser.version.split(".")[0]<39;function ku(t,e,r,i){return r=r||{},i?w_(t,e,r):eM&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):w_(t,e,r),r}function w_(t,e,r){if(ee.domSupported&&t.getBoundingClientRect){var i=e.clientX,n=e.clientY;if(Xh(t)){var a=t.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(Ru(qh,t,i,n)){r.zrX=qh[0],r.zrY=qh[1];return}}r.zrX=r.zrY=0}function Bu(t){return t||window.event}function Vt(t,e,r){if(e=Bu(e),e.zrX!=null)return e;var i=e.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&ku(t,o,e,r)}else{ku(t,e,e,r);var a=tM(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&JD.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function tM(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,i=t.deltaY;if(r==null||i==null)return e;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function T_(t,e,r,i){t.addEventListener(e,r,i)}function C_(t,e,r,i){t.removeEventListener(e,r,i)}var Uu=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var A_=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,i){return this._doTrack(e,r,i),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,i){var n=e.touches;if(n){for(var a={points:[],touches:[],target:r,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=ku(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in Zh)if(Zh.hasOwnProperty(r)){var i=Zh[r](this._track,e);if(i)return i}},t})();function E_(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function rM(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Zh={pinch:function(t,e){var r=t.length;if(r){var i=(t[r-1]||{}).points,n=(t[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=E_(i)/E_(n);!isFinite(a)&&(a=1),e.pinchScale=a;var o=rM(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};var bi={};Ft(bi,{clone:()=>iM,copy:()=>zn,create:()=>mt,identity:()=>yr,invert:()=>Qt,mul:()=>Ur,rotate:()=>Fn,scale:()=>jh,translate:()=>so});function mt(){return[1,0,0,1,0,0]}function yr(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function zn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Ur(t,e,r){var i=e[0]*r[0]+e[2]*r[1],n=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=i,t[1]=n,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function so(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function Fn(t,e,r,i){i===void 0&&(i=[0,0]);var n=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=n*c+s*f,t[1]=-n*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-i[0])+f*(u-i[1])+i[0],t[5]=c*(u-i[1])-f*(o-i[0])+i[1],t}function jh(t,e,r){var i=r[0],n=r[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function Qt(t,e){var r=e[0],i=e[2],n=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*i;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-i*l,t[3]=r*l,t[4]=(i*s-o*n)*l,t[5]=(a*n-r*s)*l,t):null}function iM(t){var e=mt();return zn(e,t),e}var nM=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,i=this.y-e.y;return Math.sqrt(r*r+i*i)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,i=this.y-e.y;return r*r+i*i},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,i=this.y;return this.x=e[0]*r+e[2]*i+e[4],this.y=e[1]*r+e[3]*i+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,i){e.x=r,e.y=i},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,i){e.x=r.x+i.x,e.y=r.y+i.y},t.sub=function(e,r,i){e.x=r.x-i.x,e.y=r.y-i.y},t.scale=function(e,r,i){e.x=r.x*i,e.y=r.y*i},t.scaleAndAdd=function(e,r,i,n){e.x=r.x+i.x*n,e.y=r.y+i.y*n},t.lerp=function(e,r,i,n){var a=1-n;e.x=a*r.x+n*i.x,e.y=a*r.y+n*i.y},t})(),Ee=nM;var Yn=Math.min,lo=Math.max,Jh=Math.abs,D_=["x","y"],aM=["width","height"],Vn=new Ee,Hn=new Ee,Gn=new Ee,Wn=new Ee,Jt=td(),ks=Jt.minTv,ed=Jt.maxTv,Bs=[0,0],wi=(function(){function t(e,r,i,n){$h(this,e,r,i,n)}return t.set=function(e,r,i,n,a){return n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),e.x=r,e.y=i,e.width=n,e.height=a,e},t.prototype.union=function(e){var r=Yn(e.x,this.x),i=Yn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=lo(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=lo(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=r,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return oM(mt(),this,e)},t.prototype.intersect=function(e,r,i){return t.intersect(this,e,r,i)},t.intersect=function(e,r,i,n){i&&Ee.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=$h(sM,e.x,e.y,e.width,e.height)),r instanceof t||(r=$h(lM,r.x,r.y,r.width,r.height));var s=!!i;Jt.reset(n,s);var l=Jt.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,p=e.y+e.height-l,h=r.x+l,d=r.x+r.width-l,v=r.y+l,m=r.y+r.height-l;if(u>f||c>p||h>d||v>m)return!1;var g=!(f<h||d<u||p<v||m<c);return(s||a)&&(Bs[0]=1/0,Bs[1]=0,O_(u,f,h,d,0,s,a,o),O_(c,p,v,m,1,s,a,o),s&&Ee.copy(i,g?Jt.useDir?Jt.dirMinTv:ks:ed)),g},t.contain=function(e,r,i){return r>=e.x&&r<=e.x+e.width&&i>=e.y&&i<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){M_(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,i){if(!i){e!==r&&M_(e,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];e.x=r.x*n+o,e.y=r.y*a+s,e.width=r.width*n,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Vn.x=Gn.x=r.x,Vn.y=Wn.y=r.y,Hn.x=Wn.x=r.x+r.width,Hn.y=Gn.y=r.y+r.height,Vn.transform(i),Wn.transform(i),Hn.transform(i),Gn.transform(i),e.x=Yn(Vn.x,Hn.x,Gn.x,Wn.x),e.y=Yn(Vn.y,Hn.y,Gn.y,Wn.y);var l=lo(Vn.x,Hn.x,Gn.x,Wn.x),u=lo(Vn.y,Hn.y,Gn.y,Wn.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,i){var n=i.width/r.width,a=i.height/r.height;return e=yr(e||[]),so(e,e,Ns(Qh,-r.x,-r.y)),jh(e,e,Ns(Qh,n,a)),so(e,e,Ns(Qh,i.x,i.y)),e},t})(),yz=wi.create,$h=wi.set,M_=wi.copy,oM=wi.calculateTransform,_z=wi.applyTransform,xz=wi.contain,sM=new wi(0,0,0,0),lM=new wi(0,0,0,0),Qh=[];function O_(t,e,r,i,n,a,o,s){var l=Jh(e-r),u=Jh(i-t),f=Yn(l,u),c=D_[n],p=D_[1-n],h=aM[n];e<r||i<t?l<u?(a&&(ed[c]=-l),s&&(o[c]=e,o[h]=0)):(a&&(ed[c]=u),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=lo(t,r),o[h]=Yn(e,i)-o[c]),a&&(f<Bs[0]||Jt.useDir)&&(Bs[0]=Yn(f,Bs[0]),(l<u||!Jt.bidirectional)&&(ks[c]=l,ks[p]=0,Jt.useDir&&Jt.calcDirMTV()),(l>=u||!Jt.bidirectional)&&(ks[c]=-u,ks[p]=0,Jt.useDir&&Jt.calcDirMTV())))}function td(){var t=0,e=new Ee,r=new Ee,i={minTv:new Ee,maxTv:new Ee,useDir:!1,dirMinTv:new Ee,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=lo(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),r.copy(i.minTv),t=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),f=l*a.y+u*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,n(r.x)&&n(r.y)){o.set(0,0);return}(i.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function n(a){return Jh(a)<1e-10}return i}var j=wi;var L_="silent";function uM(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:fM}}function fM(){Uu(this.event)}var cM=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(vt),Us=(function(){function t(e,r){this.x=e,this.y=r}return t})(),pM=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],rd=new j(0,0,0,0),N_=(function(t){L(e,t);function e(r,i,n,a,o){var s=t.call(this)||this;return s._hovered=new Us(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new cM,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new x_(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(w(pM,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=P_(this,i,n),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 Us(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Us(0,0)},e.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},e.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=uM(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},e.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new Us(r,i);if(I_(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new j(r-u,i-u,l,l),c=a.length-1;c>=0;c--){var p=a[c];p!==n&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(rd.copy(p.getBoundingRect()),p.transform&&rd.applyTransform(p.transform),rd.intersect(f)&&s.push(p))}if(s.length)for(var h=4,d=Math.PI/12,v=Math.PI*2,m=0;m<u;m+=h)for(var g=0;g<v;g+=d){var y=r+m*Math.cos(g),_=i+m*Math.sin(g);if(I_(s,o,y,_,n),o.target)return o}}return o},e.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new A_);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Us;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(vt);w(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){N_.prototype[t]=function(e){var r=e.zrX,i=e.zrY,n=P_(this,r,i),a,o;if((t!=="mouseup"||!n)&&(a=this.findHover(r,i),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||Hh(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function hM(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var i=t,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(e,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?L_:!0}return!1}function I_(t,e,r,i,n){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==n&&!o.ignore&&(s=hM(o,r,i))&&(!e.topTarget&&(e.topTarget=o),s!==L_)){e.target=o;break}}}function P_(t,e,r){var i=t.painter;return e<0||e>i.getWidth()||r<0||r>i.getHeight()}var R_=N_;var U_=32,zs=7;function dM(t){for(var e=0;t>=U_;)e|=t&1,t>>=1;return t+e}function k_(t,e,r,i){var n=e+1;if(n===r)return 1;if(i(t[n++],t[e])<0){for(;n<r&&i(t[n],t[n-1])<0;)n++;vM(t,e,n)}else for(;n<r&&i(t[n],t[n-1])>=0;)n++;return n-e}function vM(t,e,r){for(r--;e<r;){var i=t[e];t[e++]=t[r],t[r--]=i}}function B_(t,e,r,i,n){for(i===e&&i++;i<r;i++){for(var a=t[i],o=e,s=i,l;o<s;)l=o+s>>>1,n(a,t[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function id(t,e,r,i,n,a){var o=0,s=0,l=1;if(a(t,e[r+n])>0){for(s=i-n;l<s&&a(t,e[r+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&a(t,e[r+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])>0?o=f+1:l=f}return l}function nd(t,e,r,i,n,a){var o=0,s=0,l=1;if(a(t,e[r+n])<0){for(s=n+1;l<s&&a(t,e[r+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l<s&&a(t,e[r+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])<0?l=f:o=f+1}return l}function mM(t,e){var r=zs,i,n,a=0,o=[];i=[],n=[];function s(h,d){i[a]=h,n[a]=d,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]<n[h+1]&&h--;else if(n[h]>n[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&n[h-1]<n[h+1]&&h--,f(h)}}function f(h){var d=i[h],v=n[h],m=i[h+1],g=n[h+1];n[h]=v+g,h===a-3&&(i[h+1]=i[h+2],n[h+1]=n[h+2]),a--;var y=nd(t[m],t,d,v,0,e);d+=y,v-=y,v!==0&&(g=id(t[d+v-1],t,m,g,g-1,e),g!==0&&(v<=g?c(d,v,m,g):p(d,v,m,g)))}function c(h,d,v,m){var g=0;for(g=0;g<d;g++)o[g]=t[h+g];var y=0,_=v,x=h;if(t[x++]=t[_++],--m===0){for(g=0;g<d;g++)t[x+g]=o[y+g];return}if(d===1){for(g=0;g<m;g++)t[x+g]=t[_+g];t[x+m]=o[y];return}for(var S=r,b,T,C;;){b=0,T=0,C=!1;do if(e(t[_],o[y])<0){if(t[x++]=t[_++],T++,b=0,--m===0){C=!0;break}}else if(t[x++]=o[y++],b++,T=0,--d===1){C=!0;break}while((b|T)<S);if(C)break;do{if(b=nd(t[_],o,y,d,0,e),b!==0){for(g=0;g<b;g++)t[x+g]=o[y+g];if(x+=b,y+=b,d-=b,d<=1){C=!0;break}}if(t[x++]=t[_++],--m===0){C=!0;break}if(T=id(o[y],t,_,m,0,e),T!==0){for(g=0;g<T;g++)t[x+g]=t[_+g];if(x+=T,_+=T,m-=T,m===0){C=!0;break}}if(t[x++]=o[y++],--d===1){C=!0;break}S--}while(b>=zs||T>=zs);if(C)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),d===1){for(g=0;g<m;g++)t[x+g]=t[_+g];t[x+m]=o[y]}else{if(d===0)throw new Error;for(g=0;g<d;g++)t[x+g]=o[y+g]}}function p(h,d,v,m){var g=0;for(g=0;g<m;g++)o[g]=t[v+g];var y=h+d-1,_=m-1,x=v+m-1,S=0,b=0;if(t[x--]=t[y--],--d===0){for(S=x-(m-1),g=0;g<m;g++)t[S+g]=o[g];return}if(m===1){for(x-=d,y-=d,b=x+1,S=y+1,g=d-1;g>=0;g--)t[b+g]=t[S+g];t[x]=o[_];return}for(var T=r;;){var C=0,A=0,E=!1;do if(e(o[_],t[y])<0){if(t[x--]=t[y--],C++,A=0,--d===0){E=!0;break}}else if(t[x--]=o[_--],A++,C=0,--m===1){E=!0;break}while((C|A)<T);if(E)break;do{if(C=d-nd(o[_],t,h,d,d-1,e),C!==0){for(x-=C,y-=C,d-=C,b=x+1,S=y+1,g=C-1;g>=0;g--)t[b+g]=t[S+g];if(d===0){E=!0;break}}if(t[x--]=o[_--],--m===1){E=!0;break}if(A=m-id(t[y],o,0,m,m-1,e),A!==0){for(x-=A,_-=A,m-=A,b=x+1,S=_+1,g=0;g<A;g++)t[b+g]=o[S+g];if(m<=1){E=!0;break}}if(t[x--]=t[y--],--d===0){E=!0;break}T--}while(C>=zs||A>=zs);if(E)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),m===1){for(x-=d,y-=d,b=x+1,S=y+1,g=d-1;g>=0;g--)t[b+g]=t[S+g];t[x]=o[_]}else{if(m===0)throw new Error;for(S=x-(m-1),g=0;g<m;g++)t[S+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Xn(t,e,r,i){r||(r=0),i||(i=t.length);var n=i-r;if(!(n<2)){var a=0;if(n<U_){a=k_(t,r,i,e),B_(t,r,i,r+a,e);return}var o=mM(t,e),s=dM(n);do{if(a=k_(t,r,i,e),a<s){var l=n;l>s&&(l=s),B_(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var Ke=1,qn=2,Xi=4;var z_=!1;function ad(){z_||(z_=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function F_(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var gM=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=F_}return t.prototype.traverse=function(e,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var i=this._displayList;return(e||!i.length)&&this.updateDisplayList(r),i},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,a=r.length;n<a;n++)this._updateAndAddDisplayable(r[n],null,e);i.length=this._displayListLen,Xn(i,F_)},t.prototype._updateAndAddDisplayable=function(e,r,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||n)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=n,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),p=0;p<c.length;p++){var h=c[p];e.__dirty&&(h.__dirty|=Ke),this._updateAndAddDisplayable(h,s,i)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(ad(),d.z=0),isNaN(d.z2)&&(ad(),d.z2=0),isNaN(d.zlevel)&&(ad(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var v=e.getDecalElement&&e.getDecalElement();v&&this._updateAndAddDisplayable(v,s,i);var m=e.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,i);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,i)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,i=e.length;r<i;r++)this.delRoot(e[r]);return}var n=ne(this._roots,e);n>=0&&this._roots.splice(n,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),V_=gM;var H_;H_=ee.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Fs=H_;var zu={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)))},elasticOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-zu.bounceOut(1-t)},bounceOut:function(t){return t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375},bounceInOut:function(t){return t<.5?zu.bounceIn(t*2)*.5:zu.bounceOut(t*2-1)*.5+.5}},Fu=zu;var Vu=Math.pow,Ki=Math.sqrt,Gu=1e-8,W_=1e-4,G_=Ki(3),Hu=1/3,Jr=Si(),_r=Si(),uo=Si();function qi(t){return t>-Gu&&t<Gu}function Y_(t){return t>Gu||t<-Gu}function Be(t,e,r,i,n){var a=1-n;return a*a*(a*t+3*n*e)+n*n*(n*i+3*a*r)}function od(t,e,r,i,n){var a=1-n;return 3*(((e-t)*a+2*(r-e)*n)*a+(i-r)*n*n)}function Kn(t,e,r,i,n,a){var o=i+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-n,f=s*s-3*o*l,c=s*l-9*o*u,p=l*l-3*s*u,h=0;if(qi(f)&&qi(c))if(qi(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[h++]=d)}else{var v=c*c-4*f*p;if(qi(v)){var m=c/f,d=-s/o+m,g=-m/2;d>=0&&d<=1&&(a[h++]=d),g>=0&&g<=1&&(a[h++]=g)}else if(v>0){var y=Ki(v),_=f*s+1.5*o*(-c+y),x=f*s+1.5*o*(-c-y);_<0?_=-Vu(-_,Hu):_=Vu(_,Hu),x<0?x=-Vu(-x,Hu):x=Vu(x,Hu);var d=(-s-(_+x))/(3*o);d>=0&&d<=1&&(a[h++]=d)}else{var S=(2*f*s-3*o*c)/(2*Ki(f*f*f)),b=Math.acos(S)/3,T=Ki(f),C=Math.cos(b),d=(-s-2*T*C)/(3*o),g=(-s+T*(C+G_*Math.sin(b)))/(3*o),A=(-s+T*(C-G_*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[h++]=d),g>=0&&g<=1&&(a[h++]=g),A>=0&&A<=1&&(a[h++]=A)}}return h}function Wu(t,e,r,i,n){var a=6*r-12*e+6*t,o=9*e+3*i-3*t-9*r,s=3*e-3*t,l=0;if(qi(o)){if(Y_(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(qi(f))n[0]=-a/(2*o);else if(f>0){var c=Ki(f),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function fo(t,e,r,i,n,a){var o=(e-t)*n+t,s=(r-e)*n+e,l=(i-r)*n+r,u=(s-o)*n+o,f=(l-s)*n+s,c=(f-u)*n+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=i}function X_(t,e,r,i,n,a,o,s,l,u,f){var c,p=.005,h=1/0,d,v,m,g;Jr[0]=l,Jr[1]=u;for(var y=0;y<1;y+=.05)_r[0]=Be(t,r,n,o,y),_r[1]=Be(e,i,a,s,y),m=Yi(Jr,_r),m<h&&(c=y,h=m);h=1/0;for(var _=0;_<32&&!(p<W_);_++)d=c-p,v=c+p,_r[0]=Be(t,r,n,o,d),_r[1]=Be(e,i,a,s,d),m=Yi(_r,Jr),d>=0&&m<h?(c=d,h=m):(uo[0]=Be(t,r,n,o,v),uo[1]=Be(e,i,a,s,v),g=Yi(uo,Jr),v<=1&&g<h?(c=v,h=g):p*=.5);return f&&(f[0]=Be(t,r,n,o,c),f[1]=Be(e,i,a,s,c)),Ki(h)}function q_(t,e,r,i,n,a,o,s,l){for(var u=t,f=e,c=0,p=1/l,h=1;h<=l;h++){var d=h*p,v=Be(t,r,n,o,d),m=Be(e,i,a,s,d),g=v-u,y=m-f;c+=Math.sqrt(g*g+y*y),u=v,f=m}return c}function at(t,e,r,i){var n=1-i;return n*(n*t+2*i*e)+i*i*r}function sd(t,e,r,i){return 2*((1-i)*(e-t)+i*(r-e))}function K_(t,e,r,i,n){var a=t-2*e+r,o=2*(e-t),s=t-i,l=0;if(qi(a)){if(Y_(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(qi(f)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var c=Ki(f),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function Yu(t,e,r){var i=t+r-2*e;return i===0?.5:(t-e)/i}function co(t,e,r,i,n){var a=(e-t)*i+t,o=(r-e)*i+e,s=(o-a)*i+a;n[0]=t,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function Z_(t,e,r,i,n,a,o,s,l){var u,f=.005,c=1/0;Jr[0]=o,Jr[1]=s;for(var p=0;p<1;p+=.05){_r[0]=at(t,r,n,p),_r[1]=at(e,i,a,p);var h=Yi(Jr,_r);h<c&&(u=p,c=h)}c=1/0;for(var d=0;d<32&&!(f<W_);d++){var v=u-f,m=u+f;_r[0]=at(t,r,n,v),_r[1]=at(e,i,a,v);var h=Yi(_r,Jr);if(v>=0&&h<c)u=v,c=h;else{uo[0]=at(t,r,n,m),uo[1]=at(e,i,a,m);var g=Yi(uo,Jr);m<=1&&g<c?(u=m,c=g):f*=.5}}return l&&(l[0]=at(t,r,n,u),l[1]=at(e,i,a,u)),Ki(c)}function j_(t,e,r,i,n,a,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var p=c*f,h=at(t,r,n,p),d=at(e,i,a,p),v=h-s,m=d-l;u+=Math.sqrt(v*v+m*m),s=h,l=d}return u}var yM=/cubic-bezier\(([0-9,\.e ]+)\)/;function Xu(t){var e=t&&yM.exec(t);if(e){var r=e[1].split(","),i=+ut(r[0]),n=+ut(r[1]),a=+ut(r[2]),o=+ut(r[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Kn(0,i,a,1,l,s)&&Be(0,n,o,1,s[0])}}}var _M=(function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||ke,this.ondestroy=e.ondestroy||ke,this.onrestart=e.onrestart||ke,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=e-this._startTime-this._pausedTime,a=n/i;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=n%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=G(e)?e:Fu[e]||Xu(e)},t})(),$_=_M;var $u={};Ft($u,{fastLerp:()=>r0,fastMapToColor:()=>CM,lerp:()=>Zu,lift:()=>pd,liftColor:()=>ju,lum:()=>Zn,mapToColor:()=>EM,modifyAlpha:()=>AM,modifyHSL:()=>ho,parse:()=>bt,parseCssFloat:()=>ji,parseCssInt:()=>Ku,random:()=>DM,stringify:()=>ti,toHex:()=>TM});var Q_=(function(){function t(e){this.value=e}return t})();var xM=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new Q_(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,i=e.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})();var SM=(function(){function t(e){this._list=new xM,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var i=this._list,n=this._map,a=null;if(n[e]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Q_(r),s.key=e,i.insertEntry(s),n[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),ei=SM;var J_={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 zr(t){return t=Math.round(t),t<0?0:t>255?255:t}function bM(t){return t=Math.round(t),t<0?0:t>360?360:t}function Vs(t){return t<0?0:t>1?1:t}function Ku(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?zr(parseFloat(e)/100*255):zr(parseInt(e,10))}function ji(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Vs(parseFloat(e)/100):Vs(parseFloat(e))}function ud(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function Zi(t,e,r){return t+(e-t)*r}function xr(t,e,r,i,n){return t[0]=e,t[1]=r,t[2]=i,t[3]=n,t}function fd(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var t0=new ei(20),qu=null;function po(t,e){qu&&fd(qu,e),qu=t0.put(t,qu||e.slice())}function bt(t,e){if(t){e=e||[];var r=t0.get(t);if(r)return fd(e,r);t=t+"";var i=t.replace(/ /g,"").toLowerCase();if(i in J_)return fd(e,J_[i]),po(t,e),e;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){xr(e,0,0,0,1);return}return xr(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),po(t,e),e}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){xr(e,0,0,0,1);return}return xr(e,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),po(t,e),e}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?xr(e,+u[0],+u[1],+u[2],1):xr(e,0,0,0,1);f=ji(u.pop());case"rgb":if(u.length>=3)return xr(e,Ku(u[0]),Ku(u[1]),Ku(u[2]),u.length===3?f:ji(u[3])),po(t,e),e;xr(e,0,0,0,1);return;case"hsla":if(u.length!==4){xr(e,0,0,0,1);return}return u[3]=ji(u[3]),cd(u,e),po(t,e),e;case"hsl":if(u.length!==3){xr(e,0,0,0,1);return}return cd(u,e),po(t,e),e;default:return}}xr(e,0,0,0,1)}}function cd(t,e){var r=(parseFloat(t[0])%360+360)%360/360,i=ji(t[1]),n=ji(t[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return e=e||[],xr(e,zr(ud(o,a,r+1/3)*255),zr(ud(o,a,r)*255),zr(ud(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function wM(t){if(t){var e=t[0]/255,r=t[1]/255,i=t[2]/255,n=Math.min(e,r,i),a=Math.max(e,r,i),o=a-n,s=(a+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+n):u=o/(2-a-n);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,p=((a-i)/6+o/2)/o;e===a?l=p-c:r===a?l=1/3+f-p:i===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return t[3]!=null&&h.push(t[3]),h}}function pd(t,e){var r=bt(t);if(r){for(var i=0;i<3;i++)e<0?r[i]=r[i]*(1-e)|0:r[i]=(255-r[i])*e+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return ti(r,r.length===4?"rgba":"rgb")}}function TM(t){var e=bt(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function r0(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var i=t*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=e[n],s=e[a],l=i-n;return r[0]=zr(Zi(o[0],s[0],l)),r[1]=zr(Zi(o[1],s[1],l)),r[2]=zr(Zi(o[2],s[2],l)),r[3]=Vs(Zi(o[3],s[3],l)),r}}var CM=r0;function Zu(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var i=t*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=bt(e[n]),s=bt(e[a]),l=i-n,u=ti([zr(Zi(o[0],s[0],l)),zr(Zi(o[1],s[1],l)),zr(Zi(o[2],s[2],l)),Vs(Zi(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:n,rightIndex:a,value:i}:u}}var EM=Zu;function ho(t,e,r,i){var n=bt(t);if(t)return n=wM(n),e!=null&&(n[0]=bM(G(e)?e(n[0]):e)),r!=null&&(n[1]=ji(G(r)?r(n[1]):r)),i!=null&&(n[2]=ji(G(i)?i(n[2]):i)),ti(cd(n),"rgba")}function AM(t,e){var r=bt(t);if(r&&e!=null)return r[3]=Vs(e),ti(r,"rgba")}function ti(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function Zn(t,e){var r=bt(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function DM(){return ti([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var e0=new ei(100);function ju(t){if(B(t)){var e=e0.get(t);return e||(e=pd(t,-.1),e0.put(t,e)),e}else if(yi(t)){var r=N({},t);return r.colorStops=U(t.colorStops,function(i){return{offset:i.offset,color:pd(i.color,-.1)}}),r}return t}function i0(t){return t.type==="linear"}function n0(t){return t.type==="radial"}var qz=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(t){return Buffer.from(t).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}})();var dd=Array.prototype.slice;function Ti(t,e,r){return(e-t)*r+t}function hd(t,e,r,i){for(var n=e.length,a=0;a<n;a++)t[a]=Ti(e[a],r[a],i);return t}function MM(t,e,r,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=Ti(e[o][s],r[o][s],i)}return t}function Qu(t,e,r,i){for(var n=e.length,a=0;a<n;a++)t[a]=e[a]+r[a]*i;return t}function a0(t,e,r,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*i}return t}function OM(t,e){for(var r=t.length,i=e.length,n=r>i?e:t,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function IM(t,e,r){var i=t,n=e;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var l=a;l<o;l++)i.push(r===1?n[l]:dd.call(n[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(r===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function Ws(t){if(Ye(t)){var e=t.length;if(Ye(t[0])){for(var r=[],i=0;i<e;i++)r.push(dd.call(t[i]));return r}return dd.call(t)}return t}function tf(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function LM(t){return Ye(t&&t[0])?2:1}var Ju=0,rf=1,l0=2,Gs=3,vd=4,md=5,o0=6;function s0(t){return t===vd||t===md}function ef(t){return t===rf||t===l0}var Hs=[0,0,0,0],NM=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=o0,l=r;if(Ye(r)){var u=LM(r);s=u,(u===1&&!le(r[0])||u===2&&!le(r[0][0]))&&(o=!0)}else if(le(r)&&!_i(r))s=Ju;else if(B(r))if(!isNaN(+r))s=Ju;else{var f=bt(r);f&&(l=f,s=Gs)}else if(yi(r)){var c=N({},l);c.colorStops=U(r.colorStops,function(h){return{offset:h.offset,color:bt(h.color)}}),i0(r)?s=vd:n0(r)&&(s=md),l=c}a===0?this.valType=s:(s!==this.valType||s===o0)&&(o=!0),this.discrete=this.discrete||o;var p={time:e,value:l,rawValue:r,percent:0};return i&&(p.easing=i,p.easingFunc=G(i)?i:Fu[i]||Xu(i)),n.push(p),p},t.prototype.prepare=function(e,r){var i=this.keyframes;this._needsSort&&i.sort(function(v,m){return v.time-m.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=ef(n),u=s0(n),f=0;f<a;f++){var c=i[f],p=c.value,h=o.value;c.percent=c.time/e,s||(l&&f!==a-1?IM(p,h,n):u&&OM(p.colorStops,h.colorStops))}if(!s&&n!==md&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var d=i[0].value,f=0;f<a;f++)n===Ju?i[f].additiveValue=i[f].value-d:n===Gs?i[f].additiveValue=Qu([],i[f].value,d,-1):ef(n)&&(i[f].additiveValue=n===rf?Qu([],i[f].value,d,-1):a0([],i[f].value,d,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Gs,f,c=this._lastFr,p=Math.min,h,d;if(s===1)h=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var v=p(c+1,s-1);for(f=v;f>=0&&!(o[f].percent<=r);f--);f=p(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=p(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=r;var m=d.percent-h.percent,g=m===0?1:p((r-h.percent)/m,1);d.easingFunc&&(g=d.easingFunc(g));var y=i?this._additiveValue:u?Hs:e[l];if((ef(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?h.rawValue:d.rawValue;else if(ef(a))a===rf?hd(y,h[n],d[n],g):MM(y,h[n],d[n],g);else if(s0(a)){var _=h[n],x=d[n],S=a===vd;e[l]={type:S?"linear":"radial",x:Ti(_.x,x.x,g),y:Ti(_.y,x.y,g),colorStops:U(_.colorStops,function(T,C){var A=x.colorStops[C];return{offset:Ti(T.offset,A.offset,g),color:tf(hd([],T.color,A.color,g))}}),global:x.global},S?(e[l].x2=Ti(_.x2,x.x2,g),e[l].y2=Ti(_.y2,x.y2,g)):e[l].r=Ti(_.r,x.r,g)}else if(u)hd(y,h[n],d[n],g),i||(e[l]=tf(y));else{var b=Ti(h[n],d[n],g);i?this._additiveValue=b:e[l]=b}i&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,i=this.propName,n=this._additiveValue;r===Ju?e[i]=e[i]+n:r===Gs?(bt(e[i],Hs),Qu(Hs,Hs,n,1),e[i]=tf(Hs)):r===rf?Qu(e[i],e[i],n,1):r===l0&&a0(e[i],e[i],n,1)},t})(),PM=(function(){function t(e,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&n){Rn("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,i){return this.whenWithKeys(e,r,fe(r),i)},t.prototype.whenWithKeys=function(e,r,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new NM(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,p=c[c.length-1];u=p&&p.value,f.valType===Gs&&u&&(u=tf(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Ws(u),n),this._trackKeys.push(s)}l.addKeyframe(e,Ws(r[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,i=0;i<r;i++)e[i].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)e[r[i]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new $_({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var d=r._additiveAnimators;if(d){for(var v=!1,m=0;m<d.length;m++)if(d[m]._clip){v=!0;break}v||(r._additiveAnimators=null)}for(var m=0;m<i.length;m++)i[m].step(r._target,h);var g=r._onframeCbs;if(g)for(var m=0;m<g.length;m++)g[m](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return U(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<e.length;a++){var o=i[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,i){if(e){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(e[a]=Ws(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||fe(e);for(var i=0;i<r.length;i++){var n=r[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})(),Ys=PM;function jn(){return new Date().getTime()}var RM=(function(t){L(e,t);function e(r){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},e.prototype.update=function(r){for(var i=jn()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(Fs(i),!r._paused&&r.update())}Fs(i)},e.prototype.start=function(){this._running||(this._time=jn(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=jn(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=jn()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,i){i=i||{},this.start();var n=new Ys(r,i.loop);return this.addAnimator(n),n},e})(vt),u0=RM;var kM=300,gd=ee.domSupported,yd=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=U(t,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:t,touch:e,pointer:i}})(),f0={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},c0=!1;function Sd(t){var e=t.pointerType;return e==="pen"||e==="touch"}function BM(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function _d(t){t&&(t.zrByTouch=!0)}function UM(t,e){return Vt(t.dom,new zM(t,e),!0)}function h0(t,e){for(var r=e,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return i}var zM=(function(){function t(e,r){this.stopPropagation=ke,this.stopImmediatePropagation=ke,this.preventDefault=ke,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),Fr={mousedown:function(t){t=Vt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Vt(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Vt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Vt(this.dom,t);var e=t.toElement||t.relatedTarget;h0(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){c0=!0,t=Vt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){c0||(t=Vt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Vt(this.dom,t),_d(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Fr.mousemove.call(this,t),Fr.mousedown.call(this,t)},touchmove:function(t){t=Vt(this.dom,t),_d(t),this.handler.processGesture(t,"change"),Fr.mousemove.call(this,t)},touchend:function(t){t=Vt(this.dom,t),_d(t),this.handler.processGesture(t,"end"),Fr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<kM&&Fr.click.call(this,t)},pointerdown:function(t){Fr.mousedown.call(this,t)},pointermove:function(t){Sd(t)||Fr.mousemove.call(this,t)},pointerup:function(t){Fr.mouseup.call(this,t)},pointerout:function(t){Sd(t)||Fr.mouseout.call(this,t)}};w(["click","dblclick","contextmenu"],function(t){Fr[t]=function(e){e=Vt(this.dom,e),this.trigger(t,e)}});var bd={pointermove:function(t){Sd(t)||bd.mousemove.call(this,t)},pointerup:function(t){bd.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function FM(t,e){var r=e.domHandlers;ee.pointerEventsSupported?w(yd.pointer,function(i){nf(e,i,function(n){r[i].call(t,n)})}):(ee.touchEventsSupported&&w(yd.touch,function(i){nf(e,i,function(n){r[i].call(t,n),BM(e)})}),w(yd.mouse,function(i){nf(e,i,function(n){n=Bu(n),e.touching||r[i].call(t,n)})}))}function VM(t,e){ee.pointerEventsSupported?w(f0.pointer,r):ee.touchEventsSupported||w(f0.mouse,r);function r(i){function n(a){a=Bu(a),h0(t,a.target)||(a=UM(t,a),e.domHandlers[i].call(t,a))}nf(e,i,n,{capture:!0})}}function nf(t,e,r,i){t.mounted[e]=r,t.listenerOpts[e]=i,T_(t.domTarget,e,r,i)}function xd(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&C_(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var p0=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),HM=(function(t){L(e,t);function e(r,i){var n=t.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new p0(r,Fr),gd&&(n._globalHandlerScope=new p0(document,bd)),FM(n,n._localHandlerScope),n}return e.prototype.dispose=function(){xd(this._localHandlerScope),gd&&xd(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,gd&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?VM(this,i):xd(i)}},e})(vt),d0=HM;var v0=1;ee.hasGlobalWindow&&(v0=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var $n=v0,Xs=.4,qs="#333",Ks="#ccc",m0="#eee";var g0=yr,y0=5e-5;function Qn(t){return t>y0||t<-y0}var Jn=[],vo=[],wd=mt(),Td=Math.abs,_0=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return GM(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Qn(this.rotation)||Qn(this.x)||Qn(this.y)||Qn(this.scaleX-1)||Qn(this.scaleY-1)||Qn(this.skewX)||Qn(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||e)){i&&(g0(i),this.invTransform=null);return}i=i||mt(),r?this.getLocalTransform(i):g0(i),e&&(r?Ur(i,e,i):zn(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||mt(),Qt(this.invTransform,i)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Jn);var i=Jn[0]<0?-1:1,n=Jn[1]<0?-1:1,a=((Jn[0]-i)*r+i)/Jn[0]||0,o=((Jn[1]-n)*r+n)/Jn[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),a=Math.PI/2+n-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||mt(),Ur(vo,e.invTransform,r),r=vo);var i=this.originX,n=this.originY;(i||n)&&(wd[4]=i,wd[5]=n,Ur(vo,r,wd),vo[4]-=i,vo[5]-=n,r=vo),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var i=[e,r],n=this.invTransform;return n&&qe(i,i,n),i},t.prototype.transformCoordToGlobal=function(e,r){var i=[e,r],n=this.transform;return n&&qe(i,i,n),i},t.prototype.getLineScale=function(){var e=this.transform;return e&&Td(e[0]-1)>1e-10&&Td(e[3]-1)>1e-10?Math.sqrt(Td(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){go(this,e)},t.getLocalTransform=function(e,r){r=r||[];var i=e.originX||0,n=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,p=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(i||n||s||l){var d=i+s,v=n+l;r[4]=-d*a-p*v*o,r[5]=-v*o-h*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=p*o,u&&Fn(r,r,u),r[4]+=i+f,r[5]+=n+c,r},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),GM=_0.getLocalTransform;var mo=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function go(t,e){return Lh(t,e,mo)}var yo=_0;function Hr(t){af||(af=new ei(100)),t=t||dr;var e=af.get(t);return e||(e={font:t,strWidthCache:new ei(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Re.measureText("\u56FD",t).width,asciiCharWidth:Re.measureText("a",t).width},af.put(t,e)),e}var af;function WM(t){if(!(Cd>=x0)){t=t||dr;for(var e=[],r=+new Date,i=0;i<=127;i++)e[i]=Re.measureText(String.fromCharCode(i),t).width;var n=+new Date-r;return n>16?Cd=x0:n>2&&Cd++,e}}var Cd=0,x0=5;function Ed(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=WM(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Gr(t,e){var r=t.strWidthCache,i=r.get(e);return i==null&&(i=Re.measureText(e,t.font).width,r.put(e,i)),i}function S0(t,e,r,i){var n=Gr(Hr(e),t),a=Zs(e),o=$i(0,n,r),s=Ci(0,a,i),l=new j(o,s,n,a);return l}function of(t,e,r,i){var n=((t||"")+"").split(`
166
+ `),a=n.length;if(a===1)return S0(n[0],e,r,i);for(var o=new j(0,0,0,0),s=0;s<n.length;s++){var l=S0(n[s],e,r,i);s===0?o.copy(l):o.union(l)}return o}function $i(t,e,r,i){return r==="right"?i?t+=e:t-=e:r==="center"&&(i?t+=e/2:t-=e/2),t}function Ci(t,e,r,i){return r==="middle"?i?t+=e/2:t-=e/2:r==="bottom"&&(i?t+=e:t-=e),t}function Zs(t){return Hr(t).stWideCharWidth}function Vr(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function ea(t,e,r){var i=e.position||"inside",n=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(i instanceof Array)l+=Vr(i[0],r.width),u+=Vr(i[1],r.height),f=null,c=null;else switch(i){case"left":l-=n,u+=s,f="right",c="middle";break;case"right":l+=n+o,u+=s,c="middle";break;case"top":l+=o/2,u-=n,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=n,u+=s,c="middle";break;case"insideRight":l+=o-n,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=a-n,f="center",c="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=a-n,c="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,f="right",c="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=c,t}var Ad="__zr_normal__",Dd=mo.concat(["ignore"]),YM=St(mo,function(t,e){return t[e]=!0,t},{ignore:!1}),_o={},XM=new j(0,0,0,0),sf=[],lf=0,xo=1,Id=(function(){function t(e){this.id=Ms(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var u=!1;a.copyTransform(r);var f=i.position!=null,c=i.autoOverflowArea,p=void 0;if((c||f)&&(p=XM,i.layoutRect?p.copy(i.layoutRect):p.copy(this.getBoundingRect()),n||p.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(_o,i,p):ea(_o,i,p),a.x=_o.x,a.y=_o.y,o=_o.align,s=_o.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var d=void 0,v=void 0;h==="center"?(d=p.width*.5,v=p.height*.5):(d=Vr(h[0],p.width),v=Vr(h[1],p.height)),u=!0,a.originX=-a.x+d+(n?0:p.x),a.originY=-a.y+v+(n?0:p.y)}}i.rotation!=null&&(a.rotation=i.rotation);var m=i.offset;m&&(a.x+=m[0],a.y+=m[1],u||(a.originX=-m[0],a.originY=-m[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=g.overflowRect=g.overflowRect||new j(0,0,0,0);a.getLocalTransform(sf),Qt(sf,sf),j.copy(y,p),y.applyTransform(sf)}else g.overflowRect=null;var _=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,x=void 0,S=void 0,b=void 0;_&&this.canBeInsideText()?(x=i.insideFill,S=i.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(x),b=!0)):(x=i.outsideFill,S=i.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(x),b=!0)),x=x||"#000",(x!==g.fill||S!==g.stroke||b!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=x,g.stroke=S,g.autoStroke=b,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Ke,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ks:qs},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&bt(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,ti(i,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},N(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(F(e))for(var i=e,n=fe(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==Ad)){var o=n.targetName,s=o?r[o]:r;n.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,Dd)},t.prototype._savePrimaryToNormal=function(e,r,i){for(var n=0;n<i.length;n++){var a=i[n];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Ad,!1,e)},t.prototype.useState=function(e,r,i,n){var a=e===Ad,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ne(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){Rn("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=this._textContent,c=w0(this,f,u,n);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,r,C0(this,i,l),l);var p=this._textGuide;return f&&f.useState(e,r,i,!!c),p&&p.useState(e,r,i,!!c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=lf,this.__dirty&=~Ke),u}}},t.prototype.useStates=function(e,r,i){if(!e.length)this.clearStates();else{var n=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&n.push(f)}var c=n[o-1],p=this._textContent,h=w0(this,p,c,i);h&&!this.__inHover&&(this.__inHover=h);var d=this._mergeStates(n),v=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,C0(this,r,v),v);var m=this._textGuide;p&&p.useStates(e,r,!!h),m&&m.useStates(e,r,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=lf,this.__dirty&=~Ke)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=ne(this.currentStates,e);if(r>=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},t.prototype.replaceState=function(e,r,i){var n=this.currentStates.slice(),a=ne(n,e),o=ne(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},i,n=0;n<e.length;n++){var a=e[n];N(r,a),a.textConfig&&(i=i||{},N(i,a.textConfig))}return i&&(r.textConfig=i),r},t.prototype._applyStateObj=function(e,r,i,n,a,o){if(this.__inHover!==xo){var s=!(r&&n);r&&r.textConfig?(this.textConfig=N({},n?this.textConfig:i.textConfig),N(this.textConfig,r.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<Dd.length;f++){var c=Dd[f],p=a&&YM[c];r&&r[c]!=null?p?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&i[c]!=null&&(p?(u=!0,l[c]=i[c]):this[c]=i[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(r||i)[d]:r||i)}u&&this._transitionState(e,l,o)}},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new yo,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),N(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Ke;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.addAnimator(r[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.removeAnimator(r[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,i){var n=e?this[e]:this,a=new Ys(n,r,i);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var i=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(r)}).done(function(){var a=n.animators,o=ne(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,i){Md(this,e,r,i)},t.prototype.animateFrom=function(e,r,i){Md(this,e,r,i,!0)},t.prototype._transitionState=function(e,r,i,n){for(var a=Md(this,r,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=lf,e.__dirty=Ke;var r={};function i(a,o,s){r[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[a+o+s]=!0)}function n(a,o,s,l){Object.defineProperty(e,a,{get:function(){if(!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(p){f[s]=p}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(p){f[l]=p}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),t})();lt(Id,vt);lt(Id,yo);function Md(t,e,r,i,n){r=r||{};var a=[];E0(t,"",t,e,r,i,a,n);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(d,v){r.during(v)});for(var p=0;p<a.length;p++){var h=a[p];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function Od(t,e,r){for(var i=0;i<r;i++)t[i]=e[i]}function qM(t){return Ye(t[0])}function KM(t,e,r){if(Ye(e[r]))if(Ye(t[r])||(t[r]=[]),Fe(e[r])){var i=e[r].length;t[r].length!==i&&(t[r]=new e[r].constructor(i),Od(t[r],e[r],i))}else{var n=e[r],a=t[r],o=n.length;if(qM(n))for(var s=n[0].length,l=0;l<o;l++)a[l]?Od(a[l],n[l],s):a[l]=Array.prototype.slice.call(n[l]);else Od(a,n,o);a.length=n.length}else t[r]=e[r]}function ZM(t,e){return t===e||Ye(t)&&Ye(e)&&jM(t,e)}function jM(t,e){var r=t.length;if(r!==e.length)return!1;for(var i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}function E0(t,e,r,i,n,a,o,s){for(var l=fe(i),u=n.duration,f=n.delay,c=n.additive,p=n.setToFinal,h=!F(a),d=t.animators,v=[],m=0;m<l.length;m++){var g=l[m],y=i[g];if(y!=null&&r[g]!=null&&(h||a[g]))if(F(y)&&!Ye(y)&&!yi(y)){if(e){s||(r[g]=y,t.updateDuringAnimation(e));continue}E0(t,g,r[g],y,n,a&&a[g],o,s)}else v.push(g);else s||(r[g]=y,t.updateDuringAnimation(e),v.push(g))}var _=v.length;if(!c&&_)for(var x=0;x<d.length;x++){var S=d[x];if(S.targetName===e){var b=S.stopTracks(v);if(b){var T=ne(d,S);d.splice(T,1)}}}if(n.force||(v=De(v,function(D){return!ZM(i[D],r[D])}),_=v.length),_>0||n.force&&!o.length){var C=void 0,A=void 0,E=void 0;if(s){A={},p&&(C={});for(var x=0;x<_;x++){var g=v[x];A[g]=r[g],p?C[g]=i[g]:r[g]=i[g]}}else if(p){E={};for(var x=0;x<_;x++){var g=v[x];E[g]=Ws(r[g]),KM(r,i,g)}}var S=new Ys(r,!1,!1,c?De(d,function(O){return O.targetName===e}):null);S.targetName=e,n.scope&&(S.scope=n.scope),p&&C&&S.whenWithKeys(0,C,v),E&&S.whenWithKeys(0,E,v),S.whenWithKeys(u??500,s?A:i,v).delay(f||0),t.addAnimator(S,e),o.push(S)}}function w0(t,e,r,i){return!(r&&r.hoverLayer||i)||T0(t)||e&&T0(e)?lf:xo}function T0(t){return t.type==="text"||t.type==="tspan"}function C0(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var uf=Id;var A0=(function(t){L(e,t);function e(r){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===r)return i[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,i){if(r&&r!==this&&r.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,i){var n=ne(this._children,r);return n>=0&&this.replaceAt(i,n),this},e.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(r){var i=this.__zr,n=this._children,a=ne(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n<r.length;n++){var a=r[n];i&&a.removeSelfFromZr(i),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];r.call(i,o,a)}return this},e.prototype.traverse=function(r,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=r.call(i,a);a.isGroup&&!o&&a.traverse(r,i)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var i=new j(0,0,0,0),n=r||this._children,a=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(j.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},e})(uf);A0.prototype.type="group";var we=A0;var ff={},ta={};function $M(t){delete ta[t]}function QM(t){if(!t)return!1;if(typeof t=="string")return Zn(t,1)<Xs;if(t.colorStops){for(var e=t.colorStops,r=0,i=e.length,n=0;n<i;n++)r+=Zn(e[n].color,1);return r/=i,r<Xs}return!1}var JM=(function(){function t(e,r,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=r,this.id=e;var a=new V_,o=i.renderer||"canvas";ff[o]||(o=fe(ff)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new ff[o](r,a,i,e),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!ee.node&&!ee.worker&&!l?new d0(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,c=f==null||f==="auto"?ee.touchEventsSupported:!!f,p=44,h;c&&(h=Y(i.pointerSize,p)),this.handler=new R_(a,s,u,s.root,h),this.animation=new u0({stage:{update:l?null:function(){return n._flush(!1)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=QM(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,i=jn(),n=this._needsRefresh,a=this._needsRefreshHover;(n||a)&&(r=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:a}));var o=jn();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,i){return this._disposed||this.handler.on(e,r,i),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof we&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,$M(this.id))},t})();function cf(t,e){var r=new JM(Ms(),t,e);return ta[r.id]=r,r}function eO(t){t.dispose()}function tO(){for(var t in ta)ta.hasOwnProperty(t)&&ta[t].dispose();ta={}}function rO(t){return ta[t]}function Nd(t,e){ff[t]=e}var Ld;function iO(t){if(typeof Ld=="function")return Ld(t)}function Pd(t){Ld=t}var nO="6.1.0";var D0=1e-4,hf=20;function aO(t){return t.replace(/^\s+|\s+$/g,"")}var Ue=Math.min,ce=Math.max,Le=Math.abs,Ht=Math.round,Sr=Math.floor,Ji=Math.ceil,en=Math.pow,Qi=Math.log,js=Math.LN10,oO=Math.PI,sO=Math.random;function $s(t,e,r,i){var n=e[0],a=e[1],o=r[0],s=r[1],l=a-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(t<=n)return o;if(t>=a)return s}else{if(t>=n)return o;if(t<=a)return s}else{if(t===n)return o;if(t===a)return s}return(t-n)/l*u+o}var Ze=lO;function lO(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return df(t,e,r)}function df(t,e,r){return B(t)?uO(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function uO(t){return!!aO(t).match(/%$/)}function ve(t,e,r){return isNaN(e)?r?""+t:+t:(e=Ue(ce(0,e),hf),t=(+t).toFixed(e),r?t:+t)}function M0(t,e,r){return e==null&&(e=10),ve(t,e,r)}function tn(t){return t.sort(function(e,r){return e-r}),t}function er(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Ht(t*e)/e===t)return r}return Rd(t)}function Rd(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),i=r>0?+e.slice(r+1):0,n=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:n-1-a;return ce(0,o-i)}function O0(t,e){var r=Sr(Qi(t[1]-t[0])/js),i=Ht(Qi(Le(e[1]-e[0]))/js),n=Ue(ce(-r+i,0),hf);return isFinite(n)?n:hf}function I0(t,e,r){var i=Le(t[1]-t[0]);if(!isFinite(i)||i===0)return NaN;var n=Qi(2*Le(r||1)*Le(i))/js,a=Qi(Le(e))/js,o=ce(0,Ji(-n+a));return isFinite(o)||(o=NaN),o}function L0(t,e,r){if(!t[e])return 0;var i=fO(t,r);return i[e]||0}function fO(t,e){var r=St(t,function(h,d){return h+(isNaN(d)?0:d)},0);if(r===0)return[];for(var i=en(10,e),n=U(t,function(h){return(isNaN(h)?0:h)/r*i*100}),a=i*100,o=U(n,function(h){return Sr(h)}),s=St(o,function(h,d){return h+d},0),l=U(n,function(h,d){return h-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,p=l.length;c<p;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return U(o,function(h){return h/i})}function N0(t,e){var r=ce(er(t),er(e)),i=t+e;return r>hf?i:ve(i,r)}var Qs=en(2,53)-1;function Js(t){var e=oO*2;return(t%e+e)%e}function ra(t){return t>-D0&&t<D0}var cO=/^(?:(\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 Lt(t){if(t instanceof Date)return t;if(B(t)){var e=cO.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Ht(t))}function So(t){return en(10,bo(t))}function bo(t){if(t===0)return 0;var e=Sr(Qi(t)/js);return t/en(10,e)>=10&&e++,e}var kd=2;function Ei(t,e){var r=bo(t),i=en(10,r),n=t/i,a;return e===kd?a=1:e?n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10:n<1?a=1:n<2?a=2:n<3?a=3:n<5?a=5:a=10,t=a*i,ve(t,-r)}function P0(t,e){var r=(t.length-1)*e+1,i=Sr(r),n=+t[i-1],a=r-i;return a?n+a*(t[i]-n):n}function R0(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,r=1,i=0;i<t.length;){for(var n=t[i].interval,a=t[i].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,a[o]=o?1:1-r),e=n[o],r=a[o];n[0]===n[1]&&a[0]*a[1]!==1?t.splice(i,1):i++}return t;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function br(t){var e=parseFloat(t);return e==t&&(e!==0||!B(t)||t.indexOf("x")<=0)?e:NaN}function el(t){return!isNaN(br(t))}function tl(){return Ht(sO()*9)}function k0(t,e){return e===0?t:k0(e,t%e)}function Bd(t,e){return t==null?e:e==null?t:t*e/k0(t,e)}function et(t){return t!=null&&isFinite(t)}var pO="[ECharts] ",U0={},hO=typeof console<"u"&&console.warn&&console.log;function dO(t,e,r){if(hO){if(r){if(U0[e])return;U0[e]=!0}console[t](pO+e)}}function Ud(t,e){dO("error",t,e)}function ft(t){throw new Error(t)}function z0(t,e,r){return(e-t)*r+t}var F0="series\0",vO="\0_ec_\0";function ze(t){return t instanceof Array?t:t==null?[]:[t]}function zd(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,n=r.length;i<n;i++){var a=r[i];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var Fd=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Ai(t){return F(t)&&!P(t)&&!(t instanceof Date)?t.value:t}function V0(t){return F(t)&&!(t instanceof Array)}function H0(t,e,r){var i=r==="normalMerge",n=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=V();w(e,function(l,u){if(!F(l)){e[u]=null;return}});var s=mO(t,o,r);return(i||n)&&gO(s,t,o,e),i&&yO(s,e),i||n?_O(s,e,n):a&&xO(s,e),SO(s),s}function mO(t,e,r){var i=[];if(r==="replaceAll")return i;for(var n=0;n<t.length;n++){var a=t[n];a&&a.id!=null&&e.set(a.id,n),i.push({existing:r==="replaceMerge"||wo(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function gO(t,e,r,i){w(i,function(n,a){if(!(!n||n.id==null)){var o=rl(n.id),s=r.get(o);if(s!=null){var l=t[s];Xe(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],i[a]=null}}})}function yO(t,e){w(e,function(r,i){if(!(!r||r.name==null))for(var n=0;n<t.length;n++){var a=t[n].existing;if(!t[n].newOption&&a&&(a.id==null||r.id==null)&&!wo(r)&&!wo(a)&&G0("name",a,r)){t[n].newOption=r,e[i]=null;return}}})}function _O(t,e,r){w(e,function(i){if(i){for(var n,a=0;(n=t[a])&&(n.newOption||wo(n.existing)||n.existing&&i.id!=null&&!G0("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=r):t.push({newOption:i,brandNew:r,existing:null,keyInfo:null}),a++}})}function xO(t,e){w(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function SO(t){var e=V();w(t,function(r){var i=r.existing;i&&e.set(i.id,r)}),w(t,function(r){var i=r.newOption;Xe(!i||i.id==null||!e.get(i.id)||e.get(i.id)===r,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&e.set(i.id,r),!r.keyInfo&&(r.keyInfo={})}),w(t,function(r,i){var n=r.existing,a=r.newOption,o=r.keyInfo;if(F(a)){if(o.name=a.name!=null?rl(a.name):n?n.name:F0+i,n)o.id=rl(n.id);else if(a.id!=null)o.id=rl(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function G0(t,e,r){var i=tr(e[t],null),n=tr(r[t],null);return i!=null&&n!=null&&i===n}function rl(t){return tr(t,"")}function tr(t,e){return t==null?e:B(t)?t:le(t)||ao(t)?t+"":e}function To(t){var e=t.name;return!!(e&&e.indexOf(F0))}function wo(t){return t&&t.id!=null&&rl(t.id).indexOf(vO)===0}function W0(t,e,r){w(t,function(i){var n=i.newOption;F(n)&&(i.keyInfo.mainType=e,i.keyInfo.subType=bO(e,n,i.existing,r))})}function bO(t,e,r,i){var n=e.type?e.type:r?r.subType:i.determineSubType(t,e);return n}function wr(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return P(e.dataIndex)?U(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return P(e.name)?U(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function ae(){var t="__ec_inner_"+wO++;return function(e){return e[t]||(e[t]={})}}var wO=tl();function vf(t,e,r){var i=il(e,r),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,l=r?r.defaultMainType:null;return!n&&l&&a.set(l,{}),a.each(function(u,f){var c=rn(t,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function il(t,e){var r;if(B(t)){var i={};i[t+"Index"]=0,r=i}else r=t;var n=V(),a={},o=!1;return w(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&ne(e.includeMainTypes,f)<0)){o=o||!!f;var p=n.get(f)||n.set(f,{});p[c]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var gt={useDefault:!0,enableAll:!1,enableNone:!1};function rn(t,e,r,i){i=i||gt;var n=r.index,a=r.id,o=r.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(n==="none"||n===!1){if(i.enableNone)return s.models=[],s;n=-1}return n==="all"&&(i.enableAll?n=a=o=null:n=-1),s.models=t.queryComponents({mainType:e,index:n,id:a,name:o}),s}function Y0(t,e,r){var i={};i[e+"Id"]=t[e+"Id"],i[e+"Index"]=t[e+"Index"],i[e+"Name"]=t[e+"Name"];var n={mainType:e,query:i};return r&&(n.subType=r),n}function Vd(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function X0(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function q0(t){return t==="auto"?ee.domSupported?"html":"richText":t||"html"}function Hd(t,e,r,i,n){var a=e==null||e==="auto";if(i==null)return i;if(le(i)){var o=z0(r||0,i,n);return ve(o,a?Math.max(er(r||0),er(i)):e)}else{if(B(i))return n<1?r:i;for(var s=[],l=r,u=i,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var p=t.getDimensionInfo(c);if(p&&p.type==="ordinal")s[c]=(n<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,d=u[c],o=z0(h,d,n);s[c]=ve(o,a?Math.max(er(h),er(d)):e)}}return s}}var YF=(function(){function t(){}return t.prototype.reset=function(e,r,i,n){return this._list=e,this._step=n=n||1,this._idx=r,this._end=i??(n>0?e.length:0),this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},t})();function yt(){return[1/0,-1/0]}function nl(t,e){Wr(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function Gd(t,e){Wr(e)&&e<t[0]&&(t[0]=e)}function Wd(t,e){Wr(e)&&e>t[1]&&(t[1]=e)}function K0(t,e){Di(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function Wr(t){return t!=null&&isFinite(t)}function Di(t,e){return Wr(t)&&Wr(e)&&t<=e}function Z0(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function j0(t){Di(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function mf(){var t="__ec_once_"+TO++;return function(e,r){Me(e,t)||(e[t]=1,r())}}var TO=tl();function Co(t,e,r){var i=V(),n=0;w(t,function(a){var o=e(a),s=i.get(o)||0;r&&r(a,s),!s&&!r&&(t[n++]=a),i.set(o,s+1)}),r||(t.length=n)}function $0(t){return t.value+""}function Q0(t){return t+""}function J0(t,e){return Y(e,!0)?t.seriesIndex+2:0}function gf(t,e,r){var i=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&i>=r.threshold,large:t.get("large")&&i>=t.get("largeThreshold"),modDataCount:t.get("progressiveChunkMode")==="mod"?t.getData().count():null}}function Eo(t){return{overallReset:t}}var CO=".",na="___EC__COMPONENT__CONTAINER___",ex="___EC__EXTENDED_CLASS___";function Gt(t){var e={main:"",sub:""};if(t){var r=t.split(CO);e.main=r[0]||"",e.sub=r[1]||""}return e}function EO(t){Xe(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function tx(t){return!!(t&&t[ex])}function Ao(t,e){t.$constructor=t,t.extend=function(r){var i=this,n;return AO(i)?n=(function(a){L(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(r.$constructor||i).apply(this,arguments)},Os(n,this)),N(n.prototype,r),n[ex]=!0,n.extend=this.extend,n.superCall=MO,n.superApply=OO,n.superClass=i,n}}function AO(t){return G(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function yf(t,e){t.extend=e.extend}var DO=Math.round(Math.random()*10);function rx(t){var e=["__\0is_clz",DO++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function MO(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,r)}function OO(t,e,r){return this.superClass.prototype[e].apply(t,r)}function nn(t){var e={};t.registerClass=function(i){var n=i.type||i.prototype.type;if(n){EO(n),i.prototype.type=n;var a=Gt(n);if(!a.sub)e[a.main]=i;else if(a.sub!==na){var o=r(a);o[a.sub]=i}}return i},t.getClass=function(i,n,a){var o=e[i];if(o&&o[na]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},t.getClassesByMainType=function(i){var n=Gt(i),a=[],o=e[n.main];return o&&o[na]?w(o,function(s,l){l!==na&&a.push(s)}):a.push(o),a},t.hasClass=function(i){var n=Gt(i);return!!e[n.main]},t.getAllClassMainTypes=function(){var i=[];return w(e,function(n,a){i.push(a)}),i},t.hasSubTypes=function(i){var n=Gt(i),a=e[n.main];return a&&a[na]};function r(i){var n=e[i.main];return(!n||!n[na])&&(n=e[i.main]={},n[na]=!0),n}}function ri(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(i,n,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(n&&ne(n,l)>=0||a&&ne(a,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var IO=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],LO=ri(IO),ix=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return LO(this,e,r)},t})();var Xd=new ei(50);function ax(t){if(typeof t=="string"){var e=Xd.get(t);return e&&e.image}else return t}function qd(t,e,r,i,n){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=Xd.get(t),o={hostEl:r,cb:i,cbPayload:n};return a?(e=a.image,!Do(e)&&a.pending.push(o)):(e=Re.loadImage(t,nx,nx),e.__zrImageSrc=t,Xd.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function nx(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function Do(t){return t&&t.width&&t.height}var Kd=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function jd(t,e,r,i,n){var a={};return ux(a,t,e,r,i,n),a.text}function ux(t,e,r,i,n,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
167
+ `);a=fx(r,i,n,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)cx(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
168
+ `),t.isTruncated=s}function fx(t,e,r,i){i=i||{};var n=N({},i);r=Y(r,"..."),n.maxIterations=Y(i.maxIterations,2);var a=n.minChar=Y(i.minChar,0),o=n.fontMeasureInfo=Hr(e),s=o.asciiCharWidth;n.placeholder=Y(i.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var f=Gr(o,r);return f>l&&(r="",f=0),l=t-f,n.ellipsis=r,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=t,n}function cx(t,e,r){var i=r.containerWidth,n=r.contentWidth,a=r.fontMeasureInfo;if(!i){t.textLine="",t.isTruncated=!1;return}var o=Gr(a,e);if(o<=i){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?PO(e,n,a):o>0?Math.floor(e.length*n/o):0;e=e.substr(0,l),o=Gr(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function PO(t,e,r){for(var i=0,n=0,a=t.length;n<a&&i<e;n++)i+=Ed(r,t.charCodeAt(n));return n}function px(t,e,r,i){var n=Qd(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=a==="truncate",c=Zs(u),p=Y(e.lineHeight,c),h=e.lineOverflow==="truncate",d=!1,v=e.width;v==null&&r!=null&&(v=r-s);var m=e.height;m==null&&i!=null&&(m=i-l);var g;v!=null&&(a==="break"||a==="breakAll")?g=n?dx(n,e.font,v,a==="breakAll",0).lines:[]:g=n?n.split(`
169
+ `):[];var y=g.length*p;if(m==null&&(m=y),y>m&&h){var _=Math.floor(m/p);d=d||g.length>_,g=g.slice(0,_),y=g.length*p}if(n&&f&&v!=null)for(var x=fx(v,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={},b=0;b<g.length;b++)cx(S,g[b],x),g[b]=S.textLine,d=d||S.isTruncated;for(var T=m,C=0,A=Hr(u),b=0;b<g.length;b++)C=Math.max(Gr(A,g[b]),C);v==null&&(v=C);var E=v;return T+=l,E+=s,{lines:g,height:m,outerWidth:E,outerHeight:T,lineHeight:p,calculatedLineHeight:c,contentWidth:C,contentHeight:y,width:v,isTruncated:d}}var RO=(function(){function t(){}return t})(),ox=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),kO=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function hx(t,e,r,i,n){var a=new kO,o=Qd(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&r!=null&&(f=r-l);var c=e.height;c==null&&i!=null&&(c=i-u);for(var p=e.overflow,h=(p==="break"||p==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:p==="breakAll"}:null,d=Kd.lastIndex=0,v;(v=Kd.exec(o))!=null;){var m=v.index;m>d&&Zd(a,o.substring(d,m),e,h),Zd(a,v[2],e,h,v[1]),d=Kd.lastIndex}d<o.length&&Zd(a,o.substring(d,o.length),e,h);var g=[],y=0,_=0,x=p==="truncate",S=e.lineOverflow==="truncate",b={};function T(Se,Dt,kr){Se.width=Dt,Se.lineHeight=kr,y+=kr,_=Math.max(_,Dt)}e:for(var C=0;C<a.lines.length;C++){for(var A=a.lines[C],E=0,D=0,O=0;O<A.tokens.length;O++){var M=A.tokens[O],I=M.styleName&&e.rich[M.styleName]||{},R=M.textPadding=I.padding,k=R?R[1]+R[3]:0,W=M.font=I.font||e.font;M.contentHeight=Zs(W);var z=Y(I.height,M.contentHeight);if(M.innerHeight=z,R&&(z+=R[0]+R[2]),M.height=z,M.lineHeight=vr(I.lineHeight,e.lineHeight,z),M.align=I&&I.align||n,M.verticalAlign=I&&I.verticalAlign||"middle",S&&c!=null&&y+M.lineHeight>c){var X=a.lines.length;O>0?(A.tokens=A.tokens.slice(0,O),T(A,D,E),a.lines=a.lines.slice(0,C+1)):a.lines=a.lines.slice(0,C),a.isTruncated=a.isTruncated||a.lines.length<X;break e}var $=I.width,K=$==null||$==="auto";if(typeof $=="string"&&$.charAt($.length-1)==="%")M.percentWidth=$,g.push(M),M.contentWidth=Gr(Hr(W),M.text);else{if(K){var te=I.backgroundColor,ie=te&&te.image;ie&&(ie=ax(ie),Do(ie)&&(M.width=Math.max(M.width,ie.width*z/ie.height)))}var q=x&&f!=null?f-D:null;q!=null&&q<M.width?!K||q<k?(M.text="",M.width=M.contentWidth=0):(ux(b,M.text,q-k,W,e.ellipsis,{minChar:e.truncateMinChar}),M.text=b.text,a.isTruncated=a.isTruncated||b.isTruncated,M.width=M.contentWidth=Gr(Hr(W),M.text)):M.contentWidth=Gr(Hr(W),M.text)}M.width+=k,D+=M.width,I&&(E=Math.max(E,M.lineHeight))}T(A,D,E)}a.outerWidth=a.width=Y(f,_),a.outerHeight=a.height=Y(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var C=0;C<g.length;C++){var M=g[C],ge=M.percentWidth;M.width=parseInt(ge,10)/100*a.width}return a}function Zd(t,e,r,i,n){var a=e==="",o=n&&r.rich[n]||{},s=t.lines,l=o.font||r.font,u=!1,f,c;if(i){var p=o.padding,h=p?p[1]+p[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Vr(o.width,i.width)+h;s.length>0&&d+i.accumWidth>i.width&&(f=e.split(`
170
+ `),u=!0),i.accumWidth=d}else{var v=dx(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=v.accumWidth+h,c=v.linesWidths,f=v.lines}}f||(f=e.split(`
171
+ `));for(var m=Hr(l),g=0;g<f.length;g++){var y=f[g],_=new RO;if(_.styleName=n,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=c?c[g]:Gr(m,y),!g&&!u){var x=(s[s.length-1]||(s[0]=new ox)).tokens,S=x.length;S===1&&x[0].isLineHolder?x[0]=_:(y||!S||a)&&x.push(_)}else s.push(new ox([_]))}}function BO(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var UO=St(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function zO(t){return BO(t)?!!UO[t]:!0}function dx(t,e,r,i,n){for(var a=[],o=[],s="",l="",u=0,f=0,c=Hr(e),p=0;p<t.length;p++){var h=t.charAt(p);if(h===`
172
+ `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=Ed(c,h.charCodeAt(0)),v=i?!1:!zO(h);if(a.length?f+d>r:n+f+d>r){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=d)):v?(a.push(l),o.push(u),l=h,u=d):(a.push(h),o.push(d));continue}f+=d,v?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}function $d(t,e,r,i,n,a){if(t.baseX=r,t.baseY=i,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;j.set(sx,$i(r,o,n),Ci(i,s,a),o,s),j.intersect(e,sx,null,lx);var l=lx.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=$i(l.x,l.width,n,!0),t.baseY=Ci(l.y,l.height,a,!0)}}var sx=new j(0,0,0,0),lx={outIntersectRect:{},clamp:!0};function Qd(t){return t!=null?t+="":t=""}function vx(t){var e=Qd(t.text),r=t.font,i=Gr(Hr(r),e),n=Zs(r);return _f(t,i,n,null)}function _f(t,e,r,i){var n=new j($i(t.x||0,e,t.textAlign),Ci(t.y||0,r,t.textBaseline),e,r),a=i??(Jd(t)?t.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function Jd(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var rv="__zr_style_"+Math.round(Math.random()*10),ii={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},aa={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ii[rv]=!0;var mx=["z","z2","invisible"],FO=["invisible"],VO=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var i=fe(r),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(r){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&HO(this,r,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,i){return this.rectContain(r,i)},e.prototype.traverse=function(r,i){r.call(i,this)},e.prototype.rectContain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new j(0,0,0,0)),i?j.applyTransform(r,n,i):r.copy(n),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new j(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,i){r!=="style"?t.prototype.attrKV.call(this,r,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(r,i){return typeof r=="string"?this.style[r]=i:N(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=qn,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&qn)},e.prototype.styleUpdated=function(){this.__dirty&=~qn},e.prototype.createStyle=function(r){return xi(ii,r)},e.prototype.useStyle=function(r){r[rv]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[rv]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,i,mx)},e.prototype._applyStateObj=function(r,i,n,a,o,s){t.prototype._applyStateObj.call(this,r,i,n,a,o,s);var l=!(i&&a),u=this.__inHover===xo,f;if(i&&i.style?o?a?f=i.style:(f=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(f,i.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(f,i.style)):l&&(f=n.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var p=fe(c),h=0;h<p.length;h++){var d=p[h];d in f&&(f[d]=f[d],this.style[d]=c[d])}for(var v=fe(f),h=0;h<v.length;h++){var d=v[h];this.style[d]=this.style[d]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var m=this.__inHover?FO:mx,h=0;h<m.length;h++){var d=m[h];i&&i[d]!=null?this[d]=i[d]:l&&n[d]!=null&&(this[d]=n[d])}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(r,i){return N(r,i),r},e.prototype.getAnimationStyleProps=function(){return aa},e.initDefaultProps=(function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Ke|qn})(),e})(uf),ev=new j(0,0,0,0),tv=new j(0,0,0,0);function HO(t,e,r){return ev.copy(t.getBoundingRect()),t.transform&&ev.applyTransform(t.transform),tv.width=e,tv.height=r,!ev.intersect(tv)}var ni=VO;var Tr=Math.min,Cr=Math.max,iv=Math.sin,nv=Math.cos,oa=Math.PI*2,xf=Si(),Sf=Si(),bf=Si();function av(t,e,r,i,n,a){n[0]=Tr(t,r),n[1]=Tr(e,i),a[0]=Cr(t,r),a[1]=Cr(e,i)}var gx=[],yx=[];function _x(t,e,r,i,n,a,o,s,l,u){var f=Wu,c=Be,p=f(t,r,n,o,gx);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<p;h++){var d=c(t,r,n,o,gx[h]);l[0]=Tr(d,l[0]),u[0]=Cr(d,u[0])}p=f(e,i,a,s,yx);for(var h=0;h<p;h++){var v=c(e,i,a,s,yx[h]);l[1]=Tr(v,l[1]),u[1]=Cr(v,u[1])}l[0]=Tr(t,l[0]),u[0]=Cr(t,u[0]),l[0]=Tr(o,l[0]),u[0]=Cr(o,u[0]),l[1]=Tr(e,l[1]),u[1]=Cr(e,u[1]),l[1]=Tr(s,l[1]),u[1]=Cr(s,u[1])}function xx(t,e,r,i,n,a,o,s){var l=Yu,u=at,f=Cr(Tr(l(t,r,n),1),0),c=Cr(Tr(l(e,i,a),1),0),p=u(t,r,n,f),h=u(e,i,a,c);o[0]=Tr(t,n,p),o[1]=Tr(e,a,h),s[0]=Cr(t,n,p),s[1]=Cr(e,a,h)}function Sx(t,e,r,i,n,a,o,s,l){var u=mr,f=gr,c=Math.abs(n-a);if(c%oa<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-i,l[0]=t+r,l[1]=e+i;return}if(xf[0]=nv(n)*r+t,xf[1]=iv(n)*i+e,Sf[0]=nv(a)*r+t,Sf[1]=iv(a)*i+e,u(s,xf,Sf),f(l,xf,Sf),n=n%oa,n<0&&(n=n+oa),a=a%oa,a<0&&(a=a+oa),n>a&&!o?a+=oa:n<a&&o&&(n+=oa),o){var p=a;a=n,n=p}for(var h=0;h<a;h+=Math.PI/2)h>n&&(bf[0]=nv(h)*r+t,bf[1]=iv(h)*i+e,u(s,bf,s),f(l,bf,l))}var Ae={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},sa=[],la=[],ai=[],an=[],oi=[],si=[],ov=Math.min,sv=Math.max,ua=Math.cos,fa=Math.sin,Mi=Math.abs,fv=Math.PI,on=fv*2,lv=typeof Float32Array<"u",al=[];function uv(t){var e=Math.round(t/fv*1e8)/1e8;return e%2*fv}function GO(t,e){var r=uv(t[0]);r<0&&(r+=on);var i=r-t[0],n=t[1];n+=i,!e&&n-r>=on?n=r+on:e&&r-n>=on?n=r-on:!e&&r>n?n=r+(on-uv(r-n)):e&&r<n&&(n=r-(on-uv(n-r))),t[0]=r,t[1]=n}var WO=(function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,i){i=i||0,i>0&&(this._ux=Mi(i/$n/e)||0,this._uy=Mi(i/$n/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Ae.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var i=Mi(e-this._xi),n=Mi(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(Ae.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,i,n,a,o){return this._drawPendingPt(),this.addData(Ae.C,e,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,i,n,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,i,n){return this._drawPendingPt(),this.addData(Ae.Q,e,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(e,r,i,n),this._xi=i,this._yi=n,this},t.prototype.arc=function(e,r,i,n,a,o){this._drawPendingPt(),al[0]=n,al[1]=a,GO(al,o),n=al[0],a=al[1];var s=a-n;return this.addData(Ae.A,e,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,i,n,a,o),this._xi=ua(a)*i+e,this._yi=fa(a)*i+r,this},t.prototype.arcTo=function(e,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,i,n,a),this},t.prototype.rect=function(e,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,i,n),this.addData(Ae.R,e,r,i,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ae.Z);var e=this._ctx,r=this._x0,i=this._y0;return e&&e.closePath(),this._xi=r,this._yi=i,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&lv&&(this.data=new Float32Array(r));for(var i=0;i<r;i++)this.data[i]=e[i];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,i=0,n=this._len,a=0;a<r;a++)i+=e[a].len();var o=this.data;if(lv&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[n++]=l[s];this._len=n}},t.prototype.addData=function(e,r,i,n,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,lv&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){ai[0]=ai[1]=oi[0]=oi[1]=Number.MAX_VALUE,an[0]=an[1]=si[0]=si[1]=-Number.MAX_VALUE;var e=this.data,r=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],i=e[o+1],n=r,a=i),s){case Ae.M:r=n=e[o++],i=a=e[o++],oi[0]=n,oi[1]=a,si[0]=n,si[1]=a;break;case Ae.L:av(r,i,e[o],e[o+1],oi,si),r=e[o++],i=e[o++];break;case Ae.C:_x(r,i,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],oi,si),r=e[o++],i=e[o++];break;case Ae.Q:xx(r,i,e[o++],e[o++],e[o],e[o+1],oi,si),r=e[o++],i=e[o++];break;case Ae.A:var u=e[o++],f=e[o++],c=e[o++],p=e[o++],h=e[o++],d=e[o++]+h;o+=1;var v=!e[o++];l&&(n=ua(h)*c+u,a=fa(h)*p+f),Sx(u,f,c,p,h,d,v,oi,si),r=ua(d)*c+u,i=fa(d)*p+f;break;case Ae.R:n=r=e[o++],a=i=e[o++];var m=e[o++],g=e[o++];av(n,a,n+m,a+g,oi,si);break;case Ae.Z:r=n,i=a;break}mr(ai,ai,oi),gr(an,an,si)}return o===0&&(ai[0]=ai[1]=an[0]=an[1]=0),new j(ai[0],ai[1],an[0]-ai[0],an[1]-ai[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,p=0;p<r;){var h=e[p++],d=p===1;d&&(a=e[p],o=e[p+1],s=a,l=o);var v=-1;switch(h){case Ae.M:a=s=e[p++],o=l=e[p++];break;case Ae.L:{var m=e[p++],g=e[p++],y=m-a,_=g-o;(Mi(y)>i||Mi(_)>n||p===r-1)&&(v=Math.sqrt(y*y+_*_),a=m,o=g);break}case Ae.C:{var x=e[p++],S=e[p++],m=e[p++],g=e[p++],b=e[p++],T=e[p++];v=q_(a,o,x,S,m,g,b,T,10),a=b,o=T;break}case Ae.Q:{var x=e[p++],S=e[p++],m=e[p++],g=e[p++];v=j_(a,o,x,S,m,g,10),a=m,o=g;break}case Ae.A:var C=e[p++],A=e[p++],E=e[p++],D=e[p++],O=e[p++],M=e[p++],I=M+O;p+=1,d&&(s=ua(O)*E+C,l=fa(O)*D+A),v=sv(E,D)*ov(on,Math.abs(M)),a=ua(I)*E+C,o=fa(I)*D+A;break;case Ae.R:{s=a=e[p++],l=o=e[p++];var R=e[p++],k=e[p++];v=R*2+k*2;break}case Ae.Z:{var y=s-a,_=l-o;v=Math.sqrt(y*y+_*_),a=s,o=l;break}}v>=0&&(u[c++]=v,f+=v)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,u,f,c,p,h=r<1,d,v,m=0,g=0,y,_=0,x,S;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,v=this._pathLen,y=r*v,!y)))e:for(var b=0;b<o;){var T=i[b++],C=b===1;switch(C&&(u=i[b],f=i[b+1],s=u,l=f),T!==Ae.L&&_>0&&(e.lineTo(x,S),_=0),T){case Ae.M:s=u=i[b++],l=f=i[b++],e.moveTo(u,f);break;case Ae.L:{c=i[b++],p=i[b++];var A=Mi(c-u),E=Mi(p-f);if(A>n||E>a){if(h){var D=d[g++];if(m+D>y){var O=(y-m)/D;e.lineTo(u*(1-O)+c*O,f*(1-O)+p*O);break e}m+=D}e.lineTo(c,p),u=c,f=p,_=0}else{var M=A*A+E*E;M>_&&(x=c,S=p,_=M)}break}case Ae.C:{var I=i[b++],R=i[b++],k=i[b++],W=i[b++],z=i[b++],X=i[b++];if(h){var D=d[g++];if(m+D>y){var O=(y-m)/D;fo(u,I,k,z,O,sa),fo(f,R,W,X,O,la),e.bezierCurveTo(sa[1],la[1],sa[2],la[2],sa[3],la[3]);break e}m+=D}e.bezierCurveTo(I,R,k,W,z,X),u=z,f=X;break}case Ae.Q:{var I=i[b++],R=i[b++],k=i[b++],W=i[b++];if(h){var D=d[g++];if(m+D>y){var O=(y-m)/D;co(u,I,k,O,sa),co(f,R,W,O,la),e.quadraticCurveTo(sa[1],la[1],sa[2],la[2]);break e}m+=D}e.quadraticCurveTo(I,R,k,W),u=k,f=W;break}case Ae.A:var $=i[b++],K=i[b++],te=i[b++],ie=i[b++],q=i[b++],ge=i[b++],Se=i[b++],Dt=!i[b++],kr=te>ie?te:ie,Pe=Mi(te-ie)>.001,it=q+ge,de=!1;if(h){var D=d[g++];m+D>y&&(it=q+ge*(y-m)/D,de=!0),m+=D}if(Pe&&e.ellipse?e.ellipse($,K,te,ie,Se,q,it,Dt):e.arc($,K,kr,q,it,Dt),de)break e;C&&(s=ua(q)*te+$,l=fa(q)*ie+K),u=ua(it)*te+$,f=fa(it)*ie+K;break;case Ae.R:s=u=i[b],l=f=i[b+1],c=i[b++],p=i[b++];var be=i[b++],On=i[b++];if(h){var D=d[g++];if(m+D>y){var Mt=y-m;e.moveTo(c,p),e.lineTo(c+ov(Mt,be),p),Mt-=be,Mt>0&&e.lineTo(c+be,p+ov(Mt,On)),Mt-=On,Mt>0&&e.lineTo(c+sv(be-Mt,0),p+On),Mt-=be,Mt>0&&e.lineTo(c,p+sv(On-Mt,0));break e}m+=D}e.rect(c,p,be,On);break;case Ae.Z:if(h){var D=d[g++];if(m+D>y){var O=(y-m)/D;e.lineTo(u*(1-O)+s*O,f*(1-O)+l*O);break e}m+=D}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=Ae,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})(),rr=WO;function ca(t,e,r,i,n,a,o){if(n===0)return!1;var s=n,l=0,u=t;if(o>e+s&&o>i+s||o<e-s&&o<i-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-i)/(t-r),u=(t*i-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function bx(t,e,r,i,n,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>i+c&&f>a+c&&f>s+c||f<e-c&&f<i-c&&f<a-c&&f<s-c||u>t+c&&u>r+c&&u>n+c&&u>o+c||u<t-c&&u<r-c&&u<n-c&&u<o-c)return!1;var p=X_(t,e,r,i,n,a,o,s,u,f,null);return p<=c/2}function Tx(t,e,r,i,n,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>i+u&&l>a+u||l<e-u&&l<i-u&&l<a-u||s>t+u&&s>r+u&&s>n+u||s<t-u&&s<r-u&&s<n-u)return!1;var f=Z_(t,e,r,i,n,a,s,l,null);return f<=u/2}var Cx=Math.PI*2;function ol(t){return t%=Cx,t<0&&(t+=Cx),t}var sl=Math.PI*2;function Ex(t,e,r,i,n,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(i-n)%sl<1e-4)return!0;if(a){var c=i;i=ol(n),n=ol(c)}else i=ol(i),n=ol(n);i>n&&(n+=sl);var p=Math.atan2(l,s);return p<0&&(p+=sl),p>=i&&p<=n||p+sl>=i&&p+sl<=n}function Er(t,e,r,i,n,a){if(a>e&&a>i||a<e&&a<i||i===e)return 0;var o=(a-e)/(i-e),s=i<e?1:-1;(o===1||o===0)&&(s=i<e?.5:-.5);var l=o*(r-t)+t;return l===n?1/0:l>n?s:0}var sn=rr.CMD,pa=Math.PI*2,ZO=1e-4;function jO(t,e){return Math.abs(t-e)<ZO}var Nt=[-1,-1,-1],Ar=[-1,-1];function $O(){var t=Ar[0];Ar[0]=Ar[1],Ar[1]=t}function QO(t,e,r,i,n,a,o,s,l,u){if(u>e&&u>i&&u>a&&u>s||u<e&&u<i&&u<a&&u<s)return 0;var f=Kn(e,i,a,s,u,Nt);if(f===0)return 0;for(var c=0,p=-1,h=void 0,d=void 0,v=0;v<f;v++){var m=Nt[v],g=m===0||m===1?.5:1,y=Be(t,r,n,o,m);y<l||(p<0&&(p=Wu(e,i,a,s,Ar),Ar[1]<Ar[0]&&p>1&&$O(),h=Be(e,i,a,s,Ar[0]),p>1&&(d=Be(e,i,a,s,Ar[1]))),p===2?m<Ar[0]?c+=h<e?g:-g:m<Ar[1]?c+=d<h?g:-g:c+=s<d?g:-g:m<Ar[0]?c+=h<e?g:-g:c+=s<h?g:-g)}return c}function JO(t,e,r,i,n,a,o,s){if(s>e&&s>i&&s>a||s<e&&s<i&&s<a)return 0;var l=K_(e,i,a,s,Nt);if(l===0)return 0;var u=Yu(e,i,a);if(u>=0&&u<=1){for(var f=0,c=at(e,i,a,u),p=0;p<l;p++){var h=Nt[p]===0||Nt[p]===1?.5:1,d=at(t,r,n,Nt[p]);d<o||(Nt[p]<u?f+=c<e?h:-h:f+=a<c?h:-h)}return f}else{var h=Nt[0]===0||Nt[0]===1?.5:1,d=at(t,r,n,Nt[0]);return d<o?0:a<e?h:-h}}function eI(t,e,r,i,n,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Nt[0]=-l,Nt[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=pa-1e-4){i=0,n=pa;var f=a?1:-1;return o>=Nt[0]+t&&o<=Nt[1]+t?f:0}if(i>n){var c=i;i=n,n=c}i<0&&(i+=pa,n+=pa);for(var p=0,h=0;h<2;h++){var d=Nt[h];if(d+t>o){var v=Math.atan2(s,d),f=a?1:-1;v<0&&(v=pa+v),(v>=i&&v<=n||v+pa>=i&&v+pa<=n)&&(v>Math.PI/2&&v<Math.PI*1.5&&(f=-f),p+=f)}}return p}function Ax(t,e,r,i,n){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,p,h,d=0;d<o;){var v=a[d++],m=d===1;switch(v===sn.M&&d>1&&(r||(s+=Er(l,u,f,c,i,n))),m&&(l=a[d],u=a[d+1],f=l,c=u),v){case sn.M:f=a[d++],c=a[d++],l=f,u=c;break;case sn.L:if(r){if(ca(l,u,a[d],a[d+1],e,i,n))return!0}else s+=Er(l,u,a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case sn.C:if(r){if(bx(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,i,n))return!0}else s+=QO(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case sn.Q:if(r){if(Tx(l,u,a[d++],a[d++],a[d],a[d+1],e,i,n))return!0}else s+=JO(l,u,a[d++],a[d++],a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case sn.A:var g=a[d++],y=a[d++],_=a[d++],x=a[d++],S=a[d++],b=a[d++];d+=1;var T=!!(1-a[d++]);p=Math.cos(S)*_+g,h=Math.sin(S)*x+y,m?(f=p,c=h):s+=Er(l,u,p,h,i,n);var C=(i-g)*x/_+g;if(r){if(Ex(g,y,x,S,S+b,T,e,C,n))return!0}else s+=eI(g,y,x,S,S+b,T,C,n);l=Math.cos(S+b)*_+g,u=Math.sin(S+b)*x+y;break;case sn.R:f=l=a[d++],c=u=a[d++];var A=a[d++],E=a[d++];if(p=f+A,h=c+E,r){if(ca(f,c,p,c,e,i,n)||ca(p,c,p,h,e,i,n)||ca(p,h,f,h,e,i,n)||ca(f,h,f,c,e,i,n))return!0}else s+=Er(p,c,p,h,i,n),s+=Er(f,h,f,c,i,n);break;case sn.Z:if(r){if(ca(l,u,f,c,e,i,n))return!0}else s+=Er(l,u,f,c,i,n);l=f,u=c;break}}return!r&&!jO(u,c)&&(s+=Er(l,u,f,c,i,n)||0),s!==0}function Dx(t,e,r){return Ax(t,0,!1,e,r)}function Mx(t,e,r,i){return Ax(t,e,!0,r,i)}var pv=re({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ii),rI={style:re({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},aa.style)},cv=mo.concat(["invisible","culling","z","z2","zlevel","parent"]),iI=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){r.buildPath(l,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<cv.length;++s)n[cv[s]]=this[cv[s]];n.__dirty|=Ke}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var i=fe(r);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=r[o];o==="style"?this.style?N(this.style,s):this.useStyle(s):o==="shape"?N(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(B(r)){var i=Zn(r,0);return i>.5?qs:i>.2?m0:Ks}else if(r)return Ks}return qs},e.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(B(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=Zn(r,0)<Xs;if(a===o)return i}},e.prototype.buildPath=function(r,i,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Xi},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new rr(!1)},e.prototype.hasStroke=function(){var r=this.style,i=r.stroke;return!(i==null||i==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Xi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);var l=i.strokeNoScale?this.getLineScale():1,u=i.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 r},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,i)){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)),Mx(s,l/u,r,i)))return!0}if(this.hasFill())return Dx(s,r,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Xi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,i){r==="shape"?this.setShape(i):t.prototype.attrKV.call(this,r,i)},e.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=i:N(n,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Xi)},e.prototype.createStyle=function(r){return xi(pv,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=N({},this.shape))},e.prototype._applyStateObj=function(r,i,n,a,o,s){if(t.prototype._applyStateObj.call(this,r,i,n,a,o,s),this.__inHover!==xo){var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=N({},n.shape),N(u,i.shape)):(u=N({},a?this.shape:n.shape),N(u,i.shape)):l&&(u=n.shape),u)if(o){this.shape=N({},this.shape);for(var f={},c=fe(u),p=0;p<c.length;p++){var h=c[p];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return rI},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var i=(function(a){L(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Q(r.style)},o.prototype.getDefaultShape=function(){return Q(r.shape)},o})(e);for(var n in r)typeof r[n]=="function"&&(i.prototype[n]=r[n]);return i},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Ke|qn|Xi})(),e})(ni),oe=iI;var nI=re({strokeFirst:!0,font:dr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},pv),Ox=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return Jd(this.style)},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(r){return xi(nI,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=vx(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(ni);Ox.prototype.type="tspan";var ll=Ox;var aI=re({x:0,y:0},ii),oI={style:re({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},aa.style)};function sI(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Ix=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return xi(aI,r)},e.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=sI(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return oI},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new j(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(ni);Ix.prototype.type="image";var Wt=Ix;function Lx(t,e){var r=e.x,i=e.y,n=e.width,a=e.height,o=e.r,s,l,u,f;n<0&&(r=r+n,n=-n),a<0&&(i=i+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 c;s+l>n&&(c=s+l,s*=n/c,l*=n/c),u+f>n&&(c=u+f,u*=n/c,f*=n/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,i),t.lineTo(r+n-l,i),l!==0&&t.arc(r+n-l,i+l,l,-Math.PI/2,0),t.lineTo(r+n,i+a-u),u!==0&&t.arc(r+n-u,i+a-u,u,0,Math.PI/2),t.lineTo(r+f,i+a),f!==0&&t.arc(r+f,i+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,i+s),s!==0&&t.arc(r+s,i+s,s,Math.PI,Math.PI*1.5),t.closePath()}var Mo=Math.round;function wf(t,e,r){if(e){var i=e.x1,n=e.x2,a=e.y1,o=e.y2;t.x1=i,t.x2=n,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(Mo(i*2)===Mo(n*2)&&(t.x1=t.x2=ln(i,s,!0)),Mo(a*2)===Mo(o*2)&&(t.y1=t.y2=ln(a,s,!0))),t}}function Tf(t,e,r){if(e){var i=e.x,n=e.y,a=e.width,o=e.height;t.x=i,t.y=n,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=ln(i,s,!0),t.y=ln(n,s,!0),t.width=Math.max(ln(i+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(ln(n+o,s,!1)-t.y,o===0?0:1)),t}}function ln(t,e,r){if(!e)return t;var i=Mo(t*2);return(i+Mo(e))%2===0?i/2:(i+(r?1:-1))/2}var fI=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})();var cI={},Nx=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new fI},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=Tf(cI,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?Lx(r,i):r.rect(n,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(oe);Nx.prototype.type="rect";var _e=Nx;var Px={fill:"#000"},Rx=2,li={},pI={style:re({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},aa.style)},Gx=(function(t){L(e,t);function e(r){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=Px,i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var i=this._children[r];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var i=this.innerTransformable;return i?i.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,gI(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new j(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Px},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,i){if(!i)return r;var n=i.rich,a=r.rich||n&&{};return N(r,i),n&&a?(this._mergeRich(a,n),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,i){for(var n=fe(i),a=0;a<n.length;a++){var o=n[a];r[o]=r[o]||{},N(r[o],i[o])}},e.prototype.getAnimationStyleProps=function(){return pI},e.prototype._getOrCreateChild=function(r){var i=this._children[this._childCursor];return(!i||!(i instanceof r))&&(i=new r),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var r=this.style,i=r.font||dr,n=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";$d(li,a.overflowRect,o,s,l,u),o=li.baseX,s=li.baseY;var f=Hx(r),c=px(f,r,li.outerWidth,li.outerHeight),p=hv(r),h=!!r.backgroundColor,d=c.outerHeight,v=c.outerWidth,m=c.lines,g=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=Ci(s,c.contentHeight,u);if(p||n){var x=$i(o,v,l),S=Ci(s,d,u);p&&this._renderBackground(r,r,x,S,v,d)}_+=g/2,n&&(y=Vx(o,l,n),u==="top"?_+=n[0]:u==="bottom"&&(_-=n[2]));for(var b=0,T=!1,C=!1,A=Fx("fill"in r?r.fill:(C=!0,a.fill)),E=zx("stroke"in r?r.stroke:!h&&(!a.autoStroke||C)?(b=Rx,T=!0,a.stroke):null),D=r.textShadowBlur>0,O=0;O<m.length;O++){var M=this._getOrCreateChild(ll),I=M.createStyle();M.useStyle(I),I.text=m[O],I.x=y,I.y=_,l&&(I.textAlign=l),I.textBaseline="middle",I.opacity=r.opacity,I.strokeFirst=!0,D&&(I.shadowBlur=r.textShadowBlur||0,I.shadowColor=r.textShadowColor||"transparent",I.shadowOffsetX=r.textShadowOffsetX||0,I.shadowOffsetY=r.textShadowOffsetY||0),I.stroke=E,I.fill=A,E&&(I.lineWidth=r.lineWidth||b,I.lineDash=r.lineDash,I.lineDashOffset=r.lineDashOffset||0),I.font=i,Bx(I,r),_+=g,M.setBoundingRect(_f(I,c.contentWidth,c.calculatedLineHeight,T?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,i=this._defaultStyle,n=r.align||i.align,a=r.verticalAlign||i.verticalAlign,o=r.x||0,s=r.y||0;$d(li,i.overflowRect,o,s,n,a),o=li.baseX,s=li.baseY;var l=Hx(r),u=hx(l,r,li.outerWidth,li.outerHeight,n),f=u.width,c=u.outerWidth,p=u.outerHeight,h=r.padding;this.isTruncated=!!u.isTruncated;var d=$i(o,c,n),v=Ci(s,p,a),m=d,g=v;h&&(m+=h[3],g+=h[0]);var y=m+f;hv(r)&&this._renderBackground(r,r,d,v,c,p);for(var _=!!r.backgroundColor,x=0;x<u.lines.length;x++){for(var S=u.lines[x],b=S.tokens,T=b.length,C=S.lineHeight,A=S.width,E=0,D=m,O=y,M=T-1,I=void 0;E<T&&(I=b[E],!I.align||I.align==="left");)this._placeToken(I,r,C,g,D,"left",_),A-=I.width,D+=I.width,E++;for(;M>=0&&(I=b[M],I.align==="right");)this._placeToken(I,r,C,g,O,"right",_),A-=I.width,O-=I.width,M--;for(D+=(f-(D-m)-(y-O)-A)/2;E<=M;)I=b[E],this._placeToken(I,r,C,g,D+I.width/2,"center",_),D+=I.width,E++;g+=C}},e.prototype._placeToken=function(r,i,n,a,o,s,l){var u=i.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+n/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+n-r.height/2);var p=!r.isLineHolder&&hv(u);p&&this._renderBackground(u,i,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,d=r.textPadding;d&&(o=Vx(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var v=this._getOrCreateChild(ll),m=v.createStyle();v.useStyle(m);var g=this._defaultStyle,y=!1,_=0,x=!1,S=Fx("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,g.fill)),b=zx("stroke"in u?u.stroke:"stroke"in i?i.stroke:!h&&!l&&(!g.autoStroke||y)?(_=Rx,x=!0,g.stroke):null),T=u.textShadowBlur>0||i.textShadowBlur>0;m.text=r.text,m.x=o,m.y=c,T&&(m.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,m.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||dr,m.opacity=vr(u.opacity,i.opacity,1),Bx(m,u),b&&(m.lineWidth=vr(u.lineWidth,i.lineWidth,_),m.lineDash=Y(u.lineDash,i.lineDash),m.lineDashOffset=i.lineDashOffset||0,m.stroke=b),S&&(m.fill=S),v.setBoundingRect(_f(m,r.contentWidth,r.contentHeight,x?0:null))},e.prototype._renderBackground=function(r,i,n,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,p=l&&!c,h=r.borderRadius,d=this,v,m;if(p||r.lineHeight||u&&f){v=this._getOrCreateChild(_e),v.useStyle(v.createStyle()),v.style.fill=null;var g=v.shape;g.x=n,g.y=a,g.width=o,g.height=s,g.r=h,v.dirtyShape()}if(p){var y=v.style;y.fill=l||null,y.fillOpacity=Y(r.fillOpacity,1)}else if(c){m=this._getOrCreateChild(Wt),m.onload=function(){d.dirtyStyle()};var _=m.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&f){var y=v.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=Y(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(v||m).style;x.shadowBlur=r.shadowBlur||0,x.shadowColor=r.shadowColor||"transparent",x.shadowOffsetX=r.shadowOffsetX||0,x.shadowOffsetY=r.shadowOffsetY||0,x.opacity=vr(r.opacity,i.opacity,1)},e.makeFont=function(r){var i="";return mI(r)&&(i=[r.fontStyle,r.fontWeight,vI(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&ut(i)||r.textFont||r.font},e})(ni),hI={left:!0,right:1,center:1},dI={top:1,bottom:1,middle:1},kx=["fontStyle","fontWeight","fontSize","fontFamily"];function vI(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?Mu+"px":t+"px"}function Bx(t,e){for(var r=0;r<kx.length;r++){var i=kx[r],n=e[i];n!=null&&(t[i]=n)}}function mI(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function gI(t){return Ux(t),w(t.rich,Ux),t}function Ux(t){if(t){t.font=Gx.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||hI[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||dI[r]?r:"top";var i=t.padding;i&&(t.padding=Bn(t.padding))}}function zx(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function Fx(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function Vx(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function Hx(t){var e=t.text;return e!=null&&(e+=""),e}function hv(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Oe=Gx;var he=ae(),Wx=function(t,e,r,i){if(i){var n=he(i);n.dataIndex=r,n.dataType=e,n.seriesIndex=t,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=he(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}};var un="undefined",Cf="series",Ef=V(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ot="original",tt="arrayRows",Pt="objectRows",ir="keyedColumns",nr="typedArray",dv="unknown",ar="column",ui="row";var yI=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],_I=(function(){function t(e){w(yI,function(r){this[r]=pe(e[r],e)},this)}return t})();function Yx(t,e){return e.mainType===Cf?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var Af=_I;var Xx=1,qx={},Qx=ae(),gv=ae(),yv=0,ul=1,fl=2,Dr=["emphasis","blur","select"],_v=["normal","emphasis","blur","select"],xI=10,SI=9,fn="highlight",cl="downplay",pl="select",Mf="unselect",hl="toggleSelect",Of="selectchanged";function Oo(t){return t!=null&&t!=="none"}function If(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function Jx(t){If(t,"emphasis",fl)}function eS(t){t.hoverState===fl&&If(t,"normal",yv)}function xv(t){If(t,"blur",ul)}function tS(t){t.hoverState===ul&&If(t,"normal",yv)}function bI(t){t.selected=!0}function wI(t){t.selected=!1}function Kx(t,e,r){e(t,r)}function Oi(t,e,r){Kx(t,e,r),t.isGroup&&t.traverse(function(i){Kx(i,e,r)})}function Sv(t,e){switch(e){case"emphasis":t.hoverState=fl;break;case"normal":t.hoverState=yv;break;case"blur":t.hoverState=ul;break;case"select":t.selected=!0}}function TI(t,e,r,i){for(var n=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=n[s];a[s]=l??(i&&i[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function CI(t,e,r,i){var n=r&&ne(r,"select")>=0,a=!1;if(t instanceof oe){var o=Qx(t),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Oo(s)||Oo(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(a=!0,i=N({},i),u=N({},u),u.fill=s):!Oo(u.fill)&&Oo(s)?(a=!0,i=N({},i),u=N({},u),u.fill=ju(s)):!Oo(u.stroke)&&Oo(l)&&(a||(i=N({},i),u=N({},u)),u.stroke=ju(l)),i.style=u}}if(i&&i.z2==null){a||(i=N({},i));var f=t.z2EmphasisLift;i.z2=t.z2+(f??xI)}return i}function EI(t,e,r){if(r&&r.z2==null){r=N({},r);var i=t.z2SelectLift;r.z2=t.z2+(i??SI)}return r}function AI(t,e,r){var i=ne(t.currentStates,e)>=0,n=t.style.opacity,a=i?null:TI(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=N({},r),o=N({opacity:i?n:a.opacity*.1},o),r.style=o),r}function vv(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return CI(this,t,e,r);if(t==="blur")return AI(this,t,r);if(t==="select")return EI(this,t,r)}return r}function DI(t){t.stateProxy=vv;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=vv),r&&(r.stateProxy=vv)}function Zx(t,e){!iS(t,e)&&!t.__highByOuter&&Oi(t,Jx)}function jx(t,e){!iS(t,e)&&!t.__highByOuter&&Oi(t,eS)}function ha(t,e){t.__highByOuter|=1<<(e||0),Oi(t,Jx)}function da(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Oi(t,eS)}function rS(t){Oi(t,xv)}function bv(t){Oi(t,tS)}function wv(t){Oi(t,bI)}function Tv(t){Oi(t,wI)}function iS(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Cv(t){var e=t.getModel(),r=[],i=[];e.eachComponent(function(n,a){var o=gv(a),s=Yx(t,a),l=n==="series";!l&&i.push(s),o.isBlured&&(s.group.traverse(function(u){tS(u)}),l&&r.push(a)),o.isBlured=!1}),w(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(r,!1,e)})}function mv(t,e,r,i){var n=i.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var p=u.getItemGraphicEl(f[c]);p&&bv(p)}}if(t!=null&&!(!e||e==="none")){var o=n.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var p=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!p||e==="series"&&f)){var h=i.getViewOfSeriesModel(u);if(h.group.traverse(function(m){m.__highByOuter&&f&&e==="self"||xv(m)}),Ye(e))a(u.getData(),e);else if(F(e))for(var d=fe(e),v=0;v<d.length;v++)a(u.getData(d[v]),e[d[v]]);l.push(u),gv(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var c=i.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,n)}})}}function Df(t,e,r){if(!(t==null||e==null)){var i=r.getModel().getComponent(t,e);if(i){gv(i).isBlured=!0;var n=r.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){xv(a)})}}}function nS(t,e,r){var i=t.seriesIndex,n=t.getData(e.dataType);if(n){var a=wr(n,e);a=(P(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=he(o);mv(i,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&mv(i,f,c,r)}}}function Lf(t,e,r,i){var n={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return n;var a=i.getModel().getComponent(t,e);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(he(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function aS(t,e,r){var i=he(t),n=Lf(i.componentMainType,i.componentIndex,i.componentHighDownName,r),a=n.dispatchers,o=n.focusSelf;a?(o&&Df(i.componentMainType,i.componentIndex,r),w(a,function(s){return Zx(s,e)})):(mv(i.seriesIndex,i.focus,i.blurScope,r),i.focus==="self"&&Df(i.componentMainType,i.componentIndex,r),Zx(t,e))}function oS(t,e,r){Cv(r);var i=he(t),n=Lf(i.componentMainType,i.componentIndex,i.componentHighDownName,r).dispatchers;n?w(n,function(a){return jx(a,e)}):jx(t,e)}function sS(t,e,r){if(Nf(e)){var i=e.dataType,n=t.getData(i),a=wr(n,e);P(a)||(a=[a]),t[e.type===hl?"toggleSelect":e.type===pl?"select":"unselect"](a,i)}}function Ev(t){var e=t.getAllData();w(e,function(r){var i=r.data,n=r.type;i.eachItemGraphicEl(function(a,o){t.isSelected(o,n)?wv(a):Tv(a)})})}function lS(t){var e=[];return t.eachSeries(function(r){var i=r.getAllData();w(i,function(n){var a=n.data,o=n.type,s=r.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:r.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function Io(t,e,r){uS(t,!0),Oi(t,DI),OI(t,e,r)}function MI(t){uS(t,!1)}function va(t,e,r,i){i?MI(t):Io(t,e,r)}function OI(t,e,r){var i=he(t);e!=null?(i.focus=e,i.blurScope=r):i.focus&&(i.focus=null)}var $x=["emphasis","blur","select"],II={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function dl(t,e,r,i){r=r||"itemStyle";for(var n=0;n<$x.length;n++){var a=$x[n],o=e.getModel([a,r]),s=t.ensureState(a);s.style=i?i(o):o[II[r]]()}}function uS(t,e){var r=e===!1,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r)}function vl(t){return!!(t&&t.__highDownDispatcher)}function fS(t){var e=qx[t];return e==null&&Xx<=32&&(e=qx[t]=Xx++),e}function Nf(t){var e=t.type;return e===pl||e===Mf||e===hl}function Av(t){var e=t.type;return e===fn||e===cl}function cS(t){var e=Qx(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var _t={};Ft(_t,{Arc:()=>ya,BezierCurve:()=>wl,BoundingRect:()=>j,Circle:()=>ma,CompoundPath:()=>Uf,Ellipse:()=>gl,Group:()=>we,HOVER_LAYER_FOR_INCREMENTAL:()=>Cl,HOVER_LAYER_FROM_THRESHOLD:()=>Fv,HOVER_LAYER_NO:()=>zv,Image:()=>Wt,IncrementalDisplayable:()=>Yf,Line:()=>or,LinearGradient:()=>Po,OrientedBoundingRect:()=>Wf,Path:()=>oe,Point:()=>Ee,Polygon:()=>Sl,Polyline:()=>bl,RadialGradient:()=>Ff,Rect:()=>_e,Ring:()=>xl,Sector:()=>ci,Text:()=>Oe,WH:()=>ba,XY:()=>Ii,applyTransform:()=>Zf,calcZ2Range:()=>vL,clipPointsByRect:()=>qv,clipRectByRect:()=>Kv,createIcon:()=>Ta,decomposeTransform:()=>gL,ensureCopyRect:()=>Vo,ensureCopyTransform:()=>$f,expandOrShrinkRect:()=>zo,extendPath:()=>Hv,extendShape:()=>Vv,getCurrentCanvasPainter:()=>yL,getShapeClass:()=>Gv,getTransform:()=>Yv,groupTransition:()=>Xv,initProps:()=>Tt,isBoundingRectAxisAligned:()=>jf,isElementRemoved:()=>Sa,lineLineIntersect:()=>GS,linePolygonIntersect:()=>hL,makeImage:()=>El,makePath:()=>Uo,mergePath:()=>Wv,payloadDisableAnimation:()=>mL,registerShape:()=>sr,removeElement:()=>ko,removeElementWithFadeOut:()=>Bo,resizePath:()=>Kf,retrieveZInfo:()=>Zv,setTooltipConfig:()=>Fo,subPixelOptimize:()=>fL,subPixelOptimizeLine:()=>wa,subPixelOptimizeRect:()=>uL,transformDirection:()=>cL,traverseElements:()=>Ca,traverseUpdateZ:()=>jv,updateProps:()=>He});var Lo=rr.CMD,LI=[[],[],[]],pS=Math.sqrt,NI=Math.atan2;function Dv(t,e){if(e){var r=t.data,i=t.len(),n,a,o,s,l,u,f=Lo.M,c=Lo.C,p=Lo.L,h=Lo.R,d=Lo.A,v=Lo.Q;for(o=0,s=0;o<i;){switch(n=r[o++],s=o,a=0,n){case f:a=1;break;case p:a=1;break;case c:a=3;break;case v:a=2;break;case d:var m=e[4],g=e[5],y=pS(e[0]*e[0]+e[1]*e[1]),_=pS(e[2]*e[2]+e[3]*e[3]),x=NI(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=m,r[o]*=_,r[o++]+=g,r[o++]*=y,r[o++]*=_,r[o++]+=x,r[o++]+=x,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],qe(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],qe(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var S=LI[l];S[0]=r[o++],S[1]=r[o++],qe(S,S,e),r[s++]=S[0],r[s++]=S[1]}}t.increaseVersion()}}var Mv=Math.sqrt,Pf=Math.sin,Rf=Math.cos,ml=Math.PI;function hS(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ov(t,e){return(t[0]*e[0]+t[1]*e[1])/(hS(t)*hS(e))}function dS(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Ov(t,e))}function vS(t,e,r,i,n,a,o,s,l,u,f){var c=l*(ml/180),p=Rf(c)*(t-r)/2+Pf(c)*(e-i)/2,h=-1*Pf(c)*(t-r)/2+Rf(c)*(e-i)/2,d=p*p/(o*o)+h*h/(s*s);d>1&&(o*=Mv(d),s*=Mv(d));var v=(n===a?-1:1)*Mv((o*o*(s*s)-o*o*(h*h)-s*s*(p*p))/(o*o*(h*h)+s*s*(p*p)))||0,m=v*o*h/s,g=v*-s*p/o,y=(t+r)/2+Rf(c)*m-Pf(c)*g,_=(e+i)/2+Pf(c)*m+Rf(c)*g,x=dS([1,0],[(p-m)/o,(h-g)/s]),S=[(p-m)/o,(h-g)/s],b=[(-1*p-m)/o,(-1*h-g)/s],T=dS(S,b);if(Ov(S,b)<=-1&&(T=ml),Ov(S,b)>=1&&(T=0),T<0){var C=Math.round(T/ml*1e6)/1e6;T=ml*2+C%2*ml}f.addData(u,y,_,o,s,x,T,c,a)}var PI=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,RI=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function kI(t){var e=new rr;if(!t)return e;var r=0,i=0,n=r,a=i,o,s=rr.CMD,l=t.match(PI);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),p=void 0,h=f.match(RI)||[],d=h.length,v=0;v<d;v++)h[v]=parseFloat(h[v]);for(var m=0;m<d;){var g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0,T=void 0,C=r,A=i,E=void 0,D=void 0;switch(c){case"l":r+=h[m++],i+=h[m++],p=s.L,e.addData(p,r,i);break;case"L":r=h[m++],i=h[m++],p=s.L,e.addData(p,r,i);break;case"m":r+=h[m++],i+=h[m++],p=s.M,e.addData(p,r,i),n=r,a=i,c="l";break;case"M":r=h[m++],i=h[m++],p=s.M,e.addData(p,r,i),n=r,a=i,c="L";break;case"h":r+=h[m++],p=s.L,e.addData(p,r,i);break;case"H":r=h[m++],p=s.L,e.addData(p,r,i);break;case"v":i+=h[m++],p=s.L,e.addData(p,r,i);break;case"V":i=h[m++],p=s.L,e.addData(p,r,i);break;case"C":p=s.C,e.addData(p,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),r=h[m-2],i=h[m-1];break;case"c":p=s.C,e.addData(p,h[m++]+r,h[m++]+i,h[m++]+r,h[m++]+i,h[m++]+r,h[m++]+i),r+=h[m-2],i+=h[m-1];break;case"S":g=r,y=i,E=e.len(),D=e.data,o===s.C&&(g+=r-D[E-4],y+=i-D[E-3]),p=s.C,C=h[m++],A=h[m++],r=h[m++],i=h[m++],e.addData(p,g,y,C,A,r,i);break;case"s":g=r,y=i,E=e.len(),D=e.data,o===s.C&&(g+=r-D[E-4],y+=i-D[E-3]),p=s.C,C=r+h[m++],A=i+h[m++],r+=h[m++],i+=h[m++],e.addData(p,g,y,C,A,r,i);break;case"Q":C=h[m++],A=h[m++],r=h[m++],i=h[m++],p=s.Q,e.addData(p,C,A,r,i);break;case"q":C=h[m++]+r,A=h[m++]+i,r+=h[m++],i+=h[m++],p=s.Q,e.addData(p,C,A,r,i);break;case"T":g=r,y=i,E=e.len(),D=e.data,o===s.Q&&(g+=r-D[E-4],y+=i-D[E-3]),r=h[m++],i=h[m++],p=s.Q,e.addData(p,g,y,r,i);break;case"t":g=r,y=i,E=e.len(),D=e.data,o===s.Q&&(g+=r-D[E-4],y+=i-D[E-3]),r+=h[m++],i+=h[m++],p=s.Q,e.addData(p,g,y,r,i);break;case"A":_=h[m++],x=h[m++],S=h[m++],b=h[m++],T=h[m++],C=r,A=i,r=h[m++],i=h[m++],p=s.A,vS(C,A,r,i,b,T,_,x,S,p,e);break;case"a":_=h[m++],x=h[m++],S=h[m++],b=h[m++],T=h[m++],C=r,A=i,r+=h[m++],i+=h[m++],p=s.A,vS(C,A,r,i,b,T,_,x,S,p,e);break}}(c==="z"||c==="Z")&&(p=s.Z,e.addData(p),r=n,i=a),o=p}return e.toStatic(),e}var mS=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(oe);function gS(t){return t.setData!=null}function yS(t,e){var r=kI(t),i=N({},e);return i.buildPath=function(n){var a=gS(n);if(a&&n.canSave()){n.appendPath(r);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&r.rebuildPath(o,1)}},i.applyTransform=function(n){Dv(r,n),this.dirtyShape()},i}function _S(t,e){return new mS(yS(t,e))}function xS(t,e){var r=yS(t,e),i=(function(n){L(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(mS);return i}function SS(t,e){for(var r=[],i=t.length,n=0;n<i;n++){var a=t[n];r.push(a.getUpdatedPathProxy(!0))}var o=new oe(e);return o.createPathProxy(),o.buildPath=function(s){if(gS(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var UI=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})();var bS=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new UI},e.prototype.buildPath=function(r,i){r.moveTo(i.cx+i.r,i.cy),r.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e})(oe);bS.prototype.type="circle";var ma=bS;var zI=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})();var wS=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new zI},e.prototype.buildPath=function(r,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*n,f=l*n;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},e})(oe);wS.prototype.type="ellipse";var gl=wS;var CS=Math.PI,Iv=CS*2,ga=Math.sin,No=Math.cos,FI=Math.acos,wt=Math.atan2,TS=Math.abs,_l=Math.sqrt,yl=Math.max,fi=Math.min,Yr=1e-4;function VI(t,e,r,i,n,a,o,s){var l=r-t,u=i-e,f=o-n,c=s-a,p=c*l-f*u;if(!(p*p<Yr))return p=(f*(e-a)-c*(t-n))/p,[t+p*l,e+p*u]}function kf(t,e,r,i,n,a,o){var s=t-r,l=e-i,u=(o?a:-a)/_l(s*s+l*l),f=u*l,c=-u*s,p=t+f,h=e+c,d=r+f,v=i+c,m=(p+d)/2,g=(h+v)/2,y=d-p,_=v-h,x=y*y+_*_,S=n-a,b=p*v-d*h,T=(_<0?-1:1)*_l(yl(0,S*S*x-b*b)),C=(b*_-y*T)/x,A=(-b*y-_*T)/x,E=(b*_+y*T)/x,D=(-b*y+_*T)/x,O=C-m,M=A-g,I=E-m,R=D-g;return O*O+M*M>I*I+R*R&&(C=E,A=D),{cx:C,cy:A,x0:-f,y0:-c,x1:C*(n/S-1),y1:A*(n/S-1)}}function HI(t){var e;if(P(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function ES(t,e){var r,i=yl(e.r,0),n=yl(e.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,p=!!e.clockwise,h=TS(u-l),d=h>Iv&&h%Iv;if(d>Yr&&(h=d),!(i>Yr))t.moveTo(f,c);else if(h>Iv-Yr)t.moveTo(f+i*No(l),c+i*ga(l)),t.arc(f,c,i,l,u,!p),n>Yr&&(t.moveTo(f+n*No(u),c+n*ga(u)),t.arc(f,c,n,u,l,p));else{var v=void 0,m=void 0,g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0,T=void 0,C=void 0,A=void 0,E=void 0,D=void 0,O=void 0,M=void 0,I=void 0,R=i*No(l),k=i*ga(l),W=n*No(u),z=n*ga(u),X=h>Yr;if(X){var $=e.cornerRadius;$&&(r=HI($),v=r[0],m=r[1],g=r[2],y=r[3]);var K=TS(i-n)/2;if(_=fi(K,g),x=fi(K,y),S=fi(K,v),b=fi(K,m),A=T=yl(_,x),E=C=yl(S,b),(T>Yr||C>Yr)&&(D=i*No(u),O=i*ga(u),M=n*No(l),I=n*ga(l),h<CS)){var te=VI(R,k,M,I,D,O,W,z);if(te){var ie=R-te[0],q=k-te[1],ge=D-te[0],Se=O-te[1],Dt=1/ga(FI((ie*ge+q*Se)/(_l(ie*ie+q*q)*_l(ge*ge+Se*Se)))/2),kr=_l(te[0]*te[0]+te[1]*te[1]);A=fi(T,(i-kr)/(Dt+1)),E=fi(C,(n-kr)/(Dt-1))}}}if(!X)t.moveTo(f+R,c+k);else if(A>Yr){var Pe=fi(g,A),it=fi(y,A),de=kf(M,I,R,k,i,Pe,p),be=kf(D,O,W,z,i,it,p);t.moveTo(f+de.cx+de.x0,c+de.cy+de.y0),A<T&&Pe===it?t.arc(f+de.cx,c+de.cy,A,wt(de.y0,de.x0),wt(be.y0,be.x0),!p):(Pe>0&&t.arc(f+de.cx,c+de.cy,Pe,wt(de.y0,de.x0),wt(de.y1,de.x1),!p),t.arc(f,c,i,wt(de.cy+de.y1,de.cx+de.x1),wt(be.cy+be.y1,be.cx+be.x1),!p),it>0&&t.arc(f+be.cx,c+be.cy,it,wt(be.y1,be.x1),wt(be.y0,be.x0),!p))}else t.moveTo(f+R,c+k),t.arc(f,c,i,l,u,!p);if(!(n>Yr)||!X)t.lineTo(f+W,c+z);else if(E>Yr){var Pe=fi(v,E),it=fi(m,E),de=kf(W,z,D,O,n,-it,p),be=kf(R,k,M,I,n,-Pe,p);t.lineTo(f+de.cx+de.x0,c+de.cy+de.y0),E<C&&Pe===it?t.arc(f+de.cx,c+de.cy,E,wt(de.y0,de.x0),wt(be.y0,be.x0),!p):(it>0&&t.arc(f+de.cx,c+de.cy,it,wt(de.y0,de.x0),wt(de.y1,de.x1),!p),t.arc(f,c,n,wt(de.cy+de.y1,de.cx+de.x1),wt(be.cy+be.y1,be.cx+be.x1),p),Pe>0&&t.arc(f+be.cx,c+be.cy,Pe,wt(be.y1,be.x1),wt(be.y0,be.x0),!p))}else t.lineTo(f+W,c+z),t.arc(f,c,n,u,l,p)}t.closePath()}}}var WI=(function(){function t(){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 t})();var AS=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new WI},e.prototype.buildPath=function(r,i){ES(r,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(oe);AS.prototype.type="sector";var ci=AS;var YI=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})();var DS=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new YI},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},e})(oe);DS.prototype.type="ring";var xl=DS;function Lv(t,e,r,i){var n=[],a=[],o=[],s=[],l,u,f,c;if(i){f=[1/0,1/0],c=[-1/0,-1/0];for(var p=0,h=t.length;p<h;p++)mr(f,f,t[p]),gr(c,c,t[p]);mr(f,f,i[0]),gr(c,c,i[1])}for(var p=0,h=t.length;p<h;p++){var d=t[p];if(r)l=t[p?p-1:h-1],u=t[(p+1)%h];else if(p===0||p===h-1){n.push(Bh(t[p]));continue}else l=t[p-1],u=t[p+1];Uh(a,u,l),Ps(a,a,e);var v=Rs(d,l),m=Rs(d,u),g=v+m;g!==0&&(v/=g,m/=g),Ps(o,a,-v),Ps(s,a,m);var y=Nu([],d,o),_=Nu([],d,s);i&&(gr(y,y,f),mr(y,y,c),gr(_,_,f),mr(_,_,c)),n.push(y),n.push(_)}return r&&n.push(n.shift()),n}function Bf(t,e,r){var i=e.smooth,n=e.points;if(n&&n.length>=2){if(i){var a=Lv(n,i,r,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=n[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;s<c;s++)t.lineTo(n[s][0],n[s][1])}r&&t.closePath()}}var XI=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})();var OS=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new XI},e.prototype.buildPath=function(r,i){Bf(r,i,!0)},e})(oe);OS.prototype.type="polygon";var Sl=OS;var qI=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})();var IS=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new qI},e.prototype.buildPath=function(r,i){Bf(r,i,!1)},e})(oe);IS.prototype.type="polyline";var bl=IS;var KI={},ZI=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})();var LS=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ZI},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=wf(KI,i,this.style);n=l.x1,a=l.y1,o=l.x2,s=l.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(r.moveTo(n,a),u<1&&(o=n*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var i=this.shape;return[i.x1*(1-r)+i.x2*r,i.y1*(1-r)+i.y2*r]},e})(oe);LS.prototype.type="line";var or=LS;var Yt=[],jI=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function NS(t,e,r){var i=t.cpx2,n=t.cpy2;return i!=null||n!=null?[(r?od:Be)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?od:Be)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?sd:at)(t.x1,t.cpx1,t.x2,e),(r?sd:at)(t.y1,t.cpy1,t.y2,e)]}var PS=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new jI},e.prototype.buildPath=function(r,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,c=i.cpy2,p=i.percent;p!==0&&(r.moveTo(n,a),f==null||c==null?(p<1&&(co(n,l,o,p,Yt),l=Yt[1],o=Yt[2],co(a,u,s,p,Yt),u=Yt[1],s=Yt[2]),r.quadraticCurveTo(l,u,o,s)):(p<1&&(fo(n,l,f,o,p,Yt),l=Yt[1],f=Yt[2],o=Yt[3],fo(a,u,c,s,p,Yt),u=Yt[1],c=Yt[2],s=Yt[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return NS(this.shape,r,!1)},e.prototype.tangentAt=function(r){var i=NS(this.shape,r,!0);return Vh(i,i)},e})(oe);PS.prototype.type="bezier-curve";var wl=PS;var $I=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})();var RS=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new $I},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+n,c*o+a),r.arc(n,a,o,s,l,!u)},e})(oe);RS.prototype.type="arc";var ya=RS;var QI=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,i=this.shapeChanged(),n=0;n<r.length;n++)i=i||r[n].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<r.length;n++)r[n].path||r[n].createPathProxy(),r[n].path.setScale(i[0],i[1],r[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(r,n[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],i=0;i<r.length;i++)r[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),oe.prototype.getBoundingRect.call(this)},e})(oe),Uf=QI;var JI=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),zf=JI;var eL=(function(t){L(e,t);function e(r,i,n,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=i??0,l.x2=n??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e})(zf),Po=eL;var tL=(function(t){L(e,t);function e(r,i,n,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return e})(zf),Ff=tL;var Nv=Math.min,rL=Math.max,Vf=Math.abs,_a=[0,0],xa=[0,0],ct=td(),Hf=ct.minTv,Gf=ct.maxTv,iL=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new Ee;for(var i=0;i<2;i++)this._axes[i]=new Ee;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var i=this._corners,n=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,l),i[3].set(a,l),r)for(var u=0;u<4;u++)i[u].transform(r);Ee.sub(n[0],i[1],i[0]),Ee.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(i[0])},t.prototype.intersect=function(e,r,i){var n=!0,a=!r;return r&&Ee.set(r,0,0),ct.reset(i,!a),!this._intersectCheckOneSide(this,e,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(n=!1,a)||!a&&!ct.negativeSize&&Ee.copy(r,n?ct.useDir?ct.dirMinTv:Hf:Gf),n},t.prototype._intersectCheckOneSide=function(e,r,i,n){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,_a),e._getProjMinMaxOnAxis(o,r._corners,xa),ct.negativeSize||_a[1]<xa[0]||_a[0]>xa[1]){if(a=!1,ct.negativeSize||i)return a;var l=Vf(xa[0]-_a[1]),u=Vf(_a[0]-xa[1]);Nv(l,u)>Gf.len()&&(l<u?Ee.scale(Gf,s,-l*n):Ee.scale(Gf,s,u*n))}else if(!i){var l=Vf(xa[0]-_a[1]),u=Vf(_a[0]-xa[1]);(ct.useDir||Nv(l,u)<Hf.len())&&((l<u||!ct.bidirectional)&&(Ee.scale(Hf,s,l*n),ct.useDir&&ct.calcDirMTV()),(l>=u||!ct.bidirectional)&&(Ee.scale(Hf,s,-u*n),ct.useDir&&ct.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,i){for(var n=this._axes[e],a=this._origin,o=r[0].dot(n)+a[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(n)+a[e];s=Nv(f,s),l=rL(f,l)}i[0]=s+ct.touchThreshold,i[1]=l-ct.touchThreshold,ct.negativeSize=i[1]<i[0]},t})(),Wf=iL;var Pv=0,kS=1,BS=2,US=1,Ro=0;var nL=[],aL=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=kS,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,i){r.call(i,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,i){i?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,i){i=i||!1;for(var n=0;n<r.length;n++)this.addDisplayable(r[n],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var i=this._cursor;i<this._displayables.length;i++)r&&r(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)r&&r(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var i=this._displayables[r];i.parent=this,i.update(),i.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var i=this._temporaryDisplayables[r];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new j(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(nL)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,i))return!0}return!1},e})(ni),Yf=aL;var oL=ae();function sL(t,e,r,i,n){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,c=void 0;i?(u=Y(i.duration,200),f=Y(i.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),G(c)&&(c=c(r,n)),G(u)&&(u=u(r));var p={duration:u||0,delay:c,easing:f};return p}else return null}function Rv(t,e,r,i,n,a,o){var s=!1,l;G(n)?(o=a,a=n,n=null):F(n)&&(a=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=sL(t,i,n,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var c=f.duration,p=f.delay,h=f.easing,d={duration:c,delay:p||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function He(t,e,r,i,n,a){Rv("update",t,e,r,i,n,a)}function Tt(t,e,r,i,n,a){Rv("enter",t,e,r,i,n,a)}function Sa(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function ko(t,e,r,i,n,a){Sa(t)||Rv("leave",t,e,r,i,n,a)}function zS(t,e,r,i){t.removeTextContent(),t.removeTextGuideLine(),ko(t,{style:{opacity:0}},e,r,i)}function Bo(t,e,r){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(n){n.isGroup||zS(n,e,r,i)}):zS(t,e,r,i)}function Xf(t){oL(t).oldStyle=t.style}var Bv={},Ii=["x","y"],ba=["width","height"],zv=0,Fv=1,Cl=2;function Vv(t){return oe.extend(t)}var lL=xS;function Hv(t,e){return lL(t,e)}function sr(t,e){Bv[t]=e}function Gv(t){if(Bv.hasOwnProperty(t))return Bv[t]}function Uo(t,e,r,i){var n=_S(t,e);return r&&(i==="center"&&(r=HS(r,n.getBoundingRect())),Kf(n,r)),n}function El(t,e,r){var i=new Wt({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(r==="center"){var a={width:n.width,height:n.height};i.setStyle(HS(e,a))}}});return i}function HS(t,e){var r=e.width/e.height,i=t.height*r,n;i<=t.width?n=t.height:(i=t.width,n=i/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var Wv=SS;function Kf(t,e){if(t.applyTransform){var r=t.getBoundingRect(),i=r.calculateTransform(e);t.applyTransform(i)}}function wa(t,e){return wf(t,t,{lineWidth:e}),t}function uL(t,e){return Tf(t,t,e),t}var fL=ln;function Yv(t,e){for(var r=yr([]);t&&t!==e;)Ur(r,t.getLocalTransform(),r),t=t.parent;return r}function Zf(t,e,r){return e&&!Ye(e)&&(e=yo.getLocalTransform(e)),r&&(e=Qt([],e)),qe([],t,e)}function cL(t,e,r){var i=e[4]===0||e[5]===0||e[0]===0?1:Le(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:Le(2*e[4]/e[2]),a=[t==="left"?-i:t==="right"?i:0,t==="top"?-n:t==="bottom"?n:0];return a=Zf(a,e,r),Le(a[0])>Le(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function FS(t){return!t.isGroup}function pL(t){return t.shape!=null}function Xv(t,e,r){if(!t||!e)return;function i(o){var s={};return o.traverse(function(l){FS(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return pL(o)&&(s.shape=Q(o.shape)),s}var a=i(t);e.traverse(function(o){if(FS(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),He(o,l,r,he(o).dataIndex)}}})}function qv(t,e){return U(t,function(r){var i=r[0];i=ce(i,e.x),i=Ue(i,e.x+e.width);var n=r[1];return n=ce(n,e.y),n=Ue(n,e.y+e.height),[i,n]})}function Kv(t,e){var r=ce(t.x,e.x),i=Ue(t.x+t.width,e.x+e.width),n=ce(t.y,e.y),a=Ue(t.y+t.height,e.y+e.height);if(i>=r&&a>=n)return{x:r,y:n,width:i-r,height:a-n}}function Ta(t,e,r){var i=N({rectHover:!0},e),n=i.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(n.image=t.slice(8),re(n,r),new Wt(i)):Uo(t.replace("path://",""),i,r,"center")}function hL(t,e,r,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(GS(t,e,r,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function GS(t,e,r,i,n,a,o,s){var l=r-t,u=i-e,f=o-n,c=s-a,p=kv(f,c,l,u);if(dL(p))return!1;var h=t-n,d=e-a,v=kv(h,d,l,u)/p;if(v<0||v>1)return!1;var m=kv(h,d,f,c)/p;return!(m<0||m>1)}function kv(t,e,r,i){return t*i-r*e}function dL(t){return t<=1e-6&&t>=-1e-6}function zo(t,e,r,i,n){return e==null||(le(e)?Ne[0]=Ne[1]=Ne[2]=Ne[3]=e:(Ne[0]=e[0],Ne[1]=e[1],Ne[2]=e[2],Ne[3]=e[3]),i&&(Ne[0]=ce(0,Ne[0]),Ne[1]=ce(0,Ne[1]),Ne[2]=ce(0,Ne[2]),Ne[3]=ce(0,Ne[3])),r&&(Ne[0]=-Ne[0],Ne[1]=-Ne[1],Ne[2]=-Ne[2],Ne[3]=-Ne[3]),VS(t,Ne,"x","width",3,1,n&&n[0]||0),VS(t,Ne,"y","height",0,2,n&&n[1]||0)),t}var Ne=[0,0,0,0];function VS(t,e,r,i,n,a,o){var s=e[a]+e[n],l=t[i];t[i]+=s,o=ce(0,Ue(o,l)),t[i]<o?(t[i]=o,t[r]+=e[n]>=0?-e[n]:e[a]>=0?l+e[a]:Le(s)>1e-8?(l-o)*e[n]/s:0):t[r]-=e[n]}function Fo(t){var e=t.itemTooltipOption,r=t.componentModel,i=t.itemName,n=B(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&w(fe(l),function(f){Me(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=he(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:re({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function Uv(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Ca(t,e){if(t)if(P(t))for(var r=0;r<t.length;r++)Uv(t[r],e);else Uv(t,e)}function jf(t){return!t||Le(t[1])<qf&&Le(t[2])<qf||Le(t[0])<qf&&Le(t[3])<qf}var qf=1e-5;function Vo(t,e){return t?j.copy(t,e):e.clone()}function $f(t,e){return e?zn(t||mt(),e):void 0}function Zv(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function vL(t){var e=-1/0,r=1/0;Uv(t,function(a){i(a),i(a.getTextContent()),i(a.getTextGuideLine())});function i(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(a.states[o[s]]);n(a)}}function n(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function jv(t,e,r){WS(t,e,r,-1/0)}function WS(t,e,r,i){if(t.ignoreModelZ)return i;var n=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=ce(WS(s[l],e,r,i),i);else t.z=e,t.zlevel=r,i=ce(t.z2||0,i);if(n&&(n.z=e,n.zlevel=r,isFinite(i)&&(n.z2=i+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function mL(t){return t.animation={duration:0},t}function gL(t,e){return e?zn(Tl.transform,e):yr(Tl.transform),Tl.decomposeTransform(),go(t,Tl),t}var Tl=new yo;Tl.transform=mt();function yL(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}sr("circle",ma);sr("ellipse",gl);sr("sector",ci);sr("ring",xl);sr("polygon",Sl);sr("polyline",bl);sr("rect",_e);sr("line",or);sr("bezierCurve",wl);sr("arc",ya);var Qf={};function _L(t,e){for(var r=0;r<Dr.length;r++){var i=Dr[r],n=e[i],a=t.ensureState(i);a.style=a.style||{},a.style.text=n}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function YS(t,e,r){var i=t.labelFetcher,n=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=G(t.defaultText)?t.defaultText(n,t,r):t.defaultText);for(var l={normal:s},u=0;u<Dr.length;u++){var f=Dr[u],c=e[f];l[f]=Y(i?i.getFormattedLabel(n,f,null,a,c&&c.get("formatter")):null,s)}return l}function cn(t,e,r,i){r=r||Qf;for(var n=t instanceof Oe,a=!1,o=0;o<_v.length;o++){var s=e[_v[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=n?t:t.getTextContent();if(a){n||(l||(l=new Oe,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=YS(r,e),f=e.normal,c=!!f.getShallow("show"),p=Xr(f,i&&i.normal,r,!1,!n);p.text=u.normal,n||t.setTextConfig(XS(f,r,!1));for(var o=0;o<Dr.length;o++){var h=Dr[o],s=e[h];if(s){var d=l.ensureState(h),v=!!Y(s.getShallow("show"),c);if(v!==c&&(d.ignore=!v),d.style=Xr(s,i&&i[h],r,!0,!n),d.style.text=u[h],!n){var m=t.ensureState(h);m.textConfig=XS(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(p.x=l.style.x),l.style.y!=null&&(p.y=l.style.y),l.ignore=!c,l.useStyle(p),l.dirty(),r.enableTextSetter&&(Ho(l).setLabelText=function(g){var y=YS(r,e,g);_L(l,y)})}else l&&(l.ignore=!0);t.dirty()}function pn(t,e){e=e||"label";for(var r={normal:t.getModel(e)},i=0;i<Dr.length;i++){var n=Dr[i];r[n]=t.getModel([n,e])}return r}function Xr(t,e,r,i,n){var a={};return xL(a,t,r,i,n),e&&N(a,e),a}function XS(t,e,r){e=e||{};var i={},n,a=t.getShallow("rotate"),o=Y(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return n=t.getShallow("position")||(r?null:"inside"),n==="outside"&&(n=e.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(i.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(i.layoutRect=e.layoutRect),i}function xL(t,e,r,i,n){r=r||Qf;var a=e.ecModel,o=a&&a.option.textStyle,s=SL(e),l;if(s){l={};var u="richInheritPlainLabel",f=Y(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var p=e.getModel(["rich",c]);jS(l[c]={},p,o,e,f,r,i,n,!1,!0)}}l&&(t.rich=l);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var v=t,m=e.get("minMargin");if(m!=null)m=le(m)?m/2:0,v.margin=[m,m,m,m],v.__marginType=Ea.minMargin;else{var g=e.get("textMargin");g!=null&&(v.margin=Bn(g),v.__marginType=Ea.textMargin)}jS(t,e,o,null,null,r,i,n,!0,!1)}function SL(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Qf).rich;if(r){e=e||{};for(var i=fe(r),n=0;n<i.length;n++){var a=i[n];e[a]=1}}t=t.parentModel}return e}var qS=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],KS=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],ZS=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function jS(t,e,r,i,n,a,o,s,l,u){r=!o&&r||Qf;var f=a&&a.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),h=Y(e.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(p==="inherit"||p==="auto")&&(f?p=f:p=null),s||(c=c||r.color,p=p||r.textBorderColor),c!=null&&(t.fill=c),p!=null&&(t.stroke=p);var d=Y(e.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(t.lineWidth=d);var v=Y(e.getShallow("textBorderType"),r.textBorderType);v!=null&&(t.lineDash=v);var m=Y(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);m!=null&&(t.lineDashOffset=m),!o&&h==null&&!u&&(h=a&&a.defaultOpacity),h!=null&&(t.opacity=h),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var g=0;g<qS.length;g++){var y=qS[g],_=n!==!1&&i?vr(e.getShallow(y),i.getShallow(y),r[y]):Y(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var g=0;g<KS.length;g++){var y=KS[g],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var x=e.getShallow("baseline");x!=null&&(t.verticalAlign=x)}if(!l||!a.disableBox){for(var g=0;g<ZS.length;g++){var y=ZS[g],_=e.getShallow(y);_!=null&&(t[y]=_)}var S=e.getShallow("borderType");S!=null&&(t.borderDash=S),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function $S(t,e){var r=e&&e.getModel("textStyle");return ut([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var Ho=ae();function QS(t,e,r,i){if(t){var n=Ho(t);n.prevValue=n.value,n.value=r;var a=e.normal;n.valueAnimation=a.get("valueAnimation"),n.valueAnimation&&(n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=e)}}var Ea={minMargin:1,textMargin:2};var bL=["textStyle","color"],$v=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Qv=new Oe,wL=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(bL):null)},t.prototype.getFont=function(){return $S({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<$v.length;i++)r[$v[i]]=this.getShallow($v[i]);return Qv.useStyle(r),Qv.update(),Qv.getBoundingRect()},t})(),JS=wL;var Jv=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],TL=ri(Jv),eb=(function(){function t(){}return t.prototype.getLineStyle=function(e){return TL(this,e)},t})();var em=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],CL=ri(em),tb=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return CL(this,e,r)},t})();var Aa=(function(){function t(e,r,i){this.parentModel=r,this.ecModel=i,this.option=e}return t.prototype.init=function(e,r,i){for(var n=[],a=3;a<arguments.length;a++)n[a-3]=arguments[a]},t.prototype.mergeOption=function(e,r){ue(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var i=this.option,n=i==null?i:i[e];if(n==null&&!r){var a=this.parentModel;a&&(n=a.getShallow(e))}return n},t.prototype.getModel=function(e,r){var i=e!=null,n=i?this.parsePath(e):null,a=i?this._doGet(n):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(Q(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!ee.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var i=this.option;if(!e)return i;for(var n=0;n<e.length&&!(e[n]&&(i=i&&typeof i=="object"?i[e[n]]:null,i==null));n++);return i==null&&r&&(i=r._doGet(this.resolveParentPath(e),r.parentModel)),i},t})();Ao(Aa);rx(Aa);lt(Aa,eb);lt(Aa,tb);lt(Aa,ix);lt(Aa,JS);var Te=Aa;var EL=Math.round(Math.random()*10);function hn(t){return[t||"",EL++].join("_")}function rb(t){var e={};t.registerSubTypeDefaulter=function(r,i){var n=Gt(r);e[n.main]=i},t.determineSubType=function(r,i){var n=i.type;if(!n){var a=Gt(r).main;t.hasSubTypes(r)&&e[a]&&(n=e[a](i))}return n}}function ib(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,p={};for(w(a,function(y){p[y]=!0});c.length;){var h=c.pop(),d=f[h],v=!!p[h];v&&(s.call(l,h,d.originalDeps.slice()),delete p[h]),w(d.successor,v?g:m)}w(p,function(){var y="";throw new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function g(y){p[y]=!0,m(y)}};function r(a){var o={},s=[];return w(a,function(l){var u=i(o,l),f=u.originalDeps=e(l),c=n(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),w(c,function(p){ne(u.predecessor,p)<0&&u.predecessor.push(p);var h=i(o,p);ne(h.successor,p)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return w(a,function(l){ne(o,l)>=0&&s.push(l)}),s}}function Jf(t,e){return ue(ue({},t,!0),e,!0)}var nb={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}};var ab={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var tc="ZH",rm="EN",Go=rm,ec={},im={},rc=ee.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Go).toUpperCase();return t.indexOf(tc)>-1?tc:Go})():Go;function ic(t,e){t=t.toUpperCase(),im[t]=new Te(e),ec[t]=e}function ob(t){if(B(t)){var e=ec[t.toUpperCase()]||{};return t===tc||t===rm?Q(e):ue(Q(e),Q(ec[Go]),!1)}else return ue(Q(t),Q(ec[Go]),!1)}function sb(t){return im[t]}function lb(){return im[Go]}ic(rm,nb);ic(tc,ab);var AL=null;function Ve(){return AL}function nc(t,e){var r=Ve(),i=e.breakOption,n=e.breakParsed;return!n&&r&&(n=r.parseAxisBreakOption(i,t)),n}function Da(t){var e=t.brk;return e?e.breaks:[]}function Ma(t){var e=t.brk;return e?e.hasBreaks():!1}var sc=1e3,lc=sc*60,Wo=lc*60,lr=Wo*24,nm=lr*365,DL={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},oc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},ML="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",ac="{yyyy}-{MM}-{dd}",am={year:"{yyyy}",month:"{yyyy}-{MM}",day:ac,hour:ac+" "+oc.hour,minute:ac+" "+oc.minute,second:ac+" "+oc.second,millisecond:ML},Xt=["year","month","day","hour","minute","second","millisecond"],ub=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function fb(t){return!B(t)&&!G(t)?OL(t):t}function OL(t){t=t||{};var e={},r=!0;return w(Xt,function(i){r&&(r=t[i]==null)}),w(Xt,function(i,n){var a=t[i];e[i]={};for(var o=null,s=n;s>=0;s--){var l=Xt[s],u=F(a)&&!P(a)?a[l]:a,f=void 0;P(u)?(f=u.slice(),o=f[0]||""):B(u)?(o=u,f=[o]):(o==null?o=oc[i]:DL[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[i][l]=f}}),e}function Ct(t,e){return t+="","0000".substr(0,e-t.length)+t}function Yo(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function cb(t){return t===Yo(t)}function pb(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Li(t,e,r,i){var n=Lt(t),a=n[om(r)](),o=n[uc(r)]()+1,s=Math.floor((o-1)/3)+1,l=n[fc(r)](),u=n["get"+(r?"UTC":"")+"Day"](),f=n[cc(r)](),c=(f-1)%12+1,p=n[pc(r)](),h=n[hc(r)](),d=n[dc(r)](),v=f>=12?"pm":"am",m=v.toUpperCase(),g=i instanceof Te?i:sb(i||rc)||lb(),y=g.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),S=y.get("dayOfWeek"),b=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,v+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Ct(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,Ct(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ct(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ct(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ct(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Ct(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Ct(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ct(d,3)).replace(/{S}/g,d+"")}function hb(t,e,r,i,n){var a=null;if(B(r))a=r;else if(G(r)){var o={time:t.time,level:t.time?t.time.level:0},s=Ve();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=Oa(t.value,n);a=r[f][f][0]}}return Li(new Date(t.value),a,n,i)}function Oa(t,e){var r=Lt(t),i=r[uc(e)]()+1,n=r[fc(e)](),a=r[cc(e)](),o=r[pc(e)](),s=r[hc(e)](),l=r[dc(e)](),u=l===0,f=u&&s===0,c=f&&o===0,p=c&&a===0,h=p&&n===1,d=h&&i===1;return d?"year":h?"month":p?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Xo(t,e,r){switch(e){case"year":t[sm(r)](0);case"month":t[lm(r)](1);case"day":t[um(r)](0);case"hour":t[fm(r)](0);case"minute":t[cm(r)](0);case"second":t[pm(r)](0)}return t}function om(t){return t?"getUTCFullYear":"getFullYear"}function uc(t){return t?"getUTCMonth":"getMonth"}function fc(t){return t?"getUTCDate":"getDate"}function cc(t){return t?"getUTCHours":"getHours"}function pc(t){return t?"getUTCMinutes":"getMinutes"}function hc(t){return t?"getUTCSeconds":"getSeconds"}function dc(t){return t?"getUTCMilliseconds":"getMilliseconds"}function db(t){return t?"setUTCFullYear":"setFullYear"}function sm(t){return t?"setUTCMonth":"setMonth"}function lm(t){return t?"setUTCDate":"setDate"}function um(t){return t?"setUTCHours":"setHours"}function fm(t){return t?"setUTCMinutes":"setMinutes"}function cm(t){return t?"setUTCSeconds":"setSeconds"}function pm(t){return t?"setUTCMilliseconds":"setMilliseconds"}function hm(t,e,r,i,n,a,o,s){var l=new Oe({style:{text:t,font:e,align:r,verticalAlign:i,padding:n,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function Al(t){if(!el(t))return B(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function qo(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,i){return i.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var pi=Bn;function vc(t,e,r){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&ut(f)?f:"-"}function a(f){return et(f)}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?Lt(t):t;if(isNaN(+l)){if(s)return"-"}else return Li(l,i,r)}if(e==="ordinal")return ao(t)?n(t):le(t)&&a(t)?t+"":"-";var u=br(t);return a(u)?Al(u):ao(t)?n(t):typeof t=="boolean"?t+"":"-"}var vb=["a","b","c","d","e","f","g"],dm=function(t,e){return"{"+t+(e??"")+"}"};function Ko(t,e,r){P(e)||(e=[e]);var i=e.length;if(!i)return"";for(var n=e[0].$vars||[],a=0;a<n.length;a++){var o=vb[a];t=t.replace(dm(o),dm(o,0))}for(var s=0;s<i;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];t=t.replace(dm(vb[l],s),r?nt(u):u)}return t}function mc(t,e){var r=B(t)?{color:t,extraCssText:e}:t||{},i=r.color,n=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+nt(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+nt(i)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function mb(t,e,r){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
173
+ yyyy`);var i=Lt(e),n=r?"getUTC":"get",a=i[n+"FullYear"](),o=i[n+"Month"]()+1,s=i[n+"Date"](),l=i[n+"Hours"](),u=i[n+"Minutes"](),f=i[n+"Seconds"](),c=i[n+"Milliseconds"]();return t=t.replace("MM",Ct(o,2)).replace("M",o).replace("yyyy",a).replace("yy",Ct(a%100+"",2)).replace("dd",Ct(s,2)).replace("d",s).replace("hh",Ct(l,2)).replace("h",l).replace("mm",Ct(u,2)).replace("m",u).replace("ss",Ct(f,2)).replace("s",f).replace("SSS",Ct(c,3)),t}function gb(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function qr(t,e){return e=e||"transparent",B(t)?t:F(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var gc={},mm={},IL=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=i(gc,!0),this._normalMasterList=i(mm,!1);function i(n,a){var o=[];return w(n,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){w(this._normalMasterList,function(i){i.update&&i.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){gc[e]=r;return}mm[e]=r},t.get=function(e){return mm[e]||gc[e]},t})();function LL(t){return!!gc[t]}var NL=1,yb=2;var PL=V();function _c(t){var e=t.getShallow("coord",!0),r=NL;if(e==null){var i=PL.get(t.type);i&&i.getCoord2&&(r=yb,e=i.getCoord2(t))}return{coord:e,from:r}}var Zo=0,yc=1,RL=2;function kL(t,e){var r=t.getShallow("coordinateSystem"),i=t.getShallow("coordinateSystemUsage",!0),n=i!=null,a=Zo;if(r){var o=t.mainType==="series";i==null&&(i=o?"data":"box"),i==="data"?(a=yc,o||(a=Zo)):i==="box"&&(a=RL,!o&&!LL(r)&&(a=Zo))}return{coordSysType:r,kind:a}}function _b(t){var e=t.targetModel,r=t.coordSysType,i=t.coordSysProvider,n=t.isDefaultDataCoordSys,a=t.allowNotFound,o=kL(e,!0),s=o.kind,l=o.coordSysType;if(n&&s!==yc&&(s=yc,l=r),s===Zo||l!==r)return Zo;var u=i(r,e);return u?(s===yc?e.coordinateSystem=u:e.boxCoordinateSystem=u,s):Zo}var jo=IL;var bc=w,BL=["left","right","top","bottom","width","height"],xc=[["width","left","right"],["height","top","bottom"]];function gm(t,e,r,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),p=c&&c.getBoundingRect(),h,d;if(t==="horizontal"){var v=f.width+(p?-p.x+f.x:0);h=a+v,h>i||l.newline?(a=0,h=v,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(p?-p.y+f.y:0);d=o+m,d>n||l.newline?(a+=s+r,o=0,d=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=h+r:o=d+r)})}var Ia=gm,GG=Ce(gm,"vertical"),WG=Ce(gm,"horizontal");function xb(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function hi(t,e,r){r=pi(r||0);var i=e.width,n=e.height,a=Ze(t.left,i),o=Ze(t.top,n),s=Ze(t.right,i),l=Ze(t.bottom,n),u=Ze(t.width,i),f=Ze(t.height,n),c=r[2]+r[0],p=r[1]+r[3],h=t.aspect;switch(isNaN(u)&&(u=i-s-p-a),isNaN(f)&&(f=n-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>i/n?u=i*.8:f=n*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=i-s-u-p),isNaN(o)&&(o=n-l-f-c),t.left||t.right){case"center":a=i/2-u/2-r[3];break;case"right":a=i-u-p;break}switch(t.top||t.bottom){case"middle":case"center":o=n/2-f/2-r[0];break;case"bottom":o=n-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=i-p-a-(s||0)),isNaN(f)&&(f=n-c-o-(l||0));var d=new j((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,f);return d.margin=r,d}var Sc={rect:1,point:2};function wc(t,e,r){var i,n,a,o=t.boxCoordinateSystem,s;if(o){var l=_c(t),u=l.coord,f=l.from;if(o.dataToLayout){a=Sc.rect,s=f;var c=o.dataToLayout(u);i=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Sc.point,s=f,n=o.dataToPoint(u))}return a==null&&(a=Sc.rect),a===Sc.rect&&(i||(i={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),n=[i.x+i.width/2,i.y+i.height/2]),{type:a,refContainer:i,refPoint:n,boxCoordFrom:s}}function dn(t){var e=t.layoutMode||t.constructor.layoutMode;return F(e)?e:e?{type:e}:null}function ur(t,e,r){var i=r&&r.ignoreSize;!P(i)&&(i=[i,i]);var n=o(xc[0],0),a=o(xc[1],1);l(xc[0],t,n),l(xc[1],t,a);function o(u,f){var c={},p=0,h={},d=0,v=2;if(bc(u,function(y){h[y]=t[y]}),bc(u,function(y){Me(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&p++,s(h,y)&&d++}),i[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(d===v||!p)return h;if(p>=v)return c;for(var m=0;m<u.length;m++){var g=u[m];if(!Me(c,g)&&Me(t,g)){c[g]=t[g];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){bc(u,function(p){f[p]=c[p]})}}function di(t){return UL({},t)}function UL(t,e){return e&&t&&bc(BL,function(r){Me(e,r)&&(t[r]=e[r])}),t}var zL=ae(),$o=(function(t){L(e,t);function e(r,i,n){var a=t.call(this,r,i,n)||this;return a.uid=hn("ec_cpt_model"),a}return e.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=dn(this),a=n?di(r):{},o=i.getTheme();ue(r,o.get(this.mainType)),ue(r,this.getDefaultOption()),n&&ur(r,a,n)},e.prototype.mergeOption=function(r,i){ue(this.option,r,!0);var n=dn(this);n&&ur(this.option,r,n)},e.prototype.optionUpdated=function(r,i){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!tx(r))return r.defaultOption;var i=zL(this);if(!i.defaultOption){for(var n=[],a=r;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},l=n.length-1;l>=0;l--)s=ue(s,n[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(r,i){var n=r+"Index",a=r+"Id";return rn(this.ecModel,r,{index:this.get(n,!0),id:this.get(a,!0)},i)},e.prototype.getBoxLayoutParams=function(){return xb(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})(Te);yf($o,Te);nn($o);rb($o);ib($o,FL);function FL(t){var e=[];return w($o.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=U(e,function(r){return Gt(r).main}),t!=="dataset"&&ne(e,"dataset")<=0&&e.unshift("dataset"),e}var xe=$o;var La={color:{},darkColor:{},size:{}},Ge=La.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};N(Ge,{primary:Ge.neutral80,secondary:Ge.neutral70,tertiary:Ge.neutral60,quaternary:Ge.neutral50,disabled:Ge.neutral20,border:Ge.neutral30,borderTint:Ge.neutral20,borderShade:Ge.neutral40,background:Ge.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Ge.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Ge.neutral70,axisLineTint:Ge.neutral40,axisTick:Ge.neutral70,axisTickMinor:Ge.neutral60,axisLabel:Ge.neutral70,axisSplitLine:Ge.neutral15,axisMinorSplitLine:Ge.neutral05});for(vn in Ge)Ge.hasOwnProperty(vn)&&(_m=Ge[vn],vn==="theme"?La.darkColor.theme=Ge.theme.slice():vn==="highlight"?La.darkColor.highlight="rgba(255,231,130,0.4)":vn.indexOf("accent")===0?La.darkColor[vn]=ho(_m,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):La.darkColor[vn]=ho(_m,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)}));var _m,vn;La.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Z=La;var Sb="";typeof navigator<"u"&&(Sb=navigator.platform||"");var Qo="rgba(0, 0, 0, 0.2)",bb=Z.color.theme[0],VL=ho(bb,null,null,.9),Tc={darkMode:"auto",colorBy:"series",color:Z.color.theme,gradientColor:[VL,bb],aria:{decal:{decals:[{color:Qo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Qo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Qo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Qo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Qo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Qo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Sb.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 Rt={Must:1,Might:2,Not:3},wb=ae();function Tb(t){wb(t).datasetMap=V()}function Cb(t,e,r){var i={},n=xm(e);if(!n||!t)return i;var a=[],o=[],s=e.ecModel,l=wb(s).datasetMap,u=n.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),w(t,function(v,m){var g=F(v)?v:t[m]={name:v};g.type==="ordinal"&&f==null&&(f=m,c=d(g)),i[g.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});w(t,function(v,m){var g=v.name,y=d(v);if(f==null){var _=p.valueWayDim;h(i[g],_,y),h(o,_,y),p.valueWayDim+=y}else if(f===m)h(i[g],0,y),h(a,0,y);else{var _=p.categoryWayDim;h(i[g],_,y),h(o,_,y),p.categoryWayDim+=y}});function h(v,m,g){for(var y=0;y<g;y++)v.push(m+y)}function d(v){var m=v.dimsDef;return m?m.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function xm(t){var e=t.get("data",!0);if(!e)return rn(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},gt).models[0]}function Eb(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:rn(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},gt).models}function Cc(t,e){return HL(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function HL(t,e,r,i,n,a){var o,s=5;if(Fe(t))return Rt.Not;var l,u;if(i){var f=i[a];F(f)?(l=f.name,u=f.type):B(f)&&(l=f)}if(u!=null)return u==="ordinal"?Rt.Must:Rt.Not;if(e===tt){var c=t;if(r===ui){for(var p=c[a],h=0;h<(p||[]).length&&h<s;h++)if((o=x(p[n+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var d=c[n+h];if(d&&(o=x(d[a]))!=null)return o}}else if(e===Pt){var v=t;if(!l)return Rt.Not;for(var h=0;h<v.length&&h<s;h++){var m=v[h];if(m&&(o=x(m[l]))!=null)return o}}else if(e===ir){var g=t;if(!l)return Rt.Not;var p=g[l];if(!p||Fe(p))return Rt.Not;for(var h=0;h<p.length&&h<s;h++)if((o=x(p[h]))!=null)return o}else if(e===ot)for(var y=t,h=0;h<y.length&&h<s;h++){var m=y[h],_=Ai(m);if(!P(_))return Rt.Not;if((o=x(_[a]))!=null)return o}function x(S){var b=B(S);if(S!=null&&isFinite(Number(S))&&S!=="")return b?Rt.Might:Rt.Not;if(b&&S!=="-")return Rt.Must}return Rt.Not}var GL=V();function Ab(t,e,r){var i=GL.get(e);if(!i)return r;var n=i(t);if(!n)return r;if(0)for(var a;a<n.length;a++);return r.concat(n)}var Db=ae(),u3=ae(),Dl=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,i){var n=ze(this.get("color",!0)),a=this.get("colorLayer",!0);return YL(this,Db,n,a,e,r,i)},t.prototype.clearColorPalette=function(){XL(this,Db)},t})();function WL(t,e){for(var r=t.length,i=0;i<r;i++)if(t[i].length>e)return t[i];return t[r-1]}function YL(t,e,r,i,n,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!i?r:WL(i,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return n&&(u[n]=c),s.paletteIdx=(l+1)%f.length,c}}function XL(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Ec,Ml,Mb,Ob="\0_ec_inner",qL=1;var Pb=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,i,n,a,o,s){a=a||{},this.option=null,this._theme=new Te(a),this._locale=new Te(o),this._optionManager=s},e.prototype.setOption=function(r,i,n){var a=Nb(i);this._optionManager.setOption(r,n,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,i){return this._resetOption(r,Nb(i))},e.prototype._resetOption=function(r,i){var n=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?Mb(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&w(l,function(u){n=!0,this._mergeOption(u,i)},this)}return n},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=V(),u=i&&i.replaceMergeMainTypeMap;Tb(this),w(r,function(c,p){c!=null&&(xe.hasClass(p)?p&&(s.push(p),l.set(p,!0)):n[p]=n[p]==null?Q(c):ue(n[p],c,!0))}),u&&u.each(function(c,p){xe.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),xe.topologicalTravel(s,xe.getAllClassMainTypes(),f,this);function f(c){var p=Ab(this,c,ze(r[c])),h=a.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",v=H0(h,p,d);W0(v,c,xe),n[c]=null,a.set(c,null),o.set(c,0);var m=[],g=[],y=0,_,x;w(v,function(S,b){var T=S.existing,C=S.newOption;if(!C)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var A=c==="series",E=xe.getClass(c,S.keyInfo.subType,!A);if(!E){if(0)var D,O;return}if(c==="tooltip"){if(_)return;_=!0}if(T&&T.constructor===E)T.name=S.keyInfo.name,T.mergeOption(C,this),T.optionUpdated(C,!1);else{var M=N({componentIndex:b},S.keyInfo);T=new E(C,this,this,M),N(T,M),S.brandNew&&(T.__requireNewView=!0),T.init(C,this,this),T.optionUpdated(null,!0)}}T?(m.push(T.option),g.push(T),y++):(m.push(void 0),g.push(void 0))},this),n[c]=m,a.set(c,g),o.set(c,y),c==="series"&&Ec(this)}this._seriesIndices||Ec(this)},e.prototype.getOption=function(){var r=Q(this.option);return w(r,function(i,n){if(xe.hasClass(n)){for(var a=ze(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!wo(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[n]=a}}),delete r[Ob],r},e.prototype.setTheme=function(r){this._theme=new Te(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,i){var n=this._componentsMap.get(r);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(r){var i=r.mainType;if(!i)return[];var n=r.index,a=r.id,o=r.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return n!=null?(l=[],w(ze(n),function(u){s[u]&&l.push(s[u])})):a!=null?l=Ib("id",a,s):o!=null?l=Ib("name",o,s):l=De(s,function(u){return!!u}),Lb(l,r)},e.prototype.findComponents=function(r){var i=r.query,n=r.mainType,a=s(i),o=a?this.queryComponents(a):De(this._componentsMap.get(n),function(u){return!!u});return l(Lb(o,r));function s(u){var f=n+"Index",c=n+"Id",p=n+"Name";return u&&(u[f]!=null||u[c]!=null||u[p]!=null)?{mainType:n,index:u[f],id:u[c],name:u[p]}:null}function l(u){return r.filter?De(u,r.filter):u}},e.prototype.eachComponent=function(r,i,n){var a=this._componentsMap;if(G(r)){var o=i,s=r;a.each(function(c,p){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,p,d,d.componentIndex)}})}else for(var l=B(r)?a.get(r):F(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(n,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var i=tr(r,null);return De(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return De(this._componentsMap.get("series"),function(i){return!!i&&i.subType===r})},e.prototype.getSeries=function(){return De(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,i){Ml(this),w(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];r.call(i,a,n)},this)},e.prototype.eachRawSeries=function(r,i){w(this._componentsMap.get("series"),function(n){n&&r.call(i,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(r,i,n){Ml(this),w(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&i.call(n,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,i,n){return w(this.getSeriesByType(r),i,n)},e.prototype.isSeriesFiltered=function(r){return Ml(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,i){Ml(this);var n=[];w(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=V(n)},e.prototype.restoreData=function(r){Ec(this);var i=this._componentsMap,n=[];i.each(function(a,o){xe.hasClass(o)&&n.push(o)}),xe.topologicalTravel(n,xe.getAllClassMainTypes(),function(a){w(i.get(a),function(o){o&&(a!=="series"||!KL(o,r))&&o.restoreData()})})},e.internalField=(function(){Ec=function(r){var i=r._seriesIndices=[];w(r._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),r._seriesIndicesMap=V(i)},Ml=function(r){},Mb=function(r,i){r.option={},r.option[Ob]=qL,r._componentsMap=V({series:[]}),r._componentsCount=V();var n=i.aria;F(n)&&n.enabled==null&&(n.enabled=!0),ZL(i,r._theme.option),ue(i,Tc,!1),r._mergeOption(i,null)}})(),e})(Te);function KL(t,e){if(e){var r=e.seriesIndex,i=e.seriesId,n=e.seriesName;return r!=null&&t.componentIndex!==r||i!=null&&t.id!==i||n!=null&&t.name!==n}}function ZL(t,e){var r=t.color&&!t.colorLayer;w(e,function(i,n){n==="colorLayer"&&r||n==="color"&&t.color||xe.hasClass(n)||(typeof i=="object"?t[n]=t[n]?ue(t[n],i,!1):Q(i):t[n]==null&&(t[n]=i))})}function Ib(t,e,r){if(P(e)){var i=V();return w(e,function(a){if(a!=null){var o=tr(a,null);o!=null&&i.set(a,!0)}}),De(r,function(a){return a&&i.get(a[t])})}else{var n=tr(e,null);return De(r,function(a){return a&&n!=null&&a[t]===n})}}function Lb(t,e){return e.hasOwnProperty("subType")?De(t,function(r){return r&&r.subType===e.subType}):t}function Nb(t){var e=V();return t&&w(ze(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}lt(Pb,Dl);var Ac=Pb;var jL=/^(min|max)?(.+)$/,$L=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,i){e&&(w(ze(e.series),function(o){o&&o.data&&Fe(o.data)&&Un(o.data)}),w(ze(e.dataset),function(o){o&&o.source&&Fe(o.source)&&Un(o.source)})),e=Q(e);var n=this._optionBackup,a=QL(e,r,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Q(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,i=this._timelineOptions;if(i.length){var n=e.getComponent("timeline");n&&(r=Q(i[n.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var l=0,u=n.length;l<u;l++)JL(n[l].query,r,i)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!tN(o,this._currentMediaIndices)&&(s=U(o,function(f){return Q(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},t})();function QL(t,e,r){var i=[],n,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(t.options=t.media=null),a=t),f&&P(u)&&w(u,function(h){h&&h.option&&(h.query?i.push(h):n||(n=h))}),p(a),w(l,function(h){return p(h)}),w(i,function(h){return p(h.option)});function p(h){w(e,function(d){d(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function JL(t,e,r){var i={width:e,height:r,aspectratio:e/r},n=!0;return w(t,function(a,o){var s=o.match(jL);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();eN(i[u],a,l)||(n=!1)}}),n}function eN(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function tN(t,e){return t.join(",")===e.join(",")}var Rb=$L;var Kr=w,Il=F,kb=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Sm(t){var e=t&&t.itemStyle;if(e)for(var r=0,i=kb.length;r<i;r++){var n=kb[r],a=e.normal,o=e.emphasis;a&&a[n]&&(t[n]=t[n]||{},t[n].normal?ue(t[n].normal,a[n]):t[n].normal=a[n],a[n]=null),o&&o[n]&&(t[n]=t[n]||{},t[n].emphasis?ue(t[n].emphasis,o[n]):t[n].emphasis=o[n],o[n]=null)}}function Et(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,n=t[e].emphasis;i&&(r?(t[e].normal=t[e].emphasis=null,re(t[e],i)):t[e]=i),n&&(t.emphasis=t.emphasis||{},t.emphasis[e]=n,n.focus&&(t.emphasis.focus=n.focus),n.blurScope&&(t.emphasis.blurScope=n.blurScope))}}function Ol(t){Et(t,"itemStyle"),Et(t,"lineStyle"),Et(t,"areaStyle"),Et(t,"label"),Et(t,"labelLine"),Et(t,"upperLabel"),Et(t,"edgeLabel")}function je(t,e){var r=Il(t)&&t[e],i=Il(r)&&r.textStyle;if(i)for(var n=0,a=Fd.length;n<a;n++){var o=Fd[n];i.hasOwnProperty(o)&&(r[o]=i[o])}}function Mr(t){t&&(Ol(t),je(t,"label"),t.emphasis&&je(t.emphasis,"label"))}function rN(t){if(Il(t)){Sm(t),Ol(t),je(t,"label"),je(t,"upperLabel"),je(t,"edgeLabel"),t.emphasis&&(je(t.emphasis,"label"),je(t.emphasis,"upperLabel"),je(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Sm(e),Mr(e));var r=t.markLine;r&&(Sm(r),Mr(r));var i=t.markArea;i&&Mr(i);var n=t.data;if(t.type==="graph"){n=n||t.nodes;var a=t.links||t.edges;if(a&&!Fe(a))for(var o=0;o<a.length;o++)Mr(a[o]);w(t.categories,function(u){Ol(u)})}if(n&&!Fe(n))for(var o=0;o<n.length;o++)Mr(n[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Mr(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)P(l[o])?(Mr(l[o][0]),Mr(l[o][1])):Mr(l[o]);t.type==="gauge"?(je(t,"axisLabel"),je(t,"title"),je(t,"detail")):t.type==="treemap"?(Et(t.breadcrumb,"itemStyle"),w(t.levels,function(u){Ol(u)})):t.type==="tree"&&Ol(t.leaves)}}function Ni(t){return P(t)?t:t?[t]:[]}function Bb(t){return(P(t)?t[0]:t)||{}}function bm(t,e){Kr(Ni(t.series),function(i){Il(i)&&rN(i)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Kr(r,function(i){Kr(Ni(t[i]),function(n){n&&(je(n,"axisLabel"),je(n.axisPointer,"label"))})}),Kr(Ni(t.parallel),function(i){var n=i&&i.parallelAxisDefault;je(n,"axisLabel"),je(n&&n.axisPointer,"label")}),Kr(Ni(t.calendar),function(i){Et(i,"itemStyle"),je(i,"dayLabel"),je(i,"monthLabel"),je(i,"yearLabel")}),Kr(Ni(t.radar),function(i){je(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),Kr(Ni(t.geo),function(i){Il(i)&&(Mr(i),Kr(Ni(i.regions),function(n){Mr(n)}))}),Kr(Ni(t.timeline),function(i){Mr(i),Et(i,"label"),Et(i,"itemStyle"),Et(i,"controlStyle",!0);var n=i.data;P(n)&&w(n,function(a){F(a)&&(Et(a,"label"),Et(a,"itemStyle"))})}),Kr(Ni(t.toolbox),function(i){Et(i,"iconStyle"),Kr(i.feature,function(n){Et(n,"iconStyle")})}),je(Bb(t.axisPointer),"label"),je(Bb(t.tooltip).axisPointer,"label")}function iN(t,e){for(var r=e.split(","),i=t,n=0;n<r.length&&(i=i&&i[r[n]],i!=null);n++);return i}function nN(t,e,r,i){for(var n=e.split(","),a=t,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];(i||a[n[s]]==null)&&(a[n[s]]=r)}function Ub(t){t&&w(aN,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var aN=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],oN=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],wm=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ll(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<wm.length;r++){var i=wm[r][1],n=wm[r][0];e[i]!=null&&(e[n]=e[i])}}function zb(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function Fb(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function sN(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function Vb(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&Vb(t[r].children,e)}function Dc(t,e){bm(t,e),t.series=ze(t.series),w(t.series,function(r){if(F(r)){var i=r.type;if(i==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(i==="pie"||i==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),zb(r.label);var n=r.data;if(n&&!Fe(n))for(var a=0;a<n.length;a++)zb(n[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(i==="gauge"){var o=iN(r,"pointer.color");o!=null&&nN(r,"itemStyle.color",o)}else if(i==="bar"){Ll(r),Ll(r.backgroundStyle),Ll(r.emphasis);var n=r.data;if(n&&!Fe(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(Ll(n[a]),Ll(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),Fb(r),Vb(r.data,Fb)}else i==="graph"||i==="sankey"?sN(r):i==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&re(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),Ub(r)}}),t.dataRange&&(t.visualMap=t.dataRange),w(oN,function(r){var i=t[r];i&&(P(i)||(i=[i]),w(i,function(n){Ub(n)}))})}var Hb=Eo(lN);function lN(t){var e=V();t.eachSeries(function(r){var i=r.get("stack");if(i){var n=e.get(i)||e.set(i,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),e.each(function(r){if(r.length!==0){var i=r[0].seriesModel,n=i.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&r.reverse(),w(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),uN(r)}})}function uN(t){w(t,function(e,r){var i=[],n=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var p=o.get(e.stackedDimension,c);if(isNaN(p))return n;var h,d;s?d=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var v=NaN,m=r-1;m>=0;m--){var g=t[m];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,h)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&p>=0&&y>0||l==="samesign"&&p<=0&&y<0){p=N0(p,y),v=y;break}}}return i[0]=p,i[1]=v,i})})}var Mc=(function(){function t(e){this.data=e.data||(e.sourceFormat===ir?{}:[]),this.sourceFormat=e.sourceFormat||dv,this.seriesLayoutBy=e.seriesLayoutBy||ar,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var i=0;i<r.length;i++){var n=r[i];n.type==null&&Cc(this,i)===Rt.Must&&(n.type="ordinal")}}return t})();function Jo(t){return t instanceof Mc}function Nl(t,e,r){r=r||Tm(t);var i=e.seriesLayoutBy,n=fN(t,r,i,e.sourceHeader,e.dimensions),a=new Mc({data:t,sourceFormat:r,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:Q(e)});return a}function es(t){return new Mc({data:t,sourceFormat:Fe(t)?nr:ot})}function Yb(t){return new Mc({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Q(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Tm(t){var e=dv;if(Fe(t))e=nr;else if(P(t)){t.length===0&&(e=tt);for(var r=0,i=t.length;r<i;r++){var n=t[r];if(n!=null){if(P(n)||Fe(n)){e=tt;break}else if(F(n)){e=Pt;break}}}}else if(F(t)){for(var a in t)if(Me(t,a)&&Ye(t[a])){e=ir;break}}return e}function fN(t,e,r,i,n){var a,o;if(!t)return{dimensionsDefine:Gb(n),startIndex:o,dimensionsDetectedCount:a};if(e===tt){var s=t;i==="auto"||i==null?Wb(function(u){u!=null&&u!=="-"&&(B(u)?o==null&&(o=1):o=0)},r,s,10):o=le(i)?i:i?1:0,!n&&o===1&&(n=[],Wb(function(u,f){n[f]=u!=null?u+"":""},r,s,1/0)),a=n?n.length:r===ui?s.length:s[0]?s[0].length:null}else if(e===Pt)n||(n=cN(t));else if(e===ir)n||(n=[],w(t,function(u,f){n.push(f)}));else if(e===ot){var l=Ai(t[0]);a=P(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Gb(n),dimensionsDetectedCount:a}}function cN(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return fe(r)}function Gb(t){if(t){var e=V();return U(t,function(r,i){r=F(r)?r:{name:r};var n={name:r.name,displayName:r.displayName,type:r.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=e.get(n.name);return a?n.name+="-"+a.count++:e.set(n.name,{count:1}),n})}}function Wb(t,e,r,i){if(e===ui)for(var n=0;n<r.length&&n<i;n++)t(r[n]?r[n][0]:null,n);else for(var a=r[0]||[],n=0;n<a.length&&n<i;n++)t(a[n],n)}function Oc(t){var e=t.sourceFormat;return e===Pt||e===ir}var Na,Pa,Ra,ka,Xb,qb,Lc=(function(){function t(e,r){var i=Jo(e)?e:es(e);this._source=i;var n=this._data=i.data,a=i.sourceFormat,o=i.seriesLayoutBy;if(a===nr&&(this._offset=0,this._dimSize=r,this._data=n),0)var s;qb(this,n,i)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;qb=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,p=l.dimensionsDefine,h=Xb[Mm(u,f)];if(N(o,h),u===nr)o.getItem=r,o.count=n,o.fillStorage=i;else{var d=Em(u,f);o.getItem=pe(d,null,s,c,p);var v=Am(u,f);o.count=pe(v,null,s,c,p)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},i=function(o,s,l,u){for(var f=this._data,c=this._dimSize,p=0;p<c;p++){for(var h=u[p],d=h[0]==null?1/0:h[0],v=h[1]==null?-1/0:h[1],m=s-o,g=l[p],y=0;y<m;y++){var _=f[y*c+p];g[o+y]=_,_<d&&(d=_),_>v&&(v=_)}h[0]=d,h[1]=v}},n=function(){return this._data?this._data.length/this._dimSize:0};Xb=(e={},e[tt+"_"+ar]={pure:!0,appendData:a},e[tt+"_"+ui]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Pt]={pure:!0,appendData:a},e[ir]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[ot]={appendData:a},e[nr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})();var Ic=function(t){P(t)||Ud("series.data or dataset.source must be an array.")},q3=(Na={},Na[tt+"_"+ar]=Ic,Na[tt+"_"+ui]=Ic,Na[Pt]=Ic,Na[ir]=function(t,e){for(var r=0;r<e.length;r++){var i=e[r].name;i==null&&Ud("dimension name must not be null/undefined.")}},Na[ot]=Ic,Na),Kb=function(t,e,r,i){return t[i]},pN=(Pa={},Pa[tt+"_"+ar]=function(t,e,r,i){return t[i+e]},Pa[tt+"_"+ui]=function(t,e,r,i,n){i+=e;for(var a=n||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},Pa[Pt]=Kb,Pa[ir]=function(t,e,r,i,n){for(var a=n||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;a[o]=l?l[i]:null}return a},Pa[ot]=Kb,Pa);function Em(t,e){var r=pN[Mm(t,e)];return r}var Zb=function(t,e,r){return t.length},hN=(Ra={},Ra[tt+"_"+ar]=function(t,e,r){return Math.max(0,t.length-e)},Ra[tt+"_"+ui]=function(t,e,r){var i=t[0];return i?Math.max(0,i.length-e):0},Ra[Pt]=Zb,Ra[ir]=function(t,e,r){var i=r[0].name,n=i!=null?t[i]:null;return n?n.length:0},Ra[ot]=Zb,Ra);function Am(t,e){var r=hN[Mm(t,e)];return r}var Cm=function(t,e,r){return t[e]},dN=(ka={},ka[tt]=Cm,ka[Pt]=function(t,e,r){return t[r]},ka[ir]=Cm,ka[ot]=function(t,e,r){var i=Ai(t);return i instanceof Array?i[e]:i},ka[nr]=Cm,ka);function Dm(t){var e=dN[t];return e}function Mm(t,e){return t===tt?t+"_"+e:t}function Pi(t,e,r){if(t){var i=t.getRawDataItem(e);if(i!=null){var n=t.getStore(),a=n.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=n.getDimensionProperty(o);return Dm(a)(i,o,s)}else{var l=i;return a===ot&&(l=Ai(i)),l}}}}var vN=/\{@(.+?)\}/g,jb=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var i=this.getData(r),n=this.getRawValue(e,r),a=i.getRawIndex(e),o=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,"style"),u=l&&l[i.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,p=c==="series",h=i.userOutput&&i.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:n,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,i,n,a,o){r=r||"normal";var s=this.getData(i),l=this.getDataParams(e,i);if(o&&(l.value=o.interpolatedValue),n!=null&&P(l.value)&&(l.value=l.value[n]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(G(a))return l.status=r,l.dimensionIndex=n,a(l);if(B(a)){var f=Ko(a,l);return f.replace(vN,function(c,p){var h=p.length,d=p;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var v=Pi(s,e,d);if(o&&P(o.interpolatedValue)){var m=s.getDimensionIndex(d);m>=0&&(v=o.interpolatedValue[m])}return v!=null?v+"":""})}},t.prototype.getRawValue=function(e,r){return Pi(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,i){},t})();function Om(t){var e,r;return F(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function mn(t){return new mN(t)}var mN=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,i=e&&e.skip;if(this._dirty&&r){var n=this.context;n.data=n.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(i)),this._modBy=l,this._modDataCount=u;var p=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(c||h<d)){var v=this._progress;if(P(v))for(var m=0;m<v.length;m++)this._doProgress(v[m],h,d,l,u);else this._doProgress(v,h,d,l,u)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,i,n,a){$b.reset(r,i,n,a),this._callingProgress=e,this._callingProgress({start:r,end:i,count:i-r,next:$b.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,i;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(i=r.forceFirstProgress,r=r.progress),P(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})();var $b=(function(){var t,e,r,i,n,a={reset:function(l,u,f,c){e=l,t=u,r=f,i=c,n=Math.ceil(i/r),a.next=r>1&&i>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%n*r+Math.ceil(e/n),u=e>=t?null:l<i?l:e;return e++,u}})();function ts(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!le(t)&&t!=null&&t!=="-"&&(t=+Lt(t)),t==null||t===""?NaN:Number(t))}var nW=V({number:function(t){return parseFloat(t)},time:function(t){return+Lt(t)},trim:function(t){return B(t)?ut(t):t}});var gN={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},aW=(function(){function t(e,r){if(!le(r)){var i="";ft(i)}this._opFn=gN[e],this._rvalFloat=br(r)}return t.prototype.evaluate=function(e){return le(e)?this._opFn(e,this._rvalFloat):this._opFn(br(e),this._rvalFloat)},t})(),Qb=(function(){function t(e,r){var i=e==="desc";this._resultLT=i?1:-1,r==null&&(r=i?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var i=le(e)?e:br(e),n=le(r)?r:br(r),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=B(e),l=B(r);s&&(i=l?e:0),l&&(n=s?r:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},t})();var oW=(function(){function t(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=br(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(r=br(e)===this._rvalFloat)}return this._isEQ?r:!r},t})();function Nc(t){var e="",r=-1/0,i=-1/0,n=1/0,a=1/0;return t&&(t.g!=null&&(e+="G"+t.g,r=t.g),t.ge!=null&&(e+="GE"+t.ge,i=t.ge),t.l!=null&&(e+="L"+t.l,n=t.l),t.le!=null&&(e+="LE"+t.le,a=t.le)),{key:e,g:r,ge:i,l:n,le:a}}function Pc(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var yN=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return ts(e,r)},t})();function _N(t,e){var r=new yN,i=t.data,n=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==ar&&ft(o);var s=[],l={},u=t.dimensionsDefine;if(u)w(u,function(v,m){var g=v.name,y={index:m,name:g,displayName:v.displayName};if(s.push(y),g!=null){var _="";Me(l,g)&&ft(_),l[g]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=Em(n,ar);e.__isBuiltIn&&(r.getRawDataItem=function(v){return c(i,a,s,v)},r.getRawData=pe(xN,null,t)),r.cloneRawData=pe(SN,null,t);var p=Am(n,ar);r.count=pe(p,null,i,a,s);var h=Dm(n);r.retrieveValue=function(v,m){var g=c(i,a,s,v);return d(g,m)};var d=r.retrieveValueFromItem=function(v,m){if(v!=null){var g=s[m];if(g)return h(v,m,g.name)}};return r.getDimensionInfo=pe(bN,null,s,l),r.cloneAllDimensionInfo=pe(wN,null,s),r}function xN(t){var e=t.sourceFormat;if(!Im(e)){var r="";ft(r)}return t.data}function SN(t){var e=t.sourceFormat,r=t.data;if(!Im(e)){var i="";ft(i)}if(e===tt){for(var n=[],a=0,o=r.length;a<o;a++)n.push(r[a].slice());return n}else if(e===Pt){for(var n=[],a=0,o=r.length;a<o;a++)n.push(N({},r[a]));return n}}function bN(t,e,r){if(r!=null){if(le(r)||!isNaN(r)&&!Me(e,r))return t[r];if(Me(e,r))return e[r]}}function wN(t){return Q(t)}var Jb=V();function ew(t){t=Q(t);var e=t.type,r="";e||ft(r);var i=e.split(":");i.length!==2&&ft(r);var n=!1;i[0]==="echarts"&&(e=i[1],n=!0),t.__isBuiltIn=n,Jb.set(e,t)}function tw(t,e,r){var i=ze(t),n=i.length,a="";n||ft(a);for(var o=0,s=n;o<s;o++){var l=i[o];e=TN(l,e,r,n===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function TN(t,e,r,i){var n="";e.length||ft(n),F(t)||ft(n);var a=t.type,o=Jb.get(a);o||ft(n);var s=U(e,function(f){return _N(f,o)}),l=ze(o.transform({upstream:s[0],upstreamList:s,config:Q(t.config)}));if(0&&t.print)var u;return U(l,function(f,c){var p="";F(f)||ft(p),f.data||ft(p);var h=Tm(f.data);Im(h)||ft(p);var d,v=e[0];if(v&&c===0&&!f.dimensions){var m=v.startIndex;m&&(f.data=v.data.slice(0,m).concat(f.data)),d={seriesLayoutBy:ar,sourceHeader:m,dimensions:v.metaRawOption.dimensions}}else d={seriesLayoutBy:ar,sourceHeader:0,dimensions:f.dimensions};return Nl(f.data,d,null)})}function Im(t){return t===tt||t===Pt}var CN=typeof Uint32Array===un?Array:Uint32Array,EN=typeof Uint16Array===un?Array:Uint16Array,Nm=typeof Int32Array===un?Array:Int32Array,rw=typeof Float64Array===un?Array:Float64Array,nw={float:rw,int:Nm,ordinal:Array,number:Array,time:rw},Lm;function rs(t){return t>65535?CN:EN}function AN(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function iw(t,e,r,i,n){var a=nw[r||"float"];if(n){var o=t[e],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(i)}var DN=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=V()}return t.prototype.initData=function(e,r,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),a=this.defaultDimValueGetter=Lm[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[];var o=Oc(n);this._dimensions=U(r,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(e);if(a!=null){if(n[a].type===r)return a}else a=n.length;return n[a]={type:r},i.set(e,a),this._chunks[a]=new nw[r||"float"](this._rawCount),this._rawExtent[a]=yt(),a},t.prototype.collectOrdinalMeta=function(e,r){var i=this._chunks[e],n=this._dimensions[e],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[e]=yt());for(var l=a[e],u=o;u<s;u++){var f=i[u]=r.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=r,n.ordinalOffset=s,n.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],i=r.ordinalMeta;return i},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,i=this.count();r.appendData(e);var n=r.count();return r.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},t.prototype.appendValues=function(e,r){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var f=n[u];iw(i,u,f.type,l,!0)}for(var c=[],p=s;p<l;p++)for(var h=p-s,d=0;d<a;d++){var f=n[d],v=Lm.arrayRows.call(this,e[h]||c,f.property,h,d);i[d][p]=v;var m=o[d];v<m[0]&&(m[0]=v),v>m[1]&&(m[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=U(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=yt()),iw(a,f,c.type,r,i)}if(n.fillStorage)n.fillStorage(e,r,a,l);else for(var p=[],h=e;h<r;h++){p=n.getItem(h,p);for(var d=0;d<s;d++){var v=a[d],m=this._dimValueGetter(p,u[d],h,d);v[h]=m;var g=l[d];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var i=this._chunks[e];return i?i[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var i=[],n=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=e;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],r));return i},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var i=this._chunks[e];return i?i[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],i=0;if(r)for(var n=0,a=this.count();n<a;n++){var o=this.get(e,n);isNaN(o)||(i+=o)}return i},t.prototype.getMedian=function(e){var r=[];this.each([e],function(n){isNaN(n)||r.push(n)}),tn(r);var i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,i=r[e];if(i!=null&&i<this._count&&i===e)return e;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(r[o]<e)n=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var i=r.constructor,n=this._count;if(i===Array){e=new i(n);for(var a=0;a<n;a++)e[a]=r[a]}else e=new i(r.buffer,0,n)}else{var i=rs(this._rawCount);e=new i(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=rs(i._rawCount),o=new a(n),s=[],l=e.length,u=0,f=e[0],c=i._chunks,p=0;p<n;p++){var h=void 0,d=i.getRawIndex(p);if(l===0)h=r(p);else if(l===1){var v=c[f][d];h=r(v,p)}else{for(var m=0;m<l;m++)s[m]=c[e[m]][d];s[m]=p,h=r.apply(null,s)}h&&(o[u++]=d)}return u<n&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},t.prototype.selectRange=function(e){var r=this.clone(),i=r._count;if(!i)return this;var n=fe(e),a=n.length;if(!a)return this;var o=r.count(),s=rs(r._rawCount),l=new s(o),u=0,f=n[0],c=e[f][0],p=e[f][1],h=r._chunks,d=!1;if(!r._indices){var v=0;if(a===1){for(var m=h[n[0]],g=0;g<i;g++){var y=m[g];(y>=c&&y<=p||isNaN(y))&&(l[u++]=v),v++}d=!0}else if(a===2){for(var m=h[n[0]],_=h[n[1]],x=e[n[1]][0],S=e[n[1]][1],g=0;g<i;g++){var y=m[g],b=_[g];(y>=c&&y<=p||isNaN(y))&&(b>=x&&b<=S||isNaN(b))&&(l[u++]=v),v++}d=!0}}if(!d)if(a===1)for(var g=0;g<o;g++){var T=r.getRawIndex(g),y=h[n[0]][T];(y>=c&&y<=p||isNaN(y))&&(l[u++]=T)}else for(var g=0;g<o;g++){for(var C=!0,T=r.getRawIndex(g),A=0;A<a;A++){var E=n[A],y=h[E][T];(y<e[E][0]||y>e[E][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(g))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var i=this.clone(e);return this._updateDims(i,e,r),i},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,i){for(var n=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=yt();for(var c=0;c<s;c++){for(var p=e.getRawIndex(c),h=0;h<o;h++)l[h]=n[r[h]][p];l[o]=c;var d=i&&i.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var v=r[f],m=d[f],g=u[v],y=n[v];y&&(y[p]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},t.prototype.lttbDownSample=function(e,r){var i=this.clone([e],!0),n=i._chunks,a=n[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,p,h=new(rs(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;d<o-1;d+=l){for(var v=Math.min(d+l,o-1),m=Math.min(d+l*2,o),g=(m+v)/2,y=0,_=v;_<m;_++){var x=this.getRawIndex(_),S=a[x];isNaN(S)||(y+=S)}y/=m-v;var b=d,T=Math.min(d+l,o),C=d-1,A=a[u];f=-1,p=b;for(var E=-1,D=0,_=b;_<T;_++){var x=this.getRawIndex(_),S=a[x];if(isNaN(S)){D++,E<0&&(E=x);continue}c=Math.abs((C-g)*(S-A)-(C-_)*(y-A)),c>f&&(f=c,p=x)}D>0&&D<T-b&&(h[s++]=Math.min(E,p),p=Math.max(E,p)),h[s++]=p,u=p}return h[s++]=this.getRawIndex(o-1),i._count=s,i._indices=h,i.getRawIndex=this._getRawIdx,i},t.prototype.minmaxDownSample=function(e,r){for(var i=this.clone([e],!0),n=i._chunks,a=Math.floor(1/r),o=n[e],s=this.count(),l=new(rs(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,p=o[this.getRawIndex(c)],h=f,d=o[this.getRawIndex(h)],v=a;f+a>s&&(v=s-f);for(var m=0;m<v;m++){var g=this.getRawIndex(f+m),y=o[g];y<p&&(p=y,c=f+m),y>d&&(d=y,h=f+m)}var _=this.getRawIndex(c),x=this.getRawIndex(h);c<h?(l[u++]=_,l[u++]=x):(l[u++]=x,l[u++]=_)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},t.prototype.downSample=function(e,r,i,n){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),c=a._rawExtent[e]=yt(),p=new(rs(this._rawCount))(Math.ceil(f/l)),h=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var v=0;v<l;v++){var m=this.getRawIndex(d+v);s[v]=u[m]}var g=i(s),y=this.getRawIndex(Math.min(d+n(s,g)||0,f-1));u[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),p[h++]=y}return a._count=h,a._indices=p,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var i=e.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:r(a);break;case 1:r(n[e[0]][s],a);break;case 2:r(n[e[0]][s],n[e[1]][s],a);break;default:for(var l=0,u=[];l<i;l++)u[l]=n[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e,r){var i=this._chunks[e],n=yt();if(!i)return n;var a=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=Nc(r),f=u.key,c=l[f];if(c)return c.slice();for(var p=n[0],h=n[1],d=0;d<a;d++){var v=this.getRawIndex(d),m=i[v];(!r||Pc(u,m))&&(m<p&&(p=m),m>h&&(h=m))}return l[f]=[p,h]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][r]);return i},t.prototype.clone=function(e,r){var i=new t,n=this._chunks,a=e&&St(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?AN(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),r||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Q(this._extent),e._rawExtent=Q(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var i=this._indices.length;r=new e(i);for(var n=0;n<i;n++)r[n]=this._indices[n]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,i,n,a){return ts(r[a],this._dimensions[a])}Lm={arrayRows:e,objectRows:function(r,i,n,a){return ts(r[i],this._dimensions[a])},keyedColumns:e,original:function(r,i,n,a){var o=r&&(r.value==null?r:r.value);return ts(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,i,n,a){return r[a]}}})(),t})(),Pl=DN;var ow=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length,n,a;if(Rc(e)){var o=e,s=void 0,l=void 0,u=void 0;if(i){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=Fe(s)?nr:ot,a=[];var c=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},h=Y(c.seriesLayoutBy,p.seriesLayoutBy)||null,d=Y(c.sourceHeader,p.sourceHeader),v=Y(c.dimensions,p.dimensions),m=h!==p.seriesLayoutBy||!!d!=!!p.sourceHeader||v;n=m?[Nl(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:v},l)]:[]}else{var g=e;if(i){var y=this._applyTransform(r);n=y.sourceList,a=y.upstreamSignList}else{var _=g.get("source",!0);n=[Nl(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,i=r.get("transform",!0),n=r.get("fromTransformResult",!0);if(n!=null){var a="";e.length!==1&&aw(a)}var o,s=[],l=[];return w(e,function(u){u.prepareSource();var f=u.getSource(n||0),c="";n!=null&&!f&&aw(c),s.push(f),l.push(u._getVersionSign())}),i?o=tw(i,s,{datasetIndex:r.componentIndex}):n!=null&&(o=[Yb(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var i=e[r];if(i._isDirty()||this._upstreamSignList[r]!==i._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];Rc(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,i):(s=new Pl,s.initData(new Lc(r,e.length),e)),o[i]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Rc(e)){var r=xm(e);return r?[r.getSourceManager()]:[]}else return U(Eb(e),function(i){return i.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,i,n;if(Rc(e))r=e.get("seriesLayoutBy",!0),i=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:i,dimensions:n}},t})();function Rc(t){return t.mainType==="series"}function aw(t){throw new Error(t)}var MN="line-height:1";function sw(t){var e=t.lineHeight;return e==null?MN:"line-height:"+nt(e+"")+"px"}function lw(t,e){var r=t.color||Z.color.tertiary,i=t.fontSize||12,n=t.fontWeight||"400",a=t.color||Z.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+nt(i+"")+"px;color:"+nt(r)+";font-weight:"+nt(n+""),valueStyle:"font-size:"+nt(o+"")+"px;color:"+nt(a)+";font-weight:"+nt(s+"")}:{nameStyle:{fontSize:i,fill:r,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var ON=[0,10,20,30],IN=["",`
174
+ `,`
175
+
176
+ `,`
177
+
178
+
179
+ `];function Ba(t,e){return e.type=t,e}function Pm(t){return t.type==="section"}function uw(t){return Pm(t)?LN:NN}function fw(t){if(Pm(t)){var e=0,r=t.blocks.length,i=r>1||r>0&&!t.noHeader;return w(t.blocks,function(n){var a=fw(n);a>=e&&(e=a+ +(i&&(!a||Pm(n)&&!n.noHeader)))}),e}return 0}function LN(t,e,r,i){var n=e.noHeader,a=PN(fw(e)),o=[],s=e.blocks||[];Xe(!s||P(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Me(u,l)){var f=new Qb(u[l],null);s.sort(function(v,m){return f.evaluate(v.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(v,m){var g=e.valueFormatter,y=uw(v)(g?N(N({},t),{valueFormatter:g}):t,v,m>0?a.html:0,i);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(a.richText):Rm(i,o.join(""),n?r:a.html);if(n)return c;var p=vc(e.header,"ordinal",t.useUTC),h=lw(i,t.renderMode).nameStyle,d=sw(i);return t.renderMode==="richText"?cw(t,p,h)+a.richText+c:Rm(i,'<div style="'+h+";"+d+';">'+nt(p)+"</div>"+c,r)}function NN(t,e,r,i){var n=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(x){return x=P(x)?x:[x],U(x,function(S,b){return vc(S,P(h)?h[b]:h,u)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||Z.color.secondary,n),p=a?"":vc(l,"ordinal",u),h=e.valueType,d=o?[]:f(e.value,e.rawDataIndex),v=!s||!a,m=!s&&a,g=lw(i,n),y=g.nameStyle,_=g.valueStyle;return n==="richText"?(s?"":c)+(a?"":cw(t,p,y))+(o?"":BN(t,d,v,m,_)):Rm(i,(s?"":c)+(a?"":RN(p,!s,y))+(o?"":kN(d,v,m,_)),r)}}function km(t,e,r,i,n,a){if(t){var o=uw(t),s={useUTC:n,renderMode:r,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function PN(t){return{html:ON[t],richText:IN[t]}}function Rm(t,e,r){var i='<div style="clear:both"></div>',n="margin: "+r+"px 0 0",a=sw(t);return'<div style="'+n+";"+a+';">'+e+i+"</div>"}function RN(t,e,r){var i=e?"margin-left:2px":"";return'<span style="'+r+";"+i+'">'+nt(t)+"</span>"}function kN(t,e,r,i){var n=r?"10px":"20px",a=e?"float:right;margin-left:"+n:"";return t=P(t)?t:[t],'<span style="'+a+";"+i+'">'+U(t,function(o){return nt(o)}).join("&nbsp;&nbsp;")+"</span>"}function cw(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function BN(t,e,r,i,n){var a=[n],o=i?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(P(e)?e.join(" "):e,a)}function pw(t,e){var r=t.getData().getItemVisual(e,"style"),i=r[t.visualDrawType];return qr(i)}function kc(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var Bc=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=tl()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,i){var n=i==="richText"?this._generateStyleName():null,a=mc({color:r,type:e,renderMode:i,markerId:n});return B(a)?a:(this.richTextStyles[n]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var i={};P(r)?w(r,function(a){return N(i,a)}):N(i,r);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+e+"}"},t})();function hw(t){var e=t.series,r=t.dataIndex,i=t.multipleSeries,n=e.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=P(s),u=pw(e,r),f,c,p,h;if(o>1||l&&!o){var d=UN(s,e,r,a,u);f=d.inlineValues,c=d.inlineValueTypes,p=d.blocks,h=d.inlineValues[0]}else if(o){var v=n.getDimensionInfo(a[0]);h=f=Pi(n,r,a[0]),c=v.type}else h=f=l?s[0]:s;var m=To(e),g=m&&e.name||"",y=n.getName(r),_=i?g:y;return Ba("section",{header:g,noHeader:i||!m,sortParam:h,blocks:[Ba("nameValue",{markerType:"item",markerColor:u,name:_,noName:!ut(_),value:f,valueType:c,rawDataIndex:n.getRawIndex(r)})].concat(p||[])})}function UN(t,e,r,i,n){var a=e.getData(),o=St(t,function(c,p,h){var d=a.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];i.length?w(i,function(c){f(Pi(a,r,c),c)}):w(t,f);function f(c,p){var h=a.getDimensionInfo(p);!h||h.otherDims.tooltip===!1||(o?u.push(Ba("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var gn=ae();function Uc(t,e){return t.getName(e)||t.getId(e)}var zN="__universalTransitionEnabled",zc=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,i,n){this.seriesIndex=this.componentIndex,this.dataTask=mn({count:VN,reset:HN}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);var a=gn(this).sourceManager=new ow(this);a.prepareSource();var o=this.getInitialData(r,n);vw(o,this),this.dataTask.context.data=o,gn(this).dataBeforeProcessed=o,dw(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=dn(this),a=n?di(r):{},o=this.subType;xe.hasClass(o)&&(o+="Series"),ue(r,i.getTheme().get(this.subType)),ue(r,this.getDefaultOption()),zd(r,"label",["show"]),this.fillDataTextStyle(r.data),n&&ur(r,a,n)},e.prototype.mergeOption=function(r,i){r=ue(this.option,r,!0),this.fillDataTextStyle(r.data);var n=dn(this);n&&ur(this.option,r,n);var a=gn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,i);vw(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,gn(this).dataBeforeProcessed=o,dw(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!Fe(r))for(var i=["show"],n=0;n<r.length;n++)r[n]&&r[n].label&&zd(r[n],"label",i)},e.prototype.getInitialData=function(r,i){},e.prototype.appendData=function(r){var i=this.getRawData();i.appendData(r.data)},e.prototype.getData=function(r){var i=Bm(this);if(i){var n=i.context.data;return r==null||!n.getLinkedData?n:n.getLinkedData(r)}else return gn(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var i=Bm(this);if(i){var n=i.context;n.outputData=r,i!==this.dataTask&&(n.data=r)}gn(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return V(r)},e.prototype.getSourceManager=function(){return gn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return gn(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,i,n,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(n);a==null&&(a=1/0);for(var f=[],c=1/0,p=-1,h=0,d=o.getDimensionIndex(i),v=o.getStore(),m=0,g=v.count();m<g;m++){var y=v.get(d,m),_=l.dataToCoord(y),x=u-_,S=Math.abs(x);S<=a&&((S<c||S===c&&x>=0&&p<0)&&(c=S,p=x,h=0),x===p&&(f[h++]=m))}return f.length=h,f},e.prototype.formatTooltip=function(r,i,n){return hw({series:this,dataIndex:r,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ee.node&&!(r&&r.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,i,n){var a=this.ecModel,o=Dl.prototype.getColorFromPalette.call(this,r,i,n);return o||(o=a.getColorFromPalette(r,i,n)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,i){this._innerSelect(this.getData(i),r)},e.prototype.unselect=function(r,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Uc(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,i){for(var n=[],a=0;a<r.length;a++)n[0]=r[a],this.isSelected(r[a],i)?this.unselect(n,i):this.select(n,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,i=fe(r),n=[],a=0;a<i.length;a++){var o=r[i[a]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(r,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[Uc(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[zN])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){F(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=i[f],p=Uc(r,c);u[p]=!0,this._selectedDataIndicesMap[p]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=i[l-1],p=Uc(r,h);o.selectedMap=(n={},n[p]=!0,n),this._selectedDataIndicesMap=(a={},a[p]=r.getRawIndex(h),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var i=[];r.hasItemOption&&r.each(function(n){var a=r.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(r,i)}},e.registerClass=function(r){return xe.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(xe);lt(zc,jb);lt(zc,Dl);yf(zc,xe);function dw(t){var e=t.name;To(t)||(t.name=FN(t)||e)}function FN(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),i=[];return w(r,function(n){var a=e.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function VN(t){return t.model.getRawData().count()}function HN(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),GN}function GN(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function vw(t,e){w(Rh(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Ce(WN,e))})}function WN(t,e){var r=Bm(t);return r&&r.setOutputEnd((e||this).count()),e}function Bm(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var i=r.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(t.uid))}return i}}var kt=zc;var Um=(function(){function t(){this.group=new we,this.uid=hn("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,n){},t.prototype.updateLayout=function(e,r,i,n){},t.prototype.updateVisual=function(e,r,i,n){},t.prototype.toggleBlurSeries=function(e,r,i){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();Ao(Um);nn(Um);var st=Um;function Ua(){var t=ae();return function(e){var r=t(e),i=e.pipelineContext,n=!!r.large,a=!!r.progressiveRender,o=r.large=!!(i&&i.large),s=r.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var yw=ae(),YN=Ua(),zm=(function(){function t(){this.group=new we,this.uid=hn("viewChart"),this.renderTask=mn({plan:XN,reset:qN}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){},t.prototype.highlight=function(e,r,i,n){var a=e.getData(n&&n.dataType);a&&gw(a,n,"emphasis")},t.prototype.downplay=function(e,r,i,n){var a=e.getData(n&&n.dataType);a&&gw(a,n,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,n){this.render(e,r,i,n)},t.prototype.updateVisual=function(e,r,i,n){this.render(e,r,i,n)},t.prototype.eachRendered=function(e){Ca(this.group,e)},t.markUpdateMethod=function(e,r){yw(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function mw(t,e,r){t&&vl(t)&&(e==="emphasis"?ha:da)(t,r)}function gw(t,e,r){var i=wr(t,e),n=e&&e.highlightKey!=null?fS(e.highlightKey):null;i!=null?w(ze(i),function(a){mw(t.getItemGraphicEl(a),r,n)}):t.eachItemGraphicEl(function(a){mw(a,r,n)})}Ao(zm,["dispose"]);nn(zm);function XN(t){return YN(t.model)}function qN(t){var e=t.model,r=t.ecModel,i=t.api,n=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=n&&yw(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,i,n),KN[l]}var KN={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},xt=zm;var Fc="\0__throttleOriginMethod",_w="\0__throttleRate",xw="\0__throttleType";function za(t,e,r){var i,n=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var p=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];i=new Date().getTime(),l=this,u=h;var v=f||e,m=f||r;f=null,s=i-(m?n:a)-v,clearTimeout(o),m?o=setTimeout(c,v):s>=0?c():o=setTimeout(c,-s),n=i};return p.clear=function(){o&&(clearTimeout(o),o=null)},p.debounceNextCall=function(h){f=h},p}function Vc(t,e,r,i){var n=t[e];if(n){var a=n[Fc]||n,o=n[xw],s=n[_w];if(s!==r||o!==i){if(r==null||!i)return t[e]=a;n=t[e]=za(a,r,i==="debounce"),n[Fc]=a,n[xw]=i,n[_w]=r}return n}}function Rl(t,e){var r=t[e];r&&r[Fc]&&(r.clear&&r.clear(),t[e]=r[Fc])}var Sw=ae(),bw={itemStyle:ri(em,!0),lineStyle:ri(Jv,!0)},jN={lineStyle:"stroke",itemStyle:"fill"};function ww(t,e){var r=t.visualStyleMapper||bw[e];return r||(console.warn("Unknown style type '"+e+"'."),bw.itemStyle)}function Tw(t,e){var r=t.visualDrawType||jN[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var Cw={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=t.getModel(i),a=ww(t,i),o=a(n),s=n.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Tw(t,i),u=o[l],f=G(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=p,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||G(o.fill)?p:o.fill,o.stroke=o.stroke==="auto"||G(o.stroke)?p:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var v=t.getDataParams(d),m=N({},o);m[l]=f(v),h.setItemVisual(d,"style",m)}}}},kl=new Te,Ew={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=ww(t,i),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){kl.option=l[i];var u=n(kl),f=o.ensureUniqueItemVisual(s,"style");N(f,u),kl.option.decal&&(o.setItemVisual(s,"decal",kl.option.decal),kl.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Aw={performRawSeries:!0,overallReset:function(t){var e=V();t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.type+"-"+r.getColorBy();Sw(r).scope=e.get(i)||e.set(i,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.getRawData(),n={},a=r.getData(),o=Sw(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Tw(r,s);a.each(function(u){var f=a.getRawIndex(u);n[f]=u}),i.each(function(u){var f=n[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var p=a.ensureUniqueItemVisual(f,"style"),h=i.getName(u)||u+"",d=i.count();p[l]=r.getColorFromPalette(h,o,d)}})}})}};var Hc=Math.PI;function Fm(t,e){e=e||{},re(e,{text:"loading",textColor:Z.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Z.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new we,i=new _e({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(i);var n=new Oe({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new _e({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new ya({shape:{startAngle:-Hc/2,endAngle:-Hc/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Hc*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Hc*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var $N=(function(){function t(e,r,i,n){this._stageTaskMap=V(),this.ecInstance=e,this.api=r,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),n=i.context,a=!r&&i.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var i=this._pipelineMap.get(e.uid),n=e.__preparePipelineContext?e.__preparePipelineContext(r,i):gf(e,r,i);e.pipelineContext=i.context=n},t.prototype.restorePipelines=function(e,r){var i=this,n=i._pipelineMap=V();r.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;n.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),i._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),i=this.api;w(this._allHandlers,function(n){var a=e.get(n.uid)||e.set(n.uid,{}),o="";Xe(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,r,i),n.overallReset&&this._createOverallStageTask(n,a,r,i)},this)},t.prototype.prepareView=function(e,r,i,n){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=i,o.api=n,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,i){this._performStageTasks(this._visualHandlers,e,r,i)},t.prototype._performStageTasks=function(e,r,i,n){n=n||{};var a=!1,o=this;w(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,p=f.overallTask;if(p){var h,d=p.agentStubMap;d.each(function(m){s(n,m)&&(m.dirty(),h=!0)}),h&&p.dirty(),o.updatePayload(p,i);var v=o.getPerformArgs(p,n.block);d.each(function(m){m.perform(v)}),p.perform(v)&&(a=!0)}else c&&c.each(function(m,g){s(n,m)&&m.dirty();var y=o.getPerformArgs(m,n.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,i),m.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(i){r=i.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,i,n){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=V(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,n).each(f);function f(c){var p=c.uid,h=s.set(p,o&&o.get(p)||mn({plan:rP,reset:iP,count:aP}));h.context={model:c,ecModel:i,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,i,n){var a=this,o=r.overallTask=r.overallTask||mn({reset:QN});o.context={ecModel:i,api:n,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=V(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,p=!1,h="";Xe(!e.createOnAllSeries,h),u?i.eachRawSeriesByType(u,d):f?f(i,n).each(d):w(i.getSeries(),d);function d(v){var m=v.uid,g=l.set(m,s&&s.get(m)||(p=!0,mn({reset:JN,onDirty:tP})));g.context={model:v,dirtyOnOverallProgress:c},g.agent=o,g.__block=c,a._pipe(v,g)}p&&o.dirty()},t.prototype._pipe=function(e,r){var i=e.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=r),n.tail&&n.tail.pipe(r),n.tail=r,r.__idxInPipeline=n.count++,r.__pipeline=n},t.wrapStageHandler=function(e,r){return G(e)&&(e={overallReset:e,seriesType:oP(e)}),e.uid=hn("stageHandler"),r&&(e.visualType=r),e},t})();function QN(t){t.overallReset(t.ecModel,t.api,t.payload)}function JN(t){return t.dirtyOnOverallProgress&&eP}function eP(){this.agent.dirty(),this.getDownstream().dirty()}function tP(){this.agent&&this.agent.dirty()}function rP(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function iP(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=ze(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?U(e,function(r,i){return Dw(i)}):nP}var nP=Dw(0);function Dw(t){return function(e,r){var i=r.data,n=r.resetDefines[t];if(n&&n.dataEach)for(var a=e.start;a<e.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(e,i)}}function aP(t){return t.data.count()}function oP(t){Gc=null;try{t(Bl,Mw)}catch{}return Gc}var Bl={},Mw={},Gc;Ow(Bl,Ac);Ow(Mw,Af);Bl.eachSeriesByType=Bl.eachRawSeriesByType=function(t){Gc=t};Bl.eachComponent=function(t){t.mainType==="series"&&t.subType&&(Gc=t.subType)};function Ow(t,e){for(var r in e.prototype)t[r]=ke}var Vm=$N;var H=Z.darkColor,Iw=H.background,Ul=function(){return{axisLine:{lineStyle:{color:H.axisLine}},splitLine:{lineStyle:{color:H.axisSplitLine}},splitArea:{areaStyle:{color:[H.backgroundTint,H.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:H.axisMinorSplitLine}},axisLabel:{color:H.axisLabel},axisName:{}}},Lw={label:{color:H.secondary},itemStyle:{borderColor:H.borderTint},dividerLineStyle:{color:H.border}},Nw={darkMode:!0,color:H.theme,backgroundColor:Iw,axisPointer:{lineStyle:{color:H.border},crossStyle:{color:H.borderShade},label:{color:H.tertiary}},legend:{textStyle:{color:H.secondary},pageTextStyle:{color:H.tertiary}},textStyle:{color:H.secondary},title:{textStyle:{color:H.primary},subtextStyle:{color:H.quaternary}},toolbox:{iconStyle:{borderColor:H.accent50},feature:{dataView:{backgroundColor:Iw,textColor:H.primary,textareaColor:H.background,textareaBorderColor:H.border,buttonColor:H.accent50,buttonTextColor:H.neutral00}}},tooltip:{backgroundColor:H.neutral20,defaultBorderColor:H.border,textStyle:{color:H.tertiary}},dataZoom:{borderColor:H.accent10,textStyle:{color:H.tertiary},brushStyle:{color:H.backgroundTint},handleStyle:{color:H.neutral00,borderColor:H.accent20},moveHandleStyle:{color:H.accent40},emphasis:{handleStyle:{borderColor:H.accent50}},dataBackground:{lineStyle:{color:H.accent30},areaStyle:{color:H.accent20}},selectedDataBackground:{lineStyle:{color:H.accent50},areaStyle:{color:H.accent30}}},visualMap:{textStyle:{color:H.secondary},handleStyle:{borderColor:H.neutral30}},timeline:{lineStyle:{color:H.accent10},label:{color:H.tertiary},controlStyle:{color:H.accent30,borderColor:H.accent30}},calendar:{itemStyle:{color:H.neutral00,borderColor:H.neutral20},dayLabel:{color:H.tertiary},monthLabel:{color:H.secondary},yearLabel:{color:H.secondary}},matrix:{x:Lw,y:Lw,backgroundColor:{borderColor:H.axisLine},body:{itemStyle:{borderColor:H.borderTint}}},timeAxis:Ul(),logAxis:Ul(),valueAxis:Ul(),categoryAxis:Ul(),line:{symbol:"circle"},graph:{color:H.theme},gauge:{title:{color:H.secondary},axisLine:{lineStyle:{color:[[1,H.neutral05]]}},axisLabel:{color:H.axisLabel},detail:{color:H.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:H.background}},radar:(function(){var t=Ul();return t.axisName={color:H.axisLabel},t.axisLine.lineStyle.color=H.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:H.neutral20,textStyle:{color:H.secondary}},emphasis:{itemStyle:{color:H.neutral30}}}},sunburst:{itemStyle:{borderColor:H.background}},map:{itemStyle:{borderColor:H.border,areaColor:H.neutral10},label:{color:H.tertiary},emphasis:{label:{color:H.primary},itemStyle:{areaColor:H.highlight}},select:{label:{color:H.primary},itemStyle:{areaColor:H.highlight}}},geo:{itemStyle:{borderColor:H.border,areaColor:H.neutral10},emphasis:{label:{color:H.primary},itemStyle:{areaColor:H.highlight}},select:{label:{color:H.primary},itemStyle:{color:H.highlight}}}};Nw.categoryAxis.splitLine.show=!1;var Pw=Nw;var Rw=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},i={},n={};if(B(e)){var a=Gt(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};w(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var p=o[c],h=u.lastIndexOf(p);if(h>0&&h===u.length-p.length){var d=u.slice(0,h);d!=="data"&&(r.mainType=d,r[p.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:r,dataQuery:i,otherQuery:n}},t.prototype.filter=function(e,r){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.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(e,r.otherQuery,n,a));function f(c,p,h,d){return c[h]==null||p[d||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})();var Hm=["symbol","symbolSize","symbolRotate","symbolOffset"],kw=Hm.concat(["symbolKeepAspect"]),Bw={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<Hm.length;o++){var s=Hm[o],l=t.get(s);G(l)?(a=!0,n[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,r.setVisual(N({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),e.isSeriesFiltered(t))return;var u=fe(n);function f(c,p){for(var h=t.getRawValue(p),d=t.getDataParams(p),v=0;v<u.length;v++){var m=u[v];c.setItemVisual(p,m,n[m](h,d))}}return{dataEach:a?f:null}}},Uw={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<kw.length;s++){var l=kw[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?i:null}}};function zw(t,e,r){switch(r){case"color":var i=t.getItemVisual(e,"style");return i[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r);default:}}function Fw(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:}}function is(t,e,r,i,n){var a=t+e;r.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),p=wr(c,n.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:P(p)?c.getName(p[0]):c.getName(p),selected:B(l)?l:N({},l)})}})}function Vw(t,e,r){t.on("selectchanged",function(i){var n=r.getModel();i.isFromClick?(is("map","selectchanged",e,n,i),is("pie","selectchanged",e,n,i)):i.fromAction==="select"?(is("map","selected",e,n,i),is("pie","selected",e,n,i)):i.fromAction==="unselect"&&(is("map","unselected",e,n,i),is("pie","unselected",e,n,i))})}function Fa(t,e,r){for(var i;t&&!(e(t)&&(i=t,r));)t=t.__hostTarget||t.parent;return i}var sP=new vt,fr=sP;var Hw={};function Gw(t,e){Hw[t]=e}function Gm(t){return Hw[t]}var lP={};function Wc(t,e){lP[t]=e}var Yc=ae();function Ww(t){Yc(t).prepare={}}function Yw(t){Yc(t).fullUpdate={}}function Xw(t){return Yc(t).prepare}function Va(t){return Yc(t).fullUpdate}var uP=Math.round(Math.random()*9),fP=typeof Object.defineProperty=="function",cP=(function(){function t(){this._id="__ec_inner_"+uP++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var i=this._guard(e);return fP?Object.defineProperty(i,this._id,{value:r,enumerable:!1,configurable:!0}):i[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})(),qw=cP;var pP=oe.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i+a),t.lineTo(r-n,i+a),t.closePath()}}),hP=oe.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i),t.lineTo(r,i+a),t.lineTo(r-n,i),t.closePath()}}),dP=oe.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,i=e.y,n=e.width/5*3,a=Math.max(n,e.height),o=n/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),p=Math.cos(u),h=o*.6,d=o*.7;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-c*h,l+s+p*h,r,i-d,r,i),t.bezierCurveTo(r,i-d,r-f+c*h,l+s+p*h,r-f,l+s),t.closePath()}}),vP=oe.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,i=e.width,n=e.x,a=e.y,o=i/3*2;t.moveTo(n,a),t.lineTo(n+o,a+r),t.lineTo(n,a+r/4*3),t.lineTo(n-o,a+r),t.lineTo(n,a),t.closePath()}}),mP={line:or,rect:_e,roundRect:_e,square:_e,circle:ma,diamond:hP,pin:dP,arrow:vP,triangle:pP},gP={line:function(t,e,r,i,n){n.x1=t,n.y1=e+i/2,n.x2=t+r,n.y2=e+i/2},rect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i},roundRect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i,n.r=Math.min(r,i)/4},square:function(t,e,r,i,n){var a=Math.min(r,i);n.x=t,n.y=e,n.width=a,n.height=a},circle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.r=Math.min(r,i)/2},diamond:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i},pin:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},arrow:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},triangle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i}},Wm={};w(mP,function(t,e){Wm[e]=new t});var yP=oe.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var i=ea(t,e,r),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(i.y=r.y+r.height*.4),i},buildPath:function(t,e,r){var i=e.symbolType;if(i!=="none"){var n=Wm[i];n||(i="rect",n=Wm[i]),gP[i](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,r)}}});function _P(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||Z.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function cr(t,e,r,i,n,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=El(t.slice(8),new j(e,r,i,n),o?"center":"cover"):t.indexOf("path://")===0?l=Uo(t.slice(7),{},new j(e,r,i,n),o?"center":"cover"):l=new yP({shape:{symbolType:t,x:e,y:r,width:i,height:n}}),l.__isEmptyBrush=s,l.setColor=_P,a&&l.setColor(a),l}function Kw(t){return P(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function Xc(t,e){if(t!=null)return P(t)||(t=[t,t]),[Ze(t[0],e[0])||0,Ze(Y(t[1],t[0]),e[1])||0]}function Ha(t){return isFinite(t)}function xP(t,e,r){var i=e.x==null?0:e.x,n=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(i=i*r.width+r.x,n=n*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),i=Ha(i)?i:0,n=Ha(n)?n:1,a=Ha(a)?a:0,o=Ha(o)?o:0;var s=t.createLinearGradient(i,a,n,o);return s}function SP(t,e,r){var i=r.width,n=r.height,a=Math.min(i,n),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*i+r.x,s=s*n+r.y,l=l*a),o=Ha(o)?o:.5,s=Ha(s)?s:.5,l=l>=0&&Ha(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function zl(t,e,r){for(var i=e.type==="radial"?SP(t,e,r):xP(t,e,r),n=e.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function Zw(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function qc(t){return parseInt(t,10)}function Fl(t,e,r){var i=["width","height"][e],n=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[i]!=null&&r[i]!=="auto")return parseFloat(r[i]);var s=document.defaultView.getComputedStyle(t);return(t[n]||qc(s[i])||qc(t.style[i]))-(qc(s[a])||0)-(qc(s[o])||0)||0}function bP(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:le(t)?[t]:P(t)?t:null}function Ym(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&bP(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(r){var n=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;n&&n!==1&&(r=U(r,function(a){return a/n}),i/=n)}return[r,i]}var wP=new rr(!0);function Kc(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function jw(t){return typeof t=="string"&&t!=="none"}function Zc(t){var e=t.fill;return e!=null&&e!=="none"}function $w(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function Qw(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function jc(t,e,r){var i=qd(e.image,e.__image,r);if(Do(i)){var n=t.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*kh),a.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(a)}return n}}function TP(t,e,r,i,n){var a,o=Kc(r),s=Zc(r),l=r.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||wP,p=e.__dirty;if(!i){var h=r.fill,d=r.stroke,v=s&&!!h.colorStops,m=o&&!!d.colorStops,g=s&&!!h.image,y=o&&!!d.image,_=void 0,x=void 0,S=void 0,b=void 0,T=void 0;(v||m)&&(T=e.getBoundingRect()),v&&(_=p?zl(t,h,T):e.__canvasFillGradient,e.__canvasFillGradient=_),m&&(x=p?zl(t,d,T):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),g&&(S=p||!e.__canvasFillPattern?jc(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(b=p||!e.__canvasStrokePattern?jc(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),v?t.fillStyle=_:g&&(S?t.fillStyle=S:s=!1),m?t.strokeStyle=x:y&&(b?t.strokeStyle=b:o=!1)}var C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold);var A,E;t.setLineDash&&r.lineDash&&(a=Ym(e),A=a[0],E=a[1]);var D=!0;(f||p&Xi)&&(c.setDPR(t.dpr),u?c.setContext(null):(c.setContext(t),D=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),D&&c.rebuildPath(t,u?l:1),A&&(t.setLineDash(A),t.lineDashOffset=E),i?(n.batchFill=s,n.batchStroke=o):r.strokeFirst?(o&&Qw(t,r),s&&$w(t,r)):(s&&$w(t,r),o&&Qw(t,r)),A&&t.setLineDash([])}function CP(t,e,r){var i=e.__image=qd(r.image,e.__image,e,e.onload);if(!(!i||!Do(i))){var n=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(i,u,f,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,p=s-f;t.drawImage(i,u,f,c,p,n,a,o,s)}else t.drawImage(i,n,a,o,s)}}function EP(t,e,r){var i,n=r.text;if(n!=null&&(n+=""),n){t.font=r.font||dr,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(i=Ym(e),a=i[0],o=i[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(Kc(r)&&t.strokeText(n,r.x,r.y),Zc(r)&&t.fillText(n,r.x,r.y)):(Zc(r)&&t.fillText(n,r.x,r.y),Kc(r)&&t.strokeText(n,r.x,r.y)),a&&t.setLineDash([])}}var Jw=["shadowBlur","shadowOffsetX","shadowOffsetY"],eT=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function oT(t,e,r,i,n){var a=!1;if(!i&&(r=r||{},e===r))return!1;if(i||e.opacity!==r.opacity){Bt(t,n),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?ii.opacity:o}(i||e.blend!==r.blend)&&(a||(Bt(t,n),a=!0),t.globalCompositeOperation=e.blend||ii.blend);for(var s=0;s<Jw.length;s++){var l=Jw[s];(i||e[l]!==r[l])&&(a||(Bt(t,n),a=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==r.shadowColor)&&(a||(Bt(t,n),a=!0),t.shadowColor=e.shadowColor||ii.shadowColor),a}function tT(t,e,r,i,n){var a=e.style,o=i?null:r&&r.style||{};if(a===o)return!1;var s=oT(t,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(Bt(t,n),s=!0),jw(a.fill)&&(t.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(Bt(t,n),s=!0),jw(a.stroke)&&(t.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(Bt(t,n),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Bt(t,n),s=!0),t.lineWidth=u)}for(var f=0;f<eT.length;f++){var c=eT[f],p=c[0];(i||a[p]!==o[p])&&(s||(Bt(t,n),s=!0),t[p]=a[p]||c[1])}return s}function AP(t,e,r,i,n){return oT(t,e.style,r&&r.style,i,n)}function sT(t,e){var r=e.transform,i=t.dpr||1;r?t.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]):t.setTransform(i,0,0,i,0,0)}function DP(t,e,r){for(var i=!1,n=0;n<t.length;n++){var a=t[n];i=i||a.isZeroArea(),sT(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=i}function MP(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var rT=1,iT=2,nT=3,aT=4;function OP(t){var e=Zc(t),r=Kc(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Bt(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function ns(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};yn(t,e,r),Ga(t,r)}function yn(t,e,r){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~Ke,e.__isRendered=!1;return}var n=e.__clipPaths,a=r.prevElClipPaths,o=e.style,s=!1,l=!1;if((!a||Zw(n,a))&&(a&&(Bt(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),n&&n.length&&(Bt(t,r),t.save(),DP(n,t,r),s=!0,r.prevElClipPaths=n)),r.allClipped){e.__dirty&=~Ke,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof oe&&e.autoBatch&&OP(o);s||MP(i,u.transform)?(Bt(t,r),sT(t,e)):f||Bt(t,r),e instanceof oe?(r.lastDrawType!==rT&&(l=!0,r.lastDrawType=rT),tT(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),TP(t,e,o,f,r)):e instanceof ll?(r.lastDrawType!==nT&&(l=!0,r.lastDrawType=nT),tT(t,e,u,l,r),EP(t,e,o)):e instanceof Wt?(r.lastDrawType!==iT&&(l=!0,r.lastDrawType=iT),AP(t,e,u,l,r),CP(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==aT&&(l=!0,r.lastDrawType=aT),IP(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&&Bt(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Ga(t,e){Bt(t,e),e.prevElClipPaths&&t.restore()}function IP(t,e,r){var i=e.getDisplayables(),n=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),yn(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Ga(t,a);for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),yn(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Ga(t,a),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Xm=new qw,lT=new ei(100),uT=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Vl(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),i=e.getZr(),n=i.painter.type==="svg";t.dirty&&Xm.delete(t);var a=Xm.get(t);if(a)return a;var o=re(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/r,Xm.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,p=0;p<uT.length;++p){var h=o[uT[p]];if(h!=null&&!P(h)&&!B(h)&&!le(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var d;if(c){d=f.join(",")+(n?"-svg":"");var v=lT.get(d);v&&(n?u.svgElement=v:u.image=v)}var m=cT(o.dashArrayX),g=LP(o.dashArrayY),y=fT(o.symbol),_=NP(m),x=pT(g),S=!n&&Re.createCanvas(),b=n&&{tag:"g",attrs:{},key:"dcl",children:[]},T=A(),C;S&&(S.width=T.width*r,S.height=T.height*r,C=S.getContext("2d")),E(),c&&lT.put(d,S||b),u.image=S,u.svgElement=b,u.svgWidth=T.width,u.svgHeight=T.height;function A(){for(var D=1,O=0,M=_.length;O<M;++O)D=Bd(D,_[O]);for(var I=1,O=0,M=y.length;O<M;++O)I=Bd(I,y[O].length);D*=I;var R=x*_.length*y.length;if(0)var k;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function E(){C&&(C.clearRect(0,0,S.width,S.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,S.width,S.height)));for(var D=0,O=0;O<g.length;++O)D+=g[O];if(D<=0)return;for(var M=-x,I=0,R=0,k=0;M<T.height;){if(I%2===0){for(var W=R/2%y.length,z=0,X=0,$=0;z<T.width*2;){for(var K=0,O=0;O<m[k].length;++O)K+=m[k][O];if(K<=0)break;if(X%2===0){var te=(1-o.symbolSize)*.5,ie=z+m[k][X]*te,q=M+g[I]*te,ge=m[k][X]*o.symbolSize,Se=g[I]*o.symbolSize,Dt=$/2%y[W].length;kr(ie,q,ge,Se,y[W][Dt])}z+=m[k][X],++$,++X,X===m[k].length&&(X=0)}++k,k===m.length&&(k=0)}M+=g[I],++R,++I,I===g.length&&(I=0)}function kr(Pe,it,de,be,On){var Mt=n?1:r,Jy=cr(On,Pe*Mt,it*Mt,de*Mt,be*Mt,o.color,o.symbolKeepAspect);if(n){var e_=i.painter.renderOneToVNode(Jy);e_&&b.children.push(e_)}else ns(C,Jy)}}}}function fT(t){if(!t||t.length===0)return[["rect"]];if(B(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!B(t[r])){e=!1;break}if(e)return fT([t]);for(var i=[],r=0;r<t.length;++r)B(t[r])?i.push([t[r]]):i.push(t[r]);return i}function cT(t){if(!t||t.length===0)return[[0,0]];if(le(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,i=0;i<t.length;++i)if(!le(t[i])){r=!1;break}if(r)return cT([t]);for(var n=[],i=0;i<t.length;++i)if(le(t[i])){var e=Math.ceil(t[i]);n.push([e,e])}else{var e=U(t[i],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function LP(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(le(t)){var e=Math.ceil(t);return[e,e]}var r=U(t,function(i){return Math.ceil(i)});return t.length%2?r.concat(r):r}function NP(t){return U(t,function(e){return pT(e)})}function pT(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var hT=Eo(PP);function PP(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var i=r.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=Vl(s,e)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=Vl(n,e)}}})}var RP="6.1.0",kP={zrender:"6.1.0"},BP=1,UP=800,zP=900,FP=920,VP=1e3,HP=2e3,dT=5e3,wT=1e3,GP=1100,ng=2e3,TT=3e3,WP=4e3,ap=4500,YP=4600,XP=5e3,qP=6e3,CT=7e3,ag={PROCESSOR:{SERIES_FILTER:UP,AXIS_STATISTICS:FP,FILTER:VP,STATISTIC:dT,STATISTICS:dT},VISUAL:{LAYOUT:wT,PROGRESSIVE_LAYOUT:GP,GLOBAL:ng,CHART:TT,POST_CHART_LAYOUT:YP,COMPONENT:WP,BRUSH:XP,CHART_ITEM:ap,ARIA:qP,DECAL:CT}},rt="__flagInMainProcess",$c="__mainProcessVersion",pt="__pendingUpdate",qm="__needsUpdateStatus",vT=/^[a-zA-Z0-9_]+$/,Km="__connectUpdateStatus",mT=0,KP=1,ZP=2;function ET(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return DT(this,t,e)}}function AT(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return DT(this,t,e)}}function DT(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),vt.prototype[e].apply(t,r)}var MT=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(vt),OT=MT.prototype;OT.on=AT("on");OT.off=AT("off");var Wa,Zm,Qc,Ri,Jc,jm,$m,as,os,gT,yT,Qm,_T,ep,xT,IT,Or,ST,ss,tp=(function(t){L(e,t);function e(r,i,n){var a=t.call(this,new Rw)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},a.__v_skip=!0,a._dom=r;var o="canvas",s="auto",l=!1;if(a[$c]=1,0)var u;n.ssr&&Pd(function(h){var d=he(h),v=d.dataIndex;if(v!=null){var m=V();return m.set("series_index",d.seriesIndex),m.set("data_index",v),d.ssrType&&m.set("ssr_type",d.ssrType),m}});var f=a._zr=cf(r,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:Y(n.useDirtyRect,l),useCoarsePointer:Y(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=za(pe(f.flush,f),17),a._updateTheme(i),a._locale=ob(n.locale||rc),a._coordSysMgr=new jo;var c=a._api=xT(a);function p(h,d){return h.__prio-d.__prio}return Xn(ip,p),Xn(tg,p),a._scheduler=new Vm(a,c,tg,ip),a._messageCenter=new MT,a._initEvents(),a.resize=pe(a.resize,a),f.animation.on("frame",a._onframe,a),gT(f,a),yT(f,a),Un(a),a}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,i=this._model,n=this._api;if(ST(this),this[pt]){var a=this[pt].silent;this[rt]=!0,ss(this);try{Wa(this),Ri.update.call(this,null,this[pt].updateParams)}catch(l){throw this[rt]=!1,this[pt]=null,l}this._zr.flush(),this[rt]=!1,this[pt]=null,as.call(this,a),os.call(this,a)}else if(r.unfinished){var o=BP;do{r.unfinished=!1;var s=Re.getTime();r.performSeriesTasks(i),r.performDataProcessorTasks(i),jm(this,i),r.performVisualTasks(i),ep(this,this._model,n,"remain",{}),o-=Re.getTime()-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,i,n){if(!this[rt]){if(this._disposed){this.id;return}var a,o,s;if(F(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[rt]=!0,ss(this),!this._model||i){var l=new Rb(this._api),u=this._theme,f=this._model=new Ac;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},rg);var c={seriesTransition:s,optionChanged:!0};if(n)this[pt]={silent:a,updateParams:c},this[rt]=!1,this.getZr().wakeUp();else{try{Wa(this),Ri.update.call(this,null,c)}catch(p){throw this[pt]=null,this[rt]=!1,p}this._ssr||this._zr.flush(),this[pt]=null,this[rt]=!1,as.call(this,a),os.call(this,a)}}},e.prototype.setTheme=function(r,i){if(!this[rt]){if(this._disposed){this.id;return}var n=this._model;if(n){var a=i&&i.silent,o=null;this[pt]&&(a==null&&(a=this[pt].silent),o=this[pt].updateParams,this[pt]=null),this[rt]=!0,ss(this);try{this._updateTheme(r),n.setTheme(this._theme),Wa(this),Ri.update.call(this,{type:"setTheme"},o)}catch(s){throw this[rt]=!1,s}this[rt]=!1,as.call(this,a),os.call(this,a)}}},e.prototype._updateTheme=function(r){B(r)&&(r=LT[r]),r&&(r=Q(r),r&&Dc(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ee.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var i=this._zr.painter;return i.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,i=r.storage.getDisplayList();return w(i,function(n){n.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var i=r.excludeComponents,n=this._model,a=[],o=this;w(i,function(l){n.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(r).toDataURL("image/"+(r&&r.type||"png"));return w(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var i=r.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(np[n]){var l=s,u=s,f=-s,c=-s,p=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();w(Ya,function(_,x){if(_.group===n){var S=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Q(r)),b=_.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),f=o(b.right,f),c=o(b.bottom,c),p.push({dom:S,left:b.left,top:b.top})}}),l*=h,u*=h,f*=h,c*=h;var d=f-l,v=c-u,m=Re.createCanvas(),g=cf(m,{renderer:i?"svg":"canvas"});if(g.resize({width:d,height:v}),i){var y="";return w(p,function(_){var x=_.left-l,S=_.top-u;y+='<g transform="translate('+x+","+S+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new _e({shape:{x:0,y:0,width:d,height:v},style:{fill:r.connectedBackgroundColor}})),w(p,function(_){var x=new Wt({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});g.add(x)}),g.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,i,n){return Jc(this,"convertToPixel",r,i,n)},e.prototype.convertToLayout=function(r,i,n){return Jc(this,"convertToLayout",r,i,n)},e.prototype.convertFromPixel=function(r,i,n){return Jc(this,"convertFromPixel",r,i,n)},e.prototype.containPixel=function(r,i){if(this._disposed){this.id;return}var n=this._model,a,o=vf(n,r);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(i);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(i,u))}},this)},this),!!a},e.prototype.getVisual=function(r,i){var n=this._model,a=vf(n,r,{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?zw(s,l,i):Fw(s,i)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;w(jP,function(n){var a=function(o){var s=r.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&Fa(l,function(v){var m=he(v);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=g&&g.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=N({},m.eventData),!0},!0),u){var c=u.componentType,p=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",p=u.seriesIndex);var h=c&&p!=null&&s.getComponent(c,p),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=n,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},r.trigger(n,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)});var i=this._messageCenter;w(eg,function(n,a){i.on(a,function(o){r.trigger(a,o)})}),Vw(i,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&Vd(this.getDom(),sg,"");var i=this,n=i._api,a=i._model;w(i._componentsViews,function(o){o.dispose(a,n)}),w(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete Ya[i.id]},e.prototype.resize=function(r){if(!this[rt]){if(this._disposed){this.id;return}this._zr.resize(r);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=r&&r.silent;this[pt]&&(a==null&&(a=this[pt].silent),n=!0,this[pt]=null),this[rt]=!0,ss(this);try{n&&Wa(this),Ri.update.call(this,{type:"resize",animation:N({duration:0},r&&r.animation)})}catch(o){throw this[rt]=!1,o}this[rt]=!1,as.call(this,a),os.call(this,a)}}},e.prototype.showLoading=function(r,i){if(this._disposed){this.id;return}if(F(r)&&(i=r,r=""),r=r||"default",this.hideLoading(),!!ig[r]){var n=ig[r](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var i=N({},r);return i.type=Jm[r.type],i},e.prototype.dispatchAction=function(r,i){if(this._disposed){this.id;return}if(F(i)||(i={silent:!!i}),!!rp[r.type]&&this._model){if(this[rt]){this._pendingActions.push(r);return}var n=i.silent;$m.call(this,r,n);var a=i.flush;a?this._zr.flush():a!==!1&&ee.browser.weChat&&this._throttledZrFlush(),as.call(this,n),os.call(this,n)}},e.prototype.updateLabelLayout=function(){fr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var i=r.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){Wa=function(c){Ww(c._model);var p=c._scheduler;p.restorePipelines(c._zr,c._model),p.prepareStageTasks(),Zm(c,!0),Zm(c,!1),p.plan()},Zm=function(c,p){for(var h=c._model,d=c._scheduler,v=p?c._componentsViews:c._chartsViews,m=p?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,_=0;_<v.length;_++)v[_].__alive=!1;p?h.eachComponent(function(b,T){b!=="series"&&x(T)}):h.eachSeries(x);function x(b){var T=b.__requireNewView;b.__requireNewView=!1;var C="_ec_"+b.id+"_"+b.type,A=!T&&m[C];if(!A){var E=Gt(b.type),D=p?st.getClass(E.main,E.sub):xt.getClass(E.sub);A=new D,A.init(h,y),m[C]=A,v.push(A),g.add(A.group)}b.__viewId=A.__id=C,A.__alive=!0,A.__model=b,A.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!p&&d.prepareView(A,b,h,y)}for(var _=0;_<v.length;){var S=v[_];S.__alive?_++:(!p&&S.renderTask.dispose(),g.remove(S.group),S.dispose(h,y),v.splice(_,1),m[S.__id]===S&&delete m[S.__id],S.__id=S.group.__ecComponentInfo=null)}},Qc=function(c,p,h,d,v){var m=c._model;if(m.setUpdatePayload(h),!d){w([].concat(c._componentsViews).concat(c._chartsViews),x);return}var g=Y0(h,d,v),y=h.excludeSeriesId,_;y!=null&&(_=V(),w(ze(y),function(S){var b=tr(S,null);b!=null&&_.set(b,!0)})),m&&m.eachComponent(g,function(S){var b=_&&_.get(S.id)!=null;if(!b)if(Av(h))if(S instanceof kt)h.type===fn&&!h.notBlur&&!S.get(["emphasis","disabled"])&&nS(S,h,c._api);else{var T=Lf(S.mainType,S.componentIndex,h.name,c._api),C=T.focusSelf,A=T.dispatchers;h.type===fn&&C&&!h.notBlur&&Df(S.mainType,S.componentIndex,c._api),A&&w(A,function(E){h.type===fn?ha(E):da(E)})}else Nf(h)&&S instanceof kt&&(sS(S,h,c._api),Ev(S),Or(c))},c),m&&m.eachComponent(g,function(S){var b=_&&_.get(S.id)!=null;b||x(c[d==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},c);function x(S){S&&S.__alive&&S[p]&&S[p](S.__model,m,c._api,h)}},Ri={prepareAndUpdate:function(c){Wa(this),Ri.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,p){var h=this._model,d=this._api,v=this._zr,m=this._coordSysMgr,g=this._scheduler;if(h){Yw(h),h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),m.create(h,d),fr.trigger("coordsys:aftercreate",h,d),g.performDataProcessorTasks(h,c),jm(this,h),m.update(h,d),i(h),g.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";v.setBackgroundColor(y);var _=h.get("darkMode");_!=null&&_!=="auto"&&v.setDarkMode(_),Qm(this,h,d,c,p),fr.trigger("afterupdate",h,d)}},updateTransform:function(c){var p=this,h=p._model,d=p._api;if(h){h.setUpdatePayload(c);var v=[];h.eachComponent(function(g,y){if(g!==Cf){var _=p.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,h,d,c);x&&x.update&&v.push(_)}else v.push(_)}});var m=V();h.eachSeries(function(g){var y=p._chartsMap[g.__viewId],_=g.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var x=y.updateTransform(g,h,d,c);x&&x.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),p._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:m}),ep(p,h,d,c,{},m),fr.trigger("afterupdate",h,d)}},updateView:function(c){var p=this._model;p&&(p.setUpdatePayload(c),xt.markUpdateMethod(c,"updateView"),i(p),this._scheduler.performVisualTasks(p,c,{setDirty:!0}),Qm(this,p,this._api,c,{}),fr.trigger("afterupdate",p,this._api))},updateVisual:function(c){var p=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(d){d.getData().clearAllVisual()}),xt.markUpdateMethod(c,"updateVisual"),i(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,v){if(d!=="series"){var m=p.getViewOfComponentModel(v);m&&m.__alive&&m.updateVisual(v,h,p._api,c)}}),h.eachSeries(function(d){var v=p._chartsMap[d.__viewId];v.updateVisual(d,h,p._api,c)}),fr.trigger("afterupdate",h,this._api))},updateLayout:function(c){Ri.update.call(this,c)}};function r(c,p,h,d,v){if(c._disposed){c.id;return}for(var m=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,_=vf(m,h),x=0;x<g.length;x++){var S=g[x];if(S[p]&&(y=S[p](m,_,d,v))!=null)return y}}Jc=r,jm=function(c,p){var h=c._chartsMap,d=c._scheduler;p.eachSeries(function(v){d.updateStreamModes(v,h[v.__viewId])})},$m=function(c,p){var h=this,d=this.getModel(),v=c.type,m=c.escapeConnect,g=rp[v],y=(g.update||"update").split(":"),_=y.pop(),x=y[0]!=null&&Gt(y[0]);this[rt]=!0,ss(this);var S=[c],b=!1;c.batch&&(b=!0,S=U(c.batch,function(k){return k=re(N({},k),c),k.batch=null,k}));var T=[],C,A=[],E=g.nonRefinedEventType,D=Nf(c),O=Av(c);if(O&&Cv(this._api),w(S,function(k){var W=g.action(k,d,h._api);if(g.refineEvent?A.push(W):C=W,C=C||N({},k),C.type=E,T.push(C),O){var z=il(c),X=z.queryOptionMap,$=z.mainTypeSpecified,K=$?X.keys()[0]:"series";Qc(h,_,k,K),Or(h)}else D?(Qc(h,_,k,"series"),Or(h)):x&&Qc(h,_,k,x.main,x.sub)}),_!=="none"&&!O&&!D&&!x)try{this[pt]?(Wa(this),Ri.update.call(this,c),this[pt]=null):Ri[_].call(this,c)}catch(k){throw this[rt]=!1,k}if(b?C={type:E,escapeConnect:m,batch:T}:C=T[0],this[rt]=!1,!p){var M=void 0;if(g.refineEvent){var I=g.refineEvent(A,c,d,this._api).eventContent;Xe(F(I)),M=re({type:g.refinedEventType},I),M.fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var R=this._messageCenter;R.trigger(C.type,C),M&&R.trigger(M.type,M)}},as=function(c){for(var p=this._pendingActions;p.length;){var h=p.shift();$m.call(this,h,c)}},os=function(c){!c&&this.trigger("updated")},gT=function(c,p){c.on("rendered",function(h){p.trigger("rendered",h),c.animation.isFinished()&&!p[pt]&&!p._scheduler.unfinished&&!p._pendingActions.length?p.trigger("finished"):c.refresh()})},yT=function(c,p){c.on("mouseover",function(h){var d=h.target,v=Fa(d,vl);v&&(aS(v,h,p._api),Or(p))}).on("mouseout",function(h){var d=h.target,v=Fa(d,vl);v&&(oS(v,h,p._api),Or(p))}).on("click",function(h){var d=h.target,v=Fa(d,function(y){return he(y).dataIndex!=null},!0);if(v){var m=v.selected?"unselect":"select",g=he(v);p._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function i(c){c.clearColorPalette(),c.eachSeries(function(p){p.clearColorPalette()})}function n(c){var p=[],h=[],d=!1;if(c.eachComponent(function(y,_){var x=_.get("zlevel")||0,S=_.get("z")||0,b=_.getZLevelKey();d=d||!!b,(y==="series"?h:p).push({zlevel:x,z:S,idx:_.componentIndex,type:y,key:b})}),d){var v=p.concat(h),m,g;Xn(v,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),w(v,function(y){var _=c.getComponent(y.type,y.idx),x=y.zlevel,S=y.key;m!=null&&(x=Math.max(m,x)),S?(x===m&&S!==g&&x++,g=S):g&&(x===m&&x++,g=""),m=x,_.setZLevel(x)})}}Qm=function(c,p,h,d,v){n(p),_T(c,p,h,d,v),w(c._chartsViews,function(m){m.__alive=!1}),ep(c,p,h,d,v),w(c._chartsViews,function(m){m.__alive||m.remove(p,h)})},_T=function(c,p,h,d,v,m){w(m||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,p,h,d),l(y,g),f(y,g)})},ep=function(c,p,h,d,v,m){var g=c._scheduler;v=N(v||{},{updatedSeries:p.getSeries()}),fr.trigger("series:beforeupdate",p,h,v);var y=!1;p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];x.__alive=!0;var S=x.renderTask;g.updatePayload(S,d),u(_,x),m&&m.get(_.uid)&&S.dirty(),S.perform(g.getPerformArgs(S))&&(y=!0),x.group.silent=!!_.get("silent"),s(_,x),Ev(_)}),g.unfinished=y||g.unfinished,fr.trigger("series:layoutlabels",p,h,v),fr.trigger("series:transition",p,h,v),p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];l(_,x),f(_,x)}),o(c,p),fr.trigger("series:afterupdate",p,h,v)},Or=function(c){c[qm]=!0,c.getZr().wakeUp()},ss=function(c){c[$c]=(c[$c]+1)%1e6},ST=function(c){c[qm]&&(c.getZr().storage.traverse(function(p){Sa(p)||a(p)}),c[qm]=!1)};function a(c){for(var p=[],h=c.currentStates,d=0;d<h.length;d++){var v=h[d];v==="emphasis"||v==="blur"||v==="select"||p.push(v)}c.selected&&c.states.select&&p.push("select"),c.hoverState===fl&&c.states.emphasis?p.push("emphasis"):c.hoverState===ul&&c.states.blur&&p.push("blur"),c.useStates(p)}function o(c,p){var h=c._zr;if(h.painter.type==="canvas"){var d=h.storage,v=0;d.traverse(function(g){g.isGroup||v++});var m=v>Y(p.get("hoverLayerThreshold"),Tc.hoverLayerThreshold)&&!ee.node&&!ee.worker;(c._usingTHL||m)&&(p.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(_){var x=_.states.emphasis;x&&x.hoverLayer!==Cl&&(x.hoverLayer=m?Fv:zv)})}}),c._usingTHL=m)}}function s(c,p){var h=c.get("blendMode")||null;p.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(c,p){if(!c.preventAutoZ){var h=Zv(c);p.eachRendered(function(d){return jv(d,h.z,h.zlevel),!0})}}function u(c,p){p.eachRendered(function(h){if(!Sa(h)){var d=h.getTextContent(),v=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,p){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),v=h.get("duration"),m=v>0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;p.eachRendered(function(g){if(g.states&&g.states.emphasis){if(Sa(g))return;if(g instanceof oe&&cS(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=m;var _=g.getTextContent(),x=g.getTextGuideLine();_&&(_.stateTransition=m),x&&(x.stateTransition=m)}g.__dirty&&a(g)}})}xT=function(c){return new((function(p){L(h,p);function h(){return p!==null&&p.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var v=d.__ecComponentInfo;if(v!=null)return c._model.getComponent(v.mainType,v.index);d=d.parent}},h.prototype.enterEmphasis=function(d,v){ha(d,v),Or(c)},h.prototype.leaveEmphasis=function(d,v){da(d,v),Or(c)},h.prototype.enterBlur=function(d){rS(d),Or(c)},h.prototype.leaveBlur=function(d){bv(d),Or(c)},h.prototype.enterSelect=function(d){wv(d),Or(c)},h.prototype.leaveSelect=function(d){Tv(d),Or(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h.prototype.getECUpdateCycleVersion=function(){return c[$c]},h.prototype.usingTHL=function(){return c._usingTHL},h})(Af))(c)},IT=function(c){function p(h,d){for(var v=0;v<h.length;v++){var m=h[v];m[Km]=d}}w(Jm,function(h,d){c._messageCenter.on(d,function(v){if(np[c.group]&&c[Km]!==mT){if(v&&v.escapeConnect)return;var m=c.makeActionFromEvent(v),g=[];w(Ya,function(y){y!==c&&y.group===c.group&&g.push(y)}),p(g,mT),w(g,function(y){y[Km]!==KP&&y.dispatchAction(m)}),p(g,ZP)}})})}})(),e})(vt),og=tp.prototype;og.on=ET("on");og.off=ET("off");og.one=function(t,e,r){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),i.off(t,n)}this.on.call(this,t,n,r)};var jP=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var rp={},Jm={},eg={},tg=[],rg=[],ip=[],LT={},ig={},Ya={},np={},$P=+new Date-0,QP=+new Date-0,sg="_echarts_instance_";function JP(t,e,r){var i=!(r&&r.ssr);if(i){var n=lg(t);if(n)return n}var a=new tp(t,e,r);return a.id="ec_"+$P++,Ya[a.id]=a,i&&Vd(t,sg,a.id),IT(a),fr.trigger("afterinit",a),a}function eR(t){if(P(t)){var e=t;t=null,w(e,function(r){r.group!=null&&(t=r.group)}),t=t||"g_"+QP++,w(e,function(r){r.group=t})}return np[t]=!0,t}function NT(t){np[t]=!1}var tR=NT;function rR(t){B(t)?t=Ya[t]:t instanceof tp||(t=lg(t)),t instanceof tp&&!t.isDisposed()&&t.dispose()}function lg(t){return Ya[X0(t,sg)]}function iR(t){return Ya[t]}function ug(t,e){LT[t]=e}function op(t){ne(rg,t)<0&&rg.push(t)}function sp(t,e){dg(tg,t,e,HP)}function fg(t){Hl("afterinit",t)}function cg(t){Hl("afterupdate",t)}function Hl(t,e){fr.on(t,e)}function _n(t,e,r){var i,n,a,o,s;G(e)&&(r=e,e=""),F(t)?(i=t.type,n=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(i=t,n=e);function l(f){return f.toLowerCase()}n=l(n||i);var u=a?l(i):n;rp[i]||(Xe(vT.test(i)&&vT.test(n)),a&&Xe(n!==i),rp[i]={actionType:i,refinedEventType:n,nonRefinedEventType:u,update:o,action:r,refineEvent:a},eg[n]=1,a&&s&&(eg[u]=1),Jm[u]=i)}function pg(t,e){jo.register(t,e)}function nR(t){var e=jo.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function aR(t,e){Wc(t,e)}function hg(t,e){dg(ip,t,e,wT,"layout",!0)}function ki(t,e){dg(ip,t,e,TT,"visual",!0)}var bT=[];function dg(t,e,r,i,n,a){if((G(e)||F(e))&&(r=e,e=i),!(ne(bT,r)>=0)){bT.push(r);var o=Vm.wrapStageHandler(r,n);o.__prio=e,o.__raw=r,t.push(o)}}function lp(t,e){ig[t]=e}function oR(t){Ou({createCanvas:t})}function vg(t,e,r){var i=Gm("registerMap");i&&i(t,e,r)}function sR(t){var e=Gm("getMap");return e&&e(t)}var mg=ew;ki(ng,Cw);ki(ap,Ew);ki(ap,Aw);ki(ng,Bw);ki(ap,Uw);ki(CT,hT);op(Dc);sp(zP,Hb);lp("default",Fm);_n({type:fn,event:fn,update:fn},ke);_n({type:cl,event:cl,update:cl},ke);_n({type:pl,event:Of,update:pl,action:ke,refineEvent:gg,publishNonRefinedEvent:!0});_n({type:Mf,event:Of,update:Mf,action:ke,refineEvent:gg,publishNonRefinedEvent:!0});_n({type:hl,event:Of,update:hl,action:ke,refineEvent:gg,publishNonRefinedEvent:!0});function gg(t,e,r,i){return{eventContent:{selected:lS(r),isFromClick:e.isFromClick||!1}}}ug("default",{});ug("dark",Pw);var lR={};function Gl(t){return t==null?0:t.length||1}function PT(t){return t}var uR=(function(){function t(e,r,i,n,a,o){this._old=e,this._new=r,this._oldKeyGetter=i||PT,this._newKeyGetter=n||PT,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,i={},n=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(r,i,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],l=i[s],u=Gl(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,i={},n={},a=[],o=[];this._initIndexMap(e,i,a,"_oldKeyGetter"),this._initIndexMap(r,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=i[l],f=n[l],c=Gl(u),p=Gl(f);if(c>1&&p===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(c===1&&p>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(c===1&&p===1)this._update&&this._update(f,u),n[l]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},t.prototype._performRestAdd=function(e,r){for(var i=0;i<e.length;i++){var n=e[i],a=r[n],o=Gl(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[n]=null}},t.prototype._initIndexMap=function(e,r,i,n){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(a||(i[o]=s),!!r){var l=r[s],u=Gl(l);u===0?(r[s]=o,a&&i.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),RT=uR;var fR=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function kT(t,e){var r={},i=r.encode={},n=V(),a=[],o=[],s={};w(t.dimensions,function(p){var h=t.getDimensionInfo(p),d=h.coordDim;if(d){var v=h.coordDimIndex;yg(i,d)[v]=p,h.isExtraCoord||(n.set(d,1),cR(h.type)&&(a[0]=p),yg(s,d)[v]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(p)}Ef.each(function(m,g){var y=yg(i,g),_=h.otherDims[g];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};n.each(function(p,h){var d=i[h];u[h]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=U(l,function(p){return t.getDimensionInfo(p).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(a=f.slice());var c=i.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,r.userOutput=new fR(s,e),r}function yg(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function BT(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function cR(t){return!(t==="ordinal"||t==="time")}var pR=(function(){function t(e){this.otherDims={},e!=null&&N(this,e)}return t})(),ls=pR;var hR=ae(),dR={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},_g=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=xg(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Y(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=Oc(this.source),i=!Sg(e),n="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var p=this.getSourceDimension(o);p&&(l=r?p.name:null,u=p.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=dR[u]||"f",f&&(n+=f.uid),n+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,n].join("$$");return{dimensions:a,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,i=0;r<this._fullDimCount;r++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(r);o&&(n=o.name)}e.push(n)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function up(t){return t instanceof _g}function Wl(t){for(var e=V(),r=0;r<(t||[]).length;r++){var i=t[r],n=F(i)?i.name:i;n!=null&&e.get(n)==null&&e.set(n,r)}return e}function xg(t){var e=hR(t);return e.dimNameMap||(e.dimNameMap=Wl(t.dimensionsDefine))}function Sg(t){return t>30}var Yl=F,xn=U,vR=typeof Int32Array>"u"?Array:Int32Array,mR="e\0\0",UT=-1,gR=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],yR=["_approximateExtent"],zT,fp,Xl,ql,bg,Kl,wg,_R=(function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,n=!1;up(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,i=e),i=i||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var c=i[f],p=B(c)?new ls({name:c}):c instanceof ls?c:new ls(c),h=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=h,p.coordDimIndex=0);var d=p.otherDims=p.otherDims||{};o.push(h),a[h]=p,u[h]!=null&&(l=!0),p.createInvertedIndices&&(s[h]=[]),n&&(p.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=p.storeDimIndex),d.itemId===0&&(this._idDimIdx=p.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var v=this._dimIdxToName=V();w(o,function(m){v.set(a[m].storeDimIndex,m)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var i=this._dimIdxToName.get(r);if(i!=null)return i;var n=this._schema.getSourceDimension(r);if(n)return n.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(le(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(i){return r.hasOwnProperty(i)?r[i]:void 0}:function(i){return r[i]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var i=this._dimSummary;if(r==null)return i.encodeFirstDimNotExtra[e];var n=i.encode[e];return n?n[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,i=r.encode[e];return(i||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,i){var n=this,a;if(e instanceof Pl&&(a=e),!a){var o=this.dimensions,s=Jo(e)||Ye(e)?new Lc(e,o.length):e;a=new Pl;var l=xn(o,function(u){return{type:n._dimInfos[u].type,property:u}});a.initData(s,l,i)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=kT(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var i=this._store.appendValues(e,r&&r.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=n;s<a;s++){var l=s-n;this._nameList[s]=r[l],o&&wg(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,i=0;i<r.length;i++){var n=this._dimInfos[r[i]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==nr&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===ot;if(l&&!n.pure)for(var u=[],f=e;f<r;f++){var c=n.getItem(f,u);if(!this.hasItemOption&&V0(c)&&(this.hasItemOption=!0),c){var p=c.name;a[f]==null&&p!=null&&(a[f]=tr(p,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=tr(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)wg(this,f);zT(this)}},t.prototype.getApproximateExtent=function(e,r){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),r)},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){Yl(e)?N(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),i=this._nameList[r];return i==null&&this._nameDimIdx!=null&&(i=Xl(this,this._nameDimIdx,r)),i==null&&(i=""),i},t.prototype._getCategory=function(e,r){var i=this._store.get(e,r),n=this._store.getOrdinalMeta(e);return n?n.categories[i]:i},t.prototype.getId=function(e){return fp(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var i=this._store,n=this._dimInfos[e];if(n)return i.get(n.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var i=this._store,n=this._dimInfos[e];if(n)return i.getByRawIndex(n.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var i=this,n=this._store;return P(e)?n.getValues(xn(e,function(a){return i._getStoreDimIndex(a)}),r):n.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,i=0,n=r.length;i<n;i++)if(isNaN(this._store.get(r[i],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,i=this._store.count();r<i;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var i=e&&this._invertedIndicesMap[e],n=i&&i[r];return n==null||isNaN(n)?UT:n},t.prototype.each=function(e,r,i){"use strict";G(e)&&(i=r,r=e,e=[]);var n=i||this,a=xn(ql(e),this._getStoreDimIndex,this);this._store.each(a,n?pe(r,n):r)},t.prototype.filterSelf=function(e,r,i){"use strict";G(e)&&(i=r,r=e,e=[]);var n=i||this,a=xn(ql(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?pe(r,n):r),this},t.prototype.selectRange=function(e){"use strict";var r=this,i={},n=fe(e),a=[];return w(n,function(o){var s=r._getStoreDimIndex(o);i[s]=e[o],a.push(s)}),this._store=this._store.selectRange(i),this},t.prototype.mapArray=function(e,r,i){"use strict";G(e)&&(i=r,r=e,e=[]),i=i||this;var n=[];return this.each(e,function(){n.push(r&&r.apply(this,arguments))},i),n},t.prototype.map=function(e,r,i,n){"use strict";var a=i||n||this,o=xn(ql(e),this._getStoreDimIndex,this),s=Kl(this);return s._store=this._store.map(o,a?pe(r,a):r),s},t.prototype.modify=function(e,r,i,n){var a=this,o=i||n||this,s=xn(ql(e),this._getStoreDimIndex,this);this._store.modify(s,o?pe(r,o):r)},t.prototype.downSample=function(e,r,i,n){var a=Kl(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,i,n),a},t.prototype.minmaxDownSample=function(e,r){var i=Kl(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),i},t.prototype.lttbDownSample=function(e,r){var i=Kl(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),i},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,i=this.getRawDataItem(e);return new Te(i,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new RT(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return fp(e,i)},function(i){return fp(r,i)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},Yl(e)?N(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var i=this._itemVisuals[e],n=i&&i[r];return n??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var i=this._itemVisuals,n=i[e];n||(n=i[e]={});var a=n[r];return a==null&&(a=this.getVisual(r),P(a)?a=a.slice():Yl(a)&&(a=N({},a)),n[r]=a),a},t.prototype.setItemVisual=function(e,r,i){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,Yl(r)?N(n,r):n[r]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Yl(e)?N(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,i){this._itemLayouts[e]=i?N(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var i=this.hostModel&&this.hostModel.seriesIndex;Wx(i,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){w(this._graphicEls,function(i,n){i&&e&&e.call(r,i,n)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:xn(this.dimensions,this._getDimInfo,this),this.hostModel)),bg(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var i=this[e];G(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=i.apply(this,arguments);return r.apply(this,[n].concat(Is(arguments)))})},t.internalField=(function(){zT=function(e){var r=e._invertedIndicesMap;w(r,function(i,n){var a=e._dimInfos[n],o=a.ordinalMeta,s=e._store;if(o){i=r[n]=new vR(o.categories.length);for(var l=0;l<i.length;l++)i[l]=UT;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},Xl=function(e,r,i){return tr(e._getCategory(r,i),null)},fp=function(e,r){var i=e._idList[r];return i==null&&e._idDimIdx!=null&&(i=Xl(e,e._idDimIdx,r)),i==null&&(i=mR+r),i},ql=function(e){return P(e)||(e=e!=null?[e]:[]),e},Kl=function(e){var r=new t(e._schema?e._schema:xn(e.dimensions,e._getDimInfo,e),e.hostModel);return bg(r,e),r},bg=function(e,r){w(gR.concat(r.__wrappedMethods||[]),function(i){r.hasOwnProperty(i)&&(e[i]=r[i])}),e.__wrappedMethods=r.__wrappedMethods,w(yR,function(i){e[i]=Q(r[i])}),e._calculationInfo=N({},r._calculationInfo)},wg=function(e,r){var i=e._nameList,n=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=i[r],l=n[r];if(s==null&&a!=null&&(i[r]=s=Xl(e,a,r)),l==null&&o!=null&&(n[r]=l=Xl(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[r]=l}}})(),t})(),cp=_R;var Pg={};Ft(Pg,{createDimensions:()=>FT,createList:()=>sk,createScale:()=>uk,createSymbol:()=>cr,createTextStyle:()=>ck,dataStack:()=>lk,enableHoverEmphasis:()=>Io,getECData:()=>he,getLayoutRect:()=>hi,mixinAxisModelCommonMethods:()=>fk});function FT(t,e){return pp(t,e).dimensions}function pp(t,e){Jo(t)||(t=es(t)),e=e||{};var r=e.coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],n=V(),a=[],o=xR(t,r,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Sg(o),l=i===t.dimensionsDefine,u=l?xg(t):Wl(i),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=V(f),p=new Nm(o),h=0;h<p.length;h++)p[h]=-1;function d(A){var E=p[A];if(E<0){var D=i[A],O=F(D)?D:{name:D},M=new ls,I=O.name;I!=null&&u.get(I)!=null&&(M.name=M.displayName=I),O.type!=null&&(M.type=O.type),O.displayName!=null&&(M.displayName=O.displayName);var R=a.length;return p[A]=R,M.storeDimIndex=A,a.push(M),M}return a[E]}if(!s)for(var h=0;h<o;h++)d(h);c.each(function(A,E){var D=ze(A).slice();if(D.length===1&&!B(D[0])&&D[0]<0){c.set(E,!1);return}var O=c.set(E,[]);w(D,function(M,I){var R=B(M)?u.get(M):M;R!=null&&R<o&&(O[I]=R,m(d(R),E,I))})});var v=0;w(r,function(A){var E,D,O,M;if(B(A))E=A,M={};else{M=A,E=M.name;var I=M.ordinalMeta;M.ordinalMeta=null,M=N({},M),M.ordinalMeta=I,D=M.dimsDef,O=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var R=c.get(E);if(R!==!1){if(R=ze(R),!R.length)for(var k=0;k<(D&&D.length||1);k++){for(;v<o&&d(v).coordDim!=null;)v++;v<o&&R.push(v++)}w(R,function(W,z){var X=d(W);if(l&&M.type!=null&&(X.type=M.type),m(re(X,M),E,z),X.name==null&&D){var $=D[z];!F($)&&($={name:$}),X.name=X.displayName=$.name,X.defaultTooltip=$.defaultTooltip}O&&re(X.otherDims,O)})}});function m(A,E,D){Ef.get(E)!=null?A.otherDims[E]=D:(A.coordDim=E,A.coordDimIndex=D,n.set(E,!0))}var g=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=g?y||1:0;var x=g||"value";function S(A){A.name==null&&(A.name=A.coordDim)}if(s)w(a,function(A){S(A)}),a.sort(function(A,E){return A.storeDimIndex-E.storeDimIndex});else for(var b=0;b<o;b++){var T=d(b),C=T.coordDim;C==null&&(T.coordDim=SR(x,n,_),T.coordDimIndex=0,(!g||y<=0)&&(T.isExtraCoord=!0),y--),S(T),T.type==null&&(Cc(t,b)===Rt.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return Co(a,function(A){return A.name},function(A,E){E>0&&(A.name=A.name+(E-1))}),new _g({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function xR(t,e,r,i){var n=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,i||0);return w(e,function(a){var o;F(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function SR(t,e,r){if(r||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}var bR=(function(){function t(e){this.coordSysDims=[],this.axisMap=V(),this.categoryAxisMap=V(),this.coordSysName=e}return t})();function VT(t){var e=t.get("coordinateSystem"),r=new bR(e),i=wR[e];if(i)return i(t,r,r.axisMap,r.categoryAxisMap),r}var wR={cartesian2d:function(t,e,r,i){var n=t.getReferringComponents("xAxis",gt).models[0],a=t.getReferringComponents("yAxis",gt).models[0];e.coordSysDims=["x","y"],r.set("x",n),r.set("y",a),us(n)&&(i.set("x",n),e.firstCategoryDimIndex=0),us(a)&&(i.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,i){var n=t.getReferringComponents("singleAxis",gt).models[0];e.coordSysDims=["single"],r.set("single",n),us(n)&&(i.set("single",n),e.firstCategoryDimIndex=0)},polar:function(t,e,r,i){var n=t.getReferringComponents("polar",gt).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),us(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),us(o)&&(i.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,i){var n=t.ecModel,a=n.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();w(a.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];r.set(f,u),us(u)&&(i.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,i){var n=t.getReferringComponents("matrix",gt).models[0];e.coordSysDims=["x","y"];var a=n.getDimensionModel("x"),o=n.getDimensionModel("y");r.set("x",a),r.set("y",o),i.set("x",a),i.set("y",o)}};function us(t){return t.get("type")==="category"}function hp(t,e,r){r=r||{};var i=r.byIndex,n=r.stackedCoordDimension,a,o,s;TR(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,p,h=!0;function d(x){return x.type!=="ordinal"&&x.type!=="time"}if(w(a,function(x,S){B(x)&&(a[S]=x={name:x}),d(x)||(h=!1)}),w(a,function(x,S){l&&!x.isExtraCoord&&(!i&&!u&&x.ordinalMeta&&(u=x),!f&&d(x)&&(!h||x.coordDim!=="x"&&x.coordDim!=="angle")&&(!n||n===x.coordDim)&&(f=x))}),f&&!i&&!u&&(i=!0),f){c="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,m=f.type,g=0;w(a,function(x){x.coordDim===v&&g++});var y={name:c,coordDim:v,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:p,coordDim:p,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(p,m),_.storeDimIndex=s.ensureCalculationDimension(c,m)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:c}}function TR(t){return!up(t.schema)}function Zr(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function dp(t,e){return Zr(t,e)?t.getCalculationInfo("stackResultDimension"):e}function CR(t,e){var r=t.get("coordinateSystem"),i=jo.get(r),n;return e&&e.coordSysDims&&(n=U(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=BT(l)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function ER(t,e,r){var i,n;return r&&w(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(t[i].otherDims.itemName=0),i}function AR(t,e,r){r=r||{};var i=e.getSourceManager(),n,a=!1;t?(a=!0,n=es(t)):(n=i.getSource(),a=n.sourceFormat===ot);var o=VT(e),s=CR(e,o),l=r.useEncodeDefaulter,u=G(l)?l:l?Ce(Cb,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=pp(n,f),p=ER(c.dimensions,r.createInvertedIndices,o),h=a?null:i.getSharedDataStore(c),d=hp(e,{schema:c,store:h}),v=new cp(c,e);v.setCalculationInfo(d);var m=p!=null&&DR(n)?function(g,y,_,x){return x===p?_:this.defaultDimValueGetter(g,y,_,x)}:null;return v.hasItemOption=!1,v.initData(a?n:h,null,m),v}function DR(t){if(t.sourceFormat===ot){var e=MR(t.data||[]);return!P(Ai(e))}}function MR(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var Sn=AR;var HT=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();nn(HT);var Ut=HT;var OR=0,IR=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++OR,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,i=r.data,n=i&&U(i,LR);return new t({categories:n,needCollect:!n,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,i=this._needCollect;if(!B(e)&&!i)return e;if(i&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var n=this._getOrCreateMap();return r=n.get(e),r==null&&(i?(r=this.categories.length,this.categories[r]=e,n.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=V(this.categories))},t})();function LR(t){return F(t)&&t.value!=null?t.value:t+""}var Zl=IR;var qt=0,fs=1,NR={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},WT=fe(NR),cs=2,YT=3;function ps(t,e,r){var i;t=t||{};var n=Ve();if(n){var a=n.createBreakScaleMapper(e,r);a.hasBreaks()&&(w(WT,function(o){a[o]&&(t[o]=pe(a[o],a))}),i=a)}return i==null&&PR(t,r),{brk:i,mapper:t}}function vp(t,e){w(WT,function(r){t[r]=e[r]})}function mp(t,e){t.freeze=ke}function Bi(t){return t.getExtentUnsafe(qt,cs)}function Xa(t,e){return t.getExtentUnsafe(fs,e)||t.getExtentUnsafe(qt,e)}function XT(t){var e=Xa(t,YT);return e[1]-e[0]}function hs(t){var e=t.getExtentUnsafe(qt,YT);return e[1]-e[0]}function PR(t,e){var r=t||{},i=[];return r._extents=i,i[qt]=e?e.slice():yt(),N(r,RR),r}var RR={needTransform:function(){return!1},normalize:function(t){var e=this._extents[fs]||this._extents[qt];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[fs]||this._extents[qt];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=Xa(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[qt].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){GT(this._extents,qt,t,e)},setExtent2:function(t,e,r){var i=this._extents;i[t]||(i[t]=i[qt].slice()),GT(i,t,e,r)},freeze:function(){}};function GT(t,e,r,i){Di(r,i)&&(t[e][0]=r,t[e][1]=i)}function gp(t){return ds(t)||vi(t)}function ds(t){return t.type==="interval"}function vs(t){return t.type==="time"}function vi(t){return t.type==="log"}function ht(t){return t.type==="ordinal"}function qT(t){var e=bo(t),r=en(10,e),i=Ht(t/r);return i?i===2?i=3:i===3?i=5:i*=2:i=1,ve(i*r,-e)}function jr(t){return er(t)+2}function jl(t,e){return Qi(t)/Qi(e)}function yp(t,e,r){var i=r&&r.lookup;if(i){for(var n=0;n<i.from.length;n++)if(t===i.from[n])return i.to[n]}return en(e,t)}function _p(t,e,r){var i=t.slice();if(i[0]===i[1]){var n=r&&r.ctnShp;if(i[0]!==0){var a=Le(i[0]);e[1]||(i[1]+=a/2),i[0]-=a/2}else n&&(i[0]=-1),i[1]=1}return(!Wr(i[0])||!Wr(i[1]))&&(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function KT(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function $l(t,e){return t=t||e,Ht(ce(t,1))}function xp(t,e,r){var i=Bi(t),n=i[0],a=t.count(),o=Math.max((e||0)+1,1);n!==0&&o>1&&a/o>2&&(n=Math.round(Math.ceil(n/o)*o)),n!==i[0]&&l(i[0],!0,!0);for(var s=n;s<=i[1];s+=o)l(s,!1,s===i[0]||s===i[1]);s-o!==i[1]&&l(i[1],!0,!0);function l(u,f,c){r({value:u,offInterval:f},c)}}var ZT=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i.type="ordinal",i.parse=e.parse,vp(i,e.decoratedMethods);var n=r.ordinalMeta;n||(n=new Zl({})),P(n)&&(n=new Zl({categories:U(n,function(o){return F(o)?o.value:o})})),i._ordinalMeta=n;var a=ps(null,null,r.extent||[0,n.categories.length-1]);return i._mapper=a.mapper,mp(i,a.mapper),i}return e.parse=function(r){return r==null?r=NaN:B(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=Ht(r),r},e.prototype.getTicks=function(){var r=[];return xp(this,0,function(i){r.push(i)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=r.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Ue(s,i.length);o<l;++o){var u=n[o]=i[o];a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;n[o]=f,a[f]=o}},e.prototype._getTickNumber=function(r){var i=this._ticksByOrdinalNumber;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getRawOrdinalNumber=function(r){var i=this._ordinalNumbersByTick;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var i=this.getRawOrdinalNumber(r.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},e.prototype.count=function(){var r=Bi(this._mapper);return r[1]-r[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(Ht(this._mapper.scale(r)))},transformIn:function(r,i){return this._mapper.transformIn(this._getTickNumber(r),i)},transformOut:function(r,i){return this.getRawOrdinalNumber(this._mapper.transformOut(r,i))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,i){return this._mapper.getExtentUnsafe(r,i)},setExtent:function(r,i){return this._mapper.setExtent(r,i)},setExtent2:function(r,i,n){return this._mapper.setExtent2(r,i,n)}},e})(Ut);Ut.registerClass(ZT);var jT=ZT;function ms(t,e,r,i){for(var n=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent(),s=1;s<n.length;s++){var l=n[s],u=n[s-1];if(!(u.break||l.break)){for(var f=0,c=[],p=l.value-u.value,h=p/e,d=jr(h);f<e-1;){var v=ve(u.value+(f+1)*h,d);v>o[0]&&v<o[1]&&c.push(v),f++}var m=Ve();m&&m.pruneTicksByBreak("auto",c,r,function(g){return g},i,o),a.push(c)}}return a}var $T=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i.type="interval",i.parse=e.parse,r=r||{};var n=nc(i,r),a=ps(i,n,null);return i.brk=a.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return Q(this._cfg)},e.prototype.setConfig=function(r){var i=Bi(this);this._cfg=r=Q(r),r.niceExtent==null&&(r.niceExtent=i.slice()),r.intervalPrecision==null&&(r.intervalPrecision=jr(r.interval))},e.prototype.getTicks=function(r){r=r||{};var i=this._cfg,n=i.interval,a=Bi(this),o=i.niceExtent,s=i.intervalPrecision,l=Ve(),u=this.brk,f=l&&u,c=[];if(!n)return c;if(r.breakTicks==="only_break"&&f)return l.addBreaksToTicks(c,u.breaks,a),c;var p=3e3;a[0]<o[0]&&c.push({value:r.expandToNicedExtent?ve(o[0]-n,s):a[0]});for(var h=function(_,x){return Ht((x-_)/n)},d=i.intervalCount,v=o[0],m=0;;m++){if(d==null){if(v>o[1]||!isFinite(v)||!isFinite(o[1]))break}else{if(m>d)break;v=Ue(v,o[1]),m===d&&(v=o[1])}if(c.push({value:v}),v=ve(v+n,s),u){var g=u.calcNiceTickMultiple(v,h);g>=0&&(v=ve(v+g*n,s))}if(c.length>0&&v===c[c.length-1].value)break;if(c.length>p)return[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:r.expandToNicedExtent?ve(y+n,s):a[1]}),f&&l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(_){return _.value},i.interval,a),f&&r.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,a),c},e.prototype.getMinorTicks=function(r){return ms(this,r,Da(this),this._cfg.interval)},e.prototype.getLabel=function(r,i){if(r==null)return"";var n=i&&i.precision;n==null?n=er(r.value)||0:n==="auto"&&(n=this._cfg.intervalPrecision);var a=ve(r.value,n,!0);return Al(a)},e.type="interval",e})(Ut);Ut.registerClass($T);var qa=$T;var kR=function(t,e,r,i){for(;r<i;){var n=r+i>>>1;t[n][1]<e?r=n+1:i=n}return r},JT=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i.type="time",i.parse=e.parse,i._locale=r.locale,i._useUTC=r.useUTC,i._interval=0;var n=nc(i,r),a=ps(i,n,null);return i.brk=a.brk,i}return e.prototype.getLabel=function(r){return Li(r.value,am[pb(Yo(this._minLevelUnit))]||am.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,i,n){return hb(r,i,n,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var i=this._interval,n=Bi(this),a=Ve(),o=this.brk,s=a&&o,l=[];if(!i)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return Ve().addBreaksToTicks(l,o.breaks,n),l;l=GR(this._minLevelUnit,this._approxInterval,u,n,hs(this),o);var f=Xt.length-1,c=0;return w(l,function(p){p.time&&(f=Math.min(f,ne(Xt,p.time.upperTimeUnit)),c=Math.max(c,p.time.level))}),s&&Ve().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(p){return p.value},this._approxInterval,n),s&&r.breakTicks!=="none"&&Ve().addBreaksToTicks(l,o.breaks,n,function(p){for(var h=Math.max(ne(Xt,Oa(p.vmin,u)),ne(Xt,Oa(p.vmax,u))),d=0,v=0;v<Xt.length;v++)if(!e1(Xt[v],p.vmin,p.vmax,u)){d=v;break}var m=Math.min(d,f),g=Math.max(m,h);return{level:c,lowerTimeUnit:Xt[g],upperTimeUnit:Xt[m]}}),l},e.prototype.getMinorTicks=function(r){return ms(this,r,Da(this),this._interval)},e.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},e.parse=function(r){return le(r)?Math.round(r):+Lt(r)},e.type="time",e})(Ut),Sp=[["second",sc],["minute",lc],["hour",Wo],["quarter-day",Wo*6],["half-day",Wo*12],["day",lr*1.2],["half-week",lr*3.5],["week",lr*7],["month",lr*31],["quarter",lr*95],["half-year",nm/2],["year",nm]];function e1(t,e,r,i){return Xo(new Date(e),t,i).getTime()===Xo(new Date(r),t,i).getTime()}function BR(t,e){return t/=lr,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function UR(t){var e=30*lr;return t/=e,t>6?6:t>3?3:t>2?2:1}function zR(t){return t/=Wo,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function QT(t,e){return t/=e?lc:sc,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function FR(t){return ce(Ei(t,!0),1)}function VR(t,e,r){var i=Math.max(0,ne(Xt,e)-1);return Xo(new Date(t),Xt[i],r).getTime()}function HR(t,e){var r=new Date(0);r[t](1);var i=r.getTime();r[t](1+e);var n=r.getTime()-i;return function(a,o){return Math.max(0,Math.round((o-a)/n))}}function GR(t,e,r,i,n,a){var o=3e3,s=ub,l=0;function u(k,W,z,X,$,K,te){for(var ie=HR($,k),q=W,ge=new Date(q);q<z&&q<=i[1]&&(te.push({value:q}),!(l++>o));)if(ge[$](ge[X]()+k),q=ge.getTime(),a){var Se=a.calcNiceTickMultiple(q,ie);Se>0&&(ge[$](ge[X]()+Se*k),q=ge.getTime())}te.push({value:q,notAdd:q>i[1]})}function f(k,W,z){var X=[],$=!W.length;if(!e1(Yo(k),i[0],i[1],r)){$&&(W=[{value:VR(i[0],k,r)},{value:i[1]}]);for(var K=0;K<W.length-1;K++){var te=W[K].value,ie=W[K+1].value;if(te!==ie){var q=void 0,ge=void 0,Se=void 0,Dt=!1;switch(k){case"year":q=Math.max(1,Math.round(e/lr/365)),ge=om(r),Se=db(r);break;case"half-year":case"quarter":case"month":q=UR(e),ge=uc(r),Se=sm(r);break;case"week":case"half-week":case"day":q=BR(e,31),ge=fc(r),Se=lm(r),Dt=!0;break;case"half-day":case"quarter-day":case"hour":q=zR(e),ge=cc(r),Se=um(r);break;case"minute":q=QT(e,!0),ge=pc(r),Se=fm(r);break;case"second":q=QT(e,!1),ge=hc(r),Se=cm(r);break;case"millisecond":q=FR(e),ge=dc(r),Se=pm(r);break}ie>=i[0]&&te<=i[1]&&u(q,te,ie,ge,Se,Dt,X),k==="year"&&z.length>1&&K===0&&z.unshift({value:z[0].value-q})}}for(var K=0;K<X.length;K++)z.push(X[K])}}for(var c=[],p=[],h=0,d=0,v=0;v<s.length;++v){var m=Yo(s[v]);if(cb(s[v])){f(s[v],c[c.length-1]||[],p);var g=s[v+1]?Yo(s[v+1]):null;if(m!==g){if(p.length){d=h,p.sort(function(k,W){return k.value-W.value});for(var y=[],_=0;_<p.length;++_){var x=p[_].value;(_===0||p[_-1].value!==x)&&(y.push(p[_]),x>=i[0]&&x<=i[1]&&h++)}var S=n/e;if(h>S*1.5&&d>S/1.5||(c.push(y),h>S||t===s[v]))break}p=[]}}}for(var b=De(U(c,function(k){return De(k,function(W){return W.value>=i[0]&&W.value<=i[1]&&!W.notAdd})}),function(k){return k.length>0}),T=b.length-1,C=[],v=0;v<b.length;++v)for(var A=b[v],E=0;E<A.length;++E){var D=Oa(A[E].value,r);C.push({value:A[E].value,time:{level:T-v,upperTimeUnit:D,lowerTimeUnit:D}})}Co(C,$0,null),C.sort(function(k,W){return k.value-W.value});var O=C[0],M=C[C.length-1],I=Oa(i[0],r),R=Oa(i[1],r);return(!O||O.value>i[0])&&C.unshift({value:i[0],time:{level:0,upperTimeUnit:I,lowerTimeUnit:I},notNice:!0}),(!M||M.value<i[1])&&C.push({value:i[1],time:{level:0,upperTimeUnit:R,lowerTimeUnit:R},notNice:!0}),C}var t1=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=lr,r[1]+=lr),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-lr}t.setExtent(r[0],r[1]);var n=$l(e.splitNumber,10),a=hs(t)/n,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var l=Sp.length,u=Math.min(kR(Sp,a,0,l),l-1),f=Sp[u][1],c=Sp[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};Ut.registerClass(JT);var r1=JT;var bp=0,wp=1,WR=2,o1=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i.type="log",i.parse=qa.parse,i.base=r.logBase||10;var n=[],a=[],o=i._lookup={from:n,to:a};n[bp]=n[wp]=a[bp]=a[wp]=NaN,vp(i,e.mapperMethods);var s=Ve(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},WR,u),i.powStub=new qa({breakParsed:u.original}),i.intervalStub=new qa({breakParsed:u.transformed}),mp(i,i.intervalStub),i}return e.prototype.getTicks=function(r){var i=this.base,n=this.powStub,a=Ve(),o=this.intervalStub,s=o.getExtent(),l=n.getExtent(),u={lookup:{from:s,to:l}};return U(o.getTicks(r||{}),function(f){var c=f.value,p=yp(c,i,u),h;if(a){var d=a.getTicksBreakOutwardTransform(this,f,Da(n),this._lookup);d&&(h=d.vBreak,p=d.tickVal)}return{value:p,break:h}},this)},e.prototype.getMinorTicks=function(r){return ms(this,r,Da(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,i){return this.intervalStub.getLabel(r,i)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(jl(r,this.base))},scale:function(r){return yp(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,i){return r=jl(r,this.base),i&&i.depth===cs?r:this.intervalStub.transformIn(r,i)},transformOut:function(r,i){var n=i?i.depth:null;return i1.depth=n,n1.lookup=this._lookup,yp(n===cs?r:this.intervalStub.transformOut(r,i1),this.base,n1)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,i){this.setExtent2(qt,r,i)},setExtent2:function(r,i,n){if(!(!Di(i,n)||i<=0||n<=0)){var a=a1,o=a1;if(r===qt){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[bp]=i,a[wp]=n);var l=this.base;this.intervalStub.setExtent2(r,o[bp]=jl(i,l),o[wp]=jl(n,l))}},getFilter:function(){return{g:0}},sanitize:function(r,i){return Di(i[0],i[1])&&et(r)&&r<=0&&(r=i[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,i){return i===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,i)}},e})(Ut);Ut.registerClass(o1);var i1={},n1={},a1=[],s1=o1;var Tp={value:1,category:1,time:1,log:1};var l1=ae();function Ep(t){var e=t.get("type");return(e==null||!Me(Tp,e)&&!Ut.getClass(e))&&(e="value"),e}function Ap(t,e,r){var i=Ve(),n;switch(i&&(n=Tg(t,e,r)),e){case"category":return new jT({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:yt()});case"time":return new r1({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:n});case"log":return new s1({logBase:t.get("logBase"),breakOption:n});case"value":return new qa({breakOption:n});default:return new(Ut.getClass(e)||qa)({})}}function u1(t,e,r){var i=r?Xa(t,null):t.getExtentUnsafe(qt,null),n=i[0],a=i[1];return Di(n,a)?n===e||a===e?XR:n<e&&a>e?YR:Cp:Cp}var YR=1,XR=2,Cp=3;function f1(t){l1(t).noOnMyZero=!0}function c1(t){return l1(t).noOnMyZero}function Ql(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=fb(e);return function(n,a){return t.scale.getFormattedLabel(n,a,r)}}else{if(B(e))return function(n){var a=t.scale.getLabel(n),o=e.replace("{value}",a??"");return o};if(G(e)){if(t.type==="category")return function(n,a){return e(gs(t,n),n.value-t.scale.getExtent()[0],null)};var i=Ve();return function(n,a){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,n.break)),e(gs(t,n),a,o)}}else return function(n){return t.scale.getLabel(n)}}}function gs(t,e){var r=t.scale;return ht(r)?r.getLabel(e):e.value}function Dp(t){var e=t.get("interval");return e??"auto"}function p1(t){return t.type==="category"&&Dp(t.getLabelModel())===0}function h1(t,e){var r={};return w(t.mapDimensionsAll(e),function(i){r[dp(t,i)]=!0}),fe(r)}function bn(t){return t==="middle"||t==="center"}function Ka(t){return t.getShallow("show")}function Tg(t,e,r){var i=t.get("breaks",!0);if(i!=null){if(!Ve())return;if(!r||!qR(e)){if(0)var n;return}return i}}function qR(t){return t!=="category"}function Mp(t,e,r,i,n,a){var o=vi(t),s=o?t.intervalStub:t;if(s.setExtent(i[0],i[1]),o){var l=t.powStub,u={depth:cs},f=t.transformOut(i[0],u),c=t.transformOut(i[1],u),p=KT(r,i);e[0]&&!p[0]&&(f=n[0]),e[1]&&!p[1]&&(c=n[1]),l.setExtent(f,c)}s.setConfig(a)}function Ui(t,e){return ht(t)?t.getRawOrdinalNumber(e.value):e.value}function Op(t,e){return ht(t)&&!!e.get("boundaryGap")}var Ip=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})();var KR=mf(),Lp="|&",ys=ae(),Np=-2,d1=-1,ZR=ae();function v1(t,e){var r=t.model,i=ys(Va(r.ecModel)).keyed,n=i&&i.get(e);return n&&n.get(r.uid)}function m1(t,e){return _1(v1(t,e))}function g1(t,e){var r=[];return y1(t.model.ecModel,function(i){for(var n=0;n<e.length;n++)e[n]&&i.serByIdx[e[n].seriesIndex]&&r.push(_1(i))}),r}function y1(t,e){var r=ys(Va(t)).keyed;r&&r.each(function(i,n){i.each(function(a,o){e(a,n,o)})})}function _1(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function x1(t,e){var r=t.model.ecModel,i=ys(Va(r)).axSer;i&&Pp(r,i.get(t.model.uid),e)}function Dg(t,e,r){var i=v1(t,e);i&&Pp(t.model.ecModel,i.sers,r)}function Pp(t,e,r){if(e)for(var i=0;i<e.length;i++){var n=e[i];t.isSeriesFiltered(n)||r(n)}}function S1(t,e,r){var i=ys(Va(t)).keyed,n=i&&i.get(e);n&&n.each(function(a){r(a.axis)})}function Mg(t,e){var r=t.model,i=ys(Va(r.ecModel)).keys;i&&w(i.get(r.uid),function(n){if(0)var a;e(n)})}function jR(t){var e=ZR(Xw(t)),r=e.keyed||(e.keyed=V());y1(t,function(i,n,a){var o=r.get(n)||r.set(n,V()),s=o.get(a)||o.set(a,{});i.metrics.liPosMinGap&&w1.liPosMinGap(t,i,s)})}function b1(t,e){w1[t]=e}var w1={};function Og(t,e,r){if(t){var i=e.ecModel,n=ys(Va(i)),a=t.model.uid;if(0)var o,s;var l=n.axSer||(n.axSer=V()),u=l.get(a)||l.set(a,[]);if(0)var f;u.push(e);var c=e.subType,p=e.getBaseAxis()===t,h=Ag.get(Eg(c,p,r))||Ag.get(Eg(c,p,null));if(h){var d=n.keyed||(n.keyed=V()),v=n.keys||(n.keys=V()),m=h.key,g=d.get(m)||d.set(m,V()),y=g.get(a);y||(y=g.set(a,{axis:t,sers:[],serByIdx:[]}),y.metrics=h.getMetrics(t),(v.get(a)||v.set(a,[])).push(m)),y.sers.push(e),y.serByIdx[e.seriesIndex]=e}}}function Eg(t,e,r){return t+Lp+Y(e,!0)+Lp+(r||"")}function T1(t,e){var r=Eg(e.seriesType,e.baseAxis,e.coordSysType);Ag.set(r,e),KR(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:jR})})}var Ag=V();var $R=ae(),A1=1;var QR=3,D1=(function(){function t(e,r,i,n,a){var o=ht(e),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var f=i.slice();(ds(e)||vi(e)||vs(e))&&(Gd(f,Jl(e,r.get("dataMin",!0))),Wd(f,Jl(e,r.get("dataMax",!0)))),Z0(f)||(f[0]=f[1]=NaN);var c=[],p=[!1,!1],h=r.get("min",!0);h==="dataMin"?(c[0]=f[0],p[0]=!0):(c[0]=Jl(e,G(h)?h({min:f[0],max:f[1]}):h),p[0]=c[0]!=null);var d=r.get("max",!0);d==="dataMax"?(c[1]=f[1],p[1]=!0):(c[1]=Jl(e,G(d)?d({min:f[0],max:f[1]}):d),p[1]=c[1]!=null);var v=JR(e,r),m=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-v[0]*m),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+v[1]*m),!Wr(c[0])&&(c[0]=NaN),!Wr(c[1])&&(c[1]=NaN);var g=l||_i(c[0])||_i(c[1])||o&&!s,y=ds(e),_=y&&r.needIncludeZero&&r.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!p[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!p[1]&&(c[1]=0));var x=!1;c[0]>c[1]&&(c.reverse(),x=!0);var S=Jl(e,r.get("startValue",!0)),b=S!=null;!et(S)&&n&&(S=e.getDefaultStartValue?e.getDefaultStartValue():0),et(S)&&(b||!y||_)&&(S<c[0]&&!p[0]?(c[0]=S,p[0]=!0):S>c[1]&&!p[1]&&(c[1]=S,p[1]=!0));var T=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:p,zoomFixMM:[!1,!1],startValue:S,isBlank:g,incl0:_,tggAxInv:x,ctnShp:a};C1(T,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,i=e.noZoomEffMM,n=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:n,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:i.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=n[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=n[1]=!0),C1(e,s),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},t})();function C1(t,e){var r=t.scale,i=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],i),e[1]=r.sanitize(e[1],i),j0(e))}function Jl(t,e){return e==null?null:_i(e)?NaN:t.parse(e)}function JR(t,e){var r;if(ht(t))r=[0,0];else{var i=e.get("boundaryGap");typeof i=="boolean"&&(i=null),r=P(i)?i:[i,i]}return[E1(r[0]),E1(r[1])]}function E1(t){return Vr(typeof t=="boolean"?0:t,1)||0}function M1(t){var e=$R(t.scale);return e.extent||(e.extent=yt()),e}function O1(t,e){M1(t).dimIdxInCoord=e.get(t.dim)}function I1(t,e){var r=t.scale,i=t.model,n=t.dim;r.rawExtentInfo||ek(r,t,n,i,e)}function ek(t,e,r,i,n){var a=M1(e),o=a.extent,s=!1;x1(e,function(f){if(f.boxCoordinateSystem){var c=_c(f).coord,p=a.dimIdxInCoord;if(p>=0){if(P(c)){var h=c[p];h!=null&&!P(h)&&nl(o,t.parse(h))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var v=t.getFilter?t.getFilter():null;w(h1(d,r),function(m){K0(o,d.getApproximateExtent(m,v))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=rk(t,e,i),u=new D1(t,i,o,s,l);L1(t,u,n),a.extent=null}function tk(t,e){var r=t.scale;L1(r,new D1(r,t.model,e,!1,!1),QR)}function L1(t,e,r){t.rawExtentInfo=e,e.from=r}function N1(t,e){Ig.set(t,e)}var Ig=V();function Rp(t,e,r,i,n){t.rawExtentInfo||tk({scale:t,model:e},n||yt());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;return t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),i&&a.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(i.inverse=!i.inverse),a}function rk(t,e,r){var i=Op(t,r),n=r.get("containShape",!0);if(n==null&&!i&&(n=!0),!n)return!1;var a=!1;return Mg(e,function(o){a=!!Ig.get(o)||a}),a}function P1(t,e,r,i){if(r.ctnShp){var n;if(Mg(t,function(s){var l=Ig.get(s);if(l){var u=l(t,i);u&&(n=n||[0,0],Gd(n,u[0]),Wd(n,u[1]),f1(t))}}),!!n){var a=e.getExtent();if(ht(e))t.onBand||e.setExtent2(fs,Ue(a[0],a[0]+n[0]),ce(a[1],a[1]+n[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=Ue(o[0],e.transformOut(e.transformIn(o[0],null)+n[0],null))),r.zoomFixMM[1]||(o[1]=ce(o[1],e.transformOut(e.transformIn(o[1],null)+n[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(fs,o[0],o[1])}}}}function R1(t,e){var r=vi(t),i=r?t.intervalStub:t,n=e.fixMinMax||[],a=r?t.getExtent():null,o=i.getExtent(),s=_p(o,n,e.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=r?nk(i,e):ik(i,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=jr(c)),n[0]||(s[0]=ve(Sr(s[0]/f)*f,u)),n[1]||(s[1]=ve(Ji(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),Mp(t,n,o,s,a,l)}function ik(t,e){var r=$l(e.splitNumber,5),i=hs(t),n=e.minInterval,a=e.maxInterval,o=Ei(i/r,!0);n!=null&&o<n&&(o=n),a!=null&&o>a&&(o=a);var s=jr(o),l=t.getExtent(),u=[ve(Ji(l[0]/o)*o,s),ve(Sr(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function nk(t,e){var r=$l(e.splitNumber,10),i=t.getExtent(),n=hs(t),a=ce(So(n),1),o=r/n*a;o<=.5&&(a*=10);var s=jr(a),l=[ve(Ji(i[0]/a)*a,s),ve(Sr(i[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function Lg(t){var e=t.scale,r=t.model,i=r.axis,n=r.ecModel;Ng(e,r,i,n,null)}function Ng(t,e,r,i,n){var a=Rp(t,e,i,r,n),o=ds(t)||vs(t);ak(t,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),r&&i&&P1(r,t,a,i)}function ak(t,e){ok[t.type](t,e)}var ok={interval:R1,log:R1,time:t1,ordinal:ke};function sk(t){return Sn(null,t)}var lk={isDimensionStacked:Zr,enableDataStack:hp,getStackedDimension:dp};function uk(t,e){var r=e;e instanceof Te||(r=new Te(e));var i=Ep(r),n=Ap(r,i,!1);return t[1]<t[0]&&(t=t.slice().reverse()),Ng(n,r,null,null,t),n}function fk(t){lt(t,Ip)}function ck(t,e){return e=e||{},Xr(t,null,null,e.state!=="normal")}var k1=[],pk={registerPreprocessor:op,registerProcessor:sp,registerPostInit:fg,registerPostUpdate:cg,registerUpdateLifecycle:Hl,registerAction:_n,registerCoordinateSystem:pg,registerLayout:hg,registerVisual:ki,registerTransform:mg,registerLoading:lp,registerMap:vg,registerImpl:Gw,PRIORITY:ag,ComponentModel:xe,ComponentView:st,SeriesModel:kt,ChartView:xt,registerComponentModel:function(t){xe.registerClass(t)},registerComponentView:function(t){st.registerClass(t)},registerSeriesModel:function(t){kt.registerClass(t)},registerChartView:function(t){xt.registerClass(t)},registerCustomSeries:function(t,e){Wc(t,e)},registerSubTypeDefaulter:function(t,e){xe.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Nd(t,e)}};function zt(t){if(P(t)){w(t,function(e){zt(e)});return}ne(k1,t)>=0||(k1.push(t),G(t)&&(t={install:t}),t.install(pk))}var hk=1e-8;function B1(t,e){return Math.abs(t-e)<hk}function Rg(t,e,r){var i=0,n=t[0];if(!n)return!1;for(var a=1;a<t.length;a++){var o=t[a];i+=Er(n[0],n[1],o[0],o[1],e,r),n=o}var s=t[0];return(!B1(n[0],s[0])||!B1(n[1],s[1]))&&(i+=Er(n[0],n[1],s[0],s[1],e,r)),i!==0}var vk=[];function kg(t,e){for(var r=0;r<t.length;r++)qe(t[r],t[r],e)}function U1(t,e,r,i){for(var n=0;n<t.length;n++){var a=t[n];i&&(a=i.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(mr(e,e,a),gr(r,r,a))}}function mk(t){for(var e=0,r=0,i=0,n=t.length,a=t[n-1][0],o=t[n-1][1],s=0;s<n;s++){var l=t[s][0],u=t[s][1],f=a*u-l*o;e+=f,r+=(a+l)*f,i+=(o+u)*f,a=l,o=u}return e?[r/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}var z1=(function(){function t(e){this.name=e}return t.prototype.setCenter=function(e){this._center=e},t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},t})();var Bg=(function(){function t(e,r){this.type="polygon",this.exterior=e,this.interiors=r}return t})();var Ug=(function(){function t(e){this.type="linestring",this.points=e}return t})();var F1=(function(t){L(e,t);function e(r,i,n){var a=t.call(this,r)||this;return a.type="geoJSON",a.geometries=i,a._center=n&&[n[0],n[1]],a}return e.prototype.calcCenter=function(){for(var r=this.geometries,i,n=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,l=s&&s.length;l>n&&(i=o,n=l)}if(i)return mk(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(r){var i=this._rect;if(i&&!r)return i;var n=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return w(o,function(s){s.type==="polygon"?U1(s.exterior,n,a,r):w(s.points,function(l){U1(l,n,a,r)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])||(n[0]=n[1]=a[0]=a[1]=0),i=new j(n[0],n[1],a[0]-n[0],a[1]-n[1]),r||(this._rect=i),i},e.prototype.contain=function(r){var i=this.getBoundingRect(),n=this.geometries;if(!i.contain(r[0],r[1]))return!1;e:for(var a=0,o=n.length;a<o;a++){var s=n[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Rg(l,r[0],r[1])){for(var f=0;f<(u?u.length:0);f++)if(Rg(u[f],r[0],r[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(r,i,n,a){var o=this.getBoundingRect(),s=o.width/o.height;n?a||(a=n/s):n=s*a;for(var l=new j(r,i,n,a),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var p=f[c];p.type==="polygon"?(kg(p.exterior,u),w(p.interiors,function(h){kg(h,u)})):w(p.points,function(h){kg(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(r){r==null&&(r=this.name);var i=new e(r,this.geometries,this._center);return i._rect=this._rect,i.transformTo=null,i},e})(z1);var Sq=(function(t){L(e,t);function e(r,i){var n=t.call(this,r)||this;return n.type="geoSVG",n._elOnlyForCalculate=i,n}return e.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,i=r.getBoundingRect(),n=[i.x+i.width/2,i.y+i.height/2],a=yr(vk),o=r;o&&!o.isGeoSVGGraphicRoot;)Ur(a,o.getLocalTransform(),a),o=o.parent;return Qt(a,a),qe(n,n,a),n},e})(z1);function gk(t){if(!t.UTF8Encoding)return t;var e=t,r=e.UTF8Scale;r==null&&(r=1024);var i=e.features;return w(i,function(n){var a=n.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=V1(s,o,r);break;case"Polygon":zg(s,o,r);break;case"MultiLineString":zg(s,o,r);break;case"MultiPolygon":w(s,function(l,u){return zg(l,o[u],r)})}}),e.UTF8Encoding=!1,e}function zg(t,e,r){for(var i=0;i<t.length;i++)t[i]=V1(t[i],e[i],r)}function V1(t,e,r){for(var i=[],n=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=a,n=s,a=l,i.push([s/r,l/r])}return i}function kp(t,e){return t=gk(t),U(De(t.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var i=r.properties,n=r.geometry,a=[];switch(n.type){case"Polygon":var o=n.coordinates;a.push(new Bg(o[0],o.slice(1)));break;case"MultiPolygon":w(n.coordinates,function(l){l[0]&&a.push(new Bg(l[0],l.slice(1)))});break;case"LineString":a.push(new Ug([n.coordinates]));break;case"MultiLineString":a.push(new Ug(n.coordinates))}var s=new F1(i[e||"name"],a,i.cp);return s.properties=i,s})}var Fg={};Ft(Fg,{MAX_SAFE_INTEGER:()=>Qs,asc:()=>tn,getPercentWithPrecision:()=>L0,getPixelPrecision:()=>O0,getPrecision:()=>er,getPrecisionSafe:()=>Rd,isNumeric:()=>el,isRadianAroundZero:()=>ra,linearMap:()=>$s,nice:()=>Ei,numericToNumber:()=>br,parseDate:()=>Lt,parsePercent:()=>Ze,quantile:()=>P0,quantity:()=>So,quantityExponent:()=>bo,reformIntervals:()=>R0,remRadian:()=>Js,round:()=>M0});var Vg={};Ft(Vg,{format:()=>Li,parse:()=>Lt,roundTime:()=>Xo});var Hg={};Ft(Hg,{Arc:()=>ya,BezierCurve:()=>wl,BoundingRect:()=>j,Circle:()=>ma,CompoundPath:()=>Uf,Ellipse:()=>gl,Group:()=>we,Image:()=>Wt,IncrementalDisplayable:()=>Yf,Line:()=>or,LinearGradient:()=>Po,Polygon:()=>Sl,Polyline:()=>bl,RadialGradient:()=>Ff,Rect:()=>_e,Ring:()=>xl,Sector:()=>ci,Text:()=>Oe,clipPointsByRect:()=>qv,clipRectByRect:()=>Kv,createIcon:()=>Ta,extendPath:()=>Hv,extendShape:()=>Vv,getShapeClass:()=>Gv,getTransform:()=>Yv,initProps:()=>Tt,makeImage:()=>El,makePath:()=>Uo,mergePath:()=>Wv,registerShape:()=>sr,resizePath:()=>Kf,updateProps:()=>He});var Gg={};Ft(Gg,{addCommas:()=>Al,capitalFirst:()=>gb,encodeHTML:()=>nt,formatTime:()=>mb,formatTpl:()=>Ko,getTextRect:()=>hm,getTooltipMarker:()=>mc,normalizeCssArray:()=>pi,toCamelCase:()=>qo,truncateText:()=>jd});var Wg={};Ft(Wg,{bind:()=>pe,clone:()=>Q,curry:()=>Ce,defaults:()=>re,each:()=>w,extend:()=>N,filter:()=>De,indexOf:()=>ne,inherits:()=>Os,isArray:()=>P,isFunction:()=>G,isObject:()=>F,isString:()=>B,map:()=>U,merge:()=>ue,reduce:()=>St});var yk=ae(),eu=ae(),Kt={estimate:1,determine:2};function _s(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function H1(t,e){var r=t.getLabelModel().get("customValues");if(r){var i=t.scale;return{labels:U(W1(r,i),function(n,a){return{formattedLabel:Ql(t)(n,a),rawLabel:i.getLabel(n),tick:n}})}}return t.type==="category"?_k(t,e):Sk(t)}function G1(t,e,r){var i=t.scale,n=t.getTickModel().get("customValues");return n?{ticks:W1(n,i)}:t.type==="category"?xk(t,e):{ticks:i.getTicks(r)}}function W1(t,e){var r=e.getExtent(),i=[];return w(t,function(n){n=e.parse(n),n>=r[0]&&n<=r[1]&&i.push(n)}),Co(i,Q0,null),tn(i),U(i,function(n){return{value:n}})}function _k(t,e){var r=t.getLabelModel(),i=Y1(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:i}function Y1(t,e,r){var i=wk(t),n=Dp(e),a=r.kind===Kt.estimate;if(!a){var o=q1(i,n);if(o)return o}var s,l;G(n)?s=Bp(t,n,!1):(l=n==="auto"?Tk(t,r):n,s=Bp(t,l,!1));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return Yg(i,n,u),!0}):Yg(i,n,u),u}function xk(t,e){var r=bk(t),i=Dp(e),n=q1(r,i);if(n)return n;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),G(i))a=Bp(t,i,!0);else if(i==="auto"){var s=Y1(t,t.getLabelModel(),_s(Kt.determine));o=s.labelCategoryInterval,a=U(s.labels,function(l){return l.tick})}else o=i,a=Bp(t,o,!0);return Yg(r,i,{ticks:a,tickCategoryInterval:o})}function Sk(t){var e=t.scale.getTicks(),r=Ql(t);return{labels:U(e,function(i,n){return{formattedLabel:r(i,n),rawLabel:t.scale.getLabel(i),tick:i}})}}var bk=X1("axisTick"),wk=X1("axisLabel");function X1(t){return function(r){return eu(r)[t]||(eu(r)[t]={list:[]})}}function q1(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function Yg(t,e,r){return t.list.push({key:e,value:r}),r}function Tk(t,e){if(e.kind===Kt.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return eu(t).autoInterval=r,!0}),r}var i=eu(t).autoInterval;return i??(eu(t).autoInterval=t.calculateCategoryInterval(e))}function K1(t,e){var r=e.kind,i=Ek(t),n=Ql(t),a=(i.axisRotate-i.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],p=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(p*Math.cos(a)),d=Math.abs(p*Math.sin(a)),v=0,m=0;c<=s[1];c+=u){var g=0,y=0,_=of(n({value:c}),i.font,"center","top");g=_.width*1.3,y=_.height*1.3,v=Math.max(v,g,7),m=Math.max(m,y,7)}var x=v/h,S=m/d;isNaN(x)&&(x=1/0),isNaN(S)&&(S=1/0);var b=Math.max(0,Math.floor(Math.min(x,S)));if(r===Kt.estimate)return e.out.noPxChangeTryDetermine.push(pe(Ck,null,t,b,l)),b;var T=Z1(t,b,l);return T??b}function Ck(t,e,r){return Z1(t,e,r)==null}function Z1(t,e,r){var i=yk(t.model),n=t.getExtent(),a=i.lastAutoInterval,o=i.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&i.axisExtent0===n[0]&&i.axisExtent1===n[1])return a;i.lastTickCount=r,i.lastAutoInterval=e,i.axisExtent0=n[0],i.axisExtent1=n[1]}function Ek(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Bp(t,e,r){var i=Ql(t),n=t.scale,a=[],o=G(e);return xp(n,o?0:e,function(s,l){var u=n.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}a.push(r?s:{formattedLabel:i(s),rawLabel:u,tick:s})}),a}var Ak=.8;function $r(t,e){e=e||{};var r={w:NaN,w2:NaN},i=t.scale,n=e.fromStat,a=e.min,o=XT(i);et(o)||(o=NaN);var s=t.getExtent(),l=Le(s[1]-s[0]);return ht(i)?Dk(r,t,o,l):n?Mk(r,t,o,l,n):a==null,a!=null&&(r.w=et(r.w)?ce(a,r.w):a),r}function Dk(t,e,r,i){var n=e.onBand,a=r+(n?1:0);a===0&&(a=1),t.w=i/a,!n&&r&&i&&(t.w2=t.w*r/i)}function Mk(t,e,r,i,n){var a=!1,o=-1/0;w(n.key?[m1(e,n.key)]:g1(e,n.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===Np&&(a=!0))}),et(r)&&r>0&&et(o)?(t.w=i/r*o,t.w2=o):a&&(t.w=i*Ak,t.w2=t.w*r/i)}var j1=[0,1],Ok=(function(){function t(e,r,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=i||[0,0]}return t.prototype.contain=function(e){var r=this._extent,i=Math.min(r[0],r[1]),n=Math.max(r[0],r[1]);return e>=i&&e<=n},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var i=this._extent;i[0]=e,i[1]=r},t.prototype.dataToCoord=function(e,r){var i=this.scale;return e=i.normalize(i.parse(e)),$s(e,j1,$1(this),r)},t.prototype.coordToData=function(e,r){var i=$s(e,$1(this),j1,r);return this.scale.scale(i)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),i=G1(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),n=U(i.ticks,function(s){return{coord:this.dataToCoord(Ui(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=Ik(this,n,a);return U(n,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(ht(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var i=this.scale.getMinorTicks(r),n=U(i,function(a){return U(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},t.prototype.getViewLabels=function(e){return e=e||_s(Kt.determine),H1(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return $r(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||_s(Kt.determine),K1(this,e)},t})();function $1(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],i=r/t.scale.count()/2;e[0]+=i,e[1]-=i}return e}function Ik(t,e,r){var i=e.length;if(!t.onBand||r||!i)return!1;var n=$r(t).w;if(!n)return!1;w(e,function(s){s.coord-=n/2});var a=t.scale.getExtent(),o=e[i-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+n,tick:{value:a[1]+1}}),!0}var Up=Ok;function Lk(t){var e=xe.extend(t);return xe.registerClass(e),e}function Nk(t){var e=st.extend(t);return st.registerClass(e),e}function Pk(t){var e=kt.extend(t);return kt.registerClass(e),e}function Rk(t){var e=xt.extend(t);return xt.registerClass(e),e}var Q1=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],kk=1,zp=2,eC=kk|zp;function tu(t,e,r){r=r||eC,e?t.dirty|=r:t.dirty&=~r}function tC(t,e){return e=e||eC,t.dirty==null||!!(t.dirty&e)}function Qr(t){if(t)return tC(t)&&Bk(t,t.label,t),t}function Bk(t,e,r){var i=e.getComputedTransform();t.transform=$f(t.transform,i);var n=t.localRect=Vo(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=Ea.textMargin);for(var c=0;c<4;c++)Xg[c]=f===Ea.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===Ea.textMargin&&zo(n,Xg,!1,!1);var p=t.rect=Vo(t.rect,n);return i&&p.applyTransform(i),f===Ea.minMargin&&zo(p,Xg,!1,!1),t.axisAligned=jf(i),(t.label=t.label||{}).ignore=e.ignore,tu(t,!1),tu(t,!0,zp),t}var Xg=[0,0,0,0];function rC(t,e,r){return t.transform=$f(t.transform,r),t.localRect=Vo(t.localRect,e),t.rect=Vo(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=jf(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function iC(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var i=t.rect;i&&(i.x+=e.x,i.y+=e.y);var n=t.obb;n&&n.fromBoundingRect(t.localRect,r)}}function qg(t,e){for(var r=0;r<Q1.length;r++){var i=Q1[r];t[i]==null&&(t[i]=e[i])}return Qr(t)}function J1(t){var e=t.obb;return(!e||tC(t,zp))&&(t.obb=e=e||new Wf,e.fromBoundingRect(t.localRect,t.transform),tu(t,!1,zp)),e}function nC(t){var e=[];t.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var i=0;i<t.length;i++){var n=Qr(t[i]);if(!n.label.ignore){for(var a=n.label,o=n.labelLine,s=!1,l=0;l<e.length;l++)if(Fp(n,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(n)}}}function Fp(t,e,r,i){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,i)?!1:t.axisAligned&&e.axisAligned?!0:J1(t).intersect(J1(e),r,i)}var Uk=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){if(0)var i;return Sn(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var i=new we,n=cr("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);i.add(n),n.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=cr(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);i.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=Z.color.neutral00,u.style.lineWidth=2),i},e.type="series.line",e.dependencies=["grid","polar"],e.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:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e})(kt),aC=Uk;function xs(t,e){var r=t.mapDimensionsAll("defaultedLabel"),i=r.length;if(i===1){var n=Pi(t,e,r[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<r.length;o++)a.push(Pi(t,e,r[o]));return a.join(" ")}}function Vp(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!P(e))return e+"";for(var i=[],n=0;n<r.length;n++){var a=t.getDimensionIndex(r[n]);a>=0&&i.push(e[a])}return i.join(" ")}var zk=(function(t){L(e,t);function e(r,i,n,a){var o=t.call(this)||this;return o.updateData(r,i,n,a),o}return e.prototype._createSymbol=function(r,i,n,a,o,s){this.removeAll();var l=cr(r,-1,-1,2,2,null,s);l.attr({z2:Y(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=Fk,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ha(this.childAt(0))},e.prototype.downplay=function(){da(this.childAt(0))},e.prototype.setZ=function(r,i){var n=this.childAt(0);n.zlevel=r,n.z=i},e.prototype.setDraggable=function(r,i){var n=this.childAt(0);n.draggable=r,n.cursor=!i&&r?"move":n.cursor},e.prototype.updateData=function(r,i,n,a){this.silent=!1;var o=r.getItemVisual(i,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,i),u=e.getSymbolZ2(r,i),f=o!==this._symbolType,c=a&&a.disableAnimation;if(f){var p=r.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,r,i,l,u,p)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):He(h,d,s,i),Xf(h)}if(this._updateCommon(r,i,l,n,a),f){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Tt(h,d,s,i)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,i,n,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,p,h,d,v,m,g;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,p=a.focus,h=a.blurScope,v=a.labelStatesModels,m=a.hoverScale,g=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(i),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),p=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),v=pn(y),m=_.getShallow("scale"),g=y.getShallow("cursor")}var x=r.getItemVisual(i,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var S=Xc(r.getItemVisual(i,"symbolOffset"),n);S&&(s.x=S[0],s.y=S[1]),g&&s.attr("cursor",g);var b=r.getItemVisual(i,"style"),T=b.fill;if(s instanceof Wt){var C=s.style;s.useStyle(N({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},b))}else s.__isEmptyBrush?s.useStyle(N({},b)):s.useStyle(b),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=r.getItemVisual(i,"liftZ"),E=this._z2;A!=null?E==null&&(this._z2=s.z2,s.z2+=A):E!=null&&(s.z2=E,this._z2=null);var D=o&&o.useNameLabel;cn(s,v,{labelFetcher:l,labelDataIndex:i,defaultText:O,inheritColor:T,defaultOpacity:b.opacity});function O(R){return D?r.getName(R):xs(r,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var I=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;M.scaleX=this._sizeX*I,M.scaleY=this._sizeY*I,this.setSymbolScale(1),va(this,p,h,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,i,n){var a=this.childAt(0),o=he(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();l&&ko(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();ko(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,i){return Kw(r.getItemVisual(i,"symbolSize"))},e.getSymbolZ2=function(r,i){return r.getItemVisual(i,"z2")},e})(we);function Fk(t,e){this.parent.drift(t,e)}var ru=zk;function Hp(t,e,r,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i&&i.isIgnore&&i.isIgnore(r))&&!(i&&i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function oC(t){return t!=null&&!F(t)&&(t={isIgnore:t}),t||{}}function sC(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:pn(e),cursorStyle:e.get("cursor")}}function lC(t,e,r,i,n,a,o){var s=new t(e,r,i,n);return s.setPosition(a),e.setItemGraphicEl(r,s),o.add(s),s}var Vk=(function(){function t(e){this.group=new we,this._SymbolCtor=e||ru}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=oC(r);var i=this.group,n=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=sC(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||i.removeAll(),e.diff(a).add(function(c){var p=f(c);Hp(e,p,c,r)&&lC(o,e,c,l,u,p,i)}).update(function(c,p){var h=a.getItemGraphicEl(p),d=f(c);if(!Hp(e,d,c,r)){i.remove(h);return}var v=e.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==v)i.remove(h),h=new o(e,c,l,u),h.setPosition(d);else{h.updateData(e,c,l,u);var g={x:d[0],y:d[1]};s?h.attr(g):He(h,g,n)}i.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var p=a.getItemGraphicEl(c);p&&p.fadeOut(function(){i.remove(p)},n)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(e){var r=this._data;if(r)for(var i=this,n=r.getStore(),a=0,o=n.count();a<o;a++){var s=r.getItemGraphicEl(a),l=i._getSymbolPoint(a);Hp(r,l,a,e)?(s=s||lC(i._SymbolCtor,r,a,i._seriesScope,{disableAnimation:!0},l,i.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(i.group.remove(s),r.setItemGraphicEl(a,null))}},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=sC(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,i,n){this._progressiveEls=[],n=oC(n);function a(u){u.isGroup||(u.incremental=i,u.ensureState("emphasis").hoverLayer=Cl)}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if(Hp(r,s,o,n)){var l=new this._SymbolCtor(r,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),r.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(e){Ca(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(n){n.fadeOut(function(){r.remove(n)},i.hostModel)}):r.removeAll()},t})(),uC=Vk;function Gp(t,e,r){var i=t.getBaseAxis(),n=t.getOtherAxis(i),a=Hk(n,r),o=i.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=U(t.dimensions,function(d){return e.mapDimension(d)}),p=!1,h=e.getCalculationInfo("stackResultDimension");return Zr(e,c[0])&&(p=!0,c[0]=h),Zr(e,c[1])&&(p=!0,c[1]=h),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Hk(t,e){var r=0,i=t.scale.getExtent();return e==="start"?r=i[0]:e==="end"?r=i[1]:le(e)&&!isNaN(e)?r=e:i[0]>0?r=i[0]:i[1]<0&&(r=i[1]),r}function Wp(t,e,r,i){var n=NaN;t.stacked&&(n=r.get(r.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,i),o[1-a]=n,e.dataToPoint(o)}function Zt(t,e){return!isFinite(t)||!isFinite(e)}var Gk=typeof Float32Array!==un?Float32Array:void 0,fC=typeof Float64Array!==un?Float64Array:void 0;function pr(t){return Yp({ctor:Gk},t).arr}function Yp(t,e){var r=t.arr,i=t.ctor;if(e>Qs&&(e=Qs),!r||t.typed&&r.length<e){var n=void 0;if(i)try{n=new i(e),t.typed=!0,r&&n.set(r)}catch{}if(!n&&(n=[],t.typed=!1,r))for(var a=0,o=r.length;a<o;a++)n[a]=r[a];t.arr=n}return t}function Wk(t,e){var r=[];return e.diff(t).add(function(i){r.push({cmd:"+",idx:i})}).update(function(i,n){r.push({cmd:"=",idx:n,idx1:i})}).remove(function(i){r.push({cmd:"-",idx:i})}).execute(),r}function Zg(t,e,r,i,n,a,o,s){for(var l=Wk(t,e),u=[],f=[],c=[],p=[],h=[],d=[],v=[],m=Gp(n,e,o),g=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],S=!0,b=void 0,T=void 0;switch(x.cmd){case"=":b=x.idx*2,T=x.idx1*2;var C=g[b],A=g[b+1],E=y[T],D=y[T+1];(isNaN(C)||isNaN(A))&&(C=E,A=D),u.push(C,A),f.push(E,D),c.push(r[b],r[b+1]),p.push(i[T],i[T+1]),v.push(e.getRawIndex(x.idx1));break;case"+":var O=x.idx,M=m.dataDimsForPoint,I=n.dataToPoint([e.get(M[0],O),e.get(M[1],O)]);T=O*2,u.push(I[0],I[1]),f.push(y[T],y[T+1]);var R=Wp(m,n,e,O);c.push(R[0],R[1]),p.push(i[T],i[T+1]),v.push(e.getRawIndex(O));break;case"-":S=!1}S&&(h.push(x),d.push(d.length))}d.sort(function(ge,Se){return v[ge]-v[Se]});for(var k=u.length,W=pr(k),z=pr(k),X=pr(k),$=pr(k),K=[],_=0;_<d.length;_++){var te=d[_],ie=_*2,q=te*2;W[ie]=u[q],W[ie+1]=u[q+1],z[ie]=f[q],z[ie+1]=f[q+1],X[ie]=c[q],X[ie+1]=c[q+1],$[ie]=p[q],$[ie+1]=p[q+1],K[_]=h[te]}return{current:W,next:z,stackedOnCurrent:X,stackedOnNext:$,status:K}}var wn=Math.min,Tn=Math.max;function jg(t,e,r,i,n,a,o,s,l){for(var u,f,c,p,h,d,v=r,m=0;m<i;m++){var g=e[v*2],y=e[v*2+1];if(v>=n||v<0)break;if(Zt(g,y)){if(l){v+=a;continue}break}if(v===r)t[a>0?"moveTo":"lineTo"](g,y),c=g,p=y;else{var _=g-u,x=y-f;if(_*_+x*x<.5){v+=a;continue}if(o>0){for(var S=v+a,b=e[S*2],T=e[S*2+1];b===g&&T===y&&m<i;)m++,S+=a,v+=a,b=e[S*2],T=e[S*2+1],g=e[v*2],y=e[v*2+1],_=g-u,x=y-f;var C=m+1;if(l)for(;Zt(b,T)&&C<i;)C++,S+=a,b=e[S*2],T=e[S*2+1];var A=.5,E=0,D=0,O=void 0,M=void 0;if(C>=i||Zt(b,T))h=g,d=y;else{E=b-u,D=T-f;var I=g-u,R=b-g,k=y-f,W=T-y,z=void 0,X=void 0;if(s==="x"){z=Math.abs(I),X=Math.abs(R);var $=E>0?1:-1;h=g-$*z*o,d=y,O=g+$*X*o,M=y}else if(s==="y"){z=Math.abs(k),X=Math.abs(W);var K=D>0?1:-1;h=g,d=y-K*z*o,O=g,M=y+K*X*o}else z=Math.sqrt(I*I+k*k),X=Math.sqrt(R*R+W*W),A=X/(X+z),h=g-E*o*(1-A),d=y-D*o*(1-A),O=g+E*o*A,M=y+D*o*A,O=wn(O,Tn(b,g)),M=wn(M,Tn(T,y)),O=Tn(O,wn(b,g)),M=Tn(M,wn(T,y)),E=O-g,D=M-y,h=g-E*z/X,d=y-D*z/X,h=wn(h,Tn(u,g)),d=wn(d,Tn(f,y)),h=Tn(h,wn(u,g)),d=Tn(d,wn(f,y)),E=g-h,D=y-d,O=g+E*X/z,M=y+D*X/z}t.bezierCurveTo(c,p,h,d,g,y),c=O,p=M}else t.lineTo(g,y)}u=g,f=y,v+=a}return m}var cC=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),pC=(function(t){L(e,t);function e(r){var i=t.call(this,r)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:Z.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new cC},e.prototype.buildPath=function(r,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&Zt(n[o*2-2],n[o*2-1]);o--);for(;a<o&&Zt(n[a*2],n[a*2+1]);a++);}for(;a<o;)a+=jg(r,n,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},e.prototype.getPointOn=function(r,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,a=n.data,o=rr.CMD,s,l,u=i==="x",f=[],c=0;c<a.length;){var p=a[c++],h=void 0,d=void 0,v=void 0,m=void 0,g=void 0,y=void 0,_=void 0;switch(p){case o.M:s=a[c++],l=a[c++];break;case o.L:if(h=a[c++],d=a[c++],_=u?(r-s)/(h-s):(r-l)/(d-l),_<=1&&_>=0){var x=u?(d-l)*_+l:(h-s)*_+s;return u?[r,x]:[x,r]}s=h,l=d;break;case o.C:h=a[c++],d=a[c++],v=a[c++],m=a[c++],g=a[c++],y=a[c++];var S=u?Kn(s,h,v,g,r,f):Kn(l,d,m,y,r,f);if(S>0)for(var b=0;b<S;b++){var T=f[b];if(T<=1&&T>=0){var x=u?Be(l,d,m,y,T):Be(s,h,v,g,T);return u?[r,x]:[x,r]}}s=g,l=y;break}}},e})(oe);var Yk=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(cC),hC=(function(t){L(e,t);function e(r){var i=t.call(this,r)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new Yk},e.prototype.buildPath=function(r,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Zt(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Zt(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=jg(r,n,o,s,s,1,i.smooth,l,i.connectNulls);jg(r,a,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,r.closePath()}},e})(oe);function $g(t,e,r,i,n){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new _e({shape:{x:o,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),h=p.isHorizontal(),d=p.inverse;h?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var v=G(n)?function(m){n(m,c)}:null;Tt(c,{shape:{width:l,height:u,x:o,y:s}},r,null,i,v)}return c}function Qg(t,e,r){var i=t.getArea(),n=ve(i.r0,1),a=ve(i.r,1),o=new ci({shape:{cx:ve(t.cx,1),cy:ve(t.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=n,Tt(o,{shape:{endAngle:i.endAngle,r:a}},r)}return o}function dC(t,e,r,i,n){if(t){if(t.type==="polar")return Qg(t,e,r);if(t.type==="cartesian2d")return $g(t,e,r,i,n)}else return null;return null}function Xp(t,e){return t.type===e}function vC(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function mC(t){for(var e=yt(),r=yt(),i=0;i<t.length;){var n=t[i++],a=t[i++];Zt(n,a)||(nl(e,n),nl(r,a))}return[e,r]}function gC(t,e){var r=mC(t),i=r[0],n=r[1],a=mC(e),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(n[0]-s[0]),Math.abs(i[1]-o[1]),Math.abs(n[1]-s[1]))}function yC(t){return le(t)?t:t?.5:0}function Xk(t,e,r){if(r.valueDim==null)return[];for(var i=e.count(),n=pr(i*2),a=0;a<i;a++){var o=Wp(r,t,e,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function Cn(t,e,r,i,n){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],p=[];if(n){for(l=0;l<t.length;l+=2){var h=e||t;Zt(h[l],h[l+1])||p.push(t[l],t[l+1])}t=p}for(l=0;l<t.length-2;l+=2)switch(c[0]=t[l+2],c[1]=t[l+3],f[0]=t[l],f[1]=t[l+1],s.push(f[0],f[1]),i){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+c[o])/2,v=[];u[o]=v[o]=d,u[1-o]=f[1-o],v[1-o]=c[1-o],s.push(u[0],u[1]),s.push(v[0],v[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function qk(t,e){var r=[],i=t.length,n,a;function o(f,c,p){var h=f.coord,d=(p-h)/(c.coord-h),v=Zu(d,[f.color,c.color]);return{coord:p,color:v}}for(var s=0;s<i;s++){var l=t[s],u=l.coord;if(u<0)n=l;else if(u>e){a?r.push(o(a,l,e)):n&&r.push(o(n,l,0),o(n,l,e));break}else n&&(r.push(o(n,l,0)),n=null),r.push(l),a=l}return r}function Kk(t,e,r){var i=t.getVisual("visualMeta");if(!(!i||!i.length||!t.count())&&e.type==="cartesian2d"){for(var n,a,o=i.length-1;o>=0;o--){var s=t.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){a=i[o];break}}if(a){var l=e.getAxis(n),u=U(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var p=qk(u,n==="x"?r.getWidth():r.getHeight()),h=p.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,v=p[0].coord-d,m=p[h-1].coord+d,g=m-v;if(g<.001)return"transparent";w(p,function(_){_.offset=(_.coord-v)/g}),p.push({offset:h?p[h-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:h?p[0].offset:.5,color:c[0]||"transparent"});var y=new Po(0,0,0,0,p,!0);return y[n]=v,y[n+"2"]=m,y}}}function Zk(t,e,r){var i=t.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(n&&jk(a,e))){var o=e.mapDimension(a.dim),s={};return w(a.getViewLabels(),function(l){l.tick.offInterval||(s[Ui(a.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function jk(t,e){var r=t.getExtent(),i=Math.abs(r[1]-r[0])/t.scale.count();isNaN(i)&&(i=0);for(var n=e.count(),a=Math.max(1,Math.round(n/5)),o=0;o<n;o+=a)if(ru.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>i)return!1;return!0}function $k(t){for(var e=t.length/2;e>0&&Zt(t[e*2-2],t[e*2-1]);e--);return e-1}function _C(t,e){return[t[e*2],t[e*2+1]]}function Qk(t,e,r){for(var i=t.length/2,n=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<i;u++)if(o=t[u*2+n],!Zt(o,t[u*2+1-n])){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function xC(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Dr.length;e++)if(t.get([Dr[e],"endLabel","show"]))return!0;return!1}function Jg(t,e,r,i){if(Xp(e,"cartesian2d")){var n=i.getModel("endLabel"),a=n.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=xC(i)?function(h,d){t._endLabelOnDuring(h,d,o,s,a,n,e)}:null,u=e.getBaseAxis().isHorizontal(),f=$g(e,r,i,function(){var h=t._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var c=f.shape,p=Math.max(c.width,c.height);u?(c.y-=p,c.height+=p*2):(c.x-=p,c.width+=p*2)}return l&&l(1,f),f}else return Qg(e,r,i)}function Jk(t,e){var r=e.getBaseAxis(),i=r.isHorizontal(),n=r.inverse,a=i?n?"right":"left":"center",o=i?"middle":n?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var e2=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new we,i=new uC;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=r,this._changePolyState=pe(this._changePolyState,this)},e.prototype.render=function(r,i,n){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],c=a.type==="polar",p=this._coordSys,h=this._symbolDraw,d=this._polyline,v=this._polygon,m=this._lineGroup,g=!i.ssr&&r.get("animation"),y=!u.isEmpty(),_=u.get("origin"),x=Gp(a,s,_),S=y&&Xk(a,s,x),b=r.get("showSymbol"),T=r.get("connectNulls"),C=b&&!c&&Zk(r,s,a),A=this._data;A&&A.eachItemGraphicEl(function(Pe,it){Pe.__temp&&(o.remove(Pe),A.setItemGraphicEl(it,null))}),b||h.remove(),o.add(m);var E=c?!1:r.get("step"),D;a&&a.getArea&&r.get("clip",!0)&&(D=a.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var O=Kk(s,a,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&p.type===a.type&&E===this._step))b&&h.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(Pe){return[f[Pe*2],f[Pe*2+1]]}}),g&&this._initSymbolLabelAnimation(s,a,D),E&&(S&&(S=Cn(S,f,a,E,T)),f=Cn(f,null,a,E,T)),d=this._newPolyline(f),y?v=this._newPolygon(f,S):v&&(m.remove(v),v=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,qr(O)),m.setClipPath(Jg(this,a,!0,r));else{y&&!v?v=this._newPolygon(f,S):v&&!y&&(m.remove(v),v=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,qr(O));var M=m.getClipPath();if(M){var I=Jg(this,a,!1,r);Tt(M,{shape:I.shape},r)}else m.setClipPath(Jg(this,a,!0,r));b&&h.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(Pe){return[f[Pe*2],f[Pe*2+1]]}}),(!vC(this._stackedOnPoints,S)||!vC(this._points,f))&&(g?this._doUpdateAnimation(s,S,a,n,E,_,T):(E&&(S&&(S=Cn(S,f,a,E,T)),f=Cn(f,null,a,E,T)),d.setShape({points:f}),v&&v.setShape({points:f,stackedOnPoints:S})))}var R=r.getModel("emphasis"),k=R.get("focus"),W=R.get("blurScope"),z=R.get("disabled");if(d.useStyle(re(l.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"})),dl(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var X=d.getState("emphasis").style;X.lineWidth=+d.style.lineWidth+1}he(d).seriesIndex=r.seriesIndex,va(d,k,W,z);var $=yC(r.get("smooth")),K=r.get("smoothMonotone");if(d.setShape({smooth:$,smoothMonotone:K,connectNulls:T}),v){var te=s.getCalculationInfo("stackedOnSeries"),ie=0;v.useStyle(re(u.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),te&&(ie=yC(te.get("smooth"))),v.setShape({smooth:$,stackedOnSmooth:ie,smoothMonotone:K,connectNulls:T}),dl(v,r,"areaStyle"),he(v).seriesIndex=r.seriesIndex,va(v,k,W,z)}var q=this._changePolyState;s.eachItemGraphicEl(function(Pe){Pe&&(Pe.onHoverStateChange=q)}),this._polyline.onHoverStateChange=q,this._data=s,this._coordSys=a,this._stackedOnPoints=S,this._points=f,this._step=E,this._valueOrigin=_;var ge=r.get("triggerEvent"),Se=r.get("triggerLineEvent"),Dt=Se===!0||ge===!0||ge==="line",kr=Se===!0||ge===!0||ge==="area";this.packEventData(r,d,Dt),v&&this.packEventData(r,v,kr)},e.prototype.packEventData=function(r,i,n){he(i).eventData=n?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:i===this._polygon?"area":"line"}:null},e.prototype.highlight=function(r,i,n,a){var o=r.getData(),s=wr(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],c=l[s*2+1];if(Zt(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var p=r.get("zlevel")||0,h=r.get("z")||0;u=new ru(o,s),u.x=f,u.y=c,u.setZ(p,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=p,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else xt.prototype.highlight.call(this,r,i,n,a)},e.prototype.downplay=function(r,i,n,a){var o=r.getData(),s=wr(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 xt.prototype.downplay.call(this,r,i,n,a)},e.prototype._changePolyState=function(r){var i=this._polygon;Sv(this._polyline,r),i&&Sv(i,r)},e.prototype._newPolyline=function(r){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new pC({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(r,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new hC({shape:{points:r,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(r,i,n){var a,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");G(f)&&(f=f(null));var c=u.get("animationDelay")||0,p=G(c)?c(null):c;r.eachItemGraphicEl(function(h,d){var v=h;if(v){var m=[h.x,h.y],g=void 0,y=void 0,_=void 0;if(n)if(o){var x=n,S=i.pointToCoord(m);a?(g=x.startAngle,y=x.endAngle,_=-S[1]/180*Math.PI):(g=x.r0,y=x.r,_=S[0])}else{var b=n;a?(g=b.x,y=b.x+b.width,_=h.x):(g=b.y+b.height,y=b.y,_=h.y)}var T=y===g?0:(_-g)/(y-g);l&&(T=1-T);var C=G(c)?c(d):f*T+p,A=v.getSymbolPath(),E=A.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),E&&E.animateFrom({style:{opacity:0}},{duration:300,delay:C}),A.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,i,n){var a=r.getModel("endLabel");if(xC(r)){var o=r.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 Oe({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=$k(l);f>=0&&(cn(s,pn(r,"endLabel"),{inheritColor:n,labelFetcher:r,labelDataIndex:f,defaultText:function(c,p,h){return h!=null?Vp(o,h):xs(o,c)},enableTextSetter:!0},Jk(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,i,n,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=n.getLayout("points"),p=n.hostModel,h=p.get("connectNulls"),d=s.get("precision"),v=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,_=i.shape,x=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,S=(g?v:0)*(y?-1:1),b=(g?0:-v)*(y?-1:1),T=g?"x":"y",C=Qk(c,x,T),A=C.range,E=A[1]-A[0],D=void 0;if(E>=1){if(E>1&&!h){var O=_C(c,A[0]);u.attr({x:O[0]+S,y:O[1]+b}),o&&(D=p.getRawValue(A[0]))}else{var O=f.getPointOn(x,T);O&&u.attr({x:O[0]+S,y:O[1]+b});var M=p.getRawValue(A[0]),I=p.getRawValue(A[1]);o&&(D=Hd(n,d,M,I,C.t))}a.lastFrameIndex=A[0]}else{var R=r===1||a.lastFrameIndex>0?A[0]:0,O=_C(c,R);o&&(D=p.getRawValue(R)),u.attr({x:O[0]+S,y:O[1]+b})}if(o){var k=Ho(u);typeof k.setLabelText=="function"&&k.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(r,i,n,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,p=Zg(this._data,r,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin,s),h=p.current,d=p.stackedOnCurrent,v=p.next,m=p.stackedOnNext;if(o&&(d=Cn(p.stackedOnCurrent,p.current,n,o,l),h=Cn(p.current,null,n,o,l),m=Cn(p.stackedOnNext,p.next,n,o,l),v=Cn(p.next,null,n,o,l)),gC(h,v)>3e3||f&&gC(d,m)>3e3){u.stopAnimation(),u.setShape({points:v}),f&&(f.stopAnimation(),f.setShape({points:v,stackedOnPoints:m}));return}u.shape.__points=p.current,u.shape.points=h;var g={shape:{points:v}};p.current!==h&&(g.shape.__points=p.next),u.stopAnimation(),He(u,g,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),He(f,{shape:{stackedOnPoints:m}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=p.status,x=0;x<_.length;x++){var S=_[x].cmd;if(S==="="){var b=r.getItemGraphicEl(_[x].idx1);b&&y.push({el:b,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var T=u.shape.__points,C=0;C<y.length;C++){var A=y[C].el,E=y[C].ptIdx*2;A.x=T[E],A.y=T[E+1],A.markRedraw()}})},e.prototype.remove=function(r){var i=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(a,o){a.__temp&&(i.remove(a),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(xt),SC=e2;function ey(t,e){return{seriesType:t,plan:Ua(),reset:function(r){var i=r.getData(),n=r.coordinateSystem,a=r.pipelineContext,o=e||a.large;if(n){var s=U(n.dimensions,function(h){return i.mapDimension(h)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");Zr(i,s[0])&&(s[0]=u),Zr(i,s[1])&&(s[1]=u);var f=i.getStore(),c=i.getDimensionIndex(s[0]),p=i.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var v=h.end-h.start,m=o&&pr(v*l),g=[],y=[],_=h.start,x=0;_<h.end;_++){var S=void 0;if(l===1){var b=f.get(c,_);S=n.dataToPoint(b,null,y)}else g[0]=f.get(c,_),g[1]=f.get(p,_),S=n.dataToPoint(g,null,y);o?(m[x++]=S[0],m[x++]=S[1]):d.setItemLayout(_,S.slice())}o&&(d.setLayout("points",m),d.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var t2={average:function(t){for(var e=0,r=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},r2=function(t){return Math.round(t.length/2)};function iu(t){return{seriesType:t,reset:function(e,r,i){var n=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=i.getDevicePixelRatio(),p=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/p);if(isFinite(h)&&h>1){a==="lttb"?e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h)):a==="minmax"&&e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var d=void 0;B(a)?d=t2[a]:G(a)&&(d=a),d&&e.setData(n.downSample(n.mapDimension(u.dim),1/h,d,r2))}}}}}function ty(t){t.registerChartView(SC),t.registerSeriesModel(aC),t.registerLayout(ey("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",i)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,iu("line"))}var i2=(function(t){L(e,t);function e(r,i,n,a,o){var s=t.call(this,r,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),r&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(r,i){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(Up),bC=i2;var n2=null;function Za(){return n2}var wC="expandAxisBreak";var En=Math.PI,a2=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],o2=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],An=ae(),EC=ae(),iy=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,i=e.componentIndex,n=this.recordMap,a=n[r]||(n[r]=[]);return a[i]||(a[i]={ready:{}})},t})();function s2(t,e,r,i){var n=r.axis,a=e.ensureRecord(r),o=[],s,l=oy(t.axisName)&&bn(t.nameLocation);w(i,function(d){var v=Qr(d);if(!(!v||v.label.ignore)){o.push(v);var m=a.transGroup;l&&(m.transform?Qt(nu,m.transform):yr(nu),v.transform&&Ur(nu,nu,v.transform),j.copy(qp,v.localRect),qp.applyTransform(nu),s?s.union(qp):j.copy(s=new j(0,0,0,0),qp))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(d,v){return Math.abs(d.label[u]-f)-Math.abs(v.label[u]-f)}),l&&s){var c=n.getExtent(),p=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-p;s.union(new j(p,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var nu=mt(),qp=new j(0,0,0,0),ny=function(t,e,r,i,n,a){if(bn(t.nameLocation)){var o=a.stOccupiedRect;o&&AC(rC({},o,a.transGroup.transform),i,n)}else ay(a.labelInfoList,a.dirVec,i,n)};function AC(t,e,r){var i=new Ee;Fp(t,e,i,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&iC(e,i)}function ay(t,e,r,i){for(var n=Ee.dot(i,e)>=0,a=0,o=t.length;a<o;a++){var s=t[n?a:o-1-a];s.label.ignore||AC(s,r,i)}}var ja=(function(){function t(e,r,i,n){this.group=new we,this._axisModel=e,this._api=r,this._local={},this._shared=n||new iy(ny),this._resetCfgDetermined(i)}return t.prototype.updateCfg=function(e){if(0)var r;var i=this._cfg.raw;i.position=e.position,i.labelOffset=e.labelOffset,this._resetCfgDetermined(i)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,i=r.getDefaultOption?r.getDefaultOption():{},n=Y(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=Y(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Y(e.nameDirection,1),tickDirection:Y(e.tickDirection,1),labelDirection:Y(e.labelDirection,1),labelOffset:Y(e.labelOffset,0),silent:Y(e.silent,!0),axisName:n,nameLocation:vr(r.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:oy(n)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new we({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new Ee(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var i=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),w(l2,function(n){e[n]&&u2[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,r||{})}),this},t.innerTextLayout=function(e,r,i){var n=Js(r-e),a,o;return ra(n)?(o=i>0?"top":"bottom",a="center"):ra(n-En)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<En?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),l2=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],u2={axisLine:function(t,e,r,i,n,a,o){if(0)var s;var l=i.get(["axisLine","show"]);if(l==="auto"&&(l=!0,t.raw.axisLineAutoShow!=null&&(l=!!t.raw.axisLineAutoShow)),!!l){var u=i.axis.getExtent(),f=a.transform,c=[u[0],0],p=[u[1],0],h=c[0]>p[0];f&&(qe(c,c,f),qe(p,p,f));var d=N({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),v={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(i.get(["axisLine","breakLine"])&&Ma(i.axis.scale))Za().buildAxisBreakLine(i,n,a,v);else{var m=new or(N({shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]}},v));wa(m.shape,m.style.lineWidth),m.anid="line",n.add(m)}var g=i.get(["axisLine","symbol"]);if(g!=null){var y=i.get(["axisLine","symbolSize"]);B(g)&&(g=[g,g]),(B(y)||le(y))&&(y=[y,y]);var _=Xc(i.get(["axisLine","symbolOffset"])||0,y),x=y[0],S=y[1];w([{rotate:t.rotation+Math.PI/2,offset:_[0],r:0},{rotate:t.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((c[0]-p[0])*(c[0]-p[0])+(c[1]-p[1])*(c[1]-p[1]))}],function(b,T){if(g[T]!=="none"&&g[T]!=null){var C=cr(g[T],-x/2,-S/2,x,S,d.stroke,!0),A=b.r+b.offset,E=h?p:c;C.attr({rotation:b.rotate,x:E[0]+A*Math.cos(t.rotation),y:E[1]-A*Math.sin(t.rotation),silent:!0,z2:11}),n.add(C)}})}}},axisTickLabelEstimate:function(t,e,r,i,n,a,o,s){if(0)var l;var u=CC(e,n,s);u&&TC(t,e,r,i,n,a,o,Kt.estimate)},axisTickLabelDetermine:function(t,e,r,i,n,a,o,s){if(0)var l;var u=CC(e,n,s);u&&TC(t,e,r,i,n,a,o,Kt.determine);var f=h2(t,n,a,i);p2(t,e.labelLayoutList,f),d2(t,n,a,i,t.tickDirection)},axisName:function(t,e,r,i,n,a,o,s){var l=r.ensureRecord(i);if(0)var u;e.nameEl&&(n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=t.axisName;if(oy(f)){var c=t.nameLocation,p=t.nameDirection,h=i.getModel("nameTextStyle"),d=i.get("nameGap")||0,v=i.axis.getExtent(),m=i.axis.inverse?-1:1,g=new Ee(0,0),y=new Ee(0,0);c==="start"?(g.x=v[0]-m*d,y.x=-m):c==="end"?(g.x=v[1]+m*d,y.x=m):(g.x=(v[0]+v[1])/2,g.y=t.labelOffset+p*d,y.y=p);var _=mt();y.transform(Fn(_,_,t.rotation));var x=i.get("nameRotate");x!=null&&(x=x*En/180);var S,b;bn(c)?S=ja.innerTextLayout(t.rotation,x??t.rotation,p):(S=f2(t.rotation,c,x||0,v),b=t.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var T=h.getFont(),C=i.get("nameTruncate",!0)||{},A=C.ellipsis,E=kn(t.raw.nameTruncateMaxWidth,C.maxWidth,b),D=s.nameMarginLevel||0,O=new Oe({x:g.x,y:g.y,rotation:S.rotation,silent:ja.isLabelSilent(i),style:Xr(h,{text:f,font:T,overflow:"truncate",width:E,ellipsis:A,fill:h.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(Fo({el:O,componentModel:i,itemName:f}),O.__fullText=f,O.anid="name",i.get("triggerEvent")){var M=ja.makeAxisEventDataBase(i);M.targetType="axisName",M.name=f,he(O).eventData=M}a.add(O),O.updateTransform(),e.nameEl=O;var I=l.nameLayout=Qr({label:O,priority:O.z2,defaultAttr:{ignore:O.ignore},marginDefault:bn(c)?a2[D]:o2[D]});if(l.nameLocation=c,n.add(O),O.decomposeTransform(),t.shouldNameMoveOverlap&&I){var R=r.ensureRecord(i);r.resolveAxisNameOverlap(t,r,i,I,y,R)}}}};function TC(t,e,r,i,n,a,o,s){MC(e)||v2(t,e,n,s,i,o);var l=e.labelLayoutList;m2(t,i,l,a),_2(i,t.rotation,l);var u=t.optionHideOverlap;c2(i,l,u),u&&nC(De(l,function(f){return f&&!f.label.ignore})),s2(t,r,i,l)}function f2(t,e,r,i){var n=Js(r-t),a,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return ra(n-En/2)?(o=l?"bottom":"top",a="center"):ra(n-En*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",n<En*1.5&&n>En/2?a=l?"left":"right":a=l?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function c2(t,e,r){var i=t.axis,n=t.get(["axisLabel","customValues"]);if(p1(i))return;function a(u,f,c){var p=Qr(e[f]),h=Qr(e[c]),d=i.scale;if(!(!p||!h)){if(u==null){if(!r&&n)return;var v=An(p.label).labelInfo.tick;if(vs(d)&&v.notNice||ht(d)&&v.offInterval){Ss(p.label);return}}if(u===!1||p.suggestIgnore){Ss(p.label);return}if(h.suggestIgnore){Ss(h.label);return}var m=.1;if(!r){var g=[0,0,0,0];p=qg({marginForce:g},p),h=qg({marginForce:g},h)}Fp(p,h,null,{touchThreshold:m})&&Ss(u?h.label:p.label)}}var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),l=e.length;a(o,0,1),a(s,l-1,l-2)}function p2(t,e,r){t.showMinorTicks||w(e,function(i){if(i&&i.label.ignore)for(var n=0;n<r.length;n++){var a=r[n],o=EC(a),s=An(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){Ss(a);return}}})}function Ss(t){t&&(t.ignore=!0)}function DC(t,e,r,i,n){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(qe(o,o,e),qe(s,s,e));var f=new or({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});wa(f.shape,f.style.lineWidth),f.anid=n+"_"+t[l].tickValue,a.push(f);var c=EC(f);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return a}function h2(t,e,r,i){var n=i.axis,a=i.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=n.getTicksCoords(),f=DC(u,r.transform,l,re(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function d2(t,e,r,i,n){var a=i.axis,o=i.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),f=re(l.getLineStyle(),re(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var p=DC(s[c],r.transform,u,f,"minorticks_"+c),h=0;h<p.length;h++)e.add(p[h])}}function CC(t,e,r){if(MC(t)){var i=t.axisLabelsCreationContext,n=i.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<n.length;o++)a=a&&n[o]();if(a)return!1}n.length&&(e.remove(t.labelGroup),ry(t,null,null,null))}return!0}function v2(t,e,r,i,n,a){var o=n.axis,s=kn(t.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new we;r.add(l);var u=_s(i);if(!s||o.scale.isBlank()){ry(e,[],l,u);return}var f=n.getModel("axisLabel"),c=o.getViewLabels(u),p=(kn(t.raw.labelRotate,f.get("rotate"))||0)*En/180,h=ja.innerTextLayout(t.rotation,p,t.labelDirection),d=n.getCategories&&n.getCategories(!0),v=[],m=n.get("triggerEvent"),g=1/0,y=-1/0;w(c,function(x,S){var b,T=x.tick,C=x.formattedLabel,A=x.rawLabel,E=f,D=Ui(o.scale,T);if(d&&d[D]){var O=d[D];F(O)&&O.textStyle&&(E=new Te(O.textStyle,f,n.ecModel))}var M=E.getTextColor()||n.get(["axisLine","lineStyle","color"]),I=E.getShallow("align",!0)||h.textAlign,R=Y(E.getShallow("alignMinLabel",!0),I),k=Y(E.getShallow("alignMaxLabel",!0),I),W=E.getShallow("verticalAlign",!0)||E.getShallow("baseline",!0)||h.textVerticalAlign,z=Y(E.getShallow("verticalAlignMinLabel",!0),W),X=Y(E.getShallow("verticalAlignMaxLabel",!0),W),$=10+(((b=T.time)===null||b===void 0?void 0:b.level)||0);g=Math.min(g,$),y=Math.max(y,$);var K=new Oe({x:0,y:0,rotation:0,silent:ja.isLabelSilent(n),z2:$,style:Xr(E,{text:C,align:S===0?R:S===c.length-1?k:I,verticalAlign:S===0?z:S===c.length-1?X:W,fill:G(M)?M(o.type==="category"?A:o.type==="value"?D+"":D,S):M})});K.anid="label_"+D;var te=An(K);if(te.labelInfo=x,te.layoutRotation=h.rotation,Fo({el:K,componentModel:n,itemName:C,formatterParamsExtra:{isTruncated:function(){return K.isTruncated},value:A,tickIndex:S}}),m){var ie=ja.makeAxisEventDataBase(n);ie.targetType="axisLabel",ie.value=A,ie.tickIndex=S;var q=x.tick.break;if(q){var ge=q.parsedBreak;ie.break={start:ge.vmin,end:ge.vmax}}o.type==="category"&&(ie.dataIndex=D),he(K).eventData=ie,q&&y2(n,a,K,q)}v.push(K),l.add(K)});var _=U(v,function(x){return{label:x,priority:An(x).labelInfo.tick.break?x.z2+(y-g+1):x.z2,defaultAttr:{ignore:x.ignore}}});ry(e,_,l,u)}function MC(t){return!!t.labelLayoutList}function ry(t,e,r,i){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=i}function m2(t,e,r,i){var n=e.get(["axisLabel","margin"]);w(r,function(a,o){var s=Qr(a);if(s){var l=s.label,u=An(l);s.suggestIgnore=l.ignore,l.ignore=!1,go(zi,g2);var f=e.axis;zi.x=f.dataToCoord(Ui(f.scale,u.labelInfo.tick)),zi.y=t.labelOffset+t.labelDirection*n,zi.rotation=u.layoutRotation,i.add(zi),zi.updateTransform(),i.remove(zi),zi.decomposeTransform(),go(l,zi),l.markRedraw(),tu(s,!0),Qr(s)}})}var zi=new _e,g2=new _e;function oy(t){return!!t}function y2(t,e,r,i){r.on("click",function(n){var a={type:wC,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function _2(t,e,r){var i=Ve();if(i){var n=i.retrieveAxisBreakPairs(r,function(o){return o&&An(o.label).labelInfo.tick.break},!0),a=t.get(["breakLabelLayout","moveOverlap"],!0);(a===!0||a==="auto")&&w(n,function(o){Za().adjustBreakLabelPair(t.axis.inverse,e,[Qr(r[o[0]]),Qr(r[o[1]])])})}}var Kp=ja;function au(t,e,r){r=r||{};var i=e.axis,n={},a=i.getAxesOnZeroOf()[0],o=i.position,s=a?"onZero":o,l=i.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));p[f.onZero]=Math.max(Math.min(h,p[1]),p[0])}n.position=[l==="y"?p[f[s]]:u[0],l==="x"?p[f[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=d[o],n.labelOffset=a?p[f[o]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),kn(r.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var v=e.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-v:v,n.z2=1,n}function OC(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function IC(t){var e={xAxisModel:null,yAxisModel:null};return w(e,function(r,i){var n=i.replace(/Model$/,""),a=t.getReferringComponents(n,gt).models[0];e[i]=a}),e}function LC(t,e,r,i,n,a){for(var o=au(t,r),s=!1,l=!1,u=0;u<e.length;u++)gp(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new Kp(r,i,o,n)}function NC(t,e,r){var i=au(e,r);if(0)var n;t.updateCfg(i)}function PC(){b1("liPosMinGap",S2)}function S2(t,e,r){var i=V(),n=r.serUids,a=r.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=Nc(f);function p(_){Pp(t,e.sers,function(x){var S=x.getRawData(),b=S.getDimensionIndex(S.mapDimension(s.dim));b>=0&&_(b,x,S.getStore())})}var h=0;if(p(function(_,x,S){i.set(x.uid,1),(!n||!n.hasKey(x.uid))&&(o=!0),h+=S.count()}),(!n||n.keys().length!==i.keys().length)&&(o=!0),!o&&a!=null){e.liPosMinGap=a;return}Yp($a,h);var d=0;p(function(_,x,S){for(var b=0,T=S.count();b<T;++b){var C=S.get(_,b);isFinite(C)&&(!f||Pc(c,C))&&(u&&(C=l.transformIn(C,null)),$a.arr[d++]=C)}});var v=$a.typed?$a.arr.subarray(0,d):($a.arr.length=d,$a.arr);$a.typed?v.sort():tn(v);for(var m=1/0,g=1;g<d;++g){var y=v[g]-v[g-1];y>0&&y<m&&(m=y)}r.liPosMinGap=e.liPosMinGap=et(m)?m:d>0?Np:d1,r.serUids=i}var $a=Yp({ctor:fC},50);function RC(t){return function(e,r){var i=$r(e,{fromStat:{key:t}});if(et(i.w2))return[-i.w2/2,i.w2/2]}}function ou(t,e){return t+Lp+e}function kC(t){return PC(),{liPosMinGap:!ht(t.scale)}}var Fi="bar";function BC(t,e,r,i){T1(t,{key:e,seriesType:r,coordSysType:i,getMetrics:kC})}function UC(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var sy={left:0,right:0,top:0,bottom:0},su=["25%","25%"],Ir="cartesian2d",b2=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,i){var n=di(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&r.outerBounds&&ur(r.outerBounds,n)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&ur(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:sy,outerBoundsContain:"all",outerBoundsClampWidth:su[0],outerBoundsClampHeight:su[1],backgroundColor:Z.color.transparent,borderWidth:1,borderColor:Z.color.neutral30},e})(xe),zC=b2;var w2=mf(),T2="__ec_stack_";function FC(t){return t.get("stack")||T2+t.seriesIndex}function C2(t,e){var r=E2(t,e);return r.columnMap=A2(r),r}function E2(t,e){var r=ou(e,Ir),i=[],n=$r(t,{fromStat:{key:r},min:1});return Dg(t,r,function(a){i.push({barWidth:Ze(a.get("barWidth"),n.w),barMaxWidth:Ze(a.get("barMaxWidth"),n.w),barMinWidth:Ze(a.get("barMinWidth")||(GC(a)?.5:1),n.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:FC(a)})}),{bandWidthResult:n,seriesInfo:i}}function A2(t){var e=t.bandWidthResult.w,r=e,i=0,n,a,o=[],s={};w(t.seriesInfo,function(v,m){m||(a=v.defaultBarGap||0);var g=v.stackId;Me(s,g)||i++;var y=s[g];y||(y=s[g]={width:0,maxWidth:0},o.push(g));var _=v.barWidth;_&&!y.width&&(y.width=_,_=Ue(r,_),r-=_);var x=v.barMaxWidth;x&&(y.maxWidth=x);var S=v.barMinWidth;S&&(y.minWidth=S);var b=v.barGap;b!=null&&(a=b);var T=v.barCategoryGap;T!=null&&(n=T)}),n==null&&(n=ce(35-o.length*4,15)+"%");var l=Ze(n,e),u=Ze(a,1),f=(r-l)/(i+(i-1)*u);f=ce(f,0),w(o,function(v){var m=s[v],g=m.maxWidth,y=m.minWidth;if(m.width){var _=m.width;g&&(_=Ue(_,g)),y&&(_=ce(_,y)),m.width=_,r-=_+u*_,i--}else{var _=f;g&&g<_&&(_=Ue(g,r)),y&&y>_&&(_=y),_!==f&&(m.width=_,r-=_+u*_,i--)}}),f=(r-l)/(i+(i-1)*u),f=ce(f,0);var c=0,p;w(o,function(v){var m=s[v];m.width||(m.width=f),p=m,c+=m.width*(1+u)}),p&&(c-=p.width*u);var h={},d=-c/2;return w(o,function(v){var m=s[v];h[v]=h[v]||{bandWidth:e,offset:d,width:m.width},d+=m.width*(1+u)}),h}function VC(t){return{seriesType:t,overallReset:function(e){var r=ou(t,Ir);S1(e,r,function(i){var n=C2(i,t);Dg(i,r,function(a){var o=n.columnMap[FC(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function HC(t){return{seriesType:t,plan:Ua(),reset:function(e){if(OC(e)){var r=e.getData(),i=e.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(n.dim)),l=e.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=Zr(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),p=a.isHorizontal(),h=a.toGlobalCoord(a.dataToCoord(UC(a))),d=GC(e),v=e.get("barMinHeight")||0,m=f&&r.getDimensionIndex(f),g=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,x){for(var S=_.count,b=d&&pr(S*3),T=d&&l&&pr(S*3),C=d&&pr(S),A=i.master.getRect(),E=p?A.width:A.height,D,O=x.getStore(),M=0;(D=_.next())!=null;){var I=O.get(c?m:o,D),R=O.get(s,D),k=h,W=void 0;c&&(W=+I-O.get(o,D));var z=void 0,X=void 0,$=void 0,K=void 0;if(p){var te=i.dataToPoint([I,R]);c&&(k=i.dataToPoint([W,R])[0]),z=k,X=te[1]+y,$=te[0]-k,K=g,Le($)<v&&($=($<0?-1:1)*v)}else{var te=i.dataToPoint([R,I]);c&&(k=i.dataToPoint([R,W])[1]),z=te[0]+y,X=k,$=g,K=te[1]-k,Le(K)<v&&(K=(K<=0?-1:1)*v)}d?(b[M]=z,b[M+1]=X,b[M+2]=p?$:K,T&&(T[M]=p?A.x:z,T[M+1]=p?X:A.y,T[M+2]=E),C[D]=D):x.setItemLayout(D,{x:z,y:X,width:$,height:K}),M+=3}d&&x.setLayout({largePoints:b,largeDataIndices:C,largeBackgroundPoints:T,valueAxisHorizontal:p})}}}}}}function GC(t){return t.pipelineContext&&t.pipelineContext.large}function D2(t){return RC(ou(t,Ir))}function WC(t){w2(t,function(){function e(r){var i=ou(r,Ir);BC(t,i,r,Ir),N1(i,D2(r))}e("bar"),e("pictorialBar")})}var YC=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,i){return Sn(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,i,n){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(n)w(a.getAxes(),function(p,h){if(p.type==="category"&&i!=null){var d=p.getTicksCoords(),v=p.getTickModel().get("alignWithLabel"),m=o[h],g=i[h]==="x1"||i[h]==="y1";if(g&&!v&&(m+=1),d.length<2)return;if(d.length===2){s[h]=p.toGlobalCoord(p.getExtent()[g?1:0]);return}for(var y=void 0,_=void 0,x=1,S=0;S<d.length;S++){var b=d[S].coord,T=S===d.length-1?d[S-1].tickValue+x:d[S].tickValue;if(T===m){_=b;break}else if(T<m)y=b;else if(y!=null&&T>m){_=(b+y)/2;break}S===1&&(x=T-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[h]=p.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(r){return this.getBaseAxis()!==r},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(kt);kt.registerClass(YC);var ly=YC;var M2=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return Sn(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(r,i){var n=gf(this,r,i);return n.progressiveRender&&(n.large=!0),n},e.prototype.brushSelector=function(r,i,n){return n.rect(i.getItemLayout(r))},e.type="series."+Fi,e.dependencies=["grid","polar"],e.defaultOption=Jf(ly.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:Z.color.primary,borderWidth:2}},realtimeSort:!1}),e})(ly),XC=M2;var O2=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),I2=(function(t){L(e,t);function e(r){var i=t.call(this,r)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new O2},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,u=o+l,f=i.startAngle,c=i.endAngle,p=i.clockwise,h=Math.PI*2,d=p?c-f<h:f-c<h;d||(f=c-(p?h:-h));var v=Math.cos(f),m=Math.sin(f),g=Math.cos(c),y=Math.sin(c);d?(r.moveTo(v*o+n,m*o+a),r.arc(v*u+n,m*u+a,l,-Math.PI+f,f,!p)):r.moveTo(v*s+n,m*s+a),r.arc(n,a,s,f,c,!p),r.arc(g*u+n,y*u+a,l,c-Math.PI*2,c-Math.PI,!p),o!==0&&r.arc(n,a,o,c,f,p)},e})(oe),uy=I2;function qC(t,e){e=e||{};var r=e.isRoundCap;return function(i,n,a){var o=n.position;if(!o||o instanceof Array)return ea(i,n,a);var s=t(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,c=u.cy,p=u.r,h=u.r0,d=(p+h)/2,v=u.startAngle,m=u.endAngle,g=(v+m)/2,y=r?Math.abs(p-h)/2:0,_=Math.cos,x=Math.sin,S=f+p*_(v),b=c+p*x(v),T="left",C="top";switch(s){case"startArc":S=f+(h-l)*_(g),b=c+(h-l)*x(g),T="center",C="top";break;case"insideStartArc":S=f+(h+l)*_(g),b=c+(h+l)*x(g),T="center",C="bottom";break;case"startAngle":S=f+d*_(v)+Zp(v,l+y,!1),b=c+d*x(v)+jp(v,l+y,!1),T="right",C="middle";break;case"insideStartAngle":S=f+d*_(v)+Zp(v,-l+y,!1),b=c+d*x(v)+jp(v,-l+y,!1),T="left",C="middle";break;case"middle":S=f+d*_(g),b=c+d*x(g),T="center",C="middle";break;case"endArc":S=f+(p+l)*_(g),b=c+(p+l)*x(g),T="center",C="bottom";break;case"insideEndArc":S=f+(p-l)*_(g),b=c+(p-l)*x(g),T="center",C="top";break;case"endAngle":S=f+d*_(m)+Zp(m,l+y,!0),b=c+d*x(m)+jp(m,l+y,!0),T="left",C="middle";break;case"insideEndAngle":S=f+d*_(m)+Zp(m,-l+y,!0),b=c+d*x(m)+jp(m,-l+y,!0),T="right",C="middle";break;default:return ea(i,n,a)}return i=i||{},i.x=S,i.y=b,i.align=T,i.verticalAlign=C,i}}function KC(t,e,r,i){if(le(i)){t.setTextConfig({rotation:i});return}else if(P(e)){t.setTextConfig({rotation:0});return}var n=t.shape,a=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(a+o)/2,l,u=r(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),t.setTextConfig({rotation:f})}function Zp(t,e,r){return e*Math.sin(t)*(r?-1:1)}function jp(t,e,r){return e*Math.cos(t)*(r?1:-1)}function ZC(t,e,r){var i=t.get("borderRadius");if(i==null)return r?{cornerRadius:0}:null;P(i)||(i=[i,i,i,i]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:U(i,function(a){return Vr(a,n)})}}var fy=Math.max,cy=Math.min,L2=(function(t){L(e,t);function e(){var r=t.call(this)||this;return r.type=Fi,r._isFirstFrame=!0,r}return e.prototype.render=function(r,i,n,a){this._model=r,this._removeOnRenderedListener(n),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,i,n):this._renderNormal(r,i,n,a))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,i){this._progressiveEls=[],this._incrementalRenderLarge(r,i)},e.prototype.eachRendered=function(r){Ca(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var i=r.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(r,i,n,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var p=r.isAnimationEnabled()?r:null,h=N2(r,u);h&&this._enableRealtimeSort(h,s,n);var d=r.get("clip",!0)||h,v=u.getArea();o.removeClipPath();var m=r.get("roundCap",!0),g=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,x=[],S=this._backgroundEls,b=a&&a.isInitSort,T=a&&a.type==="changeAxisOrder";function C(D){var O=$p[u.type](s,D);if(!O)return null;var M=F2(u,c,O);return M.useStyle(y.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",_):M.setShape("cornerRadius",_),x[D]=M,M}s.diff(l).add(function(D){var O=s.getItemModel(D),M=$p[u.type](s,D,O);if(M&&(g&&C(D),!(!s.hasValue(D)||!eE[u.type](M)))){var I=!1;d&&(I=jC[u.type](v,M));var R=$C[u.type](r,s,D,M,c,p,f.model,!1,m);h&&(R.forceLabelAnimation=!0),tE(R,s,D,O,M,r,c,u.type==="polar"),b?R.attr({shape:M}):h?QC(h,p,R,M,D,c,!1,!1):Tt(R,{shape:M},r,D),s.setItemGraphicEl(D,R),o.add(R),R.ignore=I}}).update(function(D,O){var M=s.getItemModel(D),I=$p[u.type](s,D,M);if(I){if(g){var R=void 0;S.length===0?R=C(O):(R=S[O],R.useStyle(y.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),x[D]=R);var k=$p[u.type](s,D),W=oE(c,k,u);He(R,{shape:W},p,D)}var z=l.getItemGraphicEl(O);if(!s.hasValue(D)||!eE[u.type](I)){o.remove(z);return}var X=!1;d&&(X=jC[u.type](v,I),X&&o.remove(z));var $=z&&(z.type==="sector"&&m||z.type==="sausage"&&!m);if($&&(z&&Bo(z,r,O),z=null),z?Xf(z):z=$C[u.type](r,s,D,I,c,p,f.model,!0,m),h&&(z.forceLabelAnimation=!0),T){var K=z.getTextContent();if(K){var te=Ho(K);te.prevValue!=null&&(te.prevValue=te.value)}}else tE(z,s,D,M,I,r,c,u.type==="polar");b?z.attr({shape:I}):h?QC(h,p,z,I,D,c,!0,T):He(z,{shape:I},r,D,null),s.setItemGraphicEl(D,z),z.ignore=X,o.add(z)}}).remove(function(D){var O=l.getItemGraphicEl(D);O&&Bo(O,r,D)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new we);A.removeAll();for(var E=0;E<x.length;++E)A.add(x[E]);o.add(A),this._backgroundEls=x,this._data=s},e.prototype._renderLarge=function(r,i,n){this._clear(),iE(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,i){this._removeBackground(),iE(i,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var i=r.get("clip",!0)&&dC(r.coordinateSystem,!1,r),n=this.group;i?n.setClipPath(i):n.removeClipPath()},e.prototype._enableRealtimeSort=function(r,i,n){var a=this;if(i.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,r,n),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(i,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,i,n){var a=[];return r.each(r.mapDimension(i.dim),function(o,s){var l=n(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:U(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,i,n){for(var a=n.scale,o=r.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:i(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(r,i){for(var n=i.scale,a=n.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,i,n,a){if(this._isOrderChangedWithinSameData(r,i,n)){var o=this._dataSort(r,n,i);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,i,n){var a=i.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(i.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(r,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(r,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var i=this.group,n=this._data;r&&r.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){Bo(a,r,he(a).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=Fi,e})(xt),jC={cartesian2d:function(t,e){var r=e.width<0?-1:1,i=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var n=t.x+t.width,a=t.y+t.height,o=fy(e.x,t.x),s=cy(e.x+e.width,n),l=fy(e.y,t.y),u=cy(e.y+e.height,a),f=s<o,c=u<l;return e.x=f&&o>n?s:o,e.y=c&&l>a?u:l,e.width=f?0:s-o,e.height=c?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var i=e.r;e.r=e.r0,e.r0=i}var n=cy(e.r,t.r),a=fy(e.r0,t.r0);e.r=n,e.r0=a;var o=n-a<0;if(r<0){var i=e.r;e.r=e.r0,e.r0=i}return o}},$C={cartesian2d:function(t,e,r,i,n,a,o,s,l){var u=new _e({shape:N({},i),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,c=n?"height":"width";f[c]=0}return u},polar:function(t,e,r,i,n,a,o,s,l){var u=!n&&l?uy:ci,f=new u({shape:i,z2:1});f.name="item";var c=aE(n);if(f.calculateTextPosition=qC(c,{isRoundCap:u===uy}),a){var p=f.shape,h=n?"r":"endAngle",d={};p[h]=n?i.r0:i.startAngle,d[h]=i[h],(s?He:Tt)(f,{shape:d},a)}return f}};function N2(t,e){var r=t.get("realtimeSort",!0),i=e.getBaseAxis();if(r&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function QC(t,e,r,i,n,a,o,s){var l,u;a?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?He:Tt)(r,{shape:l},e,n,null);var f=e?t.baseAxis.model:null;(o?He:Tt)(r,{shape:u},f,n)}function JC(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var P2=["x","y","width","height"],R2=["cx","cy","r","startAngle","endAngle"],eE={cartesian2d:function(t){return!JC(t,P2)},polar:function(t){return!JC(t,R2)}},$p={cartesian2d:function(t,e,r){var i=t.getItemLayout(e);if(!i)return null;var n=r?B2(r,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*n/2,y:i.y+o*n/2,width:i.width-a*n,height:i.height-o*n}},polar:function(t,e,r){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function k2(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function aE(t){return(function(e){var r=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+r;default:return i}}})(t)}function tE(t,e,r,i,n,a,o,s){var l=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=t.shape,c=ZC(i.getModel("itemStyle"),f,!0);N(f,c),t.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var p=i.getShallow("cursor");p&&t.attr("cursor",p);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?V2(n,a.coordinateSystem):H2(n,a.coordinateSystem),d=pn(i);cn(t,d,{labelFetcher:a,labelDataIndex:r,defaultText:xs(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=t.getTextContent();if(s&&v){var m=i.get(["label","position"]);t.textConfig.inside=m==="middle"?!0:null,KC(t,m==="outside"?h:m,aE(o),i.get(["label","rotate"]))}QS(v,d,a.getRawValue(r),function(y){return Vp(e,y)});var g=i.getModel(["emphasis"]);va(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),dl(t,i),k2(n)&&(t.style.fill="none",t.style.stroke="none",w(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function B2(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var i=t.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,n,a)}var U2=(function(){function t(){}return t})(),rE=(function(t){L(e,t);function e(r){var i=t.call(this,r)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new U2},e.prototype.buildPath=function(r,i){for(var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[a]=u,l[o]=n[f+2],s[a]=n[f+a],s[o]=n[f+o],r.rect(s[0],s[1],l[0],l[1])},e})(oe);function iE(t,e,r,i){var n=t.getData(),a=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=t.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints"),f=i?J0(t):0;if(u){var c=new rE({shape:{points:u},incremental:f,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),r&&r.push(c)}var p=new rE({shape:{points:n.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});p.baseDimIdx=a,p.largeDataIndices=o,p.barWidth=s,e.add(p),p.useStyle(n.getVisual("style")),p.style.stroke=null,he(p).seriesIndex=t.seriesIndex,t.get("silent")||(p.on("mousedown",nE),p.on("mousemove",nE)),r&&r.push(p)}var nE=za(function(t){var e=this,r=z2(e,t.offsetX,t.offsetY);he(e).dataIndex=r>=0?r:null},30,!1);function z2(t,e,r){for(var i=t.baseDimIdx,n=1-i,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,f=0,c=a.length/3;f<c;f++){var p=f*3;if(l[i]=u,l[n]=a[p+2],s[i]=a[p+i],s[n]=a[p+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function oE(t,e,r){if(Xp(r,"cartesian2d")){var i=e,n=r.getArea();return{x:t?i.x:n.x,y:t?n.y:i.y,width:t?i.width:n.width,height:t?n.height:i.height}}else{var n=r.getArea(),a=e;return{cx:n.cx,cy:n.cy,r0:t?n.r0:a.r0,r:t?n.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function F2(t,e,r){var i=t.type==="polar"?ci:_e;return new i({shape:oE(e,r,t),silent:!0,z2:0})}function V2(t,e){if(t.height===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function H2(t,e){if(t.width===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"left":"right"}return t.width>=0?"right":"left"}var sE=L2;function py(t){t.registerChartView(sE),t.registerSeriesModel(XC),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,VC(Fi)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,HC(Fi)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,iu(Fi)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var i=e.componentType||"series";r.eachComponent({mainType:i,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})}),WC(t)}var Qp=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",gt).models[0]},e.type="cartesian2dAxis",e})(xe);lt(Qp,Ip);var lE={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:"auto",onZeroAxisIndex:null,lineStyle:{color:Z.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:Z.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Z.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[Z.color.backgroundTint,Z.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Z.color.neutral00,borderColor:Z.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},G2=ue({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},lE),hy=ue({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Z.color.axisMinorSplitLine,width:1}}},lE),W2=ue({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},hy),Y2=re({logBase:10},hy),uE={category:G2,value:hy,time:W2,log:Y2};function Jp(t,e,r,i){w(Tp,function(n,a){var o=ue(ue({},uE[a],!0),i,!0),s=(function(l){L(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var p=dn(this),h=p?di(f):{},d=c.getTheme();ue(f,d.get(a+"Axis")),ue(f,this.getDefaultOption()),f.type=fE(f),p&&ur(f,h,p)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Zl.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=Za();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",fE)}function fE(t){return t.type||(t.data?"category":"value")}var X2=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return U(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),De(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),cE=X2;var lu=["x","y"];function pE(t){return(t.type==="interval"||t.type==="time")&&!Ma(t)}var q2=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ir,r.dimensions=lu,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!pE(r)||!pE(i))){var n=Xa(r,null),a=Xa(i,null),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),l=n[1]-n[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,p=o[0]-n[0]*f,h=o[1]-a[0]*c,d=this._transform=[f,0,0,c,p,h];this._invTransform=Qt([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(r[0]))&&n.contain(n.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,i){var n=this.dataToPoint(r),a=this.dataToPoint(i),o=this.getArea(),s=new j(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,i,n){n=n||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return qe(n,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=l.toGlobalCoord(l.dataToCoord(o,i)),n},e.prototype.clampData=function(r,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),l=n.parse(r[0]),u=a.parse(r[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},e.prototype.pointToData=function(r,i,n){if(n=n||[],this._invTransform)return qe(n,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(r[0]),i),n[1]=o.coordToData(o.toLocalCoord(r[1]),i),n},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-r,o=Math.min(n[0],n[1])-r,s=Math.max(i[0],i[1])-a+r,l=Math.max(n[0],n[1])-o+r;return new j(a,o,s,l)},e})(cE),hE=q2;function dE(t,e){var r=t.scale,i=t.model,n=Rp(r,i,i.ecModel,t,null),a=vi(r),o=vi(e)?e.intervalStub:e,s=a?r.intervalStub:r,l=r.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,p,h,d;if(c===1)p=h=0,d=1;else if(c===2){var v=Le(u[0].value-u[1].value),m=Le(u[1].value-u[2].value);p=h=0,v===m?d=2:(d=1,v<m?p=v/m:h=m/v)}else{var g=o.getConfig().interval;p=(1-(u[0].value-f[0].value)/g)%1,h=(1-(f[c].value-u[c].value)/g)%1,d=c-(p?1:0)-(h?1:0)}var y=n.zoomFixMM,_=y[0]||y[1],x=[n.fixMM[0]||_,n.fixMM[1]||_],S=r.getExtent(),b=s.getExtent(),T=_p(b,x),C,A,E,D,O,M;function I(te){for(var ie=50,q=0;q<ie&&!te();q++)E=a?E*ce(l,2):qT(E),D=jr(E)}function R(){C=ve(M-E*p,D)}function k(){A=ve(O+E*h,D)}function W(){M=p?ve(C+E*p,D):C}function z(){O=h?ve(A-E*h,D):A}if(x[0]&&x[1]){C=T[0],A=T[1],E=(A-C)/(d+p+h);var X=t.getExtent(),$=Le(X[1]-X[0]);D=I0([A,C],$,.5/d),W(),z(),et(D)&&(E=ve(E,D))}else{var K=T[1]-T[0];E=a?ce(So(K),1):Ei(K/d,kd),D=jr(E),x[0]?(C=T[0],I(function(){if(W(),O=ve(M+E*d,D),k(),A>=T[1])return!0})):x[1]?(A=T[1],I(function(){if(z(),M=ve(O-E*d,D),R(),C<=T[0])return!0})):I(function(){M=ve(Ji(T[0]/E)*E,D),O=ve(Sr(T[1]/E)*E,D);var te=Ht((O-M)/E);if(te<=d){var ie=d-te,q=void 0,ge=n.incl0||a;if(ge&&T[0]===0)q=[0,ie];else if(ge&&T[1]===0)q=[ie,0];else{var Se=Sr(ie/2);q=ie%2===0?[Se,Se]:C+A<T[0]+T[1]?[Se,Se+1]:[Se+1,Se]}if(M=ve(M-E*q[0],D),O=ve(O+E*q[1],D),R(),k(),C<=T[0]&&A>=T[1])return!0}})}Mp(r,x,b,[C,A],S,{interval:E,intervalCount:d,intervalPrecision:D,niceExtent:[M,O]})}var vE=[[3,1],[0,2]],K2=(function(){function t(e,r,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=lu,this._initCartesian(e,r,i),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var i=this._axesMap;w(this._axesList,function(o){I1(o,A1);var s=o.scale;ht(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function n(o){for(var s=fe(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):Lg(f)}w(l,function(c){j2(c,c.__alignTo)?Lg(c):dE(c,c.__alignTo.scale)})}n(i.x),n(i.y);var a={};w(i.x,function(o){mE(i,"y",o,a)}),w(i.y,function(o){mE(i,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,i){var n=wc(e,r),a=this._rect=hi(e.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(dy(o,a),!i){var u=Q2(a,s,o,l,r),f=void 0;if(l)xE?(xE(this._axesList,a),dy(o,a)):f=SE(a.clone(),"axisLabel",null,a,o,u,n);else{var c=J2(e,a,n),p=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;p&&(f=SE(p,h,d,a,o,u,n))}bE(a,o,Kt.determine,null,f,n),w(this._coordsList,function(v){v.calcAffineTransform()})}},t.prototype.getAxis=function(e,r){var i=this._axesMap[e];if(i!=null)return i[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var i="x"+e+"y"+r;return this._coordsMap[i]}F(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===e||a[n].getAxis("y").index===r)return a[n]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},t.prototype.convertFromPixel=function(e,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",gt).models[0],n=e.yAxisModel||r&&r.getReferringComponents("yAxis",gt).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,ne(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,i){var n=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,w(s.x,function(f,c){w(s.y,function(p,h){var d="x"+c+"y"+h,v=new hE(d);v.master=n,v.model=e,n._coordsMap[d]=v,n._coordsList.push(v),v.addAxis(f),v.addAxis(p)})}),yE(s.x),yE(s.y);function u(f){return function(c,p){if(Z2(c,e)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=Ep(c),v=new bC(f,Ap(c,d,!0),[0,0],d,h);v.onBand=Op(v.scale,c),v.inverse=c.get("inverse"),c.axis=v,v.model=c,v.grid=a,v.index=p,a._axesList.push(v),s[f][p]=v,l[f]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],i=[];return w(this.getCartesians(),function(n){var a=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(a);ne(r,a)<0&&r.push(a),ne(i,o)<0&&i.push(o)}),{baseAxes:r,otherAxes:i}},t.create=function(e,r){var i=[];return e.eachComponent("grid",function(n,a){var o=new t(n,e,r);o.name="grid_"+a,o.resize(n,r,!0),n.coordinateSystem=o,i.push(o),w(o._axesList,function(s){O1(s,t.dimIdxMap)})}),e.eachSeries(function(n){var a,o;_b({targetModel:n,coordSysType:Ir,coordSysProvider:s});function s(){var l=IC(n),u=l.xAxisModel,f=l.yAxisModel;a=u.axis,o=f.axis;var c=u.getCoordSysModel(),p=c.coordinateSystem;return p.getCartesian(u.componentIndex,f.componentIndex)}a&&o&&(Og(a,n,Ir),Og(o,n,Ir))},this),i},t.dimensions=lu,t.dimIdxMap=Wl(lu),t})();function Z2(t,e){return t.getCoordSysModel()===e}function mE(t,e,r,i){r.getAxesOnZeroOf=function(){return a?[a]:[]};var n=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)gE(s,n[l])&&(a=n[l]);else for(var u in n)if(Me(n,u)&&gE(s,n[u])&&!i[f(n[u])]){a=n[u];break}a&&(i[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function gE(t,e){if(!e)return!1;var r=e.scale,i=u1(r,0,!1),n=e&&e.type!=="category"&&e.type!=="time"&&i!==Cp;return n&&t==="auto"&&c1(e)&&(n=!1),n}function yE(t){for(var e=fe(t),r,i=[],n=e.length-1;n>=0;n--){var a=t[+e[n]];gp(a.scale)&&Tg(a.model,a.type,!0)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?i.push(a):r=a)}r||(r=i.pop()),r&&w(i,function(o){o.__alignTo=r})}function j2(t,e){return Ma(t.scale)||Ma(e.scale)||e.scale.getTicks().length<2}function $2(t,e){var r=t.getExtent(),i=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(n){return n+e}:function(n){return i-n+e},t.toLocalCoord=t.dim==="x"?function(n){return n-e}:function(n){return i-n+e}}function dy(t,e){w(t.x,function(r){return _E(r,e.x,e.width)}),w(t.y,function(r){return _E(r,e.y,e.height)})}function _E(t,e,r){var i=[0,r],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),$2(t,e)}var xE;function SE(t,e,r,i,n,a,o){bE(i,n,Kt.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(i,0,NaN),f(i,1,NaN);var l=Nh(s,function(p){return p>0})==null;return zo(i,s,!0,!0,r),dy(n,i),l;function u(p){w(n[Ii[p]],function(h){if(Ka(h.model)){var d=a.ensureRecord(h.model),v=d.labelInfoList;if(v)for(var m=0;m<v.length;m++){var g=v[m],y=h.scale.normalize(Ui(h.scale,An(g.label).labelInfo.tick));y=p===1?1-y:y,f(g.rect,p,y),f(g.rect,1-p,NaN)}var _=d.nameLayout;if(_){var y=bn(d.nameLocation)?.5:NaN;f(_.rect,p,y),f(_.rect,1-p,NaN)}}})}function f(p,h,d){var v=t[Ii[h]]-p[Ii[h]],m=p[ba[h]]+p[Ii[h]]-(t[ba[h]]+t[Ii[h]]);v=c(v,1-d),m=c(m,d);var g=vE[h][0],y=vE[h][1];s[g]=ce(s[g],v),s[y]=ce(s[y],m)}function c(p,h){return p>0&&!_i(h)&&h>1e-4&&(p/=h),p}}function Q2(t,e,r,i,n){var a=new iy(eB);return w(r,function(o){return w(o,function(s){if(Ka(s.model)){var l=!i;s.axisBuilder=LC(t,e,s.model,n,a,l)}})}),a}function bE(t,e,r,i,n,a){var o=r===Kt.determine;w(e,function(u){return w(u,function(f){Ka(f.model)&&(NC(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Ii[1-u]]=t[ba[u]]<=a.refContainer[ba[u]]*.5?0:1-u===1?2:1}w(e,function(u,f){return w(u,function(c){Ka(c.model)&&((i==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function J2(t,e,r){var i,n=t.get("outerBoundsMode",!0);n==="same"?i=e.clone():(n==null||n==="auto")&&(i=hi(t.get("outerBounds",!0)||sy,r.refContainer));var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"||ne(["all","axisLabel"],a)<0?o="all":o=a;var s=[df(Y(t.get("outerBoundsClampWidth",!0),su[0]),e.width),df(Y(t.get("outerBoundsClampHeight",!0),su[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var eB=function(t,e,r,i,n,a){var o=r.axis.dim==="x"?"y":"x";ny(t,e,r,i,n,a),bn(t.nameLocation)||w(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&ay(s.labelInfoList,s.dirVec,i,n)})},wE=K2;function TE(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return tB(r,t,e),r.seriesInvolved&&iB(r,t),r}function tB(t,e,r){var i=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];w(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=bs(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",i);if(w(s.getAxes(),Ce(v,!1,null)),s.getTooltipAxes&&i&&c.get("show")){var p=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(p||h)&&w(d.baseAxes,Ce(v,h?"cross":!0,p)),h&&w(d.otherAxes,Ce(v,"cross",!1))}function v(m,g,y){var _=y.model.getModel("axisPointer",n),x=_.get("show");if(!(!x||x==="auto"&&!m&&!my(_))){g==null&&(g=_.get("triggerTooltip")),_=m?rB(y,c,n,e,m,g):_;var S=_.get("snap"),b=_.get("triggerEmphasis"),T=bs(y.model),C=g||S||y.type==="category",A=t.axesInfo[T]={key:T,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:b,involveSeries:C,snap:S,useHandle:my(_),seriesModels:[],linkGroup:null};u[T]=A,t.seriesInvolved=t.seriesInvolved||C;var E=nB(a,y);if(E!=null){var D=o[E]||(o[E]={axesInfo:{}});D.axesInfo[T]=A,D.mapper=a[E].mapper,A.linkGroup=D}}}})}function rB(t,e,r,i,n,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};w(s,function(p){l[p]=Q(o.get(p))}),l.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&re(u,c.textStyle)}}return t.model.getModel("axisPointer",new Te(l,r,i))}function iB(t,e){e.eachSeries(function(r){var i=r.coordinateSystem,n=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!i||!i.model||n==="none"||n===!1||n==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||w(t.coordSysAxesInfo[bs(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function nB(t,e){for(var r=e.model,i=e.dim,n=0;n<t.length;n++){var a=t[n]||{};if(vy(a[i+"AxisId"],r.id)||vy(a[i+"AxisIndex"],r.componentIndex)||vy(a[i+"AxisName"],r.name))return n}}function vy(t,e){return t==="all"||P(t)&&ne(t,e)>=0||t===e}function CE(t){var e=eh(t);if(e){var r=e.axisPointerModel,i=e.axis.scale,n=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=i.parse(o));var s=my(r);a==null&&(n.status=s?"show":"hide");var l=i.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function eh(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[bs(t)]}function EE(t){var e=eh(t);return e&&e.axisPointerModel}function my(t){return!!t.get(["handle","show"])}function bs(t){return t.type+"||"+t.id}var AE={},aB=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n,a){this.axisPointerClass&&CE(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,n,!0)},e.prototype.updateAxisPointer=function(r,i,n,a){this._doUpdateAxisPointerClass(r,n,!1)},e.prototype.remove=function(r,i){var n=this._axisPointer;n&&n.remove(i)},e.prototype.dispose=function(r,i){this._disposeAxisPointer(i),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,i,n){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=EE(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,i,n):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,i){AE[r]=i},e.getAxisPointerClass=function(r){return r&&AE[r]},e.type="axis",e})(st),th=aB;var yy=ae();function DE(t,e,r,i){var n=r.axis;if(!n.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=yy(t).splitAreaColors,p=V(),h=0;if(c)for(var d=0;d<u.length;d++){var v=c.get(u[d].tickValue);if(v!=null){h=(v+(f-1)*d)%f;break}}var m=n.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=P(s)?s:[s];for(var d=1;d<u.length;d++){var y=n.toGlobalCoord(u[d].coord),_=void 0,x=void 0,S=void 0,b=void 0;n.isHorizontal()?(_=m,x=l.y,S=y-_,b=l.height,m=_+S):(_=l.x,x=m,S=l.width,b=y-x,m=x+b);var T=u[d-1].tickValue;T!=null&&p.set(T,h),e.add(new _e({anid:T!=null?"area_"+T:null,shape:{x:_,y:x,width:S,height:b},style:re({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%f}yy(t).splitAreaColors=p}}}function ME(t){yy(t).splitAreaColors=null}var oB=["splitArea","splitLine","minorSplitLine","breakArea"],OE=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new we,this.group.add(this._axisGroup),!!Ka(r)){this._axisGroup.add(r.axis.axisBuilder.group),w(oB,function(l){r.get([l,"show"])&&sB[l](this,this._axisGroup,r,r.getCoordSysModel(),n)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||Xv(o,this._axisGroup,r),t.prototype.render.call(this,r,i,n,a)}},e.prototype.remove=function(){ME(this)},e.type="cartesianAxis",e})(th),sB={splitLine:function(t,e,r,i,n){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=P(l)?l:[l];for(var c=i.coordinateSystem.getRect(),p=a.isHorizontal(),h=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),v=[],m=[],g=s.getLineStyle(),y=0;y<d.length;y++){var _=a.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!f)){var x=d[y].tickValue;p?(v[0]=_,v[1]=c.y,m[0]=_,m[1]=c.y+c.height):(v[0]=c.x,v[1]=_,m[0]=c.x+c.width,m[1]=_);var S=h++%l.length,b=new or({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:m[0],y2:m[1]},style:re({stroke:l[S]},g),silent:!0});wa(b.shape,g.lineWidth),e.add(b)}}}},minorSplitLine:function(t,e,r,i,n){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=i.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],p=[],h=s.getLineStyle(),d=0;d<f.length;d++)for(var v=0;v<f[d].length;v++){var m=a.toGlobalCoord(f[d][v].coord);u?(c[0]=m,c[1]=l.y,p[0]=m,p[1]=l.y+l.height):(c[0]=l.x,c[1]=m,p[0]=l.x+l.width,p[1]=m);var g=new or({anid:"minor_line_"+f[d][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:h,silent:!0});wa(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,r,i,n){DE(t,e,r,i)},breakArea:function(t,e,r,i,n){var a=Za(),o=r.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(e,t,r,i.coordinateSystem.getRect(),n)}},_y=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(OE);var IE=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=_y.type,r}return e.type="yAxis",e})(OE);var lB=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,i){this.group.removeAll(),r.get("show")&&this.group.add(new _e({shape:r.coordinateSystem.getRect(),style:re({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(st),LE={offset:0};function NE(t){t.registerComponentView(lB),t.registerComponentModel(zC),t.registerCoordinateSystem("cartesian2d",wE),Jp(t,"x",Qp,LE),Jp(t,"y",Qp,LE),t.registerComponentView(_y),t.registerComponentView(IE),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var Qa=ae(),PE=Q,xy=pe,uB=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,i,n){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,r,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new we,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),i.getZr().add(s);else{var p=Ce(RE,r,c);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,r)}BE(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var i=r.get("animation"),n=e.axis,a=n.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&$r(n).w>s)return!0;if(o){var l=eh(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},t.prototype.makeElOption=function(e,r,i,n,a){},t.prototype.createPointerEl=function(e,r,i,n){var a=r.pointer;if(a){var o=Qa(e).pointerEl=new _t[a.type](PE(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,i,n){if(r.label){var a=Qa(e).labelEl=new Oe(PE(r.label));e.add(a),kE(a,n)}},t.prototype.updatePointerEl=function(e,r,i){var n=Qa(e).pointerEl;n&&r.pointer&&(n.setStyle(r.pointer.style),i(n,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,i,n){var a=Qa(e).labelEl;a&&(a.setStyle(r.label.style),i(a,{x:r.label.x,y:r.label.y}),kE(a,n))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Ta(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Uu(u.event)},onmousedown:xy(this._onHandleDragMove,this,0,0),drift:xy(this._onHandleDragMove,this),ondragend:xy(this._onHandleDragEnd,this)}),i.add(n)),BE(n,r,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");P(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Vc(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){RE(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Sy(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(Sy(i),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Sy(n)),Qa(i).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),i=this._group,n=this._handle;r&&i&&(this._lastGraphicKey=null,i&&r.remove(i),n&&r.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Rl(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,i){return i=i||0,{x:e[i],y:e[1-i],width:r[i],height:r[1-i]}},t})();function RE(t,e,r,i){UE(Qa(r).lastProp,i)||(Qa(r).lastProp=i,e?He(r,i,t):(r.stopAnimation(),r.attr(i)))}function UE(t,e){if(F(t)&&F(e)){var r=!0;return w(e,function(i,n){r=r&&UE(t[n],i)}),!!r}else return t===e}function kE(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Sy(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function BE(t,e,r){var i=e.get("z"),n=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=r)})}var zE=uB;function FE(t){var e=t.get("type"),r=t.getModel(e+"Style"),i;return e==="line"?(i=r.getLineStyle(),i.fill=null):e==="shadow"&&(i=r.getAreaStyle(),i.stroke=null),i}function fB(t,e,r,i,n){var a=r.get("value"),o=by(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=pi(s.get("padding")||0),u=s.getFont(),f=of(o,u),c=n.position,p=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=n.align;d==="right"&&(c[0]-=p),d==="center"&&(c[0]-=p/2);var v=n.verticalAlign;v==="bottom"&&(c[1]-=h),v==="middle"&&(c[1]-=h/2),cB(c,p,h,i);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Xr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function cB(t,e,r,i){var n=i.getWidth(),a=i.getHeight();t[0]=Math.min(t[0]+e,n)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function by(t,e,r,i,n){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:n.precision}),o=n.formatter;if(o){var s={value:gs(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};w(i,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),B(o)?a=o.replace("{value}",a):G(o)&&(a=o(s))}return a}function wy(t,e,r){var i=mt();return Fn(i,i,r.rotation),so(i,i,r.position),Zf([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],i)}function VE(t,e,r,i,n,a){var o=Kp.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get(["label","margin"]),fB(e,i,n,a,{position:wy(i.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function HE(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function GE(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function WE(t,e,r){return $r(t,{fromStat:{sers:U(e,function(i){return r.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function YE(t,e,r){return[ce(Ue(e[0],e[1]),t-r/2),Ue(t+r/2,ce(e[0],e[1]))]}var pB=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,i,n,a,o){var s=n.axis,l=s.grid,u=a.get("type"),f=s.getGlobalExtent(),c=qE(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var h=FE(a),d=hB[u](s,p,f,c,a.get("seriesDataIndices"),a.ecModel);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=au(l.getRect(),n);VE(i,r,v,n,a,o)},e.prototype.getHandleTransform=function(r,i,n){var a=au(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=wy(i.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=qE(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=i[f],c[f]=Ue(l[1],c[f]),c[f]=ce(l[0],c[f]);var p=(u[1]+u[0])/2,h=[p,p];h[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:d[f]}},e})(zE);function qE(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var hB={line:function(t,e,r,i){var n=HE([e,i[0]],[e,i[1]],KE(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r,i,n,a){var o=WE(t,n,a),s=i[1]-i[0],l=YE(e,r,o),u=l[0],f=l[1];return{type:"Rect",shape:GE([u,i[0]],[f-u,s],KE(t))}}};function KE(t){return t.dim==="x"?0:1}var ZE=pB;var dB=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Z.color.border,width:1,type:"dashed"},shadowStyle:{color:Z.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:Z.color.neutral00,padding:[5,7,5,7],backgroundColor:Z.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:Z.color.accent40,throttle:40}},e})(xe),jE=dB;var Vi=ae(),vB=w;function rh(t,e,r){if(!ee.node){var i=e.getZr();Vi(i).records||(Vi(i).records={}),mB(i,e);var n=Vi(i).records[t]||(Vi(i).records[t]={});n.handler=r}}function mB(t,e){if(Vi(t).initialized)return;Vi(t).initialized=!0,r("click",Ce(Ty,"click")),r("mousemove",Ce(Ty,"mousemove")),r("mousewheel",Ce(Ty,"mousewheel")),r("globalout",yB);function r(i,n){t.on(i,function(a){var o=_B(e);vB(Vi(t).records,function(s){s&&n(s,a,o.dispatchAction)}),gB(o.pendings,e)})}}function gB(t,e){var r=t.showTip.length,i=t.hideTip.length,n;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function yB(t,e,r){t.handler("leave",null,r)}function Ty(t,e,r,i){e.handler(t,r,i)}function _B(t){var e={showTip:[],hideTip:[]},r=function(i){var n=e[i.type];n?n.push(i):(i.dispatchAction=r,t.dispatchAction(i))};return{dispatchAction:r,pendings:e}}function uu(t,e){if(!ee.node){var r=e.getZr(),i=(Vi(r).records||{})[t];i&&(Vi(r).records[t]=null)}}var xB=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n){var a=i.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";rh("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,i){uu("axisPointer",i)},e.prototype.dispose=function(r,i){uu("axisPointer",i)},e.type="axisPointer",e})(st),QE=xB;function fu(t,e){var r=[],i=t.seriesIndex,n;if(i==null||!(n=e.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=wr(a,t);if(o==null||o<0||P(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,p=u.dim,h=c==="x"||c==="radius"?1:0,d=a.mapDimension(p),v=[];v[h]=a.get(d,o),v[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(v)||[]}else r=l.dataToPoint(a.getValues(U(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var JE=ae();function Cy(t,e,r){var i=t.currTrigger,n=[t.x,t.y],a=t,o=t.dispatchAction||pe(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){ih(n)&&(n=fu({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=ih(n),u=a.axesInfo,f=s.axesInfo,c=i==="leave"||ih(n),p={},h={},d={list:[],map:{}},v={showPointer:Ce(bB,h),showTooltip:Ce(wB,d)};w(s.coordSysMap,function(g,y){var _=l||g.containPoint(n);w(s.coordSysAxesInfo[y],function(x,S){var b=x.axis,T=AB(u,x);if(!c&&_&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=b.pointToData(n)),C!=null&&eA(x,C,v,!1,p)}})});var m={};return w(f,function(g,y){var _=g.linkGroup;_&&!h[y]&&w(_.axesInfo,function(x,S){var b=h[S];if(x!==g&&b){var T=b.value;_.mapper&&(T=g.axis.scale.parse(_.mapper(T,tA(x),tA(g)))),m[g.key]=T}})}),w(m,function(g,y){eA(f[y],g,v,!0,p)}),TB(h,f,p),CB(d,n,t,o),EB(f,o,r),p}}function eA(t,e,r,i,n){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=SB(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&N(n,s[0]),!i&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function SB(t,e){var r=e.axis,i=r.dim,n=t,a=[],o=Number.MAX_VALUE,s=-1;return w(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),c,p;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,t,r);p=h.dataIndices,c=h.nestestValue}else{if(p=l.indicesOfNearest(i,f[0],t,r.type==="category"?.5:null),!p.length)return;c=l.getData().get(f[0],p[0])}if(et(c)){var d=t-c,v=Math.abs(d);v<=o&&((v<o||d>=0&&s<0)&&(o=v,s=d,n=c,a.length=0),w(p,function(m){a.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:n}}function bB(t,e,r,i){t[e.key]={value:r,payloadBatch:i}}function wB(t,e,r,i){var n=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=bs(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function TB(t,e,r){var i=r.axesInfo=[];w(e,function(n,a){var o=n.axisPointerModel.option,s=t[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function CB(t,e,r,i){if(ih(e)||!t.list.length){i({type:"hideTip"});return}var n=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:t.list})}function EB(t,e,r){var i=r.getZr(),n="axisPointerLastHighlights",a=JE(i)[n]||{},o=JE(i)[n]={};w(t,function(f,c){var p=f.axisPointerModel.option;p.status==="show"&&f.triggerEmphasis&&w(p.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}w(a,function(f,c){!o[c]&&l.push(u(f))}),w(o,function(f,c){!a[c]&&s.push(u(f))}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function AB(t,e){for(var r=0;r<(t||[]).length;r++){var i=t[r];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function tA(t){var e=t.axis.model,r={},i=r.axisDim=t.axis.dim;return r.axisIndex=r[i+"AxisIndex"]=e.componentIndex,r.axisName=r[i+"AxisName"]=e.name,r.axisId=r[i+"AxisId"]=e.id,r}function ih(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function nh(t){th.registerAxisPointerClass("CartesianAxisPointer",ZE),t.registerComponentModel(jE),t.registerComponentView(QE),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!P(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=TE(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Cy)}function Ey(t){zt(NE),zt(nh)}function rA(t,e){var r=pi(e.get("padding")),i=e.getItemStyle(["color","opacity"]);i.fill=e.get("backgroundColor");var n=new _e({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1});return n}var DB=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Z.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Z.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:Z.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:Z.color.tertiary,fontSize:14}},e})(xe),iA=DB;function ah(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function nA(t){if(ee.domSupported){for(var e=document.documentElement.style,r=0,i=t.length;r<i;r++)if(t[r]in e)return t[r]}}var Ay=nA(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),aA=nA(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Dy(t,e){if(!t)return e;e=qo(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function oA(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}var MB=Dy(aA,"transition"),My=Dy(Ay,"transform"),OB="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ee.transform3dSupported?"will-change:transform;":"");function IB(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function LB(t,e,r){if(!B(r)||r==="inside")return"";var i=t.get("backgroundColor"),n=t.get("borderWidth");e=qr(e);var a=IB(r),o=Math.max(Math.round(n)*1.5,6),s="",l=My+":",u;ne(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+n,p=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((p-Math.SQRT2*n)/2+Math.SQRT2*n-(p-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var d=e+" solid "+n+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"];return'<div style="'+v.join("")+'"></div>'}function NB(t,e,r){var i="cubic-bezier(0.23,1,0.32,1)",n="",a="";return r&&(n=" "+t/2+"s "+i,a="opacity"+n+",visibility"+n),e||(n=" "+t+"s "+i,a+=(a.length?",":"")+(ee.transformSupported?""+My+n:",left"+n+",top"+n)),MB+":"+a}function sA(t,e,r){var i=t.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!ee.transformSupported)return r?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=ee.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return r?"top:0;left:0;"+My+":"+o+";":[["top",0],["left",0],[Ay,o]]}function PB(t){var e=[],r=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var n=Y(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+n+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),w(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function RB(t,e,r,i){var n=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),c=t.getModel("textStyle"),p=kc(t,"html"),h=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+h),e&&a>0&&n.push(NB(a,r,i)),o&&n.push("background-color:"+o),w(["width","color","radius"],function(d){var v="border-"+d,m=qo(v),g=t.get(m);g!=null&&n.push(v+":"+g+(d==="color"?"":"px"))}),n.push(PB(c)),p!=null&&n.push("padding:"+pi(p).join("px ")+"px"),n.join(";")+";"}function lA(t,e,r,i,n){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&S_(t,o,r,i,n)}else{t[0]=i,t[1]=n;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var kB=(function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ee.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=e.getZr(),a=r.appendTo,o=a&&(B(a)?document.querySelector(a):Pn(a)?a:G(a)&&a(e.getDom()));lA(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(i),this._api=e,this._container=o;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=n.handler,f=n.painter.getViewportRoot();Vt(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),i=oA(r,"position"),n=r.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=OB+RB(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+sA(a[0],a[1],!0)+("border-color:"+qr(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,i,n,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(B(a)&&i.get("trigger")==="item"&&!ah(i)&&(s=LB(i,n,a)),B(e))o.innerHTML=e+s;else if(e){o.innerHTML="",P(e)||(e=[e]);for(var l=0;l<e.length;l++)Pn(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var i=this._styleCoord;if(lA(i,this._zr,this._container,e,r),i[0]!=null&&i[1]!=null){var n=this.el.style,a=sA(i[0],i[1]);w(a,function(o){n[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",ee.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(pe(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;b_(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var i=r.parentNode;i&&i.removeChild(r)}this.el=this._container=null},t})(),uA=kB;var BB=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),cA(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,i,n,a){var o=this;F(e)&&ft(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new Oe({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:kc(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),w(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),w(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),i=fA(e.style);return[r.width+i.left+i.right,r.height+i.top+i.bottom]},t.prototype.moveTo=function(e,r){var i=this.el;if(i){var n=this._styleCoord;cA(n,this._zr,e,r),e=n[0],r=n[1];var a=i.style,o=Dn(a.borderWidth||0),s=fA(a);i.x=e+o+s.left,i.y=r+o+s.top,i.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(pe(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function Dn(t){return Math.max(0,t)}function fA(t){var e=Dn(t.shadowBlur||0),r=Dn(t.shadowOffsetX||0),i=Dn(t.shadowOffsetY||0);return{left:Dn(e-r),right:Dn(e+r),top:Dn(e-i),bottom:Dn(e+i)}}function cA(t,e,r,i){t[0]=r,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var pA=BB;var UB=new _e({shape:{x:-1,y:-1,width:2,height:2}}),zB=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,i){if(!(ee.node||!i.getDom())){var n=r.getComponent("tooltip"),a=this._renderMode=q0(n.get("renderMode"));this._tooltipContent=a==="richText"?new pA(i):new uA(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(r,i,n){if(!(ee.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Vc(this,"_updatePosition",50,"fixRate"):Rl(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,i=r.get("triggerOn");rh("itemTooltip",this._api,pe(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,i=this._ecModel,n=this._api,a=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(r,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,i,n,a){if(!(a.from===this.uid||ee.node||!n.getDom())){var o=hA(a,n);this._ticket="";var s=a.dataByCoordSys,l=GB(a,i,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=UB;f.x=a.x,f.y=a.y,f.update(),he(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(r,i,n,a))return;var c=fu(a,i),p=c.point[0],h=c.point[1];p!=null&&h!=null&&this._tryShow({offsetX:p,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide(hA(a,n))},e.prototype._manuallyAxisShowTip=function(r,i,n,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),c=cu([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,i){var n=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(n){var s=he(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;Fa(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(he(f).dataIndex!=null?l=f:he(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,i):u?this._showComponentItemTooltip(r,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(i)}},e.prototype._showOrMove=function(r,i){var n=r.get("showDelay");i=pe(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},e.prototype._showAxisTooltip=function(r,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=cu([i.tooltipOption],a),l=this._renderMode,u=[],f=Ba("section",{blocks:[],noHeader:!0}),c=[],p=new Bc;w(r,function(y){w(y.dataByAxis,function(_){var x=n.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value,b=x.axis,T=b.scale.parse(S);if(!(!x||S==null)){var C=by(S,b,n,_.seriesDataIndices,_.valueLabelOpt),A=Ba("section",{header:C,noHeader:!ut(C),sortBlocks:!0,blocks:[]});f.blocks.push(A),w(_.seriesDataIndices,function(E){var D=n.getSeriesByIndex(E.seriesIndex),O=E.dataIndexInside,M=D.getDataParams(O);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=gs(x.axis,{value:T}),M.axisValueLabel=C,M.marker=p.makeTooltipMarker("item",qr(M.color),l);var I=Om(D.formatTooltip(O,!0,null)),R=I.frag;if(R){var k=cu([D],a).get("valueFormatter");A.blocks.push(k?N({valueFormatter:k},R):R)}I.text&&c.push(I.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var h=i.position,d=s.get("order"),v=km(f,p,l,d,n.get("useUTC"),s.get("textStyle"));v&&c.unshift(v);var m=l==="richText"?`
180
+
181
+ `:"<br/>",g=c.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],h,null,p)})},e.prototype._showSeriesItemTooltip=function(r,i,n){var a=this._ecModel,o=he(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,p=u.getData(c),h=this._renderMode,d=r.positionDefault,v=cu([p.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),m=v.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,c),y=new Bc;g.marker=y.makeTooltipMarker("item",qr(g.color),h);var _=Om(u.formatTooltip(f,!1,c)),x=v.get("order"),S=v.get("valueFormatter"),b=_.frag,T=b?km(S?N({valueFormatter:S},b):b,y,h,x,a.get("useUTC"),v.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(v,function(){this._showTooltipContent(v,T,g,C,r.offsetX,r.offsetY,r.position,r.target,y)}),n({type:"showTip",dataIndexInside:f,dataIndex:p.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,i,n){var a=this._renderMode==="html",o=he(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(B(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=Q(l),l.content=nt(l.content));var c=[l],p=this._ecModel.getComponent(o.componentMainType,o.componentIndex);p&&c.push(p),c.push({formatter:l.content});var h=r.positionDefault,d=cu(c,this._tooltipModel,h?{position:h}:null),v=d.get("content"),m=Math.random()+"",g=new Bc;this._showOrMove(d,function(){var y=Q(d.get("formatterParams")||{});this._showTooltipContent(d,v,y,m,r.offsetX,r.offsetY,r.position,i,g)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,i,n,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var p=r.get("formatter");l=l||r.get("position");var h=i,d=this._getNearestPoint([o,s],n,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),v=d.color;if(p)if(B(p)){var m=r.ecModel.get("useUTC"),g=P(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=p,y&&(h=Li(g.axisValue,h,m)),h=Ko(h,n,!0)}else if(G(p)){var _=pe(function(x,S){x===this._ticket&&(c.setContent(S,f,r,v,l),this._updatePosition(r,l,o,s,c,n,u))},this);this._ticket=a,h=p(n,a,_)}else h=p;c.setContent(h,f,r,v,l),c.show(r,v),this._updatePosition(r,l,o,s,c,n,u)}},e.prototype._getNearestPoint=function(r,i,n,a,o){if(n==="axis"||P(i))return{color:a||o};if(!P(i))return{color:a||i.color||i.borderColor}},e.prototype._updatePosition=function(r,i,n,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||r.get("position");var c=o.getSize(),p=r.get("align"),h=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),G(i)&&(i=i([n,a],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),P(i))n=Ze(i[0],u),a=Ze(i[1],f);else if(F(i)){var v=i;v.width=c[0],v.height=c[1];var m=hi(v,{width:u,height:f});n=m.x,a=m.y,p=null,h=null}else if(B(i)&&l){var g=HB(i,d,c,r.get("borderWidth"));n=g[0],a=g[1]}else{var g=FB(n,a,o,u,f,p?null:20,h?null:20);n=g[0],a=g[1]}if(p&&(n-=dA(p)?c[0]/2:p==="right"?c[0]:0),h&&(a-=dA(h)?c[1]/2:h==="bottom"?c[1]:0),ah(r)){var g=VB(n,a,o,u,f);n=g[0],a=g[1]}o.moveTo(n,a)},e.prototype._updateContentNotChangedOnAxis=function(r,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===r.length;return o&&w(n,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&w(u,function(p,h){var d=c[h]||{},v=p.seriesDataIndices||[],m=d.seriesDataIndices||[];o=o&&p.value===d.value&&p.axisType===d.axisType&&p.axisId===d.axisId&&v.length===m.length,o&&w(v,function(g,y){var _=m[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&w(p.seriesDataIndices,function(g){var y=g.seriesIndex,_=i[y],x=a[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=i,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,i){ee.node||!i.getDom()||(Rl(this,"_updatePosition"),this._tooltipContent.dispose(),uu("itemTooltip",i),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(st);function cu(t,e,r){var i=e.ecModel,n;r?(n=new Te(r,i,i),n=new Te(e.option,n,i)):n=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof Te&&(o=o.get("tooltip",!0)),B(o)&&(o={formatter:o}),o&&(n=new Te(o,n,i)))}return n}function hA(t,e){return t.dispatchAction||pe(e.dispatchAction,e)}function FB(t,e,r,i,n,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>i?t-=l+a:t+=a),o!=null&&(e+u+o>n?e-=u+o:e+=o),[t,e]}function VB(t,e,r,i,n){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,i)-o,e=Math.min(e+s,n)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function HB(t,e,r,i){var n=r[0],a=r[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-n/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function dA(t){return t==="center"||t==="middle"}function GB(t,e,r){var i=il(t).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=rn(e,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=he(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}var vA=zB;function Oy(t){zt(nh),t.registerComponentModel(iA),t.registerComponentView(vA),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ke),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ke)}var WB=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},YB=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.call(this,r,i),this._updateSelector(r)},e.prototype._updateSelector=function(r){var i=r.selector,n=this.ecModel;i===!0&&(i=r.selector=["all","inverse"]),P(i)&&w(i,function(a,o){B(a)&&(a={type:a}),i[o]=ue(a,WB(n,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var i=!1,n=0;n<r.length;n++){var a=r[n].get("name");if(this.isSelected(a)){this.select(a),i=!0;break}}!i&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var i=[],n=[];r.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,p=c.getAllNames();r.isSeriesFiltered(l)||(n=n.concat(p)),p.length?i=i.concat(p):f=!0}else f=!0;f&&To(l)&&i.push(l.name)}),this._availableNames=n;var a=this.get("data")||i,o=V(),s=U(a,function(l){return(B(l)||le(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Te(l,this,this.ecModel))},this);this._data=De(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var i=this.option.selected,n=this.get("selectedMode");if(n==="single"){var a=this._data;w(a,function(o){i[o.get("name")]=!1})}i[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var i=this.option.selected;i.hasOwnProperty(r)||(i[r]=!0),this[i[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,i=this.option.selected;w(r,function(n){i[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,i=this.option.selected;w(r,function(n){var a=n.get("name",!0);i.hasOwnProperty(a)||(i[a]=!0),i[a]=!i[a]})},e.prototype.isSelected=function(r){var i=this.option.selected;return!(i.hasOwnProperty(r)&&!i[r])&&ne(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:Z.size.m,align:"auto",backgroundColor:Z.color.transparent,borderColor:Z.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:Z.color.disabled,inactiveBorderColor:Z.color.disabled,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:Z.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:Z.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:Z.color.tertiary,borderWidth:1,borderColor:Z.color.border},emphasis:{selectorLabel:{show:!0,color:Z.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(xe),pu=YB;var ws=Ce,Iy=w,oh=we,XB=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new oh),this.group.add(this._selectorGroup=new oh),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,i,n,l,s,u);var f=wc(r,n).refContainer,c=r.getBoxLayoutParams(),p=r.get("padding"),h=hi(c,f,p),d=this.layoutInner(r,o,h,a,l,u),v=hi(re({width:d.width,height:d.height},c),f,p);this.group.x=v.x-d.x,this.group.y=v.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=rA(d,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,i,n,a,o,s,l){var u=this.getContentGroup(),f=V(),c=i.get("selectedMode"),p=i.get("triggerEvent"),h=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),Iy(i.getData(),function(d,v){var m=this,g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
182
+ `)){var y=new oh;y.newline=!0,u.add(y);return}var _=n.getSeriesByName(g)[0];if(!f.get(g))if(_){var x=_.getData(),S=x.getVisual("legendLineStyle")||{},b=x.getVisual("legendIcon"),T=x.getVisual("style"),C=this._createItem(_,g,v,d,i,r,S,T,b,c,a);C.on("click",ws(mA,g,null,a,h)).on("mouseover",ws(Ly,_.name,null,a,h)).on("mouseout",ws(Ny,_.name,null,a,h)),n.ssr&&C.eachChild(function(A){var E=he(A);E.seriesIndex=_.seriesIndex,E.dataIndex=v,E.ssrType="legend"}),p&&C.eachChild(function(A){m.packEventData(A,i,_,v,g)}),f.set(g,!0)}else n.eachRawSeries(function(A){var E=this;if(!f.get(g)&&A.legendVisualProvider){var D=A.legendVisualProvider;if(!D.containName(g))return;var O=D.indexOfName(g),M=D.getItemVisual(O,"style"),I=D.getItemVisual(O,"legendIcon"),R=bt(M.fill);R&&R[3]===0&&(R[3]=.2,M=N(N({},M),{fill:ti(R,"rgba")}));var k=this._createItem(A,g,v,d,i,r,{},M,I,c,a);k.on("click",ws(mA,null,g,a,h)).on("mouseover",ws(Ly,null,g,a,h)).on("mouseout",ws(Ny,null,g,a,h)),n.ssr&&k.eachChild(function(W){var z=he(W);z.seriesIndex=A.seriesIndex,z.dataIndex=v,z.ssrType="legend"}),p&&k.eachChild(function(W){E.packEventData(W,i,A,v,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,i,a,s,l)},e.prototype.packEventData=function(r,i,n,a,o){var s={componentType:"legend",componentIndex:i.componentIndex,dataIndex:a,value:o,seriesIndex:n.seriesIndex};he(r).eventData=s},e.prototype._createSelector=function(r,i,n,a,o){var s=this.getSelectorGroup();Iy(r,function(u){var f=u.type,c=new Oe({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(c);var p=i.getModel("selectorLabel"),h=i.getModel(["emphasis","selectorLabel"]);cn(c,{normal:p,emphasis:h},{defaultText:u.title}),Io(c)})},e.prototype._createItem=function(r,i,n,a,o,s,l,u,f,c,p){var h=r.visualDrawType,d=o.get("itemWidth"),v=o.get("itemHeight"),m=o.isSelected(i),g=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var x=qB(f,a,l,u,h,m,p),S=new oh,b=a.getModel("textStyle");if(G(r.getLegendIcon)&&(!_||_==="inherit"))S.add(r.getLegendIcon({itemWidth:d,itemHeight:v,icon:f,iconRotate:g,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var T=_==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;S.add(KB({itemWidth:d,itemHeight:v,icon:f,iconRotate:T,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?d+5:-5,A=s,E=o.get("formatter"),D=i;B(E)&&E?D=E.replace("{name}",i??""):G(E)&&(D=E(i));var O=m?b.getTextColor():a.get("inactiveColor");S.add(new Oe({style:Xr(b,{text:D,x:C,y:v/2,fill:O,align:A,verticalAlign:"middle"},{inheritColor:O})}));var M=new _e({shape:S.getBoundingRect(),style:{fill:"transparent"}}),I=a.getModel("tooltip");return I.get("show")&&Fo({el:M,componentModel:o,itemName:i,itemTooltipOption:I.option}),S.add(M),S.eachChild(function(R){R.silent=!0}),M.silent=!c,this.getContentGroup().add(S),Io(S),S.__legendDataIndex=n,S},e.prototype.layoutInner=function(r,i,n,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ia(r.get("orient"),l,r.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Ia("horizontal",u,r.get("selectorItemGap",!0));var p=u.getBoundingRect(),h=[-p.x,-p.y],d=r.get("selectorButtonGap",!0),v=r.getOrient().index,m=v===0?"width":"height",g=v===0?"height":"width",y=v===0?"y":"x";s==="end"?h[v]+=f[m]+d:c[v]+=p[m]+d,h[1-v]+=f[g]/2-p[g]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[m]=f[m]+d+p[m],_[g]=Math.max(f[g],p[g]),_[y]=Math.min(0,p[y]+h[1-v]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(st);function qB(t,e,r,i,n,a,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),Iy(m,function(y,_){m[_]==="inherit"&&(m[_]=g[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=t.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?i.decal:Vl(c,o),u.fill==="inherit"&&(u.fill=i[n]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?i:r).opacity),s(u,i);var p=e.getModel("lineStyle"),h=p.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),h.stroke==="auto"&&(h.stroke=i.fill),!a){var d=e.get("inactiveBorderWidth"),v=u[f];u.lineWidth=d==="auto"?i.lineWidth>0&&v?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=p.get("inactiveColor"),h.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function KB(t){var e=t.icon||"roundRect",r=cr(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=Z.color.neutral00,r.style.lineWidth=2),r}function mA(t,e,r,i){Ny(t,e,r,i),r.dispatchAction({type:"legendToggleSelect",name:t??e}),Ly(t,e,r,i)}function Ly(t,e,r,i){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function Ny(t,e,r,i){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}var sh=XB;function hu(t,e,r){var i=t==="allSelect"||t==="inverseSelect",n={},a=[];r.eachComponent({mainType:"legend",query:e},function(s){i?s[t]():s[t](e.name),gA(s,n),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){w(n,function(l,u){s[l?"select":"unSelect"](u)}),gA(s,o)}),i?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function gA(t,e){var r=e||{};return w(t.getData(),function(i){var n=i.get("name");if(!(n===`
183
+ `||n==="")){var a=t.isSelected(n);Me(r,n)?r[n]=r[n]&&a:r[n]=a}}),r}function yA(t){t.registerAction("legendToggleSelect","legendselectchanged",Ce(hu,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Ce(hu,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Ce(hu,"inverseSelect")),t.registerAction("legendSelect","legendselected",Ce(hu,"select")),t.registerAction("legendUnSelect","legendunselected",Ce(hu,"unSelect"))}var _A=Eo(ZB);function ZB(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var i=0;i<e.length;i++)if(!e[i].isSelected(r.name))return!1;return!0})}function lh(t){t.registerComponentModel(pu),t.registerComponentView(sh),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,_A),t.registerSubTypeDefaulter("legend",function(){return"plain"}),yA(t)}var jB=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,i,n){var a=di(r);t.prototype.init.call(this,r,i,n),xA(this,r,a)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.call(this,r,i),xA(this,this.option,r)},e.type="legend.scroll",e.defaultOption=Jf(pu.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:Z.color.accent50,pageIconInactiveColor:Z.color.accent10,pageIconSize:15,pageTextStyle:{color:Z.color.tertiary},animationDurationUpdate:800}),e})(pu);function xA(t,e,r){var i=t.getOrient(),n=[1,1];n[i.index]=0,ur(e,r,{type:"box",ignoreSize:!!n})}var SA=jB;var bA=we,Py=["width","height"],Ry=["x","y"],$B=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new bA),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new bA)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,i,n,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,i,n,a,o,s,l);var f=this._controllerGroup,c=i.get("pageIconSize",!0),p=P(c)?c:[c,c];d("pagePrev",0);var h=i.getModel("pageTextStyle");f.add(new Oe({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(v,m){var g=v+"DataIndex",y=Ta(i.get("pageIcons",!0)[i.getOrient().name][m],{onclick:pe(u._pageGo,u,g,i,a)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});y.name=v,f.add(y)}},e.prototype.layoutInner=function(r,i,n,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=Py[u],c=Ry[u],p=Py[1-u],h=Ry[1-u];o&&Ia("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),v=l.getBoundingRect(),m=[-v.x,-v.y],g=Q(n);o&&(g[f]=n[f]-v[f]-d);var y=this._layoutContentAndController(r,a,g,u,f,p,h,c);if(o){if(s==="end")m[u]+=y[f]+d;else{var _=v[f]+d;m[u]-=_,y[c]-=_}y[f]+=v[f]+d,m[1-u]+=y[h]+y[p]/2-v[p]/2,y[p]=Math.max(y[p],v[p]),y[h]=Math.min(y[h],v[h]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,i,n,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,p=this._controllerGroup;Ia(r.get("orient"),f,r.get("itemGap"),a?n.width:null,a?null:n.height),Ia("horizontal",p,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=p.getBoundingRect(),v=this._showController=h[o]>n[o],m=[-h.x,-h.y];i||(m[a]=f[u]);var g=[0,0],y=[-d.x,-d.y],_=Y(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var x=r.get("pageButtonPosition",!0);x==="end"?y[a]+=n[o]-d[o]:g[a]+=d[o]+_}y[1-a]+=h[s]/2-d[s]/2,f.setPosition(m),c.setPosition(g),p.setPosition(y);var S={x:0,y:0};if(S[o]=v?n[o]:h[o],S[s]=Math.max(h[s],d[s]),S[l]=Math.min(0,d[l]+y[1-a]),c.__rectSize=n[o],v){var b={x:0,y:0};b[o]=Math.max(n[o]-d[o]-_,0),b[s]=S[s],c.setClipPath(new _e({shape:b})),c.__rectSize=b[o]}else p.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&He(f,{x:T.contentPosition[0],y:T.contentPosition[1]},v?r:null),this._updatePageInfoView(r,T),S},e.prototype._pageGo=function(r,i,n){var a=this._getPageInfo(i)[r];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},e.prototype._updatePageInfoView=function(r,i){var n=this._controllerGroup;w(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",p=i[c]!=null,h=n.childOfName(f);h&&(h.setStyle("fill",p?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=p?"pointer":"default")});var a=n.childOfName("pageText"),o=r.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;a&&o&&a.setStyle("text",B(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var i=r.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Py[o],l=Ry[o],u=this._findTargetItemIndex(i),f=n.children(),c=f[u],p=f.length,h=p?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var v=x(c);d.contentPosition[o]=-v.s;for(var m=u+1,g=v,y=v,_=null;m<=p;++m)_=x(f[m]),(!_&&y.e>g.s+a||_&&!S(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=_;for(var m=u-1,g=v,y=v,_=null;m>=-1;--m)_=x(f[m]),(!_||!S(y,_.s))&&g.i<y.i&&(y=g,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=_;return d;function x(b){if(b){var T=b.getBoundingRect(),C=T[l]+b[l];return{s:C,e:C+T[s],i:b.__legendDataIndex}}}function S(b,T){return b.e>=T&&b.s<=T+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(i=s)}),i??a},e.type="legend.scroll",e})(sh),wA=$B;function ky(t){t.registerAction("legendScroll","legendscroll",function(e,r){var i=e.scrollDataIndex;i!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(i)})})}function TA(t){zt(lh),t.registerComponentModel(SA),t.registerComponentView(wA),ky(t)}function By(t){zt(lh),zt(TA)}function CA(t,e,r){var i=Re.createCanvas(),n=e.getWidth(),a=e.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",t)),i.width=n*r,i.height=a*r,i}function uh(t){return!t.__cursors.get(Pv)}function EA(t){var e=t.__cursors.get(Pv);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var QB=(function(t){L(e,t);function e(r,i,n){var a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.zlevel=0,a.zlevel2=Ro,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0};var o;n=n||$n,typeof r=="string"?o=CA(r,i,n):F(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(Ls(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}return e.prototype.afterBrush=function(){this.__prevIdx=EA(this)},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=CA("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new j(0,0,0,0);function f(x){if(!(!x.isFinite()||x.isZero()))if(o.length===0){var S=new j(0,0,0,0);S.copy(x),o.push(S)}else{for(var b=!1,T=1/0,C=0,A=0;A<o.length;++A){var E=o[A];if(E.intersect(x)){var D=new j(0,0,0,0);D.copy(E),D.union(x),o[A]=D,b=!0;break}else if(l){u.copy(x),u.union(E);var O=x.width*x.height,M=E.width*E.height,I=u.width*u.height,R=I-O-M;R<T&&(T=R,C=A)}}if(l&&(o[C].union(x),b=!0),!b){var S=new j(0,0,0,0);S.copy(x),o.push(S)}l||(l=o.length>=s)}}for(var c=EA(this),p=c.startIdx;p<c.endIdx;++p){var h=r[p];if(h){var d=h.shouldBePainted(n,a,!0,!0),v=h.__isRendered&&(h.__dirty&Ke||!d)?h.getPrevPaintRect():null;v&&f(v);var m=d&&(h.__dirty&Ke||!h.__isRendered)?h.getPaintRect():null;m&&f(m)}}for(var g=this.__prevIdx,p=g.startIdx;p<g.endIdx;++p){var h=i[p],d=h&&h.shouldBePainted(n,a,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){var v=h.getPrevPaintRect();v&&f(v)}}var y;do{y=!1;for(var p=0;p<o.length;){if(o[p].isZero()){o.splice(p,1);continue}for(var _=p+1;_<o.length;)o[p].intersect(o[_])?(y=!0,o[p].union(o[_]),o.splice(_,1)):_++;p++}}while(y);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=i+"px"),a.width=r*n,a.height=i*n,s&&(s.width=r*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},e.prototype.clear=function(r,i,n){var a=this.dom,o=this.ctx,s=a.width,l=a.height;i=i||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,p=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,l/c));var h=this.domBack;function d(v,m,g,y){if(o.clearRect(v,m,g,y),i&&i!=="transparent"){var _=void 0;if(yi(i)){var x=i.global||i.__width===g&&i.__height===y;_=x&&i.__canvasGradient||zl(o,i,{x:0,y:0,width:g,height:y}),i.__canvasGradient=_,i.__width=g,i.__height=y}else Ph(i)&&(i.scaleX=i.scaleX||c,i.scaleY=i.scaleY||c,_=jc(o,i,{dirty:function(){p.setUnpainted(),p.painter.refresh()}}));o.save(),o.fillStyle=_||i,o.fillRect(v,m,g,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,v,m,g,y),o.restore())}!n||u?d(0,0,s,l):n.length&&w(n,function(v){d(v.x*c,v.y*c,v.width*c,v.height*c)})},e})(vt),Uy=QB;var AA=1e5,Ja=314159,zy=void 0,JB=1,Fy=2;function eU(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function tU(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}function DA(t,e,r,i){var n=new Uy(t,e,e.dpr);return n.zlevel=r,n.zlevel2=i,n.__builtin__=!0,MA(n),n}function MA(t){t.__cursorStack=[],t.__cursors=V()}function rU(t){return t.startIdx=t.drawIdx=t.endIdx=t.endIdxNew=0,t.used=!1,t.first=t.last=NaN,t.notClearIdx=-1,t}function iU(t,e){var r=t.__cursors,i=+e;return r.get(i)||(t.__cursorStack.push(i),r.set(i,rU({key:i})))}function fh(t,e){for(var r=t.__cursorStack,i=0;i<r.length;i++)e(t.__cursors.get(r[i]))}function Vy(t,e){var r=t.layers;return r[e]||(r[e]=new Array(3))}function At(t,e,r){for(var i=t.layerStack,n=0;n<i.length;n++){var a=i[n].zl,o=i[n].zl2,s=t.layers[a][o];(!r||(!(r&du)||s.__builtin__)&&(!(r&Hy)||!s.__builtin__)&&(!(r&OA)||s!==t.hoverlayer))&&e(s,a,o,n)}}var du=1,Hy=2,OA=4,ch=du|OA,nU=(function(){function t(e,r,i,n){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=i=N({},i||{}),this.dpr=i.devicePixelRatio||$n,this._singleCanvas=a,this.root=e;var o=e.style;if(o&&(Ls(e),e.innerHTML=""),this.storage=r,this._prevDisplayList=[],a){var l=e,u=l.width,f=l.height;i.width!=null&&(u=i.width),i.height!=null&&(f=i.height),this.dpr=i.devicePixelRatio||1,l.width=u*this.dpr,l.height=f*this.dpr,this._width=u,this._height=f;var c=DA(l,this,Ja,Ro);c.initContext(),this._insertLayer(c,Ja,Ro,!0),this._domRoot=e}else{this._width=Fl(e,0,i),this._height=Fl(e,1,i);var s=this._domRoot=tU(this._width,this._height);e.appendChild(s)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r;e&&!F(e)?r={paintAll:!!e}:r=e||{};var i=Y(r.refresh,!0),n=Y(r.refreshHover,!1);if(n&&(this._hoverLayerDirty=Fy),!i)return n&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var a=this.storage.getDisplayList(!0);this._updateLayerStatus(a,r.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(a,o,this._redrawId);var s=this._backgroundColor;return At(this._i,function(l,u,f,c){l.refresh&&l.refresh(c===0?s:null)},Hy),this._opts.useDirtyRect&&(this._prevDisplayList=a.slice()),this},t.prototype._paintHoverList=function(e){var r=this._i.hoverlayer,i=this._hoverLayerDirty;if(this._hoverLayerDirty=zy,i!==zy&&(!r&&i===Fy&&(r=this._i.hoverlayer=this._ensureLayer(AA)),!!r)){r.clear();for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a,o=0,s=e.length;o<s;o++){var l=e[o];if(l.__inHover){a||(a=r.ctx,a.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),yn(a,l,n),u&&(l.style=f)}}a&&(Ga(a,n),a.restore())}},t.prototype.getHoverLayer=function(){return this._ensureLayer(AA)},t.prototype.paintOne=function(e,r){ns(e,r)},t.prototype._paintList=function(e,r,i){if(this._redrawId===i){var n=this._doPaintList(e,r);if(this._needsManuallyCompositing&&this._compositeManually(),n)At(this._i,function(o){o.afterBrush&&o.afterBrush()},ch),this._paintHoverList(e);else{var a=this;Fs(function(){a._paintList(e,r,i)})}}},t.prototype._compositeManually=function(){var e=this._ensureLayer(Ja).ctx,r=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,r,i),At(this._i,function(n){n.virtual&&e.drawImage(n.dom,0,0,r,i)},du)},t.prototype._doPaintList=function(e,r){var i=this,n=!0;return At(this._i,function(a){var o=!1;if(fh(a,function(c){(c.drawIdx<c.endIdx||c.notClearIdx>=0)&&(o=!0)}),!(!o&&!a.__dirty)){var s=i._opts.useDirtyRect&&!uh(a)?a.createRepaintRects(e,r,i._width,i._height):null,l=i._i.layerStack[0],u=!0;if(a.__dirty){u=!1,a.__dirty=!1;var f=a.zlevel===l.zl&&a.zlevel2===l.zl2?i._backgroundColor:null;a.clear(!1,f,s)}fh(a,function(c){var p=i._paintPerCursor(a,c,e,s,u);n=n&&p})}},ch),ee.wxa&&At(this._i,function(a){a&&a.ctx&&a.ctx.draw&&a.ctx.draw()}),n},t.prototype._paintPerCursor=function(e,r,i,n,a){var o=e.ctx;if(n)if(!n.length)r.drawIdx=r.endIdx;else for(var s=this.dpr,l=0;l<n.length;++l){var u=n[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(e,r,i,u,a),o.restore()}else o.save(),this._paintPerCursorInRect(e,r,i,null,a),o.restore();return r.drawIdx>=r.endIdx},t.prototype._paintPerCursorInRect=function(e,r,i,n,a){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:a}},s=e.ctx,l=uh(e),u=l&&Re.getTime(),f=r.drawIdx,c=r.notClearIdx,p=c>=0?Math.min(c,f):f;p<r.endIdx;p++){var h=i[p];if(!(p<f&&!h.notClear)){if(h.__inHover&&(this._hoverLayerDirty=Fy),n!=null){var d=h.getPaintRect();d&&d.intersect(n)&&(yn(s,h,o),h.setPrevPaintRect(d))}else yn(s,h,o);if(l){var v=Re.getTime()-u;if(v>15){p++;break}}}}Ga(s,o),r.drawIdx=Math.max(p,f)},t.prototype.getLayer=function(e,r){return this._ensureLayer(e,0,r)},t.prototype._ensureLayer=function(e,r,i){r=r||0;var n=this._singleCanvas;n&&!this._needsManuallyCompositing&&(e=Ja,r=0);var a=Vy(this._i,e)[r];return a||(a=DA("zr_"+e+"."+r,this,e,r),this._layerConfig[e]&&ue(a,this._layerConfig[e],!0),(i||n&&e!==Ja)&&(a.virtual=!0),this._insertLayer(a,e,r,!1),a.initContext()),a},t.prototype.insertLayer=function(e,r){this._insertLayer(r,e,0,!1)},t.prototype._insertLayer=function(e,r,i,n){var a=this._i,o=a.layers,s=a.layerStack,l=this._domRoot,u=null;if(!(o[r]&&o[r][i])&&eU(e)){for(var f=s.length,c=0;c<f&&(s[c].zl<r||s[c].zl===r&&s[c].zl2<i);)c++;if(c>0&&(u=Vy(a,s[c-1].zl)[s[c-1].zl2]),s.splice(c,0,{zl:r,zl2:i}),Vy(a,r)[i]=e,!n&&!e.virtual)if(u){var p=u.dom;p.nextSibling?l.insertBefore(e.dom,p.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(e,r){return At(this._i,function(i,n){e.call(r,i,n)})},t.prototype.eachBuiltinLayer=function(e,r){return At(this._i,function(i,n){e.call(r,i,n)},du)},t.prototype.eachOtherLayer=function(e,r){return At(this._i,function(i,n){e.call(r,i,n)},Hy)},t.prototype.getLayers=function(){var e={};return At(this._i,function(r,i,n){e[r.id]=r}),e},t.prototype._updateLayerStatus=function(e,r){var i=this;if(i._singleCanvas)for(var n=1;n<e.length;n++){var a=e[n];if(a.zlevel!==e[n-1].zlevel||a.incremental){i._needsManuallyCompositing=!0;break}}At(i._i,function(m){m.__dirty=!1,fh(m,function(g){g.used=!1,g.endIdxNew=0,g.notClearIdx=-1})},ch);for(var o,s=null,l=null,u=!1,f=0,c=e.length;f<c;f++){var a=e[f],p=a.zlevel,h=a.incremental,d=void 0;if(o!==p&&(o=p,u=!1),h?(u=!0,d=US):d=u?BS:Ro,(!s||p!==s.zlevel||d!==s.zlevel2)&&(s=i._ensureLayer(p,d),l=null,!s.__builtin__)){Rn("ZLevel "+p+" has been used by unknown layer "+s.id);continue}if((!l||h!==l.key)&&(l=iU(s,h),!l.used))if(l.used=!0,!r&&l.first===a.id){var v=f-l.startIdx;l.startIdx=f,l.drawIdx+=v,l.endIdx+=v}else s.__dirty=!0,l.first=a.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;l.endIdxNew=f+1,a.__dirty&Ke&&!a.__inHover&&((!h||!a.notClear&&f<l.drawIdx)&&(s.__dirty=!0),h&&a.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}At(i._i,function(m){for(var g=m.__cursorStack,y=m.__cursors,_=g.length-1;_>=0;_--){var x=y.get(g[_]);if(!x.used)m.__dirty=!0,y.removeKey(g[_]),g.splice(_,1);else{var S=x.endIdxNew;(uh(m)?S<x.drawIdx:S!==x.endIdx||!S||e[S-1].id!==x.last)&&(m.__dirty=!0),x.endIdx=x.endIdxNew,x.last=S?e[S-1].id:NaN}}m.__dirty&&(fh(m,function(b){b.drawIdx=b.startIdx}),i._hoverLayerDirty===zy&&(i._hoverLayerDirty=JB))},ch)},t.prototype.clear=function(){return At(this._i,function(e){e.clear(),MA(e)},du),this},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,At(this._i,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var i=this._layerConfig;i[e]?ue(i[e],r,!0):i[e]=r,At(this._i,function(n,a){ue(n,i[a],!0)})}},t.prototype.delLayer=function(e){for(var r=this._i.layerStack,i=this._i.layers,n=r.length-1;n>=0;n--){var a=r[n];if(a.zl===e){var o=i[e][a.zl2];if(o.__builtin__)continue;if(r.splice(n,1),i[e][a.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},t.prototype.resize=function(e,r){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;e!=null&&(n.width=e),r!=null&&(n.height=r),e=Fl(a,0,n),r=Fl(a,1,n),i.style.display="",(this._width!==e||r!==this._height)&&(i.style.width=e+"px",i.style.height=r+"px",At(this._i,function(o){o.resize(e,r)}),this.refresh({paintAll:!0})),this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this._ensureLayer(Ja).resize(e,r)}return this},t.prototype.clearLayer=function(e){w(this._i.layers[e],function(r){r&&!r.__builtin__&&r.clear()})},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[Ja][0].dom;var r=new Uy("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var i=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var n=r.dom.width,a=r.dom.height;At(this._i,function(c){c.__builtin__?i.drawImage(c.dom,0,0,n,a):c.renderToCanvas&&(i.save(),c.renderToCanvas(i),i.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];yn(i,f,o)}Ga(i,o)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t})(),IA=nU;function Gy(t){t.registerPainter("canvas",IA)}zt([ty,py,Ey,Oy,By,Gy]);var ph=Kg;var vu=require("react/jsx-runtime"),hh=["#3b82f6","#16a34a","#d97706","#dc2626","#7c3aed"],dh=t=>String(t).padStart(2,"0"),LA=t=>`${dh(new Date(t).getHours())}:${dh(new Date(t).getMinutes())}`;function Ts(t){let e=getComputedStyle(t),r=(i,n)=>e.getPropertyValue(i).trim()||n;return{label:r("--dsw-alias-label-secondary","rgba(128,128,128,.95)"),axis:r("--dsw-alias-border-secondary","rgba(128,128,128,.35)"),split:r("--dsw-alias-border-tertiary","rgba(128,128,128,.18)"),surface:r("--dsw-alias-bg-layer-2","#fff")}}var Xy=new Set,NA=!1;function PA(){for(let t of[...Xy])try{t()}catch{}}function RA(t){if(!NA){NA=!0,globalThis.matchMedia?.("(prefers-color-scheme: dark)")?.addEventListener?.("change",PA);let e=globalThis.document?.documentElement;e&&new MutationObserver(PA).observe(e,{attributes:!0,attributeFilter:["class","data-theme"]})}return Xy.add(t),()=>Xy.delete(t)}function Wy(t,e,r){let i=r??t.find(a=>a.unit)?.unit??"",n=Math.max(1,Math.ceil(t.length/3));return{animation:!1,textStyle:{fontSize:11,color:e.label},tooltip:{trigger:"axis",confine:!0,backgroundColor:e.surface,borderColor:e.axis,textStyle:{fontSize:11,color:e.label},axisPointer:{type:"line",lineStyle:{color:e.label,width:1,type:"dashed"},label:{show:!1}},formatter:a=>{if(!a?.length)return"";let o=new Date(Number(a[0].axisValue));return`<div style="font-weight:600;margin-bottom:4px">${dh(o.getMonth()+1)}-${dh(o.getDate())} ${LA(o)}</div>`+a.map(l=>{let u=l.value?.[1],f=Number.isFinite(u)?`${Number(Number(u).toPrecision(4))}${i}`:"\u2014";return`<div style="display:flex;gap:8px;align-items:center;line-height:20px"><span style="width:8px;height:8px;border-radius:2px;background:${l.color}"></span><span style="flex:1">${l.seriesName}</span><b style="font-variant-numeric:tabular-nums">${f}</b></div>`}).join("")}},legend:{top:0,left:0,itemWidth:10,itemHeight:10,itemGap:12,icon:"roundRect",textStyle:{fontSize:11,color:e.label},width:"98%"},grid:{left:46,right:12,top:18+18*n,bottom:22,containLabel:!1},xAxis:{type:"time",axisLine:{lineStyle:{color:e.axis}},axisTick:{show:!1},axisLabel:{fontSize:10,color:e.label,formatter:LA,hideOverlap:!0},splitLine:{show:!1},axisPointer:{show:!0,label:{show:!1}}},yAxis:{type:"value",splitNumber:3,max:i==="%"?100:void 0,splitLine:{lineStyle:{color:e.split}},axisLabel:{fontSize:10,color:e.label,formatter:a=>`${a}${i}`,hideOverlap:!0}},series:t.map((a,o)=>{let s=hh[o%hh.length];return{name:a.name,type:"line",smooth:!1,showSymbol:!1,symbolSize:6,lineStyle:{width:1.5,color:s},itemStyle:{color:s},emphasis:{focus:"series"},data:a.points}})}}function Yy(t,e,r){return{animation:!1,textStyle:{fontSize:11,color:r.label},tooltip:{trigger:"axis",confine:!0,axisPointer:{type:"shadow"},backgroundColor:r.surface,borderColor:r.axis,textStyle:{fontSize:11,color:r.label}},legend:{top:0,left:0,itemWidth:10,itemHeight:10,itemGap:12,icon:"roundRect",textStyle:{fontSize:11,color:r.label}},grid:{left:8,right:12,top:e.length>1?30:12,bottom:6,containLabel:!0},yAxis:{type:"category",inverse:!0,data:t,axisLine:{lineStyle:{color:r.axis}},axisTick:{show:!1},axisLabel:{fontSize:10,color:r.label,width:96,overflow:"truncate"}},xAxis:{type:"value",splitNumber:3,axisLabel:{fontSize:10,color:r.label,hideOverlap:!0},splitLine:{lineStyle:{color:r.split}}},series:e.map((i,n)=>({name:i.name,type:"bar",barMaxWidth:14,itemStyle:{color:hh[n%hh.length],borderRadius:[0,2,2,0]},emphasis:{focus:"series"},data:i.data}))}}var aU=(t,e)=>Math.max(90,26+t.length*(e>1?10+8*e:20));function kA({categories:t,series:e}){let r=(0,jt.useRef)(null),i=(0,jt.useRef)(null),n=(0,jt.useRef)(void 0);return n.current={categories:t??[],series:e??[]},(0,jt.useEffect)(()=>{let a=r.current;if(!a)return;let o=ph.init(a);i.current=o,o.setOption(Yy(n.current.categories,n.current.series,Ts(a)),!0);let s=new ResizeObserver(()=>i.current?.resize());return s.observe(a),()=>{s.disconnect(),o.dispose(),i.current=null}},[]),(0,jt.useEffect)(()=>{let a=r.current;!i.current||!a||i.current.setOption(Yy(t??[],e??[],Ts(a)),!0)},[t,e]),(0,jt.useEffect)(()=>RA(()=>{let a=r.current,o=i.current;!a||!o||o.isDisposed?.()||o.setOption(Yy(n.current.categories,n.current.series,Ts(a)),!0)}),[]),!t||t.length===0?(0,vu.jsx)("div",{className:"rnm-empty",children:"\u6682\u65E0\u53EF\u7ED8\u5236\u7684\u6570\u636E"}):(0,vu.jsx)("div",{ref:r,style:{width:"100%",height:aU(t,e?.length??1)}})}function vh({series:t,height:e=160,group:r,unit:i}){let n=(0,jt.useRef)(null),a=(0,jt.useRef)(null),o=(0,jt.useRef)(void 0);return o.current=t,(0,jt.useEffect)(()=>{let s=n.current;if(!s)return;let l=ph.init(s);a.current=l,r&&(l.group=r,ph.connect(r)),l.setOption(Wy(o.current??[],Ts(s),i),!0);let u=new ResizeObserver(()=>a.current?.resize());return u.observe(s),()=>{u.disconnect(),l.dispose(),a.current=null}},[r,i]),(0,jt.useEffect)(()=>{let s=n.current;!a.current||!s||a.current.setOption(Wy(t??[],Ts(s),i),!0)},[t,i]),(0,jt.useEffect)(()=>RA(()=>{let s=n.current,l=a.current;!s||!l||l.isDisposed?.()||l.setOption(Wy(o.current??[],Ts(s),i),!0)}),[i]),!t||t.length===0?(0,vu.jsx)("div",{className:"rnm-empty",children:"\u6682\u65E0\u53EF\u7ED8\u5236\u7684\u6570\u636E"}):(0,vu.jsx)("div",{ref:n,style:{width:"100%",height:e}})}var Lr=require("react/jsx-runtime");function BA({columns:t,rows:e,total:r,dense:i=!1}){return!t||t.length===0||!e||e.length===0?(0,Lr.jsx)("div",{className:"rnm-empty",children:"\u8FD9\u6B21\u67E5\u8BE2\u6CA1\u6709\u8FD4\u56DE\u6570\u636E\u884C\u3002"}):(0,Lr.jsxs)("div",{className:"rnm-table-wrap",children:[(0,Lr.jsxs)("table",{className:`rnm-table${i?" rnm-table--dense":""}`,children:[(0,Lr.jsx)("thead",{children:(0,Lr.jsx)("tr",{children:t.map(n=>(0,Lr.jsx)("th",{children:n.label},n.key))})}),(0,Lr.jsx)("tbody",{children:e.map((n,a)=>(0,Lr.jsx)("tr",{children:n.map((o,s)=>(0,Lr.jsx)("td",{style:{textAlign:o.align},children:o.text},s))},a))})]}),typeof r=="number"&&r>e.length?(0,Lr.jsxs)("div",{className:"rnm-sub",children:["\u5171 ",r," \u884C\uFF0C\u663E\u793A\u524D ",e.length," \u884C"]}):void 0]})}var mu=require("react/jsx-runtime");function mh({view:t,height:e=160,group:r}){return t?t.kind==="table"?(0,mu.jsx)(BA,{columns:t.columns,rows:t.rows,total:t.total,dense:!!r}):t.kind==="bar"?(0,mu.jsx)(kA,{categories:t.categories,series:t.series}):(0,mu.jsx)(vh,{series:t.series,height:e,group:r,unit:t.series?.[0]?.unit}):(0,mu.jsx)("div",{className:"rnm-empty",children:"\u6682\u65E0\u6570\u636E"})}function UA(t){return t?t.kind==="table"?!t.rows||t.rows.length===0:t.kind==="bar"?!t.categories||t.categories.length===0:!t.series||t.series.length===0:!0}var $t=require("react/jsx-runtime");function zA({meta:t,args:e,status:r="done",sessionId:i,sessionTitle:n,callId:a}){let[o,s]=(0,gu.useState)("idle"),[l,u]=(0,gu.useState)(void 0),f=r==="done"&&t?.card==="runnpu-chart"?t:void 0,c=e?.series,p=(0,gu.useCallback)(async()=>{if(f){s("busy"),u(void 0);try{let d=await Qe.pin({title:f.title,query:f.query,params:f.params,series:c,view:f.spec,sessionId:i,question:n,note:f.note??"\u5728\u5BF9\u8BDD\u4E2D\u70B9\u51FB\u300C\u56FA\u5B9A\u5230\u53F3\u680F\u300D"});s(d?.duplicate?"already":"done")}catch(d){s("idle"),u(d?.message??String(d))}}},[f,c,i,n]);if(r==="running")return(0,$t.jsxs)("div",{className:"rnm-sub",children:["\u6B63\u5728\u53D6\u6570\u5E76\u7ED8\u5236\u300C",e?.title??"\u96C6\u7FA4\u89C6\u56FE","\u300D\u2026"]});if(r==="error")return(0,$t.jsxs)("div",{className:"rnm-err",children:["\u56FE\u8868\u751F\u6210\u5931\u8D25\uFF1A",e?.title??""]});if(!f)return;let h=UA(f.view);return(0,$t.jsxs)("section",{className:"rnm-card","data-call":a,children:[(0,$t.jsxs)("div",{className:"rnm-card-head",children:[(0,$t.jsx)("span",{className:"rnm-title rnm-ellipsis",children:f.title}),(0,$t.jsxs)("button",{className:"rnm-btn rnm-btn--icon-text",type:"button",onClick:p,disabled:o!=="idle"||h,title:h?"\u6CA1\u6709\u6570\u636E\u53EF\u56FA\u5B9A":"\u56FA\u5B9A\u5230\u53F3\u680F\uFF0C\u4E4B\u540E\u81EA\u52A8\u5237\u65B0",children:[o==="done"||o==="already"?(0,$t.jsx)(u_,{}):void 0,o==="done"?"\u5DF2\u56FA\u5B9A":o==="already"?"\u53F3\u680F\u5DF2\u6709":o==="busy"?"\u56FA\u5B9A\u4E2D\u2026":"\u56FA\u5B9A\u5230\u53F3\u680F"]})]}),h?(0,$t.jsx)("div",{className:"rnm-empty",children:"\u8FD9\u6B21\u67E5\u8BE2\u6CA1\u6709\u8FD4\u56DE\u53EF\u7ED8\u5236\u7684\u6570\u636E\u3002"}):(0,$t.jsx)(mh,{view:f.view,height:180}),f.note?(0,$t.jsx)("div",{className:"rnm-sub",children:f.note}):void 0,(0,$t.jsxs)("div",{className:"rnm-sub rnm-mono",children:[f.query,f.view?.source?` \xB7 ${f.view.source}`:"",f.params?.group?` \xB7 ${f.params.group}`:"",f.params?.range?` \xB7 ${f.params.range}`:""]}),l?(0,$t.jsxs)("div",{className:"rnm-err",children:["\u56FA\u5B9A\u5931\u8D25\uFF1A",l]}):void 0]})}var Rr=require("react");var oU=["utilization","allocation","storage","workloads"],sU={cpu:{label:"CPU \u5229\u7528\u7387",unit:"%",rows:[["cpu_pct","CPU \u5229\u7528\u7387"]]},memory:{label:"\u5185\u5B58\u5229\u7528\u7387",unit:"%",rows:[["memory_pct","\u5185\u5B58\u5229\u7528\u7387"]]},net:{label:"\u7F51\u7EDC\u541E\u5410",unit:"B/s",rows:[["net_rx_bps","\u63A5\u6536"],["net_tx_bps","\u53D1\u9001"]]},disk:{label:"\u78C1\u76D8\u541E\u5410",unit:"B/s",rows:[["disk_read_bps","\u8BFB"],["disk_write_bps","\u5199"]]}},lU=240;function uU(t,e){if(t==="workload.metrics"){let i={};for(let n of e?.groups??[])i[n.key]={label:n.title??n.key,unit:n.unit,rows:n.series??[]};return i}if(t==="node.metrics"){let i={};for(let[n,a]of Object.entries(sU)){let o=a.rows.filter(([s])=>Array.isArray(e?.[s])).map(([s,l])=>({key:s,label:l,unit:a.unit,data:e[s]}));o.length>0&&(i[n]={label:a.label,unit:a.unit,rows:o})}return i}let r={};for(let i of oU)Array.isArray(e?.[i])&&(r[i]={label:i,unit:e[i][0]?.unit,rows:e[i]});return r}function FA(t,e={}){let r=e.query??"overview.trends",i=t?.timestamps;if(!Array.isArray(i))return{series:[],note:"\u8BE5\u67E5\u8BE2\u6CA1\u6709\u65F6\u95F4\u8F74\uFF0C\u65E0\u6CD5\u753B\u6210\u66F2\u7EBF"};let n=uU(r,t),a=Object.keys(n);if(a.length===0)return{series:[],note:"\u8FD9\u6B21\u54CD\u5E94\u91CC\u6CA1\u6709\u4EFB\u4F55\u53EF\u7ED8\u5236\u7684\u6307\u6807\u7EC4"};let o=e.group??a[0],s=n[o]??n[a[0]],l=n[o]===void 0,u=i.map(d=>new Date(d).getTime()),f=e.series?.length?new Set(e.series):void 0,c=Math.max(1,Math.ceil(u.length/lU)),p=(s.rows??[]).filter(d=>f?f.has(d.key):!0).slice(0,5).map(d=>({key:d.key,name:d.label??d.key,unit:d.unit??s.unit,points:(d.data??[]).map((v,m)=>[u[m],v]).filter((v,m)=>m%c===0).filter(([v])=>Number.isFinite(v)).map(([v,m])=>[v,typeof m=="number"&&Number.isFinite(m)?m:null])})),h=[];return l&&h.push(`\u6CA1\u6709 ${o} \u8FD9\u4E00\u7EC4\uFF0C\u753B\u7684\u662F ${a[0]}\uFF08\u53EF\u7528\uFF1A${a.join(" / ")}\uFF09`),t?.metrics?.available===!1&&h.push(`\u6307\u6807\u6E90\u672A\u63A5\u5165\uFF08${t.metrics.reason??"\u539F\u56E0\u672A\u7ED9\u51FA"}\uFF09\uFF0C\u8FD9\u7EC4\u66F2\u7EBF\u6CA1\u6709\u6570\u636E`),{series:p,group:n[o]?o:a[0],note:h.length>0?h.join("\uFF1B"):void 0}}var fU=["line","area","bar","table"],Ky={projects:{items:{label:"\u9879\u76EE",at:t=>t?.items},usage:{label:"\u9879\u76EE \xD7 \u8D44\u6E90\u6C60 \u7528\u91CF",at:t=>qy(t,"usage",cU)},storage:{label:"\u9879\u76EE \xD7 \u5B58\u50A8\u6C60 \u7528\u91CF",at:t=>qy(t,"storage",pU)},queues:{label:"\u9879\u76EE\u961F\u5217\u51C6\u5165",at:t=>qy(t,"queues",hU)}},workloads:{items:{label:"\u8D1F\u8F7D",at:t=>t?.items}},nodes:{items:{label:"\u8282\u70B9",at:t=>t?.items}},cluster:{items:{label:"\u96C6\u7FA4\u7EC4\u4EF6",at:t=>t?.items}},overview:{projects:{label:"\u9879\u76EE\u914D\u989D\u4E0E\u7528\u91CF",at:t=>t?.projects},idle:{label:"\u95F2\u7F6E\u5360\u7528",at:t=>t?.idle},queued:{label:"\u6392\u961F\u8D1F\u8F7D",at:t=>t?.queued},nodes:{label:"\u8282\u70B9",at:t=>t?.nodes}}},wee=Object.fromEntries(Object.entries(Ky).map(([t,e])=>[t,Object.entries(e).map(([r,i])=>({key:r,label:i.label}))]));function qy(t,e,r){let i=[];for(let n of t?.items??[])for(let a of n?.cluster?.[e]??[])i.push({project:n.slug,project_name:n.name,...r(a)});return i}function cU(t){let e=t?.guaranteed??0,r=t?.used??0;return{pool:t?.pool,device_type:t?.device_type,guaranteed:e,used:r,over_guarantee:r-e}}function pU(t){let e=t?.limit_gib??0,r=t?.remaining_gib,i=typeof r=="number"&&e>0?e-r:void 0;return{pool:t?.pool,limit_gib:t?.limit_gib,persistent_gib:t?.persistent_gib,runtime_gib:t?.runtime_gib,remaining_gib:r,used_gib:i,used_pct:i===void 0||e<=0?void 0:Math.round(i/e*1e3)/10}}function hU(t){return{queue:t?.name,pool:t?.pool,admitted:t?.admitted,reason:t?.reason}}function dU(t,e,r){if(t==="overview"&&e==="idle"){let i=r?.workload;return{workload:typeof i=="string"?i:`${i?.project??"?"}/${i?.name??"?"}`,type:typeof i=="object"?i?.display_type:void 0,idle_cards:r?.idle_cards,idle_hours:r?.idle_seconds===void 0?void 0:Math.round(r.idle_seconds/3600*10)/10,source:r?.source}}return r}var vU={"workloads/items":["project","name","status","xpu_count","pods_ready","pods_total","pool"],"overview/queued":["project","name","xpu_count","pool","created_at"],"overview/projects":["slug","quota_cards","used_cards","running","queued"],"overview/idle":["workload","idle_cards","idle_hours","source"],"overview/nodes":["name","status","cards_total","cards_allocated","cards_free"],"nodes/items":["name","status","pool","cards_total","cards_allocated","cards_free","avg_util"],"projects/items":["slug","name","member_count","created_at"],"projects/usage":["project","pool","guaranteed","used","over_guarantee"],"projects/storage":["project","pool","limit_gib","used_gib","used_pct","remaining_gib"],"projects/queues":["project","queue","pool","admitted","reason"],"cluster/items":["name","status","ready","total","version"]};var VA={project:"\u9879\u76EE",project_name:"\u9879\u76EE\u540D",slug:"\u9879\u76EE",name:"\u540D\u79F0",workload:"\u8D1F\u8F7D",status:"\u72B6\u6001",phase:"\u9636\u6BB5",pool:"\u8D44\u6E90\u6C60",type:"\u7C7B\u578B",display_type:"\u7C7B\u578B",xpu_count:"\u5361\u6570",quota_cards:"\u914D\u989D(\u5361)",used_cards:"\u5DF2\u7528(\u5361)",running:"\u8FD0\u884C",queued:"\u6392\u961F",idle_cards:"\u95F2\u7F6E(\u5361)",idle_hours:"\u95F2\u7F6E(\u5C0F\u65F6)",source:"\u5224\u5B9A\u6765\u6E90",pods_ready:"\u5C31\u7EEA Pod",pods_total:"\u603B Pod",member_count:"\u6210\u5458\u6570",cards_total:"\u603B\u5361",cards_allocated:"\u5DF2\u5206\u914D",cards_free:"\u7A7A\u95F2",cards_healthy:"\u5065\u5EB7",cards_allocatable:"\u53EF\u5206\u914D",avg_util:"\u5E73\u5747\u5229\u7528\u7387",cpu_cores:"CPU \u6838",ready:"\u5C31\u7EEA",total:"\u603B\u6570",version:"\u7248\u672C",arch:"\u67B6\u6784",os:"\u7CFB\u7EDF",guaranteed:"\u4FDD\u5E95(\u5361)",used:"\u5B9E\u9645\u7528(\u5361)",over_guarantee:"\u8D85\u51FA\u4FDD\u5E95",limit_gib:"\u914D\u989D(GiB)",used_gib:"\u5DF2\u7528(GiB)",used_pct:"\u5DF2\u7528\u6BD4\u4F8B",remaining_gib:"\u5269\u4F59(GiB)",persistent_gib:"\u6301\u4E45(GiB)",runtime_gib:"\u8FD0\u884C\u65F6(GiB)",queue:"\u961F\u5217",admitted:"\u5DF2\u51C6\u5165",reason:"\u539F\u56E0",created_at:"\u521B\u5EFA\u65F6\u95F4",admitted_at:"\u51C6\u5165\u65F6\u95F4",started_at:"\u5F00\u59CB\u65F6\u95F4",last_activity_at:"\u6700\u8FD1\u6D3B\u52A8",updated_at:"\u66F4\u65B0\u65F6\u95F4",internal_ip:"\u5185\u7F51 IP",owner_name:"\u6240\u6709\u8005",image:"\u955C\u50CF",device_type:"\u8BBE\u5907\u578B\u53F7",chip_model:"\u82AF\u7247"},mU=t=>t===null||["string","number","boolean"].includes(typeof t);function gU(t,e){if(e==null||e==="")return{text:"\u2014",align:"right"};if(typeof e=="boolean")return{text:e?"\u662F":"\u5426",align:"center"};if(typeof e=="number")return t.endsWith("_bytes")?{text:yU(e),align:"right"}:t.endsWith("_pct")||t==="avg_util"?{text:`${Number(e.toPrecision(3))}%`,align:"right"}:{text:String(Number(e.toPrecision(6))),align:"right"};if(t.endsWith("_at")&&/^\d{4}-\d{2}-\d{2}T/.test(e)){let r=new Date(e);if(Number.isFinite(r.getTime())){let i=n=>String(n).padStart(2,"0");return{text:`${i(r.getMonth()+1)}-${i(r.getDate())} ${i(r.getHours())}:${i(r.getMinutes())}`,align:"right"}}}return{text:String(e),align:"left"}}function yU(t){let e=["B","KiB","MiB","GiB","TiB"],r=t,i=0;for(;Math.abs(r)>=1024&&i<e.length-1;)r/=1024,i+=1;return`${Number(r.toPrecision(3))} ${e[i]}`}function _U(t,e,r){let i=Ky[t];if(!i)return;let n=r&&i[r]?r:Object.keys(i)[0],a=i[n]?.at(e);if(Array.isArray(a))return{source:n,rows:a.map(o=>dU(t,n,o))}}function xU(t){let e=[];for(let r of t.slice(0,20))for(let[i,n]of Object.entries(r??{}))mU(n)&&!e.includes(i)&&e.push(i);return e}function SU(t,e,r,i){let n=new Set(r),a=Array.isArray(i)?i:[],o=a.filter(u=>!n.has(u)),s=a.filter(u=>n.has(u));if(s.length>0)return{columns:s,dropped:o};let l=vU[`${t}/${e}`];if(l){let u=l.filter(f=>n.has(f));if(u.length>0)return{columns:u,dropped:o}}return{columns:r.slice(0,8),dropped:o}}var bU=50,wU=t=>Number.isFinite(t)?Math.max(1,Math.min(200,t)):bU;function TU(t,e,r){if(!e)return t;let i=r===!1?1:-1;return[...t].sort((n,a)=>{let o=n?.[e],s=a?.[e];return typeof o=="number"&&typeof s=="number"?(o-s)*i:String(o??"").localeCompare(String(s??""))*i})}function HA(t,e,r={}){let i=fU.includes(r.kind)?r.kind:"line";if(i==="line"||i==="area"){let v=FA(e,{query:t,group:r.group,series:r.series});return{kind:i,series:v.series,group:v.group,note:v.note}}let n=_U(t,e,r.source);if(!n){let v=Object.keys(Ky).join(" / ");return{kind:i,columns:[],rows:[],note:`${t} \u6CA1\u6709\u53EF\u5217\u8868\u5316\u7684\u6570\u636E\uFF08\u652F\u6301\uFF1A${v}\uFF09`}}let{source:a,rows:o}=n;if(o.length===0)return{kind:i,source:a,columns:[],rows:[],note:"\u8FD9\u6B21\u67E5\u8BE2\u6CA1\u6709\u8FD4\u56DE\u4EFB\u4F55\u884C"};let s=wU(r.limit),l=TU(o,r.sort,r.desc),u=l.slice(0,s),f=l.length>u.length?l.length-u.length:0,c=[];f>0&&c.push(`\u53EA\u663E\u793A\u524D ${u.length} \u884C\uFF0C\u53E6\u6709 ${f} \u884C\u672A\u663E\u793A`);let p=xU(o);if(r.sort&&!p.includes(r.sort)&&c.push(`\u6CA1\u6709 ${r.sort} \u8FD9\u4E00\u5217\uFF0C\u6392\u5E8F\u6CA1\u6709\u751F\u6548\uFF08\u53EF\u7528\uFF1A${p.join(" / ")}\uFF09`),i==="bar"){let v=p.filter(S=>o.slice(0,20).some(b=>typeof b?.[S]=="number")),m=r.dimension&&p.includes(r.dimension)?r.dimension:["slug","name","workload","project"].find(S=>p.includes(S))??p[0],g=Array.isArray(r.measures)?r.measures:[],y=g.filter(S=>v.includes(S)),_=g.filter(S=>!v.includes(S)),x=y.length>0?y.slice(0,5):v.slice(0,2);return x.length===0?{kind:i,source:a,categories:[],series:[],note:"\u8FD9\u7EC4\u6570\u636E\u91CC\u6CA1\u6709\u53EF\u7528\u4F5C\u67F1\u9AD8\u7684\u6570\u503C\u5217"}:(_.length>0&&c.push(`\u6CA1\u6709 ${_.join("/")} \u8FD9\u4E9B\u6570\u503C\u5217\uFF0C\u753B\u7684\u662F ${x.join("/")}\uFF08\u53EF\u7528\uFF1A${v.join(" / ")}\uFF09`),{kind:i,source:a,categories:u.map(S=>String(S?.[m]??"\u2014")),series:x.map(S=>({key:S,name:VA[S]??S,data:u.map(b=>typeof b?.[S]=="number"?b[S]:null)})),dimension:m,note:c.length>0?c.join("\uFF1B"):void 0})}let{columns:h,dropped:d}=SU(t,a,p,r.columns);return d.length>0&&c.push(`\u6CA1\u6709 ${d.join("/")} \u8FD9\u4E9B\u5217\uFF0C\u663E\u793A\u7684\u662F ${h.join("/")}\uFF08\u53EF\u7528\uFF1A${p.join(" / ")}\uFF09`),{kind:"table",source:a,columns:h.map(v=>({key:v,label:VA[v]??v})),rows:u.map(v=>h.map(m=>{let g=gU(m,v?.[m]);return{text:g.text,align:g.align}})),total:o.length,note:c.length>0?c.join("\uFF1B"):void 0}}function Zy(t){return{kind:"line",...t?.view??{}}}var eo=require("react");var Nr=require("react/jsx-runtime");function GA({cwd:t,connected:e,onAsk:r,refreshMs:i=6e4}){let[n,a]=(0,eo.useState)(void 0),[o,s]=(0,eo.useState)(!1),l=(0,eo.useCallback)(async()=>{if(e)try{let f=await Qe.anomalies(t);a(f?.findings??[])}catch{a(void 0)}},[t,e]);if((0,eo.useEffect)(()=>{l();let f=setInterval(l,i);return()=>clearInterval(f)},[l,i]),!e||n===void 0||n.length===0)return;let u=n.filter(f=>f.severity==="high").length;return(0,Nr.jsxs)("section",{className:"rnm-card",children:[(0,Nr.jsxs)("div",{className:"rnm-card-head",children:[(0,Nr.jsxs)("span",{className:"rnm-title rnm-grow",children:["\u9700\u8981\u6CE8\u610F ",n.length,u>0?(0,Nr.jsxs)("span",{className:"rnm-badge",children:[u," \u91CD\u8981"]}):void 0]}),(0,Nr.jsx)("button",{className:"rnm-btn rnm-btn--ghost rnm-icon-btn",type:"button",onClick:()=>s(f=>!f),"aria-label":o?"\u5C55\u5F00\u5F02\u5E38\u5217\u8868":"\u6536\u8D77\u5F02\u5E38\u5217\u8868","aria-expanded":!o,children:o?(0,Nr.jsx)(Tu,{}):(0,Nr.jsx)(wu,{})})]}),o?void 0:n.slice(0,6).map(f=>(0,Nr.jsxs)("button",{type:"button",className:`rnm-finding rnm-finding--${f.severity}`,onClick:()=>r?.(`${f.subject}\uFF1A${f.detail.split("\u3002")[0]}\u3002\u8FD9\u4E2A\u8BE5\u600E\u4E48\u5904\u7406\uFF1F`),title:r?"\u5728\u5BF9\u8BDD\u91CC\u8FFD\u95EE\u8FD9\u4E00\u6761":void 0,children:[(0,Nr.jsx)("span",{className:"rnm-finding-subject rnm-mono",children:f.subject}),(0,Nr.jsx)("span",{className:"rnm-sub",children:f.detail})]},`${f.kind}:${f.subject}`))]})}var Pr=require("react");var Ie=require("react/jsx-runtime"),CU={running:"connected",admitted:"warn",queued:"warn",pending:"warn",submitting:"idle",completed:"idle",stopped:"idle",failed:"error",rejected:"error"};function EU(t,e){let[r,i]=(0,Pr.useState)(void 0),[n,a]=(0,Pr.useState)(void 0),o=(0,Pr.useCallback)(async()=>{if(e)try{let s=await Qe.workloads(t);i(s?.items??[]),a(void 0)}catch(s){a(s?.message??String(s))}},[t,e]);return(0,Pr.useEffect)(()=>{o()},[o]),(0,Pr.useEffect)(()=>{if(e)return Hi(`${$e}/events`,{workloads:s=>{i(s?.items??[]),a(void 0)}})},[e]),{rows:r,error:n,reload:o}}function WA({cwd:t,connected:e}){let{rows:r,error:i,reload:n}=EU(t,e),[a,o]=(0,Pr.useState)(void 0),[s,l]=(0,Pr.useState)(void 0),[u,f]=(0,Pr.useState)(void 0),c=(0,Pr.useCallback)(async(p,h)=>{let d=`${p.project}/${p.name}`;o(d),l(void 0);try{let v=await Qe.act({project:p.project,name:p.name,action:h,cwd:t});v.outcome==="skipped"&&l(v.detail),await n()}catch(v){l(v?.message??String(v))}finally{o(void 0),f(void 0)}},[t,n]);if(e)return(0,Ie.jsxs)("section",{className:"rnm-card",children:[(0,Ie.jsxs)("div",{className:"rnm-card-head",children:[(0,Ie.jsx)("span",{className:"rnm-title rnm-grow",children:"\u8D1F\u8F7D"}),(0,Ie.jsx)("button",{className:"rnm-btn rnm-btn--ghost rnm-icon-btn",type:"button",onClick:n,"aria-label":"\u5237\u65B0\u8D1F\u8F7D\u5217\u8868",title:"\u5237\u65B0",children:(0,Ie.jsx)(Eu,{})})]}),i?(0,Ie.jsx)("div",{className:"rnm-err",children:i}):void 0,r===void 0?(0,Ie.jsx)("div",{className:"rnm-sub",children:"\u8BFB\u53D6\u4E2D\u2026"}):void 0,r?.length===0?(0,Ie.jsx)("div",{className:"rnm-empty",children:"\u5F53\u524D\u6CA1\u6709\u8D1F\u8F7D\u3002"}):void 0,(r??[]).map(p=>{let h=`${p.project}/${p.name}`,d=String(p.status??"unknown"),v=d==="stopped",m=a===h;return(0,Ie.jsxs)("div",{className:"rnm-wl",children:[(0,Ie.jsx)("span",{className:`rnm-dot rnm-dot--${CU[d]??"idle"}`}),(0,Ie.jsx)("span",{className:"rnm-grow rnm-ellipsis rnm-mono",title:h,children:h}),(0,Ie.jsx)("span",{className:"rnm-sub",children:d}),p.xpu_count?(0,Ie.jsxs)("span",{className:"rnm-sub",children:[p.xpu_count," \u5361"]}):void 0,u===h?(0,Ie.jsxs)(Ie.Fragment,{children:[(0,Ie.jsx)("span",{className:"rnm-sub",children:"\u786E\u8BA4\u5220\u9664\uFF1F"}),(0,Ie.jsx)("button",{className:"rnm-btn",type:"button",disabled:m,onClick:()=>c(p,"delete"),children:"\u5220\u9664"}),(0,Ie.jsx)("button",{className:"rnm-btn rnm-btn--ghost",type:"button",onClick:()=>f(void 0),children:"\u53D6\u6D88"})]}):(0,Ie.jsxs)(Ie.Fragment,{children:[(0,Ie.jsx)("button",{className:"rnm-btn rnm-btn--ghost",type:"button",disabled:m,onClick:()=>c(p,v?"start":"stop"),children:v?"\u542F\u52A8":"\u505C\u6B62"}),(0,Ie.jsx)("button",{className:"rnm-btn rnm-btn--ghost rnm-icon-btn",type:"button",disabled:m,onClick:()=>f(h),"aria-label":`\u5220\u9664 ${h}`,title:"\u5220\u9664",children:(0,Ie.jsx)(Cu,{})})]})]},h)}),s?(0,Ie.jsx)("div",{className:"rnm-sub",children:s}):void 0]})}var ye=require("react/jsx-runtime");function AU({pin:t,onUnpin:e}){let r=t.latest,i=r?.ok?HA(t.query,r.data,{...Zy(t),group:t.params?.group??Zy(t).group,series:t.series}):void 0,n=i?.note,a=r&&!r.ok;return(0,ye.jsxs)("section",{className:"rnm-card",children:[(0,ye.jsxs)("div",{className:"rnm-card-head",children:[(0,ye.jsx)("span",{className:"rnm-title rnm-ellipsis",children:t.title}),(0,ye.jsx)("button",{className:"rnm-btn rnm-btn--ghost rnm-icon-btn",type:"button",onClick:()=>e(t.id),"aria-label":`\u53D6\u6D88\u56FA\u5B9A\u300C${t.title}\u300D`,title:"\u53D6\u6D88\u56FA\u5B9A",children:(0,ye.jsx)(Cu,{})})]}),a?(0,ye.jsxs)("div",{className:"rnm-err",children:["\u5237\u65B0\u5931\u8D25\uFF1A",r.error]}):(0,ye.jsx)(mh,{view:i,height:140,group:"runnpu-pins"}),n?(0,ye.jsx)("div",{className:"rnm-sub",children:n}):void 0,(0,ye.jsxs)("div",{className:"rnm-pin-provenance",children:[(0,ye.jsxs)("div",{children:["\u6765\u6E90 ",(0,ye.jsx)("span",{className:"rnm-mono",children:t.query}),r?.at?` \xB7 \u66F4\u65B0\u4E8E ${new Date(r.at).toLocaleTimeString()}`:""]}),t.provenance?.question?(0,ye.jsxs)("div",{children:["\u5F53\u65F6\u7684\u95EE\u9898\uFF1A",t.provenance.question]}):void 0,t.provenance?.note?(0,ye.jsx)("div",{children:t.provenance.note}):void 0]})]})}function YA({cwd:t,onAsk:e}){let[r,i]=(0,Rr.useState)(void 0),[n,a]=(0,Rr.useState)(!1),[o,s]=(0,Rr.useState)(!1),[l,u]=(0,Rr.useState)(void 0),f=(0,Rr.useCallback)(async()=>{try{i(await Qe.state(t)),u(void 0)}catch(d){u(d?.message??String(d))}},[t]);(0,Rr.useEffect)(()=>{f()},[f]),(0,Rr.useEffect)(()=>Hi(`${$e}/events`,{pins:d=>{i(v=>{if(!v)return v;let m=new Map(d.map(g=>[g.id,g]));return{...v,pins:v.pins.map(g=>m.has(g.id)?{...g,latest:m.get(g.id)}:g)}})},health:d=>i(v=>v&&{...v,health:d}),list:d=>i(v=>v&&{...v,pins:d}),unpinned:({id:d})=>i(v=>v&&{...v,pins:v.pins.filter(m=>m.id!==d)})}),[]);let c=(0,Rr.useCallback)(async d=>{a(!0);try{await Qe.login(d),await f()}finally{a(!1)}},[f]),p=(0,Rr.useCallback)(async d=>{await Qe.unpin(d),i(v=>v&&{...v,pins:v.pins.filter(m=>m.id!==d)})},[]),h=r?.health?.state==="connected";return(0,ye.jsxs)("div",{className:"rnm-panel",children:[(0,ye.jsxs)("section",{className:"rnm-card",children:[(0,ye.jsx)(Gi,{label:"RunNPU",health:r?.health}),r?.connection?.runnpu?.server?(0,ye.jsx)("div",{className:"rnm-sub rnm-ellipsis rnm-mono",children:r.connection.runnpu.server}):void 0,h?(0,ye.jsxs)("div",{className:"rnm-row",children:[(0,ye.jsxs)("span",{className:"rnm-sub rnm-grow",children:[r.health.platform?.version?`\u5E73\u53F0 ${r.health.platform.version}`:"",r.health.platform?.cluster?.reachable===!1?" \xB7 \u96C6\u7FA4\u672A\u8FDE\u901A":""]}),(0,ye.jsx)("button",{className:"rnm-btn rnm-btn--ghost",type:"button",onClick:async()=>{let d=await Qe.logout(t);await f(),d?.residual&&u(d.reason)},children:"\u65AD\u5F00"})]}):void 0,l?(0,ye.jsx)("div",{className:"rnm-err",children:l}):void 0]}),h?void 0:(0,ye.jsx)(Su,{defaultServer:r?.connection?.runnpu?.server,cwd:t,onSubmit:c,busy:n},r?.connection?.runnpu?.server??""),(0,ye.jsx)(GA,{cwd:t,connected:h,onAsk:e}),(0,ye.jsx)("div",{className:"rnm-stack",children:(0,ye.jsx)(WA,{cwd:t,connected:h})}),(0,ye.jsxs)("div",{className:"rnm-row rnm-pin-head",children:[(0,ye.jsx)("span",{className:"rnm-title rnm-grow",children:"\u56FE\u8868\u56FA\u5B9A\u533A"}),(0,ye.jsx)("label",{className:"rnm-sub",htmlFor:"rnm-range",children:"\u65F6\u95F4\u8303\u56F4"}),(0,ye.jsx)("select",{id:"rnm-range",className:"rnm-input rnm-range",value:r?.range??"24h",disabled:!h||o,onChange:d=>{let v=d.target.value;s(!0),Qe.setRange(v).then(()=>i(m=>m&&{...m,range:v})).catch(()=>{}).finally(()=>s(!1))},children:["1h","6h","24h","7d"].map(d=>(0,ye.jsx)("option",{value:d,children:d},d))}),(0,ye.jsx)("button",{className:"rnm-btn rnm-btn--ghost rnm-icon-btn",type:"button",onClick:()=>Qe.refresh().catch(()=>{}),disabled:!h,"aria-label":"\u7ACB\u5373\u5237\u65B0\u6240\u6709\u56FA\u5B9A\u56FE\u8868",title:"\u7ACB\u5373\u5237\u65B0",children:(0,ye.jsx)(Eu,{})})]}),(0,ye.jsx)("div",{className:"rnm-stack",children:(r?.pins??[]).length===0?(0,ye.jsx)("div",{className:"rnm-empty",children:"\u8FD8\u6CA1\u6709\u56FA\u5B9A\u7684\u56FE\u8868\u3002\u5728\u5BF9\u8BDD\u91CC\u8BA9 Agent \u51FA\u56FE\u540E\u70B9\u300C\u56FA\u5B9A\u300D\uFF0C\u56FE\u8868\u4F1A\u7559\u5728\u8FD9\u91CC\u5E76\u81EA\u52A8\u5237\u65B0\u4E3A\u6700\u65B0\u6570\u636E\u3002"}):r.pins.map(d=>(0,ye.jsx)(AU,{pin:d,onUnpin:p},d.id))})]})}var gh=require("react");var jy=require("react/jsx-runtime");function XA(t,e=!0){let[r,i]=(0,gh.useState)([]);return(0,gh.useEffect)(()=>{if(!e||!t)return;let n=!1;Qe.followups(t).then(o=>{n||i(o?.questions??[])}).catch(()=>{});let a=Hi(`${$e}/events`,{followups:o=>{o?.sessionId===t&&i(o.questions??[])}});return()=>{n=!0,a()}},[e,t]),r}function yh({questions:t,onPick:e,disabled:r=!1,style:i}){if(!(!t||t.length===0))return(0,jy.jsx)("div",{className:"rnm-chips",style:i,children:t.map(n=>(0,jy.jsx)("button",{className:"rnm-chip",type:"button",disabled:r,onClick:()=>e(n),children:n},n))})}var mi=require("react");var me=require("react/jsx-runtime"),DU={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap"};function MU(t,e){let r=t?.[e];if(Array.isArray(r))for(let i=r.length-1;i>=0;i-=1){let n=r[i]?.[1];if(typeof n=="number")return n}}function OU(t,e){return e.map(r=>{let i=t?.[r.name];if(!(!Array.isArray(i)||i.length===0))return{name:r.name,points:i}}).filter(Boolean)}var IU={promote:{text:"\u6700\u4F18",cls:"rnm-badge rnm-badge--promote"},discard:{text:"\u5DF2\u5F03",cls:"rnm-badge rnm-badge--discard"},next:{text:"\u5F85\u8FED\u4EE3",cls:"rnm-badge rnm-badge--next"}};function LU({version:t}){if(!t)return;let e=Object.entries(t.hyperparams??{}).filter(([n,a])=>t.previous&&t.previous[n]!==a),r=IU[t.decision],i=typeof t.promotedSeq=="number"&&t.promotedSeq!==t.seq;return(0,me.jsxs)("div",{className:"rnm-row rnm-row--wrap",children:[(0,me.jsxs)("span",{className:"rnm-title",children:["\u7B2C ",t.seq," \u6B21\u8BAD\u7EC3"]}),r?(0,me.jsx)("span",{className:r.cls,children:r.text}):void 0,(0,me.jsxs)("span",{className:"rnm-sub",children:["\u5171 ",t.total," \u6B21"]}),i?(0,me.jsxs)("span",{className:"rnm-sub",title:"\u8D26\u672C\u4E2D\u6700\u8FD1\u4E00\u6B21 promote \u7684\u8F6E\u6B21",children:["\u5F53\u524D\u6700\u4F18\uFF1A\u7B2C ",t.promotedSeq," \u6B21"]}):void 0,t.status?(0,me.jsx)("span",{className:"rnm-sub",children:t.status}):void 0,t.template?.id?(0,me.jsxs)("span",{className:"rnm-sub rnm-mono",children:[t.template.id,t.template.version?`@${t.template.version}`:""]}):void 0,Object.entries(t.hyperparams??{}).map(([n,a])=>{let o=e.some(([s])=>s===n);return(0,me.jsxs)("span",{className:"rnm-sub rnm-mono rnm-icon-text",title:o?"\u4E0E\u4E0A\u4E00\u6B21\u4E0D\u540C":void 0,children:[n,"=",String(a),o?(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(c_,{size:12}),(0,me.jsx)("span",{style:DU,children:"\uFF08\u4E0E\u4E0A\u4E00\u6B21\u4E0D\u540C\uFF09"})]}):void 0]},n)})]})}function NU({strip:t}){let e=t.unknownKeys??[],r=(t.missingKeys??[]).filter(i=>!e.includes(i));if(!(e.length===0&&r.length===0&&!t.hint))return(0,me.jsxs)(me.Fragment,{children:[e.length>0?(0,me.jsxs)("div",{className:"rnm-err",children:["\u5B9E\u9A8C\u91CC\u6CA1\u6709\u8FD9\u4E9B\u6307\u6807\uFF1A",e.join("\u3001")," \u2014\u2014 .train/metrics.json \u63A8\u65AD\u6709\u8BEF\uFF0C\u5EFA\u8BAE\u8BA9 Agent \u91CD\u65B0\u5206\u6790\u5E76 training_metrics_set\u3002"]}):void 0,r.length>0?(0,me.jsxs)("div",{className:"rnm-sub",children:["\u8FD9\u4E9B\u6307\u6807\u6682\u65F6\u6CA1\u6709\u6570\u636E\uFF1A",r.join("\u3001")," \u2014\u2014 \u82E5\u8BAD\u7EC3\u5DF2\u7ECF\u8DD1\u4E86\u4E00\u6BB5\u65F6\u95F4\uFF0C\u5EFA\u8BAE\u8BA9 Agent \u91CD\u65B0\u5206\u6790\u5E76 training_metrics_set\u3002"]}):void 0,t.hint?(0,me.jsx)("div",{className:"rnm-sub",children:t.hint}):void 0]})}var PU={"not-training-project":void 0,"no-workspace":void 0,"no-metric-keys":"\u5173\u952E\u6307\u6807\u8FD8\u6CA1\u4ECE\u8BAD\u7EC3\u4EE3\u7801\u91CC\u5206\u6790\u51FA\u6765 \u2014\u2014 \u8BA9 Agent \u8BFB\u4E00\u904D\u4EE3\u7801\u5E76\u5199\u5165 .train/metrics.json\u3002","no-run":"\u8FD8\u6CA1\u6709\u5DF2\u8BB0\u5F55\u7684\u8BAD\u7EC3\u8FD0\u884C\u3002","swanlab-unconfigured":"SwanLab \u5C1A\u672A\u914D\u7F6E\uFF0C\u66F2\u7EBF\u65E0\u6CD5\u62C9\u53D6\u3002"},RU={"not-training-project":"\u8FD9\u4E2A\u76EE\u5F55\u8FD8\u6CA1\u88AB\u8BC6\u522B\u4E3A\u8BAD\u7EC3\u5DE5\u7A0B \u2014\u2014 \u8BA9 Agent \u770B\u4E00\u4E0B\u5DE5\u7A0B\u7ED3\u6784\u3002","no-workspace":void 0};function qA({cwd:t,showWorkspace:e=!1,explainInactive:r=!1}){let[i,n]=(0,mi.useState)(void 0),[a,o]=(0,mi.useState)(!1),[s,l]=(0,mi.useState)(void 0),[u,f]=(0,mi.useState)(!1);(0,mi.useEffect)(()=>{let m=!1;return Ln.metrics(t).then(g=>{m||n(g)}).catch(()=>{}),Ln.state(t).then(g=>{m||l(g)}).catch(()=>{}),()=>{m=!0}},[t]),(0,mi.useEffect)(()=>{let m=new URL(`${Es}/events`,globalThis.location.origin);return t&&m.searchParams.set("cwd",t),Hi(m.toString(),{strip:g=>{(g.cwd??void 0)===(t??void 0)&&n(g.strip)}})},[t]);let c=(0,mi.useCallback)(async m=>{f(!0);try{let g=await Ln.configureSwanlab(m);return l(y=>y&&{...y,swanlab:g.health}),g.health?.state==="connected"&&o(!1),g}finally{f(!1)}},[]);if(!i)return;let p=i.state==="no-workspace"||i.state==="not-training-project";if(p&&!r)return;let h=i.keys??[],d=i.state==="ok"?OU(i.metrics,h):[],v=s?.connection?.swanlab??s?.swanlab;return(0,me.jsxs)("div",{className:"rnm-strip",children:[(0,me.jsxs)("div",{className:"rnm-row rnm-row--wrap",children:[(0,me.jsx)(Gi,{label:"SwanLab",health:s?.swanlab}),(0,me.jsx)(Gi,{label:"RunNPU",health:s?.runnpu}),e&&t?(0,me.jsx)("span",{className:"rnm-sub rnm-mono rnm-ellipsis",title:t,children:t}):void 0,(0,me.jsx)("span",{className:"rnm-grow"}),i.runUrl?(0,me.jsxs)("a",{className:"rnm-sub rnm-icon-text",href:i.runUrl,target:"_blank",rel:"noreferrer",children:["\u6253\u5F00\u5B9E\u9A8C",(0,me.jsx)(f_,{size:12})]}):void 0,(0,me.jsx)("button",{className:"rnm-btn rnm-btn--ghost",type:"button",onClick:()=>o(m=>!m),children:a?"\u6536\u8D77\u914D\u7F6E":"\u914D\u7F6E\u8FDE\u63A5"})]}),(0,me.jsx)(LU,{version:i.version}),a?(0,me.jsx)(bu,{current:v,cwd:t,onSubmit:c,busy:u},`${v?.mode??""}|${v?.apiHost??""}`):void 0,i.state==="ok"?(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)("div",{className:"rnm-metrics",children:h.map(m=>{let g=MU(i.metrics,m.name);return(0,me.jsxs)("div",{className:"rnm-metric",children:[(0,me.jsx)("span",{className:"rnm-metric-name",children:m.name}),(0,me.jsx)("span",{className:"rnm-metric-value",children:g===void 0?"\u2014":Number(g.toPrecision(6))})]},m.name)})}),(0,me.jsx)(vh,{series:d,height:120,group:"runnpu-training"}),(0,me.jsx)(NU,{strip:i})]}):(0,me.jsx)("div",{className:"rnm-sub",children:(p?RU[i.state]:PU[i.state])??i.reason??i.hint})]})}function _h(t){let e=t,r=new Set;return{get:()=>e,set(i){if(!Object.is(i,e)){e=i;for(let n of[...r])try{n(e)}catch{}}},subscribe(i){return r.add(i),()=>r.delete(i)}}}var to=_h(void 0),$y=_h(void 0),Xee=_h(void 0),yu=_h(void 0);function xh(t){let e=i=>{!i||yu.get()!==i||(yu.set(void 0),t(i))},r=yu.subscribe(e);return e(yu.get()),r}function KA(t){typeof t=="string"&&t.trim()!==""&&yu.set(t.trim())}var _u=require("react/jsx-runtime");function Cs({useWorkspaces:t,useSessions:e,sessionId:r,openDetails:i}){let n=e(s=>s?.current),o=Eh(t,r??n);return(0,Qy.useEffect)(()=>{i?.()},[i]),(0,_u.jsx)(YA,{cwd:o,onAsk:KA})}function ZA({inputActions:t,useInput:e,useSession:r,useSessions:i,sessionId:n}){let a=Ds(i,n),o=i(p=>n?!!p?.byId?.[n]?.blank:!0),s=e(p=>!!(p?.draft??p?.text)),l=r(p=>!!p?.running),u=a===Ot.compute.id&&!o,f=XA(n,u);if((0,Qy.useEffect)(()=>{if(!(!u||l))return xh(p=>{t.setDraft(p),t.submit()})},[u,l,t]),!u||l||s)return;let c=f.length>0?f:Ot.compute.openers;return(0,_u.jsx)(yh,{questions:c,onPick:p=>{t.setDraft(p),t.submit()}})}function jA({useSessions:t,useWorkspaces:e,sessionId:r}){let i=Ds(t,r),n=Eh(e,r);if(i===Ot.training.id)return(0,_u.jsx)(qA,{cwd:n})}function kU(t){let e=("kind"in t?t.call?.argsRaw:t.argsRaw)??"";try{return e?JSON.parse(e):{}}catch{return{}}}function $A({callId:t,block:e,sessionId:r,useSessions:i}){let n=i(s=>r?s?.byId?.[r]?.title:void 0),o="kind"in e?e.isError?"error":"done":"running";return(0,_u.jsx)(zA,{meta:e.meta??e.resultView,args:kU(e),status:o,sessionId:r,sessionTitle:n,callId:t})}var gi=require("react/jsx-runtime"),QA=!1;function JA(t){let{useWorkspaces:e,useSessions:r}=t;Au(t);let[i,n]=(0,Sh.useState)(QA);(0,Sh.useEffect)(()=>{QA=i},[i]);let a=r(l=>l?.current),o=Ds(r,a),s=r(l=>{let u=l?.current;return u?!!l?.byId?.[u]?.blank:!0});if(!(o!==Ot.compute.id||!s))return(0,gi.jsxs)("div",{style:{position:"fixed",right:16,bottom:16,width:i?"auto":"min(360px, 32vw)",maxHeight:"60vh",pointerEvents:"auto",display:"flex",flexDirection:"column",border:"1px solid var(--dsw-alias-border-secondary, rgba(128,128,128,.3))",background:"var(--dsw-alias-bg-layer-1, #fff)",boxShadow:"0 6px 24px rgba(0,0,0,.10)",overflow:"hidden"},children:[(0,gi.jsxs)("div",{className:"rnm-row",style:{padding:"6px 10px",borderBottom:i?"none":"1px solid var(--dsw-alias-border-secondary, rgba(128,128,128,.2))",background:"var(--dsw-alias-bg-layer-2, transparent)"},children:[(0,gi.jsx)("span",{className:"rnm-title rnm-grow",children:"\u7B97\u529B\u9762\u677F"}),(0,gi.jsx)("button",{className:"rnm-btn rnm-btn--ghost rnm-icon-btn",type:"button",onClick:()=>n(l=>!l),"aria-label":i?"\u5C55\u5F00\u7B97\u529B\u9762\u677F":"\u6536\u8D77\u7B97\u529B\u9762\u677F","aria-expanded":!i,title:i?"\u5C55\u5F00":"\u6536\u8D77",children:i?(0,gi.jsx)(Tu,{}):(0,gi.jsx)(wu,{})})]}),i?void 0:(0,gi.jsx)("div",{style:{overflow:"auto",minHeight:0},children:(0,gi.jsx)(Cs,{useWorkspaces:e,useSessions:r})})]})}var Mn=require("react");var xu=require("react/jsx-runtime"),BU=t=>Object.hasOwn(Ot,t??"")?Ot[t]:void 0,eD='textarea, [contenteditable="true"]';function UU(){let t=document.querySelector(eD);if(!t)return;let e=t,r=t.getBoundingClientRect().bottom;for(let i=0;i<6&&e.parentElement;i+=1){e=e.parentElement;let n=e.getBoundingClientRect();if(n.bottom>r+1)return n}return t.getBoundingClientRect()}function zU(t){let[e,r]=(0,Mn.useState)(void 0);return(0,Mn.useEffect)(()=>{if(!t)return;let i=0,n=()=>{i===0&&(i=setTimeout(()=>{i=0,a()},80))},a=()=>{let u=UU();if(!u||u.width===0){r(void 0);return}r(f=>f&&f.left===u.left&&f.width===u.width&&f.bottom===u.bottom?f:{left:u.left,width:u.width,bottom:u.bottom})};a(),window.addEventListener("resize",n);let o=new ResizeObserver(n);o.observe(document.body);let s=new MutationObserver(()=>{document.querySelector(eD)&&(n(),s.disconnect())});s.observe(document.body,{childList:!0,subtree:!0});let l=setTimeout(()=>s.disconnect(),1e4);return()=>{clearTimeout(i),clearTimeout(l),window.removeEventListener("resize",n),o.disconnect(),s.disconnect()}},[t]),e}function tD({useSessions:t,send:e}){let[r,i]=(0,Mn.useState)(!1),n=t(u=>{let f=u?.current,c=f?u?.byId?.[f]:void 0;return c?.blank?Du(c):void 0}),a=BU(n),o=a?.openers,s=zU(!!o),l=(0,Mn.useCallback)(async u=>{if(!r){i(!0);try{await e(u)}finally{i(!1)}}},[e,r]);if((0,Mn.useEffect)(()=>{if(o)return xh(l)},[o,l]),!!o)return(0,xu.jsxs)("div",{style:{position:"fixed",...s?{left:s.left,width:s.width,top:s.bottom+12}:{left:"50%",top:"calc(50% + 104px)",transform:"translateX(-50%)",width:"min(560px, 88vw)"},pointerEvents:"auto",display:"flex",flexDirection:"column",gap:6,alignItems:"center"},children:[(0,xu.jsxs)("div",{className:"rnm-sub",children:[a.name,"\u6A21\u5F0F \xB7 \u53EF\u4EE5\u5148\u95EE"]}),(0,xu.jsx)(yh,{questions:o,onPick:l,disabled:r,style:{justifyContent:"center"}})]})}var nD=require("react/jsx-runtime"),FU="dsh-runnpu/compute",bh="runnpu-compute";function rD(){return{id:FU,kind:bh,title:()=>"\u96C6\u7FA4",guide:[{kind:bh,title:"\u96C6\u7FA4\u9762\u677F",description:"\u8FDE\u63A5\u72B6\u6001\u3001\u56FA\u5B9A\u56FE\u8868\u3001\u9700\u8981\u6CE8\u610F\u7684\u8D1F\u8F7D",order:40}]}}function iD(t){let e=t.useSessions??As.useSessions,r=t.useWorkspaces??As.useWorkspaces;if(!(!e||!r))return(0,nD.jsx)(Cs,{useSessions:e,useWorkspaces:r,sessionId:t.sessionId})}function aD(t={}){let e=(n,a)=>(t.fetch??globalThis.fetch)(n,a),r="nonce"in t?t.nonce:globalThis.__RUNNPU_NONCE__;async function i(){try{let n=await e("/",{headers:{accept:"text/html"},cache:"no-store"});if(!n.ok)return;let a=await n.text(),o=/__RUNNPU_NONCE__\s*=\s*"([A-Za-z0-9_-]+)"/.exec(a);return o&&(r=o[1]),o?.[1]}catch{return}}return{nonce:()=>r,request:(n,a)=>e(n,{...a,headers:{...a?.headers,...r?{"x-runnpu-nonce":r}:{}}}),shouldRetry:async(n,a)=>n.status===401&&a?.error==="unauthenticated"&&await i()!==void 0,streamUrl:n=>{let a=new URL(n,globalThis.location?.origin);return r&&a.searchParams.set("nonce",r),a.toString()},recoverStream:async()=>await i()!==void 0}}var oD=require("react/jsx-runtime");i_(aD());var VU=["slots"];function HU(t){let{useSessions:e}=t;Au(t);let r=p_(e),i=e(o=>{let s=o?.current;return s?!!o?.byId?.[s]?.blank:!0});$y.get()!==r&&$y.set(r);let n=r===void 0?void 0:`${r}|${i}`;to.get()!==n&&to.set(n);let a=r===Ot.compute.id||r===Ot.training.id?`${Ot[r].name}\u6A21\u5F0F`:void 0;if(a)return(0,oD.jsx)("div",{style:{position:"absolute",top:8,right:12,pointerEvents:"auto",fontSize:11,padding:"2px 8px",border:"1px solid var(--dsw-alias-border-secondary, rgba(128,128,128,.3))",background:"var(--dsw-alias-bg-layer-2, transparent)",color:"var(--dsw-alias-label-tertiary, inherit)"},children:a})}function GU(t){t.effect(()=>s_(),"runnpu-modes: stylesheet"),t.slots.inject("conversation.input.dock",()=>t.slots.register({name:"conversation.input.dock",id:"runnpu-training-strip",order:-10},jA)),t.slots.inject("conversation.input.dock",()=>t.slots.register({name:"conversation.input.dock",id:"runnpu-suggestions",order:100},ZA)),t.slots.inject("shell.overlay",()=>t.slots.register({name:"shell.overlay",id:"runnpu-mode-badge",order:10},HU)),t.slots.inject("shell.overlay",()=>t.slots.register({name:"shell.overlay",id:"runnpu-floating-panel",order:30},JA)),t.slots.inject("settings.section",()=>t.slots.register({name:"settings.section",id:"runnpu-connections",order:60,label:()=>"RunNPU / SwanLab"},o_)),t.inject(["sessions"],i=>{let n=async a=>{let s=i.sessions.list.getSnapshot()?.current;if(!s)return;await i.sessions.binding(s)?.session?.prompt([{type:"text",text:a}],"queue")};i.slots.inject("shell.overlay",()=>i.slots.register({name:"shell.overlay",id:"runnpu-hero-openers",order:20,inject:()=>({send:n})},tD))}),t.slots.inject("tool.call.toolview",()=>t.slots.register({name:"tool.call.toolview",key:"cluster_chart"},$A));let e,r=i=>{if(t.get("sidebarRightTabs"))return;let n=i===`${Ot.compute.id}|false`;if(n&&!e){let a=t.slots.inject("details",()=>t.slots.register({name:"details",priority:-1,inject:()=>({openDetails:()=>t.get("layout")?.openDetails?.()})},Cs));typeof a=="function"?e=a:console.warn("[dsh-runnpu] slots.inject returned no disposer; compute panel not mounted");return}!n&&e&&(e(),e=void 0)};t.effect(()=>{let i=to.subscribe(r);return r(to.get()),()=>{i(),e&&(e(),e=void 0)}},"runnpu-modes: compute details column"),t.inject(["sidebarRightTabs","sidebarRight","sessions"],i=>{let n,a,o=s=>{let[l,u]=String(s??"").split("|"),f=l===Ot.compute.id;if(f&&!n&&(n=i.sidebarRightTabs.register(rD())),!f&&n&&(n(),n=void 0),!f||u!=="false")return;let c=i.sessions.list.getSnapshot()?.current;!c||a===c||(a=c,setTimeout(()=>{try{i.sidebarRight.openTab(bh,{revealIfOpened:!0})}catch(p){console.warn("[dsh-runnpu] could not open the compute tab",p)}},0))};i.effect(()=>{let s=to.subscribe(o);return o(to.get()),()=>{s(),n&&(n(),n=void 0)}},"runnpu-modes: compute right tab"),i.slots.inject("sidebar.right.pane.tab",()=>i.slots.register({name:"sidebar.right.pane.tab",key:"dsh-runnpu/compute",inject:s=>({sessionId:s})},iD))})}
184
184
 
185
185
  return module.exports;
186
186
  }