plotleaf 0.3.2 → 0.4.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/README.md +24 -1
- package/dist/assets/base.js +1 -1
- package/dist/assets/charts.js +17 -17
- package/dist/assets/styles.css +131 -0
- package/dist/cli.js +1343 -919
- package/examples/interactions/control-views.json +412 -0
- package/examples/interactions/regional-views.json +409 -0
- package/examples/interactions/report.md +30 -0
- package/examples/report.md +11 -1
- package/package.json +3 -1
- package/schema/components.json +377 -2
- package/skills/plotleaf/SKILL.md +61 -1
package/dist/assets/charts.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var
|
|
1
|
+
(()=>{var rD=Object.defineProperty;var iD=(t)=>t;function nD(t,e){this[t]=iD.bind(null,e)}var aD=(t,e)=>{for(var r in e)rD(t,r,{get:e[r],enumerable:!0,configurable:!0,set:nD.bind(e,r)})};var ft={};aD(ft,{Arc:()=>Eo,BezierCurve:()=>Ao,BoundingRect:()=>ae,Circle:()=>wo,CompoundPath:()=>rl,Ellipse:()=>Cf,Group:()=>we,HOVER_LAYER_FOR_INCREMENTAL:()=>pa,HOVER_LAYER_FROM_THRESHOLD:()=>od,HOVER_LAYER_NO:()=>ad,Image:()=>_t,IncrementalDisplayable:()=>ed,Line:()=>Ht,LinearGradient:()=>Do,OrientedBoundingRect:()=>Nf,Path:()=>ie,Point:()=>fe,Polygon:()=>Mf,Polyline:()=>cn,RadialGradient:()=>Qv,Rect:()=>De,Ring:()=>Ef,Sector:()=>dr,Text:()=>$e,WH:()=>hn,XY:()=>ai,applyTransform:()=>Bf,calcZ2Range:()=>FL,clipPointsByRect:()=>sS,clipRectByRect:()=>lS,createIcon:()=>zf,decomposeTransform:()=>HL,ensureCopyRect:()=>Po,ensureCopyTransform:()=>Vf,expandOrShrinkRect:()=>Lo,extendPath:()=>rS,extendShape:()=>tS,getCurrentCanvasPainter:()=>GL,getShapeClass:()=>iS,getTransform:()=>oS,groupTransition:()=>ld,initProps:()=>Qe,isBoundingRectAxisAligned:()=>Ff,isElementRemoved:()=>ca,lineLineIntersect:()=>uS,linePolygonIntersect:()=>zL,makeImage:()=>kf,makePath:()=>nl,mergePath:()=>aS,payloadDisableAnimation:()=>VL,registerShape:()=>mr,removeElement:()=>Mo,removeElementWithFadeOut:()=>pn,resizePath:()=>sd,retrieveZInfo:()=>al,setTooltipConfig:()=>Uf,subPixelOptimize:()=>RL,subPixelOptimizeLine:()=>ha,subPixelOptimizeRect:()=>NL,transformDirection:()=>kL,traverseElements:()=>Ci,traverseUpdateZ:()=>ol,updateProps:()=>Ve});var zi=(t)=>typeof t==="object"?`${t.start}/${t.end}`:`${typeof t}:${String(t)}`;var oD=JSON.parse(document.getElementById("plotleaf-data")?.textContent??"{}");for(let t of oD.explorations??[]){let n=function(){let s=new Map,l=!0;for(let f of t.inputs){let c=r(f.id),p=c[0],h;if(f.type==="select")h=f.options[Number(p.value)]?.value??"\x00";else if(f.type==="segmented")h=f.options[Number(c.find((m)=>m.checked)?.value??-1)]?.value??"\x00";else if(f.type==="toggle")h=p.checked;else if(f.type==="date-range")h={start:c.find((m)=>m.dataset.rangePart==="start").value,end:c.find((m)=>m.dataset.rangePart==="end").value};else h=f.type==="number"?p.value===""?NaN:Number(p.value):p.value;let v=zi(h);s.set(f.id,v);let d=f.type==="toggle"||f.options.some((m)=>zi(m.value)===v);for(let m of c)m.setAttribute("aria-invalid",String(!d));l&&=d}let u=l?t.views.find((f)=>t.inputs.every((c)=>s.get(c.id)===zi(f.when[c.id]))):void 0;for(let f of e.querySelectorAll("[data-plotleaf-view]"))f.hidden=f.dataset.plotleafView!==u?.id;i.textContent=u?`Showing ${u.label} · Prepared view`:"No prepared view for these selections. Choose supported values or reset.",e.dispatchEvent(new Event("plotleaf:viewchange",{bubbles:!0}))},a=function(){for(let s of t.inputs)for(let l of r(s.id))if(s.type==="toggle")l.checked=s.default;else if(s.type==="date-range")l.value=s.default[l.dataset.rangePart];else if(s.type==="segmented")l.checked=zi(s.options[Number(l.value)].value)===zi(s.default);else if(s.type==="select")l.value=String(s.options.findIndex((u)=>zi(u.value)===zi(s.default)));else l.value=String(s.default);n()},e=document.getElementById(`${t.id}-title`)?.parentElement;if(!e)continue;let r=(s)=>[...e.querySelectorAll("[data-plotleaf-input]")].filter((l)=>l.dataset.plotleafInput===s),i=e.querySelector("[data-plotleaf-status]");for(let s of t.inputs)for(let l of r(s.id))l.disabled=!1,l.addEventListener("input",n),l.addEventListener("change",n);let o=e.querySelector("[data-plotleaf-reset]");o.disabled=!1,o.addEventListener("click",a),n()}var sD=new Intl.Collator("en-GB",{numeric:!0,sensitivity:"base"});for(let t of document.querySelectorAll("table[data-plotleaf-table]")){let e=t.tBodies[0];if(!e)continue;let r=[...e.rows],i=-1,n=!1;for(let a of t.querySelectorAll("thead button[data-column]"))a.disabled=!1,a.addEventListener("click",()=>{let o=Number(a.dataset.column);n=i===o?!n:!1,i=o;let s=r.map((l,u)=>({row:l,index:u,value:JSON.parse(l.cells[o]?.dataset.raw??"null")}));s.sort((l,u)=>{if(l.value===null||u.value===null)return l.value===u.value?l.index-u.index:l.value===null?1:-1;let f=typeof l.value==="number"&&typeof u.value==="number"?l.value-u.value:sD.compare(String(l.value),String(u.value));return(n?-f:f)||l.index-u.index}),e.replaceChildren(...s.map((l)=>l.row)),t.querySelectorAll("thead th[aria-sort]").forEach((l)=>{let u=l.contains(a);l.setAttribute("aria-sort",u?n?"descending":"ascending":"none");let f=l.querySelector(".sort-indicator");if(f)f.textContent=u?n?"↓":"↑":"↕"})})}/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -11,8 +11,8 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
11
11
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
12
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
13
|
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */var eh=function(t,e){return eh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n))r[n]=i[n]},eh(t,e)};function P(t,e){if(typeof e!=="function"&&e!==null)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");eh(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var aD=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),oD=function(){function t(){this.browser=new aD,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}(),zi=new oD;if(typeof wx==="object"&&typeof wx.getSystemInfoSync==="function")zi.wxa=!0,zi.touchEventsSupported=!0;else if(typeof document>"u"&&typeof self<"u")zi.worker=!0;else if(!zi.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent==="string"&&navigator.userAgent.indexOf("Node.js")>-1)zi.node=!0,zi.svgSupported=!0;else sD(navigator.userAgent,zi);function sD(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);if(i)r.firefox=!0,r.version=i[1];if(n)r.ie=!0,r.version=n[1];if(a)r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18;if(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 ne=zi;var nu=12,th="sans-serif",Bt=nu+"px "+th,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),St={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(r,i){if(!t){var n=St.createCanvas();t=n&&n.getContext("2d")}if(t){if(e!==i)e=t.font=i||Bt;return t.measureText(r)}else{r=r||"",i=i||Bt;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||nu,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}};var dy=Qt(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),my=Qt(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Ya=Object.prototype.toString,ou=Array.prototype,{forEach:hD,filter:vD,slice:ih,map:dD}=ou,hy=function(){}.constructor,au=hy?hy.prototype:null,nh="__proto__",rh=2311,mD=Math.pow(2,53)-1;function su(){if(rh>=mD)rh=0;return rh++}function jt(){var t=[];for(var e=0;e<arguments.length;e++)t[e]=arguments[e];if(typeof console<"u")console.error.apply(console,t)}function te(t){if(t==null||typeof t!=="object")return t;var e=t,r=Ya.call(t);if(r==="[object Array]"){if(!ps(t)){e=[];for(var i=0,n=t.length;i<n;i++)e[i]=te(t[i])}}else if(my[r]){if(!ps(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(!dy[r]&&!ps(t)&&!Ui(t)){e={};for(var o in t)if(t.hasOwnProperty(o)&&o!==nh)e[o]=te(t[o])}return e}function _e(t,e,r){if(!W(e)||!W(t))return r?te(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==nh){var n=t[i],a=e[i];if(W(a)&&W(n)&&!k(a)&&!k(n)&&!Ui(a)&&!Ui(n)&&!vy(a)&&!vy(n)&&!ps(a)&&!ps(n))_e(n,a,r);else if(r||!(i in t))t[i]=te(e[i])}return t}function N(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)if(e.hasOwnProperty(r)&&r!==nh)t[r]=e[r];return t}function gy(t,e,r){t=t||{};for(var i=0;i<r.length;i++){var n=r[i];t[n]=e[n]}return t}function oe(t,e,r){var i=re(e);for(var n=0,a=i.length;n<a;n++){var o=i[n];if(r?e[o]!=null:t[o]==null)t[o]=e[o]}return t}var tz=St.createCanvas;function ue(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 yy(t,e){var r=t.prototype;function i(){}i.prototype=e.prototype,t.prototype=new i;for(var n in r)if(r.hasOwnProperty(n))t.prototype[n]=r[n];t.prototype.constructor=t,t.superClass=e}function ht(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames){var i=Object.getOwnPropertyNames(e);for(var n=0;n<i.length;n++){var a=i[n];if(a!=="constructor"){if(r?e[a]!=null:t[a]==null)t[a]=e[a]}}}else oe(t,e,r)}function et(t){if(!t)return!1;if(typeof t==="string")return!1;return typeof t.length==="number"}function w(t,e,r){if(!(t&&e))return;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)if(t.hasOwnProperty(a))e.call(r,t[a],a,t)}function U(t,e,r){if(!t)return[];if(!e)return lu(t);if(t.map&&t.map===dD)return t.map(e,r);else{var i=[];for(var n=0,a=t.length;n<a;n++)i.push(e.call(r,t[n],n,t));return i}}function Qt(t,e,r,i){if(!(t&&e))return;for(var n=0,a=t.length;n<a;n++)r=e.call(i,r,t[n],n,t);return r}function Oe(t,e,r){if(!t)return[];if(!e)return lu(t);if(t.filter&&t.filter===vD)return t.filter(e,r);else{var i=[];for(var n=0,a=t.length;n<a;n++)if(e.call(r,t[n],n,t))i.push(t[n]);return i}}function _y(t,e,r){if(!(t&&e))return;for(var i=0,n=t.length;i<n;i++)if(e.call(r,t[i],i,t))return t[i]}function re(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)if(t.hasOwnProperty(r))e.push(r);return e}function gD(t,e){var r=[];for(var i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return t.apply(e,r.concat(ih.call(arguments)))}}var me=au&&X(au.bind)?au.call.bind(au.bind):gD;function Ae(t){var e=[];for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(ih.call(arguments)))}}function k(t){if(Array.isArray)return Array.isArray(t);return Ya.call(t)==="[object Array]"}function X(t){return typeof t==="function"}function V(t){return typeof t==="string"}function Wa(t){return Ya.call(t)==="[object String]"}function se(t){return typeof t==="number"}function W(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function vy(t){return!!dy[Ya.call(t)]}function ke(t){return!!my[Ya.call(t)]}function Ui(t){return typeof t==="object"&&typeof t.nodeType==="number"&&typeof t.ownerDocument==="object"}function Xa(t){return t.colorStops!=null}function xy(t){return Ya.call(t)==="[object RegExp]"}function Vr(t){return t!==t}function Cr(){var t=[];for(var 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 G(t,e){return t!=null?t:e}function bt(t,e,r){return t!=null?t:e!=null?e:r}function lu(t){var e=[];for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];return ih.apply(t,e)}function qa(t){if(typeof t==="number")return[t,t,t,t];var e=t.length;if(e===2)return[t[0],t[1],t[0],t[1]];else if(e===3)return[t[0],t[1],t[2],t[1]];return t}function I(t,e){if(!t)throw Error(e)}function vt(t){if(t==null)return null;else if(typeof t.trim==="function")return t.trim();else return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Sy="__ec_primitive__";function Za(t){t[Sy]=!0}function ps(t){return t[Sy]}var yD=function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);if(r)delete this.data[e];return 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 re(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var i in r)if(r.hasOwnProperty(i))e(r[i],i)},t}(),by=typeof Map==="function";function _D(){return by?new Map:new yD}var xD=function(){function t(e){var r=k(e);this.data=_D();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 by?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function Z(t){return new xD(t)}function Ty(t,e){var r=new t.constructor(t.length+e.length);for(var i=0;i<t.length;i++)r[i]=t[i];var n=t.length;for(var i=0;i<e.length;i++)r[i+n]=e[i];return r}function Fi(t,e){var r;if(Object.create)r=Object.create(t);else{var i=function(){};i.prototype=t,r=new i}if(e)N(r,e);return r}function Be(t,e){return t.hasOwnProperty(e)}function Pe(){}var Ka=180/Math.PI,rz=Number.EPSILON||Math.pow(2,-52);function Vi(t,e){if(t==null)t=0;if(e==null)e=0;return[t,e]}function wy(t){return[t[0],t[1]]}function uu(t,e,r){return t[0]=e,t[1]=r,t}function ah(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function fu(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function SD(t){return Math.sqrt(bD(t))}function bD(t){return t[0]*t[0]+t[1]*t[1]}function cu(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function ja(t,e){var r=SD(e);if(r===0)t[0]=0,t[1]=0;else t[0]=e[0]/r,t[1]=e[1]/r;return t}function pu(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var hs=pu;function TD(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Pn=TD;function hu(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 dt(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 pi(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function hi(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var Qa=function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t}(),wD=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){var r=e.target;while(r&&!r.draggable)r=r.parent||r.__hostTarget;if(r)this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Qa(r,e),"dragstart",e.event)},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var{offsetX:i,offsetY:n}=e,a=i-this._x,o=n-this._y;this._x=i,this._y=n,r.drift(a,o,e),this.handler.dispatchToElement(new Qa(r,e),"drag",e.event);var s=this.handler.findHover(i,n,r).target,l=this._dropTarget;if(this._dropTarget=s,r!==s){if(l&&s!==l)this.handler.dispatchToElement(new Qa(l,e),"dragleave",e.event);if(s&&s!==l)this.handler.dispatchToElement(new Qa(s,e),"dragenter",e.event)}}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;if(r)r.dragging=!1;if(this.handler.dispatchToElement(new Qa(r,e),"dragend",e.event),this._dropTarget)this.handler.dispatchToElement(new Qa(this._dropTarget,e),"drop",e.event);this._draggingTarget=null,this._dropTarget=null},t}(),Cy=wD;var CD=function(){function t(e){if(e)this._$eventProcessor=e}return t.prototype.on=function(e,r,i,n){if(!this._$handlers)this._$handlers={};var a=this._$handlers;if(typeof r==="function")n=i,i=r,r=null;if(!i||!e)return this;var o=this._$eventProcessor;if(r!=null&&o&&o.normalizeQuery)r=o.normalizeQuery(r);if(!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]){var n=[];for(var a=0,o=i[e].length;a<o;a++)if(i[e][a].h!==r)n.push(i[e][a]);i[e]=n}if(i[e]&&i[e].length===0)delete i[e]}else delete i[e];return this},t.prototype.trigger=function(e){var r=[];for(var 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){var o=r.length,s=n.length;for(var l=0;l<s;l++){var u=n[l];if(a&&a.filter&&u.query!=null&&!a.filter(e,u.query))continue;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){var r=[];for(var 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){var o=r.length,s=r[o-1],l=n.length;for(var u=0;u<l;u++){var f=n[u];if(a&&a.filter&&f.query!=null&&!a.filter(e,f.query))continue;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}(),Et=CD;var AD=Math.log(2);function oh(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)/AD);return t[r][l]}var u=i|1<<r,f=r+1;while(i&1<<f)f++;var c=0;for(var p=0,h=0;p<s;p++){var v=1<<p;if(!(v&n))c+=(h%2?-1:1)*t[r][p]*oh(t,e-1,f,u,n|v,a),h++}return a[o]=c,c}function sh(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=oh(r,8,0,0,0,i);if(n===0)return;var a=[];for(var 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)*oh(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 vu="___zrEVENTSAVED",lh=[];function Ay(t,e,r,i,n){return du(lh,e,i,n,!0)&&du(t,r,lh[0],lh[1])}function Ey(t,e){t&&r(t),e&&r(e);function r(i){var n=i[vu];if(n)n.clearMarkers&&n.clearMarkers(),delete i[vu]}}function du(t,e,r,i,n){if(e.getBoundingClientRect&&ne.domSupported&&!uh(e)){var a=e[vu]||(e[vu]={}),o=ED(e,a),s=DD(o,a,n);if(s)return s(t,r,i),!0}return!1}function ED(t,e){var r=e.markers;if(r)return r;r=e.markers=[];var i=["left","right"],n=["top","bottom"];for(var 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 DD(t,e,r){var i=r?"invTrans":"trans",n=e[i],a=e.srcCoords,o=[],s=[],l=!0;for(var u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,{left:p,top:h}=f;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?sh(s,o):sh(o,s))}function uh(t){return t.nodeName.toUpperCase()==="CANVAS"}var MD=/([&<>"'])/g,OD={"&":"&","<":"<",">":">",'"':""","'":"'"};function it(t){return t==null?"":(t+"").replace(MD,function(e,r){return OD[r]})}var LD=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fh=[],PD=ne.browser.firefox&&+ne.browser.version.split(".")[0]<39;function mu(t,e,r,i){if(r=r||{},i)Dy(t,e,r);else if(PD&&e.layerX!=null&&e.layerX!==e.offsetX)r.zrX=e.layerX,r.zrY=e.layerY;else if(e.offsetX!=null)r.zrX=e.offsetX,r.zrY=e.offsetY;else Dy(t,e,r);return r}function Dy(t,e,r){if(ne.domSupported&&t.getBoundingClientRect){var{clientX:i,clientY:n}=e;if(uh(t)){var a=t.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(du(fh,t,i,n)){r.zrX=fh[0],r.zrY=fh[1];return}}r.zrX=r.zrY=0}function gu(t){return t||window.event}function zt(t,e,r){if(e=gu(e),e.zrX!=null)return e;var i=e.type,n=i&&i.indexOf("touch")>=0;if(!n){mu(t,e,e,r);var a=ID(e);e.zrDelta=a?a/120:-(e.detail||0)/3}else{var o=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&mu(t,o,e,r)}var s=e.button;if(e.which==null&&s!==void 0&&LD.test(e.type))e.which=s&1?1:s&2?3:s&4?2:0;return e}function ID(t){var e=t.wheelDelta;if(e)return e;var{deltaX:r,deltaY:i}=t;if(r==null||i==null)return e;var n=i!==0?Math.abs(i):Math.abs(r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function My(t,e,r,i){t.addEventListener(e,r,i)}function Oy(t,e,r,i){t.removeEventListener(e,r,i)}var yu=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var Py=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)return;var a={points:[],touches:[],target:r,event:e};for(var o=0,s=n.length;o<s;o++){var l=n[o],u=mu(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 ph)if(ph.hasOwnProperty(r)){var i=ph[r](this._track,e);if(i)return i}},t}();function Ly(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function ND(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var ph={pinch:function(t,e){var r=t.length;if(!r)return;var i=(t[r-1]||{}).points,n=(t[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=Ly(i)/Ly(n);!isFinite(a)&&(a=1),e.pinchScale=a;var o=ND(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}};function Dt(){return[1,0,0,1,0,0]}function vi(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function vs(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 Hi(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 ds(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 $a(t,e,r,i){if(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 Iy(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 Gr(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;if(!l)return null;return 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}var RD=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)return;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}(),fe=RD;var{min:Bn,max:Ja,abs:dh}=Math,Ny=["x","y"],kD=["width","height"],In=new fe,Nn=new fe,Rn=new fe,kn=new fe,$t=gh(),{minTv:gs,maxTv:mh}=$t,ys=[0,0],di=function(){function t(e,r,i,n){hh(this,e,r,i,n)}return t.set=function(e,r,i,n,a){if(n<0)r=r+n,n=-n;if(a<0)i=i+a,a=-a;return e.x=r,e.y=i,e.width=n,e.height=a,e},t.prototype.union=function(e){var r=Bn(e.x,this.x),i=Bn(e.y,this.y);if(isFinite(this.x)&&isFinite(this.width))this.width=Ja(e.x+e.width,this.x+this.width)-r;else this.width=e.width;if(isFinite(this.y)&&isFinite(this.height))this.height=Ja(e.y+e.height,this.y+this.height)-i;else 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 BD(Dt(),this,e)},t.prototype.intersect=function(e,r,i){return t.intersect(this,e,r,i)},t.intersect=function(e,r,i,n){if(i)fe.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;if(!e||!r)return!1;if(!(e instanceof t))e=hh(zD,e.x,e.y,e.width,e.height);if(!(r instanceof t))r=hh(UD,r.x,r.y,r.width,r.height);var s=!!i;$t.reset(n,s);var l=$t.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,v=r.x+r.width-l,d=r.y+l,m=r.y+r.height-l;if(u>f||c>p||h>v||d>m)return!1;var g=!(f<h||v<u||p<d||m<c);if(s||a){if(ys[0]=1/0,ys[1]=0,ky(u,f,h,v,0,s,a,o),ky(c,p,d,m,1,s,a,o),s)fe.copy(i,g?$t.useDir?$t.dirMinTv:gs:mh)}return 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){Ry(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){if(e!==r)Ry(e,r);return}if(i[1]<0.00001&&i[1]>-0.00001&&i[2]<0.00001&&i[2]>-0.00001){var n=i[0],a=i[3],o=i[4],s=i[5];if(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;if(e.height<0)e.y+=e.height,e.height=-e.height;return}In.x=Rn.x=r.x,In.y=kn.y=r.y,Nn.x=kn.x=r.x+r.width,Nn.y=Rn.y=r.y+r.height,In.transform(i),kn.transform(i),Nn.transform(i),Rn.transform(i),e.x=Bn(In.x,Nn.x,Rn.x,kn.x),e.y=Bn(In.y,Nn.y,Rn.y,kn.y);var l=Ja(In.x,Nn.x,Rn.x,kn.x),u=Ja(In.y,Nn.y,Rn.y,kn.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=vi(e||[]),ds(e,e,uu(vh,-r.x,-r.y)),Iy(e,e,uu(vh,n,a)),ds(e,e,uu(vh,i.x,i.y)),e},t}(),{create:dz,set:hh,copy:Ry,calculateTransform:BD,applyTransform:mz,contain:gz}=di,zD=new di(0,0,0,0),UD=new di(0,0,0,0),vh=[];function ky(t,e,r,i,n,a,o,s){var l=dh(e-r),u=dh(i-t),f=Bn(l,u),c=Ny[n],p=Ny[1-n],h=kD[n];if(e<r||i<t)if(l<u){if(a)mh[c]=-l;if(s)o[c]=e,o[h]=0}else{if(a)mh[c]=u;if(s)o[c]=t,o[h]=0}else{if(o)o[c]=Ja(t,r),o[h]=Bn(e,i)-o[c];if(a){if(f<ys[0]||$t.useDir){if(ys[0]=Bn(f,ys[0]),l<u||!$t.bidirectional){if(gs[c]=l,gs[p]=0,$t.useDir)$t.calcDirMTV()}if(l>=u||!$t.bidirectional){if(gs[c]=-u,gs[p]=0,$t.useDir)$t.calcDirMTV()}}}}}function gh(){var t=0,e=new fe,r=new fe,i={minTv:new fe,maxTv:new fe,useDir:!1,dirMinTv:new fe,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){if(i.touchThreshold=0,a&&a.touchThreshold!=null)i.touchThreshold=Ja(0,a.touchThreshold);if(i.negativeSize=!1,!o)return;if(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null){if(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{minTv:a,dirMinTv:o}=i,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)){if(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}if((i.bidirectional||e.dot(r)>0)&&r.len()<o.len())o.copy(r)}};function n(a){return dh(a)<0.0000000001}return i}var ae=di;var zy="silent";function FD(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:VD}}function VD(){yu(this.event)}var HD=function(t){P(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}(Et),_s=function(){function t(e,r){this.x=e,this.y=r}return t}(),GD=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],yh=new ae(0,0,0,0),Uy=function(t){P(e,t);function e(r,i,n,a,o){var s=t.call(this)||this;return s._hovered=new _s(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new HD,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new Cy(s),s}return e.prototype.setHandlerProxy=function(r){if(this.proxy)this.proxy.dispose();if(r)w(GD,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this;this.proxy=r},e.prototype.mousemove=function(r){var{zrX:i,zrY:n}=r,a=Fy(this,i,n),o=this._hovered,s=o.target;if(s&&!s.__zr)o=this.findHover(o.x,o.y),s=o.target;var l=this._hovered=a?new _s(i,n):this.findHover(i,n),u=l.target,f=this.proxy;if(f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s)this.dispatchToElement(o,"mouseout",r);if(this.dispatchToElement(l,"mousemove",r),u&&u!==s)this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var i=r.zrEventControl;if(i!=="only_globalout")this.dispatchToElement(this._hovered,"mouseout",r);if(i!=="no_globalout")this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new _s(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)return;var o="on"+i,s=FD(i,r,n);while(a)if(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,s.cancelBubble)break;if(!s.cancelBubble){if(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer)this.painter.eachOtherLayer(function(l){if(typeof l[o]==="function")l[o].call(l,s);if(l.trigger)l.trigger(i,s)})}},e.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new _s(r,i);if(By(a,o,r,i,n),this._pointerSize&&!o.target){var s=[],l=this._pointerSize,u=l/2,f=new ae(r-u,i-u,l,l);for(var c=a.length-1;c>=0;c--){var p=a[c];if(p!==n&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)){if(yh.copy(p.getBoundingRect()),p.transform)yh.applyTransform(p.transform);if(yh.intersect(f))s.push(p)}}if(s.length){var h=4,v=Math.PI/12,d=Math.PI*2;for(var m=0;m<u;m+=h)for(var g=0;g<d;g+=v){var y=r+m*Math.cos(g),_=i+m*Math.sin(g);if(By(s,o,y,_,n),o.target)return o}}}return o},e.prototype.processGesture=function(r,i){if(!this._gestureMgr)this._gestureMgr=new Py;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 _s;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e}(Et);w(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Uy.prototype[t]=function(e){var{zrX:r,zrY:i}=e,n=Fy(this,r,i),a,o;if(t!=="mouseup"||!n)a=this.findHover(r,i),o=a.target;if(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||hs(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function YD(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){var i=t,n=void 0,a=!1;while(i){if(i.ignoreClip)a=!0;if(!a){var o=i.getClipPath();if(o&&!o.contain(e,r))return!1}if(i.silent)n=!0;var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?zy:!0}return!1}function By(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=YD(o,r,i))){if(!e.topTarget&&(e.topTarget=o),s!==zy){e.target=o;break}}}}function Fy(t,e,r){var i=t.painter;return e<0||e>i.getWidth()||r<0||r>i.getHeight()}var Vy=Uy;var Yy=32,xs=7;function WD(t){var e=0;while(t>=Yy)e|=t&1,t>>=1;return t+e}function Hy(t,e,r,i){var n=e+1;if(n===r)return 1;if(i(t[n++],t[e])<0){while(n<r&&i(t[n],t[n-1])<0)n++;XD(t,e,n)}else while(n<r&&i(t[n],t[n-1])>=0)n++;return n-e}function XD(t,e,r){r--;while(e<r){var i=t[e];t[e++]=t[r],t[r--]=i}}function Gy(t,e,r,i,n){if(i===e)i++;for(;i<r;i++){var a=t[i],o=e,s=i,l;while(o<s)if(l=o+s>>>1,n(a,t[l])<0)s=l;else 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:while(u>0)t[o+u]=t[o+u-1],u--}t[o]=a}}function _h(t,e,r,i,n,a){var o=0,s=0,l=1;if(a(t,e[r+n])>0){s=i-n;while(l<s&&a(t,e[r+n+l])>0)if(o=l,l=(l<<1)+1,l<=0)l=s;if(l>s)l=s;o+=n,l+=n}else{s=n+1;while(l<s&&a(t,e[r+n-l])<=0)if(o=l,l=(l<<1)+1,l<=0)l=s;if(l>s)l=s;var u=o;o=n-l,l=n-u}o++;while(o<l){var f=o+(l-o>>>1);if(a(t,e[r+f])>0)o=f+1;else l=f}return l}function xh(t,e,r,i,n,a){var o=0,s=0,l=1;if(a(t,e[r+n])<0){s=n+1;while(l<s&&a(t,e[r+n-l])<0)if(o=l,l=(l<<1)+1,l<=0)l=s;if(l>s)l=s;var u=o;o=n-l,l=n-u}else{s=i-n;while(l<s&&a(t,e[r+n+l])>=0)if(o=l,l=(l<<1)+1,l<=0)l=s;if(l>s)l=s;o+=n,l+=n}o++;while(o<l){var f=o+(l-o>>>1);if(a(t,e[r+f])<0)l=f;else o=f+1}return l}function qD(t,e){var r=xs,i,n,a=0,o=[];i=[],n=[];function s(h,v){i[a]=h,n[a]=v,a+=1}function l(){while(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]){if(n[h-1]<n[h+1])h--}else if(n[h]>n[h+1])break;f(h)}}function u(){while(a>1){var h=a-2;if(h>0&&n[h-1]<n[h+1])h--;f(h)}}function f(h){var v=i[h],d=n[h],m=i[h+1],g=n[h+1];if(n[h]=d+g,h===a-3)i[h+1]=i[h+2],n[h+1]=n[h+2];a--;var y=xh(t[m],t,v,d,0,e);if(v+=y,d-=y,d===0)return;if(g=_h(t[v+d-1],t,m,g,g-1,e),g===0)return;if(d<=g)c(v,d,m,g);else p(v,d,m,g)}function c(h,v,d,m){var g=0;for(g=0;g<v;g++)o[g]=t[h+g];var y=0,_=d,x=h;if(t[x++]=t[_++],--m===0){for(g=0;g<v;g++)t[x+g]=o[y+g];return}if(v===1){for(g=0;g<m;g++)t[x+g]=t[_+g];t[x+m]=o[y];return}var S=r,b,T,A;while(!0){b=0,T=0,A=!1;do if(e(t[_],o[y])<0){if(t[x++]=t[_++],T++,b=0,--m===0){A=!0;break}}else if(t[x++]=o[y++],b++,T=0,--v===1){A=!0;break}while((b|T)<S);if(A)break;do{if(b=xh(t[_],o,y,v,0,e),b!==0){for(g=0;g<b;g++)t[x+g]=o[y+g];if(x+=b,y+=b,v-=b,v<=1){A=!0;break}}if(t[x++]=t[_++],--m===0){A=!0;break}if(T=_h(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){A=!0;break}}if(t[x++]=o[y++],--v===1){A=!0;break}S--}while(b>=xs||T>=xs);if(A)break;if(S<0)S=0;S+=2}if(r=S,r<1&&(r=1),v===1){for(g=0;g<m;g++)t[x+g]=t[_+g];t[x+m]=o[y]}else if(v===0)throw Error();else for(g=0;g<v;g++)t[x+g]=o[y+g]}function p(h,v,d,m){var g=0;for(g=0;g<m;g++)o[g]=t[d+g];var y=h+v-1,_=m-1,x=d+m-1,S=0,b=0;if(t[x--]=t[y--],--v===0){S=x-(m-1);for(g=0;g<m;g++)t[S+g]=o[g];return}if(m===1){x-=v,y-=v,b=x+1,S=y+1;for(g=v-1;g>=0;g--)t[b+g]=t[S+g];t[x]=o[_];return}var T=r;while(!0){var A=0,C=0,E=!1;do if(e(o[_],t[y])<0){if(t[x--]=t[y--],A++,C=0,--v===0){E=!0;break}}else if(t[x--]=o[_--],C++,A=0,--m===1){E=!0;break}while((A|C)<T);if(E)break;do{if(A=v-xh(o[_],t,h,v,v-1,e),A!==0){x-=A,y-=A,v-=A,b=x+1,S=y+1;for(g=A-1;g>=0;g--)t[b+g]=t[S+g];if(v===0){E=!0;break}}if(t[x--]=o[_--],--m===1){E=!0;break}if(C=m-_h(t[y],o,0,m,m-1,e),C!==0){x-=C,_-=C,m-=C,b=x+1,S=_+1;for(g=0;g<C;g++)t[b+g]=o[S+g];if(m<=1){E=!0;break}}if(t[x--]=t[y--],--v===0){E=!0;break}T--}while(A>=xs||C>=xs);if(E)break;if(T<0)T=0;T+=2}if(r=T,r<1)r=1;if(m===1){x-=v,y-=v,b=x+1,S=y+1;for(g=v-1;g>=0;g--)t[b+g]=t[S+g];t[x]=o[_]}else if(m===0)throw Error();else{S=x-(m-1);for(g=0;g<m;g++)t[S+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function zn(t,e,r,i){if(!r)r=0;if(!i)i=t.length;var n=i-r;if(n<2)return;var a=0;if(n<Yy){a=Hy(t,r,i,e),Gy(t,r,i,r+a,e);return}var o=qD(t,e),s=WD(n);do{if(a=Hy(t,r,i,e),a<s){var l=n;if(l>s)l=s;Gy(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 Tt=1,Un=2,Gi=4;var Wy=!1;function Sh(){if(Wy)return;Wy=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors")}function Xy(t,e){if(t.zlevel===e.zlevel){if(t.z===e.z)return t.z2-e.z2;return t.z-e.z}return t.zlevel-e.zlevel}var ZD=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Xy}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;if(e||!i.length)this.updateDisplayList(r);return i},t.prototype.updateDisplayList=function(e){this._displayListLen=0;var r=this._roots,i=this._displayList;for(var n=0,a=r.length;n<a;n++)this._updateAndAddDisplayable(r[n],null,e);i.length=this._displayListLen,zn(i,Xy)},t.prototype._updateAndAddDisplayable=function(e,r,i){if(e.ignore&&!i)return;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=[];if(a)for(var l=0;l<r.length;l++)s[o++]=r[l];var u=n,f=e;while(u)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s)s.length=o;if(e.childrenRef){var c=e.childrenRef();for(var p=0;p<c.length;p++){var h=c[p];if(e.__dirty)h.__dirty|=Tt;this._updateAndAddDisplayable(h,s,i)}e.__dirty=0}else{var v=e;if(isNaN(v.z))Sh(),v.z=0;if(isNaN(v.z2))Sh(),v.z2=0;if(isNaN(v.zlevel))Sh(),v.zlevel=0;this._displayList[this._displayListLen++]=v}var d=e.getDecalElement&&e.getDecalElement();if(d)this._updateAndAddDisplayable(d,s,i);var m=e.getTextGuideLine();if(m)this._updateAndAddDisplayable(m,s,i);var g=e.getTextContent();if(g)this._updateAndAddDisplayable(g,s,i)},t.prototype.addRoot=function(e){if(e.__zr&&e.__zr.storage===this)return;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=ue(this._roots,e);if(n>=0)this._roots.splice(n,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0;return},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),qy=ZD;var Zy;Zy=ne.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var bh=Zy;var _u={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){if((t*=2)<1)return 0.5*t*t;return-0.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){if((t*=2)<1)return 0.5*t*t*t;return 0.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){if((t*=2)<1)return 0.5*t*t*t*t;return-0.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){if((t*=2)<1)return 0.5*t*t*t*t*t;return 0.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 0.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){if(t===0)return 0;if(t===1)return 1;if((t*=2)<1)return 0.5*Math.pow(1024,t-1);return 0.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){if((t*=2)<1)return-0.5*(Math.sqrt(1-t*t)-1);return 0.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=0.1,i=0.4;if(t===0)return 0;if(t===1)return 1;if(!r||r<1)r=1,e=i/4;else e=i*Math.asin(1/r)/(2*Math.PI);return-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i))},elasticOut:function(t){var e,r=0.1,i=0.4;if(t===0)return 0;if(t===1)return 1;if(!r||r<1)r=1,e=i/4;else e=i*Math.asin(1/r)/(2*Math.PI);return r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1},elasticInOut:function(t){var e,r=0.1,i=0.4;if(t===0)return 0;if(t===1)return 1;if(!r||r<1)r=1,e=i/4;else e=i*Math.asin(1/r)/(2*Math.PI);if((t*=2)<1)return-0.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i));return r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*0.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;if((t*=2)<1)return 0.5*(t*t*((e+1)*t-e));return 0.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-_u.bounceOut(1-t)},bounceOut:function(t){if(t<0.36363636363636365)return 7.5625*t*t;else if(t<0.7272727272727273)return 7.5625*(t-=0.5454545454545454)*t+0.75;else if(t<0.9090909090909091)return 7.5625*(t-=0.8181818181818182)*t+0.9375;else return 7.5625*(t-=0.9545454545454546)*t+0.984375},bounceInOut:function(t){if(t<0.5)return _u.bounceIn(t*2)*0.5;return _u.bounceOut(t*2-1)*0.5+0.5}},xu=_u;var{pow:Su,sqrt:Wi}=Math,Tu=0.00000001,jy=0.0001,Ky=Wi(3),bu=0.3333333333333333,Yr=Vi(),ur=Vi(),eo=Vi();function Yi(t){return t>-Tu&&t<Tu}function Qy(t){return t>Tu||t<-Tu}function ze(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 Th(t,e,r,i,n){var a=1-n;return 3*(((e-t)*a+2*(r-e)*n)*a+(i-r)*n*n)}function Fn(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 v=-l/s;if(v>=0&&v<=1)a[h++]=v}else{var d=c*c-4*f*p;if(Yi(d)){var m=c/f,v=-s/o+m,g=-m/2;if(v>=0&&v<=1)a[h++]=v;if(g>=0&&g<=1)a[h++]=g}else if(d>0){var y=Wi(d),_=f*s+1.5*o*(-c+y),x=f*s+1.5*o*(-c-y);if(_<0)_=-Su(-_,bu);else _=Su(_,bu);if(x<0)x=-Su(-x,bu);else x=Su(x,bu);var v=(-s-(_+x))/(3*o);if(v>=0&&v<=1)a[h++]=v}else{var S=(2*f*s-3*o*c)/(2*Wi(f*f*f)),b=Math.acos(S)/3,T=Wi(f),A=Math.cos(b),v=(-s-2*T*A)/(3*o),g=(-s+T*(A+Ky*Math.sin(b)))/(3*o),C=(-s+T*(A-Ky*Math.sin(b)))/(3*o);if(v>=0&&v<=1)a[h++]=v;if(g>=0&&g<=1)a[h++]=g;if(C>=0&&C<=1)a[h++]=C}}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(Yi(o)){if(Qy(a)){var u=-s/a;if(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=Wi(f),u=(-a+c)/(2*o),p=(-a-c)/(2*o);if(u>=0&&u<=1)n[l++]=u;if(p>=0&&p<=1)n[l++]=p}}return l}function to(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 $y(t,e,r,i,n,a,o,s,l,u,f){var c,p=0.005,h=1/0,v,d,m,g;Yr[0]=l,Yr[1]=u;for(var y=0;y<1;y+=0.05)if(ur[0]=ze(t,r,n,o,y),ur[1]=ze(e,i,a,s,y),m=Pn(Yr,ur),m<h)c=y,h=m;h=1/0;for(var _=0;_<32;_++){if(p<jy)break;if(v=c-p,d=c+p,ur[0]=ze(t,r,n,o,v),ur[1]=ze(e,i,a,s,v),m=Pn(ur,Yr),v>=0&&m<h)c=v,h=m;else if(eo[0]=ze(t,r,n,o,d),eo[1]=ze(e,i,a,s,d),g=Pn(eo,Yr),d<=1&&g<h)c=d,h=g;else p*=0.5}if(f)f[0]=ze(t,r,n,o,c),f[1]=ze(e,i,a,s,c);return Wi(h)}function Jy(t,e,r,i,n,a,o,s,l){var u=t,f=e,c=0,p=1/l;for(var h=1;h<=l;h++){var v=h*p,d=ze(t,r,n,o,v),m=ze(e,i,a,s,v),g=d-u,y=m-f;c+=Math.sqrt(g*g+y*y),u=d,f=m}return c}function nt(t,e,r,i){var n=1-i;return n*(n*t+2*i*e)+i*i*r}function wh(t,e,r,i){return 2*((1-i)*(e-t)+i*(r-e))}function e0(t,e,r,i,n){var a=t-2*e+r,o=2*(e-t),s=t-i,l=0;if(Yi(a)){if(Qy(o)){var u=-s/o;if(u>=0&&u<=1)n[l++]=u}}else{var f=o*o-4*a*s;if(Yi(f)){var u=-o/(2*a);if(u>=0&&u<=1)n[l++]=u}else if(f>0){var c=Wi(f),u=(-o+c)/(2*a),p=(-o-c)/(2*a);if(u>=0&&u<=1)n[l++]=u;if(p>=0&&p<=1)n[l++]=p}}return l}function Cu(t,e,r){var i=t+r-2*e;if(i===0)return 0.5;else return(t-e)/i}function ro(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 t0(t,e,r,i,n,a,o,s,l){var u,f=0.005,c=1/0;Yr[0]=o,Yr[1]=s;for(var p=0;p<1;p+=0.05){ur[0]=nt(t,r,n,p),ur[1]=nt(e,i,a,p);var h=Pn(Yr,ur);if(h<c)u=p,c=h}c=1/0;for(var v=0;v<32;v++){if(f<jy)break;var d=u-f,m=u+f;ur[0]=nt(t,r,n,d),ur[1]=nt(e,i,a,d);var h=Pn(ur,Yr);if(d>=0&&h<c)u=d,c=h;else{eo[0]=nt(t,r,n,m),eo[1]=nt(e,i,a,m);var g=Pn(eo,Yr);if(m<=1&&g<c)u=m,c=g;else f*=0.5}}if(l)l[0]=nt(t,r,n,u),l[1]=nt(e,i,a,u);return Wi(c)}function r0(t,e,r,i,n,a,o){var s=t,l=e,u=0,f=1/o;for(var c=1;c<=o;c++){var p=c*f,h=nt(t,r,n,p),v=nt(e,i,a,p),d=h-s,m=v-l;u+=Math.sqrt(d*d+m*m),s=h,l=v}return u}var KD=/cubic-bezier\(([0-9,\.e ]+)\)/;function io(t){var e=t&&KD.exec(t);if(e){var r=e[1].split(","),i=+vt(r[0]),n=+vt(r[1]),a=+vt(r[2]),o=+vt(r[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Fn(0,i,a,1,l,s)&&ze(0,n,o,1,s[0])}}}var jD=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1000,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Pe,this.ondestroy=e.ondestroy||Pe,this.onrestart=e.onrestart||Pe,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(!this._inited)this._startTime=e+this._delay,this._inited=!0;if(this._paused){this._pausedTime+=r;return}var i=this._life,n=e-this._startTime-this._pausedTime,a=n/i;if(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=X(e)?e:xu[e]||io(e)},t}(),i0=jD;var n0=function(){function t(e){this.value=e}return t}();var QD=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new n0(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){if(!this.head)this.head=this.tail=e;else this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e;this._len++},t.prototype.remove=function(e){var{prev:r,next:i}=e;if(r)r.next=i;else this.head=i;if(i)i.prev=r;else 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 $D=function(){function t(e){this._list=new QD,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}if(s)s.value=r;else s=new n0(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){if(r!==i.tail)i.remove(r),i.insertEntry(r);return r.value}},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Wr=$D;var a0={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 Xi(t){return t=Math.round(t),t<0?0:t>255?255:t}function JD(t){return t=Math.round(t),t<0?0:t>360?360:t}function Dh(t){return t<0?0:t>1?1:t}function Ah(t){var e=t;if(e.length&&e.charAt(e.length-1)==="%")return Xi(parseFloat(e)/100*255);return Xi(parseInt(e,10))}function Vn(t){var e=t;if(e.length&&e.charAt(e.length-1)==="%")return Dh(parseFloat(e)/100);return Dh(parseFloat(e))}function Eh(t,e,r){if(r<0)r+=1;else if(r>1)r-=1;if(r*6<1)return t+(e-t)*r*6;if(r*2<1)return e;if(r*3<2)return t+(e-t)*(0.6666666666666666-r)*6;return t}function Au(t,e,r){return t+(e-t)*r}function fr(t,e,r,i,n){return t[0]=e,t[1]=r,t[2]=i,t[3]=n,t}function Mh(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var l0=new Wr(20),Eu=null;function no(t,e){if(Eu)Mh(Eu,e);Eu=l0.put(t,Eu||e.slice())}function Jt(t,e){if(!t)return;e=e||[];var r=l0.get(t);if(r)return Mh(e,r);t=t+"";var i=t.replace(/ /g,"").toLowerCase();if(i in a0)return Mh(e,a0[i]),no(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)){fr(e,0,0,0,1);return}return fr(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),no(t,e),e}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){fr(e,0,0,0,1);return}return fr(e,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),no(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?fr(e,+u[0],+u[1],+u[2],1):fr(e,0,0,0,1);f=Vn(u.pop());case"rgb":if(u.length>=3)return fr(e,Ah(u[0]),Ah(u[1]),Ah(u[2]),u.length===3?f:Vn(u[3])),no(t,e),e;else{fr(e,0,0,0,1);return}case"hsla":if(u.length!==4){fr(e,0,0,0,1);return}return u[3]=Vn(u[3]),Oh(u,e),no(t,e),e;case"hsl":if(u.length!==3){fr(e,0,0,0,1);return}return Oh(u,e),no(t,e),e;default:return}}fr(e,0,0,0,1);return}function Oh(t,e){var r=(parseFloat(t[0])%360+360)%360/360,i=Vn(t[1]),n=Vn(t[2]),a=n<=0.5?n*(i+1):n+i-n*i,o=n*2-a;if(e=e||[],fr(e,Xi(Eh(o,a,r+0.3333333333333333)*255),Xi(Eh(o,a,r)*255),Xi(Eh(o,a,r-0.3333333333333333)*255),1),t.length===4)e[3]=t[3];return e}function eM(t){if(!t)return;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{if(s<0.5)u=o/(a+n);else 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;if(e===a)l=p-c;else if(r===a)l=0.3333333333333333+f-p;else if(i===a)l=0.6666666666666666+c-f;if(l<0)l+=1;if(l>1)l-=1}var h=[l*360,u,s];if(t[3]!=null)h.push(t[3]);return h}function o0(t,e){var r=Jt(t);if(r){for(var i=0;i<3;i++){if(e<0)r[i]=r[i]*(1-e)|0;else r[i]=(255-r[i])*e+r[i]|0;if(r[i]>255)r[i]=255;else if(r[i]<0)r[i]=0}return bs(r,r.length===4?"rgba":"rgb")}}function u0(t,e,r){if(!(e&&e.length)||!(t>=0&&t<=1))return;var i=t*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=Jt(e[n]),s=Jt(e[a]),l=i-n,u=bs([Xi(Au(o[0],s[0],l)),Xi(Au(o[1],s[1],l)),Xi(Au(o[2],s[2],l)),Dh(Au(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:n,rightIndex:a,value:i}:u}function Ss(t,e,r,i){var n=Jt(t);if(t)return n=eM(n),e!=null&&(n[0]=JD(X(e)?e(n[0]):e)),r!=null&&(n[1]=Vn(X(r)?r(n[1]):r)),i!=null&&(n[2]=Vn(X(i)?i(n[2]):i)),bs(Oh(n),"rgba")}function bs(t,e){if(!t||!t.length)return;var r=t[0]+","+t[1]+","+t[2];if(e==="rgba"||e==="hsva"||e==="hsla")r+=","+t[3];return e+"("+r+")"}function ao(t,e){var r=Jt(t);return r?(0.299*r[0]+0.587*r[1]+0.114*r[2])*r[3]/255+(1-r[3])*e:0}var s0=new Wr(100);function Ts(t){if(V(t)){var e=s0.get(t);if(!e)e=o0(t,-0.1),s0.put(t,e);return e}else if(Xa(t)){var r=N({},t);return r.colorStops=U(t.colorStops,function(i){return{offset:i.offset,color:o0(i.color,-0.1)}}),r}return t}var Mu=Math.round;function qi(t){var e;if(!t||t==="transparent")t="none";else if(typeof t==="string"&&t.indexOf("rgba")>-1){var r=Jt(t);if(r)t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3]}return{color:t,opacity:e==null?1:e}}var f0=0.0001;function Xr(t){return t<f0&&t>-f0}function Du(t){return Mu(t*1000)/1000}function Ou(t){return Mu(t*1e4)/1e4}function c0(t){return"matrix("+Du(t[0])+","+Du(t[1])+","+Du(t[2])+","+Du(t[3])+","+Ou(t[4])+","+Ou(t[5])+")"}var p0={left:"start",right:"end",center:"middle",middle:"middle"};function h0(t,e,r){if(r==="top")t+=e/2;else if(r==="bottom")t-=e/2;return t}function v0(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function d0(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function Lh(t){return t&&!!t.image}function rM(t){return t&&!!t.svgElement}function ws(t){return Lh(t)||rM(t)}function Lu(t){return t.type==="linear"}function Pu(t){return t.type==="radial"}function Iu(t){return t&&(t.type==="linear"||t.type==="radial")}function Cs(t){return"url(#"+t+")"}function Nu(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function Ru(t){var e=t.x||0,r=t.y||0,i=(t.rotation||0)*Ka,n=G(t.scaleX,1),a=G(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];if(e||r)l.push("translate("+e+"px,"+r+"px)");if(i)l.push("rotate("+i+")");if(n!==1||a!==1)l.push("scale("+n+","+a+")");if(o||s)l.push("skew("+Mu(o*Ka)+"deg, "+Mu(s*Ka)+"deg)");return l.join(" ")}var m0=function(){if(typeof Buffer<"u"&&typeof Buffer.from==="function")return function(t){return Buffer.from(t).toString("base64")};if(typeof btoa==="function"&&typeof unescape==="function"&&typeof encodeURIComponent==="function")return function(t){return btoa(unescape(encodeURIComponent(t)))};return function(t){return jt("Base64 isn't natively supported in the current environment."),null}}();var Ih=Array.prototype.slice;function mi(t,e,r){return(e-t)*r+t}function Ph(t,e,r,i){var n=e.length;for(var a=0;a<n;a++)t[a]=mi(e[a],r[a],i);return t}function iM(t,e,r,i){var n=e.length,a=n&&e[0].length;for(var o=0;o<n;o++){if(!t[o])t[o]=[];for(var s=0;s<a;s++)t[o][s]=mi(e[o][s],r[o][s],i)}return t}function ku(t,e,r,i){var n=e.length;for(var a=0;a<n;a++)t[a]=e[a]+r[a]*i;return t}function g0(t,e,r,i){var n=e.length,a=n&&e[0].length;for(var o=0;o<n;o++){if(!t[o])t[o]=[];for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*i}return t}function nM(t,e){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};for(var s=a;s<Math.max(r,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function aM(t,e,r){var i=t,n=e;if(!i.push||!n.push)return;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]:Ih.call(n[l]))}var u=i[0]&&i[0].length;for(var l=0;l<i.length;l++)if(r===1){if(isNaN(i[l]))i[l]=n[l]}else for(var f=0;f<u;f++)if(isNaN(i[l][f]))i[l][f]=n[l][f]}function Ds(t){if(et(t)){var e=t.length;if(et(t[0])){var r=[];for(var i=0;i<e;i++)r.push(Ih.call(t[i]));return r}return Ih.call(t)}return t}function Uu(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 oM(t){return et(t&&t[0])?2:1}var Bu=0,Fu=1,x0=2,Es=3,Nh=4,Rh=5,y0=6;function _0(t){return t===Nh||t===Rh}function zu(t){return t===Fu||t===x0}var As=[0,0,0,0],sM=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(){if(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=y0,l=r;if(et(r)){var u=oM(r);if(s=u,u===1&&!se(r[0])||u===2&&!se(r[0][0]))o=!0}else if(se(r)&&!Vr(r))s=Bu;else if(V(r))if(!isNaN(+r))s=Bu;else{var f=Jt(r);if(f)l=f,s=Es}else if(Xa(r)){var c=N({},l);if(c.colorStops=U(r.colorStops,function(h){return{offset:h.offset,color:Jt(h.color)}}),Lu(r))s=Nh;else if(Pu(r))s=Rh;l=c}if(a===0)this.valType=s;else if(s!==this.valType||s===y0)o=!0;this.discrete=this.discrete||o;var p={time:e,value:l,rawValue:r,percent:0};if(i)p.easing=i,p.easingFunc=X(i)?i:xu[i]||io(i);return n.push(p),p},t.prototype.prepare=function(e,r){var i=this.keyframes;if(this._needsSort)i.sort(function(d,m){return d.time-m.time});var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=zu(n),u=_0(n);for(var f=0;f<a;f++){var c=i[f],p=c.value,h=o.value;if(c.percent=c.time/e,!s){if(l&&f!==a-1)aM(p,h,n);else if(u)nM(p.colorStops,h.colorStops)}}if(!s&&n!==Rh&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;var v=i[0].value;for(var f=0;f<a;f++)if(n===Bu)i[f].additiveValue=i[f].value-v;else if(n===Es)i[f].additiveValue=ku([],i[f].value,v,-1);else if(zu(n))i[f].additiveValue=n===Fu?ku([],i[f].value,v,-1):g0([],i[f].value,v,-1)}},t.prototype.step=function(e,r){if(this._finished)return;if(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===Es,f,c=this._lastFr,p=Math.min,h,v;if(s===1)h=v=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var d=p(c+1,s-1);for(f=d;f>=0;f--)if(o[f].percent<=r)break;f=p(f,s-2)}else{for(f=c;f<s;f++)if(o[f].percent>r)break;f=p(f-1,s-2)}v=o[f+1],h=o[f]}if(!(h&&v))return;this._lastFr=f,this._lastFrP=r;var m=v.percent-h.percent,g=m===0?1:p((r-h.percent)/m,1);if(v.easingFunc)g=v.easingFunc(g);var y=i?this._additiveValue:u?As:e[l];if((zu(a)||u)&&!y)y=this._additiveValue=[];if(this.discrete)e[l]=g<1?h.rawValue:v.rawValue;else if(zu(a))a===Fu?Ph(y,h[n],v[n],g):iM(y,h[n],v[n],g);else if(_0(a)){var _=h[n],x=v[n],S=a===Nh;if(e[l]={type:S?"linear":"radial",x:mi(_.x,x.x,g),y:mi(_.y,x.y,g),colorStops:U(_.colorStops,function(T,A){var C=x.colorStops[A];return{offset:mi(T.offset,C.offset,g),color:Uu(Ph([],T.color,C.color,g))}}),global:x.global},S)e[l].x2=mi(_.x2,x.x2,g),e[l].y2=mi(_.y2,x.y2,g);else e[l].r=mi(_.r,x.r,g)}else if(u){if(Ph(y,h[n],v[n],g),!i)e[l]=Uu(y)}else{var b=mi(h[n],v[n],g);if(i)this._additiveValue=b;else e[l]=b}if(i)this._addToTarget(e)},t.prototype._addToTarget=function(e){var r=this.valType,i=this.propName,n=this._additiveValue;if(r===Bu)e[i]=e[i]+n;else if(r===Es)Jt(e[i],As),ku(As,As,n,1),e[i]=Uu(As);else if(r===Fu)ku(e[i],e[i],n,1);else if(r===x0)g0(e[i],e[i],n,1)},t}(),lM=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){jt("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,re(r),i)},t.prototype.whenWithKeys=function(e,r,i,n){var a=this._tracks;for(var o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new sM(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,p=c[c.length-1];if(u=p&&p.value,f.valType===Es&&u)u=Uu(u)}else u=this._target[s];if(u==null)continue;if(e>0)l.addKeyframe(0,Ds(u),n);this._trackKeys.push(s)}l.addKeyframe(e,Ds(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){var r=e.length;for(var 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);if(this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},t.prototype._setTracksFinished=function(){var e=this._tracks,r=this._trackKeys;for(var 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);if(a)r=a}return r},t.prototype.start=function(e){if(this._started>0)return;this._started=1;var r=this,i=[],n=this._maxTime||0;for(var 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];if(c)r._target[s.propName]=c.rawValue;s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new i0({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){var d=!1;for(var m=0;m<v.length;m++)if(v[m]._clip){d=!0;break}if(!d)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()}});if(this._clip=p,this.animation)this.animation.addClip(p);if(e)p.setEasing(e)}else this._doneCallback();return this},t.prototype.stop=function(e){if(!this._clip)return;var r=this._clip;if(e)r.onframe(1);this._abortedCallback()},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){if(e){if(!this._onframeCbs)this._onframeCbs=[];this._onframeCbs.push(e)}return this},t.prototype.done=function(e){if(e){if(!this._doneCbs)this._doneCbs=[];this._doneCbs.push(e)}return this},t.prototype.aborted=function(e){if(e){if(!this._abortedCbs)this._abortedCbs=[];this._abortedCbs.push(e)}return 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;var i=this._tracks,n=this._trackKeys;for(var a=0;a<e.length;a++){var o=i[e[a]];if(o&&!o.isFinished()){if(r)o.step(this._target,1);else if(this._started===1)o.step(this._target,0);o.setFinished()}}var s=!0;for(var a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}if(s)this._abortedCallback();return s},t.prototype.saveTo=function(e,r,i){if(!e)return;r=r||this._trackKeys;for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(!o||o.isFinished())continue;var s=o.keyframes,l=s[i?0:s.length-1];if(l)e[a]=Ds(l.rawValue)}},t.prototype.__changeFinalValue=function(e,r){r=r||re(e);for(var i=0;i<r.length;i++){var n=r[i],a=this._tracks[n];if(!a)continue;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}(),Ms=lM;function Hn(){return new Date().getTime()}var uM=function(t){P(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){if(r.animation)this.removeClip(r);if(!this._head)this._head=this._tail=r;else this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r;r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();if(i)this.addClip(i)},e.prototype.removeClip=function(r){if(!r.animation)return;var{prev:i,next:n}=r;if(i)i.next=n;else this._head=n;if(n)n.prev=i;else this._tail=i;r.next=r.prev=r.animation=null},e.prototype.removeAnimator=function(r){var i=r.getClip();if(i)this.removeClip(i);r.animation=null},e.prototype.update=function(r){var i=Hn()-this._pausedTime,n=i-this._time,a=this._head;while(a){var o=a.next,s=a.step(i,n);if(s)a.ondestroy(),this.removeClip(a),a=o;else a=o}if(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(){if(r._running)bh(i),!r._paused&&r.update()}bh(i)},e.prototype.start=function(){if(this._running)return;this._time=Hn(),this._pausedTime=0,this._startLoop()},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){if(!this._paused)this._pauseStart=Hn(),this._paused=!0},e.prototype.resume=function(){if(this._paused)this._pausedTime+=Hn()-this._pauseStart,this._paused=!1},e.prototype.clear=function(){var r=this._head;while(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 Ms(r,i.loop);return this.addAnimator(n),n},e}(Et),S0=uM;var fM=300,kh=ne.domSupported,Bh=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}}(),b0={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},T0=!1;function Fh(t){var e=t.pointerType;return e==="pen"||e==="touch"}function cM(t){if(t.touching=!0,t.touchTimer!=null)clearTimeout(t.touchTimer),t.touchTimer=null;t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function zh(t){t&&(t.zrByTouch=!0)}function pM(t,e){return zt(t.dom,new hM(t,e),!0)}function C0(t,e){var r=e,i=!1;while(r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==e&&r===t.painterRoot))r=r.parentNode;return i}var hM=function(){function t(e,r){this.stopPropagation=Pe,this.stopImmediatePropagation=Pe,this.preventDefault=Pe,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t}(),Ar={mousedown:function(t){t=zt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=zt(this.dom,t);var e=this.__mayPointerCapture;if(e&&(t.zrX!==e[0]||t.zrY!==e[1]))this.__togglePointerCapture(!0);this.trigger("mousemove",t)},mouseup:function(t){t=zt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=zt(this.dom,t);var e=t.toElement||t.relatedTarget;if(!C0(this,e)){if(this.__pointerCapturing)t.zrEventControl="no_globalout";this.trigger("mouseout",t)}},wheel:function(t){T0=!0,t=zt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){if(T0)return;t=zt(this.dom,t),this.trigger("mousewheel",t)},touchstart:function(t){t=zt(this.dom,t),zh(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Ar.mousemove.call(this,t),Ar.mousedown.call(this,t)},touchmove:function(t){t=zt(this.dom,t),zh(t),this.handler.processGesture(t,"change"),Ar.mousemove.call(this,t)},touchend:function(t){if(t=zt(this.dom,t),zh(t),this.handler.processGesture(t,"end"),Ar.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<fM)Ar.click.call(this,t)},pointerdown:function(t){Ar.mousedown.call(this,t)},pointermove:function(t){if(!Fh(t))Ar.mousemove.call(this,t)},pointerup:function(t){Ar.mouseup.call(this,t)},pointerout:function(t){if(!Fh(t))Ar.mouseout.call(this,t)}};w(["click","dblclick","contextmenu"],function(t){Ar[t]=function(e){e=zt(this.dom,e),this.trigger(t,e)}});var Vh={pointermove:function(t){if(!Fh(t))Vh.mousemove.call(this,t)},pointerup:function(t){Vh.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;if(this.__togglePointerCapture(!1),this.trigger("mouseup",t),e)t.zrEventControl="only_globalout",this.trigger("mouseout",t)}};function vM(t,e){var r=e.domHandlers;if(ne.pointerEventsSupported)w(Bh.pointer,function(i){Vu(e,i,function(n){r[i].call(t,n)})});else{if(ne.touchEventsSupported)w(Bh.touch,function(i){Vu(e,i,function(n){r[i].call(t,n),cM(e)})});w(Bh.mouse,function(i){Vu(e,i,function(n){if(n=gu(n),!e.touching)r[i].call(t,n)})})}}function dM(t,e){if(ne.pointerEventsSupported)w(b0.pointer,r);else if(!ne.touchEventsSupported)w(b0.mouse,r);function r(i){function n(a){if(a=gu(a),!C0(t,a.target))a=pM(t,a),e.domHandlers[i].call(t,a)}Vu(e,i,n,{capture:!0})}}function Vu(t,e,r,i){t.mounted[e]=r,t.listenerOpts[e]=i,My(t.domTarget,e,r,i)}function Uh(t){var e=t.mounted;for(var r in e)if(e.hasOwnProperty(r))Oy(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var w0=function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t}(),mM=function(t){P(e,t);function e(r,i){var n=t.call(this)||this;if(n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new w0(r,Ar),kh)n._globalHandlerScope=new w0(document,Vh);return vM(n,n._localHandlerScope),n}return e.prototype.dispose=function(){if(Uh(this._localHandlerScope),kh)Uh(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,kh&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?dM(this,i):Uh(i)}},e}(Et),A0=mM;var E0=1;if(ne.hasGlobalWindow)E0=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1);var Hh=E0,Os=0.4,Ls="#333",Ps="#ccc",D0="#eee";var M0=vi,O0=0.00005;function Gn(t){return t>O0||t<-O0}var Yn=[],oo=[],Gh=Dt(),Yh=Math.abs,L0=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 Gn(this.rotation)||Gn(this.x)||Gn(this.y)||Gn(this.scaleX-1)||Gn(this.scaleY-1)||Gn(this.skewX)||Gn(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||e)){if(i)M0(i),this.invTransform=null;return}if(i=i||Dt(),r)this.getLocalTransform(i);else M0(i);if(e)if(r)Hi(i,e,i);else vs(i,e);this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||Dt(),Gr(this.invTransform,i)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Yn);var i=Yn[0]<0?-1:1,n=Yn[1]<0?-1:1,a=((Yn[0]-i)*r+i)/Yn[0]||0,o=((Yn[1]-n)*r+n)/Yn[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){var e=this,r=[];while(e)r.push(e),e=e.parent;while(e=r.pop())e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(!e)return;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)return;var e=this.parent,r=this.transform;if(e&&e.transform)e.invTransform=e.invTransform||Dt(),Hi(oo,e.invTransform,r),r=oo;var i=this.originX,n=this.originY;if(i||n)Gh[4]=i,Gh[5]=n,Hi(oo,r,Gh),oo[4]-=i,oo[5]-=n,r=oo;this.setLocalTransform(r)},t.prototype.getGlobalScale=function(e){var r=this.transform;if(e=e||[],!r)return e[0]=1,e[1]=1,e;if(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];if(r[3]<0)e[1]=-e[1];return e},t.prototype.transformCoordToLocal=function(e,r){var i=[e,r],n=this.invTransform;if(n)dt(i,i,n);return i},t.prototype.transformCoordToGlobal=function(e,r){var i=[e,r],n=this.transform;if(n)dt(i,i,n);return i},t.prototype.getLineScale=function(){var e=this.transform;return e&&Yh(e[0]-1)>0.0000000001&&Yh(e[3]-1)>0.0000000001?Math.sqrt(Yh(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Zi(this,e)},t.getLocalTransform=function(e,r){r=r||[];var i=e.originX||0,n=e.originY||0,{scaleX:a,scaleY:o,anchorX:s,anchorY:l}=e,u=e.rotation||0,{x:f,y:c}=e,p=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(i||n||s||l){var v=i+s,d=n+l;r[4]=-v*a-p*d*o,r[5]=-d*o-h*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=p*o,u&&$a(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=L0.getLocalTransform;var so=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Zi(t,e){return gy(t,e,so)}var lo=L0;function Dr(t){if(!Hu)Hu=new Wr(100);t=t||Bt;var e=Hu.get(t);if(!e)e={font:t,strWidthCache:new Wr(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:St.measureText("国",t).width,asciiCharWidth:St.measureText("a",t).width},Hu.put(t,e);return e}var Hu;function yM(t){if(Wh>=P0)return;t=t||Bt;var e=[],r=+new Date;for(var i=0;i<=127;i++)e[i]=St.measureText(String.fromCharCode(i),t).width;var n=+new Date-r;if(n>16)Wh=P0;else if(n>2)Wh++;return e}var Wh=0,P0=5;function Xh(t,e){if(!t.asciiWidthMapTried)t.asciiWidthMap=yM(t.font),t.asciiWidthMapTried=!0;return 0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Mr(t,e){var r=t.strWidthCache,i=r.get(e);if(i==null)i=St.measureText(e,t.font).width,r.put(e,i);return i}function I0(t,e,r,i){var n=Mr(Dr(e),t),a=Wn(e),o=Ki(0,n,r),s=gi(0,a,i),l=new ae(o,s,n,a);return l}function Gu(t,e,r,i){var n=((t||"")+"").split(`
|
|
15
|
-
`),a=n.length;if(a===1)return I0(n[0],e,r,i);else{var o=new ae(0,0,0,0);for(var s=0;s<n.length;s++){var l=I0(n[s],e,r,i);s===0?o.copy(l):o.union(l)}return o}}function Ki(t,e,r,i){if(r==="right")!i?t-=e:t+=e;else if(r==="center")!i?t-=e/2:t+=e/2;return t}function gi(t,e,r,i){if(r==="middle")!i?t-=e/2:t+=e/2;else if(r==="bottom")!i?t-=e:t+=e;return t}function Wn(t){return Dr(t).stWideCharWidth}function Er(t,e){if(typeof t==="string"){if(t.lastIndexOf("%")>=0)return parseFloat(t)/100*e;return parseFloat(t)}return t}function Xn(t,e,r){var i=e.position||"inside",n=e.distance!=null?e.distance:5,{height:a,width:o}=r,s=a/2,{x:l,y:u}=r,f="left",c="top";if(i instanceof Array)l+=Er(i[0],r.width),u+=Er(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 qh="__zr_normal__",Zh=so.concat(["ignore"]),_M=Qt(so,function(t,e){return t[e]=!0,t},{ignore:!1}),uo={},xM=new ae(0,0,0,0),Yu=[],Wu=0,fo=1,Qh=function(){function t(e){this.id=su(),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;if(!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(){if(this.updateTransform(),this.__dirty)this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){if(!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){if(p=xM,i.layoutRect)p.copy(i.layoutRect);else p.copy(this.getBoundingRect());if(!n)p.applyTransform(this.transform)}if(f){if(this.calculateTextPosition)this.calculateTextPosition(uo,i,p);else Xn(uo,i,p);a.x=uo.x,a.y=uo.y,o=uo.align,s=uo.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var v=void 0,d=void 0;if(h==="center")v=p.width*0.5,d=p.height*0.5;else v=Er(h[0],p.width),d=Er(h[1],p.height);u=!0,a.originX=-a.x+v+(n?0:p.x),a.originY=-a.y+d+(n?0:p.y)}}if(i.rotation!=null)a.rotation=i.rotation;var m=i.offset;if(m){if(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 ae(0,0,0,0);a.getLocalTransform(Yu),Gr(Yu,Yu),ae.copy(y,p),y.applyTransform(Yu)}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;if(_&&this.canBeInsideText()){if(x=i.insideFill,S=i.insideStroke,x==null||x==="auto")x=this.getInsideTextFill();if(S==null||S==="auto")S=this.getInsideTextStroke(x),b=!0}else{if(x=i.outsideFill,S=i.outsideStroke,x==null||x==="auto")x=this.getOutsideFill();if(S==null||S==="auto")S=this.getOutsideStroke(x),b=!0}if(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);if(r.__dirty|=Tt,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()?Ps:Ls},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r==="string"&&Jt(r);if(!i)i=[255,255,255,1];var n=i[3],a=this.__zr.isDarkMode();for(var o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,bs(i,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){if(e==="textConfig")this.setTextConfig(r);else if(e==="textContent")this.setTextContent(r);else if(e==="clipPath")this.setClipPath(r);else if(e==="extra")this.extra=this.extra||{},N(this.extra,r);else 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(W(e)){var i=e,n=re(i);for(var 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);var r=this._normalState;for(var i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(n.getLoop()||a&&a!==qh)continue;var o=n.targetName,s=o?r[o]:r;n.saveTo(s)}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;if(!r)r=this._normalState={};if(e.textConfig&&!r.textConfig)r.textConfig=this.textConfig;this._savePrimaryToNormal(e,r,Zh)},t.prototype._savePrimaryToNormal=function(e,r,i){for(var n=0;n<i.length;n++){var a=i[n];if(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;if(!r[e])r[e]={};return r[e]},t.prototype.clearStates=function(e){this.useState(qh,!1,e)},t.prototype.useState=function(e,r,i,n){var a=e===qh,o=this.hasState();if(!o&&a)return;var s=this.currentStates,l=this.stateTransition;if(ue(s,e)>=0&&(r||s.length===1))return;var u;if(this.stateProxy&&!a)u=this.stateProxy(e);if(!u)u=this.states&&this.states[e];if(!u&&!a){jt("State "+e+" not exists.");return}if(!a)this.saveCurrentToNormalState(u);var f=this._textContent,c=R0(this,f,u,n);if(c&&!this.__inHover)this.__inHover=c;this._applyStateObj(e,u,this._normalState,r,B0(this,i,l),l);var p=this._textGuide;if(f)f.useState(e,r,i,!!c);if(p)p.useState(e,r,i,!!c);if(a)this.currentStates=[],this._normalState={};else if(!r)this.currentStates=[e];else this.currentStates.push(e);if(this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover)this.__inHover=Wu,this.__dirty&=~Tt;return 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;if(this.stateProxy)f=this.stateProxy(u,e);if(!f)f=this.states[u];if(f)n.push(f)}var c=n[o-1],p=this._textContent,h=R0(this,p,c,i);if(h&&!this.__inHover)this.__inHover=h;var v=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,B0(this,r,d),d);var m=this._textGuide;if(p)p.useStates(e,r,!!h);if(m)m.useStates(e,r,!!h);if(this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover)this.__inHover=Wu,this.__dirty&=~Tt}},t.prototype.isSilent=function(){var e=this;while(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];if(r.targetName)r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=ue(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=ue(n,e),o=ue(n,r)>=0;if(a>=0)if(!o)n[a]=r;else n.splice(a,1);else if(i&&!o)n.push(r);this.useStates(n)},t.prototype.toggleState=function(e,r){if(r)this.useState(e,!0);else this.removeState(e)},t.prototype._mergeStates=function(e){var r={},i;for(var n=0;n<e.length;n++){var a=e[n];if(N(r,a),a.textConfig)i=i||{},N(i,a.textConfig)}if(i)r.textConfig=i;return r},t.prototype._applyStateObj=function(e,r,i,n,a,o){if(this.__inHover===fo)return;var s=!(r&&n);if(r&&r.textConfig)this.textConfig=N({},n?this.textConfig:i.textConfig),N(this.textConfig,r.textConfig);else if(s){if(i.textConfig)this.textConfig=i.textConfig}var l={},u=!1;for(var f=0;f<Zh.length;f++){var c=Zh[f],p=a&&_M[c];if(r&&r[c]!=null)if(p)u=!0,l[c]=r[c];else this[c]=r[c];else if(s){if(i[c]!=null)if(p)u=!0,l[c]=i[c];else this[c]=i[c]}}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],v=h.targetName;if(!h.getLoop())h.__changeFinalValue(v?(r||i)[v]:r||i)}if(u)this._transitionState(e,l,o)},t.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget)throw Error("Text element has been added to zrender.");if(e===this)throw Error("Recursive component attachment.");var r=this.__zr;if(r)e.addSelfToZr(r);e.__zr=r,e.__hostTarget=this},t.prototype._detachComponent=function(e){if(e.__zr)e.removeSelfFromZr(e.__zr);e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){if(this._clipPath&&this._clipPath!==e)this.removeClipPath();this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;if(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;if(r===e)return;if(r&&r!==e)this.removeTextContent();if(e.__zr&&!e.__hostTarget)throw Error("Text element has been added to zrender.");e.innerTransformable=new lo,this._attachComponent(e),this._textContent=e,this.markRedraw()},t.prototype.setTextConfig=function(e){if(!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;if(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){if(this._textGuide&&this._textGuide!==e)this.removeTextGuideLine();this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;if(e)this._detachComponent(e),this._textGuide=null,this.markRedraw()},t.prototype.markRedraw=function(){this.__dirty|=Tt;var e=this.__zr;if(e)if(this.__inHover)e.refreshHover();else e.refresh();if(this.__hostTarget)this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr===e)return;this.__zr=e;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.addAnimator(r[i]);if(this._clipPath)this._clipPath.addSelfToZr(e);if(this._textContent)this._textContent.addSelfToZr(e);if(this._textGuide)this._textGuide.addSelfToZr(e)},t.prototype.removeSelfFromZr=function(e){if(!this.__zr)return;this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.removeAnimator(r[i]);if(this._clipPath)this._clipPath.removeSelfFromZr(e);if(this._textContent)this._textContent.removeSelfFromZr(e);if(this._textGuide)this._textGuide.removeSelfFromZr(e)},t.prototype.animate=function(e,r,i){var n=e?this[e]:this;if(!n){jt('Property "'+e+'" is not existed in element '+this.id);return}var a=new Ms(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;if(e.during(function(){n.updateDuringAnimation(r)}).done(function(){var a=n.animators,o=ue(a,e);if(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){var i=this.animators,n=i.length,a=[];for(var o=0;o<n;o++){var s=i[o];if(!e||e===s.scope)s.stop(r);else a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,i){Kh(this,e,r,i)},t.prototype.animateFrom=function(e,r,i){Kh(this,e,r,i,!0)},t.prototype._transitionState=function(e,r,i,n){var a=Kh(this,r,i,n);for(var 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=Wu,e.__dirty=Tt;var r={};function i(a,o,s){if(!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(i(a,s,l),!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){i(a,s,l),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}})}}if(Object.defineProperty)n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY")}(),t}();ht(Qh,Et);ht(Qh,lo);function Kh(t,e,r,i,n){r=r||{};var a=[];z0(t,"",t,e,r,i,a,n);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){if(s=!0,o--,o<=0)s?l&&l():u&&u()},c=function(){if(o--,o<=0)s?l&&l():u&&u()};if(!o)l&&l();if(a.length>0&&r.during)a[0].during(function(v,d){r.during(d)});for(var p=0;p<a.length;p++){var h=a[p];if(f)h.done(f);if(c)h.aborted(c);if(r.force)h.duration(r.duration);h.start(r.easing)}return a}function jh(t,e,r){for(var i=0;i<r;i++)t[i]=e[i]}function SM(t){return et(t[0])}function bM(t,e,r){if(et(e[r])){if(!et(t[r]))t[r]=[];if(ke(e[r])){var i=e[r].length;if(t[r].length!==i)t[r]=new e[r].constructor(i),jh(t[r],e[r],i)}else{var n=e[r],a=t[r],o=n.length;if(SM(n)){var s=n[0].length;for(var l=0;l<o;l++)if(!a[l])a[l]=Array.prototype.slice.call(n[l]);else jh(a[l],n[l],s)}else jh(a,n,o);a.length=n.length}}else t[r]=e[r]}function TM(t,e){return t===e||et(t)&&et(e)&&wM(t,e)}function wM(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 z0(t,e,r,i,n,a,o,s){var l=re(i),{duration:u,delay:f,additive:c,setToFinal:p}=n,h=!W(a),v=t.animators,d=[];for(var m=0;m<l.length;m++){var g=l[m],y=i[g];if(y!=null&&r[g]!=null&&(h||a[g]))if(W(y)&&!et(y)&&!Xa(y)){if(e){if(!s)r[g]=y,t.updateDuringAnimation(e);continue}z0(t,g,r[g],y,n,a&&a[g],o,s)}else d.push(g);else if(!s)r[g]=y,t.updateDuringAnimation(e),d.push(g)}var _=d.length;if(!c&&_)for(var x=0;x<v.length;x++){var S=v[x];if(S.targetName===e){var b=S.stopTracks(d);if(b){var T=ue(v,S);v.splice(T,1)}}}if(!n.force)d=Oe(d,function(D){return!TM(i[D],r[D])}),_=d.length;if(_>0||n.force&&!o.length){var A=void 0,C=void 0,E=void 0;if(s){if(C={},p)A={};for(var x=0;x<_;x++){var g=d[x];if(C[g]=r[g],p)A[g]=i[g];else r[g]=i[g]}}else if(p){E={};for(var x=0;x<_;x++){var g=d[x];E[g]=Ds(r[g]),bM(r,i,g)}}var S=new Ms(r,!1,!1,c?Oe(v,function(O){return O.targetName===e}):null);if(S.targetName=e,n.scope)S.scope=n.scope;if(p&&A)S.whenWithKeys(0,A,d);if(E)S.whenWithKeys(0,E,d);S.whenWithKeys(u==null?500:u,s?C:i,d).delay(f||0),t.addAnimator(S,e),o.push(S)}}function R0(t,e,r,i){return!(r&&r.hoverLayer||i)||k0(t)||e&&k0(e)?Wu:fo}function k0(t){return t.type==="text"||t.type==="tspan"}function B0(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var Xu=Qh;var U0=function(t){P(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){var i=this._children;for(var 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){if(r){if(r!==this&&r.parent!==this)this._children.push(r),this._doAdd(r);if(r.__hostTarget)throw"This elemenet has been used as an attachment"}return 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);if(a>=0)n.splice(a,0,r),this._doAdd(r)}return this},e.prototype.replace=function(r,i){var n=ue(this._children,r);if(n>=0)this.replaceAt(i,n);return 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;if(o)a.removeSelfFromZr(o);this._doAdd(r)}return this},e.prototype._doAdd=function(r){if(r.parent)r.parent.remove(r);r.parent=this;var i=this.__zr;if(i&&i!==r.__zr)r.addSelfToZr(i);i&&i.refresh()},e.prototype.remove=function(r){var i=this.__zr,n=this._children,a=ue(n,r);if(a<0)return this;if(n.splice(a,1),r.parent=null,i)r.removeSelfFromZr(i);return i&&i.refresh(),this},e.prototype.removeAll=function(){var r=this._children,i=this.__zr;for(var n=0;n<r.length;n++){var a=r[n];if(i)a.removeSelfFromZr(i);a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,i){var n=this._children;for(var 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);if(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){var i=new ae(0,0,0,0),n=r||this._children,a=[],o=null;for(var s=0;s<n.length;s++){var l=n[s];if(l.ignore||l.invisible)continue;var u=l.getBoundingRect(),f=l.getLocalTransform(a);if(f)ae.applyTransform(i,u,f),o=o||i.clone(),o.union(i);else o=o||u.clone(),o.union(u)}return o||i},e}(Xu);U0.prototype.type="group";var we=U0;/*!
|
|
14
|
+
***************************************************************************** */var rh=function(t,e){return rh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n))r[n]=i[n]},rh(t,e)};function P(t,e){if(typeof e!=="function"&&e!==null)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");rh(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var lD=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),uD=function(){function t(){this.browser=new lD,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}(),Ui=new uD;if(typeof wx==="object"&&typeof wx.getSystemInfoSync==="function")Ui.wxa=!0,Ui.touchEventsSupported=!0;else if(typeof document>"u"&&typeof self<"u")Ui.worker=!0;else if(!Ui.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent==="string"&&navigator.userAgent.indexOf("Node.js")>-1)Ui.node=!0,Ui.svgSupported=!0;else fD(navigator.userAgent,Ui);function fD(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);if(i)r.firefox=!0,r.version=i[1];if(n)r.ie=!0,r.version=n[1];if(a)r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18;if(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 ne=Ui;var ou=12,ih="sans-serif",Bt=ou+"px "+ih,cD=20,pD=100,hD="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function vD(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)-cD)/pD;e[i]=n}return e}var dD=vD(hD),St={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(r,i){if(!t){var n=St.createCanvas();t=n&&n.getContext("2d")}if(t){if(e!==i)e=t.font=i||Bt;return t.measureText(r)}else{r=r||"",i=i||Bt;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||ou,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=dD[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}};var gy=$t(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),yy=$t(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Wa=Object.prototype.toString,lu=Array.prototype,{forEach:mD,filter:gD,slice:ah,map:yD}=lu,dy=function(){}.constructor,su=dy?dy.prototype:null,oh="__proto__",nh=2311,_D=Math.pow(2,53)-1;function uu(){if(nh>=_D)nh=0;return nh++}function jt(){var t=[];for(var e=0;e<arguments.length;e++)t[e]=arguments[e];if(typeof console<"u")console.error.apply(console,t)}function te(t){if(t==null||typeof t!=="object")return t;var e=t,r=Wa.call(t);if(r==="[object Array]"){if(!vs(t)){e=[];for(var i=0,n=t.length;i<n;i++)e[i]=te(t[i])}}else if(yy[r]){if(!vs(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(!gy[r]&&!vs(t)&&!Fi(t)){e={};for(var o in t)if(t.hasOwnProperty(o)&&o!==oh)e[o]=te(t[o])}return e}function _e(t,e,r){if(!W(e)||!W(t))return r?te(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==oh){var n=t[i],a=e[i];if(W(a)&&W(n)&&!k(a)&&!k(n)&&!Fi(a)&&!Fi(n)&&!my(a)&&!my(n)&&!vs(a)&&!vs(n))_e(n,a,r);else if(r||!(i in t))t[i]=te(e[i])}return t}function N(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)if(e.hasOwnProperty(r)&&r!==oh)t[r]=e[r];return t}function _y(t,e,r){t=t||{};for(var i=0;i<r.length;i++){var n=r[i];t[n]=e[n]}return t}function oe(t,e,r){var i=re(e);for(var n=0,a=i.length;n<a;n++){var o=i[n];if(r?e[o]!=null:t[o]==null)t[o]=e[o]}return t}var sz=St.createCanvas;function ue(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 xy(t,e){var r=t.prototype;function i(){}i.prototype=e.prototype,t.prototype=new i;for(var n in r)if(r.hasOwnProperty(n))t.prototype[n]=r[n];t.prototype.constructor=t,t.superClass=e}function ht(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames){var i=Object.getOwnPropertyNames(e);for(var n=0;n<i.length;n++){var a=i[n];if(a!=="constructor"){if(r?e[a]!=null:t[a]==null)t[a]=e[a]}}}else oe(t,e,r)}function et(t){if(!t)return!1;if(typeof t==="string")return!1;return typeof t.length==="number"}function w(t,e,r){if(!(t&&e))return;if(t.forEach&&t.forEach===mD)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)if(t.hasOwnProperty(a))e.call(r,t[a],a,t)}function U(t,e,r){if(!t)return[];if(!e)return fu(t);if(t.map&&t.map===yD)return t.map(e,r);else{var i=[];for(var n=0,a=t.length;n<a;n++)i.push(e.call(r,t[n],n,t));return i}}function $t(t,e,r,i){if(!(t&&e))return;for(var n=0,a=t.length;n<a;n++)r=e.call(i,r,t[n],n,t);return r}function Oe(t,e,r){if(!t)return[];if(!e)return fu(t);if(t.filter&&t.filter===gD)return t.filter(e,r);else{var i=[];for(var n=0,a=t.length;n<a;n++)if(e.call(r,t[n],n,t))i.push(t[n]);return i}}function Sy(t,e,r){if(!(t&&e))return;for(var i=0,n=t.length;i<n;i++)if(e.call(r,t[i],i,t))return t[i]}function re(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)if(t.hasOwnProperty(r))e.push(r);return e}function xD(t,e){var r=[];for(var i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return t.apply(e,r.concat(ah.call(arguments)))}}var me=su&&X(su.bind)?su.call.bind(su.bind):xD;function Ae(t){var e=[];for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(ah.call(arguments)))}}function k(t){if(Array.isArray)return Array.isArray(t);return Wa.call(t)==="[object Array]"}function X(t){return typeof t==="function"}function V(t){return typeof t==="string"}function Xa(t){return Wa.call(t)==="[object String]"}function se(t){return typeof t==="number"}function W(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function my(t){return!!gy[Wa.call(t)]}function ke(t){return!!yy[Wa.call(t)]}function Fi(t){return typeof t==="object"&&typeof t.nodeType==="number"&&typeof t.ownerDocument==="object"}function qa(t){return t.colorStops!=null}function by(t){return Wa.call(t)==="[object RegExp]"}function Vr(t){return t!==t}function Cr(){var t=[];for(var 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 G(t,e){return t!=null?t:e}function bt(t,e,r){return t!=null?t:e!=null?e:r}function fu(t){var e=[];for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];return ah.apply(t,e)}function Za(t){if(typeof t==="number")return[t,t,t,t];var e=t.length;if(e===2)return[t[0],t[1],t[0],t[1]];else if(e===3)return[t[0],t[1],t[2],t[1]];return t}function I(t,e){if(!t)throw Error(e)}function vt(t){if(t==null)return null;else if(typeof t.trim==="function")return t.trim();else return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Ty="__ec_primitive__";function Ka(t){t[Ty]=!0}function vs(t){return t[Ty]}var SD=function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);if(r)delete this.data[e];return 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 re(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var i in r)if(r.hasOwnProperty(i))e(r[i],i)},t}(),wy=typeof Map==="function";function bD(){return wy?new Map:new SD}var TD=function(){function t(e){var r=k(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 wy?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function Z(t){return new TD(t)}function Cy(t,e){var r=new t.constructor(t.length+e.length);for(var i=0;i<t.length;i++)r[i]=t[i];var n=t.length;for(var i=0;i<e.length;i++)r[i+n]=e[i];return r}function Vi(t,e){var r;if(Object.create)r=Object.create(t);else{var i=function(){};i.prototype=t,r=new i}if(e)N(r,e);return r}function Be(t,e){return t.hasOwnProperty(e)}function Pe(){}var ja=180/Math.PI,lz=Number.EPSILON||Math.pow(2,-52);function Hi(t,e){if(t==null)t=0;if(e==null)e=0;return[t,e]}function Ay(t){return[t[0],t[1]]}function cu(t,e,r){return t[0]=e,t[1]=r,t}function sh(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function pu(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function wD(t){return Math.sqrt(CD(t))}function CD(t){return t[0]*t[0]+t[1]*t[1]}function hu(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function $a(t,e){var r=wD(e);if(r===0)t[0]=0,t[1]=0;else t[0]=e[0]/r,t[1]=e[1]/r;return t}function vu(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var ds=vu;function AD(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var In=AD;function du(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 dt(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 pi(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function hi(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var Qa=function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t}(),ED=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){var r=e.target;while(r&&!r.draggable)r=r.parent||r.__hostTarget;if(r)this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Qa(r,e),"dragstart",e.event)},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var{offsetX:i,offsetY:n}=e,a=i-this._x,o=n-this._y;this._x=i,this._y=n,r.drift(a,o,e),this.handler.dispatchToElement(new Qa(r,e),"drag",e.event);var s=this.handler.findHover(i,n,r).target,l=this._dropTarget;if(this._dropTarget=s,r!==s){if(l&&s!==l)this.handler.dispatchToElement(new Qa(l,e),"dragleave",e.event);if(s&&s!==l)this.handler.dispatchToElement(new Qa(s,e),"dragenter",e.event)}}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;if(r)r.dragging=!1;if(this.handler.dispatchToElement(new Qa(r,e),"dragend",e.event),this._dropTarget)this.handler.dispatchToElement(new Qa(this._dropTarget,e),"drop",e.event);this._draggingTarget=null,this._dropTarget=null},t}(),Ey=ED;var DD=function(){function t(e){if(e)this._$eventProcessor=e}return t.prototype.on=function(e,r,i,n){if(!this._$handlers)this._$handlers={};var a=this._$handlers;if(typeof r==="function")n=i,i=r,r=null;if(!i||!e)return this;var o=this._$eventProcessor;if(r!=null&&o&&o.normalizeQuery)r=o.normalizeQuery(r);if(!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]){var n=[];for(var a=0,o=i[e].length;a<o;a++)if(i[e][a].h!==r)n.push(i[e][a]);i[e]=n}if(i[e]&&i[e].length===0)delete i[e]}else delete i[e];return this},t.prototype.trigger=function(e){var r=[];for(var 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){var o=r.length,s=n.length;for(var l=0;l<s;l++){var u=n[l];if(a&&a.filter&&u.query!=null&&!a.filter(e,u.query))continue;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){var r=[];for(var 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){var o=r.length,s=r[o-1],l=n.length;for(var u=0;u<l;u++){var f=n[u];if(a&&a.filter&&f.query!=null&&!a.filter(e,f.query))continue;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}(),Et=DD;var MD=Math.log(2);function lh(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)/MD);return t[r][l]}var u=i|1<<r,f=r+1;while(i&1<<f)f++;var c=0;for(var p=0,h=0;p<s;p++){var v=1<<p;if(!(v&n))c+=(h%2?-1:1)*t[r][p]*lh(t,e-1,f,u,n|v,a),h++}return a[o]=c,c}function uh(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=lh(r,8,0,0,0,i);if(n===0)return;var a=[];for(var 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)*lh(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 mu="___zrEVENTSAVED",fh=[];function Dy(t,e,r,i,n){return gu(fh,e,i,n,!0)&&gu(t,r,fh[0],fh[1])}function My(t,e){t&&r(t),e&&r(e);function r(i){var n=i[mu];if(n)n.clearMarkers&&n.clearMarkers(),delete i[mu]}}function gu(t,e,r,i,n){if(e.getBoundingClientRect&&ne.domSupported&&!ch(e)){var a=e[mu]||(e[mu]={}),o=OD(e,a),s=LD(o,a,n);if(s)return s(t,r,i),!0}return!1}function OD(t,e){var r=e.markers;if(r)return r;r=e.markers=[];var i=["left","right"],n=["top","bottom"];for(var 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 LD(t,e,r){var i=r?"invTrans":"trans",n=e[i],a=e.srcCoords,o=[],s=[],l=!0;for(var u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,{left:p,top:h}=f;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?uh(s,o):uh(o,s))}function ch(t){return t.nodeName.toUpperCase()==="CANVAS"}var PD=/([&<>"'])/g,ID={"&":"&","<":"<",">":">",'"':""","'":"'"};function it(t){return t==null?"":(t+"").replace(PD,function(e,r){return ID[r]})}var ND=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ph=[],RD=ne.browser.firefox&&+ne.browser.version.split(".")[0]<39;function yu(t,e,r,i){if(r=r||{},i)Oy(t,e,r);else if(RD&&e.layerX!=null&&e.layerX!==e.offsetX)r.zrX=e.layerX,r.zrY=e.layerY;else if(e.offsetX!=null)r.zrX=e.offsetX,r.zrY=e.offsetY;else Oy(t,e,r);return r}function Oy(t,e,r){if(ne.domSupported&&t.getBoundingClientRect){var{clientX:i,clientY:n}=e;if(ch(t)){var a=t.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(gu(ph,t,i,n)){r.zrX=ph[0],r.zrY=ph[1];return}}r.zrX=r.zrY=0}function _u(t){return t||window.event}function zt(t,e,r){if(e=_u(e),e.zrX!=null)return e;var i=e.type,n=i&&i.indexOf("touch")>=0;if(!n){yu(t,e,e,r);var a=kD(e);e.zrDelta=a?a/120:-(e.detail||0)/3}else{var o=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&yu(t,o,e,r)}var s=e.button;if(e.which==null&&s!==void 0&&ND.test(e.type))e.which=s&1?1:s&2?3:s&4?2:0;return e}function kD(t){var e=t.wheelDelta;if(e)return e;var{deltaX:r,deltaY:i}=t;if(r==null||i==null)return e;var n=i!==0?Math.abs(i):Math.abs(r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function Ly(t,e,r,i){t.addEventListener(e,r,i)}function Py(t,e,r,i){t.removeEventListener(e,r,i)}var xu=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var Ny=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)return;var a={points:[],touches:[],target:r,event:e};for(var o=0,s=n.length;o<s;o++){var l=n[o],u=yu(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 vh)if(vh.hasOwnProperty(r)){var i=vh[r](this._track,e);if(i)return i}},t}();function Iy(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function BD(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var vh={pinch:function(t,e){var r=t.length;if(!r)return;var i=(t[r-1]||{}).points,n=(t[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=Iy(i)/Iy(n);!isFinite(a)&&(a=1),e.pinchScale=a;var o=BD(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}};function Dt(){return[1,0,0,1,0,0]}function vi(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ms(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 Gi(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 gs(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 Ja(t,e,r,i){if(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 Ry(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 Gr(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;if(!l)return null;return 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}var zD=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)return;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}(),fe=zD;var{min:zn,max:eo,abs:gh}=Math,ky=["x","y"],UD=["width","height"],Nn=new fe,Rn=new fe,kn=new fe,Bn=new fe,Qt=_h(),{minTv:_s,maxTv:yh}=Qt,xs=[0,0],di=function(){function t(e,r,i,n){dh(this,e,r,i,n)}return t.set=function(e,r,i,n,a){if(n<0)r=r+n,n=-n;if(a<0)i=i+a,a=-a;return e.x=r,e.y=i,e.width=n,e.height=a,e},t.prototype.union=function(e){var r=zn(e.x,this.x),i=zn(e.y,this.y);if(isFinite(this.x)&&isFinite(this.width))this.width=eo(e.x+e.width,this.x+this.width)-r;else this.width=e.width;if(isFinite(this.y)&&isFinite(this.height))this.height=eo(e.y+e.height,this.y+this.height)-i;else 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 FD(Dt(),this,e)},t.prototype.intersect=function(e,r,i){return t.intersect(this,e,r,i)},t.intersect=function(e,r,i,n){if(i)fe.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;if(!e||!r)return!1;if(!(e instanceof t))e=dh(VD,e.x,e.y,e.width,e.height);if(!(r instanceof t))r=dh(HD,r.x,r.y,r.width,r.height);var s=!!i;Qt.reset(n,s);var l=Qt.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,v=r.x+r.width-l,d=r.y+l,m=r.y+r.height-l;if(u>f||c>p||h>v||d>m)return!1;var g=!(f<h||v<u||p<d||m<c);if(s||a){if(xs[0]=1/0,xs[1]=0,zy(u,f,h,v,0,s,a,o),zy(c,p,d,m,1,s,a,o),s)fe.copy(i,g?Qt.useDir?Qt.dirMinTv:_s:yh)}return 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){By(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){if(e!==r)By(e,r);return}if(i[1]<0.00001&&i[1]>-0.00001&&i[2]<0.00001&&i[2]>-0.00001){var n=i[0],a=i[3],o=i[4],s=i[5];if(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;if(e.height<0)e.y+=e.height,e.height=-e.height;return}Nn.x=kn.x=r.x,Nn.y=Bn.y=r.y,Rn.x=Bn.x=r.x+r.width,Rn.y=kn.y=r.y+r.height,Nn.transform(i),Bn.transform(i),Rn.transform(i),kn.transform(i),e.x=zn(Nn.x,Rn.x,kn.x,Bn.x),e.y=zn(Nn.y,Rn.y,kn.y,Bn.y);var l=eo(Nn.x,Rn.x,kn.x,Bn.x),u=eo(Nn.y,Rn.y,kn.y,Bn.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=vi(e||[]),gs(e,e,cu(mh,-r.x,-r.y)),Ry(e,e,cu(mh,n,a)),gs(e,e,cu(mh,i.x,i.y)),e},t}(),{create:Sz,set:dh,copy:By,calculateTransform:FD,applyTransform:bz,contain:Tz}=di,VD=new di(0,0,0,0),HD=new di(0,0,0,0),mh=[];function zy(t,e,r,i,n,a,o,s){var l=gh(e-r),u=gh(i-t),f=zn(l,u),c=ky[n],p=ky[1-n],h=UD[n];if(e<r||i<t)if(l<u){if(a)yh[c]=-l;if(s)o[c]=e,o[h]=0}else{if(a)yh[c]=u;if(s)o[c]=t,o[h]=0}else{if(o)o[c]=eo(t,r),o[h]=zn(e,i)-o[c];if(a){if(f<xs[0]||Qt.useDir){if(xs[0]=zn(f,xs[0]),l<u||!Qt.bidirectional){if(_s[c]=l,_s[p]=0,Qt.useDir)Qt.calcDirMTV()}if(l>=u||!Qt.bidirectional){if(_s[c]=-u,_s[p]=0,Qt.useDir)Qt.calcDirMTV()}}}}}function _h(){var t=0,e=new fe,r=new fe,i={minTv:new fe,maxTv:new fe,useDir:!1,dirMinTv:new fe,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){if(i.touchThreshold=0,a&&a.touchThreshold!=null)i.touchThreshold=eo(0,a.touchThreshold);if(i.negativeSize=!1,!o)return;if(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null){if(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{minTv:a,dirMinTv:o}=i,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)){if(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}if((i.bidirectional||e.dot(r)>0)&&r.len()<o.len())o.copy(r)}};function n(a){return gh(a)<0.0000000001}return i}var ae=di;var Fy="silent";function GD(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:YD}}function YD(){xu(this.event)}var WD=function(t){P(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}(Et),Ss=function(){function t(e,r){this.x=e,this.y=r}return t}(),XD=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],xh=new ae(0,0,0,0),Vy=function(t){P(e,t);function e(r,i,n,a,o){var s=t.call(this)||this;return s._hovered=new Ss(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new WD,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new Ey(s),s}return e.prototype.setHandlerProxy=function(r){if(this.proxy)this.proxy.dispose();if(r)w(XD,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this;this.proxy=r},e.prototype.mousemove=function(r){var{zrX:i,zrY:n}=r,a=Hy(this,i,n),o=this._hovered,s=o.target;if(s&&!s.__zr)o=this.findHover(o.x,o.y),s=o.target;var l=this._hovered=a?new Ss(i,n):this.findHover(i,n),u=l.target,f=this.proxy;if(f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s)this.dispatchToElement(o,"mouseout",r);if(this.dispatchToElement(l,"mousemove",r),u&&u!==s)this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var i=r.zrEventControl;if(i!=="only_globalout")this.dispatchToElement(this._hovered,"mouseout",r);if(i!=="no_globalout")this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Ss(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)return;var o="on"+i,s=GD(i,r,n);while(a)if(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,s.cancelBubble)break;if(!s.cancelBubble){if(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer)this.painter.eachOtherLayer(function(l){if(typeof l[o]==="function")l[o].call(l,s);if(l.trigger)l.trigger(i,s)})}},e.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new Ss(r,i);if(Uy(a,o,r,i,n),this._pointerSize&&!o.target){var s=[],l=this._pointerSize,u=l/2,f=new ae(r-u,i-u,l,l);for(var c=a.length-1;c>=0;c--){var p=a[c];if(p!==n&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)){if(xh.copy(p.getBoundingRect()),p.transform)xh.applyTransform(p.transform);if(xh.intersect(f))s.push(p)}}if(s.length){var h=4,v=Math.PI/12,d=Math.PI*2;for(var m=0;m<u;m+=h)for(var g=0;g<d;g+=v){var y=r+m*Math.cos(g),_=i+m*Math.sin(g);if(Uy(s,o,y,_,n),o.target)return o}}}return o},e.prototype.processGesture=function(r,i){if(!this._gestureMgr)this._gestureMgr=new Ny;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 Ss;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e}(Et);w(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Vy.prototype[t]=function(e){var{zrX:r,zrY:i}=e,n=Hy(this,r,i),a,o;if(t!=="mouseup"||!n)a=this.findHover(r,i),o=a.target;if(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||ds(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function qD(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){var i=t,n=void 0,a=!1;while(i){if(i.ignoreClip)a=!0;if(!a){var o=i.getClipPath();if(o&&!o.contain(e,r))return!1}if(i.silent)n=!0;var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?Fy:!0}return!1}function Uy(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=qD(o,r,i))){if(!e.topTarget&&(e.topTarget=o),s!==Fy){e.target=o;break}}}}function Hy(t,e,r){var i=t.painter;return e<0||e>i.getWidth()||r<0||r>i.getHeight()}var Gy=Vy;var Xy=32,bs=7;function ZD(t){var e=0;while(t>=Xy)e|=t&1,t>>=1;return t+e}function Yy(t,e,r,i){var n=e+1;if(n===r)return 1;if(i(t[n++],t[e])<0){while(n<r&&i(t[n],t[n-1])<0)n++;KD(t,e,n)}else while(n<r&&i(t[n],t[n-1])>=0)n++;return n-e}function KD(t,e,r){r--;while(e<r){var i=t[e];t[e++]=t[r],t[r--]=i}}function Wy(t,e,r,i,n){if(i===e)i++;for(;i<r;i++){var a=t[i],o=e,s=i,l;while(o<s)if(l=o+s>>>1,n(a,t[l])<0)s=l;else 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:while(u>0)t[o+u]=t[o+u-1],u--}t[o]=a}}function Sh(t,e,r,i,n,a){var o=0,s=0,l=1;if(a(t,e[r+n])>0){s=i-n;while(l<s&&a(t,e[r+n+l])>0)if(o=l,l=(l<<1)+1,l<=0)l=s;if(l>s)l=s;o+=n,l+=n}else{s=n+1;while(l<s&&a(t,e[r+n-l])<=0)if(o=l,l=(l<<1)+1,l<=0)l=s;if(l>s)l=s;var u=o;o=n-l,l=n-u}o++;while(o<l){var f=o+(l-o>>>1);if(a(t,e[r+f])>0)o=f+1;else l=f}return l}function bh(t,e,r,i,n,a){var o=0,s=0,l=1;if(a(t,e[r+n])<0){s=n+1;while(l<s&&a(t,e[r+n-l])<0)if(o=l,l=(l<<1)+1,l<=0)l=s;if(l>s)l=s;var u=o;o=n-l,l=n-u}else{s=i-n;while(l<s&&a(t,e[r+n+l])>=0)if(o=l,l=(l<<1)+1,l<=0)l=s;if(l>s)l=s;o+=n,l+=n}o++;while(o<l){var f=o+(l-o>>>1);if(a(t,e[r+f])<0)l=f;else o=f+1}return l}function jD(t,e){var r=bs,i,n,a=0,o=[];i=[],n=[];function s(h,v){i[a]=h,n[a]=v,a+=1}function l(){while(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]){if(n[h-1]<n[h+1])h--}else if(n[h]>n[h+1])break;f(h)}}function u(){while(a>1){var h=a-2;if(h>0&&n[h-1]<n[h+1])h--;f(h)}}function f(h){var v=i[h],d=n[h],m=i[h+1],g=n[h+1];if(n[h]=d+g,h===a-3)i[h+1]=i[h+2],n[h+1]=n[h+2];a--;var y=bh(t[m],t,v,d,0,e);if(v+=y,d-=y,d===0)return;if(g=Sh(t[v+d-1],t,m,g,g-1,e),g===0)return;if(d<=g)c(v,d,m,g);else p(v,d,m,g)}function c(h,v,d,m){var g=0;for(g=0;g<v;g++)o[g]=t[h+g];var y=0,_=d,x=h;if(t[x++]=t[_++],--m===0){for(g=0;g<v;g++)t[x+g]=o[y+g];return}if(v===1){for(g=0;g<m;g++)t[x+g]=t[_+g];t[x+m]=o[y];return}var S=r,b,T,A;while(!0){b=0,T=0,A=!1;do if(e(t[_],o[y])<0){if(t[x++]=t[_++],T++,b=0,--m===0){A=!0;break}}else if(t[x++]=o[y++],b++,T=0,--v===1){A=!0;break}while((b|T)<S);if(A)break;do{if(b=bh(t[_],o,y,v,0,e),b!==0){for(g=0;g<b;g++)t[x+g]=o[y+g];if(x+=b,y+=b,v-=b,v<=1){A=!0;break}}if(t[x++]=t[_++],--m===0){A=!0;break}if(T=Sh(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){A=!0;break}}if(t[x++]=o[y++],--v===1){A=!0;break}S--}while(b>=bs||T>=bs);if(A)break;if(S<0)S=0;S+=2}if(r=S,r<1&&(r=1),v===1){for(g=0;g<m;g++)t[x+g]=t[_+g];t[x+m]=o[y]}else if(v===0)throw Error();else for(g=0;g<v;g++)t[x+g]=o[y+g]}function p(h,v,d,m){var g=0;for(g=0;g<m;g++)o[g]=t[d+g];var y=h+v-1,_=m-1,x=d+m-1,S=0,b=0;if(t[x--]=t[y--],--v===0){S=x-(m-1);for(g=0;g<m;g++)t[S+g]=o[g];return}if(m===1){x-=v,y-=v,b=x+1,S=y+1;for(g=v-1;g>=0;g--)t[b+g]=t[S+g];t[x]=o[_];return}var T=r;while(!0){var A=0,C=0,E=!1;do if(e(o[_],t[y])<0){if(t[x--]=t[y--],A++,C=0,--v===0){E=!0;break}}else if(t[x--]=o[_--],C++,A=0,--m===1){E=!0;break}while((A|C)<T);if(E)break;do{if(A=v-bh(o[_],t,h,v,v-1,e),A!==0){x-=A,y-=A,v-=A,b=x+1,S=y+1;for(g=A-1;g>=0;g--)t[b+g]=t[S+g];if(v===0){E=!0;break}}if(t[x--]=o[_--],--m===1){E=!0;break}if(C=m-Sh(t[y],o,0,m,m-1,e),C!==0){x-=C,_-=C,m-=C,b=x+1,S=_+1;for(g=0;g<C;g++)t[b+g]=o[S+g];if(m<=1){E=!0;break}}if(t[x--]=t[y--],--v===0){E=!0;break}T--}while(A>=bs||C>=bs);if(E)break;if(T<0)T=0;T+=2}if(r=T,r<1)r=1;if(m===1){x-=v,y-=v,b=x+1,S=y+1;for(g=v-1;g>=0;g--)t[b+g]=t[S+g];t[x]=o[_]}else if(m===0)throw Error();else{S=x-(m-1);for(g=0;g<m;g++)t[S+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Un(t,e,r,i){if(!r)r=0;if(!i)i=t.length;var n=i-r;if(n<2)return;var a=0;if(n<Xy){a=Yy(t,r,i,e),Wy(t,r,i,r+a,e);return}var o=jD(t,e),s=ZD(n);do{if(a=Yy(t,r,i,e),a<s){var l=n;if(l>s)l=s;Wy(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 Tt=1,Fn=2,Yi=4;var qy=!1;function Th(){if(qy)return;qy=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors")}function Zy(t,e){if(t.zlevel===e.zlevel){if(t.z===e.z)return t.z2-e.z2;return t.z-e.z}return t.zlevel-e.zlevel}var $D=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Zy}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;if(e||!i.length)this.updateDisplayList(r);return i},t.prototype.updateDisplayList=function(e){this._displayListLen=0;var r=this._roots,i=this._displayList;for(var n=0,a=r.length;n<a;n++)this._updateAndAddDisplayable(r[n],null,e);i.length=this._displayListLen,Un(i,Zy)},t.prototype._updateAndAddDisplayable=function(e,r,i){if(e.ignore&&!i)return;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=[];if(a)for(var l=0;l<r.length;l++)s[o++]=r[l];var u=n,f=e;while(u)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s)s.length=o;if(e.childrenRef){var c=e.childrenRef();for(var p=0;p<c.length;p++){var h=c[p];if(e.__dirty)h.__dirty|=Tt;this._updateAndAddDisplayable(h,s,i)}e.__dirty=0}else{var v=e;if(isNaN(v.z))Th(),v.z=0;if(isNaN(v.z2))Th(),v.z2=0;if(isNaN(v.zlevel))Th(),v.zlevel=0;this._displayList[this._displayListLen++]=v}var d=e.getDecalElement&&e.getDecalElement();if(d)this._updateAndAddDisplayable(d,s,i);var m=e.getTextGuideLine();if(m)this._updateAndAddDisplayable(m,s,i);var g=e.getTextContent();if(g)this._updateAndAddDisplayable(g,s,i)},t.prototype.addRoot=function(e){if(e.__zr&&e.__zr.storage===this)return;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=ue(this._roots,e);if(n>=0)this._roots.splice(n,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0;return},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),Ky=$D;var jy;jy=ne.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var wh=jy;var Su={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){if((t*=2)<1)return 0.5*t*t;return-0.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){if((t*=2)<1)return 0.5*t*t*t;return 0.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){if((t*=2)<1)return 0.5*t*t*t*t;return-0.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){if((t*=2)<1)return 0.5*t*t*t*t*t;return 0.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 0.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){if(t===0)return 0;if(t===1)return 1;if((t*=2)<1)return 0.5*Math.pow(1024,t-1);return 0.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){if((t*=2)<1)return-0.5*(Math.sqrt(1-t*t)-1);return 0.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=0.1,i=0.4;if(t===0)return 0;if(t===1)return 1;if(!r||r<1)r=1,e=i/4;else e=i*Math.asin(1/r)/(2*Math.PI);return-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i))},elasticOut:function(t){var e,r=0.1,i=0.4;if(t===0)return 0;if(t===1)return 1;if(!r||r<1)r=1,e=i/4;else e=i*Math.asin(1/r)/(2*Math.PI);return r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1},elasticInOut:function(t){var e,r=0.1,i=0.4;if(t===0)return 0;if(t===1)return 1;if(!r||r<1)r=1,e=i/4;else e=i*Math.asin(1/r)/(2*Math.PI);if((t*=2)<1)return-0.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i));return r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*0.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;if((t*=2)<1)return 0.5*(t*t*((e+1)*t-e));return 0.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Su.bounceOut(1-t)},bounceOut:function(t){if(t<0.36363636363636365)return 7.5625*t*t;else if(t<0.7272727272727273)return 7.5625*(t-=0.5454545454545454)*t+0.75;else if(t<0.9090909090909091)return 7.5625*(t-=0.8181818181818182)*t+0.9375;else return 7.5625*(t-=0.9545454545454546)*t+0.984375},bounceInOut:function(t){if(t<0.5)return Su.bounceIn(t*2)*0.5;return Su.bounceOut(t*2-1)*0.5+0.5}},bu=Su;var{pow:Tu,sqrt:Xi}=Math,Cu=0.00000001,Qy=0.0001,$y=Xi(3),wu=0.3333333333333333,Yr=Hi(),ur=Hi(),to=Hi();function Wi(t){return t>-Cu&&t<Cu}function Jy(t){return t>Cu||t<-Cu}function ze(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 Ch(t,e,r,i,n){var a=1-n;return 3*(((e-t)*a+2*(r-e)*n)*a+(i-r)*n*n)}function Vn(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(Wi(f)&&Wi(c))if(Wi(s))a[0]=0;else{var v=-l/s;if(v>=0&&v<=1)a[h++]=v}else{var d=c*c-4*f*p;if(Wi(d)){var m=c/f,v=-s/o+m,g=-m/2;if(v>=0&&v<=1)a[h++]=v;if(g>=0&&g<=1)a[h++]=g}else if(d>0){var y=Xi(d),_=f*s+1.5*o*(-c+y),x=f*s+1.5*o*(-c-y);if(_<0)_=-Tu(-_,wu);else _=Tu(_,wu);if(x<0)x=-Tu(-x,wu);else x=Tu(x,wu);var v=(-s-(_+x))/(3*o);if(v>=0&&v<=1)a[h++]=v}else{var S=(2*f*s-3*o*c)/(2*Xi(f*f*f)),b=Math.acos(S)/3,T=Xi(f),A=Math.cos(b),v=(-s-2*T*A)/(3*o),g=(-s+T*(A+$y*Math.sin(b)))/(3*o),C=(-s+T*(A-$y*Math.sin(b)))/(3*o);if(v>=0&&v<=1)a[h++]=v;if(g>=0&&g<=1)a[h++]=g;if(C>=0&&C<=1)a[h++]=C}}return h}function Au(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(Wi(o)){if(Jy(a)){var u=-s/a;if(u>=0&&u<=1)n[l++]=u}}else{var f=a*a-4*o*s;if(Wi(f))n[0]=-a/(2*o);else if(f>0){var c=Xi(f),u=(-a+c)/(2*o),p=(-a-c)/(2*o);if(u>=0&&u<=1)n[l++]=u;if(p>=0&&p<=1)n[l++]=p}}return l}function ro(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 e0(t,e,r,i,n,a,o,s,l,u,f){var c,p=0.005,h=1/0,v,d,m,g;Yr[0]=l,Yr[1]=u;for(var y=0;y<1;y+=0.05)if(ur[0]=ze(t,r,n,o,y),ur[1]=ze(e,i,a,s,y),m=In(Yr,ur),m<h)c=y,h=m;h=1/0;for(var _=0;_<32;_++){if(p<Qy)break;if(v=c-p,d=c+p,ur[0]=ze(t,r,n,o,v),ur[1]=ze(e,i,a,s,v),m=In(ur,Yr),v>=0&&m<h)c=v,h=m;else if(to[0]=ze(t,r,n,o,d),to[1]=ze(e,i,a,s,d),g=In(to,Yr),d<=1&&g<h)c=d,h=g;else p*=0.5}if(f)f[0]=ze(t,r,n,o,c),f[1]=ze(e,i,a,s,c);return Xi(h)}function t0(t,e,r,i,n,a,o,s,l){var u=t,f=e,c=0,p=1/l;for(var h=1;h<=l;h++){var v=h*p,d=ze(t,r,n,o,v),m=ze(e,i,a,s,v),g=d-u,y=m-f;c+=Math.sqrt(g*g+y*y),u=d,f=m}return c}function nt(t,e,r,i){var n=1-i;return n*(n*t+2*i*e)+i*i*r}function Ah(t,e,r,i){return 2*((1-i)*(e-t)+i*(r-e))}function r0(t,e,r,i,n){var a=t-2*e+r,o=2*(e-t),s=t-i,l=0;if(Wi(a)){if(Jy(o)){var u=-s/o;if(u>=0&&u<=1)n[l++]=u}}else{var f=o*o-4*a*s;if(Wi(f)){var u=-o/(2*a);if(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);if(u>=0&&u<=1)n[l++]=u;if(p>=0&&p<=1)n[l++]=p}}return l}function Eu(t,e,r){var i=t+r-2*e;if(i===0)return 0.5;else return(t-e)/i}function io(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 i0(t,e,r,i,n,a,o,s,l){var u,f=0.005,c=1/0;Yr[0]=o,Yr[1]=s;for(var p=0;p<1;p+=0.05){ur[0]=nt(t,r,n,p),ur[1]=nt(e,i,a,p);var h=In(Yr,ur);if(h<c)u=p,c=h}c=1/0;for(var v=0;v<32;v++){if(f<Qy)break;var d=u-f,m=u+f;ur[0]=nt(t,r,n,d),ur[1]=nt(e,i,a,d);var h=In(ur,Yr);if(d>=0&&h<c)u=d,c=h;else{to[0]=nt(t,r,n,m),to[1]=nt(e,i,a,m);var g=In(to,Yr);if(m<=1&&g<c)u=m,c=g;else f*=0.5}}if(l)l[0]=nt(t,r,n,u),l[1]=nt(e,i,a,u);return Xi(c)}function n0(t,e,r,i,n,a,o){var s=t,l=e,u=0,f=1/o;for(var c=1;c<=o;c++){var p=c*f,h=nt(t,r,n,p),v=nt(e,i,a,p),d=h-s,m=v-l;u+=Math.sqrt(d*d+m*m),s=h,l=v}return u}var QD=/cubic-bezier\(([0-9,\.e ]+)\)/;function no(t){var e=t&&QD.exec(t);if(e){var r=e[1].split(","),i=+vt(r[0]),n=+vt(r[1]),a=+vt(r[2]),o=+vt(r[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Vn(0,i,a,1,l,s)&&ze(0,n,o,1,s[0])}}}var JD=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1000,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Pe,this.ondestroy=e.ondestroy||Pe,this.onrestart=e.onrestart||Pe,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(!this._inited)this._startTime=e+this._delay,this._inited=!0;if(this._paused){this._pausedTime+=r;return}var i=this._life,n=e-this._startTime-this._pausedTime,a=n/i;if(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=X(e)?e:bu[e]||no(e)},t}(),a0=JD;var o0=function(){function t(e){this.value=e}return t}();var eM=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new o0(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){if(!this.head)this.head=this.tail=e;else this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e;this._len++},t.prototype.remove=function(e){var{prev:r,next:i}=e;if(r)r.next=i;else this.head=i;if(i)i.prev=r;else 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 tM=function(){function t(e){this._list=new eM,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}if(s)s.value=r;else s=new o0(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){if(r!==i.tail)i.remove(r),i.insertEntry(r);return r.value}},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Wr=tM;var s0={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 qi(t){return t=Math.round(t),t<0?0:t>255?255:t}function rM(t){return t=Math.round(t),t<0?0:t>360?360:t}function Oh(t){return t<0?0:t>1?1:t}function Dh(t){var e=t;if(e.length&&e.charAt(e.length-1)==="%")return qi(parseFloat(e)/100*255);return qi(parseInt(e,10))}function Hn(t){var e=t;if(e.length&&e.charAt(e.length-1)==="%")return Oh(parseFloat(e)/100);return Oh(parseFloat(e))}function Mh(t,e,r){if(r<0)r+=1;else if(r>1)r-=1;if(r*6<1)return t+(e-t)*r*6;if(r*2<1)return e;if(r*3<2)return t+(e-t)*(0.6666666666666666-r)*6;return t}function Du(t,e,r){return t+(e-t)*r}function fr(t,e,r,i,n){return t[0]=e,t[1]=r,t[2]=i,t[3]=n,t}function Lh(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var f0=new Wr(20),Mu=null;function ao(t,e){if(Mu)Lh(Mu,e);Mu=f0.put(t,Mu||e.slice())}function Jt(t,e){if(!t)return;e=e||[];var r=f0.get(t);if(r)return Lh(e,r);t=t+"";var i=t.replace(/ /g,"").toLowerCase();if(i in s0)return Lh(e,s0[i]),ao(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)){fr(e,0,0,0,1);return}return fr(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),ao(t,e),e}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){fr(e,0,0,0,1);return}return fr(e,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),ao(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?fr(e,+u[0],+u[1],+u[2],1):fr(e,0,0,0,1);f=Hn(u.pop());case"rgb":if(u.length>=3)return fr(e,Dh(u[0]),Dh(u[1]),Dh(u[2]),u.length===3?f:Hn(u[3])),ao(t,e),e;else{fr(e,0,0,0,1);return}case"hsla":if(u.length!==4){fr(e,0,0,0,1);return}return u[3]=Hn(u[3]),Ph(u,e),ao(t,e),e;case"hsl":if(u.length!==3){fr(e,0,0,0,1);return}return Ph(u,e),ao(t,e),e;default:return}}fr(e,0,0,0,1);return}function Ph(t,e){var r=(parseFloat(t[0])%360+360)%360/360,i=Hn(t[1]),n=Hn(t[2]),a=n<=0.5?n*(i+1):n+i-n*i,o=n*2-a;if(e=e||[],fr(e,qi(Mh(o,a,r+0.3333333333333333)*255),qi(Mh(o,a,r)*255),qi(Mh(o,a,r-0.3333333333333333)*255),1),t.length===4)e[3]=t[3];return e}function iM(t){if(!t)return;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{if(s<0.5)u=o/(a+n);else 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;if(e===a)l=p-c;else if(r===a)l=0.3333333333333333+f-p;else if(i===a)l=0.6666666666666666+c-f;if(l<0)l+=1;if(l>1)l-=1}var h=[l*360,u,s];if(t[3]!=null)h.push(t[3]);return h}function l0(t,e){var r=Jt(t);if(r){for(var i=0;i<3;i++){if(e<0)r[i]=r[i]*(1-e)|0;else r[i]=(255-r[i])*e+r[i]|0;if(r[i]>255)r[i]=255;else if(r[i]<0)r[i]=0}return ws(r,r.length===4?"rgba":"rgb")}}function c0(t,e,r){if(!(e&&e.length)||!(t>=0&&t<=1))return;var i=t*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=Jt(e[n]),s=Jt(e[a]),l=i-n,u=ws([qi(Du(o[0],s[0],l)),qi(Du(o[1],s[1],l)),qi(Du(o[2],s[2],l)),Oh(Du(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:n,rightIndex:a,value:i}:u}function Ts(t,e,r,i){var n=Jt(t);if(t)return n=iM(n),e!=null&&(n[0]=rM(X(e)?e(n[0]):e)),r!=null&&(n[1]=Hn(X(r)?r(n[1]):r)),i!=null&&(n[2]=Hn(X(i)?i(n[2]):i)),ws(Ph(n),"rgba")}function ws(t,e){if(!t||!t.length)return;var r=t[0]+","+t[1]+","+t[2];if(e==="rgba"||e==="hsva"||e==="hsla")r+=","+t[3];return e+"("+r+")"}function oo(t,e){var r=Jt(t);return r?(0.299*r[0]+0.587*r[1]+0.114*r[2])*r[3]/255+(1-r[3])*e:0}var u0=new Wr(100);function Cs(t){if(V(t)){var e=u0.get(t);if(!e)e=l0(t,-0.1),u0.put(t,e);return e}else if(qa(t)){var r=N({},t);return r.colorStops=U(t.colorStops,function(i){return{offset:i.offset,color:l0(i.color,-0.1)}}),r}return t}var Lu=Math.round;function Zi(t){var e;if(!t||t==="transparent")t="none";else if(typeof t==="string"&&t.indexOf("rgba")>-1){var r=Jt(t);if(r)t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3]}return{color:t,opacity:e==null?1:e}}var p0=0.0001;function Xr(t){return t<p0&&t>-p0}function Ou(t){return Lu(t*1000)/1000}function Pu(t){return Lu(t*1e4)/1e4}function h0(t){return"matrix("+Ou(t[0])+","+Ou(t[1])+","+Ou(t[2])+","+Ou(t[3])+","+Pu(t[4])+","+Pu(t[5])+")"}var v0={left:"start",right:"end",center:"middle",middle:"middle"};function d0(t,e,r){if(r==="top")t+=e/2;else if(r==="bottom")t-=e/2;return t}function m0(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function g0(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function Ih(t){return t&&!!t.image}function aM(t){return t&&!!t.svgElement}function As(t){return Ih(t)||aM(t)}function Iu(t){return t.type==="linear"}function Nu(t){return t.type==="radial"}function Ru(t){return t&&(t.type==="linear"||t.type==="radial")}function Es(t){return"url(#"+t+")"}function ku(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function Bu(t){var e=t.x||0,r=t.y||0,i=(t.rotation||0)*ja,n=G(t.scaleX,1),a=G(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];if(e||r)l.push("translate("+e+"px,"+r+"px)");if(i)l.push("rotate("+i+")");if(n!==1||a!==1)l.push("scale("+n+","+a+")");if(o||s)l.push("skew("+Lu(o*ja)+"deg, "+Lu(s*ja)+"deg)");return l.join(" ")}var y0=function(){if(typeof Buffer<"u"&&typeof Buffer.from==="function")return function(t){return Buffer.from(t).toString("base64")};if(typeof btoa==="function"&&typeof unescape==="function"&&typeof encodeURIComponent==="function")return function(t){return btoa(unescape(encodeURIComponent(t)))};return function(t){return jt("Base64 isn't natively supported in the current environment."),null}}();var Rh=Array.prototype.slice;function mi(t,e,r){return(e-t)*r+t}function Nh(t,e,r,i){var n=e.length;for(var a=0;a<n;a++)t[a]=mi(e[a],r[a],i);return t}function oM(t,e,r,i){var n=e.length,a=n&&e[0].length;for(var o=0;o<n;o++){if(!t[o])t[o]=[];for(var s=0;s<a;s++)t[o][s]=mi(e[o][s],r[o][s],i)}return t}function zu(t,e,r,i){var n=e.length;for(var a=0;a<n;a++)t[a]=e[a]+r[a]*i;return t}function _0(t,e,r,i){var n=e.length,a=n&&e[0].length;for(var o=0;o<n;o++){if(!t[o])t[o]=[];for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*i}return t}function sM(t,e){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};for(var s=a;s<Math.max(r,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function lM(t,e,r){var i=t,n=e;if(!i.push||!n.push)return;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]:Rh.call(n[l]))}var u=i[0]&&i[0].length;for(var l=0;l<i.length;l++)if(r===1){if(isNaN(i[l]))i[l]=n[l]}else for(var f=0;f<u;f++)if(isNaN(i[l][f]))i[l][f]=n[l][f]}function Os(t){if(et(t)){var e=t.length;if(et(t[0])){var r=[];for(var i=0;i<e;i++)r.push(Rh.call(t[i]));return r}return Rh.call(t)}return t}function Vu(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 uM(t){return et(t&&t[0])?2:1}var Uu=0,Hu=1,b0=2,Ms=3,kh=4,Bh=5,x0=6;function S0(t){return t===kh||t===Bh}function Fu(t){return t===Hu||t===b0}var Ds=[0,0,0,0],fM=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(){if(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=x0,l=r;if(et(r)){var u=uM(r);if(s=u,u===1&&!se(r[0])||u===2&&!se(r[0][0]))o=!0}else if(se(r)&&!Vr(r))s=Uu;else if(V(r))if(!isNaN(+r))s=Uu;else{var f=Jt(r);if(f)l=f,s=Ms}else if(qa(r)){var c=N({},l);if(c.colorStops=U(r.colorStops,function(h){return{offset:h.offset,color:Jt(h.color)}}),Iu(r))s=kh;else if(Nu(r))s=Bh;l=c}if(a===0)this.valType=s;else if(s!==this.valType||s===x0)o=!0;this.discrete=this.discrete||o;var p={time:e,value:l,rawValue:r,percent:0};if(i)p.easing=i,p.easingFunc=X(i)?i:bu[i]||no(i);return n.push(p),p},t.prototype.prepare=function(e,r){var i=this.keyframes;if(this._needsSort)i.sort(function(d,m){return d.time-m.time});var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=Fu(n),u=S0(n);for(var f=0;f<a;f++){var c=i[f],p=c.value,h=o.value;if(c.percent=c.time/e,!s){if(l&&f!==a-1)lM(p,h,n);else if(u)sM(p.colorStops,h.colorStops)}}if(!s&&n!==Bh&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;var v=i[0].value;for(var f=0;f<a;f++)if(n===Uu)i[f].additiveValue=i[f].value-v;else if(n===Ms)i[f].additiveValue=zu([],i[f].value,v,-1);else if(Fu(n))i[f].additiveValue=n===Hu?zu([],i[f].value,v,-1):_0([],i[f].value,v,-1)}},t.prototype.step=function(e,r){if(this._finished)return;if(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===Ms,f,c=this._lastFr,p=Math.min,h,v;if(s===1)h=v=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var d=p(c+1,s-1);for(f=d;f>=0;f--)if(o[f].percent<=r)break;f=p(f,s-2)}else{for(f=c;f<s;f++)if(o[f].percent>r)break;f=p(f-1,s-2)}v=o[f+1],h=o[f]}if(!(h&&v))return;this._lastFr=f,this._lastFrP=r;var m=v.percent-h.percent,g=m===0?1:p((r-h.percent)/m,1);if(v.easingFunc)g=v.easingFunc(g);var y=i?this._additiveValue:u?Ds:e[l];if((Fu(a)||u)&&!y)y=this._additiveValue=[];if(this.discrete)e[l]=g<1?h.rawValue:v.rawValue;else if(Fu(a))a===Hu?Nh(y,h[n],v[n],g):oM(y,h[n],v[n],g);else if(S0(a)){var _=h[n],x=v[n],S=a===kh;if(e[l]={type:S?"linear":"radial",x:mi(_.x,x.x,g),y:mi(_.y,x.y,g),colorStops:U(_.colorStops,function(T,A){var C=x.colorStops[A];return{offset:mi(T.offset,C.offset,g),color:Vu(Nh([],T.color,C.color,g))}}),global:x.global},S)e[l].x2=mi(_.x2,x.x2,g),e[l].y2=mi(_.y2,x.y2,g);else e[l].r=mi(_.r,x.r,g)}else if(u){if(Nh(y,h[n],v[n],g),!i)e[l]=Vu(y)}else{var b=mi(h[n],v[n],g);if(i)this._additiveValue=b;else e[l]=b}if(i)this._addToTarget(e)},t.prototype._addToTarget=function(e){var r=this.valType,i=this.propName,n=this._additiveValue;if(r===Uu)e[i]=e[i]+n;else if(r===Ms)Jt(e[i],Ds),zu(Ds,Ds,n,1),e[i]=Vu(Ds);else if(r===Hu)zu(e[i],e[i],n,1);else if(r===b0)_0(e[i],e[i],n,1)},t}(),cM=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){jt("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,re(r),i)},t.prototype.whenWithKeys=function(e,r,i,n){var a=this._tracks;for(var o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new fM(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,p=c[c.length-1];if(u=p&&p.value,f.valType===Ms&&u)u=Vu(u)}else u=this._target[s];if(u==null)continue;if(e>0)l.addKeyframe(0,Os(u),n);this._trackKeys.push(s)}l.addKeyframe(e,Os(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){var r=e.length;for(var 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);if(this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},t.prototype._setTracksFinished=function(){var e=this._tracks,r=this._trackKeys;for(var 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);if(a)r=a}return r},t.prototype.start=function(e){if(this._started>0)return;this._started=1;var r=this,i=[],n=this._maxTime||0;for(var 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];if(c)r._target[s.propName]=c.rawValue;s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new a0({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){var d=!1;for(var m=0;m<v.length;m++)if(v[m]._clip){d=!0;break}if(!d)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()}});if(this._clip=p,this.animation)this.animation.addClip(p);if(e)p.setEasing(e)}else this._doneCallback();return this},t.prototype.stop=function(e){if(!this._clip)return;var r=this._clip;if(e)r.onframe(1);this._abortedCallback()},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){if(e){if(!this._onframeCbs)this._onframeCbs=[];this._onframeCbs.push(e)}return this},t.prototype.done=function(e){if(e){if(!this._doneCbs)this._doneCbs=[];this._doneCbs.push(e)}return this},t.prototype.aborted=function(e){if(e){if(!this._abortedCbs)this._abortedCbs=[];this._abortedCbs.push(e)}return 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;var i=this._tracks,n=this._trackKeys;for(var a=0;a<e.length;a++){var o=i[e[a]];if(o&&!o.isFinished()){if(r)o.step(this._target,1);else if(this._started===1)o.step(this._target,0);o.setFinished()}}var s=!0;for(var a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}if(s)this._abortedCallback();return s},t.prototype.saveTo=function(e,r,i){if(!e)return;r=r||this._trackKeys;for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(!o||o.isFinished())continue;var s=o.keyframes,l=s[i?0:s.length-1];if(l)e[a]=Os(l.rawValue)}},t.prototype.__changeFinalValue=function(e,r){r=r||re(e);for(var i=0;i<r.length;i++){var n=r[i],a=this._tracks[n];if(!a)continue;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}(),Ls=cM;function Gn(){return new Date().getTime()}var pM=function(t){P(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){if(r.animation)this.removeClip(r);if(!this._head)this._head=this._tail=r;else this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r;r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();if(i)this.addClip(i)},e.prototype.removeClip=function(r){if(!r.animation)return;var{prev:i,next:n}=r;if(i)i.next=n;else this._head=n;if(n)n.prev=i;else this._tail=i;r.next=r.prev=r.animation=null},e.prototype.removeAnimator=function(r){var i=r.getClip();if(i)this.removeClip(i);r.animation=null},e.prototype.update=function(r){var i=Gn()-this._pausedTime,n=i-this._time,a=this._head;while(a){var o=a.next,s=a.step(i,n);if(s)a.ondestroy(),this.removeClip(a),a=o;else a=o}if(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(){if(r._running)wh(i),!r._paused&&r.update()}wh(i)},e.prototype.start=function(){if(this._running)return;this._time=Gn(),this._pausedTime=0,this._startLoop()},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){if(!this._paused)this._pauseStart=Gn(),this._paused=!0},e.prototype.resume=function(){if(this._paused)this._pausedTime+=Gn()-this._pauseStart,this._paused=!1},e.prototype.clear=function(){var r=this._head;while(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 Ls(r,i.loop);return this.addAnimator(n),n},e}(Et),T0=pM;var hM=300,zh=ne.domSupported,Uh=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}}(),w0={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},C0=!1;function Hh(t){var e=t.pointerType;return e==="pen"||e==="touch"}function vM(t){if(t.touching=!0,t.touchTimer!=null)clearTimeout(t.touchTimer),t.touchTimer=null;t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Fh(t){t&&(t.zrByTouch=!0)}function dM(t,e){return zt(t.dom,new mM(t,e),!0)}function E0(t,e){var r=e,i=!1;while(r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==e&&r===t.painterRoot))r=r.parentNode;return i}var mM=function(){function t(e,r){this.stopPropagation=Pe,this.stopImmediatePropagation=Pe,this.preventDefault=Pe,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t}(),Ar={mousedown:function(t){t=zt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=zt(this.dom,t);var e=this.__mayPointerCapture;if(e&&(t.zrX!==e[0]||t.zrY!==e[1]))this.__togglePointerCapture(!0);this.trigger("mousemove",t)},mouseup:function(t){t=zt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=zt(this.dom,t);var e=t.toElement||t.relatedTarget;if(!E0(this,e)){if(this.__pointerCapturing)t.zrEventControl="no_globalout";this.trigger("mouseout",t)}},wheel:function(t){C0=!0,t=zt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){if(C0)return;t=zt(this.dom,t),this.trigger("mousewheel",t)},touchstart:function(t){t=zt(this.dom,t),Fh(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Ar.mousemove.call(this,t),Ar.mousedown.call(this,t)},touchmove:function(t){t=zt(this.dom,t),Fh(t),this.handler.processGesture(t,"change"),Ar.mousemove.call(this,t)},touchend:function(t){if(t=zt(this.dom,t),Fh(t),this.handler.processGesture(t,"end"),Ar.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<hM)Ar.click.call(this,t)},pointerdown:function(t){Ar.mousedown.call(this,t)},pointermove:function(t){if(!Hh(t))Ar.mousemove.call(this,t)},pointerup:function(t){Ar.mouseup.call(this,t)},pointerout:function(t){if(!Hh(t))Ar.mouseout.call(this,t)}};w(["click","dblclick","contextmenu"],function(t){Ar[t]=function(e){e=zt(this.dom,e),this.trigger(t,e)}});var Gh={pointermove:function(t){if(!Hh(t))Gh.mousemove.call(this,t)},pointerup:function(t){Gh.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;if(this.__togglePointerCapture(!1),this.trigger("mouseup",t),e)t.zrEventControl="only_globalout",this.trigger("mouseout",t)}};function gM(t,e){var r=e.domHandlers;if(ne.pointerEventsSupported)w(Uh.pointer,function(i){Gu(e,i,function(n){r[i].call(t,n)})});else{if(ne.touchEventsSupported)w(Uh.touch,function(i){Gu(e,i,function(n){r[i].call(t,n),vM(e)})});w(Uh.mouse,function(i){Gu(e,i,function(n){if(n=_u(n),!e.touching)r[i].call(t,n)})})}}function yM(t,e){if(ne.pointerEventsSupported)w(w0.pointer,r);else if(!ne.touchEventsSupported)w(w0.mouse,r);function r(i){function n(a){if(a=_u(a),!E0(t,a.target))a=dM(t,a),e.domHandlers[i].call(t,a)}Gu(e,i,n,{capture:!0})}}function Gu(t,e,r,i){t.mounted[e]=r,t.listenerOpts[e]=i,Ly(t.domTarget,e,r,i)}function Vh(t){var e=t.mounted;for(var r in e)if(e.hasOwnProperty(r))Py(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var A0=function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t}(),_M=function(t){P(e,t);function e(r,i){var n=t.call(this)||this;if(n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new A0(r,Ar),zh)n._globalHandlerScope=new A0(document,Gh);return gM(n,n._localHandlerScope),n}return e.prototype.dispose=function(){if(Vh(this._localHandlerScope),zh)Vh(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,zh&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?yM(this,i):Vh(i)}},e}(Et),D0=_M;var M0=1;if(ne.hasGlobalWindow)M0=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1);var Yh=M0,Ps=0.4,Is="#333",Ns="#ccc",O0="#eee";var L0=vi,P0=0.00005;function Yn(t){return t>P0||t<-P0}var Wn=[],so=[],Wh=Dt(),Xh=Math.abs,I0=function(){function t(){}return t.prototype.getLocalTransform=function(e){return xM(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 Yn(this.rotation)||Yn(this.x)||Yn(this.y)||Yn(this.scaleX-1)||Yn(this.scaleY-1)||Yn(this.skewX)||Yn(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||e)){if(i)L0(i),this.invTransform=null;return}if(i=i||Dt(),r)this.getLocalTransform(i);else L0(i);if(e)if(r)Gi(i,e,i);else ms(i,e);this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||Dt(),Gr(this.invTransform,i)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Wn);var i=Wn[0]<0?-1:1,n=Wn[1]<0?-1:1,a=((Wn[0]-i)*r+i)/Wn[0]||0,o=((Wn[1]-n)*r+n)/Wn[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){var e=this,r=[];while(e)r.push(e),e=e.parent;while(e=r.pop())e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(!e)return;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)return;var e=this.parent,r=this.transform;if(e&&e.transform)e.invTransform=e.invTransform||Dt(),Gi(so,e.invTransform,r),r=so;var i=this.originX,n=this.originY;if(i||n)Wh[4]=i,Wh[5]=n,Gi(so,r,Wh),so[4]-=i,so[5]-=n,r=so;this.setLocalTransform(r)},t.prototype.getGlobalScale=function(e){var r=this.transform;if(e=e||[],!r)return e[0]=1,e[1]=1,e;if(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];if(r[3]<0)e[1]=-e[1];return e},t.prototype.transformCoordToLocal=function(e,r){var i=[e,r],n=this.invTransform;if(n)dt(i,i,n);return i},t.prototype.transformCoordToGlobal=function(e,r){var i=[e,r],n=this.transform;if(n)dt(i,i,n);return i},t.prototype.getLineScale=function(){var e=this.transform;return e&&Xh(e[0]-1)>0.0000000001&&Xh(e[3]-1)>0.0000000001?Math.sqrt(Xh(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Ki(this,e)},t.getLocalTransform=function(e,r){r=r||[];var i=e.originX||0,n=e.originY||0,{scaleX:a,scaleY:o,anchorX:s,anchorY:l}=e,u=e.rotation||0,{x:f,y:c}=e,p=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(i||n||s||l){var v=i+s,d=n+l;r[4]=-v*a-p*d*o,r[5]=-d*o-h*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=p*o,u&&Ja(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}(),xM=I0.getLocalTransform;var lo=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Ki(t,e){return _y(t,e,lo)}var uo=I0;function Dr(t){if(!Yu)Yu=new Wr(100);t=t||Bt;var e=Yu.get(t);if(!e)e={font:t,strWidthCache:new Wr(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:St.measureText("国",t).width,asciiCharWidth:St.measureText("a",t).width},Yu.put(t,e);return e}var Yu;function SM(t){if(qh>=N0)return;t=t||Bt;var e=[],r=+new Date;for(var i=0;i<=127;i++)e[i]=St.measureText(String.fromCharCode(i),t).width;var n=+new Date-r;if(n>16)qh=N0;else if(n>2)qh++;return e}var qh=0,N0=5;function Zh(t,e){if(!t.asciiWidthMapTried)t.asciiWidthMap=SM(t.font),t.asciiWidthMapTried=!0;return 0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Mr(t,e){var r=t.strWidthCache,i=r.get(e);if(i==null)i=St.measureText(e,t.font).width,r.put(e,i);return i}function R0(t,e,r,i){var n=Mr(Dr(e),t),a=Xn(e),o=ji(0,n,r),s=gi(0,a,i),l=new ae(o,s,n,a);return l}function Wu(t,e,r,i){var n=((t||"")+"").split(`
|
|
15
|
+
`),a=n.length;if(a===1)return R0(n[0],e,r,i);else{var o=new ae(0,0,0,0);for(var s=0;s<n.length;s++){var l=R0(n[s],e,r,i);s===0?o.copy(l):o.union(l)}return o}}function ji(t,e,r,i){if(r==="right")!i?t-=e:t+=e;else if(r==="center")!i?t-=e/2:t+=e/2;return t}function gi(t,e,r,i){if(r==="middle")!i?t-=e/2:t+=e/2;else if(r==="bottom")!i?t-=e:t+=e;return t}function Xn(t){return Dr(t).stWideCharWidth}function Er(t,e){if(typeof t==="string"){if(t.lastIndexOf("%")>=0)return parseFloat(t)/100*e;return parseFloat(t)}return t}function qn(t,e,r){var i=e.position||"inside",n=e.distance!=null?e.distance:5,{height:a,width:o}=r,s=a/2,{x:l,y:u}=r,f="left",c="top";if(i instanceof Array)l+=Er(i[0],r.width),u+=Er(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 Kh="__zr_normal__",jh=lo.concat(["ignore"]),bM=$t(lo,function(t,e){return t[e]=!0,t},{ignore:!1}),fo={},TM=new ae(0,0,0,0),Xu=[],qu=0,co=1,Jh=function(){function t(e){this.id=uu(),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;if(!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(){if(this.updateTransform(),this.__dirty)this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){if(!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){if(p=TM,i.layoutRect)p.copy(i.layoutRect);else p.copy(this.getBoundingRect());if(!n)p.applyTransform(this.transform)}if(f){if(this.calculateTextPosition)this.calculateTextPosition(fo,i,p);else qn(fo,i,p);a.x=fo.x,a.y=fo.y,o=fo.align,s=fo.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var v=void 0,d=void 0;if(h==="center")v=p.width*0.5,d=p.height*0.5;else v=Er(h[0],p.width),d=Er(h[1],p.height);u=!0,a.originX=-a.x+v+(n?0:p.x),a.originY=-a.y+d+(n?0:p.y)}}if(i.rotation!=null)a.rotation=i.rotation;var m=i.offset;if(m){if(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 ae(0,0,0,0);a.getLocalTransform(Xu),Gr(Xu,Xu),ae.copy(y,p),y.applyTransform(Xu)}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;if(_&&this.canBeInsideText()){if(x=i.insideFill,S=i.insideStroke,x==null||x==="auto")x=this.getInsideTextFill();if(S==null||S==="auto")S=this.getInsideTextStroke(x),b=!0}else{if(x=i.outsideFill,S=i.outsideStroke,x==null||x==="auto")x=this.getOutsideFill();if(S==null||S==="auto")S=this.getOutsideStroke(x),b=!0}if(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);if(r.__dirty|=Tt,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()?Ns:Is},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r==="string"&&Jt(r);if(!i)i=[255,255,255,1];var n=i[3],a=this.__zr.isDarkMode();for(var o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,ws(i,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){if(e==="textConfig")this.setTextConfig(r);else if(e==="textContent")this.setTextContent(r);else if(e==="clipPath")this.setClipPath(r);else if(e==="extra")this.extra=this.extra||{},N(this.extra,r);else 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(W(e)){var i=e,n=re(i);for(var 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);var r=this._normalState;for(var i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(n.getLoop()||a&&a!==Kh)continue;var o=n.targetName,s=o?r[o]:r;n.saveTo(s)}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;if(!r)r=this._normalState={};if(e.textConfig&&!r.textConfig)r.textConfig=this.textConfig;this._savePrimaryToNormal(e,r,jh)},t.prototype._savePrimaryToNormal=function(e,r,i){for(var n=0;n<i.length;n++){var a=i[n];if(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;if(!r[e])r[e]={};return r[e]},t.prototype.clearStates=function(e){this.useState(Kh,!1,e)},t.prototype.useState=function(e,r,i,n){var a=e===Kh,o=this.hasState();if(!o&&a)return;var s=this.currentStates,l=this.stateTransition;if(ue(s,e)>=0&&(r||s.length===1))return;var u;if(this.stateProxy&&!a)u=this.stateProxy(e);if(!u)u=this.states&&this.states[e];if(!u&&!a){jt("State "+e+" not exists.");return}if(!a)this.saveCurrentToNormalState(u);var f=this._textContent,c=B0(this,f,u,n);if(c&&!this.__inHover)this.__inHover=c;this._applyStateObj(e,u,this._normalState,r,U0(this,i,l),l);var p=this._textGuide;if(f)f.useState(e,r,i,!!c);if(p)p.useState(e,r,i,!!c);if(a)this.currentStates=[],this._normalState={};else if(!r)this.currentStates=[e];else this.currentStates.push(e);if(this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover)this.__inHover=qu,this.__dirty&=~Tt;return 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;if(this.stateProxy)f=this.stateProxy(u,e);if(!f)f=this.states[u];if(f)n.push(f)}var c=n[o-1],p=this._textContent,h=B0(this,p,c,i);if(h&&!this.__inHover)this.__inHover=h;var v=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,U0(this,r,d),d);var m=this._textGuide;if(p)p.useStates(e,r,!!h);if(m)m.useStates(e,r,!!h);if(this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover)this.__inHover=qu,this.__dirty&=~Tt}},t.prototype.isSilent=function(){var e=this;while(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];if(r.targetName)r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=ue(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=ue(n,e),o=ue(n,r)>=0;if(a>=0)if(!o)n[a]=r;else n.splice(a,1);else if(i&&!o)n.push(r);this.useStates(n)},t.prototype.toggleState=function(e,r){if(r)this.useState(e,!0);else this.removeState(e)},t.prototype._mergeStates=function(e){var r={},i;for(var n=0;n<e.length;n++){var a=e[n];if(N(r,a),a.textConfig)i=i||{},N(i,a.textConfig)}if(i)r.textConfig=i;return r},t.prototype._applyStateObj=function(e,r,i,n,a,o){if(this.__inHover===co)return;var s=!(r&&n);if(r&&r.textConfig)this.textConfig=N({},n?this.textConfig:i.textConfig),N(this.textConfig,r.textConfig);else if(s){if(i.textConfig)this.textConfig=i.textConfig}var l={},u=!1;for(var f=0;f<jh.length;f++){var c=jh[f],p=a&&bM[c];if(r&&r[c]!=null)if(p)u=!0,l[c]=r[c];else this[c]=r[c];else if(s){if(i[c]!=null)if(p)u=!0,l[c]=i[c];else this[c]=i[c]}}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],v=h.targetName;if(!h.getLoop())h.__changeFinalValue(v?(r||i)[v]:r||i)}if(u)this._transitionState(e,l,o)},t.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget)throw Error("Text element has been added to zrender.");if(e===this)throw Error("Recursive component attachment.");var r=this.__zr;if(r)e.addSelfToZr(r);e.__zr=r,e.__hostTarget=this},t.prototype._detachComponent=function(e){if(e.__zr)e.removeSelfFromZr(e.__zr);e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){if(this._clipPath&&this._clipPath!==e)this.removeClipPath();this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;if(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;if(r===e)return;if(r&&r!==e)this.removeTextContent();if(e.__zr&&!e.__hostTarget)throw Error("Text element has been added to zrender.");e.innerTransformable=new uo,this._attachComponent(e),this._textContent=e,this.markRedraw()},t.prototype.setTextConfig=function(e){if(!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;if(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){if(this._textGuide&&this._textGuide!==e)this.removeTextGuideLine();this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;if(e)this._detachComponent(e),this._textGuide=null,this.markRedraw()},t.prototype.markRedraw=function(){this.__dirty|=Tt;var e=this.__zr;if(e)if(this.__inHover)e.refreshHover();else e.refresh();if(this.__hostTarget)this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr===e)return;this.__zr=e;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.addAnimator(r[i]);if(this._clipPath)this._clipPath.addSelfToZr(e);if(this._textContent)this._textContent.addSelfToZr(e);if(this._textGuide)this._textGuide.addSelfToZr(e)},t.prototype.removeSelfFromZr=function(e){if(!this.__zr)return;this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.removeAnimator(r[i]);if(this._clipPath)this._clipPath.removeSelfFromZr(e);if(this._textContent)this._textContent.removeSelfFromZr(e);if(this._textGuide)this._textGuide.removeSelfFromZr(e)},t.prototype.animate=function(e,r,i){var n=e?this[e]:this;if(!n){jt('Property "'+e+'" is not existed in element '+this.id);return}var a=new Ls(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;if(e.during(function(){n.updateDuringAnimation(r)}).done(function(){var a=n.animators,o=ue(a,e);if(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){var i=this.animators,n=i.length,a=[];for(var o=0;o<n;o++){var s=i[o];if(!e||e===s.scope)s.stop(r);else a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,i){$h(this,e,r,i)},t.prototype.animateFrom=function(e,r,i){$h(this,e,r,i,!0)},t.prototype._transitionState=function(e,r,i,n){var a=$h(this,r,i,n);for(var 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=Tt;var r={};function i(a,o,s){if(!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(i(a,s,l),!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){i(a,s,l),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}})}}if(Object.defineProperty)n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY")}(),t}();ht(Jh,Et);ht(Jh,uo);function $h(t,e,r,i,n){r=r||{};var a=[];F0(t,"",t,e,r,i,a,n);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){if(s=!0,o--,o<=0)s?l&&l():u&&u()},c=function(){if(o--,o<=0)s?l&&l():u&&u()};if(!o)l&&l();if(a.length>0&&r.during)a[0].during(function(v,d){r.during(d)});for(var p=0;p<a.length;p++){var h=a[p];if(f)h.done(f);if(c)h.aborted(c);if(r.force)h.duration(r.duration);h.start(r.easing)}return a}function Qh(t,e,r){for(var i=0;i<r;i++)t[i]=e[i]}function wM(t){return et(t[0])}function CM(t,e,r){if(et(e[r])){if(!et(t[r]))t[r]=[];if(ke(e[r])){var i=e[r].length;if(t[r].length!==i)t[r]=new e[r].constructor(i),Qh(t[r],e[r],i)}else{var n=e[r],a=t[r],o=n.length;if(wM(n)){var s=n[0].length;for(var l=0;l<o;l++)if(!a[l])a[l]=Array.prototype.slice.call(n[l]);else Qh(a[l],n[l],s)}else Qh(a,n,o);a.length=n.length}}else t[r]=e[r]}function AM(t,e){return t===e||et(t)&&et(e)&&EM(t,e)}function EM(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 F0(t,e,r,i,n,a,o,s){var l=re(i),{duration:u,delay:f,additive:c,setToFinal:p}=n,h=!W(a),v=t.animators,d=[];for(var m=0;m<l.length;m++){var g=l[m],y=i[g];if(y!=null&&r[g]!=null&&(h||a[g]))if(W(y)&&!et(y)&&!qa(y)){if(e){if(!s)r[g]=y,t.updateDuringAnimation(e);continue}F0(t,g,r[g],y,n,a&&a[g],o,s)}else d.push(g);else if(!s)r[g]=y,t.updateDuringAnimation(e),d.push(g)}var _=d.length;if(!c&&_)for(var x=0;x<v.length;x++){var S=v[x];if(S.targetName===e){var b=S.stopTracks(d);if(b){var T=ue(v,S);v.splice(T,1)}}}if(!n.force)d=Oe(d,function(D){return!AM(i[D],r[D])}),_=d.length;if(_>0||n.force&&!o.length){var A=void 0,C=void 0,E=void 0;if(s){if(C={},p)A={};for(var x=0;x<_;x++){var g=d[x];if(C[g]=r[g],p)A[g]=i[g];else r[g]=i[g]}}else if(p){E={};for(var x=0;x<_;x++){var g=d[x];E[g]=Os(r[g]),CM(r,i,g)}}var S=new Ls(r,!1,!1,c?Oe(v,function(O){return O.targetName===e}):null);if(S.targetName=e,n.scope)S.scope=n.scope;if(p&&A)S.whenWithKeys(0,A,d);if(E)S.whenWithKeys(0,E,d);S.whenWithKeys(u==null?500:u,s?C:i,d).delay(f||0),t.addAnimator(S,e),o.push(S)}}function B0(t,e,r,i){return!(r&&r.hoverLayer||i)||z0(t)||e&&z0(e)?qu:co}function z0(t){return t.type==="text"||t.type==="tspan"}function U0(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var Zu=Jh;var V0=function(t){P(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){var i=this._children;for(var 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){if(r){if(r!==this&&r.parent!==this)this._children.push(r),this._doAdd(r);if(r.__hostTarget)throw"This elemenet has been used as an attachment"}return 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);if(a>=0)n.splice(a,0,r),this._doAdd(r)}return this},e.prototype.replace=function(r,i){var n=ue(this._children,r);if(n>=0)this.replaceAt(i,n);return 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;if(o)a.removeSelfFromZr(o);this._doAdd(r)}return this},e.prototype._doAdd=function(r){if(r.parent)r.parent.remove(r);r.parent=this;var i=this.__zr;if(i&&i!==r.__zr)r.addSelfToZr(i);i&&i.refresh()},e.prototype.remove=function(r){var i=this.__zr,n=this._children,a=ue(n,r);if(a<0)return this;if(n.splice(a,1),r.parent=null,i)r.removeSelfFromZr(i);return i&&i.refresh(),this},e.prototype.removeAll=function(){var r=this._children,i=this.__zr;for(var n=0;n<r.length;n++){var a=r[n];if(i)a.removeSelfFromZr(i);a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,i){var n=this._children;for(var 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);if(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){var i=new ae(0,0,0,0),n=r||this._children,a=[],o=null;for(var s=0;s<n.length;s++){var l=n[s];if(l.ignore||l.invisible)continue;var u=l.getBoundingRect(),f=l.getLocalTransform(a);if(f)ae.applyTransform(i,u,f),o=o||i.clone(),o.union(i);else o=o||u.clone(),o.union(u)}return o||i},e}(Zu);V0.prototype.type="group";var we=V0;/*!
|
|
16
16
|
* ZRender, a high performance 2d drawing library.
|
|
17
17
|
*
|
|
18
18
|
* Copyright (c) 2013, Baidu Inc.
|
|
@@ -20,26 +20,26 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
20
20
|
*
|
|
21
21
|
* LICENSE
|
|
22
22
|
* https://github.com/ecomfe/zrender/blob/master/LICENSE
|
|
23
|
-
*/var Is={},F0={};function CM(t){delete F0[t]}function AM(t){if(!t)return!1;if(typeof t==="string")return ao(t,1)<Os;else if(t.colorStops){var e=t.colorStops,r=0,i=e.length;for(var n=0;n<i;n++)r+=ao(e[n].color,1);return r/=i,r<Os}return!1}var EM=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 qy,o=i.renderer||"canvas";if(!Is[o])o=re(Is)[0];if(!Is[o])throw Error("Renderer '"+o+"' is not imported. Please import it first.");i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Is[o](r,a,i,e),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!ne.node&&!ne.worker&&!l?new A0(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,c=f==null||f==="auto"?ne.touchEventsSupported:!!f,p=44,h;if(c)h=G(i.pointerSize,p);if(this.handler=new Vy(a,s,u,s.root,h),this.animation=new S0({stage:{update:l?null:function(){return n._flush(!1)}}}),!l)this.animation.start()}return t.prototype.add=function(e){if(this._disposed||!e)return;this.storage.addRoot(e),e.addSelfToZr(this),this.refresh()},t.prototype.remove=function(e){if(this._disposed||!e)return;this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh()},t.prototype.configLayer=function(e,r){if(this._disposed)return;if(this.painter.configLayer)this.painter.configLayer(e,r);this.refresh()},t.prototype.setBackgroundColor=function(e){if(this._disposed)return;if(this.painter.setBackgroundColor)this.painter.setBackgroundColor(e);this.refresh(),this._backgroundColor=e,this._darkMode=AM(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){if(this._disposed)return;this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){if(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(){if(this._disposed)return;this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){if(this._disposed)return;this._flush(!0)},t.prototype._flush=function(e){var r,i=Hn(),n=this._needsRefresh,a=this._needsRefreshHover;if(n||a)r=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:a});var o=Hn();if(r)this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i});else if(this._sleepAfterStill>0){if(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill)this.animation.stop()}},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){if(this._disposed)return;this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){if(this._disposed)return;this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){if(this._disposed)return;e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},t.prototype.clearAnimation=function(){if(this._disposed)return;this.animation.clear()},t.prototype.getWidth=function(){if(this._disposed)return;return this.painter.getWidth()},t.prototype.getHeight=function(){if(this._disposed)return;return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){if(this._disposed)return;this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(this._disposed)return;return this.handler.findHover(e,r)},t.prototype.on=function(e,r,i){if(!this._disposed)this.handler.on(e,r,i);return this},t.prototype.off=function(e,r){if(this._disposed)return;this.handler.off(e,r)},t.prototype.trigger=function(e,r){if(this._disposed)return;this.handler.trigger(e,r)},t.prototype.clear=function(){if(this._disposed)return;var e=this.storage.getRoots();for(var r=0;r<e.length;r++)if(e[r]instanceof we)e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.dispose=function(){if(this._disposed)return;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,CM(this.id)},t}();function Jh(t,e){var r=new EM(su(),t,e);return F0[r.id]=r,r}function V0(t,e){Is[t]=e}var $h;function H0(t){if(typeof $h==="function")return $h(t)}function G0(t){$h=t}var Y0=0.0001,W0=20;function MM(t){return t.replace(/^\s+|\s+$/g,"")}var{min:Ge,max:ve,abs:Ie,round:er,floor:qr,ceil:ji,pow:Qi,log:co,LN10:ev,PI:OM,random:LM}=Math;function Ns(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;else if(t>=a)return s}else if(t>=n)return o;else if(t<=a)return s}else{if(t===n)return o;if(t===a)return s}return(t-n)/l*u+o}var Ce=PM;function PM(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 qu(t,e,r)}function qu(t,e,r){if(V(t)){if(IM(t))return parseFloat(t)/100*e+(r||0);return parseFloat(t)}return t==null?NaN:+t}function IM(t){return!!MM(t).match(/%$/)}function de(t,e,r){if(I(e!=null),isNaN(e))return r?""+t:+t;return e=Ge(ve(0,e),W0),t=(+t).toFixed(e),r?t:+t}function po(t){return t.sort(function(e,r){return e-r}),t}function Ut(t){if(t=+t,isNaN(t))return 0;if(t>0.00000000000001){var e=1;for(var r=0;r<15;r++,e*=10)if(er(t*e)/e===t)return r}return NM(t)}function NM(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 ve(0,o-i)}function X0(t,e,r){var i=Ie(t[1]-t[0]);if(!isFinite(i)||i===0)return NaN;var n=co(2*Ie(r||1)*Ie(i))/ev,a=co(Ie(e))/ev,o=ve(0,ji(-n+a));if(!isFinite(o))o=NaN;return o}function q0(t,e){var r=Qt(t,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];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 qr(h)}),s=Qt(o,function(h,v){return h+v},0),l=U(n,function(h,v){return h-o[v]});while(s<a){var u=Number.NEGATIVE_INFINITY,f=null;for(var c=0,p=l.length;c<p;++c)if(l[c]>u)u=l[c],f=c;++o[f],l[f]=0,++s}return U(o,function(h){return h/i})}function Z0(t,e){var r=ve(Ut(t),Ut(e)),i=t+e;return r>W0?i:de(i,r)}var tv=Qi(2,53)-1;function rv(t){var e=OM*2;return(t%e+e)%e}function Rs(t){return t>-Y0&&t<Y0}var RM=/^(?:(\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 Zr(t){if(t instanceof Date)return t;else if(V(t)){var e=RM.exec(t);if(!e)return new Date(NaN);if(!e[8])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{var r=+e[4]||0;if(e[8].toUpperCase()!=="Z")r-=+e[8].slice(0,3);return 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 if(t==null)return new Date(NaN);return new Date(er(t))}function Zu(t){return Qi(10,Ku(t))}function Ku(t){if(t===0)return 0;var e=qr(co(t)/ev);if(t/Qi(10,e)>=10)e++;return e}var iv=2;function qn(t,e){var r=Ku(t),i=Qi(10,r),n=t/i,a;if(e===iv)a=1;else if(e)if(n<1.5)a=1;else if(n<2.5)a=2;else if(n<4)a=3;else if(n<7)a=5;else a=10;else if(n<1)a=1;else if(n<2)a=2;else if(n<3)a=3;else if(n<5)a=5;else a=10;return t=a*i,de(t,-r)}function Kr(t){var e=parseFloat(t);return e==t&&(e!==0||!V(t)||t.indexOf("x")<=0)?e:NaN}function ju(t){return!isNaN(Kr(t))}function ks(){return er(LM()*9)}function K0(t,e){if(e===0)return t;return K0(e,t%e)}function nv(t,e){if(t==null)return e;if(e==null)return t;return t*e/K0(t,e)}function qe(t){return t!=null&&isFinite(t)}var kM="[ECharts] ",j0={},BM=typeof console<"u"&&console.warn&&console.log;function $u(t,e,r){if(BM){if(r){if(j0[e])return;j0[e]=!0}console[t](kM+e)}}function Ju(t,e){$u("log",t,e)}function Ue(t,e){$u("warn",t,e)}function pe(t,e){$u("error",t,e)}function tr(t){$u("warn","DEPRECATED: "+t,!0)}function Fe(t,e,r){tr((r?"["+r+"]":"")+(t+" is deprecated; use "+e+" instead."))}function Zn(){var t=[];for(var e=0;e<arguments.length;e++)t[e]=arguments[e];var r="",i=function(n){return n===void 0?"undefined":n===1/0?"Infinity":n===-1/0?"-Infinity":Vr(n)?"NaN":n instanceof Date?"Date("+n.toISOString()+")":X(n)?"function () { ... }":xy(n)?n+"":null};return r=U(t,function(n){if(V(n))return n;else{var a=i(n);if(a!=null)return a;else if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(n,function(o,s){var l=i(s);return l==null?s:l})}catch(o){return"?"}else return"?"}}).join(" "),r}function st(t){throw Error(t)}function Q0(t,e,r){return(e-t)*r+t}var e_="series\x00",zM="\x00_ec_\x00";function Ne(t){return t instanceof Array?t:t==null?[]:[t]}function Kn(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];if(!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a))t.emphasis[e][a]=t[e][a]}}}var av=["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 yi(t){return W(t)&&!k(t)&&!(t instanceof Date)?t.value:t}function t_(t){return W(t)&&!(t instanceof Array)}function r_(t,e,r){var i=r==="normalMerge",n=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=Z();w(e,function(l,u){if(!W(l)){e[u]=null;return}if(l.id!=null&&!J0(l.id))$0(l.id);if(l.name!=null&&!J0(l.name))$0(l.name)});var s=UM(t,o,r);if(i||n)FM(s,t,o,e);if(i)VM(s,e);if(i||n)HM(s,e,n);else if(a)GM(s,e);return YM(s),s}function UM(t,e,r){var i=[];if(r==="replaceAll")return i;for(var n=0;n<t.length;n++){var a=t[n];if(a&&a.id!=null)e.set(a.id,n);i.push({existing:r==="replaceMerge"||$i(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function FM(t,e,r,i){w(i,function(n,a){if(!n||n.id==null)return;var o=Bs(n.id),s=r.get(o);if(s!=null){var l=t[s];I(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],i[a]=null}})}function VM(t,e){w(e,function(r,i){if(!r||r.name==null)return;for(var n=0;n<t.length;n++){var a=t[n].existing;if(!t[n].newOption&&a&&(a.id==null||r.id==null)&&!$i(r)&&!$i(a)&&i_("name",a,r)){t[n].newOption=r,e[i]=null;return}}})}function HM(t,e,r){w(e,function(i){if(!i)return;var n,a=0;while((n=t[a])&&(n.newOption||$i(n.existing)||n.existing&&i.id!=null&&!i_("id",i,n.existing)))a++;if(n)n.newOption=i,n.brandNew=r;else t.push({newOption:i,brandNew:r,existing:null,keyInfo:null});a++})}function GM(t,e){w(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function YM(t){var e=Z();w(t,function(r){var i=r.existing;i&&e.set(i.id,r)}),w(t,function(r){var i=r.newOption;I(!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{existing:n,newOption:a,keyInfo:o}=r;if(!W(a))return;if(o.name=a.name!=null?Bs(a.name):n?n.name:e_+i,n)o.id=Bs(n.id);else if(a.id!=null)o.id=Bs(a.id);else{var s=0;do o.id="\x00"+o.name+"\x00"+s++;while(e.get(o.id))}e.set(o.id,r)})}function i_(t,e,r){var i=rr(e[t],null),n=rr(r[t],null);return i!=null&&n!=null&&i===n}function Bs(t){if(t==null)throw Error();return rr(t,"")}function rr(t,e){if(t==null)return e;return V(t)?t:se(t)||Wa(t)?t+"":e}function $0(t){Ue("`"+t+"` is invalid id or name. Must be a string or number.")}function J0(t){return Wa(t)||ju(t)}function ef(t){var e=t.name;return!!(e&&e.indexOf(e_))}function $i(t){return t&&t.id!=null&&Bs(t.id).indexOf(zM)===0}function n_(t,e,r){w(t,function(i){var n=i.newOption;if(W(n))i.keyInfo.mainType=e,i.keyInfo.subType=WM(e,n,i.existing,r)})}function WM(t,e,r,i){var n=e.type?e.type:r?r.subType:i.determineSubType(t,e);return n}function cr(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;else if(e.dataIndex!=null)return k(e.dataIndex)?U(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);else if(e.name!=null)return k(e.name)?U(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function ee(){var t="__ec_inner_"+XM++;return function(e){return e[t]||(e[t]={})}}var XM=ks();function tf(t,e,r){var i=zs(e,r),{mainTypeSpecified:n,queryOptionMap:a,others:o}=i,s=o,l=r?r.defaultMainType:null;if(!n&&l)a.set(l,{});return a.each(function(u,f){var c=Ji(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 zs(t,e){var r;if(V(t)){var i={};i[t+"Index"]=0,r=i}else r=t;var n=Z(),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&&ue(e.includeMainTypes,f)<0)return;o=o||!!f;var p=n.get(f)||n.set(f,{});p[c]=s}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var mt={useDefault:!0,enableAll:!1,enableNone:!1};function Ji(t,e,r,i){i=i||mt;var{index:n,id:a,name:o}=r,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;else pe('`"none"` or `false` is not a valid value on index option.'),n=-1;if(n==="all")if(i.enableAll)n=a=o=null;else pe('`"all"` is not a valid value on index option.'),n=-1;return s.models=t.queryComponents({mainType:e,index:n,id:a,name:o}),s}function a_(t,e,r){I(e);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 ov(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function o_(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function s_(t){if(t==="auto")return ne.domSupported?"html":"richText";else return t||"html"}function sv(t,e,r,i,n){var a=e==null||e==="auto";if(i==null)return i;if(se(i)){var o=Q0(r||0,i,n);return de(o,a?Math.max(Ut(r||0),Ut(i)):e)}else if(V(i))return n<1?r:i;else{var s=[],l=r,u=i,f=Math.max(l?l.length:0,u.length);for(var 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,v=u[c],o=Q0(h,v,n);s[c]=de(o,a?Math.max(Ut(h),Ut(v)):e)}}return s}}var WU=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!=null?i:n>0?e.length:0,this.item=null,this.key=NaN,this},t.prototype.next=function(){if(this._step>0?this._idx<this._end:this._idx>=this._end)return this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0;return!1},t}();function gt(){return[1/0,-1/0]}function Us(t,e){if(Or(e))e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e)}function lv(t,e){if(Or(e)&&e<t[0])t[0]=e}function uv(t,e){if(Or(e)&&e>t[1])t[1]=e}function l_(t,e){if(_i(e[0],e[1]))e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])}function Or(t){return t!=null&&isFinite(t)}function _i(t,e){return Or(t)&&Or(e)&&t<=e}function u_(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function f_(t){if(_i(t[0],t[1])&&t[0]>t[1])t[0]=t[1]}function rf(){var t="__ec_once_"+qM++;return function(e,r){if(I(e),!Be(e,t))e[t]=1,r()}}var qM=ks();function ho(t,e,r){var i=Z(),n=0;if(w(t,function(a){var o=e(a);I(V(o));var s=i.get(o)||0;if(r)r(a,s);if(!s&&!r)t[n++]=a;i.set(o,s+1)}),!r)t.length=n}function c_(t){return I(t.value!=null),t.value+""}function p_(t){return I(t!=null),t+""}function h_(t,e){return G(e,!0)?t.seriesIndex+2:0}function nf(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 v_(t,e){return{seriesType:t,overallReset:e}}function vo(t){return{overallReset:t}}var ZM=".",jn="___EC__COMPONENT__CONTAINER___",d_="___EC__EXTENDED_CLASS___";function Ft(t){var e={main:"",sub:""};if(t){var r=t.split(ZM);e.main=r[0]||"",e.sub=r[1]||""}return e}function KM(t){I(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function m_(t){return!!(t&&t[d_])}function mo(t,e){t.$constructor=t,t.extend=function(r){w(e,function(a){if(!r[a])console.warn("Method `"+a+"` should be implemented"+(r.type?" in "+r.type:"")+".")});var i=this,n;if(jM(i))n=function(a){P(o,a);function o(){return a.apply(this,arguments)||this}return o}(i);else n=function(){(r.$constructor||i).apply(this,arguments)},yy(n,this);return N(n.prototype,r),n[d_]=!0,n.extend=this.extend,n.superCall=$M,n.superApply=JM,n.superClass=i,n}}function jM(t){return X(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function af(t,e){t.extend=e.extend}var QM=Math.round(Math.random()*10);function g_(t){var e=["__\x00is_clz",QM++].join("_");t.prototype[e]=!0,I(!t.isInstance,'The method "is" can not be defined.'),t.isInstance=function(r){return!!(r&&r[e])}}function $M(t,e){var r=[];for(var i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,r)}function JM(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){KM(n),i.prototype.type=n;var a=Ft(n);if(!a.sub){if(e[a.main])console.warn(a.main+" exists.");e[a.main]=i}else if(a.sub!==jn){var o=r(a);o[a.sub]=i}}return i},t.getClass=function(i,n,a){var o=e[i];if(o&&o[jn])o=n?o[n]:null;if(a&&!o)throw Error(!n?i+".type should be specified.":"Component "+i+"."+(n||"")+" is used but not imported.");return o},t.getClassesByMainType=function(i){var n=Ft(i),a=[],o=e[n.main];if(o&&o[jn])w(o,function(s,l){l!==jn&&a.push(s)});else a.push(o);return a},t.hasClass=function(i){var n=Ft(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=Ft(i),a=e[n.main];return a&&a[jn]};function r(i){var n=e[i.main];if(!n||!n[jn])n=e[i.main]={},n[jn]=!0;return n}}function jr(t,e){for(var r=0;r<t.length;r++)if(!t[r][1])t[r][1]=t[r][0];return e=e||!1,function(i,n,a){var o={};for(var s=0;s<t.length;s++){var l=t[s][1];if(n&&ue(n,l)>=0||a&&ue(a,l)<0)continue;var u=i.getShallow(l,e);if(u!=null)o[t[s][0]]=u}return o}}var eO=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],tO=jr(eO),y_=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return tO(this,e,r)},t}();var cv=new Wr(50);function x_(t){if(typeof t==="string"){var e=cv.get(t);return e&&e.image}else return t}function Fs(t,e,r,i,n){if(!t)return e;else if(typeof t==="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=cv.get(t),o={hostEl:r,cb:i,cbPayload:n};if(a)e=a.image,!go(e)&&a.pending.push(o);else e=St.loadImage(t,__,__),e.__zrImageSrc=t,cv.put(t,e.__cachedImgObj={image:e,pending:[o]});return e}else return t}function __(){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 go(t){return t&&t.width&&t.height}var pv=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function iO(t,e,r,i,n,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
|
|
24
|
-
`);a=
|
|
25
|
-
`),t.isTruncated=s}function
|
|
26
|
-
`):[];var y=g.length*p;if(m==null)m=y;if(y>m&&h){var _=Math.floor(m/p);v=v||g.length>_,g=g.slice(0,_),y=g.length*p}if(n&&f&&d!=null){var x=
|
|
27
|
-
`),u=!0}i.accumWidth=v}else{var d=
|
|
28
|
-
`);var m=Dr(l);for(var g=0;g<f.length;g++){var y=f[g],_=new
|
|
29
|
-
`){if(l)s+=l,f+=u;a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=Xh(c,h.charCodeAt(0)),d=i?!1:!uO(h);if(!a.length?n+f+v>r:f+v>r){if(!f)if(d)a.push(l),o.push(u),l=h,u=v;else a.push(h),o.push(v);else if(s||l)if(d){if(!s)s=l,l="",u=0,f=u;a.push(s),o.push(f-u),l+=h,u+=v,s="",f=u}else{if(l)s+=l,l="",u=0;a.push(s),o.push(f),s=h,f=v}continue}if(f+=v,d)l+=h,u+=v;else{if(l)s+=l,l="",u=0;s+=h}}if(l)s+=l;if(s)a.push(s),o.push(f);if(a.length===1)f+=n;return{accumWidth:f,lines:a,linesWidths:o}}function vv(t,e,r,i,n,a){if(t.baseX=r,t.baseY=i,t.outerWidth=t.outerHeight=null,!e)return;var o=e.width*2,s=e.height*2;ae.set(b_,Ki(r,o,n),gi(i,s,a),o,s),ae.intersect(e,b_,null,T_);var l=T_.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Ki(l.x,l.width,n,!0),t.baseY=gi(l.y,l.height,a,!0)}var b_=new ae(0,0,0,0),T_={outIntersectRect:{},clamp:!0};function dv(t){return t!=null?t+="":t=""}function M_(t){var e=dv(t.text),r=t.font,i=Mr(Dr(r),e),n=Wn(r);return of(t,i,n,null)}function of(t,e,r,i){var n=new ae(Ki(t.x||0,e,t.textAlign),gi(t.y||0,r,t.textBaseline),e,r),a=i!=null?i:mv(t)?t.lineWidth:0;if(a>0)n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a;return n}function mv(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var _v="__zr_style_"+Math.round(Math.random()*10),Qr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Qn={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Qr[_v]=!0;var O_=["z","z2","invisible"],fO=["invisible"],cO=function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){var i=re(r);for(var n=0;n<i.length;n++){var a=i[n];if(a==="style")this.useStyle(r[a]);else t.prototype.attrKV.call(this,a,r[a])}if(!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&&pO(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){var l=this.parent;while(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;if(r=this._paintRect||(this._paintRect=new ae(0,0,0,0)),i)ae.applyTransform(r,n,i);else r.copy(n);if(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;if(!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){if(r)this._prevPaintRect=this._prevPaintRect||new ae(0,0,0,0),this._prevPaintRect.copy(r);else 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){if(r==="style")this.dirtyStyle();else this.markRedraw()},e.prototype.attrKV=function(r,i){if(r!=="style")t.prototype.attrKV.call(this,r,i);else if(!this.style)this.useStyle(i);else this.setStyle(i)},e.prototype.setStyle=function(r,i){if(typeof r==="string")this.style[r]=i;else N(this.style,r);return this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){if(!r)this.markRedraw();if(this.__dirty|=Un,this._rect)this._rect=null},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Un)},e.prototype.styleUpdated=function(){this.__dirty&=~Un},e.prototype.createStyle=function(r){return Fi(Qr,r)},e.prototype.useStyle=function(r){if(!r[_v])r=this.createStyle(r);this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[_v]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;if(r.style&&!i.style)i.style=this._mergeStyle(this.createStyle(),this.style);this._savePrimaryToNormal(r,i,O_)},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===fo,f;if(i&&i.style)if(o)if(a)f=i.style;else f=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(f,i.style);else f=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(f,i.style);else if(l)f=n.style;if(f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l){var p=re(c);for(var h=0;h<p.length;h++){var v=p[h];if(v in f)f[v]=f[v],this.style[v]=c[v]}}var d=re(f);for(var h=0;h<d.length;h++){var v=d[h];this.style[v]=this.style[v]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else if(u)this._useHoverStyle(f);else this.useStyle(f);if(!u){var m=this.__inHover?fO:O_;for(var h=0;h<m.length;h++){var v=m[h];if(i&&i[v]!=null)this[v]=i[v];else if(l){if(n[v]!=null)this[v]=n[v]}}}},e.prototype._mergeStates=function(r){var i=t.prototype._mergeStates.call(this,r),n;for(var a=0;a<r.length;a++){var o=r[a];if(o.style)n=n||{},this._mergeStyle(n,o.style)}if(n)i.style=n;return i},e.prototype._mergeStyle=function(r,i){return N(r,i),r},e.prototype.getAnimationStyleProps=function(){return Qn},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=Tt|Un}(),e}(Xu),gv=new ae(0,0,0,0),yv=new ae(0,0,0,0);function pO(t,e,r){if(gv.copy(t.getBoundingRect()),t.transform)gv.applyTransform(t.transform);return yv.width=e,yv.height=r,!gv.intersect(yv)}var $r=cO;var{min:pr,max:hr,sin:xv,cos:Sv}=Math,$n=Math.PI*2,sf=Vi(),lf=Vi(),uf=Vi();function bv(t,e,r,i,n,a){n[0]=pr(t,r),n[1]=pr(e,i),a[0]=hr(t,r),a[1]=hr(e,i)}var L_=[],P_=[];function I_(t,e,r,i,n,a,o,s,l,u){var f=wu,c=ze,p=f(t,r,n,o,L_);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<p;h++){var v=c(t,r,n,o,L_[h]);l[0]=pr(v,l[0]),u[0]=hr(v,u[0])}p=f(e,i,a,s,P_);for(var h=0;h<p;h++){var d=c(e,i,a,s,P_[h]);l[1]=pr(d,l[1]),u[1]=hr(d,u[1])}l[0]=pr(t,l[0]),u[0]=hr(t,u[0]),l[0]=pr(o,l[0]),u[0]=hr(o,u[0]),l[1]=pr(e,l[1]),u[1]=hr(e,u[1]),l[1]=pr(s,l[1]),u[1]=hr(s,u[1])}function N_(t,e,r,i,n,a,o,s){var l=Cu,u=nt,f=hr(pr(l(t,r,n),1),0),c=hr(pr(l(e,i,a),1),0),p=u(t,r,n,f),h=u(e,i,a,c);o[0]=pr(t,n,p),o[1]=pr(e,a,h),s[0]=hr(t,n,p),s[1]=hr(e,a,h)}function R_(t,e,r,i,n,a,o,s,l){var u=pi,f=hi,c=Math.abs(n-a);if(c%$n<0.0001&&c>0.0001){s[0]=t-r,s[1]=e-i,l[0]=t+r,l[1]=e+i;return}if(sf[0]=Sv(n)*r+t,sf[1]=xv(n)*i+e,lf[0]=Sv(a)*r+t,lf[1]=xv(a)*i+e,u(s,sf,lf),f(l,sf,lf),n=n%$n,n<0)n=n+$n;if(a=a%$n,a<0)a=a+$n;if(n>a&&!o)a+=$n;else if(n<a&&o)n+=$n;if(o){var p=a;a=n,n=p}for(var h=0;h<a;h+=Math.PI/2)if(h>n)uf[0]=Sv(h)*r+t,uf[1]=xv(h)*i+e,u(s,uf,s),f(l,uf,l)}var Ee={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Jn=[],ea=[],Jr=[],rn=[],ei=[],ti=[],{min:Tv,max:wv,cos:ta,sin:ra,abs:xi,PI:Ev}=Math,nn=Ev*2,Cv=typeof Float32Array<"u",Vs=[];function Av(t){var e=Math.round(t/Ev*1e8)/1e8;return e%2*Ev}function Dv(t,e){var r=Av(t[0]);if(r<0)r+=nn;var i=r-t[0],n=t[1];if(n+=i,!e&&n-r>=nn)n=r+nn;else if(e&&r-n>=nn)n=r-nn;else if(!e&&r>n)n=r+(nn-Av(r-n));else if(e&&r<n)n=r-(nn-Av(n-r));t[0]=r,t[1]=n}var hO=function(){function t(e){if(this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e)this._saveData=!1;if(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){if(i=i||0,i>0)this._ux=xi(i/Hh/e)||0,this._uy=xi(i/Hh/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(){if(this._saveData)this._len=0;if(this._pathSegLen)this._pathSegLen=null,this._pathLen=0;this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Ee.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=xi(e-this._xi),n=xi(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(Ee.L,e,r),this._ctx&&a)this._ctx.lineTo(e,r);if(a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;if(o>this._pendingPtDist)this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o}return this},t.prototype.bezierCurveTo=function(e,r,i,n,a,o){if(this._drawPendingPt(),this.addData(Ee.C,e,r,i,n,a,o),this._ctx)this._ctx.bezierCurveTo(e,r,i,n,a,o);return this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,i,n){if(this._drawPendingPt(),this.addData(Ee.Q,e,r,i,n),this._ctx)this._ctx.quadraticCurveTo(e,r,i,n);return this._xi=i,this._yi=n,this},t.prototype.arc=function(e,r,i,n,a,o){this._drawPendingPt(),Vs[0]=n,Vs[1]=a,Dv(Vs,o),n=Vs[0],a=Vs[1];var s=a-n;return this.addData(Ee.A,e,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,i,n,a,o),this._xi=ta(a)*i+e,this._yi=ra(a)*i+r,this},t.prototype.arcTo=function(e,r,i,n,a){if(this._drawPendingPt(),this._ctx)this._ctx.arcTo(e,r,i,n,a);return this},t.prototype.rect=function(e,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,i,n),this.addData(Ee.R,e,r,i,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ee.Z);var e=this._ctx,r=this._x0,i=this._y0;if(e)e.closePath();return 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)return;var r=e.length;if(!(this.data&&this.data.length===r)&&Cv)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)return;if(!(e instanceof Array))e=[e];var r=e.length,i=0,n=this._len;for(var a=0;a<r;a++)i+=e[a].len();var o=this.data;if(Cv&&(o instanceof Float32Array||!o)){if(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++){var l=e[a].data;for(var 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)return;var f=this.data;if(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(){if(this._pendingPtDist>0)this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0},t.prototype._expandData=function(){if(!(this.data instanceof Array)){var e=[];for(var r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(!this._saveData)return;this._drawPendingPt();var e=this.data;if(e instanceof Array){if(e.length=this._len,Cv&&this._len>11)this.data=new Float32Array(e)}},t.prototype.getBoundingRect=function(){Jr[0]=Jr[1]=ei[0]=ei[1]=Number.MAX_VALUE,rn[0]=rn[1]=ti[0]=ti[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;if(l)r=e[o],i=e[o+1],n=r,a=i;switch(s){case Ee.M:r=n=e[o++],i=a=e[o++],ei[0]=n,ei[1]=a,ti[0]=n,ti[1]=a;break;case Ee.L:bv(r,i,e[o],e[o+1],ei,ti),r=e[o++],i=e[o++];break;case Ee.C:I_(r,i,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],ei,ti),r=e[o++],i=e[o++];break;case Ee.Q:N_(r,i,e[o++],e[o++],e[o],e[o+1],ei,ti),r=e[o++],i=e[o++];break;case Ee.A:var u=e[o++],f=e[o++],c=e[o++],p=e[o++],h=e[o++],v=e[o++]+h;o+=1;var d=!e[o++];if(l)n=ta(h)*c+u,a=ra(h)*p+f;R_(u,f,c,p,h,v,d,ei,ti),r=ta(v)*c+u,i=ra(v)*p+f;break;case Ee.R:n=r=e[o++],a=i=e[o++];var m=e[o++],g=e[o++];bv(n,a,n+m,a+g,ei,ti);break;case Ee.Z:r=n,i=a;break}pi(Jr,Jr,ei),hi(rn,rn,ti)}if(o===0)Jr[0]=Jr[1]=rn[0]=rn[1]=0;return new ae(Jr[0],Jr[1],rn[0]-Jr[0],rn[1]-Jr[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;if(!this._pathSegLen)this._pathSegLen=[];var u=this._pathSegLen,f=0,c=0;for(var p=0;p<r;){var h=e[p++],v=p===1;if(v)a=e[p],o=e[p+1],s=a,l=o;var d=-1;switch(h){case Ee.M:a=s=e[p++],o=l=e[p++];break;case Ee.L:{var m=e[p++],g=e[p++],y=m-a,_=g-o;if(xi(y)>i||xi(_)>n||p===r-1)d=Math.sqrt(y*y+_*_),a=m,o=g;break}case Ee.C:{var x=e[p++],S=e[p++],m=e[p++],g=e[p++],b=e[p++],T=e[p++];d=Jy(a,o,x,S,m,g,b,T,10),a=b,o=T;break}case Ee.Q:{var x=e[p++],S=e[p++],m=e[p++],g=e[p++];d=r0(a,o,x,S,m,g,10),a=m,o=g;break}case Ee.A:var A=e[p++],C=e[p++],E=e[p++],D=e[p++],O=e[p++],M=e[p++],L=M+O;if(p+=1,v)s=ta(O)*E+A,l=ra(O)*D+C;d=wv(E,D)*Tv(nn,Math.abs(M)),a=ta(L)*E+A,o=ra(L)*D+C;break;case Ee.R:{s=a=e[p++],l=o=e[p++];var B=e[p++],R=e[p++];d=B*2+R*2;break}case Ee.Z:{var y=s-a,_=l-o;d=Math.sqrt(y*y+_*_),a=s,o=l;break}}if(d>=0)u[c++]=d,f+=d}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,v,d,m=0,g=0,y,_=0,x,S;if(h){if(!this._pathSegLen)this._calculateLength();if(v=this._pathSegLen,d=this._pathLen,y=r*d,!y)return}e:for(var b=0;b<o;){var T=i[b++],A=b===1;if(A)u=i[b],f=i[b+1],s=u,l=f;if(T!==Ee.L&&_>0)e.lineTo(x,S),_=0;switch(T){case Ee.M:s=u=i[b++],l=f=i[b++],e.moveTo(u,f);break;case Ee.L:{c=i[b++],p=i[b++];var C=xi(c-u),E=xi(p-f);if(C>n||E>a){if(h){var D=v[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=C*C+E*E;if(M>_)x=c,S=p,_=M}break}case Ee.C:{var L=i[b++],B=i[b++],R=i[b++],F=i[b++],z=i[b++],H=i[b++];if(h){var D=v[g++];if(m+D>y){var O=(y-m)/D;to(u,L,R,z,O,Jn),to(f,B,F,H,O,ea),e.bezierCurveTo(Jn[1],ea[1],Jn[2],ea[2],Jn[3],ea[3]);break e}m+=D}e.bezierCurveTo(L,B,R,F,z,H),u=z,f=H;break}case Ee.Q:{var L=i[b++],B=i[b++],R=i[b++],F=i[b++];if(h){var D=v[g++];if(m+D>y){var O=(y-m)/D;ro(u,L,R,O,Jn),ro(f,B,F,O,ea),e.quadraticCurveTo(Jn[1],ea[1],Jn[2],ea[2]);break e}m+=D}e.quadraticCurveTo(L,B,R,F),u=R,f=F;break}case Ee.A:var Y=i[b++],q=i[b++],Q=i[b++],J=i[b++],j=i[b++],ce=i[b++],ye=i[b++],We=!i[b++],He=Q>J?Q:J,Te=xi(Q-J)>0.001,Me=j+ce,le=!1;if(h){var D=v[g++];if(m+D>y)Me=j+ce*(y-m)/D,le=!0;m+=D}if(Te&&e.ellipse)e.ellipse(Y,q,Q,J,ye,j,Me,We);else e.arc(Y,q,He,j,Me,We);if(le)break e;if(A)s=ta(j)*Q+Y,l=ra(j)*J+q;u=ta(Me)*Q+Y,f=ra(Me)*J+q;break;case Ee.R:s=u=i[b],l=f=i[b+1],c=i[b++],p=i[b++];var Se=i[b++],Rt=i[b++];if(h){var D=v[g++];if(m+D>y){var Xe=y-m;if(e.moveTo(c,p),e.lineTo(c+Tv(Xe,Se),p),Xe-=Se,Xe>0)e.lineTo(c+Se,p+Tv(Xe,Rt));if(Xe-=Rt,Xe>0)e.lineTo(c+wv(Se-Xe,0),p+Rt);if(Xe-=Se,Xe>0)e.lineTo(c,p+wv(Rt-Xe,0));break e}m+=D}e.rect(c,p,Se,Rt);break;case Ee.Z:if(h){var D=v[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=Ee,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),yt=hO;function ia(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 k_(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=$y(t,e,r,i,n,a,o,s,u,f,null);return p<=c/2}function B_(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=t0(t,e,r,i,n,a,s,l,null);return f<=u/2}var z_=Math.PI*2;function Hs(t){if(t%=z_,t<0)t+=z_;return t}var Gs=Math.PI*2;function U_(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)%Gs<0.0001)return!0;if(a){var c=i;i=Hs(n),n=Hs(c)}else i=Hs(i),n=Hs(n);if(i>n)n+=Gs;var p=Math.atan2(l,s);if(p<0)p+=Gs;return p>=i&&p<=n||p+Gs>=i&&p+Gs<=n}function Si(t,e,r,i,n,a){if(a>e&&a>i||a<e&&a<i)return 0;if(i===e)return 0;var o=(a-e)/(i-e),s=i<e?1:-1;if(o===1||o===0)s=i<e?0.5:-0.5;var l=o*(r-t)+t;return l===n?1/0:l>n?s:0}var an=yt.CMD,na=Math.PI*2,yO=0.0001;function _O(t,e){return Math.abs(t-e)<yO}var Mt=[-1,-1,-1],vr=[-1,-1];function xO(){var t=vr[0];vr[0]=vr[1],vr[1]=t}function SO(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=Fn(e,i,a,s,u,Mt);if(f===0)return 0;else{var c=0,p=-1,h=void 0,v=void 0;for(var d=0;d<f;d++){var m=Mt[d],g=m===0||m===1?0.5:1,y=ze(t,r,n,o,m);if(y<l)continue;if(p<0){if(p=wu(e,i,a,s,vr),vr[1]<vr[0]&&p>1)xO();if(h=ze(e,i,a,s,vr[0]),p>1)v=ze(e,i,a,s,vr[1])}if(p===2)if(m<vr[0])c+=h<e?g:-g;else if(m<vr[1])c+=v<h?g:-g;else c+=s<v?g:-g;else if(m<vr[0])c+=h<e?g:-g;else c+=s<h?g:-g}return c}}function bO(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=e0(e,i,a,s,Mt);if(l===0)return 0;else{var u=Cu(e,i,a);if(u>=0&&u<=1){var f=0,c=nt(e,i,a,u);for(var p=0;p<l;p++){var h=Mt[p]===0||Mt[p]===1?0.5:1,v=nt(t,r,n,Mt[p]);if(v<o)continue;if(Mt[p]<u)f+=c<e?h:-h;else f+=a<c?h:-h}return f}else{var h=Mt[0]===0||Mt[0]===1?0.5:1,v=nt(t,r,n,Mt[0]);if(v<o)return 0;return a<e?h:-h}}}function TO(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);Mt[0]=-l,Mt[1]=l;var u=Math.abs(i-n);if(u<0.0001)return 0;if(u>=na-0.0001){i=0,n=na;var f=a?1:-1;if(o>=Mt[0]+t&&o<=Mt[1]+t)return f;else return 0}if(i>n){var c=i;i=n,n=c}if(i<0)i+=na,n+=na;var p=0;for(var h=0;h<2;h++){var v=Mt[h];if(v+t>o){var d=Math.atan2(s,v),f=a?1:-1;if(d<0)d=na+d;if(d>=i&&d<=n||d+na>=i&&d+na<=n){if(d>Math.PI/2&&d<Math.PI*1.5)f=-f;p+=f}}}return p}function F_(t,e,r,i,n){var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,p,h;for(var v=0;v<o;){var d=a[v++],m=v===1;if(d===an.M&&v>1){if(!r)s+=Si(l,u,f,c,i,n)}if(m)l=a[v],u=a[v+1],f=l,c=u;switch(d){case an.M:f=a[v++],c=a[v++],l=f,u=c;break;case an.L:if(r){if(ia(l,u,a[v],a[v+1],e,i,n))return!0}else s+=Si(l,u,a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case an.C:if(r){if(k_(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=SO(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case an.Q:if(r){if(B_(l,u,a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=bO(l,u,a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case an.A:var g=a[v++],y=a[v++],_=a[v++],x=a[v++],S=a[v++],b=a[v++];v+=1;var T=!!(1-a[v++]);if(p=Math.cos(S)*_+g,h=Math.sin(S)*x+y,!m)s+=Si(l,u,p,h,i,n);else f=p,c=h;var A=(i-g)*x/_+g;if(r){if(U_(g,y,x,S,S+b,T,e,A,n))return!0}else s+=TO(g,y,x,S,S+b,T,A,n);l=Math.cos(S+b)*_+g,u=Math.sin(S+b)*x+y;break;case an.R:f=l=a[v++],c=u=a[v++];var C=a[v++],E=a[v++];if(p=f+C,h=c+E,r){if(ia(f,c,p,c,e,i,n)||ia(p,c,p,h,e,i,n)||ia(p,h,f,h,e,i,n)||ia(f,h,f,c,e,i,n))return!0}else s+=Si(p,c,p,h,i,n),s+=Si(f,h,f,c,i,n);break;case an.Z:if(r){if(ia(l,u,f,c,e,i,n))return!0}else s+=Si(l,u,f,c,i,n);l=f,u=c;break}}if(!r&&!_O(u,c))s+=Si(l,u,f,c,i,n)||0;return s!==0}function V_(t,e,r){return F_(t,0,!1,e,r)}function H_(t,e,r,i){return F_(t,e,!0,r,i)}var yo=oe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Qr),CO={style:oe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Qn.style)},Mv=so.concat(["invisible","culling","z","z2","zlevel","parent"]),AO=function(t){P(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;if(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)if(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<Mv.length;++s)n[Mv[s]]=this[Mv[s]];n.__dirty|=Tt}else if(this._decalEl)this._decalEl=null},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var i=re(r);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();if(n)this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=r[o];if(o==="style")if(!this.style)this.useStyle(s);else N(this.style,s);else if(o==="shape")N(this.shape,s);else t.prototype.attrKV.call(this,o,s)}if(!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(V(r)){var i=ao(r,0);if(i>0.5)return Ls;else if(i>0.2)return D0;return Ps}else if(r)return Ps}return Ls},e.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(V(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=ao(r,0)<Os;if(a===o)return i}},e.prototype.buildPath=function(r,i,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Gi},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 yt(!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;if(!this.path)a=!0,this.createPathProxy();var o=this.path;if(a||this.__dirty&Gi)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==null?4:f)}if(l>0.0000000001)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>0.0000000001){if(!this.hasFill())l=Math.max(l,this.strokeContainThreshold);if(H_(s,l/u,r,i))return!0}}if(this.hasFill())return V_(s,r,i)}return!1},e.prototype.dirtyShape=function(){if(this.__dirty|=Gi,this._rect)this._rect=null;if(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){if(r==="style")this.dirtyStyle();else if(r==="shape")this.dirtyShape();else this.markRedraw()},e.prototype.attrKV=function(r,i){if(r==="shape")this.setShape(i);else t.prototype.attrKV.call(this,r,i)},e.prototype.setShape=function(r,i){var n=this.shape;if(!n)n=this.shape={};if(typeof r==="string")n[r]=i;else N(n,r);return this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Gi)},e.prototype.createStyle=function(r){return Fi(yo,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;if(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===fo)return;var l=!(i&&a),u;if(i&&i.shape)if(o)if(a)u=i.shape;else u=N({},n.shape),N(u,i.shape);else u=N({},a?this.shape:n.shape),N(u,i.shape);else if(l)u=n.shape;if(u)if(o){this.shape=N({},this.shape);var f={},c=re(u);for(var p=0;p<c.length;p++){var h=c[p];if(typeof u[h]==="object")this.shape[h]=u[h];else f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(r){var i=t.prototype._mergeStates.call(this,r),n;for(var a=0;a<r.length;a++){var o=r[a];if(o.shape)n=n||{},this._mergeStyle(n,o.shape)}if(n)i.shape=n;return i},e.prototype.getAnimationStyleProps=function(){return CO},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var i=function(a){P(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 te(r.style)},o.prototype.getDefaultShape=function(){return te(r.shape)},o}(e);for(var n in r)if(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=Tt|Un|Gi}(),e}($r),ie=AO;var EO=oe({strokeFirst:!0,font:Bt,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},yo),G_=function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return mv(this.style)},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(r){return Fi(EO,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){if(!this._rect)this._rect=M_(this.style);return this._rect},e.initDefaultProps=function(){var r=e.prototype;r.dirtyRectTolerance=10}(),e}($r);G_.prototype.type="tspan";var aa=G_;var DO=oe({x:0,y:0},Qr),MO={style:oe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Qn.style)};function OO(t){return!!(t&&typeof t!=="string"&&t.width&&t.height)}var Y_=function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return Fi(DO,r)},e.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=OO(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[o];if(s==null)return a[r];else return 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 MO},e.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect)this._rect=new ae(r.x||0,r.y||0,this.getWidth(),this.getHeight());return this._rect},e}($r);Y_.prototype.type="image";var _t=Y_;function W_(t,e){var{x:r,y:i,width:n,height:a,r:o}=e,s,l,u,f;if(n<0)r=r+n,n=-n;if(a<0)i=i+a,a=-a;if(typeof o==="number")s=l=u=f=o;else if(o instanceof Array)if(o.length===1)s=l=u=f=o[0];else if(o.length===2)s=u=o[0],l=f=o[1];else if(o.length===3)s=o[0],l=f=o[1],u=o[2];else s=o[0],l=o[1],u=o[2],f=o[3];else s=l=u=f=0;var c;if(s+l>n)c=s+l,s*=n/c,l*=n/c;if(u+f>n)c=u+f,u*=n/c,f*=n/c;if(l+u>a)c=l+u,l*=a/c,u*=a/c;if(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 _o=Math.round;function ff(t,e,r){if(!e)return;var{x1:i,x2:n,y1:a,y2:o}=e;t.x1=i,t.x2=n,t.y1=a,t.y2=o;var s=r&&r.lineWidth;if(!s)return t;if(_o(i*2)===_o(n*2))t.x1=t.x2=on(i,s,!0);if(_o(a*2)===_o(o*2))t.y1=t.y2=on(a,s,!0);return t}function cf(t,e,r){if(!e)return;var{x:i,y:n,width:a,height:o}=e;t.x=i,t.y=n,t.width=a,t.height=o;var s=r&&r.lineWidth;if(!s)return t;return 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=_o(t*2);return(i+_o(e))%2===0?i/2:(i+(r?1:-1))/2}var IO=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}();var NO={},X_=function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new IO},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=cf(NO,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;if(!i.r)r.rect(n,a,o,s);else W_(r,i)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(ie);X_.prototype.type="rect";var De=X_;var q_={fill:"#000"},Z_=2,ri={},RO={style:oe({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},Qn.style)},rx=function(t){P(e,t);function e(r){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=q_,i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){if(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;if(r){if(r.updateTransform(),r.transform)this.transform=r.transform}else 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(){if(this.__hostTarget)this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0);return t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,zO(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();if(!this._rect){var r=new ae(0,0,0,0),i=this._children,n=[],a=null;for(var o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);if(u)r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r);else a=a||l.clone(),a.union(l)}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||q_},e.prototype.setTextContent=function(r){throw Error("Can't attach text on another text")},e.prototype._mergeStyle=function(r,i){if(!i)return r;var n=i.rich,a=r.rich||n&&{};if(N(r,i),n&&a)this._mergeRich(a,n),r.rich=a;else if(a)r.rich=a;return r},e.prototype._mergeRich=function(r,i){var n=re(i);for(var a=0;a<n.length;a++){var o=n[a];r[o]=r[o]||{},N(r[o],i[o])}},e.prototype.getAnimationStyleProps=function(){return RO},e.prototype._getOrCreateChild=function(r){var i=this._children[this._childCursor];if(!i||!(i instanceof r))i=new r;return this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var r=this.style,i=r.font||Bt,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";vv(ri,a.overflowRect,o,s,l,u),o=ri.baseX,s=ri.baseY;var f=tx(r),c=A_(f,r,ri.outerWidth,ri.outerHeight),p=Ov(r),h=!!r.backgroundColor,{outerHeight:v,outerWidth:d,lines:m,lineHeight:g}=c;this.isTruncated=!!c.isTruncated;var y=o,_=gi(s,c.contentHeight,u);if(p||n){var x=Ki(o,d,l),S=gi(s,v,u);p&&this._renderBackground(r,r,x,S,d,v)}if(_+=g/2,n){if(y=ex(o,l,n),u==="top")_+=n[0];else if(u==="bottom")_-=n[2]}var b=0,T=!1,A=!1,C=J_("fill"in r?r.fill:(A=!0,a.fill)),E=$_("stroke"in r?r.stroke:!h&&(!a.autoStroke||A)?(b=Z_,T=!0,a.stroke):null),D=r.textShadowBlur>0;for(var O=0;O<m.length;O++){var M=this._getOrCreateChild(aa),L=M.createStyle();if(M.useStyle(L),L.text=m[O],L.x=y,L.y=_,l)L.textAlign=l;if(L.textBaseline="middle",L.opacity=r.opacity,L.strokeFirst=!0,D)L.shadowBlur=r.textShadowBlur||0,L.shadowColor=r.textShadowColor||"transparent",L.shadowOffsetX=r.textShadowOffsetX||0,L.shadowOffsetY=r.textShadowOffsetY||0;if(L.stroke=E,L.fill=C,E)L.lineWidth=r.lineWidth||b,L.lineDash=r.lineDash,L.lineDashOffset=r.lineDashOffset||0;L.font=i,j_(L,r),_+=g,M.setBoundingRect(of(L,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;vv(ri,i.overflowRect,o,s,n,a),o=ri.baseX,s=ri.baseY;var l=tx(r),u=E_(l,r,ri.outerWidth,ri.outerHeight,n),{width:f,outerWidth:c,outerHeight:p}=u,h=r.padding;this.isTruncated=!!u.isTruncated;var v=Ki(o,c,n),d=gi(s,p,a),m=v,g=d;if(h)m+=h[3],g+=h[0];var y=m+f;if(Ov(r))this._renderBackground(r,r,v,d,c,p);var _=!!r.backgroundColor;for(var x=0;x<u.lines.length;x++){var S=u.lines[x],b=S.tokens,T=b.length,{lineHeight:A,width:C}=S,E=0,D=m,O=y,M=T-1,L=void 0;while(E<T&&(L=b[E],!L.align||L.align==="left"))this._placeToken(L,r,A,g,D,"left",_),C-=L.width,D+=L.width,E++;while(M>=0&&(L=b[M],L.align==="right"))this._placeToken(L,r,A,g,O,"right",_),C-=L.width,O-=L.width,M--;D+=(f-(D-m)-(y-O)-C)/2;while(E<=M)L=b[E],this._placeToken(L,r,A,g,D+L.width/2,"center",_),D+=L.width,E++;g+=A}},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;if(f==="top")c=a+r.height/2;else if(f==="bottom")c=a+n-r.height/2;var p=!r.isLineHolder&&Ov(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,v=r.textPadding;if(v)o=ex(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2;var d=this._getOrCreateChild(aa),m=d.createStyle();d.useStyle(m);var g=this._defaultStyle,y=!1,_=0,x=!1,S=J_("fill"in u?u.fill:("fill"in i)?i.fill:(y=!0,g.fill)),b=$_("stroke"in u?u.stroke:("stroke"in i)?i.stroke:!h&&!l&&(!g.autoStroke||y)?(_=Z_,x=!0,g.stroke):null),T=u.textShadowBlur>0||i.textShadowBlur>0;if(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;if(m.textAlign=s,m.textBaseline="middle",m.font=r.font||Bt,m.opacity=bt(u.opacity,i.opacity,1),j_(m,u),b)m.lineWidth=bt(u.lineWidth,i.lineWidth,_),m.lineDash=G(u.lineDash,i.lineDash),m.lineDashOffset=i.lineDashOffset||0,m.stroke=b;if(S)m.fill=S;d.setBoundingRect(of(m,r.contentWidth,r.contentHeight,x?0:null))},e.prototype._renderBackground=function(r,i,n,a,o,s){var{backgroundColor:l,borderWidth:u,borderColor:f}=r,c=l&&l.image,p=l&&!c,h=r.borderRadius,v=this,d,m;if(p||r.lineHeight||u&&f){d=this._getOrCreateChild(De),d.useStyle(d.createStyle()),d.style.fill=null;var g=d.shape;g.x=n,g.y=a,g.width=o,g.height=s,g.r=h,d.dirtyShape()}if(p){var y=d.style;y.fill=l||null,y.fillOpacity=G(r.fillOpacity,1)}else if(c){m=this._getOrCreateChild(_t),m.onload=function(){v.dirtyStyle()};var _=m.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&f){var y=d.style;if(y.lineWidth=u,y.stroke=f,y.strokeOpacity=G(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke())y.strokeFirst=!0,y.lineWidth*=2}var x=(d||m).style;x.shadowBlur=r.shadowBlur||0,x.shadowColor=r.shadowColor||"transparent",x.shadowOffsetX=r.shadowOffsetX||0,x.shadowOffsetY=r.shadowOffsetY||0,x.opacity=bt(r.opacity,i.opacity,1)},e.makeFont=function(r){var i="";if(Pv(r))i=[r.fontStyle,r.fontWeight,Lv(r.fontSize),r.fontFamily||"sans-serif"].join(" ");return i&&vt(i)||r.textFont||r.font},e}($r),kO={left:!0,right:1,center:1},BO={top:1,bottom:1,middle:1},K_=["fontStyle","fontWeight","fontSize","fontFamily"];function Lv(t){if(typeof t==="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1))return t;else if(!isNaN(+t))return t+"px";else return nu+"px"}function j_(t,e){for(var r=0;r<K_.length;r++){var i=K_[r],n=e[i];if(n!=null)t[i]=n}}function Pv(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function zO(t){return Q_(t),w(t.rich,Q_),t}function Q_(t){if(t){t.font=rx.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||kO[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||BO[r]?r:"top";var i=t.padding;if(i)t.padding=qa(t.padding)}}function $_(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function J_(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function ex(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function tx(t){var e=t.text;return e!=null&&(e+=""),e}function Ov(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Qe=rx;var xe=ee(),ix=function(t,e,r,i){if(i){var n=xe(i);if(n.dataIndex=r,n.dataType=e,n.seriesIndex=t,n.ssrType="chart",i.type==="group")i.traverse(function(a){var o=xe(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}};var sn="undefined",pf="series",Ys=Z(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),at="original",tt="arrayRows",wt="objectRows",Vt="keyedColumns",ir="typedArray",Iv="unknown",nr="column",ii="row";var UO=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],FO=function(){function t(e){w(UO,function(r){this[r]=me(e[r],e)},this)}return t}();function nx(t,e){return e.mainType===pf?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var hf=FO;var ax=1,ox={},cx=ee(),kv=ee(),Bv=0,Ws=1,Xs=2,lt=["emphasis","blur","select"],So=["normal","emphasis","blur","select"],VO=10,HO=9,ln="highlight",qs="downplay",Zs="select",df="unselect",Ks="toggleSelect",mf="selectchanged";function xo(t){return t!=null&&t!=="none"}function gf(t,e,r){if(t.onHoverStateChange&&(t.hoverState||0)!==r)t.onHoverStateChange(e);t.hoverState=r}function px(t){gf(t,"emphasis",Xs)}function hx(t){if(t.hoverState===Xs)gf(t,"normal",Bv)}function zv(t){gf(t,"blur",Ws)}function vx(t){if(t.hoverState===Ws)gf(t,"normal",Bv)}function GO(t){t.selected=!0}function YO(t){t.selected=!1}function sx(t,e,r){e(t,r)}function bi(t,e,r){sx(t,e,r),t.isGroup&&t.traverse(function(i){sx(i,e,r)})}function Uv(t,e){switch(e){case"emphasis":t.hoverState=Xs;break;case"normal":t.hoverState=Bv;break;case"blur":t.hoverState=Ws;break;case"select":t.selected=!0}}function WO(t,e,r,i){var n=t.style,a={};for(var o=0;o<e.length;o++){var s=e[o],l=n[s];a[s]=l==null?i&&i[s]:l}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];if(u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style")u.saveTo(a,e)}return a}function XO(t,e,r,i){var n=r&&ue(r,"select")>=0,a=!1;if(t instanceof ie){var o=cx(t),s=n?o.selectFill||o.normalFill:o.normalFill,l=n?o.selectStroke||o.normalStroke:o.normalStroke;if(xo(s)||xo(l)){i=i||{};var u=i.style||{};if(u.fill==="inherit")a=!0,i=N({},i),u=N({},u),u.fill=s;else if(!xo(u.fill)&&xo(s))a=!0,i=N({},i),u=N({},u),u.fill=Ts(s);else if(!xo(u.stroke)&&xo(l)){if(!a)i=N({},i),u=N({},u);u.stroke=Ts(l)}i.style=u}}if(i){if(i.z2==null){if(!a)i=N({},i);var f=t.z2EmphasisLift;i.z2=t.z2+(f!=null?f:VO)}}return i}function qO(t,e,r){if(r){if(r.z2==null){r=N({},r);var i=t.z2SelectLift;r.z2=t.z2+(i!=null?i:HO)}}return r}function ZO(t,e,r){var i=ue(t.currentStates,e)>=0,n=t.style.opacity,a=!i?WO(t,["opacity"],e,{opacity:1}):null;r=r||{};var o=r.style||{};if(o.opacity==null)r=N({},r),o=N({opacity:i?n:a.opacity*0.1},o),r.style=o;return r}function Nv(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return XO(this,t,e,r);else if(t==="blur")return ZO(this,t,r);else if(t==="select")return qO(this,t,r)}return r}function KO(t){t.stateProxy=Nv;var e=t.getTextContent(),r=t.getTextGuideLine();if(e)e.stateProxy=Nv;if(r)r.stateProxy=Nv}function lx(t,e){!dx(t,e)&&!t.__highByOuter&&bi(t,px)}function ux(t,e){!dx(t,e)&&!t.__highByOuter&&bi(t,hx)}function Ti(t,e){t.__highByOuter|=1<<(e||0),bi(t,px)}function wi(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&bi(t,hx)}function yf(t){bi(t,zv)}function js(t){bi(t,vx)}function Fv(t){bi(t,GO)}function Vv(t){bi(t,YO)}function dx(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Hv(t){var e=t.getModel(),r=[],i=[];e.eachComponent(function(n,a){var o=kv(a),s=nx(t,a),l=n==="series";if(!l&&i.push(s),o.isBlured)s.group.traverse(function(u){vx(u)}),l&&r.push(a);o.isBlured=!1}),w(i,function(n){if(n&&n.toggleBlurSeries)n.toggleBlurSeries(r,!1,e)})}function Rv(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&&js(p)}}if(t==null)return;if(!e||e==="none")return;var o=n.getSeriesByIndex(t),s=o.coordinateSystem;if(s&&s.master)s=s.master;var l=[];n.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;if(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){if(m.__highByOuter&&f&&e==="self")return;zv(m)}),et(e))a(u.getData(),e);else if(W(e)){var v=re(e);for(var d=0;d<v.length;d++)a(u.getData(v[d]),e[v[d]])}l.push(u),kv(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u==="series")return;var c=i.getViewOfComponentModel(f);if(c&&c.toggleBlurSeries)c.toggleBlurSeries(l,!0,n)})}function vf(t,e,r){if(t==null||e==null)return;var i=r.getModel().getComponent(t,e);if(!i)return;kv(i).isBlured=!0;var n=r.getViewOfComponentModel(i);if(!n||!n.focusBlurEnabled)return;n.group.traverse(function(a){zv(a)})}function mx(t,e,r){var i=t.seriesIndex,n=t.getData(e.dataType);if(!n){pe("Unknown dataType "+e.dataType);return}var a=cr(n,e);a=(k(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o){var s=n.count(),l=0;while(!o&&l<s)o=n.getItemGraphicEl(l++)}if(o){var u=xe(o);Rv(i,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);if(f!=null)Rv(i,f,c,r)}}function _f(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;var s=o.findHighDownDispatchers(r),l;for(var u=0;u<s.length;u++){if(!un(s[u]))pe("param should be highDownDispatcher");if(xe(s[u]).focus==="self"){l=!0;break}}return{focusSelf:l,dispatchers:s}}function gx(t,e,r){if(!un(t))pe("param should be highDownDispatcher");var i=xe(t),n=_f(i.componentMainType,i.componentIndex,i.componentHighDownName,r),{dispatchers:a,focusSelf:o}=n;if(a){if(o)vf(i.componentMainType,i.componentIndex,r);w(a,function(s){return lx(s,e)})}else{if(Rv(i.seriesIndex,i.focus,i.blurScope,r),i.focus==="self")vf(i.componentMainType,i.componentIndex,r);lx(t,e)}}function yx(t,e,r){if(!un(t))pe("param should be highDownDispatcher");Hv(r);var i=xe(t),n=_f(i.componentMainType,i.componentIndex,i.componentHighDownName,r).dispatchers;if(n)w(n,function(a){return ux(a,e)});else ux(t,e)}function _x(t,e,r){if(!xf(e))return;var i=e.dataType,n=t.getData(i),a=cr(n,e);if(!k(a))a=[a];t[e.type===Ks?"toggleSelect":e.type===Zs?"select":"unselect"](a,i)}function Gv(t){var e=t.getAllData();w(e,function(r){var{data:i,type:n}=r;i.eachItemGraphicEl(function(a,o){t.isSelected(o,n)?Fv(a):Vv(a)})})}function xx(t){var e=[];return t.eachSeries(function(r){var i=r.getAllData();w(i,function(n){var{data:a,type:o}=n,s=r.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:r.seriesIndex};if(o!=null)l.dataType=o;e.push(l)}})}),e}function jO(t,e,r){Sx(t,!0),bi(t,KO),$O(t,e,r)}function QO(t){Sx(t,!1)}function Lr(t,e,r,i){i?QO(t):jO(t,e,r)}function $O(t,e,r){var i=xe(t);if(e!=null)i.focus=e,i.blurScope=r;else if(i.focus)i.focus=null}var fx=["emphasis","blur","select"],JO={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function oa(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[JO[r]]()}}function Sx(t,e){var r=e===!1,i=t;if(t.highDownSilentOnTouch)i.__highDownSilentOnTouch=t.highDownSilentOnTouch;if(!r||i.__highDownDispatcher)i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r}function un(t){return!!(t&&t.__highDownDispatcher)}function bx(t){var e=ox[t];if(e==null&&ax<=32)e=ox[t]=ax++;return e}function xf(t){var e=t.type;return e===Zs||e===df||e===Ks}function Yv(t){var e=t.type;return e===ln||e===qs}function Tx(t){var e=cx(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 bo=yt.CMD,eL=[[],[],[]],{sqrt:Cx,atan2:tL}=Math;function Wv(t,e){if(!e)return;var r=t.data,i=t.len(),n,a,o,s,l,u,{M:f,C:c,L:p,R:h,A:v,Q:d}=bo;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 d:a=2;break;case v:var m=e[4],g=e[5],y=Cx(e[0]*e[0]+e[1]*e[1]),_=Cx(e[2]*e[2]+e[3]*e[3]),x=tL(-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++],dt(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],dt(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var S=eL[l];S[0]=r[o++],S[1]=r[o++],dt(S,S,e),r[s++]=S[0],r[s++]=S[1]}}t.increaseVersion()}var{sqrt:Xv,sin:Sf,cos:bf,PI:Qs}=Math;function Ax(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function qv(t,e){return(t[0]*e[0]+t[1]*e[1])/(Ax(t)*Ax(e))}function Ex(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(qv(t,e))}function Dx(t,e,r,i,n,a,o,s,l,u,f){var c=l*(Qs/180),p=bf(c)*(t-r)/2+Sf(c)*(e-i)/2,h=-1*Sf(c)*(t-r)/2+bf(c)*(e-i)/2,v=p*p/(o*o)+h*h/(s*s);if(v>1)o*=Xv(v),s*=Xv(v);var d=(n===a?-1:1)*Xv((o*o*(s*s)-o*o*(h*h)-s*s*(p*p))/(o*o*(h*h)+s*s*(p*p)))||0,m=d*o*h/s,g=d*-s*p/o,y=(t+r)/2+bf(c)*m-Sf(c)*g,_=(e+i)/2+Sf(c)*m+bf(c)*g,x=Ex([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=Ex(S,b);if(qv(S,b)<=-1)T=Qs;if(qv(S,b)>=1)T=0;if(T<0){var A=Math.round(T/Qs*1e6)/1e6;T=Qs*2+A%2*Qs}f.addData(u,y,_,o,s,x,T,c,a)}var rL=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,iL=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function nL(t){var e=new yt;if(!t)return e;var r=0,i=0,n=r,a=i,o,s=yt.CMD,l=t.match(rL);if(!l)return e;for(var u=0;u<l.length;u++){var f=l[u],c=f.charAt(0),p=void 0,h=f.match(iL)||[],v=h.length;for(var d=0;d<v;d++)h[d]=parseFloat(h[d]);var m=0;while(m<v){var g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0,T=void 0,A=r,C=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":if(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,A=h[m++],C=h[m++],r=h[m++],i=h[m++],e.addData(p,g,y,A,C,r,i);break;case"s":if(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,A=r+h[m++],C=i+h[m++],r+=h[m++],i+=h[m++],e.addData(p,g,y,A,C,r,i);break;case"Q":A=h[m++],C=h[m++],r=h[m++],i=h[m++],p=s.Q,e.addData(p,A,C,r,i);break;case"q":A=h[m++]+r,C=h[m++]+i,r+=h[m++],i+=h[m++],p=s.Q,e.addData(p,A,C,r,i);break;case"T":if(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":if(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++],A=r,C=i,r=h[m++],i=h[m++],p=s.A,Dx(A,C,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++],A=r,C=i,r+=h[m++],i+=h[m++],p=s.A,Dx(A,C,r,i,b,T,_,x,S,p,e);break}}if(c==="z"||c==="Z")p=s.Z,e.addData(p),r=n,i=a;o=p}return e.toStatic(),e}var Mx=function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e}(ie);function Ox(t){return t.setData!=null}function Lx(t,e){var r=nL(t),i=N({},e);return i.buildPath=function(n){var a=Ox(n);if(a&&n.canSave()){n.appendPath(r);var o=n.getContext();if(o)n.rebuildPath(o,1)}else{var o=a?n.getContext():n;if(o)r.rebuildPath(o,1)}},i.applyTransform=function(n){Wv(r,n),this.dirtyShape()},i}function Px(t,e){return new Mx(Lx(t,e))}function Ix(t,e){var r=Lx(t,e),i=function(n){P(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(Mx);return i}function Nx(t,e){var r=[],i=t.length;for(var n=0;n<i;n++){var a=t[n];r.push(a.getUpdatedPathProxy(!0))}var o=new ie(e);return o.createPathProxy(),o.buildPath=function(s){if(Ox(s)){s.appendPath(r);var l=s.getContext();if(l)s.rebuildPath(l,1)}},o}var oL=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}();var Rx=function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new oL},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}(ie);Rx.prototype.type="circle";var To=Rx;var sL=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}();var kx=function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new sL},e.prototype.buildPath=function(r,i){var n=0.5522848,{cx:a,cy:o,rx:s,ry:l}=i,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}(ie);kx.prototype.type="ellipse";var Tf=kx;var zx=Math.PI,Zv=zx*2,{sin:sa,cos:wo,acos:lL,atan2:Ct,abs:Bx,sqrt:Js,max:$s,min:ni}=Math,Pr=0.0001;function uL(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<Pr)return;return p=(f*(e-a)-c*(t-n))/p,[t+p*l,e+p*u]}function wf(t,e,r,i,n,a,o){var s=t-r,l=e-i,u=(o?a:-a)/Js(s*s+l*l),f=u*l,c=-u*s,p=t+f,h=e+c,v=r+f,d=i+c,m=(p+v)/2,g=(h+d)/2,y=v-p,_=d-h,x=y*y+_*_,S=n-a,b=p*d-v*h,T=(_<0?-1:1)*Js($s(0,S*S*x-b*b)),A=(b*_-y*T)/x,C=(-b*y-_*T)/x,E=(b*_+y*T)/x,D=(-b*y+_*T)/x,O=A-m,M=C-g,L=E-m,B=D-g;if(O*O+M*M>L*L+B*B)A=E,C=D;return{cx:A,cy:C,x0:-f,y0:-c,x1:A*(n/S-1),y1:C*(n/S-1)}}function fL(t){var e;if(k(t)){var r=t.length;if(!r)return t;if(r===1)e=[t[0],t[0],0,0];else if(r===2)e=[t[0],t[0],t[1],t[1]];else if(r===3)e=t.concat(t[2]);else e=t}else e=[t,t,t,t];return e}function Ux(t,e){var r,i=$s(e.r,0),n=$s(e.r0||0,0),a=i>0,o=n>0;if(!a&&!o)return;if(!a)i=n,n=0;if(n>i){var s=i;i=n,n=s}var{startAngle:l,endAngle:u}=e;if(isNaN(l)||isNaN(u))return;var{cx:f,cy:c}=e,p=!!e.clockwise,h=Bx(u-l),v=h>Zv&&h%Zv;if(v>Pr&&(h=v),!(i>Pr))t.moveTo(f,c);else if(h>Zv-Pr){if(t.moveTo(f+i*wo(l),c+i*sa(l)),t.arc(f,c,i,l,u,!p),n>Pr)t.moveTo(f+n*wo(u),c+n*sa(u)),t.arc(f,c,n,u,l,p)}else{var d=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,A=void 0,C=void 0,E=void 0,D=void 0,O=void 0,M=void 0,L=void 0,B=i*wo(l),R=i*sa(l),F=n*wo(u),z=n*sa(u),H=h>Pr;if(H){var Y=e.cornerRadius;if(Y)r=fL(Y),d=r[0],m=r[1],g=r[2],y=r[3];var q=Bx(i-n)/2;if(_=ni(q,g),x=ni(q,y),S=ni(q,d),b=ni(q,m),C=T=$s(_,x),E=A=$s(S,b),T>Pr||A>Pr){if(D=i*wo(u),O=i*sa(u),M=n*wo(l),L=n*sa(l),h<zx){var Q=uL(B,R,M,L,D,O,F,z);if(Q){var J=B-Q[0],j=R-Q[1],ce=D-Q[0],ye=O-Q[1],We=1/sa(lL((J*ce+j*ye)/(Js(J*J+j*j)*Js(ce*ce+ye*ye)))/2),He=Js(Q[0]*Q[0]+Q[1]*Q[1]);C=ni(T,(i-He)/(We+1)),E=ni(A,(n-He)/(We-1))}}}}if(!H)t.moveTo(f+B,c+R);else if(C>Pr){var Te=ni(g,C),Me=ni(y,C),le=wf(M,L,B,R,i,Te,p),Se=wf(D,O,F,z,i,Me,p);if(t.moveTo(f+le.cx+le.x0,c+le.cy+le.y0),C<T&&Te===Me)t.arc(f+le.cx,c+le.cy,C,Ct(le.y0,le.x0),Ct(Se.y0,Se.x0),!p);else Te>0&&t.arc(f+le.cx,c+le.cy,Te,Ct(le.y0,le.x0),Ct(le.y1,le.x1),!p),t.arc(f,c,i,Ct(le.cy+le.y1,le.cx+le.x1),Ct(Se.cy+Se.y1,Se.cx+Se.x1),!p),Me>0&&t.arc(f+Se.cx,c+Se.cy,Me,Ct(Se.y1,Se.x1),Ct(Se.y0,Se.x0),!p)}else t.moveTo(f+B,c+R),t.arc(f,c,i,l,u,!p);if(!(n>Pr)||!H)t.lineTo(f+F,c+z);else if(E>Pr){var Te=ni(d,E),Me=ni(m,E),le=wf(F,z,D,O,n,-Me,p),Se=wf(B,R,M,L,n,-Te,p);if(t.lineTo(f+le.cx+le.x0,c+le.cy+le.y0),E<A&&Te===Me)t.arc(f+le.cx,c+le.cy,E,Ct(le.y0,le.x0),Ct(Se.y0,Se.x0),!p);else Me>0&&t.arc(f+le.cx,c+le.cy,Me,Ct(le.y0,le.x0),Ct(le.y1,le.x1),!p),t.arc(f,c,n,Ct(le.cy+le.y1,le.cx+le.x1),Ct(Se.cy+Se.y1,Se.cx+Se.x1),p),Te>0&&t.arc(f+Se.cx,c+Se.cy,Te,Ct(Se.y1,Se.x1),Ct(Se.y0,Se.x0),!p)}else t.lineTo(f+F,c+z),t.arc(f,c,n,u,l,p)}t.closePath()}var pL=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 Fx=function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new pL},e.prototype.buildPath=function(r,i){Ux(r,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(ie);Fx.prototype.type="sector";var dr=Fx;var hL=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}();var Vx=function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new hL},e.prototype.buildPath=function(r,i){var{cx:n,cy:a}=i,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}(ie);Vx.prototype.type="ring";var Cf=Vx;function Kv(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++)pi(f,f,t[p]),hi(c,c,t[p]);pi(f,f,i[0]),hi(c,c,i[1])}for(var p=0,h=t.length;p<h;p++){var v=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(wy(t[p]));continue}else l=t[p-1],u=t[p+1];fu(a,u,l),cu(a,a,e);var d=pu(v,l),m=pu(v,u),g=d+m;if(g!==0)d/=g,m/=g;cu(o,a,-d),cu(s,a,m);var y=ah([],v,o),_=ah([],v,s);if(i)hi(y,y,f),pi(y,y,c),hi(_,_,f),pi(_,_,c);n.push(y),n.push(_)}if(r)n.push(n.shift());return n}function Af(t,e,r){var{smooth:i,points:n}=e;if(n&&n.length>=2){if(i){var a=Kv(n,i,r,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);var o=n.length;for(var 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 vL=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}();var Gx=function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new vL},e.prototype.buildPath=function(r,i){Af(r,i,!0)},e}(ie);Gx.prototype.type="polygon";var Ef=Gx;var dL=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}();var Yx=function(t){P(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 dL},e.prototype.buildPath=function(r,i){Af(r,i,!1)},e}(ie);Yx.prototype.type="polyline";var fn=Yx;var mL={},gL=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();var Wx=function(t){P(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 gL},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=ff(mL,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;if(u===0)return;if(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}(ie);Wx.prototype.type="line";var Ht=Wx;var Gt=[],yL=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 Xx(t,e,r){var{cpx2:i,cpy2:n}=t;if(i!=null||n!=null)return[(r?Th:ze)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?Th:ze)(t.y1,t.cpy1,t.cpy2,t.y2,e)];else return[(r?wh:nt)(t.x1,t.cpx1,t.x2,e),(r?wh:nt)(t.y1,t.cpy1,t.y2,e)]}var qx=function(t){P(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 yL},e.prototype.buildPath=function(r,i){var{x1:n,y1:a,x2:o,y2:s,cpx1:l,cpy1:u,cpx2:f,cpy2:c,percent:p}=i;if(p===0)return;if(r.moveTo(n,a),f==null||c==null){if(p<1)ro(n,l,o,p,Gt),l=Gt[1],o=Gt[2],ro(a,u,s,p,Gt),u=Gt[1],s=Gt[2];r.quadraticCurveTo(l,u,o,s)}else{if(p<1)to(n,l,f,o,p,Gt),l=Gt[1],f=Gt[2],o=Gt[3],to(a,u,c,s,p,Gt),u=Gt[1],c=Gt[2],s=Gt[3];r.bezierCurveTo(l,u,f,c,o,s)}},e.prototype.pointAt=function(r){return Xx(this.shape,r,!1)},e.prototype.tangentAt=function(r){var i=Xx(this.shape,r,!0);return ja(i,i)},e}(ie);qx.prototype.type="bezier-curve";var Co=qx;var _L=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 Zx=function(t){P(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 _L},e.prototype.buildPath=function(r,i){var{cx:n,cy:a}=i,o=Math.max(i.r,0),{startAngle:s,endAngle:l,clockwise:u}=i,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}(ie);Zx.prototype.type="arc";var Ao=Zx;var xL=function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){var r=this.shape.paths,i=this.shapeChanged();for(var n=0;n<r.length;n++)i=i||r[n].shapeChanged();if(i)this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();var r=this.shape.paths||[],i=this.getGlobalScale();for(var n=0;n<r.length;n++){if(!r[n].path)r[n].createPathProxy();r[n].path.setScale(i[0],i[1],r[n].segmentIgnoreThreshold)}},e.prototype.buildPath=function(r,i){var n=i.paths||[];for(var a=0;a<n.length;a++)n[a].buildPath(r,n[a].shape,!0)},e.prototype.afterBrush=function(){var r=this.shape.paths||[];for(var i=0;i<r.length;i++)r[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ie.prototype.getBoundingRect.call(this)},e}(ie),el=xL;var SL=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t}(),Df=SL;var bL=function(t){P(e,t);function e(r,i,n,a,o,s){var l=t.call(this,o)||this;return l.x=r==null?0:r,l.y=i==null?0:i,l.x2=n==null?1:n,l.y2=a==null?0:a,l.type="linear",l.global=s||!1,l}return e}(Df),Eo=bL;var TL=function(t){P(e,t);function e(r,i,n,a,o){var s=t.call(this,a)||this;return s.x=r==null?0.5:r,s.y=i==null?0.5:i,s.r=n==null?0.5:n,s.type="radial",s.global=o||!1,s}return e}(Df),jv=TL;var{min:Qv,max:wL,abs:Mf}=Math,la=[0,0],ua=[0,0],ut=gh(),{minTv:Of,maxTv:Lf}=ut,CL=function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new fe;for(var i=0;i<2;i++)this._axes[i]=new fe;if(e)this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var i=this._corners,n=this._axes,{x:a,y:o}=e,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);fe.sub(n[0],i[1],i[0]),fe.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;if(r)fe.set(r,0,0);if(ut.reset(i,!a),!this._intersectCheckOneSide(this,e,a,1)){if(n=!1,a)return n}if(!this._intersectCheckOneSide(e,this,a,-1)){if(n=!1,a)return n}if(!a&&!ut.negativeSize)fe.copy(r,n?ut.useDir?ut.dirMinTv:Of:Lf);return n},t.prototype._intersectCheckOneSide=function(e,r,i,n){var a=!0;for(var o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,la),e._getProjMinMaxOnAxis(o,r._corners,ua),ut.negativeSize||la[1]<ua[0]||la[0]>ua[1]){if(a=!1,ut.negativeSize||i)return a;var l=Mf(ua[0]-la[1]),u=Mf(la[0]-ua[1]);if(Qv(l,u)>Lf.len())if(l<u)fe.scale(Lf,s,-l*n);else fe.scale(Lf,s,u*n)}else if(!i){var l=Mf(ua[0]-la[1]),u=Mf(la[0]-ua[1]);if(ut.useDir||Qv(l,u)<Of.len()){if(l<u||!ut.bidirectional){if(fe.scale(Of,s,l*n),ut.useDir)ut.calcDirMTV()}if(l>=u||!ut.bidirectional){if(fe.scale(Of,s,-u*n),ut.useDir)ut.calcDirMTV()}}}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,i){var n=this._axes[e],a=this._origin,o=r[0].dot(n)+a[e],s=o,l=o;for(var u=1;u<r.length;u++){var f=r[u].dot(n)+a[e];s=Qv(f,s),l=wL(f,l)}i[0]=s+ut.touchThreshold,i[1]=l-ut.touchThreshold,ut.negativeSize=i[1]<i[0]},t}(),Pf=CL;var Kx=1;var AL=[],EL=function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=Kx,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){if(i)this._temporaryDisplayables.push(r);else 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){var r=new ae(1/0,1/0,-1/0,-1/0);for(var i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();if(n.needLocalTransform())a.applyTransform(n.getLocalTransform(AL));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}($r),$v=EL;var DL=ee();function ML(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;if(i)u=G(i.duration,200),f=G(i.easing,"cubicOut"),c=0;else u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay");if(a)a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay);if(X(c))c=c(r,n);if(X(u))u=u(r);var p={duration:u||0,delay:c,easing:f};return p}else return null}function Jv(t,e,r,i,n,a,o){var s=!1,l;if(X(n))o=a,a=n,n=null;else if(W(n))a=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex;var u=t==="leave";if(!u)e.stopAnimation("leave");var f=ML(t,i,n,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var{duration:c,delay:p,easing:h}=f,v={duration:c,delay:p||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,v):e.animateTo(r,v)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function Ve(t,e,r,i,n,a){Jv("update",t,e,r,i,n,a)}function $e(t,e,r,i,n,a){Jv("enter",t,e,r,i,n,a)}function fa(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 Do(t,e,r,i,n,a){if(fa(t))return;Jv("leave",t,e,r,i,n,a)}function jx(t,e,r,i){t.removeTextContent(),t.removeTextGuideLine(),Do(t,{style:{opacity:0}},e,r,i)}function cn(t,e,r){function i(){t.parent&&t.parent.remove(t)}if(!t.isGroup)jx(t,e,r,i);else t.traverse(function(n){if(!n.isGroup)jx(n,e,r,i)})}function Mo(t){DL(t).oldStyle=t.style}var td={},ai=["x","y"],pn=["width","height"],id=0,nd=1,ca=2;function Jx(t){return ie.extend(t)}var OL=Ix;function eS(t,e){return OL(t,e)}function mr(t,e){td[t]=e}function tS(t){if(td.hasOwnProperty(t))return td[t]}function rl(t,e,r,i){var n=Px(t,e);if(r){if(i==="center")r=rS(r,n.getBoundingRect());ad(n,r)}return n}function Nf(t,e,r){var i=new _t({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(rS(e,a))}}});return i}function rS(t,e){var r=e.width/e.height,i=t.height*r,n;if(i<=t.width)n=t.height;else 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 iS=Nx;function ad(t,e){if(!t.applyTransform)return;var r=t.getBoundingRect(),i=r.calculateTransform(e);t.applyTransform(i)}function pa(t,e){return ff(t,t,{lineWidth:e}),t}function LL(t,e){return cf(t,t,e),t}var PL=on;function nS(t,e){var r=vi([]);while(t&&t!==e)Hi(r,t.getLocalTransform(),r),t=t.parent;return r}function Rf(t,e,r){if(e&&!et(e))e=lo.getLocalTransform(e);if(r)e=Gr([],e);return dt([],t,e)}function IL(t,e,r){var i=e[4]===0||e[5]===0||e[0]===0?1:Ie(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:Ie(2*e[4]/e[2]),a=[t==="left"?-i:t==="right"?i:0,t==="top"?-n:t==="bottom"?n:0];return a=Rf(a,e,r),Ie(a[0])>Ie(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Qx(t){return!t.isGroup}function NL(t){return t.shape!=null}function od(t,e,r){if(!t||!e)return;function i(o){var s={};return o.traverse(function(l){if(Qx(l)&&l.anid)s[l.anid]=l}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};if(NL(o))s.shape=te(o.shape);return s}var a=i(t);e.traverse(function(o){if(Qx(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),Ve(o,l,r,xe(o).dataIndex)}}})}function aS(t,e){return U(t,function(r){var i=r[0];i=ve(i,e.x),i=Ge(i,e.x+e.width);var n=r[1];return n=ve(n,e.y),n=Ge(n,e.y+e.height),[i,n]})}function oS(t,e){var r=ve(t.x,e.x),i=Ge(t.x+t.width,e.x+e.width),n=ve(t.y,e.y),a=Ge(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 kf(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),oe(n,r),new _t(i)):rl(t.replace("path://",""),i,r,"center")}function RL(t,e,r,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(sS(t,e,r,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function sS(t,e,r,i,n,a,o,s){var l=r-t,u=i-e,f=o-n,c=s-a,p=ed(f,c,l,u);if(kL(p))return!1;var h=t-n,v=e-a,d=ed(h,v,l,u)/p;if(d<0||d>1)return!1;var m=ed(h,v,f,c)/p;if(m<0||m>1)return!1;return!0}function ed(t,e,r,i){return t*i-r*e}function kL(t){return t<=0.000001&&t>=-0.000001}function Oo(t,e,r,i,n){if(e==null)return t;else if(se(e))Le[0]=Le[1]=Le[2]=Le[3]=e;else I(e.length===4),Le[0]=e[0],Le[1]=e[1],Le[2]=e[2],Le[3]=e[3];if(i)Le[0]=ve(0,Le[0]),Le[1]=ve(0,Le[1]),Le[2]=ve(0,Le[2]),Le[3]=ve(0,Le[3]);if(r)Le[0]=-Le[0],Le[1]=-Le[1],Le[2]=-Le[2],Le[3]=-Le[3];return $x(t,Le,"x","width",3,1,n&&n[0]||0),$x(t,Le,"y","height",0,2,n&&n[1]||0),t}var Le=[0,0,0,0];function $x(t,e,r,i,n,a,o){var s=e[a]+e[n],l=t[i];if(t[i]+=s,o=ve(0,Ge(o,l)),t[i]<o)t[i]=o,t[r]+=e[n]>=0?-e[n]:e[a]>=0?l+e[a]:Ie(s)>0.00000001?(l-o)*e[n]/s:0;else t[r]-=e[n]}function Bf(t){var{itemTooltipOption:e,componentModel:r,itemName:i}=t,n=V(e)?{formatter:e}:e,{mainType:a,componentIndex:o}=r,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;if(l)w(re(l),function(f){if(!Be(s,f))s[f]=l[f],s.$vars.push(f)});var u=xe(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:oe({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function rd(t,e){var r;if(t.isGroup)r=e(t);if(!r)t.traverse(e)}function Ci(t,e){if(t)if(k(t))for(var r=0;r<t.length;r++)rd(t[r],e);else rd(t,e)}function zf(t){return!t||Ie(t[1])<If&&Ie(t[2])<If||Ie(t[0])<If&&Ie(t[3])<If}var If=0.00001;function Lo(t,e){return t?ae.copy(t,e):e.clone()}function Uf(t,e){return e?vs(t||Dt(),e):void 0}function il(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function BL(t){var e=-1/0,r=1/0;rd(t,function(a){i(a),i(a.getTextContent()),i(a.getTextGuideLine())});function i(a){if(!a||a.isGroup)return;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;if(o>e)e=o;if(o<r)r=o}}if(r>e)r=e=0;return{min:r,max:e}}function nl(t,e,r){lS(t,e,r,-1/0)}function lS(t,e,r,i){if(t.ignoreModelZ)return i;var n=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o){var s=t.childrenRef();for(var l=0;l<s.length;l++)i=ve(lS(s[l],e,r,i),i)}else t.z=e,t.zlevel=r,i=ve(t.z2||0,i);if(n)n.z=e,n.zlevel=r,isFinite(i)&&(n.z2=i+2);if(a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function zL(t){return t.animation={duration:0},t}function UL(t,e){return e?vs(tl.transform,e):vi(tl.transform),tl.decomposeTransform(),Zi(t,tl),t}var tl=new lo;tl.transform=Dt();function FL(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}mr("circle",To);mr("ellipse",Tf);mr("sector",dr);mr("ring",Cf);mr("polygon",Ef);mr("polyline",fn);mr("rect",De);mr("line",Ht);mr("bezierCurve",Co);mr("arc",Ao);var Ff={};function VL(t,e){for(var r=0;r<lt.length;r++){var i=lt[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 uS(t,e,r){var{labelFetcher:i,labelDataIndex:n,labelDimIndex:a}=t,o=e.normal,s;if(i)s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null);if(s==null)s=X(t.defaultText)?t.defaultText(n,t,r):t.defaultText;var l={normal:s};for(var u=0;u<lt.length;u++){var f=lt[u],c=e[f];l[f]=G(i?i.getFormattedLabel(n,f,null,a,c&&c.get("formatter")):null,s)}return l}function oi(t,e,r,i){r=r||Ff;var n=t instanceof Qe,a=!1;for(var o=0;o<So.length;o++){var s=e[So[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=n?t:t.getTextContent();if(a){if(!n){if(!l)l=new Qe,t.setTextContent(l);if(t.stateProxy)l.stateProxy=t.stateProxy}var u=uS(r,e),f=e.normal,c=!!f.getShallow("show"),p=ha(f,i&&i.normal,r,!1,!n);if(p.text=u.normal,!n)t.setTextConfig(fS(f,r,!1));for(var o=0;o<lt.length;o++){var h=lt[o],s=e[h];if(s){var v=l.ensureState(h),d=!!G(s.getShallow("show"),c);if(d!==c)v.ignore=!d;if(v.style=ha(s,i&&i[h],r,!0,!n),v.style.text=u[h],!n){var m=t.ensureState(h);m.textConfig=fS(s,r,!0)}}}if(l.silent=!!f.getShallow("silent"),l.style.x!=null)p.x=l.style.x;if(l.style.y!=null)p.y=l.style.y;if(l.ignore=!c,l.useStyle(p),l.dirty(),r.enableTextSetter)Po(l).setLabelText=function(g){var y=uS(r,e,g);VL(l,y)}}else if(l)l.ignore=!0;t.dirty()}function Yt(t,e){e=e||"label";var r={normal:t.getModel(e)};for(var i=0;i<lt.length;i++){var n=lt[i];r[n]=t.getModel([n,e])}return r}function ha(t,e,r,i,n){var a={};return HL(a,t,r,i,n),e&&N(a,e),a}function fS(t,e,r){e=e||{};var i={},n,a=t.getShallow("rotate"),o=G(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");if(n=t.getShallow("position")||(r?null:"inside"),n==="outside"&&(n=e.defaultOutsidePosition||"top"),n!=null)i.position=n;if(s!=null)i.offset=s;if(a!=null)a*=Math.PI/180,i.rotation=a;if(o!=null)i.distance=o;if(i.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null)i.autoOverflowArea=e.autoOverflowArea;if(e.layoutRect!=null)i.layoutRect=e.layoutRect;return i}function HL(t,e,r,i,n){r=r||Ff;var a=e.ecModel,o=a&&a.option.textStyle,s=GL(e),l;if(s){l={};var u="richInheritPlainLabel",f=G(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var p=e.getModel(["rich",c]);vS(l[c]={},p,o,e,f,r,i,n,!1,!0)}}if(l)t.rich=l;var h=e.get("overflow");if(h)t.overflow=h;var v=e.get("lineOverflow");if(v)t.lineOverflow=v;var d=t,m=e.get("minMargin");if(m!=null)m=!se(m)?0:m/2,d.margin=[m,m,m,m],d.__marginType=va.minMargin;else{var g=e.get("textMargin");if(g!=null)d.margin=qa(g),d.__marginType=va.textMargin}vS(t,e,o,null,null,r,i,n,!0,!1)}function GL(t){var e;while(t&&t!==t.ecModel){var r=(t.option||Ff).rich;if(r){e=e||{};var i=re(r);for(var n=0;n<i.length;n++){var a=i[n];e[a]=1}}t=t.parentModel}return e}var cS=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],pS=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],hS=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function vS(t,e,r,i,n,a,o,s,l,u){r=!o&&r||Ff;var f=a&&a.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),h=G(e.getShallow("opacity"),r.opacity);if(c==="inherit"||c==="auto"){if(c==="auto")Fe("color: 'auto'","color: 'inherit'");if(f)c=f;else c=null}if(p==="inherit"||p==="auto"){if(p==="auto")Fe("color: 'auto'","color: 'inherit'");if(f)p=f;else p=null}if(!s)c=c||r.color,p=p||r.textBorderColor;if(c!=null)t.fill=c;if(p!=null)t.stroke=p;var v=G(e.getShallow("textBorderWidth"),r.textBorderWidth);if(v!=null)t.lineWidth=v;var d=G(e.getShallow("textBorderType"),r.textBorderType);if(d!=null)t.lineDash=d;var m=G(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);if(m!=null)t.lineDashOffset=m;if(!o&&h==null&&!u)h=a&&a.defaultOpacity;if(h!=null)t.opacity=h;if(!o&&!s){if(t.fill==null&&a.inheritColor)t.fill=a.inheritColor}for(var g=0;g<cS.length;g++){var y=cS[g],_=n!==!1&&i?bt(e.getShallow(y),i.getShallow(y),r[y]):G(e.getShallow(y),r[y]);if(_!=null)t[y]=_}for(var g=0;g<pS.length;g++){var y=pS[g],_=e.getShallow(y);if(_!=null)t[y]=_}if(t.verticalAlign==null){var x=e.getShallow("baseline");if(x!=null)t.verticalAlign=x}if(!l||!a.disableBox){for(var g=0;g<hS.length;g++){var y=hS[g],_=e.getShallow(y);if(_!=null)t[y]=_}var S=e.getShallow("borderType");if(S!=null)t.borderDash=S;if((t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f){if(t.backgroundColor==="auto")Fe("backgroundColor: 'auto'","backgroundColor: 'inherit'");t.backgroundColor=f}if((t.borderColor==="auto"||t.borderColor==="inherit")&&f){if(t.borderColor==="auto")Fe("borderColor: 'auto'","borderColor: 'inherit'");t.borderColor=f}}}function dS(t,e){var r=e&&e.getModel("textStyle");return vt([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 Po=ee();function mS(t,e,r,i){if(!t)return;var n=Po(t);n.prevValue=n.value,n.value=r;var a=e.normal;if(n.valueAnimation=a.get("valueAnimation"),n.valueAnimation)n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=e}var va={minMargin:1,textMargin:2};var YL=["textStyle","color"],sd=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],ld=new Qe,WL=function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(YL):null)},t.prototype.getFont=function(){return dS({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")};for(var i=0;i<sd.length;i++)r[sd[i]]=this.getShallow(sd[i]);return ld.useStyle(r),ld.update(),ld.getBoundingRect()},t}(),gS=WL;var ud=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],XL=jr(ud),yS=function(){function t(){}return t.prototype.getLineStyle=function(e){return XL(this,e)},t}();var fd=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],qL=jr(fd),_S=function(){function t(){}return t.prototype.getItemStyle=function(e,r){return qL(this,e,r)},t}();var da=function(){function t(e,r,i){this.parentModel=r,this.ecModel=i,this.option=e}return t.prototype.init=function(e,r,i){var n=[];for(var a=3;a<arguments.length;a++)n[a-3]=arguments[a]},t.prototype.mergeOption=function(e,r){_e(this.option,e,!0)},t.prototype.get=function(e,r){if(e==null)return this.option;return 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;if(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(te(this.option))},t.prototype.parsePath=function(e){if(typeof e==="string")return e.split(".");return e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!ne.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;else 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;n++){if(!e[n])continue;if(i=i&&typeof i==="object"?i[e[n]]:null,i==null)break}if(i==null&&r)i=r._doGet(this.resolveParentPath(e),r.parentModel);return i},t}();mo(da);g_(da);ht(da,yS);ht(da,_S);ht(da,y_);ht(da,gS);var Re=da;var ZL=Math.round(Math.random()*10);function hn(t){return[t||"",ZL++].join("_")}function xS(t){var e={};t.registerSubTypeDefaulter=function(r,i){var n=Ft(r);e[n.main]=i},t.determineSubType=function(r,i){var n=i.type;if(!n){var a=Ft(r).main;if(t.hasSubTypes(r)&&e[a])n=e[a](i)}return n}}function SS(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),{graph:f,noEntryList:c}=u,p={};w(a,function(y){p[y]=!0});while(c.length){var h=c.pop(),v=f[h],d=!!p[h];if(d)s.call(l,h,v.originalDeps.slice()),delete p[h];w(v.successor,d?g:m)}w(p,function(){var y="";throw y=Zn("Circular dependency may exists: ",p,a,o),Error(y)});function m(y){if(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);if(u.entryCount=c.length,u.entryCount===0)s.push(l);w(c,function(p){if(ue(u.predecessor,p)<0)u.predecessor.push(p);var h=i(o,p);if(ue(h.successor,p)<0)h.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){if(!a[o])a[o]={predecessor:[],successor:[]};return a[o]}function n(a,o){var s=[];return w(a,function(l){ue(o,l)>=0&&s.push(l)}),s}}function bS(t,e){return _e(_e({},t,!0),e,!0)}var TS={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 wS={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Hf="ZH",pd="EN",Io=pd,Vf={},hd={},Gf=!ne.domSupported?Io:function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Io).toUpperCase();return t.indexOf(Hf)>-1?Hf:Io}();function CS(t,e){t=t.toUpperCase(),hd[t]=new Re(e),Vf[t]=e}function AS(t){if(V(t)){var e=Vf[t.toUpperCase()]||{};if(t===Hf||t===pd)return te(e);else return _e(te(e),te(Vf[Io]),!1)}else return _e(te(t),te(Vf[Io]),!1)}function ES(t){return hd[t]}function DS(){return hd[Io]}CS(pd,TS);CS(Hf,wS);var KL=null;function Ye(){return KL}function Yf(t,e){var r=Ye(),{breakOption:i,breakParsed:n}=e;if(!n&&r)n=r.parseAxisBreakOption(i,t);return n}function ma(t){var e=t.brk;return e?e.breaks:[]}function gr(t){var e=t.brk;return e?e.hasBreaks():!1}var qf=1000,Zf=qf*60,No=Zf*60,ar=No*24,vd=ar*365,jL={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})/},Xf={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},QL="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Wf="{yyyy}-{MM}-{dd}",dd={year:"{yyyy}",month:"{yyyy}-{MM}",day:Wf,hour:Wf+" "+Xf.hour,minute:Wf+" "+Xf.minute,second:Wf+" "+Xf.second,millisecond:QL},Wt=["year","month","day","hour","minute","second","millisecond"],MS=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function OS(t){return!V(t)&&!X(t)?$L(t):t}function $L(t){t=t||{};var e={},r=!0;return w(Wt,function(i){r&&(r=t[i]==null)}),w(Wt,function(i,n){var a=t[i];e[i]={};var o=null;for(var s=n;s>=0;s--){var l=Wt[s],u=W(a)&&!k(a)?a[l]:a,f=void 0;if(k(u))f=u.slice(),o=f[0]||"";else if(V(u))o=u,f=[o];else{if(o==null)o=Xf[i];else if(!jL[l].test(o))o=e[l][l][0]+" "+o;if(f=[o],r)f[1]="{primary|"+o+"}"}e[i][l]=f}}),e}function Ai(t,e){return t+="","0000".substr(0,e-t.length)+t}function Ro(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 LS(t){return t===Ro(t)}function PS(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ga(t,e,r,i){var n=Zr(t),a=n[md(r)](),o=n[jf(r)]()+1,s=Math.floor((o-1)/3)+1,l=n[Qf(r)](),u=n["get"+(r?"UTC":"")+"Day"](),f=n[$f(r)](),c=(f-1)%12+1,p=n[Jf(r)](),h=n[ec(r)](),v=n[tc(r)](),d=f>=12?"pm":"am",m=d.toUpperCase(),g=i instanceof Re?i:ES(i||Gf)||DS(),y=g.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),S=y.get("dayOfWeek"),b=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,d+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Ai(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,Ai(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ai(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ai(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ai(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Ai(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Ai(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ai(v,3)).replace(/{S}/g,v+"")}function IS(t,e,r,i,n){var a=null;if(V(r))a=r;else if(X(r)){var o={time:t.time,level:t.time?t.time.level:0},s=Ye();if(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=ya(t.value,n);a=r[f][f][0]}}return ga(new Date(t.value),a,n,i)}function ya(t,e){var r=Zr(t),i=r[jf(e)]()+1,n=r[Qf(e)](),a=r[$f(e)](),o=r[Jf(e)](),s=r[ec(e)](),l=r[tc(e)](),u=l===0,f=u&&s===0,c=f&&o===0,p=c&&a===0,h=p&&n===1,v=h&&i===1;if(v)return"year";else if(h)return"month";else if(p)return"day";else if(c)return"hour";else if(f)return"minute";else if(u)return"second";else return"millisecond"}function Kf(t,e,r){switch(e){case"year":t[gd(r)](0);case"month":t[yd(r)](1);case"day":t[_d(r)](0);case"hour":t[xd(r)](0);case"minute":t[Sd(r)](0);case"second":t[bd(r)](0)}return t}function md(t){return t?"getUTCFullYear":"getFullYear"}function jf(t){return t?"getUTCMonth":"getMonth"}function Qf(t){return t?"getUTCDate":"getDate"}function $f(t){return t?"getUTCHours":"getHours"}function Jf(t){return t?"getUTCMinutes":"getMinutes"}function ec(t){return t?"getUTCSeconds":"getSeconds"}function tc(t){return t?"getUTCMilliseconds":"getMilliseconds"}function NS(t){return t?"setUTCFullYear":"setFullYear"}function gd(t){return t?"setUTCMonth":"setMonth"}function yd(t){return t?"setUTCDate":"setDate"}function _d(t){return t?"setUTCHours":"setHours"}function xd(t){return t?"setUTCMinutes":"setMinutes"}function Sd(t){return t?"setUTCSeconds":"setSeconds"}function bd(t){return t?"setUTCMilliseconds":"setMilliseconds"}function wd(t){if(!ju(t))return V(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function rc(t,e){if(t=(t||"").toLowerCase().replace(/-(.)/g,function(r,i){return i.toUpperCase()}),e&&t)t=t.charAt(0).toUpperCase()+t.slice(1);return t}var ko=qa;function ic(t,e,r){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&vt(f)?f:"-"}function a(f){return qe(f)}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?Zr(t):t;if(!isNaN(+l))return ga(l,i,r);else if(s)return"-"}if(e==="ordinal")return Wa(t)?n(t):se(t)?a(t)?t+"":"-":"-";var u=Kr(t);return a(u)?wd(u):Wa(t)?n(t):typeof t==="boolean"?t+"":"-"}var RS=["a","b","c","d","e","f","g"],Td=function(t,e){return"{"+t+(e==null?"":e)+"}"};function nc(t,e,r){if(!k(e))e=[e];var i=e.length;if(!i)return"";var n=e[0].$vars||[];for(var a=0;a<n.length;a++){var o=RS[a];t=t.replace(Td(o),Td(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(Td(RS[l],s),r?it(u):u)}return t}function kS(t,e){var r=V(t)?{color:t,extraCssText:e}:t||{},{color:i,type:n}=r;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:'+it(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+it(i)+";"+(e||"")+'"></span>';else{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 Ir(t,e){return e=e||"transparent",V(t)?t:W(t)?t.colorStops&&(t.colorStops[0]||{}).color||e:e}var ac={},Cd={},JL=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=i(ac,!0),this._normalMasterList=i(Cd,!1);function i(n,a){var o=[];return w(n,function(s,l){var u=s.create(e,r);if(o=o.concat(u||[]),a)w(u,function(f){return I(!f.update)})}),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"){ac[e]=r;return}Cd[e]=r},t.get=function(e){return Cd[e]||ac[e]},t}();function eP(t){return!!ac[t]}var tP=1,Ed=2;function zS(t){I(!Ad.get(t.fullType)),Ad.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var Ad=Z();function sc(t){var e=t.getShallow("coord",!0),r=tP;if(e==null){var i=Ad.get(t.type);if(i&&i.getCoord2)r=Ed,e=i.getCoord2(t)}return{coord:e,from:r}}var Bo=0,oc=1,rP=2;function iP(t,e){var r=t.getShallow("coordinateSystem"),i=t.getShallow("coordinateSystemUsage",!0),n=i!=null,a=Bo;if(r){var o=t.mainType==="series";if(i==null)i=o?"data":"box";if(i==="data"){if(a=oc,!o){if(n&&e)pe('coordinateSystemUsage "data" is not supported in non-series components.');a=Bo}}else if(i==="box"){if(a=rP,!o&&!eP(r)){if(n&&e)pe('coordinateSystem "'+r+'" cannot be used'+(' as coordinateSystemUsage "box" for "'+t.type+'" yet.'));a=Bo}}}return{coordSysType:r,kind:a}}function US(t){var{targetModel:e,coordSysType:r,coordSysProvider:i,isDefaultDataCoordSys:n,allowNotFound:a}=t;I(!!r);var o=iP(e,!0),{kind:s,coordSysType:l}=o;if(n&&s!==oc)s=oc,l=r;if(s===Bo||l!==r)return Bo;var u=i(r,e);if(!u){if(!a)pe(r+" cannot be found for"+(" "+e.type+" (index: "+e.componentIndex+")."));return Bo}if(s===oc)I(e.mainType==="series"),e.coordinateSystem=u;else e.boxCoordinateSystem=u;return s}var al=JL;var uc=w,nP=["left","right","top","bottom","width","height"],lc=[["width","left","right"],["height","top","bottom"]];function FS(t,e,r,i,n){var a=0,o=0;if(i==null)i=1/0;if(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,v;if(t==="horizontal"){var d=f.width+(p?-p.x+f.x:0);if(h=a+d,h>i||l.newline)a=0,h=d,o+=s+r,s=f.height;else s=Math.max(s,f.height)}else{var m=f.height+(p?-p.y+f.y:0);if(v=o+m,v>n||l.newline)a+=s+r,o=0,v=m,s=f.width;else s=Math.max(s,f.width)}if(l.newline)return;l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=h+r:o=v+r})}var G5=Ae(FS,"vertical"),Y5=Ae(FS,"horizontal");function VS(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 aP(t,e){var r=Dd(t,e,{enableLayoutOnlyByCenter:!0}),i=t.getBoxLayoutParams(),n,a;if(r.type===ol.point)a=r.refPoint,n=_a(i,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=k(o)?o:[o,o];n=_a(i,r.refContainer),a=r.boxCoordFrom===Ed?r.refPoint:[Ce(s[0],n.width)+n.x,Ce(s[1],n.height)+n.y]}return{viewRect:n,center:a}}function HS(t,e){var r=aP(t,e),{viewRect:i,center:n}=r,a=t.get("radius");if(!k(a))a=[0,a];var o=Ce(i.width,e.getWidth()),s=Ce(i.height,e.getHeight()),l=Math.min(o,s),u=Ce(a[0],l/2),f=Ce(a[1],l/2);return{cx:n[0],cy:n[1],r0:u,r:f,viewRect:i}}function _a(t,e,r){r=ko(r||0);var{width:i,height:n}=e,a=Ce(t.left,i),o=Ce(t.top,n),s=Ce(t.right,i),l=Ce(t.bottom,n),u=Ce(t.width,i),f=Ce(t.height,n),c=r[2]+r[0],p=r[1]+r[3],h=t.aspect;if(isNaN(u))u=i-s-p-a;if(isNaN(f))f=n-l-c-o;if(h!=null){if(isNaN(u)&&isNaN(f))if(h>i/n)u=i*0.8;else f=n*0.8;if(isNaN(u))u=h*f;if(isNaN(f))f=u/h}if(isNaN(a))a=i-s-u-p;if(isNaN(o))o=n-l-f-c;switch(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}if(a=a||0,o=o||0,isNaN(u))u=i-p-a-(s||0);if(isNaN(f))f=n-c-o-(l||0);var v=new ae((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,f);return v.margin=r,v}var ol={rect:1,point:2};function Dd(t,e,r){var i,n,a,o=t.boxCoordinateSystem,s;if(o){var l=sc(t),{coord:u,from:f}=l;if(o.dataToLayout){a=ol.rect,s=f;var c=o.dataToLayout(u);i=c.contentRect||c.rect}else if(r&&r.enableLayoutOnlyByCenter&&o.dataToPoint)a=ol.point,s=f,n=o.dataToPoint(u);else pe(t.type+"["+t.componentIndex+"]"+(" layout based on "+o.type+" is not supported."))}if(a==null)a=ol.rect;if(a===ol.rect){if(!i)i={x:0,y:0,width:e.getWidth(),height:e.getHeight()};n=[i.x+i.width/2,i.y+i.height/2]}return{type:a,refContainer:i,refPoint:n,boxCoordFrom:s}}function vn(t){var e=t.layoutMode||t.constructor.layoutMode;return W(e)?e:e?{type:e}:null}function Nr(t,e,r){var i=r&&r.ignoreSize;!k(i)&&(i=[i,i]);var n=o(lc[0],0),a=o(lc[1],1);l(lc[0],t,n),l(lc[1],t,a);function o(u,f){var c={},p=0,h={},v=0,d=2;if(uc(u,function(y){h[y]=t[y]}),uc(u,function(y){Be(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&p++,s(h,y)&&v++}),i[f]){if(s(e,u[1]))h[u[2]]=null;else if(s(e,u[2]))h[u[1]]=null;return h}if(v===d||!p)return h;else if(p>=d)return c;else{for(var m=0;m<u.length;m++){var g=u[m];if(!Be(c,g)&&Be(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){uc(u,function(p){f[p]=c[p]})}}function dn(t){return oP({},t)}function oP(t,e){return e&&t&&uc(nP,function(r){Be(e,r)&&(t[r]=e[r])}),t}var lP=ee(),zo=function(t){P(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=vn(this),a=n?dn(r):{},o=i.getTheme();if(_e(r,o.get(this.mainType)),_e(r,this.getDefaultOption()),n)Nr(r,a,n)},e.prototype.mergeOption=function(r,i){_e(this.option,r,!0);var n=vn(this);if(n)Nr(this.option,r,n)},e.prototype.optionUpdated=function(r,i){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!m_(r))return r.defaultOption;var i=lP(this);if(!i.defaultOption){var n=[],a=r;while(a){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}var s={};for(var l=n.length-1;l>=0;l--)s=_e(s,n[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(r,i){var n=r+"Index",a=r+"Id";return Ji(this.ecModel,r,{index:this.get(n,!0),id:this.get(a,!0)},i)},e.prototype.getBoxLayoutParams=function(){return VS(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}(Re);af(zo,Re);tn(zo);xS(zo);SS(zo,uP);function uP(t){var e=[];if(w(zo.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=U(e,function(r){return Ft(r).main}),t!=="dataset"&&ue(e,"dataset")<=0)e.unshift("dataset");return e}var be=zo;var xa={color:{},darkColor:{},size:{}},Ze=xa.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(Ze,{primary:Ze.neutral80,secondary:Ze.neutral70,tertiary:Ze.neutral60,quaternary:Ze.neutral50,disabled:Ze.neutral20,border:Ze.neutral30,borderTint:Ze.neutral20,borderShade:Ze.neutral40,background:Ze.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Ze.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Ze.neutral70,axisLineTint:Ze.neutral40,axisTick:Ze.neutral70,axisTickMinor:Ze.neutral60,axisLabel:Ze.neutral70,axisSplitLine:Ze.neutral15,axisMinorSplitLine:Ze.neutral05});for(Ei in Ze)if(Ze.hasOwnProperty(Ei))if(fc=Ze[Ei],Ei==="theme")xa.darkColor.theme=Ze.theme.slice();else if(Ei==="highlight")xa.darkColor.highlight="rgba(255,231,130,0.4)";else if(Ei.indexOf("accent")===0)xa.darkColor[Ei]=Ss(fc,null,function(t){return t*0.5},function(t){return Math.min(1,1.3-t)});else xa.darkColor[Ei]=Ss(fc,null,function(t){return t*0.9},function(t){return 1-Math.pow(t,1.5)});var fc,Ei;xa.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var he=xa;var GS="";if(typeof navigator<"u")GS=navigator.platform||"";var Uo="rgba(0, 0, 0, 0.2)",YS=he.color.theme[0],fP=Ss(YS,null,null,0.9),cc={darkMode:"auto",colorBy:"series",color:he.color.theme,gradientColor:[fP,YS],aria:{decal:{decals:[{color:Uo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Uo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:0.8},{color:Uo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Uo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Uo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Uo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:0.75}]}},textStyle:{fontFamily:GS.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1000,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2000,progressiveThreshold:3000,progressive:400,hoverLayerThreshold:3000,useUTC:!1};var ot={Must:1,Might:2,Not:3},WS=ee();function XS(t){WS(t).datasetMap=Z()}function qS(t,e,r){var i={},n=pc(e);if(!n||!t)return i;var a=[],o=[],s=e.ecModel,l=WS(s).datasetMap,u=n.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),w(t,function(d,m){var g=W(d)?d:t[m]={name:d};if(g.type==="ordinal"&&f==null)f=m,c=v(g);i[g.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});w(t,function(d,m){var g=d.name,y=v(d);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(d,m,g){for(var y=0;y<g;y++)d.push(m+y)}function v(d){var m=d.dimsDef;return m?m.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function ZS(t,e,r){var i={},n=pc(t);if(!n)return i;var{sourceFormat:a,dimensionsDefine:o}=e,s;if(a===wt||a===Vt)w(o,function(f,c){if((W(f)?f.name:f)==="name")s=c});var l=function(){var f={},c={},p=[];for(var h=0,v=Math.min(5,r);h<v;h++){var d=jS(e.data,a,e.seriesLayoutBy,o,e.startIndex,h);p.push(d);var m=d===ot.Not;if(m&&f.v==null&&h!==s)f.v=h;if(f.n==null||f.n===f.v||!m&&p[f.n]===ot.Not)f.n=h;if(g(f)&&p[f.n]!==ot.Not)return f;if(!m){if(d===ot.Might&&c.v==null&&h!==s)c.v=h;if(c.n==null||c.n===c.v)c.n=h}}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(c)?c:null}();if(l){i.value=[l.v];var u=s!=null?s:l.n;i.itemName=[u],i.seriesName=[u]}return i}function pc(t){var e=t.get("data",!0);if(!e)return Ji(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},mt).models[0]}function KS(t){if(!t.get("transform",!0)&&!t.get("fromTransformResult",!0))return[];return Ji(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},mt).models}function hc(t,e){return jS(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function jS(t,e,r,i,n,a){var o,s=5;if(ke(t))return ot.Not;var l,u;if(i){var f=i[a];if(W(f))l=f.name,u=f.type;else if(V(f))l=f}if(u!=null)return u==="ordinal"?ot.Must:ot.Not;if(e===tt){var c=t;if(r===ii){var p=c[a];for(var 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 v=c[n+h];if(v&&(o=x(v[a]))!=null)return o}}else if(e===wt){var d=t;if(!l)return ot.Not;for(var h=0;h<d.length&&h<s;h++){var m=d[h];if(m&&(o=x(m[l]))!=null)return o}}else if(e===Vt){var g=t;if(!l)return ot.Not;var p=g[l];if(!p||ke(p))return ot.Not;for(var h=0;h<p.length&&h<s;h++)if((o=x(p[h]))!=null)return o}else if(e===at){var y=t;for(var h=0;h<y.length&&h<s;h++){var m=y[h],_=yi(m);if(!k(_))return ot.Not;if((o=x(_[a]))!=null)return o}}function x(S){var b=V(S);if(S!=null&&isFinite(Number(S))&&S!=="")return b?ot.Might:ot.Not;else if(b&&S!=="-")return ot.Must}return ot.Not}var cP=Z();function QS(t,e,r){var i=cP.get(e);if(!i)return r;var n=i(t);if(!n)return r;for(var a=0;a<n.length;a++)I($i(n[a]));return r.concat(n)}var $S=ee(),pP=ee(),sl=function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,i){var n=Ne(this.get("color",!0)),a=this.get("colorLayer",!0);return JS(this,$S,n,a,e,r,i)},t.prototype.clearColorPalette=function(){vP(this,$S)},t}();function Md(t,e,r,i){var n=Ne(t.get(["aria","decal","decals"]));return JS(t,pP,n,null,e,r,i)}function hP(t,e){var r=t.length;for(var i=0;i<r;i++)if(t[i].length>e)return t[i];return t[r-1]}function JS(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:hP(i,o);if(f=f||r,!f||!f.length)return;var c=f[l];if(n)u[n]=c;return s.paletteIdx=(l+1)%f.length,c}function vP(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var vc,ll,eb,Od="\x00_ec_inner",tb=1,dP={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",matrix:"MatrixComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},mP={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",chord:"ChordChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},dc={};function gP(t){w(t,function(e,r){if(!be.hasClass(r)){var i=dP[r];if(i&&!dc[i])pe("Component "+r+` is used but not imported.
|
|
23
|
+
*/var Rs={},H0={};function DM(t){delete H0[t]}function MM(t){if(!t)return!1;if(typeof t==="string")return oo(t,1)<Ps;else if(t.colorStops){var e=t.colorStops,r=0,i=e.length;for(var n=0;n<i;n++)r+=oo(e[n].color,1);return r/=i,r<Ps}return!1}var OM=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 Ky,o=i.renderer||"canvas";if(!Rs[o])o=re(Rs)[0];if(!Rs[o])throw Error("Renderer '"+o+"' is not imported. Please import it first.");i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Rs[o](r,a,i,e),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!ne.node&&!ne.worker&&!l?new D0(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,c=f==null||f==="auto"?ne.touchEventsSupported:!!f,p=44,h;if(c)h=G(i.pointerSize,p);if(this.handler=new Gy(a,s,u,s.root,h),this.animation=new T0({stage:{update:l?null:function(){return n._flush(!1)}}}),!l)this.animation.start()}return t.prototype.add=function(e){if(this._disposed||!e)return;this.storage.addRoot(e),e.addSelfToZr(this),this.refresh()},t.prototype.remove=function(e){if(this._disposed||!e)return;this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh()},t.prototype.configLayer=function(e,r){if(this._disposed)return;if(this.painter.configLayer)this.painter.configLayer(e,r);this.refresh()},t.prototype.setBackgroundColor=function(e){if(this._disposed)return;if(this.painter.setBackgroundColor)this.painter.setBackgroundColor(e);this.refresh(),this._backgroundColor=e,this._darkMode=MM(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){if(this._disposed)return;this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){if(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(){if(this._disposed)return;this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){if(this._disposed)return;this._flush(!0)},t.prototype._flush=function(e){var r,i=Gn(),n=this._needsRefresh,a=this._needsRefreshHover;if(n||a)r=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:a});var o=Gn();if(r)this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i});else if(this._sleepAfterStill>0){if(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill)this.animation.stop()}},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){if(this._disposed)return;this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){if(this._disposed)return;this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){if(this._disposed)return;e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},t.prototype.clearAnimation=function(){if(this._disposed)return;this.animation.clear()},t.prototype.getWidth=function(){if(this._disposed)return;return this.painter.getWidth()},t.prototype.getHeight=function(){if(this._disposed)return;return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){if(this._disposed)return;this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(this._disposed)return;return this.handler.findHover(e,r)},t.prototype.on=function(e,r,i){if(!this._disposed)this.handler.on(e,r,i);return this},t.prototype.off=function(e,r){if(this._disposed)return;this.handler.off(e,r)},t.prototype.trigger=function(e,r){if(this._disposed)return;this.handler.trigger(e,r)},t.prototype.clear=function(){if(this._disposed)return;var e=this.storage.getRoots();for(var r=0;r<e.length;r++)if(e[r]instanceof we)e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.dispose=function(){if(this._disposed)return;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,DM(this.id)},t}();function tv(t,e){var r=new OM(uu(),t,e);return H0[r.id]=r,r}function G0(t,e){Rs[t]=e}var ev;function Y0(t){if(typeof ev==="function")return ev(t)}function W0(t){ev=t}var X0=0.0001,q0=20;function PM(t){return t.replace(/^\s+|\s+$/g,"")}var{min:Ge,max:ve,abs:Ie,round:er,floor:qr,ceil:$i,pow:Qi,log:po,LN10:rv,PI:IM,random:NM}=Math;function ks(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;else if(t>=a)return s}else if(t>=n)return o;else if(t<=a)return s}else{if(t===n)return o;if(t===a)return s}return(t-n)/l*u+o}var Ce=RM;function RM(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 Ku(t,e,r)}function Ku(t,e,r){if(V(t)){if(kM(t))return parseFloat(t)/100*e+(r||0);return parseFloat(t)}return t==null?NaN:+t}function kM(t){return!!PM(t).match(/%$/)}function de(t,e,r){if(I(e!=null),isNaN(e))return r?""+t:+t;return e=Ge(ve(0,e),q0),t=(+t).toFixed(e),r?t:+t}function ho(t){return t.sort(function(e,r){return e-r}),t}function Ut(t){if(t=+t,isNaN(t))return 0;if(t>0.00000000000001){var e=1;for(var r=0;r<15;r++,e*=10)if(er(t*e)/e===t)return r}return BM(t)}function BM(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 ve(0,o-i)}function Z0(t,e,r){var i=Ie(t[1]-t[0]);if(!isFinite(i)||i===0)return NaN;var n=po(2*Ie(r||1)*Ie(i))/rv,a=po(Ie(e))/rv,o=ve(0,$i(-n+a));if(!isFinite(o))o=NaN;return o}function K0(t,e){var r=$t(t,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];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 qr(h)}),s=$t(o,function(h,v){return h+v},0),l=U(n,function(h,v){return h-o[v]});while(s<a){var u=Number.NEGATIVE_INFINITY,f=null;for(var c=0,p=l.length;c<p;++c)if(l[c]>u)u=l[c],f=c;++o[f],l[f]=0,++s}return U(o,function(h){return h/i})}function j0(t,e){var r=ve(Ut(t),Ut(e)),i=t+e;return r>q0?i:de(i,r)}var iv=Qi(2,53)-1;function nv(t){var e=IM*2;return(t%e+e)%e}function Bs(t){return t>-X0&&t<X0}var zM=/^(?:(\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 Zr(t){if(t instanceof Date)return t;else if(V(t)){var e=zM.exec(t);if(!e)return new Date(NaN);if(!e[8])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{var r=+e[4]||0;if(e[8].toUpperCase()!=="Z")r-=+e[8].slice(0,3);return 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 if(t==null)return new Date(NaN);return new Date(er(t))}function ju(t){return Qi(10,$u(t))}function $u(t){if(t===0)return 0;var e=qr(po(t)/rv);if(t/Qi(10,e)>=10)e++;return e}var av=2;function Zn(t,e){var r=$u(t),i=Qi(10,r),n=t/i,a;if(e===av)a=1;else if(e)if(n<1.5)a=1;else if(n<2.5)a=2;else if(n<4)a=3;else if(n<7)a=5;else a=10;else if(n<1)a=1;else if(n<2)a=2;else if(n<3)a=3;else if(n<5)a=5;else a=10;return t=a*i,de(t,-r)}function Kr(t){var e=parseFloat(t);return e==t&&(e!==0||!V(t)||t.indexOf("x")<=0)?e:NaN}function Qu(t){return!isNaN(Kr(t))}function zs(){return er(NM()*9)}function $0(t,e){if(e===0)return t;return $0(e,t%e)}function ov(t,e){if(t==null)return e;if(e==null)return t;return t*e/$0(t,e)}function qe(t){return t!=null&&isFinite(t)}var UM="[ECharts] ",Q0={},FM=typeof console<"u"&&console.warn&&console.log;function ef(t,e,r){if(FM){if(r){if(Q0[e])return;Q0[e]=!0}console[t](UM+e)}}function tf(t,e){ef("log",t,e)}function Ue(t,e){ef("warn",t,e)}function pe(t,e){ef("error",t,e)}function tr(t){ef("warn","DEPRECATED: "+t,!0)}function Fe(t,e,r){tr((r?"["+r+"]":"")+(t+" is deprecated; use "+e+" instead."))}function Kn(){var t=[];for(var e=0;e<arguments.length;e++)t[e]=arguments[e];var r="",i=function(n){return n===void 0?"undefined":n===1/0?"Infinity":n===-1/0?"-Infinity":Vr(n)?"NaN":n instanceof Date?"Date("+n.toISOString()+")":X(n)?"function () { ... }":by(n)?n+"":null};return r=U(t,function(n){if(V(n))return n;else{var a=i(n);if(a!=null)return a;else if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(n,function(o,s){var l=i(s);return l==null?s:l})}catch(o){return"?"}else return"?"}}).join(" "),r}function st(t){throw Error(t)}function J0(t,e,r){return(e-t)*r+t}var r_="series\x00",VM="\x00_ec_\x00";function Ne(t){return t instanceof Array?t:t==null?[]:[t]}function jn(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];if(!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a))t.emphasis[e][a]=t[e][a]}}}var sv=["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 yi(t){return W(t)&&!k(t)&&!(t instanceof Date)?t.value:t}function i_(t){return W(t)&&!(t instanceof Array)}function n_(t,e,r){var i=r==="normalMerge",n=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=Z();w(e,function(l,u){if(!W(l)){e[u]=null;return}if(l.id!=null&&!t_(l.id))e_(l.id);if(l.name!=null&&!t_(l.name))e_(l.name)});var s=HM(t,o,r);if(i||n)GM(s,t,o,e);if(i)YM(s,e);if(i||n)WM(s,e,n);else if(a)XM(s,e);return qM(s),s}function HM(t,e,r){var i=[];if(r==="replaceAll")return i;for(var n=0;n<t.length;n++){var a=t[n];if(a&&a.id!=null)e.set(a.id,n);i.push({existing:r==="replaceMerge"||Ji(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function GM(t,e,r,i){w(i,function(n,a){if(!n||n.id==null)return;var o=Us(n.id),s=r.get(o);if(s!=null){var l=t[s];I(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],i[a]=null}})}function YM(t,e){w(e,function(r,i){if(!r||r.name==null)return;for(var n=0;n<t.length;n++){var a=t[n].existing;if(!t[n].newOption&&a&&(a.id==null||r.id==null)&&!Ji(r)&&!Ji(a)&&a_("name",a,r)){t[n].newOption=r,e[i]=null;return}}})}function WM(t,e,r){w(e,function(i){if(!i)return;var n,a=0;while((n=t[a])&&(n.newOption||Ji(n.existing)||n.existing&&i.id!=null&&!a_("id",i,n.existing)))a++;if(n)n.newOption=i,n.brandNew=r;else t.push({newOption:i,brandNew:r,existing:null,keyInfo:null});a++})}function XM(t,e){w(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function qM(t){var e=Z();w(t,function(r){var i=r.existing;i&&e.set(i.id,r)}),w(t,function(r){var i=r.newOption;I(!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{existing:n,newOption:a,keyInfo:o}=r;if(!W(a))return;if(o.name=a.name!=null?Us(a.name):n?n.name:r_+i,n)o.id=Us(n.id);else if(a.id!=null)o.id=Us(a.id);else{var s=0;do o.id="\x00"+o.name+"\x00"+s++;while(e.get(o.id))}e.set(o.id,r)})}function a_(t,e,r){var i=rr(e[t],null),n=rr(r[t],null);return i!=null&&n!=null&&i===n}function Us(t){if(t==null)throw Error();return rr(t,"")}function rr(t,e){if(t==null)return e;return V(t)?t:se(t)||Xa(t)?t+"":e}function e_(t){Ue("`"+t+"` is invalid id or name. Must be a string or number.")}function t_(t){return Xa(t)||Qu(t)}function rf(t){var e=t.name;return!!(e&&e.indexOf(r_))}function Ji(t){return t&&t.id!=null&&Us(t.id).indexOf(VM)===0}function o_(t,e,r){w(t,function(i){var n=i.newOption;if(W(n))i.keyInfo.mainType=e,i.keyInfo.subType=ZM(e,n,i.existing,r)})}function ZM(t,e,r,i){var n=e.type?e.type:r?r.subType:i.determineSubType(t,e);return n}function cr(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;else if(e.dataIndex!=null)return k(e.dataIndex)?U(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);else if(e.name!=null)return k(e.name)?U(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function ee(){var t="__ec_inner_"+KM++;return function(e){return e[t]||(e[t]={})}}var KM=zs();function nf(t,e,r){var i=Fs(e,r),{mainTypeSpecified:n,queryOptionMap:a,others:o}=i,s=o,l=r?r.defaultMainType:null;if(!n&&l)a.set(l,{});return 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 Fs(t,e){var r;if(V(t)){var i={};i[t+"Index"]=0,r=i}else r=t;var n=Z(),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&&ue(e.includeMainTypes,f)<0)return;o=o||!!f;var p=n.get(f)||n.set(f,{});p[c]=s}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var mt={useDefault:!0,enableAll:!1,enableNone:!1};function en(t,e,r,i){i=i||mt;var{index:n,id:a,name:o}=r,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;else pe('`"none"` or `false` is not a valid value on index option.'),n=-1;if(n==="all")if(i.enableAll)n=a=o=null;else pe('`"all"` is not a valid value on index option.'),n=-1;return s.models=t.queryComponents({mainType:e,index:n,id:a,name:o}),s}function s_(t,e,r){I(e);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 lv(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function l_(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function u_(t){if(t==="auto")return ne.domSupported?"html":"richText";else return t||"html"}function uv(t,e,r,i,n){var a=e==null||e==="auto";if(i==null)return i;if(se(i)){var o=J0(r||0,i,n);return de(o,a?Math.max(Ut(r||0),Ut(i)):e)}else if(V(i))return n<1?r:i;else{var s=[],l=r,u=i,f=Math.max(l?l.length:0,u.length);for(var 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,v=u[c],o=J0(h,v,n);s[c]=de(o,a?Math.max(Ut(h),Ut(v)):e)}}return s}}var $U=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!=null?i:n>0?e.length:0,this.item=null,this.key=NaN,this},t.prototype.next=function(){if(this._step>0?this._idx<this._end:this._idx>=this._end)return this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0;return!1},t}();function gt(){return[1/0,-1/0]}function Vs(t,e){if(Or(e))e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e)}function fv(t,e){if(Or(e)&&e<t[0])t[0]=e}function cv(t,e){if(Or(e)&&e>t[1])t[1]=e}function f_(t,e){if(_i(e[0],e[1]))e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])}function Or(t){return t!=null&&isFinite(t)}function _i(t,e){return Or(t)&&Or(e)&&t<=e}function c_(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function p_(t){if(_i(t[0],t[1])&&t[0]>t[1])t[0]=t[1]}function af(){var t="__ec_once_"+jM++;return function(e,r){if(I(e),!Be(e,t))e[t]=1,r()}}var jM=zs();function vo(t,e,r){var i=Z(),n=0;if(w(t,function(a){var o=e(a);I(V(o));var s=i.get(o)||0;if(r)r(a,s);if(!s&&!r)t[n++]=a;i.set(o,s+1)}),!r)t.length=n}function h_(t){return I(t.value!=null),t.value+""}function v_(t){return I(t!=null),t+""}function d_(t,e){return G(e,!0)?t.seriesIndex+2:0}function of(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 m_(t,e){return{seriesType:t,overallReset:e}}function mo(t){return{overallReset:t}}var $M=".",$n="___EC__COMPONENT__CONTAINER___",g_="___EC__EXTENDED_CLASS___";function Ft(t){var e={main:"",sub:""};if(t){var r=t.split($M);e.main=r[0]||"",e.sub=r[1]||""}return e}function QM(t){I(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function y_(t){return!!(t&&t[g_])}function go(t,e){t.$constructor=t,t.extend=function(r){w(e,function(a){if(!r[a])console.warn("Method `"+a+"` should be implemented"+(r.type?" in "+r.type:"")+".")});var i=this,n;if(JM(i))n=function(a){P(o,a);function o(){return a.apply(this,arguments)||this}return o}(i);else n=function(){(r.$constructor||i).apply(this,arguments)},xy(n,this);return N(n.prototype,r),n[g_]=!0,n.extend=this.extend,n.superCall=tO,n.superApply=rO,n.superClass=i,n}}function JM(t){return X(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function sf(t,e){t.extend=e.extend}var eO=Math.round(Math.random()*10);function __(t){var e=["__\x00is_clz",eO++].join("_");t.prototype[e]=!0,I(!t.isInstance,'The method "is" can not be defined.'),t.isInstance=function(r){return!!(r&&r[e])}}function tO(t,e){var r=[];for(var i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,r)}function rO(t,e,r){return this.superClass.prototype[e].apply(t,r)}function rn(t){var e={};t.registerClass=function(i){var n=i.type||i.prototype.type;if(n){QM(n),i.prototype.type=n;var a=Ft(n);if(!a.sub){if(e[a.main])console.warn(a.main+" exists.");e[a.main]=i}else if(a.sub!==$n){var o=r(a);o[a.sub]=i}}return i},t.getClass=function(i,n,a){var o=e[i];if(o&&o[$n])o=n?o[n]:null;if(a&&!o)throw Error(!n?i+".type should be specified.":"Component "+i+"."+(n||"")+" is used but not imported.");return o},t.getClassesByMainType=function(i){var n=Ft(i),a=[],o=e[n.main];if(o&&o[$n])w(o,function(s,l){l!==$n&&a.push(s)});else a.push(o);return a},t.hasClass=function(i){var n=Ft(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=Ft(i),a=e[n.main];return a&&a[$n]};function r(i){var n=e[i.main];if(!n||!n[$n])n=e[i.main]={},n[$n]=!0;return n}}function jr(t,e){for(var r=0;r<t.length;r++)if(!t[r][1])t[r][1]=t[r][0];return e=e||!1,function(i,n,a){var o={};for(var s=0;s<t.length;s++){var l=t[s][1];if(n&&ue(n,l)>=0||a&&ue(a,l)<0)continue;var u=i.getShallow(l,e);if(u!=null)o[t[s][0]]=u}return o}}var iO=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],nO=jr(iO),x_=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return nO(this,e,r)},t}();var hv=new Wr(50);function b_(t){if(typeof t==="string"){var e=hv.get(t);return e&&e.image}else return t}function Hs(t,e,r,i,n){if(!t)return e;else if(typeof t==="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=hv.get(t),o={hostEl:r,cb:i,cbPayload:n};if(a)e=a.image,!yo(e)&&a.pending.push(o);else e=St.loadImage(t,S_,S_),e.__zrImageSrc=t,hv.put(t,e.__cachedImgObj={image:e,pending:[o]});return e}else return t}function S_(){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 yo(t){return t&&t.width&&t.height}var vv=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function oO(t,e,r,i,n,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
|
|
24
|
+
`);a=A_(r,i,n,a);var s=!1,l={};for(var u=0,f=o.length;u<f;u++)E_(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
|
|
25
|
+
`),t.isTruncated=s}function A_(t,e,r,i){i=i||{};var n=N({},i);r=G(r,"..."),n.maxIterations=G(i.maxIterations,2);var a=n.minChar=G(i.minChar,0),o=n.fontMeasureInfo=Dr(e),s=o.asciiCharWidth;n.placeholder=G(i.placeholder,"");var l=t=Math.max(0,t-1);for(var u=0;u<a&&l>=s;u++)l-=s;var f=Mr(o,r);if(f>l)r="",f=0;return l=t-f,n.ellipsis=r,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=t,n}function E_(t,e,r){var{containerWidth:i,contentWidth:n,fontMeasureInfo:a}=r;if(!i){t.textLine="",t.isTruncated=!1;return}var o=Mr(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=Mr(a,e)}if(e==="")e=r.placeholder;t.textLine=e,t.isTruncated=!0}function sO(t,e,r){var i=0,n=0;for(var a=t.length;n<a&&i<e;n++)i+=Zh(r,t.charCodeAt(n));return n}function D_(t,e,r,i){var n=gv(t),{overflow:a,padding:o}=e,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=a==="truncate",c=Xn(u),p=G(e.lineHeight,c),h=e.lineOverflow==="truncate",v=!1,d=e.width;if(d==null&&r!=null)d=r-s;var m=e.height;if(m==null&&i!=null)m=i-l;var g;if(d!=null&&(a==="break"||a==="breakAll"))g=n?O_(n,e.font,d,a==="breakAll",0).lines:[];else g=n?n.split(`
|
|
26
|
+
`):[];var y=g.length*p;if(m==null)m=y;if(y>m&&h){var _=Math.floor(m/p);v=v||g.length>_,g=g.slice(0,_),y=g.length*p}if(n&&f&&d!=null){var x=A_(d,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={};for(var b=0;b<g.length;b++)E_(S,g[b],x),g[b]=S.textLine,v=v||S.isTruncated}var T=m,A=0,C=Dr(u);for(var b=0;b<g.length;b++)A=Math.max(Mr(C,g[b]),A);if(d==null)d=A;var E=d;return T+=l,E+=s,{lines:g,height:m,outerWidth:E,outerHeight:T,lineHeight:p,calculatedLineHeight:c,contentWidth:A,contentHeight:y,width:d,isTruncated:v}}var lO=function(){function t(){}return t}(),T_=function(){function t(e){if(this.tokens=[],e)this.tokens=e}return t}(),uO=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 M_(t,e,r,i,n){var a=new uO,o=gv(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;if(f==null&&r!=null)f=r-l;var c=e.height;if(c==null&&i!=null)c=i-u;var p=e.overflow,h=(p==="break"||p==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:p==="breakAll"}:null,v=vv.lastIndex=0,d;while((d=vv.exec(o))!=null){var m=d.index;if(m>v)dv(a,o.substring(v,m),e,h);dv(a,d[2],e,h,d[1]),v=vv.lastIndex}if(v<o.length)dv(a,o.substring(v,o.length),e,h);var g=[],y=0,_=0,x=p==="truncate",S=e.lineOverflow==="truncate",b={};function T(ye,We,He){ye.width=We,ye.lineHeight=He,y+=He,_=Math.max(_,We)}e:for(var A=0;A<a.lines.length;A++){var C=a.lines[A],E=0,D=0;for(var O=0;O<C.tokens.length;O++){var M=C.tokens[O],L=M.styleName&&e.rich[M.styleName]||{},B=M.textPadding=L.padding,R=B?B[1]+B[3]:0,F=M.font=L.font||e.font;M.contentHeight=Xn(F);var z=G(L.height,M.contentHeight);if(M.innerHeight=z,B&&(z+=B[0]+B[2]),M.height=z,M.lineHeight=bt(L.lineHeight,e.lineHeight,z),M.align=L&&L.align||n,M.verticalAlign=L&&L.verticalAlign||"middle",S&&c!=null&&y+M.lineHeight>c){var H=a.lines.length;if(O>0)C.tokens=C.tokens.slice(0,O),T(C,D,E),a.lines=a.lines.slice(0,A+1);else a.lines=a.lines.slice(0,A);a.isTruncated=a.isTruncated||a.lines.length<H;break e}var Y=L.width,q=Y==null||Y==="auto";if(typeof Y==="string"&&Y.charAt(Y.length-1)==="%")M.percentWidth=Y,g.push(M),M.contentWidth=Mr(Dr(F),M.text);else{if(q){var Q=L.backgroundColor,J=Q&&Q.image;if(J){if(J=b_(J),yo(J))M.width=Math.max(M.width,J.width*z/J.height)}}var j=x&&f!=null?f-D:null;if(j!=null&&j<M.width)if(!q||j<R)M.text="",M.width=M.contentWidth=0;else oO(b,M.text,j-R,F,e.ellipsis,{minChar:e.truncateMinChar}),M.text=b.text,a.isTruncated=a.isTruncated||b.isTruncated,M.width=M.contentWidth=Mr(Dr(F),M.text);else M.contentWidth=Mr(Dr(F),M.text)}M.width+=R,D+=M.width,L&&(E=Math.max(E,M.lineHeight))}T(C,D,E)}a.outerWidth=a.width=G(f,_),a.outerHeight=a.height=G(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var A=0;A<g.length;A++){var M=g[A],ce=M.percentWidth;M.width=parseInt(ce,10)/100*a.width}return a}function dv(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 v=Er(o.width,i.width)+h;if(s.length>0){if(v+i.accumWidth>i.width)f=e.split(`
|
|
27
|
+
`),u=!0}i.accumWidth=v}else{var d=O_(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=d.accumWidth+h,c=d.linesWidths,f=d.lines}}if(!f)f=e.split(`
|
|
28
|
+
`);var m=Dr(l);for(var g=0;g<f.length;g++){var y=f[g],_=new lO;if(_.styleName=n,_.text=y,_.isLineHolder=!y&&!a,typeof o.width==="number")_.width=o.width;else _.width=c?c[g]:Mr(m,y);if(!g&&!u){var x=(s[s.length-1]||(s[0]=new T_)).tokens,S=x.length;S===1&&x[0].isLineHolder?x[0]=_:(y||!S||a)&&x.push(_)}else s.push(new T_([_]))}}function fO(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=$t(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function pO(t){if(fO(t)){if(cO[t])return!0;return!1}return!0}function O_(t,e,r,i,n){var a=[],o=[],s="",l="",u=0,f=0,c=Dr(e);for(var p=0;p<t.length;p++){var h=t.charAt(p);if(h===`
|
|
29
|
+
`){if(l)s+=l,f+=u;a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=Zh(c,h.charCodeAt(0)),d=i?!1:!pO(h);if(!a.length?n+f+v>r:f+v>r){if(!f)if(d)a.push(l),o.push(u),l=h,u=v;else a.push(h),o.push(v);else if(s||l)if(d){if(!s)s=l,l="",u=0,f=u;a.push(s),o.push(f-u),l+=h,u+=v,s="",f=u}else{if(l)s+=l,l="",u=0;a.push(s),o.push(f),s=h,f=v}continue}if(f+=v,d)l+=h,u+=v;else{if(l)s+=l,l="",u=0;s+=h}}if(l)s+=l;if(s)a.push(s),o.push(f);if(a.length===1)f+=n;return{accumWidth:f,lines:a,linesWidths:o}}function mv(t,e,r,i,n,a){if(t.baseX=r,t.baseY=i,t.outerWidth=t.outerHeight=null,!e)return;var o=e.width*2,s=e.height*2;ae.set(w_,ji(r,o,n),gi(i,s,a),o,s),ae.intersect(e,w_,null,C_);var l=C_.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=ji(l.x,l.width,n,!0),t.baseY=gi(l.y,l.height,a,!0)}var w_=new ae(0,0,0,0),C_={outIntersectRect:{},clamp:!0};function gv(t){return t!=null?t+="":t=""}function L_(t){var e=gv(t.text),r=t.font,i=Mr(Dr(r),e),n=Xn(r);return lf(t,i,n,null)}function lf(t,e,r,i){var n=new ae(ji(t.x||0,e,t.textAlign),gi(t.y||0,r,t.textBaseline),e,r),a=i!=null?i:yv(t)?t.lineWidth:0;if(a>0)n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a;return n}function yv(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var Sv="__zr_style_"+Math.round(Math.random()*10),$r={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Qn={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};$r[Sv]=!0;var P_=["z","z2","invisible"],hO=["invisible"],vO=function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){var i=re(r);for(var n=0;n<i.length;n++){var a=i[n];if(a==="style")this.useStyle(r[a]);else t.prototype.attrKV.call(this,a,r[a])}if(!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&&dO(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){var l=this.parent;while(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;if(r=this._paintRect||(this._paintRect=new ae(0,0,0,0)),i)ae.applyTransform(r,n,i);else r.copy(n);if(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;if(!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){if(r)this._prevPaintRect=this._prevPaintRect||new ae(0,0,0,0),this._prevPaintRect.copy(r);else 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){if(r==="style")this.dirtyStyle();else this.markRedraw()},e.prototype.attrKV=function(r,i){if(r!=="style")t.prototype.attrKV.call(this,r,i);else if(!this.style)this.useStyle(i);else this.setStyle(i)},e.prototype.setStyle=function(r,i){if(typeof r==="string")this.style[r]=i;else N(this.style,r);return this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){if(!r)this.markRedraw();if(this.__dirty|=Fn,this._rect)this._rect=null},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Fn)},e.prototype.styleUpdated=function(){this.__dirty&=~Fn},e.prototype.createStyle=function(r){return Vi($r,r)},e.prototype.useStyle=function(r){if(!r[Sv])r=this.createStyle(r);this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[Sv]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;if(r.style&&!i.style)i.style=this._mergeStyle(this.createStyle(),this.style);this._savePrimaryToNormal(r,i,P_)},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===co,f;if(i&&i.style)if(o)if(a)f=i.style;else f=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(f,i.style);else f=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(f,i.style);else if(l)f=n.style;if(f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l){var p=re(c);for(var h=0;h<p.length;h++){var v=p[h];if(v in f)f[v]=f[v],this.style[v]=c[v]}}var d=re(f);for(var h=0;h<d.length;h++){var v=d[h];this.style[v]=this.style[v]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else if(u)this._useHoverStyle(f);else this.useStyle(f);if(!u){var m=this.__inHover?hO:P_;for(var h=0;h<m.length;h++){var v=m[h];if(i&&i[v]!=null)this[v]=i[v];else if(l){if(n[v]!=null)this[v]=n[v]}}}},e.prototype._mergeStates=function(r){var i=t.prototype._mergeStates.call(this,r),n;for(var a=0;a<r.length;a++){var o=r[a];if(o.style)n=n||{},this._mergeStyle(n,o.style)}if(n)i.style=n;return i},e.prototype._mergeStyle=function(r,i){return N(r,i),r},e.prototype.getAnimationStyleProps=function(){return Qn},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=Tt|Fn}(),e}(Zu),_v=new ae(0,0,0,0),xv=new ae(0,0,0,0);function dO(t,e,r){if(_v.copy(t.getBoundingRect()),t.transform)_v.applyTransform(t.transform);return xv.width=e,xv.height=r,!_v.intersect(xv)}var Qr=vO;var{min:pr,max:hr,sin:bv,cos:Tv}=Math,Jn=Math.PI*2,uf=Hi(),ff=Hi(),cf=Hi();function wv(t,e,r,i,n,a){n[0]=pr(t,r),n[1]=pr(e,i),a[0]=hr(t,r),a[1]=hr(e,i)}var I_=[],N_=[];function R_(t,e,r,i,n,a,o,s,l,u){var f=Au,c=ze,p=f(t,r,n,o,I_);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<p;h++){var v=c(t,r,n,o,I_[h]);l[0]=pr(v,l[0]),u[0]=hr(v,u[0])}p=f(e,i,a,s,N_);for(var h=0;h<p;h++){var d=c(e,i,a,s,N_[h]);l[1]=pr(d,l[1]),u[1]=hr(d,u[1])}l[0]=pr(t,l[0]),u[0]=hr(t,u[0]),l[0]=pr(o,l[0]),u[0]=hr(o,u[0]),l[1]=pr(e,l[1]),u[1]=hr(e,u[1]),l[1]=pr(s,l[1]),u[1]=hr(s,u[1])}function k_(t,e,r,i,n,a,o,s){var l=Eu,u=nt,f=hr(pr(l(t,r,n),1),0),c=hr(pr(l(e,i,a),1),0),p=u(t,r,n,f),h=u(e,i,a,c);o[0]=pr(t,n,p),o[1]=pr(e,a,h),s[0]=hr(t,n,p),s[1]=hr(e,a,h)}function B_(t,e,r,i,n,a,o,s,l){var u=pi,f=hi,c=Math.abs(n-a);if(c%Jn<0.0001&&c>0.0001){s[0]=t-r,s[1]=e-i,l[0]=t+r,l[1]=e+i;return}if(uf[0]=Tv(n)*r+t,uf[1]=bv(n)*i+e,ff[0]=Tv(a)*r+t,ff[1]=bv(a)*i+e,u(s,uf,ff),f(l,uf,ff),n=n%Jn,n<0)n=n+Jn;if(a=a%Jn,a<0)a=a+Jn;if(n>a&&!o)a+=Jn;else if(n<a&&o)n+=Jn;if(o){var p=a;a=n,n=p}for(var h=0;h<a;h+=Math.PI/2)if(h>n)cf[0]=Tv(h)*r+t,cf[1]=bv(h)*i+e,u(s,cf,s),f(l,cf,l)}var Ee={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ea=[],ta=[],Jr=[],nn=[],ei=[],ti=[],{min:Cv,max:Av,cos:ra,sin:ia,abs:xi,PI:Mv}=Math,an=Mv*2,Ev=typeof Float32Array<"u",Gs=[];function Dv(t){var e=Math.round(t/Mv*1e8)/1e8;return e%2*Mv}function Ov(t,e){var r=Dv(t[0]);if(r<0)r+=an;var i=r-t[0],n=t[1];if(n+=i,!e&&n-r>=an)n=r+an;else if(e&&r-n>=an)n=r-an;else if(!e&&r>n)n=r+(an-Dv(r-n));else if(e&&r<n)n=r-(an-Dv(n-r));t[0]=r,t[1]=n}var mO=function(){function t(e){if(this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e)this._saveData=!1;if(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){if(i=i||0,i>0)this._ux=xi(i/Yh/e)||0,this._uy=xi(i/Yh/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(){if(this._saveData)this._len=0;if(this._pathSegLen)this._pathSegLen=null,this._pathLen=0;this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Ee.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=xi(e-this._xi),n=xi(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(Ee.L,e,r),this._ctx&&a)this._ctx.lineTo(e,r);if(a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;if(o>this._pendingPtDist)this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o}return this},t.prototype.bezierCurveTo=function(e,r,i,n,a,o){if(this._drawPendingPt(),this.addData(Ee.C,e,r,i,n,a,o),this._ctx)this._ctx.bezierCurveTo(e,r,i,n,a,o);return this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,i,n){if(this._drawPendingPt(),this.addData(Ee.Q,e,r,i,n),this._ctx)this._ctx.quadraticCurveTo(e,r,i,n);return this._xi=i,this._yi=n,this},t.prototype.arc=function(e,r,i,n,a,o){this._drawPendingPt(),Gs[0]=n,Gs[1]=a,Ov(Gs,o),n=Gs[0],a=Gs[1];var s=a-n;return this.addData(Ee.A,e,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,i,n,a,o),this._xi=ra(a)*i+e,this._yi=ia(a)*i+r,this},t.prototype.arcTo=function(e,r,i,n,a){if(this._drawPendingPt(),this._ctx)this._ctx.arcTo(e,r,i,n,a);return this},t.prototype.rect=function(e,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,i,n),this.addData(Ee.R,e,r,i,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ee.Z);var e=this._ctx,r=this._x0,i=this._y0;if(e)e.closePath();return 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)return;var r=e.length;if(!(this.data&&this.data.length===r)&&Ev)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)return;if(!(e instanceof Array))e=[e];var r=e.length,i=0,n=this._len;for(var a=0;a<r;a++)i+=e[a].len();var o=this.data;if(Ev&&(o instanceof Float32Array||!o)){if(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++){var l=e[a].data;for(var 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)return;var f=this.data;if(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(){if(this._pendingPtDist>0)this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0},t.prototype._expandData=function(){if(!(this.data instanceof Array)){var e=[];for(var r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(!this._saveData)return;this._drawPendingPt();var e=this.data;if(e instanceof Array){if(e.length=this._len,Ev&&this._len>11)this.data=new Float32Array(e)}},t.prototype.getBoundingRect=function(){Jr[0]=Jr[1]=ei[0]=ei[1]=Number.MAX_VALUE,nn[0]=nn[1]=ti[0]=ti[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;if(l)r=e[o],i=e[o+1],n=r,a=i;switch(s){case Ee.M:r=n=e[o++],i=a=e[o++],ei[0]=n,ei[1]=a,ti[0]=n,ti[1]=a;break;case Ee.L:wv(r,i,e[o],e[o+1],ei,ti),r=e[o++],i=e[o++];break;case Ee.C:R_(r,i,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],ei,ti),r=e[o++],i=e[o++];break;case Ee.Q:k_(r,i,e[o++],e[o++],e[o],e[o+1],ei,ti),r=e[o++],i=e[o++];break;case Ee.A:var u=e[o++],f=e[o++],c=e[o++],p=e[o++],h=e[o++],v=e[o++]+h;o+=1;var d=!e[o++];if(l)n=ra(h)*c+u,a=ia(h)*p+f;B_(u,f,c,p,h,v,d,ei,ti),r=ra(v)*c+u,i=ia(v)*p+f;break;case Ee.R:n=r=e[o++],a=i=e[o++];var m=e[o++],g=e[o++];wv(n,a,n+m,a+g,ei,ti);break;case Ee.Z:r=n,i=a;break}pi(Jr,Jr,ei),hi(nn,nn,ti)}if(o===0)Jr[0]=Jr[1]=nn[0]=nn[1]=0;return new ae(Jr[0],Jr[1],nn[0]-Jr[0],nn[1]-Jr[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;if(!this._pathSegLen)this._pathSegLen=[];var u=this._pathSegLen,f=0,c=0;for(var p=0;p<r;){var h=e[p++],v=p===1;if(v)a=e[p],o=e[p+1],s=a,l=o;var d=-1;switch(h){case Ee.M:a=s=e[p++],o=l=e[p++];break;case Ee.L:{var m=e[p++],g=e[p++],y=m-a,_=g-o;if(xi(y)>i||xi(_)>n||p===r-1)d=Math.sqrt(y*y+_*_),a=m,o=g;break}case Ee.C:{var x=e[p++],S=e[p++],m=e[p++],g=e[p++],b=e[p++],T=e[p++];d=t0(a,o,x,S,m,g,b,T,10),a=b,o=T;break}case Ee.Q:{var x=e[p++],S=e[p++],m=e[p++],g=e[p++];d=n0(a,o,x,S,m,g,10),a=m,o=g;break}case Ee.A:var A=e[p++],C=e[p++],E=e[p++],D=e[p++],O=e[p++],M=e[p++],L=M+O;if(p+=1,v)s=ra(O)*E+A,l=ia(O)*D+C;d=Av(E,D)*Cv(an,Math.abs(M)),a=ra(L)*E+A,o=ia(L)*D+C;break;case Ee.R:{s=a=e[p++],l=o=e[p++];var B=e[p++],R=e[p++];d=B*2+R*2;break}case Ee.Z:{var y=s-a,_=l-o;d=Math.sqrt(y*y+_*_),a=s,o=l;break}}if(d>=0)u[c++]=d,f+=d}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,v,d,m=0,g=0,y,_=0,x,S;if(h){if(!this._pathSegLen)this._calculateLength();if(v=this._pathSegLen,d=this._pathLen,y=r*d,!y)return}e:for(var b=0;b<o;){var T=i[b++],A=b===1;if(A)u=i[b],f=i[b+1],s=u,l=f;if(T!==Ee.L&&_>0)e.lineTo(x,S),_=0;switch(T){case Ee.M:s=u=i[b++],l=f=i[b++],e.moveTo(u,f);break;case Ee.L:{c=i[b++],p=i[b++];var C=xi(c-u),E=xi(p-f);if(C>n||E>a){if(h){var D=v[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=C*C+E*E;if(M>_)x=c,S=p,_=M}break}case Ee.C:{var L=i[b++],B=i[b++],R=i[b++],F=i[b++],z=i[b++],H=i[b++];if(h){var D=v[g++];if(m+D>y){var O=(y-m)/D;ro(u,L,R,z,O,ea),ro(f,B,F,H,O,ta),e.bezierCurveTo(ea[1],ta[1],ea[2],ta[2],ea[3],ta[3]);break e}m+=D}e.bezierCurveTo(L,B,R,F,z,H),u=z,f=H;break}case Ee.Q:{var L=i[b++],B=i[b++],R=i[b++],F=i[b++];if(h){var D=v[g++];if(m+D>y){var O=(y-m)/D;io(u,L,R,O,ea),io(f,B,F,O,ta),e.quadraticCurveTo(ea[1],ta[1],ea[2],ta[2]);break e}m+=D}e.quadraticCurveTo(L,B,R,F),u=R,f=F;break}case Ee.A:var Y=i[b++],q=i[b++],Q=i[b++],J=i[b++],j=i[b++],ce=i[b++],ye=i[b++],We=!i[b++],He=Q>J?Q:J,Te=xi(Q-J)>0.001,Me=j+ce,le=!1;if(h){var D=v[g++];if(m+D>y)Me=j+ce*(y-m)/D,le=!0;m+=D}if(Te&&e.ellipse)e.ellipse(Y,q,Q,J,ye,j,Me,We);else e.arc(Y,q,He,j,Me,We);if(le)break e;if(A)s=ra(j)*Q+Y,l=ia(j)*J+q;u=ra(Me)*Q+Y,f=ia(Me)*J+q;break;case Ee.R:s=u=i[b],l=f=i[b+1],c=i[b++],p=i[b++];var Se=i[b++],Rt=i[b++];if(h){var D=v[g++];if(m+D>y){var Xe=y-m;if(e.moveTo(c,p),e.lineTo(c+Cv(Xe,Se),p),Xe-=Se,Xe>0)e.lineTo(c+Se,p+Cv(Xe,Rt));if(Xe-=Rt,Xe>0)e.lineTo(c+Av(Se-Xe,0),p+Rt);if(Xe-=Se,Xe>0)e.lineTo(c,p+Av(Rt-Xe,0));break e}m+=D}e.rect(c,p,Se,Rt);break;case Ee.Z:if(h){var D=v[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=Ee,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),yt=mO;function na(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 z_(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=e0(t,e,r,i,n,a,o,s,u,f,null);return p<=c/2}function U_(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=i0(t,e,r,i,n,a,s,l,null);return f<=u/2}var F_=Math.PI*2;function Ys(t){if(t%=F_,t<0)t+=F_;return t}var Ws=Math.PI*2;function V_(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)%Ws<0.0001)return!0;if(a){var c=i;i=Ys(n),n=Ys(c)}else i=Ys(i),n=Ys(n);if(i>n)n+=Ws;var p=Math.atan2(l,s);if(p<0)p+=Ws;return p>=i&&p<=n||p+Ws>=i&&p+Ws<=n}function Si(t,e,r,i,n,a){if(a>e&&a>i||a<e&&a<i)return 0;if(i===e)return 0;var o=(a-e)/(i-e),s=i<e?1:-1;if(o===1||o===0)s=i<e?0.5:-0.5;var l=o*(r-t)+t;return l===n?1/0:l>n?s:0}var on=yt.CMD,aa=Math.PI*2,SO=0.0001;function bO(t,e){return Math.abs(t-e)<SO}var Mt=[-1,-1,-1],vr=[-1,-1];function TO(){var t=vr[0];vr[0]=vr[1],vr[1]=t}function wO(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=Vn(e,i,a,s,u,Mt);if(f===0)return 0;else{var c=0,p=-1,h=void 0,v=void 0;for(var d=0;d<f;d++){var m=Mt[d],g=m===0||m===1?0.5:1,y=ze(t,r,n,o,m);if(y<l)continue;if(p<0){if(p=Au(e,i,a,s,vr),vr[1]<vr[0]&&p>1)TO();if(h=ze(e,i,a,s,vr[0]),p>1)v=ze(e,i,a,s,vr[1])}if(p===2)if(m<vr[0])c+=h<e?g:-g;else if(m<vr[1])c+=v<h?g:-g;else c+=s<v?g:-g;else if(m<vr[0])c+=h<e?g:-g;else c+=s<h?g:-g}return c}}function CO(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=r0(e,i,a,s,Mt);if(l===0)return 0;else{var u=Eu(e,i,a);if(u>=0&&u<=1){var f=0,c=nt(e,i,a,u);for(var p=0;p<l;p++){var h=Mt[p]===0||Mt[p]===1?0.5:1,v=nt(t,r,n,Mt[p]);if(v<o)continue;if(Mt[p]<u)f+=c<e?h:-h;else f+=a<c?h:-h}return f}else{var h=Mt[0]===0||Mt[0]===1?0.5:1,v=nt(t,r,n,Mt[0]);if(v<o)return 0;return a<e?h:-h}}}function AO(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);Mt[0]=-l,Mt[1]=l;var u=Math.abs(i-n);if(u<0.0001)return 0;if(u>=aa-0.0001){i=0,n=aa;var f=a?1:-1;if(o>=Mt[0]+t&&o<=Mt[1]+t)return f;else return 0}if(i>n){var c=i;i=n,n=c}if(i<0)i+=aa,n+=aa;var p=0;for(var h=0;h<2;h++){var v=Mt[h];if(v+t>o){var d=Math.atan2(s,v),f=a?1:-1;if(d<0)d=aa+d;if(d>=i&&d<=n||d+aa>=i&&d+aa<=n){if(d>Math.PI/2&&d<Math.PI*1.5)f=-f;p+=f}}}return p}function H_(t,e,r,i,n){var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,p,h;for(var v=0;v<o;){var d=a[v++],m=v===1;if(d===on.M&&v>1){if(!r)s+=Si(l,u,f,c,i,n)}if(m)l=a[v],u=a[v+1],f=l,c=u;switch(d){case on.M:f=a[v++],c=a[v++],l=f,u=c;break;case on.L:if(r){if(na(l,u,a[v],a[v+1],e,i,n))return!0}else s+=Si(l,u,a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case on.C:if(r){if(z_(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=wO(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case on.Q:if(r){if(U_(l,u,a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=CO(l,u,a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case on.A:var g=a[v++],y=a[v++],_=a[v++],x=a[v++],S=a[v++],b=a[v++];v+=1;var T=!!(1-a[v++]);if(p=Math.cos(S)*_+g,h=Math.sin(S)*x+y,!m)s+=Si(l,u,p,h,i,n);else f=p,c=h;var A=(i-g)*x/_+g;if(r){if(V_(g,y,x,S,S+b,T,e,A,n))return!0}else s+=AO(g,y,x,S,S+b,T,A,n);l=Math.cos(S+b)*_+g,u=Math.sin(S+b)*x+y;break;case on.R:f=l=a[v++],c=u=a[v++];var C=a[v++],E=a[v++];if(p=f+C,h=c+E,r){if(na(f,c,p,c,e,i,n)||na(p,c,p,h,e,i,n)||na(p,h,f,h,e,i,n)||na(f,h,f,c,e,i,n))return!0}else s+=Si(p,c,p,h,i,n),s+=Si(f,h,f,c,i,n);break;case on.Z:if(r){if(na(l,u,f,c,e,i,n))return!0}else s+=Si(l,u,f,c,i,n);l=f,u=c;break}}if(!r&&!bO(u,c))s+=Si(l,u,f,c,i,n)||0;return s!==0}function G_(t,e,r){return H_(t,0,!1,e,r)}function Y_(t,e,r,i){return H_(t,e,!0,r,i)}var _o=oe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},$r),DO={style:oe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Qn.style)},Lv=lo.concat(["invisible","culling","z","z2","zlevel","parent"]),MO=function(t){P(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;if(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)if(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|=Tt}else if(this._decalEl)this._decalEl=null},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var i=re(r);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();if(n)this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=r[o];if(o==="style")if(!this.style)this.useStyle(s);else N(this.style,s);else if(o==="shape")N(this.shape,s);else t.prototype.attrKV.call(this,o,s)}if(!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(V(r)){var i=oo(r,0);if(i>0.5)return Is;else if(i>0.2)return O0;return Ns}else if(r)return Ns}return Is},e.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(V(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=oo(r,0)<Ps;if(a===o)return i}},e.prototype.buildPath=function(r,i,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Yi},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 yt(!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;if(!this.path)a=!0,this.createPathProxy();var o=this.path;if(a||this.__dirty&Yi)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==null?4:f)}if(l>0.0000000001)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>0.0000000001){if(!this.hasFill())l=Math.max(l,this.strokeContainThreshold);if(Y_(s,l/u,r,i))return!0}}if(this.hasFill())return G_(s,r,i)}return!1},e.prototype.dirtyShape=function(){if(this.__dirty|=Yi,this._rect)this._rect=null;if(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){if(r==="style")this.dirtyStyle();else if(r==="shape")this.dirtyShape();else this.markRedraw()},e.prototype.attrKV=function(r,i){if(r==="shape")this.setShape(i);else t.prototype.attrKV.call(this,r,i)},e.prototype.setShape=function(r,i){var n=this.shape;if(!n)n=this.shape={};if(typeof r==="string")n[r]=i;else N(n,r);return this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Yi)},e.prototype.createStyle=function(r){return Vi(_o,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;if(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===co)return;var l=!(i&&a),u;if(i&&i.shape)if(o)if(a)u=i.shape;else u=N({},n.shape),N(u,i.shape);else u=N({},a?this.shape:n.shape),N(u,i.shape);else if(l)u=n.shape;if(u)if(o){this.shape=N({},this.shape);var f={},c=re(u);for(var p=0;p<c.length;p++){var h=c[p];if(typeof u[h]==="object")this.shape[h]=u[h];else f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(r){var i=t.prototype._mergeStates.call(this,r),n;for(var a=0;a<r.length;a++){var o=r[a];if(o.shape)n=n||{},this._mergeStyle(n,o.shape)}if(n)i.shape=n;return i},e.prototype.getAnimationStyleProps=function(){return DO},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var i=function(a){P(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 te(r.style)},o.prototype.getDefaultShape=function(){return te(r.shape)},o}(e);for(var n in r)if(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=Tt|Fn|Yi}(),e}(Qr),ie=MO;var OO=oe({strokeFirst:!0,font:Bt,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},_o),W_=function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return yv(this.style)},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(r){return Vi(OO,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){if(!this._rect)this._rect=L_(this.style);return this._rect},e.initDefaultProps=function(){var r=e.prototype;r.dirtyRectTolerance=10}(),e}(Qr);W_.prototype.type="tspan";var oa=W_;var LO=oe({x:0,y:0},$r),PO={style:oe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Qn.style)};function IO(t){return!!(t&&typeof t!=="string"&&t.width&&t.height)}var X_=function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return Vi(LO,r)},e.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=IO(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[o];if(s==null)return a[r];else return 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 PO},e.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect)this._rect=new ae(r.x||0,r.y||0,this.getWidth(),this.getHeight());return this._rect},e}(Qr);X_.prototype.type="image";var _t=X_;function q_(t,e){var{x:r,y:i,width:n,height:a,r:o}=e,s,l,u,f;if(n<0)r=r+n,n=-n;if(a<0)i=i+a,a=-a;if(typeof o==="number")s=l=u=f=o;else if(o instanceof Array)if(o.length===1)s=l=u=f=o[0];else if(o.length===2)s=u=o[0],l=f=o[1];else if(o.length===3)s=o[0],l=f=o[1],u=o[2];else s=o[0],l=o[1],u=o[2],f=o[3];else s=l=u=f=0;var c;if(s+l>n)c=s+l,s*=n/c,l*=n/c;if(u+f>n)c=u+f,u*=n/c,f*=n/c;if(l+u>a)c=l+u,l*=a/c,u*=a/c;if(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 xo=Math.round;function pf(t,e,r){if(!e)return;var{x1:i,x2:n,y1:a,y2:o}=e;t.x1=i,t.x2=n,t.y1=a,t.y2=o;var s=r&&r.lineWidth;if(!s)return t;if(xo(i*2)===xo(n*2))t.x1=t.x2=sn(i,s,!0);if(xo(a*2)===xo(o*2))t.y1=t.y2=sn(a,s,!0);return t}function hf(t,e,r){if(!e)return;var{x:i,y:n,width:a,height:o}=e;t.x=i,t.y=n,t.width=a,t.height=o;var s=r&&r.lineWidth;if(!s)return t;return t.x=sn(i,s,!0),t.y=sn(n,s,!0),t.width=Math.max(sn(i+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(sn(n+o,s,!1)-t.y,o===0?0:1),t}function sn(t,e,r){if(!e)return t;var i=xo(t*2);return(i+xo(e))%2===0?i/2:(i+(r?1:-1))/2}var kO=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}();var BO={},Z_=function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new kO},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=hf(BO,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;if(!i.r)r.rect(n,a,o,s);else q_(r,i)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(ie);Z_.prototype.type="rect";var De=Z_;var K_={fill:"#000"},j_=2,ri={},zO={style:oe({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},Qn.style)},nx=function(t){P(e,t);function e(r){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=K_,i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){if(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;if(r){if(r.updateTransform(),r.transform)this.transform=r.transform}else 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(){if(this.__hostTarget)this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0);return t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,VO(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();if(!this._rect){var r=new ae(0,0,0,0),i=this._children,n=[],a=null;for(var o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);if(u)r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r);else a=a||l.clone(),a.union(l)}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||K_},e.prototype.setTextContent=function(r){throw Error("Can't attach text on another text")},e.prototype._mergeStyle=function(r,i){if(!i)return r;var n=i.rich,a=r.rich||n&&{};if(N(r,i),n&&a)this._mergeRich(a,n),r.rich=a;else if(a)r.rich=a;return r},e.prototype._mergeRich=function(r,i){var n=re(i);for(var a=0;a<n.length;a++){var o=n[a];r[o]=r[o]||{},N(r[o],i[o])}},e.prototype.getAnimationStyleProps=function(){return zO},e.prototype._getOrCreateChild=function(r){var i=this._children[this._childCursor];if(!i||!(i instanceof r))i=new r;return this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var r=this.style,i=r.font||Bt,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";mv(ri,a.overflowRect,o,s,l,u),o=ri.baseX,s=ri.baseY;var f=ix(r),c=D_(f,r,ri.outerWidth,ri.outerHeight),p=Pv(r),h=!!r.backgroundColor,{outerHeight:v,outerWidth:d,lines:m,lineHeight:g}=c;this.isTruncated=!!c.isTruncated;var y=o,_=gi(s,c.contentHeight,u);if(p||n){var x=ji(o,d,l),S=gi(s,v,u);p&&this._renderBackground(r,r,x,S,d,v)}if(_+=g/2,n){if(y=rx(o,l,n),u==="top")_+=n[0];else if(u==="bottom")_-=n[2]}var b=0,T=!1,A=!1,C=tx("fill"in r?r.fill:(A=!0,a.fill)),E=ex("stroke"in r?r.stroke:!h&&(!a.autoStroke||A)?(b=j_,T=!0,a.stroke):null),D=r.textShadowBlur>0;for(var O=0;O<m.length;O++){var M=this._getOrCreateChild(oa),L=M.createStyle();if(M.useStyle(L),L.text=m[O],L.x=y,L.y=_,l)L.textAlign=l;if(L.textBaseline="middle",L.opacity=r.opacity,L.strokeFirst=!0,D)L.shadowBlur=r.textShadowBlur||0,L.shadowColor=r.textShadowColor||"transparent",L.shadowOffsetX=r.textShadowOffsetX||0,L.shadowOffsetY=r.textShadowOffsetY||0;if(L.stroke=E,L.fill=C,E)L.lineWidth=r.lineWidth||b,L.lineDash=r.lineDash,L.lineDashOffset=r.lineDashOffset||0;L.font=i,Q_(L,r),_+=g,M.setBoundingRect(lf(L,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;mv(ri,i.overflowRect,o,s,n,a),o=ri.baseX,s=ri.baseY;var l=ix(r),u=M_(l,r,ri.outerWidth,ri.outerHeight,n),{width:f,outerWidth:c,outerHeight:p}=u,h=r.padding;this.isTruncated=!!u.isTruncated;var v=ji(o,c,n),d=gi(s,p,a),m=v,g=d;if(h)m+=h[3],g+=h[0];var y=m+f;if(Pv(r))this._renderBackground(r,r,v,d,c,p);var _=!!r.backgroundColor;for(var x=0;x<u.lines.length;x++){var S=u.lines[x],b=S.tokens,T=b.length,{lineHeight:A,width:C}=S,E=0,D=m,O=y,M=T-1,L=void 0;while(E<T&&(L=b[E],!L.align||L.align==="left"))this._placeToken(L,r,A,g,D,"left",_),C-=L.width,D+=L.width,E++;while(M>=0&&(L=b[M],L.align==="right"))this._placeToken(L,r,A,g,O,"right",_),C-=L.width,O-=L.width,M--;D+=(f-(D-m)-(y-O)-C)/2;while(E<=M)L=b[E],this._placeToken(L,r,A,g,D+L.width/2,"center",_),D+=L.width,E++;g+=A}},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;if(f==="top")c=a+r.height/2;else if(f==="bottom")c=a+n-r.height/2;var p=!r.isLineHolder&&Pv(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,v=r.textPadding;if(v)o=rx(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2;var d=this._getOrCreateChild(oa),m=d.createStyle();d.useStyle(m);var g=this._defaultStyle,y=!1,_=0,x=!1,S=tx("fill"in u?u.fill:("fill"in i)?i.fill:(y=!0,g.fill)),b=ex("stroke"in u?u.stroke:("stroke"in i)?i.stroke:!h&&!l&&(!g.autoStroke||y)?(_=j_,x=!0,g.stroke):null),T=u.textShadowBlur>0||i.textShadowBlur>0;if(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;if(m.textAlign=s,m.textBaseline="middle",m.font=r.font||Bt,m.opacity=bt(u.opacity,i.opacity,1),Q_(m,u),b)m.lineWidth=bt(u.lineWidth,i.lineWidth,_),m.lineDash=G(u.lineDash,i.lineDash),m.lineDashOffset=i.lineDashOffset||0,m.stroke=b;if(S)m.fill=S;d.setBoundingRect(lf(m,r.contentWidth,r.contentHeight,x?0:null))},e.prototype._renderBackground=function(r,i,n,a,o,s){var{backgroundColor:l,borderWidth:u,borderColor:f}=r,c=l&&l.image,p=l&&!c,h=r.borderRadius,v=this,d,m;if(p||r.lineHeight||u&&f){d=this._getOrCreateChild(De),d.useStyle(d.createStyle()),d.style.fill=null;var g=d.shape;g.x=n,g.y=a,g.width=o,g.height=s,g.r=h,d.dirtyShape()}if(p){var y=d.style;y.fill=l||null,y.fillOpacity=G(r.fillOpacity,1)}else if(c){m=this._getOrCreateChild(_t),m.onload=function(){v.dirtyStyle()};var _=m.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&f){var y=d.style;if(y.lineWidth=u,y.stroke=f,y.strokeOpacity=G(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke())y.strokeFirst=!0,y.lineWidth*=2}var x=(d||m).style;x.shadowBlur=r.shadowBlur||0,x.shadowColor=r.shadowColor||"transparent",x.shadowOffsetX=r.shadowOffsetX||0,x.shadowOffsetY=r.shadowOffsetY||0,x.opacity=bt(r.opacity,i.opacity,1)},e.makeFont=function(r){var i="";if(Nv(r))i=[r.fontStyle,r.fontWeight,Iv(r.fontSize),r.fontFamily||"sans-serif"].join(" ");return i&&vt(i)||r.textFont||r.font},e}(Qr),UO={left:!0,right:1,center:1},FO={top:1,bottom:1,middle:1},$_=["fontStyle","fontWeight","fontSize","fontFamily"];function Iv(t){if(typeof t==="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1))return t;else if(!isNaN(+t))return t+"px";else return ou+"px"}function Q_(t,e){for(var r=0;r<$_.length;r++){var i=$_[r],n=e[i];if(n!=null)t[i]=n}}function Nv(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function VO(t){return J_(t),w(t.rich,J_),t}function J_(t){if(t){t.font=nx.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||UO[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||FO[r]?r:"top";var i=t.padding;if(i)t.padding=Za(t.padding)}}function ex(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function tx(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function rx(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 Pv(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var $e=nx;var xe=ee(),ax=function(t,e,r,i){if(i){var n=xe(i);if(n.dataIndex=r,n.dataType=e,n.seriesIndex=t,n.ssrType="chart",i.type==="group")i.traverse(function(a){var o=xe(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}};var ln="undefined",vf="series",Xs=Z(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),at="original",tt="arrayRows",wt="objectRows",Vt="keyedColumns",ir="typedArray",Rv="unknown",nr="column",ii="row";var HO=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],GO=function(){function t(e){w(HO,function(r){this[r]=me(e[r],e)},this)}return t}();function ox(t,e){return e.mainType===vf?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var df=GO;var sx=1,lx={},hx=ee(),zv=ee(),Uv=0,qs=1,Zs=2,lt=["emphasis","blur","select"],bo=["normal","emphasis","blur","select"],YO=10,WO=9,un="highlight",Ks="downplay",js="select",gf="unselect",$s="toggleSelect",yf="selectchanged";function So(t){return t!=null&&t!=="none"}function _f(t,e,r){if(t.onHoverStateChange&&(t.hoverState||0)!==r)t.onHoverStateChange(e);t.hoverState=r}function vx(t){_f(t,"emphasis",Zs)}function dx(t){if(t.hoverState===Zs)_f(t,"normal",Uv)}function Fv(t){_f(t,"blur",qs)}function mx(t){if(t.hoverState===qs)_f(t,"normal",Uv)}function XO(t){t.selected=!0}function qO(t){t.selected=!1}function ux(t,e,r){e(t,r)}function bi(t,e,r){ux(t,e,r),t.isGroup&&t.traverse(function(i){ux(i,e,r)})}function Vv(t,e){switch(e){case"emphasis":t.hoverState=Zs;break;case"normal":t.hoverState=Uv;break;case"blur":t.hoverState=qs;break;case"select":t.selected=!0}}function ZO(t,e,r,i){var n=t.style,a={};for(var o=0;o<e.length;o++){var s=e[o],l=n[s];a[s]=l==null?i&&i[s]:l}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];if(u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style")u.saveTo(a,e)}return a}function KO(t,e,r,i){var n=r&&ue(r,"select")>=0,a=!1;if(t instanceof ie){var o=hx(t),s=n?o.selectFill||o.normalFill:o.normalFill,l=n?o.selectStroke||o.normalStroke:o.normalStroke;if(So(s)||So(l)){i=i||{};var u=i.style||{};if(u.fill==="inherit")a=!0,i=N({},i),u=N({},u),u.fill=s;else if(!So(u.fill)&&So(s))a=!0,i=N({},i),u=N({},u),u.fill=Cs(s);else if(!So(u.stroke)&&So(l)){if(!a)i=N({},i),u=N({},u);u.stroke=Cs(l)}i.style=u}}if(i){if(i.z2==null){if(!a)i=N({},i);var f=t.z2EmphasisLift;i.z2=t.z2+(f!=null?f:YO)}}return i}function jO(t,e,r){if(r){if(r.z2==null){r=N({},r);var i=t.z2SelectLift;r.z2=t.z2+(i!=null?i:WO)}}return r}function $O(t,e,r){var i=ue(t.currentStates,e)>=0,n=t.style.opacity,a=!i?ZO(t,["opacity"],e,{opacity:1}):null;r=r||{};var o=r.style||{};if(o.opacity==null)r=N({},r),o=N({opacity:i?n:a.opacity*0.1},o),r.style=o;return r}function kv(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return KO(this,t,e,r);else if(t==="blur")return $O(this,t,r);else if(t==="select")return jO(this,t,r)}return r}function QO(t){t.stateProxy=kv;var e=t.getTextContent(),r=t.getTextGuideLine();if(e)e.stateProxy=kv;if(r)r.stateProxy=kv}function fx(t,e){!gx(t,e)&&!t.__highByOuter&&bi(t,vx)}function cx(t,e){!gx(t,e)&&!t.__highByOuter&&bi(t,dx)}function Ti(t,e){t.__highByOuter|=1<<(e||0),bi(t,vx)}function wi(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&bi(t,dx)}function xf(t){bi(t,Fv)}function Qs(t){bi(t,mx)}function Hv(t){bi(t,XO)}function Gv(t){bi(t,qO)}function gx(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Yv(t){var e=t.getModel(),r=[],i=[];e.eachComponent(function(n,a){var o=zv(a),s=ox(t,a),l=n==="series";if(!l&&i.push(s),o.isBlured)s.group.traverse(function(u){mx(u)}),l&&r.push(a);o.isBlured=!1}),w(i,function(n){if(n&&n.toggleBlurSeries)n.toggleBlurSeries(r,!1,e)})}function Bv(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&&Qs(p)}}if(t==null)return;if(!e||e==="none")return;var o=n.getSeriesByIndex(t),s=o.coordinateSystem;if(s&&s.master)s=s.master;var l=[];n.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;if(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){if(m.__highByOuter&&f&&e==="self")return;Fv(m)}),et(e))a(u.getData(),e);else if(W(e)){var v=re(e);for(var d=0;d<v.length;d++)a(u.getData(v[d]),e[v[d]])}l.push(u),zv(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u==="series")return;var c=i.getViewOfComponentModel(f);if(c&&c.toggleBlurSeries)c.toggleBlurSeries(l,!0,n)})}function mf(t,e,r){if(t==null||e==null)return;var i=r.getModel().getComponent(t,e);if(!i)return;zv(i).isBlured=!0;var n=r.getViewOfComponentModel(i);if(!n||!n.focusBlurEnabled)return;n.group.traverse(function(a){Fv(a)})}function yx(t,e,r){var i=t.seriesIndex,n=t.getData(e.dataType);if(!n){pe("Unknown dataType "+e.dataType);return}var a=cr(n,e);a=(k(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o){var s=n.count(),l=0;while(!o&&l<s)o=n.getItemGraphicEl(l++)}if(o){var u=xe(o);Bv(i,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);if(f!=null)Bv(i,f,c,r)}}function Sf(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;var s=o.findHighDownDispatchers(r),l;for(var u=0;u<s.length;u++){if(!fn(s[u]))pe("param should be highDownDispatcher");if(xe(s[u]).focus==="self"){l=!0;break}}return{focusSelf:l,dispatchers:s}}function _x(t,e,r){if(!fn(t))pe("param should be highDownDispatcher");var i=xe(t),n=Sf(i.componentMainType,i.componentIndex,i.componentHighDownName,r),{dispatchers:a,focusSelf:o}=n;if(a){if(o)mf(i.componentMainType,i.componentIndex,r);w(a,function(s){return fx(s,e)})}else{if(Bv(i.seriesIndex,i.focus,i.blurScope,r),i.focus==="self")mf(i.componentMainType,i.componentIndex,r);fx(t,e)}}function xx(t,e,r){if(!fn(t))pe("param should be highDownDispatcher");Yv(r);var i=xe(t),n=Sf(i.componentMainType,i.componentIndex,i.componentHighDownName,r).dispatchers;if(n)w(n,function(a){return cx(a,e)});else cx(t,e)}function Sx(t,e,r){if(!bf(e))return;var i=e.dataType,n=t.getData(i),a=cr(n,e);if(!k(a))a=[a];t[e.type===$s?"toggleSelect":e.type===js?"select":"unselect"](a,i)}function Wv(t){var e=t.getAllData();w(e,function(r){var{data:i,type:n}=r;i.eachItemGraphicEl(function(a,o){t.isSelected(o,n)?Hv(a):Gv(a)})})}function bx(t){var e=[];return t.eachSeries(function(r){var i=r.getAllData();w(i,function(n){var{data:a,type:o}=n,s=r.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:r.seriesIndex};if(o!=null)l.dataType=o;e.push(l)}})}),e}function JO(t,e,r){Tx(t,!0),bi(t,QO),tL(t,e,r)}function eL(t){Tx(t,!1)}function Lr(t,e,r,i){i?eL(t):JO(t,e,r)}function tL(t,e,r){var i=xe(t);if(e!=null)i.focus=e,i.blurScope=r;else if(i.focus)i.focus=null}var px=["emphasis","blur","select"],rL={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function sa(t,e,r,i){r=r||"itemStyle";for(var n=0;n<px.length;n++){var a=px[n],o=e.getModel([a,r]),s=t.ensureState(a);s.style=i?i(o):o[rL[r]]()}}function Tx(t,e){var r=e===!1,i=t;if(t.highDownSilentOnTouch)i.__highDownSilentOnTouch=t.highDownSilentOnTouch;if(!r||i.__highDownDispatcher)i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r}function fn(t){return!!(t&&t.__highDownDispatcher)}function Cx(t){var e=lx[t];if(e==null&&sx<=32)e=lx[t]=sx++;return e}function bf(t){var e=t.type;return e===js||e===gf||e===$s}function Xv(t){var e=t.type;return e===un||e===Ks}function Ax(t){var e=hx(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 To=yt.CMD,iL=[[],[],[]],{sqrt:Ex,atan2:nL}=Math;function qv(t,e){if(!e)return;var r=t.data,i=t.len(),n,a,o,s,l,u,{M:f,C:c,L:p,R:h,A:v,Q:d}=To;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 d:a=2;break;case v:var m=e[4],g=e[5],y=Ex(e[0]*e[0]+e[1]*e[1]),_=Ex(e[2]*e[2]+e[3]*e[3]),x=nL(-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++],dt(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],dt(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var S=iL[l];S[0]=r[o++],S[1]=r[o++],dt(S,S,e),r[s++]=S[0],r[s++]=S[1]}}t.increaseVersion()}var{sqrt:Zv,sin:Tf,cos:wf,PI:Js}=Math;function Dx(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Kv(t,e){return(t[0]*e[0]+t[1]*e[1])/(Dx(t)*Dx(e))}function Mx(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Kv(t,e))}function Ox(t,e,r,i,n,a,o,s,l,u,f){var c=l*(Js/180),p=wf(c)*(t-r)/2+Tf(c)*(e-i)/2,h=-1*Tf(c)*(t-r)/2+wf(c)*(e-i)/2,v=p*p/(o*o)+h*h/(s*s);if(v>1)o*=Zv(v),s*=Zv(v);var d=(n===a?-1:1)*Zv((o*o*(s*s)-o*o*(h*h)-s*s*(p*p))/(o*o*(h*h)+s*s*(p*p)))||0,m=d*o*h/s,g=d*-s*p/o,y=(t+r)/2+wf(c)*m-Tf(c)*g,_=(e+i)/2+Tf(c)*m+wf(c)*g,x=Mx([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=Mx(S,b);if(Kv(S,b)<=-1)T=Js;if(Kv(S,b)>=1)T=0;if(T<0){var A=Math.round(T/Js*1e6)/1e6;T=Js*2+A%2*Js}f.addData(u,y,_,o,s,x,T,c,a)}var aL=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,oL=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function sL(t){var e=new yt;if(!t)return e;var r=0,i=0,n=r,a=i,o,s=yt.CMD,l=t.match(aL);if(!l)return e;for(var u=0;u<l.length;u++){var f=l[u],c=f.charAt(0),p=void 0,h=f.match(oL)||[],v=h.length;for(var d=0;d<v;d++)h[d]=parseFloat(h[d]);var m=0;while(m<v){var g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0,T=void 0,A=r,C=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":if(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,A=h[m++],C=h[m++],r=h[m++],i=h[m++],e.addData(p,g,y,A,C,r,i);break;case"s":if(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,A=r+h[m++],C=i+h[m++],r+=h[m++],i+=h[m++],e.addData(p,g,y,A,C,r,i);break;case"Q":A=h[m++],C=h[m++],r=h[m++],i=h[m++],p=s.Q,e.addData(p,A,C,r,i);break;case"q":A=h[m++]+r,C=h[m++]+i,r+=h[m++],i+=h[m++],p=s.Q,e.addData(p,A,C,r,i);break;case"T":if(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":if(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++],A=r,C=i,r=h[m++],i=h[m++],p=s.A,Ox(A,C,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++],A=r,C=i,r+=h[m++],i+=h[m++],p=s.A,Ox(A,C,r,i,b,T,_,x,S,p,e);break}}if(c==="z"||c==="Z")p=s.Z,e.addData(p),r=n,i=a;o=p}return e.toStatic(),e}var Lx=function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e}(ie);function Px(t){return t.setData!=null}function Ix(t,e){var r=sL(t),i=N({},e);return i.buildPath=function(n){var a=Px(n);if(a&&n.canSave()){n.appendPath(r);var o=n.getContext();if(o)n.rebuildPath(o,1)}else{var o=a?n.getContext():n;if(o)r.rebuildPath(o,1)}},i.applyTransform=function(n){qv(r,n),this.dirtyShape()},i}function Nx(t,e){return new Lx(Ix(t,e))}function Rx(t,e){var r=Ix(t,e),i=function(n){P(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(Lx);return i}function kx(t,e){var r=[],i=t.length;for(var n=0;n<i;n++){var a=t[n];r.push(a.getUpdatedPathProxy(!0))}var o=new ie(e);return o.createPathProxy(),o.buildPath=function(s){if(Px(s)){s.appendPath(r);var l=s.getContext();if(l)s.rebuildPath(l,1)}},o}var uL=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}();var Bx=function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new uL},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}(ie);Bx.prototype.type="circle";var wo=Bx;var fL=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}();var zx=function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new fL},e.prototype.buildPath=function(r,i){var n=0.5522848,{cx:a,cy:o,rx:s,ry:l}=i,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}(ie);zx.prototype.type="ellipse";var Cf=zx;var Fx=Math.PI,jv=Fx*2,{sin:la,cos:Co,acos:cL,atan2:Ct,abs:Ux,sqrt:tl,max:el,min:ni}=Math,Pr=0.0001;function pL(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<Pr)return;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)/tl(s*s+l*l),f=u*l,c=-u*s,p=t+f,h=e+c,v=r+f,d=i+c,m=(p+v)/2,g=(h+d)/2,y=v-p,_=d-h,x=y*y+_*_,S=n-a,b=p*d-v*h,T=(_<0?-1:1)*tl(el(0,S*S*x-b*b)),A=(b*_-y*T)/x,C=(-b*y-_*T)/x,E=(b*_+y*T)/x,D=(-b*y+_*T)/x,O=A-m,M=C-g,L=E-m,B=D-g;if(O*O+M*M>L*L+B*B)A=E,C=D;return{cx:A,cy:C,x0:-f,y0:-c,x1:A*(n/S-1),y1:C*(n/S-1)}}function hL(t){var e;if(k(t)){var r=t.length;if(!r)return t;if(r===1)e=[t[0],t[0],0,0];else if(r===2)e=[t[0],t[0],t[1],t[1]];else if(r===3)e=t.concat(t[2]);else e=t}else e=[t,t,t,t];return e}function Vx(t,e){var r,i=el(e.r,0),n=el(e.r0||0,0),a=i>0,o=n>0;if(!a&&!o)return;if(!a)i=n,n=0;if(n>i){var s=i;i=n,n=s}var{startAngle:l,endAngle:u}=e;if(isNaN(l)||isNaN(u))return;var{cx:f,cy:c}=e,p=!!e.clockwise,h=Ux(u-l),v=h>jv&&h%jv;if(v>Pr&&(h=v),!(i>Pr))t.moveTo(f,c);else if(h>jv-Pr){if(t.moveTo(f+i*Co(l),c+i*la(l)),t.arc(f,c,i,l,u,!p),n>Pr)t.moveTo(f+n*Co(u),c+n*la(u)),t.arc(f,c,n,u,l,p)}else{var d=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,A=void 0,C=void 0,E=void 0,D=void 0,O=void 0,M=void 0,L=void 0,B=i*Co(l),R=i*la(l),F=n*Co(u),z=n*la(u),H=h>Pr;if(H){var Y=e.cornerRadius;if(Y)r=hL(Y),d=r[0],m=r[1],g=r[2],y=r[3];var q=Ux(i-n)/2;if(_=ni(q,g),x=ni(q,y),S=ni(q,d),b=ni(q,m),C=T=el(_,x),E=A=el(S,b),T>Pr||A>Pr){if(D=i*Co(u),O=i*la(u),M=n*Co(l),L=n*la(l),h<Fx){var Q=pL(B,R,M,L,D,O,F,z);if(Q){var J=B-Q[0],j=R-Q[1],ce=D-Q[0],ye=O-Q[1],We=1/la(cL((J*ce+j*ye)/(tl(J*J+j*j)*tl(ce*ce+ye*ye)))/2),He=tl(Q[0]*Q[0]+Q[1]*Q[1]);C=ni(T,(i-He)/(We+1)),E=ni(A,(n-He)/(We-1))}}}}if(!H)t.moveTo(f+B,c+R);else if(C>Pr){var Te=ni(g,C),Me=ni(y,C),le=Af(M,L,B,R,i,Te,p),Se=Af(D,O,F,z,i,Me,p);if(t.moveTo(f+le.cx+le.x0,c+le.cy+le.y0),C<T&&Te===Me)t.arc(f+le.cx,c+le.cy,C,Ct(le.y0,le.x0),Ct(Se.y0,Se.x0),!p);else Te>0&&t.arc(f+le.cx,c+le.cy,Te,Ct(le.y0,le.x0),Ct(le.y1,le.x1),!p),t.arc(f,c,i,Ct(le.cy+le.y1,le.cx+le.x1),Ct(Se.cy+Se.y1,Se.cx+Se.x1),!p),Me>0&&t.arc(f+Se.cx,c+Se.cy,Me,Ct(Se.y1,Se.x1),Ct(Se.y0,Se.x0),!p)}else t.moveTo(f+B,c+R),t.arc(f,c,i,l,u,!p);if(!(n>Pr)||!H)t.lineTo(f+F,c+z);else if(E>Pr){var Te=ni(d,E),Me=ni(m,E),le=Af(F,z,D,O,n,-Me,p),Se=Af(B,R,M,L,n,-Te,p);if(t.lineTo(f+le.cx+le.x0,c+le.cy+le.y0),E<A&&Te===Me)t.arc(f+le.cx,c+le.cy,E,Ct(le.y0,le.x0),Ct(Se.y0,Se.x0),!p);else Me>0&&t.arc(f+le.cx,c+le.cy,Me,Ct(le.y0,le.x0),Ct(le.y1,le.x1),!p),t.arc(f,c,n,Ct(le.cy+le.y1,le.cx+le.x1),Ct(Se.cy+Se.y1,Se.cx+Se.x1),p),Te>0&&t.arc(f+Se.cx,c+Se.cy,Te,Ct(Se.y1,Se.x1),Ct(Se.y0,Se.x0),!p)}else t.lineTo(f+F,c+z),t.arc(f,c,n,u,l,p)}t.closePath()}var dL=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 Hx=function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new dL},e.prototype.buildPath=function(r,i){Vx(r,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(ie);Hx.prototype.type="sector";var dr=Hx;var mL=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}();var Gx=function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new mL},e.prototype.buildPath=function(r,i){var{cx:n,cy:a}=i,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}(ie);Gx.prototype.type="ring";var Ef=Gx;function $v(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++)pi(f,f,t[p]),hi(c,c,t[p]);pi(f,f,i[0]),hi(c,c,i[1])}for(var p=0,h=t.length;p<h;p++){var v=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(Ay(t[p]));continue}else l=t[p-1],u=t[p+1];pu(a,u,l),hu(a,a,e);var d=vu(v,l),m=vu(v,u),g=d+m;if(g!==0)d/=g,m/=g;hu(o,a,-d),hu(s,a,m);var y=sh([],v,o),_=sh([],v,s);if(i)hi(y,y,f),pi(y,y,c),hi(_,_,f),pi(_,_,c);n.push(y),n.push(_)}if(r)n.push(n.shift());return n}function Df(t,e,r){var{smooth:i,points:n}=e;if(n&&n.length>=2){if(i){var a=$v(n,i,r,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);var o=n.length;for(var 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 gL=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}();var Wx=function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new gL},e.prototype.buildPath=function(r,i){Df(r,i,!0)},e}(ie);Wx.prototype.type="polygon";var Mf=Wx;var yL=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}();var Xx=function(t){P(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 yL},e.prototype.buildPath=function(r,i){Df(r,i,!1)},e}(ie);Xx.prototype.type="polyline";var cn=Xx;var _L={},xL=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();var qx=function(t){P(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 xL},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=pf(_L,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;if(u===0)return;if(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}(ie);qx.prototype.type="line";var Ht=qx;var Gt=[],SL=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 Zx(t,e,r){var{cpx2:i,cpy2:n}=t;if(i!=null||n!=null)return[(r?Ch:ze)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?Ch:ze)(t.y1,t.cpy1,t.cpy2,t.y2,e)];else return[(r?Ah:nt)(t.x1,t.cpx1,t.x2,e),(r?Ah:nt)(t.y1,t.cpy1,t.y2,e)]}var Kx=function(t){P(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 SL},e.prototype.buildPath=function(r,i){var{x1:n,y1:a,x2:o,y2:s,cpx1:l,cpy1:u,cpx2:f,cpy2:c,percent:p}=i;if(p===0)return;if(r.moveTo(n,a),f==null||c==null){if(p<1)io(n,l,o,p,Gt),l=Gt[1],o=Gt[2],io(a,u,s,p,Gt),u=Gt[1],s=Gt[2];r.quadraticCurveTo(l,u,o,s)}else{if(p<1)ro(n,l,f,o,p,Gt),l=Gt[1],f=Gt[2],o=Gt[3],ro(a,u,c,s,p,Gt),u=Gt[1],c=Gt[2],s=Gt[3];r.bezierCurveTo(l,u,f,c,o,s)}},e.prototype.pointAt=function(r){return Zx(this.shape,r,!1)},e.prototype.tangentAt=function(r){var i=Zx(this.shape,r,!0);return $a(i,i)},e}(ie);Kx.prototype.type="bezier-curve";var Ao=Kx;var bL=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 jx=function(t){P(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 bL},e.prototype.buildPath=function(r,i){var{cx:n,cy:a}=i,o=Math.max(i.r,0),{startAngle:s,endAngle:l,clockwise:u}=i,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}(ie);jx.prototype.type="arc";var Eo=jx;var TL=function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){var r=this.shape.paths,i=this.shapeChanged();for(var n=0;n<r.length;n++)i=i||r[n].shapeChanged();if(i)this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();var r=this.shape.paths||[],i=this.getGlobalScale();for(var n=0;n<r.length;n++){if(!r[n].path)r[n].createPathProxy();r[n].path.setScale(i[0],i[1],r[n].segmentIgnoreThreshold)}},e.prototype.buildPath=function(r,i){var n=i.paths||[];for(var a=0;a<n.length;a++)n[a].buildPath(r,n[a].shape,!0)},e.prototype.afterBrush=function(){var r=this.shape.paths||[];for(var i=0;i<r.length;i++)r[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ie.prototype.getBoundingRect.call(this)},e}(ie),rl=TL;var wL=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t}(),Of=wL;var CL=function(t){P(e,t);function e(r,i,n,a,o,s){var l=t.call(this,o)||this;return l.x=r==null?0:r,l.y=i==null?0:i,l.x2=n==null?1:n,l.y2=a==null?0:a,l.type="linear",l.global=s||!1,l}return e}(Of),Do=CL;var AL=function(t){P(e,t);function e(r,i,n,a,o){var s=t.call(this,a)||this;return s.x=r==null?0.5:r,s.y=i==null?0.5:i,s.r=n==null?0.5:n,s.type="radial",s.global=o||!1,s}return e}(Of),Qv=AL;var{min:Jv,max:EL,abs:Lf}=Math,ua=[0,0],fa=[0,0],ut=_h(),{minTv:Pf,maxTv:If}=ut,DL=function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new fe;for(var i=0;i<2;i++)this._axes[i]=new fe;if(e)this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var i=this._corners,n=this._axes,{x:a,y:o}=e,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);fe.sub(n[0],i[1],i[0]),fe.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;if(r)fe.set(r,0,0);if(ut.reset(i,!a),!this._intersectCheckOneSide(this,e,a,1)){if(n=!1,a)return n}if(!this._intersectCheckOneSide(e,this,a,-1)){if(n=!1,a)return n}if(!a&&!ut.negativeSize)fe.copy(r,n?ut.useDir?ut.dirMinTv:Pf:If);return n},t.prototype._intersectCheckOneSide=function(e,r,i,n){var a=!0;for(var o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,ua),e._getProjMinMaxOnAxis(o,r._corners,fa),ut.negativeSize||ua[1]<fa[0]||ua[0]>fa[1]){if(a=!1,ut.negativeSize||i)return a;var l=Lf(fa[0]-ua[1]),u=Lf(ua[0]-fa[1]);if(Jv(l,u)>If.len())if(l<u)fe.scale(If,s,-l*n);else fe.scale(If,s,u*n)}else if(!i){var l=Lf(fa[0]-ua[1]),u=Lf(ua[0]-fa[1]);if(ut.useDir||Jv(l,u)<Pf.len()){if(l<u||!ut.bidirectional){if(fe.scale(Pf,s,l*n),ut.useDir)ut.calcDirMTV()}if(l>=u||!ut.bidirectional){if(fe.scale(Pf,s,-u*n),ut.useDir)ut.calcDirMTV()}}}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,i){var n=this._axes[e],a=this._origin,o=r[0].dot(n)+a[e],s=o,l=o;for(var u=1;u<r.length;u++){var f=r[u].dot(n)+a[e];s=Jv(f,s),l=EL(f,l)}i[0]=s+ut.touchThreshold,i[1]=l-ut.touchThreshold,ut.negativeSize=i[1]<i[0]},t}(),Nf=DL;var $x=1;var ML=[],OL=function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=$x,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){if(i)this._temporaryDisplayables.push(r);else 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){var r=new ae(1/0,1/0,-1/0,-1/0);for(var i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();if(n.needLocalTransform())a.applyTransform(n.getLocalTransform(ML));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}(Qr),ed=OL;var LL=ee();function PL(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;if(i)u=G(i.duration,200),f=G(i.easing,"cubicOut"),c=0;else u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay");if(a)a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay);if(X(c))c=c(r,n);if(X(u))u=u(r);var p={duration:u||0,delay:c,easing:f};return p}else return null}function td(t,e,r,i,n,a,o){var s=!1,l;if(X(n))o=a,a=n,n=null;else if(W(n))a=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex;var u=t==="leave";if(!u)e.stopAnimation("leave");var f=PL(t,i,n,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var{duration:c,delay:p,easing:h}=f,v={duration:c,delay:p||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,v):e.animateTo(r,v)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function Ve(t,e,r,i,n,a){td("update",t,e,r,i,n,a)}function Qe(t,e,r,i,n,a){td("enter",t,e,r,i,n,a)}function ca(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 Mo(t,e,r,i,n,a){if(ca(t))return;td("leave",t,e,r,i,n,a)}function Qx(t,e,r,i){t.removeTextContent(),t.removeTextGuideLine(),Mo(t,{style:{opacity:0}},e,r,i)}function pn(t,e,r){function i(){t.parent&&t.parent.remove(t)}if(!t.isGroup)Qx(t,e,r,i);else t.traverse(function(n){if(!n.isGroup)Qx(n,e,r,i)})}function Oo(t){LL(t).oldStyle=t.style}var id={},ai=["x","y"],hn=["width","height"],ad=0,od=1,pa=2;function tS(t){return ie.extend(t)}var IL=Rx;function rS(t,e){return IL(t,e)}function mr(t,e){id[t]=e}function iS(t){if(id.hasOwnProperty(t))return id[t]}function nl(t,e,r,i){var n=Nx(t,e);if(r){if(i==="center")r=nS(r,n.getBoundingRect());sd(n,r)}return n}function kf(t,e,r){var i=new _t({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(nS(e,a))}}});return i}function nS(t,e){var r=e.width/e.height,i=t.height*r,n;if(i<=t.width)n=t.height;else 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 aS=kx;function sd(t,e){if(!t.applyTransform)return;var r=t.getBoundingRect(),i=r.calculateTransform(e);t.applyTransform(i)}function ha(t,e){return pf(t,t,{lineWidth:e}),t}function NL(t,e){return hf(t,t,e),t}var RL=sn;function oS(t,e){var r=vi([]);while(t&&t!==e)Gi(r,t.getLocalTransform(),r),t=t.parent;return r}function Bf(t,e,r){if(e&&!et(e))e=uo.getLocalTransform(e);if(r)e=Gr([],e);return dt([],t,e)}function kL(t,e,r){var i=e[4]===0||e[5]===0||e[0]===0?1:Ie(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:Ie(2*e[4]/e[2]),a=[t==="left"?-i:t==="right"?i:0,t==="top"?-n:t==="bottom"?n:0];return a=Bf(a,e,r),Ie(a[0])>Ie(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Jx(t){return!t.isGroup}function BL(t){return t.shape!=null}function ld(t,e,r){if(!t||!e)return;function i(o){var s={};return o.traverse(function(l){if(Jx(l)&&l.anid)s[l.anid]=l}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};if(BL(o))s.shape=te(o.shape);return s}var a=i(t);e.traverse(function(o){if(Jx(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),Ve(o,l,r,xe(o).dataIndex)}}})}function sS(t,e){return U(t,function(r){var i=r[0];i=ve(i,e.x),i=Ge(i,e.x+e.width);var n=r[1];return n=ve(n,e.y),n=Ge(n,e.y+e.height),[i,n]})}function lS(t,e){var r=ve(t.x,e.x),i=Ge(t.x+t.width,e.x+e.width),n=ve(t.y,e.y),a=Ge(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 zf(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),oe(n,r),new _t(i)):nl(t.replace("path://",""),i,r,"center")}function zL(t,e,r,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(uS(t,e,r,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function uS(t,e,r,i,n,a,o,s){var l=r-t,u=i-e,f=o-n,c=s-a,p=rd(f,c,l,u);if(UL(p))return!1;var h=t-n,v=e-a,d=rd(h,v,l,u)/p;if(d<0||d>1)return!1;var m=rd(h,v,f,c)/p;if(m<0||m>1)return!1;return!0}function rd(t,e,r,i){return t*i-r*e}function UL(t){return t<=0.000001&&t>=-0.000001}function Lo(t,e,r,i,n){if(e==null)return t;else if(se(e))Le[0]=Le[1]=Le[2]=Le[3]=e;else I(e.length===4),Le[0]=e[0],Le[1]=e[1],Le[2]=e[2],Le[3]=e[3];if(i)Le[0]=ve(0,Le[0]),Le[1]=ve(0,Le[1]),Le[2]=ve(0,Le[2]),Le[3]=ve(0,Le[3]);if(r)Le[0]=-Le[0],Le[1]=-Le[1],Le[2]=-Le[2],Le[3]=-Le[3];return eS(t,Le,"x","width",3,1,n&&n[0]||0),eS(t,Le,"y","height",0,2,n&&n[1]||0),t}var Le=[0,0,0,0];function eS(t,e,r,i,n,a,o){var s=e[a]+e[n],l=t[i];if(t[i]+=s,o=ve(0,Ge(o,l)),t[i]<o)t[i]=o,t[r]+=e[n]>=0?-e[n]:e[a]>=0?l+e[a]:Ie(s)>0.00000001?(l-o)*e[n]/s:0;else t[r]-=e[n]}function Uf(t){var{itemTooltipOption:e,componentModel:r,itemName:i}=t,n=V(e)?{formatter:e}:e,{mainType:a,componentIndex:o}=r,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;if(l)w(re(l),function(f){if(!Be(s,f))s[f]=l[f],s.$vars.push(f)});var u=xe(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:oe({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function nd(t,e){var r;if(t.isGroup)r=e(t);if(!r)t.traverse(e)}function Ci(t,e){if(t)if(k(t))for(var r=0;r<t.length;r++)nd(t[r],e);else nd(t,e)}function Ff(t){return!t||Ie(t[1])<Rf&&Ie(t[2])<Rf||Ie(t[0])<Rf&&Ie(t[3])<Rf}var Rf=0.00001;function Po(t,e){return t?ae.copy(t,e):e.clone()}function Vf(t,e){return e?ms(t||Dt(),e):void 0}function al(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function FL(t){var e=-1/0,r=1/0;nd(t,function(a){i(a),i(a.getTextContent()),i(a.getTextGuideLine())});function i(a){if(!a||a.isGroup)return;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;if(o>e)e=o;if(o<r)r=o}}if(r>e)r=e=0;return{min:r,max:e}}function ol(t,e,r){fS(t,e,r,-1/0)}function fS(t,e,r,i){if(t.ignoreModelZ)return i;var n=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o){var s=t.childrenRef();for(var l=0;l<s.length;l++)i=ve(fS(s[l],e,r,i),i)}else t.z=e,t.zlevel=r,i=ve(t.z2||0,i);if(n)n.z=e,n.zlevel=r,isFinite(i)&&(n.z2=i+2);if(a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function VL(t){return t.animation={duration:0},t}function HL(t,e){return e?ms(il.transform,e):vi(il.transform),il.decomposeTransform(),Ki(t,il),t}var il=new uo;il.transform=Dt();function GL(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}mr("circle",wo);mr("ellipse",Cf);mr("sector",dr);mr("ring",Ef);mr("polygon",Mf);mr("polyline",cn);mr("rect",De);mr("line",Ht);mr("bezierCurve",Ao);mr("arc",Eo);var Hf={};function YL(t,e){for(var r=0;r<lt.length;r++){var i=lt[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 cS(t,e,r){var{labelFetcher:i,labelDataIndex:n,labelDimIndex:a}=t,o=e.normal,s;if(i)s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null);if(s==null)s=X(t.defaultText)?t.defaultText(n,t,r):t.defaultText;var l={normal:s};for(var u=0;u<lt.length;u++){var f=lt[u],c=e[f];l[f]=G(i?i.getFormattedLabel(n,f,null,a,c&&c.get("formatter")):null,s)}return l}function oi(t,e,r,i){r=r||Hf;var n=t instanceof $e,a=!1;for(var o=0;o<bo.length;o++){var s=e[bo[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=n?t:t.getTextContent();if(a){if(!n){if(!l)l=new $e,t.setTextContent(l);if(t.stateProxy)l.stateProxy=t.stateProxy}var u=cS(r,e),f=e.normal,c=!!f.getShallow("show"),p=va(f,i&&i.normal,r,!1,!n);if(p.text=u.normal,!n)t.setTextConfig(pS(f,r,!1));for(var o=0;o<lt.length;o++){var h=lt[o],s=e[h];if(s){var v=l.ensureState(h),d=!!G(s.getShallow("show"),c);if(d!==c)v.ignore=!d;if(v.style=va(s,i&&i[h],r,!0,!n),v.style.text=u[h],!n){var m=t.ensureState(h);m.textConfig=pS(s,r,!0)}}}if(l.silent=!!f.getShallow("silent"),l.style.x!=null)p.x=l.style.x;if(l.style.y!=null)p.y=l.style.y;if(l.ignore=!c,l.useStyle(p),l.dirty(),r.enableTextSetter)Io(l).setLabelText=function(g){var y=cS(r,e,g);YL(l,y)}}else if(l)l.ignore=!0;t.dirty()}function Yt(t,e){e=e||"label";var r={normal:t.getModel(e)};for(var i=0;i<lt.length;i++){var n=lt[i];r[n]=t.getModel([n,e])}return r}function va(t,e,r,i,n){var a={};return WL(a,t,r,i,n),e&&N(a,e),a}function pS(t,e,r){e=e||{};var i={},n,a=t.getShallow("rotate"),o=G(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");if(n=t.getShallow("position")||(r?null:"inside"),n==="outside"&&(n=e.defaultOutsidePosition||"top"),n!=null)i.position=n;if(s!=null)i.offset=s;if(a!=null)a*=Math.PI/180,i.rotation=a;if(o!=null)i.distance=o;if(i.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null)i.autoOverflowArea=e.autoOverflowArea;if(e.layoutRect!=null)i.layoutRect=e.layoutRect;return i}function WL(t,e,r,i,n){r=r||Hf;var a=e.ecModel,o=a&&a.option.textStyle,s=XL(e),l;if(s){l={};var u="richInheritPlainLabel",f=G(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var p=e.getModel(["rich",c]);mS(l[c]={},p,o,e,f,r,i,n,!1,!0)}}if(l)t.rich=l;var h=e.get("overflow");if(h)t.overflow=h;var v=e.get("lineOverflow");if(v)t.lineOverflow=v;var d=t,m=e.get("minMargin");if(m!=null)m=!se(m)?0:m/2,d.margin=[m,m,m,m],d.__marginType=da.minMargin;else{var g=e.get("textMargin");if(g!=null)d.margin=Za(g),d.__marginType=da.textMargin}mS(t,e,o,null,null,r,i,n,!0,!1)}function XL(t){var e;while(t&&t!==t.ecModel){var r=(t.option||Hf).rich;if(r){e=e||{};var i=re(r);for(var n=0;n<i.length;n++){var a=i[n];e[a]=1}}t=t.parentModel}return e}var hS=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],vS=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],dS=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function mS(t,e,r,i,n,a,o,s,l,u){r=!o&&r||Hf;var f=a&&a.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),h=G(e.getShallow("opacity"),r.opacity);if(c==="inherit"||c==="auto"){if(c==="auto")Fe("color: 'auto'","color: 'inherit'");if(f)c=f;else c=null}if(p==="inherit"||p==="auto"){if(p==="auto")Fe("color: 'auto'","color: 'inherit'");if(f)p=f;else p=null}if(!s)c=c||r.color,p=p||r.textBorderColor;if(c!=null)t.fill=c;if(p!=null)t.stroke=p;var v=G(e.getShallow("textBorderWidth"),r.textBorderWidth);if(v!=null)t.lineWidth=v;var d=G(e.getShallow("textBorderType"),r.textBorderType);if(d!=null)t.lineDash=d;var m=G(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);if(m!=null)t.lineDashOffset=m;if(!o&&h==null&&!u)h=a&&a.defaultOpacity;if(h!=null)t.opacity=h;if(!o&&!s){if(t.fill==null&&a.inheritColor)t.fill=a.inheritColor}for(var g=0;g<hS.length;g++){var y=hS[g],_=n!==!1&&i?bt(e.getShallow(y),i.getShallow(y),r[y]):G(e.getShallow(y),r[y]);if(_!=null)t[y]=_}for(var g=0;g<vS.length;g++){var y=vS[g],_=e.getShallow(y);if(_!=null)t[y]=_}if(t.verticalAlign==null){var x=e.getShallow("baseline");if(x!=null)t.verticalAlign=x}if(!l||!a.disableBox){for(var g=0;g<dS.length;g++){var y=dS[g],_=e.getShallow(y);if(_!=null)t[y]=_}var S=e.getShallow("borderType");if(S!=null)t.borderDash=S;if((t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f){if(t.backgroundColor==="auto")Fe("backgroundColor: 'auto'","backgroundColor: 'inherit'");t.backgroundColor=f}if((t.borderColor==="auto"||t.borderColor==="inherit")&&f){if(t.borderColor==="auto")Fe("borderColor: 'auto'","borderColor: 'inherit'");t.borderColor=f}}}function gS(t,e){var r=e&&e.getModel("textStyle");return vt([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 Io=ee();function yS(t,e,r,i){if(!t)return;var n=Io(t);n.prevValue=n.value,n.value=r;var a=e.normal;if(n.valueAnimation=a.get("valueAnimation"),n.valueAnimation)n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=e}var da={minMargin:1,textMargin:2};var qL=["textStyle","color"],ud=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],fd=new $e,ZL=function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(qL):null)},t.prototype.getFont=function(){return gS({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")};for(var i=0;i<ud.length;i++)r[ud[i]]=this.getShallow(ud[i]);return fd.useStyle(r),fd.update(),fd.getBoundingRect()},t}(),_S=ZL;var cd=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],KL=jr(cd),xS=function(){function t(){}return t.prototype.getLineStyle=function(e){return KL(this,e)},t}();var pd=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],jL=jr(pd),SS=function(){function t(){}return t.prototype.getItemStyle=function(e,r){return jL(this,e,r)},t}();var ma=function(){function t(e,r,i){this.parentModel=r,this.ecModel=i,this.option=e}return t.prototype.init=function(e,r,i){var n=[];for(var a=3;a<arguments.length;a++)n[a-3]=arguments[a]},t.prototype.mergeOption=function(e,r){_e(this.option,e,!0)},t.prototype.get=function(e,r){if(e==null)return this.option;return 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;if(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(te(this.option))},t.prototype.parsePath=function(e){if(typeof e==="string")return e.split(".");return e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!ne.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;else 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;n++){if(!e[n])continue;if(i=i&&typeof i==="object"?i[e[n]]:null,i==null)break}if(i==null&&r)i=r._doGet(this.resolveParentPath(e),r.parentModel);return i},t}();go(ma);__(ma);ht(ma,xS);ht(ma,SS);ht(ma,x_);ht(ma,_S);var Re=ma;var $L=Math.round(Math.random()*10);function vn(t){return[t||"",$L++].join("_")}function bS(t){var e={};t.registerSubTypeDefaulter=function(r,i){var n=Ft(r);e[n.main]=i},t.determineSubType=function(r,i){var n=i.type;if(!n){var a=Ft(r).main;if(t.hasSubTypes(r)&&e[a])n=e[a](i)}return n}}function TS(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),{graph:f,noEntryList:c}=u,p={};w(a,function(y){p[y]=!0});while(c.length){var h=c.pop(),v=f[h],d=!!p[h];if(d)s.call(l,h,v.originalDeps.slice()),delete p[h];w(v.successor,d?g:m)}w(p,function(){var y="";throw y=Kn("Circular dependency may exists: ",p,a,o),Error(y)});function m(y){if(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);if(u.entryCount=c.length,u.entryCount===0)s.push(l);w(c,function(p){if(ue(u.predecessor,p)<0)u.predecessor.push(p);var h=i(o,p);if(ue(h.successor,p)<0)h.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){if(!a[o])a[o]={predecessor:[],successor:[]};return a[o]}function n(a,o){var s=[];return w(a,function(l){ue(o,l)>=0&&s.push(l)}),s}}function wS(t,e){return _e(_e({},t,!0),e,!0)}var CS={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 AS={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Yf="ZH",vd="EN",No=vd,Gf={},dd={},Wf=!ne.domSupported?No:function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||No).toUpperCase();return t.indexOf(Yf)>-1?Yf:No}();function ES(t,e){t=t.toUpperCase(),dd[t]=new Re(e),Gf[t]=e}function DS(t){if(V(t)){var e=Gf[t.toUpperCase()]||{};if(t===Yf||t===vd)return te(e);else return _e(te(e),te(Gf[No]),!1)}else return _e(te(t),te(Gf[No]),!1)}function MS(t){return dd[t]}function OS(){return dd[No]}ES(vd,CS);ES(Yf,AS);var QL=null;function Ye(){return QL}function Xf(t,e){var r=Ye(),{breakOption:i,breakParsed:n}=e;if(!n&&r)n=r.parseAxisBreakOption(i,t);return n}function ga(t){var e=t.brk;return e?e.breaks:[]}function gr(t){var e=t.brk;return e?e.hasBreaks():!1}var Kf=1000,jf=Kf*60,Ro=jf*60,ar=Ro*24,md=ar*365,JL={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})/},Zf={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},eP="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",qf="{yyyy}-{MM}-{dd}",gd={year:"{yyyy}",month:"{yyyy}-{MM}",day:qf,hour:qf+" "+Zf.hour,minute:qf+" "+Zf.minute,second:qf+" "+Zf.second,millisecond:eP},Wt=["year","month","day","hour","minute","second","millisecond"],LS=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function PS(t){return!V(t)&&!X(t)?tP(t):t}function tP(t){t=t||{};var e={},r=!0;return w(Wt,function(i){r&&(r=t[i]==null)}),w(Wt,function(i,n){var a=t[i];e[i]={};var o=null;for(var s=n;s>=0;s--){var l=Wt[s],u=W(a)&&!k(a)?a[l]:a,f=void 0;if(k(u))f=u.slice(),o=f[0]||"";else if(V(u))o=u,f=[o];else{if(o==null)o=Zf[i];else if(!JL[l].test(o))o=e[l][l][0]+" "+o;if(f=[o],r)f[1]="{primary|"+o+"}"}e[i][l]=f}}),e}function Ai(t,e){return t+="","0000".substr(0,e-t.length)+t}function ko(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 IS(t){return t===ko(t)}function NS(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ya(t,e,r,i){var n=Zr(t),a=n[yd(r)](),o=n[Qf(r)]()+1,s=Math.floor((o-1)/3)+1,l=n[Jf(r)](),u=n["get"+(r?"UTC":"")+"Day"](),f=n[ec(r)](),c=(f-1)%12+1,p=n[tc(r)](),h=n[rc(r)](),v=n[ic(r)](),d=f>=12?"pm":"am",m=d.toUpperCase(),g=i instanceof Re?i:MS(i||Wf)||OS(),y=g.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),S=y.get("dayOfWeek"),b=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,d+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Ai(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,Ai(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ai(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ai(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ai(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Ai(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Ai(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ai(v,3)).replace(/{S}/g,v+"")}function RS(t,e,r,i,n){var a=null;if(V(r))a=r;else if(X(r)){var o={time:t.time,level:t.time?t.time.level:0},s=Ye();if(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=_a(t.value,n);a=r[f][f][0]}}return ya(new Date(t.value),a,n,i)}function _a(t,e){var r=Zr(t),i=r[Qf(e)]()+1,n=r[Jf(e)](),a=r[ec(e)](),o=r[tc(e)](),s=r[rc(e)](),l=r[ic(e)](),u=l===0,f=u&&s===0,c=f&&o===0,p=c&&a===0,h=p&&n===1,v=h&&i===1;if(v)return"year";else if(h)return"month";else if(p)return"day";else if(c)return"hour";else if(f)return"minute";else if(u)return"second";else return"millisecond"}function $f(t,e,r){switch(e){case"year":t[_d(r)](0);case"month":t[xd(r)](1);case"day":t[Sd(r)](0);case"hour":t[bd(r)](0);case"minute":t[Td(r)](0);case"second":t[wd(r)](0)}return t}function yd(t){return t?"getUTCFullYear":"getFullYear"}function Qf(t){return t?"getUTCMonth":"getMonth"}function Jf(t){return t?"getUTCDate":"getDate"}function ec(t){return t?"getUTCHours":"getHours"}function tc(t){return t?"getUTCMinutes":"getMinutes"}function rc(t){return t?"getUTCSeconds":"getSeconds"}function ic(t){return t?"getUTCMilliseconds":"getMilliseconds"}function kS(t){return t?"setUTCFullYear":"setFullYear"}function _d(t){return t?"setUTCMonth":"setMonth"}function xd(t){return t?"setUTCDate":"setDate"}function Sd(t){return t?"setUTCHours":"setHours"}function bd(t){return t?"setUTCMinutes":"setMinutes"}function Td(t){return t?"setUTCSeconds":"setSeconds"}function wd(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Ad(t){if(!Qu(t))return V(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function nc(t,e){if(t=(t||"").toLowerCase().replace(/-(.)/g,function(r,i){return i.toUpperCase()}),e&&t)t=t.charAt(0).toUpperCase()+t.slice(1);return t}var Bo=Za;function ac(t,e,r){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&vt(f)?f:"-"}function a(f){return qe(f)}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?Zr(t):t;if(!isNaN(+l))return ya(l,i,r);else if(s)return"-"}if(e==="ordinal")return Xa(t)?n(t):se(t)?a(t)?t+"":"-":"-";var u=Kr(t);return a(u)?Ad(u):Xa(t)?n(t):typeof t==="boolean"?t+"":"-"}var BS=["a","b","c","d","e","f","g"],Cd=function(t,e){return"{"+t+(e==null?"":e)+"}"};function oc(t,e,r){if(!k(e))e=[e];var i=e.length;if(!i)return"";var n=e[0].$vars||[];for(var a=0;a<n.length;a++){var o=BS[a];t=t.replace(Cd(o),Cd(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(Cd(BS[l],s),r?it(u):u)}return t}function zS(t,e){var r=V(t)?{color:t,extraCssText:e}:t||{},{color:i,type:n}=r;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:'+it(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+it(i)+";"+(e||"")+'"></span>';else{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 Ir(t,e){return e=e||"transparent",V(t)?t:W(t)?t.colorStops&&(t.colorStops[0]||{}).color||e:e}var sc={},Ed={},rP=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=i(sc,!0),this._normalMasterList=i(Ed,!1);function i(n,a){var o=[];return w(n,function(s,l){var u=s.create(e,r);if(o=o.concat(u||[]),a)w(u,function(f){return I(!f.update)})}),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"){sc[e]=r;return}Ed[e]=r},t.get=function(e){return Ed[e]||sc[e]},t}();function iP(t){return!!sc[t]}var nP=1,Md=2;function FS(t){I(!Dd.get(t.fullType)),Dd.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var Dd=Z();function uc(t){var e=t.getShallow("coord",!0),r=nP;if(e==null){var i=Dd.get(t.type);if(i&&i.getCoord2)r=Md,e=i.getCoord2(t)}return{coord:e,from:r}}var zo=0,lc=1,aP=2;function oP(t,e){var r=t.getShallow("coordinateSystem"),i=t.getShallow("coordinateSystemUsage",!0),n=i!=null,a=zo;if(r){var o=t.mainType==="series";if(i==null)i=o?"data":"box";if(i==="data"){if(a=lc,!o){if(n&&e)pe('coordinateSystemUsage "data" is not supported in non-series components.');a=zo}}else if(i==="box"){if(a=aP,!o&&!iP(r)){if(n&&e)pe('coordinateSystem "'+r+'" cannot be used'+(' as coordinateSystemUsage "box" for "'+t.type+'" yet.'));a=zo}}}return{coordSysType:r,kind:a}}function VS(t){var{targetModel:e,coordSysType:r,coordSysProvider:i,isDefaultDataCoordSys:n,allowNotFound:a}=t;I(!!r);var o=oP(e,!0),{kind:s,coordSysType:l}=o;if(n&&s!==lc)s=lc,l=r;if(s===zo||l!==r)return zo;var u=i(r,e);if(!u){if(!a)pe(r+" cannot be found for"+(" "+e.type+" (index: "+e.componentIndex+")."));return zo}if(s===lc)I(e.mainType==="series"),e.coordinateSystem=u;else e.boxCoordinateSystem=u;return s}var sl=rP;var cc=w,sP=["left","right","top","bottom","width","height"],fc=[["width","left","right"],["height","top","bottom"]];function HS(t,e,r,i,n){var a=0,o=0;if(i==null)i=1/0;if(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,v;if(t==="horizontal"){var d=f.width+(p?-p.x+f.x:0);if(h=a+d,h>i||l.newline)a=0,h=d,o+=s+r,s=f.height;else s=Math.max(s,f.height)}else{var m=f.height+(p?-p.y+f.y:0);if(v=o+m,v>n||l.newline)a+=s+r,o=0,v=m,s=f.width;else s=Math.max(s,f.width)}if(l.newline)return;l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=h+r:o=v+r})}var K5=Ae(HS,"vertical"),j5=Ae(HS,"horizontal");function GS(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 lP(t,e){var r=Od(t,e,{enableLayoutOnlyByCenter:!0}),i=t.getBoxLayoutParams(),n,a;if(r.type===ll.point)a=r.refPoint,n=xa(i,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=k(o)?o:[o,o];n=xa(i,r.refContainer),a=r.boxCoordFrom===Md?r.refPoint:[Ce(s[0],n.width)+n.x,Ce(s[1],n.height)+n.y]}return{viewRect:n,center:a}}function YS(t,e){var r=lP(t,e),{viewRect:i,center:n}=r,a=t.get("radius");if(!k(a))a=[0,a];var o=Ce(i.width,e.getWidth()),s=Ce(i.height,e.getHeight()),l=Math.min(o,s),u=Ce(a[0],l/2),f=Ce(a[1],l/2);return{cx:n[0],cy:n[1],r0:u,r:f,viewRect:i}}function xa(t,e,r){r=Bo(r||0);var{width:i,height:n}=e,a=Ce(t.left,i),o=Ce(t.top,n),s=Ce(t.right,i),l=Ce(t.bottom,n),u=Ce(t.width,i),f=Ce(t.height,n),c=r[2]+r[0],p=r[1]+r[3],h=t.aspect;if(isNaN(u))u=i-s-p-a;if(isNaN(f))f=n-l-c-o;if(h!=null){if(isNaN(u)&&isNaN(f))if(h>i/n)u=i*0.8;else f=n*0.8;if(isNaN(u))u=h*f;if(isNaN(f))f=u/h}if(isNaN(a))a=i-s-u-p;if(isNaN(o))o=n-l-f-c;switch(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}if(a=a||0,o=o||0,isNaN(u))u=i-p-a-(s||0);if(isNaN(f))f=n-c-o-(l||0);var v=new ae((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,f);return v.margin=r,v}var ll={rect:1,point:2};function Od(t,e,r){var i,n,a,o=t.boxCoordinateSystem,s;if(o){var l=uc(t),{coord:u,from:f}=l;if(o.dataToLayout){a=ll.rect,s=f;var c=o.dataToLayout(u);i=c.contentRect||c.rect}else if(r&&r.enableLayoutOnlyByCenter&&o.dataToPoint)a=ll.point,s=f,n=o.dataToPoint(u);else pe(t.type+"["+t.componentIndex+"]"+(" layout based on "+o.type+" is not supported."))}if(a==null)a=ll.rect;if(a===ll.rect){if(!i)i={x:0,y:0,width:e.getWidth(),height:e.getHeight()};n=[i.x+i.width/2,i.y+i.height/2]}return{type:a,refContainer:i,refPoint:n,boxCoordFrom:s}}function dn(t){var e=t.layoutMode||t.constructor.layoutMode;return W(e)?e:e?{type:e}:null}function Nr(t,e,r){var i=r&&r.ignoreSize;!k(i)&&(i=[i,i]);var n=o(fc[0],0),a=o(fc[1],1);l(fc[0],t,n),l(fc[1],t,a);function o(u,f){var c={},p=0,h={},v=0,d=2;if(cc(u,function(y){h[y]=t[y]}),cc(u,function(y){Be(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&p++,s(h,y)&&v++}),i[f]){if(s(e,u[1]))h[u[2]]=null;else if(s(e,u[2]))h[u[1]]=null;return h}if(v===d||!p)return h;else if(p>=d)return c;else{for(var m=0;m<u.length;m++){var g=u[m];if(!Be(c,g)&&Be(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){cc(u,function(p){f[p]=c[p]})}}function mn(t){return uP({},t)}function uP(t,e){return e&&t&&cc(sP,function(r){Be(e,r)&&(t[r]=e[r])}),t}var cP=ee(),Uo=function(t){P(e,t);function e(r,i,n){var a=t.call(this,r,i,n)||this;return a.uid=vn("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?mn(r):{},o=i.getTheme();if(_e(r,o.get(this.mainType)),_e(r,this.getDefaultOption()),n)Nr(r,a,n)},e.prototype.mergeOption=function(r,i){_e(this.option,r,!0);var n=dn(this);if(n)Nr(this.option,r,n)},e.prototype.optionUpdated=function(r,i){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!y_(r))return r.defaultOption;var i=cP(this);if(!i.defaultOption){var n=[],a=r;while(a){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}var s={};for(var l=n.length-1;l>=0;l--)s=_e(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 GS(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}(Re);sf(Uo,Re);rn(Uo);bS(Uo);TS(Uo,pP);function pP(t){var e=[];if(w(Uo.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=U(e,function(r){return Ft(r).main}),t!=="dataset"&&ue(e,"dataset")<=0)e.unshift("dataset");return e}var be=Uo;var Sa={color:{},darkColor:{},size:{}},Ze=Sa.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(Ze,{primary:Ze.neutral80,secondary:Ze.neutral70,tertiary:Ze.neutral60,quaternary:Ze.neutral50,disabled:Ze.neutral20,border:Ze.neutral30,borderTint:Ze.neutral20,borderShade:Ze.neutral40,background:Ze.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Ze.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Ze.neutral70,axisLineTint:Ze.neutral40,axisTick:Ze.neutral70,axisTickMinor:Ze.neutral60,axisLabel:Ze.neutral70,axisSplitLine:Ze.neutral15,axisMinorSplitLine:Ze.neutral05});for(Ei in Ze)if(Ze.hasOwnProperty(Ei))if(pc=Ze[Ei],Ei==="theme")Sa.darkColor.theme=Ze.theme.slice();else if(Ei==="highlight")Sa.darkColor.highlight="rgba(255,231,130,0.4)";else if(Ei.indexOf("accent")===0)Sa.darkColor[Ei]=Ts(pc,null,function(t){return t*0.5},function(t){return Math.min(1,1.3-t)});else Sa.darkColor[Ei]=Ts(pc,null,function(t){return t*0.9},function(t){return 1-Math.pow(t,1.5)});var pc,Ei;Sa.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var he=Sa;var WS="";if(typeof navigator<"u")WS=navigator.platform||"";var Fo="rgba(0, 0, 0, 0.2)",XS=he.color.theme[0],hP=Ts(XS,null,null,0.9),hc={darkMode:"auto",colorBy:"series",color:he.color.theme,gradientColor:[hP,XS],aria:{decal:{decals:[{color:Fo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Fo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:0.8},{color:Fo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Fo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Fo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Fo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:0.75}]}},textStyle:{fontFamily:WS.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1000,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2000,progressiveThreshold:3000,progressive:400,hoverLayerThreshold:3000,useUTC:!1};var ot={Must:1,Might:2,Not:3},qS=ee();function ZS(t){qS(t).datasetMap=Z()}function KS(t,e,r){var i={},n=vc(e);if(!n||!t)return i;var a=[],o=[],s=e.ecModel,l=qS(s).datasetMap,u=n.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),w(t,function(d,m){var g=W(d)?d:t[m]={name:d};if(g.type==="ordinal"&&f==null)f=m,c=v(g);i[g.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});w(t,function(d,m){var g=d.name,y=v(d);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(d,m,g){for(var y=0;y<g;y++)d.push(m+y)}function v(d){var m=d.dimsDef;return m?m.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function jS(t,e,r){var i={},n=vc(t);if(!n)return i;var{sourceFormat:a,dimensionsDefine:o}=e,s;if(a===wt||a===Vt)w(o,function(f,c){if((W(f)?f.name:f)==="name")s=c});var l=function(){var f={},c={},p=[];for(var h=0,v=Math.min(5,r);h<v;h++){var d=QS(e.data,a,e.seriesLayoutBy,o,e.startIndex,h);p.push(d);var m=d===ot.Not;if(m&&f.v==null&&h!==s)f.v=h;if(f.n==null||f.n===f.v||!m&&p[f.n]===ot.Not)f.n=h;if(g(f)&&p[f.n]!==ot.Not)return f;if(!m){if(d===ot.Might&&c.v==null&&h!==s)c.v=h;if(c.n==null||c.n===c.v)c.n=h}}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(c)?c:null}();if(l){i.value=[l.v];var u=s!=null?s:l.n;i.itemName=[u],i.seriesName=[u]}return i}function vc(t){var e=t.get("data",!0);if(!e)return en(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},mt).models[0]}function $S(t){if(!t.get("transform",!0)&&!t.get("fromTransformResult",!0))return[];return en(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},mt).models}function dc(t,e){return QS(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function QS(t,e,r,i,n,a){var o,s=5;if(ke(t))return ot.Not;var l,u;if(i){var f=i[a];if(W(f))l=f.name,u=f.type;else if(V(f))l=f}if(u!=null)return u==="ordinal"?ot.Must:ot.Not;if(e===tt){var c=t;if(r===ii){var p=c[a];for(var 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 v=c[n+h];if(v&&(o=x(v[a]))!=null)return o}}else if(e===wt){var d=t;if(!l)return ot.Not;for(var h=0;h<d.length&&h<s;h++){var m=d[h];if(m&&(o=x(m[l]))!=null)return o}}else if(e===Vt){var g=t;if(!l)return ot.Not;var p=g[l];if(!p||ke(p))return ot.Not;for(var h=0;h<p.length&&h<s;h++)if((o=x(p[h]))!=null)return o}else if(e===at){var y=t;for(var h=0;h<y.length&&h<s;h++){var m=y[h],_=yi(m);if(!k(_))return ot.Not;if((o=x(_[a]))!=null)return o}}function x(S){var b=V(S);if(S!=null&&isFinite(Number(S))&&S!=="")return b?ot.Might:ot.Not;else if(b&&S!=="-")return ot.Must}return ot.Not}var vP=Z();function JS(t,e,r){var i=vP.get(e);if(!i)return r;var n=i(t);if(!n)return r;for(var a=0;a<n.length;a++)I(Ji(n[a]));return r.concat(n)}var eb=ee(),dP=ee(),ul=function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,i){var n=Ne(this.get("color",!0)),a=this.get("colorLayer",!0);return tb(this,eb,n,a,e,r,i)},t.prototype.clearColorPalette=function(){gP(this,eb)},t}();function Ld(t,e,r,i){var n=Ne(t.get(["aria","decal","decals"]));return tb(t,dP,n,null,e,r,i)}function mP(t,e){var r=t.length;for(var i=0;i<r;i++)if(t[i].length>e)return t[i];return t[r-1]}function tb(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:mP(i,o);if(f=f||r,!f||!f.length)return;var c=f[l];if(n)u[n]=c;return s.paletteIdx=(l+1)%f.length,c}function gP(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var mc,fl,rb,Pd="\x00_ec_inner",ib=1,yP={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",matrix:"MatrixComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},_P={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",chord:"ChordChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},gc={};function xP(t){w(t,function(e,r){if(!be.hasClass(r)){var i=yP[r];if(i&&!gc[i])pe("Component "+r+` is used but not imported.
|
|
30
30
|
import { `+i+` } from 'echarts/components';
|
|
31
|
-
echarts.use([`+i+"]);"),
|
|
31
|
+
echarts.use([`+i+"]);"),gc[i]=!0}})}var sb=function(t){P(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 Re(a),this._locale=new Re(o),this._optionManager=s},e.prototype.setOption=function(r,i,n){I(r!=null,"option is null/undefined"),I(r[Pd]!==ib,"please use chart.getOption()");var a=ob(i);this._optionManager.setOption(r,n,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,i){return this._resetOption(r,ob(i))},e.prototype._resetOption=function(r,i){var n=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");if(xP(o),!this.option||r==="recreate")rb(this,o);else this.restoreData(),this._mergeOption(o,i);n=!0}if(r==="timeline"||r==="media")this.restoreData();if(!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);if(s)n=!0,this._mergeOption(s,i)}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);if(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=Z(),u=i&&i.replaceMergeMainTypeMap;if(ZS(this),w(r,function(c,p){if(c==null)return;if(!be.hasClass(p))n[p]=n[p]==null?te(c):_e(n[p],c,!0);else if(p)s.push(p),l.set(p,!0)}),u)u.each(function(c,p){if(be.hasClass(p)&&!l.get(p))s.push(p),l.set(p,!0)});be.topologicalTravel(s,be.getAllClassMainTypes(),f,this);function f(c){var p=JS(this,c,Ne(r[c])),h=a.get(c),v=!h?"replaceAll":u&&u.get(c)?"replaceMerge":"normalMerge",d=n_(h,p,v);o_(d,c,be),n[c]=null,a.set(c,null),o.set(c,0);var m=[],g=[],y=0,_,x;if(w(d,function(S,b){var{existing:T,newOption:A}=S;if(!A){if(T)T.mergeOption({},this),T.optionUpdated({},!1)}else{var C=c==="series",E=be.getClass(c,S.keyInfo.subType,!C);if(!E){var D=S.keyInfo.subType,O=_P[D];if(!gc[D])if(gc[D]=!0,O)pe("Series "+D+` is used but not imported.
|
|
32
32
|
import { `+O+` } from 'echarts/charts';
|
|
33
|
-
echarts.use([`+O+"]);");else pe("Unknown series "+D);return}if(c==="tooltip"){if(_){if(!x)Ue("Currently only one tooltip component is allowed."),x=!0;return}_=!0}if(T&&T.constructor===E)T.name=S.keyInfo.name,T.mergeOption(A,this),T.optionUpdated(A,!1);else{var M=N({componentIndex:b},S.keyInfo);if(T=new E(A,this,this,M),N(T,M),S.brandNew)T.__requireNewView=!0;T.init(A,this,this),T.optionUpdated(null,!0)}}if(T)m.push(T.option),g.push(T),y++;else m.push(void 0),g.push(void 0)},this),n[c]=m,a.set(c,g),o.set(c,y),c==="series")vc(this)}if(!this._seriesIndices)vc(this)},e.prototype.getOption=function(){var r=te(this.option);return w(r,function(i,n){if(be.hasClass(n)){var a=Ne(i),o=a.length,s=!1;for(var l=o-1;l>=0;l--)if(a[l]&&!$i(a[l]))s=!0;else a[l]=null,!s&&o--;a.length=o,r[n]=a}}),delete r[Od],r},e.prototype.setTheme=function(r){this._theme=new Re(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;else 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{index:n,id:a,name:o}=r,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;if(n!=null)l=[],w(Ne(n),function(u){s[u]&&l.push(s[u])});else if(a!=null)l=rb("id",a,s);else if(o!=null)l=rb("name",o,s);else l=Oe(s,function(u){return!!u});return ib(l,r)},e.prototype.findComponents=function(r){var{query:i,mainType:n}=r,a=s(i),o=a?this.queryComponents(a):Oe(this._componentsMap.get(n),function(u){return!!u});return l(ib(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?Oe(u,r.filter):u}},e.prototype.eachComponent=function(r,i,n){var a=this._componentsMap;if(X(r)){var o=i,s=r;a.each(function(c,p){for(var h=0;c&&h<c.length;h++){var v=c[h];v&&s.call(o,p,v,v.componentIndex)}})}else{var l=V(r)?a.get(r):W(r)?this.findComponents(r):null;for(var 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 Oe(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 Oe(this._componentsMap.get("series"),function(i){return!!i&&i.subType===r})},e.prototype.getSeries=function(){return Oe(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,i){ll(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){ll(this),w(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];if(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 ll(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,i){ll(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=Z(n)},e.prototype.restoreData=function(r){vc(this);var i=this._componentsMap,n=[];i.each(function(a,o){if(be.hasClass(o))n.push(o)}),be.topologicalTravel(n,be.getAllClassMainTypes(),function(a){w(i.get(a),function(o){if(o&&(a!=="series"||!yP(o,r)))o.restoreData()})})},e.internalField=function(){vc=function(r){var i=r._seriesIndices=[];w(r._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),r._seriesIndicesMap=Z(i)},ll=function(r){if(!r._seriesIndices)throw Error("Option should contains series.")},eb=function(r,i){r.option={},r.option[Od]=tb,r._componentsMap=Z({series:[]}),r._componentsCount=Z();var n=i.aria;if(W(n)&&n.enabled==null)n.enabled=!0;_P(i,r._theme.option),_e(i,cc,!1),r._mergeOption(i,null)}}(),e}(Re);function yP(t,e){if(e){var{seriesIndex:r,seriesId:i,seriesName:n}=e;return r!=null&&t.componentIndex!==r||i!=null&&t.id!==i||n!=null&&t.name!==n}}function _P(t,e){var r=t.color&&!t.colorLayer;w(e,function(i,n){if(n==="colorLayer"&&r||n==="color"&&t.color)return;if(!be.hasClass(n)){if(typeof i==="object")t[n]=!t[n]?te(i):_e(t[n],i,!1);else if(t[n]==null)t[n]=i}})}function rb(t,e,r){if(k(e)){var i=Z();return w(e,function(a){if(a!=null){var o=rr(a,null);o!=null&&i.set(a,!0)}}),Oe(r,function(a){return a&&i.get(a[t])})}else{var n=rr(e,null);return Oe(r,function(a){return a&&n!=null&&a[t]===n})}}function ib(t,e){return e.hasOwnProperty("subType")?Oe(t,function(r){return r&&r.subType===e.subType}):t}function nb(t){var e=Z();return t&&w(Ne(t.replaceMerge),function(r){I(be.hasClass(r),'"'+r+'" is not valid component main type in "replaceMerge"'),e.set(r,!0)}),{replaceMergeMainTypeMap:e}}ht(ab,sl);var mc=ab;var xP=/^(min|max)?(.+)$/,SP=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,i){if(e)w(Ne(e.series),function(o){o&&o.data&&ke(o.data)&&Za(o.data)}),w(Ne(e.dataset),function(o){o&&o.source&&ke(o.source)&&Za(o.source)});e=te(e);var n=this._optionBackup,a=bP(e,r,!n);if(this._newBaseOption=a.baseOption,n){if(a.timelineOptions.length)n.timelineOptions=a.timelineOptions;if(a.mediaList.length)n.mediaList=a.mediaList;if(a.mediaDefault)n.mediaDefault=a.mediaDefault}else 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=[],te(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,i=this._timelineOptions;if(i.length){var n=e.getComponent("timeline");if(n)r=te(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++)if(TP(n[l].query,r,i))o.push(l);if(!o.length&&a)o=[-1];if(o.length&&!CP(o,this._currentMediaIndices))s=U(o,function(f){return te(f===-1?a.option:n[f].option)});return this._currentMediaIndices=o,s},t}();function bP(t,e,r){var i=[],n,a,{baseOption:o,timeline:s,options:l,media:u}=t,f=!!t.media,c=!!(l||s||o&&o.timeline);if(o){if(a=o,!a.timeline)a.timeline=s}else{if(c||f)t.options=t.media=null;a=t}if(f)if(k(u))w(u,function(h){if(h&&!h.option&&W(h.query)&&W(h.query.option))pe("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }");if(h&&h.option){if(h.query)i.push(h);else if(!n)n=h}});else pe("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }");p(a),w(l,function(h){return p(h)}),w(i,function(h){return p(h.option)});function p(h){w(e,function(v){v(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function TP(t,e,r){var i={width:e,height:r,aspectratio:e/r},n=!0;return w(t,function(a,o){var s=o.match(xP);if(!s||!s[1]||!s[2])return;var l=s[1],u=s[2].toLowerCase();if(!wP(i[u],a,l))n=!1}),n}function wP(t,e,r){if(r==="min")return t>=e;else if(r==="max")return t<=e;else return t===e}function CP(t,e){return t.join(",")===e.join(",")}var ob=SP;var yr=w,fl=W,sb=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ld(t){var e=t&&t.itemStyle;if(!e)return;for(var r=0,i=sb.length;r<i;r++){var n=sb[r],{normal:a,emphasis:o}=e;if(a&&a[n]){if(Fe("itemStyle.normal."+n,n),t[n]=t[n]||{},!t[n].normal)t[n].normal=a[n];else _e(t[n].normal,a[n]);a[n]=null}if(o&&o[n]){if(Fe("itemStyle.emphasis."+n,"emphasis."+n),t[n]=t[n]||{},!t[n].emphasis)t[n].emphasis=o[n];else _e(t[n].emphasis,o[n]);o[n]=null}}}function At(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,n=t[e].emphasis;if(i)if(tr("'normal' hierarchy in "+e+" has been removed since 4.0. All style properties are configured in "+e+" directly now."),r)t[e].normal=t[e].emphasis=null,oe(t[e],i);else t[e]=i;if(n){if(tr(e+".emphasis has been changed to emphasis."+e+" since 4.0"),t.emphasis=t.emphasis||{},t.emphasis[e]=n,n.focus)t.emphasis.focus=n.focus;if(n.blurScope)t.emphasis.blurScope=n.blurScope}}}function ul(t){At(t,"itemStyle"),At(t,"lineStyle"),At(t,"areaStyle"),At(t,"label"),At(t,"labelLine"),At(t,"upperLabel"),At(t,"edgeLabel")}function Je(t,e){var r=fl(t)&&t[e],i=fl(r)&&r.textStyle;if(i){tr("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var n=0,a=av.length;n<a;n++){var o=av[n];if(i.hasOwnProperty(o))r[o]=i[o]}}}function _r(t){if(t)ul(t),Je(t,"label"),t.emphasis&&Je(t.emphasis,"label")}function AP(t){if(!fl(t))return;if(Ld(t),ul(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;if(e)Ld(e),_r(e);var r=t.markLine;if(r)Ld(r),_r(r);var i=t.markArea;if(i)_r(i);var n=t.data;if(t.type==="graph"){n=n||t.nodes;var a=t.links||t.edges;if(a&&!ke(a))for(var o=0;o<a.length;o++)_r(a[o]);w(t.categories,function(u){ul(u)})}if(n&&!ke(n))for(var o=0;o<n.length;o++)_r(n[o]);if(e=t.markPoint,e&&e.data){var s=e.data;for(var o=0;o<s.length;o++)_r(s[o])}if(r=t.markLine,r&&r.data){var l=r.data;for(var o=0;o<l.length;o++)if(k(l[o]))_r(l[o][0]),_r(l[o][1]);else _r(l[o])}if(t.type==="gauge")Je(t,"axisLabel"),Je(t,"title"),Je(t,"detail");else if(t.type==="treemap")At(t.breadcrumb,"itemStyle"),w(t.levels,function(u){ul(u)});else if(t.type==="tree")ul(t.leaves)}function Di(t){return k(t)?t:t?[t]:[]}function lb(t){return(k(t)?t[0]:t)||{}}function Pd(t,e){yr(Di(t.series),function(i){fl(i)&&AP(i)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),yr(r,function(i){yr(Di(t[i]),function(n){if(n)Je(n,"axisLabel"),Je(n.axisPointer,"label")})}),yr(Di(t.parallel),function(i){var n=i&&i.parallelAxisDefault;Je(n,"axisLabel"),Je(n&&n.axisPointer,"label")}),yr(Di(t.calendar),function(i){At(i,"itemStyle"),Je(i,"dayLabel"),Je(i,"monthLabel"),Je(i,"yearLabel")}),yr(Di(t.radar),function(i){if(Je(i,"name"),i.name&&i.axisName==null)i.axisName=i.name,delete i.name,tr("name property in radar component has been changed to axisName");if(i.nameGap!=null&&i.axisNameGap==null)i.axisNameGap=i.nameGap,delete i.nameGap,tr("nameGap property in radar component has been changed to axisNameGap");yr(i.indicator,function(n){if(n.text)Fe("text","name","radar.indicator")})}),yr(Di(t.geo),function(i){if(fl(i))_r(i),yr(Di(i.regions),function(n){_r(n)})}),yr(Di(t.timeline),function(i){_r(i),At(i,"label"),At(i,"itemStyle"),At(i,"controlStyle",!0);var n=i.data;k(n)&&w(n,function(a){if(W(a))At(a,"label"),At(a,"itemStyle")})}),yr(Di(t.toolbox),function(i){At(i,"iconStyle"),yr(i.feature,function(n){At(n,"iconStyle")})}),Je(lb(t.axisPointer),"label"),Je(lb(t.tooltip).axisPointer,"label")}function EP(t,e){var r=e.split(","),i=t;for(var n=0;n<r.length;n++)if(i=i&&i[r[n]],i==null)break;return i}function DP(t,e,r,i){var n=e.split(","),a=t,o,s=0;for(;s<n.length-1;s++){if(o=n[s],a[o]==null)a[o]={};a=a[o]}if(i||a[n[s]]==null)a[n[s]]=r}function ub(t){t&&w(MP,function(e){if(e[0]in t&&!(e[1]in t))t[e[1]]=t[e[0]]})}var MP=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],OP=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Id=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function cl(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<Id.length;r++){var i=Id[r][1],n=Id[r][0];if(e[i]!=null)e[n]=e[i],Fe(i,n)}}function fb(t){if(!t)return;if(t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null)Fe("label.margin","label.edgeDistance","pie"),t.edgeDistance=t.margin}function cb(t){if(!t)return;if(t.downplay&&!t.blur)t.blur=t.downplay,Fe("downplay","blur","sunburst")}function LP(t){if(!t)return;if(t.focusNodeAdjacency!=null){if(t.emphasis=t.emphasis||{},t.emphasis.focus==null)Fe("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),t.emphasis.focus="adjacency"}}function pb(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&pb(t[r].children,e)}function gc(t,e){if(Pd(t,e),t.series=Ne(t.series),w(t.series,function(r){if(!W(r))return;var i=r.type;if(i==="line"){if(r.clipOverflow!=null)r.clip=r.clipOverflow,Fe("clipOverflow","clip","line")}else if(i==="pie"||i==="gauge"){if(r.clockWise!=null)r.clockwise=r.clockWise,Fe("clockWise","clockwise");fb(r.label);var n=r.data;if(n&&!ke(n))for(var a=0;a<n.length;a++)fb(n[a]);if(r.hoverOffset!=null){if(r.emphasis=r.emphasis||{},r.emphasis.scaleSize=null)Fe("hoverOffset","emphasis.scaleSize"),r.emphasis.scaleSize=r.hoverOffset}}else if(i==="gauge"){var o=EP(r,"pointer.color");o!=null&&DP(r,"itemStyle.color",o)}else if(i==="bar"){cl(r),cl(r.backgroundStyle),cl(r.emphasis);var n=r.data;if(n&&!ke(n)){for(var a=0;a<n.length;a++)if(typeof n[a]==="object")cl(n[a]),cl(n[a]&&n[a].emphasis)}}else if(i==="sunburst"){var s=r.highlightPolicy;if(s){if(r.emphasis=r.emphasis||{},!r.emphasis.focus)r.emphasis.focus=s,Fe("highlightPolicy","emphasis.focus","sunburst")}cb(r),pb(r.data,cb)}else if(i==="graph"||i==="sankey")LP(r);else if(i==="map"){if(r.mapType&&!r.map)Fe("mapType","map","map"),r.map=r.mapType;if(r.mapLocation)tr("`mapLocation` is not used anymore."),oe(r,r.mapLocation)}if(r.hoverAnimation!=null){if(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null)Fe("hoverAnimation","emphasis.scale"),r.emphasis.scale=r.hoverAnimation}ub(r)}),t.dataRange)t.visualMap=t.dataRange;w(OP,function(r){var i=t[r];if(i){if(!k(i))i=[i];w(i,function(n){ub(n)})}})}var hb=vo(PP);function PP(t){var e=Z();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)return;var i=r[0].seriesModel,n=i.get("stackOrder")||"seriesAsc";if(n==="seriesDesc")r.reverse();w(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),IP(r)})}function IP(t){w(t,function(e,r){var i=[],n=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],{data:o,isStackedByIndex:s}=e,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,v;if(s)v=o.getRawIndex(c);else h=o.get(e.stackedByDimension,c);var d=NaN;for(var m=r-1;m>=0;m--){var g=t[m];if(!s)v=g.data.rawIndexOf(g.stackedByDimension,h);if(v>=0){var y=g.data.getByRawIndex(g.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&p>=0&&y>0||l==="samesign"&&p<=0&&y<0){p=Z0(p,y),d=y;break}}}return i[0]=p,i[1]=d,i})})}var yc=function(){function t(e){this.data=e.data||(e.sourceFormat===Vt?{}:[]),this.sourceFormat=e.sourceFormat||Iv,this.seriesLayoutBy=e.seriesLayoutBy||nr,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];if(n.type==null){if(hc(this,i)===ot.Must)n.type="ordinal"}}}return t}();function Fo(t){return t instanceof yc}function pl(t,e,r){r=r||Nd(t);var i=e.seriesLayoutBy,n=NP(t,r,i,e.sourceHeader,e.dimensions),a=new yc({data:t,sourceFormat:r,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:te(e)});return a}function Vo(t){return new yc({data:t,sourceFormat:ke(t)?ir:at})}function mb(t){return new yc({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:te(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Nd(t){var e=Iv;if(ke(t))e=ir;else if(k(t)){if(t.length===0)e=tt;for(var r=0,i=t.length;r<i;r++){var n=t[r];if(n==null)continue;else if(k(n)||ke(n)){e=tt;break}else if(W(n)){e=wt;break}}}else if(W(t)){for(var a in t)if(Be(t,a)&&et(t[a])){e=Vt;break}}return e}function NP(t,e,r,i,n){var a,o;if(!t)return{dimensionsDefine:vb(n),startIndex:o,dimensionsDetectedCount:a};if(e===tt){var s=t;if(i==="auto"||i==null)db(function(u){if(u!=null&&u!=="-")if(V(u))o==null&&(o=1);else o=0},r,s,10);else o=se(i)?i:i?1:0;if(!n&&o===1)n=[],db(function(u,f){n[f]=u!=null?u+"":""},r,s,1/0);a=n?n.length:r===ii?s.length:s[0]?s[0].length:null}else if(e===wt){if(!n)n=RP(t)}else if(e===Vt){if(!n)n=[],w(t,function(u,f){n.push(f)})}else if(e===at){var l=yi(t[0]);a=k(l)&&l.length||1}else if(e===ir)I(!!n,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:vb(n),dimensionsDetectedCount:a}}function RP(t){var e=0,r;while(e<t.length&&!(r=t[e++]));if(r)return re(r)}function vb(t){if(!t)return;var e=Z();return U(t,function(r,i){r=W(r)?r:{name:r};var n={name:r.name,displayName:r.displayName,type:r.type};if(n.name==null)return n;if(n.name+="",n.displayName==null)n.displayName=n.name;var a=e.get(n.name);if(!a)e.set(n.name,{count:1});else n.name+="-"+a.count++;return n})}function db(t,e,r,i){if(e===ii)for(var n=0;n<r.length&&n<i;n++)t(r[n]?r[n][0]:null,n);else{var a=r[0]||[];for(var n=0;n<a.length&&n<i;n++)t(a[n],n)}}function _c(t){var e=t.sourceFormat;return e===wt||e===Vt}var Sa,ba,Ta,wa,gb,yb,bc=function(){function t(e,r){var i=!Fo(e)?Vo(e):e;this._source=i;var n=this._data=i.data,{sourceFormat:a,seriesLayoutBy:o}=i;if(a===ir){if(r==null)throw Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=r,this._data=n}var s=kP[Sc(a,o)];s&&s(n,i.dimensionsDefine),yb(this,n,i)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){return},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;yb=function(o,s,l){var{sourceFormat:u,seriesLayoutBy:f,startIndex:c,dimensionsDefine:p}=l,h=gb[Sc(u,f)];if(I(h,"Invalide sourceFormat: "+u),N(o,h),u===ir)o.getItem=r,o.count=n,o.fillStorage=i;else{var v=kd(u,f);o.getItem=me(v,null,s,c,p);var d=Bd(u,f);o.count=me(d,null,s,c,p)}};var r=function(o,s){o=o-this._offset,s=s||[];var l=this._data,u=this._dimSize,f=u*o;for(var c=0;c<u;c++)s[c]=l[f+c];return s},i=function(o,s,l,u){var f=this._data,c=this._dimSize;for(var p=0;p<c;p++){var h=u[p],v=h[0]==null?1/0:h[0],d=h[1]==null?-1/0:h[1],m=s-o,g=l[p];for(var y=0;y<m;y++){var _=f[y*c+p];g[o+y]=_,_<v&&(v=_),_>d&&(d=_)}h[0]=v,h[1]=d}},n=function(){return this._data?this._data.length/this._dimSize:0};gb=(e={},e[tt+"_"+nr]={pure:!0,appendData:a},e[tt+"_"+ii]={pure:!0,appendData:function(){throw Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[wt]={pure:!0,appendData:a},e[Vt]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){var f=s[u]||(s[u]=[]);for(var c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[at]={appendData:a},e[ir]={persistent:!1,pure:!0,appendData:function(o){I(ke(o),"Added data must be TypedArray if data in initialization is TypedArray"),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 xc=function(t){if(!k(t))pe("series.data or dataset.source must be an array.")},kP=(Sa={},Sa[tt+"_"+nr]=xc,Sa[tt+"_"+ii]=xc,Sa[wt]=xc,Sa[Vt]=function(t,e){for(var r=0;r<e.length;r++){var i=e[r].name;if(i==null)pe("dimension name must not be null/undefined.")}},Sa[at]=xc,Sa),_b=function(t,e,r,i){return t[i]},BP=(ba={},ba[tt+"_"+nr]=function(t,e,r,i){return t[i+e]},ba[tt+"_"+ii]=function(t,e,r,i,n){i+=e;var a=n||[],o=t;for(var s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},ba[wt]=_b,ba[Vt]=function(t,e,r,i,n){var a=n||[];for(var 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},ba[at]=_b,ba);function kd(t,e){var r=BP[Sc(t,e)];return I(r,'Do not support get item on "'+t+'", "'+e+'".'),r}var xb=function(t,e,r){return t.length},zP=(Ta={},Ta[tt+"_"+nr]=function(t,e,r){return Math.max(0,t.length-e)},Ta[tt+"_"+ii]=function(t,e,r){var i=t[0];return i?Math.max(0,i.length-e):0},Ta[wt]=xb,Ta[Vt]=function(t,e,r){var i=r[0].name,n=i!=null?t[i]:null;return n?n.length:0},Ta[at]=xb,Ta);function Bd(t,e){var r=zP[Sc(t,e)];return I(r,'Do not support count on "'+t+'", "'+e+'".'),r}var Rd=function(t,e,r){return t[e]},UP=(wa={},wa[tt]=Rd,wa[wt]=function(t,e,r){return t[r]},wa[Vt]=Rd,wa[at]=function(t,e,r){var i=yi(t);return!(i instanceof Array)?i:i[e]},wa[ir]=Rd,wa);function zd(t){var e=UP[t];return I(e,'Do not support get value on "'+t+'".'),e}function Sc(t,e){return t===tt?t+"_"+e:t}function Mi(t,e,r){if(!t)return;var i=t.getRawDataItem(e);if(i==null)return;var n=t.getStore(),a=n.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=n.getDimensionProperty(o);return zd(a)(i,o,s)}else{var l=i;if(a===at)l=yi(i);return l}}var FP=/\{@(.+?)\}/g,hl=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;if(n!=null&&k(l.value))l.value=l.value[n];if(!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(X(a))return l.status=r,l.dimensionIndex=n,a(l);else if(V(a)){var f=nc(a,l);return f.replace(FP,function(c,p){var h=p.length,v=p;if(v.charAt(0)==="["&&v.charAt(h-1)==="]"){if(v=+v.slice(1,h-1),isNaN(v))pe("Invalide label formatter: @"+p+", only support @[0], @[1], @[2], ...")}var d=Mi(s,e,v);if(o&&k(o.interpolatedValue)){var m=s.getDimensionIndex(v);if(m>=0)d=o.interpolatedValue[m]}return d!=null?d+"":""})}},t.prototype.getRawValue=function(e,r){return Mi(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,i){return},t}();function Ud(t){var e,r;if(W(t))if(t.type)r=t;else console.warn("The return type of `formatTooltip` is not supported: "+Zn(t));else e=t;return{text:e,frag:r}}function mn(t){return new VP(t)}var VP=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}if(this.__pipeline)this.__pipeline.currentTask=this;var a;if(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;if(o!==l||s!==u)a="reset";function f(y){return!(y>=1)&&(y=1),y}var c;if(this._dirty||a==="reset")this._dirty=!1,c=this._doReset(i);this._modBy=l,this._modDataCount=u;var p=e&&e.step;if(r)I(r._outputDueEnd!=null),this._dueEnd=r._outputDueEnd;else I(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0;if(this._progress){var h=this._dueIndex,v=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(c||h<v)){var d=this._progress;if(k(d))for(var m=0;m<d.length;m++)this._doProgress(d[m],h,v,l,u);else this._doProgress(d,h,v,l,u)}this._dueIndex=v;var g=this._settedOutputEnd!=null?this._settedOutputEnd:v;I(g>=this._outputDueEnd),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){Sb.reset(r,i,n,a),this._callingProgress=e,this._callingProgress({start:r,end:i,count:i-r,next:Sb.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,i;if(!e&&this._reset){if(r=this._reset(this.context),r&&r.progress)i=r.forceFirstProgress,r=r.progress;if(k(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){if(I(e&&!e._disposed&&e!==this),this._downstream!==e||this._dirty)this._downstream=e,e._upstream=this,e.dirty()},t.prototype.dispose=function(){if(this._disposed)return;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 Sb=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 Oi(t,e){var r=e&&e.type;if(r==="ordinal")return t;if(r==="time"&&!se(t)&&t!=null&&t!=="-")t=+Zr(t);return t==null||t===""?NaN:Number(t)}var r3=Z({number:function(t){return parseFloat(t)},time:function(t){return+Zr(t)},trim:function(t){return V(t)?vt(t):t}});var HP={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}},i3=function(){function t(e,r){if(!se(r)){var i="";i='rvalue of "<", ">", "<=", ">=" can only be number in filter.',st(i)}this._opFn=HP[e],this._rvalFloat=Kr(r)}return t.prototype.evaluate=function(e){return se(e)?this._opFn(e,this._rvalFloat):this._opFn(Kr(e),this._rvalFloat)},t}(),bb=function(){function t(e,r){var i=e==="desc";if(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=se(e)?e:Kr(e),n=se(r)?r:Kr(r),a=isNaN(i),o=isNaN(n);if(a)i=this._incomparable;if(o)n=this._incomparable;if(a&&o){var s=V(e),l=V(r);if(s)i=l?e:0;if(l)n=s?r:0}return i<n?this._resultLT:i>n?-this._resultLT:0},t}();var n3=function(){function t(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=Kr(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var i=typeof e;if(i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number"))r=Kr(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;if(t){if(t.g!=null)e+="G"+t.g,r=t.g;if(t.ge!=null)e+="GE"+t.ge,i=t.ge;if(t.l!=null)e+="L"+t.l,n=t.l;if(t.le!=null)e+="LE"+t.le,a=t.le}return{key:e,g:r,ge:i,l:n,le:a}}function wc(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var GP=function(){function t(){}return t.prototype.getRawData=function(){throw Error("not supported")},t.prototype.getRawDataItem=function(e){throw Error("not supported")},t.prototype.cloneRawData=function(){return},t.prototype.getDimensionInfo=function(e){return},t.prototype.cloneAllDimensionInfo=function(){return},t.prototype.count=function(){return},t.prototype.retrieveValue=function(e,r){return},t.prototype.retrieveValueFromItem=function(e,r){return},t.prototype.convertValue=function(e,r){return Oi(e,r)},t}();function YP(t,e){var r=new GP,i=t.data,n=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";if(t.seriesLayoutBy!==nr)o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.',st(o);var s=[],l={},u=t.dimensionsDefine;if(u)w(u,function(d,m){var g=d.name,y={index:m,name:g,displayName:d.displayName};if(s.push(y),g!=null){var _="";if(Be(l,g))_='dimension name "'+g+'" duplicated.',st(_);l[g]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=kd(n,nr);if(e.__isBuiltIn)r.getRawDataItem=function(d){return c(i,a,s,d)},r.getRawData=me(WP,null,t);r.cloneRawData=me(XP,null,t);var p=Bd(n,nr);r.count=me(p,null,i,a,s);var h=zd(n);r.retrieveValue=function(d,m){var g=c(i,a,s,d);return v(g,m)};var v=r.retrieveValueFromItem=function(d,m){if(d==null)return;var g=s[m];if(g)return h(d,m,g.name)};return r.getDimensionInfo=me(qP,null,s,l),r.cloneAllDimensionInfo=me(ZP,null,s),r}function WP(t){var e=t.sourceFormat;if(!Fd(e)){var r="";r="`getRawData` is not supported in source format "+e,st(r)}return t.data}function XP(t){var{sourceFormat:e,data:r}=t;if(!Fd(e)){var i="";i="`cloneRawData` is not supported in source format "+e,st(i)}if(e===tt){var n=[];for(var a=0,o=r.length;a<o;a++)n.push(r[a].slice());return n}else if(e===wt){var n=[];for(var a=0,o=r.length;a<o;a++)n.push(N({},r[a]));return n}}function qP(t,e,r){if(r==null)return;if(se(r)||!isNaN(r)&&!Be(e,r))return t[r];else if(Be(e,r))return e[r]}function ZP(t){return te(t)}var Tb=Z();function wb(t){t=te(t);var e=t.type,r="";if(!e)r="Must have a `type` when `registerTransform`.",st(r);var i=e.split(":");if(i.length!==2)r='Name must include namespace like "ns:regression".',st(r);var n=!1;if(i[0]==="echarts")e=i[1],n=!0;t.__isBuiltIn=n,Tb.set(e,t)}function Cb(t,e,r){var i=Ne(t),n=i.length,a="";if(!n)a="If `transform` declared, it should at least contain one transform.",st(a);for(var o=0,s=n;o<s;o++){var l=i[o];if(e=KP(l,e,r,n===1?null:o),o!==s-1)e.length=Math.max(e.length,1)}return e}function KP(t,e,r,i){var n="";if(!e.length)n="Must have at least one upstream dataset.",st(n);if(!W(t))n="transform declaration must be an object rather than "+typeof t+".",st(n);var a=t.type,o=Tb.get(a);if(!o)n='Can not find transform on type "'+a+'".',st(n);var s=U(e,function(f){return YP(f,o)}),l=Ne(o.transform({upstream:s[0],upstreamList:s,config:te(t.config)}));if(t.print){var u=U(l,function(f){var c=i!=null?" === pipe index: "+i:"";return["=== dataset index: "+r.datasetIndex+c+" ===","- transform result data:",Zn(f.data),"- transform result dimensions:",Zn(f.dimensions)].join(`
|
|
33
|
+
echarts.use([`+O+"]);");else pe("Unknown series "+D);return}if(c==="tooltip"){if(_){if(!x)Ue("Currently only one tooltip component is allowed."),x=!0;return}_=!0}if(T&&T.constructor===E)T.name=S.keyInfo.name,T.mergeOption(A,this),T.optionUpdated(A,!1);else{var M=N({componentIndex:b},S.keyInfo);if(T=new E(A,this,this,M),N(T,M),S.brandNew)T.__requireNewView=!0;T.init(A,this,this),T.optionUpdated(null,!0)}}if(T)m.push(T.option),g.push(T),y++;else m.push(void 0),g.push(void 0)},this),n[c]=m,a.set(c,g),o.set(c,y),c==="series")mc(this)}if(!this._seriesIndices)mc(this)},e.prototype.getOption=function(){var r=te(this.option);return w(r,function(i,n){if(be.hasClass(n)){var a=Ne(i),o=a.length,s=!1;for(var l=o-1;l>=0;l--)if(a[l]&&!Ji(a[l]))s=!0;else a[l]=null,!s&&o--;a.length=o,r[n]=a}}),delete r[Pd],r},e.prototype.setTheme=function(r){this._theme=new Re(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;else 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{index:n,id:a,name:o}=r,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;if(n!=null)l=[],w(Ne(n),function(u){s[u]&&l.push(s[u])});else if(a!=null)l=nb("id",a,s);else if(o!=null)l=nb("name",o,s);else l=Oe(s,function(u){return!!u});return ab(l,r)},e.prototype.findComponents=function(r){var{query:i,mainType:n}=r,a=s(i),o=a?this.queryComponents(a):Oe(this._componentsMap.get(n),function(u){return!!u});return l(ab(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?Oe(u,r.filter):u}},e.prototype.eachComponent=function(r,i,n){var a=this._componentsMap;if(X(r)){var o=i,s=r;a.each(function(c,p){for(var h=0;c&&h<c.length;h++){var v=c[h];v&&s.call(o,p,v,v.componentIndex)}})}else{var l=V(r)?a.get(r):W(r)?this.findComponents(r):null;for(var 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 Oe(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 Oe(this._componentsMap.get("series"),function(i){return!!i&&i.subType===r})},e.prototype.getSeries=function(){return Oe(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,i){fl(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){fl(this),w(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];if(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 fl(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,i){fl(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=Z(n)},e.prototype.restoreData=function(r){mc(this);var i=this._componentsMap,n=[];i.each(function(a,o){if(be.hasClass(o))n.push(o)}),be.topologicalTravel(n,be.getAllClassMainTypes(),function(a){w(i.get(a),function(o){if(o&&(a!=="series"||!SP(o,r)))o.restoreData()})})},e.internalField=function(){mc=function(r){var i=r._seriesIndices=[];w(r._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),r._seriesIndicesMap=Z(i)},fl=function(r){if(!r._seriesIndices)throw Error("Option should contains series.")},rb=function(r,i){r.option={},r.option[Pd]=ib,r._componentsMap=Z({series:[]}),r._componentsCount=Z();var n=i.aria;if(W(n)&&n.enabled==null)n.enabled=!0;bP(i,r._theme.option),_e(i,hc,!1),r._mergeOption(i,null)}}(),e}(Re);function SP(t,e){if(e){var{seriesIndex:r,seriesId:i,seriesName:n}=e;return r!=null&&t.componentIndex!==r||i!=null&&t.id!==i||n!=null&&t.name!==n}}function bP(t,e){var r=t.color&&!t.colorLayer;w(e,function(i,n){if(n==="colorLayer"&&r||n==="color"&&t.color)return;if(!be.hasClass(n)){if(typeof i==="object")t[n]=!t[n]?te(i):_e(t[n],i,!1);else if(t[n]==null)t[n]=i}})}function nb(t,e,r){if(k(e)){var i=Z();return w(e,function(a){if(a!=null){var o=rr(a,null);o!=null&&i.set(a,!0)}}),Oe(r,function(a){return a&&i.get(a[t])})}else{var n=rr(e,null);return Oe(r,function(a){return a&&n!=null&&a[t]===n})}}function ab(t,e){return e.hasOwnProperty("subType")?Oe(t,function(r){return r&&r.subType===e.subType}):t}function ob(t){var e=Z();return t&&w(Ne(t.replaceMerge),function(r){I(be.hasClass(r),'"'+r+'" is not valid component main type in "replaceMerge"'),e.set(r,!0)}),{replaceMergeMainTypeMap:e}}ht(sb,ul);var yc=sb;var TP=/^(min|max)?(.+)$/,wP=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,i){if(e)w(Ne(e.series),function(o){o&&o.data&&ke(o.data)&&Ka(o.data)}),w(Ne(e.dataset),function(o){o&&o.source&&ke(o.source)&&Ka(o.source)});e=te(e);var n=this._optionBackup,a=CP(e,r,!n);if(this._newBaseOption=a.baseOption,n){if(a.timelineOptions.length)n.timelineOptions=a.timelineOptions;if(a.mediaList.length)n.mediaList=a.mediaList;if(a.mediaDefault)n.mediaDefault=a.mediaDefault}else 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=[],te(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,i=this._timelineOptions;if(i.length){var n=e.getComponent("timeline");if(n)r=te(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++)if(AP(n[l].query,r,i))o.push(l);if(!o.length&&a)o=[-1];if(o.length&&!DP(o,this._currentMediaIndices))s=U(o,function(f){return te(f===-1?a.option:n[f].option)});return this._currentMediaIndices=o,s},t}();function CP(t,e,r){var i=[],n,a,{baseOption:o,timeline:s,options:l,media:u}=t,f=!!t.media,c=!!(l||s||o&&o.timeline);if(o){if(a=o,!a.timeline)a.timeline=s}else{if(c||f)t.options=t.media=null;a=t}if(f)if(k(u))w(u,function(h){if(h&&!h.option&&W(h.query)&&W(h.query.option))pe("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }");if(h&&h.option){if(h.query)i.push(h);else if(!n)n=h}});else pe("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }");p(a),w(l,function(h){return p(h)}),w(i,function(h){return p(h.option)});function p(h){w(e,function(v){v(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function AP(t,e,r){var i={width:e,height:r,aspectratio:e/r},n=!0;return w(t,function(a,o){var s=o.match(TP);if(!s||!s[1]||!s[2])return;var l=s[1],u=s[2].toLowerCase();if(!EP(i[u],a,l))n=!1}),n}function EP(t,e,r){if(r==="min")return t>=e;else if(r==="max")return t<=e;else return t===e}function DP(t,e){return t.join(",")===e.join(",")}var lb=wP;var yr=w,pl=W,ub=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Id(t){var e=t&&t.itemStyle;if(!e)return;for(var r=0,i=ub.length;r<i;r++){var n=ub[r],{normal:a,emphasis:o}=e;if(a&&a[n]){if(Fe("itemStyle.normal."+n,n),t[n]=t[n]||{},!t[n].normal)t[n].normal=a[n];else _e(t[n].normal,a[n]);a[n]=null}if(o&&o[n]){if(Fe("itemStyle.emphasis."+n,"emphasis."+n),t[n]=t[n]||{},!t[n].emphasis)t[n].emphasis=o[n];else _e(t[n].emphasis,o[n]);o[n]=null}}}function At(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,n=t[e].emphasis;if(i)if(tr("'normal' hierarchy in "+e+" has been removed since 4.0. All style properties are configured in "+e+" directly now."),r)t[e].normal=t[e].emphasis=null,oe(t[e],i);else t[e]=i;if(n){if(tr(e+".emphasis has been changed to emphasis."+e+" since 4.0"),t.emphasis=t.emphasis||{},t.emphasis[e]=n,n.focus)t.emphasis.focus=n.focus;if(n.blurScope)t.emphasis.blurScope=n.blurScope}}}function cl(t){At(t,"itemStyle"),At(t,"lineStyle"),At(t,"areaStyle"),At(t,"label"),At(t,"labelLine"),At(t,"upperLabel"),At(t,"edgeLabel")}function Je(t,e){var r=pl(t)&&t[e],i=pl(r)&&r.textStyle;if(i){tr("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var n=0,a=sv.length;n<a;n++){var o=sv[n];if(i.hasOwnProperty(o))r[o]=i[o]}}}function _r(t){if(t)cl(t),Je(t,"label"),t.emphasis&&Je(t.emphasis,"label")}function MP(t){if(!pl(t))return;if(Id(t),cl(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;if(e)Id(e),_r(e);var r=t.markLine;if(r)Id(r),_r(r);var i=t.markArea;if(i)_r(i);var n=t.data;if(t.type==="graph"){n=n||t.nodes;var a=t.links||t.edges;if(a&&!ke(a))for(var o=0;o<a.length;o++)_r(a[o]);w(t.categories,function(u){cl(u)})}if(n&&!ke(n))for(var o=0;o<n.length;o++)_r(n[o]);if(e=t.markPoint,e&&e.data){var s=e.data;for(var o=0;o<s.length;o++)_r(s[o])}if(r=t.markLine,r&&r.data){var l=r.data;for(var o=0;o<l.length;o++)if(k(l[o]))_r(l[o][0]),_r(l[o][1]);else _r(l[o])}if(t.type==="gauge")Je(t,"axisLabel"),Je(t,"title"),Je(t,"detail");else if(t.type==="treemap")At(t.breadcrumb,"itemStyle"),w(t.levels,function(u){cl(u)});else if(t.type==="tree")cl(t.leaves)}function Di(t){return k(t)?t:t?[t]:[]}function fb(t){return(k(t)?t[0]:t)||{}}function Nd(t,e){yr(Di(t.series),function(i){pl(i)&&MP(i)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),yr(r,function(i){yr(Di(t[i]),function(n){if(n)Je(n,"axisLabel"),Je(n.axisPointer,"label")})}),yr(Di(t.parallel),function(i){var n=i&&i.parallelAxisDefault;Je(n,"axisLabel"),Je(n&&n.axisPointer,"label")}),yr(Di(t.calendar),function(i){At(i,"itemStyle"),Je(i,"dayLabel"),Je(i,"monthLabel"),Je(i,"yearLabel")}),yr(Di(t.radar),function(i){if(Je(i,"name"),i.name&&i.axisName==null)i.axisName=i.name,delete i.name,tr("name property in radar component has been changed to axisName");if(i.nameGap!=null&&i.axisNameGap==null)i.axisNameGap=i.nameGap,delete i.nameGap,tr("nameGap property in radar component has been changed to axisNameGap");yr(i.indicator,function(n){if(n.text)Fe("text","name","radar.indicator")})}),yr(Di(t.geo),function(i){if(pl(i))_r(i),yr(Di(i.regions),function(n){_r(n)})}),yr(Di(t.timeline),function(i){_r(i),At(i,"label"),At(i,"itemStyle"),At(i,"controlStyle",!0);var n=i.data;k(n)&&w(n,function(a){if(W(a))At(a,"label"),At(a,"itemStyle")})}),yr(Di(t.toolbox),function(i){At(i,"iconStyle"),yr(i.feature,function(n){At(n,"iconStyle")})}),Je(fb(t.axisPointer),"label"),Je(fb(t.tooltip).axisPointer,"label")}function OP(t,e){var r=e.split(","),i=t;for(var n=0;n<r.length;n++)if(i=i&&i[r[n]],i==null)break;return i}function LP(t,e,r,i){var n=e.split(","),a=t,o,s=0;for(;s<n.length-1;s++){if(o=n[s],a[o]==null)a[o]={};a=a[o]}if(i||a[n[s]]==null)a[n[s]]=r}function cb(t){t&&w(PP,function(e){if(e[0]in t&&!(e[1]in t))t[e[1]]=t[e[0]]})}var PP=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],IP=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Rd=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function hl(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<Rd.length;r++){var i=Rd[r][1],n=Rd[r][0];if(e[i]!=null)e[n]=e[i],Fe(i,n)}}function pb(t){if(!t)return;if(t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null)Fe("label.margin","label.edgeDistance","pie"),t.edgeDistance=t.margin}function hb(t){if(!t)return;if(t.downplay&&!t.blur)t.blur=t.downplay,Fe("downplay","blur","sunburst")}function NP(t){if(!t)return;if(t.focusNodeAdjacency!=null){if(t.emphasis=t.emphasis||{},t.emphasis.focus==null)Fe("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),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 _c(t,e){if(Nd(t,e),t.series=Ne(t.series),w(t.series,function(r){if(!W(r))return;var i=r.type;if(i==="line"){if(r.clipOverflow!=null)r.clip=r.clipOverflow,Fe("clipOverflow","clip","line")}else if(i==="pie"||i==="gauge"){if(r.clockWise!=null)r.clockwise=r.clockWise,Fe("clockWise","clockwise");pb(r.label);var n=r.data;if(n&&!ke(n))for(var a=0;a<n.length;a++)pb(n[a]);if(r.hoverOffset!=null){if(r.emphasis=r.emphasis||{},r.emphasis.scaleSize=null)Fe("hoverOffset","emphasis.scaleSize"),r.emphasis.scaleSize=r.hoverOffset}}else if(i==="gauge"){var o=OP(r,"pointer.color");o!=null&&LP(r,"itemStyle.color",o)}else if(i==="bar"){hl(r),hl(r.backgroundStyle),hl(r.emphasis);var n=r.data;if(n&&!ke(n)){for(var a=0;a<n.length;a++)if(typeof n[a]==="object")hl(n[a]),hl(n[a]&&n[a].emphasis)}}else if(i==="sunburst"){var s=r.highlightPolicy;if(s){if(r.emphasis=r.emphasis||{},!r.emphasis.focus)r.emphasis.focus=s,Fe("highlightPolicy","emphasis.focus","sunburst")}hb(r),vb(r.data,hb)}else if(i==="graph"||i==="sankey")NP(r);else if(i==="map"){if(r.mapType&&!r.map)Fe("mapType","map","map"),r.map=r.mapType;if(r.mapLocation)tr("`mapLocation` is not used anymore."),oe(r,r.mapLocation)}if(r.hoverAnimation!=null){if(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null)Fe("hoverAnimation","emphasis.scale"),r.emphasis.scale=r.hoverAnimation}cb(r)}),t.dataRange)t.visualMap=t.dataRange;w(IP,function(r){var i=t[r];if(i){if(!k(i))i=[i];w(i,function(n){cb(n)})}})}var db=mo(RP);function RP(t){var e=Z();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)return;var i=r[0].seriesModel,n=i.get("stackOrder")||"seriesAsc";if(n==="seriesDesc")r.reverse();w(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),kP(r)})}function kP(t){w(t,function(e,r){var i=[],n=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],{data:o,isStackedByIndex:s}=e,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,v;if(s)v=o.getRawIndex(c);else h=o.get(e.stackedByDimension,c);var d=NaN;for(var m=r-1;m>=0;m--){var g=t[m];if(!s)v=g.data.rawIndexOf(g.stackedByDimension,h);if(v>=0){var y=g.data.getByRawIndex(g.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&p>=0&&y>0||l==="samesign"&&p<=0&&y<0){p=j0(p,y),d=y;break}}}return i[0]=p,i[1]=d,i})})}var xc=function(){function t(e){this.data=e.data||(e.sourceFormat===Vt?{}:[]),this.sourceFormat=e.sourceFormat||Rv,this.seriesLayoutBy=e.seriesLayoutBy||nr,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];if(n.type==null){if(dc(this,i)===ot.Must)n.type="ordinal"}}}return t}();function Vo(t){return t instanceof xc}function vl(t,e,r){r=r||kd(t);var i=e.seriesLayoutBy,n=BP(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:te(e)});return a}function Ho(t){return new xc({data:t,sourceFormat:ke(t)?ir:at})}function yb(t){return new xc({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:te(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function kd(t){var e=Rv;if(ke(t))e=ir;else if(k(t)){if(t.length===0)e=tt;for(var r=0,i=t.length;r<i;r++){var n=t[r];if(n==null)continue;else if(k(n)||ke(n)){e=tt;break}else if(W(n)){e=wt;break}}}else if(W(t)){for(var a in t)if(Be(t,a)&&et(t[a])){e=Vt;break}}return e}function BP(t,e,r,i,n){var a,o;if(!t)return{dimensionsDefine:mb(n),startIndex:o,dimensionsDetectedCount:a};if(e===tt){var s=t;if(i==="auto"||i==null)gb(function(u){if(u!=null&&u!=="-")if(V(u))o==null&&(o=1);else o=0},r,s,10);else o=se(i)?i:i?1:0;if(!n&&o===1)n=[],gb(function(u,f){n[f]=u!=null?u+"":""},r,s,1/0);a=n?n.length:r===ii?s.length:s[0]?s[0].length:null}else if(e===wt){if(!n)n=zP(t)}else if(e===Vt){if(!n)n=[],w(t,function(u,f){n.push(f)})}else if(e===at){var l=yi(t[0]);a=k(l)&&l.length||1}else if(e===ir)I(!!n,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:mb(n),dimensionsDetectedCount:a}}function zP(t){var e=0,r;while(e<t.length&&!(r=t[e++]));if(r)return re(r)}function mb(t){if(!t)return;var e=Z();return U(t,function(r,i){r=W(r)?r:{name:r};var n={name:r.name,displayName:r.displayName,type:r.type};if(n.name==null)return n;if(n.name+="",n.displayName==null)n.displayName=n.name;var a=e.get(n.name);if(!a)e.set(n.name,{count:1});else n.name+="-"+a.count++;return n})}function gb(t,e,r,i){if(e===ii)for(var n=0;n<r.length&&n<i;n++)t(r[n]?r[n][0]:null,n);else{var a=r[0]||[];for(var n=0;n<a.length&&n<i;n++)t(a[n],n)}}function Sc(t){var e=t.sourceFormat;return e===wt||e===Vt}var ba,Ta,wa,Ca,_b,xb,wc=function(){function t(e,r){var i=!Vo(e)?Ho(e):e;this._source=i;var n=this._data=i.data,{sourceFormat:a,seriesLayoutBy:o}=i;if(a===ir){if(r==null)throw Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=r,this._data=n}var s=UP[Tc(a,o)];s&&s(n,i.dimensionsDefine),xb(this,n,i)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){return},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;xb=function(o,s,l){var{sourceFormat:u,seriesLayoutBy:f,startIndex:c,dimensionsDefine:p}=l,h=_b[Tc(u,f)];if(I(h,"Invalide sourceFormat: "+u),N(o,h),u===ir)o.getItem=r,o.count=n,o.fillStorage=i;else{var v=zd(u,f);o.getItem=me(v,null,s,c,p);var d=Ud(u,f);o.count=me(d,null,s,c,p)}};var r=function(o,s){o=o-this._offset,s=s||[];var l=this._data,u=this._dimSize,f=u*o;for(var c=0;c<u;c++)s[c]=l[f+c];return s},i=function(o,s,l,u){var f=this._data,c=this._dimSize;for(var p=0;p<c;p++){var h=u[p],v=h[0]==null?1/0:h[0],d=h[1]==null?-1/0:h[1],m=s-o,g=l[p];for(var y=0;y<m;y++){var _=f[y*c+p];g[o+y]=_,_<v&&(v=_),_>d&&(d=_)}h[0]=v,h[1]=d}},n=function(){return this._data?this._data.length/this._dimSize:0};_b=(e={},e[tt+"_"+nr]={pure:!0,appendData:a},e[tt+"_"+ii]={pure:!0,appendData:function(){throw Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[wt]={pure:!0,appendData:a},e[Vt]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){var f=s[u]||(s[u]=[]);for(var c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[at]={appendData:a},e[ir]={persistent:!1,pure:!0,appendData:function(o){I(ke(o),"Added data must be TypedArray if data in initialization is TypedArray"),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){if(!k(t))pe("series.data or dataset.source must be an array.")},UP=(ba={},ba[tt+"_"+nr]=bc,ba[tt+"_"+ii]=bc,ba[wt]=bc,ba[Vt]=function(t,e){for(var r=0;r<e.length;r++){var i=e[r].name;if(i==null)pe("dimension name must not be null/undefined.")}},ba[at]=bc,ba),Sb=function(t,e,r,i){return t[i]},FP=(Ta={},Ta[tt+"_"+nr]=function(t,e,r,i){return t[i+e]},Ta[tt+"_"+ii]=function(t,e,r,i,n){i+=e;var a=n||[],o=t;for(var s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},Ta[wt]=Sb,Ta[Vt]=function(t,e,r,i,n){var a=n||[];for(var 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},Ta[at]=Sb,Ta);function zd(t,e){var r=FP[Tc(t,e)];return I(r,'Do not support get item on "'+t+'", "'+e+'".'),r}var bb=function(t,e,r){return t.length},VP=(wa={},wa[tt+"_"+nr]=function(t,e,r){return Math.max(0,t.length-e)},wa[tt+"_"+ii]=function(t,e,r){var i=t[0];return i?Math.max(0,i.length-e):0},wa[wt]=bb,wa[Vt]=function(t,e,r){var i=r[0].name,n=i!=null?t[i]:null;return n?n.length:0},wa[at]=bb,wa);function Ud(t,e){var r=VP[Tc(t,e)];return I(r,'Do not support count on "'+t+'", "'+e+'".'),r}var Bd=function(t,e,r){return t[e]},HP=(Ca={},Ca[tt]=Bd,Ca[wt]=function(t,e,r){return t[r]},Ca[Vt]=Bd,Ca[at]=function(t,e,r){var i=yi(t);return!(i instanceof Array)?i:i[e]},Ca[ir]=Bd,Ca);function Fd(t){var e=HP[t];return I(e,'Do not support get value on "'+t+'".'),e}function Tc(t,e){return t===tt?t+"_"+e:t}function Mi(t,e,r){if(!t)return;var i=t.getRawDataItem(e);if(i==null)return;var n=t.getStore(),a=n.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=n.getDimensionProperty(o);return Fd(a)(i,o,s)}else{var l=i;if(a===at)l=yi(i);return l}}var GP=/\{@(.+?)\}/g,dl=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;if(n!=null&&k(l.value))l.value=l.value[n];if(!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(X(a))return l.status=r,l.dimensionIndex=n,a(l);else if(V(a)){var f=oc(a,l);return f.replace(GP,function(c,p){var h=p.length,v=p;if(v.charAt(0)==="["&&v.charAt(h-1)==="]"){if(v=+v.slice(1,h-1),isNaN(v))pe("Invalide label formatter: @"+p+", only support @[0], @[1], @[2], ...")}var d=Mi(s,e,v);if(o&&k(o.interpolatedValue)){var m=s.getDimensionIndex(v);if(m>=0)d=o.interpolatedValue[m]}return d!=null?d+"":""})}},t.prototype.getRawValue=function(e,r){return Mi(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,i){return},t}();function Vd(t){var e,r;if(W(t))if(t.type)r=t;else console.warn("The return type of `formatTooltip` is not supported: "+Kn(t));else e=t;return{text:e,frag:r}}function gn(t){return new YP(t)}var YP=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}if(this.__pipeline)this.__pipeline.currentTask=this;var a;if(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;if(o!==l||s!==u)a="reset";function f(y){return!(y>=1)&&(y=1),y}var c;if(this._dirty||a==="reset")this._dirty=!1,c=this._doReset(i);this._modBy=l,this._modDataCount=u;var p=e&&e.step;if(r)I(r._outputDueEnd!=null),this._dueEnd=r._outputDueEnd;else I(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0;if(this._progress){var h=this._dueIndex,v=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(c||h<v)){var d=this._progress;if(k(d))for(var m=0;m<d.length;m++)this._doProgress(d[m],h,v,l,u);else this._doProgress(d,h,v,l,u)}this._dueIndex=v;var g=this._settedOutputEnd!=null?this._settedOutputEnd:v;I(g>=this._outputDueEnd),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){Tb.reset(r,i,n,a),this._callingProgress=e,this._callingProgress({start:r,end:i,count:i-r,next:Tb.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,i;if(!e&&this._reset){if(r=this._reset(this.context),r&&r.progress)i=r.forceFirstProgress,r=r.progress;if(k(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){if(I(e&&!e._disposed&&e!==this),this._downstream!==e||this._dirty)this._downstream=e,e._upstream=this,e.dirty()},t.prototype.dispose=function(){if(this._disposed)return;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 Tb=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 Oi(t,e){var r=e&&e.type;if(r==="ordinal")return t;if(r==="time"&&!se(t)&&t!=null&&t!=="-")t=+Zr(t);return t==null||t===""?NaN:Number(t)}var l3=Z({number:function(t){return parseFloat(t)},time:function(t){return+Zr(t)},trim:function(t){return V(t)?vt(t):t}});var WP={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}},u3=function(){function t(e,r){if(!se(r)){var i="";i='rvalue of "<", ">", "<=", ">=" can only be number in filter.',st(i)}this._opFn=WP[e],this._rvalFloat=Kr(r)}return t.prototype.evaluate=function(e){return se(e)?this._opFn(e,this._rvalFloat):this._opFn(Kr(e),this._rvalFloat)},t}(),wb=function(){function t(e,r){var i=e==="desc";if(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=se(e)?e:Kr(e),n=se(r)?r:Kr(r),a=isNaN(i),o=isNaN(n);if(a)i=this._incomparable;if(o)n=this._incomparable;if(a&&o){var s=V(e),l=V(r);if(s)i=l?e:0;if(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=Kr(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var i=typeof e;if(i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number"))r=Kr(e)===this._rvalFloat}return this._isEQ?r:!r},t}();function Cc(t){var e="",r=-1/0,i=-1/0,n=1/0,a=1/0;if(t){if(t.g!=null)e+="G"+t.g,r=t.g;if(t.ge!=null)e+="GE"+t.ge,i=t.ge;if(t.l!=null)e+="L"+t.l,n=t.l;if(t.le!=null)e+="LE"+t.le,a=t.le}return{key:e,g:r,ge:i,l:n,le:a}}function Ac(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var XP=function(){function t(){}return t.prototype.getRawData=function(){throw Error("not supported")},t.prototype.getRawDataItem=function(e){throw Error("not supported")},t.prototype.cloneRawData=function(){return},t.prototype.getDimensionInfo=function(e){return},t.prototype.cloneAllDimensionInfo=function(){return},t.prototype.count=function(){return},t.prototype.retrieveValue=function(e,r){return},t.prototype.retrieveValueFromItem=function(e,r){return},t.prototype.convertValue=function(e,r){return Oi(e,r)},t}();function qP(t,e){var r=new XP,i=t.data,n=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";if(t.seriesLayoutBy!==nr)o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.',st(o);var s=[],l={},u=t.dimensionsDefine;if(u)w(u,function(d,m){var g=d.name,y={index:m,name:g,displayName:d.displayName};if(s.push(y),g!=null){var _="";if(Be(l,g))_='dimension name "'+g+'" duplicated.',st(_);l[g]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=zd(n,nr);if(e.__isBuiltIn)r.getRawDataItem=function(d){return c(i,a,s,d)},r.getRawData=me(ZP,null,t);r.cloneRawData=me(KP,null,t);var p=Ud(n,nr);r.count=me(p,null,i,a,s);var h=Fd(n);r.retrieveValue=function(d,m){var g=c(i,a,s,d);return v(g,m)};var v=r.retrieveValueFromItem=function(d,m){if(d==null)return;var g=s[m];if(g)return h(d,m,g.name)};return r.getDimensionInfo=me(jP,null,s,l),r.cloneAllDimensionInfo=me($P,null,s),r}function ZP(t){var e=t.sourceFormat;if(!Hd(e)){var r="";r="`getRawData` is not supported in source format "+e,st(r)}return t.data}function KP(t){var{sourceFormat:e,data:r}=t;if(!Hd(e)){var i="";i="`cloneRawData` is not supported in source format "+e,st(i)}if(e===tt){var n=[];for(var a=0,o=r.length;a<o;a++)n.push(r[a].slice());return n}else if(e===wt){var n=[];for(var a=0,o=r.length;a<o;a++)n.push(N({},r[a]));return n}}function jP(t,e,r){if(r==null)return;if(se(r)||!isNaN(r)&&!Be(e,r))return t[r];else if(Be(e,r))return e[r]}function $P(t){return te(t)}var Cb=Z();function Ab(t){t=te(t);var e=t.type,r="";if(!e)r="Must have a `type` when `registerTransform`.",st(r);var i=e.split(":");if(i.length!==2)r='Name must include namespace like "ns:regression".',st(r);var n=!1;if(i[0]==="echarts")e=i[1],n=!0;t.__isBuiltIn=n,Cb.set(e,t)}function Eb(t,e,r){var i=Ne(t),n=i.length,a="";if(!n)a="If `transform` declared, it should at least contain one transform.",st(a);for(var o=0,s=n;o<s;o++){var l=i[o];if(e=QP(l,e,r,n===1?null:o),o!==s-1)e.length=Math.max(e.length,1)}return e}function QP(t,e,r,i){var n="";if(!e.length)n="Must have at least one upstream dataset.",st(n);if(!W(t))n="transform declaration must be an object rather than "+typeof t+".",st(n);var a=t.type,o=Cb.get(a);if(!o)n='Can not find transform on type "'+a+'".',st(n);var s=U(e,function(f){return qP(f,o)}),l=Ne(o.transform({upstream:s[0],upstreamList:s,config:te(t.config)}));if(t.print){var u=U(l,function(f){var c=i!=null?" === pipe index: "+i:"";return["=== dataset index: "+r.datasetIndex+c+" ===","- transform result data:",Kn(f.data),"- transform result dimensions:",Kn(f.dimensions)].join(`
|
|
34
34
|
`)}).join(`
|
|
35
|
-
`);Ju(u)}return U(l,function(f,c){var p="";if(!W(f))p="A transform should not return some empty results.",st(p);if(!f.data)p="Transform result data should be not be null or undefined",st(p);var h=Nd(f.data);if(!Fd(h))p="Transform result data should be array rows or object rows.",st(p);var v,d=e[0];if(d&&c===0&&!f.dimensions){var m=d.startIndex;if(m)f.data=d.data.slice(0,m).concat(f.data);v={seriesLayoutBy:nr,sourceHeader:m,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:nr,sourceHeader:0,dimensions:f.dimensions};return pl(f.data,v,null)})}function Fd(t){return t===tt||t===wt}var jP=typeof Uint32Array===sn?Array:Uint32Array,QP=typeof Uint16Array===sn?Array:Uint16Array,Hd=typeof Int32Array===sn?Array:Int32Array,Ab=typeof Float64Array===sn?Array:Float64Array,Db={float:Ab,int:Hd,ordinal:Array,number:Array,time:Ab},Vd;function Ho(t){return t>65535?jP:QP}function $P(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Eb(t,e,r,i,n){var a=Db[r||"float"];if(n){var o=t[e],s=o&&o.length;if(s!==i){var l=new a(i);for(var u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(i)}var JP=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Z()}return t.prototype.initData=function(e,r,i){I(X(e.getItem)&&X(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),a=this.defaultDimValueGetter=Vd[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[];var o=_c(n);this._dimensions=U(r,function(s){if(o)I(s.property!=null);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 Db[r||"float"](this._rawCount),this._rawExtent[a]=gt(),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;if(o===0)a[e]=gt();var l=a[e];for(var u=o;u<s;u++){var f=i[u]=r.parseAndCollect(i[u]);if(!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){I(!this._indices,"appendData can only be called on raw data.");var r=this._provider,i=this.count();r.appendData(e);var n=r.count();if(!r.persistent)n+=i;if(i<n)this._initDataFromProvider(i,n,!0);return[i,n]},t.prototype.appendValues=function(e,r){var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0);for(var u=0;u<a;u++){var f=n[u];Eb(i,u,f.type,l,!0)}var c=[];for(var p=s;p<l;p++){var h=p-s;for(var v=0;v<a;v++){var f=n[v],d=Vd.arrayRows.call(this,e[h]||c,f.property,h,v);i[v][p]=d;var m=o[v];d<m[0]&&(m[0]=d),d>m[1]&&(m[1]=d)}}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,i){var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=U(o,function(y){return y.property});for(var f=0;f<s;f++){var c=o[f];if(!l[f])l[f]=gt();Eb(a,f,c.type,r,i)}if(n.fillStorage)n.fillStorage(e,r,a,l);else{var p=[];for(var h=e;h<r;h++){p=n.getItem(h,p);for(var v=0;v<s;v++){var d=a[v],m=this._dimValueGetter(p,u[v],h,v);d[h]=m;var g=l[v];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}if(!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);if(!isNaN(o))i+=o}return i},t.prototype.getMedian=function(e){var r=[];this.each([e],function(n){if(!isNaN(n))r.push(n)}),po(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;var n=0,a=this._count-1;while(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=Ho(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;var i=this.clone(),n=i.count(),a=Ho(i._rawCount),o=new a(n),s=[],l=e.length,u=0,f=e[0],c=i._chunks;for(var p=0;p<n;p++){var h=void 0,v=i.getRawIndex(p);if(l===0)h=r(p);else if(l===1){var d=c[f][v];h=r(d,p)}else{var m=0;for(;m<l;m++)s[m]=c[e[m]][v];s[m]=p,h=r.apply(null,s)}if(h)o[u++]=v}if(u<n)i._indices=o;return 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=re(e),a=n.length;if(!a)return this;var o=r.count(),s=Ho(r._rawCount),l=new s(o),u=0,f=n[0],c=e[f][0],p=e[f][1],h=r._chunks,v=!1;if(!r._indices){var d=0;if(a===1){var m=h[n[0]];for(var g=0;g<i;g++){var y=m[g];if(y>=c&&y<=p||isNaN(y))l[u++]=d;d++}v=!0}else if(a===2){var m=h[n[0]],_=h[n[1]],x=e[n[1]][0],S=e[n[1]][1];for(var g=0;g<i;g++){var y=m[g],b=_[g];if((y>=c&&y<=p||isNaN(y))&&(b>=x&&b<=S||isNaN(b)))l[u++]=d;d++}v=!0}}if(!v)if(a===1)for(var g=0;g<o;g++){var T=r.getRawIndex(g),y=h[n[0]][T];if(y>=c&&y<=p||isNaN(y))l[u++]=T}else for(var g=0;g<o;g++){var A=!0,T=r.getRawIndex(g);for(var C=0;C<a;C++){var E=n[C],y=h[E][T];if(y<e[E][0]||y>e[E][1])A=!1}if(A)l[u++]=r.getRawIndex(g)}if(u<o)r._indices=l;return 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){var n=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent;for(var f=0;f<r.length;f++)u[r[f]]=gt();for(var c=0;c<s;c++){var p=e.getRawIndex(c);for(var h=0;h<o;h++)l[h]=n[r[h]][p];l[o]=c;var v=i&&i.apply(null,l);if(v!=null){if(typeof v!=="object")a[0]=v,v=a;for(var f=0;f<v.length;f++){var d=r[f],m=v[f],g=u[d],y=n[d];if(y)y[p]=m;if(m<g[0])g[0]=m;if(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(Ho(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){var d=Math.min(v+l,o-1),m=Math.min(v+l*2,o),g=(m+d)/2,y=0;for(var _=d;_<m;_++){var x=this.getRawIndex(_),S=a[x];if(isNaN(S))continue;y+=S}y/=m-d;var b=v,T=Math.min(v+l,o),A=v-1,C=a[u];f=-1,p=b;var E=-1,D=0;for(var _=b;_<T;_++){var x=this.getRawIndex(_),S=a[x];if(isNaN(S)){if(D++,E<0)E=x;continue}if(c=Math.abs((A-g)*(S-C)-(A-_)*(y-C)),c>f)f=c,p=x}if(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){var i=this.clone([e],!0),n=i._chunks,a=Math.floor(1/r),o=n[e],s=this.count(),l=new(Ho(this._rawCount))(Math.ceil(s/a)*2),u=0;for(var f=0;f<s;f+=a){var c=f,p=o[this.getRawIndex(c)],h=f,v=o[this.getRawIndex(h)],d=a;if(f+a>s)d=s-f;for(var m=0;m<d;m++){var g=this.getRawIndex(f+m),y=o[g];if(y<p)p=y,c=f+m;if(y>v)v=y,h=f+m}var _=this.getRawIndex(c),x=this.getRawIndex(h);if(c<h)l[u++]=_,l[u++]=x;else l[u++]=x,l[u++]=_}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},t.prototype.downSample=function(e,r,i,n){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]=gt(),p=new(Ho(this._rawCount))(Math.ceil(f/l)),h=0;for(var v=0;v<f;v+=l){if(l>f-v)l=f-v,s.length=l;for(var d=0;d<l;d++){var m=this.getRawIndex(v+d);s[d]=u[m]}var g=i(s),y=this.getRawIndex(Math.min(v+n(s,g)||0,f-1));if(u[y]=g,g<c[0])c[0]=g;if(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)return;var i=e.length,n=this._chunks;for(var 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:var l=0,u=[];for(;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=gt();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();var p=n[0],h=n[1];for(var v=0;v<a;v++){var d=this.getRawIndex(v),m=i[d];if(!r||wc(u,m)){if(m<p)p=m;if(m>h)h=m}}return l[f]=[p,h]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(!this._provider.persistent){var i=[],n=this._chunks;for(var a=0;a<n.length;a++)i.push(n[a][r]);return i}else return this._provider.getItem(r)},t.prototype.clone=function(e,r){var i=new t,n=this._chunks,a=e&&Qt(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=!a[o]?n[o]:$P(n[o]);else i._chunks=n;if(this._copyCommonProps(i),!r)i._indices=this._cloneIndices();return 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=te(this._extent),e._rawExtent=te(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){if(e<this._count&&e>=0)return this._indices[e];return-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,i,n,a){return Oi(r[a],this._dimensions[a])}Vd={arrayRows:e,objectRows:function(r,i,n,a){return Oi(r[i],this._dimensions[a])},keyedColumns:e,original:function(r,i,n,a){var o=r&&(r.value==null?r:r.value);return Oi(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,i,n,a){return r[a]}}}(),t}(),vl=JP;var Ob=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){if(this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>90000000000)this._versionSignBase=0},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){if(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(dl(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=ke(s)?ir:at,a=[];var c=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},h=G(c.seriesLayoutBy,p.seriesLayoutBy)||null,v=G(c.sourceHeader,p.sourceHeader),d=G(c.dimensions,p.dimensions),m=h!==p.seriesLayoutBy||!!v!==!!p.sourceHeader||d;n=m?[pl(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:d},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=[pl(_,this._getSourceMetaRawOption(),null)],a=[]}}I(n&&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(I(n!=null||i!=null),n!=null){var a="";if(e.length!==1)a="When using `fromTransformResult`, there should be only one upstream dataset",Mb(a)}var o,s=[],l=[];if(w(e,function(u){u.prepareSource();var f=u.getSource(n||0),c="";if(n!=null&&!f)c="Can not retrieve result by `fromTransformResult`: "+n,Mb(c);s.push(f),l.push(u._getVersionSign())}),i)o=Cb(i,s,{datasetIndex:r.componentIndex});else if(n!=null)o=[mb(s[0])];return{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;var e=this._getUpstreamSourceManagers();for(var 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){I(dl(this._sourceHost),"Can only call getDataStore on series source manager.");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];if(!o)o=a[n]={};var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];if(dl(this._sourceHost)&&l)s=l._innerGetDataStore(e,r,i);else s=new vl,s.initData(new bc(r,e.length),e);o[i]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(dl(e)){var r=pc(e);return!r?[]:[r.getSourceManager()]}else return U(KS(e),function(i){return i.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,i,n;if(dl(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 dl(t){return t.mainType==="series"}function Mb(t){throw Error(t)}var eI="line-height:1";function Lb(t){var e=t.lineHeight;if(e==null)return eI;else return"line-height:"+it(e+"")+"px"}function Pb(t,e){var r=t.color||he.color.tertiary,i=t.fontSize||12,n=t.fontWeight||"400",a=t.color||he.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";if(e==="html")return{nameStyle:"font-size:"+it(i+"")+"px;color:"+it(r)+";font-weight:"+it(n+""),valueStyle:"font-size:"+it(o+"")+"px;color:"+it(a)+";font-weight:"+it(s+"")};else return{nameStyle:{fontSize:i,fill:r,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var tI=[0,10,20,30],rI=["",`
|
|
35
|
+
`);tf(u)}return U(l,function(f,c){var p="";if(!W(f))p="A transform should not return some empty results.",st(p);if(!f.data)p="Transform result data should be not be null or undefined",st(p);var h=kd(f.data);if(!Hd(h))p="Transform result data should be array rows or object rows.",st(p);var v,d=e[0];if(d&&c===0&&!f.dimensions){var m=d.startIndex;if(m)f.data=d.data.slice(0,m).concat(f.data);v={seriesLayoutBy:nr,sourceHeader:m,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:nr,sourceHeader:0,dimensions:f.dimensions};return vl(f.data,v,null)})}function Hd(t){return t===tt||t===wt}var JP=typeof Uint32Array===ln?Array:Uint32Array,eI=typeof Uint16Array===ln?Array:Uint16Array,Yd=typeof Int32Array===ln?Array:Int32Array,Db=typeof Float64Array===ln?Array:Float64Array,Ob={float:Db,int:Yd,ordinal:Array,number:Array,time:Db},Gd;function Go(t){return t>65535?JP:eI}function tI(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Mb(t,e,r,i,n){var a=Ob[r||"float"];if(n){var o=t[e],s=o&&o.length;if(s!==i){var l=new a(i);for(var u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(i)}var rI=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Z()}return t.prototype.initData=function(e,r,i){I(X(e.getItem)&&X(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),a=this.defaultDimValueGetter=Gd[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[];var o=Sc(n);this._dimensions=U(r,function(s){if(o)I(s.property!=null);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 Ob[r||"float"](this._rawCount),this._rawExtent[a]=gt(),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;if(o===0)a[e]=gt();var l=a[e];for(var u=o;u<s;u++){var f=i[u]=r.parseAndCollect(i[u]);if(!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){I(!this._indices,"appendData can only be called on raw data.");var r=this._provider,i=this.count();r.appendData(e);var n=r.count();if(!r.persistent)n+=i;if(i<n)this._initDataFromProvider(i,n,!0);return[i,n]},t.prototype.appendValues=function(e,r){var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0);for(var u=0;u<a;u++){var f=n[u];Mb(i,u,f.type,l,!0)}var c=[];for(var p=s;p<l;p++){var h=p-s;for(var v=0;v<a;v++){var f=n[v],d=Gd.arrayRows.call(this,e[h]||c,f.property,h,v);i[v][p]=d;var m=o[v];d<m[0]&&(m[0]=d),d>m[1]&&(m[1]=d)}}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,i){var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=U(o,function(y){return y.property});for(var f=0;f<s;f++){var c=o[f];if(!l[f])l[f]=gt();Mb(a,f,c.type,r,i)}if(n.fillStorage)n.fillStorage(e,r,a,l);else{var p=[];for(var h=e;h<r;h++){p=n.getItem(h,p);for(var v=0;v<s;v++){var d=a[v],m=this._dimValueGetter(p,u[v],h,v);d[h]=m;var g=l[v];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}if(!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);if(!isNaN(o))i+=o}return i},t.prototype.getMedian=function(e){var r=[];this.each([e],function(n){if(!isNaN(n))r.push(n)}),ho(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;var n=0,a=this._count-1;while(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=Go(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;var i=this.clone(),n=i.count(),a=Go(i._rawCount),o=new a(n),s=[],l=e.length,u=0,f=e[0],c=i._chunks;for(var p=0;p<n;p++){var h=void 0,v=i.getRawIndex(p);if(l===0)h=r(p);else if(l===1){var d=c[f][v];h=r(d,p)}else{var m=0;for(;m<l;m++)s[m]=c[e[m]][v];s[m]=p,h=r.apply(null,s)}if(h)o[u++]=v}if(u<n)i._indices=o;return 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=re(e),a=n.length;if(!a)return this;var o=r.count(),s=Go(r._rawCount),l=new s(o),u=0,f=n[0],c=e[f][0],p=e[f][1],h=r._chunks,v=!1;if(!r._indices){var d=0;if(a===1){var m=h[n[0]];for(var g=0;g<i;g++){var y=m[g];if(y>=c&&y<=p||isNaN(y))l[u++]=d;d++}v=!0}else if(a===2){var m=h[n[0]],_=h[n[1]],x=e[n[1]][0],S=e[n[1]][1];for(var g=0;g<i;g++){var y=m[g],b=_[g];if((y>=c&&y<=p||isNaN(y))&&(b>=x&&b<=S||isNaN(b)))l[u++]=d;d++}v=!0}}if(!v)if(a===1)for(var g=0;g<o;g++){var T=r.getRawIndex(g),y=h[n[0]][T];if(y>=c&&y<=p||isNaN(y))l[u++]=T}else for(var g=0;g<o;g++){var A=!0,T=r.getRawIndex(g);for(var C=0;C<a;C++){var E=n[C],y=h[E][T];if(y<e[E][0]||y>e[E][1])A=!1}if(A)l[u++]=r.getRawIndex(g)}if(u<o)r._indices=l;return 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){var n=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent;for(var f=0;f<r.length;f++)u[r[f]]=gt();for(var c=0;c<s;c++){var p=e.getRawIndex(c);for(var h=0;h<o;h++)l[h]=n[r[h]][p];l[o]=c;var v=i&&i.apply(null,l);if(v!=null){if(typeof v!=="object")a[0]=v,v=a;for(var f=0;f<v.length;f++){var d=r[f],m=v[f],g=u[d],y=n[d];if(y)y[p]=m;if(m<g[0])g[0]=m;if(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(Go(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){var d=Math.min(v+l,o-1),m=Math.min(v+l*2,o),g=(m+d)/2,y=0;for(var _=d;_<m;_++){var x=this.getRawIndex(_),S=a[x];if(isNaN(S))continue;y+=S}y/=m-d;var b=v,T=Math.min(v+l,o),A=v-1,C=a[u];f=-1,p=b;var E=-1,D=0;for(var _=b;_<T;_++){var x=this.getRawIndex(_),S=a[x];if(isNaN(S)){if(D++,E<0)E=x;continue}if(c=Math.abs((A-g)*(S-C)-(A-_)*(y-C)),c>f)f=c,p=x}if(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){var i=this.clone([e],!0),n=i._chunks,a=Math.floor(1/r),o=n[e],s=this.count(),l=new(Go(this._rawCount))(Math.ceil(s/a)*2),u=0;for(var f=0;f<s;f+=a){var c=f,p=o[this.getRawIndex(c)],h=f,v=o[this.getRawIndex(h)],d=a;if(f+a>s)d=s-f;for(var m=0;m<d;m++){var g=this.getRawIndex(f+m),y=o[g];if(y<p)p=y,c=f+m;if(y>v)v=y,h=f+m}var _=this.getRawIndex(c),x=this.getRawIndex(h);if(c<h)l[u++]=_,l[u++]=x;else l[u++]=x,l[u++]=_}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},t.prototype.downSample=function(e,r,i,n){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]=gt(),p=new(Go(this._rawCount))(Math.ceil(f/l)),h=0;for(var v=0;v<f;v+=l){if(l>f-v)l=f-v,s.length=l;for(var d=0;d<l;d++){var m=this.getRawIndex(v+d);s[d]=u[m]}var g=i(s),y=this.getRawIndex(Math.min(v+n(s,g)||0,f-1));if(u[y]=g,g<c[0])c[0]=g;if(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)return;var i=e.length,n=this._chunks;for(var 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:var l=0,u=[];for(;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=gt();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=Cc(r),f=u.key,c=l[f];if(c)return c.slice();var p=n[0],h=n[1];for(var v=0;v<a;v++){var d=this.getRawIndex(v),m=i[d];if(!r||Ac(u,m)){if(m<p)p=m;if(m>h)h=m}}return l[f]=[p,h]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(!this._provider.persistent){var i=[],n=this._chunks;for(var a=0;a<n.length;a++)i.push(n[a][r]);return i}else return this._provider.getItem(r)},t.prototype.clone=function(e,r){var i=new t,n=this._chunks,a=e&&$t(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=!a[o]?n[o]:tI(n[o]);else i._chunks=n;if(this._copyCommonProps(i),!r)i._indices=this._cloneIndices();return 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=te(this._extent),e._rawExtent=te(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){if(e<this._count&&e>=0)return this._indices[e];return-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,i,n,a){return Oi(r[a],this._dimensions[a])}Gd={arrayRows:e,objectRows:function(r,i,n,a){return Oi(r[i],this._dimensions[a])},keyedColumns:e,original:function(r,i,n,a){var o=r&&(r.value==null?r:r.value);return Oi(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,i,n,a){return r[a]}}}(),t}(),ml=rI;var Pb=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){if(this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>90000000000)this._versionSignBase=0},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){if(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(gl(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=ke(s)?ir:at,a=[];var c=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},h=G(c.seriesLayoutBy,p.seriesLayoutBy)||null,v=G(c.sourceHeader,p.sourceHeader),d=G(c.dimensions,p.dimensions),m=h!==p.seriesLayoutBy||!!v!==!!p.sourceHeader||d;n=m?[vl(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:d},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=[vl(_,this._getSourceMetaRawOption(),null)],a=[]}}I(n&&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(I(n!=null||i!=null),n!=null){var a="";if(e.length!==1)a="When using `fromTransformResult`, there should be only one upstream dataset",Lb(a)}var o,s=[],l=[];if(w(e,function(u){u.prepareSource();var f=u.getSource(n||0),c="";if(n!=null&&!f)c="Can not retrieve result by `fromTransformResult`: "+n,Lb(c);s.push(f),l.push(u._getVersionSign())}),i)o=Eb(i,s,{datasetIndex:r.componentIndex});else if(n!=null)o=[yb(s[0])];return{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;var e=this._getUpstreamSourceManagers();for(var 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){I(gl(this._sourceHost),"Can only call getDataStore on series source manager.");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];if(!o)o=a[n]={};var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];if(gl(this._sourceHost)&&l)s=l._innerGetDataStore(e,r,i);else s=new ml,s.initData(new wc(r,e.length),e);o[i]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(gl(e)){var r=vc(e);return!r?[]:[r.getSourceManager()]}else return U($S(e),function(i){return i.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,i,n;if(gl(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 gl(t){return t.mainType==="series"}function Lb(t){throw Error(t)}var iI="line-height:1";function Ib(t){var e=t.lineHeight;if(e==null)return iI;else return"line-height:"+it(e+"")+"px"}function Nb(t,e){var r=t.color||he.color.tertiary,i=t.fontSize||12,n=t.fontWeight||"400",a=t.color||he.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";if(e==="html")return{nameStyle:"font-size:"+it(i+"")+"px;color:"+it(r)+";font-weight:"+it(n+""),valueStyle:"font-size:"+it(o+"")+"px;color:"+it(a)+";font-weight:"+it(s+"")};else return{nameStyle:{fontSize:i,fill:r,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var nI=[0,10,20,30],aI=["",`
|
|
36
36
|
`,`
|
|
37
37
|
|
|
38
38
|
`,`
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
`];function si(t,e){return e.type=t,e}function Gd(t){return t.type==="section"}function Ib(t){return Gd(t)?iI:nI}function Nb(t){if(Gd(t)){var e=0,r=t.blocks.length,i=r>1||r>0&&!t.noHeader;return w(t.blocks,function(n){var a=Nb(n);if(a>=e)e=a+ +(i&&(!a||Gd(n)&&!n.noHeader))}),e}return 0}function iI(t,e,r,i){var n=e.noHeader,a=aI(Nb(e)),o=[],s=e.blocks||[];I(!s||k(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Be(u,l)){var f=new bb(u[l],null);s.sort(function(d,m){return f.evaluate(d.sortParam,m.sortParam)})}else if(l==="seriesDesc")s.reverse()}w(s,function(d,m){var g=e.valueFormatter,y=Ib(d)(g?N(N({},t),{valueFormatter:g}):t,d,m>0?a.html:0,i);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(a.richText):Yd(i,o.join(""),n?r:a.html);if(n)return c;var p=ic(e.header,"ordinal",t.useUTC),h=Pb(i,t.renderMode).nameStyle,v=Lb(i);if(t.renderMode==="richText")return Rb(t,p,h)+a.richText+c;else return Yd(i,'<div style="'+h+";"+v+';">'+it(p)+"</div>"+c,r)}function nI(t,e,r,i){var n=t.renderMode,{noName:a,noValue:o}=e,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(x){return x=k(x)?x:[x],U(x,function(S,b){return ic(S,k(h)?h[b]:h,u)})};if(a&&o)return;var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||he.color.secondary,n),p=a?"":ic(l,"ordinal",u),h=e.valueType,v=o?[]:f(e.value,e.rawDataIndex),d=!s||!a,m=!s&&a,g=Pb(i,n),{nameStyle:y,valueStyle:_}=g;return n==="richText"?(s?"":c)+(a?"":Rb(t,p,y))+(o?"":lI(t,v,d,m,_)):Yd(i,(s?"":c)+(a?"":oI(p,!s,y))+(o?"":sI(v,d,m,_)),r)}function Wd(t,e,r,i,n,a){if(!t)return;var o=Ib(t),s={useUTC:n,renderMode:r,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}function aI(t){return{html:tI[t],richText:rI[t]}}function Yd(t,e,r){var i='<div style="clear:both"></div>',n="margin: "+r+"px 0 0",a=Lb(t);return'<div style="'+n+";"+a+';">'+e+i+"</div>"}function oI(t,e,r){var i=e?"margin-left:2px":"";return'<span style="'+r+";"+i+'">'+it(t)+"</span>"}function sI(t,e,r,i){var n=r?"10px":"20px",a=e?"float:right;margin-left:"+n:"";return t=k(t)?t:[t],'<span style="'+a+";"+i+'">'+U(t,function(o){return it(o)}).join(" ")+"</span>"}function Rb(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function lI(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(k(e)?e.join(" "):e,a)}function kb(t,e){var r=t.getData().getItemVisual(e,"style"),i=r[t.visualDrawType];return Ir(i)}function Cc(t,e){var r=t.get("padding");return r!=null?r:e==="richText"?[8,10]:10}var Ac=function(){function t(){this.richTextStyles={},this._nextStyleNameId=ks()}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=kS({color:r,type:e,renderMode:i,markerId:n});if(V(a))return a;else return I(n),this.richTextStyles[n]=a.style,a.content},t.prototype.wrapRichTextStyle=function(e,r){var i={};if(k(r))w(r,function(a){return N(i,a)});else N(i,r);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+e+"}"},t}();function Bb(t){var{series:e,dataIndex:r,multipleSeries:i}=t,n=e.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=k(s),u=kb(e,r),f,c,p,h;if(o>1||l&&!o){var v=uI(s,e,r,a,u);f=v.inlineValues,c=v.inlineValueTypes,p=v.blocks,h=v.inlineValues[0]}else if(o){var d=n.getDimensionInfo(a[0]);h=f=Mi(n,r,a[0]),c=d.type}else h=f=l?s[0]:s;var m=ef(e),g=m&&e.name||"",y=n.getName(r),_=i?g:y;return si("section",{header:g,noHeader:i||!m,sortParam:h,blocks:[si("nameValue",{markerType:"item",markerColor:u,name:_,noName:!vt(_),value:f,valueType:c,rawDataIndex:n.getRawIndex(r)})].concat(p||[])})}function uI(t,e,r,i,n){var a=e.getData(),o=Qt(t,function(c,p,h){var v=a.getDimensionInfo(h);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];i.length?w(i,function(c){f(Mi(a,r,c),c)}):w(t,f);function f(c,p){var h=a.getDimensionInfo(p);if(!h||h.otherDims.tooltip===!1)return;if(o)u.push(si("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:c,valueType:h.type}));else s.push(c),l.push(h.type)}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var gn=ee();function Ec(t,e){return t.getName(e)||t.getId(e)}var fI="__universalTransitionEnabled",Dc=function(t){P(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:pI,reset:hI}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);var a=gn(this).sourceManager=new Ob(this);a.prepareSource();var o=this.getInitialData(r,n);Ub(o,this),this.dataTask.context.data=o,I(o,"getInitialData returned invalid data."),gn(this).dataBeforeProcessed=o,zb(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=vn(this),a=n?dn(r):{},o=this.subType;if(be.hasClass(o))o+="Series";if(_e(r,i.getTheme().get(this.subType)),_e(r,this.getDefaultOption()),Kn(r,"label",["show"]),this.fillDataTextStyle(r.data),n)Nr(r,a,n)},e.prototype.mergeOption=function(r,i){r=_e(this.option,r,!0),this.fillDataTextStyle(r.data);var n=vn(this);if(n)Nr(this.option,r,n);var a=gn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,i);Ub(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,gn(this).dataBeforeProcessed=o,zb(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!ke(r)){var i=["show"];for(var n=0;n<r.length;n++)if(r[n]&&r[n].label)Kn(r[n],"label",i)}},e.prototype.getInitialData=function(r,i){return},e.prototype.appendData=function(r){var i=this.getRawData();i.appendData(r.data)},e.prototype.getData=function(r){var i=Xd(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=Xd(this);if(i){var n=i.context;if(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 Z(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);if(a==null)a=1/0;var f=[],c=1/0,p=-1,h=0,v=o.getDimensionIndex(i),d=o.getStore();for(var m=0,g=d.count();m<g;m++){var y=d.get(v,m),_=l.dataToCoord(y),x=u-_,S=Math.abs(x);if(S<=a){if(S<c||S===c&&x>=0&&p<0)c=S,p=x,h=0;if(x===p)f[h++]=m}}return f.length=h,f},e.prototype.formatTooltip=function(r,i,n){return Bb({series:this,dataIndex:r,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ne.node&&!(r&&r.ssr))return!1;var i=this.getShallow("animation");if(i){if(this.getData().count()>this.getShallow("animationThreshold"))i=!1}return!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,i,n){var a=this.ecModel,o=sl.prototype.getColorFromPalette.call(this,r,i,n);if(!o)o=a.getColorFromPalette(r,i,n);return 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)return;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=Ec(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}},e.prototype.toggleSelect=function(r,i){var n=[];for(var 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());var r=this._selectedDataIndicesMap,i=re(r),n=[];for(var a=0;a<i.length;a++){var o=r[i[a]];if(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[Ec(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[fI])return!0;var r=this.option.universalTransition;if(!r)return!1;if(r===!0)return!0;return r&&r.enabled},e.prototype._innerSelect=function(r,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!s||!l)return;if(s==="series")o.selectedMap="all";else if(s==="multiple"){if(!W(o.selectedMap))o.selectedMap={};var u=o.selectedMap;for(var f=0;f<l;f++){var c=i[f],p=Ec(r,c);u[p]=!0,this._selectedDataIndicesMap[p]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=i[l-1],p=Ec(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)return;var i=[];if(r.hasItemOption)r.each(function(n){var a=r.getRawDataItem(n);if(a&&a.selected)i.push(n)});if(i.length>0)this._innerSelect(r,i)},e.registerClass=function(r){return be.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}(be);ht(Dc,hl);ht(Dc,sl);af(Dc,be);function zb(t){var e=t.name;if(!ef(t))t.name=cI(t)||e}function cI(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 pI(t){return t.model.getRawData().count()}function hI(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),vI}function vI(t,e){if(e.outputData&&t.end>e.outputData.count())e.model.getRawData().cloneShallow(e.outputData)}function Ub(t,e){w(Ty(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Ae(dI,e))})}function dI(t,e){var r=Xd(t);if(r)r.setOutputEnd((e||this).count());return e}function Xd(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var i=r.currentTask;if(i){var n=i.agentStubMap;if(n)i=n.get(t.uid)}return i}}var or=Dc;var qd=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;if(r)r.traverse(e)},t}();mo(qd);tn(qd);var Ot=qd;function Ca(){var t=ee();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 Hb=ee(),mI=Ca(),Zd=function(){function t(){this.group=new we,this.uid=hn("viewChart"),this.renderTask=mn({plan:gI,reset:yI}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){throw Error("render method must been implemented")},t.prototype.highlight=function(e,r,i,n){var a=e.getData(n&&n.dataType);if(!a){pe("Unknown dataType "+n.dataType);return}Vb(a,n,"emphasis")},t.prototype.downplay=function(e,r,i,n){var a=e.getData(n&&n.dataType);if(!a){pe("Unknown dataType "+n.dataType);return}Vb(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){Ci(this.group,e)},t.markUpdateMethod=function(e,r){Hb(e).updateMethod=r},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function Fb(t,e,r){if(t&&un(t))(e==="emphasis"?Ti:wi)(t,r)}function Vb(t,e,r){var i=cr(t,e),n=e&&e.highlightKey!=null?bx(e.highlightKey):null;if(i!=null)w(Ne(i),function(a){Fb(t.getItemGraphicEl(a),r,n)});else t.eachItemGraphicEl(function(a){Fb(a,r,n)})}mo(Zd,["dispose"]);tn(Zd);function gI(t){return mI(t.model)}function yI(t){var{model:e,ecModel:r,api:i,payload:n}=t,a=e.pipelineContext.progressiveRender,o=t.view,s=n&&Hb(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";if(l!=="render")o[l](e,r,i,n);return _I[l]}var _I={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)}}},Lt=Zd;var Mc="\x00__throttleOriginMethod",Gb="\x00__throttleRate",Yb="\x00__throttleType";function ml(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(){var h=[];for(var v=0;v<arguments.length;v++)h[v]=arguments[v];i=new Date().getTime(),l=this,u=h;var d=f||e,m=f||r;if(f=null,s=i-(m?n:a)-d,clearTimeout(o),m)o=setTimeout(c,d);else if(s>=0)c();else o=setTimeout(c,-s);n=i};return p.clear=function(){if(o)clearTimeout(o),o=null},p.debounceNextCall=function(h){f=h},p}function Oc(t,e,r,i){var n=t[e];if(!n)return;var a=n[Mc]||n,o=n[Yb],s=n[Gb];if(s!==r||o!==i){if(r==null||!i)return t[e]=a;n=t[e]=ml(a,r,i==="debounce"),n[Mc]=a,n[Yb]=i,n[Gb]=r}return n}function gl(t,e){var r=t[e];if(r&&r[Mc])r.clear&&r.clear(),t[e]=r[Mc]}var Wb=ee(),Xb={itemStyle:jr(fd,!0),lineStyle:jr(ud,!0)},SI={lineStyle:"stroke",itemStyle:"fill"};function qb(t,e){var r=t.visualStyleMapper||Xb[e];if(!r)return console.warn("Unknown style type '"+e+"'."),Xb.itemStyle;return r}function Zb(t,e){var r=t.visualDrawType||SI[e];if(!r)return console.warn("Unknown style type '"+e+"'."),"fill";return r}var Kb={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=t.getModel(i),a=qb(t,i),o=a(n),s=n.getShallow("decal");if(s)r.setVisual("decal",s),s.dirty=!0;var l=Zb(t,i),u=o[l],f=X(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());if(!o[l])o[l]=p,r.setVisual("colorFromPalette",!0);o.fill=o.fill==="auto"||X(o.fill)?p:o.fill,o.stroke=o.stroke==="auto"||X(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,v){var d=t.getDataParams(v),m=N({},o);m[l]=f(d),h.setItemVisual(v,"style",m)}}}},yl=new Re,jb={createOnAllSeries:!0,reset:function(t,e){if(t.ignoreStyleOnData)return;var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=qb(t,i),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){yl.option=l[i];var u=n(yl),f=o.ensureUniqueItemVisual(s,"style");if(N(f,u),yl.option.decal)o.setItemVisual(s,"decal",yl.option.decal),yl.option.decal.dirty=!0;if(a in u)o.setItemVisual(s,"colorFromPalette",!1)}}:null}}},Qb={performRawSeries:!0,overallReset:function(t){var e=Z();t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.type+"-"+r.getColorBy();Wb(r).scope=e.get(i)||e.set(i,{})}}),t.eachSeries(function(r){if(r.isColorBySeries())return;var i=r.getRawData(),n={},a=r.getData(),o=Wb(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Zb(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+"",v=i.count();p[l]=r.getColorFromPalette(h,o,v)}})})}};var Lc=Math.PI;function Kd(t,e){e=e||{},oe(e,{text:"loading",textColor:he.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:he.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new we,i=new De({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(i);var n=new Qe({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 De({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;if(e.showSpinner)o=new Ao({shape:{startAngle:-Lc/2,endAngle:-Lc/2+0.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1000,{endAngle:Lc*3/2}).start("circularInOut"),o.animateShape(!0).when(1000,{startAngle:Lc*3/2}).delay(300).start("circularInOut"),r.add(o);return 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 bI=function(){function t(e,r,i,n){this._stageTaskMap=Z(),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)return;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):nf(e,r,i);e.pipelineContext=i.context=n},t.prototype.restorePipelines=function(e,r){var i=this,n=i._pipelineMap=Z();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="";o='"reset" and "overallReset" must not be both specified.',I(!(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)return;var f=o._stageTaskMap.get(l.uid),{seriesTaskMap:c,overallTask:p}=f;if(p){var h,v=p.agentStubMap;v.each(function(m){if(s(n,m))m.dirty(),h=!0}),h&&p.dirty(),o.updatePayload(p,i);var d=o.getPerformArgs(p,n.block);if(v.each(function(m){m.perform(d)}),p.perform(d))a=!0}else if(c)c.each(function(m,g){if(s(n,m))m.dirty();var y=o.getPerformArgs(m,n.block);if(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=Z(),{seriesType:l,getTargetSeries:u}=e;if(e.createOnAllSeries)i.eachRawSeries(f);else if(l)i.eachRawSeriesByType(l,f);else if(u)u(i,n).each(f);function f(c){var p=c.uid,h=s.set(p,o&&o.get(p)||mn({plan:EI,reset:DI,count:OI}));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:TI});o.context={ecModel:i,api:n,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Z(),{seriesType:u,getTargetSeries:f,dirtyOnOverallProgress:c}=e,p=!1,h="";if(h='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.',I(!e.createOnAllSeries,h),u)i.eachRawSeriesByType(u,v);else if(f)f(i,n).each(v);else w(i.getSeries(),v);function v(d){var m=d.uid,g=l.set(m,s&&s.get(m)||(p=!0,mn({reset:wI,onDirty:AI})));g.context={model:d,dirtyOnOverallProgress:c},g.agent=o,g.__block=c,a._pipe(d,g)}if(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){if(X(e))e={overallReset:e,seriesType:LI(e)};return e.uid=hn("stageHandler"),r&&(e.visualType=r),e},t}();function TI(t){t.overallReset(t.ecModel,t.api,t.payload)}function wI(t){return t.dirtyOnOverallProgress&&CI}function CI(){this.agent.dirty(),this.getDownstream().dirty()}function AI(){this.agent&&this.agent.dirty()}function EI(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function DI(t){if(t.useClearVisual)t.data.clearAllVisual();var e=t.resetDefines=Ne(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?U(e,function(r,i){return $b(i)}):MI}var MI=$b(0);function $b(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 if(n&&n.progress)n.progress(e,i)}}function OI(t){return t.data.count()}function LI(t){Pc=null;try{t(_l,Jb)}catch(e){}return Pc}var _l={},Jb={},Pc;eT(_l,mc);eT(Jb,hf);_l.eachSeriesByType=_l.eachRawSeriesByType=function(t){Pc=t};_l.eachComponent=function(t){if(t.mainType==="series"&&t.subType)Pc=t.subType};function eT(t,e){for(var r in e.prototype)t[r]=Pe}var jd=bI;var K=he.darkColor,tT=K.background,xl=function(){return{axisLine:{lineStyle:{color:K.axisLine}},splitLine:{lineStyle:{color:K.axisSplitLine}},splitArea:{areaStyle:{color:[K.backgroundTint,K.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:K.axisMinorSplitLine}},axisLabel:{color:K.axisLabel},axisName:{}}},rT={label:{color:K.secondary},itemStyle:{borderColor:K.borderTint},dividerLineStyle:{color:K.border}},iT={darkMode:!0,color:K.theme,backgroundColor:tT,axisPointer:{lineStyle:{color:K.border},crossStyle:{color:K.borderShade},label:{color:K.tertiary}},legend:{textStyle:{color:K.secondary},pageTextStyle:{color:K.tertiary}},textStyle:{color:K.secondary},title:{textStyle:{color:K.primary},subtextStyle:{color:K.quaternary}},toolbox:{iconStyle:{borderColor:K.accent50},feature:{dataView:{backgroundColor:tT,textColor:K.primary,textareaColor:K.background,textareaBorderColor:K.border,buttonColor:K.accent50,buttonTextColor:K.neutral00}}},tooltip:{backgroundColor:K.neutral20,defaultBorderColor:K.border,textStyle:{color:K.tertiary}},dataZoom:{borderColor:K.accent10,textStyle:{color:K.tertiary},brushStyle:{color:K.backgroundTint},handleStyle:{color:K.neutral00,borderColor:K.accent20},moveHandleStyle:{color:K.accent40},emphasis:{handleStyle:{borderColor:K.accent50}},dataBackground:{lineStyle:{color:K.accent30},areaStyle:{color:K.accent20}},selectedDataBackground:{lineStyle:{color:K.accent50},areaStyle:{color:K.accent30}}},visualMap:{textStyle:{color:K.secondary},handleStyle:{borderColor:K.neutral30}},timeline:{lineStyle:{color:K.accent10},label:{color:K.tertiary},controlStyle:{color:K.accent30,borderColor:K.accent30}},calendar:{itemStyle:{color:K.neutral00,borderColor:K.neutral20},dayLabel:{color:K.tertiary},monthLabel:{color:K.secondary},yearLabel:{color:K.secondary}},matrix:{x:rT,y:rT,backgroundColor:{borderColor:K.axisLine},body:{itemStyle:{borderColor:K.borderTint}}},timeAxis:xl(),logAxis:xl(),valueAxis:xl(),categoryAxis:xl(),line:{symbol:"circle"},graph:{color:K.theme},gauge:{title:{color:K.secondary},axisLine:{lineStyle:{color:[[1,K.neutral05]]}},axisLabel:{color:K.axisLabel},detail:{color:K.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:K.background}},radar:function(){var t=xl();return t.axisName={color:K.axisLabel},t.axisLine.lineStyle.color=K.neutral20,t}(),treemap:{breadcrumb:{itemStyle:{color:K.neutral20,textStyle:{color:K.secondary}},emphasis:{itemStyle:{color:K.neutral30}}}},sunburst:{itemStyle:{borderColor:K.background}},map:{itemStyle:{borderColor:K.border,areaColor:K.neutral10},label:{color:K.tertiary},emphasis:{label:{color:K.primary},itemStyle:{areaColor:K.highlight}},select:{label:{color:K.primary},itemStyle:{areaColor:K.highlight}}},geo:{itemStyle:{borderColor:K.border,areaColor:K.neutral10},emphasis:{label:{color:K.primary},itemStyle:{areaColor:K.highlight}},select:{label:{color:K.primary},itemStyle:{color:K.highlight}}}};iT.categoryAxis.splitLine.show=!1;var nT=iT;var aT=function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},i={},n={};if(V(e)){var a=Ft(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){var f=!1;for(var c=0;c<o.length;c++){var p=o[c],h=u.lastIndexOf(p);if(h>0&&h===u.length-p.length){var v=u.slice(0,h);if(v!=="data")r.mainType=v,r[p.toLowerCase()]=l,f=!0}}if(s.hasOwnProperty(u))i[u]=l,f=!0;if(!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{targetEl:n,packedEvent:a,model:o,view:s}=i;if(!o||!s)return!0;var{cptQuery:l,dataQuery:u}=r;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,v){return c[h]==null||p[v||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}();var Qd=["symbol","symbolSize","symbolRotate","symbolOffset"],oT=Qd.concat(["symbolKeepAspect"]),sT={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon)r.setVisual("legendIcon",t.legendIcon);if(!t.hasSymbolVisual)return;var i={},n={},a=!1;for(var o=0;o<Qd.length;o++){var s=Qd[o],l=t.get(s);if(X(l))a=!0,n[s]=l;else 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=re(n);function f(c,p){var h=t.getRawValue(p),v=t.getDataParams(p);for(var d=0;d<u.length;d++){var m=u[d];c.setItemVisual(p,m,n[m](h,v))}}return{dataEach:a?f:null}}},lT={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual)return;if(e.isSeriesFiltered(t))return;var r=t.getData();function i(n,a){var o=n.getItemModel(a);for(var s=0;s<oT.length;s++){var l=oT[s],u=o.getShallow(l,!0);if(u!=null)n.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?i:null}}};function uT(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:console.warn("Unknown visual type "+r)}}function Ic(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:console.warn("Unknown visual type "+e)}}function fT(t,e){function r(i,n){var a=[];return i.eachComponent({mainType:"series",subType:t,query:n},function(o){a.push(o.seriesIndex)}),a}w([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(i){e(i[0],function(n,a,o){n=N({},n),Fe(n.type,i[1]),o.dispatchAction(N(n,{type:i[1],seriesIndex:r(a,n)}))})})}function Go(t,e,r,i,n){var a=t+e;if(!r.isSilent(a))tr("event "+a+" is deprecated."),i.eachComponent({mainType:"series",subType:"pie"},function(o){var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected;for(var f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),p=cr(c,n.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:k(p)?c.getName(p[0]):c.getName(p),selected:V(l)?l:N({},l)})}})}function cT(t,e,r){t.on("selectchanged",function(i){var n=r.getModel();if(i.isFromClick)Go("map","selectchanged",e,n,i),Go("pie","selectchanged",e,n,i);else if(i.fromAction==="select")Go("map","selected",e,n,i),Go("pie","selected",e,n,i);else if(i.fromAction==="unselect")Go("map","unselected",e,n,i),Go("pie","unselected",e,n,i)})}function Aa(t,e,r){var i;while(t){if(e(t)){if(i=t,r)break}t=t.__hostTarget||t.parent}return i}var PI=new Et,sr=PI;var Nc={};function pT(t,e){if(Nc[t])pe("Already has an implementation of "+t+".");Nc[t]=e}function hT(t){if(!Nc[t])pe("Implementation of "+t+" doesn't exists.");return Nc[t]}var II={};function vT(t,e){II[t]=e}var Rc=ee();function dT(t){Rc(t).prepare={}}function mT(t){Rc(t).fullUpdate={}}function gT(t){return Rc(t).prepare}function Ea(t){return Rc(t).fullUpdate}var NI=Math.round(Math.random()*9),RI=typeof Object.defineProperty==="function",kI=function(){function t(){this._id="__ec_inner_"+NI++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var i=this._guard(e);if(RI)Object.defineProperty(i,this._id,{value:r,enumerable:!1,configurable:!0});else i[this._id]=r;return this},t.prototype.delete=function(e){if(this.has(e))return delete this._guard(e)[this._id],!0;return!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}(),yT=kI;var BI=ie.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var{cx:r,cy:i}=e,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()}}),zI=ie.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var{cx:r,cy:i}=e,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()}}),UI=ie.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var{x:r,y:i}=e,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*0.6,v=o*0.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-v,r,i),t.bezierCurveTo(r,i-v,r-f+c*h,l+s+p*h,r-f,l+s),t.closePath()}}),FI=ie.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var{height:r,width:i,x:n,y:a}=e,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()}}),VI={line:Ht,rect:De,roundRect:De,square:De,circle:To,diamond:zI,pin:UI,arrow:FI,triangle:BI},HI={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}},$d={};w(VI,function(t,e){$d[e]=new t});var GI=ie.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var i=Xn(t,e,r),n=this.shape;if(n&&n.symbolType==="pin"&&e.position==="inside")i.y=r.y+r.height*0.4;return i},buildPath:function(t,e,r){var i=e.symbolType;if(i!=="none"){var n=$d[i];if(!n)i="rect",n=$d[i];HI[i](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,r)}}});function YI(t,e){if(this.type!=="image"){var r=this.style;if(this.__isEmptyBrush)r.stroke=t,r.fill=e||he.color.neutral00,r.lineWidth=2;else if(this.shape.symbolType==="line")r.stroke=t;else r.fill=t;this.markRedraw()}}function Rr(t,e,r,i,n,a,o){var s=t.indexOf("empty")===0;if(s)t=t.substr(5,1).toLowerCase()+t.substr(6);var l;if(t.indexOf("image://")===0)l=Nf(t.slice(8),new ae(e,r,i,n),o?"center":"cover");else if(t.indexOf("path://")===0)l=rl(t.slice(7),{},new ae(e,r,i,n),o?"center":"cover");else l=new GI({shape:{symbolType:t,x:e,y:r,width:i,height:n}});if(l.__isEmptyBrush=s,l.setColor=YI,a)l.setColor(a);return l}function Sl(t){if(!k(t))t=[+t,+t];return[t[0]||0,t[1]||0]}function Da(t,e){if(t==null)return;if(!k(t))t=[t,t];return[Ce(t[0],e[0])||0,Ce(G(t[1],t[0]),e[1])||0]}function Ma(t){return isFinite(t)}function XI(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;if(!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=Ma(i)?i:0,n=Ma(n)?n:1,a=Ma(a)?a:0,o=Ma(o)?o:0;var s=t.createLinearGradient(i,a,n,o);return s}function qI(t,e,r){var{width:i,height:n}=r,a=Math.min(i,n),o=e.x==null?0.5:e.x,s=e.y==null?0.5:e.y,l=e.r==null?0.5:e.r;if(!e.global)o=o*i+r.x,s=s*n+r.y,l=l*a;o=Ma(o)?o:0.5,s=Ma(s)?s:0.5,l=l>=0&&Ma(l)?l:0.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function Jd(t,e,r){var i=e.type==="radial"?qI(t,e,r):XI(t,e,r),n=e.colorStops;for(var a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function _T(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 kc(t){return parseInt(t,10)}function em(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]||kc(s[i])||kc(t.style[i]))-(kc(s[a])||0)-(kc(s[o])||0)||0}function ZI(t,e){if(!t||t==="solid"||!(e>0))return null;return t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:se(t)?[t]:k(t)?t:null}function bl(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&ZI(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(r){var n=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;if(n&&n!==1)r=U(r,function(a){return a/n}),i/=n}return[r,i]}var KI=new yt(!0);function Bc(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function xT(t){return typeof t==="string"&&t!=="none"}function zc(t){var e=t.fill;return e!=null&&e!=="none"}function ST(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 bT(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 TT(t,e,r){var i=Fs(e.image,e.__image,r);if(go(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)*Ka),a.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(a)}return n}}function jI(t,e,r,i,n){var a,o=Bc(r),s=zc(r),l=r.strokePercent,u=l<1,f=!e.path;if((!e.silent||u)&&f)e.createPathProxy();var c=e.path||KI,p=e.__dirty;if(!i){var{fill:h,stroke:v}=r,d=s&&!!h.colorStops,m=o&&!!v.colorStops,g=s&&!!h.image,y=o&&!!v.image,_=void 0,x=void 0,S=void 0,b=void 0,T=void 0;if(d||m)T=e.getBoundingRect();if(d)_=p?Jd(t,h,T):e.__canvasFillGradient,e.__canvasFillGradient=_;if(m)x=p?Jd(t,v,T):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x;if(g)S=p||!e.__canvasFillPattern?TT(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=S;if(y)b=p||!e.__canvasStrokePattern?TT(t,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b;if(d)t.fillStyle=_;else if(g)if(S)t.fillStyle=S;else s=!1;if(m)t.strokeStyle=x;else if(y)if(b)t.strokeStyle=b;else o=!1}var A=e.getGlobalScale();c.setScale(A[0],A[1],e.segmentIgnoreThreshold);var C,E;if(t.setLineDash&&r.lineDash)a=bl(e),C=a[0],E=a[1];var D=!0;if(f||p&Gi){if(c.setDPR(t.dpr),u)c.setContext(null);else c.setContext(t),D=!1;c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()}if(D)c.rebuildPath(t,u?l:1);if(C)t.setLineDash(C),t.lineDashOffset=E;if(!i)if(r.strokeFirst){if(o)bT(t,r);if(s)ST(t,r)}else{if(s)ST(t,r);if(o)bT(t,r)}else n.batchFill=s,n.batchStroke=o;if(C)t.setLineDash([])}function QI(t,e,r){var i=e.__image=Fs(r.image,e.__image,e,e.onload);if(!i||!go(i))return;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;else if(s==null&&o!=null)s=o/l;else if(o==null&&s==null)o=i.width,s=i.height;if(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{sx:u,sy:f}=r,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 $I(t,e,r){var i,n=r.text;if(n!=null&&(n+=""),n){t.font=r.font||Bt,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;if(t.setLineDash&&r.lineDash)i=bl(e),a=i[0],o=i[1];if(a)t.setLineDash(a),t.lineDashOffset=o;if(r.strokeFirst){if(Bc(r))t.strokeText(n,r.x,r.y);if(zc(r))t.fillText(n,r.x,r.y)}else{if(zc(r))t.fillText(n,r.x,r.y);if(Bc(r))t.strokeText(n,r.x,r.y)}if(a)t.setLineDash([])}}var wT=["shadowBlur","shadowOffsetX","shadowOffsetY"],CT=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function LT(t,e,r,i,n){var a=!1;if(!i){if(r=r||{},e===r)return!1}if(i||e.opacity!==r.opacity){Pt(t,n),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Qr.opacity:o}if(i||e.blend!==r.blend){if(!a)Pt(t,n),a=!0;t.globalCompositeOperation=e.blend||Qr.blend}for(var s=0;s<wT.length;s++){var l=wT[s];if(i||e[l]!==r[l]){if(!a)Pt(t,n),a=!0;t[l]=t.dpr*(e[l]||0)}}if(i||e.shadowColor!==r.shadowColor){if(!a)Pt(t,n),a=!0;t.shadowColor=e.shadowColor||Qr.shadowColor}return a}function AT(t,e,r,i,n){var a=e.style,o=i?null:r&&r.style||{};if(a===o)return!1;var s=LT(t,a,o,i,n);if(i||a.fill!==o.fill){if(!s)Pt(t,n),s=!0;xT(a.fill)&&(t.fillStyle=a.fill)}if(i||a.stroke!==o.stroke){if(!s)Pt(t,n),s=!0;xT(a.stroke)&&(t.strokeStyle=a.stroke)}if(i||a.opacity!==o.opacity){if(!s)Pt(t,n),s=!0;t.globalAlpha=a.opacity==null?1:a.opacity}if(e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);if(t.lineWidth!==u){if(!s)Pt(t,n),s=!0;t.lineWidth=u}}for(var f=0;f<CT.length;f++){var c=CT[f],p=c[0];if(i||a[p]!==o[p]){if(!s)Pt(t,n),s=!0;t[p]=a[p]||c[1]}}return s}function JI(t,e,r,i,n){return LT(t,e.style,r&&r.style,i,n)}function PT(t,e){var r=e.transform,i=t.dpr||1;if(r)t.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]);else t.setTransform(i,0,0,i,0,0)}function eN(t,e,r){var i=!1;for(var n=0;n<t.length;n++){var a=t[n];i=i||a.isZeroArea(),PT(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=i}function tN(t,e){if(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];else if(!t&&!e)return!1;return!0}var ET=1,DT=2,MT=3,OT=4;function rN(t){var e=zc(t),r=Bc(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 Pt(t,e){if(e.batchFill)e.batchFill=!1,t.fill();if(e.batchStroke)e.batchStroke=!1,t.stroke()}function IT(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};tm(t,e,r),rm(t,r)}function tm(t,e,r){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~Tt,e.__isRendered=!1;return}var n=e.__clipPaths,a=r.prevElClipPaths,o=e.style,s=!1,l=!1;if(!a||_T(n,a)){if(a)Pt(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null;if(n&&n.length)Pt(t,r),t.save(),eN(n,t,r),s=!0,r.prevElClipPaths=n}if(r.allClipped){e.__dirty&=~Tt,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var u=r.prevEl;if(!u)l=s=!0;var f=e instanceof ie&&e.autoBatch&&rN(o);if(s||tN(i,u.transform))Pt(t,r),PT(t,e);else if(!f)Pt(t,r);if(e instanceof ie){if(r.lastDrawType!==ET)l=!0,r.lastDrawType=ET;if(AT(t,e,u,l,r),!f||!r.batchFill&&!r.batchStroke)t.beginPath();jI(t,e,o,f,r)}else if(e instanceof aa){if(r.lastDrawType!==MT)l=!0,r.lastDrawType=MT;AT(t,e,u,l,r),$I(t,e,o)}else if(e instanceof _t){if(r.lastDrawType!==DT)l=!0,r.lastDrawType=DT;JI(t,e,u,l,r),QI(t,e,o)}else if(e.getTemporalDisplayables){if(r.lastDrawType!==OT)l=!0,r.lastDrawType=OT;iN(t,e,r)}if(e.innerAfterBrush(),e.afterBrush){if(f)Pt(t,r);e.afterBrush()}r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function rm(t,e){if(Pt(t,e),e.prevElClipPaths)t.restore()}function iN(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(),tm(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}rm(t,a);for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),tm(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}rm(t,a),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var im=new yT,NT=new Wr(100),RT=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function nm(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),i=e.getZr(),n=i.painter.type==="svg";if(t.dirty)im.delete(t);var a=im.get(t);if(a)return a;var o=oe(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});if(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,im.set(t,s),t.dirty=!1,s;function l(u){var f=[r],c=!0;for(var p=0;p<RT.length;++p){var h=o[RT[p]];if(h!=null&&!k(h)&&!V(h)&&!se(h)&&typeof h!=="boolean"){c=!1;break}f.push(h)}var v;if(c){v=f.join(",")+(n?"-svg":"");var d=NT.get(v);if(d)n?u.svgElement=d:u.image=d}var m=BT(o.dashArrayX),g=nN(o.dashArrayY),y=kT(o.symbol),_=aN(m),x=zT(g),S=!n&&St.createCanvas(),b=n&&{tag:"g",attrs:{},key:"dcl",children:[]},T=C(),A;if(S)S.width=T.width*r,S.height=T.height*r,A=S.getContext("2d");if(E(),c)NT.put(v,S||b);u.image=S,u.svgElement=b,u.svgWidth=T.width,u.svgHeight=T.height;function C(){var D=1;for(var O=0,M=_.length;O<M;++O)D=nv(D,_[O]);var L=1;for(var O=0,M=y.length;O<M;++O)L=nv(L,y[O].length);D*=L;var B=x*_.length*y.length,R=function(F){console.warn("Calculated decal size is greater than "+F+" due to decal option settings so "+F+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+F+" to be larger to avoid incontinuity.")};if(D>o.maxTileWidth)R("maxTileWidth");if(B>o.maxTileHeight)R("maxTileHeight");return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(B,o.maxTileHeight))}}function E(){if(A){if(A.clearRect(0,0,S.width,S.height),o.backgroundColor)A.fillStyle=o.backgroundColor,A.fillRect(0,0,S.width,S.height)}var D=0;for(var O=0;O<g.length;++O)D+=g[O];if(D<=0)return;var M=-x,L=0,B=0,R=0;while(M<T.height){if(L%2===0){var F=B/2%y.length,z=0,H=0,Y=0;while(z<T.width*2){var q=0;for(var O=0;O<m[R].length;++O)q+=m[R][O];if(q<=0)break;if(H%2===0){var Q=(1-o.symbolSize)*0.5,J=z+m[R][H]*Q,j=M+g[L]*Q,ce=m[R][H]*o.symbolSize,ye=g[L]*o.symbolSize,We=Y/2%y[F].length;He(J,j,ce,ye,y[F][We])}if(z+=m[R][H],++Y,++H,H===m[R].length)H=0}if(++R,R===m.length)R=0}if(M+=g[L],++B,++L,L===g.length)L=0}function He(Te,Me,le,Se,Rt){var Xe=n?1:r,br=Rr(Rt,Te*Xe,Me*Xe,le*Xe,Se*Xe,o.color,o.symbolKeepAspect);if(n){var kt=i.painter.renderOneToVNode(br);if(kt)b.children.push(kt)}else IT(A,br)}}}}function kT(t){if(!t||t.length===0)return[["rect"]];if(V(t))return[[t]];var e=!0;for(var r=0;r<t.length;++r)if(!V(t[r])){e=!1;break}if(e)return kT([t]);var i=[];for(var r=0;r<t.length;++r)if(V(t[r]))i.push([t[r]]);else i.push(t[r]);return i}function BT(t){if(!t||t.length===0)return[[0,0]];if(se(t)){var e=Math.ceil(t);return[[e,e]]}var r=!0;for(var i=0;i<t.length;++i)if(!se(t[i])){r=!1;break}if(r)return BT([t]);var n=[];for(var i=0;i<t.length;++i)if(se(t[i])){var e=Math.ceil(t[i]);n.push([e,e])}else{var e=U(t[i],function(s){return Math.ceil(s)});if(e.length%2===1)n.push(e.concat(e));else n.push(e)}return n}function nN(t){if(!t||typeof t==="object"&&t.length===0)return[0,0];if(se(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 aN(t){return U(t,function(e){return zT(e)})}function zT(t){var e=0;for(var r=0;r<t.length;++r)e+=t[r];if(t.length%2===1)return e*2;return e}var UT=vo(oN);function oN(t,e){t.eachRawSeries(function(r){if(t.isSeriesFiltered(r))return;var i=r.getData();if(i.hasItemVisual())i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=nm(s,e)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=nm(n,e)}})}var sN=1,lN=800,uN=900,fN=920,cN=1000,pN=2000,FT=5000,jT=1000,hN=1100,dm=2000,QT=3000,vN=4000,Xc=4500,dN=4600,mN=5000,gN=6000,$T=7000,JT={PROCESSOR:{SERIES_FILTER:lN,AXIS_STATISTICS:fN,FILTER:cN,STATISTIC:FT,STATISTICS:FT},VISUAL:{LAYOUT:jT,PROGRESSIVE_LAYOUT:hN,GLOBAL:dm,CHART:QT,POST_CHART_LAYOUT:dN,COMPONENT:vN,BRUSH:mN,CHART_ITEM:Xc,ARIA:gN,DECAL:$T}},rt="__flagInMainProcess",Uc="__mainProcessVersion",ct="__pendingUpdate",am="__needsUpdateStatus",VT=/^[a-zA-Z0-9_]+$/,om="__connectUpdateStatus",HT=0,yN=1,_N=2;function e1(t){return function(){var e=[];for(var r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){Xt(this.id);return}return r1(this,t,e)}}function t1(t){return function(){var e=[];for(var r=0;r<arguments.length;r++)e[r]=arguments[r];return r1(this,t,e)}}function r1(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),Et.prototype[e].apply(t,r)}var i1=function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Et),n1=i1.prototype;n1.on=t1("on");n1.off=t1("off");var Oa,sm,Fc,Li,Vc,lm,um,Yo,Wo,GT,YT,fm,WT,Hc,XT,a1,xr,qT,Xo,o1=function(t){P(e,t);function e(r,i,n){var a=t.call(this,new aT)||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;a[Uc]=1;var u=ne.hasGlobalWindow?window:global;if(u)o=G(u.__ECHARTS__DEFAULT__RENDERER__,o),s=G(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=G(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l);if(n.ssr)G0(function(h){var v=xe(h),d=v.dataIndex;if(d==null)return;var m=Z();return m.set("series_index",v.seriesIndex),m.set("data_index",d),v.ssrType&&m.set("ssr_type",v.ssrType),m});var f=a._zr=Jh(r,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:G(n.useDirtyRect,l),useCoarsePointer:G(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=ml(me(f.flush,f),17),a._updateTheme(i),a._locale=AS(n.locale||Gf),a._coordSysMgr=new al;var c=a._api=XT(a);function p(h,v){return h.__prio-v.__prio}return zn(Wc,p),zn(pm,p),a._scheduler=new jd(a,c,pm,Wc),a._messageCenter=new i1,a._initEvents(),a.resize=me(a.resize,a),f.animation.on("frame",a._onframe,a),GT(f,a),YT(f,a),Za(a),a}return e.prototype._onframe=function(){if(this._disposed)return;var r=this._scheduler,i=this._model,n=this._api;if(qT(this),this[ct]){var a=this[ct].silent;this[rt]=!0,Xo(this);try{Oa(this),Li.update.call(this,null,this[ct].updateParams)}catch(l){throw this[rt]=!1,this[ct]=null,l}this._zr.flush(),this[rt]=!1,this[ct]=null,Yo.call(this,a),Wo.call(this,a)}else if(r.unfinished){var o=sN;do{r.unfinished=!1;var s=St.getTime();r.performSeriesTasks(i),r.performDataProcessorTasks(i),lm(this,i),r.performVisualTasks(i),Hc(this,this._model,n,"remain",{}),o-=St.getTime()-s}while(o>0&&r.unfinished);if(!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]){pe("`setOption` should not be called during main process.");return}if(this._disposed){Xt(this.id);return}var a,o,s;if(W(i))n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge;if(this[rt]=!0,Xo(this),!this._model||i){var l=new ob(this._api),u=this._theme,f=this._model=new mc;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},hm);var c={seriesTransition:s,optionChanged:!0};if(n)this[ct]={silent:a,updateParams:c},this[rt]=!1,this.getZr().wakeUp();else{try{Oa(this),Li.update.call(this,null,c)}catch(p){throw this[ct]=null,this[rt]=!1,p}if(!this._ssr)this._zr.flush();this[ct]=null,this[rt]=!1,Yo.call(this,a),Wo.call(this,a)}},e.prototype.setTheme=function(r,i){if(this[rt]){pe("`setTheme` should not be called during main process.");return}if(this._disposed){Xt(this.id);return}var n=this._model;if(!n)return;var a=i&&i.silent,o=null;if(this[ct]){if(a==null)a=this[ct].silent;o=this[ct].updateParams,this[ct]=null}this[rt]=!0,Xo(this);try{this._updateTheme(r),n.setTheme(this._theme),Oa(this),Li.update.call(this,{type:"setTheme"},o)}catch(s){throw this[rt]=!1,s}this[rt]=!1,Yo.call(this,a),Wo.call(this,a)},e.prototype._updateTheme=function(r){if(V(r))r=s1[r];if(r)r=te(r),r&&gc(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||ne.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return Fe("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var i=this._zr.painter;if(i.type!=="canvas")throw Error("renderToCanvas can only be used in the canvas renderer.");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;if(i.type!=="svg")throw Error("renderToSVGString can only be used in the svg renderer.");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){Xt(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];if(!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){Xt(this.id);return}var i=r.type==="svg",n=this.group,{min:a,max:o}=Math,s=1/0;if(ZT[n]){var l=s,u=s,f=-s,c=-s,p=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();w(Tl,function(_,x){if(_.group===n){var S=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(te(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 v=f-l,d=c-u,m=St.createCanvas(),g=Jh(m,{renderer:i?"svg":"canvas"});if(g.resize({width:v,height:d}),i){var y="";if(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);return g.refreshImmediately(),g.painter.toDataURL()}else{if(r.connectedBackgroundColor)g.add(new De({shape:{x:0,y:0,width:v,height:d},style:{fill:r.connectedBackgroundColor}}));return w(p,function(_){var x=new _t({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 Vc(this,"convertToPixel",r,i,n)},e.prototype.convertToLayout=function(r,i,n){return Vc(this,"convertToLayout",r,i,n)},e.prototype.convertFromPixel=function(r,i,n){return Vc(this,"convertFromPixel",r,i,n)},e.prototype.containPixel=function(r,i){if(this._disposed){Xt(this.id);return}var n=this._model,a,o=tf(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];if(c&&c.containPoint)a=a||c.containPoint(i,u);else Ue(l+": "+(c?"The found component do not support containPoint.":"No view mapping to the found component."))}else Ue(l+": containPoint is not supported")},this)},this),!!a},e.prototype.getVisual=function(r,i){var n=this._model,a=tf(n,r,{defaultMainType:"series"}),o=a.seriesModel;if(!o)Ue("There is no specified series model");var s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?uT(s,l,i):Ic(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(xN,function(n){var a=function(o){var s=r.getModel(),l=o.target,u,f=n==="globalout";if(f)u={};else l&&Aa(l,function(d){var m=xe(d);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);if(u){var c=u.componentType,p=u.componentIndex;if(c==="markLine"||c==="markPoint"||c==="markArea")c="series",p=u.seriesIndex;var h=c&&p!=null&&s.getComponent(c,p),v=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];if(!f&&!(h&&v))Ue("model or view can not be found by params");u.event=o,u.type=n,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:v},r.trigger(n,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)});var i=this._messageCenter;w(cm,function(n,a){i.on(a,function(o){r.trigger(a,o)})}),cT(i,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){Xt(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){Xt(this.id);return}this._disposed=!0;var r=this.getDom();if(r)ov(this.getDom(),gm,"");var i=this,{_api:n,_model:a}=i;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 Tl[i.id]},e.prototype.resize=function(r){if(this[rt]){pe("`resize` should not be called during main process.");return}if(this._disposed){Xt(this.id);return}this._zr.resize(r);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!i)return;var n=i.resetOption("media"),a=r&&r.silent;if(this[ct]){if(a==null)a=this[ct].silent;n=!0,this[ct]=null}this[rt]=!0,Xo(this);try{n&&Oa(this),Li.update.call(this,{type:"resize",animation:N({duration:0},r&&r.animation)})}catch(o){throw this[rt]=!1,o}this[rt]=!1,Yo.call(this,a),Wo.call(this,a)},e.prototype.showLoading=function(r,i){if(this._disposed){Xt(this.id);return}if(W(r))i=r,r="";if(r=r||"default",this.hideLoading(),!vm[r]){Ue("Loading effects "+r+" not exists.");return}var n=vm[r](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)},e.prototype.hideLoading=function(){if(this._disposed){Xt(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=Yc[r.type],i},e.prototype.dispatchAction=function(r,i){if(this._disposed){Xt(this.id);return}if(!W(i))i={silent:!!i};if(!Gc[r.type])return;if(!this._model)return;if(this[rt]){this._pendingActions.push(r);return}var n=i.silent;um.call(this,r,n);var a=i.flush;if(a)this._zr.flush();else if(a!==!1&&ne.browser.weChat)this._throttledZrFlush();Yo.call(this,n),Wo.call(this,n)},e.prototype.updateLabelLayout=function(){sr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){Xt(this.id);return}var i=r.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);I(r.data&&a),a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Oa=function(c){dT(c._model);var p=c._scheduler;p.restorePipelines(c._zr,c._model),p.prepareStageTasks(),sm(c,!0),sm(c,!1),p.plan()},sm=function(c,p){var{_model:h,_scheduler:v}=c,d=p?c._componentsViews:c._chartsViews,m=p?c._componentsMap:c._chartsMap,{_zr:g,_api:y}=c;for(var _=0;_<d.length;_++)d[_].__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 A="_ec_"+b.id+"_"+b.type,C=!T&&m[A];if(!C){var E=Ft(b.type),D=p?Ot.getClass(E.main,E.sub):Lt.getClass(E.sub);I(D,E.sub+" does not exist."),C=new D,C.init(h,y),m[A]=C,d.push(C),g.add(C.group)}b.__viewId=C.__id=A,C.__alive=!0,C.__model=b,C.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!p&&v.prepareView(C,b,h,y)}for(var _=0;_<d.length;){var S=d[_];if(!S.__alive){if(!p&&S.renderTask.dispose(),g.remove(S.group),S.dispose(h,y),d.splice(_,1),m[S.__id]===S)delete m[S.__id];S.__id=S.group.__ecComponentInfo=null}else _++}},Fc=function(c,p,h,v,d){var m=c._model;if(m.setUpdatePayload(h),!v){w([].concat(c._componentsViews).concat(c._chartsViews),x);return}var g=a_(h,v,d),y=h.excludeSeriesId,_;if(y!=null)_=Z(),w(Ne(y),function(S){var b=rr(S,null);if(b!=null)_.set(b,!0)});m&&m.eachComponent(g,function(S){var b=_&&_.get(S.id)!=null;if(b)return;if(Yv(h))if(S instanceof or){if(h.type===ln&&!h.notBlur&&!S.get(["emphasis","disabled"]))mx(S,h,c._api)}else{var T=_f(S.mainType,S.componentIndex,h.name,c._api),{focusSelf:A,dispatchers:C}=T;if(h.type===ln&&A&&!h.notBlur)vf(S.mainType,S.componentIndex,c._api);if(C)w(C,function(E){h.type===ln?Ti(E):wi(E)})}else if(xf(h)){if(S instanceof or)_x(S,h,c._api),Gv(S),xr(c)}},c),m&&m.eachComponent(g,function(S){var b=_&&_.get(S.id)!=null;if(b)return;x(c[v==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},c);function x(S){S&&S.__alive&&S[p]&&S[p](S.__model,m,c._api,h)}},Li={prepareAndUpdate:function(c){Oa(this),Li.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,p){var h=this._model,v=this._api,d=this._zr,m=this._coordSysMgr,g=this._scheduler;if(!h)return;mT(h),h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),m.create(h,v),sr.trigger("coordsys:aftercreate",h,v),g.performDataProcessorTasks(h,c),lm(this,h),m.update(h,v),i(h),g.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";d.setBackgroundColor(y);var _=h.get("darkMode");if(_!=null&&_!=="auto")d.setDarkMode(_);fm(this,h,v,c,p),sr.trigger("afterupdate",h,v)},updateTransform:function(c){var p=this,{_model:h,_api:v}=p;if(!h)return;h.setUpdatePayload(c);var d=[];h.eachComponent(function(g,y){if(g===pf)return;var _=p.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,h,v,c);x&&x.update&&d.push(_)}else d.push(_)});var m=Z();h.eachSeries(function(g){var y=p._chartsMap[g.__viewId],_=g.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var x=y.updateTransform(g,h,v,c);x&&x.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),p._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:m}),Hc(p,h,v,c,{},m),sr.trigger("afterupdate",h,v)},updateView:function(c){var p=this._model;if(!p)return;p.setUpdatePayload(c),Lt.markUpdateMethod(c,"updateView"),i(p),this._scheduler.performVisualTasks(p,c,{setDirty:!0}),fm(this,p,this._api,c,{}),sr.trigger("afterupdate",p,this._api)},updateVisual:function(c){var p=this,h=this._model;if(!h)return;h.setUpdatePayload(c),h.eachSeries(function(v){v.getData().clearAllVisual()}),Lt.markUpdateMethod(c,"updateVisual"),i(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,d){if(v!=="series"){var m=p.getViewOfComponentModel(d);m&&m.__alive&&m.updateVisual(d,h,p._api,c)}}),h.eachSeries(function(v){var d=p._chartsMap[v.__viewId];d.updateVisual(v,h,p._api,c)}),sr.trigger("afterupdate",h,this._api)},updateLayout:function(c){Li.update.call(this,c)}};function r(c,p,h,v,d){if(c._disposed){Xt(c.id);return}var m=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,_=tf(m,h);for(var x=0;x<g.length;x++){var S=g[x];if(S[p]&&(y=S[p](m,_,v,d))!=null)return y}Ue("No coordinate system that supports "+p+" found by the given finder.")}Vc=r,lm=function(c,p){var{_chartsMap:h,_scheduler:v}=c;p.eachSeries(function(d){v.updateStreamModes(d,h[d.__viewId])})},um=function(c,p){var h=this,v=this.getModel(),{type:d,escapeConnect:m}=c,g=Gc[d],y=(g.update||"update").split(":"),_=y.pop(),x=y[0]!=null&&Ft(y[0]);this[rt]=!0,Xo(this);var S=[c],b=!1;if(c.batch)b=!0,S=U(c.batch,function(R){return R=oe(N({},R),c),R.batch=null,R});var T=[],A,C=[],E=g.nonRefinedEventType,D=xf(c),O=Yv(c);if(O)Hv(this._api);if(w(S,function(R){var F=g.action(R,v,h._api);if(g.refineEvent)C.push(F);else A=F;if(A=A||N({},R),A.type=E,T.push(A),O){var z=zs(c),{queryOptionMap:H,mainTypeSpecified:Y}=z,q=Y?H.keys()[0]:"series";Fc(h,_,R,q),xr(h)}else if(D)Fc(h,_,R,"series"),xr(h);else if(x)Fc(h,_,R,x.main,x.sub)}),_!=="none"&&!O&&!D&&!x)try{if(this[ct])Oa(this),Li.update.call(this,c),this[ct]=null;else Li[_].call(this,c)}catch(R){throw this[rt]=!1,R}if(b)A={type:E,escapeConnect:m,batch:T};else A=T[0];if(this[rt]=!1,!p){var M=void 0;if(g.refineEvent){var L=g.refineEvent(C,c,v,this._api).eventContent;I(W(L)),M=oe({type:g.refinedEventType},L),M.fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var B=this._messageCenter;if(B.trigger(A.type,A),M)B.trigger(M.type,M)}},Yo=function(c){var p=this._pendingActions;while(p.length){var h=p.shift();um.call(this,h,c)}},Wo=function(c){!c&&this.trigger("updated")},GT=function(c,p){c.on("rendered",function(h){if(p.trigger("rendered",h),c.animation.isFinished()&&!p[ct]&&!p._scheduler.unfinished&&!p._pendingActions.length)p.trigger("finished");else c.refresh()})},YT=function(c,p){c.on("mouseover",function(h){var v=h.target,d=Aa(v,un);if(d)gx(d,h,p._api),xr(p)}).on("mouseout",function(h){var v=h.target,d=Aa(v,un);if(d)yx(d,h,p._api),xr(p)}).on("click",function(h){var v=h.target,d=Aa(v,function(y){return xe(y).dataIndex!=null},!0);if(d){var m=d.selected?"unselect":"select",g=xe(d);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=[],v=!1;if(c.eachComponent(function(y,_){var x=_.get("zlevel")||0,S=_.get("z")||0,b=_.getZLevelKey();v=v||!!b,(y==="series"?h:p).push({zlevel:x,z:S,idx:_.componentIndex,type:y,key:b})}),v){var d=p.concat(h),m,g;zn(d,function(y,_){if(y.zlevel===_.zlevel)return y.z-_.z;return y.zlevel-_.zlevel}),w(d,function(y){var _=c.getComponent(y.type,y.idx),{zlevel:x,key:S}=y;if(m!=null)x=Math.max(m,x);if(S){if(x===m&&S!==g)x++;g=S}else if(g){if(x===m)x++;g=""}m=x,_.setZLevel(x)})}}fm=function(c,p,h,v,d){n(p),WT(c,p,h,v,d),w(c._chartsViews,function(m){m.__alive=!1}),Hc(c,p,h,v,d),w(c._chartsViews,function(m){if(!m.__alive)m.remove(p,h)})},WT=function(c,p,h,v,d,m){w(m||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,p,h,v),l(y,g),f(y,g)})},Hc=function(c,p,h,v,d,m){var g=c._scheduler;d=N(d||{},{updatedSeries:p.getSeries()}),sr.trigger("series:beforeupdate",p,h,d);var y=!1;p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];x.__alive=!0;var S=x.renderTask;if(g.updatePayload(S,v),u(_,x),m&&m.get(_.uid))S.dirty();if(S.perform(g.getPerformArgs(S)))y=!0;x.group.silent=!!_.get("silent"),s(_,x),Gv(_)}),g.unfinished=y||g.unfinished,sr.trigger("series:layoutlabels",p,h,d),sr.trigger("series:transition",p,h,d),p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];l(_,x),f(_,x)}),o(c,p),sr.trigger("series:afterupdate",p,h,d)},xr=function(c){c[am]=!0,c.getZr().wakeUp()},Xo=function(c){c[Uc]=(c[Uc]+1)%1e6},qT=function(c){if(!c[am])return;c.getZr().storage.traverse(function(p){if(fa(p))return;a(p)}),c[am]=!1};function a(c){var p=[],h=c.currentStates;for(var v=0;v<h.length;v++){var d=h[v];if(!(d==="emphasis"||d==="blur"||d==="select"))p.push(d)}if(c.selected&&c.states.select)p.push("select");if(c.hoverState===Xs&&c.states.emphasis)p.push("emphasis");else if(c.hoverState===Ws&&c.states.blur)p.push("blur");c.useStates(p)}function o(c,p){var h=c._zr;if(h.painter.type!=="canvas")return;var v=h.storage,d=0;v.traverse(function(g){if(!g.isGroup)d++});var m=d>G(p.get("hoverLayerThreshold"),cc.hoverLayerThreshold)&&!ne.node&&!ne.worker;if(c._usingTHL||m)p.eachSeries(function(g){if(g.preventUsingHoverLayer)return;var y=c._chartsMap[g.__viewId];if(y.__alive)y.eachRendered(function(_){var x=_.states.emphasis;if(x&&x.hoverLayer!==ca)x.hoverLayer=m?nd:id})}),c._usingTHL=m}function s(c,p){var h=c.get("blendMode")||null;p.eachRendered(function(v){if(!v.isGroup)v.style.blend=h})}function l(c,p){if(c.preventAutoZ)return;var h=il(c);p.eachRendered(function(v){return nl(v,h.z,h.zlevel),!0})}function u(c,p){p.eachRendered(function(h){if(fa(h))return;var v=h.getTextContent(),d=h.getTextGuideLine();if(h.stateTransition)h.stateTransition=null;if(v&&v.stateTransition)v.stateTransition=null;if(d&&d.stateTransition)d.stateTransition=null;if(h.hasState())h.prevStates=h.currentStates,h.clearStates();else if(h.prevStates)h.prevStates=null})}function f(c,p){var h=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),d=h.get("duration"),m=d>0?{duration:d,delay:h.get("delay"),easing:h.get("easing")}:null;p.eachRendered(function(g){if(g.states&&g.states.emphasis){if(fa(g))return;if(g instanceof ie)Tx(g);if(g.__dirty){var y=g.prevStates;if(y)g.useStates(y)}if(v){g.stateTransition=m;var _=g.getTextContent(),x=g.getTextGuideLine();if(_)_.stateTransition=m;if(x)x.stateTransition=m}if(g.__dirty)a(g)}})}XT=function(c){return new(function(p){P(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(v){while(v){var d=v.__ecComponentInfo;if(d!=null)return c._model.getComponent(d.mainType,d.index);v=v.parent}},h.prototype.enterEmphasis=function(v,d){Ti(v,d),xr(c)},h.prototype.leaveEmphasis=function(v,d){wi(v,d),xr(c)},h.prototype.enterBlur=function(v){yf(v),xr(c)},h.prototype.leaveBlur=function(v){js(v),xr(c)},h.prototype.enterSelect=function(v){Fv(v),xr(c)},h.prototype.leaveSelect=function(v){Vv(v),xr(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},h.prototype.getECUpdateCycleVersion=function(){return c[Uc]},h.prototype.usingTHL=function(){return c._usingTHL},h}(hf))(c)},a1=function(c){function p(h,v){for(var d=0;d<h.length;d++){var m=h[d];m[om]=v}}w(Yc,function(h,v){c._messageCenter.on(v,function(d){if(ZT[c.group]&&c[om]!==HT){if(d&&d.escapeConnect)return;var m=c.makeActionFromEvent(d),g=[];w(Tl,function(y){if(y!==c&&y.group===c.group)g.push(y)}),p(g,HT),w(g,function(y){if(y[om]!==yN)y.dispatchAction(m)}),p(g,_N)}})})}}(),e}(Et),mm=o1.prototype;mm.on=e1("on");mm.off=e1("off");mm.one=function(t,e,r){var i=this;tr("ECharts#one is deprecated.");function n(){var a=[];for(var 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 xN=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Xt(t){Ue("Instance "+t+" has been disposed")}var Gc={},Yc={},cm={},pm=[],hm=[],Wc=[],s1={},vm={},Tl={},ZT={},SN=+new Date-0,o4=+new Date-0,gm="_echarts_instance_";function l1(t,e,r){var i=!(r&&r.ssr);if(i){if(!t)throw Error("Initialize failed: invalid dom.");var n=bN(t);if(n)return Ue("There is a chart instance already initialized on the dom."),n;if(Ui(t)&&t.nodeName.toUpperCase()!=="CANVAS"&&(!t.clientWidth&&(!r||r.width==null)||!t.clientHeight&&(!r||r.height==null)))Ue("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var a=new o1(t,e,r);return a.id="ec_"+SN++,Tl[a.id]=a,i&&ov(t,gm,a.id),a1(a),sr.trigger("afterinit",a),a}function bN(t){return Tl[o_(t,gm)]}function u1(t,e){s1[t]=e}function ym(t){if(ue(hm,t)<0)hm.push(t)}function _m(t,e){xm(pm,t,e,pN)}function f1(t){qc("afterinit",t)}function c1(t){qc("afterupdate",t)}function qc(t,e){sr.on(t,e)}function La(t,e,r){var i,n,a,o,s;if(X(e))r=e,e="";if(W(t)){if(i=t.type,n=t.event,o=t.update,s=t.publishNonRefinedEvent,!r)r=t.action;a=t.refineEvent}else i=t,n=e;function l(f){return f.toLowerCase()}n=l(n||i);var u=a?l(i):n;if(Gc[i])return;if(I(VT.test(i)&&VT.test(n)),a)I(n!==i);if(Gc[i]={actionType:i,refinedEventType:n,nonRefinedEventType:u,update:o,action:r,refineEvent:a},cm[n]=1,a&&s)cm[u]=1;if(Yc[u])pe(u+' must not be shared; use "refineEvent" if you intend to share an event name.');Yc[u]=i}function p1(t,e){al.register(t,e)}function h1(t,e){xm(Wc,t,e,jT,"layout",!0)}function yn(t,e){xm(Wc,t,e,QT,"visual",!0)}var KT=[];function xm(t,e,r,i,n,a){if(X(e)||W(e))r=e,e=i;if(isNaN(e)||e==null)throw Error("Illegal priority");if(w(t,function(s){I(s.__raw!==r)}),ue(KT,r)>=0)return;KT.push(r);var o=jd.wrapStageHandler(r,n);if(o.__prio=e,o.__raw=r,t.push(o),a)I(!o.dirtyOnOverallProgress,"dirtyOnOverallProgress is not allowed in "+n+" stage; otherwise progressive rendering is disabled on all series.")}function Sm(t,e){vm[t]=e}function v1(t,e,r){var i=hT("registerMap");i&&i(t,e,r)}var d1=wb;yn(dm,Kb);yn(Xc,jb);yn(Xc,Qb);yn(dm,sT);yn(Xc,lT);yn($T,UT);ym(gc);_m(uN,hb);Sm("default",Kd);La({type:ln,event:ln,update:ln},Pe);La({type:qs,event:qs,update:qs},Pe);La({type:Zs,event:mf,update:Zs,action:Pe,refineEvent:bm,publishNonRefinedEvent:!0});La({type:df,event:mf,update:df,action:Pe,refineEvent:bm,publishNonRefinedEvent:!0});La({type:Ks,event:mf,update:Ks,action:Pe,refineEvent:bm,publishNonRefinedEvent:!0});function bm(t,e,r,i){return{eventContent:{selected:xx(r),isFromClick:e.isFromClick||!1}}}u1("default",{});u1("dark",nT);function wl(t){return t==null?0:t.length||1}function m1(t){return t}var TN=function(){function t(e,r,i,n,a,o){this._old=e,this._new=r,this._oldKeyGetter=i||m1,this._newKeyGetter=n||m1,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=Array(e.length),a=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=wl(l);if(u>1){var f=l.shift();if(l.length===1)i[s]=l[0];this._update&&this._update(f,o)}else if(u===1)i[s]=null,this._update&&this._update(l,o);else 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=wl(u),p=wl(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=wl(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else if(o===1)this._add&&this._add(a);r[n]=null}},t.prototype._initIndexMap=function(e,r,i,n){var a=this._diffModeMultiple;for(var o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(!a)i[o]=s;if(!r)continue;var l=r[s],u=wl(l);if(u===0){if(r[s]=o,a)i.push(s)}else if(u===1)r[s]=[l,o];else l.push(o)}},t}(),g1=TN;var wN=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(){if(!this._cachedDimNames)this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[];return this._cachedDimNames},t}();function y1(t,e){var r={},i=r.encode={},n=Z(),a=[],o=[],s={};w(t.dimensions,function(p){var h=t.getDimensionInfo(p),v=h.coordDim;if(v){I(Ys.get(v)==null);var d=h.coordDimIndex;if(Tm(i,v)[d]=p,!h.isExtraCoord){if(n.set(v,1),CN(h.type))a[0]=p;Tm(s,v)[d]=t.getDimensionIndex(h.name)}if(h.defaultTooltip)o.push(p)}Ys.each(function(m,g){var y=Tm(i,g),_=h.otherDims[g];if(_!=null&&_!==!1)y[_]=h.name})});var l=[],u={};n.each(function(p,h){var v=i[h];u[h]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=U(l,function(p){return t.getDimensionInfo(p).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=i.label;if(f&&f.length)a=f.slice();var c=i.tooltip;if(c&&c.length)o=c.slice();else if(!o.length)o=a.slice();return i.defaultedLabel=a,i.defaultedTooltip=o,r.userOutput=new wN(s,e),r}function Tm(t,e){if(!t.hasOwnProperty(e))t[e]=[];return t[e]}function _1(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function CN(t){return!(t==="ordinal"||t==="time")}var AN=function(){function t(e){if(this.otherDims={},e!=null)N(this,e)}return t}(),qo=AN;var EN=ee(),DN={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},wm=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){if(this._dimOmitted=e,!e)return;if(!this._dimNameMap)this._dimNameMap=Cm(this.source)},t.prototype.getSourceDimensionIndex=function(e){return G(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){var e=this._fullDimCount,r=_c(this.source),i=!Am(e),n="",a=[];for(var 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);if(p)l=r?p.name:null,u=p.type}if(a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord))n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l;if(n+="$",n+=DN[u]||"f",f)n+=f.uid;n+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,n].join("$$");return{dimensions:a,hash:v}},t.prototype.makeOutputDimensionNames=function(){var e=[];for(var r=0,i=0;r<this._fullDimCount;r++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===r){if(!a.isCalculationCoord)n=a.name;i++}else{var o=this.getSourceDimension(r);if(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 Zc(t){return t instanceof wm}function Cl(t){var e=Z();for(var r=0;r<(t||[]).length;r++){var i=t[r],n=W(i)?i.name:i;if(n!=null&&e.get(n)==null)e.set(n,r)}return e}function Cm(t){var e=EN(t);return e.dimNameMap||(e.dimNameMap=Cl(t.dimensionsDefine))}function Am(t){return t>30}var Al=W,_n=U,MN=typeof Int32Array>"u"?Array:Int32Array,ON="e\x00\x00",x1=-1,LN=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],PN=["_approximateExtent"],S1,Kc,El,Zo,Em,Dl,Dm,IN=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;if(Zc(e))i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e;else n=!0,i=e;i=i||["x","y"];var a={},o=[],s={},l=!1,u={};for(var f=0;f<i.length;f++){var c=i[f],p=V(c)?new qo({name:c}):!(c instanceof qo)?new qo(c):c,h=p.name;if(p.type=p.type||"float",!p.coordDim)p.coordDim=h,p.coordDimIndex=0;var v=p.otherDims=p.otherDims||{};if(o.push(h),a[h]=p,u[h]!=null)l=!0;if(p.createInvertedIndices)s[h]=[];if(I(n||p.storeDimIndex>=0),n)p.storeDimIndex=f;if(v.itemName===0)this._nameDimIdx=p.storeDimIndex;if(v.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 d=this._dimIdxToName=Z();w(o,function(m){d.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(se(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);if(r==null)throw Error("Unknown dimension "+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 vl)a=e;if(!a){var o=this.dimensions,s=Fo(e)||et(e)?new bc(e,o.length):e;a=new vl;var l=_n(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=y1(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),{start:n,end:a}=i,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=n;s<a;s++){var l=s-n;if(this._nameList[s]=r[l],o)Dm(this,s)}},t.prototype._updateOrdinalMeta=function(){var e=this._store,r=this.dimensions;for(var i=0;i<r.length;i++){var n=this._dimInfos[r[i]];if(n.ordinalMeta)e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==ir&&!e.fillStorage},t.prototype._doInit=function(e,r){if(e>=r)return;var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===at;if(l&&!n.pure){var u=[];for(var f=e;f<r;f++){var c=n.getItem(f,u);if(!this.hasItemOption&&t_(c))this.hasItemOption=!0;if(c){var p=c.name;if(a[f]==null&&p!=null)a[f]=rr(p,null);var h=c.id;if(o[f]==null&&h!=null)o[f]=rr(h,null)}}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)Dm(this,f);S1(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){Al(e)?N(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),i=this._nameList[r];if(i==null&&this._nameDimIdx!=null)i=El(this,this._nameDimIdx,r);if(i==null)i="";return i},t.prototype._getCategory=function(e,r){var i=this._store.get(e,r),n=this._store.getOrdinalMeta(e);if(n)return n.categories[i];return i},t.prototype.getId=function(e){return Kc(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 k(e)?n.getValues(_n(e,function(a){return i._getStoreDimIndex(a)}),r):n.getValues(e)},t.prototype.hasValue=function(e){var r=this._dimSummary.dataDimIndicesOnCoord;for(var 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];if(!i)throw Error("Do not supported yet");var n=i&&i[r];if(n==null||isNaN(n))return x1;return n},t.prototype.each=function(e,r,i){if(X(e))i=r,r=e,e=[];var n=i||this,a=_n(Zo(e),this._getStoreDimIndex,this);this._store.each(a,n?me(r,n):r)},t.prototype.filterSelf=function(e,r,i){if(X(e))i=r,r=e,e=[];var n=i||this,a=_n(Zo(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?me(r,n):r),this},t.prototype.selectRange=function(e){var r=this,i={},n=re(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){if(X(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){var a=i||n||this,o=_n(Zo(e),this._getStoreDimIndex,this),s=Dl(this);return s._store=this._store.map(o,a?me(r,a):r),s},t.prototype.modify=function(e,r,i,n){var a=this,o=i||n||this;w(Zo(e),function(l){var u=a.getDimensionInfo(l);if(!u.isCalculationCoord)console.error("Danger: only stack dimension can be modified")});var s=_n(Zo(e),this._getStoreDimIndex,this);this._store.modify(s,o?me(r,o):r)},t.prototype.downSample=function(e,r,i,n){var a=Dl(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,i,n),a},t.prototype.minmaxDownSample=function(e,r){var i=Dl(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),i},t.prototype.lttbDownSample=function(e,r){var i=Dl(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 Re(i,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new g1(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return Kc(e,i)},function(i){return Kc(r,i)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){if(this._visual=this._visual||{},Al(e))N(this._visual,e);else this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var i=this._itemVisuals[e],n=i&&i[r];if(n==null)return this.getVisual(r);return n},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var i=this._itemVisuals,n=i[e];if(!n)n=i[e]={};var a=n[r];if(a==null){if(a=this.getVisual(r),k(a))a=a.slice();else if(Al(a))a=N({},a);n[r]=a}return a},t.prototype.setItemVisual=function(e,r,i){var n=this._itemVisuals[e]||{};if(this._itemVisuals[e]=n,Al(r))N(n,r);else n[r]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Al(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;ix(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){if(i)e&&e.call(r,i,n)})},t.prototype.cloneShallow=function(e){if(!e)e=new t(this._schema?this._schema:_n(this.dimensions,this._getDimInfo,this),this.hostModel);return Em(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var i=this[e];if(!X(i))return;this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=i.apply(this,arguments);return r.apply(this,[n].concat(lu(arguments)))}},t.internalField=function(){S1=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 MN(o.categories.length);for(var l=0;l<i.length;l++)i[l]=x1;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},El=function(e,r,i){return rr(e._getCategory(r,i),null)},Kc=function(e,r){var i=e._idList[r];if(i==null&&e._idDimIdx!=null)i=El(e,e._idDimIdx,r);if(i==null)i=ON+r;return i},Zo=function(e){if(!k(e))e=e!=null?[e]:[];return e},Dl=function(e){var r=new t(e._schema?e._schema:_n(e.dimensions,e._getDimInfo,e),e.hostModel);return Em(r,e),r},Em=function(e,r){w(LN.concat(r.__wrappedMethods||[]),function(i){if(r.hasOwnProperty(i))e[i]=r[i]}),e.__wrappedMethods=r.__wrappedMethods,w(PN,function(i){e[i]=te(r[i])}),e._calculationInfo=N({},r._calculationInfo)},Dm=function(e,r){var{_nameList:i,_idList:n,_nameDimIdx:a,_idDimIdx:o}=e,s=i[r],l=n[r];if(s==null&&a!=null)i[r]=s=El(e,a,r);if(l==null&&o!=null)n[r]=l=El(e,o,r);if(l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;if(l=s,f>1)l+="__ec__"+f;n[r]=l}}}(),t}(),xn=IN;function Ml(t,e){if(!Fo(t))t=Vo(t);e=e||{};var r=e.coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],n=Z(),a=[],o=NN(t,r,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Am(o),l=i===t.dimensionsDefine,u=l?Cm(t):Cl(i),f=e.encodeDefine;if(!f&&e.encodeDefaulter)f=e.encodeDefaulter(t,o);var c=Z(f),p=new Hd(o);for(var h=0;h<p.length;h++)p[h]=-1;function v(C){var E=p[C];if(E<0){var D=i[C],O=W(D)?D:{name:D},M=new qo,L=O.name;if(L!=null&&u.get(L)!=null)M.name=M.displayName=L;O.type!=null&&(M.type=O.type),O.displayName!=null&&(M.displayName=O.displayName);var B=a.length;return p[C]=B,M.storeDimIndex=C,a.push(M),M}return a[E]}if(!s)for(var h=0;h<o;h++)v(h);c.each(function(C,E){var D=Ne(C).slice();if(D.length===1&&!V(D[0])&&D[0]<0){c.set(E,!1);return}var O=c.set(E,[]);w(D,function(M,L){var B=V(M)?u.get(M):M;if(B!=null&&B<o)O[L]=B,m(v(B),E,L)})});var d=0;w(r,function(C){var E,D,O,M;if(V(C))E=C,M={};else{M=C,E=M.name;var L=M.ordinalMeta;M.ordinalMeta=null,M=N({},M),M.ordinalMeta=L,D=M.dimsDef,O=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var B=c.get(E);if(B===!1)return;if(B=Ne(B),!B.length)for(var R=0;R<(D&&D.length||1);R++){while(d<o&&v(d).coordDim!=null)d++;d<o&&B.push(d++)}w(B,function(F,z){var H=v(F);if(l&&M.type!=null)H.type=M.type;if(m(oe(H,M),E,z),H.name==null&&D){var Y=D[z];!W(Y)&&(Y={name:Y}),H.name=H.displayName=Y.name,H.defaultTooltip=Y.defaultTooltip}O&&oe(H.otherDims,O)})});function m(C,E,D){if(Ys.get(E)!=null)C.otherDims[E]=D;else C.coordDim=E,C.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(C){if(C.name==null)C.name=C.coordDim}if(!s)for(var b=0;b<o;b++){var T=v(b),A=T.coordDim;if(A==null){if(T.coordDim=RN(x,n,_),T.coordDimIndex=0,!g||y<=0)T.isExtraCoord=!0;y--}if(S(T),T.type==null&&(hc(t,b)===ot.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null)))T.type="ordinal"}else w(a,function(C){S(C)}),a.sort(function(C,E){return C.storeDimIndex-E.storeDimIndex});return ho(a,function(C){return C.name},function(C,E){if(E>0)C.name=C.name+(E-1)}),new wm({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function NN(t,e,r,i){var n=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,i||0);return w(e,function(a){var o;if(W(a)&&(o=a.dimsDef))n=Math.max(n,o.length)}),n}function RN(t,e,r){if(r||e.hasKey(t)){var i=0;while(e.hasKey(t+i))i++;t+=i}return e.set(t,!0),t}var kN=function(){function t(e){this.coordSysDims=[],this.axisMap=Z(),this.categoryAxisMap=Z(),this.coordSysName=e}return t}();function b1(t){var e=t.get("coordinateSystem"),r=new kN(e),i=BN[e];if(i)return i(t,r,r.axisMap,r.categoryAxisMap),r}var BN={cartesian2d:function(t,e,r,i){var n=t.getReferringComponents("xAxis",mt).models[0],a=t.getReferringComponents("yAxis",mt).models[0];if(!n)throw Error('xAxis "'+Cr(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!a)throw Error('yAxis "'+Cr(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found');if(e.coordSysDims=["x","y"],r.set("x",n),r.set("y",a),Ko(n))i.set("x",n),e.firstCategoryDimIndex=0;if(Ko(a))i.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1)},singleAxis:function(t,e,r,i){var n=t.getReferringComponents("singleAxis",mt).models[0];if(!n)throw Error("singleAxis should be specified.");if(e.coordSysDims=["single"],r.set("single",n),Ko(n))i.set("single",n),e.firstCategoryDimIndex=0},polar:function(t,e,r,i){var n=t.getReferringComponents("polar",mt).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");if(!o)throw Error("angleAxis option not found");if(!a)throw Error("radiusAxis option not found");if(e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Ko(a))i.set("radius",a),e.firstCategoryDimIndex=0;if(Ko(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];if(r.set(f,u),Ko(u)){if(i.set(f,u),e.firstCategoryDimIndex==null)e.firstCategoryDimIndex=l}})},matrix:function(t,e,r,i){var n=t.getReferringComponents("matrix",mt).models[0];if(!n)throw Error("matrix coordinate system should be specified.");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 Ko(t){return t.get("type")==="category"}function T1(t,e,r){r=r||{};var i=r.byIndex,n=r.stackedCoordDimension,a,o,s;if(zN(e))a=e;else o=e.schema,a=o.dimensions,s=e.store;var l=!!(t&&t.get("stack")),u,f,c,p,h=!0;function v(x){return x.type!=="ordinal"&&x.type!=="time"}if(w(a,function(x,S){if(V(x))a[S]=x={name:x};if(!v(x))h=!1}),w(a,function(x,S){if(l&&!x.isExtraCoord){if(!i&&!u&&x.ordinalMeta)u=x;if(!f&&v(x)&&(!h||x.coordDim!=="x"&&x.coordDim!=="angle")&&(!n||n===x.coordDim))f=x}}),f&&!i&&!u)i=!0;if(f){if(c="__\x00ecstackresult_"+t.id,p="__\x00ecstackedover_"+t.id,u)u.createInvertedIndices=!0;var d=f.coordDim,m=f.type,g=0;w(a,function(x){if(x.coordDim===d)g++});var y={name:c,coordDim:d,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};if(o){if(s)y.storeDimIndex=s.ensureCalculationDimension(p,m),_.storeDimIndex=s.ensureCalculationDimension(c,m);o.appendCalculationDimension(y),o.appendCalculationDimension(_)}else a.push(y),a.push(_)}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:c}}function zN(t){return!Zc(t.schema)}function kr(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function jc(t,e){return kr(t,e)?t.getCalculationInfo("stackResultDimension"):e}function UN(t,e){var r=t.get("coordinateSystem"),i=al.get(r),n;if(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=_1(l)}return o});if(!n)n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"];return n}function FN(t,e,r){var i,n;if(r&&w(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);if(l){if(i==null)i=o;if(a.ordinalMeta=l.getOrdinalMeta(),e)a.createInvertedIndices=!0}if(a.otherDims.itemName!=null)n=!0}),!n&&i!=null)t[i].otherDims.itemName=0;return i}function VN(t,e,r){r=r||{};var i=e.getSourceManager(),n,a=!1;if(t)a=!0,n=Vo(t);else n=i.getSource(),a=n.sourceFormat===at;var o=b1(e),s=UN(e,o),l=r.useEncodeDefaulter,u=X(l)?l:l?Ae(qS,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=Ml(n,f),p=FN(c.dimensions,r.createInvertedIndices,o),h=!a?i.getSharedDataStore(c):null,v=T1(e,{schema:c,store:h}),d=new xn(c,e);d.setCalculationInfo(v);var m=p!=null&&HN(n)?function(g,y,_,x){return x===p?_:this.defaultDimValueGetter(g,y,_,x)}:null;return d.hasItemOption=!1,d.initData(a?n:h,null,m),d}function HN(t){if(t.sourceFormat===at){var e=GN(t.data||[]);return!k(yi(e))}}function GN(t){var e=0;while(e<t.length&&t[e]==null)e++;return t[e]}var jo=VN;var w1=function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();tn(w1);var It=w1;var YN=0,WN=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++YN,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,i=r.data,n=i&&U(i,XN);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(!V(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();if(r=n.get(e),r==null)if(i)r=this.categories.length,this.categories[r]=e,n.set(e,r),this._onCollect&&this._onCollect(e,r);else r=NaN;return r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Z(this.categories))},t}();function XN(t){if(W(t)&&t.value!=null)return t.value;else return t+""}var Ol=WN;var qt=0,Qo=1,qN={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},A1=re(qN),$o=2,E1=3;function Jo(t,e,r){var i;t=t||{};var n=Ye();if(n){var a=n.createBreakScaleMapper(e,r);if(a.hasBreaks())w(A1,function(o){if(a[o])t[o]=me(a[o],a)}),i=a}if(i==null)ZN(t,r);return{brk:i,mapper:t}}function Qc(t,e){w(A1,function(r){t[r]=e[r]})}function $c(t,e){t.freeze=Pe,t.freeze=function(){e.freeze()}}function Pi(t){return t.getExtentUnsafe(qt,$o)}function Pa(t,e){return t.getExtentUnsafe(Qo,e)||t.getExtentUnsafe(qt,e)}function D1(t){var e=Pa(t,E1);return e[1]-e[0]}function es(t){var e=t.getExtentUnsafe(qt,E1);return e[1]-e[0]}function ZN(t,e){var r=t||{},i=[];return r._extents=i,i[qt]=e?e.slice():gt(),N(r,KN),r}var KN={needTransform:function(){return!1},normalize:function(t){var e=this._extents[Qo]||this._extents[qt];if(e[1]===e[0])return 0.5;return(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[Qo]||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=Pa(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){I(!this._frozen),C1(this._extents,qt,t,e)},setExtent2:function(t,e,r){I(!this._frozen);var i=this._extents;if(!i[t])i[t]=i[qt].slice();C1(i,t,e,r)},freeze:function(){this._frozen=!0}};function C1(t,e,r,i){if(_i(r,i))t[e][0]=r,t[e][1]=i;else if(r!=null&&i!=null&&r<=i)pe("Invalid setExtent call - start: "+r+", end: "+i)}function Jc(t){return ts(t)||li(t)}function ts(t){return t.type==="interval"}function rs(t){return t.type==="time"}function li(t){return t.type==="log"}function pt(t){return t.type==="ordinal"}function M1(t){var e=Ku(t),r=Qi(10,e),i=er(t/r);if(!i)i=1;else if(i===2)i=3;else if(i===3)i=5;else i*=2;return de(i*r,-e)}function Br(t){return Ut(t)+2}function Ll(t,e){return co(t)/co(e)}function ep(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 tp(t,e,r){var i=t.slice();if(i[0]===i[1]){var n=r&&r.ctnShp;if(i[0]!==0){var a=Ie(i[0]);if(!e[1])i[1]+=a/2,i[0]-=a/2;else i[0]-=a/2}else if(n)i[0]=-1,i[1]=1;else i[1]=1}if(!Or(i[0])||!Or(i[1]))i[0]=0,i[1]=1;if(i[1]<i[0])i.reverse();return i}function O1(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function Pl(t,e){return t=t||e,er(ve(t,1))}function rp(t,e,r){var i=Pi(t),n=i[0],a=t.count(),o=Math.max((e||0)+1,1);if(n!==0&&o>1&&a/o>2)n=Math.round(Math.ceil(n/o)*o);if(n!==i[0])l(i[0],!0,!0);var s=n;for(;s<=i[1];s+=o)l(s,!1,s===i[0]||s===i[1]);if(s-o!==i[1])l(i[1],!0,!0);function l(u,f,c){r({value:u,offInterval:f},c)}}var L1=function(t){P(e,t);function e(r){var i=t.call(this)||this;i.type="ordinal",i.parse=e.parse,Qc(i,e.decoratedMethods);var n=r.ordinalMeta;if(!n)n=new Ol({});if(k(n))n=new Ol({categories:U(n,function(o){return W(o)?o.value:o})});i._ordinalMeta=n;var a=Jo(null,null,r.extent||[0,n.categories.length-1]);return i._mapper=a.mapper,$c(i,a.mapper),i}return e.parse=function(r){if(r==null)r=NaN;else if(V(r)){if(r=this._ordinalMeta.getOrdinal(r),r==null)r=NaN}else r=er(r);return r},e.prototype.getTicks=function(){var r=[];return rp(this,0,function(i){r.push(i)}),r},e.prototype.getMinorTicks=function(r){return},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}var i=r.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length;for(var l=Ge(s,i.length);o<l;++o){var u=n[o]=i[o];a[u]=o}var f=0;for(;o<s;++o){while(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=Pi(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(er(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}(It);It.registerClass(L1);var P1=L1;function is(t,e,r,i){var n=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent();for(var s=1;s<n.length;s++){var l=n[s],u=n[s-1];if(u.break||l.break)continue;var f=0,c=[],p=l.value-u.value,h=p/e,v=Br(h);while(f<e-1){var d=de(u.value+(f+1)*h,v);if(d>o[0]&&d<o[1])c.push(d);f++}var m=Ye();m&&m.pruneTicksByBreak("auto",c,r,function(g){return g},i,o),a.push(c)}return a}var I1=function(t){P(e,t);function e(r){var i=t.call(this)||this;i.type="interval",i.parse=e.parse,r=r||{};var n=Yf(i,r),a=Jo(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 te(this._cfg)},e.prototype.setConfig=function(r){var i=Pi(this);if(I(r.interval!=null),r.intervalCount!=null)I(r.intervalCount>=-1&&r.intervalPrecision!=null&&!gr(this));if(r.niceExtent!=null)I(isFinite(r.niceExtent[0])&&isFinite(r.niceExtent[1])),I(i[0]<=r.niceExtent[0]&&r.niceExtent[1]<=i[1]),I(de(r.niceExtent[0]-r.niceExtent[1],Ut(r.interval))<=r.interval);if(this._cfg=r=te(r),r.niceExtent==null)r.niceExtent=i.slice();if(r.intervalPrecision==null)r.intervalPrecision=Br(r.interval)},e.prototype.getTicks=function(r){r=r||{};var i=this._cfg,n=i.interval,a=Pi(this),{niceExtent:o,intervalPrecision:s}=i,l=Ye(),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;I(o!=null);var p=3000;if(a[0]<o[0])c.push({value:r.expandToNicedExtent?de(o[0]-n,s):a[0]});var h=function(_,x){return er((x-_)/n)},v=i.intervalCount;for(var d=o[0],m=0;;m++){if(v==null){if(d>o[1]||!isFinite(d)||!isFinite(o[1]))break}else{if(m>v)break;if(d=Ge(d,o[1]),m===v)d=o[1]}if(c.push({value:d}),d=de(d+n,s),u){var g=u.calcNiceTickMultiple(d,h);if(g>=0)d=de(d+g*n,s)}if(c.length>0&&d===c[c.length-1].value)break;if(c.length>p)return Ue('Exceed safe limit in IntervalScale["getTicks"].'),[]}var y=c.length?c[c.length-1].value:o[1];if(a[1]>y)c.push({value:r.expandToNicedExtent?de(y+n,s):a[1]});if(f)l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(_){return _.value},i.interval,a);if(f&&r.breakTicks!=="none")l.addBreaksToTicks(c,u.breaks,a);return c},e.prototype.getMinorTicks=function(r){return is(this,r,ma(this),this._cfg.interval)},e.prototype.getLabel=function(r,i){if(r==null)return"";var n=i&&i.precision;if(n==null)n=Ut(r.value)||0;else if(n==="auto")n=this._cfg.intervalPrecision;var a=de(r.value,n,!0);return wd(a)},e.type="interval",e}(It);It.registerClass(I1);var ui=I1;var jN=function(t,e,r,i){while(r<i){var n=r+i>>>1;if(t[n][1]<e)r=n+1;else i=n}return r},R1=function(t){P(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=Yf(i,r),a=Jo(i,n,null);return i.brk=a.brk,i}return e.prototype.getLabel=function(r){return ga(r.value,dd[PS(Ro(this._minLevelUnit))]||dd.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,i,n){return IS(r,i,n,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var i=this._interval,n=Pi(this),a=Ye(),o=this.brk,s=a&&o,l=[];if(!i)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return Ye().addBreaksToTicks(l,o.breaks,n),l;l=iR(this._minLevelUnit,this._approxInterval,u,n,es(this),o);var f=Wt.length-1,c=0;if(w(l,function(p){if(p.time)f=Math.min(f,ue(Wt,p.time.upperTimeUnit)),c=Math.max(c,p.time.level)}),s)Ye().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(p){return p.value},this._approxInterval,n);if(s&&r.breakTicks!=="none")Ye().addBreaksToTicks(l,o.breaks,n,function(p){var h=Math.max(ue(Wt,ya(p.vmin,u)),ue(Wt,ya(p.vmax,u))),v=0;for(var d=0;d<Wt.length;d++)if(!k1(Wt[d],p.vmin,p.vmax,u)){v=d;break}var m=Math.min(v,f),g=Math.max(m,h);return{level:c,lowerTimeUnit:Wt[g],upperTimeUnit:Wt[m]}});return l},e.prototype.getMinorTicks=function(r){return is(this,r,ma(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 se(r)?Math.round(r):+Zr(r)},e.type="time",e}(It),ip=[["second",qf],["minute",Zf],["hour",No],["quarter-day",No*6],["half-day",No*12],["day",ar*1.2],["half-week",ar*3.5],["week",ar*7],["month",ar*31],["quarter",ar*95],["half-year",vd/2],["year",vd]];function k1(t,e,r,i){return Kf(new Date(e),t,i).getTime()===Kf(new Date(r),t,i).getTime()}function QN(t,e){return t/=ar,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function $N(t){var e=30*ar;return t/=e,t>6?6:t>3?3:t>2?2:1}function JN(t){return t/=No,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function N1(t,e){return t/=e?Zf:qf,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function eR(t){return ve(qn(t,!0),1)}function tR(t,e,r){var i=Math.max(0,ue(Wt,e)-1);return Kf(new Date(t),Wt[i],r).getTime()}function rR(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 iR(t,e,r,i,n,a){var o=3000,s=MS,l=0;function u(R,F,z,H,Y,q,Q){var J=rR(Y,R),j=F,ce=new Date(j);while(j<z&&j<=i[1]){if(Q.push({value:j}),l++>o){Ue('Exceed safe limit in TimeScale["getTicks"].');break}if(ce[Y](ce[H]()+R),j=ce.getTime(),a){var ye=a.calcNiceTickMultiple(j,J);if(ye>0)ce[Y](ce[H]()+ye*R),j=ce.getTime()}}Q.push({value:j,notAdd:j>i[1]})}function f(R,F,z){var H=[],Y=!F.length;if(k1(Ro(R),i[0],i[1],r))return;if(Y)F=[{value:tR(i[0],R,r)},{value:i[1]}];for(var q=0;q<F.length-1;q++){var Q=F[q].value,J=F[q+1].value;if(Q===J)continue;var j=void 0,ce=void 0,ye=void 0,We=!1;switch(R){case"year":j=Math.max(1,Math.round(e/ar/365)),ce=md(r),ye=NS(r);break;case"half-year":case"quarter":case"month":j=$N(e),ce=jf(r),ye=gd(r);break;case"week":case"half-week":case"day":j=QN(e,31),ce=Qf(r),ye=yd(r),We=!0;break;case"half-day":case"quarter-day":case"hour":j=JN(e),ce=$f(r),ye=_d(r);break;case"minute":j=N1(e,!0),ce=Jf(r),ye=xd(r);break;case"second":j=N1(e,!1),ce=ec(r),ye=Sd(r);break;case"millisecond":j=eR(e),ce=tc(r),ye=bd(r);break}if(J>=i[0]&&Q<=i[1])u(j,Q,J,ce,ye,We,H);if(R==="year"&&z.length>1&&q===0)z.unshift({value:z[0].value-j})}for(var q=0;q<H.length;q++)z.push(H[q])}var c=[],p=[],h=0,v=0;for(var d=0;d<s.length;++d){var m=Ro(s[d]);if(!LS(s[d]))continue;f(s[d],c[c.length-1]||[],p);var g=s[d+1]?Ro(s[d+1]):null;if(m!==g){if(p.length){v=h,p.sort(function(R,F){return R.value-F.value});var y=[];for(var _=0;_<p.length;++_){var x=p[_].value;if(_===0||p[_-1].value!==x){if(y.push(p[_]),x>=i[0]&&x<=i[1])h++}}var S=n/e;if(h>S*1.5&&v>S/1.5)break;if(c.push(y),h>S||t===s[d])break}p=[]}}var b=Oe(U(c,function(R){return Oe(R,function(F){return F.value>=i[0]&&F.value<=i[1]&&!F.notAdd})}),function(R){return R.length>0}),T=b.length-1,A=[];for(var d=0;d<b.length;++d){var C=b[d];for(var E=0;E<C.length;++E){var D=ya(C[E].value,r);A.push({value:C[E].value,time:{level:T-d,upperTimeUnit:D,lowerTimeUnit:D}})}}ho(A,c_,null),A.sort(function(R,F){return R.value-F.value});var O=A[0],M=A[A.length-1],L=ya(i[0],r),B=ya(i[1],r);if(!O||O.value>i[0])A.unshift({value:i[0],time:{level:0,upperTimeUnit:L,lowerTimeUnit:L},notNice:!0});if(!M||M.value<i[1])A.push({value:i[1],time:{level:0,upperTimeUnit:B,lowerTimeUnit:B},notNice:!0});return A}var B1=function(t,e){var r=t.getExtent();if(r[0]===r[1])r[0]-=ar,r[1]+=ar;if(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]-ar}t.setExtent(r[0],r[1]);var n=Pl(e.splitNumber,10),a=es(t)/n,{minInterval:o,maxInterval:s}=e;if(o!=null&&a<o)a=o;if(s!=null&&a>s)a=s;var l=ip.length,u=Math.min(jN(ip,a,0,l),l-1),f=ip[u][1],c=ip[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};It.registerClass(R1);var z1=R1;var np=0,ap=1,nR=2,H1=function(t){P(e,t);function e(r){var i=t.call(this)||this;i.type="log",i.parse=ui.parse,i.base=r.logBase||10;var n=[],a=[],o=i._lookup={from:n,to:a};n[np]=n[ap]=a[np]=a[ap]=NaN,Qc(i,e.mapperMethods);var s=Ye(),l=r.breakOption,u={lookup:o};if(s)s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},nR,u);return i.powStub=new ui({breakParsed:u.original}),i.intervalStub=new ui({breakParsed:u.transformed}),$c(i,i.intervalStub),i}return e.prototype.getTicks=function(r){var i=this.base,n=this.powStub,a=Ye(),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=ep(c,i,u),h;if(a){var v=a.getTicksBreakOutwardTransform(this,f,ma(n),this._lookup);if(v)h=v.vBreak,p=v.tickVal}return{value:p,break:h}},this)},e.prototype.getMinorTicks=function(r){return is(this,r,ma(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(Ll(r,this.base))},scale:function(r){return ep(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,i){return r=Ll(r,this.base),i&&i.depth===$o?r:this.intervalStub.transformIn(r,i)},transformOut:function(r,i){var n=i?i.depth:null;return U1.depth=n,F1.lookup=this._lookup,ep(n===$o?r:this.intervalStub.transformOut(r,U1),this.base,F1)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,i){this.setExtent2(qt,r,i)},setExtent2:function(r,i,n){if(!_i(i,n)||i<=0||n<=0)return;var a=V1,o=V1;if(r===qt){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[np]=i,a[ap]=n);var l=this.base;this.intervalStub.setExtent2(r,o[np]=Ll(i,l),o[ap]=Ll(n,l))},getFilter:function(){return{g:0}},sanitize:function(r,i){if(_i(i[0],i[1])&&qe(r)&&r<=0)r=i[0];return 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}(It);It.registerClass(H1);var U1={},F1={},V1=[],Il=H1;var op={value:1,category:1,time:1,log:1};var G1=ee();function Y1(t){var e=t.get("type");if(e==null||!Be(op,e)&&!It.getClass(e))e="value";return e}function W1(t,e,r){var i=Ye(),n;if(i)n=Mm(t,e,r);switch(e){case"category":return new P1({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:gt()});case"time":return new z1({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:n});case"log":return new Il({logBase:t.get("logBase"),breakOption:n});case"value":return new ui({breakOption:n});default:return new(It.getClass(e)||ui)({})}}function X1(t,e,r){var i=r?Pa(t,null):t.getExtentUnsafe(qt,null),n=i[0],a=i[1];return!_i(n,a)?sp:n===e||a===e?oR:n<e&&a>e?aR:sp}var aR=1,oR=2,sp=3;function q1(t){G1(t).noOnMyZero=!0}function Z1(t){return G1(t).noOnMyZero}function Nl(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=OS(e);return function(n,a){return t.scale.getFormattedLabel(n,a,r)}}else if(V(e))return function(n){var a=t.scale.getLabel(n),o=e.replace("{value}",a!=null?a:"");return o};else if(X(e)){if(t.type==="category")return function(n,a){return e(ns(t,n),n.value-t.scale.getExtent()[0],null)};var i=Ye();return function(n,a){var o=null;if(i)o=i.makeAxisLabelFormatterParamBreak(o,n.break);return e(ns(t,n),a,o)}}else return function(n){return t.scale.getLabel(n)}}function ns(t,e){var r=t.scale;return pt(r)?r.getLabel(e):e.value}function lp(t){var e=t.get("interval");return e==null?"auto":e}function K1(t){return t.type==="category"&&lp(t.getLabelModel())===0}function j1(t,e){var r={};return w(t.mapDimensionsAll(e),function(i){r[jc(t,i)]=!0}),re(r)}function Sn(t){return t==="middle"||t==="center"}function Ia(t){return t.getShallow("show")}function Mm(t,e,r){var i=t.get("breaks",!0);if(i!=null){if(!Ye()){pe('Must `import {AxisBreak} from "echarts/features.js"; use(AxisBreak);` first if using breaks option.');return}if(!r||!sR(e)){var n=t instanceof be?" "+t.type+"["+t.componentIndex+"]":"";pe("Axis"+n+" does not support break.");return}return i}}function sR(t){return t!=="category"}function up(t,e,r,i,n,a){var o=li(t),s=o?t.intervalStub:t;if(s.setExtent(i[0],i[1]),o){var l=t.powStub,u={depth:$o},f=t.transformOut(i[0],u),c=t.transformOut(i[1],u),p=O1(r,i);if(e[0]&&!p[0])f=n[0];if(e[1]&&!p[1])c=n[1];l.setExtent(f,c)}s.setConfig(a)}function Ii(t,e){return pt(t)?t.getRawOrdinalNumber(e.value):e.value}function fp(t,e){return pt(t)&&!!e.get("boundaryGap")}var $1=function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){return},t}();var lR=rf(),Rl="|&",as=ee(),pp=-2,J1=-1,uR=ee(),Na;Na=function(t){I(t&&t.model&&t.model.uid&&t.model.ecModel)};function Pm(t,e){var r=t.model,i=as(Ea(r.ecModel)).keyed,n=i&&i.get(e);return n&&n.get(r.uid)}function ew(t,e){return I(e!=null),Na(t),iw(Pm(t,e))}function tw(t,e){Na(t);var r=[];return rw(t.model.ecModel,function(i){for(var n=0;n<e.length;n++)if(e[n]&&i.serByIdx[e[n].seriesIndex])r.push(iw(i))}),r}function rw(t,e){var r=as(Ea(t)).keyed;r&&r.each(function(i,n){i.each(function(a,o){e(a,n,o)})})}function iw(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function nw(t,e){Na(t);var r=t.model.ecModel,i=as(Ea(r)).axSer;i&&hp(r,i.get(t.model.uid),e)}function Im(t,e,r){I(e!=null),Na(t);var i=Pm(t,e);i&&hp(t.model.ecModel,i.sers,r)}function hp(t,e,r){if(!e)return;for(var i=0;i<e.length;i++){var n=e[i];if(!t.isSeriesFiltered(n))r(n)}}function aw(t,e,r){I(e!=null);var i=as(Ea(t)).keyed,n=i&&i.get(e);n&&n.each(function(a){I(a.sers.length>0),r(a.axis)})}function Nm(t,e){Na(t);var r=t.model,i=as(Ea(r.ecModel)).keys;i&&w(i.get(r.uid),function(n){var a=Pm(t,n);I(a&&a.sers.length>0),e(n)})}function fR(t){var e=uR(gT(t)),r=e.keyed||(e.keyed=Z());rw(t,function(i,n,a){var o=r.get(n)||r.set(n,Z()),s=o.get(a)||o.set(a,{});if(i.metrics.liPosMinGap)sw.liPosMinGap(t,i,s)})}function ow(t,e){sw[t]=e}var sw={};function Rm(t,e,r){if(!t)return;var i=e.ecModel,n=as(Ea(i)),a=t.model.uid;Na(t);var o=n.axSerPairCheck||(n.axSerPairCheck=Z()),s=""+a+Rl+e.uid;I(!o.get(s)),o.set(s,1);var l=n.axSer||(n.axSer=Z()),u=l.get(a)||l.set(a,[]),f=u[u.length-1];if(f)I(f.seriesIndex<e.seriesIndex);u.push(e);var c=e.subType,p=e.getBaseAxis()===t,h=cp.get(Om(c,p,r))||cp.get(Om(c,p,null));if(!h)return;var v=n.keyed||(n.keyed=Z()),d=n.keys||(n.keys=Z()),m=h.key,g=v.get(m)||v.set(m,Z()),y=g.get(a);if(!y)y=g.set(a,{axis:t,sers:[],serByIdx:[]}),y.metrics=h.getMetrics(t),(d.get(a)||d.set(a,[])).push(m);y.sers.push(e),y.serByIdx[e.seriesIndex]=e}function Om(t,e,r){return t+Rl+G(e,!0)+Rl+(r||"")}function lw(t,e){var r=Om(e.seriesType,e.baseAxis,e.coordSysType);I(e.seriesType&&e.key&&!Lm.get(e.key)&&!cp.get(r)),Lm.set(e.key,1),cp.set(r,e),lR(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:fR})})}var Lm;Lm=Z();var cp=Z();var cR=ee(),cw=1,pR=2,hR=3,pw=function(){function t(e,r,i,n,a){var o=pt(e),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var f=i.slice();if(ts(e)||li(e)||rs(e))lv(f,kl(e,r.get("dataMin",!0))),uv(f,kl(e,r.get("dataMax",!0)));if(!u_(f))f[0]=f[1]=NaN;var c=[],p=[!1,!1],h=r.get("min",!0);if(h==="dataMin")c[0]=f[0],p[0]=!0;else c[0]=kl(e,X(h)?h({min:f[0],max:f[1]}):h),p[0]=c[0]!=null;var v=r.get("max",!0);if(v==="dataMax")c[1]=f[1],p[1]=!0;else c[1]=kl(e,X(v)?v({min:f[0],max:f[1]}):v),p[1]=c[1]!=null;var d=vR(e,r),m=!o?f[1]-f[0]||Math.abs(f[0]):null;if(c[0]==null)c[0]=o?l?f[0]:s?0:NaN:f[0]-d[0]*m;if(c[1]==null)c[1]=o?l?f[1]:s?s-1:NaN:f[1]+d[1]*m;!Or(c[0])&&(c[0]=NaN),!Or(c[1])&&(c[1]=NaN);var g=l||Vr(c[0])||Vr(c[1])||o&&!s,y=ts(e),_=y&&r.needIncludeZero&&r.needIncludeZero();if(_){if(c[0]>0&&c[1]>0&&!p[0])c[0]=0;if(c[0]<0&&c[1]<0&&!p[1])c[1]=0}var x=!1;if(c[0]>c[1])c.reverse(),x=!0;var S=kl(e,r.get("startValue",!0)),b=S!=null;if(!qe(S)&&n)S=e.getDefaultStartValue?e.getDefaultStartValue():0;if(qe(S)&&(b||!y||_)){if(S<c[0]&&!p[0])c[0]=S,p[0]=!0;else if(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};uw(T,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,{zoomMM:r,noZoomEffMM:i,zoomFixMM:n,fixMM:a}=e,o={fixMM:a,zoomFixMM:n,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:i.slice()},s=o.effMM;if(r[0]!=null)s[0]=r[0],a[0]=n[0]=!0;if(r[1]!=null)s[1]=r[1],a[1]=n[1]=!0;return uw(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 uw(t,e){var{scale:r,dataMM:i}=t;if(r.sanitize)e[0]=r.sanitize(e[0],i),e[1]=r.sanitize(e[1],i),f_(e)}function kl(t,e){return e==null?null:Vr(e)?NaN:t.parse(e)}function vR(t,e){var r;if(pt(t))r=[0,0];else{var i=e.get("boundaryGap");if(typeof i==="boolean"){if(i===!0)console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to 0.');i=null}r=k(i)?i:[i,i]}return[fw(r[0]),fw(r[1])]}function fw(t){return Er(typeof t==="boolean"?0:t,1)||0}function hw(t){var e=cR(t.scale);if(!e.extent)e.extent=gt();return e}function vw(t,e){hw(t).dimIdxInCoord=e.get(t.dim)}function dw(t,e){var{scale:r,model:i,dim:n}=t;if(I(r&&i&&n),r.rawExtentInfo){I(r.rawExtentInfo.from!==e||e===pR);return}dR(r,t,n,i,e)}function dR(t,e,r,i,n){var a=hw(e),o=a.extent,s=!1;nw(e,function(f){if(f.boxCoordinateSystem){var c=sc(f).coord,p=a.dimIdxInCoord;if(!(p>=0))pe('Property "series.coord" is not supported on axis '+f.boxCoordinateSystem.type+".");else if(k(c)){var h=c[p];if(h!=null&&!k(h))Us(o,t.parse(h))}}else if(f.coordinateSystem){var v=f.getData();if(v){var d=t.getFilter?t.getFilter():null;w(j1(v,r),function(m){l_(o,v.getApproximateExtent(m,d))})}if(f.__requireStartValue&&f.__requireStartValue(e))s=!0}});var l=gR(t,e,i),u=new pw(t,i,o,s,l);mw(t,u,n),a.extent=null}function mR(t,e){var r=t.scale;I(!r.rawExtentInfo),mw(r,new pw(r,t.model,e,!1,!1),hR)}function mw(t,e,r){t.rawExtentInfo=e,e.from=r}function gw(t,e){I(!vp.get(t)),vp.set(t,e)}var vp=Z();function dp(t,e,r,i,n){if(I(!n||!t.rawExtentInfo),!t.rawExtentInfo)mR({scale:t,model:e},n||gt());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;if(t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),i&&a.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis"))i.inverse=!i.inverse;return a}function gR(t,e,r){var i=fp(t,r),n=r.get("containShape",!0);if(n==null&&!i)n=!0;if(!n)return!1;var a=!1;return Nm(e,function(o){a=!!vp.get(o)||a}),a}function yw(t,e,r,i){if(!r.ctnShp)return;var n;if(Nm(t,function(s){var l=vp.get(s);if(l){var u=l(t,i);if(u)n=n||[0,0],lv(n,u[0]),uv(n,u[1]),q1(t)}}),!n)return;var a=e.getExtent();if(pt(e)){if(!t.onBand)e.setExtent2(Qo,Ge(a[0],a[0]+n[0]),ve(a[1],a[1]+n[1]))}else{var o=a.slice();if(!r.zoomFixMM[0])o[0]=Ge(o[0],e.transformOut(e.transformIn(o[0],null)+n[0],null));if(!r.zoomFixMM[1])o[1]=ve(o[1],e.transformOut(e.transformIn(o[1],null)+n[1],null));if(o[0]<a[0]||o[1]>a[1])e.setExtent2(Qo,o[0],o[1])}}function _w(t,e){var r=li(t),i=r?t.intervalStub:t,n=e.fixMinMax||[],a=r?t.getExtent():null,o=i.getExtent(),s=tp(o,n,e.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=r?_R(i,e):yR(i,e),{intervalPrecision:u,interval:f}=l,c=e.userInterval;if(c!=null)l.interval=c,l.intervalPrecision=Br(c);if(!n[0])s[0]=de(qr(s[0]/f)*f,u);if(!n[1])s[1]=de(ji(s[1]/f)*f,u);if(c!=null)l.niceExtent=s.slice();up(t,n,o,s,a,l)}function yR(t,e){var r=Pl(e.splitNumber,5),i=es(t);I(isFinite(i)&&i>0);var{minInterval:n,maxInterval:a}=e,o=qn(i/r,!0);if(n!=null&&o<n)o=n;if(a!=null&&o>a)o=a;var s=Br(o),l=t.getExtent(),u=[de(ji(l[0]/o)*o,s),de(qr(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function _R(t,e){var r=Pl(e.splitNumber,10),i=t.getExtent(),n=es(t);I(isFinite(n)&&n>0);var a=ve(Zu(n),1),o=r/n*a;if(o<=0.5)a*=10;var s=Br(a),l=[de(ji(i[0]/a)*a,s),de(qr(i[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function km(t){var{scale:e,model:r}=t,{axis:i,ecModel:n}=r;I(i&&n),xR(e,r,i,n,null)}function xR(t,e,r,i,n){var a=dp(t,e,i,r,n),o=ts(t)||rs(t);if(SR(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)yw(r,t,a,i);t.freeze()}function SR(t,e){bR[t.type](t,e)}var bR={interval:_w,log:_w,time:B1,ordinal:Pe};var xw=[],TR={registerPreprocessor:ym,registerProcessor:_m,registerPostInit:f1,registerPostUpdate:c1,registerUpdateLifecycle:qc,registerAction:La,registerCoordinateSystem:p1,registerLayout:h1,registerVisual:yn,registerTransform:d1,registerLoading:Sm,registerMap:v1,registerImpl:pT,PRIORITY:JT,ComponentModel:be,ComponentView:Ot,SeriesModel:or,ChartView:Lt,registerComponentModel:function(t){be.registerClass(t)},registerComponentView:function(t){Ot.registerClass(t)},registerSeriesModel:function(t){or.registerClass(t)},registerChartView:function(t){Lt.registerClass(t)},registerCustomSeries:function(t,e){vT(t,e)},registerSubTypeDefaulter:function(t,e){be.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){V0(t,e)}};function Ni(t){if(k(t)){w(t,function(e){Ni(e)});return}if(ue(xw,t)>=0)return;if(xw.push(t),X(t))t={install:t};t.install(TR)}var wR=ee(),Bl=ee(),Zt={estimate:1,determine:2};function os(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function bw(t,e){var r=t.getLabelModel().get("customValues");if(r){var i=t.scale;return{labels:U(ww(r,i),function(n,a){return{formattedLabel:Nl(t)(n,a),rawLabel:i.getLabel(n),tick:n}})}}return t.type==="category"?CR(t,e):ER(t)}function Tw(t,e,r){var i=t.scale,n=t.getTickModel().get("customValues");if(n)return{ticks:ww(n,i)};return t.type==="category"?AR(t,e):{ticks:i.getTicks(r)}}function ww(t,e){var r=e.getExtent(),i=[];return w(t,function(n){if(n=e.parse(n),n>=r[0]&&n<=r[1])i.push(n)}),ho(i,p_,null),po(i),U(i,function(n){return{value:n}})}function CR(t,e){var r=t.getLabelModel(),i=Cw(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:i}function Cw(t,e,r){var i=MR(t),n=lp(e),a=r.kind===Zt.estimate;if(!a){var o=Ew(i,n);if(o)return o}var s,l;if(X(n))s=mp(t,n,!1);else l=n==="auto"?OR(t,r):n,s=mp(t,l,!1);var u={labels:s,labelCategoryInterval:l};if(!a)Bm(i,n,u);else r.out.noPxChangeTryDetermine.push(function(){return Bm(i,n,u),!0});return u}function AR(t,e){var r=DR(t),i=lp(e),n=Ew(r,i);if(n)return n;var a,o;if(!e.get("show")||t.scale.isBlank())a=[];if(X(i))a=mp(t,i,!0);else if(i==="auto"){var s=Cw(t,t.getLabelModel(),os(Zt.determine));o=s.labelCategoryInterval,a=U(s.labels,function(l){return l.tick})}else o=i,a=mp(t,o,!0);return Bm(r,i,{ticks:a,tickCategoryInterval:o})}function ER(t){var e=t.scale.getTicks(),r=Nl(t);return{labels:U(e,function(i,n){return{formattedLabel:r(i,n),rawLabel:t.scale.getLabel(i),tick:i}})}}var DR=Aw("axisTick"),MR=Aw("axisLabel");function Aw(t){return function(r){return Bl(r)[t]||(Bl(r)[t]={list:[]})}}function Ew(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function Bm(t,e,r){return t.list.push({key:e,value:r}),r}function OR(t,e){if(e.kind===Zt.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Bl(t).autoInterval=r,!0}),r}var i=Bl(t).autoInterval;return i!=null?i:Bl(t).autoInterval=t.calculateCategoryInterval(e)}function Dw(t,e){var r=e.kind,i=PR(t),n=Nl(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;if(l>f)u=Math.max(1,Math.floor(l/f));var c=s[0],p=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(p*Math.cos(a)),v=Math.abs(p*Math.sin(a)),d=0,m=0;for(;c<=s[1];c+=u){var g=0,y=0,_=Gu(n({value:c}),i.font,"center","top");g=_.width*1.3,y=_.height*1.3,d=Math.max(d,g,7),m=Math.max(m,y,7)}var x=d/h,S=m/v;isNaN(x)&&(x=1/0),isNaN(S)&&(S=1/0);var b=Math.max(0,Math.floor(Math.min(x,S)));if(r===Zt.estimate)return e.out.noPxChangeTryDetermine.push(me(LR,null,t,b,l)),b;var T=Mw(t,b,l);return T!=null?T:b}function LR(t,e,r){return Mw(t,e,r)==null}function Mw(t,e,r){var i=wR(t.model),n=t.getExtent(),{lastAutoInterval:a,lastTickCount:o}=i;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;else i.lastTickCount=r,i.lastAutoInterval=e,i.axisExtent0=n[0],i.axisExtent1=n[1]}function PR(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 mp(t,e,r){var i=Nl(t),n=t.scale,a=[],o=X(e);return rp(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 IR=0.8;function zr(t,e){e=e||{};var r={w:NaN,w2:NaN},i=t.scale,n=e.fromStat,a=e.min,o=D1(i);if(!qe(o))o=NaN;var s=t.getExtent(),l=Ie(s[1]-s[0]);if(pt(i))NR(r,t,o,l);else if(n)RR(r,t,o,l,n);else if(a==null)I(!1);if(a!=null)r.w=qe(r.w)?ve(a,r.w):a;return r}function NR(t,e,r,i){var n=e.onBand,a=r+(n?1:0);if(a===0&&(a=1),t.w=i/a,!n&&r&&i)t.w2=t.w*r/i}function RR(t,e,r,i,n){I(n);var a=!1,o=-1/0;if(w(n.key?[ew(e,n.key)]:tw(e,n.sers||[]),function(s){var l=s.liPosMinGap;if(l!=null){if(l>0){if(l>o)o=l;a=!1}else if(l===pp)a=!0}}),qe(r)&&r>0&&qe(o))t.w=i/r*o,t.w2=o;else if(a)t.w=i*IR,t.w2=t.w*r/i}var Ow=[0,1],kR=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)),Ns(e,Ow,Lw(this),r)},t.prototype.coordToData=function(e,r){var i=Ns(e,Lw(this),Ow,r);return this.scale.scale(i)},t.prototype.pointToData=function(e,r){return},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),i=Tw(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),n=U(i.ticks,function(s){return{coord:this.dataToCoord(Ii(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=BR(this,n,a);return U(n,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(pt(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");if(!(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||os(Zt.determine),bw(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 zr(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||os(Zt.determine),Dw(this,e)},t}();function Lw(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 BR(t,e,r){var i=e.length;if(!t.onBand||r||!i)return!1;var n=zr(t).w;if(!n)return!1;w(e,function(s){s.coord-=n/2});var a=t.scale.getExtent(),o=e[i-1];if(o.tick.offInterval)e.pop();return e.push({coord:o.coord+n,tick:{value:a[1]+1}}),!0}var Pw=kR;var w6=Math.PI*2,C6=yt.CMD;function Iw(t,e,r,i,n,a,o,s){var l=n-t,u=a-e,f=r-t,c=i-e,p=Math.sqrt(f*f+c*c);f/=p,c/=p;var h=l*f+u*c,v=h/p;if(s)v=Math.min(Math.max(v,0),1);v*=p;var d=o[0]=t+v*f,m=o[1]=e+v*c;return Math.sqrt((d-n)*(d-n)+(m-a)*(m-a))}var bn=new fe,Ke=new fe,xt=new fe,Tn=new fe,fi=new fe;var gp=[],Nt=new fe;function Nw(t,e){if(!(e<=180&&e>0))return;e=e/180*Math.PI,bn.fromArray(t[0]),Ke.fromArray(t[1]),xt.fromArray(t[2]),fe.sub(Tn,bn,Ke),fe.sub(fi,xt,Ke);var r=Tn.len(),i=fi.len();if(r<0.001||i<0.001)return;Tn.scale(1/r),fi.scale(1/i);var n=Tn.dot(fi),a=Math.cos(e);if(a<n){var o=Iw(Ke.x,Ke.y,xt.x,xt.y,bn.x,bn.y,gp,!1);Nt.fromArray(gp),Nt.scaleAndAdd(fi,o/Math.tan(Math.PI-e));var s=xt.x!==Ke.x?(Nt.x-Ke.x)/(xt.x-Ke.x):(Nt.y-Ke.y)/(xt.y-Ke.y);if(isNaN(s))return;if(s<0)fe.copy(Nt,Ke);else if(s>1)fe.copy(Nt,xt);Nt.toArray(t[1])}}function Rw(t,e,r){if(!(r<=180&&r>0))return;r=r/180*Math.PI,bn.fromArray(t[0]),Ke.fromArray(t[1]),xt.fromArray(t[2]),fe.sub(Tn,Ke,bn),fe.sub(fi,xt,Ke);var i=Tn.len(),n=fi.len();if(i<0.001||n<0.001)return;Tn.scale(1/i),fi.scale(1/n);var a=Tn.dot(e),o=Math.cos(r);if(a<o){var s=Iw(Ke.x,Ke.y,xt.x,xt.y,bn.x,bn.y,gp,!1);Nt.fromArray(gp);var l=Math.PI/2,u=Math.acos(fi.dot(e)),f=l+u-r;if(f>=l)fe.copy(Nt,xt);else{Nt.scaleAndAdd(fi,s/Math.tan(Math.PI/2-f));var c=xt.x!==Ke.x?(Nt.x-Ke.x)/(xt.x-Ke.x):(Nt.y-Ke.y)/(xt.y-Ke.y);if(isNaN(c))return;if(c<0)fe.copy(Nt,Ke);else if(c>1)fe.copy(Nt,xt)}Nt.toArray(t[1])}}function zm(t,e,r,i){var n=r==="normal",a=n?t:t.ensureState(r);a.ignore=e;var o=i.get("smooth");o=o===!0?0.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=i.getModel("lineStyle").getLineStyle();n?t.useStyle(s):a.style=s}function zR(t,e){var{smooth:r,points:i}=e;if(!i)return;if(t.moveTo(i[0][0],i[0][1]),r>0&&i.length>=3){var n=hs(i[0],i[1]),a=hs(i[1],i[2]);if(!n||!a){t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]);return}var o=Math.min(n,a)*r,s=hu([],i[1],i[0],o/n),l=hu([],i[1],i[2],o/a),u=hu([],s,l,0.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var f=1;f<i.length;f++)t.lineTo(i[f][0],i[f][1])}function kw(t,e,r){var i=t.getTextGuideLine(),n=t.getTextContent();if(!n){if(i)t.removeTextGuideLine();return}var a=e.normal,o=a.get("show"),s=n.ignore;for(var l=0;l<So.length;l++){var u=So[l],f=e[u],c=u==="normal";if(f){var p=f.get("show"),h=c?s:G(n.states[u]&&n.states[u].ignore,s);if(h||!G(p,o)){var v=c?i:i&&i.states[u];if(v)v.ignore=!0;if(i)zm(i,!0,u,f);continue}if(!i){if(i=new fn,t.setTextGuideLine(i),!c&&(s||!o))zm(i,!0,"normal",e.normal);if(t.stateProxy)i.stateProxy=t.stateProxy}zm(i,!1,u,f)}}if(i){oe(i.style,r),i.style.fill=null;var d=a.get("showAbove"),m=t.textGuideLineConfig=t.textGuideLineConfig||{};m.showAbove=d||!1,i.buildPath=zR}}function Bw(t,e){e=e||"labelLine";var r={normal:t.getModel(e)};for(var i=0;i<lt.length;i++){var n=lt[i];r[n]=t.getModel([n,e])}return r}var zw=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],UR=1,yp=2,Fw=UR|yp;function zl(t,e,r){r=r||Fw,e?t.dirty|=r:t.dirty&=~r}function Vw(t,e){return e=e||Fw,t.dirty==null||!!(t.dirty&e)}function Ur(t){if(!t)return;if(Vw(t))Fm(t,t.label,t);return t}function Fm(t,e,r){var i=e.getComputedTransform();t.transform=Uf(t.transform,i);var n=t.localRect=Lo(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;if(f==null&&u)o=u,f=va.textMargin;for(var c=0;c<4;c++)Um[c]=f===va.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;if(f===va.textMargin)Oo(n,Um,!1,!1);var p=t.rect=Lo(t.rect,n);if(i)p.applyTransform(i);if(f===va.minMargin)Oo(p,Um,!1,!1);return t.axisAligned=zf(i),(t.label=t.label||{}).ignore=e.ignore,zl(t,!1),zl(t,!0,yp),t}var Um=[0,0,0,0];function Hw(t,e,r){if(t.transform=Uf(t.transform,r),t.localRect=Lo(t.localRect,e),t.rect=Lo(t.rect,e),r)t.rect.applyTransform(r);return t.axisAligned=zf(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function Gw(t,e){if(!t)return;t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;if(r)r[4]+=e.x,r[5]+=e.y;var i=t.rect;if(i)i.x+=e.x,i.y+=e.y;var n=t.obb;if(n)n.fromBoundingRect(t.localRect,r)}function Vm(t,e){for(var r=0;r<zw.length;r++){var i=zw[r];if(t[i]==null)t[i]=e[i]}return Ur(t)}function Uw(t){var e=t.obb;if(!e||Vw(t,yp))t.obb=e=e||new Pf,e.fromBoundingRect(t.localRect,t.transform),zl(t,!1,yp);return e}function Yw(t,e,r,i,n){var a=t.length,o=ai[e],s=pn[e];if(a<2)return!1;t.sort(function(C,E){return C.rect[o]-E.rect[o]});var l=0,u,f=!1,c=0;for(var p=0;p<a;p++){var h=t[p],v=h.rect;if(u=v[o]-l,u<0)v[o]-=u,h.label[o]-=u,f=!0;var d=Math.max(-u,0);c+=d,l=v[o]+v[s]}if(c>0&&n)b(-c/a,0,a);var m=t[0],g=t[a-1],y,_;if(x(),y<0&&T(-y,0.8),_<0&&T(_,0.8),x(),S(y,_,1),S(_,y,-1),x(),y<0)A(-y);if(_<0)A(_);function x(){y=m.rect[o]-r,_=i-g.rect[o]-g.rect[s]}function S(C,E,D){if(C<0){var O=Math.min(E,-C);if(O>0){b(O*D,0,a);var M=O+C;if(M<0)T(-M*D,1)}else T(-C*D,1)}}function b(C,E,D){if(C!==0)f=!0;for(var O=E;O<D;O++){var M=t[O],L=M.rect;L[o]+=C,M.label[o]+=C}}function T(C,E){var D=[],O=0;for(var M=1;M<a;M++){var L=t[M-1].rect,B=Math.max(t[M].rect[o]-L[o]-L[s],0);D.push(B),O+=B}if(!O)return;var R=Math.min(Math.abs(C)/O,E);if(C>0)for(var M=0;M<a-1;M++){var F=D[M]*R;b(F,0,M+1)}else for(var M=a-1;M>0;M--){var F=D[M-1]*R;b(-F,M,a)}}function A(C){var E=C<0?-1:1;C=Math.abs(C);var D=Math.ceil(C/(a-1));for(var O=0;O<a-1;O++){if(E>0)b(D,0,O+1);else b(-D,a-O-1,a);if(C-=D,C<=0)return}}return f}function Ww(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");if(f.ignore==null)f.ignore=!1}u.ignore=!0}for(var i=0;i<t.length;i++){var n=Ur(t[i]);if(n.label.ignore)continue;var{label:a,labelLine:o}=n,s=!1;for(var l=0;l<e.length;l++)if(_p(n,e[l],null,{touchThreshold:0.05})){s=!0;break}if(s)r(a),o&&r(o);else e.push(n)}}function _p(t,e,r,i){if(!t||!e)return!1;if(t.label&&t.label.ignore||e.label&&e.label.ignore)return!1;if(!t.rect.intersect(e.rect,r,i))return!1;if(t.axisAligned&&e.axisAligned)return!0;return Uw(t).intersect(Uw(e),r,i)}var FR=function(t){P(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){var i=r.coordinateSystem;if(i!=="polar"&&i!=="cartesian2d")throw Error("Line not support coordinateSystem besides cartesian and polar");return jo(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var i=new we,n=Rr("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*0.8,u=Rr(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;if(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=he.color.neutral00,u.style.lineWidth=2;return 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}(or),Xw=FR;function ss(t,e){var r=t.mapDimensionsAll("defaultedLabel"),i=r.length;if(i===1){var n=Mi(t,e,r[0]);return n!=null?n+"":null}else if(i){var a=[];for(var o=0;o<r.length;o++)a.push(Mi(t,e,r[o]));return a.join(" ")}}function xp(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!k(e))return e+"";var i=[];for(var n=0;n<r.length;n++){var a=t.getDimensionIndex(r[n]);if(a>=0)i.push(e[a])}return i.join(" ")}var VR=function(t){P(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=Rr(r,-1,-1,2,2,null,s);l.attr({z2:G(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=HR,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(){Ti(this.childAt(0))},e.prototype.downplay=function(){wi(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 v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):Ve(h,v,s,i),Mo(h)}if(this._updateCommon(r,i,l,n,a),f){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,$e(h,v,s,i)}}if(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,v,d,m,g;if(a)u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,p=a.focus,h=a.blurScope,d=a.labelStatesModels,m=a.hoverScale,g=a.cursorStyle,v=a.emphasisDisabled;if(!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"),v=_.get("disabled"),d=Yt(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=Da(r.getItemVisual(i,"symbolOffset"),n);if(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 _t){var A=s.style;s.useStyle(N({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},b))}else{if(s.__isEmptyBrush)s.useStyle(N({},b));else s.useStyle(b);s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0}var C=r.getItemVisual(i,"liftZ"),E=this._z2;if(C!=null){if(E==null)this._z2=s.z2,s.z2+=C}else if(E!=null)s.z2=E,this._z2=null;var D=o&&o.useNameLabel;oi(s,d,{labelFetcher:l,labelDataIndex:i,defaultText:O,inheritColor:T,defaultOpacity:b.opacity});function O(B){return D?r.getName(B):ss(r,B)}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 L=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;M.scaleX=this._sizeX*L,M.scaleY=this._sizeY*L,this.setSymbolScale(1),Lr(this,p,h,v)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,i,n){var a=this.childAt(0),o=xe(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();if(l)Do(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Do(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,i){return Sl(r.getItemVisual(i,"symbolSize"))},e.getSymbolZ2=function(r,i){return r.getItemVisual(i,"z2")},e}(we);function HR(t,e){this.parent.drift(t,e)}var Ul=VR;function Sp(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 qw(t){if(t!=null&&!W(t))t={isIgnore:t};return t||{}}function Zw(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:Yt(e),cursorStyle:e.get("cursor")}}function Kw(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 GR=function(){function t(e){this.group=new we,this._SymbolCtor=e||Ul}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=qw(r);var i=this.group,n=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=Zw(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};if(!a)i.removeAll();e.diff(a).add(function(c){var p=f(c);if(Sp(e,p,c,r))Kw(o,e,c,l,u,p,i)}).update(function(c,p){var h=a.getItemGraphicEl(p),v=f(c);if(!Sp(e,v,c,r)){i.remove(h);return}var d=e.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==d)i.remove(h),h=new o(e,c,l,u),h.setPosition(v);else{h.updateData(e,c,l,u);var g={x:v[0],y:v[1]};s?h.attr(g):Ve(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)return;var i=this,n=r.getStore();for(var a=0,o=n.count();a<o;a++){var s=r.getItemGraphicEl(a),l=i._getSymbolPoint(a);if(Sp(r,l,a,e))s=s||Kw(i._SymbolCtor,r,a,i._seriesScope,{disableAnimation:!0},l,i.group),s.stopAnimation(),s.setPosition(l),s.markRedraw();else if(s)i.group.remove(s),r.setItemGraphicEl(a,null)}},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Zw(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,i,n){this._progressiveEls=[],n=qw(n);function a(u){if(!u.isGroup)u.incremental=i,u.ensureState("emphasis").hoverLayer=ca}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if(Sp(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){Ci(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,i=this._data;if(i&&e)i.eachItemGraphicEl(function(n){n.fadeOut(function(){r.remove(n)},i.hostModel)});else r.removeAll()},t}(),jw=GR;function bp(t,e,r){var i=t.getBaseAxis(),n=t.getOtherAxis(i),a=YR(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(v){return e.mapDimension(v)}),p=!1,h=e.getCalculationInfo("stackResultDimension");if(kr(e,c[0]))p=!0,c[0]=h;if(kr(e,c[1]))p=!0,c[1]=h;return{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function YR(t,e){var r=0,i=t.scale.getExtent();if(e==="start")r=i[0];else if(e==="end")r=i[1];else if(se(e)&&!isNaN(e))r=e;else if(i[0]>0)r=i[0];else if(i[1]<0)r=i[1];return r}function Tp(t,e,r,i){var n=NaN;if(t.stacked)n=r.get(r.getCalculationInfo("stackedOverDimension"),i);if(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 Kt(t,e){return!isFinite(t)||!isFinite(e)}var WR=typeof Float32Array!==sn?Float32Array:void 0,Qw=typeof Float64Array!==sn?Float64Array:void 0;function lr(t){return wp({ctor:WR},t).arr}function wp(t,e){I(e!=null&&isFinite(e)&&e>=0&&t.hasOwnProperty("ctor"));var{arr:r,ctor:i}=t;if(e>tv)e=tv;if(!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(s){pe(s)}if(!n){if(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 XR(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 Hm(t,e,r,i,n,a,o,s){var l=XR(t,e),u=[],f=[],c=[],p=[],h=[],v=[],d=[],m=bp(n,e,o),g=t.getLayout("points")||[],y=e.getLayout("points")||[];for(var _=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 A=g[b],C=g[b+1],E=y[T],D=y[T+1];if(isNaN(A)||isNaN(C))A=E,C=D;u.push(A,C),f.push(E,D),c.push(r[b],r[b+1]),p.push(i[T],i[T+1]),d.push(e.getRawIndex(x.idx1));break;case"+":var O=x.idx,M=m.dataDimsForPoint,L=n.dataToPoint([e.get(M[0],O),e.get(M[1],O)]);T=O*2,u.push(L[0],L[1]),f.push(y[T],y[T+1]);var B=Tp(m,n,e,O);c.push(B[0],B[1]),p.push(i[T],i[T+1]),d.push(e.getRawIndex(O));break;case"-":S=!1}if(S)h.push(x),v.push(v.length)}v.sort(function(ce,ye){return d[ce]-d[ye]});var R=u.length,F=lr(R),z=lr(R),H=lr(R),Y=lr(R),q=[];for(var _=0;_<v.length;_++){var Q=v[_],J=_*2,j=Q*2;F[J]=u[j],F[J+1]=u[j+1],z[J]=f[j],z[J+1]=f[j+1],H[J]=c[j],H[J+1]=c[j+1],Y[J]=p[j],Y[J+1]=p[j+1],q[_]=h[Q]}return{current:F,next:z,stackedOnCurrent:H,stackedOnNext:Y,status:q}}var{min:wn,max:Cn}=Math;function Gm(t,e,r,i,n,a,o,s,l){var u,f,c,p,h,v,d=r,m=0;for(;m<i;m++){var g=e[d*2],y=e[d*2+1];if(d>=n||d<0)break;if(Kt(g,y)){if(l){d+=a;continue}break}if(d===r)t[a>0?"moveTo":"lineTo"](g,y),c=g,p=y;else{var _=g-u,x=y-f;if(_*_+x*x<0.5){d+=a;continue}if(o>0){var S=d+a,b=e[S*2],T=e[S*2+1];while(b===g&&T===y&&m<i)m++,S+=a,d+=a,b=e[S*2],T=e[S*2+1],g=e[d*2],y=e[d*2+1],_=g-u,x=y-f;var A=m+1;if(l)while(Kt(b,T)&&A<i)A++,S+=a,b=e[S*2],T=e[S*2+1];var C=0.5,E=0,D=0,O=void 0,M=void 0;if(A>=i||Kt(b,T))h=g,v=y;else{E=b-u,D=T-f;var L=g-u,B=b-g,R=y-f,F=T-y,z=void 0,H=void 0;if(s==="x"){z=Math.abs(L),H=Math.abs(B);var Y=E>0?1:-1;h=g-Y*z*o,v=y,O=g+Y*H*o,M=y}else if(s==="y"){z=Math.abs(R),H=Math.abs(F);var q=D>0?1:-1;h=g,v=y-q*z*o,O=g,M=y+q*H*o}else z=Math.sqrt(L*L+R*R),H=Math.sqrt(B*B+F*F),C=H/(H+z),h=g-E*o*(1-C),v=y-D*o*(1-C),O=g+E*o*C,M=y+D*o*C,O=wn(O,Cn(b,g)),M=wn(M,Cn(T,y)),O=Cn(O,wn(b,g)),M=Cn(M,wn(T,y)),E=O-g,D=M-y,h=g-E*z/H,v=y-D*z/H,h=wn(h,Cn(u,g)),v=wn(v,Cn(f,y)),h=Cn(h,wn(u,g)),v=Cn(v,wn(f,y)),E=g-h,D=y-v,O=g+E*H/z,M=y+D*H/z}t.bezierCurveTo(c,p,h,v,g,y),c=O,p=M}else t.lineTo(g,y)}u=g,f=y,d+=a}return m}var $w=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),Jw=function(t){P(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:he.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new $w},e.prototype.buildPath=function(r,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0;o--)if(!Kt(n[o*2-2],n[o*2-1]))break;for(;a<o;a++)if(!Kt(n[a*2],n[a*2+1]))break}while(a<o)a+=Gm(r,n,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},e.prototype.getPointOn=function(r,i){if(!this.path)this.createPathProxy(),this.buildPath(this.path,this.shape);var n=this.path,a=n.data,o=yt.CMD,s,l,u=i==="x",f=[];for(var c=0;c<a.length;){var p=a[c++],h=void 0,v=void 0,d=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++],v=a[c++],_=u?(r-s)/(h-s):(r-l)/(v-l),_<=1&&_>=0){var x=u?(v-l)*_+l:(h-s)*_+s;return u?[r,x]:[x,r]}s=h,l=v;break;case o.C:h=a[c++],v=a[c++],d=a[c++],m=a[c++],g=a[c++],y=a[c++];var S=u?Fn(s,h,d,g,r,f):Fn(l,v,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?ze(l,v,m,y,T):ze(s,h,d,g,T);return u?[r,x]:[x,r]}}s=g,l=y;break}}},e}(ie);var qR=function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}($w),eC=function(t){P(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 qR},e.prototype.buildPath=function(r,i){var{points:n,stackedOnPoints:a}=i,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0;s--)if(!Kt(n[s*2-2],n[s*2-1]))break;for(;o<s;o++)if(!Kt(n[o*2],n[o*2+1]))break}while(o<s){var u=Gm(r,n,o,s,s,1,i.smooth,l,i.connectNulls);Gm(r,a,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,r.closePath()}},e}(ie);function Ym(t,e,r,i,n){var a=t.getArea(),{x:o,y:s,width:l,height:u}=a,f=r.get(["lineStyle","width"])||0;if(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 De({shape:{x:o,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),h=p.isHorizontal(),v=p.inverse;if(h){if(v)c.shape.x+=l;c.shape.width=0}else{if(!v)c.shape.y+=u;c.shape.height=0}var d=X(n)?function(m){n(m,c)}:null;$e(c,{shape:{width:l,height:u,x:o,y:s}},r,null,i,d)}return c}function Wm(t,e,r){var i=t.getArea(),n=de(i.r0,1),a=de(i.r,1),o=new dr({shape:{cx:de(t.cx,1),cy:de(t.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";if(s)o.shape.endAngle=i.startAngle;else o.shape.r=n;$e(o,{shape:{endAngle:i.endAngle,r:a}},r)}return o}function tC(t,e,r,i,n){if(!t)return null;else if(t.type==="polar")return Wm(t,e,r);else if(t.type==="cartesian2d")return Ym(t,e,r,i,n);return null}function ls(t,e){return t.type===e}var rC={};function iC(t,e){var r=t+"^_^"+e;if(!rC[r])console.warn('[ECharts] DEPRECATED: "'+t+'" has been deprecated. '+e),rC[r]=!0}function nC(t,e){if(t.length!==e.length)return;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}function aC(t){var e=gt(),r=gt();for(var i=0;i<t.length;){var n=t[i++],a=t[i++];if(!Kt(n,a))Us(e,n),Us(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 se(t)?t:t?0.5:0}function ZR(t,e,r){if(r.valueDim==null)return[];var i=e.count(),n=lr(i*2);for(var a=0;a<i;a++){var o=Tp(r,t,e,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function An(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;if(!Kt(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 v=(f[o]+c[o])/2,d=[];u[o]=d[o]=v,u[1-o]=f[1-o],d[1-o]=c[1-o],s.push(u[0],u[1]),s.push(d[0],d[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 KR(t,e){var r=[],i=t.length,n,a;function o(f,c,p){var h=f.coord,v=(p-h)/(c.coord-h),d=u0(v,[f.color,c.color]);return{coord:p,color:d}}for(var s=0;s<i;s++){var l=t[s],u=l.coord;if(u<0)n=l;else if(u>e){if(a)r.push(o(a,l,e));else if(n)r.push(o(n,l,0),o(n,l,e));break}else{if(n)r.push(o(n,l,0)),n=null;r.push(l),a=l}}return r}function jR(t,e,r){var i=t.getVisual("visualMeta");if(!i||!i.length||!t.count())return;if(e.type!=="cartesian2d"){console.warn("Visual map on line style is only supported on cartesian2d.");return}var n,a;for(var 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){console.warn("Visual map on line style only support x or y dimension.");return}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();if(f&&u[0].coord>u[f-1].coord)u.reverse(),c.reverse();var p=KR(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 v=10,d=p[0].coord-v,m=p[h-1].coord+v,g=m-d;if(g<0.001)return"transparent";w(p,function(_){_.offset=(_.coord-d)/g}),p.push({offset:h?p[h-1].offset:0.5,color:c[1]||"transparent"}),p.unshift({offset:h?p[0].offset:0.5,color:c[0]||"transparent"});var y=new Eo(0,0,0,0,p,!0);return y[n]=d,y[n+"2"]=m,y}function QR(t,e,r){var i=t.get("showAllSymbol"),n=i==="auto";if(i&&!n)return;var a=r.getAxesByScale("ordinal")[0];if(!a)return;if(n&&$R(a,e))return;var o=e.mapDimension(a.dim),s={};return w(a.getViewLabels(),function(l){if(!l.tick.offInterval)s[Ii(a.scale,l.tick)]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}function $R(t,e){var r=t.getExtent(),i=Math.abs(r[1]-r[0])/t.scale.count();isNaN(i)&&(i=0);var n=e.count(),a=Math.max(1,Math.round(n/5));for(var o=0;o<n;o+=a)if(Ul.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>i)return!1;return!0}function JR(t){var e=t.length/2;for(;e>0;e--)if(!Kt(t[e*2-2],t[e*2-1]))break;return e-1}function lC(t,e){return[t[e*2],t[e*2+1]]}function ek(t,e,r){var i=t.length/2,n=r==="x"?0:1,a,o,s=0,l=-1;for(var u=0;u<i;u++){if(o=t[u*2+n],Kt(o,t[u*2+1-n]))continue;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<lt.length;e++)if(t.get([lt[e],"endLabel","show"]))return!0;return!1}function Xm(t,e,r,i){if(ls(e,"cartesian2d")){var n=i.getModel("endLabel"),a=n.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=uC(i)?function(h,v){t._endLabelOnDuring(h,v,o,s,a,n,e)}:null,u=e.getBaseAxis().isHorizontal(),f=Ym(e,r,i,function(){var h=t._endLabel;if(h&&r){if(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);if(u)c.y-=p,c.height+=p*2;else c.x-=p,c.width+=p*2}if(l)l(1,f);return f}else{if(i.get(["endLabel","show"]))console.warn("endLabel is not supported for lines in polar systems.");return Wm(e,r,i)}}function tk(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 rk=function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new we,i=new jw;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=r,this._changePolyState=me(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,v=this._polyline,d=this._polygon,m=this._lineGroup,g=!i.ssr&&r.get("animation"),y=!u.isEmpty(),_=u.get("origin"),x=bp(a,s,_),S=y&&ZR(a,s,x),b=r.get("showSymbol"),T=r.get("connectNulls"),A=b&&!c&&QR(r,s,a),C=this._data;if(C&&C.eachItemGraphicEl(function(Te,Me){if(Te.__temp)o.remove(Te),C.setItemGraphicEl(Me,null)}),!b)h.remove();o.add(m);var E=!c?r.get("step"):!1,D;if(a&&a.getArea&&r.get("clip",!0)){if(D=a.getArea(),D.width!=null)D.x-=0.1,D.y-=0.1,D.width+=0.2,D.height+=0.2;else if(D.r0)D.r0-=0.5,D.r+=0.5}this._clipShapeForSymbol=D;var O=jR(s,a,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(v&&p.type===a.type&&E===this._step)){if(b&&h.updateData(s,{isIgnore:A,clipShape:D,disableAnimation:!0,getSymbolPoint:function(Te){return[f[Te*2],f[Te*2+1]]}}),g&&this._initSymbolLabelAnimation(s,a,D),E){if(S)S=An(S,f,a,E,T);f=An(f,null,a,E,T)}if(v=this._newPolyline(f),y)d=this._newPolygon(f,S);else if(d)m.remove(d),d=this._polygon=null;if(!c)this._initOrUpdateEndLabel(r,a,Ir(O));m.setClipPath(Xm(this,a,!0,r))}else{if(y&&!d)d=this._newPolygon(f,S);else if(d&&!y)m.remove(d),d=this._polygon=null;if(!c)this._initOrUpdateEndLabel(r,a,Ir(O));var M=m.getClipPath();if(M){var L=Xm(this,a,!1,r);$e(M,{shape:L.shape},r)}else m.setClipPath(Xm(this,a,!0,r));if(b&&h.updateData(s,{isIgnore:A,clipShape:D,disableAnimation:!0,getSymbolPoint:function(Te){return[f[Te*2],f[Te*2+1]]}}),!nC(this._stackedOnPoints,S)||!nC(this._points,f))if(g)this._doUpdateAnimation(s,S,a,n,E,_,T);else{if(E){if(S)S=An(S,f,a,E,T);f=An(f,null,a,E,T)}v.setShape({points:f}),d&&d.setShape({points:f,stackedOnPoints:S})}}var B=r.getModel("emphasis"),R=B.get("focus"),F=B.get("blurScope"),z=B.get("disabled");if(v.useStyle(oe(l.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"})),oa(v,r,"lineStyle"),v.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var H=v.getState("emphasis").style;H.lineWidth=+v.style.lineWidth+1}xe(v).seriesIndex=r.seriesIndex,Lr(v,R,F,z);var Y=sC(r.get("smooth")),q=r.get("smoothMonotone");if(v.setShape({smooth:Y,smoothMonotone:q,connectNulls:T}),d){var Q=s.getCalculationInfo("stackedOnSeries"),J=0;if(d.useStyle(oe(u.getAreaStyle(),{fill:O,opacity:0.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Q)J=sC(Q.get("smooth"));d.setShape({smooth:Y,stackedOnSmooth:J,smoothMonotone:q,connectNulls:T}),oa(d,r,"areaStyle"),xe(d).seriesIndex=r.seriesIndex,Lr(d,R,F,z)}var j=this._changePolyState;s.eachItemGraphicEl(function(Te){Te&&(Te.onHoverStateChange=j)}),this._polyline.onHoverStateChange=j,this._data=s,this._coordSys=a,this._stackedOnPoints=S,this._points=f,this._step=E,this._valueOrigin=_;var ce=r.get("triggerEvent"),ye=r.get("triggerLineEvent");ye&&iC("triggerLineEvent","Use the `triggerEvent` option instead.");var We=ye===!0||ce===!0||ce==="line",He=ye===!0||ce===!0||ce==="area";this.packEventData(r,v,We),d&&this.packEventData(r,d,He)},e.prototype.packEventData=function(r,i,n){xe(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=cr(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(Kt(f,c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var p=r.get("zlevel")||0,h=r.get("z")||0;u=new Ul(o,s),u.x=f,u.y=c,u.setZ(p,h);var v=u.getSymbolPath().getTextContent();if(v)v.zlevel=p,v.z=h,v.z2=this._polyline.z2+1;u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Lt.prototype.highlight.call(this,r,i,n,a)},e.prototype.downplay=function(r,i,n,a){var o=r.getData(),s=cr(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);if(l)if(l.__temp)o.setItemGraphicEl(s,null),this.group.remove(l);else l.downplay()}else Lt.prototype.downplay.call(this,r,i,n,a)},e.prototype._changePolyState=function(r){var i=this._polygon;Uv(this._polyline,r),i&&Uv(i,r)},e.prototype._newPolyline=function(r){var i=this._polyline;if(i)this._lineGroup.remove(i);return i=new Jw({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;if(n)this._lineGroup.remove(n);return n=new eC({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;if(i.type==="cartesian2d")a=s.isHorizontal(),o=!1;else if(i.type==="polar")a=s.dim==="angle",o=!0;var u=r.hostModel,f=u.get("animationDuration");if(X(f))f=f(null);var c=u.get("animationDelay")||0,p=X(c)?c(null):c;r.eachItemGraphicEl(function(h,v){var d=h;if(d){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);if(a)g=x.startAngle,y=x.endAngle,_=-S[1]/180*Math.PI;else g=x.r0,y=x.r,_=S[0]}else{var b=n;if(a)g=b.x,y=b.x+b.width,_=h.x;else g=b.y+b.height,y=b.y,_=h.y}var T=y===g?0:(_-g)/(y-g);if(l)T=1-T;var A=X(c)?c(v):f*T+p,C=d.getSymbolPath(),E=C.getTextContent();if(d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),E)E.animateFrom({style:{opacity:0}},{duration:300,delay:A});C.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;if(!u)u=this._endLabel=new Qe({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0;var f=JR(l);if(f>=0)oi(s,Yt(r,"endLabel"),{inheritColor:n,labelFetcher:r,labelDataIndex:f,defaultText:function(c,p,h){return h!=null?xp(o,h):ss(o,c)},enableTextSetter:!0},tk(a,i)),s.textConfig.position=null}else if(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){if(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"),v=s.get("precision"),d=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?d:0)*(y?-1:1),b=(g?0:-d)*(y?-1:1),T=g?"x":"y",A=ek(c,x,T),C=A.range,E=C[1]-C[0],D=void 0;if(E>=1){if(E>1&&!h){var O=lC(c,C[0]);u.attr({x:O[0]+S,y:O[1]+b}),o&&(D=p.getRawValue(C[0]))}else{var O=f.getPointOn(x,T);O&&u.attr({x:O[0]+S,y:O[1]+b});var M=p.getRawValue(C[0]),L=p.getRawValue(C[1]);o&&(D=sv(n,v,M,L,A.t))}a.lastFrameIndex=C[0]}else{var B=r===1||a.lastFrameIndex>0?C[0]:0,O=lC(c,B);o&&(D=p.getRawValue(B)),u.attr({x:O[0]+S,y:O[1]+b})}if(o){var R=Po(u);if(typeof R.setLabelText==="function")R.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(r,i,n,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,p=Hm(this._data,r,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin,s),{current:h,stackedOnCurrent:v,next:d,stackedOnNext:m}=p;if(o)v=An(p.stackedOnCurrent,p.current,n,o,l),h=An(p.current,null,n,o,l),m=An(p.stackedOnNext,p.next,n,o,l),d=An(p.next,null,n,o,l);if(oC(h,d)>3000||f&&oC(v,m)>3000){if(u.stopAnimation(),u.setShape({points:d}),f)f.stopAnimation(),f.setShape({points:d,stackedOnPoints:m});return}u.shape.__points=p.current,u.shape.points=h;var g={shape:{points:d}};if(p.current!==h)g.shape.__points=p.next;if(u.stopAnimation(),Ve(u,g,c),f){if(f.setShape({points:h,stackedOnPoints:v}),f.stopAnimation(),Ve(f,{shape:{stackedOnPoints:m}},c),u.shape.points!==f.shape.points)f.shape.points=u.shape.points}var y=[],_=p.status;for(var x=0;x<_.length;x++){var S=_[x].cmd;if(S==="="){var b=r.getItemGraphicEl(_[x].idx1);if(b)y.push({el:b,ptIdx:x})}}if(u.animators&&u.animators.length)u.animators[0].during(function(){f&&f.dirtyShape();var T=u.shape.__points;for(var A=0;A<y.length;A++){var C=y[A].el,E=y[A].ptIdx*2;C.x=T[E],C.y=T[E+1],C.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){if(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}(Lt),fC=rk;function qm(t,e){return{seriesType:t,plan:Ca(),reset:function(r){var i=r.getData(),{coordinateSystem:n,pipelineContext:a}=r,o=e||a.large;if(!n)return;var s=U(n.dimensions,function(h){return i.mapDimension(h)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");if(kr(i,s[0]))s[0]=u;if(kr(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,v){var d=h.end-h.start,m=o&&lr(d*l),g=[],y=[];for(var _=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);if(o)m[x++]=S[0],m[x++]=S[1];else v.setItemLayout(_,S.slice())}if(o)v.setLayout("points",m),v.setLayout("pointsRange",{start:h.start,end:h.end})}}}}}var ik={average:function(t){var e=0,r=0;for(var i=0;i<t.length;i++)if(!isNaN(t[i]))e+=t[i],r++;return r===0?NaN:e/r},sum:function(t){var e=0;for(var r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){var e=-1/0;for(var r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){var e=1/0;for(var r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},nk=function(t){return Math.round(t.length/2)};function Fl(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){if(a==="lttb")e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h));else if(a==="minmax")e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var v=void 0;if(V(a))v=ik[a];else if(X(a))v=a;if(v)e.setData(n.downSample(n.mapDimension(u.dim),1/h,v,nk))}}}}}function Zm(t){t.registerChartView(fC),t.registerSeriesModel(Xw),t.registerLayout(qm("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),i=e.getModel("lineStyle").getLineStyle();if(i&&!i.stroke)i.stroke=r.getVisual("style").fill;r.setVisual("legendLineStyle",i)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Fl("line"))}var ak=function(t){P(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}(Pw),Cp=ak;var ok=null;function Ra(){return ok}var cC="expandAxisBreak";var En=Math.PI,sk=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],lk=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Dn=ee(),vC=ee(),jm=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 uk(t,e,r,i){var n=r.axis,a=e.ensureRecord(r),o=[],s,l=Jm(t.axisName)&&Sn(t.nameLocation);w(i,function(v){var d=Ur(v);if(!d||d.label.ignore)return;o.push(d);var m=a.transGroup;if(l){if(m.transform?Gr(Vl,m.transform):vi(Vl),d.transform)Hi(Vl,Vl,d.transform);ae.copy(Ap,d.localRect),Ap.applyTransform(Vl),s?s.union(Ap):ae.copy(s=new ae(0,0,0,0),Ap)}});var u=Math.abs(a.dirVec.x)>0.1?"x":"y",f=a.transGroup[u];if(o.sort(function(v,d){return Math.abs(v.label[u]-f)-Math.abs(d.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 ae(p,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Vl=Dt(),Ap=new ae(0,0,0,0),Qm=function(t,e,r,i,n,a){if(Sn(t.nameLocation)){var o=a.stOccupiedRect;if(o)dC(Hw({},o,a.transGroup.transform),i,n)}else $m(a.labelInfoList,a.dirVec,i,n)};function dC(t,e,r){var i=new fe;if(_p(t,e,i,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:0.05}))Gw(e,i)}function $m(t,e,r,i){var n=fe.dot(i,e)>=0;for(var a=0,o=t.length;a<o;a++){var s=t[n?a:o-1-a];if(!s.label.ignore)dC(s,r,i)}}var ka=function(){function t(e,r,i,n){this.group=new we,this._axisModel=e,this._api=r,this._local={},this._shared=n||new jm(Qm),this._resetCfgDetermined(i)}return t.prototype.updateCfg=function(e){var r=this._shared.ensureRecord(this._axisModel).ready;I(!r.axisLine&&!r.axisTickLabelDetermine),r.axisName=r.axisTickLabelEstimate=!1;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=G(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");if(a==null||a==="auto")a=G(e.defaultNameMoveOverlap,!0);var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:G(e.nameDirection,1),tickDirection:G(e.tickDirection,1),labelDirection:G(e.labelDirection,1),labelOffset:G(e.labelOffset,0),silent:G(e.silent,!0),axisName:n,nameLocation:bt(r.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:Jm(n)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};I(o.position!=null),I(o.rotation!=null),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 fe(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var i=this;if(!e)e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0};return w(fk,function(n){if(e[n])ck[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=rv(r-e),a,o;if(Rs(n))o=i>0?"top":"bottom",a="center";else if(Rs(n-En))o=i>0?"bottom":"top",a="center";else if(o="middle",n>0&&n<En)a=i>0?"right":"left";else a=i>0?"left":"right";return{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}(),fk=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],ck={axisLine:function(t,e,r,i,n,a,o){var s=r.ensureRecord(i).ready;I(!s.axisLine),s.axisLine=!0;var l=i.get(["axisLine","show"]);if(l==="auto"){if(l=!0,t.raw.axisLineAutoShow!=null)l=!!t.raw.axisLineAutoShow}if(!l)return;var u=i.axis.getExtent(),f=a.transform,c=[u[0],0],p=[u[1],0],h=c[0]>p[0];if(f)dt(c,c,f),dt(p,p,f);var v=N({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(i.get(["axisLine","breakLine"])&&gr(i.axis.scale))Ra().buildAxisBreakLine(i,n,a,d);else{var m=new Ht(N({shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]}},d));pa(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"]);if(V(g))g=[g,g];if(V(y)||se(y))y=[y,y];var _=Da(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 A=Rr(g[T],-x/2,-S/2,x,S,v.stroke,!0),C=b.r+b.offset,E=h?p:c;A.attr({rotation:b.rotate,x:E[0]+C*Math.cos(t.rotation),y:E[1]-C*Math.sin(t.rotation),silent:!0,z2:11}),n.add(A)}})}},axisTickLabelEstimate:function(t,e,r,i,n,a,o,s){var l=r.ensureRecord(i).ready;I(!l.axisTickLabelDetermine),l.axisTickLabelEstimate=!0;var u=hC(e,n,s);if(u)pC(t,e,r,i,n,a,o,Zt.estimate)},axisTickLabelDetermine:function(t,e,r,i,n,a,o,s){var l=r.ensureRecord(i).ready;l.axisTickLabelDetermine=!0;var u=hC(e,n,s);if(u)pC(t,e,r,i,n,a,o,Zt.determine);var f=dk(t,n,a,i);vk(t,e.labelLayoutList,f),mk(t,n,a,i,t.tickDirection)},axisName:function(t,e,r,i,n,a,o,s){var l=r.ensureRecord(i),u=l.ready;if(I(u.axisTickLabelEstimate||u.axisTickLabelDetermine),u.axisName=!0,e.nameEl)n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null;var f=t.axisName;if(!Jm(f))return;var{nameLocation:c,nameDirection:p}=t,h=i.getModel("nameTextStyle"),v=i.get("nameGap")||0,d=i.axis.getExtent(),m=i.axis.inverse?-1:1,g=new fe(0,0),y=new fe(0,0);if(c==="start")g.x=d[0]-m*v,y.x=-m;else if(c==="end")g.x=d[1]+m*v,y.x=m;else g.x=(d[0]+d[1])/2,g.y=t.labelOffset+p*v,y.y=p;var _=Dt();y.transform($a(_,_,t.rotation));var x=i.get("nameRotate");if(x!=null)x=x*En/180;var S,b;if(Sn(c))S=ka.innerTextLayout(t.rotation,x!=null?x:t.rotation,p);else if(S=pk(t.rotation,c,x||0,d),b=t.raw.axisNameAvailableWidth,b!=null)b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null);var T=h.getFont(),A=i.get("nameTruncate",!0)||{},C=A.ellipsis,E=Cr(t.raw.nameTruncateMaxWidth,A.maxWidth,b),D=s.nameMarginLevel||0,O=new Qe({x:g.x,y:g.y,rotation:S.rotation,silent:ka.isLabelSilent(i),style:ha(h,{text:f,font:T,overflow:"truncate",width:E,ellipsis:C,fill:h.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(Bf({el:O,componentModel:i,itemName:f}),O.__fullText=f,O.anid="name",i.get("triggerEvent")){var M=ka.makeAxisEventDataBase(i);M.targetType="axisName",M.name=f,xe(O).eventData=M}a.add(O),O.updateTransform(),e.nameEl=O;var L=l.nameLayout=Ur({label:O,priority:O.z2,defaultAttr:{ignore:O.ignore},marginDefault:Sn(c)?sk[D]:lk[D]});if(l.nameLocation=c,n.add(O),O.decomposeTransform(),t.shouldNameMoveOverlap&&L){var B=r.ensureRecord(i);I(B.labelInfoList),r.resolveAxisNameOverlap(t,r,i,L,y,B)}}};function pC(t,e,r,i,n,a,o,s){if(!gC(e))gk(t,e,n,s,i,o);var l=e.labelLayoutList;yk(t,i,l,a),Sk(i,t.rotation,l);var u=t.optionHideOverlap;if(hk(i,l,u),u)Ww(Oe(l,function(f){return f&&!f.label.ignore}));uk(t,r,i,l)}function pk(t,e,r,i){var n=rv(r-t),a,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;if(Rs(n-En/2))o=l?"bottom":"top",a="center";else if(Rs(n-En*1.5))o=l?"top":"bottom",a="center";else if(o="middle",n<En*1.5&&n>En/2)a=l?"left":"right";else a=l?"right":"left";return{rotation:n,textAlign:a,textVerticalAlign:o}}function hk(t,e,r){var i=t.axis,n=t.get(["axisLabel","customValues"]);if(K1(i))return;function a(u,f,c){var p=Ur(e[f]),h=Ur(e[c]),v=i.scale;if(!p||!h)return;if(u==null){if(!r&&n)return;var d=Dn(p.label).labelInfo.tick;if(rs(v)&&d.notNice||pt(v)&&d.offInterval){us(p.label);return}}if(u===!1||p.suggestIgnore){us(p.label);return}if(h.suggestIgnore){us(h.label);return}var m=0.1;if(!r){var g=[0,0,0,0];p=Vm({marginForce:g},p),h=Vm({marginForce:g},h)}if(_p(p,h,null,{touchThreshold:m}))if(u)us(h.label);else us(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 vk(t,e,r){if(t.showMinorTicks)return;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=Dn(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){us(a);return}}})}function us(t){t&&(t.ignore=!0)}function mC(t,e,r,i,n){var a=[],o=[],s=[];for(var l=0;l<t.length;l++){var u=t[l].coord;if(o[0]=u,o[1]=0,s[0]=u,s[1]=r,e)dt(o,o,e),dt(s,s,e);var f=new Ht({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});pa(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 dk(t,e,r,i){var n=i.axis,a=i.getModel("axisTick"),o=a.get("show");if(o==="auto"){if(o=!0,t.raw.axisTickAutoShow!=null)o=!!t.raw.axisTickAutoShow}if(!o||n.scale.isBlank())return[];var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=n.getTicksCoords(),f=mC(u,r.transform,l,oe(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks");for(var c=0;c<f.length;c++)e.add(f[c]);return f}function mk(t,e,r,i,n){var a=i.axis,o=i.getModel("minorTick");if(!t.showMinorTicks||a.scale.isBlank())return;var s=a.getMinorTicksCoords();if(!s.length)return;var l=o.getModel("lineStyle"),u=n*o.get("length"),f=oe(l.getLineStyle(),oe(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}));for(var c=0;c<s.length;c++){var p=mC(s[c],r.transform,u,f,"minorticks_"+c);for(var h=0;h<p.length;h++)e.add(p[h])}}function hC(t,e,r){if(gC(t)){var i=t.axisLabelsCreationContext;I(t.labelGroup&&i);var n=i.out.noPxChangeTryDetermine;if(r.noPxChange){var a=!0;for(var o=0;o<n.length;o++)a=a&&n[o]();if(a)return!1}if(n.length)e.remove(t.labelGroup),Km(t,null,null,null)}return!0}function gk(t,e,r,i,n,a){var o=n.axis,s=Cr(t.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new we;r.add(l);var u=os(i);if(!s||o.scale.isBlank()){Km(e,[],l,u);return}var f=n.getModel("axisLabel"),c=o.getViewLabels(u),p=(Cr(t.raw.labelRotate,f.get("rotate"))||0)*En/180,h=ka.innerTextLayout(t.rotation,p,t.labelDirection),v=n.getCategories&&n.getCategories(!0),d=[],m=n.get("triggerEvent"),g=1/0,y=-1/0;w(c,function(x,S){var b,{tick:T,formattedLabel:A,rawLabel:C}=x,E=f,D=Ii(o.scale,T);if(v&&v[D]){var O=v[D];if(W(O)&&O.textStyle)E=new Re(O.textStyle,f,n.ecModel)}var M=E.getTextColor()||n.get(["axisLine","lineStyle","color"]),L=E.getShallow("align",!0)||h.textAlign,B=G(E.getShallow("alignMinLabel",!0),L),R=G(E.getShallow("alignMaxLabel",!0),L),F=E.getShallow("verticalAlign",!0)||E.getShallow("baseline",!0)||h.textVerticalAlign,z=G(E.getShallow("verticalAlignMinLabel",!0),F),H=G(E.getShallow("verticalAlignMaxLabel",!0),F),Y=10+(((b=T.time)===null||b===void 0?void 0:b.level)||0);g=Math.min(g,Y),y=Math.max(y,Y);var q=new Qe({x:0,y:0,rotation:0,silent:ka.isLabelSilent(n),z2:Y,style:ha(E,{text:A,align:S===0?B:S===c.length-1?R:L,verticalAlign:S===0?z:S===c.length-1?H:F,fill:X(M)?M(o.type==="category"?C:o.type==="value"?D+"":D,S):M})});q.anid="label_"+D;var Q=Dn(q);if(Q.labelInfo=x,Q.layoutRotation=h.rotation,Bf({el:q,componentModel:n,itemName:A,formatterParamsExtra:{isTruncated:function(){return q.isTruncated},value:C,tickIndex:S}}),m){var J=ka.makeAxisEventDataBase(n);J.targetType="axisLabel",J.value=C,J.tickIndex=S;var j=x.tick.break;if(j){var ce=j.parsedBreak;J.break={start:ce.vmin,end:ce.vmax}}if(o.type==="category")J.dataIndex=D;if(xe(q).eventData=J,j)xk(n,a,q,j)}d.push(q),l.add(q)});var _=U(d,function(x){return{label:x,priority:Dn(x).labelInfo.tick.break?x.z2+(y-g+1):x.z2,defaultAttr:{ignore:x.ignore}}});Km(e,_,l,u)}function gC(t){return!!t.labelLayoutList}function Km(t,e,r,i){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=i}function yk(t,e,r,i){var n=e.get(["axisLabel","margin"]);w(r,function(a,o){var s=Ur(a);if(!s)return;var l=s.label,u=Dn(l);s.suggestIgnore=l.ignore,l.ignore=!1,Zi(Ri,_k);var f=e.axis;Ri.x=f.dataToCoord(Ii(f.scale,u.labelInfo.tick)),Ri.y=t.labelOffset+t.labelDirection*n,Ri.rotation=u.layoutRotation,i.add(Ri),Ri.updateTransform(),i.remove(Ri),Ri.decomposeTransform(),Zi(l,Ri),l.markRedraw(),zl(s,!0),Ur(s)})}var Ri=new De,_k=new De;function Jm(t){return!!t}function xk(t,e,r,i){r.on("click",function(n){var a={type:cC,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function Sk(t,e,r){var i=Ye();if(!i)return;var n=i.retrieveAxisBreakPairs(r,function(o){return o&&Dn(o.label).labelInfo.tick.break},!0),a=t.get(["breakLabelLayout","moveOverlap"],!0);if(a===!0||a==="auto")w(n,function(o){Ra().adjustBreakLabelPair(t.axis.inverse,e,[Ur(r[o[0]]),Ur(r[o[1]])])})}var Ep=ka;function Hl(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 v={top:-1,bottom:1,left:-1,right:1};if(n.labelDirection=n.tickDirection=n.nameDirection=v[o],n.labelOffset=a?p[f[o]]-p[f.onZero]:0,e.get(["axisTick","inside"]))n.tickDirection=-n.tickDirection;if(Cr(r.labelInside,e.get(["axisLabel","inside"])))n.labelDirection=-n.labelDirection;var d=e.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-d:d,n.z2=1,n}function yC(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function _C(t){var e={xAxisModel:null,yAxisModel:null};return w(e,function(r,i){var n=i.replace(/Model$/,""),a=t.getReferringComponents(n,mt).models[0];if(!a)throw Error(n+' "'+bt(t.get(n+"Index"),t.get(n+"Id"),0)+'" not found');e[i]=a}),e}function xC(t,e,r,i,n,a){var o=Hl(t,r),s=!1,l=!1;for(var u=0;u<e.length;u++)if(Jc(e[u].getOtherAxis(r.axis).scale)){if(s=l=!0,r.axis.type==="category"&&r.axis.onBand)l=!1}return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new Ep(r,i,o,n)}function SC(t,e,r){var i=Hl(e,r),n=t.__getRawCfg();w(re(i),function(a){if(a!=="position"&&a!=="labelOffset")I(i[a]===n[a])}),t.updateCfg(i)}function bC(){ow("liPosMinGap",Tk)}function Tk(t,e,r){var i=Z(),{serUids:n,liPosMinGap:a}=r,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=Tc(f);function p(_){hp(t,e.sers,function(x){var S=x.getRawData(),b=S.getDimensionIndex(S.mapDimension(s.dim));if(b>=0)_(b,x,S.getStore())})}var h=0;if(p(function(_,x,S){if(i.set(x.uid,1),!n||!n.hasKey(x.uid))o=!0;h+=S.count()}),!n||n.keys().length!==i.keys().length)o=!0;if(!o&&a!=null){e.liPosMinGap=a;return}wp(Ba,h);var v=0;p(function(_,x,S){for(var b=0,T=S.count();b<T;++b){var A=S.get(_,b);if(isFinite(A)&&(!f||wc(c,A))){if(u)A=l.transformIn(A,null);Ba.arr[v++]=A}}});var d=Ba.typed?Ba.arr.subarray(0,v):(Ba.arr.length=v,Ba.arr);if(Ba.typed)d.sort();else po(d);var m=1/0;for(var g=1;g<v;++g){var y=d[g]-d[g-1];if(y>0&&y<m)m=y}r.liPosMinGap=e.liPosMinGap=qe(m)?m:v>0?pp:J1,r.serUids=i}var Ba=wp({ctor:Qw},50);function TC(t){return function(e,r){var i=zr(e,{fromStat:{key:t}});if(qe(i.w2))return[-i.w2/2,i.w2/2]}}function Gl(t,e){return t+Rl+e}function wC(t){return bC(),{liPosMinGap:!pt(t.scale)}}var ki="bar";function CC(t,e,r,i){lw(t,{key:e,seriesType:r,coordSysType:i,getMetrics:wC})}function AC(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return I(qe(e)),e}var eg={left:0,right:0,top:0,bottom:0},Yl=["25%","25%"],Sr="cartesian2d",wk=function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,i){var n=dn(r.outerBounds);if(t.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&r.outerBounds)Nr(r.outerBounds,n)},e.prototype.mergeOption=function(r,i){if(t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds)Nr(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:eg,outerBoundsContain:"all",outerBoundsClampWidth:Yl[0],outerBoundsClampHeight:Yl[1],backgroundColor:he.color.transparent,borderWidth:1,borderColor:he.color.neutral30},e}(be),EC=wk;var Ck=rf(),Ak="__ec_stack_";function DC(t){return t.get("stack")||Ak+t.seriesIndex}function Ek(t,e){var r=Dk(t,e);return r.columnMap=Mk(r),r}function Dk(t,e){var r=Gl(e,Sr),i=[],n=zr(t,{fromStat:{key:r},min:1});return Im(t,r,function(a){i.push({barWidth:Ce(a.get("barWidth"),n.w),barMaxWidth:Ce(a.get("barMaxWidth"),n.w),barMinWidth:Ce(a.get("barMinWidth")||(LC(a)?0.5:1),n.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:DC(a)})}),{bandWidthResult:n,seriesInfo:i}}function Mk(t){var e=t.bandWidthResult.w,r=e,i=0,n,a,o=[],s={};if(w(t.seriesInfo,function(d,m){if(!m)a=d.defaultBarGap||0;var g=d.stackId;if(!Be(s,g))i++;var y=s[g];if(!y)y=s[g]={width:0,maxWidth:0},o.push(g);var _=d.barWidth;if(_&&!y.width)y.width=_,_=Ge(r,_),r-=_;var x=d.barMaxWidth;x&&(y.maxWidth=x);var S=d.barMinWidth;S&&(y.minWidth=S);var b=d.barGap;b!=null&&(a=b);var T=d.barCategoryGap;T!=null&&(n=T)}),n==null)n=ve(35-o.length*4,15)+"%";var l=Ce(n,e),u=Ce(a,1),f=(r-l)/(i+(i-1)*u);f=ve(f,0),w(o,function(d){var m=s[d],{maxWidth:g,minWidth:y}=m;if(!m.width){var _=f;if(g&&g<_)_=Ge(g,r);if(y&&y>_)_=y;if(_!==f)m.width=_,r-=_+u*_,i--}else{var _=m.width;if(g)_=Ge(_,g);if(y)_=ve(_,y);m.width=_,r-=_+u*_,i--}}),f=(r-l)/(i+(i-1)*u),f=ve(f,0);var c=0,p;if(w(o,function(d){var m=s[d];if(!m.width)m.width=f;p=m,c+=m.width*(1+u)}),p)c-=p.width*u;var h={},v=-c/2;return w(o,function(d){var m=s[d];h[d]=h[d]||{bandWidth:e,offset:v,width:m.width},v+=m.width*(1+u)}),h}function MC(t){return{seriesType:t,overallReset:function(e){var r=Gl(t,Sr);aw(e,r,function(i){I(i instanceof Cp);var n=Ek(i,t);Im(i,r,function(a){var o=n.columnMap[DC(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function OC(t){return{seriesType:t,plan:Ca(),reset:function(e){if(!yC(e))return;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=kr(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),p=a.isHorizontal(),h=a.toGlobalCoord(a.dataToCoord(AC(a))),v=LC(e),d=e.get("barMinHeight")||0,m=f&&r.getDimensionIndex(f),g=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,x){var S=_.count,b=v&&lr(S*3),T=v&&l&&lr(S*3),A=v&&lr(S),C=i.master.getRect(),E=p?C.width:C.height,D,O=x.getStore(),M=0;while((D=_.next())!=null){var L=O.get(c?m:o,D),B=O.get(s,D),R=h,F=void 0;if(c)F=+L-O.get(o,D);var z=void 0,H=void 0,Y=void 0,q=void 0;if(p){var Q=i.dataToPoint([L,B]);if(c)R=i.dataToPoint([F,B])[0];if(z=R,H=Q[1]+y,Y=Q[0]-R,q=g,Ie(Y)<d)Y=(Y<0?-1:1)*d}else{var Q=i.dataToPoint([B,L]);if(c)R=i.dataToPoint([B,F])[1];if(z=Q[0]+y,H=R,Y=g,q=Q[1]-R,Ie(q)<d)q=(q<=0?-1:1)*d}if(!v)x.setItemLayout(D,{x:z,y:H,width:Y,height:q});else{if(b[M]=z,b[M+1]=H,b[M+2]=p?Y:q,T)T[M]=p?C.x:z,T[M+1]=p?H:C.y,T[M+2]=E;A[D]=D}M+=3}if(v)x.setLayout({largePoints:b,largeDataIndices:A,largeBackgroundPoints:T,valueAxisHorizontal:p})}}}}}function LC(t){return t.pipelineContext&&t.pipelineContext.large}function Ok(t){return TC(Gl(t,Sr))}function PC(t){Ck(t,function(){function e(r){var i=Gl(r,Sr);CC(t,i,r,Sr),gw(i,Ok(r))}e("bar"),e("pictorialBar")})}var IC=function(t){P(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 jo(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 v=p.getTicksCoords(),d=p.getTickModel().get("alignWithLabel"),m=o[h],g=i[h]==="x1"||i[h]==="y1";if(g&&!d)m+=1;if(v.length<2)return;else if(v.length===2){s[h]=p.toGlobalCoord(p.getExtent()[g?1:0]);return}var y=void 0,_=void 0,x=1;for(var S=0;S<v.length;S++){var b=v[S].coord,T=S===v.length-1?v[S-1].tickValue+x:v[S].tickValue;if(T===m){_=b;break}else if(T<m)y=b;else if(y!=null&&T>m){_=(b+y)/2;break}if(S===1)x=T-v[0].tickValue}if(_==null){if(!y)_=v[0].coord;else if(y)_=v[v.length-1].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:3000,progressiveChunkMode:"mod",defaultBarGap:"10%"},e}(or);or.registerClass(IC);var tg=IC;var Lk=function(t){P(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 jo(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=nf(this,r,i);if(n.progressiveRender)n.large=!0;return n},e.prototype.brushSelector=function(r,i,n){return n.rect(i.getItemLayout(r))},e.type="series."+ki,e.dependencies=["grid","polar"],e.defaultOption=bS(tg.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:he.color.primary,borderWidth:2}},realtimeSort:!1}),e}(tg),NC=Lk;var Pk=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}(),Ik=function(t){P(e,t);function e(r){var i=t.call(this,r)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new Pk},e.prototype.buildPath=function(r,i){var{cx:n,cy:a}=i,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*0.5,u=o+l,{startAngle:f,endAngle:c,clockwise:p}=i,h=Math.PI*2,v=p?c-f<h:f-c<h;if(!v)f=c-(p?h:-h);var d=Math.cos(f),m=Math.sin(f),g=Math.cos(c),y=Math.sin(c);if(v)r.moveTo(d*o+n,m*o+a),r.arc(d*u+n,m*u+a,l,-Math.PI+f,f,!p);else r.moveTo(d*s+n,m*s+a);if(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}(ie),rg=Ik;function RC(t,e){e=e||{};var r=e.isRoundCap;return function(i,n,a){var o=n.position;if(!o||o instanceof Array)return Xn(i,n,a);var s=t(o),l=n.distance!=null?n.distance:5,u=this.shape,{cx:f,cy:c,r:p,r0:h}=u,v=(p+h)/2,{startAngle:d,endAngle:m}=u,g=(d+m)/2,y=r?Math.abs(p-h)/2:0,{cos:_,sin:x}=Math,S=f+p*_(d),b=c+p*x(d),T="left",A="top";switch(s){case"startArc":S=f+(h-l)*_(g),b=c+(h-l)*x(g),T="center",A="top";break;case"insideStartArc":S=f+(h+l)*_(g),b=c+(h+l)*x(g),T="center",A="bottom";break;case"startAngle":S=f+v*_(d)+Dp(d,l+y,!1),b=c+v*x(d)+Mp(d,l+y,!1),T="right",A="middle";break;case"insideStartAngle":S=f+v*_(d)+Dp(d,-l+y,!1),b=c+v*x(d)+Mp(d,-l+y,!1),T="left",A="middle";break;case"middle":S=f+v*_(g),b=c+v*x(g),T="center",A="middle";break;case"endArc":S=f+(p+l)*_(g),b=c+(p+l)*x(g),T="center",A="bottom";break;case"insideEndArc":S=f+(p-l)*_(g),b=c+(p-l)*x(g),T="center",A="top";break;case"endAngle":S=f+v*_(m)+Dp(m,l+y,!0),b=c+v*x(m)+Mp(m,l+y,!0),T="left",A="middle";break;case"insideEndAngle":S=f+v*_(m)+Dp(m,-l+y,!0),b=c+v*x(m)+Mp(m,-l+y,!0),T="right",A="middle";break;default:return Xn(i,n,a)}return i=i||{},i.x=S,i.y=b,i.align=T,i.verticalAlign=A,i}}function kC(t,e,r,i){if(se(i)){t.setTextConfig({rotation:i});return}else if(k(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;if(u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5)f-=Math.PI;t.setTextConfig({rotation:f})}function Dp(t,e,r){return e*Math.sin(t)*(r?-1:1)}function Mp(t,e,r){return e*Math.cos(t)*(r?1:-1)}function za(t,e,r){var i=t.get("borderRadius");if(i==null)return r?{cornerRadius:0}:null;if(!k(i))i=[i,i,i,i];var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:U(i,function(a){return Er(a,n)})}}var{max:ig,min:ng}=Math,Nk=function(t){P(e,t);function e(){var r=t.call(this)||this;return r.type=ki,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");if(o==="cartesian2d"||o==="polar")this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,i,n):this._renderNormal(r,i,n,a);else Ue("Only cartesian2d and polar supported for bar.")},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){Ci(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var i=r.pipelineContext.large;if(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;if(u.type==="cartesian2d")c=f.isHorizontal();else if(u.type==="polar")c=f.dim==="angle";var p=r.isAnimationEnabled()?r:null,h=Rk(r,u);if(h)this._enableRealtimeSort(h,s,n);var v=r.get("clip",!0)||h,d=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 A(D){var O=Op[u.type](s,D);if(!O)return null;var M=Hk(u,c,O);if(M.useStyle(y.getItemStyle()),u.type==="cartesian2d")M.setShape("r",_);else M.setShape("cornerRadius",_);return x[D]=M,M}s.diff(l).add(function(D){var O=s.getItemModel(D),M=Op[u.type](s,D,O);if(!M)return;if(g)A(D);if(!s.hasValue(D)||!VC[u.type](M))return;var L=!1;if(v)L=BC[u.type](d,M);var B=zC[u.type](r,s,D,M,c,p,f.model,!1,m);if(h)B.forceLabelAnimation=!0;if(HC(B,s,D,O,M,r,c,u.type==="polar"),b)B.attr({shape:M});else if(h)UC(h,p,B,M,D,c,!1,!1);else $e(B,{shape:M},r,D);s.setItemGraphicEl(D,B),o.add(B),B.ignore=L}).update(function(D,O){var M=s.getItemModel(D),L=Op[u.type](s,D,M);if(!L)return;if(g){var B=void 0;if(S.length===0)B=A(O);else{if(B=S[O],B.useStyle(y.getItemStyle()),u.type==="cartesian2d")B.setShape("r",_);else B.setShape("cornerRadius",_);x[D]=B}var R=Op[u.type](s,D),F=qC(c,R,u);Ve(B,{shape:F},p,D)}var z=l.getItemGraphicEl(O);if(!s.hasValue(D)||!VC[u.type](L)){o.remove(z);return}var H=!1;if(v){if(H=BC[u.type](d,L),H)o.remove(z)}var Y=z&&(z.type==="sector"&&m||z.type==="sausage"&&!m);if(Y)z&&cn(z,r,O),z=null;if(!z)z=zC[u.type](r,s,D,L,c,p,f.model,!0,m);else Mo(z);if(h)z.forceLabelAnimation=!0;if(T){var q=z.getTextContent();if(q){var Q=Po(q);if(Q.prevValue!=null)Q.prevValue=Q.value}}else HC(z,s,D,M,L,r,c,u.type==="polar");if(b)z.attr({shape:L});else if(h)UC(h,p,z,L,D,c,!0,T);else Ve(z,{shape:L},r,D,null);s.setItemGraphicEl(D,z),z.ignore=H,o.add(z)}).remove(function(D){var O=l.getItemGraphicEl(D);O&&cn(O,r,D)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new we);C.removeAll();for(var E=0;E<x.length;++E)C.add(x[E]);o.add(C),this._backgroundEls=x,this._data=s},e.prototype._renderLarge=function(r,i,n){this._clear(),YC(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,i){this._removeBackground(),YC(i,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var i=r.get("clip",!0)&&tC(r.coordinateSystem,!1,r),n=this.group;if(i)n.setClipPath(i);else n.removeClipPath()},e.prototype._enableRealtimeSort=function(r,i,n){var a=this;if(!i.count())return;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==null?NaN:l,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){var a=n.scale,o=r.mapDimension(n.dim),s=Number.MAX_VALUE;for(var 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){var n=i.scale,a=n.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],n.getOrdinalMeta().categories.length-1);for(;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))return;var o=this._dataSort(r,n,i);if(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){if(this._onRendered)r.getZr().off("rendered",this._onRendered),this._onRendered=null},e.prototype._clear=function(r){var i=this.group,n=this._data;if(r&&r.isAnimationEnabled()&&n&&!this._isLargeDraw)this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){cn(a,r,xe(a).dataIndex)});else i.removeAll();this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=ki,e}(Lt),BC={cartesian2d:function(t,e){var r=e.width<0?-1:1,i=e.height<0?-1:1;if(r<0)e.x+=e.width,e.width=-e.width;if(i<0)e.y+=e.height,e.height=-e.height;var n=t.x+t.width,a=t.y+t.height,o=ig(e.x,t.x),s=ng(e.x+e.width,n),l=ig(e.y,t.y),u=ng(e.y+e.height,a),f=s<o,c=u<l;if(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;if(i<0)e.y+=e.height,e.height=-e.height;return 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=ng(e.r,t.r),a=ig(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}},zC={cartesian2d:function(t,e,r,i,n,a,o,s,l){var u=new De({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?rg:dr,f=new u({shape:i,z2:1});f.name="item";var c=XC(n);if(f.calculateTextPosition=RC(c,{isRoundCap:u===rg}),a){var p=f.shape,h=n?"r":"endAngle",v={};p[h]=n?i.r0:i.startAngle,v[h]=i[h],(s?Ve:$e)(f,{shape:v},a)}return f}};function Rk(t,e){var r=t.get("realtimeSort",!0),i=e.getBaseAxis();if(r){if(i.type!=="category")Ue("`realtimeSort` will not work because this bar series is not based on a category axis.");if(e.type!=="cartesian2d")Ue("`realtimeSort` will not work because this bar series is not on cartesian2d.")}if(r&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function UC(t,e,r,i,n,a,o,s){var l,u;if(a)u={x:i.x,width:i.width},l={y:i.y,height:i.height};else u={y:i.y,height:i.height},l={x:i.x,width:i.width};if(!s)(o?Ve:$e)(r,{shape:l},e,n,null);var f=e?t.baseAxis.model:null;(o?Ve:$e)(r,{shape:u},f,n)}function FC(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var kk=["x","y","width","height"],Bk=["cx","cy","r","startAngle","endAngle"],VC={cartesian2d:function(t){return!FC(t,kk)},polar:function(t){return!FC(t,Bk)}},Op={cartesian2d:function(t,e,r){var i=t.getItemLayout(e);if(!i)return null;var n=r?Uk(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 zk(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function XC(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 HC(t,e,r,i,n,a,o,s){var l=e.getItemVisual(r,"style");if(!s){var u=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}else if(!a.get("roundCap")){var f=t.shape,c=za(i.getModel("itemStyle"),f,!0);N(f,c),t.setShape(f)}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?Gk(n,a.coordinateSystem):Yk(n,a.coordinateSystem),v=Yt(i);oi(t,v,{labelFetcher:a,labelDataIndex:r,defaultText:ss(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var d=t.getTextContent();if(s&&d){var m=i.get(["label","position"]);t.textConfig.inside=m==="middle"?!0:null,kC(t,m==="outside"?h:m,XC(o),i.get(["label","rotate"]))}mS(d,v,a.getRawValue(r),function(y){return xp(e,y)});var g=i.getModel(["emphasis"]);if(Lr(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),oa(t,i),zk(n))t.style.fill="none",t.style.stroke="none",w(t.states,function(y){if(y.style)y.style.fill=y.style.stroke="none"})}function Uk(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 Fk=function(){function t(){}return t}(),GC=function(t){P(e,t);function e(r){var i=t.call(this,r)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new Fk},e.prototype.buildPath=function(r,i){var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth;for(var 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}(ie);function YC(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?h_(t):0;if(u){var c=new GC({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 GC({shape:{points:n.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});if(p.baseDimIdx=a,p.largeDataIndices=o,p.barWidth=s,e.add(p),p.useStyle(n.getVisual("style")),p.style.stroke=null,xe(p).seriesIndex=t.seriesIndex,!t.get("silent"))p.on("mousedown",WC),p.on("mousemove",WC);r&&r.push(p)}var WC=ml(function(t){var e=this,r=Vk(e,t.offsetX,t.offsetY);xe(e).dataIndex=r>=0?r:null},30,!1);function Vk(t,e,r){var i=t.baseDimIdx,n=1-i,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth;for(var 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];if(e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function qC(t,e,r){if(ls(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 Hk(t,e,r){var i=t.type==="polar"?dr:De;return new i({shape:qC(e,r,t),silent:!0,z2:0})}function Gk(t,e){if(t.height===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function Yk(t,e){if(t.width===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"left":"right"}return t.width>=0?"right":"left"}var ZC=Nk;function ag(t){t.registerChartView(ZC),t.registerSeriesModel(NC),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,MC(ki)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,OC(ki)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Fl(ki)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var i=e.componentType||"series";r.eachComponent({mainType:i,query:e},function(n){if(e.sortInfo)n.axis.setCategorySortInfo(e.sortInfo)})}),PC(t)}function og(t){return{seriesType:t,reset:function(e,r){var i=r.findComponents({mainType:"legend"});if(!i||!i.length)return;var n=e.getData();n.filterSelf(function(a){var o=n.getName(a);for(var s=0;s<i.length;s++)if(!i[s].isSelected(o))return!1;return!0})}}}function sg(t,e,r){e=k(e)&&{coordDimensions:e}||N({encodeDefine:t.getEncode()},e);var i=t.getSource(),n=Ml(i,e).dimensions,a=new xn(n,t);return a.initData(i,r),a}var Wk=function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var i=this._getDataWithEncodedVisual();return i.getItemVisual(e,r)},t}(),KC=Wk;var Fr="pie",Xk=ee(),jC=function(t){P(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){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new KC(me(this.getData,this),me(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return sg(this,{coordDimensions:["value"],encodeDefaulter:Ae(ZS,this)})},e.prototype.getDataParams=function(r){var i=this.getData(),n=Xk(i),a=n.seats;if(!a){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),a=n.seats=q0(o,i.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){Kn(r,"labelLine",["show"]);var i=r.labelLine,n=r.emphasis.labelLine;i.show=i.show&&r.label.show,n.show=n.show&&r.emphasis.label.show},e.type="series."+Fr,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1000,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(or);zS({fullType:jC.type,getCoord2:function(t){return t.getShallow("center")}});var QC=jC;var qk=Math.PI/180;function $C(t,e,r,i,n,a,o,s,l,u){if(t.length<2)return;function f(d){var m=d.rB,g=m*m;for(var y=0;y<d.list.length;y++){var _=d.list[y],x=Math.abs(_.label.y-r),S=i+_.len,b=S*S,T=Math.sqrt(Math.abs((1-x*x/g)*b)),A=e+(T+_.len2)*n,C=A-_.label.x,E=_.targetTextWidth-C*n;eA(_,E,!0),_.label.x=A}}function c(d){var m={list:[],maxY:0},g={list:[],maxY:0};for(var y=0;y<d.length;y++){if(d[y].labelAlignTo!=="none")continue;var _=d[y],x=_.label.y>r?g:m,S=Math.abs(_.label.y-r);if(S>=x.maxY){var b=_.label.x-e-_.len2*n,T=i+_.len,A=Math.abs(b)<T?Math.sqrt(S*S/(1-b*b/T/T)):T;x.rB=A,x.maxY=S}x.list.push(_)}f(m),f(g)}var p=t.length;for(var h=0;h<p;h++)if(t[h].position==="outer"&&t[h].labelAlignTo==="labelLine"){var v=t[h].label.x-u;t[h].linePoints[1][0]+=v,t[h].label.x=u}if(Yw(t,1,l,l+o))c(t)}function Zk(t,e,r,i,n,a,o,s){var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE;for(var p=0;p<t.length;p++){var h=t[p].label;if(lg(t[p]))continue;if(h.x<e)f=Math.min(f,h.x),l.push(t[p]);else c=Math.max(c,h.x),u.push(t[p])}for(var p=0;p<t.length;p++){var v=t[p];if(!lg(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var{label:h,linePoints:d}=v,m=void 0;if(v.labelAlignTo==="edge")if(h.x<e)m=d[2][0]-v.labelDistance-o-v.edgeDistance;else m=o+n-v.edgeDistance-d[2][0]-v.labelDistance;else if(v.labelAlignTo==="labelLine")if(h.x<e)m=f-o-v.bleedMargin;else m=o+n-c-v.bleedMargin;else if(h.x<e)m=h.x-o-v.bleedMargin;else m=o+n-h.x-v.bleedMargin;v.targetTextWidth=m,eA(v,m,!1)}}$C(u,e,r,i,1,n,a,o,s,c),$C(l,e,r,i,-1,n,a,o,s,f);for(var p=0;p<t.length;p++){var v=t[p];if(!lg(v)&&v.linePoints){var{label:h,linePoints:d}=v,g=v.labelAlignTo==="edge",y=h.style.padding,_=y?y[1]+y[3]:0,x=h.style.backgroundColor?0:_,S=v.rect.width+x,b=d[1][0]-d[2][0];if(g)if(h.x<e)d[2][0]=o+v.edgeDistance+S+v.labelDistance;else d[2][0]=o+n-v.edgeDistance-S-v.labelDistance;else{if(h.x<e)d[2][0]=h.x+v.labelDistance;else d[2][0]=h.x-v.labelDistance;d[1][0]=d[2][0]+b}d[1][1]=d[2][1]=h.y}}}function eA(t,e,r){if(t.labelStyleWidth!=null)return;var i=t.label,n=i.style,a=t.rect,{backgroundColor:o,padding:s}=n,l=s?s[1]+s[3]:0,u=n.overflow,f=a.width+(o?0:l);if(e<f||r){if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var c=i.getBoundingRect();i.setStyle("width",Math.ceil(c.width)),i.setStyle("backgroundColor",o)}else{var p=e-l,h=e<f?p:r?p>t.unconstrainedWidth?null:p:null;i.setStyle("width",h)}tA(a,i)}}function tA(t,e){JC.rect=t,Fm(JC,e,Kk)}var Kk={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},JC={};function lg(t){return t.position==="center"}function ug(t){var e=t.getData(),r=[],i,n,a=!1,o=(t.get("minShowLabelAngle")||0)*qk,s=e.getLayout("viewRect"),l=e.getLayout("r"),{width:u,x:f,y:c,height:p}=s;function h(b){b.ignore=!0}function v(b){if(!b.ignore)return!0;for(var T in b.states)if(b.states[T].ignore===!1)return!0;return!1}if(e.each(function(b){var T=e.getItemGraphicEl(b),A=T.shape,C=T.getTextContent(),E=T.getTextGuideLine(),D=e.getItemModel(b),O=D.getModel("label"),M=O.get("position")||D.get(["emphasis","label","position"]),L=O.get("distanceToLabelLine"),B=O.get("alignTo"),R=Ce(O.get("edgeDistance"),u),F=O.get("bleedMargin");if(F==null)F=Math.min(u,p)>200?10:2;var z=D.getModel("labelLine"),H=z.get("length");H=Ce(H,u);var Y=z.get("length2");if(Y=Ce(Y,u),Math.abs(A.endAngle-A.startAngle)<o){if(w(C.states,h),C.ignore=!0,E)w(E.states,h),E.ignore=!0;return}if(!v(C))return;var q=(A.startAngle+A.endAngle)/2,Q=Math.cos(q),J=Math.sin(q),j,ce,ye,We;i=A.cx,n=A.cy;var He=M==="inside"||M==="inner";if(M==="center")j=A.cx,ce=A.cy,We="center";else{var Te=(He?(A.r+A.r0)/2*Q:A.r*Q)+i,Me=(He?(A.r+A.r0)/2*J:A.r*J)+n;if(j=Te+Q*3,ce=Me+J*3,!He){var le=Te+Q*(H+l-A.r),Se=Me+J*(H+l-A.r),Rt=le+(Q<0?-1:1)*Y,Xe=Se;if(B==="edge")j=Q<0?f+R:f+u-R;else j=Rt+(Q<0?-L:L);ce=Xe,ye=[[Te,Me],[le,Se],[Rt,Xe]]}We=He?"center":B==="edge"?Q>0?"right":"left":Q>0?"left":"right"}var br=Math.PI,kt=0,Tr=O.get("rotate");if(se(Tr))kt=Tr*(br/180);else if(M==="center")kt=0;else if(Tr==="radial"||Tr===!0){var Ha=Q<0?-q+br:-q;kt=Ha}else if(Tr==="tangential"||Tr==="tangential-noflip"&&M!=="outside"&&M!=="outer"){var wr=Math.atan2(Q,J);if(wr<0)wr=br*2+wr;var iu=J>0;if(iu&&Tr!=="tangential-noflip")wr=br+wr;kt=wr-br}if(a=!!kt,C.x=j,C.y=ce,C.rotation=kt,C.setStyle({verticalAlign:"middle"}),!He){var Ga=new ae(0,0,0,0);tA(Ga,C),r.push({label:C,labelLine:E,position:M,len:H,len2:Y,minTurnAngle:z.get("minTurnAngle"),maxSurfaceAngle:z.get("maxSurfaceAngle"),surfaceNormal:new fe(Q,J),linePoints:ye,textAlign:We,labelDistance:L,labelAlignTo:B,edgeDistance:R,bleedMargin:F,rect:Ga,unconstrainedWidth:Ga.width,labelStyleWidth:C.style.width})}else{C.setStyle({align:We});var Jp=C.states.select;if(Jp)Jp.x+=C.x,Jp.y+=C.y}T.setTextConfig({inside:He})}),!a&&t.get("avoidLabelOverlap"))Zk(r,i,n,l,u,p,f,c);for(var d=0;d<r.length;d++){var m=r[d],{label:g,labelLine:y}=m,_=isNaN(g.x)||isNaN(g.y);if(g){if(g.setStyle({align:m.textAlign}),_)w(g.states,h),g.ignore=!0;var x=g.states.select;if(x)x.x+=g.x,x.y+=g.y}if(y){var S=m.linePoints;if(_||!S)w(y.states,h),y.ignore=!0;else Nw(S,m.minTurnAngle),Rw(S,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:S}),g.__hostTarget.textGuideLineConfig={anchor:new fe(S[0][0],S[0][1])}}}}var rA=Math.PI*2,Lp=Math.PI/180,iA=v_(Fr,jk);function jk(t,e){t.eachSeriesByType(Fr,function(r){var i=r.getData(),n=i.mapDimension("value"),a=HS(r,e),{cx:o,cy:s,r:l,r0:u,viewRect:f}=a,c=-r.get("startAngle")*Lp,p=r.get("endAngle"),h=r.get("padAngle")*Lp;p=p==="auto"?c-rA:-p*Lp;var v=r.get("minAngle")*Lp,d=v+h,m=0;i.each(n,function(R){!isNaN(R)&&m++});var g=i.getSum(n),y=Math.PI/(g||m)*2,_=r.get("clockwise"),x=r.get("roseType"),S=r.get("stillShowZeroSum"),b=i.getDataExtent(n);b[0]=0;var T=_?1:-1,A=[c,p],C=T*h/2;Dv(A,!_),c=A[0],p=A[1];var E=fg(r);E.startAngle=c,E.endAngle=p,E.clockwise=_,E.cx=o,E.cy=s,E.r=l,E.r0=u;var D=Math.abs(p-c),O=D,M=0,L=c;if(i.setLayout({viewRect:f,r:l}),i.each(n,function(R,F){var z;if(isNaN(R)){i.setItemLayout(F,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:u,r:x?NaN:l});return}if(x!=="area")z=g===0&&S?y:R*y;else z=D/m;if(z<d)z=d,O-=d;else M+=R;var H=L+T*z,Y=0,q=0;if(h>z)Y=L+T*z/2,q=Y;else Y=L+C,q=H-C;i.setItemLayout(F,{angle:z,startAngle:Y,endAngle:q,clockwise:_,cx:o,cy:s,r0:u,r:x?Ns(R,b,[u,l]):l}),L=H}),O<rA&&m)if(O<=0.001){var B=D/m;i.each(n,function(R,F){if(!isNaN(R)){var z=i.getItemLayout(F);z.angle=B;var H=0,Y=0;if(B<h)H=c+T*(F+0.5)*B,Y=H;else H=c+T*F*B+C,Y=c+T*(F+1)*B-C;z.startAngle=H,z.endAngle=Y}})}else y=O/M,L=c,i.each(n,function(R,F){if(!isNaN(R)){var z=i.getItemLayout(F),H=z.angle===d?d:R*y,Y=0,q=0;if(H<h)Y=L+T*H/2,q=Y;else Y=L+C,q=L+T*H-C;z.startAngle=Y,z.endAngle=q,L+=T*H}})})}var fg=ee();var Qk=function(t){P(e,t);function e(r,i,n){var a=t.call(this)||this;a.z2=2;var o=new Qe;return a.setTextContent(o),a.updateData(r,i,n,!0),a}return e.prototype.updateData=function(r,i,n,a){var o=this,s=r.hostModel,l=r.getItemModel(i),u=l.getModel("emphasis"),f=r.getItemLayout(i),c=N(za(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var p=s.getShallow("animationType");if(s.ecModel.ssr)$e(o,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),o.originX=c.cx,o.originY=c.cy;else if(p==="scale")o.shape.r=f.r0,$e(o,{shape:{r:f.r}},s,i);else if(n!=null)o.setShape({startAngle:n,endAngle:n}),$e(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,i);else o.shape.endAngle=f.startAngle,Ve(o,{shape:{endAngle:f.endAngle}},s,i)}else Mo(o),Ve(o,{shape:c},s,i);o.useStyle(r.getItemVisual(i,"style")),oa(o,l);var h=(f.startAngle+f.endAngle)/2,v=s.get("selectedOffset"),d=Math.cos(h)*v,m=Math.sin(h)*v,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,r,i),o.ensureState("emphasis").shape=N({r:f.r+(u.get("scale")?u.get("scaleSize")||0:0)},za(u.getModel("itemStyle"),f)),N(o.ensureState("select"),{x:d,y:m,shape:za(l.getModel(["select","itemStyle"]),f)}),N(o.ensureState("blur"),{shape:za(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&N(y.ensureState("select"),{x:d,y:m}),N(_.ensureState("select"),{x:d,y:m}),Lr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,i,n){var a=this,o=i.getItemModel(n),s=o.getModel("labelLine"),l=i.getItemVisual(n,"style"),u=l&&l.fill,f=l&&l.opacity;oi(a,Yt(o),{labelFetcher:i.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(n,"normal")||i.getName(n)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var p=o.get(["label","position"]);if(p!=="outside"&&p!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();if(!h)h=new fn,this.setTextGuideLine(h);kw(this,Bw(o),{stroke:u,opacity:bt(s.get(["lineStyle","opacity"]),f,1)})}},e}(dr),$k=function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Fr,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,i,n,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){var f=o.getItemLayout(0);for(var c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);if(f)u=f.startAngle}if(this._emptyCircleSector)l.remove(this._emptyCircleSector);if(o.count()===0&&r.get("showEmptyCircle")){var p=fg(r),h=new dr({shape:te(p)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}if(o.diff(s).add(function(v){var d=new Qk(o,v,u);o.setItemGraphicEl(v,d),l.add(d)}).update(function(v,d){var m=s.getItemGraphicEl(d);m.updateData(o,v,u),m.off("click"),l.add(m),o.setItemGraphicEl(v,m)}).remove(function(v){var d=s.getItemGraphicEl(v);cn(d,r,v)}).execute(),ug(r),r.get("animationTypeUpdate")!=="expansion")this._data=o},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,i){var n=i.getData(),a=n.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type=Fr,e}(Lt),nA=$k;function cg(t){return{seriesType:t,reset:function(e,r){var i=e.getData();i.filterSelf(function(n){var a=i.mapDimension("value"),o=i.get(a,n);if(se(o)&&!isNaN(o)&&o<0)return!1;return!0})}}}function pg(t){t.registerChartView(nA),t.registerSeriesModel(QC),fT(Fr,t.registerAction),t.registerLayout(iA),t.registerProcessor(og(Fr)),t.registerProcessor(cg(Fr))}var Pp=function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",mt).models[0]},e.type="cartesian2dAxis",e}(be);ht(Pp,$1);var aA={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:he.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:he.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:he.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[he.color.backgroundTint,he.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:he.color.neutral00,borderColor:he.color.border,borderWidth:1,borderType:[3,3],opacity:0.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},Jk=_e({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},aA),hg=_e({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:he.color.axisMinorSplitLine,width:1}}},aA),e2=_e({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},hg),t2=oe({logBase:10},hg),oA={category:Jk,value:hg,time:e2,log:t2};function Ip(t,e,r,i){w(op,function(n,a){var o=_e(_e({},oA[a],!0),i,!0),s=function(l){P(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=vn(this),h=p?dn(f):{},v=c.getTheme();if(_e(f,v.get(a+"Axis")),_e(f,this.getDefaultOption()),f.type=sA(f),p)Nr(f,h,p)},u.prototype.optionUpdated=function(){var f=this.option;if(f.type==="category")this.__ordinalMeta=Ol.createByAxisModel(this)},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category"){if(f)return c.data;return this.__ordinalMeta.categories}},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=Ra();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u}(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",sA)}function sA(t){return t.type||(t.data?"category":"value")}var r2=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(),Oe(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}(),lA=r2;var Wl=["x","y"];function uA(t){return(t.type==="interval"||t.type==="time")&&!gr(t)}var i2=function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Sr,r.dimensions=Wl,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!uA(r)||!uA(i))return;var n=Pa(r,null),a=Pa(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)return;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,v=this._transform=[f,0,0,c,p,h];this._invTransform=Gr([],v)},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 ae(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 dt(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 dt(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 ae(a,o,s,l)},e}(lA),fA=i2;function cA(t,e){var{scale:r,model:i}=t;I(r&&i&&(r instanceof ui||r instanceof Il)&&(e instanceof ui||e instanceof Il));var n=dp(r,i,i.ecModel,t,null),a=li(r),o=li(e)?e.intervalStub:e,s=a?r.intervalStub:r,l=r.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1;if(I(!gr(e)&&!gr(r)),I(c>0),I(f.length===u.length),I(u[0].value<=u[c].value),I(f[0].value<=u[0].value&&u[c].value<=f[c].value),c>=2)I(f[1].value===u[1].value),I(f[c-1].value===u[c-1].value);var p,h,v;if(c===1)p=h=0,v=1;else if(c===2){var d=Ie(u[0].value-u[1].value),m=Ie(u[1].value-u[2].value);if(p=h=0,d===m)v=2;else if(v=1,d<m)p=d/m;else h=m/d}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,v=c-(p?1:0)-(h?1:0)}I(v>=1);var y=n.zoomFixMM,_=y[0]||y[1],x=[n.fixMM[0]||_,n.fixMM[1]||_],S=r.getExtent(),b=s.getExtent(),T=tp(b,x),A,C,E,D,O,M;function L(Q){var J=50,j=0;for(;j<J;j++){if(Q())break;E=a?E*ve(l,2):M1(E),D=Br(E)}if(j>=J)Ue("incorrect impl in `scaleCalcAlign`.")}function B(){A=de(M-E*p,D)}function R(){C=de(O+E*h,D)}function F(){M=p?de(A+E*p,D):A}function z(){O=h?de(C-E*h,D):C}if(x[0]&&x[1]){A=T[0],C=T[1],E=(C-A)/(v+p+h);var H=t.getExtent(),Y=Ie(H[1]-H[0]);if(D=X0([C,A],Y,0.5/v),F(),z(),qe(D))E=de(E,D)}else{var q=T[1]-T[0];if(E=a?ve(Zu(q),1):qn(q/v,iv),D=Br(E),x[0])A=T[0],L(function(){if(F(),O=de(M+E*v,D),R(),C>=T[1])return!0});else if(x[1])C=T[1],L(function(){if(z(),M=de(O-E*v,D),B(),A<=T[0])return!0});else L(function(){M=de(ji(T[0]/E)*E,D),O=de(qr(T[1]/E)*E,D);var Q=er((O-M)/E);if(Q<=v){var J=v-Q,j=void 0,ce=n.incl0||a;if(ce&&T[0]===0)j=[0,J];else if(ce&&T[1]===0)j=[J,0];else{var ye=qr(J/2);j=J%2===0?[ye,ye]:A+C<T[0]+T[1]?[ye,ye+1]:[ye+1,ye]}if(M=de(M-E*j[0],D),O=de(O+E*j[1],D),B(),R(),A<=T[0]&&C>=T[1])return!0}})}up(r,x,b,[A,C],S,{interval:E,intervalCount:v,intervalPrecision:D,niceExtent:[M,O]}),r.freeze()}var pA=[[3,1],[0,2]],n2=function(){function t(e,r,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Wl,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){dw(o,cw);var s=o.scale;if(pt(s))s.setSortInfo(o.model.get("categorySortInfo"))});function n(o){var s=re(o),l=[];for(var u=s.length-1;u>=0;u--){var f=o[+s[u]];if(f.__alignTo)l.push(f);else km(f)}w(l,function(c){if(o2(c,c.__alignTo))km(c);else cA(c,c.__alignTo.scale)})}n(i.x),n(i.y);var a={};w(i.x,function(o){hA(i,"y",o,a)}),w(i.y,function(o){hA(i,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,i){var n=Dd(e,r),a=this._rect=_a(e.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(vg(o,a),!i){var u=l2(a,s,o,l,r),f=void 0;if(l)if(gA)gA(this._axesList,a),vg(o,a);else Ju("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.",!0),f=yA(a.clone(),"axisLabel",null,a,o,u,n);else{var c=u2(e,a,n),{outerBoundsRect:p,parsedOuterBoundsContain:h,outerBoundsClamp:v}=c;if(p)f=yA(p,h,v,a,o,u,n)}_A(a,o,Zt.determine,null,f,n),w(this._coordsList,function(d){d.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]}if(W(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",mt).models[0],n=e.yAxisModel||r&&r.getReferringComponents("yAxis",mt).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,ue(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;if(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 v="x"+c+"y"+h,d=new fA(v);d.master=n,d.model=e,n._coordsMap[v]=d,n._coordsList.push(d),d.addAxis(f),d.addAxis(p)})}),dA(s.x),dA(s.y);function u(f){return function(c,p){if(!a2(c,e))return;var h=c.get("position");if(f==="x"){if(h!=="top"&&h!=="bottom")h=o.bottom?"top":"bottom"}else if(h!=="left"&&h!=="right")h=o.left?"right":"left";o[h]=!0;var v=Y1(c),d=new Cp(f,W1(c,v,!0),[0,0],v,h);d.onBand=fp(d.scale,c),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=a,d.index=p,a._axesList.push(d),s[f][p]=d,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);ue(r,a)<0&&r.push(a),ue(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){vw(s,t.dimIdxMap)})}),e.eachSeries(function(n){var a,o;US({targetModel:n,coordSysType:Sr,coordSysProvider:s});function s(){var l=_C(n),{xAxisModel:u,yAxisModel:f}=l;a=u.axis,o=f.axis;var c=u.getCoordSysModel();if(!c)throw Error('Grid "'+bt(u.get("gridIndex"),u.get("gridId"),0)+'" not found');if(u.getCoordSysModel()!==f.getCoordSysModel())throw Error("xAxis and yAxis must use the same grid");var p=c.coordinateSystem;return p.getCartesian(u.componentIndex,f.componentIndex)}if(a&&o)Rm(a,n,Sr),Rm(o,n,Sr)},this),i},t.dimensions=Wl,t.dimIdxMap=Cl(Wl),t}();function a2(t,e){return t.getCoordSysModel()===e}function hA(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){if(vA(s,n[l]))a=n[l]}else for(var u in n)if(Be(n,u)&&vA(s,n[u])&&!i[f(n[u])]){a=n[u];break}if(a)i[f(a)]=!0;function f(c){return c.dim+"_"+c.index}}function vA(t,e){if(!e)return!1;var r=e.scale,i=X1(r,0,!1),n=e&&e.type!=="category"&&e.type!=="time"&&i!==sp;if(n&&t==="auto"&&Z1(e))n=!1;return n}function dA(t){var e=re(t),r,i=[];for(var n=e.length-1;n>=0;n--){var a=t[+e[n]];if(Jc(a.scale)&&Mm(a.model,a.type,!0)==null)if(a.model.get("alignTicks")&&a.model.get("interval")==null)i.push(a);else r=a}if(!r)r=i.pop();if(r)w(i,function(o){o.__alignTo=r})}function o2(t,e){return gr(t.scale)||gr(e.scale)||e.scale.getTicks().length<2}function s2(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 vg(t,e){w(t.x,function(r){return mA(r,e.x,e.width)}),w(t.y,function(r){return mA(r,e.y,e.height)})}function mA(t,e,r){var i=[0,r],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),s2(t,e)}var gA;function yA(t,e,r,i,n,a,o){I(e==="all"||e==="axisLabel"),_A(i,n,Zt.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(i,0,NaN),f(i,1,NaN);var l=_y(s,function(p){return p>0})==null;return Oo(i,s,!0,!0,r),vg(n,i),l;function u(p){w(n[ai[p]],function(h){if(!Ia(h.model))return;var v=a.ensureRecord(h.model),d=v.labelInfoList;if(d)for(var m=0;m<d.length;m++){var g=d[m],y=h.scale.normalize(Ii(h.scale,Dn(g.label).labelInfo.tick));y=p===1?1-y:y,f(g.rect,p,y),f(g.rect,1-p,NaN)}var _=v.nameLayout;if(_){var y=Sn(v.nameLocation)?0.5:NaN;f(_.rect,p,y),f(_.rect,1-p,NaN)}})}function f(p,h,v){var d=t[ai[h]]-p[ai[h]],m=p[pn[h]]+p[ai[h]]-(t[pn[h]]+t[ai[h]]);d=c(d,1-v),m=c(m,v);var g=pA[h][0],y=pA[h][1];s[g]=ve(s[g],d),s[y]=ve(s[y],m)}function c(p,h){if(p>0&&!Vr(h)&&h>0.0001)p/=h;return p}}function l2(t,e,r,i,n){var a=new jm(f2);return w(r,function(o){return w(o,function(s){if(Ia(s.model)){var l=!i;s.axisBuilder=xC(t,e,s.model,n,a,l)}})}),a}function _A(t,e,r,i,n,a){var o=r===Zt.determine;w(e,function(u){return w(u,function(f){if(Ia(f.model))SC(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[ai[1-u]]=t[pn[u]]<=a.refContainer[pn[u]]*0.5?0:1-u===1?2:1}w(e,function(u,f){return w(u,function(c){if(Ia(c.model)){if(i==="all"||o)c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]});if(o)c.axisBuilder.build({axisLine:!0})}})})}function u2(t,e,r){var i,n=t.get("outerBoundsMode",!0);if(n==="same")i=e.clone();else if(n==null||n==="auto")i=_a(t.get("outerBounds",!0)||eg,r.refContainer);else if(n!=="none")pe("Invalid grid["+t.componentIndex+"].outerBoundsMode.");var a=t.get("outerBoundsContain",!0),o;if(a==null||a==="auto")o="all";else if(ue(["all","axisLabel"],a)<0)pe("Invalid grid["+t.componentIndex+"].outerBoundsContain."),o="all";else o=a;var s=[qu(G(t.get("outerBoundsClampWidth",!0),Yl[0]),e.width),qu(G(t.get("outerBoundsClampHeight",!0),Yl[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var f2=function(t,e,r,i,n,a){var o=r.axis.dim==="x"?"y":"x";if(Qm(t,e,r,i,n,a),!Sn(t.nameLocation))w(e.recordMap[o],function(s){if(s&&s.labelInfoList&&s.dirVec)$m(s.labelInfoList,s.dirVec,i,n)})},xA=n2;function SA(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return c2(r,t,e),r.seriesInvolved&&h2(r,t),r}function c2(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=fs(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",i);if(w(s.getAxes(),Ae(d,!1,null)),s.getTooltipAxes&&i&&c.get("show")){var p=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(c.get(["axisPointer","axis"]));if(p||h)w(v.baseAxes,Ae(d,h?"cross":!0,p));if(h)w(v.otherAxes,Ae(d,"cross",!1))}function d(m,g,y){var _=y.model.getModel("axisPointer",n),x=_.get("show");if(!x||x==="auto"&&!m&&!mg(_))return;if(g==null)g=_.get("triggerTooltip");_=m?p2(y,c,n,e,m,g):_;var S=_.get("snap"),b=_.get("triggerEmphasis"),T=fs(y.model),A=g||S||y.type==="category",C=t.axesInfo[T]={key:T,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:b,involveSeries:A,snap:S,useHandle:mg(_),seriesModels:[],linkGroup:null};u[T]=C,t.seriesInvolved=t.seriesInvolved||A;var E=v2(a,y);if(E!=null){var D=o[E]||(o[E]={axesInfo:{}});D.axesInfo[T]=C,D.mapper=a[E].mapper,C.linkGroup=D}}})}function p2(t,e,r,i,n,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};if(w(s,function(p){l[p]=te(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!=null?f:!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&oe(u,c.textStyle)}}return t.model.getModel("axisPointer",new Re(l,r,i))}function h2(t,e){e.eachSeries(function(r){var i=r.coordinateSystem,n=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);if(!i||!i.model||n==="none"||n===!1||n==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1)return;w(t.coordSysAxesInfo[fs(i.model)],function(o){var s=o.axis;if(i.getAxis(s.dim)===s)o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count()})})}function v2(t,e){var{model:r,dim:i}=e;for(var n=0;n<t.length;n++){var a=t[n]||{};if(dg(a[i+"AxisId"],r.id)||dg(a[i+"AxisIndex"],r.componentIndex)||dg(a[i+"AxisName"],r.name))return n}}function dg(t,e){return t==="all"||k(t)&&ue(t,e)>=0||t===e}function bA(t){var e=Np(t);if(!e)return;var r=e.axisPointerModel,i=e.axis.scale,n=r.option,a=r.get("status"),o=r.get("value");if(o!=null)o=i.parse(o);var s=mg(r);if(a==null)n.status=s?"show":"hide";var l=i.getExtent();if(o==null||o>l[1])o=l[1];if(o<l[0])o=l[0];if(n.value=o,s)n.status=e.axis.scale.isBlank()?"hide":"show"}function Np(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[fs(t)]}function TA(t){var e=Np(t);return e&&e.axisPointerModel}function mg(t){return!!t.get(["handle","show"])}function fs(t){return t.type+"||"+t.id}var yg={},d2=function(t){P(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&&bA(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)return;var o=TA(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){if(yg[r])throw Error("axisPointer "+r+" exists");yg[r]=i},e.getAxisPointerClass=function(r){return r&&yg[r]},e.type="axis",e}(Ot),Rp=d2;var _g=ee();function wA(t,e,r,i){var n=r.axis;if(n.scale.isBlank())return;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)return;var f=s.length,c=_g(t).splitAreaColors,p=Z(),h=0;if(c)for(var v=0;v<u.length;v++){var d=c.get(u[v].tickValue);if(d!=null){h=(d+(f-1)*v)%f;break}}var m=n.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=k(s)?s:[s];for(var v=1;v<u.length;v++){var y=n.toGlobalCoord(u[v].coord),_=void 0,x=void 0,S=void 0,b=void 0;if(n.isHorizontal())_=m,x=l.y,S=y-_,b=l.height,m=_+S;else _=l.x,x=m,S=l.width,b=y-x,m=x+b;var T=u[v-1].tickValue;T!=null&&p.set(T,h),e.add(new De({anid:T!=null?"area_"+T:null,shape:{x:_,y:x,width:S,height:b},style:oe({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%f}_g(t).splitAreaColors=p}function CA(t){_g(t).splitAreaColors=null}var m2=["splitArea","splitLine","minorSplitLine","breakArea"],AA=function(t){P(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),!Ia(r))return;this._axisGroup.add(r.axis.axisBuilder.group),w(m2,function(l){if(r.get([l,"show"]))g2[l](this,this._axisGroup,r,r.getCoordSysModel(),n)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;if(!s)od(o,this._axisGroup,r);t.prototype.render.call(this,r,i,n,a)},e.prototype.remove=function(){CA(this)},e.type="cartesianAxis",e}(Rp),g2={splitLine:function(t,e,r,i,n){var a=r.axis;if(a.scale.isBlank())return;var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=k(l)?l:[l];var c=i.coordinateSystem.getRect(),p=a.isHorizontal(),h=0,v=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),d=[],m=[],g=s.getLineStyle();for(var y=0;y<v.length;y++){var _=a.toGlobalCoord(v[y].coord);if(y===0&&!u||y===v.length-1&&!f)continue;var x=v[y].tickValue;if(p)d[0]=_,d[1]=c.y,m[0]=_,m[1]=c.y+c.height;else d[0]=c.x,d[1]=_,m[0]=c.x+c.width,m[1]=_;var S=h++%l.length,b=new Ht({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:m[0],y2:m[1]},style:oe({stroke:l[S]},g),silent:!0});pa(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)return;var c=[],p=[],h=s.getLineStyle();for(var v=0;v<f.length;v++)for(var d=0;d<f[v].length;d++){var m=a.toGlobalCoord(f[v][d].coord);if(u)c[0]=m,c[1]=l.y,p[0]=m,p[1]=l.y+l.height;else c[0]=l.x,c[1]=m,p[0]=l.x+l.width,p[1]=m;var g=new Ht({anid:"minor_line_"+f[v][d].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:h,silent:!0});pa(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,r,i,n){wA(t,e,r,i)},breakArea:function(t,e,r,i,n){var a=Ra(),o=r.axis.scale;if(a&&o.type!=="ordinal")a.rectCoordBuildBreakAxis(e,t,r,i.coordinateSystem.getRect(),n)}},xg=function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e}(AA);var EA=function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=xg.type,r}return e.type="yAxis",e}(AA);var y2=function(t){P(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){if(this.group.removeAll(),r.get("show"))this.group.add(new De({shape:r.coordinateSystem.getRect(),style:oe({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Ot),DA={offset:0};function MA(t){t.registerComponentView(y2),t.registerComponentModel(EC),t.registerCoordinateSystem("cartesian2d",xA),Ip(t,"x",Pp,DA),Ip(t,"y",Pp,DA),t.registerComponentView(xg),t.registerComponentView(EA),t.registerPreprocessor(function(e){if(e.xAxis&&e.yAxis&&!e.grid)e.grid={}})}var OA=Ht.prototype,Sg=Co.prototype,LA=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Ej=function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(LA);function bg(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var _2=function(t){P(e,t);function e(r){var i=t.call(this,r)||this;return i.type="ec-line",i}return e.prototype.getDefaultStyle=function(){return{stroke:he.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new LA},e.prototype.buildPath=function(r,i){if(bg(i))OA.buildPath.call(this,r,i);else Sg.buildPath.call(this,r,i)},e.prototype.pointAt=function(r){if(bg(this.shape))return OA.pointAt.call(this,r);else return Sg.pointAt.call(this,r)},e.prototype.tangentAt=function(r){var i=this.shape,n=bg(i)?[i.x2-i.x1,i.y2-i.y1]:Sg.tangentAt.call(this,r);return ja(n,n)},e}(ie),PA=_2;var Tg=["fromSymbol","toSymbol"];function IA(t){return"_"+t+"Type"}function NA(t,e,r){var i=e.getItemVisual(r,t);if(!i||i==="none")return i;var n=e.getItemVisual(r,t+"Size"),a=e.getItemVisual(r,t+"Rotate"),o=e.getItemVisual(r,t+"Offset"),s=e.getItemVisual(r,t+"KeepAspect"),l=Sl(n),u=Da(o||0,l);return i+l+u+(a||"")+(s||"")}function RA(t,e,r){var i=e.getItemVisual(r,t);if(!i||i==="none")return;var n=e.getItemVisual(r,t+"Size"),a=e.getItemVisual(r,t+"Rotate"),o=e.getItemVisual(r,t+"Offset"),s=e.getItemVisual(r,t+"KeepAspect"),l=Sl(n),u=Da(o||0,l),f=Rr(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,f.name=t,f}function x2(t){var e=new PA({name:"line",subPixelOptimize:!0});return wg(e.shape,t),e}function wg(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var r=e[2];if(r)t.cpx1=r[0],t.cpy1=r[1];else t.cpx1=NaN,t.cpy1=NaN}var S2=function(t){P(e,t);function e(r,i,n){var a=t.call(this)||this;return a._createLine(r,i,n),a}return e.prototype._createLine=function(r,i,n){var a=r.hostModel,o=r.getItemLayout(i),s=r.getItemVisual(i,"z2"),l=x2(o);l.shape.percent=0,$e(l,{z2:G(s,0),shape:{percent:1}},a,i),this.add(l),w(Tg,function(u){var f=RA(u,r,i);this.add(f),this[IA(u)]=NA(u,r,i)},this),this._updateCommonStl(r,i,n)},e.prototype.updateData=function(r,i,n){var a=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(i),l={shape:{}};wg(l.shape,s),Ve(o,l,a,i),w(Tg,function(u){var f=NA(u,r,i),c=IA(u);if(this[c]!==f){this.remove(this.childOfName(u));var p=RA(u,r,i);this.add(p)}this[c]=f},this),this._updateCommonStl(r,i,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(r,i,n){var a=r.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,f=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,p=n&&n.focus,h=n&&n.blurScope;if(!n||r.hasItemOption){var v=r.getItemModel(i),d=v.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),c=d.get("disabled"),p=d.get("focus"),h=d.get("blurScope"),f=Yt(v)}var m=r.getItemVisual(i,"style"),g=m.stroke;o.useStyle(m),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,w(Tg,function(b){var T=this.childOfName(b);if(T){T.setColor(g),T.style.opacity=m.opacity;for(var A=0;A<lt.length;A++){var C=lt[A],E=o.getState(C);if(E){var D=E.style||{},O=T.ensureState(C),M=O.style||(O.style={});if(D.stroke!=null)M[T.__isEmptyBrush?"stroke":"fill"]=D.stroke;if(D.opacity!=null)M.opacity=D.opacity}}T.markRedraw()}},this);var y=a.getRawValue(i);oi(this,f,{labelDataIndex:i,labelFetcher:{getFormattedLabel:function(b,T){return a.getFormattedLabel(b,T,r.dataType)}},inheritColor:g||he.color.neutral99,defaultOpacity:m.opacity,defaultText:(y==null?r.getName(i):isFinite(y)?de(y,10):y)+""});var _=this.getTextContent();if(_){var x=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=x.get("position")||"middle";var S=x.get("distance");if(!k(S))S=[S,S];_.__labelDistance=S}this.setTextConfig({position:null,local:!0,inside:!1}),Lr(this,p,h,c)},e.prototype.highlight=function(){Ti(this)},e.prototype.downplay=function(){wi(this)},e.prototype.updateLayout=function(r,i){this.childOfName("line").stopAnimation(),this.setLinePoints(r.getItemLayout(i))},e.prototype.setLinePoints=function(r){var i=this.childOfName("line");wg(i.shape,r),i.dirty()},e.prototype.beforeUpdate=function(){var r=this,i=r.childOfName("fromSymbol"),n=r.childOfName("toSymbol"),a=r.getTextContent();if(!i&&!n&&(!a||a.ignore))return;var o=1,s=this.parent;while(s){if(s.scaleX)o/=s.scaleX;s=s.parent}var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),c=l.pointAt(u),p=fu([],c,f);ja(p,p);function h(E,D){var O=E.__specifiedRotation;if(O==null){var M=l.tangentAt(D);E.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(M[1],M[0]))}else E.attr("rotation",O)}if(i)i.setPosition(f),h(i,0),i.scaleX=i.scaleY=o*u,i.markRedraw();if(n)n.setPosition(c),h(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw();if(a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var v=void 0,d=void 0,m=a.__labelDistance,g=m[0]*o,y=m[1]*o,_=u/2,x=l.tangentAt(_),S=[x[1],-x[0]],b=l.pointAt(_);if(S[1]>0)S[0]=-S[0],S[1]=-S[1];var T=x[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var A=-Math.atan2(x[1],x[0]);if(c[0]<f[0])A=Math.PI+A;a.rotation=A}var C=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-y,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=y,d="top";break;default:C=0,d="middle"}switch(a.__position){case"end":a.x=p[0]*g+c[0],a.y=p[1]*y+c[1],v=p[0]>0.8?"left":p[0]<-0.8?"right":"center",d=p[1]>0.8?"top":p[1]<-0.8?"bottom":"middle";break;case"start":a.x=-p[0]*g+f[0],a.y=-p[1]*y+f[1],v=p[0]>0.8?"right":p[0]<-0.8?"left":"center",d=p[1]>0.8?"bottom":p[1]<-0.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=g*T+f[0],a.y=f[1]+C,v=x[0]<0?"right":"left",a.originX=-g*T,a.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=b[0],a.y=b[1]+C,v="center",a.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-g*T+c[0],a.y=c[1]+C,v=x[0]>=0?"right":"left",a.originX=g*T,a.originY=-C;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||d,align:a.__align||v})}},e}(we),kA=S2;var b2=function(){function t(e){this.group=new we,this._LineCtor=e||kA}return t.prototype.updateData=function(e){var r=this;this._progressiveEls=null;var i=this,{group:n,_lineData:a}=i;if(i._lineData=e,!a)n.removeAll();var o=BA(e);e.diff(a).add(function(s){r._doAdd(e,s,o)}).update(function(s,l){r._doUpdate(a,e,l,s,o)}).remove(function(s){n.remove(a.getItemGraphicEl(s))}).execute()},t.prototype.updateLayout=function(){var e=this._lineData;if(!e)return;e.eachItemGraphicEl(function(r,i){r.updateLayout(e,i)},this)},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=BA(e),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,i){this._progressiveEls=[];function n(l){if(!l.isGroup&&!T2(l))l.incremental=i,l.ensureState("emphasis").hoverLayer=ca}for(var a=e.start;a<e.end;a++){var o=r.getItemLayout(a);if(Cg(o)){var s=new this._LineCtor(r,a,this._seriesScope);s.traverse(n),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(e){Ci(this._progressiveEls||this.group,e)},t.prototype._doAdd=function(e,r,i){var n=e.getItemLayout(r);if(!Cg(n))return;var a=new this._LineCtor(e,r,i);e.setItemGraphicEl(r,a),this.group.add(a)},t.prototype._doUpdate=function(e,r,i,n,a){var o=e.getItemGraphicEl(i);if(!Cg(r.getItemLayout(n))){this.group.remove(o);return}if(!o)o=new this._LineCtor(r,n,a);else o.updateData(r,n,a);r.setItemGraphicEl(n,o),this.group.add(o)},t}();function T2(t){return t.animators&&t.animators.length>0}function BA(t){var e=t.hostModel,r=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:Yt(e)}}function zA(t){return isNaN(t[0])||isNaN(t[1])}function Cg(t){return t&&!zA(t[0])&&!zA(t[1])}var UA=b2;var Ua=ee(),FA=te,Ag=me,w2=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)return;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;if(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=Ae(VA,r,c);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,r)}GA(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&&zr(n).w>s)return!0;if(o){var l=Np(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=Ua(e).pointerEl=new ft[a.type](FA(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,i,n){if(r.label){var a=Ua(e).labelEl=new Qe(FA(r.label));e.add(a),HA(a,n)}},t.prototype.updatePointerEl=function(e,r,i){var n=Ua(e).pointerEl;if(n&&r.pointer)n.setStyle(r.pointer.style),i(n,{shape:r.pointer.shape})},t.prototype.updateLabelEl=function(e,r,i,n){var a=Ua(e).labelEl;if(a)a.setStyle(r.label.style),i(a,{x:r.label.x,y:r.label.y}),HA(a,n)},t.prototype._renderHandle=function(e){if(this._dragging||!this.updateHandleTransform)return;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;if(!this._handle)s=!0,n=this._handle=kf(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){yu(u.event)},onmousedown:Ag(this._onHandleDragMove,this,0,0),drift:Ag(this._onHandleDragMove,this),ondragend:Ag(this._onHandleDragEnd,this)}),i.add(n);GA(n,r,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");if(!k(l))l=[l,l];n.scaleX=l[0]/2,n.scaleY=l[1]/2,Oc(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)},t.prototype._moveHandleToValue=function(e,r){VA(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Eg(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var i=this._handle;if(!i)return;this._dragging=!0;var n=this.updateHandleTransform(Eg(i),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Eg(n)),Ua(i).lastProp=null,this._doDispatchAxisPointer()},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(!e)return;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)return;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;if(r&&i)this._lastGraphicKey=null,i&&r.remove(i),n&&r.remove(n),this._group=null,this._handle=null,this._payloadInfo=null;gl(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 VA(t,e,r,i){if(!YA(Ua(r).lastProp,i))Ua(r).lastProp=i,e?Ve(r,i,t):(r.stopAnimation(),r.attr(i))}function YA(t,e){if(W(t)&&W(e)){var r=!0;return w(e,function(i,n){r=r&&YA(t[n],i)}),!!r}else return t===e}function HA(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Eg(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function GA(t,e,r){var i=e.get("z"),n=e.get("zlevel");t&&t.traverse(function(a){if(a.type!=="group")i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=r})}var WA=w2;function XA(t){var e=t.get("type"),r=t.getModel(e+"Style"),i;if(e==="line")i=r.getLineStyle(),i.fill=null;else if(e==="shadow")i=r.getAreaStyle(),i.stroke=null;return i}function C2(t,e,r,i,n){var a=r.get("value"),o=Dg(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=ko(s.get("padding")||0),u=s.getFont(),f=Gu(o,u),c=n.position,p=f.width+l[1]+l[3],h=f.height+l[0]+l[2],v=n.align;v==="right"&&(c[0]-=p),v==="center"&&(c[0]-=p/2);var d=n.verticalAlign;d==="bottom"&&(c[1]-=h),d==="middle"&&(c[1]-=h/2),A2(c,p,h,i);var m=s.get("backgroundColor");if(!m||m==="auto")m=e.get(["axisLine","lineStyle","color"]);t.label={x:c[0],y:c[1],style:ha(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function A2(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 Dg(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:ns(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};if(w(i,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),V(o))a=o.replace("{value}",a);else if(X(o))a=o(s)}return a}function Mg(t,e,r){var i=Dt();return $a(i,i,r.rotation),ds(i,i,r.position),Rf([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],i)}function qA(t,e,r,i,n,a){var o=Ep.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get(["label","margin"]),C2(e,i,n,a,{position:Mg(i.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function ZA(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function KA(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function jA(t,e,r){return zr(t,{fromStat:{sers:U(e,function(i){return r.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function QA(t,e,r){return[ve(Ge(e[0],e[1]),t-r/2),Ge(t+r/2,ve(e[0],e[1]))]}var E2=function(t){P(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=JA(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var h=XA(a),v=D2[u](s,p,f,c,a.get("seriesDataIndices"),a.ecModel);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=Hl(l.getRect(),n);qA(i,r,d,n,a,o)},e.prototype.getHandleTransform=function(r,i,n){var a=Hl(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=Mg(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=JA(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=i[f],c[f]=Ge(l[1],c[f]),c[f]=ve(l[0],c[f]);var p=(u[1]+u[0])/2,h=[p,p];h[f]=c[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[f]}},e}(WA);function JA(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var D2={line:function(t,e,r,i){var n=ZA([e,i[0]],[e,i[1]],eE(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r,i,n,a){var o=jA(t,n,a),s=i[1]-i[0],l=QA(e,r,o),u=l[0],f=l[1];return{type:"Rect",shape:KA([u,i[0]],[f-u,s],eE(t))}}};function eE(t){return t.dim==="x"?0:1}var tE=E2;var M2=function(t){P(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:he.color.border,width:1,type:"dashed"},shadowStyle:{color:he.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:he.color.neutral00,padding:[5,7,5,7],backgroundColor:he.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:he.color.accent40,throttle:40}},e}(be),rE=M2;var Bi=ee(),O2=w;function kp(t,e,r){if(ne.node)return;var i=e.getZr();Bi(i).records||(Bi(i).records={}),L2(i,e);var n=Bi(i).records[t]||(Bi(i).records[t]={});n.handler=r}function L2(t,e){if(Bi(t).initialized)return;Bi(t).initialized=!0,r("click",Ae(Og,"click")),r("mousemove",Ae(Og,"mousemove")),r("mousewheel",Ae(Og,"mousewheel")),r("globalout",I2);function r(i,n){t.on(i,function(a){var o=N2(e);O2(Bi(t).records,function(s){s&&n(s,a,o.dispatchAction)}),P2(o.pendings,e)})}}function P2(t,e){var r=t.showTip.length,i=t.hideTip.length,n;if(r)n=t.showTip[r-1];else if(i)n=t.hideTip[i-1];if(n)n.dispatchAction=null,e.dispatchAction(n)}function I2(t,e,r){t.handler("leave",null,r)}function Og(t,e,r,i){e.handler(t,r,i)}function N2(t){var e={showTip:[],hideTip:[]},r=function(i){var n=e[i.type];if(n)n.push(i);else i.dispatchAction=r,t.dispatchAction(i)};return{dispatchAction:r,pendings:e}}function Xl(t,e){if(ne.node)return;var r=e.getZr(),i=(Bi(r).records||{})[t];if(i)Bi(r).records[t]=null}var R2=function(t){P(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";kp("axisPointer",n,function(s,l,u){if(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){Xl("axisPointer",i)},e.prototype.dispose=function(r,i){Xl("axisPointer",i)},e.type="axisPointer",e}(Ot),nE=R2;function ql(t,e){var r=[],i=t.seriesIndex,n;if(i==null||!(n=e.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=cr(a,t);if(o==null||o<0||k(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,v=a.mapDimension(p),d=[];d[h]=a.get(v,o),d[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(d)||[]}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 aE=ee();function Lg(t,e,r){var i=t.currTrigger,n=[t.x,t.y],a=t,o=t.dispatchAction||me(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(!s)return;if(Bp(n))n=ql({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point;var l=Bp(n),u=a.axesInfo,f=s.axesInfo,c=i==="leave"||Bp(n),p={},h={},v={list:[],map:{}},d={showPointer:Ae(B2,h),showTooltip:Ae(z2,v)};w(s.coordSysMap,function(g,y){var _=l||g.containPoint(n);w(s.coordSysAxesInfo[y],function(x,S){var b=x.axis,T=H2(u,x);if(!c&&_&&(!u||T)){var A=T&&T.value;if(A==null&&!l)A=b.pointToData(n);A!=null&&oE(x,A,d,!1,p)}})});var m={};return w(f,function(g,y){var _=g.linkGroup;if(_&&!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,sE(x),sE(g)))),m[g.key]=T}})}),w(m,function(g,y){oE(f[y],g,d,!0,p)}),U2(h,f,p),F2(v,n,t,o),V2(f,o,r),p}function oE(t,e,r,i,n){var a=t.axis;if(a.scale.isBlank()||!a.containData(e))return;if(!t.involveSeries){r.showPointer(t,e);return}var o=k2(e,t),{payloadBatch:s,snapToValue:l}=o;if(s[0]&&n.seriesIndex==null)N(n,s[0]);if(!i&&t.snap){if(a.containData(l)&&l!=null)e=l}r.showPointer(t,e,s),r.showTooltip(t,o,l)}function k2(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"?0.5:null),!p.length)return;c=l.getData().get(f[0],p[0])}if(!qe(c))return;var v=t-c,d=Math.abs(v);if(d<=o){if(d<o||v>=0&&s<0)o=d,s=v,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 B2(t,e,r,i){t[e.key]={value:r,payloadBatch:i}}function z2(t,e,r,i){var n=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!e.triggerTooltip||!n.length)return;var l=e.coordSys.model,u=fs(l),f=t.map[u];if(!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 U2(t,e,r){var i=r.axesInfo=[];w(e,function(n,a){var o=n.axisPointerModel.option,s=t[a];if(s)!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice();else!n.useHandle&&(o.status="hide");o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function F2(t,e,r,i){if(Bp(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 V2(t,e,r){var i=r.getZr(),n="axisPointerLastHighlights",a=aE(i)[n]||{},o=aE(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 H2(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 sE(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 Bp(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function zp(t){Rp.registerAxisPointerClass("CartesianAxisPointer",tE),t.registerComponentModel(rE),t.registerComponentView(nE),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;if(r&&!k(r))e.axisPointer.link=[r]}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=SA(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Lg)}function Pg(t){Ni(MA),Ni(zp)}var G2=function(t){P(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:0.4,displayTransition:!0,enterable:!1,backgroundColor:he.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:he.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:he.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:he.color.tertiary,fontSize:14}},e}(be),lE=G2;function Up(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function uE(t){if(!ne.domSupported)return;var e=document.documentElement.style;for(var r=0,i=t.length;r<i;r++)if(t[r]in e)return t[r]}var Ig=uE(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),fE=uE(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Ng(t,e){if(!t)return e;e=rc(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function cE(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}var Y2=Ng(fE,"transition"),Rg=Ng(Ig,"transform"),W2="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ne.transform3dSupported?"will-change:transform;":"");function X2(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function q2(t,e,r){if(!V(r)||r==="inside")return"";var i=t.get("backgroundColor"),n=t.get("borderWidth");e=Ir(e);var a=X2(r),o=Math.max(Math.round(n)*1.5,6),s="",l=Rg+":",u;if(ue(["left","right"],a)>-1)s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)";else 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 v=e+" solid "+n+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+i+";"];return'<div style="'+d.join("")+'"></div>'}function Z2(t,e,r){var i="cubic-bezier(0.23,1,0.32,1)",n="",a="";if(r)n=" "+t/2+"s "+i,a="opacity"+n+",visibility"+n;if(!e)n=" "+t+"s "+i,a+=(a.length?",":"")+(ne.transformSupported?""+Rg+n:",left"+n+",top"+n);return Y2+":"+a}function pE(t,e,r){var i=t.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!ne.transformSupported)return r?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=ne.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return r?"top:0;left:0;"+Rg+":"+o+";":[["top",0],["left",0],[Ig,o]]}function K2(t){var e=[],r=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var n=G(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 j2(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=Cc(t,"html"),h=u+"px "+f+"px "+s+"px "+l;if(n.push("box-shadow:"+h),e&&a>0&&n.push(Z2(a,r,i)),o)n.push("background-color:"+o);if(w(["width","color","radius"],function(v){var d="border-"+v,m=rc(d),g=t.get(m);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(K2(c)),p!=null)n.push("padding:"+ko(p).join("px ")+"px");return n.join(";")+";"}function hE(t,e,r,i,n){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();if(o)Ay(t,o,r,i,n)}else{t[0]=i,t[1]=n;var s=a&&a.getViewportRootOffset();if(s)t[0]+=s.offsetLeft,t[1]+=s.offsetTop}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var Q2=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,ne.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&&(V(a)?document.querySelector(a):Ui(a)?a:X(a)&&a(e.getDom()));hE(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(){if(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();zt(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){if(s._inContent=!1,s._enterable){if(s._show)s.hideLater(s._hideDelay)}}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),i=cE(r,"position"),n=r.style;if(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;if(!i.innerHTML)n.display="none";else n.cssText=W2+j2(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+pE(a[0],a[1],!0)+("border-color:"+Ir(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"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(V(a)&&i.get("trigger")==="item"&&!Up(i))s=q2(i,n,a);if(V(e))o.innerHTML=e+s;else if(e){if(o.innerHTML="",!k(e))e=[e];for(var l=0;l<e.length;l++)if(Ui(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)return;var i=this._styleCoord;if(hE(i,this._zr,this._container,e,r),i[0]!=null&&i[1]!=null){var n=this.el.style,a=pE(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;if(this._enableDisplayTransition)r.visibility="hidden",r.opacity="0";else r.display="none";ne.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){if(this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent)if(e)this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(me(this.hide,this),e);else this.hide()},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;Ey(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}(),vE=Q2;var $2=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),mE(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(){if(this._hideTimeout)clearTimeout(this._hideTimeout);this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,i,n,a){var o=this;if(W(e))st("Passing DOM nodes as content is not supported in richText tooltip!");if(this.el)this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new Qe({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Cc(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(){if(l._enterable)clearTimeout(l._hideTimeout),l._show=!0;l._inContent=!0}),this.el.on("mouseout",function(){if(l._enterable){if(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=dE(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;mE(n,this._zr,e,r),e=n[0],r=n[1];var a=i.style,o=Mn(a.borderWidth||0),s=dE(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(){if(this.el)this.el.hide();this._show=!1},t.prototype.hideLater=function(e){if(this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent)if(e)this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(me(this.hide,this),e);else this.hide()},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function Mn(t){return Math.max(0,t)}function dE(t){var e=Mn(t.shadowBlur||0),r=Mn(t.shadowOffsetX||0),i=Mn(t.shadowOffsetY||0);return{left:Mn(e-r),right:Mn(e+r),top:Mn(e-i),bottom:Mn(e+i)}}function mE(t,e,r,i){t[0]=r,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var gE=$2;var J2=new De({shape:{x:-1,y:-1,width:2,height:2}}),eB=function(t){P(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(ne.node||!i.getDom())return;var n=r.getComponent("tooltip"),a=this._renderMode=s_(n.get("renderMode"));this._tooltipContent=a==="richText"?new gE(i):new vE(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})},e.prototype.render=function(r,i,n){if(ne.node||!n.getDom())return;this.group.removeAll(),this._tooltipModel=r,this._ecModel=i,this._api=n;var a=this._tooltipContent;if(a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration"))Oc(this,"_updatePosition",50,"fixRate");else gl(this,"_updatePosition")},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,i=r.get("triggerOn");kp("itemTooltip",this._api,me(function(n,a,o){if(i!=="none"){if(i.indexOf(n)>=0)this._tryShow(a,o);else if(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;if(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||ne.node||!n.getDom())return;var o=yE(a,n);this._ticket="";var s=a.dataByCoordSys,l=nB(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=J2;f.x=a.x,f.y=a.y,f.update(),xe(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=ql(a,i),p=c.point[0],h=c.point[1];if(p!=null&&h!=null)this._tryShow({offsetX:p,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else if(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;if(this._tooltipModel)o.hideLater(this._tooltipModel.get("hideDelay"));if(this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid)this._hide(yE(a,n))},e.prototype._manuallyAxisShowTip=function(r,i,n,a){var{seriesIndex:o,dataIndex:s}=a,l=i.getComponent("axisPointer").coordSysAxesInfo;if(o==null||s==null||l==null)return;var u=i.getSeriesByIndex(o);if(!u)return;var f=u.getData(),c=Zl([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")!=="axis")return;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)return;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=xe(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;if(Aa(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;if(l||u)return;if(xe(f).dataIndex!=null)l=f;else if(xe(f).tooltipConfig!=null)u=f},!0),l)this._showSeriesItemTooltip(r,l,i);else if(u)this._showComponentItemTooltip(r,u,i);else 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=me(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=Zl([i.tooltipOption],a),l=this._renderMode,u=[],f=si("section",{blocks:[],noHeader:!0}),c=[],p=new Ac;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)return;var A=Dg(S,b,n,_.seriesDataIndices,_.valueLabelOpt),C=si("section",{header:A,noHeader:!vt(A),sortBlocks:!0,blocks:[]});f.blocks.push(C),w(_.seriesDataIndices,function(E){var D=n.getSeriesByIndex(E.seriesIndex),O=E.dataIndexInside,M=D.getDataParams(O);if(M.dataIndex<0)return;M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=ns(x.axis,{value:T}),M.axisValueLabel=A,M.marker=p.makeTooltipMarker("item",Ir(M.color),l);var L=Ud(D.formatTooltip(O,!0,null)),B=L.frag;if(B){var R=Zl([D],a).get("valueFormatter");C.blocks.push(R?N({valueFormatter:R},B):B)}if(L.text)c.push(L.text);u.push(M)})})}),f.blocks.reverse(),c.reverse();var h=i.position,v=s.get("order"),d=Wd(f,p,l,v,n.get("useUTC"),s.get("textStyle"));d&&c.unshift(d);var m=l==="richText"?`
|
|
41
|
+
`];function si(t,e){return e.type=t,e}function Wd(t){return t.type==="section"}function Rb(t){return Wd(t)?oI:sI}function kb(t){if(Wd(t)){var e=0,r=t.blocks.length,i=r>1||r>0&&!t.noHeader;return w(t.blocks,function(n){var a=kb(n);if(a>=e)e=a+ +(i&&(!a||Wd(n)&&!n.noHeader))}),e}return 0}function oI(t,e,r,i){var n=e.noHeader,a=lI(kb(e)),o=[],s=e.blocks||[];I(!s||k(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Be(u,l)){var f=new wb(u[l],null);s.sort(function(d,m){return f.evaluate(d.sortParam,m.sortParam)})}else if(l==="seriesDesc")s.reverse()}w(s,function(d,m){var g=e.valueFormatter,y=Rb(d)(g?N(N({},t),{valueFormatter:g}):t,d,m>0?a.html:0,i);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(a.richText):Xd(i,o.join(""),n?r:a.html);if(n)return c;var p=ac(e.header,"ordinal",t.useUTC),h=Nb(i,t.renderMode).nameStyle,v=Ib(i);if(t.renderMode==="richText")return Bb(t,p,h)+a.richText+c;else return Xd(i,'<div style="'+h+";"+v+';">'+it(p)+"</div>"+c,r)}function sI(t,e,r,i){var n=t.renderMode,{noName:a,noValue:o}=e,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(x){return x=k(x)?x:[x],U(x,function(S,b){return ac(S,k(h)?h[b]:h,u)})};if(a&&o)return;var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||he.color.secondary,n),p=a?"":ac(l,"ordinal",u),h=e.valueType,v=o?[]:f(e.value,e.rawDataIndex),d=!s||!a,m=!s&&a,g=Nb(i,n),{nameStyle:y,valueStyle:_}=g;return n==="richText"?(s?"":c)+(a?"":Bb(t,p,y))+(o?"":cI(t,v,d,m,_)):Xd(i,(s?"":c)+(a?"":uI(p,!s,y))+(o?"":fI(v,d,m,_)),r)}function qd(t,e,r,i,n,a){if(!t)return;var o=Rb(t),s={useUTC:n,renderMode:r,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}function lI(t){return{html:nI[t],richText:aI[t]}}function Xd(t,e,r){var i='<div style="clear:both"></div>',n="margin: "+r+"px 0 0",a=Ib(t);return'<div style="'+n+";"+a+';">'+e+i+"</div>"}function uI(t,e,r){var i=e?"margin-left:2px":"";return'<span style="'+r+";"+i+'">'+it(t)+"</span>"}function fI(t,e,r,i){var n=r?"10px":"20px",a=e?"float:right;margin-left:"+n:"";return t=k(t)?t:[t],'<span style="'+a+";"+i+'">'+U(t,function(o){return it(o)}).join(" ")+"</span>"}function Bb(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function cI(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(k(e)?e.join(" "):e,a)}function zb(t,e){var r=t.getData().getItemVisual(e,"style"),i=r[t.visualDrawType];return Ir(i)}function Ec(t,e){var r=t.get("padding");return r!=null?r:e==="richText"?[8,10]:10}var Dc=function(){function t(){this.richTextStyles={},this._nextStyleNameId=zs()}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=zS({color:r,type:e,renderMode:i,markerId:n});if(V(a))return a;else return I(n),this.richTextStyles[n]=a.style,a.content},t.prototype.wrapRichTextStyle=function(e,r){var i={};if(k(r))w(r,function(a){return N(i,a)});else N(i,r);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+e+"}"},t}();function Ub(t){var{series:e,dataIndex:r,multipleSeries:i}=t,n=e.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=k(s),u=zb(e,r),f,c,p,h;if(o>1||l&&!o){var v=pI(s,e,r,a,u);f=v.inlineValues,c=v.inlineValueTypes,p=v.blocks,h=v.inlineValues[0]}else if(o){var d=n.getDimensionInfo(a[0]);h=f=Mi(n,r,a[0]),c=d.type}else h=f=l?s[0]:s;var m=rf(e),g=m&&e.name||"",y=n.getName(r),_=i?g:y;return si("section",{header:g,noHeader:i||!m,sortParam:h,blocks:[si("nameValue",{markerType:"item",markerColor:u,name:_,noName:!vt(_),value:f,valueType:c,rawDataIndex:n.getRawIndex(r)})].concat(p||[])})}function pI(t,e,r,i,n){var a=e.getData(),o=$t(t,function(c,p,h){var v=a.getDimensionInfo(h);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];i.length?w(i,function(c){f(Mi(a,r,c),c)}):w(t,f);function f(c,p){var h=a.getDimensionInfo(p);if(!h||h.otherDims.tooltip===!1)return;if(o)u.push(si("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:c,valueType:h.type}));else s.push(c),l.push(h.type)}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var yn=ee();function Mc(t,e){return t.getName(e)||t.getId(e)}var hI="__universalTransitionEnabled",Oc=function(t){P(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=gn({count:dI,reset:mI}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);var a=yn(this).sourceManager=new Pb(this);a.prepareSource();var o=this.getInitialData(r,n);Vb(o,this),this.dataTask.context.data=o,I(o,"getInitialData returned invalid data."),yn(this).dataBeforeProcessed=o,Fb(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=dn(this),a=n?mn(r):{},o=this.subType;if(be.hasClass(o))o+="Series";if(_e(r,i.getTheme().get(this.subType)),_e(r,this.getDefaultOption()),jn(r,"label",["show"]),this.fillDataTextStyle(r.data),n)Nr(r,a,n)},e.prototype.mergeOption=function(r,i){r=_e(this.option,r,!0),this.fillDataTextStyle(r.data);var n=dn(this);if(n)Nr(this.option,r,n);var a=yn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,i);Vb(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,yn(this).dataBeforeProcessed=o,Fb(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!ke(r)){var i=["show"];for(var n=0;n<r.length;n++)if(r[n]&&r[n].label)jn(r[n],"label",i)}},e.prototype.getInitialData=function(r,i){return},e.prototype.appendData=function(r){var i=this.getRawData();i.appendData(r.data)},e.prototype.getData=function(r){var i=Zd(this);if(i){var n=i.context.data;return r==null||!n.getLinkedData?n:n.getLinkedData(r)}else return yn(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=Zd(this);if(i){var n=i.context;if(n.outputData=r,i!==this.dataTask)n.data=r}yn(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return Z(r)},e.prototype.getSourceManager=function(){return yn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return yn(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);if(a==null)a=1/0;var f=[],c=1/0,p=-1,h=0,v=o.getDimensionIndex(i),d=o.getStore();for(var m=0,g=d.count();m<g;m++){var y=d.get(v,m),_=l.dataToCoord(y),x=u-_,S=Math.abs(x);if(S<=a){if(S<c||S===c&&x>=0&&p<0)c=S,p=x,h=0;if(x===p)f[h++]=m}}return f.length=h,f},e.prototype.formatTooltip=function(r,i,n){return Ub({series:this,dataIndex:r,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ne.node&&!(r&&r.ssr))return!1;var i=this.getShallow("animation");if(i){if(this.getData().count()>this.getShallow("animationThreshold"))i=!1}return!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,i,n){var a=this.ecModel,o=ul.prototype.getColorFromPalette.call(this,r,i,n);if(!o)o=a.getColorFromPalette(r,i,n);return 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)return;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){var n=[];for(var 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());var r=this._selectedDataIndicesMap,i=re(r),n=[];for(var a=0;a<i.length;a++){var o=r[i[a]];if(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[hI])return!0;var r=this.option.universalTransition;if(!r)return!1;if(r===!0)return!0;return r&&r.enabled},e.prototype._innerSelect=function(r,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!s||!l)return;if(s==="series")o.selectedMap="all";else if(s==="multiple"){if(!W(o.selectedMap))o.selectedMap={};var u=o.selectedMap;for(var 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)return;var i=[];if(r.hasItemOption)r.each(function(n){var a=r.getRawDataItem(n);if(a&&a.selected)i.push(n)});if(i.length>0)this._innerSelect(r,i)},e.registerClass=function(r){return be.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}(be);ht(Oc,dl);ht(Oc,ul);sf(Oc,be);function Fb(t){var e=t.name;if(!rf(t))t.name=vI(t)||e}function vI(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 dI(t){return t.model.getRawData().count()}function mI(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),gI}function gI(t,e){if(e.outputData&&t.end>e.outputData.count())e.model.getRawData().cloneShallow(e.outputData)}function Vb(t,e){w(Cy(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Ae(yI,e))})}function yI(t,e){var r=Zd(t);if(r)r.setOutputEnd((e||this).count());return e}function Zd(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var i=r.currentTask;if(i){var n=i.agentStubMap;if(n)i=n.get(t.uid)}return i}}var or=Oc;var Kd=function(){function t(){this.group=new we,this.uid=vn("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;if(r)r.traverse(e)},t}();go(Kd);rn(Kd);var Ot=Kd;function Aa(){var t=ee();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 Yb=ee(),_I=Aa(),jd=function(){function t(){this.group=new we,this.uid=vn("viewChart"),this.renderTask=gn({plan:xI,reset:SI}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){throw Error("render method must been implemented")},t.prototype.highlight=function(e,r,i,n){var a=e.getData(n&&n.dataType);if(!a){pe("Unknown dataType "+n.dataType);return}Gb(a,n,"emphasis")},t.prototype.downplay=function(e,r,i,n){var a=e.getData(n&&n.dataType);if(!a){pe("Unknown dataType "+n.dataType);return}Gb(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){Ci(this.group,e)},t.markUpdateMethod=function(e,r){Yb(e).updateMethod=r},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function Hb(t,e,r){if(t&&fn(t))(e==="emphasis"?Ti:wi)(t,r)}function Gb(t,e,r){var i=cr(t,e),n=e&&e.highlightKey!=null?Cx(e.highlightKey):null;if(i!=null)w(Ne(i),function(a){Hb(t.getItemGraphicEl(a),r,n)});else t.eachItemGraphicEl(function(a){Hb(a,r,n)})}go(jd,["dispose"]);rn(jd);function xI(t){return _I(t.model)}function SI(t){var{model:e,ecModel:r,api:i,payload:n}=t,a=e.pipelineContext.progressiveRender,o=t.view,s=n&&Yb(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";if(l!=="render")o[l](e,r,i,n);return bI[l]}var bI={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)}}},Lt=jd;var Lc="\x00__throttleOriginMethod",Wb="\x00__throttleRate",Xb="\x00__throttleType";function yl(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(){var h=[];for(var v=0;v<arguments.length;v++)h[v]=arguments[v];i=new Date().getTime(),l=this,u=h;var d=f||e,m=f||r;if(f=null,s=i-(m?n:a)-d,clearTimeout(o),m)o=setTimeout(c,d);else if(s>=0)c();else o=setTimeout(c,-s);n=i};return p.clear=function(){if(o)clearTimeout(o),o=null},p.debounceNextCall=function(h){f=h},p}function Pc(t,e,r,i){var n=t[e];if(!n)return;var a=n[Lc]||n,o=n[Xb],s=n[Wb];if(s!==r||o!==i){if(r==null||!i)return t[e]=a;n=t[e]=yl(a,r,i==="debounce"),n[Lc]=a,n[Xb]=i,n[Wb]=r}return n}function _l(t,e){var r=t[e];if(r&&r[Lc])r.clear&&r.clear(),t[e]=r[Lc]}var qb=ee(),Zb={itemStyle:jr(pd,!0),lineStyle:jr(cd,!0)},wI={lineStyle:"stroke",itemStyle:"fill"};function Kb(t,e){var r=t.visualStyleMapper||Zb[e];if(!r)return console.warn("Unknown style type '"+e+"'."),Zb.itemStyle;return r}function jb(t,e){var r=t.visualDrawType||wI[e];if(!r)return console.warn("Unknown style type '"+e+"'."),"fill";return r}var $b={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=t.getModel(i),a=Kb(t,i),o=a(n),s=n.getShallow("decal");if(s)r.setVisual("decal",s),s.dirty=!0;var l=jb(t,i),u=o[l],f=X(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());if(!o[l])o[l]=p,r.setVisual("colorFromPalette",!0);o.fill=o.fill==="auto"||X(o.fill)?p:o.fill,o.stroke=o.stroke==="auto"||X(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,v){var d=t.getDataParams(v),m=N({},o);m[l]=f(d),h.setItemVisual(v,"style",m)}}}},xl=new Re,Qb={createOnAllSeries:!0,reset:function(t,e){if(t.ignoreStyleOnData)return;var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=Kb(t,i),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){xl.option=l[i];var u=n(xl),f=o.ensureUniqueItemVisual(s,"style");if(N(f,u),xl.option.decal)o.setItemVisual(s,"decal",xl.option.decal),xl.option.decal.dirty=!0;if(a in u)o.setItemVisual(s,"colorFromPalette",!1)}}:null}}},Jb={performRawSeries:!0,overallReset:function(t){var e=Z();t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.type+"-"+r.getColorBy();qb(r).scope=e.get(i)||e.set(i,{})}}),t.eachSeries(function(r){if(r.isColorBySeries())return;var i=r.getRawData(),n={},a=r.getData(),o=qb(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=jb(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+"",v=i.count();p[l]=r.getColorFromPalette(h,o,v)}})})}};var Ic=Math.PI;function $d(t,e){e=e||{},oe(e,{text:"loading",textColor:he.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:he.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new we,i=new De({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(i);var n=new $e({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 De({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;if(e.showSpinner)o=new Eo({shape:{startAngle:-Ic/2,endAngle:-Ic/2+0.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1000,{endAngle:Ic*3/2}).start("circularInOut"),o.animateShape(!0).when(1000,{startAngle:Ic*3/2}).delay(300).start("circularInOut"),r.add(o);return 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 CI=function(){function t(e,r,i,n){this._stageTaskMap=Z(),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)return;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):of(e,r,i);e.pipelineContext=i.context=n},t.prototype.restorePipelines=function(e,r){var i=this,n=i._pipelineMap=Z();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="";o='"reset" and "overallReset" must not be both specified.',I(!(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)return;var f=o._stageTaskMap.get(l.uid),{seriesTaskMap:c,overallTask:p}=f;if(p){var h,v=p.agentStubMap;v.each(function(m){if(s(n,m))m.dirty(),h=!0}),h&&p.dirty(),o.updatePayload(p,i);var d=o.getPerformArgs(p,n.block);if(v.each(function(m){m.perform(d)}),p.perform(d))a=!0}else if(c)c.each(function(m,g){if(s(n,m))m.dirty();var y=o.getPerformArgs(m,n.block);if(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=Z(),{seriesType:l,getTargetSeries:u}=e;if(e.createOnAllSeries)i.eachRawSeries(f);else if(l)i.eachRawSeriesByType(l,f);else if(u)u(i,n).each(f);function f(c){var p=c.uid,h=s.set(p,o&&o.get(p)||gn({plan:OI,reset:LI,count:II}));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||gn({reset:AI});o.context={ecModel:i,api:n,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Z(),{seriesType:u,getTargetSeries:f,dirtyOnOverallProgress:c}=e,p=!1,h="";if(h='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.',I(!e.createOnAllSeries,h),u)i.eachRawSeriesByType(u,v);else if(f)f(i,n).each(v);else w(i.getSeries(),v);function v(d){var m=d.uid,g=l.set(m,s&&s.get(m)||(p=!0,gn({reset:EI,onDirty:MI})));g.context={model:d,dirtyOnOverallProgress:c},g.agent=o,g.__block=c,a._pipe(d,g)}if(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){if(X(e))e={overallReset:e,seriesType:NI(e)};return e.uid=vn("stageHandler"),r&&(e.visualType=r),e},t}();function AI(t){t.overallReset(t.ecModel,t.api,t.payload)}function EI(t){return t.dirtyOnOverallProgress&&DI}function DI(){this.agent.dirty(),this.getDownstream().dirty()}function MI(){this.agent&&this.agent.dirty()}function OI(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function LI(t){if(t.useClearVisual)t.data.clearAllVisual();var e=t.resetDefines=Ne(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?U(e,function(r,i){return eT(i)}):PI}var PI=eT(0);function eT(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 if(n&&n.progress)n.progress(e,i)}}function II(t){return t.data.count()}function NI(t){Nc=null;try{t(Sl,tT)}catch(e){}return Nc}var Sl={},tT={},Nc;rT(Sl,yc);rT(tT,df);Sl.eachSeriesByType=Sl.eachRawSeriesByType=function(t){Nc=t};Sl.eachComponent=function(t){if(t.mainType==="series"&&t.subType)Nc=t.subType};function rT(t,e){for(var r in e.prototype)t[r]=Pe}var Qd=CI;var K=he.darkColor,iT=K.background,bl=function(){return{axisLine:{lineStyle:{color:K.axisLine}},splitLine:{lineStyle:{color:K.axisSplitLine}},splitArea:{areaStyle:{color:[K.backgroundTint,K.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:K.axisMinorSplitLine}},axisLabel:{color:K.axisLabel},axisName:{}}},nT={label:{color:K.secondary},itemStyle:{borderColor:K.borderTint},dividerLineStyle:{color:K.border}},aT={darkMode:!0,color:K.theme,backgroundColor:iT,axisPointer:{lineStyle:{color:K.border},crossStyle:{color:K.borderShade},label:{color:K.tertiary}},legend:{textStyle:{color:K.secondary},pageTextStyle:{color:K.tertiary}},textStyle:{color:K.secondary},title:{textStyle:{color:K.primary},subtextStyle:{color:K.quaternary}},toolbox:{iconStyle:{borderColor:K.accent50},feature:{dataView:{backgroundColor:iT,textColor:K.primary,textareaColor:K.background,textareaBorderColor:K.border,buttonColor:K.accent50,buttonTextColor:K.neutral00}}},tooltip:{backgroundColor:K.neutral20,defaultBorderColor:K.border,textStyle:{color:K.tertiary}},dataZoom:{borderColor:K.accent10,textStyle:{color:K.tertiary},brushStyle:{color:K.backgroundTint},handleStyle:{color:K.neutral00,borderColor:K.accent20},moveHandleStyle:{color:K.accent40},emphasis:{handleStyle:{borderColor:K.accent50}},dataBackground:{lineStyle:{color:K.accent30},areaStyle:{color:K.accent20}},selectedDataBackground:{lineStyle:{color:K.accent50},areaStyle:{color:K.accent30}}},visualMap:{textStyle:{color:K.secondary},handleStyle:{borderColor:K.neutral30}},timeline:{lineStyle:{color:K.accent10},label:{color:K.tertiary},controlStyle:{color:K.accent30,borderColor:K.accent30}},calendar:{itemStyle:{color:K.neutral00,borderColor:K.neutral20},dayLabel:{color:K.tertiary},monthLabel:{color:K.secondary},yearLabel:{color:K.secondary}},matrix:{x:nT,y:nT,backgroundColor:{borderColor:K.axisLine},body:{itemStyle:{borderColor:K.borderTint}}},timeAxis:bl(),logAxis:bl(),valueAxis:bl(),categoryAxis:bl(),line:{symbol:"circle"},graph:{color:K.theme},gauge:{title:{color:K.secondary},axisLine:{lineStyle:{color:[[1,K.neutral05]]}},axisLabel:{color:K.axisLabel},detail:{color:K.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:K.background}},radar:function(){var t=bl();return t.axisName={color:K.axisLabel},t.axisLine.lineStyle.color=K.neutral20,t}(),treemap:{breadcrumb:{itemStyle:{color:K.neutral20,textStyle:{color:K.secondary}},emphasis:{itemStyle:{color:K.neutral30}}}},sunburst:{itemStyle:{borderColor:K.background}},map:{itemStyle:{borderColor:K.border,areaColor:K.neutral10},label:{color:K.tertiary},emphasis:{label:{color:K.primary},itemStyle:{areaColor:K.highlight}},select:{label:{color:K.primary},itemStyle:{areaColor:K.highlight}}},geo:{itemStyle:{borderColor:K.border,areaColor:K.neutral10},emphasis:{label:{color:K.primary},itemStyle:{areaColor:K.highlight}},select:{label:{color:K.primary},itemStyle:{color:K.highlight}}}};aT.categoryAxis.splitLine.show=!1;var oT=aT;var sT=function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},i={},n={};if(V(e)){var a=Ft(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){var f=!1;for(var c=0;c<o.length;c++){var p=o[c],h=u.lastIndexOf(p);if(h>0&&h===u.length-p.length){var v=u.slice(0,h);if(v!=="data")r.mainType=v,r[p.toLowerCase()]=l,f=!0}}if(s.hasOwnProperty(u))i[u]=l,f=!0;if(!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{targetEl:n,packedEvent:a,model:o,view:s}=i;if(!o||!s)return!0;var{cptQuery:l,dataQuery:u}=r;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,v){return c[h]==null||p[v||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}();var Jd=["symbol","symbolSize","symbolRotate","symbolOffset"],lT=Jd.concat(["symbolKeepAspect"]),uT={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon)r.setVisual("legendIcon",t.legendIcon);if(!t.hasSymbolVisual)return;var i={},n={},a=!1;for(var o=0;o<Jd.length;o++){var s=Jd[o],l=t.get(s);if(X(l))a=!0,n[s]=l;else 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=re(n);function f(c,p){var h=t.getRawValue(p),v=t.getDataParams(p);for(var d=0;d<u.length;d++){var m=u[d];c.setItemVisual(p,m,n[m](h,v))}}return{dataEach:a?f:null}}},fT={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual)return;if(e.isSeriesFiltered(t))return;var r=t.getData();function i(n,a){var o=n.getItemModel(a);for(var s=0;s<lT.length;s++){var l=lT[s],u=o.getShallow(l,!0);if(u!=null)n.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?i:null}}};function cT(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:console.warn("Unknown visual type "+r)}}function Rc(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:console.warn("Unknown visual type "+e)}}function pT(t,e){function r(i,n){var a=[];return i.eachComponent({mainType:"series",subType:t,query:n},function(o){a.push(o.seriesIndex)}),a}w([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(i){e(i[0],function(n,a,o){n=N({},n),Fe(n.type,i[1]),o.dispatchAction(N(n,{type:i[1],seriesIndex:r(a,n)}))})})}function Yo(t,e,r,i,n){var a=t+e;if(!r.isSilent(a))tr("event "+a+" is deprecated."),i.eachComponent({mainType:"series",subType:"pie"},function(o){var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected;for(var f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),p=cr(c,n.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:k(p)?c.getName(p[0]):c.getName(p),selected:V(l)?l:N({},l)})}})}function hT(t,e,r){t.on("selectchanged",function(i){var n=r.getModel();if(i.isFromClick)Yo("map","selectchanged",e,n,i),Yo("pie","selectchanged",e,n,i);else if(i.fromAction==="select")Yo("map","selected",e,n,i),Yo("pie","selected",e,n,i);else if(i.fromAction==="unselect")Yo("map","unselected",e,n,i),Yo("pie","unselected",e,n,i)})}function Ea(t,e,r){var i;while(t){if(e(t)){if(i=t,r)break}t=t.__hostTarget||t.parent}return i}var RI=new Et,sr=RI;var kc={};function vT(t,e){if(kc[t])pe("Already has an implementation of "+t+".");kc[t]=e}function dT(t){if(!kc[t])pe("Implementation of "+t+" doesn't exists.");return kc[t]}var kI={};function mT(t,e){kI[t]=e}var Bc=ee();function gT(t){Bc(t).prepare={}}function yT(t){Bc(t).fullUpdate={}}function _T(t){return Bc(t).prepare}function Da(t){return Bc(t).fullUpdate}var BI=Math.round(Math.random()*9),zI=typeof Object.defineProperty==="function",UI=function(){function t(){this._id="__ec_inner_"+BI++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var i=this._guard(e);if(zI)Object.defineProperty(i,this._id,{value:r,enumerable:!1,configurable:!0});else i[this._id]=r;return this},t.prototype.delete=function(e){if(this.has(e))return delete this._guard(e)[this._id],!0;return!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}(),xT=UI;var FI=ie.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var{cx:r,cy:i}=e,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()}}),VI=ie.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var{cx:r,cy:i}=e,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()}}),HI=ie.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var{x:r,y:i}=e,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*0.6,v=o*0.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-v,r,i),t.bezierCurveTo(r,i-v,r-f+c*h,l+s+p*h,r-f,l+s),t.closePath()}}),GI=ie.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var{height:r,width:i,x:n,y:a}=e,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()}}),YI={line:Ht,rect:De,roundRect:De,square:De,circle:wo,diamond:VI,pin:HI,arrow:GI,triangle:FI},WI={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}},em={};w(YI,function(t,e){em[e]=new t});var XI=ie.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var i=qn(t,e,r),n=this.shape;if(n&&n.symbolType==="pin"&&e.position==="inside")i.y=r.y+r.height*0.4;return i},buildPath:function(t,e,r){var i=e.symbolType;if(i!=="none"){var n=em[i];if(!n)i="rect",n=em[i];WI[i](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,r)}}});function qI(t,e){if(this.type!=="image"){var r=this.style;if(this.__isEmptyBrush)r.stroke=t,r.fill=e||he.color.neutral00,r.lineWidth=2;else if(this.shape.symbolType==="line")r.stroke=t;else r.fill=t;this.markRedraw()}}function Rr(t,e,r,i,n,a,o){var s=t.indexOf("empty")===0;if(s)t=t.substr(5,1).toLowerCase()+t.substr(6);var l;if(t.indexOf("image://")===0)l=kf(t.slice(8),new ae(e,r,i,n),o?"center":"cover");else if(t.indexOf("path://")===0)l=nl(t.slice(7),{},new ae(e,r,i,n),o?"center":"cover");else l=new XI({shape:{symbolType:t,x:e,y:r,width:i,height:n}});if(l.__isEmptyBrush=s,l.setColor=qI,a)l.setColor(a);return l}function Tl(t){if(!k(t))t=[+t,+t];return[t[0]||0,t[1]||0]}function Ma(t,e){if(t==null)return;if(!k(t))t=[t,t];return[Ce(t[0],e[0])||0,Ce(G(t[1],t[0]),e[1])||0]}function Oa(t){return isFinite(t)}function KI(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;if(!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=Oa(i)?i:0,n=Oa(n)?n:1,a=Oa(a)?a:0,o=Oa(o)?o:0;var s=t.createLinearGradient(i,a,n,o);return s}function jI(t,e,r){var{width:i,height:n}=r,a=Math.min(i,n),o=e.x==null?0.5:e.x,s=e.y==null?0.5:e.y,l=e.r==null?0.5:e.r;if(!e.global)o=o*i+r.x,s=s*n+r.y,l=l*a;o=Oa(o)?o:0.5,s=Oa(s)?s:0.5,l=l>=0&&Oa(l)?l:0.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function tm(t,e,r){var i=e.type==="radial"?jI(t,e,r):KI(t,e,r),n=e.colorStops;for(var a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function ST(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 zc(t){return parseInt(t,10)}function rm(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]||zc(s[i])||zc(t.style[i]))-(zc(s[a])||0)-(zc(s[o])||0)||0}function $I(t,e){if(!t||t==="solid"||!(e>0))return null;return t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:se(t)?[t]:k(t)?t:null}function wl(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&$I(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(r){var n=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;if(n&&n!==1)r=U(r,function(a){return a/n}),i/=n}return[r,i]}var QI=new yt(!0);function Uc(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function bT(t){return typeof t==="string"&&t!=="none"}function Fc(t){var e=t.fill;return e!=null&&e!=="none"}function TT(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 wT(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 CT(t,e,r){var i=Hs(e.image,e.__image,r);if(yo(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)*ja),a.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(a)}return n}}function JI(t,e,r,i,n){var a,o=Uc(r),s=Fc(r),l=r.strokePercent,u=l<1,f=!e.path;if((!e.silent||u)&&f)e.createPathProxy();var c=e.path||QI,p=e.__dirty;if(!i){var{fill:h,stroke:v}=r,d=s&&!!h.colorStops,m=o&&!!v.colorStops,g=s&&!!h.image,y=o&&!!v.image,_=void 0,x=void 0,S=void 0,b=void 0,T=void 0;if(d||m)T=e.getBoundingRect();if(d)_=p?tm(t,h,T):e.__canvasFillGradient,e.__canvasFillGradient=_;if(m)x=p?tm(t,v,T):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x;if(g)S=p||!e.__canvasFillPattern?CT(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=S;if(y)b=p||!e.__canvasStrokePattern?CT(t,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b;if(d)t.fillStyle=_;else if(g)if(S)t.fillStyle=S;else s=!1;if(m)t.strokeStyle=x;else if(y)if(b)t.strokeStyle=b;else o=!1}var A=e.getGlobalScale();c.setScale(A[0],A[1],e.segmentIgnoreThreshold);var C,E;if(t.setLineDash&&r.lineDash)a=wl(e),C=a[0],E=a[1];var D=!0;if(f||p&Yi){if(c.setDPR(t.dpr),u)c.setContext(null);else c.setContext(t),D=!1;c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()}if(D)c.rebuildPath(t,u?l:1);if(C)t.setLineDash(C),t.lineDashOffset=E;if(!i)if(r.strokeFirst){if(o)wT(t,r);if(s)TT(t,r)}else{if(s)TT(t,r);if(o)wT(t,r)}else n.batchFill=s,n.batchStroke=o;if(C)t.setLineDash([])}function eN(t,e,r){var i=e.__image=Hs(r.image,e.__image,e,e.onload);if(!i||!yo(i))return;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;else if(s==null&&o!=null)s=o/l;else if(o==null&&s==null)o=i.width,s=i.height;if(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{sx:u,sy:f}=r,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 tN(t,e,r){var i,n=r.text;if(n!=null&&(n+=""),n){t.font=r.font||Bt,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;if(t.setLineDash&&r.lineDash)i=wl(e),a=i[0],o=i[1];if(a)t.setLineDash(a),t.lineDashOffset=o;if(r.strokeFirst){if(Uc(r))t.strokeText(n,r.x,r.y);if(Fc(r))t.fillText(n,r.x,r.y)}else{if(Fc(r))t.fillText(n,r.x,r.y);if(Uc(r))t.strokeText(n,r.x,r.y)}if(a)t.setLineDash([])}}var AT=["shadowBlur","shadowOffsetX","shadowOffsetY"],ET=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function IT(t,e,r,i,n){var a=!1;if(!i){if(r=r||{},e===r)return!1}if(i||e.opacity!==r.opacity){Pt(t,n),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?$r.opacity:o}if(i||e.blend!==r.blend){if(!a)Pt(t,n),a=!0;t.globalCompositeOperation=e.blend||$r.blend}for(var s=0;s<AT.length;s++){var l=AT[s];if(i||e[l]!==r[l]){if(!a)Pt(t,n),a=!0;t[l]=t.dpr*(e[l]||0)}}if(i||e.shadowColor!==r.shadowColor){if(!a)Pt(t,n),a=!0;t.shadowColor=e.shadowColor||$r.shadowColor}return a}function DT(t,e,r,i,n){var a=e.style,o=i?null:r&&r.style||{};if(a===o)return!1;var s=IT(t,a,o,i,n);if(i||a.fill!==o.fill){if(!s)Pt(t,n),s=!0;bT(a.fill)&&(t.fillStyle=a.fill)}if(i||a.stroke!==o.stroke){if(!s)Pt(t,n),s=!0;bT(a.stroke)&&(t.strokeStyle=a.stroke)}if(i||a.opacity!==o.opacity){if(!s)Pt(t,n),s=!0;t.globalAlpha=a.opacity==null?1:a.opacity}if(e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);if(t.lineWidth!==u){if(!s)Pt(t,n),s=!0;t.lineWidth=u}}for(var f=0;f<ET.length;f++){var c=ET[f],p=c[0];if(i||a[p]!==o[p]){if(!s)Pt(t,n),s=!0;t[p]=a[p]||c[1]}}return s}function rN(t,e,r,i,n){return IT(t,e.style,r&&r.style,i,n)}function NT(t,e){var r=e.transform,i=t.dpr||1;if(r)t.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]);else t.setTransform(i,0,0,i,0,0)}function iN(t,e,r){var i=!1;for(var n=0;n<t.length;n++){var a=t[n];i=i||a.isZeroArea(),NT(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=i}function nN(t,e){if(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];else if(!t&&!e)return!1;return!0}var MT=1,OT=2,LT=3,PT=4;function aN(t){var e=Fc(t),r=Uc(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 Pt(t,e){if(e.batchFill)e.batchFill=!1,t.fill();if(e.batchStroke)e.batchStroke=!1,t.stroke()}function RT(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};im(t,e,r),nm(t,r)}function im(t,e,r){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~Tt,e.__isRendered=!1;return}var n=e.__clipPaths,a=r.prevElClipPaths,o=e.style,s=!1,l=!1;if(!a||ST(n,a)){if(a)Pt(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null;if(n&&n.length)Pt(t,r),t.save(),iN(n,t,r),s=!0,r.prevElClipPaths=n}if(r.allClipped){e.__dirty&=~Tt,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var u=r.prevEl;if(!u)l=s=!0;var f=e instanceof ie&&e.autoBatch&&aN(o);if(s||nN(i,u.transform))Pt(t,r),NT(t,e);else if(!f)Pt(t,r);if(e instanceof ie){if(r.lastDrawType!==MT)l=!0,r.lastDrawType=MT;if(DT(t,e,u,l,r),!f||!r.batchFill&&!r.batchStroke)t.beginPath();JI(t,e,o,f,r)}else if(e instanceof oa){if(r.lastDrawType!==LT)l=!0,r.lastDrawType=LT;DT(t,e,u,l,r),tN(t,e,o)}else if(e instanceof _t){if(r.lastDrawType!==OT)l=!0,r.lastDrawType=OT;rN(t,e,u,l,r),eN(t,e,o)}else if(e.getTemporalDisplayables){if(r.lastDrawType!==PT)l=!0,r.lastDrawType=PT;oN(t,e,r)}if(e.innerAfterBrush(),e.afterBrush){if(f)Pt(t,r);e.afterBrush()}r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function nm(t,e){if(Pt(t,e),e.prevElClipPaths)t.restore()}function oN(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(),im(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}nm(t,a);for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),im(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}nm(t,a),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var am=new xT,kT=new Wr(100),BT=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function om(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),i=e.getZr(),n=i.painter.type==="svg";if(t.dirty)am.delete(t);var a=am.get(t);if(a)return a;var o=oe(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});if(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,am.set(t,s),t.dirty=!1,s;function l(u){var f=[r],c=!0;for(var p=0;p<BT.length;++p){var h=o[BT[p]];if(h!=null&&!k(h)&&!V(h)&&!se(h)&&typeof h!=="boolean"){c=!1;break}f.push(h)}var v;if(c){v=f.join(",")+(n?"-svg":"");var d=kT.get(v);if(d)n?u.svgElement=d:u.image=d}var m=UT(o.dashArrayX),g=sN(o.dashArrayY),y=zT(o.symbol),_=lN(m),x=FT(g),S=!n&&St.createCanvas(),b=n&&{tag:"g",attrs:{},key:"dcl",children:[]},T=C(),A;if(S)S.width=T.width*r,S.height=T.height*r,A=S.getContext("2d");if(E(),c)kT.put(v,S||b);u.image=S,u.svgElement=b,u.svgWidth=T.width,u.svgHeight=T.height;function C(){var D=1;for(var O=0,M=_.length;O<M;++O)D=ov(D,_[O]);var L=1;for(var O=0,M=y.length;O<M;++O)L=ov(L,y[O].length);D*=L;var B=x*_.length*y.length,R=function(F){console.warn("Calculated decal size is greater than "+F+" due to decal option settings so "+F+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+F+" to be larger to avoid incontinuity.")};if(D>o.maxTileWidth)R("maxTileWidth");if(B>o.maxTileHeight)R("maxTileHeight");return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(B,o.maxTileHeight))}}function E(){if(A){if(A.clearRect(0,0,S.width,S.height),o.backgroundColor)A.fillStyle=o.backgroundColor,A.fillRect(0,0,S.width,S.height)}var D=0;for(var O=0;O<g.length;++O)D+=g[O];if(D<=0)return;var M=-x,L=0,B=0,R=0;while(M<T.height){if(L%2===0){var F=B/2%y.length,z=0,H=0,Y=0;while(z<T.width*2){var q=0;for(var O=0;O<m[R].length;++O)q+=m[R][O];if(q<=0)break;if(H%2===0){var Q=(1-o.symbolSize)*0.5,J=z+m[R][H]*Q,j=M+g[L]*Q,ce=m[R][H]*o.symbolSize,ye=g[L]*o.symbolSize,We=Y/2%y[F].length;He(J,j,ce,ye,y[F][We])}if(z+=m[R][H],++Y,++H,H===m[R].length)H=0}if(++R,R===m.length)R=0}if(M+=g[L],++B,++L,L===g.length)L=0}function He(Te,Me,le,Se,Rt){var Xe=n?1:r,br=Rr(Rt,Te*Xe,Me*Xe,le*Xe,Se*Xe,o.color,o.symbolKeepAspect);if(n){var kt=i.painter.renderOneToVNode(br);if(kt)b.children.push(kt)}else RT(A,br)}}}}function zT(t){if(!t||t.length===0)return[["rect"]];if(V(t))return[[t]];var e=!0;for(var r=0;r<t.length;++r)if(!V(t[r])){e=!1;break}if(e)return zT([t]);var i=[];for(var r=0;r<t.length;++r)if(V(t[r]))i.push([t[r]]);else i.push(t[r]);return i}function UT(t){if(!t||t.length===0)return[[0,0]];if(se(t)){var e=Math.ceil(t);return[[e,e]]}var r=!0;for(var i=0;i<t.length;++i)if(!se(t[i])){r=!1;break}if(r)return UT([t]);var n=[];for(var i=0;i<t.length;++i)if(se(t[i])){var e=Math.ceil(t[i]);n.push([e,e])}else{var e=U(t[i],function(s){return Math.ceil(s)});if(e.length%2===1)n.push(e.concat(e));else n.push(e)}return n}function sN(t){if(!t||typeof t==="object"&&t.length===0)return[0,0];if(se(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 lN(t){return U(t,function(e){return FT(e)})}function FT(t){var e=0;for(var r=0;r<t.length;++r)e+=t[r];if(t.length%2===1)return e*2;return e}var VT=mo(uN);function uN(t,e){t.eachRawSeries(function(r){if(t.isSeriesFiltered(r))return;var i=r.getData();if(i.hasItemVisual())i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=om(s,e)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=om(n,e)}})}var fN=1,cN=800,pN=900,hN=920,vN=1000,dN=2000,HT=5000,QT=1000,mN=1100,gm=2000,JT=3000,gN=4000,Zc=4500,yN=4600,_N=5000,xN=6000,e1=7000,t1={PROCESSOR:{SERIES_FILTER:cN,AXIS_STATISTICS:hN,FILTER:vN,STATISTIC:HT,STATISTICS:HT},VISUAL:{LAYOUT:QT,PROGRESSIVE_LAYOUT:mN,GLOBAL:gm,CHART:JT,POST_CHART_LAYOUT:yN,COMPONENT:gN,BRUSH:_N,CHART_ITEM:Zc,ARIA:xN,DECAL:e1}},rt="__flagInMainProcess",Vc="__mainProcessVersion",ct="__pendingUpdate",sm="__needsUpdateStatus",GT=/^[a-zA-Z0-9_]+$/,lm="__connectUpdateStatus",YT=0,SN=1,bN=2;function r1(t){return function(){var e=[];for(var r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){Xt(this.id);return}return n1(this,t,e)}}function i1(t){return function(){var e=[];for(var r=0;r<arguments.length;r++)e[r]=arguments[r];return n1(this,t,e)}}function n1(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),Et.prototype[e].apply(t,r)}var a1=function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Et),o1=a1.prototype;o1.on=i1("on");o1.off=i1("off");var La,um,Hc,Li,Gc,fm,cm,Wo,Xo,WT,XT,pm,qT,Yc,ZT,s1,xr,KT,qo,l1=function(t){P(e,t);function e(r,i,n){var a=t.call(this,new sT)||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;a[Vc]=1;var u=ne.hasGlobalWindow?window:global;if(u)o=G(u.__ECHARTS__DEFAULT__RENDERER__,o),s=G(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=G(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l);if(n.ssr)W0(function(h){var v=xe(h),d=v.dataIndex;if(d==null)return;var m=Z();return m.set("series_index",v.seriesIndex),m.set("data_index",d),v.ssrType&&m.set("ssr_type",v.ssrType),m});var f=a._zr=tv(r,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:G(n.useDirtyRect,l),useCoarsePointer:G(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=yl(me(f.flush,f),17),a._updateTheme(i),a._locale=DS(n.locale||Wf),a._coordSysMgr=new sl;var c=a._api=ZT(a);function p(h,v){return h.__prio-v.__prio}return Un(qc,p),Un(vm,p),a._scheduler=new Qd(a,c,vm,qc),a._messageCenter=new a1,a._initEvents(),a.resize=me(a.resize,a),f.animation.on("frame",a._onframe,a),WT(f,a),XT(f,a),Ka(a),a}return e.prototype._onframe=function(){if(this._disposed)return;var r=this._scheduler,i=this._model,n=this._api;if(KT(this),this[ct]){var a=this[ct].silent;this[rt]=!0,qo(this);try{La(this),Li.update.call(this,null,this[ct].updateParams)}catch(l){throw this[rt]=!1,this[ct]=null,l}this._zr.flush(),this[rt]=!1,this[ct]=null,Wo.call(this,a),Xo.call(this,a)}else if(r.unfinished){var o=fN;do{r.unfinished=!1;var s=St.getTime();r.performSeriesTasks(i),r.performDataProcessorTasks(i),fm(this,i),r.performVisualTasks(i),Yc(this,this._model,n,"remain",{}),o-=St.getTime()-s}while(o>0&&r.unfinished);if(!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]){pe("`setOption` should not be called during main process.");return}if(this._disposed){Xt(this.id);return}var a,o,s;if(W(i))n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge;if(this[rt]=!0,qo(this),!this._model||i){var l=new lb(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},dm);var c={seriesTransition:s,optionChanged:!0};if(n)this[ct]={silent:a,updateParams:c},this[rt]=!1,this.getZr().wakeUp();else{try{La(this),Li.update.call(this,null,c)}catch(p){throw this[ct]=null,this[rt]=!1,p}if(!this._ssr)this._zr.flush();this[ct]=null,this[rt]=!1,Wo.call(this,a),Xo.call(this,a)}},e.prototype.setTheme=function(r,i){if(this[rt]){pe("`setTheme` should not be called during main process.");return}if(this._disposed){Xt(this.id);return}var n=this._model;if(!n)return;var a=i&&i.silent,o=null;if(this[ct]){if(a==null)a=this[ct].silent;o=this[ct].updateParams,this[ct]=null}this[rt]=!0,qo(this);try{this._updateTheme(r),n.setTheme(this._theme),La(this),Li.update.call(this,{type:"setTheme"},o)}catch(s){throw this[rt]=!1,s}this[rt]=!1,Wo.call(this,a),Xo.call(this,a)},e.prototype._updateTheme=function(r){if(V(r))r=u1[r];if(r)r=te(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||ne.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return Fe("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var i=this._zr.painter;if(i.type!=="canvas")throw Error("renderToCanvas can only be used in the canvas renderer.");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;if(i.type!=="svg")throw Error("renderToSVGString can only be used in the svg renderer.");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){Xt(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];if(!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){Xt(this.id);return}var i=r.type==="svg",n=this.group,{min:a,max:o}=Math,s=1/0;if(jT[n]){var l=s,u=s,f=-s,c=-s,p=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();w(Cl,function(_,x){if(_.group===n){var S=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(te(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 v=f-l,d=c-u,m=St.createCanvas(),g=tv(m,{renderer:i?"svg":"canvas"});if(g.resize({width:v,height:d}),i){var y="";if(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);return g.refreshImmediately(),g.painter.toDataURL()}else{if(r.connectedBackgroundColor)g.add(new De({shape:{x:0,y:0,width:v,height:d},style:{fill:r.connectedBackgroundColor}}));return w(p,function(_){var x=new _t({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 Gc(this,"convertToPixel",r,i,n)},e.prototype.convertToLayout=function(r,i,n){return Gc(this,"convertToLayout",r,i,n)},e.prototype.convertFromPixel=function(r,i,n){return Gc(this,"convertFromPixel",r,i,n)},e.prototype.containPixel=function(r,i){if(this._disposed){Xt(this.id);return}var n=this._model,a,o=nf(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];if(c&&c.containPoint)a=a||c.containPoint(i,u);else Ue(l+": "+(c?"The found component do not support containPoint.":"No view mapping to the found component."))}else Ue(l+": containPoint is not supported")},this)},this),!!a},e.prototype.getVisual=function(r,i){var n=this._model,a=nf(n,r,{defaultMainType:"series"}),o=a.seriesModel;if(!o)Ue("There is no specified series model");var s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?cT(s,l,i):Rc(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(TN,function(n){var a=function(o){var s=r.getModel(),l=o.target,u,f=n==="globalout";if(f)u={};else l&&Ea(l,function(d){var m=xe(d);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);if(u){var c=u.componentType,p=u.componentIndex;if(c==="markLine"||c==="markPoint"||c==="markArea")c="series",p=u.seriesIndex;var h=c&&p!=null&&s.getComponent(c,p),v=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];if(!f&&!(h&&v))Ue("model or view can not be found by params");u.event=o,u.type=n,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:v},r.trigger(n,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)});var i=this._messageCenter;w(hm,function(n,a){i.on(a,function(o){r.trigger(a,o)})}),hT(i,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){Xt(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){Xt(this.id);return}this._disposed=!0;var r=this.getDom();if(r)lv(this.getDom(),_m,"");var i=this,{_api:n,_model:a}=i;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 Cl[i.id]},e.prototype.resize=function(r){if(this[rt]){pe("`resize` should not be called during main process.");return}if(this._disposed){Xt(this.id);return}this._zr.resize(r);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!i)return;var n=i.resetOption("media"),a=r&&r.silent;if(this[ct]){if(a==null)a=this[ct].silent;n=!0,this[ct]=null}this[rt]=!0,qo(this);try{n&&La(this),Li.update.call(this,{type:"resize",animation:N({duration:0},r&&r.animation)})}catch(o){throw this[rt]=!1,o}this[rt]=!1,Wo.call(this,a),Xo.call(this,a)},e.prototype.showLoading=function(r,i){if(this._disposed){Xt(this.id);return}if(W(r))i=r,r="";if(r=r||"default",this.hideLoading(),!mm[r]){Ue("Loading effects "+r+" not exists.");return}var n=mm[r](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)},e.prototype.hideLoading=function(){if(this._disposed){Xt(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=Xc[r.type],i},e.prototype.dispatchAction=function(r,i){if(this._disposed){Xt(this.id);return}if(!W(i))i={silent:!!i};if(!Wc[r.type])return;if(!this._model)return;if(this[rt]){this._pendingActions.push(r);return}var n=i.silent;cm.call(this,r,n);var a=i.flush;if(a)this._zr.flush();else if(a!==!1&&ne.browser.weChat)this._throttledZrFlush();Wo.call(this,n),Xo.call(this,n)},e.prototype.updateLabelLayout=function(){sr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){Xt(this.id);return}var i=r.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);I(r.data&&a),a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){La=function(c){gT(c._model);var p=c._scheduler;p.restorePipelines(c._zr,c._model),p.prepareStageTasks(),um(c,!0),um(c,!1),p.plan()},um=function(c,p){var{_model:h,_scheduler:v}=c,d=p?c._componentsViews:c._chartsViews,m=p?c._componentsMap:c._chartsMap,{_zr:g,_api:y}=c;for(var _=0;_<d.length;_++)d[_].__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 A="_ec_"+b.id+"_"+b.type,C=!T&&m[A];if(!C){var E=Ft(b.type),D=p?Ot.getClass(E.main,E.sub):Lt.getClass(E.sub);I(D,E.sub+" does not exist."),C=new D,C.init(h,y),m[A]=C,d.push(C),g.add(C.group)}b.__viewId=C.__id=A,C.__alive=!0,C.__model=b,C.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!p&&v.prepareView(C,b,h,y)}for(var _=0;_<d.length;){var S=d[_];if(!S.__alive){if(!p&&S.renderTask.dispose(),g.remove(S.group),S.dispose(h,y),d.splice(_,1),m[S.__id]===S)delete m[S.__id];S.__id=S.group.__ecComponentInfo=null}else _++}},Hc=function(c,p,h,v,d){var m=c._model;if(m.setUpdatePayload(h),!v){w([].concat(c._componentsViews).concat(c._chartsViews),x);return}var g=s_(h,v,d),y=h.excludeSeriesId,_;if(y!=null)_=Z(),w(Ne(y),function(S){var b=rr(S,null);if(b!=null)_.set(b,!0)});m&&m.eachComponent(g,function(S){var b=_&&_.get(S.id)!=null;if(b)return;if(Xv(h))if(S instanceof or){if(h.type===un&&!h.notBlur&&!S.get(["emphasis","disabled"]))yx(S,h,c._api)}else{var T=Sf(S.mainType,S.componentIndex,h.name,c._api),{focusSelf:A,dispatchers:C}=T;if(h.type===un&&A&&!h.notBlur)mf(S.mainType,S.componentIndex,c._api);if(C)w(C,function(E){h.type===un?Ti(E):wi(E)})}else if(bf(h)){if(S instanceof or)Sx(S,h,c._api),Wv(S),xr(c)}},c),m&&m.eachComponent(g,function(S){var b=_&&_.get(S.id)!=null;if(b)return;x(c[v==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},c);function x(S){S&&S.__alive&&S[p]&&S[p](S.__model,m,c._api,h)}},Li={prepareAndUpdate:function(c){La(this),Li.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,p){var h=this._model,v=this._api,d=this._zr,m=this._coordSysMgr,g=this._scheduler;if(!h)return;yT(h),h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),m.create(h,v),sr.trigger("coordsys:aftercreate",h,v),g.performDataProcessorTasks(h,c),fm(this,h),m.update(h,v),i(h),g.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";d.setBackgroundColor(y);var _=h.get("darkMode");if(_!=null&&_!=="auto")d.setDarkMode(_);pm(this,h,v,c,p),sr.trigger("afterupdate",h,v)},updateTransform:function(c){var p=this,{_model:h,_api:v}=p;if(!h)return;h.setUpdatePayload(c);var d=[];h.eachComponent(function(g,y){if(g===vf)return;var _=p.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,h,v,c);x&&x.update&&d.push(_)}else d.push(_)});var m=Z();h.eachSeries(function(g){var y=p._chartsMap[g.__viewId],_=g.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var x=y.updateTransform(g,h,v,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,v,c,{},m),sr.trigger("afterupdate",h,v)},updateView:function(c){var p=this._model;if(!p)return;p.setUpdatePayload(c),Lt.markUpdateMethod(c,"updateView"),i(p),this._scheduler.performVisualTasks(p,c,{setDirty:!0}),pm(this,p,this._api,c,{}),sr.trigger("afterupdate",p,this._api)},updateVisual:function(c){var p=this,h=this._model;if(!h)return;h.setUpdatePayload(c),h.eachSeries(function(v){v.getData().clearAllVisual()}),Lt.markUpdateMethod(c,"updateVisual"),i(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,d){if(v!=="series"){var m=p.getViewOfComponentModel(d);m&&m.__alive&&m.updateVisual(d,h,p._api,c)}}),h.eachSeries(function(v){var d=p._chartsMap[v.__viewId];d.updateVisual(v,h,p._api,c)}),sr.trigger("afterupdate",h,this._api)},updateLayout:function(c){Li.update.call(this,c)}};function r(c,p,h,v,d){if(c._disposed){Xt(c.id);return}var m=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,_=nf(m,h);for(var x=0;x<g.length;x++){var S=g[x];if(S[p]&&(y=S[p](m,_,v,d))!=null)return y}Ue("No coordinate system that supports "+p+" found by the given finder.")}Gc=r,fm=function(c,p){var{_chartsMap:h,_scheduler:v}=c;p.eachSeries(function(d){v.updateStreamModes(d,h[d.__viewId])})},cm=function(c,p){var h=this,v=this.getModel(),{type:d,escapeConnect:m}=c,g=Wc[d],y=(g.update||"update").split(":"),_=y.pop(),x=y[0]!=null&&Ft(y[0]);this[rt]=!0,qo(this);var S=[c],b=!1;if(c.batch)b=!0,S=U(c.batch,function(R){return R=oe(N({},R),c),R.batch=null,R});var T=[],A,C=[],E=g.nonRefinedEventType,D=bf(c),O=Xv(c);if(O)Yv(this._api);if(w(S,function(R){var F=g.action(R,v,h._api);if(g.refineEvent)C.push(F);else A=F;if(A=A||N({},R),A.type=E,T.push(A),O){var z=Fs(c),{queryOptionMap:H,mainTypeSpecified:Y}=z,q=Y?H.keys()[0]:"series";Hc(h,_,R,q),xr(h)}else if(D)Hc(h,_,R,"series"),xr(h);else if(x)Hc(h,_,R,x.main,x.sub)}),_!=="none"&&!O&&!D&&!x)try{if(this[ct])La(this),Li.update.call(this,c),this[ct]=null;else Li[_].call(this,c)}catch(R){throw this[rt]=!1,R}if(b)A={type:E,escapeConnect:m,batch:T};else A=T[0];if(this[rt]=!1,!p){var M=void 0;if(g.refineEvent){var L=g.refineEvent(C,c,v,this._api).eventContent;I(W(L)),M=oe({type:g.refinedEventType},L),M.fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var B=this._messageCenter;if(B.trigger(A.type,A),M)B.trigger(M.type,M)}},Wo=function(c){var p=this._pendingActions;while(p.length){var h=p.shift();cm.call(this,h,c)}},Xo=function(c){!c&&this.trigger("updated")},WT=function(c,p){c.on("rendered",function(h){if(p.trigger("rendered",h),c.animation.isFinished()&&!p[ct]&&!p._scheduler.unfinished&&!p._pendingActions.length)p.trigger("finished");else c.refresh()})},XT=function(c,p){c.on("mouseover",function(h){var v=h.target,d=Ea(v,fn);if(d)_x(d,h,p._api),xr(p)}).on("mouseout",function(h){var v=h.target,d=Ea(v,fn);if(d)xx(d,h,p._api),xr(p)}).on("click",function(h){var v=h.target,d=Ea(v,function(y){return xe(y).dataIndex!=null},!0);if(d){var m=d.selected?"unselect":"select",g=xe(d);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=[],v=!1;if(c.eachComponent(function(y,_){var x=_.get("zlevel")||0,S=_.get("z")||0,b=_.getZLevelKey();v=v||!!b,(y==="series"?h:p).push({zlevel:x,z:S,idx:_.componentIndex,type:y,key:b})}),v){var d=p.concat(h),m,g;Un(d,function(y,_){if(y.zlevel===_.zlevel)return y.z-_.z;return y.zlevel-_.zlevel}),w(d,function(y){var _=c.getComponent(y.type,y.idx),{zlevel:x,key:S}=y;if(m!=null)x=Math.max(m,x);if(S){if(x===m&&S!==g)x++;g=S}else if(g){if(x===m)x++;g=""}m=x,_.setZLevel(x)})}}pm=function(c,p,h,v,d){n(p),qT(c,p,h,v,d),w(c._chartsViews,function(m){m.__alive=!1}),Yc(c,p,h,v,d),w(c._chartsViews,function(m){if(!m.__alive)m.remove(p,h)})},qT=function(c,p,h,v,d,m){w(m||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,p,h,v),l(y,g),f(y,g)})},Yc=function(c,p,h,v,d,m){var g=c._scheduler;d=N(d||{},{updatedSeries:p.getSeries()}),sr.trigger("series:beforeupdate",p,h,d);var y=!1;p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];x.__alive=!0;var S=x.renderTask;if(g.updatePayload(S,v),u(_,x),m&&m.get(_.uid))S.dirty();if(S.perform(g.getPerformArgs(S)))y=!0;x.group.silent=!!_.get("silent"),s(_,x),Wv(_)}),g.unfinished=y||g.unfinished,sr.trigger("series:layoutlabels",p,h,d),sr.trigger("series:transition",p,h,d),p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];l(_,x),f(_,x)}),o(c,p),sr.trigger("series:afterupdate",p,h,d)},xr=function(c){c[sm]=!0,c.getZr().wakeUp()},qo=function(c){c[Vc]=(c[Vc]+1)%1e6},KT=function(c){if(!c[sm])return;c.getZr().storage.traverse(function(p){if(ca(p))return;a(p)}),c[sm]=!1};function a(c){var p=[],h=c.currentStates;for(var v=0;v<h.length;v++){var d=h[v];if(!(d==="emphasis"||d==="blur"||d==="select"))p.push(d)}if(c.selected&&c.states.select)p.push("select");if(c.hoverState===Zs&&c.states.emphasis)p.push("emphasis");else if(c.hoverState===qs&&c.states.blur)p.push("blur");c.useStates(p)}function o(c,p){var h=c._zr;if(h.painter.type!=="canvas")return;var v=h.storage,d=0;v.traverse(function(g){if(!g.isGroup)d++});var m=d>G(p.get("hoverLayerThreshold"),hc.hoverLayerThreshold)&&!ne.node&&!ne.worker;if(c._usingTHL||m)p.eachSeries(function(g){if(g.preventUsingHoverLayer)return;var y=c._chartsMap[g.__viewId];if(y.__alive)y.eachRendered(function(_){var x=_.states.emphasis;if(x&&x.hoverLayer!==pa)x.hoverLayer=m?od:ad})}),c._usingTHL=m}function s(c,p){var h=c.get("blendMode")||null;p.eachRendered(function(v){if(!v.isGroup)v.style.blend=h})}function l(c,p){if(c.preventAutoZ)return;var h=al(c);p.eachRendered(function(v){return ol(v,h.z,h.zlevel),!0})}function u(c,p){p.eachRendered(function(h){if(ca(h))return;var v=h.getTextContent(),d=h.getTextGuideLine();if(h.stateTransition)h.stateTransition=null;if(v&&v.stateTransition)v.stateTransition=null;if(d&&d.stateTransition)d.stateTransition=null;if(h.hasState())h.prevStates=h.currentStates,h.clearStates();else if(h.prevStates)h.prevStates=null})}function f(c,p){var h=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),d=h.get("duration"),m=d>0?{duration:d,delay:h.get("delay"),easing:h.get("easing")}:null;p.eachRendered(function(g){if(g.states&&g.states.emphasis){if(ca(g))return;if(g instanceof ie)Ax(g);if(g.__dirty){var y=g.prevStates;if(y)g.useStates(y)}if(v){g.stateTransition=m;var _=g.getTextContent(),x=g.getTextGuideLine();if(_)_.stateTransition=m;if(x)x.stateTransition=m}if(g.__dirty)a(g)}})}ZT=function(c){return new(function(p){P(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(v){while(v){var d=v.__ecComponentInfo;if(d!=null)return c._model.getComponent(d.mainType,d.index);v=v.parent}},h.prototype.enterEmphasis=function(v,d){Ti(v,d),xr(c)},h.prototype.leaveEmphasis=function(v,d){wi(v,d),xr(c)},h.prototype.enterBlur=function(v){xf(v),xr(c)},h.prototype.leaveBlur=function(v){Qs(v),xr(c)},h.prototype.enterSelect=function(v){Hv(v),xr(c)},h.prototype.leaveSelect=function(v){Gv(v),xr(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},h.prototype.getECUpdateCycleVersion=function(){return c[Vc]},h.prototype.usingTHL=function(){return c._usingTHL},h}(df))(c)},s1=function(c){function p(h,v){for(var d=0;d<h.length;d++){var m=h[d];m[lm]=v}}w(Xc,function(h,v){c._messageCenter.on(v,function(d){if(jT[c.group]&&c[lm]!==YT){if(d&&d.escapeConnect)return;var m=c.makeActionFromEvent(d),g=[];w(Cl,function(y){if(y!==c&&y.group===c.group)g.push(y)}),p(g,YT),w(g,function(y){if(y[lm]!==SN)y.dispatchAction(m)}),p(g,bN)}})})}}(),e}(Et),ym=l1.prototype;ym.on=r1("on");ym.off=r1("off");ym.one=function(t,e,r){var i=this;tr("ECharts#one is deprecated.");function n(){var a=[];for(var 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 TN=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Xt(t){Ue("Instance "+t+" has been disposed")}var Wc={},Xc={},hm={},vm=[],dm=[],qc=[],u1={},mm={},Cl={},jT={},wN=+new Date-0,p4=+new Date-0,_m="_echarts_instance_";function f1(t,e,r){var i=!(r&&r.ssr);if(i){if(!t)throw Error("Initialize failed: invalid dom.");var n=CN(t);if(n)return Ue("There is a chart instance already initialized on the dom."),n;if(Fi(t)&&t.nodeName.toUpperCase()!=="CANVAS"&&(!t.clientWidth&&(!r||r.width==null)||!t.clientHeight&&(!r||r.height==null)))Ue("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var a=new l1(t,e,r);return a.id="ec_"+wN++,Cl[a.id]=a,i&&lv(t,_m,a.id),s1(a),sr.trigger("afterinit",a),a}function CN(t){return Cl[l_(t,_m)]}function c1(t,e){u1[t]=e}function xm(t){if(ue(dm,t)<0)dm.push(t)}function Sm(t,e){bm(vm,t,e,dN)}function p1(t){Kc("afterinit",t)}function h1(t){Kc("afterupdate",t)}function Kc(t,e){sr.on(t,e)}function Pa(t,e,r){var i,n,a,o,s;if(X(e))r=e,e="";if(W(t)){if(i=t.type,n=t.event,o=t.update,s=t.publishNonRefinedEvent,!r)r=t.action;a=t.refineEvent}else i=t,n=e;function l(f){return f.toLowerCase()}n=l(n||i);var u=a?l(i):n;if(Wc[i])return;if(I(GT.test(i)&>.test(n)),a)I(n!==i);if(Wc[i]={actionType:i,refinedEventType:n,nonRefinedEventType:u,update:o,action:r,refineEvent:a},hm[n]=1,a&&s)hm[u]=1;if(Xc[u])pe(u+' must not be shared; use "refineEvent" if you intend to share an event name.');Xc[u]=i}function v1(t,e){sl.register(t,e)}function d1(t,e){bm(qc,t,e,QT,"layout",!0)}function _n(t,e){bm(qc,t,e,JT,"visual",!0)}var $T=[];function bm(t,e,r,i,n,a){if(X(e)||W(e))r=e,e=i;if(isNaN(e)||e==null)throw Error("Illegal priority");if(w(t,function(s){I(s.__raw!==r)}),ue($T,r)>=0)return;$T.push(r);var o=Qd.wrapStageHandler(r,n);if(o.__prio=e,o.__raw=r,t.push(o),a)I(!o.dirtyOnOverallProgress,"dirtyOnOverallProgress is not allowed in "+n+" stage; otherwise progressive rendering is disabled on all series.")}function Tm(t,e){mm[t]=e}function m1(t,e,r){var i=dT("registerMap");i&&i(t,e,r)}var g1=Ab;_n(gm,$b);_n(Zc,Qb);_n(Zc,Jb);_n(gm,uT);_n(Zc,fT);_n(e1,VT);xm(_c);Sm(pN,db);Tm("default",$d);Pa({type:un,event:un,update:un},Pe);Pa({type:Ks,event:Ks,update:Ks},Pe);Pa({type:js,event:yf,update:js,action:Pe,refineEvent:wm,publishNonRefinedEvent:!0});Pa({type:gf,event:yf,update:gf,action:Pe,refineEvent:wm,publishNonRefinedEvent:!0});Pa({type:$s,event:yf,update:$s,action:Pe,refineEvent:wm,publishNonRefinedEvent:!0});function wm(t,e,r,i){return{eventContent:{selected:bx(r),isFromClick:e.isFromClick||!1}}}c1("default",{});c1("dark",oT);function Al(t){return t==null?0:t.length||1}function y1(t){return t}var AN=function(){function t(e,r,i,n,a,o){this._old=e,this._new=r,this._oldKeyGetter=i||y1,this._newKeyGetter=n||y1,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=Array(e.length),a=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=Al(l);if(u>1){var f=l.shift();if(l.length===1)i[s]=l[0];this._update&&this._update(f,o)}else if(u===1)i[s]=null,this._update&&this._update(l,o);else 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=Al(u),p=Al(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=Al(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else if(o===1)this._add&&this._add(a);r[n]=null}},t.prototype._initIndexMap=function(e,r,i,n){var a=this._diffModeMultiple;for(var o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(!a)i[o]=s;if(!r)continue;var l=r[s],u=Al(l);if(u===0){if(r[s]=o,a)i.push(s)}else if(u===1)r[s]=[l,o];else l.push(o)}},t}(),_1=AN;var EN=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(){if(!this._cachedDimNames)this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[];return this._cachedDimNames},t}();function x1(t,e){var r={},i=r.encode={},n=Z(),a=[],o=[],s={};w(t.dimensions,function(p){var h=t.getDimensionInfo(p),v=h.coordDim;if(v){I(Xs.get(v)==null);var d=h.coordDimIndex;if(Cm(i,v)[d]=p,!h.isExtraCoord){if(n.set(v,1),DN(h.type))a[0]=p;Cm(s,v)[d]=t.getDimensionIndex(h.name)}if(h.defaultTooltip)o.push(p)}Xs.each(function(m,g){var y=Cm(i,g),_=h.otherDims[g];if(_!=null&&_!==!1)y[_]=h.name})});var l=[],u={};n.each(function(p,h){var v=i[h];u[h]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=U(l,function(p){return t.getDimensionInfo(p).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=i.label;if(f&&f.length)a=f.slice();var c=i.tooltip;if(c&&c.length)o=c.slice();else if(!o.length)o=a.slice();return i.defaultedLabel=a,i.defaultedTooltip=o,r.userOutput=new EN(s,e),r}function Cm(t,e){if(!t.hasOwnProperty(e))t[e]=[];return t[e]}function S1(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function DN(t){return!(t==="ordinal"||t==="time")}var MN=function(){function t(e){if(this.otherDims={},e!=null)N(this,e)}return t}(),Zo=MN;var ON=ee(),LN={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Am=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){if(this._dimOmitted=e,!e)return;if(!this._dimNameMap)this._dimNameMap=Em(this.source)},t.prototype.getSourceDimensionIndex=function(e){return G(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){var e=this._fullDimCount,r=Sc(this.source),i=!Dm(e),n="",a=[];for(var 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);if(p)l=r?p.name:null,u=p.type}if(a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord))n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l;if(n+="$",n+=LN[u]||"f",f)n+=f.uid;n+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,n].join("$$");return{dimensions:a,hash:v}},t.prototype.makeOutputDimensionNames=function(){var e=[];for(var r=0,i=0;r<this._fullDimCount;r++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===r){if(!a.isCalculationCoord)n=a.name;i++}else{var o=this.getSourceDimension(r);if(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 jc(t){return t instanceof Am}function El(t){var e=Z();for(var r=0;r<(t||[]).length;r++){var i=t[r],n=W(i)?i.name:i;if(n!=null&&e.get(n)==null)e.set(n,r)}return e}function Em(t){var e=ON(t);return e.dimNameMap||(e.dimNameMap=El(t.dimensionsDefine))}function Dm(t){return t>30}var Dl=W,xn=U,PN=typeof Int32Array>"u"?Array:Int32Array,IN="e\x00\x00",b1=-1,NN=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],RN=["_approximateExtent"],T1,$c,Ml,Ko,Mm,Ol,Om,kN=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;if(jc(e))i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e;else n=!0,i=e;i=i||["x","y"];var a={},o=[],s={},l=!1,u={};for(var f=0;f<i.length;f++){var c=i[f],p=V(c)?new Zo({name:c}):!(c instanceof Zo)?new Zo(c):c,h=p.name;if(p.type=p.type||"float",!p.coordDim)p.coordDim=h,p.coordDimIndex=0;var v=p.otherDims=p.otherDims||{};if(o.push(h),a[h]=p,u[h]!=null)l=!0;if(p.createInvertedIndices)s[h]=[];if(I(n||p.storeDimIndex>=0),n)p.storeDimIndex=f;if(v.itemName===0)this._nameDimIdx=p.storeDimIndex;if(v.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 d=this._dimIdxToName=Z();w(o,function(m){d.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(se(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);if(r==null)throw Error("Unknown dimension "+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 ml)a=e;if(!a){var o=this.dimensions,s=Vo(e)||et(e)?new wc(e,o.length):e;a=new ml;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=x1(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),{start:n,end:a}=i,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=n;s<a;s++){var l=s-n;if(this._nameList[s]=r[l],o)Om(this,s)}},t.prototype._updateOrdinalMeta=function(){var e=this._store,r=this.dimensions;for(var i=0;i<r.length;i++){var n=this._dimInfos[r[i]];if(n.ordinalMeta)e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==ir&&!e.fillStorage},t.prototype._doInit=function(e,r){if(e>=r)return;var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===at;if(l&&!n.pure){var u=[];for(var f=e;f<r;f++){var c=n.getItem(f,u);if(!this.hasItemOption&&i_(c))this.hasItemOption=!0;if(c){var p=c.name;if(a[f]==null&&p!=null)a[f]=rr(p,null);var h=c.id;if(o[f]==null&&h!=null)o[f]=rr(h,null)}}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)Om(this,f);T1(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){Dl(e)?N(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),i=this._nameList[r];if(i==null&&this._nameDimIdx!=null)i=Ml(this,this._nameDimIdx,r);if(i==null)i="";return i},t.prototype._getCategory=function(e,r){var i=this._store.get(e,r),n=this._store.getOrdinalMeta(e);if(n)return n.categories[i];return i},t.prototype.getId=function(e){return $c(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 k(e)?n.getValues(xn(e,function(a){return i._getStoreDimIndex(a)}),r):n.getValues(e)},t.prototype.hasValue=function(e){var r=this._dimSummary.dataDimIndicesOnCoord;for(var 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];if(!i)throw Error("Do not supported yet");var n=i&&i[r];if(n==null||isNaN(n))return b1;return n},t.prototype.each=function(e,r,i){if(X(e))i=r,r=e,e=[];var n=i||this,a=xn(Ko(e),this._getStoreDimIndex,this);this._store.each(a,n?me(r,n):r)},t.prototype.filterSelf=function(e,r,i){if(X(e))i=r,r=e,e=[];var n=i||this,a=xn(Ko(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?me(r,n):r),this},t.prototype.selectRange=function(e){var r=this,i={},n=re(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){if(X(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){var a=i||n||this,o=xn(Ko(e),this._getStoreDimIndex,this),s=Ol(this);return s._store=this._store.map(o,a?me(r,a):r),s},t.prototype.modify=function(e,r,i,n){var a=this,o=i||n||this;w(Ko(e),function(l){var u=a.getDimensionInfo(l);if(!u.isCalculationCoord)console.error("Danger: only stack dimension can be modified")});var s=xn(Ko(e),this._getStoreDimIndex,this);this._store.modify(s,o?me(r,o):r)},t.prototype.downSample=function(e,r,i,n){var a=Ol(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,i,n),a},t.prototype.minmaxDownSample=function(e,r){var i=Ol(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),i},t.prototype.lttbDownSample=function(e,r){var i=Ol(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 Re(i,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new _1(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return $c(e,i)},function(i){return $c(r,i)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){if(this._visual=this._visual||{},Dl(e))N(this._visual,e);else this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var i=this._itemVisuals[e],n=i&&i[r];if(n==null)return this.getVisual(r);return n},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var i=this._itemVisuals,n=i[e];if(!n)n=i[e]={};var a=n[r];if(a==null){if(a=this.getVisual(r),k(a))a=a.slice();else if(Dl(a))a=N({},a);n[r]=a}return a},t.prototype.setItemVisual=function(e,r,i){var n=this._itemVisuals[e]||{};if(this._itemVisuals[e]=n,Dl(r))N(n,r);else n[r]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Dl(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;ax(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){if(i)e&&e.call(r,i,n)})},t.prototype.cloneShallow=function(e){if(!e)e=new t(this._schema?this._schema:xn(this.dimensions,this._getDimInfo,this),this.hostModel);return Mm(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var i=this[e];if(!X(i))return;this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=i.apply(this,arguments);return r.apply(this,[n].concat(fu(arguments)))}},t.internalField=function(){T1=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 PN(o.categories.length);for(var l=0;l<i.length;l++)i[l]=b1;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},Ml=function(e,r,i){return rr(e._getCategory(r,i),null)},$c=function(e,r){var i=e._idList[r];if(i==null&&e._idDimIdx!=null)i=Ml(e,e._idDimIdx,r);if(i==null)i=IN+r;return i},Ko=function(e){if(!k(e))e=e!=null?[e]:[];return e},Ol=function(e){var r=new t(e._schema?e._schema:xn(e.dimensions,e._getDimInfo,e),e.hostModel);return Mm(r,e),r},Mm=function(e,r){w(NN.concat(r.__wrappedMethods||[]),function(i){if(r.hasOwnProperty(i))e[i]=r[i]}),e.__wrappedMethods=r.__wrappedMethods,w(RN,function(i){e[i]=te(r[i])}),e._calculationInfo=N({},r._calculationInfo)},Om=function(e,r){var{_nameList:i,_idList:n,_nameDimIdx:a,_idDimIdx:o}=e,s=i[r],l=n[r];if(s==null&&a!=null)i[r]=s=Ml(e,a,r);if(l==null&&o!=null)n[r]=l=Ml(e,o,r);if(l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;if(l=s,f>1)l+="__ec__"+f;n[r]=l}}}(),t}(),Sn=kN;function Ll(t,e){if(!Vo(t))t=Ho(t);e=e||{};var r=e.coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],n=Z(),a=[],o=BN(t,r,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Dm(o),l=i===t.dimensionsDefine,u=l?Em(t):El(i),f=e.encodeDefine;if(!f&&e.encodeDefaulter)f=e.encodeDefaulter(t,o);var c=Z(f),p=new Yd(o);for(var h=0;h<p.length;h++)p[h]=-1;function v(C){var E=p[C];if(E<0){var D=i[C],O=W(D)?D:{name:D},M=new Zo,L=O.name;if(L!=null&&u.get(L)!=null)M.name=M.displayName=L;O.type!=null&&(M.type=O.type),O.displayName!=null&&(M.displayName=O.displayName);var B=a.length;return p[C]=B,M.storeDimIndex=C,a.push(M),M}return a[E]}if(!s)for(var h=0;h<o;h++)v(h);c.each(function(C,E){var D=Ne(C).slice();if(D.length===1&&!V(D[0])&&D[0]<0){c.set(E,!1);return}var O=c.set(E,[]);w(D,function(M,L){var B=V(M)?u.get(M):M;if(B!=null&&B<o)O[L]=B,m(v(B),E,L)})});var d=0;w(r,function(C){var E,D,O,M;if(V(C))E=C,M={};else{M=C,E=M.name;var L=M.ordinalMeta;M.ordinalMeta=null,M=N({},M),M.ordinalMeta=L,D=M.dimsDef,O=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var B=c.get(E);if(B===!1)return;if(B=Ne(B),!B.length)for(var R=0;R<(D&&D.length||1);R++){while(d<o&&v(d).coordDim!=null)d++;d<o&&B.push(d++)}w(B,function(F,z){var H=v(F);if(l&&M.type!=null)H.type=M.type;if(m(oe(H,M),E,z),H.name==null&&D){var Y=D[z];!W(Y)&&(Y={name:Y}),H.name=H.displayName=Y.name,H.defaultTooltip=Y.defaultTooltip}O&&oe(H.otherDims,O)})});function m(C,E,D){if(Xs.get(E)!=null)C.otherDims[E]=D;else C.coordDim=E,C.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(C){if(C.name==null)C.name=C.coordDim}if(!s)for(var b=0;b<o;b++){var T=v(b),A=T.coordDim;if(A==null){if(T.coordDim=zN(x,n,_),T.coordDimIndex=0,!g||y<=0)T.isExtraCoord=!0;y--}if(S(T),T.type==null&&(dc(t,b)===ot.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null)))T.type="ordinal"}else w(a,function(C){S(C)}),a.sort(function(C,E){return C.storeDimIndex-E.storeDimIndex});return vo(a,function(C){return C.name},function(C,E){if(E>0)C.name=C.name+(E-1)}),new Am({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function BN(t,e,r,i){var n=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,i||0);return w(e,function(a){var o;if(W(a)&&(o=a.dimsDef))n=Math.max(n,o.length)}),n}function zN(t,e,r){if(r||e.hasKey(t)){var i=0;while(e.hasKey(t+i))i++;t+=i}return e.set(t,!0),t}var UN=function(){function t(e){this.coordSysDims=[],this.axisMap=Z(),this.categoryAxisMap=Z(),this.coordSysName=e}return t}();function w1(t){var e=t.get("coordinateSystem"),r=new UN(e),i=FN[e];if(i)return i(t,r,r.axisMap,r.categoryAxisMap),r}var FN={cartesian2d:function(t,e,r,i){var n=t.getReferringComponents("xAxis",mt).models[0],a=t.getReferringComponents("yAxis",mt).models[0];if(!n)throw Error('xAxis "'+Cr(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!a)throw Error('yAxis "'+Cr(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found');if(e.coordSysDims=["x","y"],r.set("x",n),r.set("y",a),jo(n))i.set("x",n),e.firstCategoryDimIndex=0;if(jo(a))i.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1)},singleAxis:function(t,e,r,i){var n=t.getReferringComponents("singleAxis",mt).models[0];if(!n)throw Error("singleAxis should be specified.");if(e.coordSysDims=["single"],r.set("single",n),jo(n))i.set("single",n),e.firstCategoryDimIndex=0},polar:function(t,e,r,i){var n=t.getReferringComponents("polar",mt).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");if(!o)throw Error("angleAxis option not found");if(!a)throw Error("radiusAxis option not found");if(e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),jo(a))i.set("radius",a),e.firstCategoryDimIndex=0;if(jo(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];if(r.set(f,u),jo(u)){if(i.set(f,u),e.firstCategoryDimIndex==null)e.firstCategoryDimIndex=l}})},matrix:function(t,e,r,i){var n=t.getReferringComponents("matrix",mt).models[0];if(!n)throw Error("matrix coordinate system should be specified.");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 jo(t){return t.get("type")==="category"}function C1(t,e,r){r=r||{};var i=r.byIndex,n=r.stackedCoordDimension,a,o,s;if(VN(e))a=e;else o=e.schema,a=o.dimensions,s=e.store;var l=!!(t&&t.get("stack")),u,f,c,p,h=!0;function v(x){return x.type!=="ordinal"&&x.type!=="time"}if(w(a,function(x,S){if(V(x))a[S]=x={name:x};if(!v(x))h=!1}),w(a,function(x,S){if(l&&!x.isExtraCoord){if(!i&&!u&&x.ordinalMeta)u=x;if(!f&&v(x)&&(!h||x.coordDim!=="x"&&x.coordDim!=="angle")&&(!n||n===x.coordDim))f=x}}),f&&!i&&!u)i=!0;if(f){if(c="__\x00ecstackresult_"+t.id,p="__\x00ecstackedover_"+t.id,u)u.createInvertedIndices=!0;var d=f.coordDim,m=f.type,g=0;w(a,function(x){if(x.coordDim===d)g++});var y={name:c,coordDim:d,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};if(o){if(s)y.storeDimIndex=s.ensureCalculationDimension(p,m),_.storeDimIndex=s.ensureCalculationDimension(c,m);o.appendCalculationDimension(y),o.appendCalculationDimension(_)}else a.push(y),a.push(_)}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:c}}function VN(t){return!jc(t.schema)}function kr(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Qc(t,e){return kr(t,e)?t.getCalculationInfo("stackResultDimension"):e}function HN(t,e){var r=t.get("coordinateSystem"),i=sl.get(r),n;if(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=S1(l)}return o});if(!n)n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"];return n}function GN(t,e,r){var i,n;if(r&&w(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);if(l){if(i==null)i=o;if(a.ordinalMeta=l.getOrdinalMeta(),e)a.createInvertedIndices=!0}if(a.otherDims.itemName!=null)n=!0}),!n&&i!=null)t[i].otherDims.itemName=0;return i}function YN(t,e,r){r=r||{};var i=e.getSourceManager(),n,a=!1;if(t)a=!0,n=Ho(t);else n=i.getSource(),a=n.sourceFormat===at;var o=w1(e),s=HN(e,o),l=r.useEncodeDefaulter,u=X(l)?l:l?Ae(KS,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=Ll(n,f),p=GN(c.dimensions,r.createInvertedIndices,o),h=!a?i.getSharedDataStore(c):null,v=C1(e,{schema:c,store:h}),d=new Sn(c,e);d.setCalculationInfo(v);var m=p!=null&&WN(n)?function(g,y,_,x){return x===p?_:this.defaultDimValueGetter(g,y,_,x)}:null;return d.hasItemOption=!1,d.initData(a?n:h,null,m),d}function WN(t){if(t.sourceFormat===at){var e=XN(t.data||[]);return!k(yi(e))}}function XN(t){var e=0;while(e<t.length&&t[e]==null)e++;return t[e]}var $o=YN;var A1=function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();rn(A1);var It=A1;var qN=0,ZN=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++qN,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,i=r.data,n=i&&U(i,KN);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(!V(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();if(r=n.get(e),r==null)if(i)r=this.categories.length,this.categories[r]=e,n.set(e,r),this._onCollect&&this._onCollect(e,r);else r=NaN;return r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Z(this.categories))},t}();function KN(t){if(W(t)&&t.value!=null)return t.value;else return t+""}var Pl=ZN;var qt=0,Qo=1,jN={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},D1=re(jN),Jo=2,M1=3;function es(t,e,r){var i;t=t||{};var n=Ye();if(n){var a=n.createBreakScaleMapper(e,r);if(a.hasBreaks())w(D1,function(o){if(a[o])t[o]=me(a[o],a)}),i=a}if(i==null)$N(t,r);return{brk:i,mapper:t}}function Jc(t,e){w(D1,function(r){t[r]=e[r]})}function ep(t,e){t.freeze=Pe,t.freeze=function(){e.freeze()}}function Pi(t){return t.getExtentUnsafe(qt,Jo)}function Ia(t,e){return t.getExtentUnsafe(Qo,e)||t.getExtentUnsafe(qt,e)}function O1(t){var e=Ia(t,M1);return e[1]-e[0]}function ts(t){var e=t.getExtentUnsafe(qt,M1);return e[1]-e[0]}function $N(t,e){var r=t||{},i=[];return r._extents=i,i[qt]=e?e.slice():gt(),N(r,QN),r}var QN={needTransform:function(){return!1},normalize:function(t){var e=this._extents[Qo]||this._extents[qt];if(e[1]===e[0])return 0.5;return(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[Qo]||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=Ia(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){I(!this._frozen),E1(this._extents,qt,t,e)},setExtent2:function(t,e,r){I(!this._frozen);var i=this._extents;if(!i[t])i[t]=i[qt].slice();E1(i,t,e,r)},freeze:function(){this._frozen=!0}};function E1(t,e,r,i){if(_i(r,i))t[e][0]=r,t[e][1]=i;else if(r!=null&&i!=null&&r<=i)pe("Invalid setExtent call - start: "+r+", end: "+i)}function tp(t){return rs(t)||li(t)}function rs(t){return t.type==="interval"}function is(t){return t.type==="time"}function li(t){return t.type==="log"}function pt(t){return t.type==="ordinal"}function L1(t){var e=$u(t),r=Qi(10,e),i=er(t/r);if(!i)i=1;else if(i===2)i=3;else if(i===3)i=5;else i*=2;return de(i*r,-e)}function Br(t){return Ut(t)+2}function Il(t,e){return po(t)/po(e)}function rp(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 ip(t,e,r){var i=t.slice();if(i[0]===i[1]){var n=r&&r.ctnShp;if(i[0]!==0){var a=Ie(i[0]);if(!e[1])i[1]+=a/2,i[0]-=a/2;else i[0]-=a/2}else if(n)i[0]=-1,i[1]=1;else i[1]=1}if(!Or(i[0])||!Or(i[1]))i[0]=0,i[1]=1;if(i[1]<i[0])i.reverse();return i}function P1(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function Nl(t,e){return t=t||e,er(ve(t,1))}function np(t,e,r){var i=Pi(t),n=i[0],a=t.count(),o=Math.max((e||0)+1,1);if(n!==0&&o>1&&a/o>2)n=Math.round(Math.ceil(n/o)*o);if(n!==i[0])l(i[0],!0,!0);var s=n;for(;s<=i[1];s+=o)l(s,!1,s===i[0]||s===i[1]);if(s-o!==i[1])l(i[1],!0,!0);function l(u,f,c){r({value:u,offInterval:f},c)}}var I1=function(t){P(e,t);function e(r){var i=t.call(this)||this;i.type="ordinal",i.parse=e.parse,Jc(i,e.decoratedMethods);var n=r.ordinalMeta;if(!n)n=new Pl({});if(k(n))n=new Pl({categories:U(n,function(o){return W(o)?o.value:o})});i._ordinalMeta=n;var a=es(null,null,r.extent||[0,n.categories.length-1]);return i._mapper=a.mapper,ep(i,a.mapper),i}return e.parse=function(r){if(r==null)r=NaN;else if(V(r)){if(r=this._ordinalMeta.getOrdinal(r),r==null)r=NaN}else r=er(r);return r},e.prototype.getTicks=function(){var r=[];return np(this,0,function(i){r.push(i)}),r},e.prototype.getMinorTicks=function(r){return},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}var i=r.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length;for(var l=Ge(s,i.length);o<l;++o){var u=n[o]=i[o];a[u]=o}var f=0;for(;o<s;++o){while(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=Pi(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(er(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}(It);It.registerClass(I1);var N1=I1;function ns(t,e,r,i){var n=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent();for(var s=1;s<n.length;s++){var l=n[s],u=n[s-1];if(u.break||l.break)continue;var f=0,c=[],p=l.value-u.value,h=p/e,v=Br(h);while(f<e-1){var d=de(u.value+(f+1)*h,v);if(d>o[0]&&d<o[1])c.push(d);f++}var m=Ye();m&&m.pruneTicksByBreak("auto",c,r,function(g){return g},i,o),a.push(c)}return a}var R1=function(t){P(e,t);function e(r){var i=t.call(this)||this;i.type="interval",i.parse=e.parse,r=r||{};var n=Xf(i,r),a=es(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 te(this._cfg)},e.prototype.setConfig=function(r){var i=Pi(this);if(I(r.interval!=null),r.intervalCount!=null)I(r.intervalCount>=-1&&r.intervalPrecision!=null&&!gr(this));if(r.niceExtent!=null)I(isFinite(r.niceExtent[0])&&isFinite(r.niceExtent[1])),I(i[0]<=r.niceExtent[0]&&r.niceExtent[1]<=i[1]),I(de(r.niceExtent[0]-r.niceExtent[1],Ut(r.interval))<=r.interval);if(this._cfg=r=te(r),r.niceExtent==null)r.niceExtent=i.slice();if(r.intervalPrecision==null)r.intervalPrecision=Br(r.interval)},e.prototype.getTicks=function(r){r=r||{};var i=this._cfg,n=i.interval,a=Pi(this),{niceExtent:o,intervalPrecision:s}=i,l=Ye(),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;I(o!=null);var p=3000;if(a[0]<o[0])c.push({value:r.expandToNicedExtent?de(o[0]-n,s):a[0]});var h=function(_,x){return er((x-_)/n)},v=i.intervalCount;for(var d=o[0],m=0;;m++){if(v==null){if(d>o[1]||!isFinite(d)||!isFinite(o[1]))break}else{if(m>v)break;if(d=Ge(d,o[1]),m===v)d=o[1]}if(c.push({value:d}),d=de(d+n,s),u){var g=u.calcNiceTickMultiple(d,h);if(g>=0)d=de(d+g*n,s)}if(c.length>0&&d===c[c.length-1].value)break;if(c.length>p)return Ue('Exceed safe limit in IntervalScale["getTicks"].'),[]}var y=c.length?c[c.length-1].value:o[1];if(a[1]>y)c.push({value:r.expandToNicedExtent?de(y+n,s):a[1]});if(f)l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(_){return _.value},i.interval,a);if(f&&r.breakTicks!=="none")l.addBreaksToTicks(c,u.breaks,a);return c},e.prototype.getMinorTicks=function(r){return ns(this,r,ga(this),this._cfg.interval)},e.prototype.getLabel=function(r,i){if(r==null)return"";var n=i&&i.precision;if(n==null)n=Ut(r.value)||0;else if(n==="auto")n=this._cfg.intervalPrecision;var a=de(r.value,n,!0);return Ad(a)},e.type="interval",e}(It);It.registerClass(R1);var ui=R1;var JN=function(t,e,r,i){while(r<i){var n=r+i>>>1;if(t[n][1]<e)r=n+1;else i=n}return r},B1=function(t){P(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=Xf(i,r),a=es(i,n,null);return i.brk=a.brk,i}return e.prototype.getLabel=function(r){return ya(r.value,gd[NS(ko(this._minLevelUnit))]||gd.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,i,n){return RS(r,i,n,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var i=this._interval,n=Pi(this),a=Ye(),o=this.brk,s=a&&o,l=[];if(!i)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return Ye().addBreaksToTicks(l,o.breaks,n),l;l=oR(this._minLevelUnit,this._approxInterval,u,n,ts(this),o);var f=Wt.length-1,c=0;if(w(l,function(p){if(p.time)f=Math.min(f,ue(Wt,p.time.upperTimeUnit)),c=Math.max(c,p.time.level)}),s)Ye().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(p){return p.value},this._approxInterval,n);if(s&&r.breakTicks!=="none")Ye().addBreaksToTicks(l,o.breaks,n,function(p){var h=Math.max(ue(Wt,_a(p.vmin,u)),ue(Wt,_a(p.vmax,u))),v=0;for(var d=0;d<Wt.length;d++)if(!z1(Wt[d],p.vmin,p.vmax,u)){v=d;break}var m=Math.min(v,f),g=Math.max(m,h);return{level:c,lowerTimeUnit:Wt[g],upperTimeUnit:Wt[m]}});return l},e.prototype.getMinorTicks=function(r){return ns(this,r,ga(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 se(r)?Math.round(r):+Zr(r)},e.type="time",e}(It),ap=[["second",Kf],["minute",jf],["hour",Ro],["quarter-day",Ro*6],["half-day",Ro*12],["day",ar*1.2],["half-week",ar*3.5],["week",ar*7],["month",ar*31],["quarter",ar*95],["half-year",md/2],["year",md]];function z1(t,e,r,i){return $f(new Date(e),t,i).getTime()===$f(new Date(r),t,i).getTime()}function eR(t,e){return t/=ar,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function tR(t){var e=30*ar;return t/=e,t>6?6:t>3?3:t>2?2:1}function rR(t){return t/=Ro,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function k1(t,e){return t/=e?jf:Kf,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function iR(t){return ve(Zn(t,!0),1)}function nR(t,e,r){var i=Math.max(0,ue(Wt,e)-1);return $f(new Date(t),Wt[i],r).getTime()}function aR(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=3000,s=LS,l=0;function u(R,F,z,H,Y,q,Q){var J=aR(Y,R),j=F,ce=new Date(j);while(j<z&&j<=i[1]){if(Q.push({value:j}),l++>o){Ue('Exceed safe limit in TimeScale["getTicks"].');break}if(ce[Y](ce[H]()+R),j=ce.getTime(),a){var ye=a.calcNiceTickMultiple(j,J);if(ye>0)ce[Y](ce[H]()+ye*R),j=ce.getTime()}}Q.push({value:j,notAdd:j>i[1]})}function f(R,F,z){var H=[],Y=!F.length;if(z1(ko(R),i[0],i[1],r))return;if(Y)F=[{value:nR(i[0],R,r)},{value:i[1]}];for(var q=0;q<F.length-1;q++){var Q=F[q].value,J=F[q+1].value;if(Q===J)continue;var j=void 0,ce=void 0,ye=void 0,We=!1;switch(R){case"year":j=Math.max(1,Math.round(e/ar/365)),ce=yd(r),ye=kS(r);break;case"half-year":case"quarter":case"month":j=tR(e),ce=Qf(r),ye=_d(r);break;case"week":case"half-week":case"day":j=eR(e,31),ce=Jf(r),ye=xd(r),We=!0;break;case"half-day":case"quarter-day":case"hour":j=rR(e),ce=ec(r),ye=Sd(r);break;case"minute":j=k1(e,!0),ce=tc(r),ye=bd(r);break;case"second":j=k1(e,!1),ce=rc(r),ye=Td(r);break;case"millisecond":j=iR(e),ce=ic(r),ye=wd(r);break}if(J>=i[0]&&Q<=i[1])u(j,Q,J,ce,ye,We,H);if(R==="year"&&z.length>1&&q===0)z.unshift({value:z[0].value-j})}for(var q=0;q<H.length;q++)z.push(H[q])}var c=[],p=[],h=0,v=0;for(var d=0;d<s.length;++d){var m=ko(s[d]);if(!IS(s[d]))continue;f(s[d],c[c.length-1]||[],p);var g=s[d+1]?ko(s[d+1]):null;if(m!==g){if(p.length){v=h,p.sort(function(R,F){return R.value-F.value});var y=[];for(var _=0;_<p.length;++_){var x=p[_].value;if(_===0||p[_-1].value!==x){if(y.push(p[_]),x>=i[0]&&x<=i[1])h++}}var S=n/e;if(h>S*1.5&&v>S/1.5)break;if(c.push(y),h>S||t===s[d])break}p=[]}}var b=Oe(U(c,function(R){return Oe(R,function(F){return F.value>=i[0]&&F.value<=i[1]&&!F.notAdd})}),function(R){return R.length>0}),T=b.length-1,A=[];for(var d=0;d<b.length;++d){var C=b[d];for(var E=0;E<C.length;++E){var D=_a(C[E].value,r);A.push({value:C[E].value,time:{level:T-d,upperTimeUnit:D,lowerTimeUnit:D}})}}vo(A,h_,null),A.sort(function(R,F){return R.value-F.value});var O=A[0],M=A[A.length-1],L=_a(i[0],r),B=_a(i[1],r);if(!O||O.value>i[0])A.unshift({value:i[0],time:{level:0,upperTimeUnit:L,lowerTimeUnit:L},notNice:!0});if(!M||M.value<i[1])A.push({value:i[1],time:{level:0,upperTimeUnit:B,lowerTimeUnit:B},notNice:!0});return A}var U1=function(t,e){var r=t.getExtent();if(r[0]===r[1])r[0]-=ar,r[1]+=ar;if(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]-ar}t.setExtent(r[0],r[1]);var n=Nl(e.splitNumber,10),a=ts(t)/n,{minInterval:o,maxInterval:s}=e;if(o!=null&&a<o)a=o;if(s!=null&&a>s)a=s;var l=ap.length,u=Math.min(JN(ap,a,0,l),l-1),f=ap[u][1],c=ap[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};It.registerClass(B1);var F1=B1;var op=0,sp=1,sR=2,Y1=function(t){P(e,t);function e(r){var i=t.call(this)||this;i.type="log",i.parse=ui.parse,i.base=r.logBase||10;var n=[],a=[],o=i._lookup={from:n,to:a};n[op]=n[sp]=a[op]=a[sp]=NaN,Jc(i,e.mapperMethods);var s=Ye(),l=r.breakOption,u={lookup:o};if(s)s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},sR,u);return i.powStub=new ui({breakParsed:u.original}),i.intervalStub=new ui({breakParsed:u.transformed}),ep(i,i.intervalStub),i}return e.prototype.getTicks=function(r){var i=this.base,n=this.powStub,a=Ye(),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=rp(c,i,u),h;if(a){var v=a.getTicksBreakOutwardTransform(this,f,ga(n),this._lookup);if(v)h=v.vBreak,p=v.tickVal}return{value:p,break:h}},this)},e.prototype.getMinorTicks=function(r){return ns(this,r,ga(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(Il(r,this.base))},scale:function(r){return rp(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,i){return r=Il(r,this.base),i&&i.depth===Jo?r:this.intervalStub.transformIn(r,i)},transformOut:function(r,i){var n=i?i.depth:null;return V1.depth=n,H1.lookup=this._lookup,rp(n===Jo?r:this.intervalStub.transformOut(r,V1),this.base,H1)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,i){this.setExtent2(qt,r,i)},setExtent2:function(r,i,n){if(!_i(i,n)||i<=0||n<=0)return;var a=G1,o=G1;if(r===qt){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[op]=i,a[sp]=n);var l=this.base;this.intervalStub.setExtent2(r,o[op]=Il(i,l),o[sp]=Il(n,l))},getFilter:function(){return{g:0}},sanitize:function(r,i){if(_i(i[0],i[1])&&qe(r)&&r<=0)r=i[0];return 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}(It);It.registerClass(Y1);var V1={},H1={},G1=[],Rl=Y1;var lp={value:1,category:1,time:1,log:1};var W1=ee();function X1(t){var e=t.get("type");if(e==null||!Be(lp,e)&&!It.getClass(e))e="value";return e}function q1(t,e,r){var i=Ye(),n;if(i)n=Lm(t,e,r);switch(e){case"category":return new N1({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:gt()});case"time":return new F1({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:n});case"log":return new Rl({logBase:t.get("logBase"),breakOption:n});case"value":return new ui({breakOption:n});default:return new(It.getClass(e)||ui)({})}}function Z1(t,e,r){var i=r?Ia(t,null):t.getExtentUnsafe(qt,null),n=i[0],a=i[1];return!_i(n,a)?up:n===e||a===e?uR:n<e&&a>e?lR:up}var lR=1,uR=2,up=3;function K1(t){W1(t).noOnMyZero=!0}function j1(t){return W1(t).noOnMyZero}function kl(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=PS(e);return function(n,a){return t.scale.getFormattedLabel(n,a,r)}}else if(V(e))return function(n){var a=t.scale.getLabel(n),o=e.replace("{value}",a!=null?a:"");return o};else if(X(e)){if(t.type==="category")return function(n,a){return e(as(t,n),n.value-t.scale.getExtent()[0],null)};var i=Ye();return function(n,a){var o=null;if(i)o=i.makeAxisLabelFormatterParamBreak(o,n.break);return e(as(t,n),a,o)}}else return function(n){return t.scale.getLabel(n)}}function as(t,e){var r=t.scale;return pt(r)?r.getLabel(e):e.value}function fp(t){var e=t.get("interval");return e==null?"auto":e}function $1(t){return t.type==="category"&&fp(t.getLabelModel())===0}function Q1(t,e){var r={};return w(t.mapDimensionsAll(e),function(i){r[Qc(t,i)]=!0}),re(r)}function bn(t){return t==="middle"||t==="center"}function Na(t){return t.getShallow("show")}function Lm(t,e,r){var i=t.get("breaks",!0);if(i!=null){if(!Ye()){pe('Must `import {AxisBreak} from "echarts/features.js"; use(AxisBreak);` first if using breaks option.');return}if(!r||!fR(e)){var n=t instanceof be?" "+t.type+"["+t.componentIndex+"]":"";pe("Axis"+n+" does not support break.");return}return i}}function fR(t){return t!=="category"}function cp(t,e,r,i,n,a){var o=li(t),s=o?t.intervalStub:t;if(s.setExtent(i[0],i[1]),o){var l=t.powStub,u={depth:Jo},f=t.transformOut(i[0],u),c=t.transformOut(i[1],u),p=P1(r,i);if(e[0]&&!p[0])f=n[0];if(e[1]&&!p[1])c=n[1];l.setExtent(f,c)}s.setConfig(a)}function Ii(t,e){return pt(t)?t.getRawOrdinalNumber(e.value):e.value}function pp(t,e){return pt(t)&&!!e.get("boundaryGap")}var ew=function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){return},t}();var cR=af(),Bl="|&",os=ee(),vp=-2,tw=-1,pR=ee(),Ra;Ra=function(t){I(t&&t.model&&t.model.uid&&t.model.ecModel)};function Nm(t,e){var r=t.model,i=os(Da(r.ecModel)).keyed,n=i&&i.get(e);return n&&n.get(r.uid)}function rw(t,e){return I(e!=null),Ra(t),aw(Nm(t,e))}function iw(t,e){Ra(t);var r=[];return nw(t.model.ecModel,function(i){for(var n=0;n<e.length;n++)if(e[n]&&i.serByIdx[e[n].seriesIndex])r.push(aw(i))}),r}function nw(t,e){var r=os(Da(t)).keyed;r&&r.each(function(i,n){i.each(function(a,o){e(a,n,o)})})}function aw(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function ow(t,e){Ra(t);var r=t.model.ecModel,i=os(Da(r)).axSer;i&&dp(r,i.get(t.model.uid),e)}function Rm(t,e,r){I(e!=null),Ra(t);var i=Nm(t,e);i&&dp(t.model.ecModel,i.sers,r)}function dp(t,e,r){if(!e)return;for(var i=0;i<e.length;i++){var n=e[i];if(!t.isSeriesFiltered(n))r(n)}}function sw(t,e,r){I(e!=null);var i=os(Da(t)).keyed,n=i&&i.get(e);n&&n.each(function(a){I(a.sers.length>0),r(a.axis)})}function km(t,e){Ra(t);var r=t.model,i=os(Da(r.ecModel)).keys;i&&w(i.get(r.uid),function(n){var a=Nm(t,n);I(a&&a.sers.length>0),e(n)})}function hR(t){var e=pR(_T(t)),r=e.keyed||(e.keyed=Z());nw(t,function(i,n,a){var o=r.get(n)||r.set(n,Z()),s=o.get(a)||o.set(a,{});if(i.metrics.liPosMinGap)uw.liPosMinGap(t,i,s)})}function lw(t,e){uw[t]=e}var uw={};function Bm(t,e,r){if(!t)return;var i=e.ecModel,n=os(Da(i)),a=t.model.uid;Ra(t);var o=n.axSerPairCheck||(n.axSerPairCheck=Z()),s=""+a+Bl+e.uid;I(!o.get(s)),o.set(s,1);var l=n.axSer||(n.axSer=Z()),u=l.get(a)||l.set(a,[]),f=u[u.length-1];if(f)I(f.seriesIndex<e.seriesIndex);u.push(e);var c=e.subType,p=e.getBaseAxis()===t,h=hp.get(Pm(c,p,r))||hp.get(Pm(c,p,null));if(!h)return;var v=n.keyed||(n.keyed=Z()),d=n.keys||(n.keys=Z()),m=h.key,g=v.get(m)||v.set(m,Z()),y=g.get(a);if(!y)y=g.set(a,{axis:t,sers:[],serByIdx:[]}),y.metrics=h.getMetrics(t),(d.get(a)||d.set(a,[])).push(m);y.sers.push(e),y.serByIdx[e.seriesIndex]=e}function Pm(t,e,r){return t+Bl+G(e,!0)+Bl+(r||"")}function fw(t,e){var r=Pm(e.seriesType,e.baseAxis,e.coordSysType);I(e.seriesType&&e.key&&!Im.get(e.key)&&!hp.get(r)),Im.set(e.key,1),hp.set(r,e),cR(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:hR})})}var Im;Im=Z();var hp=Z();var vR=ee(),hw=1,dR=2,mR=3,vw=function(){function t(e,r,i,n,a){var o=pt(e),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var f=i.slice();if(rs(e)||li(e)||is(e))fv(f,zl(e,r.get("dataMin",!0))),cv(f,zl(e,r.get("dataMax",!0)));if(!c_(f))f[0]=f[1]=NaN;var c=[],p=[!1,!1],h=r.get("min",!0);if(h==="dataMin")c[0]=f[0],p[0]=!0;else c[0]=zl(e,X(h)?h({min:f[0],max:f[1]}):h),p[0]=c[0]!=null;var v=r.get("max",!0);if(v==="dataMax")c[1]=f[1],p[1]=!0;else c[1]=zl(e,X(v)?v({min:f[0],max:f[1]}):v),p[1]=c[1]!=null;var d=gR(e,r),m=!o?f[1]-f[0]||Math.abs(f[0]):null;if(c[0]==null)c[0]=o?l?f[0]:s?0:NaN:f[0]-d[0]*m;if(c[1]==null)c[1]=o?l?f[1]:s?s-1:NaN:f[1]+d[1]*m;!Or(c[0])&&(c[0]=NaN),!Or(c[1])&&(c[1]=NaN);var g=l||Vr(c[0])||Vr(c[1])||o&&!s,y=rs(e),_=y&&r.needIncludeZero&&r.needIncludeZero();if(_){if(c[0]>0&&c[1]>0&&!p[0])c[0]=0;if(c[0]<0&&c[1]<0&&!p[1])c[1]=0}var x=!1;if(c[0]>c[1])c.reverse(),x=!0;var S=zl(e,r.get("startValue",!0)),b=S!=null;if(!qe(S)&&n)S=e.getDefaultStartValue?e.getDefaultStartValue():0;if(qe(S)&&(b||!y||_)){if(S<c[0]&&!p[0])c[0]=S,p[0]=!0;else if(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};cw(T,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,{zoomMM:r,noZoomEffMM:i,zoomFixMM:n,fixMM:a}=e,o={fixMM:a,zoomFixMM:n,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:i.slice()},s=o.effMM;if(r[0]!=null)s[0]=r[0],a[0]=n[0]=!0;if(r[1]!=null)s[1]=r[1],a[1]=n[1]=!0;return cw(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 cw(t,e){var{scale:r,dataMM:i}=t;if(r.sanitize)e[0]=r.sanitize(e[0],i),e[1]=r.sanitize(e[1],i),p_(e)}function zl(t,e){return e==null?null:Vr(e)?NaN:t.parse(e)}function gR(t,e){var r;if(pt(t))r=[0,0];else{var i=e.get("boundaryGap");if(typeof i==="boolean"){if(i===!0)console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to 0.');i=null}r=k(i)?i:[i,i]}return[pw(r[0]),pw(r[1])]}function pw(t){return Er(typeof t==="boolean"?0:t,1)||0}function dw(t){var e=vR(t.scale);if(!e.extent)e.extent=gt();return e}function mw(t,e){dw(t).dimIdxInCoord=e.get(t.dim)}function gw(t,e){var{scale:r,model:i,dim:n}=t;if(I(r&&i&&n),r.rawExtentInfo){I(r.rawExtentInfo.from!==e||e===dR);return}yR(r,t,n,i,e)}function yR(t,e,r,i,n){var a=dw(e),o=a.extent,s=!1;ow(e,function(f){if(f.boxCoordinateSystem){var c=uc(f).coord,p=a.dimIdxInCoord;if(!(p>=0))pe('Property "series.coord" is not supported on axis '+f.boxCoordinateSystem.type+".");else if(k(c)){var h=c[p];if(h!=null&&!k(h))Vs(o,t.parse(h))}}else if(f.coordinateSystem){var v=f.getData();if(v){var d=t.getFilter?t.getFilter():null;w(Q1(v,r),function(m){f_(o,v.getApproximateExtent(m,d))})}if(f.__requireStartValue&&f.__requireStartValue(e))s=!0}});var l=xR(t,e,i),u=new vw(t,i,o,s,l);yw(t,u,n),a.extent=null}function _R(t,e){var r=t.scale;I(!r.rawExtentInfo),yw(r,new vw(r,t.model,e,!1,!1),mR)}function yw(t,e,r){t.rawExtentInfo=e,e.from=r}function _w(t,e){I(!mp.get(t)),mp.set(t,e)}var mp=Z();function gp(t,e,r,i,n){if(I(!n||!t.rawExtentInfo),!t.rawExtentInfo)_R({scale:t,model:e},n||gt());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;if(t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),i&&a.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis"))i.inverse=!i.inverse;return a}function xR(t,e,r){var i=pp(t,r),n=r.get("containShape",!0);if(n==null&&!i)n=!0;if(!n)return!1;var a=!1;return km(e,function(o){a=!!mp.get(o)||a}),a}function xw(t,e,r,i){if(!r.ctnShp)return;var n;if(km(t,function(s){var l=mp.get(s);if(l){var u=l(t,i);if(u)n=n||[0,0],fv(n,u[0]),cv(n,u[1]),K1(t)}}),!n)return;var a=e.getExtent();if(pt(e)){if(!t.onBand)e.setExtent2(Qo,Ge(a[0],a[0]+n[0]),ve(a[1],a[1]+n[1]))}else{var o=a.slice();if(!r.zoomFixMM[0])o[0]=Ge(o[0],e.transformOut(e.transformIn(o[0],null)+n[0],null));if(!r.zoomFixMM[1])o[1]=ve(o[1],e.transformOut(e.transformIn(o[1],null)+n[1],null));if(o[0]<a[0]||o[1]>a[1])e.setExtent2(Qo,o[0],o[1])}}function Sw(t,e){var r=li(t),i=r?t.intervalStub:t,n=e.fixMinMax||[],a=r?t.getExtent():null,o=i.getExtent(),s=ip(o,n,e.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=r?bR(i,e):SR(i,e),{intervalPrecision:u,interval:f}=l,c=e.userInterval;if(c!=null)l.interval=c,l.intervalPrecision=Br(c);if(!n[0])s[0]=de(qr(s[0]/f)*f,u);if(!n[1])s[1]=de($i(s[1]/f)*f,u);if(c!=null)l.niceExtent=s.slice();cp(t,n,o,s,a,l)}function SR(t,e){var r=Nl(e.splitNumber,5),i=ts(t);I(isFinite(i)&&i>0);var{minInterval:n,maxInterval:a}=e,o=Zn(i/r,!0);if(n!=null&&o<n)o=n;if(a!=null&&o>a)o=a;var s=Br(o),l=t.getExtent(),u=[de($i(l[0]/o)*o,s),de(qr(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function bR(t,e){var r=Nl(e.splitNumber,10),i=t.getExtent(),n=ts(t);I(isFinite(n)&&n>0);var a=ve(ju(n),1),o=r/n*a;if(o<=0.5)a*=10;var s=Br(a),l=[de($i(i[0]/a)*a,s),de(qr(i[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function zm(t){var{scale:e,model:r}=t,{axis:i,ecModel:n}=r;I(i&&n),TR(e,r,i,n,null)}function TR(t,e,r,i,n){var a=gp(t,e,i,r,n),o=rs(t)||is(t);if(wR(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)xw(r,t,a,i);t.freeze()}function wR(t,e){CR[t.type](t,e)}var CR={interval:Sw,log:Sw,time:U1,ordinal:Pe};var bw=[],AR={registerPreprocessor:xm,registerProcessor:Sm,registerPostInit:p1,registerPostUpdate:h1,registerUpdateLifecycle:Kc,registerAction:Pa,registerCoordinateSystem:v1,registerLayout:d1,registerVisual:_n,registerTransform:g1,registerLoading:Tm,registerMap:m1,registerImpl:vT,PRIORITY:t1,ComponentModel:be,ComponentView:Ot,SeriesModel:or,ChartView:Lt,registerComponentModel:function(t){be.registerClass(t)},registerComponentView:function(t){Ot.registerClass(t)},registerSeriesModel:function(t){or.registerClass(t)},registerChartView:function(t){Lt.registerClass(t)},registerCustomSeries:function(t,e){mT(t,e)},registerSubTypeDefaulter:function(t,e){be.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){G0(t,e)}};function Ni(t){if(k(t)){w(t,function(e){Ni(e)});return}if(ue(bw,t)>=0)return;if(bw.push(t),X(t))t={install:t};t.install(AR)}var ER=ee(),Ul=ee(),Zt={estimate:1,determine:2};function ss(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function ww(t,e){var r=t.getLabelModel().get("customValues");if(r){var i=t.scale;return{labels:U(Aw(r,i),function(n,a){return{formattedLabel:kl(t)(n,a),rawLabel:i.getLabel(n),tick:n}})}}return t.type==="category"?DR(t,e):OR(t)}function Cw(t,e,r){var i=t.scale,n=t.getTickModel().get("customValues");if(n)return{ticks:Aw(n,i)};return t.type==="category"?MR(t,e):{ticks:i.getTicks(r)}}function Aw(t,e){var r=e.getExtent(),i=[];return w(t,function(n){if(n=e.parse(n),n>=r[0]&&n<=r[1])i.push(n)}),vo(i,v_,null),ho(i),U(i,function(n){return{value:n}})}function DR(t,e){var r=t.getLabelModel(),i=Ew(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:i}function Ew(t,e,r){var i=PR(t),n=fp(e),a=r.kind===Zt.estimate;if(!a){var o=Mw(i,n);if(o)return o}var s,l;if(X(n))s=yp(t,n,!1);else l=n==="auto"?IR(t,r):n,s=yp(t,l,!1);var u={labels:s,labelCategoryInterval:l};if(!a)Um(i,n,u);else r.out.noPxChangeTryDetermine.push(function(){return Um(i,n,u),!0});return u}function MR(t,e){var r=LR(t),i=fp(e),n=Mw(r,i);if(n)return n;var a,o;if(!e.get("show")||t.scale.isBlank())a=[];if(X(i))a=yp(t,i,!0);else if(i==="auto"){var s=Ew(t,t.getLabelModel(),ss(Zt.determine));o=s.labelCategoryInterval,a=U(s.labels,function(l){return l.tick})}else o=i,a=yp(t,o,!0);return Um(r,i,{ticks:a,tickCategoryInterval:o})}function OR(t){var e=t.scale.getTicks(),r=kl(t);return{labels:U(e,function(i,n){return{formattedLabel:r(i,n),rawLabel:t.scale.getLabel(i),tick:i}})}}var LR=Dw("axisTick"),PR=Dw("axisLabel");function Dw(t){return function(r){return Ul(r)[t]||(Ul(r)[t]={list:[]})}}function Mw(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function Um(t,e,r){return t.list.push({key:e,value:r}),r}function IR(t,e){if(e.kind===Zt.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Ul(t).autoInterval=r,!0}),r}var i=Ul(t).autoInterval;return i!=null?i:Ul(t).autoInterval=t.calculateCategoryInterval(e)}function Ow(t,e){var r=e.kind,i=RR(t),n=kl(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;if(l>f)u=Math.max(1,Math.floor(l/f));var c=s[0],p=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(p*Math.cos(a)),v=Math.abs(p*Math.sin(a)),d=0,m=0;for(;c<=s[1];c+=u){var g=0,y=0,_=Wu(n({value:c}),i.font,"center","top");g=_.width*1.3,y=_.height*1.3,d=Math.max(d,g,7),m=Math.max(m,y,7)}var x=d/h,S=m/v;isNaN(x)&&(x=1/0),isNaN(S)&&(S=1/0);var b=Math.max(0,Math.floor(Math.min(x,S)));if(r===Zt.estimate)return e.out.noPxChangeTryDetermine.push(me(NR,null,t,b,l)),b;var T=Lw(t,b,l);return T!=null?T:b}function NR(t,e,r){return Lw(t,e,r)==null}function Lw(t,e,r){var i=ER(t.model),n=t.getExtent(),{lastAutoInterval:a,lastTickCount:o}=i;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;else i.lastTickCount=r,i.lastAutoInterval=e,i.axisExtent0=n[0],i.axisExtent1=n[1]}function RR(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 yp(t,e,r){var i=kl(t),n=t.scale,a=[],o=X(e);return np(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 kR=0.8;function zr(t,e){e=e||{};var r={w:NaN,w2:NaN},i=t.scale,n=e.fromStat,a=e.min,o=O1(i);if(!qe(o))o=NaN;var s=t.getExtent(),l=Ie(s[1]-s[0]);if(pt(i))BR(r,t,o,l);else if(n)zR(r,t,o,l,n);else if(a==null)I(!1);if(a!=null)r.w=qe(r.w)?ve(a,r.w):a;return r}function BR(t,e,r,i){var n=e.onBand,a=r+(n?1:0);if(a===0&&(a=1),t.w=i/a,!n&&r&&i)t.w2=t.w*r/i}function zR(t,e,r,i,n){I(n);var a=!1,o=-1/0;if(w(n.key?[rw(e,n.key)]:iw(e,n.sers||[]),function(s){var l=s.liPosMinGap;if(l!=null){if(l>0){if(l>o)o=l;a=!1}else if(l===vp)a=!0}}),qe(r)&&r>0&&qe(o))t.w=i/r*o,t.w2=o;else if(a)t.w=i*kR,t.w2=t.w*r/i}var Pw=[0,1],UR=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)),ks(e,Pw,Iw(this),r)},t.prototype.coordToData=function(e,r){var i=ks(e,Iw(this),Pw,r);return this.scale.scale(i)},t.prototype.pointToData=function(e,r){return},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),i=Cw(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),n=U(i.ticks,function(s){return{coord:this.dataToCoord(Ii(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=FR(this,n,a);return U(n,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(pt(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");if(!(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||ss(Zt.determine),ww(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 zr(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||ss(Zt.determine),Ow(this,e)},t}();function Iw(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 FR(t,e,r){var i=e.length;if(!t.onBand||r||!i)return!1;var n=zr(t).w;if(!n)return!1;w(e,function(s){s.coord-=n/2});var a=t.scale.getExtent(),o=e[i-1];if(o.tick.offInterval)e.pop();return e.push({coord:o.coord+n,tick:{value:a[1]+1}}),!0}var Nw=UR;var O6=Math.PI*2,L6=yt.CMD;function Rw(t,e,r,i,n,a,o,s){var l=n-t,u=a-e,f=r-t,c=i-e,p=Math.sqrt(f*f+c*c);f/=p,c/=p;var h=l*f+u*c,v=h/p;if(s)v=Math.min(Math.max(v,0),1);v*=p;var d=o[0]=t+v*f,m=o[1]=e+v*c;return Math.sqrt((d-n)*(d-n)+(m-a)*(m-a))}var Tn=new fe,Ke=new fe,xt=new fe,wn=new fe,fi=new fe;var _p=[],Nt=new fe;function kw(t,e){if(!(e<=180&&e>0))return;e=e/180*Math.PI,Tn.fromArray(t[0]),Ke.fromArray(t[1]),xt.fromArray(t[2]),fe.sub(wn,Tn,Ke),fe.sub(fi,xt,Ke);var r=wn.len(),i=fi.len();if(r<0.001||i<0.001)return;wn.scale(1/r),fi.scale(1/i);var n=wn.dot(fi),a=Math.cos(e);if(a<n){var o=Rw(Ke.x,Ke.y,xt.x,xt.y,Tn.x,Tn.y,_p,!1);Nt.fromArray(_p),Nt.scaleAndAdd(fi,o/Math.tan(Math.PI-e));var s=xt.x!==Ke.x?(Nt.x-Ke.x)/(xt.x-Ke.x):(Nt.y-Ke.y)/(xt.y-Ke.y);if(isNaN(s))return;if(s<0)fe.copy(Nt,Ke);else if(s>1)fe.copy(Nt,xt);Nt.toArray(t[1])}}function Bw(t,e,r){if(!(r<=180&&r>0))return;r=r/180*Math.PI,Tn.fromArray(t[0]),Ke.fromArray(t[1]),xt.fromArray(t[2]),fe.sub(wn,Ke,Tn),fe.sub(fi,xt,Ke);var i=wn.len(),n=fi.len();if(i<0.001||n<0.001)return;wn.scale(1/i),fi.scale(1/n);var a=wn.dot(e),o=Math.cos(r);if(a<o){var s=Rw(Ke.x,Ke.y,xt.x,xt.y,Tn.x,Tn.y,_p,!1);Nt.fromArray(_p);var l=Math.PI/2,u=Math.acos(fi.dot(e)),f=l+u-r;if(f>=l)fe.copy(Nt,xt);else{Nt.scaleAndAdd(fi,s/Math.tan(Math.PI/2-f));var c=xt.x!==Ke.x?(Nt.x-Ke.x)/(xt.x-Ke.x):(Nt.y-Ke.y)/(xt.y-Ke.y);if(isNaN(c))return;if(c<0)fe.copy(Nt,Ke);else if(c>1)fe.copy(Nt,xt)}Nt.toArray(t[1])}}function Fm(t,e,r,i){var n=r==="normal",a=n?t:t.ensureState(r);a.ignore=e;var o=i.get("smooth");o=o===!0?0.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=i.getModel("lineStyle").getLineStyle();n?t.useStyle(s):a.style=s}function VR(t,e){var{smooth:r,points:i}=e;if(!i)return;if(t.moveTo(i[0][0],i[0][1]),r>0&&i.length>=3){var n=ds(i[0],i[1]),a=ds(i[1],i[2]);if(!n||!a){t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]);return}var o=Math.min(n,a)*r,s=du([],i[1],i[0],o/n),l=du([],i[1],i[2],o/a),u=du([],s,l,0.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var f=1;f<i.length;f++)t.lineTo(i[f][0],i[f][1])}function zw(t,e,r){var i=t.getTextGuideLine(),n=t.getTextContent();if(!n){if(i)t.removeTextGuideLine();return}var a=e.normal,o=a.get("show"),s=n.ignore;for(var l=0;l<bo.length;l++){var u=bo[l],f=e[u],c=u==="normal";if(f){var p=f.get("show"),h=c?s:G(n.states[u]&&n.states[u].ignore,s);if(h||!G(p,o)){var v=c?i:i&&i.states[u];if(v)v.ignore=!0;if(i)Fm(i,!0,u,f);continue}if(!i){if(i=new cn,t.setTextGuideLine(i),!c&&(s||!o))Fm(i,!0,"normal",e.normal);if(t.stateProxy)i.stateProxy=t.stateProxy}Fm(i,!1,u,f)}}if(i){oe(i.style,r),i.style.fill=null;var d=a.get("showAbove"),m=t.textGuideLineConfig=t.textGuideLineConfig||{};m.showAbove=d||!1,i.buildPath=VR}}function Uw(t,e){e=e||"labelLine";var r={normal:t.getModel(e)};for(var i=0;i<lt.length;i++){var n=lt[i];r[n]=t.getModel([n,e])}return r}var Fw=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],HR=1,xp=2,Hw=HR|xp;function Fl(t,e,r){r=r||Hw,e?t.dirty|=r:t.dirty&=~r}function Gw(t,e){return e=e||Hw,t.dirty==null||!!(t.dirty&e)}function Ur(t){if(!t)return;if(Gw(t))Hm(t,t.label,t);return t}function Hm(t,e,r){var i=e.getComputedTransform();t.transform=Vf(t.transform,i);var n=t.localRect=Po(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;if(f==null&&u)o=u,f=da.textMargin;for(var c=0;c<4;c++)Vm[c]=f===da.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;if(f===da.textMargin)Lo(n,Vm,!1,!1);var p=t.rect=Po(t.rect,n);if(i)p.applyTransform(i);if(f===da.minMargin)Lo(p,Vm,!1,!1);return t.axisAligned=Ff(i),(t.label=t.label||{}).ignore=e.ignore,Fl(t,!1),Fl(t,!0,xp),t}var Vm=[0,0,0,0];function Yw(t,e,r){if(t.transform=Vf(t.transform,r),t.localRect=Po(t.localRect,e),t.rect=Po(t.rect,e),r)t.rect.applyTransform(r);return t.axisAligned=Ff(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function Ww(t,e){if(!t)return;t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;if(r)r[4]+=e.x,r[5]+=e.y;var i=t.rect;if(i)i.x+=e.x,i.y+=e.y;var n=t.obb;if(n)n.fromBoundingRect(t.localRect,r)}function Gm(t,e){for(var r=0;r<Fw.length;r++){var i=Fw[r];if(t[i]==null)t[i]=e[i]}return Ur(t)}function Vw(t){var e=t.obb;if(!e||Gw(t,xp))t.obb=e=e||new Nf,e.fromBoundingRect(t.localRect,t.transform),Fl(t,!1,xp);return e}function Xw(t,e,r,i,n){var a=t.length,o=ai[e],s=hn[e];if(a<2)return!1;t.sort(function(C,E){return C.rect[o]-E.rect[o]});var l=0,u,f=!1,c=0;for(var p=0;p<a;p++){var h=t[p],v=h.rect;if(u=v[o]-l,u<0)v[o]-=u,h.label[o]-=u,f=!0;var d=Math.max(-u,0);c+=d,l=v[o]+v[s]}if(c>0&&n)b(-c/a,0,a);var m=t[0],g=t[a-1],y,_;if(x(),y<0&&T(-y,0.8),_<0&&T(_,0.8),x(),S(y,_,1),S(_,y,-1),x(),y<0)A(-y);if(_<0)A(_);function x(){y=m.rect[o]-r,_=i-g.rect[o]-g.rect[s]}function S(C,E,D){if(C<0){var O=Math.min(E,-C);if(O>0){b(O*D,0,a);var M=O+C;if(M<0)T(-M*D,1)}else T(-C*D,1)}}function b(C,E,D){if(C!==0)f=!0;for(var O=E;O<D;O++){var M=t[O],L=M.rect;L[o]+=C,M.label[o]+=C}}function T(C,E){var D=[],O=0;for(var M=1;M<a;M++){var L=t[M-1].rect,B=Math.max(t[M].rect[o]-L[o]-L[s],0);D.push(B),O+=B}if(!O)return;var R=Math.min(Math.abs(C)/O,E);if(C>0)for(var M=0;M<a-1;M++){var F=D[M]*R;b(F,0,M+1)}else for(var M=a-1;M>0;M--){var F=D[M-1]*R;b(-F,M,a)}}function A(C){var E=C<0?-1:1;C=Math.abs(C);var D=Math.ceil(C/(a-1));for(var O=0;O<a-1;O++){if(E>0)b(D,0,O+1);else b(-D,a-O-1,a);if(C-=D,C<=0)return}}return f}function qw(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");if(f.ignore==null)f.ignore=!1}u.ignore=!0}for(var i=0;i<t.length;i++){var n=Ur(t[i]);if(n.label.ignore)continue;var{label:a,labelLine:o}=n,s=!1;for(var l=0;l<e.length;l++)if(Sp(n,e[l],null,{touchThreshold:0.05})){s=!0;break}if(s)r(a),o&&r(o);else e.push(n)}}function Sp(t,e,r,i){if(!t||!e)return!1;if(t.label&&t.label.ignore||e.label&&e.label.ignore)return!1;if(!t.rect.intersect(e.rect,r,i))return!1;if(t.axisAligned&&e.axisAligned)return!0;return Vw(t).intersect(Vw(e),r,i)}var GR=function(t){P(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){var i=r.coordinateSystem;if(i!=="polar"&&i!=="cartesian2d")throw Error("Line not support coordinateSystem besides cartesian and polar");return $o(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var i=new we,n=Rr("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*0.8,u=Rr(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;if(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=he.color.neutral00,u.style.lineWidth=2;return 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}(or),Zw=GR;function ls(t,e){var r=t.mapDimensionsAll("defaultedLabel"),i=r.length;if(i===1){var n=Mi(t,e,r[0]);return n!=null?n+"":null}else if(i){var a=[];for(var o=0;o<r.length;o++)a.push(Mi(t,e,r[o]));return a.join(" ")}}function bp(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!k(e))return e+"";var i=[];for(var n=0;n<r.length;n++){var a=t.getDimensionIndex(r[n]);if(a>=0)i.push(e[a])}return i.join(" ")}var YR=function(t){P(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=Rr(r,-1,-1,2,2,null,s);l.attr({z2:G(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=WR,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(){Ti(this.childAt(0))},e.prototype.downplay=function(){wi(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 v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):Ve(h,v,s,i),Oo(h)}if(this._updateCommon(r,i,l,n,a),f){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Qe(h,v,s,i)}}if(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,v,d,m,g;if(a)u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,p=a.focus,h=a.blurScope,d=a.labelStatesModels,m=a.hoverScale,g=a.cursorStyle,v=a.emphasisDisabled;if(!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"),v=_.get("disabled"),d=Yt(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=Ma(r.getItemVisual(i,"symbolOffset"),n);if(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 _t){var A=s.style;s.useStyle(N({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},b))}else{if(s.__isEmptyBrush)s.useStyle(N({},b));else s.useStyle(b);s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0}var C=r.getItemVisual(i,"liftZ"),E=this._z2;if(C!=null){if(E==null)this._z2=s.z2,s.z2+=C}else if(E!=null)s.z2=E,this._z2=null;var D=o&&o.useNameLabel;oi(s,d,{labelFetcher:l,labelDataIndex:i,defaultText:O,inheritColor:T,defaultOpacity:b.opacity});function O(B){return D?r.getName(B):ls(r,B)}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 L=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;M.scaleX=this._sizeX*L,M.scaleY=this._sizeY*L,this.setSymbolScale(1),Lr(this,p,h,v)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,i,n){var a=this.childAt(0),o=xe(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();if(l)Mo(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Mo(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,i){return Tl(r.getItemVisual(i,"symbolSize"))},e.getSymbolZ2=function(r,i){return r.getItemVisual(i,"z2")},e}(we);function WR(t,e){this.parent.drift(t,e)}var Vl=YR;function Tp(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 Kw(t){if(t!=null&&!W(t))t={isIgnore:t};return t||{}}function jw(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:Yt(e),cursorStyle:e.get("cursor")}}function $w(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 XR=function(){function t(e){this.group=new we,this._SymbolCtor=e||Vl}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=Kw(r);var i=this.group,n=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=jw(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};if(!a)i.removeAll();e.diff(a).add(function(c){var p=f(c);if(Tp(e,p,c,r))$w(o,e,c,l,u,p,i)}).update(function(c,p){var h=a.getItemGraphicEl(p),v=f(c);if(!Tp(e,v,c,r)){i.remove(h);return}var d=e.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==d)i.remove(h),h=new o(e,c,l,u),h.setPosition(v);else{h.updateData(e,c,l,u);var g={x:v[0],y:v[1]};s?h.attr(g):Ve(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)return;var i=this,n=r.getStore();for(var a=0,o=n.count();a<o;a++){var s=r.getItemGraphicEl(a),l=i._getSymbolPoint(a);if(Tp(r,l,a,e))s=s||$w(i._SymbolCtor,r,a,i._seriesScope,{disableAnimation:!0},l,i.group),s.stopAnimation(),s.setPosition(l),s.markRedraw();else if(s)i.group.remove(s),r.setItemGraphicEl(a,null)}},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=jw(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,i,n){this._progressiveEls=[],n=Kw(n);function a(u){if(!u.isGroup)u.incremental=i,u.ensureState("emphasis").hoverLayer=pa}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if(Tp(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){Ci(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,i=this._data;if(i&&e)i.eachItemGraphicEl(function(n){n.fadeOut(function(){r.remove(n)},i.hostModel)});else r.removeAll()},t}(),Qw=XR;function wp(t,e,r){var i=t.getBaseAxis(),n=t.getOtherAxis(i),a=qR(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(v){return e.mapDimension(v)}),p=!1,h=e.getCalculationInfo("stackResultDimension");if(kr(e,c[0]))p=!0,c[0]=h;if(kr(e,c[1]))p=!0,c[1]=h;return{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function qR(t,e){var r=0,i=t.scale.getExtent();if(e==="start")r=i[0];else if(e==="end")r=i[1];else if(se(e)&&!isNaN(e))r=e;else if(i[0]>0)r=i[0];else if(i[1]<0)r=i[1];return r}function Cp(t,e,r,i){var n=NaN;if(t.stacked)n=r.get(r.getCalculationInfo("stackedOverDimension"),i);if(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 Kt(t,e){return!isFinite(t)||!isFinite(e)}var ZR=typeof Float32Array!==ln?Float32Array:void 0,Jw=typeof Float64Array!==ln?Float64Array:void 0;function lr(t){return Ap({ctor:ZR},t).arr}function Ap(t,e){I(e!=null&&isFinite(e)&&e>=0&&t.hasOwnProperty("ctor"));var{arr:r,ctor:i}=t;if(e>iv)e=iv;if(!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(s){pe(s)}if(!n){if(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 KR(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 Ym(t,e,r,i,n,a,o,s){var l=KR(t,e),u=[],f=[],c=[],p=[],h=[],v=[],d=[],m=wp(n,e,o),g=t.getLayout("points")||[],y=e.getLayout("points")||[];for(var _=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 A=g[b],C=g[b+1],E=y[T],D=y[T+1];if(isNaN(A)||isNaN(C))A=E,C=D;u.push(A,C),f.push(E,D),c.push(r[b],r[b+1]),p.push(i[T],i[T+1]),d.push(e.getRawIndex(x.idx1));break;case"+":var O=x.idx,M=m.dataDimsForPoint,L=n.dataToPoint([e.get(M[0],O),e.get(M[1],O)]);T=O*2,u.push(L[0],L[1]),f.push(y[T],y[T+1]);var B=Cp(m,n,e,O);c.push(B[0],B[1]),p.push(i[T],i[T+1]),d.push(e.getRawIndex(O));break;case"-":S=!1}if(S)h.push(x),v.push(v.length)}v.sort(function(ce,ye){return d[ce]-d[ye]});var R=u.length,F=lr(R),z=lr(R),H=lr(R),Y=lr(R),q=[];for(var _=0;_<v.length;_++){var Q=v[_],J=_*2,j=Q*2;F[J]=u[j],F[J+1]=u[j+1],z[J]=f[j],z[J+1]=f[j+1],H[J]=c[j],H[J+1]=c[j+1],Y[J]=p[j],Y[J+1]=p[j+1],q[_]=h[Q]}return{current:F,next:z,stackedOnCurrent:H,stackedOnNext:Y,status:q}}var{min:Cn,max:An}=Math;function Wm(t,e,r,i,n,a,o,s,l){var u,f,c,p,h,v,d=r,m=0;for(;m<i;m++){var g=e[d*2],y=e[d*2+1];if(d>=n||d<0)break;if(Kt(g,y)){if(l){d+=a;continue}break}if(d===r)t[a>0?"moveTo":"lineTo"](g,y),c=g,p=y;else{var _=g-u,x=y-f;if(_*_+x*x<0.5){d+=a;continue}if(o>0){var S=d+a,b=e[S*2],T=e[S*2+1];while(b===g&&T===y&&m<i)m++,S+=a,d+=a,b=e[S*2],T=e[S*2+1],g=e[d*2],y=e[d*2+1],_=g-u,x=y-f;var A=m+1;if(l)while(Kt(b,T)&&A<i)A++,S+=a,b=e[S*2],T=e[S*2+1];var C=0.5,E=0,D=0,O=void 0,M=void 0;if(A>=i||Kt(b,T))h=g,v=y;else{E=b-u,D=T-f;var L=g-u,B=b-g,R=y-f,F=T-y,z=void 0,H=void 0;if(s==="x"){z=Math.abs(L),H=Math.abs(B);var Y=E>0?1:-1;h=g-Y*z*o,v=y,O=g+Y*H*o,M=y}else if(s==="y"){z=Math.abs(R),H=Math.abs(F);var q=D>0?1:-1;h=g,v=y-q*z*o,O=g,M=y+q*H*o}else z=Math.sqrt(L*L+R*R),H=Math.sqrt(B*B+F*F),C=H/(H+z),h=g-E*o*(1-C),v=y-D*o*(1-C),O=g+E*o*C,M=y+D*o*C,O=Cn(O,An(b,g)),M=Cn(M,An(T,y)),O=An(O,Cn(b,g)),M=An(M,Cn(T,y)),E=O-g,D=M-y,h=g-E*z/H,v=y-D*z/H,h=Cn(h,An(u,g)),v=Cn(v,An(f,y)),h=An(h,Cn(u,g)),v=An(v,Cn(f,y)),E=g-h,D=y-v,O=g+E*H/z,M=y+D*H/z}t.bezierCurveTo(c,p,h,v,g,y),c=O,p=M}else t.lineTo(g,y)}u=g,f=y,d+=a}return m}var eC=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),tC=function(t){P(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:he.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;o--)if(!Kt(n[o*2-2],n[o*2-1]))break;for(;a<o;a++)if(!Kt(n[a*2],n[a*2+1]))break}while(a<o)a+=Wm(r,n,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},e.prototype.getPointOn=function(r,i){if(!this.path)this.createPathProxy(),this.buildPath(this.path,this.shape);var n=this.path,a=n.data,o=yt.CMD,s,l,u=i==="x",f=[];for(var c=0;c<a.length;){var p=a[c++],h=void 0,v=void 0,d=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++],v=a[c++],_=u?(r-s)/(h-s):(r-l)/(v-l),_<=1&&_>=0){var x=u?(v-l)*_+l:(h-s)*_+s;return u?[r,x]:[x,r]}s=h,l=v;break;case o.C:h=a[c++],v=a[c++],d=a[c++],m=a[c++],g=a[c++],y=a[c++];var S=u?Vn(s,h,d,g,r,f):Vn(l,v,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?ze(l,v,m,y,T):ze(s,h,d,g,T);return u?[r,x]:[x,r]}}s=g,l=y;break}}},e}(ie);var jR=function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(eC),rC=function(t){P(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 jR},e.prototype.buildPath=function(r,i){var{points:n,stackedOnPoints:a}=i,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0;s--)if(!Kt(n[s*2-2],n[s*2-1]))break;for(;o<s;o++)if(!Kt(n[o*2],n[o*2+1]))break}while(o<s){var u=Wm(r,n,o,s,s,1,i.smooth,l,i.connectNulls);Wm(r,a,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,r.closePath()}},e}(ie);function Xm(t,e,r,i,n){var a=t.getArea(),{x:o,y:s,width:l,height:u}=a,f=r.get(["lineStyle","width"])||0;if(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 De({shape:{x:o,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),h=p.isHorizontal(),v=p.inverse;if(h){if(v)c.shape.x+=l;c.shape.width=0}else{if(!v)c.shape.y+=u;c.shape.height=0}var d=X(n)?function(m){n(m,c)}:null;Qe(c,{shape:{width:l,height:u,x:o,y:s}},r,null,i,d)}return c}function qm(t,e,r){var i=t.getArea(),n=de(i.r0,1),a=de(i.r,1),o=new dr({shape:{cx:de(t.cx,1),cy:de(t.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";if(s)o.shape.endAngle=i.startAngle;else o.shape.r=n;Qe(o,{shape:{endAngle:i.endAngle,r:a}},r)}return o}function iC(t,e,r,i,n){if(!t)return null;else if(t.type==="polar")return qm(t,e,r);else if(t.type==="cartesian2d")return Xm(t,e,r,i,n);return null}function us(t,e){return t.type===e}var nC={};function aC(t,e){var r=t+"^_^"+e;if(!nC[r])console.warn('[ECharts] DEPRECATED: "'+t+'" has been deprecated. '+e),nC[r]=!0}function oC(t,e){if(t.length!==e.length)return;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}function sC(t){var e=gt(),r=gt();for(var i=0;i<t.length;){var n=t[i++],a=t[i++];if(!Kt(n,a))Vs(e,n),Vs(r,a)}return[e,r]}function lC(t,e){var r=sC(t),i=r[0],n=r[1],a=sC(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 uC(t){return se(t)?t:t?0.5:0}function $R(t,e,r){if(r.valueDim==null)return[];var i=e.count(),n=lr(i*2);for(var a=0;a<i;a++){var o=Cp(r,t,e,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function En(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;if(!Kt(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 v=(f[o]+c[o])/2,d=[];u[o]=d[o]=v,u[1-o]=f[1-o],d[1-o]=c[1-o],s.push(u[0],u[1]),s.push(d[0],d[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 QR(t,e){var r=[],i=t.length,n,a;function o(f,c,p){var h=f.coord,v=(p-h)/(c.coord-h),d=c0(v,[f.color,c.color]);return{coord:p,color:d}}for(var s=0;s<i;s++){var l=t[s],u=l.coord;if(u<0)n=l;else if(u>e){if(a)r.push(o(a,l,e));else if(n)r.push(o(n,l,0),o(n,l,e));break}else{if(n)r.push(o(n,l,0)),n=null;r.push(l),a=l}}return r}function JR(t,e,r){var i=t.getVisual("visualMeta");if(!i||!i.length||!t.count())return;if(e.type!=="cartesian2d"){console.warn("Visual map on line style is only supported on cartesian2d.");return}var n,a;for(var 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){console.warn("Visual map on line style only support x or y dimension.");return}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();if(f&&u[0].coord>u[f-1].coord)u.reverse(),c.reverse();var p=QR(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 v=10,d=p[0].coord-v,m=p[h-1].coord+v,g=m-d;if(g<0.001)return"transparent";w(p,function(_){_.offset=(_.coord-d)/g}),p.push({offset:h?p[h-1].offset:0.5,color:c[1]||"transparent"}),p.unshift({offset:h?p[0].offset:0.5,color:c[0]||"transparent"});var y=new Do(0,0,0,0,p,!0);return y[n]=d,y[n+"2"]=m,y}function ek(t,e,r){var i=t.get("showAllSymbol"),n=i==="auto";if(i&&!n)return;var a=r.getAxesByScale("ordinal")[0];if(!a)return;if(n&&tk(a,e))return;var o=e.mapDimension(a.dim),s={};return w(a.getViewLabels(),function(l){if(!l.tick.offInterval)s[Ii(a.scale,l.tick)]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}function tk(t,e){var r=t.getExtent(),i=Math.abs(r[1]-r[0])/t.scale.count();isNaN(i)&&(i=0);var n=e.count(),a=Math.max(1,Math.round(n/5));for(var o=0;o<n;o+=a)if(Vl.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>i)return!1;return!0}function rk(t){var e=t.length/2;for(;e>0;e--)if(!Kt(t[e*2-2],t[e*2-1]))break;return e-1}function fC(t,e){return[t[e*2],t[e*2+1]]}function ik(t,e,r){var i=t.length/2,n=r==="x"?0:1,a,o,s=0,l=-1;for(var u=0;u<i;u++){if(o=t[u*2+n],Kt(o,t[u*2+1-n]))continue;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 cC(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<lt.length;e++)if(t.get([lt[e],"endLabel","show"]))return!0;return!1}function Zm(t,e,r,i){if(us(e,"cartesian2d")){var n=i.getModel("endLabel"),a=n.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=cC(i)?function(h,v){t._endLabelOnDuring(h,v,o,s,a,n,e)}:null,u=e.getBaseAxis().isHorizontal(),f=Xm(e,r,i,function(){var h=t._endLabel;if(h&&r){if(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);if(u)c.y-=p,c.height+=p*2;else c.x-=p,c.width+=p*2}if(l)l(1,f);return f}else{if(i.get(["endLabel","show"]))console.warn("endLabel is not supported for lines in polar systems.");return qm(e,r,i)}}function nk(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 ak=function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new we,i=new Qw;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=r,this._changePolyState=me(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,v=this._polyline,d=this._polygon,m=this._lineGroup,g=!i.ssr&&r.get("animation"),y=!u.isEmpty(),_=u.get("origin"),x=wp(a,s,_),S=y&&$R(a,s,x),b=r.get("showSymbol"),T=r.get("connectNulls"),A=b&&!c&&ek(r,s,a),C=this._data;if(C&&C.eachItemGraphicEl(function(Te,Me){if(Te.__temp)o.remove(Te),C.setItemGraphicEl(Me,null)}),!b)h.remove();o.add(m);var E=!c?r.get("step"):!1,D;if(a&&a.getArea&&r.get("clip",!0)){if(D=a.getArea(),D.width!=null)D.x-=0.1,D.y-=0.1,D.width+=0.2,D.height+=0.2;else if(D.r0)D.r0-=0.5,D.r+=0.5}this._clipShapeForSymbol=D;var O=JR(s,a,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(v&&p.type===a.type&&E===this._step)){if(b&&h.updateData(s,{isIgnore:A,clipShape:D,disableAnimation:!0,getSymbolPoint:function(Te){return[f[Te*2],f[Te*2+1]]}}),g&&this._initSymbolLabelAnimation(s,a,D),E){if(S)S=En(S,f,a,E,T);f=En(f,null,a,E,T)}if(v=this._newPolyline(f),y)d=this._newPolygon(f,S);else if(d)m.remove(d),d=this._polygon=null;if(!c)this._initOrUpdateEndLabel(r,a,Ir(O));m.setClipPath(Zm(this,a,!0,r))}else{if(y&&!d)d=this._newPolygon(f,S);else if(d&&!y)m.remove(d),d=this._polygon=null;if(!c)this._initOrUpdateEndLabel(r,a,Ir(O));var M=m.getClipPath();if(M){var L=Zm(this,a,!1,r);Qe(M,{shape:L.shape},r)}else m.setClipPath(Zm(this,a,!0,r));if(b&&h.updateData(s,{isIgnore:A,clipShape:D,disableAnimation:!0,getSymbolPoint:function(Te){return[f[Te*2],f[Te*2+1]]}}),!oC(this._stackedOnPoints,S)||!oC(this._points,f))if(g)this._doUpdateAnimation(s,S,a,n,E,_,T);else{if(E){if(S)S=En(S,f,a,E,T);f=En(f,null,a,E,T)}v.setShape({points:f}),d&&d.setShape({points:f,stackedOnPoints:S})}}var B=r.getModel("emphasis"),R=B.get("focus"),F=B.get("blurScope"),z=B.get("disabled");if(v.useStyle(oe(l.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"})),sa(v,r,"lineStyle"),v.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var H=v.getState("emphasis").style;H.lineWidth=+v.style.lineWidth+1}xe(v).seriesIndex=r.seriesIndex,Lr(v,R,F,z);var Y=uC(r.get("smooth")),q=r.get("smoothMonotone");if(v.setShape({smooth:Y,smoothMonotone:q,connectNulls:T}),d){var Q=s.getCalculationInfo("stackedOnSeries"),J=0;if(d.useStyle(oe(u.getAreaStyle(),{fill:O,opacity:0.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Q)J=uC(Q.get("smooth"));d.setShape({smooth:Y,stackedOnSmooth:J,smoothMonotone:q,connectNulls:T}),sa(d,r,"areaStyle"),xe(d).seriesIndex=r.seriesIndex,Lr(d,R,F,z)}var j=this._changePolyState;s.eachItemGraphicEl(function(Te){Te&&(Te.onHoverStateChange=j)}),this._polyline.onHoverStateChange=j,this._data=s,this._coordSys=a,this._stackedOnPoints=S,this._points=f,this._step=E,this._valueOrigin=_;var ce=r.get("triggerEvent"),ye=r.get("triggerLineEvent");ye&&aC("triggerLineEvent","Use the `triggerEvent` option instead.");var We=ye===!0||ce===!0||ce==="line",He=ye===!0||ce===!0||ce==="area";this.packEventData(r,v,We),d&&this.packEventData(r,d,He)},e.prototype.packEventData=function(r,i,n){xe(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=cr(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(Kt(f,c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var p=r.get("zlevel")||0,h=r.get("z")||0;u=new Vl(o,s),u.x=f,u.y=c,u.setZ(p,h);var v=u.getSymbolPath().getTextContent();if(v)v.zlevel=p,v.z=h,v.z2=this._polyline.z2+1;u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Lt.prototype.highlight.call(this,r,i,n,a)},e.prototype.downplay=function(r,i,n,a){var o=r.getData(),s=cr(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);if(l)if(l.__temp)o.setItemGraphicEl(s,null),this.group.remove(l);else l.downplay()}else Lt.prototype.downplay.call(this,r,i,n,a)},e.prototype._changePolyState=function(r){var i=this._polygon;Vv(this._polyline,r),i&&Vv(i,r)},e.prototype._newPolyline=function(r){var i=this._polyline;if(i)this._lineGroup.remove(i);return 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;if(n)this._lineGroup.remove(n);return 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;if(i.type==="cartesian2d")a=s.isHorizontal(),o=!1;else if(i.type==="polar")a=s.dim==="angle",o=!0;var u=r.hostModel,f=u.get("animationDuration");if(X(f))f=f(null);var c=u.get("animationDelay")||0,p=X(c)?c(null):c;r.eachItemGraphicEl(function(h,v){var d=h;if(d){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);if(a)g=x.startAngle,y=x.endAngle,_=-S[1]/180*Math.PI;else g=x.r0,y=x.r,_=S[0]}else{var b=n;if(a)g=b.x,y=b.x+b.width,_=h.x;else g=b.y+b.height,y=b.y,_=h.y}var T=y===g?0:(_-g)/(y-g);if(l)T=1-T;var A=X(c)?c(v):f*T+p,C=d.getSymbolPath(),E=C.getTextContent();if(d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),E)E.animateFrom({style:{opacity:0}},{duration:300,delay:A});C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,i,n){var a=r.getModel("endLabel");if(cC(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;if(!u)u=this._endLabel=new $e({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0;var f=rk(l);if(f>=0)oi(s,Yt(r,"endLabel"),{inheritColor:n,labelFetcher:r,labelDataIndex:f,defaultText:function(c,p,h){return h!=null?bp(o,h):ls(o,c)},enableTextSetter:!0},nk(a,i)),s.textConfig.position=null}else if(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){if(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"),v=s.get("precision"),d=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?d:0)*(y?-1:1),b=(g?0:-d)*(y?-1:1),T=g?"x":"y",A=ik(c,x,T),C=A.range,E=C[1]-C[0],D=void 0;if(E>=1){if(E>1&&!h){var O=fC(c,C[0]);u.attr({x:O[0]+S,y:O[1]+b}),o&&(D=p.getRawValue(C[0]))}else{var O=f.getPointOn(x,T);O&&u.attr({x:O[0]+S,y:O[1]+b});var M=p.getRawValue(C[0]),L=p.getRawValue(C[1]);o&&(D=uv(n,v,M,L,A.t))}a.lastFrameIndex=C[0]}else{var B=r===1||a.lastFrameIndex>0?C[0]:0,O=fC(c,B);o&&(D=p.getRawValue(B)),u.attr({x:O[0]+S,y:O[1]+b})}if(o){var R=Io(u);if(typeof R.setLabelText==="function")R.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(r,i,n,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,p=Ym(this._data,r,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin,s),{current:h,stackedOnCurrent:v,next:d,stackedOnNext:m}=p;if(o)v=En(p.stackedOnCurrent,p.current,n,o,l),h=En(p.current,null,n,o,l),m=En(p.stackedOnNext,p.next,n,o,l),d=En(p.next,null,n,o,l);if(lC(h,d)>3000||f&&lC(v,m)>3000){if(u.stopAnimation(),u.setShape({points:d}),f)f.stopAnimation(),f.setShape({points:d,stackedOnPoints:m});return}u.shape.__points=p.current,u.shape.points=h;var g={shape:{points:d}};if(p.current!==h)g.shape.__points=p.next;if(u.stopAnimation(),Ve(u,g,c),f){if(f.setShape({points:h,stackedOnPoints:v}),f.stopAnimation(),Ve(f,{shape:{stackedOnPoints:m}},c),u.shape.points!==f.shape.points)f.shape.points=u.shape.points}var y=[],_=p.status;for(var x=0;x<_.length;x++){var S=_[x].cmd;if(S==="="){var b=r.getItemGraphicEl(_[x].idx1);if(b)y.push({el:b,ptIdx:x})}}if(u.animators&&u.animators.length)u.animators[0].during(function(){f&&f.dirtyShape();var T=u.shape.__points;for(var A=0;A<y.length;A++){var C=y[A].el,E=y[A].ptIdx*2;C.x=T[E],C.y=T[E+1],C.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){if(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}(Lt),pC=ak;function Km(t,e){return{seriesType:t,plan:Aa(),reset:function(r){var i=r.getData(),{coordinateSystem:n,pipelineContext:a}=r,o=e||a.large;if(!n)return;var s=U(n.dimensions,function(h){return i.mapDimension(h)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");if(kr(i,s[0]))s[0]=u;if(kr(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,v){var d=h.end-h.start,m=o&&lr(d*l),g=[],y=[];for(var _=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);if(o)m[x++]=S[0],m[x++]=S[1];else v.setItemLayout(_,S.slice())}if(o)v.setLayout("points",m),v.setLayout("pointsRange",{start:h.start,end:h.end})}}}}}var ok={average:function(t){var e=0,r=0;for(var i=0;i<t.length;i++)if(!isNaN(t[i]))e+=t[i],r++;return r===0?NaN:e/r},sum:function(t){var e=0;for(var r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){var e=-1/0;for(var r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){var e=1/0;for(var r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},sk=function(t){return Math.round(t.length/2)};function Hl(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){if(a==="lttb")e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h));else if(a==="minmax")e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var v=void 0;if(V(a))v=ok[a];else if(X(a))v=a;if(v)e.setData(n.downSample(n.mapDimension(u.dim),1/h,v,sk))}}}}}function jm(t){t.registerChartView(pC),t.registerSeriesModel(Zw),t.registerLayout(Km("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),i=e.getModel("lineStyle").getLineStyle();if(i&&!i.stroke)i.stroke=r.getVisual("style").fill;r.setVisual("legendLineStyle",i)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Hl("line"))}var lk=function(t){P(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}(Nw),Ep=lk;var uk=null;function ka(){return uk}var hC="expandAxisBreak";var Dn=Math.PI,fk=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],ck=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Mn=ee(),mC=ee(),Qm=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 pk(t,e,r,i){var n=r.axis,a=e.ensureRecord(r),o=[],s,l=tg(t.axisName)&&bn(t.nameLocation);w(i,function(v){var d=Ur(v);if(!d||d.label.ignore)return;o.push(d);var m=a.transGroup;if(l){if(m.transform?Gr(Gl,m.transform):vi(Gl),d.transform)Gi(Gl,Gl,d.transform);ae.copy(Dp,d.localRect),Dp.applyTransform(Gl),s?s.union(Dp):ae.copy(s=new ae(0,0,0,0),Dp)}});var u=Math.abs(a.dirVec.x)>0.1?"x":"y",f=a.transGroup[u];if(o.sort(function(v,d){return Math.abs(v.label[u]-f)-Math.abs(d.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 ae(p,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Gl=Dt(),Dp=new ae(0,0,0,0),Jm=function(t,e,r,i,n,a){if(bn(t.nameLocation)){var o=a.stOccupiedRect;if(o)gC(Yw({},o,a.transGroup.transform),i,n)}else eg(a.labelInfoList,a.dirVec,i,n)};function gC(t,e,r){var i=new fe;if(Sp(t,e,i,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:0.05}))Ww(e,i)}function eg(t,e,r,i){var n=fe.dot(i,e)>=0;for(var a=0,o=t.length;a<o;a++){var s=t[n?a:o-1-a];if(!s.label.ignore)gC(s,r,i)}}var Ba=function(){function t(e,r,i,n){this.group=new we,this._axisModel=e,this._api=r,this._local={},this._shared=n||new Qm(Jm),this._resetCfgDetermined(i)}return t.prototype.updateCfg=function(e){var r=this._shared.ensureRecord(this._axisModel).ready;I(!r.axisLine&&!r.axisTickLabelDetermine),r.axisName=r.axisTickLabelEstimate=!1;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=G(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");if(a==null||a==="auto")a=G(e.defaultNameMoveOverlap,!0);var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:G(e.nameDirection,1),tickDirection:G(e.tickDirection,1),labelDirection:G(e.labelDirection,1),labelOffset:G(e.labelOffset,0),silent:G(e.silent,!0),axisName:n,nameLocation:bt(r.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:tg(n)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};I(o.position!=null),I(o.rotation!=null),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 fe(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var i=this;if(!e)e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0};return w(hk,function(n){if(e[n])vk[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=nv(r-e),a,o;if(Bs(n))o=i>0?"top":"bottom",a="center";else if(Bs(n-Dn))o=i>0?"bottom":"top",a="center";else if(o="middle",n>0&&n<Dn)a=i>0?"right":"left";else a=i>0?"left":"right";return{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}(),hk=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],vk={axisLine:function(t,e,r,i,n,a,o){var s=r.ensureRecord(i).ready;I(!s.axisLine),s.axisLine=!0;var l=i.get(["axisLine","show"]);if(l==="auto"){if(l=!0,t.raw.axisLineAutoShow!=null)l=!!t.raw.axisLineAutoShow}if(!l)return;var u=i.axis.getExtent(),f=a.transform,c=[u[0],0],p=[u[1],0],h=c[0]>p[0];if(f)dt(c,c,f),dt(p,p,f);var v=N({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(i.get(["axisLine","breakLine"])&&gr(i.axis.scale))ka().buildAxisBreakLine(i,n,a,d);else{var m=new Ht(N({shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]}},d));ha(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"]);if(V(g))g=[g,g];if(V(y)||se(y))y=[y,y];var _=Ma(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 A=Rr(g[T],-x/2,-S/2,x,S,v.stroke,!0),C=b.r+b.offset,E=h?p:c;A.attr({rotation:b.rotate,x:E[0]+C*Math.cos(t.rotation),y:E[1]-C*Math.sin(t.rotation),silent:!0,z2:11}),n.add(A)}})}},axisTickLabelEstimate:function(t,e,r,i,n,a,o,s){var l=r.ensureRecord(i).ready;I(!l.axisTickLabelDetermine),l.axisTickLabelEstimate=!0;var u=dC(e,n,s);if(u)vC(t,e,r,i,n,a,o,Zt.estimate)},axisTickLabelDetermine:function(t,e,r,i,n,a,o,s){var l=r.ensureRecord(i).ready;l.axisTickLabelDetermine=!0;var u=dC(e,n,s);if(u)vC(t,e,r,i,n,a,o,Zt.determine);var f=yk(t,n,a,i);gk(t,e.labelLayoutList,f),_k(t,n,a,i,t.tickDirection)},axisName:function(t,e,r,i,n,a,o,s){var l=r.ensureRecord(i),u=l.ready;if(I(u.axisTickLabelEstimate||u.axisTickLabelDetermine),u.axisName=!0,e.nameEl)n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null;var f=t.axisName;if(!tg(f))return;var{nameLocation:c,nameDirection:p}=t,h=i.getModel("nameTextStyle"),v=i.get("nameGap")||0,d=i.axis.getExtent(),m=i.axis.inverse?-1:1,g=new fe(0,0),y=new fe(0,0);if(c==="start")g.x=d[0]-m*v,y.x=-m;else if(c==="end")g.x=d[1]+m*v,y.x=m;else g.x=(d[0]+d[1])/2,g.y=t.labelOffset+p*v,y.y=p;var _=Dt();y.transform(Ja(_,_,t.rotation));var x=i.get("nameRotate");if(x!=null)x=x*Dn/180;var S,b;if(bn(c))S=Ba.innerTextLayout(t.rotation,x!=null?x:t.rotation,p);else if(S=dk(t.rotation,c,x||0,d),b=t.raw.axisNameAvailableWidth,b!=null)b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null);var T=h.getFont(),A=i.get("nameTruncate",!0)||{},C=A.ellipsis,E=Cr(t.raw.nameTruncateMaxWidth,A.maxWidth,b),D=s.nameMarginLevel||0,O=new $e({x:g.x,y:g.y,rotation:S.rotation,silent:Ba.isLabelSilent(i),style:va(h,{text:f,font:T,overflow:"truncate",width:E,ellipsis:C,fill:h.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(Uf({el:O,componentModel:i,itemName:f}),O.__fullText=f,O.anid="name",i.get("triggerEvent")){var M=Ba.makeAxisEventDataBase(i);M.targetType="axisName",M.name=f,xe(O).eventData=M}a.add(O),O.updateTransform(),e.nameEl=O;var L=l.nameLayout=Ur({label:O,priority:O.z2,defaultAttr:{ignore:O.ignore},marginDefault:bn(c)?fk[D]:ck[D]});if(l.nameLocation=c,n.add(O),O.decomposeTransform(),t.shouldNameMoveOverlap&&L){var B=r.ensureRecord(i);I(B.labelInfoList),r.resolveAxisNameOverlap(t,r,i,L,y,B)}}};function vC(t,e,r,i,n,a,o,s){if(!_C(e))xk(t,e,n,s,i,o);var l=e.labelLayoutList;Sk(t,i,l,a),wk(i,t.rotation,l);var u=t.optionHideOverlap;if(mk(i,l,u),u)qw(Oe(l,function(f){return f&&!f.label.ignore}));pk(t,r,i,l)}function dk(t,e,r,i){var n=nv(r-t),a,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;if(Bs(n-Dn/2))o=l?"bottom":"top",a="center";else if(Bs(n-Dn*1.5))o=l?"top":"bottom",a="center";else if(o="middle",n<Dn*1.5&&n>Dn/2)a=l?"left":"right";else a=l?"right":"left";return{rotation:n,textAlign:a,textVerticalAlign:o}}function mk(t,e,r){var i=t.axis,n=t.get(["axisLabel","customValues"]);if($1(i))return;function a(u,f,c){var p=Ur(e[f]),h=Ur(e[c]),v=i.scale;if(!p||!h)return;if(u==null){if(!r&&n)return;var d=Mn(p.label).labelInfo.tick;if(is(v)&&d.notNice||pt(v)&&d.offInterval){fs(p.label);return}}if(u===!1||p.suggestIgnore){fs(p.label);return}if(h.suggestIgnore){fs(h.label);return}var m=0.1;if(!r){var g=[0,0,0,0];p=Gm({marginForce:g},p),h=Gm({marginForce:g},h)}if(Sp(p,h,null,{touchThreshold:m}))if(u)fs(h.label);else fs(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 gk(t,e,r){if(t.showMinorTicks)return;w(e,function(i){if(i&&i.label.ignore)for(var n=0;n<r.length;n++){var a=r[n],o=mC(a),s=Mn(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){fs(a);return}}})}function fs(t){t&&(t.ignore=!0)}function yC(t,e,r,i,n){var a=[],o=[],s=[];for(var l=0;l<t.length;l++){var u=t[l].coord;if(o[0]=u,o[1]=0,s[0]=u,s[1]=r,e)dt(o,o,e),dt(s,s,e);var f=new Ht({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});ha(f.shape,f.style.lineWidth),f.anid=n+"_"+t[l].tickValue,a.push(f);var c=mC(f);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return a}function yk(t,e,r,i){var n=i.axis,a=i.getModel("axisTick"),o=a.get("show");if(o==="auto"){if(o=!0,t.raw.axisTickAutoShow!=null)o=!!t.raw.axisTickAutoShow}if(!o||n.scale.isBlank())return[];var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=n.getTicksCoords(),f=yC(u,r.transform,l,oe(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks");for(var c=0;c<f.length;c++)e.add(f[c]);return f}function _k(t,e,r,i,n){var a=i.axis,o=i.getModel("minorTick");if(!t.showMinorTicks||a.scale.isBlank())return;var s=a.getMinorTicksCoords();if(!s.length)return;var l=o.getModel("lineStyle"),u=n*o.get("length"),f=oe(l.getLineStyle(),oe(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}));for(var c=0;c<s.length;c++){var p=yC(s[c],r.transform,u,f,"minorticks_"+c);for(var h=0;h<p.length;h++)e.add(p[h])}}function dC(t,e,r){if(_C(t)){var i=t.axisLabelsCreationContext;I(t.labelGroup&&i);var n=i.out.noPxChangeTryDetermine;if(r.noPxChange){var a=!0;for(var o=0;o<n.length;o++)a=a&&n[o]();if(a)return!1}if(n.length)e.remove(t.labelGroup),$m(t,null,null,null)}return!0}function xk(t,e,r,i,n,a){var o=n.axis,s=Cr(t.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new we;r.add(l);var u=ss(i);if(!s||o.scale.isBlank()){$m(e,[],l,u);return}var f=n.getModel("axisLabel"),c=o.getViewLabels(u),p=(Cr(t.raw.labelRotate,f.get("rotate"))||0)*Dn/180,h=Ba.innerTextLayout(t.rotation,p,t.labelDirection),v=n.getCategories&&n.getCategories(!0),d=[],m=n.get("triggerEvent"),g=1/0,y=-1/0;w(c,function(x,S){var b,{tick:T,formattedLabel:A,rawLabel:C}=x,E=f,D=Ii(o.scale,T);if(v&&v[D]){var O=v[D];if(W(O)&&O.textStyle)E=new Re(O.textStyle,f,n.ecModel)}var M=E.getTextColor()||n.get(["axisLine","lineStyle","color"]),L=E.getShallow("align",!0)||h.textAlign,B=G(E.getShallow("alignMinLabel",!0),L),R=G(E.getShallow("alignMaxLabel",!0),L),F=E.getShallow("verticalAlign",!0)||E.getShallow("baseline",!0)||h.textVerticalAlign,z=G(E.getShallow("verticalAlignMinLabel",!0),F),H=G(E.getShallow("verticalAlignMaxLabel",!0),F),Y=10+(((b=T.time)===null||b===void 0?void 0:b.level)||0);g=Math.min(g,Y),y=Math.max(y,Y);var q=new $e({x:0,y:0,rotation:0,silent:Ba.isLabelSilent(n),z2:Y,style:va(E,{text:A,align:S===0?B:S===c.length-1?R:L,verticalAlign:S===0?z:S===c.length-1?H:F,fill:X(M)?M(o.type==="category"?C:o.type==="value"?D+"":D,S):M})});q.anid="label_"+D;var Q=Mn(q);if(Q.labelInfo=x,Q.layoutRotation=h.rotation,Uf({el:q,componentModel:n,itemName:A,formatterParamsExtra:{isTruncated:function(){return q.isTruncated},value:C,tickIndex:S}}),m){var J=Ba.makeAxisEventDataBase(n);J.targetType="axisLabel",J.value=C,J.tickIndex=S;var j=x.tick.break;if(j){var ce=j.parsedBreak;J.break={start:ce.vmin,end:ce.vmax}}if(o.type==="category")J.dataIndex=D;if(xe(q).eventData=J,j)Tk(n,a,q,j)}d.push(q),l.add(q)});var _=U(d,function(x){return{label:x,priority:Mn(x).labelInfo.tick.break?x.z2+(y-g+1):x.z2,defaultAttr:{ignore:x.ignore}}});$m(e,_,l,u)}function _C(t){return!!t.labelLayoutList}function $m(t,e,r,i){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=i}function Sk(t,e,r,i){var n=e.get(["axisLabel","margin"]);w(r,function(a,o){var s=Ur(a);if(!s)return;var l=s.label,u=Mn(l);s.suggestIgnore=l.ignore,l.ignore=!1,Ki(Ri,bk);var f=e.axis;Ri.x=f.dataToCoord(Ii(f.scale,u.labelInfo.tick)),Ri.y=t.labelOffset+t.labelDirection*n,Ri.rotation=u.layoutRotation,i.add(Ri),Ri.updateTransform(),i.remove(Ri),Ri.decomposeTransform(),Ki(l,Ri),l.markRedraw(),Fl(s,!0),Ur(s)})}var Ri=new De,bk=new De;function tg(t){return!!t}function Tk(t,e,r,i){r.on("click",function(n){var a={type:hC,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function wk(t,e,r){var i=Ye();if(!i)return;var n=i.retrieveAxisBreakPairs(r,function(o){return o&&Mn(o.label).labelInfo.tick.break},!0),a=t.get(["breakLabelLayout","moveOverlap"],!0);if(a===!0||a==="auto")w(n,function(o){ka().adjustBreakLabelPair(t.axis.inverse,e,[Ur(r[o[0]]),Ur(r[o[1]])])})}var Mp=Ba;function Yl(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 v={top:-1,bottom:1,left:-1,right:1};if(n.labelDirection=n.tickDirection=n.nameDirection=v[o],n.labelOffset=a?p[f[o]]-p[f.onZero]:0,e.get(["axisTick","inside"]))n.tickDirection=-n.tickDirection;if(Cr(r.labelInside,e.get(["axisLabel","inside"])))n.labelDirection=-n.labelDirection;var d=e.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-d:d,n.z2=1,n}function xC(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function SC(t){var e={xAxisModel:null,yAxisModel:null};return w(e,function(r,i){var n=i.replace(/Model$/,""),a=t.getReferringComponents(n,mt).models[0];if(!a)throw Error(n+' "'+bt(t.get(n+"Index"),t.get(n+"Id"),0)+'" not found');e[i]=a}),e}function bC(t,e,r,i,n,a){var o=Yl(t,r),s=!1,l=!1;for(var u=0;u<e.length;u++)if(tp(e[u].getOtherAxis(r.axis).scale)){if(s=l=!0,r.axis.type==="category"&&r.axis.onBand)l=!1}return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new Mp(r,i,o,n)}function TC(t,e,r){var i=Yl(e,r),n=t.__getRawCfg();w(re(i),function(a){if(a!=="position"&&a!=="labelOffset")I(i[a]===n[a])}),t.updateCfg(i)}function wC(){lw("liPosMinGap",Ak)}function Ak(t,e,r){var i=Z(),{serUids:n,liPosMinGap:a}=r,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=Cc(f);function p(_){dp(t,e.sers,function(x){var S=x.getRawData(),b=S.getDimensionIndex(S.mapDimension(s.dim));if(b>=0)_(b,x,S.getStore())})}var h=0;if(p(function(_,x,S){if(i.set(x.uid,1),!n||!n.hasKey(x.uid))o=!0;h+=S.count()}),!n||n.keys().length!==i.keys().length)o=!0;if(!o&&a!=null){e.liPosMinGap=a;return}Ap(za,h);var v=0;p(function(_,x,S){for(var b=0,T=S.count();b<T;++b){var A=S.get(_,b);if(isFinite(A)&&(!f||Ac(c,A))){if(u)A=l.transformIn(A,null);za.arr[v++]=A}}});var d=za.typed?za.arr.subarray(0,v):(za.arr.length=v,za.arr);if(za.typed)d.sort();else ho(d);var m=1/0;for(var g=1;g<v;++g){var y=d[g]-d[g-1];if(y>0&&y<m)m=y}r.liPosMinGap=e.liPosMinGap=qe(m)?m:v>0?vp:tw,r.serUids=i}var za=Ap({ctor:Jw},50);function CC(t){return function(e,r){var i=zr(e,{fromStat:{key:t}});if(qe(i.w2))return[-i.w2/2,i.w2/2]}}function Wl(t,e){return t+Bl+e}function AC(t){return wC(),{liPosMinGap:!pt(t.scale)}}var ki="bar";function EC(t,e,r,i){fw(t,{key:e,seriesType:r,coordSysType:i,getMetrics:AC})}function DC(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return I(qe(e)),e}var rg={left:0,right:0,top:0,bottom:0},Xl=["25%","25%"],Sr="cartesian2d",Ek=function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,i){var n=mn(r.outerBounds);if(t.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&r.outerBounds)Nr(r.outerBounds,n)},e.prototype.mergeOption=function(r,i){if(t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds)Nr(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:rg,outerBoundsContain:"all",outerBoundsClampWidth:Xl[0],outerBoundsClampHeight:Xl[1],backgroundColor:he.color.transparent,borderWidth:1,borderColor:he.color.neutral30},e}(be),MC=Ek;var Dk=af(),Mk="__ec_stack_";function OC(t){return t.get("stack")||Mk+t.seriesIndex}function Ok(t,e){var r=Lk(t,e);return r.columnMap=Pk(r),r}function Lk(t,e){var r=Wl(e,Sr),i=[],n=zr(t,{fromStat:{key:r},min:1});return Rm(t,r,function(a){i.push({barWidth:Ce(a.get("barWidth"),n.w),barMaxWidth:Ce(a.get("barMaxWidth"),n.w),barMinWidth:Ce(a.get("barMinWidth")||(IC(a)?0.5:1),n.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:OC(a)})}),{bandWidthResult:n,seriesInfo:i}}function Pk(t){var e=t.bandWidthResult.w,r=e,i=0,n,a,o=[],s={};if(w(t.seriesInfo,function(d,m){if(!m)a=d.defaultBarGap||0;var g=d.stackId;if(!Be(s,g))i++;var y=s[g];if(!y)y=s[g]={width:0,maxWidth:0},o.push(g);var _=d.barWidth;if(_&&!y.width)y.width=_,_=Ge(r,_),r-=_;var x=d.barMaxWidth;x&&(y.maxWidth=x);var S=d.barMinWidth;S&&(y.minWidth=S);var b=d.barGap;b!=null&&(a=b);var T=d.barCategoryGap;T!=null&&(n=T)}),n==null)n=ve(35-o.length*4,15)+"%";var l=Ce(n,e),u=Ce(a,1),f=(r-l)/(i+(i-1)*u);f=ve(f,0),w(o,function(d){var m=s[d],{maxWidth:g,minWidth:y}=m;if(!m.width){var _=f;if(g&&g<_)_=Ge(g,r);if(y&&y>_)_=y;if(_!==f)m.width=_,r-=_+u*_,i--}else{var _=m.width;if(g)_=Ge(_,g);if(y)_=ve(_,y);m.width=_,r-=_+u*_,i--}}),f=(r-l)/(i+(i-1)*u),f=ve(f,0);var c=0,p;if(w(o,function(d){var m=s[d];if(!m.width)m.width=f;p=m,c+=m.width*(1+u)}),p)c-=p.width*u;var h={},v=-c/2;return w(o,function(d){var m=s[d];h[d]=h[d]||{bandWidth:e,offset:v,width:m.width},v+=m.width*(1+u)}),h}function LC(t){return{seriesType:t,overallReset:function(e){var r=Wl(t,Sr);sw(e,r,function(i){I(i instanceof Ep);var n=Ok(i,t);Rm(i,r,function(a){var o=n.columnMap[OC(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function PC(t){return{seriesType:t,plan:Aa(),reset:function(e){if(!xC(e))return;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=kr(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),p=a.isHorizontal(),h=a.toGlobalCoord(a.dataToCoord(DC(a))),v=IC(e),d=e.get("barMinHeight")||0,m=f&&r.getDimensionIndex(f),g=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,x){var S=_.count,b=v&&lr(S*3),T=v&&l&&lr(S*3),A=v&&lr(S),C=i.master.getRect(),E=p?C.width:C.height,D,O=x.getStore(),M=0;while((D=_.next())!=null){var L=O.get(c?m:o,D),B=O.get(s,D),R=h,F=void 0;if(c)F=+L-O.get(o,D);var z=void 0,H=void 0,Y=void 0,q=void 0;if(p){var Q=i.dataToPoint([L,B]);if(c)R=i.dataToPoint([F,B])[0];if(z=R,H=Q[1]+y,Y=Q[0]-R,q=g,Ie(Y)<d)Y=(Y<0?-1:1)*d}else{var Q=i.dataToPoint([B,L]);if(c)R=i.dataToPoint([B,F])[1];if(z=Q[0]+y,H=R,Y=g,q=Q[1]-R,Ie(q)<d)q=(q<=0?-1:1)*d}if(!v)x.setItemLayout(D,{x:z,y:H,width:Y,height:q});else{if(b[M]=z,b[M+1]=H,b[M+2]=p?Y:q,T)T[M]=p?C.x:z,T[M+1]=p?H:C.y,T[M+2]=E;A[D]=D}M+=3}if(v)x.setLayout({largePoints:b,largeDataIndices:A,largeBackgroundPoints:T,valueAxisHorizontal:p})}}}}}function IC(t){return t.pipelineContext&&t.pipelineContext.large}function Ik(t){return CC(Wl(t,Sr))}function NC(t){Dk(t,function(){function e(r){var i=Wl(r,Sr);EC(t,i,r,Sr),_w(i,Ik(r))}e("bar"),e("pictorialBar")})}var RC=function(t){P(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 $o(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 v=p.getTicksCoords(),d=p.getTickModel().get("alignWithLabel"),m=o[h],g=i[h]==="x1"||i[h]==="y1";if(g&&!d)m+=1;if(v.length<2)return;else if(v.length===2){s[h]=p.toGlobalCoord(p.getExtent()[g?1:0]);return}var y=void 0,_=void 0,x=1;for(var S=0;S<v.length;S++){var b=v[S].coord,T=S===v.length-1?v[S-1].tickValue+x:v[S].tickValue;if(T===m){_=b;break}else if(T<m)y=b;else if(y!=null&&T>m){_=(b+y)/2;break}if(S===1)x=T-v[0].tickValue}if(_==null){if(!y)_=v[0].coord;else if(y)_=v[v.length-1].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:3000,progressiveChunkMode:"mod",defaultBarGap:"10%"},e}(or);or.registerClass(RC);var ig=RC;var Nk=function(t){P(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 $o(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=of(this,r,i);if(n.progressiveRender)n.large=!0;return n},e.prototype.brushSelector=function(r,i,n){return n.rect(i.getItemLayout(r))},e.type="series."+ki,e.dependencies=["grid","polar"],e.defaultOption=wS(ig.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:he.color.primary,borderWidth:2}},realtimeSort:!1}),e}(ig),kC=Nk;var Rk=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}(),kk=function(t){P(e,t);function e(r){var i=t.call(this,r)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new Rk},e.prototype.buildPath=function(r,i){var{cx:n,cy:a}=i,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*0.5,u=o+l,{startAngle:f,endAngle:c,clockwise:p}=i,h=Math.PI*2,v=p?c-f<h:f-c<h;if(!v)f=c-(p?h:-h);var d=Math.cos(f),m=Math.sin(f),g=Math.cos(c),y=Math.sin(c);if(v)r.moveTo(d*o+n,m*o+a),r.arc(d*u+n,m*u+a,l,-Math.PI+f,f,!p);else r.moveTo(d*s+n,m*s+a);if(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}(ie),ng=kk;function BC(t,e){e=e||{};var r=e.isRoundCap;return function(i,n,a){var o=n.position;if(!o||o instanceof Array)return qn(i,n,a);var s=t(o),l=n.distance!=null?n.distance:5,u=this.shape,{cx:f,cy:c,r:p,r0:h}=u,v=(p+h)/2,{startAngle:d,endAngle:m}=u,g=(d+m)/2,y=r?Math.abs(p-h)/2:0,{cos:_,sin:x}=Math,S=f+p*_(d),b=c+p*x(d),T="left",A="top";switch(s){case"startArc":S=f+(h-l)*_(g),b=c+(h-l)*x(g),T="center",A="top";break;case"insideStartArc":S=f+(h+l)*_(g),b=c+(h+l)*x(g),T="center",A="bottom";break;case"startAngle":S=f+v*_(d)+Op(d,l+y,!1),b=c+v*x(d)+Lp(d,l+y,!1),T="right",A="middle";break;case"insideStartAngle":S=f+v*_(d)+Op(d,-l+y,!1),b=c+v*x(d)+Lp(d,-l+y,!1),T="left",A="middle";break;case"middle":S=f+v*_(g),b=c+v*x(g),T="center",A="middle";break;case"endArc":S=f+(p+l)*_(g),b=c+(p+l)*x(g),T="center",A="bottom";break;case"insideEndArc":S=f+(p-l)*_(g),b=c+(p-l)*x(g),T="center",A="top";break;case"endAngle":S=f+v*_(m)+Op(m,l+y,!0),b=c+v*x(m)+Lp(m,l+y,!0),T="left",A="middle";break;case"insideEndAngle":S=f+v*_(m)+Op(m,-l+y,!0),b=c+v*x(m)+Lp(m,-l+y,!0),T="right",A="middle";break;default:return qn(i,n,a)}return i=i||{},i.x=S,i.y=b,i.align=T,i.verticalAlign=A,i}}function zC(t,e,r,i){if(se(i)){t.setTextConfig({rotation:i});return}else if(k(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;if(u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5)f-=Math.PI;t.setTextConfig({rotation:f})}function Op(t,e,r){return e*Math.sin(t)*(r?-1:1)}function Lp(t,e,r){return e*Math.cos(t)*(r?1:-1)}function Ua(t,e,r){var i=t.get("borderRadius");if(i==null)return r?{cornerRadius:0}:null;if(!k(i))i=[i,i,i,i];var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:U(i,function(a){return Er(a,n)})}}var{max:ag,min:og}=Math,Bk=function(t){P(e,t);function e(){var r=t.call(this)||this;return r.type=ki,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");if(o==="cartesian2d"||o==="polar")this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,i,n):this._renderNormal(r,i,n,a);else Ue("Only cartesian2d and polar supported for bar.")},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){Ci(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var i=r.pipelineContext.large;if(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;if(u.type==="cartesian2d")c=f.isHorizontal();else if(u.type==="polar")c=f.dim==="angle";var p=r.isAnimationEnabled()?r:null,h=zk(r,u);if(h)this._enableRealtimeSort(h,s,n);var v=r.get("clip",!0)||h,d=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 A(D){var O=Pp[u.type](s,D);if(!O)return null;var M=Wk(u,c,O);if(M.useStyle(y.getItemStyle()),u.type==="cartesian2d")M.setShape("r",_);else M.setShape("cornerRadius",_);return x[D]=M,M}s.diff(l).add(function(D){var O=s.getItemModel(D),M=Pp[u.type](s,D,O);if(!M)return;if(g)A(D);if(!s.hasValue(D)||!GC[u.type](M))return;var L=!1;if(v)L=UC[u.type](d,M);var B=FC[u.type](r,s,D,M,c,p,f.model,!1,m);if(h)B.forceLabelAnimation=!0;if(YC(B,s,D,O,M,r,c,u.type==="polar"),b)B.attr({shape:M});else if(h)VC(h,p,B,M,D,c,!1,!1);else Qe(B,{shape:M},r,D);s.setItemGraphicEl(D,B),o.add(B),B.ignore=L}).update(function(D,O){var M=s.getItemModel(D),L=Pp[u.type](s,D,M);if(!L)return;if(g){var B=void 0;if(S.length===0)B=A(O);else{if(B=S[O],B.useStyle(y.getItemStyle()),u.type==="cartesian2d")B.setShape("r",_);else B.setShape("cornerRadius",_);x[D]=B}var R=Pp[u.type](s,D),F=KC(c,R,u);Ve(B,{shape:F},p,D)}var z=l.getItemGraphicEl(O);if(!s.hasValue(D)||!GC[u.type](L)){o.remove(z);return}var H=!1;if(v){if(H=UC[u.type](d,L),H)o.remove(z)}var Y=z&&(z.type==="sector"&&m||z.type==="sausage"&&!m);if(Y)z&&pn(z,r,O),z=null;if(!z)z=FC[u.type](r,s,D,L,c,p,f.model,!0,m);else Oo(z);if(h)z.forceLabelAnimation=!0;if(T){var q=z.getTextContent();if(q){var Q=Io(q);if(Q.prevValue!=null)Q.prevValue=Q.value}}else YC(z,s,D,M,L,r,c,u.type==="polar");if(b)z.attr({shape:L});else if(h)VC(h,p,z,L,D,c,!0,T);else Ve(z,{shape:L},r,D,null);s.setItemGraphicEl(D,z),z.ignore=H,o.add(z)}).remove(function(D){var O=l.getItemGraphicEl(D);O&&pn(O,r,D)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new we);C.removeAll();for(var E=0;E<x.length;++E)C.add(x[E]);o.add(C),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;if(i)n.setClipPath(i);else n.removeClipPath()},e.prototype._enableRealtimeSort=function(r,i,n){var a=this;if(!i.count())return;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==null?NaN:l,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){var a=n.scale,o=r.mapDimension(n.dim),s=Number.MAX_VALUE;for(var 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){var n=i.scale,a=n.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],n.getOrdinalMeta().categories.length-1);for(;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))return;var o=this._dataSort(r,n,i);if(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){if(this._onRendered)r.getZr().off("rendered",this._onRendered),this._onRendered=null},e.prototype._clear=function(r){var i=this.group,n=this._data;if(r&&r.isAnimationEnabled()&&n&&!this._isLargeDraw)this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){pn(a,r,xe(a).dataIndex)});else i.removeAll();this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=ki,e}(Lt),UC={cartesian2d:function(t,e){var r=e.width<0?-1:1,i=e.height<0?-1:1;if(r<0)e.x+=e.width,e.width=-e.width;if(i<0)e.y+=e.height,e.height=-e.height;var n=t.x+t.width,a=t.y+t.height,o=ag(e.x,t.x),s=og(e.x+e.width,n),l=ag(e.y,t.y),u=og(e.y+e.height,a),f=s<o,c=u<l;if(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;if(i<0)e.y+=e.height,e.height=-e.height;return 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=og(e.r,t.r),a=ag(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 De({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?ng:dr,f=new u({shape:i,z2:1});f.name="item";var c=ZC(n);if(f.calculateTextPosition=BC(c,{isRoundCap:u===ng}),a){var p=f.shape,h=n?"r":"endAngle",v={};p[h]=n?i.r0:i.startAngle,v[h]=i[h],(s?Ve:Qe)(f,{shape:v},a)}return f}};function zk(t,e){var r=t.get("realtimeSort",!0),i=e.getBaseAxis();if(r){if(i.type!=="category")Ue("`realtimeSort` will not work because this bar series is not based on a category axis.");if(e.type!=="cartesian2d")Ue("`realtimeSort` will not work because this bar series is not on cartesian2d.")}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;if(a)u={x:i.x,width:i.width},l={y:i.y,height:i.height};else u={y:i.y,height:i.height},l={x:i.x,width:i.width};if(!s)(o?Ve:Qe)(r,{shape:l},e,n,null);var f=e?t.baseAxis.model:null;(o?Ve:Qe)(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 Uk=["x","y","width","height"],Fk=["cx","cy","r","startAngle","endAngle"],GC={cartesian2d:function(t){return!HC(t,Uk)},polar:function(t){return!HC(t,Fk)}},Pp={cartesian2d:function(t,e,r){var i=t.getItemLayout(e);if(!i)return null;var n=r?Hk(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 Vk(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function ZC(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 YC(t,e,r,i,n,a,o,s){var l=e.getItemVisual(r,"style");if(!s){var u=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}else if(!a.get("roundCap")){var f=t.shape,c=Ua(i.getModel("itemStyle"),f,!0);N(f,c),t.setShape(f)}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?Xk(n,a.coordinateSystem):qk(n,a.coordinateSystem),v=Yt(i);oi(t,v,{labelFetcher:a,labelDataIndex:r,defaultText:ls(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var d=t.getTextContent();if(s&&d){var m=i.get(["label","position"]);t.textConfig.inside=m==="middle"?!0:null,zC(t,m==="outside"?h:m,ZC(o),i.get(["label","rotate"]))}yS(d,v,a.getRawValue(r),function(y){return bp(e,y)});var g=i.getModel(["emphasis"]);if(Lr(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),sa(t,i),Vk(n))t.style.fill="none",t.style.stroke="none",w(t.states,function(y){if(y.style)y.style.fill=y.style.stroke="none"})}function Hk(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 Gk=function(){function t(){}return t}(),WC=function(t){P(e,t);function e(r){var i=t.call(this,r)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new Gk},e.prototype.buildPath=function(r,i){var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth;for(var 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}(ie);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?d_(t):0;if(u){var c=new WC({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 WC({shape:{points:n.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});if(p.baseDimIdx=a,p.largeDataIndices=o,p.barWidth=s,e.add(p),p.useStyle(n.getVisual("style")),p.style.stroke=null,xe(p).seriesIndex=t.seriesIndex,!t.get("silent"))p.on("mousedown",qC),p.on("mousemove",qC);r&&r.push(p)}var qC=yl(function(t){var e=this,r=Yk(e,t.offsetX,t.offsetY);xe(e).dataIndex=r>=0?r:null},30,!1);function Yk(t,e,r){var i=t.baseDimIdx,n=1-i,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth;for(var 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];if(e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function KC(t,e,r){if(us(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 Wk(t,e,r){var i=t.type==="polar"?dr:De;return new i({shape:KC(e,r,t),silent:!0,z2:0})}function Xk(t,e){if(t.height===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function qk(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=Bk;function sg(t){t.registerChartView(jC),t.registerSeriesModel(kC),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,LC(ki)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,PC(ki)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Hl(ki)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var i=e.componentType||"series";r.eachComponent({mainType:i,query:e},function(n){if(e.sortInfo)n.axis.setCategorySortInfo(e.sortInfo)})}),NC(t)}function lg(t){return{seriesType:t,reset:function(e,r){var i=r.findComponents({mainType:"legend"});if(!i||!i.length)return;var n=e.getData();n.filterSelf(function(a){var o=n.getName(a);for(var s=0;s<i.length;s++)if(!i[s].isSelected(o))return!1;return!0})}}}function ug(t,e,r){e=k(e)&&{coordDimensions:e}||N({encodeDefine:t.getEncode()},e);var i=t.getSource(),n=Ll(i,e).dimensions,a=new Sn(n,t);return a.initData(i,r),a}var Zk=function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var i=this._getDataWithEncodedVisual();return i.getItemVisual(e,r)},t}(),$C=Zk;var Fr="pie",Kk=ee(),QC=function(t){P(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){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new $C(me(this.getData,this),me(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return ug(this,{coordDimensions:["value"],encodeDefaulter:Ae(jS,this)})},e.prototype.getDataParams=function(r){var i=this.getData(),n=Kk(i),a=n.seats;if(!a){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),a=n.seats=K0(o,i.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){jn(r,"labelLine",["show"]);var i=r.labelLine,n=r.emphasis.labelLine;i.show=i.show&&r.label.show,n.show=n.show&&r.emphasis.label.show},e.type="series."+Fr,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1000,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(or);FS({fullType:QC.type,getCoord2:function(t){return t.getShallow("center")}});var JC=QC;var jk=Math.PI/180;function eA(t,e,r,i,n,a,o,s,l,u){if(t.length<2)return;function f(d){var m=d.rB,g=m*m;for(var y=0;y<d.list.length;y++){var _=d.list[y],x=Math.abs(_.label.y-r),S=i+_.len,b=S*S,T=Math.sqrt(Math.abs((1-x*x/g)*b)),A=e+(T+_.len2)*n,C=A-_.label.x,E=_.targetTextWidth-C*n;rA(_,E,!0),_.label.x=A}}function c(d){var m={list:[],maxY:0},g={list:[],maxY:0};for(var y=0;y<d.length;y++){if(d[y].labelAlignTo!=="none")continue;var _=d[y],x=_.label.y>r?g:m,S=Math.abs(_.label.y-r);if(S>=x.maxY){var b=_.label.x-e-_.len2*n,T=i+_.len,A=Math.abs(b)<T?Math.sqrt(S*S/(1-b*b/T/T)):T;x.rB=A,x.maxY=S}x.list.push(_)}f(m),f(g)}var p=t.length;for(var h=0;h<p;h++)if(t[h].position==="outer"&&t[h].labelAlignTo==="labelLine"){var v=t[h].label.x-u;t[h].linePoints[1][0]+=v,t[h].label.x=u}if(Xw(t,1,l,l+o))c(t)}function $k(t,e,r,i,n,a,o,s){var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE;for(var p=0;p<t.length;p++){var h=t[p].label;if(fg(t[p]))continue;if(h.x<e)f=Math.min(f,h.x),l.push(t[p]);else c=Math.max(c,h.x),u.push(t[p])}for(var p=0;p<t.length;p++){var v=t[p];if(!fg(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var{label:h,linePoints:d}=v,m=void 0;if(v.labelAlignTo==="edge")if(h.x<e)m=d[2][0]-v.labelDistance-o-v.edgeDistance;else m=o+n-v.edgeDistance-d[2][0]-v.labelDistance;else if(v.labelAlignTo==="labelLine")if(h.x<e)m=f-o-v.bleedMargin;else m=o+n-c-v.bleedMargin;else if(h.x<e)m=h.x-o-v.bleedMargin;else m=o+n-h.x-v.bleedMargin;v.targetTextWidth=m,rA(v,m,!1)}}eA(u,e,r,i,1,n,a,o,s,c),eA(l,e,r,i,-1,n,a,o,s,f);for(var p=0;p<t.length;p++){var v=t[p];if(!fg(v)&&v.linePoints){var{label:h,linePoints:d}=v,g=v.labelAlignTo==="edge",y=h.style.padding,_=y?y[1]+y[3]:0,x=h.style.backgroundColor?0:_,S=v.rect.width+x,b=d[1][0]-d[2][0];if(g)if(h.x<e)d[2][0]=o+v.edgeDistance+S+v.labelDistance;else d[2][0]=o+n-v.edgeDistance-S-v.labelDistance;else{if(h.x<e)d[2][0]=h.x+v.labelDistance;else d[2][0]=h.x-v.labelDistance;d[1][0]=d[2][0]+b}d[1][1]=d[2][1]=h.y}}}function rA(t,e,r){if(t.labelStyleWidth!=null)return;var i=t.label,n=i.style,a=t.rect,{backgroundColor:o,padding:s}=n,l=s?s[1]+s[3]:0,u=n.overflow,f=a.width+(o?0:l);if(e<f||r){if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var c=i.getBoundingRect();i.setStyle("width",Math.ceil(c.width)),i.setStyle("backgroundColor",o)}else{var p=e-l,h=e<f?p:r?p>t.unconstrainedWidth?null:p:null;i.setStyle("width",h)}iA(a,i)}}function iA(t,e){tA.rect=t,Hm(tA,e,Qk)}var Qk={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},tA={};function fg(t){return t.position==="center"}function cg(t){var e=t.getData(),r=[],i,n,a=!1,o=(t.get("minShowLabelAngle")||0)*jk,s=e.getLayout("viewRect"),l=e.getLayout("r"),{width:u,x:f,y:c,height:p}=s;function h(b){b.ignore=!0}function v(b){if(!b.ignore)return!0;for(var T in b.states)if(b.states[T].ignore===!1)return!0;return!1}if(e.each(function(b){var T=e.getItemGraphicEl(b),A=T.shape,C=T.getTextContent(),E=T.getTextGuideLine(),D=e.getItemModel(b),O=D.getModel("label"),M=O.get("position")||D.get(["emphasis","label","position"]),L=O.get("distanceToLabelLine"),B=O.get("alignTo"),R=Ce(O.get("edgeDistance"),u),F=O.get("bleedMargin");if(F==null)F=Math.min(u,p)>200?10:2;var z=D.getModel("labelLine"),H=z.get("length");H=Ce(H,u);var Y=z.get("length2");if(Y=Ce(Y,u),Math.abs(A.endAngle-A.startAngle)<o){if(w(C.states,h),C.ignore=!0,E)w(E.states,h),E.ignore=!0;return}if(!v(C))return;var q=(A.startAngle+A.endAngle)/2,Q=Math.cos(q),J=Math.sin(q),j,ce,ye,We;i=A.cx,n=A.cy;var He=M==="inside"||M==="inner";if(M==="center")j=A.cx,ce=A.cy,We="center";else{var Te=(He?(A.r+A.r0)/2*Q:A.r*Q)+i,Me=(He?(A.r+A.r0)/2*J:A.r*J)+n;if(j=Te+Q*3,ce=Me+J*3,!He){var le=Te+Q*(H+l-A.r),Se=Me+J*(H+l-A.r),Rt=le+(Q<0?-1:1)*Y,Xe=Se;if(B==="edge")j=Q<0?f+R:f+u-R;else j=Rt+(Q<0?-L:L);ce=Xe,ye=[[Te,Me],[le,Se],[Rt,Xe]]}We=He?"center":B==="edge"?Q>0?"right":"left":Q>0?"left":"right"}var br=Math.PI,kt=0,Tr=O.get("rotate");if(se(Tr))kt=Tr*(br/180);else if(M==="center")kt=0;else if(Tr==="radial"||Tr===!0){var Ga=Q<0?-q+br:-q;kt=Ga}else if(Tr==="tangential"||Tr==="tangential-noflip"&&M!=="outside"&&M!=="outer"){var wr=Math.atan2(Q,J);if(wr<0)wr=br*2+wr;var au=J>0;if(au&&Tr!=="tangential-noflip")wr=br+wr;kt=wr-br}if(a=!!kt,C.x=j,C.y=ce,C.rotation=kt,C.setStyle({verticalAlign:"middle"}),!He){var Ya=new ae(0,0,0,0);iA(Ya,C),r.push({label:C,labelLine:E,position:M,len:H,len2:Y,minTurnAngle:z.get("minTurnAngle"),maxSurfaceAngle:z.get("maxSurfaceAngle"),surfaceNormal:new fe(Q,J),linePoints:ye,textAlign:We,labelDistance:L,labelAlignTo:B,edgeDistance:R,bleedMargin:F,rect:Ya,unconstrainedWidth:Ya.width,labelStyleWidth:C.style.width})}else{C.setStyle({align:We});var th=C.states.select;if(th)th.x+=C.x,th.y+=C.y}T.setTextConfig({inside:He})}),!a&&t.get("avoidLabelOverlap"))$k(r,i,n,l,u,p,f,c);for(var d=0;d<r.length;d++){var m=r[d],{label:g,labelLine:y}=m,_=isNaN(g.x)||isNaN(g.y);if(g){if(g.setStyle({align:m.textAlign}),_)w(g.states,h),g.ignore=!0;var x=g.states.select;if(x)x.x+=g.x,x.y+=g.y}if(y){var S=m.linePoints;if(_||!S)w(y.states,h),y.ignore=!0;else kw(S,m.minTurnAngle),Bw(S,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:S}),g.__hostTarget.textGuideLineConfig={anchor:new fe(S[0][0],S[0][1])}}}}var nA=Math.PI*2,Ip=Math.PI/180,aA=m_(Fr,Jk);function Jk(t,e){t.eachSeriesByType(Fr,function(r){var i=r.getData(),n=i.mapDimension("value"),a=YS(r,e),{cx:o,cy:s,r:l,r0:u,viewRect:f}=a,c=-r.get("startAngle")*Ip,p=r.get("endAngle"),h=r.get("padAngle")*Ip;p=p==="auto"?c-nA:-p*Ip;var v=r.get("minAngle")*Ip,d=v+h,m=0;i.each(n,function(R){!isNaN(R)&&m++});var g=i.getSum(n),y=Math.PI/(g||m)*2,_=r.get("clockwise"),x=r.get("roseType"),S=r.get("stillShowZeroSum"),b=i.getDataExtent(n);b[0]=0;var T=_?1:-1,A=[c,p],C=T*h/2;Ov(A,!_),c=A[0],p=A[1];var E=pg(r);E.startAngle=c,E.endAngle=p,E.clockwise=_,E.cx=o,E.cy=s,E.r=l,E.r0=u;var D=Math.abs(p-c),O=D,M=0,L=c;if(i.setLayout({viewRect:f,r:l}),i.each(n,function(R,F){var z;if(isNaN(R)){i.setItemLayout(F,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:u,r:x?NaN:l});return}if(x!=="area")z=g===0&&S?y:R*y;else z=D/m;if(z<d)z=d,O-=d;else M+=R;var H=L+T*z,Y=0,q=0;if(h>z)Y=L+T*z/2,q=Y;else Y=L+C,q=H-C;i.setItemLayout(F,{angle:z,startAngle:Y,endAngle:q,clockwise:_,cx:o,cy:s,r0:u,r:x?ks(R,b,[u,l]):l}),L=H}),O<nA&&m)if(O<=0.001){var B=D/m;i.each(n,function(R,F){if(!isNaN(R)){var z=i.getItemLayout(F);z.angle=B;var H=0,Y=0;if(B<h)H=c+T*(F+0.5)*B,Y=H;else H=c+T*F*B+C,Y=c+T*(F+1)*B-C;z.startAngle=H,z.endAngle=Y}})}else y=O/M,L=c,i.each(n,function(R,F){if(!isNaN(R)){var z=i.getItemLayout(F),H=z.angle===d?d:R*y,Y=0,q=0;if(H<h)Y=L+T*H/2,q=Y;else Y=L+C,q=L+T*H-C;z.startAngle=Y,z.endAngle=q,L+=T*H}})})}var pg=ee();var e2=function(t){P(e,t);function e(r,i,n){var a=t.call(this)||this;a.z2=2;var o=new $e;return a.setTextContent(o),a.updateData(r,i,n,!0),a}return e.prototype.updateData=function(r,i,n,a){var o=this,s=r.hostModel,l=r.getItemModel(i),u=l.getModel("emphasis"),f=r.getItemLayout(i),c=N(Ua(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var p=s.getShallow("animationType");if(s.ecModel.ssr)Qe(o,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),o.originX=c.cx,o.originY=c.cy;else if(p==="scale")o.shape.r=f.r0,Qe(o,{shape:{r:f.r}},s,i);else if(n!=null)o.setShape({startAngle:n,endAngle:n}),Qe(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,i);else o.shape.endAngle=f.startAngle,Ve(o,{shape:{endAngle:f.endAngle}},s,i)}else Oo(o),Ve(o,{shape:c},s,i);o.useStyle(r.getItemVisual(i,"style")),sa(o,l);var h=(f.startAngle+f.endAngle)/2,v=s.get("selectedOffset"),d=Math.cos(h)*v,m=Math.sin(h)*v,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,r,i),o.ensureState("emphasis").shape=N({r:f.r+(u.get("scale")?u.get("scaleSize")||0:0)},Ua(u.getModel("itemStyle"),f)),N(o.ensureState("select"),{x:d,y:m,shape:Ua(l.getModel(["select","itemStyle"]),f)}),N(o.ensureState("blur"),{shape:Ua(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&N(y.ensureState("select"),{x:d,y:m}),N(_.ensureState("select"),{x:d,y:m}),Lr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,i,n){var a=this,o=i.getItemModel(n),s=o.getModel("labelLine"),l=i.getItemVisual(n,"style"),u=l&&l.fill,f=l&&l.opacity;oi(a,Yt(o),{labelFetcher:i.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(n,"normal")||i.getName(n)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var p=o.get(["label","position"]);if(p!=="outside"&&p!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();if(!h)h=new cn,this.setTextGuideLine(h);zw(this,Uw(o),{stroke:u,opacity:bt(s.get(["lineStyle","opacity"]),f,1)})}},e}(dr),t2=function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Fr,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,i,n,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){var f=o.getItemLayout(0);for(var c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);if(f)u=f.startAngle}if(this._emptyCircleSector)l.remove(this._emptyCircleSector);if(o.count()===0&&r.get("showEmptyCircle")){var p=pg(r),h=new dr({shape:te(p)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}if(o.diff(s).add(function(v){var d=new e2(o,v,u);o.setItemGraphicEl(v,d),l.add(d)}).update(function(v,d){var m=s.getItemGraphicEl(d);m.updateData(o,v,u),m.off("click"),l.add(m),o.setItemGraphicEl(v,m)}).remove(function(v){var d=s.getItemGraphicEl(v);pn(d,r,v)}).execute(),cg(r),r.get("animationTypeUpdate")!=="expansion")this._data=o},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,i){var n=i.getData(),a=n.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type=Fr,e}(Lt),oA=t2;function hg(t){return{seriesType:t,reset:function(e,r){var i=e.getData();i.filterSelf(function(n){var a=i.mapDimension("value"),o=i.get(a,n);if(se(o)&&!isNaN(o)&&o<0)return!1;return!0})}}}function vg(t){t.registerChartView(oA),t.registerSeriesModel(JC),pT(Fr,t.registerAction),t.registerLayout(aA),t.registerProcessor(lg(Fr)),t.registerProcessor(hg(Fr))}var Np=function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",mt).models[0]},e.type="cartesian2dAxis",e}(be);ht(Np,ew);var sA={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:he.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:he.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:he.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[he.color.backgroundTint,he.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:he.color.neutral00,borderColor:he.color.border,borderWidth:1,borderType:[3,3],opacity:0.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},r2=_e({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},sA),dg=_e({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:he.color.axisMinorSplitLine,width:1}}},sA),i2=_e({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},dg),n2=oe({logBase:10},dg),lA={category:r2,value:dg,time:i2,log:n2};function Rp(t,e,r,i){w(lp,function(n,a){var o=_e(_e({},lA[a],!0),i,!0),s=function(l){P(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?mn(f):{},v=c.getTheme();if(_e(f,v.get(a+"Axis")),_e(f,this.getDefaultOption()),f.type=uA(f),p)Nr(f,h,p)},u.prototype.optionUpdated=function(){var f=this.option;if(f.type==="category")this.__ordinalMeta=Pl.createByAxisModel(this)},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category"){if(f)return c.data;return 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",uA)}function uA(t){return t.type||(t.data?"category":"value")}var a2=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(),Oe(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}(),fA=a2;var ql=["x","y"];function cA(t){return(t.type==="interval"||t.type==="time")&&!gr(t)}var o2=function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Sr,r.dimensions=ql,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!cA(r)||!cA(i))return;var n=Ia(r,null),a=Ia(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)return;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,v=this._transform=[f,0,0,c,p,h];this._invTransform=Gr([],v)},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 ae(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 dt(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 dt(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 ae(a,o,s,l)},e}(fA),pA=o2;function hA(t,e){var{scale:r,model:i}=t;I(r&&i&&(r instanceof ui||r instanceof Rl)&&(e instanceof ui||e instanceof Rl));var n=gp(r,i,i.ecModel,t,null),a=li(r),o=li(e)?e.intervalStub:e,s=a?r.intervalStub:r,l=r.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1;if(I(!gr(e)&&!gr(r)),I(c>0),I(f.length===u.length),I(u[0].value<=u[c].value),I(f[0].value<=u[0].value&&u[c].value<=f[c].value),c>=2)I(f[1].value===u[1].value),I(f[c-1].value===u[c-1].value);var p,h,v;if(c===1)p=h=0,v=1;else if(c===2){var d=Ie(u[0].value-u[1].value),m=Ie(u[1].value-u[2].value);if(p=h=0,d===m)v=2;else if(v=1,d<m)p=d/m;else h=m/d}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,v=c-(p?1:0)-(h?1:0)}I(v>=1);var y=n.zoomFixMM,_=y[0]||y[1],x=[n.fixMM[0]||_,n.fixMM[1]||_],S=r.getExtent(),b=s.getExtent(),T=ip(b,x),A,C,E,D,O,M;function L(Q){var J=50,j=0;for(;j<J;j++){if(Q())break;E=a?E*ve(l,2):L1(E),D=Br(E)}if(j>=J)Ue("incorrect impl in `scaleCalcAlign`.")}function B(){A=de(M-E*p,D)}function R(){C=de(O+E*h,D)}function F(){M=p?de(A+E*p,D):A}function z(){O=h?de(C-E*h,D):C}if(x[0]&&x[1]){A=T[0],C=T[1],E=(C-A)/(v+p+h);var H=t.getExtent(),Y=Ie(H[1]-H[0]);if(D=Z0([C,A],Y,0.5/v),F(),z(),qe(D))E=de(E,D)}else{var q=T[1]-T[0];if(E=a?ve(ju(q),1):Zn(q/v,av),D=Br(E),x[0])A=T[0],L(function(){if(F(),O=de(M+E*v,D),R(),C>=T[1])return!0});else if(x[1])C=T[1],L(function(){if(z(),M=de(O-E*v,D),B(),A<=T[0])return!0});else L(function(){M=de($i(T[0]/E)*E,D),O=de(qr(T[1]/E)*E,D);var Q=er((O-M)/E);if(Q<=v){var J=v-Q,j=void 0,ce=n.incl0||a;if(ce&&T[0]===0)j=[0,J];else if(ce&&T[1]===0)j=[J,0];else{var ye=qr(J/2);j=J%2===0?[ye,ye]:A+C<T[0]+T[1]?[ye,ye+1]:[ye+1,ye]}if(M=de(M-E*j[0],D),O=de(O+E*j[1],D),B(),R(),A<=T[0]&&C>=T[1])return!0}})}cp(r,x,b,[A,C],S,{interval:E,intervalCount:v,intervalPrecision:D,niceExtent:[M,O]}),r.freeze()}var vA=[[3,1],[0,2]],s2=function(){function t(e,r,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ql,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){gw(o,hw);var s=o.scale;if(pt(s))s.setSortInfo(o.model.get("categorySortInfo"))});function n(o){var s=re(o),l=[];for(var u=s.length-1;u>=0;u--){var f=o[+s[u]];if(f.__alignTo)l.push(f);else zm(f)}w(l,function(c){if(u2(c,c.__alignTo))zm(c);else hA(c,c.__alignTo.scale)})}n(i.x),n(i.y);var a={};w(i.x,function(o){dA(i,"y",o,a)}),w(i.y,function(o){dA(i,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,i){var n=Od(e,r),a=this._rect=xa(e.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(mg(o,a),!i){var u=c2(a,s,o,l,r),f=void 0;if(l)if(_A)_A(this._axesList,a),mg(o,a);else tf("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.",!0),f=xA(a.clone(),"axisLabel",null,a,o,u,n);else{var c=p2(e,a,n),{outerBoundsRect:p,parsedOuterBoundsContain:h,outerBoundsClamp:v}=c;if(p)f=xA(p,h,v,a,o,u,n)}SA(a,o,Zt.determine,null,f,n),w(this._coordsList,function(d){d.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]}if(W(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",mt).models[0],n=e.yAxisModel||r&&r.getReferringComponents("yAxis",mt).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,ue(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;if(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 v="x"+c+"y"+h,d=new pA(v);d.master=n,d.model=e,n._coordsMap[v]=d,n._coordsList.push(d),d.addAxis(f),d.addAxis(p)})}),gA(s.x),gA(s.y);function u(f){return function(c,p){if(!l2(c,e))return;var h=c.get("position");if(f==="x"){if(h!=="top"&&h!=="bottom")h=o.bottom?"top":"bottom"}else if(h!=="left"&&h!=="right")h=o.left?"right":"left";o[h]=!0;var v=X1(c),d=new Ep(f,q1(c,v,!0),[0,0],v,h);d.onBand=pp(d.scale,c),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=a,d.index=p,a._axesList.push(d),s[f][p]=d,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);ue(r,a)<0&&r.push(a),ue(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){mw(s,t.dimIdxMap)})}),e.eachSeries(function(n){var a,o;VS({targetModel:n,coordSysType:Sr,coordSysProvider:s});function s(){var l=SC(n),{xAxisModel:u,yAxisModel:f}=l;a=u.axis,o=f.axis;var c=u.getCoordSysModel();if(!c)throw Error('Grid "'+bt(u.get("gridIndex"),u.get("gridId"),0)+'" not found');if(u.getCoordSysModel()!==f.getCoordSysModel())throw Error("xAxis and yAxis must use the same grid");var p=c.coordinateSystem;return p.getCartesian(u.componentIndex,f.componentIndex)}if(a&&o)Bm(a,n,Sr),Bm(o,n,Sr)},this),i},t.dimensions=ql,t.dimIdxMap=El(ql),t}();function l2(t,e){return t.getCoordSysModel()===e}function dA(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){if(mA(s,n[l]))a=n[l]}else for(var u in n)if(Be(n,u)&&mA(s,n[u])&&!i[f(n[u])]){a=n[u];break}if(a)i[f(a)]=!0;function f(c){return c.dim+"_"+c.index}}function mA(t,e){if(!e)return!1;var r=e.scale,i=Z1(r,0,!1),n=e&&e.type!=="category"&&e.type!=="time"&&i!==up;if(n&&t==="auto"&&j1(e))n=!1;return n}function gA(t){var e=re(t),r,i=[];for(var n=e.length-1;n>=0;n--){var a=t[+e[n]];if(tp(a.scale)&&Lm(a.model,a.type,!0)==null)if(a.model.get("alignTicks")&&a.model.get("interval")==null)i.push(a);else r=a}if(!r)r=i.pop();if(r)w(i,function(o){o.__alignTo=r})}function u2(t,e){return gr(t.scale)||gr(e.scale)||e.scale.getTicks().length<2}function f2(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 mg(t,e){w(t.x,function(r){return yA(r,e.x,e.width)}),w(t.y,function(r){return yA(r,e.y,e.height)})}function yA(t,e,r){var i=[0,r],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),f2(t,e)}var _A;function xA(t,e,r,i,n,a,o){I(e==="all"||e==="axisLabel"),SA(i,n,Zt.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(i,0,NaN),f(i,1,NaN);var l=Sy(s,function(p){return p>0})==null;return Lo(i,s,!0,!0,r),mg(n,i),l;function u(p){w(n[ai[p]],function(h){if(!Na(h.model))return;var v=a.ensureRecord(h.model),d=v.labelInfoList;if(d)for(var m=0;m<d.length;m++){var g=d[m],y=h.scale.normalize(Ii(h.scale,Mn(g.label).labelInfo.tick));y=p===1?1-y:y,f(g.rect,p,y),f(g.rect,1-p,NaN)}var _=v.nameLayout;if(_){var y=bn(v.nameLocation)?0.5:NaN;f(_.rect,p,y),f(_.rect,1-p,NaN)}})}function f(p,h,v){var d=t[ai[h]]-p[ai[h]],m=p[hn[h]]+p[ai[h]]-(t[hn[h]]+t[ai[h]]);d=c(d,1-v),m=c(m,v);var g=vA[h][0],y=vA[h][1];s[g]=ve(s[g],d),s[y]=ve(s[y],m)}function c(p,h){if(p>0&&!Vr(h)&&h>0.0001)p/=h;return p}}function c2(t,e,r,i,n){var a=new Qm(h2);return w(r,function(o){return w(o,function(s){if(Na(s.model)){var l=!i;s.axisBuilder=bC(t,e,s.model,n,a,l)}})}),a}function SA(t,e,r,i,n,a){var o=r===Zt.determine;w(e,function(u){return w(u,function(f){if(Na(f.model))TC(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[ai[1-u]]=t[hn[u]]<=a.refContainer[hn[u]]*0.5?0:1-u===1?2:1}w(e,function(u,f){return w(u,function(c){if(Na(c.model)){if(i==="all"||o)c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]});if(o)c.axisBuilder.build({axisLine:!0})}})})}function p2(t,e,r){var i,n=t.get("outerBoundsMode",!0);if(n==="same")i=e.clone();else if(n==null||n==="auto")i=xa(t.get("outerBounds",!0)||rg,r.refContainer);else if(n!=="none")pe("Invalid grid["+t.componentIndex+"].outerBoundsMode.");var a=t.get("outerBoundsContain",!0),o;if(a==null||a==="auto")o="all";else if(ue(["all","axisLabel"],a)<0)pe("Invalid grid["+t.componentIndex+"].outerBoundsContain."),o="all";else o=a;var s=[Ku(G(t.get("outerBoundsClampWidth",!0),Xl[0]),e.width),Ku(G(t.get("outerBoundsClampHeight",!0),Xl[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var h2=function(t,e,r,i,n,a){var o=r.axis.dim==="x"?"y":"x";if(Jm(t,e,r,i,n,a),!bn(t.nameLocation))w(e.recordMap[o],function(s){if(s&&s.labelInfoList&&s.dirVec)eg(s.labelInfoList,s.dirVec,i,n)})},bA=s2;function TA(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return v2(r,t,e),r.seriesInvolved&&m2(r,t),r}function v2(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=cs(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",i);if(w(s.getAxes(),Ae(d,!1,null)),s.getTooltipAxes&&i&&c.get("show")){var p=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(c.get(["axisPointer","axis"]));if(p||h)w(v.baseAxes,Ae(d,h?"cross":!0,p));if(h)w(v.otherAxes,Ae(d,"cross",!1))}function d(m,g,y){var _=y.model.getModel("axisPointer",n),x=_.get("show");if(!x||x==="auto"&&!m&&!yg(_))return;if(g==null)g=_.get("triggerTooltip");_=m?d2(y,c,n,e,m,g):_;var S=_.get("snap"),b=_.get("triggerEmphasis"),T=cs(y.model),A=g||S||y.type==="category",C=t.axesInfo[T]={key:T,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:b,involveSeries:A,snap:S,useHandle:yg(_),seriesModels:[],linkGroup:null};u[T]=C,t.seriesInvolved=t.seriesInvolved||A;var E=g2(a,y);if(E!=null){var D=o[E]||(o[E]={axesInfo:{}});D.axesInfo[T]=C,D.mapper=a[E].mapper,C.linkGroup=D}}})}function d2(t,e,r,i,n,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};if(w(s,function(p){l[p]=te(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!=null?f:!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&oe(u,c.textStyle)}}return t.model.getModel("axisPointer",new Re(l,r,i))}function m2(t,e){e.eachSeries(function(r){var i=r.coordinateSystem,n=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);if(!i||!i.model||n==="none"||n===!1||n==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1)return;w(t.coordSysAxesInfo[cs(i.model)],function(o){var s=o.axis;if(i.getAxis(s.dim)===s)o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count()})})}function g2(t,e){var{model:r,dim:i}=e;for(var n=0;n<t.length;n++){var a=t[n]||{};if(gg(a[i+"AxisId"],r.id)||gg(a[i+"AxisIndex"],r.componentIndex)||gg(a[i+"AxisName"],r.name))return n}}function gg(t,e){return t==="all"||k(t)&&ue(t,e)>=0||t===e}function wA(t){var e=kp(t);if(!e)return;var r=e.axisPointerModel,i=e.axis.scale,n=r.option,a=r.get("status"),o=r.get("value");if(o!=null)o=i.parse(o);var s=yg(r);if(a==null)n.status=s?"show":"hide";var l=i.getExtent();if(o==null||o>l[1])o=l[1];if(o<l[0])o=l[0];if(n.value=o,s)n.status=e.axis.scale.isBlank()?"hide":"show"}function kp(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[cs(t)]}function CA(t){var e=kp(t);return e&&e.axisPointerModel}function yg(t){return!!t.get(["handle","show"])}function cs(t){return t.type+"||"+t.id}var xg={},y2=function(t){P(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&&wA(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)return;var o=CA(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){if(xg[r])throw Error("axisPointer "+r+" exists");xg[r]=i},e.getAxisPointerClass=function(r){return r&&xg[r]},e.type="axis",e}(Ot),Bp=y2;var Sg=ee();function AA(t,e,r,i){var n=r.axis;if(n.scale.isBlank())return;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)return;var f=s.length,c=Sg(t).splitAreaColors,p=Z(),h=0;if(c)for(var v=0;v<u.length;v++){var d=c.get(u[v].tickValue);if(d!=null){h=(d+(f-1)*v)%f;break}}var m=n.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=k(s)?s:[s];for(var v=1;v<u.length;v++){var y=n.toGlobalCoord(u[v].coord),_=void 0,x=void 0,S=void 0,b=void 0;if(n.isHorizontal())_=m,x=l.y,S=y-_,b=l.height,m=_+S;else _=l.x,x=m,S=l.width,b=y-x,m=x+b;var T=u[v-1].tickValue;T!=null&&p.set(T,h),e.add(new De({anid:T!=null?"area_"+T:null,shape:{x:_,y:x,width:S,height:b},style:oe({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%f}Sg(t).splitAreaColors=p}function EA(t){Sg(t).splitAreaColors=null}var _2=["splitArea","splitLine","minorSplitLine","breakArea"],DA=function(t){P(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),!Na(r))return;this._axisGroup.add(r.axis.axisBuilder.group),w(_2,function(l){if(r.get([l,"show"]))x2[l](this,this._axisGroup,r,r.getCoordSysModel(),n)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;if(!s)ld(o,this._axisGroup,r);t.prototype.render.call(this,r,i,n,a)},e.prototype.remove=function(){EA(this)},e.type="cartesianAxis",e}(Bp),x2={splitLine:function(t,e,r,i,n){var a=r.axis;if(a.scale.isBlank())return;var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=k(l)?l:[l];var c=i.coordinateSystem.getRect(),p=a.isHorizontal(),h=0,v=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),d=[],m=[],g=s.getLineStyle();for(var y=0;y<v.length;y++){var _=a.toGlobalCoord(v[y].coord);if(y===0&&!u||y===v.length-1&&!f)continue;var x=v[y].tickValue;if(p)d[0]=_,d[1]=c.y,m[0]=_,m[1]=c.y+c.height;else d[0]=c.x,d[1]=_,m[0]=c.x+c.width,m[1]=_;var S=h++%l.length,b=new Ht({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:m[0],y2:m[1]},style:oe({stroke:l[S]},g),silent:!0});ha(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)return;var c=[],p=[],h=s.getLineStyle();for(var v=0;v<f.length;v++)for(var d=0;d<f[v].length;d++){var m=a.toGlobalCoord(f[v][d].coord);if(u)c[0]=m,c[1]=l.y,p[0]=m,p[1]=l.y+l.height;else c[0]=l.x,c[1]=m,p[0]=l.x+l.width,p[1]=m;var g=new Ht({anid:"minor_line_"+f[v][d].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:h,silent:!0});ha(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,r,i,n){AA(t,e,r,i)},breakArea:function(t,e,r,i,n){var a=ka(),o=r.axis.scale;if(a&&o.type!=="ordinal")a.rectCoordBuildBreakAxis(e,t,r,i.coordinateSystem.getRect(),n)}},bg=function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e}(DA);var MA=function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=bg.type,r}return e.type="yAxis",e}(DA);var S2=function(t){P(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){if(this.group.removeAll(),r.get("show"))this.group.add(new De({shape:r.coordinateSystem.getRect(),style:oe({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Ot),OA={offset:0};function LA(t){t.registerComponentView(S2),t.registerComponentModel(MC),t.registerCoordinateSystem("cartesian2d",bA),Rp(t,"x",Np,OA),Rp(t,"y",Np,OA),t.registerComponentView(bg),t.registerComponentView(MA),t.registerPreprocessor(function(e){if(e.xAxis&&e.yAxis&&!e.grid)e.grid={}})}var PA=Ht.prototype,Tg=Ao.prototype,IA=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Ij=function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(IA);function wg(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var b2=function(t){P(e,t);function e(r){var i=t.call(this,r)||this;return i.type="ec-line",i}return e.prototype.getDefaultStyle=function(){return{stroke:he.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new IA},e.prototype.buildPath=function(r,i){if(wg(i))PA.buildPath.call(this,r,i);else Tg.buildPath.call(this,r,i)},e.prototype.pointAt=function(r){if(wg(this.shape))return PA.pointAt.call(this,r);else return Tg.pointAt.call(this,r)},e.prototype.tangentAt=function(r){var i=this.shape,n=wg(i)?[i.x2-i.x1,i.y2-i.y1]:Tg.tangentAt.call(this,r);return $a(n,n)},e}(ie),NA=b2;var Cg=["fromSymbol","toSymbol"];function RA(t){return"_"+t+"Type"}function kA(t,e,r){var i=e.getItemVisual(r,t);if(!i||i==="none")return i;var n=e.getItemVisual(r,t+"Size"),a=e.getItemVisual(r,t+"Rotate"),o=e.getItemVisual(r,t+"Offset"),s=e.getItemVisual(r,t+"KeepAspect"),l=Tl(n),u=Ma(o||0,l);return i+l+u+(a||"")+(s||"")}function BA(t,e,r){var i=e.getItemVisual(r,t);if(!i||i==="none")return;var n=e.getItemVisual(r,t+"Size"),a=e.getItemVisual(r,t+"Rotate"),o=e.getItemVisual(r,t+"Offset"),s=e.getItemVisual(r,t+"KeepAspect"),l=Tl(n),u=Ma(o||0,l),f=Rr(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,f.name=t,f}function T2(t){var e=new NA({name:"line",subPixelOptimize:!0});return Ag(e.shape,t),e}function Ag(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var r=e[2];if(r)t.cpx1=r[0],t.cpy1=r[1];else t.cpx1=NaN,t.cpy1=NaN}var w2=function(t){P(e,t);function e(r,i,n){var a=t.call(this)||this;return a._createLine(r,i,n),a}return e.prototype._createLine=function(r,i,n){var a=r.hostModel,o=r.getItemLayout(i),s=r.getItemVisual(i,"z2"),l=T2(o);l.shape.percent=0,Qe(l,{z2:G(s,0),shape:{percent:1}},a,i),this.add(l),w(Cg,function(u){var f=BA(u,r,i);this.add(f),this[RA(u)]=kA(u,r,i)},this),this._updateCommonStl(r,i,n)},e.prototype.updateData=function(r,i,n){var a=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(i),l={shape:{}};Ag(l.shape,s),Ve(o,l,a,i),w(Cg,function(u){var f=kA(u,r,i),c=RA(u);if(this[c]!==f){this.remove(this.childOfName(u));var p=BA(u,r,i);this.add(p)}this[c]=f},this),this._updateCommonStl(r,i,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(r,i,n){var a=r.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,f=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,p=n&&n.focus,h=n&&n.blurScope;if(!n||r.hasItemOption){var v=r.getItemModel(i),d=v.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),c=d.get("disabled"),p=d.get("focus"),h=d.get("blurScope"),f=Yt(v)}var m=r.getItemVisual(i,"style"),g=m.stroke;o.useStyle(m),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,w(Cg,function(b){var T=this.childOfName(b);if(T){T.setColor(g),T.style.opacity=m.opacity;for(var A=0;A<lt.length;A++){var C=lt[A],E=o.getState(C);if(E){var D=E.style||{},O=T.ensureState(C),M=O.style||(O.style={});if(D.stroke!=null)M[T.__isEmptyBrush?"stroke":"fill"]=D.stroke;if(D.opacity!=null)M.opacity=D.opacity}}T.markRedraw()}},this);var y=a.getRawValue(i);oi(this,f,{labelDataIndex:i,labelFetcher:{getFormattedLabel:function(b,T){return a.getFormattedLabel(b,T,r.dataType)}},inheritColor:g||he.color.neutral99,defaultOpacity:m.opacity,defaultText:(y==null?r.getName(i):isFinite(y)?de(y,10):y)+""});var _=this.getTextContent();if(_){var x=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=x.get("position")||"middle";var S=x.get("distance");if(!k(S))S=[S,S];_.__labelDistance=S}this.setTextConfig({position:null,local:!0,inside:!1}),Lr(this,p,h,c)},e.prototype.highlight=function(){Ti(this)},e.prototype.downplay=function(){wi(this)},e.prototype.updateLayout=function(r,i){this.childOfName("line").stopAnimation(),this.setLinePoints(r.getItemLayout(i))},e.prototype.setLinePoints=function(r){var i=this.childOfName("line");Ag(i.shape,r),i.dirty()},e.prototype.beforeUpdate=function(){var r=this,i=r.childOfName("fromSymbol"),n=r.childOfName("toSymbol"),a=r.getTextContent();if(!i&&!n&&(!a||a.ignore))return;var o=1,s=this.parent;while(s){if(s.scaleX)o/=s.scaleX;s=s.parent}var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),c=l.pointAt(u),p=pu([],c,f);$a(p,p);function h(E,D){var O=E.__specifiedRotation;if(O==null){var M=l.tangentAt(D);E.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(M[1],M[0]))}else E.attr("rotation",O)}if(i)i.setPosition(f),h(i,0),i.scaleX=i.scaleY=o*u,i.markRedraw();if(n)n.setPosition(c),h(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw();if(a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var v=void 0,d=void 0,m=a.__labelDistance,g=m[0]*o,y=m[1]*o,_=u/2,x=l.tangentAt(_),S=[x[1],-x[0]],b=l.pointAt(_);if(S[1]>0)S[0]=-S[0],S[1]=-S[1];var T=x[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var A=-Math.atan2(x[1],x[0]);if(c[0]<f[0])A=Math.PI+A;a.rotation=A}var C=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-y,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=y,d="top";break;default:C=0,d="middle"}switch(a.__position){case"end":a.x=p[0]*g+c[0],a.y=p[1]*y+c[1],v=p[0]>0.8?"left":p[0]<-0.8?"right":"center",d=p[1]>0.8?"top":p[1]<-0.8?"bottom":"middle";break;case"start":a.x=-p[0]*g+f[0],a.y=-p[1]*y+f[1],v=p[0]>0.8?"right":p[0]<-0.8?"left":"center",d=p[1]>0.8?"bottom":p[1]<-0.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=g*T+f[0],a.y=f[1]+C,v=x[0]<0?"right":"left",a.originX=-g*T,a.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=b[0],a.y=b[1]+C,v="center",a.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-g*T+c[0],a.y=c[1]+C,v=x[0]>=0?"right":"left",a.originX=g*T,a.originY=-C;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||d,align:a.__align||v})}},e}(we),zA=w2;var C2=function(){function t(e){this.group=new we,this._LineCtor=e||zA}return t.prototype.updateData=function(e){var r=this;this._progressiveEls=null;var i=this,{group:n,_lineData:a}=i;if(i._lineData=e,!a)n.removeAll();var o=UA(e);e.diff(a).add(function(s){r._doAdd(e,s,o)}).update(function(s,l){r._doUpdate(a,e,l,s,o)}).remove(function(s){n.remove(a.getItemGraphicEl(s))}).execute()},t.prototype.updateLayout=function(){var e=this._lineData;if(!e)return;e.eachItemGraphicEl(function(r,i){r.updateLayout(e,i)},this)},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=UA(e),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,i){this._progressiveEls=[];function n(l){if(!l.isGroup&&!A2(l))l.incremental=i,l.ensureState("emphasis").hoverLayer=pa}for(var a=e.start;a<e.end;a++){var o=r.getItemLayout(a);if(Eg(o)){var s=new this._LineCtor(r,a,this._seriesScope);s.traverse(n),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(e){Ci(this._progressiveEls||this.group,e)},t.prototype._doAdd=function(e,r,i){var n=e.getItemLayout(r);if(!Eg(n))return;var a=new this._LineCtor(e,r,i);e.setItemGraphicEl(r,a),this.group.add(a)},t.prototype._doUpdate=function(e,r,i,n,a){var o=e.getItemGraphicEl(i);if(!Eg(r.getItemLayout(n))){this.group.remove(o);return}if(!o)o=new this._LineCtor(r,n,a);else o.updateData(r,n,a);r.setItemGraphicEl(n,o),this.group.add(o)},t}();function A2(t){return t.animators&&t.animators.length>0}function UA(t){var e=t.hostModel,r=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:Yt(e)}}function FA(t){return isNaN(t[0])||isNaN(t[1])}function Eg(t){return t&&!FA(t[0])&&!FA(t[1])}var VA=C2;var Fa=ee(),HA=te,Dg=me,E2=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)return;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;if(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=Ae(GA,r,c);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,r)}WA(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&&zr(n).w>s)return!0;if(o){var l=kp(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=Fa(e).pointerEl=new ft[a.type](HA(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,i,n){if(r.label){var a=Fa(e).labelEl=new $e(HA(r.label));e.add(a),YA(a,n)}},t.prototype.updatePointerEl=function(e,r,i){var n=Fa(e).pointerEl;if(n&&r.pointer)n.setStyle(r.pointer.style),i(n,{shape:r.pointer.shape})},t.prototype.updateLabelEl=function(e,r,i,n){var a=Fa(e).labelEl;if(a)a.setStyle(r.label.style),i(a,{x:r.label.x,y:r.label.y}),YA(a,n)},t.prototype._renderHandle=function(e){if(this._dragging||!this.updateHandleTransform)return;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;if(!this._handle)s=!0,n=this._handle=zf(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){xu(u.event)},onmousedown:Dg(this._onHandleDragMove,this,0,0),drift:Dg(this._onHandleDragMove,this),ondragend:Dg(this._onHandleDragEnd,this)}),i.add(n);WA(n,r,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");if(!k(l))l=[l,l];n.scaleX=l[0]/2,n.scaleY=l[1]/2,Pc(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)},t.prototype._moveHandleToValue=function(e,r){GA(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Mg(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var i=this._handle;if(!i)return;this._dragging=!0;var n=this.updateHandleTransform(Mg(i),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Mg(n)),Fa(i).lastProp=null,this._doDispatchAxisPointer()},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(!e)return;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)return;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;if(r&&i)this._lastGraphicKey=null,i&&r.remove(i),n&&r.remove(n),this._group=null,this._handle=null,this._payloadInfo=null;_l(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 GA(t,e,r,i){if(!XA(Fa(r).lastProp,i))Fa(r).lastProp=i,e?Ve(r,i,t):(r.stopAnimation(),r.attr(i))}function XA(t,e){if(W(t)&&W(e)){var r=!0;return w(e,function(i,n){r=r&&XA(t[n],i)}),!!r}else return t===e}function YA(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Mg(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function WA(t,e,r){var i=e.get("z"),n=e.get("zlevel");t&&t.traverse(function(a){if(a.type!=="group")i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=r})}var qA=E2;function ZA(t){var e=t.get("type"),r=t.getModel(e+"Style"),i;if(e==="line")i=r.getLineStyle(),i.fill=null;else if(e==="shadow")i=r.getAreaStyle(),i.stroke=null;return i}function D2(t,e,r,i,n){var a=r.get("value"),o=Og(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Bo(s.get("padding")||0),u=s.getFont(),f=Wu(o,u),c=n.position,p=f.width+l[1]+l[3],h=f.height+l[0]+l[2],v=n.align;v==="right"&&(c[0]-=p),v==="center"&&(c[0]-=p/2);var d=n.verticalAlign;d==="bottom"&&(c[1]-=h),d==="middle"&&(c[1]-=h/2),M2(c,p,h,i);var m=s.get("backgroundColor");if(!m||m==="auto")m=e.get(["axisLine","lineStyle","color"]);t.label={x:c[0],y:c[1],style:va(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function M2(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 Og(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:as(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};if(w(i,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),V(o))a=o.replace("{value}",a);else if(X(o))a=o(s)}return a}function Lg(t,e,r){var i=Dt();return Ja(i,i,r.rotation),gs(i,i,r.position),Bf([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],i)}function KA(t,e,r,i,n,a){var o=Mp.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get(["label","margin"]),D2(e,i,n,a,{position:Lg(i.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function jA(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function $A(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function QA(t,e,r){return zr(t,{fromStat:{sers:U(e,function(i){return r.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function JA(t,e,r){return[ve(Ge(e[0],e[1]),t-r/2),Ge(t+r/2,ve(e[0],e[1]))]}var O2=function(t){P(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=tE(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var h=ZA(a),v=L2[u](s,p,f,c,a.get("seriesDataIndices"),a.ecModel);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=Yl(l.getRect(),n);KA(i,r,d,n,a,o)},e.prototype.getHandleTransform=function(r,i,n){var a=Yl(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=Lg(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=tE(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=i[f],c[f]=Ge(l[1],c[f]),c[f]=ve(l[0],c[f]);var p=(u[1]+u[0])/2,h=[p,p];h[f]=c[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[f]}},e}(qA);function tE(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var L2={line:function(t,e,r,i){var n=jA([e,i[0]],[e,i[1]],rE(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r,i,n,a){var o=QA(t,n,a),s=i[1]-i[0],l=JA(e,r,o),u=l[0],f=l[1];return{type:"Rect",shape:$A([u,i[0]],[f-u,s],rE(t))}}};function rE(t){return t.dim==="x"?0:1}var iE=O2;var P2=function(t){P(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:he.color.border,width:1,type:"dashed"},shadowStyle:{color:he.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:he.color.neutral00,padding:[5,7,5,7],backgroundColor:he.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:he.color.accent40,throttle:40}},e}(be),nE=P2;var Bi=ee(),I2=w;function zp(t,e,r){if(ne.node)return;var i=e.getZr();Bi(i).records||(Bi(i).records={}),N2(i,e);var n=Bi(i).records[t]||(Bi(i).records[t]={});n.handler=r}function N2(t,e){if(Bi(t).initialized)return;Bi(t).initialized=!0,r("click",Ae(Pg,"click")),r("mousemove",Ae(Pg,"mousemove")),r("mousewheel",Ae(Pg,"mousewheel")),r("globalout",k2);function r(i,n){t.on(i,function(a){var o=B2(e);I2(Bi(t).records,function(s){s&&n(s,a,o.dispatchAction)}),R2(o.pendings,e)})}}function R2(t,e){var r=t.showTip.length,i=t.hideTip.length,n;if(r)n=t.showTip[r-1];else if(i)n=t.hideTip[i-1];if(n)n.dispatchAction=null,e.dispatchAction(n)}function k2(t,e,r){t.handler("leave",null,r)}function Pg(t,e,r,i){e.handler(t,r,i)}function B2(t){var e={showTip:[],hideTip:[]},r=function(i){var n=e[i.type];if(n)n.push(i);else i.dispatchAction=r,t.dispatchAction(i)};return{dispatchAction:r,pendings:e}}function Zl(t,e){if(ne.node)return;var r=e.getZr(),i=(Bi(r).records||{})[t];if(i)Bi(r).records[t]=null}var z2=function(t){P(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";zp("axisPointer",n,function(s,l,u){if(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){Zl("axisPointer",i)},e.prototype.dispose=function(r,i){Zl("axisPointer",i)},e.type="axisPointer",e}(Ot),oE=z2;function Kl(t,e){var r=[],i=t.seriesIndex,n;if(i==null||!(n=e.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=cr(a,t);if(o==null||o<0||k(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,v=a.mapDimension(p),d=[];d[h]=a.get(v,o),d[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(d)||[]}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 sE=ee();function Ig(t,e,r){var i=t.currTrigger,n=[t.x,t.y],a=t,o=t.dispatchAction||me(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(!s)return;if(Up(n))n=Kl({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point;var l=Up(n),u=a.axesInfo,f=s.axesInfo,c=i==="leave"||Up(n),p={},h={},v={list:[],map:{}},d={showPointer:Ae(F2,h),showTooltip:Ae(V2,v)};w(s.coordSysMap,function(g,y){var _=l||g.containPoint(n);w(s.coordSysAxesInfo[y],function(x,S){var b=x.axis,T=W2(u,x);if(!c&&_&&(!u||T)){var A=T&&T.value;if(A==null&&!l)A=b.pointToData(n);A!=null&&lE(x,A,d,!1,p)}})});var m={};return w(f,function(g,y){var _=g.linkGroup;if(_&&!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,uE(x),uE(g)))),m[g.key]=T}})}),w(m,function(g,y){lE(f[y],g,d,!0,p)}),H2(h,f,p),G2(v,n,t,o),Y2(f,o,r),p}function lE(t,e,r,i,n){var a=t.axis;if(a.scale.isBlank()||!a.containData(e))return;if(!t.involveSeries){r.showPointer(t,e);return}var o=U2(e,t),{payloadBatch:s,snapToValue:l}=o;if(s[0]&&n.seriesIndex==null)N(n,s[0]);if(!i&&t.snap){if(a.containData(l)&&l!=null)e=l}r.showPointer(t,e,s),r.showTooltip(t,o,l)}function U2(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"?0.5:null),!p.length)return;c=l.getData().get(f[0],p[0])}if(!qe(c))return;var v=t-c,d=Math.abs(v);if(d<=o){if(d<o||v>=0&&s<0)o=d,s=v,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 F2(t,e,r,i){t[e.key]={value:r,payloadBatch:i}}function V2(t,e,r,i){var n=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!e.triggerTooltip||!n.length)return;var l=e.coordSys.model,u=cs(l),f=t.map[u];if(!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 H2(t,e,r){var i=r.axesInfo=[];w(e,function(n,a){var o=n.axisPointerModel.option,s=t[a];if(s)!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice();else!n.useHandle&&(o.status="hide");o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function G2(t,e,r,i){if(Up(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 Y2(t,e,r){var i=r.getZr(),n="axisPointerLastHighlights",a=sE(i)[n]||{},o=sE(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 W2(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 uE(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 Up(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function Fp(t){Bp.registerAxisPointerClass("CartesianAxisPointer",iE),t.registerComponentModel(nE),t.registerComponentView(oE),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;if(r&&!k(r))e.axisPointer.link=[r]}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=TA(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Ig)}function Ng(t){Ni(LA),Ni(Fp)}var X2=function(t){P(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:0.4,displayTransition:!0,enterable:!1,backgroundColor:he.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:he.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:he.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:he.color.tertiary,fontSize:14}},e}(be),fE=X2;function Vp(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function cE(t){if(!ne.domSupported)return;var e=document.documentElement.style;for(var r=0,i=t.length;r<i;r++)if(t[r]in e)return t[r]}var Rg=cE(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),pE=cE(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function kg(t,e){if(!t)return e;e=nc(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function hE(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}var q2=kg(pE,"transition"),Bg=kg(Rg,"transform"),Z2="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ne.transform3dSupported?"will-change:transform;":"");function K2(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function j2(t,e,r){if(!V(r)||r==="inside")return"";var i=t.get("backgroundColor"),n=t.get("borderWidth");e=Ir(e);var a=K2(r),o=Math.max(Math.round(n)*1.5,6),s="",l=Bg+":",u;if(ue(["left","right"],a)>-1)s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)";else 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 v=e+" solid "+n+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+i+";"];return'<div style="'+d.join("")+'"></div>'}function $2(t,e,r){var i="cubic-bezier(0.23,1,0.32,1)",n="",a="";if(r)n=" "+t/2+"s "+i,a="opacity"+n+",visibility"+n;if(!e)n=" "+t+"s "+i,a+=(a.length?",":"")+(ne.transformSupported?""+Bg+n:",left"+n+",top"+n);return q2+":"+a}function vE(t,e,r){var i=t.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!ne.transformSupported)return r?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=ne.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return r?"top:0;left:0;"+Bg+":"+o+";":[["top",0],["left",0],[Rg,o]]}function Q2(t){var e=[],r=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var n=G(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 J2(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=Ec(t,"html"),h=u+"px "+f+"px "+s+"px "+l;if(n.push("box-shadow:"+h),e&&a>0&&n.push($2(a,r,i)),o)n.push("background-color:"+o);if(w(["width","color","radius"],function(v){var d="border-"+v,m=nc(d),g=t.get(m);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(Q2(c)),p!=null)n.push("padding:"+Bo(p).join("px ")+"px");return n.join(";")+";"}function dE(t,e,r,i,n){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();if(o)Dy(t,o,r,i,n)}else{t[0]=i,t[1]=n;var s=a&&a.getViewportRootOffset();if(s)t[0]+=s.offsetLeft,t[1]+=s.offsetTop}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var eB=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,ne.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&&(V(a)?document.querySelector(a):Fi(a)?a:X(a)&&a(e.getDom()));dE(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(){if(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();zt(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){if(s._inContent=!1,s._enterable){if(s._show)s.hideLater(s._hideDelay)}}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),i=hE(r,"position"),n=r.style;if(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;if(!i.innerHTML)n.display="none";else n.cssText=Z2+J2(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+vE(a[0],a[1],!0)+("border-color:"+Ir(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"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(V(a)&&i.get("trigger")==="item"&&!Vp(i))s=j2(i,n,a);if(V(e))o.innerHTML=e+s;else if(e){if(o.innerHTML="",!k(e))e=[e];for(var l=0;l<e.length;l++)if(Fi(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)return;var i=this._styleCoord;if(dE(i,this._zr,this._container,e,r),i[0]!=null&&i[1]!=null){var n=this.el.style,a=vE(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;if(this._enableDisplayTransition)r.visibility="hidden",r.opacity="0";else r.display="none";ne.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){if(this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent)if(e)this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(me(this.hide,this),e);else this.hide()},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;My(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}(),mE=eB;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(),yE(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(){if(this._hideTimeout)clearTimeout(this._hideTimeout);this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,i,n,a){var o=this;if(W(e))st("Passing DOM nodes as content is not supported in richText tooltip!");if(this.el)this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new $e({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Ec(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(){if(l._enterable)clearTimeout(l._hideTimeout),l._show=!0;l._inContent=!0}),this.el.on("mouseout",function(){if(l._enterable){if(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=gE(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;yE(n,this._zr,e,r),e=n[0],r=n[1];var a=i.style,o=On(a.borderWidth||0),s=gE(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(){if(this.el)this.el.hide();this._show=!1},t.prototype.hideLater=function(e){if(this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent)if(e)this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(me(this.hide,this),e);else this.hide()},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function On(t){return Math.max(0,t)}function gE(t){var e=On(t.shadowBlur||0),r=On(t.shadowOffsetX||0),i=On(t.shadowOffsetY||0);return{left:On(e-r),right:On(e+r),top:On(e-i),bottom:On(e+i)}}function yE(t,e,r,i){t[0]=r,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var _E=tB;var rB=new De({shape:{x:-1,y:-1,width:2,height:2}}),iB=function(t){P(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(ne.node||!i.getDom())return;var n=r.getComponent("tooltip"),a=this._renderMode=u_(n.get("renderMode"));this._tooltipContent=a==="richText"?new _E(i):new mE(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})},e.prototype.render=function(r,i,n){if(ne.node||!n.getDom())return;this.group.removeAll(),this._tooltipModel=r,this._ecModel=i,this._api=n;var a=this._tooltipContent;if(a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration"))Pc(this,"_updatePosition",50,"fixRate");else _l(this,"_updatePosition")},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,i=r.get("triggerOn");zp("itemTooltip",this._api,me(function(n,a,o){if(i!=="none"){if(i.indexOf(n)>=0)this._tryShow(a,o);else if(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;if(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||ne.node||!n.getDom())return;var o=xE(a,n);this._ticket="";var s=a.dataByCoordSys,l=sB(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=rB;f.x=a.x,f.y=a.y,f.update(),xe(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=Kl(a,i),p=c.point[0],h=c.point[1];if(p!=null&&h!=null)this._tryShow({offsetX:p,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else if(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;if(this._tooltipModel)o.hideLater(this._tooltipModel.get("hideDelay"));if(this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid)this._hide(xE(a,n))},e.prototype._manuallyAxisShowTip=function(r,i,n,a){var{seriesIndex:o,dataIndex:s}=a,l=i.getComponent("axisPointer").coordSysAxesInfo;if(o==null||s==null||l==null)return;var u=i.getSeriesByIndex(o);if(!u)return;var f=u.getData(),c=jl([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")!=="axis")return;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)return;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=xe(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;if(Ea(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;if(l||u)return;if(xe(f).dataIndex!=null)l=f;else if(xe(f).tooltipConfig!=null)u=f},!0),l)this._showSeriesItemTooltip(r,l,i);else if(u)this._showComponentItemTooltip(r,u,i);else 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=me(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=jl([i.tooltipOption],a),l=this._renderMode,u=[],f=si("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)return;var A=Og(S,b,n,_.seriesDataIndices,_.valueLabelOpt),C=si("section",{header:A,noHeader:!vt(A),sortBlocks:!0,blocks:[]});f.blocks.push(C),w(_.seriesDataIndices,function(E){var D=n.getSeriesByIndex(E.seriesIndex),O=E.dataIndexInside,M=D.getDataParams(O);if(M.dataIndex<0)return;M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=as(x.axis,{value:T}),M.axisValueLabel=A,M.marker=p.makeTooltipMarker("item",Ir(M.color),l);var L=Vd(D.formatTooltip(O,!0,null)),B=L.frag;if(B){var R=jl([D],a).get("valueFormatter");C.blocks.push(R?N({valueFormatter:R},B):B)}if(L.text)c.push(L.text);u.push(M)})})}),f.blocks.reverse(),c.reverse();var h=i.position,v=s.get("order"),d=qd(f,p,l,v,n.get("useUTC"),s.get("textStyle"));d&&c.unshift(d);var m=l==="richText"?`
|
|
42
42
|
|
|
43
|
-
`:"<br/>",g=c.join(m);this._showOrMove(s,function(){if(this._updateContentNotChangedOnAxis(r,u))this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u);else 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=xe(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,{dataIndex:f,dataType:c}=o,p=u.getData(c),h=this._renderMode,v=r.positionDefault,d=Zl([p.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),m=d.get("trigger");if(m!=null&&m!=="item")return;var g=u.getDataParams(f,c),y=new Ac;g.marker=y.makeTooltipMarker("item",Ir(g.color),h);var _=Ud(u.formatTooltip(f,!1,c)),x=d.get("order"),S=d.get("valueFormatter"),b=_.frag,T=b?Wd(S?N({valueFormatter:S},b):b,y,h,x,a.get("useUTC"),d.get("textStyle")):_.text,A="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,T,g,A,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=xe(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(V(l)){var f=l;l={content:f,formatter:f},u=!0}if(u&&a&&l.content)l=te(l),l.content=it(l.content);var c=[l],p=this._ecModel.getComponent(o.componentMainType,o.componentIndex);if(p)c.push(p);c.push({formatter:l.content});var h=r.positionDefault,v=Zl(c,this._tooltipModel,h?{position:h}:null),d=v.get("content"),m=Math.random()+"",g=new Ac;this._showOrMove(v,function(){var y=te(v.get("formatterParams")||{});this._showTooltipContent(v,d,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"))return;var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var p=r.get("formatter");l=l||r.get("position");var h=i,v=this._getNearestPoint([o,s],n,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),d=v.color;if(p)if(V(p)){var m=r.ecModel.get("useUTC"),g=k(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;if(h=p,y)h=ga(g.axisValue,h,m);h=nc(h,n,!0)}else if(X(p)){var _=me(function(x,S){if(x===this._ticket)c.setContent(S,f,r,d,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,d,l),c.show(r,d),this._updatePosition(r,l,o,s,c,n,u)},e.prototype._getNearestPoint=function(r,i,n,a,o){if(n==="axis"||k(i))return{color:a||o};if(!k(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"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),X(i))i=i([n,a],s,o.el,v,{viewSize:[u,f],contentSize:c.slice()});if(k(i))n=Ce(i[0],u),a=Ce(i[1],f);else if(W(i)){var d=i;d.width=c[0],d.height=c[1];var m=_a(d,{width:u,height:f});n=m.x,a=m.y,p=null,h=null}else if(V(i)&&l){var g=iB(i,v,c,r.get("borderWidth"));n=g[0],a=g[1]}else{var g=tB(n,a,o,u,f,p?null:20,h?null:20);n=g[0],a=g[1]}if(p&&(n-=_E(p)?c[0]/2:p==="right"?c[0]:0),h&&(a-=_E(h)?c[1]/2:h==="bottom"?c[1]:0),Up(r)){var g=rB(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 v=c[h]||{},d=p.seriesDataIndices||[],m=v.seriesDataIndices||[];o=o&&p.value===v.value&&p.axisType===v.axisType&&p.axisId===v.axisId&&d.length===m.length,o&&w(d,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];if(_&&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){if(ne.node||!i.getDom())return;gl(this,"_updatePosition"),this._tooltipContent.dispose(),Xl("itemTooltip",i),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null},e.type="tooltip",e}(Ot);function Zl(t,e,r){var i=e.ecModel,n;if(r)n=new Re(r,i,i),n=new Re(e.option,n,i);else n=e;for(var a=t.length-1;a>=0;a--){var o=t[a];if(o){if(o instanceof Re)o=o.get("tooltip",!0);if(V(o))o={formatter:o};if(o)n=new Re(o,n,i)}}return n}function yE(t,e){return t.dispatchAction||me(e.dispatchAction,e)}function tB(t,e,r,i,n,a,o){var s=r.getSize(),l=s[0],u=s[1];if(a!=null)if(t+l+a+2>i)t-=l+a;else t+=a;if(o!=null)if(e+u+o>n)e-=u+o;else e+=o;return[t,e]}function rB(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 iB(t,e,r,i){var n=r[0],a=r[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,{width:u,height:f}=e;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 _E(t){return t==="center"||t==="middle"}function nB(t,e,r){var i=zs(t).queryOptionMap,n=i.keys()[0];if(!n||n==="series")return;var a=Ji(e,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(!o)return;var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=xe(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}var xE=eB;function kg(t){Ni(zp),t.registerComponentModel(lE),t.registerComponentView(xE),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Pe),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Pe)}function Bg(t,e){if(!t)return!1;var r=k(t)?t:[t];for(var i=0;i<r.length;i++)if(r[i]&&r[i][e])return!0;return!1}function Fp(t){Kn(t,"label",["show"])}var Vp=ee(),SE=function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.createdBySelf=!1,r.preventAutoZ=!0,r}return e.prototype.init=function(r,i,n){if(this.type==="marker")throw Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(r,n),this._mergeOption(r,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(ne.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},e.prototype.mergeOption=function(r,i){this._mergeOption(r,i,!1,!1)},e.prototype._mergeOption=function(r,i,n,a){var o=this.mainType;if(!n)i.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Vp(s)[o];if(!l||!l.data){Vp(s)[o]=null;return}if(!u){if(a)Fp(l);w(l.data,function(f){if(f instanceof Array)Fp(f[0]),Fp(f[1]);else Fp(f)}),u=this.createMarkerModelFromSeries(l,this,i),N(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s}else u._mergeOption(l,i,!0);Vp(s)[o]=u},this)},e.prototype.formatTooltip=function(r,i,n){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return si("section",{header:this.name,blocks:[si("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(r){this._data=r},e.prototype.getDataParams=function(r,i){var n=hl.prototype.getDataParams.call(this,r,i),a=this.__hostSeries;if(a)n.seriesId=a.id,n.seriesName=a.name,n.seriesType=a.subType;return n},e.getMarkerModelFromSeries=function(r,i){return Vp(r)[i]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(be);ht(SE,hl.prototype);var On=SE;function aB(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function oB(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function Hp(t,e,r,i,n,a,o){var s=[],l=kr(e,n),u=l?e.getCalculationInfo("stackResultDimension"):n,f=Kl(e,u,t),c=e.hostModel,p=c.indicesOfNearest(r,u,f)[0];s[a]=e.get(i,p),s[o]=e.get(u,p);var h=e.get(n,p),v=Ut(e.get(n,p));if(v=Math.min(v,20),v>=0)s[o]=+s[o].toFixed(v);return[s,h]}var Gp={min:Ae(Hp,"min"),max:Ae(Hp,"max"),average:Ae(Hp,"average"),median:Ae(Hp,"median")};function zg(t,e){if(!e)return;var r=t.getData(),i=t.coordinateSystem,n=i&&i.dimensions;if(!oB(e)&&!k(e.coord)&&k(n)){var a=Ug(e,r,i,t);if(e=te(e),e.type&&Gp[e.type]&&a.baseAxis&&a.valueAxis){var o=ue(n,a.baseAxis.dim),s=ue(n,a.valueAxis.dim),l=Gp[e.type](r,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!k(n)){e.coord=[];var u=t.getBaseAxis();if(u&&e.type&&Gp[e.type]){var f=i.getOtherAxis(u);if(f)e.value=Kl(r,r.mapDimension(f.dim),e.type)}}else{var c=e.coord;for(var p=0;p<2;p++)if(Gp[c[p]])c[p]=Kl(r,r.mapDimension(n[p]),c[p])}return e}function Ug(t,e,r,i){var n={};if(t.valueIndex!=null||t.valueDim!=null)n.valueDataDim=t.valueIndex!=null?e.getDimension(t.valueIndex):t.valueDim,n.valueAxis=r.getAxis(sB(i,n.valueDataDim)),n.baseAxis=r.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim);else n.baseAxis=i.getBaseAxis(),n.valueAxis=r.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim);return n}function sB(t,e){var r=t.getData().getDimensionInfo(e);return r&&r.coordDim}function Fg(t,e){return t&&t.containData&&e.coord&&!aB(e)?t.containData(e.coord):!0}function bE(t,e){return t?function(r,i,n,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Oi(o,e[a])}:function(r,i,n,a){return Oi(r.value,e[a])}}function Kl(t,e,r){if(r==="average"){var i=0,n=0;return t.each(e,function(a,o){if(!isNaN(a))i+=a,n++}),i/n}else if(r==="median")return t.getMedian(e);else return t.getDataExtent(e)[r==="max"?1:0]}var Vg=ee(),uB=function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){this.markerGroupMap=Z()},e.prototype.render=function(r,i,n){var a=this,o=this.markerGroupMap;o.each(function(s){Vg(s).keep=!1}),i.eachSeries(function(s){var l=On.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,i,n)}),o.each(function(s){!Vg(s).keep&&a.group.remove(s.group)}),fB(i,o,this.type)},e.prototype.markKeep=function(r){Vg(r).keep=!0},e.prototype.toggleBlurSeries=function(r,i){var n=this;w(r,function(a){var o=On.getMarkerModelFromSeries(a,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){if(l)i?yf(l):js(l)})}})},e.type="marker",e}(Ot);function fB(t,e,r){t.eachSeries(function(i){var n=On.getMarkerModelFromSeries(i,r),a=e.get(i.id);if(n&&a&&a.group){var o=il(n),{z:s,zlevel:l}=o;nl(a.group,s,l)}})}var TE=uB;var cB=function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,i,n){return new e(r,i,n)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(On),wE=cB;var Yp=ee(),pB=function(t,e,r,i){var n=t.getData(),a;if(!k(i)){var o=i.type;if(o==="min"||o==="max"||o==="average"||o==="median"||i.xAxis!=null||i.yAxis!=null){var s=void 0,l=void 0;if(i.yAxis!=null||i.xAxis!=null)s=e.getAxis(i.yAxis!=null?"y":"x"),l=Cr(i.yAxis,i.xAxis);else{var u=Ug(i,n,e,t);s=u.valueAxis;var f=jc(n,u.valueDataDim);l=Kl(n,f,o)}var c=s.dim==="x"?0:1,p=1-c,h=te(i),v={coord:[]};h.type=null,h.coord=[],h.coord[p]=-1/0,v.coord[p]=1/0;var d=r.get("precision");if(d>=0&&se(l))l=+l.toFixed(Math.min(d,20));h.coord[c]=v.coord[c]=l,a=[h,v,{type:o,valueIndex:i.valueIndex,value:l}]}else jt("Invalid markLine data."),a=[]}else a=i;var m=[zg(t,a[0]),zg(t,a[1]),N({},a[2])];return m[2].type=m[2].type||null,_e(m[2],m[0]),_e(m[2],m[1]),m};function Wp(t){return!isNaN(t)&&!isFinite(t)}function CE(t,e,r,i){var n=1-t,a=i.dimensions[t];return Wp(e[n])&&Wp(r[n])&&e[t]===r[t]&&i.getAxis(a).containData(e[t])}function hB(t,e){if(t.type==="cartesian2d"){var r=e[0].coord,i=e[1].coord;if(r&&i&&(CE(1,r,i,t)||CE(0,r,i,t)))return!0}return Fg(t,e[0])&&Fg(t,e[1])}function Hg(t,e,r,i,n){var a=i.coordinateSystem,o=t.getItemModel(e),s,l=Ce(o.get("x"),n.getWidth()),u=Ce(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition)s=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var f=a.dimensions,c=t.get(f[0],e),p=t.get(f[1],e);s=a.dataToPoint([c,p])}if(ls(a,"cartesian2d")){var h=a.getAxis("x"),v=a.getAxis("y"),f=a.dimensions;if(Wp(t.get(f[0],e)))s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]);else if(Wp(t.get(f[1],e)))s[1]=v.toGlobalCoord(v.getExtent()[r?0:1])}if(!isNaN(l))s[0]=l;if(!isNaN(u))s[1]=u}t.setItemLayout(e,s)}var vB=function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,i,n){i.eachSeries(function(a){var o=On.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=Yp(o).from,u=Yp(o).to;l.each(function(f){Hg(l,f,!0,a,n),Hg(u,f,!1,a,n)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},e.prototype.renderSeries=function(r,i,n,a){var{coordinateSystem:o,id:s}=r,l=r.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new UA);this.group.add(f.group);var c=dB(o,r,i),{from:p,to:h,line:v}=c;Yp(i).from=p,Yp(i).to=h,i.setData(v);var d=i.get("symbol"),m=i.get("symbolSize"),g=i.get("symbolRotate"),y=i.get("symbolOffset");if(!k(d))d=[d,d];if(!k(m))m=[m,m];if(!k(g))g=[g,g];if(!k(y))y=[y,y];c.from.each(function(x){_(p,x,!0),_(h,x,!1)}),v.each(function(x){var S=v.getItemModel(x),b=S.getModel("lineStyle").getLineStyle();v.setItemLayout(x,[p.getItemLayout(x),h.getItemLayout(x)]);var T=S.get("z2");if(b.stroke==null)b.stroke=p.getItemVisual(x,"style").fill;v.setItemVisual(x,{z2:G(T,0),fromSymbolKeepAspect:p.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:p.getItemVisual(x,"symbolOffset"),fromSymbolRotate:p.getItemVisual(x,"symbolRotate"),fromSymbolSize:p.getItemVisual(x,"symbolSize"),fromSymbol:p.getItemVisual(x,"symbol"),toSymbolKeepAspect:h.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(x,"symbolOffset"),toSymbolRotate:h.getItemVisual(x,"symbolRotate"),toSymbolSize:h.getItemVisual(x,"symbolSize"),toSymbol:h.getItemVisual(x,"symbol"),style:b})}),f.updateData(v),c.line.eachItemGraphicEl(function(x){xe(x).dataModel=i,x.traverse(function(S){xe(S).dataModel=i})});function _(x,S,b){var T=x.getItemModel(S);Hg(x,S,b,r,a);var A=T.getModel("itemStyle").getItemStyle();if(A.fill==null)A.fill=Ic(l,"color");x.setItemVisual(S,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:G(T.get("symbolOffset",!0),y[b?0:1]),symbolRotate:G(T.get("symbolRotate",!0),g[b?0:1]),symbolSize:G(T.get("symbolSize"),m[b?0:1]),symbol:G(T.get("symbol",!0),d[b?0:1]),style:A})}this.markKeep(f),f.group.silent=i.get("silent")||r.get("silent")},e.type="markLine",e}(TE);function dB(t,e,r){var i;if(t)i=U(t&&t.dimensions,function(u){var f=e.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return N(N({},c),{name:u,ordinalMeta:null})});else i=[{name:"value",type:"float"}];var n=new xn(i,r),a=new xn(i,r),o=new xn([],r),s=U(r.get("data"),Ae(pB,e,t,r));if(t)s=Oe(s,Ae(hB,t));var l=bE(!!t,i);return n.initData(U(s,function(u){return u[0]}),null,l),a.initData(U(s,function(u){return u[1]}),null,l),o.initData(U(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:a,line:o}}var AE=vB;function Gg(t){t.registerComponentModel(wE),t.registerComponentView(AE),t.registerPreprocessor(function(e){if(Bg(e.series,"markLine"))e.markLine=e.markLine||{}})}var mB={label:{enabled:!0},decal:{show:!1}},EE=ee(),DE=ee(),ME=vo(gB);function gB(t,e){var r=t.getModel("aria");if(!r.get("enabled"))return;var i=DE(t).scope||(DE(t).scope={}),n=te(mB);_e(n.label,t.getLocaleModel().get("aria"),!1),_e(r.option,n,!1),a(),o();function a(){var f=r.getModel("decal"),c=f.get("show");if(c){var p=Z();t.eachSeries(function(h){if(!h.isColorBySeries())EE(h).scope=p.get(h.type)||p.set(h.type,{})}),t.eachSeries(function(h){if(X(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(!h.isColorBySeries()){var d=h.getRawData(),m={},g=EE(h).scope;v.each(function(b){var T=v.getRawIndex(b);m[T]=b});var y=d.count();d.each(function(b){var T=m[b],A=d.getName(b)||b+"",C=Md(h.ecModel,A,g,y),E=v.getItemVisual(T,"decal");v.setItemVisual(T,"decal",S(E,C))})}else{var _=Md(h.ecModel,h.name,i,t.getSeriesCount()),x=v.getVisual("decal");v.setVisual("decal",S(x,_))}function S(b,T){var A=b?N(N({},T),b):T;return A.dirty=!0,A}})}}function o(){var f=e.getZr().dom;if(!f)return;var c=t.getLocaleModel().get("aria"),p=r.getModel("label");if(p.option=oe(p.option,c),!p.get("enabled"))return;if(f.setAttribute("role","img"),p.get("description")){f.setAttribute("aria-label",p.get("description"));return}var h=t.getSeriesCount(),v=p.get(["data","maxCount"])||10,d=p.get(["series","maxCount"])||10,m=Math.min(h,d),g;if(h<1)return;else{var y=l();if(y){var _=p.get(["general","withTitle"]);g=s(_,{title:y})}else g=p.get(["general","withoutTitle"]);var x=[],S=h>1?p.get(["series","multiple","prefix"]):p.get(["series","single","prefix"]);g+=s(S,{seriesCount:h}),t.eachSeries(function(C,E){if(E<m){var D=void 0,O=C.get("name"),M=O?"withName":"withoutName";D=h>1?p.get(["series","multiple",M]):p.get(["series","single",M]),D=s(D,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:u(C.subType)});var L=C.getData();if(L.count()>v){var B=p.get(["data","partialData"]);D+=s(B,{displayCnt:v})}else D+=p.get(["data","allData"]);var R=p.get(["data","separator","middle"]),F=p.get(["data","separator","end"]),z=p.get(["data","excludeDimensionId"]),H=[];for(var Y=0;Y<L.count();Y++)if(Y<v){var q=L.getName(Y),Q=!z?L.getValues(Y):Oe(L.getValues(Y),function(j,ce){return ue(z,ce)===-1}),J=p.get(["data",q?"withName":"withoutName"]);H.push(s(J,{name:q,value:Q.join(R)}))}D+=H.join(R)+F,x.push(D)}});var b=p.getModel(["series","multiple","separator"]),T=b.get("middle"),A=b.get("end");g+=x.join(T)+A,f.setAttribute("aria-label",g)}}function s(f,c){if(!V(f))return f;var p=f;return w(c,function(h,v){p=p.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),h)}),p}function l(){var f=t.get("title");if(f&&f.length)f=f[0];return f&&f.text}function u(f){var c=t.getLocaleModel().get(["series","typeNames"]);return c[f]||c.chart}}function Yg(t){if(!t||!t.aria)return;var e=t.aria;if(e.show!=null)e.enabled=e.show;e.label=e.label||{},w(["description","general","series","data"],function(r){if(e[r]!=null)e.label[r]=e[r]})}function Wg(t){t.registerPreprocessor(Yg),t.registerVisual(t.PRIORITY.VISUAL.ARIA,ME)}var{sin:Xg,cos:qg,PI:OE}=Math,Fa=Math.PI*2,yB=180/OE,_B=function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,i,n,a,o){this._add("C",e,r,i,n,a,o)},t.prototype.quadraticCurveTo=function(e,r,i,n){this._add("Q",e,r,i,n)},t.prototype.arc=function(e,r,i,n,a,o){this.ellipse(e,r,i,i,0,n,a,o)},t.prototype.ellipse=function(e,r,i,n,a,o,s,l){var u=s-o,f=!l,c=Math.abs(u),p=Xr(c-Fa)||(f?u>=Fa:-u>=Fa),h=u>0?u%Fa:u%Fa+Fa,v=!1;if(p)v=!0;else if(Xr(c))v=!1;else v=h>=OE===!!f;var d=e+i*qg(o),m=r+n*Xg(o);if(this._start)this._add("M",d,m);var g=Math.round(a*yB);if(p){var y=1/this._p,_=(f?1:-1)*(Fa-y);if(this._add("A",i,n,g,1,+f,e+i*qg(o+_),r+n*Xg(o+_)),y>0.01)this._add("A",i,n,g,0,+f,d,m)}else{var x=e+i*qg(s),S=r+n*Xg(s);this._add("A",i,n,g,+v,+f,x,S)}},t.prototype.rect=function(e,r,i,n){this._add("M",e,r),this._add("l",i,0),this._add("l",0,n),this._add("l",-i,0),this._add("Z")},t.prototype.closePath=function(){if(this._d.length>0)this._add("Z")},t.prototype._add=function(e,r,i,n,a,o,s,l,u){var f=[],c=this._p;for(var p=1;p<arguments.length;p++){var h=arguments[p];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*c)/c)}this._d.push(e+f.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),Xp=_B;var jl="none",xB=Math.round;function SB(t){var e=t.fill;return e!=null&&e!==jl}function bB(t){var e=t.stroke;return e!=null&&e!==jl}var Zg=["lineCap","miterLimit","lineJoin"],TB=U(Zg,function(t){return"stroke-"+t.toLowerCase()});function Kg(t,e,r,i){var n=e.opacity==null?1:e.opacity;if(r instanceof _t){t("opacity",n);return}if(SB(e)){var a=qi(e.fill);t("fill",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*n:a.opacity*n;if(i||o<1)t("fill-opacity",o)}else t("fill",jl);if(bB(e)){var s=qi(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?r.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*n:s.opacity*n,c=e.strokeFirst;if(i||u!==1)t("stroke-width",u);if(i||c)t("paint-order",c?"stroke":"fill");if(i||f<1)t("stroke-opacity",f);if(e.lineDash){var p=bl(r),h=p[0],v=p[1];if(h){if(v=xB(v||0),t("stroke-dasharray",h.join(",")),v||i)t("stroke-dashoffset",v)}}else if(i)t("stroke-dasharray",jl);for(var d=0;d<Zg.length;d++){var m=Zg[d];if(i||e[m]!==yo[m]){var g=e[m]||yo[m];g&&t(TB[d],g)}}}else if(i)t("stroke",jl)}var LE="http://www.w3.org/2000/svg",jg="http://www.w3.org/1999/xlink",PE="http://www.w3.org/2000/xmlns/",IE="http://www.w3.org/XML/1998/namespace",Qg="ecmeta_";function qp(t){return document.createElementNS(LE,t)}function je(t,e,r,i,n){return{tag:t,attrs:r||{},children:i,text:n,key:e}}function wB(t,e){var r=[];if(e)for(var i in e){var n=e[i],a=i;if(n===!1)continue;else if(n!==!0&&n!=null)a+='="'+n+'"';r.push(a)}return"<"+t+" "+r.join(" ")+">"}function CB(t){return"</"+t+">"}function Ql(t,e){e=e||{};var r=e.newline?`
|
|
44
|
-
`:"";function i(n){var{children:a,tag:o,attrs:s,text:l}=n;return
|
|
45
|
-
`:"",n=" {"+i,a=i+"}",o=U(re(t),function(l){return l+n+U(re(t[l]),function(u){return u+":"+t[l][u]+";"}).join(i)+a}).join(i),s=U(re(e),function(l){return"@keyframes "+l+n+U(re(e[l]),function(u){return u+n+U(re(e[l][u]),function(f){var c=e[l][u][f];if(f==="d")c='path("'+c+'")';return f+":"+c+";"}).join(i)+a}).join(i)+a}).join(i);if(!o&&!s)return"";return["<![CDATA[",o,s,"]]>"].join(i)}function $l(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function $g(t,e,r,i){return je("svg","root",{width:t,height:e,xmlns:LE,"xmlns:xlink":jg,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+t+" "+e:!1},r)}var AB=0;function Zp(){return AB++}var RE={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Va="transform-origin";function EB(t,e,r){var i=N({},t.shape);N(i,e),t.buildPath(r,i);var n=new Xp;return n.reset(Nu(t)),r.rebuildPath(n,1),n.generateStr(),n.getStr()}function DB(t,e){var{originX:r,originY:i}=e;if(r||i)t[Va]=r+"px "+i+"px"}var MB={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function BE(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function OB(t,e,r){var i=t.shape.paths,n={},a,o;if(w(i,function(l){var u=$l(r.zrId);u.animation=!0,Jl(l,{},u,!0);var{cssAnims:f,cssNodes:c}=u,p=re(f),h=p.length;if(!h)return;o=p[h-1];var v=f[o];for(var d in v){var m=v[d];n[d]=n[d]||{d:""},n[d].d+=m.d||""}for(var g in c){var y=c[g].animation;if(y.indexOf(o)>=0)a=y}}),!a)return;e.d=!1;var s=BE(n,r);return a.replace(o,s)}function kE(t){return V(t)?RE[t]?"cubic-bezier("+RE[t]+")":io(t)?t:"":""}function Jl(t,e,r,i){var n=t.animators,a=n.length,o=[];if(t instanceof el){var s=OB(t,e,r);if(s)o.push(s);else if(!a)return}else if(!a)return;var l={};for(var u=0;u<a;u++){var f=n[u],c=[f.getMaxTime()/1000+"s"],p=kE(f.getClip().easing),h=f.getDelay();if(p)c.push(p);else c.push("linear");if(h)c.push(h/1000+"s");if(f.getLoop())c.push("infinite");var v=c.join(" ");l[v]=l[v]||[v,[]],l[v][1].push(f)}function d(y){var _=y[1],x=_.length,S={},b={},T={},A="animation-timing-function";function C(He,Te,Me){var le=He.getTracks(),Se=He.getMaxTime();for(var Rt=0;Rt<le.length;Rt++){var Xe=le[Rt];if(Xe.needsAnimate()){var{keyframes:br,propName:kt}=Xe;if(Me&&(kt=Me(kt)),kt)for(var Tr=0;Tr<br.length;Tr++){var Ha=br[Tr],wr=Math.round(Ha.time/Se*100)+"%",iu=kE(Ha.easing),Ga=Ha.rawValue;if(V(Ga)||se(Ga)){if(Te[wr]=Te[wr]||{},Te[wr][kt]=Ha.rawValue,iu)Te[wr][A]=iu}}}}}for(var E=0;E<x;E++){var D=_[E],O=D.targetName;if(!O)!i&&C(D,S);else if(O==="shape")C(D,b)}for(var M in S){var L={};Zi(L,t),N(L,S[M]);var B=Ru(L),R=S[M][A];if(T[M]=B?{transform:B}:{},DB(T[M],L),R)T[M][A]=R}var F,z=!0;for(var M in b){T[M]=T[M]||{};var H=!F,R=b[M][A];if(H)F=new yt;var Y=F.len();F.reset(),T[M].d=EB(t,b[M],F);var q=F.len();if(!H&&Y!==q){z=!1;break}if(R)T[M][A]=R}if(!z)for(var M in T)delete T[M].d;if(!i)for(var E=0;E<x;E++){var D=_[E],O=D.targetName;if(O==="style")C(D,T,function(le){return MB[le]})}var Q=re(T),J=!0,j;for(var E=1;E<Q.length;E++){var ce=Q[E-1],ye=Q[E];if(T[ce][Va]!==T[ye][Va]){J=!1;break}j=T[ce][Va]}if(J&&j){for(var M in T)if(T[M][Va])delete T[M][Va];e[Va]=j}if(Oe(Q,function(He){return re(T[He]).length>0}).length){var We=BE(T,r);return We+" "+y[0]+" both"}}for(var m in l){var s=d(l[m]);if(s)o.push(s)}if(o.length){var g=r.zrId+"-cls-"+Zp();r.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function UE(t,e,r){if(!t.ignore)if(t.isSilent()){var i={"pointer-events":"none"};zE(i,e,r,!0)}else{var n=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},a=n.fill;if(!a){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0?s||o:o;if(l)a=Ts(l)}var u=n.lineWidth;if(u){var f=!n.strokeNoScale&&t.transform?t.transform[0]:1;u=u/f}var i={cursor:"pointer"};if(a)i.fill=a;if(n.stroke)i.stroke=n.stroke;if(u)i["stroke-width"]=u;zE(i,e,r,!0)}}function zE(t,e,r,i){var n=JSON.stringify(t),a=r.cssStyleCache[n];if(!a)a=r.zrId+"-cls-"+Zp(),r.cssStyleCache[n]=a,r.cssNodes["."+a+(i?":hover":"")]=t;e.class=e.class?e.class+" "+a:a}var eu=Math.round;function GE(t){return t&&V(t.src)}function YE(t){return t&&X(t.toDataURL)}function Jg(t,e,r,i){Kg(function(n,a){var o=n==="fill"||n==="stroke";if(o&&Iu(a))iy(e,t,n,i);else if(o&&ws(a))ny(r,t,n,i);else t[n]=a;if(o&&i.ssr&&a==="none")t["pointer-events"]="visible"},e,r,!1),BB(r,t,i)}function ey(t,e){var r=H0(e);if(r){if(r.each(function(i,n){i!=null&&(t[(Qg+n).toLowerCase()]=i+"")}),e.isSilent())t[Qg+"silent"]="true"}}function FE(t){return Xr(t[0]-1)&&Xr(t[1])&&Xr(t[2])&&Xr(t[3]-1)}function LB(t){return Xr(t[4])&&Xr(t[5])}function ty(t,e,r){if(e&&!(LB(e)&&FE(e))){var i=r?10:1e4;t.transform=FE(e)?"translate("+eu(e[4]*i)/i+" "+eu(e[5]*i)/i+")":c0(e)}}function VE(t,e,r){var i=t.points,n=[];for(var a=0;a<i.length;a++)n.push(eu(i[a][0]*r)/r),n.push(eu(i[a][1]*r)/r);e.points=n.join(" ")}function HE(t){return!t.smooth}function PB(t){var e=U(t,function(r){return typeof r==="string"?[r,r]:r});return function(r,i,n){for(var a=0;a<e.length;a++){var o=e[a],s=r[o[0]];if(s!=null)i[o[1]]=eu(s*n)/n}}}var IB={circle:[PB(["cx","cy","r"])],polyline:[VE,HE],polygon:[VE,HE]};function NB(t){var e=t.animators;for(var r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function WE(t,e){var{style:r,shape:i}=t,n=IB[t.type],a={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&Nu(t)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](i))&&!(o&&NB(t))&&!(l<1)){s=t.type;var f=Math.pow(10,u);n[0](i,a,f)}else{var c=!t.path||t.shapeChanged();if(!t.path)t.createPathProxy();var p=t.path;if(c)p.beginPath(),t.buildPath(p,t.shape),t.pathUpdated();var h=p.getVersion(),v=t,d=v.__svgPathBuilder;if(v.__svgPathVersion!==h||!d||l!==v.__svgPathStrokePercent){if(!d)d=v.__svgPathBuilder=new Xp;d.reset(u),p.rebuildPath(d,l),d.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=l}a.d=d.getStr()}return ty(a,t.transform),Jg(a,r,t,e),ey(a,t),e.animation&&Jl(t,a,e),e.emphasis&&UE(t,a,e),je(s,t.id+"",a)}function RB(t,e){var r=t.style,i=r.image;if(i&&!V(i)){if(GE(i))i=i.src;else if(YE(i))i=i.toDataURL()}if(!i)return;var n=r.x||0,a=r.y||0,{width:o,height:s}=r,l={href:i,width:o,height:s};if(n)l.x=n;if(a)l.y=a;return ty(l,t.transform),Jg(l,r,t,e),ey(l,t),e.animation&&Jl(t,l,e),je("image",t.id+"",l)}function kB(t,e){var r=t.style,i=r.text;if(i!=null&&(i+=""),!i||isNaN(r.x)||isNaN(r.y))return;var n=r.font||Bt,a=r.x||0,o=h0(r.y||0,Wn(n),r.textBaseline),s=p0[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Pv(r)){var u="",f=r.fontStyle,c=Lv(r.fontSize);if(!parseFloat(c))return;var p=r.fontFamily||th,h=r.fontWeight;if(u+="font-size:"+c+";font-family:"+p+";",f&&f!=="normal")u+="font-style:"+f+";";if(h&&h!=="normal")u+="font-weight:"+h+";";l.style=u}else l.style="font: "+n;if(i.match(/\s/))l["xml:space"]="preserve";if(a)l.x=a;if(o)l.y=o;return ty(l,t.transform),Jg(l,r,t,e),ey(l,t),e.animation&&Jl(t,l,e),je("text",t.id+"",l,void 0,i)}function ry(t,e){if(t instanceof ie)return WE(t,e);else if(t instanceof _t)return RB(t,e);else if(t instanceof aa)return kB(t,e)}function BB(t,e,r){var i=t.style;if(v0(i)){var n=d0(t),a=r.shadowCache,o=a[n];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=i.shadowOffsetX||0,c=i.shadowOffsetY||0,p=i.shadowBlur,h=qi(i.shadowColor),{opacity:v,color:d}=h,m=p/2/l,g=p/2/u,y=m+" "+g;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=je("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[je("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:y,"flood-color":d,"flood-opacity":v})]),a[n]=o}e.filter=Cs(o)}}function iy(t,e,r,i){var n=t[r],a,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(Lu(n))a="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(Pu(n))a="radialGradient",o.cx=G(n.x,0.5),o.cy=G(n.y,0.5),o.r=G(n.r,0.5);else{jt("Illegal gradient type.");return}var s=n.colorStops,l=[];for(var u=0,f=s.length;u<f;++u){var c=Ou(s[u].offset)*100+"%",p=s[u].color,h=qi(p),{color:v,opacity:d}=h,m={offset:c};if(m["stop-color"]=v,d<1)m["stop-opacity"]=d;l.push(je("stop",u+"",m))}var g=je(a,"",o,l),y=Ql(g),_=i.gradientCache,x=_[y];if(!x)x=i.zrId+"-g"+i.gradientIdx++,_[y]=x,o.id=x,i.defs[x]=je(a,x,o,l);e[r]=Cs(x)}function ny(t,e,r,i){var n=t.style[r],a=t.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(Lh(n)){var{imageWidth:p,imageHeight:h}=n,v=void 0,d=n.image;if(V(d))v=d;else if(GE(d))v=d.src;else if(YE(d))v=d.toDataURL();if(typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";I(p,m),I(h,m)}else if(p==null||h==null){var g=function(E,D){if(E){var O=E.elm,M=p||D.width,L=h||D.height;if(E.tag==="pattern"){if(u)L=1,M/=a.width;else if(f)M=1,L/=a.height}if(E.attrs.width=M,E.attrs.height=L,O)O.setAttribute("width",M),O.setAttribute("height",L)}},y=Fs(v,null,t,function(E){l||g(b,E),g(c,E)});if(y&&y.width&&y.height)p=p||y.width,h=h||y.height}c=je("image","img",{href:v,width:p,height:h}),o.width=p,o.height=h}else if(n.svgElement)c=te(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight;if(!c)return;var _,x;if(l)_=x=1;else if(u)x=1,_=o.width/a.width;else if(f)_=1,x=o.height/a.height;else o.patternUnits="userSpaceOnUse";if(_!=null&&!isNaN(_))o.width=_;if(x!=null&&!isNaN(x))o.height=x;var S=Ru(n);S&&(o.patternTransform=S);var b=je("pattern","",o,[c]),T=Ql(b),A=i.patternCache,C=A[T];if(!C)C=i.zrId+"-p"+i.patternIdx++,A[T]=C,o.id=C,b=i.defs[C]=je("pattern",C,o,[c]);e[r]=Cs(C)}function XE(t,e,r){var{clipPathCache:i,defs:n}=r,a=i[t.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};i[t.id]=a,n[a]=je("clipPath",a,o,[WE(t,r)])}e["clip-path"]=Cs(a)}function ay(t){return document.createTextNode(t)}function Ln(t,e,r){t.insertBefore(e,r)}function oy(t,e){t.removeChild(e)}function sy(t,e){t.appendChild(e)}function ly(t){return t.parentNode}function uy(t){return t.nextSibling}function Kp(t,e){t.textContent=e}var qE=58,UB=120,FB=je("","");function fy(t){return t===void 0}function ci(t){return t!==void 0}function VB(t,e,r){var i={};for(var n=e;n<=r;++n){var a=t[n].key;if(a!==void 0){if(i[a]!=null)console.error("Duplicate key "+a);i[a]=n}}return i}function tu(t,e){var r=t.key===e.key,i=t.tag===e.tag;return i&&r}function ru(t){var e,{children:r,tag:i}=t;if(ci(i)){var n=t.elm=qp(i);if(Qp(FB,t),k(r))for(e=0;e<r.length;++e){var a=r[e];if(a!=null)sy(n,ru(a))}else if(ci(t.text)&&!W(t.text))sy(n,ay(t.text))}else t.elm=ay(t.text);return t.elm}function ZE(t,e,r,i,n){for(;i<=n;++i){var a=r[i];if(a!=null)Ln(t,ru(a),e)}}function jp(t,e,r,i){for(;r<=i;++r){var n=e[r];if(n!=null)if(ci(n.tag)){var a=ly(n.elm);oy(a,n.elm)}else oy(t,n.elm)}}function Qp(t,e){var r,i=e.elm,n=t&&t.attrs||{},a=e.attrs||{};if(n===a)return;for(r in a){var o=a[r],s=n[r];if(s!==o)if(o===!0)i.setAttribute(r,"");else if(o===!1)i.removeAttribute(r);else if(r==="style")i.style.cssText=o;else if(r.charCodeAt(0)!==UB)i.setAttribute(r,o);else if(r==="xmlns:xlink"||r==="xmlns")i.setAttributeNS(PE,r,o);else if(r.charCodeAt(3)===qE)i.setAttributeNS(IE,r,o);else if(r.charCodeAt(5)===qE)i.setAttributeNS(jg,r,o);else i.setAttribute(r,o)}for(r in n)if(!(r in a))i.removeAttribute(r)}function HB(t,e,r){var i=0,n=0,a=e.length-1,o=e[0],s=e[a],l=r.length-1,u=r[0],f=r[l],c,p,h,v;while(i<=a&&n<=l)if(o==null)o=e[++i];else if(s==null)s=e[--a];else if(u==null)u=r[++n];else if(f==null)f=r[--l];else if(tu(o,u))cs(o,u),o=e[++i],u=r[++n];else if(tu(s,f))cs(s,f),s=e[--a],f=r[--l];else if(tu(o,f))cs(o,f),Ln(t,o.elm,uy(s.elm)),o=e[++i],f=r[--l];else if(tu(s,u))cs(s,u),Ln(t,s.elm,o.elm),s=e[--a],u=r[++n];else{if(fy(c))c=VB(e,i,a);if(p=c[u.key],fy(p))Ln(t,ru(u),o.elm);else if(h=e[p],h.tag!==u.tag)Ln(t,ru(u),o.elm);else cs(h,u),e[p]=void 0,Ln(t,h.elm,o.elm);u=r[++n]}if(i<=a||n<=l)if(i>a)v=r[l+1]==null?null:r[l+1].elm,ZE(t,v,r,n,l);else jp(t,e,i,a)}function cs(t,e){var r=e.elm=t.elm,i=t.children,n=e.children;if(t===e)return;if(Qp(t,e),fy(e.text)){if(ci(i)&&ci(n)){if(i!==n)HB(r,i,n)}else if(ci(n)){if(ci(t.text))Kp(r,"");ZE(r,null,n,0,n.length-1)}else if(ci(i))jp(r,i,0,i.length-1);else if(ci(t.text))Kp(r,"")}else if(t.text!==e.text){if(ci(i))jp(r,i,0,i.length-1);Kp(r,e.text)}}function cy(t,e){if(tu(t,e))cs(t,e);else{var r=t.elm,i=ly(r);if(ru(e),i!==null)Ln(i,e.elm,uy(r)),jp(i,[t],0,0)}return e}var GB=0,YB=function(){function t(e,r,i){if(this.type="svg",this.configLayer=WB("configLayer"),this.storage=r,this._opts=i=N({},i),this.root=e,this._id="zr"+GB++,this._oldVNode=$g(i.width,i.height),e&&!i.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=qp("svg");Qp(null,this._oldVNode),n.appendChild(a),e.appendChild(n)}this.resize(i.width,i.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",cy(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return ry(e,$l(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),i=this._width,n=this._height,a=$l(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=XB(i,n,this._backgroundColor,a);s&&o.push(s);var l=!e.compress?this._mainVNode=je("g","main",{},[]):null;this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=U(re(a.defs),function(p){return a.defs[p]});if(u.length)o.push(je("defs","defs",{},u));if(e.animation){var f=NE(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=je("style","stl",{},[],f);o.push(c)}}return $g(i,n,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},Ql(this.renderToVNode({animation:G(e.cssAnimation,!0),emphasis:G(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:G(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,i){var n=e.length,a=[],o=0,s,l,u=0;for(var f=0;f<n;f++){var c=e[f];if(!c.invisible){var p=c.__clipPaths,h=p&&p.length||0,v=l&&l.length||0,d=void 0;for(d=Math.max(h-1,v-1);d>=0;d--)if(p&&l&&p[d]===l[d])break;for(var m=v-1;m>d;m--)o--,s=a[o-1];for(var g=d+1;g<h;g++){var y={};XE(p[g],y,r);var _=je("g","clip-g-"+u++,y,[]);(s?s.children:i).push(_),a[o++]=_,s=_}l=p;var x=ry(c,r);if(x)(s?s.children:i).push(x)}}},t.prototype.resize=function(e,r){var i=this._opts,n=this.root,a=this._viewport;if(e!=null&&(i.width=e),r!=null&&(i.height=r),n&&a)a.style.display="none",e=em(n,0,i),r=em(n,1,i),a.style.display="";if(this._width!==e||this._height!==r){if(this._width=e,this._height=r,a){var o=a.style;o.width=e+"px",o.height=r+"px"}if(!ws(this._backgroundColor)){var s=this._svgDom;if(s)s.setAttribute("width",e),s.setAttribute("height",r);var l=this._bgVNode&&this._bgVNode.elm;if(l)l.setAttribute("width",e),l.setAttribute("height",r)}else this.refresh()}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){if(this.root)this.root.innerHTML="";this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){if(this._svgDom)this._svgDom.innerHTML=null;this._oldVNode=null},t.prototype.toDataURL=function(e){var r=this.renderToString(),i="data:image/svg+xml;";if(e)return r=m0(r),r&&i+"base64,"+r;return i+"charset=UTF-8,"+encodeURIComponent(r)},t}();function WB(t){return function(){jt('In SVG mode painter not support method "'+t+'"')}}function XB(t,e,r,i){var n;if(r&&r!=="none")if(n=je("rect","bg",{width:t,height:e,x:"0",y:"0"}),Iu(r))iy({fill:r},n.attrs,"fill",i);else if(ws(r))ny({style:{fill:r},dirty:Pe,getBoundingRect:function(){return{width:t,height:e}}},n.attrs,"fill",i);else{var a=qi(r),{color:o,opacity:s}=a;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}var KE=YB;function py(t){t.registerPainter("svg",KE)}var jE=new Map;function $p(t,e="number",r="auto",i=!1){let n=`${e}:${r}:${i}`,a=jE.get(n);if(!a){let o={maximumFractionDigits:2,signDisplay:r};if(e==="percent")Object.assign(o,{style:"percent",maximumFractionDigits:1});if(e.startsWith("currency:"))Object.assign(o,{style:"currency",currency:e.slice(9),minimumFractionDigits:2,maximumFractionDigits:2,trailingZeroDisplay:"stripIfInteger"});if(i&&e==="number")Object.assign(o,{notation:"compact",maximumFractionDigits:1});a=new Intl.NumberFormat("en-GB",o),jE.set(n,a)}return a.format(t)+(e==="percentage-points"?" pt":"")}function QE(t,e=!1){return new Intl.DateTimeFormat("en-GB",{timeZone:"UTC",month:"short",...e?{day:"numeric",year:"numeric"}:{}}).format(t)}Ni([ag,Zm,pg,Pg,kg,Gg,Wg,py]);var qB=document.getElementById("plotleaf-data"),ZB=JSON.parse(qB?.textContent??'{"charts":[]}'),KB=window.matchMedia("(prefers-color-scheme: dark)"),$E=[];function JE(t){let e=getComputedStyle(document.documentElement),r=(l)=>e.getPropertyValue(`--${l}`).trim();if(t.kind==="donut")return{animation:!1,color:Array.from({length:8},(l,u)=>r(`slice-${u+1}`)),textStyle:{fontFamily:e.fontFamily,fontSize:12},aria:{enabled:!0,label:{description:`${t.title}. Values and shares are available in the adjacent legend and data table.`}},tooltip:{trigger:"item",renderMode:"richText",confine:!0,backgroundColor:r("tooltip"),borderColor:r("rule"),borderWidth:1,textStyle:{color:r("ink"),fontFamily:e.fontFamily,fontSize:13},valueFormatter:(l)=>typeof l==="number"?$p(l,t.format):"—"},series:[{type:"pie",radius:["58%","88%"],center:["50%","50%"],clockwise:!0,startAngle:90,stillShowZeroSum:!1,label:{show:!1},labelLine:{show:!1},itemStyle:{borderColor:r("page"),borderWidth:2,borderRadius:2},emphasis:{scale:!1,itemStyle:{opacity:0.8}},data:t.rows.map(([l,u])=>({name:l,value:u}))}]};let i=t.xType==="date",n=t.xType==="category",a=i?Number(t.rows.at(-1)?.[0])-Number(t.rows[0]?.[0]):0,o=(l)=>new Intl.DateTimeFormat("en-GB",{timeZone:"UTC",month:"short",...a<7776000000?{day:"numeric"}:{},...a>31536000000?{year:"numeric"}:{}}).format(l),s=(l)=>$p(l,t.format,"auto",!0);return{animation:!1,useUTC:!0,color:[r("series")],textStyle:{fontFamily:e.fontFamily,fontSize:12},aria:{enabled:!0,label:{description:`${t.title}. A data table follows this chart.`}},grid:{top:14,right:14,bottom:34,left:54,containLabel:!1},tooltip:{trigger:"axis",renderMode:"richText",confine:!0,backgroundColor:r("tooltip"),borderColor:r("rule"),borderWidth:1,textStyle:{color:r("ink"),fontFamily:e.fontFamily,fontSize:13},valueFormatter:(l)=>{let u=Array.isArray(l)?l[1]:l;return typeof u==="number"?$p(u,t.format):"—"},axisPointer:{type:"line",lineStyle:{color:r("rule"),width:1},label:{formatter:(l)=>i?QE(Number(l.value),!0):String(l.value)}}},xAxis:{type:n?"category":i?"time":"value",...n?{data:t.rows.map((l)=>l[0])}:{},boundaryGap:n?t.kind==="bar":["0%","0%"],...i?{minInterval:(a<7776000000?1:31)*86400000,splitNumber:5}:{},axisLine:{show:!0,lineStyle:{color:r("rule")}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{color:r("muted"),margin:16,hideOverlap:!0,...i?{formatter:o}:{width:140,overflow:"truncate"}}},yAxis:{type:"value",min:(l)=>Math.min(0,l.min,t.target??0),splitNumber:3,axisLabel:{color:r("muted"),margin:14,formatter:s},axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1},...t.target!==void 0?{max:(l)=>Math.max(0,l.max,t.target)*1.12}:{}},series:[{type:t.kind==="bar"?"bar":"line",name:t.y,data:n?t.rows.map((l)=>l[1]):t.rows,showSymbol:!1,smooth:!1,connectNulls:!1,lineStyle:{color:r("series"),width:2.25},itemStyle:{color:r("series"),...t.kind==="bar"?{borderRadius:[3,3,0,0]}:{}},barMaxWidth:48,...t.kind==="area"?{areaStyle:{color:new Eo(0,0,0,1,[{offset:0,color:r("series-fill")},{offset:1,color:r("series-fill-end")}])}}:{},...t.target!==void 0?{markLine:{silent:!0,symbol:"none",animation:!1,lineStyle:{color:r("target"),width:1.25,type:"dashed"},label:{show:!0,position:"insideEndTop",color:r("body"),backgroundColor:r("page"),borderColor:r("rule"),borderWidth:1,borderRadius:5,padding:[5,8],formatter:`${t.targetLabel??"Target"} · ${s(t.target)}`},data:[{yAxis:t.target}]}}:{}}]}}for(let t of ZB.charts){let e=document.getElementById(t.id);if(!e)continue;let r=l1(e,void 0,{renderer:"svg"});r.setOption(JE(t)),$E.push({chart:r,data:t}),new ResizeObserver(()=>r.resize()).observe(e)}KB.addEventListener("change",()=>{for(let{chart:t,data:e}of $E)t.setOption(JE(e),{notMerge:!0})});})();
|
|
43
|
+
`:"<br/>",g=c.join(m);this._showOrMove(s,function(){if(this._updateContentNotChangedOnAxis(r,u))this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u);else 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=xe(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,{dataIndex:f,dataType:c}=o,p=u.getData(c),h=this._renderMode,v=r.positionDefault,d=jl([p.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),m=d.get("trigger");if(m!=null&&m!=="item")return;var g=u.getDataParams(f,c),y=new Dc;g.marker=y.makeTooltipMarker("item",Ir(g.color),h);var _=Vd(u.formatTooltip(f,!1,c)),x=d.get("order"),S=d.get("valueFormatter"),b=_.frag,T=b?qd(S?N({valueFormatter:S},b):b,y,h,x,a.get("useUTC"),d.get("textStyle")):_.text,A="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,T,g,A,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=xe(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(V(l)){var f=l;l={content:f,formatter:f},u=!0}if(u&&a&&l.content)l=te(l),l.content=it(l.content);var c=[l],p=this._ecModel.getComponent(o.componentMainType,o.componentIndex);if(p)c.push(p);c.push({formatter:l.content});var h=r.positionDefault,v=jl(c,this._tooltipModel,h?{position:h}:null),d=v.get("content"),m=Math.random()+"",g=new Dc;this._showOrMove(v,function(){var y=te(v.get("formatterParams")||{});this._showTooltipContent(v,d,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"))return;var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var p=r.get("formatter");l=l||r.get("position");var h=i,v=this._getNearestPoint([o,s],n,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),d=v.color;if(p)if(V(p)){var m=r.ecModel.get("useUTC"),g=k(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;if(h=p,y)h=ya(g.axisValue,h,m);h=oc(h,n,!0)}else if(X(p)){var _=me(function(x,S){if(x===this._ticket)c.setContent(S,f,r,d,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,d,l),c.show(r,d),this._updatePosition(r,l,o,s,c,n,u)},e.prototype._getNearestPoint=function(r,i,n,a,o){if(n==="axis"||k(i))return{color:a||o};if(!k(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"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),X(i))i=i([n,a],s,o.el,v,{viewSize:[u,f],contentSize:c.slice()});if(k(i))n=Ce(i[0],u),a=Ce(i[1],f);else if(W(i)){var d=i;d.width=c[0],d.height=c[1];var m=xa(d,{width:u,height:f});n=m.x,a=m.y,p=null,h=null}else if(V(i)&&l){var g=oB(i,v,c,r.get("borderWidth"));n=g[0],a=g[1]}else{var g=nB(n,a,o,u,f,p?null:20,h?null:20);n=g[0],a=g[1]}if(p&&(n-=SE(p)?c[0]/2:p==="right"?c[0]:0),h&&(a-=SE(h)?c[1]/2:h==="bottom"?c[1]:0),Vp(r)){var g=aB(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 v=c[h]||{},d=p.seriesDataIndices||[],m=v.seriesDataIndices||[];o=o&&p.value===v.value&&p.axisType===v.axisType&&p.axisId===v.axisId&&d.length===m.length,o&&w(d,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];if(_&&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){if(ne.node||!i.getDom())return;_l(this,"_updatePosition"),this._tooltipContent.dispose(),Zl("itemTooltip",i),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null},e.type="tooltip",e}(Ot);function jl(t,e,r){var i=e.ecModel,n;if(r)n=new Re(r,i,i),n=new Re(e.option,n,i);else n=e;for(var a=t.length-1;a>=0;a--){var o=t[a];if(o){if(o instanceof Re)o=o.get("tooltip",!0);if(V(o))o={formatter:o};if(o)n=new Re(o,n,i)}}return n}function xE(t,e){return t.dispatchAction||me(e.dispatchAction,e)}function nB(t,e,r,i,n,a,o){var s=r.getSize(),l=s[0],u=s[1];if(a!=null)if(t+l+a+2>i)t-=l+a;else t+=a;if(o!=null)if(e+u+o>n)e-=u+o;else e+=o;return[t,e]}function aB(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 oB(t,e,r,i){var n=r[0],a=r[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,{width:u,height:f}=e;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 SE(t){return t==="center"||t==="middle"}function sB(t,e,r){var i=Fs(t).queryOptionMap,n=i.keys()[0];if(!n||n==="series")return;var a=en(e,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(!o)return;var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=xe(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}var bE=iB;function zg(t){Ni(Fp),t.registerComponentModel(fE),t.registerComponentView(bE),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Pe),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Pe)}function Ug(t,e){if(!t)return!1;var r=k(t)?t:[t];for(var i=0;i<r.length;i++)if(r[i]&&r[i][e])return!0;return!1}function Hp(t){jn(t,"label",["show"])}var Gp=ee(),TE=function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.createdBySelf=!1,r.preventAutoZ=!0,r}return e.prototype.init=function(r,i,n){if(this.type==="marker")throw Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(r,n),this._mergeOption(r,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(ne.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},e.prototype.mergeOption=function(r,i){this._mergeOption(r,i,!1,!1)},e.prototype._mergeOption=function(r,i,n,a){var o=this.mainType;if(!n)i.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Gp(s)[o];if(!l||!l.data){Gp(s)[o]=null;return}if(!u){if(a)Hp(l);w(l.data,function(f){if(f instanceof Array)Hp(f[0]),Hp(f[1]);else Hp(f)}),u=this.createMarkerModelFromSeries(l,this,i),N(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s}else u._mergeOption(l,i,!0);Gp(s)[o]=u},this)},e.prototype.formatTooltip=function(r,i,n){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return si("section",{header:this.name,blocks:[si("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(r){this._data=r},e.prototype.getDataParams=function(r,i){var n=dl.prototype.getDataParams.call(this,r,i),a=this.__hostSeries;if(a)n.seriesId=a.id,n.seriesName=a.name,n.seriesType=a.subType;return n},e.getMarkerModelFromSeries=function(r,i){return Gp(r)[i]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(be);ht(TE,dl.prototype);var Ln=TE;function lB(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function uB(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function Yp(t,e,r,i,n,a,o){var s=[],l=kr(e,n),u=l?e.getCalculationInfo("stackResultDimension"):n,f=$l(e,u,t),c=e.hostModel,p=c.indicesOfNearest(r,u,f)[0];s[a]=e.get(i,p),s[o]=e.get(u,p);var h=e.get(n,p),v=Ut(e.get(n,p));if(v=Math.min(v,20),v>=0)s[o]=+s[o].toFixed(v);return[s,h]}var Wp={min:Ae(Yp,"min"),max:Ae(Yp,"max"),average:Ae(Yp,"average"),median:Ae(Yp,"median")};function Fg(t,e){if(!e)return;var r=t.getData(),i=t.coordinateSystem,n=i&&i.dimensions;if(!uB(e)&&!k(e.coord)&&k(n)){var a=Vg(e,r,i,t);if(e=te(e),e.type&&Wp[e.type]&&a.baseAxis&&a.valueAxis){var o=ue(n,a.baseAxis.dim),s=ue(n,a.valueAxis.dim),l=Wp[e.type](r,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!k(n)){e.coord=[];var u=t.getBaseAxis();if(u&&e.type&&Wp[e.type]){var f=i.getOtherAxis(u);if(f)e.value=$l(r,r.mapDimension(f.dim),e.type)}}else{var c=e.coord;for(var p=0;p<2;p++)if(Wp[c[p]])c[p]=$l(r,r.mapDimension(n[p]),c[p])}return e}function Vg(t,e,r,i){var n={};if(t.valueIndex!=null||t.valueDim!=null)n.valueDataDim=t.valueIndex!=null?e.getDimension(t.valueIndex):t.valueDim,n.valueAxis=r.getAxis(fB(i,n.valueDataDim)),n.baseAxis=r.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim);else n.baseAxis=i.getBaseAxis(),n.valueAxis=r.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim);return n}function fB(t,e){var r=t.getData().getDimensionInfo(e);return r&&r.coordDim}function Hg(t,e){return t&&t.containData&&e.coord&&!lB(e)?t.containData(e.coord):!0}function wE(t,e){return t?function(r,i,n,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Oi(o,e[a])}:function(r,i,n,a){return Oi(r.value,e[a])}}function $l(t,e,r){if(r==="average"){var i=0,n=0;return t.each(e,function(a,o){if(!isNaN(a))i+=a,n++}),i/n}else if(r==="median")return t.getMedian(e);else return t.getDataExtent(e)[r==="max"?1:0]}var Gg=ee(),pB=function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){this.markerGroupMap=Z()},e.prototype.render=function(r,i,n){var a=this,o=this.markerGroupMap;o.each(function(s){Gg(s).keep=!1}),i.eachSeries(function(s){var l=Ln.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,i,n)}),o.each(function(s){!Gg(s).keep&&a.group.remove(s.group)}),hB(i,o,this.type)},e.prototype.markKeep=function(r){Gg(r).keep=!0},e.prototype.toggleBlurSeries=function(r,i){var n=this;w(r,function(a){var o=Ln.getMarkerModelFromSeries(a,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){if(l)i?xf(l):Qs(l)})}})},e.type="marker",e}(Ot);function hB(t,e,r){t.eachSeries(function(i){var n=Ln.getMarkerModelFromSeries(i,r),a=e.get(i.id);if(n&&a&&a.group){var o=al(n),{z:s,zlevel:l}=o;ol(a.group,s,l)}})}var CE=pB;var vB=function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,i,n){return new e(r,i,n)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(Ln),AE=vB;var Xp=ee(),dB=function(t,e,r,i){var n=t.getData(),a;if(!k(i)){var o=i.type;if(o==="min"||o==="max"||o==="average"||o==="median"||i.xAxis!=null||i.yAxis!=null){var s=void 0,l=void 0;if(i.yAxis!=null||i.xAxis!=null)s=e.getAxis(i.yAxis!=null?"y":"x"),l=Cr(i.yAxis,i.xAxis);else{var u=Vg(i,n,e,t);s=u.valueAxis;var f=Qc(n,u.valueDataDim);l=$l(n,f,o)}var c=s.dim==="x"?0:1,p=1-c,h=te(i),v={coord:[]};h.type=null,h.coord=[],h.coord[p]=-1/0,v.coord[p]=1/0;var d=r.get("precision");if(d>=0&&se(l))l=+l.toFixed(Math.min(d,20));h.coord[c]=v.coord[c]=l,a=[h,v,{type:o,valueIndex:i.valueIndex,value:l}]}else jt("Invalid markLine data."),a=[]}else a=i;var m=[Fg(t,a[0]),Fg(t,a[1]),N({},a[2])];return m[2].type=m[2].type||null,_e(m[2],m[0]),_e(m[2],m[1]),m};function qp(t){return!isNaN(t)&&!isFinite(t)}function EE(t,e,r,i){var n=1-t,a=i.dimensions[t];return qp(e[n])&&qp(r[n])&&e[t]===r[t]&&i.getAxis(a).containData(e[t])}function mB(t,e){if(t.type==="cartesian2d"){var r=e[0].coord,i=e[1].coord;if(r&&i&&(EE(1,r,i,t)||EE(0,r,i,t)))return!0}return Hg(t,e[0])&&Hg(t,e[1])}function Yg(t,e,r,i,n){var a=i.coordinateSystem,o=t.getItemModel(e),s,l=Ce(o.get("x"),n.getWidth()),u=Ce(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition)s=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var f=a.dimensions,c=t.get(f[0],e),p=t.get(f[1],e);s=a.dataToPoint([c,p])}if(us(a,"cartesian2d")){var h=a.getAxis("x"),v=a.getAxis("y"),f=a.dimensions;if(qp(t.get(f[0],e)))s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]);else if(qp(t.get(f[1],e)))s[1]=v.toGlobalCoord(v.getExtent()[r?0:1])}if(!isNaN(l))s[0]=l;if(!isNaN(u))s[1]=u}t.setItemLayout(e,s)}var gB=function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,i,n){i.eachSeries(function(a){var o=Ln.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=Xp(o).from,u=Xp(o).to;l.each(function(f){Yg(l,f,!0,a,n),Yg(u,f,!1,a,n)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},e.prototype.renderSeries=function(r,i,n,a){var{coordinateSystem:o,id:s}=r,l=r.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new VA);this.group.add(f.group);var c=yB(o,r,i),{from:p,to:h,line:v}=c;Xp(i).from=p,Xp(i).to=h,i.setData(v);var d=i.get("symbol"),m=i.get("symbolSize"),g=i.get("symbolRotate"),y=i.get("symbolOffset");if(!k(d))d=[d,d];if(!k(m))m=[m,m];if(!k(g))g=[g,g];if(!k(y))y=[y,y];c.from.each(function(x){_(p,x,!0),_(h,x,!1)}),v.each(function(x){var S=v.getItemModel(x),b=S.getModel("lineStyle").getLineStyle();v.setItemLayout(x,[p.getItemLayout(x),h.getItemLayout(x)]);var T=S.get("z2");if(b.stroke==null)b.stroke=p.getItemVisual(x,"style").fill;v.setItemVisual(x,{z2:G(T,0),fromSymbolKeepAspect:p.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:p.getItemVisual(x,"symbolOffset"),fromSymbolRotate:p.getItemVisual(x,"symbolRotate"),fromSymbolSize:p.getItemVisual(x,"symbolSize"),fromSymbol:p.getItemVisual(x,"symbol"),toSymbolKeepAspect:h.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(x,"symbolOffset"),toSymbolRotate:h.getItemVisual(x,"symbolRotate"),toSymbolSize:h.getItemVisual(x,"symbolSize"),toSymbol:h.getItemVisual(x,"symbol"),style:b})}),f.updateData(v),c.line.eachItemGraphicEl(function(x){xe(x).dataModel=i,x.traverse(function(S){xe(S).dataModel=i})});function _(x,S,b){var T=x.getItemModel(S);Yg(x,S,b,r,a);var A=T.getModel("itemStyle").getItemStyle();if(A.fill==null)A.fill=Rc(l,"color");x.setItemVisual(S,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:G(T.get("symbolOffset",!0),y[b?0:1]),symbolRotate:G(T.get("symbolRotate",!0),g[b?0:1]),symbolSize:G(T.get("symbolSize"),m[b?0:1]),symbol:G(T.get("symbol",!0),d[b?0:1]),style:A})}this.markKeep(f),f.group.silent=i.get("silent")||r.get("silent")},e.type="markLine",e}(CE);function yB(t,e,r){var i;if(t)i=U(t&&t.dimensions,function(u){var f=e.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return N(N({},c),{name:u,ordinalMeta:null})});else i=[{name:"value",type:"float"}];var n=new Sn(i,r),a=new Sn(i,r),o=new Sn([],r),s=U(r.get("data"),Ae(dB,e,t,r));if(t)s=Oe(s,Ae(mB,t));var l=wE(!!t,i);return n.initData(U(s,function(u){return u[0]}),null,l),a.initData(U(s,function(u){return u[1]}),null,l),o.initData(U(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:a,line:o}}var DE=gB;function Wg(t){t.registerComponentModel(AE),t.registerComponentView(DE),t.registerPreprocessor(function(e){if(Ug(e.series,"markLine"))e.markLine=e.markLine||{}})}var _B={label:{enabled:!0},decal:{show:!1}},ME=ee(),OE=ee(),LE=mo(xB);function xB(t,e){var r=t.getModel("aria");if(!r.get("enabled"))return;var i=OE(t).scope||(OE(t).scope={}),n=te(_B);_e(n.label,t.getLocaleModel().get("aria"),!1),_e(r.option,n,!1),a(),o();function a(){var f=r.getModel("decal"),c=f.get("show");if(c){var p=Z();t.eachSeries(function(h){if(!h.isColorBySeries())ME(h).scope=p.get(h.type)||p.set(h.type,{})}),t.eachSeries(function(h){if(X(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(!h.isColorBySeries()){var d=h.getRawData(),m={},g=ME(h).scope;v.each(function(b){var T=v.getRawIndex(b);m[T]=b});var y=d.count();d.each(function(b){var T=m[b],A=d.getName(b)||b+"",C=Ld(h.ecModel,A,g,y),E=v.getItemVisual(T,"decal");v.setItemVisual(T,"decal",S(E,C))})}else{var _=Ld(h.ecModel,h.name,i,t.getSeriesCount()),x=v.getVisual("decal");v.setVisual("decal",S(x,_))}function S(b,T){var A=b?N(N({},T),b):T;return A.dirty=!0,A}})}}function o(){var f=e.getZr().dom;if(!f)return;var c=t.getLocaleModel().get("aria"),p=r.getModel("label");if(p.option=oe(p.option,c),!p.get("enabled"))return;if(f.setAttribute("role","img"),p.get("description")){f.setAttribute("aria-label",p.get("description"));return}var h=t.getSeriesCount(),v=p.get(["data","maxCount"])||10,d=p.get(["series","maxCount"])||10,m=Math.min(h,d),g;if(h<1)return;else{var y=l();if(y){var _=p.get(["general","withTitle"]);g=s(_,{title:y})}else g=p.get(["general","withoutTitle"]);var x=[],S=h>1?p.get(["series","multiple","prefix"]):p.get(["series","single","prefix"]);g+=s(S,{seriesCount:h}),t.eachSeries(function(C,E){if(E<m){var D=void 0,O=C.get("name"),M=O?"withName":"withoutName";D=h>1?p.get(["series","multiple",M]):p.get(["series","single",M]),D=s(D,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:u(C.subType)});var L=C.getData();if(L.count()>v){var B=p.get(["data","partialData"]);D+=s(B,{displayCnt:v})}else D+=p.get(["data","allData"]);var R=p.get(["data","separator","middle"]),F=p.get(["data","separator","end"]),z=p.get(["data","excludeDimensionId"]),H=[];for(var Y=0;Y<L.count();Y++)if(Y<v){var q=L.getName(Y),Q=!z?L.getValues(Y):Oe(L.getValues(Y),function(j,ce){return ue(z,ce)===-1}),J=p.get(["data",q?"withName":"withoutName"]);H.push(s(J,{name:q,value:Q.join(R)}))}D+=H.join(R)+F,x.push(D)}});var b=p.getModel(["series","multiple","separator"]),T=b.get("middle"),A=b.get("end");g+=x.join(T)+A,f.setAttribute("aria-label",g)}}function s(f,c){if(!V(f))return f;var p=f;return w(c,function(h,v){p=p.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),h)}),p}function l(){var f=t.get("title");if(f&&f.length)f=f[0];return f&&f.text}function u(f){var c=t.getLocaleModel().get(["series","typeNames"]);return c[f]||c.chart}}function Xg(t){if(!t||!t.aria)return;var e=t.aria;if(e.show!=null)e.enabled=e.show;e.label=e.label||{},w(["description","general","series","data"],function(r){if(e[r]!=null)e.label[r]=e[r]})}function qg(t){t.registerPreprocessor(Xg),t.registerVisual(t.PRIORITY.VISUAL.ARIA,LE)}var{sin:Zg,cos:Kg,PI:PE}=Math,Va=Math.PI*2,SB=180/PE,bB=function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,i,n,a,o){this._add("C",e,r,i,n,a,o)},t.prototype.quadraticCurveTo=function(e,r,i,n){this._add("Q",e,r,i,n)},t.prototype.arc=function(e,r,i,n,a,o){this.ellipse(e,r,i,i,0,n,a,o)},t.prototype.ellipse=function(e,r,i,n,a,o,s,l){var u=s-o,f=!l,c=Math.abs(u),p=Xr(c-Va)||(f?u>=Va:-u>=Va),h=u>0?u%Va:u%Va+Va,v=!1;if(p)v=!0;else if(Xr(c))v=!1;else v=h>=PE===!!f;var d=e+i*Kg(o),m=r+n*Zg(o);if(this._start)this._add("M",d,m);var g=Math.round(a*SB);if(p){var y=1/this._p,_=(f?1:-1)*(Va-y);if(this._add("A",i,n,g,1,+f,e+i*Kg(o+_),r+n*Zg(o+_)),y>0.01)this._add("A",i,n,g,0,+f,d,m)}else{var x=e+i*Kg(s),S=r+n*Zg(s);this._add("A",i,n,g,+v,+f,x,S)}},t.prototype.rect=function(e,r,i,n){this._add("M",e,r),this._add("l",i,0),this._add("l",0,n),this._add("l",-i,0),this._add("Z")},t.prototype.closePath=function(){if(this._d.length>0)this._add("Z")},t.prototype._add=function(e,r,i,n,a,o,s,l,u){var f=[],c=this._p;for(var p=1;p<arguments.length;p++){var h=arguments[p];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*c)/c)}this._d.push(e+f.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),Zp=bB;var Ql="none",TB=Math.round;function wB(t){var e=t.fill;return e!=null&&e!==Ql}function CB(t){var e=t.stroke;return e!=null&&e!==Ql}var jg=["lineCap","miterLimit","lineJoin"],AB=U(jg,function(t){return"stroke-"+t.toLowerCase()});function $g(t,e,r,i){var n=e.opacity==null?1:e.opacity;if(r instanceof _t){t("opacity",n);return}if(wB(e)){var a=Zi(e.fill);t("fill",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*n:a.opacity*n;if(i||o<1)t("fill-opacity",o)}else t("fill",Ql);if(CB(e)){var s=Zi(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?r.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*n:s.opacity*n,c=e.strokeFirst;if(i||u!==1)t("stroke-width",u);if(i||c)t("paint-order",c?"stroke":"fill");if(i||f<1)t("stroke-opacity",f);if(e.lineDash){var p=wl(r),h=p[0],v=p[1];if(h){if(v=TB(v||0),t("stroke-dasharray",h.join(",")),v||i)t("stroke-dashoffset",v)}}else if(i)t("stroke-dasharray",Ql);for(var d=0;d<jg.length;d++){var m=jg[d];if(i||e[m]!==_o[m]){var g=e[m]||_o[m];g&&t(AB[d],g)}}}else if(i)t("stroke",Ql)}var IE="http://www.w3.org/2000/svg",Qg="http://www.w3.org/1999/xlink",NE="http://www.w3.org/2000/xmlns/",RE="http://www.w3.org/XML/1998/namespace",Jg="ecmeta_";function Kp(t){return document.createElementNS(IE,t)}function je(t,e,r,i,n){return{tag:t,attrs:r||{},children:i,text:n,key:e}}function EB(t,e){var r=[];if(e)for(var i in e){var n=e[i],a=i;if(n===!1)continue;else if(n!==!0&&n!=null)a+='="'+n+'"';r.push(a)}return"<"+t+" "+r.join(" ")+">"}function DB(t){return"</"+t+">"}function Jl(t,e){e=e||{};var r=e.newline?`
|
|
44
|
+
`:"";function i(n){var{children:a,tag:o,attrs:s,text:l}=n;return EB(o,s)+(o!=="style"?it(l):l||"")+(a?""+r+U(a,function(u){return i(u)}).join(r)+r:"")+DB(o)}return i(t)}function kE(t,e,r){r=r||{};var i=r.newline?`
|
|
45
|
+
`:"",n=" {"+i,a=i+"}",o=U(re(t),function(l){return l+n+U(re(t[l]),function(u){return u+":"+t[l][u]+";"}).join(i)+a}).join(i),s=U(re(e),function(l){return"@keyframes "+l+n+U(re(e[l]),function(u){return u+n+U(re(e[l][u]),function(f){var c=e[l][u][f];if(f==="d")c='path("'+c+'")';return f+":"+c+";"}).join(i)+a}).join(i)+a}).join(i);if(!o&&!s)return"";return["<![CDATA[",o,s,"]]>"].join(i)}function eu(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function ey(t,e,r,i){return je("svg","root",{width:t,height:e,xmlns:IE,"xmlns:xlink":Qg,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+t+" "+e:!1},r)}var MB=0;function jp(){return MB++}var BE={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Ha="transform-origin";function OB(t,e,r){var i=N({},t.shape);N(i,e),t.buildPath(r,i);var n=new Zp;return n.reset(ku(t)),r.rebuildPath(n,1),n.generateStr(),n.getStr()}function LB(t,e){var{originX:r,originY:i}=e;if(r||i)t[Ha]=r+"px "+i+"px"}var PB={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function UE(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function IB(t,e,r){var i=t.shape.paths,n={},a,o;if(w(i,function(l){var u=eu(r.zrId);u.animation=!0,tu(l,{},u,!0);var{cssAnims:f,cssNodes:c}=u,p=re(f),h=p.length;if(!h)return;o=p[h-1];var v=f[o];for(var d in v){var m=v[d];n[d]=n[d]||{d:""},n[d].d+=m.d||""}for(var g in c){var y=c[g].animation;if(y.indexOf(o)>=0)a=y}}),!a)return;e.d=!1;var s=UE(n,r);return a.replace(o,s)}function zE(t){return V(t)?BE[t]?"cubic-bezier("+BE[t]+")":no(t)?t:"":""}function tu(t,e,r,i){var n=t.animators,a=n.length,o=[];if(t instanceof rl){var s=IB(t,e,r);if(s)o.push(s);else if(!a)return}else if(!a)return;var l={};for(var u=0;u<a;u++){var f=n[u],c=[f.getMaxTime()/1000+"s"],p=zE(f.getClip().easing),h=f.getDelay();if(p)c.push(p);else c.push("linear");if(h)c.push(h/1000+"s");if(f.getLoop())c.push("infinite");var v=c.join(" ");l[v]=l[v]||[v,[]],l[v][1].push(f)}function d(y){var _=y[1],x=_.length,S={},b={},T={},A="animation-timing-function";function C(He,Te,Me){var le=He.getTracks(),Se=He.getMaxTime();for(var Rt=0;Rt<le.length;Rt++){var Xe=le[Rt];if(Xe.needsAnimate()){var{keyframes:br,propName:kt}=Xe;if(Me&&(kt=Me(kt)),kt)for(var Tr=0;Tr<br.length;Tr++){var Ga=br[Tr],wr=Math.round(Ga.time/Se*100)+"%",au=zE(Ga.easing),Ya=Ga.rawValue;if(V(Ya)||se(Ya)){if(Te[wr]=Te[wr]||{},Te[wr][kt]=Ga.rawValue,au)Te[wr][A]=au}}}}}for(var E=0;E<x;E++){var D=_[E],O=D.targetName;if(!O)!i&&C(D,S);else if(O==="shape")C(D,b)}for(var M in S){var L={};Ki(L,t),N(L,S[M]);var B=Bu(L),R=S[M][A];if(T[M]=B?{transform:B}:{},LB(T[M],L),R)T[M][A]=R}var F,z=!0;for(var M in b){T[M]=T[M]||{};var H=!F,R=b[M][A];if(H)F=new yt;var Y=F.len();F.reset(),T[M].d=OB(t,b[M],F);var q=F.len();if(!H&&Y!==q){z=!1;break}if(R)T[M][A]=R}if(!z)for(var M in T)delete T[M].d;if(!i)for(var E=0;E<x;E++){var D=_[E],O=D.targetName;if(O==="style")C(D,T,function(le){return PB[le]})}var Q=re(T),J=!0,j;for(var E=1;E<Q.length;E++){var ce=Q[E-1],ye=Q[E];if(T[ce][Ha]!==T[ye][Ha]){J=!1;break}j=T[ce][Ha]}if(J&&j){for(var M in T)if(T[M][Ha])delete T[M][Ha];e[Ha]=j}if(Oe(Q,function(He){return re(T[He]).length>0}).length){var We=UE(T,r);return We+" "+y[0]+" both"}}for(var m in l){var s=d(l[m]);if(s)o.push(s)}if(o.length){var g=r.zrId+"-cls-"+jp();r.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function VE(t,e,r){if(!t.ignore)if(t.isSilent()){var i={"pointer-events":"none"};FE(i,e,r,!0)}else{var n=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},a=n.fill;if(!a){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0?s||o:o;if(l)a=Cs(l)}var u=n.lineWidth;if(u){var f=!n.strokeNoScale&&t.transform?t.transform[0]:1;u=u/f}var i={cursor:"pointer"};if(a)i.fill=a;if(n.stroke)i.stroke=n.stroke;if(u)i["stroke-width"]=u;FE(i,e,r,!0)}}function FE(t,e,r,i){var n=JSON.stringify(t),a=r.cssStyleCache[n];if(!a)a=r.zrId+"-cls-"+jp(),r.cssStyleCache[n]=a,r.cssNodes["."+a+(i?":hover":"")]=t;e.class=e.class?e.class+" "+a:a}var ru=Math.round;function WE(t){return t&&V(t.src)}function XE(t){return t&&X(t.toDataURL)}function ty(t,e,r,i){$g(function(n,a){var o=n==="fill"||n==="stroke";if(o&&Ru(a))ay(e,t,n,i);else if(o&&As(a))oy(r,t,n,i);else t[n]=a;if(o&&i.ssr&&a==="none")t["pointer-events"]="visible"},e,r,!1),FB(r,t,i)}function ry(t,e){var r=Y0(e);if(r){if(r.each(function(i,n){i!=null&&(t[(Jg+n).toLowerCase()]=i+"")}),e.isSilent())t[Jg+"silent"]="true"}}function HE(t){return Xr(t[0]-1)&&Xr(t[1])&&Xr(t[2])&&Xr(t[3]-1)}function NB(t){return Xr(t[4])&&Xr(t[5])}function iy(t,e,r){if(e&&!(NB(e)&&HE(e))){var i=r?10:1e4;t.transform=HE(e)?"translate("+ru(e[4]*i)/i+" "+ru(e[5]*i)/i+")":h0(e)}}function GE(t,e,r){var i=t.points,n=[];for(var a=0;a<i.length;a++)n.push(ru(i[a][0]*r)/r),n.push(ru(i[a][1]*r)/r);e.points=n.join(" ")}function YE(t){return!t.smooth}function RB(t){var e=U(t,function(r){return typeof r==="string"?[r,r]:r});return function(r,i,n){for(var a=0;a<e.length;a++){var o=e[a],s=r[o[0]];if(s!=null)i[o[1]]=ru(s*n)/n}}}var kB={circle:[RB(["cx","cy","r"])],polyline:[GE,YE],polygon:[GE,YE]};function BB(t){var e=t.animators;for(var r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function qE(t,e){var{style:r,shape:i}=t,n=kB[t.type],a={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&ku(t)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](i))&&!(o&&BB(t))&&!(l<1)){s=t.type;var f=Math.pow(10,u);n[0](i,a,f)}else{var c=!t.path||t.shapeChanged();if(!t.path)t.createPathProxy();var p=t.path;if(c)p.beginPath(),t.buildPath(p,t.shape),t.pathUpdated();var h=p.getVersion(),v=t,d=v.__svgPathBuilder;if(v.__svgPathVersion!==h||!d||l!==v.__svgPathStrokePercent){if(!d)d=v.__svgPathBuilder=new Zp;d.reset(u),p.rebuildPath(d,l),d.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=l}a.d=d.getStr()}return iy(a,t.transform),ty(a,r,t,e),ry(a,t),e.animation&&tu(t,a,e),e.emphasis&&VE(t,a,e),je(s,t.id+"",a)}function zB(t,e){var r=t.style,i=r.image;if(i&&!V(i)){if(WE(i))i=i.src;else if(XE(i))i=i.toDataURL()}if(!i)return;var n=r.x||0,a=r.y||0,{width:o,height:s}=r,l={href:i,width:o,height:s};if(n)l.x=n;if(a)l.y=a;return iy(l,t.transform),ty(l,r,t,e),ry(l,t),e.animation&&tu(t,l,e),je("image",t.id+"",l)}function UB(t,e){var r=t.style,i=r.text;if(i!=null&&(i+=""),!i||isNaN(r.x)||isNaN(r.y))return;var n=r.font||Bt,a=r.x||0,o=d0(r.y||0,Xn(n),r.textBaseline),s=v0[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Nv(r)){var u="",f=r.fontStyle,c=Iv(r.fontSize);if(!parseFloat(c))return;var p=r.fontFamily||ih,h=r.fontWeight;if(u+="font-size:"+c+";font-family:"+p+";",f&&f!=="normal")u+="font-style:"+f+";";if(h&&h!=="normal")u+="font-weight:"+h+";";l.style=u}else l.style="font: "+n;if(i.match(/\s/))l["xml:space"]="preserve";if(a)l.x=a;if(o)l.y=o;return iy(l,t.transform),ty(l,r,t,e),ry(l,t),e.animation&&tu(t,l,e),je("text",t.id+"",l,void 0,i)}function ny(t,e){if(t instanceof ie)return qE(t,e);else if(t instanceof _t)return zB(t,e);else if(t instanceof oa)return UB(t,e)}function FB(t,e,r){var i=t.style;if(m0(i)){var n=g0(t),a=r.shadowCache,o=a[n];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=i.shadowOffsetX||0,c=i.shadowOffsetY||0,p=i.shadowBlur,h=Zi(i.shadowColor),{opacity:v,color:d}=h,m=p/2/l,g=p/2/u,y=m+" "+g;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=je("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[je("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:y,"flood-color":d,"flood-opacity":v})]),a[n]=o}e.filter=Es(o)}}function ay(t,e,r,i){var n=t[r],a,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(Iu(n))a="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(Nu(n))a="radialGradient",o.cx=G(n.x,0.5),o.cy=G(n.y,0.5),o.r=G(n.r,0.5);else{jt("Illegal gradient type.");return}var s=n.colorStops,l=[];for(var u=0,f=s.length;u<f;++u){var c=Pu(s[u].offset)*100+"%",p=s[u].color,h=Zi(p),{color:v,opacity:d}=h,m={offset:c};if(m["stop-color"]=v,d<1)m["stop-opacity"]=d;l.push(je("stop",u+"",m))}var g=je(a,"",o,l),y=Jl(g),_=i.gradientCache,x=_[y];if(!x)x=i.zrId+"-g"+i.gradientIdx++,_[y]=x,o.id=x,i.defs[x]=je(a,x,o,l);e[r]=Es(x)}function oy(t,e,r,i){var n=t.style[r],a=t.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(Ih(n)){var{imageWidth:p,imageHeight:h}=n,v=void 0,d=n.image;if(V(d))v=d;else if(WE(d))v=d.src;else if(XE(d))v=d.toDataURL();if(typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";I(p,m),I(h,m)}else if(p==null||h==null){var g=function(E,D){if(E){var O=E.elm,M=p||D.width,L=h||D.height;if(E.tag==="pattern"){if(u)L=1,M/=a.width;else if(f)M=1,L/=a.height}if(E.attrs.width=M,E.attrs.height=L,O)O.setAttribute("width",M),O.setAttribute("height",L)}},y=Hs(v,null,t,function(E){l||g(b,E),g(c,E)});if(y&&y.width&&y.height)p=p||y.width,h=h||y.height}c=je("image","img",{href:v,width:p,height:h}),o.width=p,o.height=h}else if(n.svgElement)c=te(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight;if(!c)return;var _,x;if(l)_=x=1;else if(u)x=1,_=o.width/a.width;else if(f)_=1,x=o.height/a.height;else o.patternUnits="userSpaceOnUse";if(_!=null&&!isNaN(_))o.width=_;if(x!=null&&!isNaN(x))o.height=x;var S=Bu(n);S&&(o.patternTransform=S);var b=je("pattern","",o,[c]),T=Jl(b),A=i.patternCache,C=A[T];if(!C)C=i.zrId+"-p"+i.patternIdx++,A[T]=C,o.id=C,b=i.defs[C]=je("pattern",C,o,[c]);e[r]=Es(C)}function ZE(t,e,r){var{clipPathCache:i,defs:n}=r,a=i[t.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};i[t.id]=a,n[a]=je("clipPath",a,o,[qE(t,r)])}e["clip-path"]=Es(a)}function sy(t){return document.createTextNode(t)}function Pn(t,e,r){t.insertBefore(e,r)}function ly(t,e){t.removeChild(e)}function uy(t,e){t.appendChild(e)}function fy(t){return t.parentNode}function cy(t){return t.nextSibling}function $p(t,e){t.textContent=e}var KE=58,HB=120,GB=je("","");function py(t){return t===void 0}function ci(t){return t!==void 0}function YB(t,e,r){var i={};for(var n=e;n<=r;++n){var a=t[n].key;if(a!==void 0){if(i[a]!=null)console.error("Duplicate key "+a);i[a]=n}}return i}function iu(t,e){var r=t.key===e.key,i=t.tag===e.tag;return i&&r}function nu(t){var e,{children:r,tag:i}=t;if(ci(i)){var n=t.elm=Kp(i);if(Jp(GB,t),k(r))for(e=0;e<r.length;++e){var a=r[e];if(a!=null)uy(n,nu(a))}else if(ci(t.text)&&!W(t.text))uy(n,sy(t.text))}else t.elm=sy(t.text);return t.elm}function jE(t,e,r,i,n){for(;i<=n;++i){var a=r[i];if(a!=null)Pn(t,nu(a),e)}}function Qp(t,e,r,i){for(;r<=i;++r){var n=e[r];if(n!=null)if(ci(n.tag)){var a=fy(n.elm);ly(a,n.elm)}else ly(t,n.elm)}}function Jp(t,e){var r,i=e.elm,n=t&&t.attrs||{},a=e.attrs||{};if(n===a)return;for(r in a){var o=a[r],s=n[r];if(s!==o)if(o===!0)i.setAttribute(r,"");else if(o===!1)i.removeAttribute(r);else if(r==="style")i.style.cssText=o;else if(r.charCodeAt(0)!==HB)i.setAttribute(r,o);else if(r==="xmlns:xlink"||r==="xmlns")i.setAttributeNS(NE,r,o);else if(r.charCodeAt(3)===KE)i.setAttributeNS(RE,r,o);else if(r.charCodeAt(5)===KE)i.setAttributeNS(Qg,r,o);else i.setAttribute(r,o)}for(r in n)if(!(r in a))i.removeAttribute(r)}function WB(t,e,r){var i=0,n=0,a=e.length-1,o=e[0],s=e[a],l=r.length-1,u=r[0],f=r[l],c,p,h,v;while(i<=a&&n<=l)if(o==null)o=e[++i];else if(s==null)s=e[--a];else if(u==null)u=r[++n];else if(f==null)f=r[--l];else if(iu(o,u))ps(o,u),o=e[++i],u=r[++n];else if(iu(s,f))ps(s,f),s=e[--a],f=r[--l];else if(iu(o,f))ps(o,f),Pn(t,o.elm,cy(s.elm)),o=e[++i],f=r[--l];else if(iu(s,u))ps(s,u),Pn(t,s.elm,o.elm),s=e[--a],u=r[++n];else{if(py(c))c=YB(e,i,a);if(p=c[u.key],py(p))Pn(t,nu(u),o.elm);else if(h=e[p],h.tag!==u.tag)Pn(t,nu(u),o.elm);else ps(h,u),e[p]=void 0,Pn(t,h.elm,o.elm);u=r[++n]}if(i<=a||n<=l)if(i>a)v=r[l+1]==null?null:r[l+1].elm,jE(t,v,r,n,l);else Qp(t,e,i,a)}function ps(t,e){var r=e.elm=t.elm,i=t.children,n=e.children;if(t===e)return;if(Jp(t,e),py(e.text)){if(ci(i)&&ci(n)){if(i!==n)WB(r,i,n)}else if(ci(n)){if(ci(t.text))$p(r,"");jE(r,null,n,0,n.length-1)}else if(ci(i))Qp(r,i,0,i.length-1);else if(ci(t.text))$p(r,"")}else if(t.text!==e.text){if(ci(i))Qp(r,i,0,i.length-1);$p(r,e.text)}}function hy(t,e){if(iu(t,e))ps(t,e);else{var r=t.elm,i=fy(r);if(nu(e),i!==null)Pn(i,e.elm,cy(r)),Qp(i,[t],0,0)}return e}var XB=0,qB=function(){function t(e,r,i){if(this.type="svg",this.configLayer=ZB("configLayer"),this.storage=r,this._opts=i=N({},i),this.root=e,this._id="zr"+XB++,this._oldVNode=ey(i.width,i.height),e&&!i.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=Kp("svg");Jp(null,this._oldVNode),n.appendChild(a),e.appendChild(n)}this.resize(i.width,i.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",hy(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return ny(e,eu(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),i=this._width,n=this._height,a=eu(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=KB(i,n,this._backgroundColor,a);s&&o.push(s);var l=!e.compress?this._mainVNode=je("g","main",{},[]):null;this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=U(re(a.defs),function(p){return a.defs[p]});if(u.length)o.push(je("defs","defs",{},u));if(e.animation){var f=kE(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=je("style","stl",{},[],f);o.push(c)}}return ey(i,n,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},Jl(this.renderToVNode({animation:G(e.cssAnimation,!0),emphasis:G(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:G(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,i){var n=e.length,a=[],o=0,s,l,u=0;for(var f=0;f<n;f++){var c=e[f];if(!c.invisible){var p=c.__clipPaths,h=p&&p.length||0,v=l&&l.length||0,d=void 0;for(d=Math.max(h-1,v-1);d>=0;d--)if(p&&l&&p[d]===l[d])break;for(var m=v-1;m>d;m--)o--,s=a[o-1];for(var g=d+1;g<h;g++){var y={};ZE(p[g],y,r);var _=je("g","clip-g-"+u++,y,[]);(s?s.children:i).push(_),a[o++]=_,s=_}l=p;var x=ny(c,r);if(x)(s?s.children:i).push(x)}}},t.prototype.resize=function(e,r){var i=this._opts,n=this.root,a=this._viewport;if(e!=null&&(i.width=e),r!=null&&(i.height=r),n&&a)a.style.display="none",e=rm(n,0,i),r=rm(n,1,i),a.style.display="";if(this._width!==e||this._height!==r){if(this._width=e,this._height=r,a){var o=a.style;o.width=e+"px",o.height=r+"px"}if(!As(this._backgroundColor)){var s=this._svgDom;if(s)s.setAttribute("width",e),s.setAttribute("height",r);var l=this._bgVNode&&this._bgVNode.elm;if(l)l.setAttribute("width",e),l.setAttribute("height",r)}else this.refresh()}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){if(this.root)this.root.innerHTML="";this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){if(this._svgDom)this._svgDom.innerHTML=null;this._oldVNode=null},t.prototype.toDataURL=function(e){var r=this.renderToString(),i="data:image/svg+xml;";if(e)return r=y0(r),r&&i+"base64,"+r;return i+"charset=UTF-8,"+encodeURIComponent(r)},t}();function ZB(t){return function(){jt('In SVG mode painter not support method "'+t+'"')}}function KB(t,e,r,i){var n;if(r&&r!=="none")if(n=je("rect","bg",{width:t,height:e,x:"0",y:"0"}),Ru(r))ay({fill:r},n.attrs,"fill",i);else if(As(r))oy({style:{fill:r},dirty:Pe,getBoundingRect:function(){return{width:t,height:e}}},n.attrs,"fill",i);else{var a=Zi(r),{color:o,opacity:s}=a;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}var $E=qB;function vy(t){t.registerPainter("svg",$E)}var QE=new Map;function eh(t,e="number",r="auto",i=!1){let n=`${e}:${r}:${i}`,a=QE.get(n);if(!a){let o={maximumFractionDigits:2,signDisplay:r};if(e==="percent")Object.assign(o,{style:"percent",maximumFractionDigits:1});if(e.startsWith("currency:"))Object.assign(o,{style:"currency",currency:e.slice(9),minimumFractionDigits:2,maximumFractionDigits:2,trailingZeroDisplay:"stripIfInteger"});if(i&&e==="number")Object.assign(o,{notation:"compact",maximumFractionDigits:1});a=new Intl.NumberFormat("en-GB",o),QE.set(n,a)}return a.format(t)+(e==="percentage-points"?" pt":"")}function JE(t,e=!1){return new Intl.DateTimeFormat("en-GB",{timeZone:"UTC",month:"short",...e?{day:"numeric",year:"numeric"}:{}}).format(t)}Ni([sg,jm,vg,Ng,zg,Wg,qg,vy]);var jB=document.getElementById("plotleaf-data"),$B=JSON.parse(jB?.textContent??'{"charts":[]}'),QB=window.matchMedia("(prefers-color-scheme: dark)"),hs=[];function eD(t){let e=getComputedStyle(document.documentElement),r=(l)=>e.getPropertyValue(`--${l}`).trim();if(t.kind==="donut")return{animation:!1,color:Array.from({length:8},(l,u)=>r(`slice-${u+1}`)),textStyle:{fontFamily:e.fontFamily,fontSize:12},aria:{enabled:!0,label:{description:`${t.title}. Values and shares are available in the adjacent legend and data table.`}},tooltip:{trigger:"item",renderMode:"richText",confine:!0,backgroundColor:r("tooltip"),borderColor:r("rule"),borderWidth:1,textStyle:{color:r("ink"),fontFamily:e.fontFamily,fontSize:13},valueFormatter:(l)=>typeof l==="number"?eh(l,t.format):"—"},series:[{type:"pie",radius:["58%","88%"],center:["50%","50%"],clockwise:!0,startAngle:90,stillShowZeroSum:!1,label:{show:!1},labelLine:{show:!1},itemStyle:{borderColor:r("page"),borderWidth:2,borderRadius:2},emphasis:{scale:!1,itemStyle:{opacity:0.8}},data:t.rows.map(([l,u])=>({name:l,value:u}))}]};let i=t.xType==="date",n=t.xType==="category",a=i?Number(t.rows.at(-1)?.[0])-Number(t.rows[0]?.[0]):0,o=(l)=>new Intl.DateTimeFormat("en-GB",{timeZone:"UTC",month:"short",...a<7776000000?{day:"numeric"}:{},...a>31536000000?{year:"numeric"}:{}}).format(l),s=(l)=>eh(l,t.format,"auto",!0);return{animation:!1,useUTC:!0,color:[r("series")],textStyle:{fontFamily:e.fontFamily,fontSize:12},aria:{enabled:!0,label:{description:`${t.title}. A data table follows this chart.`}},grid:{top:14,right:14,bottom:34,left:54,containLabel:!1},tooltip:{trigger:"axis",renderMode:"richText",confine:!0,backgroundColor:r("tooltip"),borderColor:r("rule"),borderWidth:1,textStyle:{color:r("ink"),fontFamily:e.fontFamily,fontSize:13},valueFormatter:(l)=>{let u=Array.isArray(l)?l[1]:l;return typeof u==="number"?eh(u,t.format):"—"},axisPointer:{type:"line",lineStyle:{color:r("rule"),width:1},label:{formatter:(l)=>i?JE(Number(l.value),!0):String(l.value)}}},xAxis:{type:n?"category":i?"time":"value",...n?{data:t.rows.map((l)=>l[0])}:{},boundaryGap:n?t.kind==="bar":["0%","0%"],...i?{minInterval:(a<7776000000?1:31)*86400000,splitNumber:5}:{},axisLine:{show:!0,lineStyle:{color:r("rule")}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{color:r("muted"),margin:16,hideOverlap:!0,...i?{formatter:o}:{width:140,overflow:"truncate"}}},yAxis:{type:"value",min:(l)=>Math.min(0,l.min,t.target??0),splitNumber:3,axisLabel:{color:r("muted"),margin:14,formatter:s},axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1},...t.target!==void 0?{max:(l)=>Math.max(0,l.max,t.target)*1.12}:{}},series:[{type:t.kind==="bar"?"bar":"line",name:t.y,data:n?t.rows.map((l)=>l[1]):t.rows,showSymbol:!1,smooth:!1,connectNulls:!1,lineStyle:{color:r("series"),width:2.25},itemStyle:{color:r("series"),...t.kind==="bar"?{borderRadius:[3,3,0,0]}:{}},barMaxWidth:48,...t.kind==="area"?{areaStyle:{color:new Do(0,0,0,1,[{offset:0,color:r("series-fill")},{offset:1,color:r("series-fill-end")}])}}:{},...t.target!==void 0?{markLine:{silent:!0,symbol:"none",animation:!1,lineStyle:{color:r("target"),width:1.25,type:"dashed"},label:{show:!0,position:"insideEndTop",color:r("body"),backgroundColor:r("page"),borderColor:r("rule"),borderWidth:1,borderRadius:5,padding:[5,8],formatter:`${t.targetLabel??"Target"} · ${s(t.target)}`},data:[{yAxis:t.target}]}}:{}}]}}function tD(){for(let t=hs.length-1;t>=0;t--){let e=hs[t];if(e.chart.getDom().closest("[hidden]"))e.observer.disconnect(),e.chart.dispose(),hs.splice(t,1)}for(let t of $B.charts){let e=document.getElementById(t.id);if(!e||e.closest("[hidden]"))continue;let r=hs.find((a)=>a.data.id===t.id);if(r){r.chart.resize();continue}let i=f1(e,void 0,{renderer:"svg"});i.setOption(eD(t));let n=new ResizeObserver(()=>i.resize());n.observe(e),hs.push({chart:i,data:t,observer:n})}}tD();document.addEventListener("plotleaf:viewchange",tD);QB.addEventListener("change",()=>{for(let{chart:t,data:e}of hs)t.setOption(eD(e),{notMerge:!0})});})();
|