@ovalbee/reportifact 0.0.3 → 0.0.4
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 +1 -1
- package/dist/Chart-Cmh3H_Wv.js +5634 -0
- package/dist/Chart-jF5jqxGZ.cjs +1 -0
- package/dist/ImageGallery-CPZM1tc_.cjs +1 -0
- package/dist/ImageGallery-DQzba-4p.js +163 -0
- package/dist/MetricCallout-C7SUQTrj.js +39 -0
- package/dist/MetricCallout-CxhVOiqg.cjs +1 -0
- package/dist/MetricCards-DW-_QLhI.cjs +1 -0
- package/dist/MetricCards-JR4hUW4_.js +61 -0
- package/dist/MetricsTable-CH8vIbWG.cjs +1 -0
- package/dist/MetricsTable-OXsVygq0.js +98 -0
- package/dist/Reportifact.vue.d.ts +3 -2
- package/dist/ReportifactWidgetHost-DIlz4TxO.js +13 -0
- package/dist/ReportifactWidgetHost-xDT1ykZc.cjs +1 -0
- package/dist/Timeline-DSGSvRjj.js +295 -0
- package/dist/Timeline-P3CpGmBD.cjs +1 -0
- package/dist/WidgetWrapper-AmnP99H8.js +62 -0
- package/dist/WidgetWrapper-C0lc1m0V.cjs +1 -0
- package/dist/components/TableOfContents.vue.d.ts +3 -4
- package/dist/dist-DBIuOmpr.cjs +27 -0
- package/dist/dist-DEKe39T1.js +23629 -0
- package/dist/markdownTable-BCLRoyPL.cjs +2 -0
- package/dist/markdownTable-DHdS_81b.js +40 -0
- package/dist/middleware.cjs +1 -1
- package/dist/middleware.js +146 -175
- package/dist/portable/ReportifactWidgetHost.vue.d.ts +7 -11
- package/dist/portable/usePortableSource.d.ts +18 -0
- package/dist/reportifact.cjs +63 -64
- package/dist/reportifact.d.ts +1 -1
- package/dist/reportifact.js +4909 -5228
- package/dist/rolldown-runtime-DF3sbh8G.cjs +1 -0
- package/dist/style.css +2 -13
- package/dist/usePortableSource--y_qMDXB.js +55 -0
- package/dist/usePortableSource-CN5URH4d.cjs +1 -0
- package/dist/utils/tfeventsParser.cjs +1 -1
- package/dist/utils/tfeventsParser.js +298 -327
- package/dist/widgets/Card.vue.d.ts +2 -1
- package/dist/widgets/Chart.vue.d.ts +9 -14
- package/dist/widgets/HelpTooltip.vue.d.ts +2 -1
- package/dist/widgets/ImageGallery.vue.d.ts +9 -15
- package/dist/widgets/Markdown.vue.d.ts +3 -2
- package/dist/widgets/MetricCallout.vue.d.ts +7 -13
- package/dist/widgets/MetricCards.vue.d.ts +7 -10
- package/dist/widgets/MetricTable.vue.d.ts +2 -1
- package/dist/widgets/MetricsTable.vue.d.ts +9 -14
- package/dist/widgets/ModelClassComparison.vue.d.ts +3 -2
- package/dist/widgets/ModelComparisonGallery.vue.d.ts +3 -2
- package/dist/widgets/Notice.vue.d.ts +2 -1
- package/dist/widgets/ReportifactWidget.vue.d.ts +3 -4
- package/dist/widgets/Scope.vue.d.ts +2 -3
- package/dist/widgets/Table.vue.d.ts +3 -2
- package/dist/widgets/Tensorboard.vue.d.ts +3 -2
- package/dist/widgets/Timeline.vue.d.ts +9 -14
- package/dist/widgets/WidgetWrapper.vue.d.ts +18 -20
- package/dist/widgets/chart-config/range.d.ts +2 -0
- package/dist/widgets/chart-config/shared.d.ts +25 -0
- package/dist/widgets/chart-config/types.d.ts +12 -3
- package/dist/widgets/chart.cjs +1 -1
- package/dist/widgets/chart.d.ts +3 -3
- package/dist/widgets/chart.js +2 -5
- package/dist/widgets/chartSizing.d.ts +10 -0
- package/dist/widgets/contracts.cjs +1 -1
- package/dist/widgets/contracts.d.ts +1 -1
- package/dist/widgets/contracts.js +0 -1
- package/dist/widgets/host.cjs +1 -1
- package/dist/widgets/host.d.ts +3 -3
- package/dist/widgets/host.js +2 -5
- package/dist/widgets/image-gallery.cjs +1 -1
- package/dist/widgets/image-gallery.d.ts +3 -3
- package/dist/widgets/image-gallery.js +2 -5
- package/dist/widgets/markdownTable.d.ts +1 -1
- package/dist/widgets/metric-callout.cjs +1 -1
- package/dist/widgets/metric-callout.d.ts +3 -3
- package/dist/widgets/metric-callout.js +2 -5
- package/dist/widgets/metric-cards.cjs +1 -1
- package/dist/widgets/metric-cards.d.ts +3 -3
- package/dist/widgets/metric-cards.js +2 -5
- package/dist/widgets/metrics-table.cjs +1 -1
- package/dist/widgets/metrics-table.d.ts +3 -3
- package/dist/widgets/metrics-table.js +2 -5
- package/dist/widgets/timeline.cjs +1 -1
- package/dist/widgets/timeline.d.ts +3 -3
- package/dist/widgets/timeline.js +2 -5
- package/package.json +5 -5
- package/dist/Chart.vue_vue_type_style_index_0_lang-Bxrsp8Oz.js +0 -5956
- package/dist/Chart.vue_vue_type_style_index_0_lang-mN1IaQ_U.cjs +0 -1
- package/dist/ImageGallery.vue_vue_type_style_index_0_lang-Ak_OUL_c.js +0 -197
- package/dist/ImageGallery.vue_vue_type_style_index_0_lang-Ch0UPxhs.cjs +0 -1
- package/dist/MetricCallout.vue_vue_type_style_index_0_lang-ANFFq7CE.js +0 -62
- package/dist/MetricCallout.vue_vue_type_style_index_0_lang-CT9lFI28.cjs +0 -1
- package/dist/MetricCards.vue_vue_type_style_index_0_lang-1hn2BMbU.js +0 -46
- package/dist/MetricCards.vue_vue_type_style_index_0_lang-BDU7pisC.cjs +0 -1
- package/dist/MetricsTable.vue_vue_type_style_index_0_lang-BfxK3vcz.js +0 -140
- package/dist/MetricsTable.vue_vue_type_style_index_0_lang-CS7xiHRk.cjs +0 -1
- package/dist/ReportifactWidgetHost-A73gQ3bT.cjs +0 -1
- package/dist/ReportifactWidgetHost-BjKBwCWI.js +0 -17
- package/dist/Timeline.vue_vue_type_style_index_0_lang-EmkZbKjQ.js +0 -2646
- package/dist/Timeline.vue_vue_type_style_index_0_lang-HOC43_F3.cjs +0 -2
- package/dist/WidgetWrapper.vue_vue_type_style_index_0_lang-BY2t_Hvs.cjs +0 -1
- package/dist/WidgetWrapper.vue_vue_type_style_index_0_lang-BbnW8GXT.js +0 -72
- package/dist/index-3DTuh2Dr.cjs +0 -47
- package/dist/index-DevYhXSC.js +0 -22104
- package/dist/markdownTable-B5207r3E.js +0 -32
- package/dist/markdownTable-Cbn1Du3L.cjs +0 -2
- package/dist/useFetch-BfOAq-Kg.cjs +0 -1
- package/dist/useFetch-CHQm_TmB.js +0 -35
package/dist/index-3DTuh2Dr.cjs
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";var RS=Object.defineProperty;var kS=(t,e,r)=>e in t?RS(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Jh=(t,e,r)=>kS(t,typeof e!="symbol"?e+"":e,r);const ie=require("vue");/*! *****************************************************************************
|
|
2
|
-
Copyright (c) Microsoft Corporation.
|
|
3
|
-
|
|
4
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
-
purpose with or without fee is hereby granted.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */var ff=function(t,e){return ff=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ff(t,e)};function z(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ff(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var BS=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),FS=(function(){function t(){this.browser=new BS,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})(),te=new FS;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(te.wxa=!0,te.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?te.worker=!0:!te.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(te.node=!0,te.svgSupported=!0):VS(navigator.userAgent,te);function VS(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var u=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in u||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in u)&&!("OTransition"in u),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var Ac=12,zS="sans-serif",kr=Ac+"px "+zS,HS=20,GS=100,US="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function WS(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),i=(t.charCodeAt(r)-HS)/GS;e[n]=i}return e}var YS=WS(US),ot={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,n){if(!t){var i=ot.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||kr),t.measureText(r);r=r||"",n=n||kr;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||Ac,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=YS[r[u]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n},getTime:function(){return Date.now?Date.now():+new Date}},zg=pr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Hg=pr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Ni=Object.prototype.toString,ru=Array.prototype,XS=ru.forEach,ZS=ru.filter,Lc=ru.slice,$S=ru.map,ev=(function(){}).constructor,ro=ev?ev.prototype:null,Oc="__proto__",Fu=2311,qS=Math.pow(2,53)-1;function Gg(){return Fu>=qS&&(Fu=0),Fu++}function Tn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function ae(t){if(t==null||typeof t!="object")return t;var e=t,r=Ni.call(t);if(r==="[object Array]"){if(!_a(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=ae(t[n])}}else if(Hg[r]){if(!_a(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}}}else if(!zg[r]&&!_a(t)&&!xi(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==Oc&&(e[o]=ae(t[o]))}return e}function de(t,e,r){if(!W(e)||!W(t))return r?ae(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==Oc){var i=t[n],a=e[n];W(a)&&W(i)&&!F(a)&&!F(i)&&!xi(a)&&!xi(i)&&!tv(a)&&!tv(i)&&!_a(a)&&!_a(i)?de(i,a,r):(r||!(n in t))&&(t[n]=ae(e[n]))}return t}function k(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==Oc&&(t[r]=e[r]);return t}function KS(t,e,r){t=t||{};for(var n=0;n<r.length;n++){var i=r[n];t[i]=e[i]}return t}function ge(t,e,r){for(var n=Se(e),i=0,a=n.length;i<a;i++){var o=n[i];t[o]==null&&(t[o]=e[o])}return t}function he(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function QS(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function Ft(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&t[a]==null&&(t[a]=e[a])}else ge(t,e)}function Je(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function b(t,e,r){if(t&&e)if(t.forEach&&t.forEach===XS)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function q(t,e,r){if(!t)return[];if(!e)return Ic(t);if(t.map&&t.map===$S)return t.map(e,r);for(var n=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));return n}function pr(t,e,r,n){if(t&&e){for(var i=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);return r}}function Fe(t,e,r){if(!t)return[];if(!e)return Ic(t);if(t.filter&&t.filter===ZS)return t.filter(e,r);for(var n=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);return n}function Ug(t,e,r){if(t&&e){for(var n=0,i=t.length;n<i;n++)if(e.call(r,t[n],n,t))return t[n]}}function Se(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function jS(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(Lc.call(arguments)))}}var Te=ro&&J(ro.bind)?ro.call.bind(ro.bind):jS;function Ie(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(Lc.call(arguments)))}}function F(t){return Array.isArray?Array.isArray(t):Ni.call(t)==="[object Array]"}function J(t){return typeof t=="function"}function H(t){return typeof t=="string"}function us(t){return Ni.call(t)==="[object String]"}function Ce(t){return typeof t=="number"}function W(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function tv(t){return!!zg[Ni.call(t)]}function et(t){return!!Hg[Ni.call(t)]}function xi(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function nu(t){return t.colorStops!=null}function JS(t){return t.image!=null}function e1(t){return Ni.call(t)==="[object RegExp]"}function An(t){return t!==t}function Ln(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function U(t,e){return t??e}function fr(t,e,r){return t??e??r}function Ic(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return Lc.apply(t,e)}function Pc(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function P(t,e){if(!t)throw new Error(e)}function qt(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Wg="__ec_primitive__";function cf(t){t[Wg]=!0}function _a(t){return t[Wg]}var t1=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return Se(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t})(),Yg=typeof Map=="function";function r1(){return Yg?new Map:new t1}var n1=(function(){function t(e){var r=F(e);this.data=r1();var n=this;e instanceof t?e.each(i):e&&b(e,i);function i(a,o){r?n.set(a,o):n.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(n,i){e.call(r,n,i)})},t.prototype.keys=function(){var e=this.data.keys();return Yg?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function Z(t){return new n1(t)}function i1(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var i=t.length,n=0;n<e.length;n++)r[n+i]=e[n];return r}function iu(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&k(r,e),r}function Xg(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function B(t,e){return t.hasOwnProperty(e)}function Ve(){}var a1=180/Math.PI;function Ri(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function o1(t,e){return t[0]=e[0],t[1]=e[1],t}function s1(t){return[t[0],t[1]]}function Vu(t,e,r){return t[0]=e,t[1]=r,t}function rv(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function u1(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function l1(t){return Math.sqrt(f1(t))}function f1(t){return t[0]*t[0]+t[1]*t[1]}function zu(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function c1(t,e){var r=l1(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function hf(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Zg=hf;function h1(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var pi=h1;function v1(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function ht(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function ui(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function li(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var Gn=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),d1=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Gn(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,e),this.handler.dispatchToElement(new Gn(r,e),"drag",e.event);var s=this.handler.findHover(n,i,r).target,u=this._dropTarget;this._dropTarget=s,r!==s&&(u&&s!==u&&this.handler.dispatchToElement(new Gn(u,e),"dragleave",e.event),s&&s!==u&&this.handler.dispatchToElement(new Gn(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Gn(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Gn(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),Vt=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var u={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=a[e].length-1,f=a[e][l];return f&&f.callAtLast?a[e].splice(l,0,u):a[e].push(u),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==r&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,u=0;u<s;u++){var l=i[u];if(!(a&&a.filter&&l.query!=null&&!a.filter(e,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,r[0]);break;case 2:l.h.call(l.ctx,r[0],r[1]);break;default:l.h.apply(l.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],u=i.length,l=0;l<u;l++){var f=i[l];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),p1=Math.log(2);function vf(t,e,r,n,i,a){var o=n+"-"+i,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var u=Math.round(Math.log((1<<s)-1&~i)/p1);return t[r][u]}for(var l=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,h=0,v=0;h<s;h++){var d=1<<h;d&i||(c+=(v%2?-1:1)*t[r][h]*vf(t,e-1,f,l,i|d,a),v++)}return a[o]=c,c}function nv(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]]],n={},i=vf(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*vf(r,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(u,l,f){var c=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/c,u[1]=(l*a[3]+f*a[4]+a[5])/c}}}var ls="___zrEVENTSAVED",Hu=[];function g1(t,e,r,n,i){return df(Hu,e,n,i,!0)&&df(t,r,Hu[0],Hu[1])}function m1(t,e){t&&r(t),e&&r(e);function r(n){var i=n[ls];i&&(i.clearMarkers&&i.clearMarkers(),delete n[ls])}}function df(t,e,r,n,i){if(e.getBoundingClientRect&&te.domSupported&&!$g(e)){var a=e[ls]||(e[ls]={}),o=y1(e,a),s=_1(o,a,i);if(s)return s(t,r,n),!0}return!1}function y1(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,u=a%2,l=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[u]+":0",i[l]+":0",n[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){b(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function _1(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=t[l].getBoundingClientRect(),c=2*l,h=f.left,v=f.top;o.push(h,v),u=u&&a&&h===a[c]&&v===a[c+1],s.push(t[l].offsetLeft,t[l].offsetTop)}return u&&i?i:(e.srcCoords=o,e[n]=r?nv(s,o):nv(o,s))}function $g(t){return t.nodeName.toUpperCase()==="CANVAS"}var S1=/([&<>"'])/g,x1={"&":"&","<":"<",">":">",'"':""","'":"'"};function nt(t){return t==null?"":(t+"").replace(S1,function(e,r){return x1[r]})}var w1=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Gu=[],T1=te.browser.firefox&&+te.browser.version.split(".")[0]<39;function pf(t,e,r,n){return r=r||{},n?iv(t,e,r):T1&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):iv(t,e,r),r}function iv(t,e,r){if(te.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if($g(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(df(Gu,t,n,i)){r.zrX=Gu[0],r.zrY=Gu[1];return}}r.zrX=r.zrY=0}function Nc(t){return t||window.event}function St(t,e,r){if(e=Nc(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&pf(t,o,e,r)}else{pf(t,e,e,r);var a=b1(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&w1.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function b1(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function C1(t,e,r,n){t.addEventListener(e,r,n)}function D1(t,e,r,n){t.removeEventListener(e,r,n)}var Rc=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function E1(t){return t.which===2||t.which===3}var M1=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o<s;o++){var u=i[o],l=pf(n,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in Uu)if(Uu.hasOwnProperty(r)){var n=Uu[r](this._track,e);if(n)return n}},t})();function av(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function A1(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Uu={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=av(n)/av(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=A1(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function Nt(){return[1,0,0,1,0,0]}function Ya(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function kc(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 Sa(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=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],u=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t}function gf(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 Bc(t,e,r,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],u=e[3],l=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=i*c+s*f,t[1]=-i*f+s*c,t[2]=a*c+u*f,t[3]=-a*f+c*u,t[4]=c*(o-n[0])+f*(l-n[1])+n[0],t[5]=c*(l-n[1])-f*(o-n[0])+n[1],t}function L1(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function Xa(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],u=r*o-a*n;return u?(u=1/u,t[0]=o*u,t[1]=-a*u,t[2]=-n*u,t[3]=r*u,t[4]=(n*s-o*i)*u,t[5]=(a*i-r*s)*u,t):null}var me=(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,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+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,n){e.x=r,e.y=n},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,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t})(),_n=Math.min,fi=Math.max,mf=Math.abs,ov=["x","y"],O1=["width","height"],Yr=new me,Xr=new me,Zr=new me,$r=new me,ft=qg(),ca=ft.minTv,yf=ft.maxTv,xa=[0,0],j=(function(){function t(e,r,n,i){Wu(this,e,r,n,i)}return t.set=function(e,r,n,i,a){return i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),e.x=r,e.y=n,e.width=i,e.height=a,e},t.prototype.union=function(e){var r=_n(e.x,this.x),n=_n(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=fi(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=fi(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return P1(Nt(),this,e)},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,i){n&&me.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=Wu(k1,e.x,e.y,e.width,e.height)),r instanceof t||(r=Wu(B1,r.x,r.y,r.width,r.height));var s=!!n;ft.reset(i,s);var u=ft.touchThreshold,l=e.x+u,f=e.x+e.width-u,c=e.y+u,h=e.y+e.height-u,v=r.x+u,d=r.x+r.width-u,g=r.y+u,p=r.y+r.height-u;if(l>f||c>h||v>d||g>p)return!1;var m=!(f<v||d<l||h<g||p<c);return(s||a)&&(xa[0]=1/0,xa[1]=0,sv(l,f,v,d,0,s,a,o),sv(c,h,g,p,1,s,a,o),s&&me.copy(n,m?ft.useDir?ft.dirMinTv:ca:yf)),m},t.contain=function(e,r,n){return r>=e.x&&r<=e.x+e.width&&n>=e.y&&n<=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){_f(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,n){if(!n){e!==r&&_f(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Yr.x=Zr.x=r.x,Yr.y=$r.y=r.y,Xr.x=$r.x=r.x+r.width,Xr.y=Zr.y=r.y+r.height,Yr.transform(n),$r.transform(n),Xr.transform(n),Zr.transform(n),e.x=_n(Yr.x,Xr.x,Zr.x,$r.x),e.y=_n(Yr.y,Xr.y,Zr.y,$r.y);var u=fi(Yr.x,Xr.x,Zr.x,$r.x),l=fi(Yr.y,Xr.y,Zr.y,$r.y);e.width=u-e.x,e.height=l-e.y},t.calculateTransform=function(e,r,n){var i=n.width/r.width,a=n.height/r.height;return e=Ya(e||[]),gf(e,e,Vu(Yu,-r.x,-r.y)),L1(e,e,Vu(Yu,i,a)),gf(e,e,Vu(Yu,n.x,n.y)),e},t})(),I1=j.create,Wu=j.set,_f=j.copy,P1=j.calculateTransform,N1=j.applyTransform,R1=j.contain,k1=new j(0,0,0,0),B1=new j(0,0,0,0),Yu=[];function sv(t,e,r,n,i,a,o,s){var u=mf(e-r),l=mf(n-t),f=_n(u,l),c=ov[i],h=ov[1-i],v=O1[i];e<r||n<t?u<l?(a&&(yf[c]=-u),s&&(o[c]=e,o[v]=0)):(a&&(yf[c]=l),s&&(o[c]=t,o[v]=0)):(o&&(o[c]=fi(t,r),o[v]=_n(e,n)-o[c]),a&&(f<xa[0]||ft.useDir)&&(xa[0]=_n(f,xa[0]),(u<l||!ft.bidirectional)&&(ca[c]=u,ca[h]=0,ft.useDir&&ft.calcDirMTV()),(u>=l||!ft.bidirectional)&&(ca[c]=-l,ca[h]=0,ft.useDir&&ft.calcDirMTV())))}function qg(){var t=0,e=new me,r=new me,n={minTv:new me,maxTv:new me,useDir:!1,dirMinTv:new me,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=fi(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),t=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,u=Math.sin(t),l=Math.cos(t),f=u*a.y+l*a.x;if(i(f)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(r.x=s*l/f,r.y=s*u/f,i(r.x)&&i(r.y)){o.set(0,0);return}(n.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(a){return mf(a)<1e-10}return n}var Kg="silent";function F1(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:V1}}function V1(){Rc(this.event)}var z1=(function(t){z(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Vt),Xi=(function(){function t(e,r){this.x=e,this.y=r}return t})(),H1=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Xu=new j(0,0,0,0),Qg=(function(t){z(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new Xi(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new z1,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new d1(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(b(H1,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=jg(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new Xi(n,i):this.findHover(n,i),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(u,"mousemove",r),l&&l!==s&&this.dispatchToElement(u,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Xi(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=F1(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(n,s)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Xi(r,n);if(uv(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new j(r-l,n-l,u,u),c=a.length-1;c>=0;c--){var h=a[c];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(Xu.copy(h.getBoundingRect()),h.transform&&Xu.applyTransform(h.transform),Xu.intersect(f)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,g=Math.PI*2,p=0;p<l;p+=v)for(var m=0;m<g;m+=d){var y=r+p*Math.cos(m),_=n+p*Math.sin(m);if(uv(s,o,y,_,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new M1);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Xi;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(Vt);b(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Qg.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=jg(this,r,n),a,o;if((t!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||Zg(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function G1(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?Kg:!0}return!1}function uv(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=G1(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==Kg)){e.target=o;break}}}function jg(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var Jg=32,Zi=7;function U1(t){for(var e=0;t>=Jg;)e|=t&1,t>>=1;return t+e}function lv(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i<r&&n(t[i],t[i-1])<0;)i++;W1(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function W1(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function fv(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var a=t[n],o=e,s=n,u;o<s;)u=o+s>>>1,i(a,t[u])<0?s=u:o=u+1;var l=n-o;switch(l){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;l>0;)t[o+l]=t[o+l-1],l--}t[o]=a}}function Zu(t,e,r,n,i,a){var o=0,s=0,u=1;if(a(t,e[r+i])>0){for(s=n-i;u<s&&a(t,e[r+i+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}else{for(s=i+1;u<s&&a(t,e[r+i-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}for(o++;o<u;){var f=o+(u-o>>>1);a(t,e[r+f])>0?o=f+1:u=f}return u}function $u(t,e,r,n,i,a){var o=0,s=0,u=1;if(a(t,e[r+i])<0){for(s=i+1;u<s&&a(t,e[r+i-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}else{for(s=n-i;u<s&&a(t,e[r+i+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}for(o++;o<u;){var f=o+(u-o>>>1);a(t,e[r+f])<0?u=f:o=f+1}return u}function Y1(t,e){var r=Zi,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function u(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;f(v)}}function l(){for(;a>1;){var v=a-2;v>0&&i[v-1]<i[v+1]&&v--,f(v)}}function f(v){var d=n[v],g=i[v],p=n[v+1],m=i[v+1];i[v]=g+m,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var y=$u(t[p],t,d,g,0,e);d+=y,g-=y,g!==0&&(m=Zu(t[d+g-1],t,p,m,m-1,e),m!==0&&(g<=m?c(d,g,p,m):h(d,g,p,m)))}function c(v,d,g,p){var m=0;for(m=0;m<d;m++)o[m]=t[v+m];var y=0,_=g,S=v;if(t[S++]=t[_++],--p===0){for(m=0;m<d;m++)t[S+m]=o[y+m];return}if(d===1){for(m=0;m<p;m++)t[S+m]=t[_+m];t[S+p]=o[y];return}for(var x=r,w,T,C;;){w=0,T=0,C=!1;do if(e(t[_],o[y])<0){if(t[S++]=t[_++],T++,w=0,--p===0){C=!0;break}}else if(t[S++]=o[y++],w++,T=0,--d===1){C=!0;break}while((w|T)<x);if(C)break;do{if(w=$u(t[_],o,y,d,0,e),w!==0){for(m=0;m<w;m++)t[S+m]=o[y+m];if(S+=w,y+=w,d-=w,d<=1){C=!0;break}}if(t[S++]=t[_++],--p===0){C=!0;break}if(T=Zu(o[y],t,_,p,0,e),T!==0){for(m=0;m<T;m++)t[S+m]=t[_+m];if(S+=T,_+=T,p-=T,p===0){C=!0;break}}if(t[S++]=o[y++],--d===1){C=!0;break}x--}while(w>=Zi||T>=Zi);if(C)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),d===1){for(m=0;m<p;m++)t[S+m]=t[_+m];t[S+p]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)t[S+m]=o[y+m]}}function h(v,d,g,p){var m=0;for(m=0;m<p;m++)o[m]=t[g+m];var y=v+d-1,_=p-1,S=g+p-1,x=0,w=0;if(t[S--]=t[y--],--d===0){for(x=S-(p-1),m=0;m<p;m++)t[x+m]=o[m];return}if(p===1){for(S-=d,y-=d,w=S+1,x=y+1,m=d-1;m>=0;m--)t[w+m]=t[x+m];t[S]=o[_];return}for(var T=r;;){var C=0,E=0,D=!1;do if(e(o[_],t[y])<0){if(t[S--]=t[y--],C++,E=0,--d===0){D=!0;break}}else if(t[S--]=o[_--],E++,C=0,--p===1){D=!0;break}while((C|E)<T);if(D)break;do{if(C=d-$u(o[_],t,v,d,d-1,e),C!==0){for(S-=C,y-=C,d-=C,w=S+1,x=y+1,m=C-1;m>=0;m--)t[w+m]=t[x+m];if(d===0){D=!0;break}}if(t[S--]=o[_--],--p===1){D=!0;break}if(E=p-Zu(t[y],o,0,p,p-1,e),E!==0){for(S-=E,_-=E,p-=E,w=S+1,x=_+1,m=0;m<E;m++)t[w+m]=o[x+m];if(p<=1){D=!0;break}}if(t[S--]=t[y--],--d===0){D=!0;break}T--}while(C>=Zi||E>=Zi);if(D)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),p===1){for(S-=d,y-=d,w=S+1,x=y+1,m=d-1;m>=0;m--)t[w+m]=t[x+m];t[S]=o[_]}else{if(p===0)throw new Error;for(x=S-(p-1),m=0;m<p;m++)t[x+m]=o[m]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function Wo(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<Jg){a=lv(t,r,n,e),fv(t,r,n,r+a,e);return}var o=Y1(t,e),s=U1(i);do{if(a=lv(t,r,n,e),a<s){var u=i;u>s&&(u=s),fv(t,r,r+u,r+a,e),a=u}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var at=1,ha=2,oi=4,cv=!1;function qu(){cv||(cv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function hv(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var X1=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hv}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,e);n.length=this._displayListLen,Wo(n,hv)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||i)){if(s||(s=e.__clipPaths=[]),a)for(var u=0;u<r.length;u++)s[o++]=r[u];for(var l=i,f=e;l;)l.parent=f,l.updateTransform(),s[o++]=l,f=l,l=l.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),h=0;h<c.length;h++){var v=c[h];e.__dirty&&(v.__dirty|=at),this._updateAndAddDisplayable(v,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(qu(),d.z=0),isNaN(d.z2)&&(qu(),d.z2=0),isNaN(d.zlevel)&&(qu(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var g=e.getDecalElement&&e.getDecalElement();g&&this._updateAndAddDisplayable(g,s,n);var p=e.getTextGuideLine();p&&this._updateAndAddDisplayable(p,s,n);var m=e.getTextContent();m&&this._updateAndAddDisplayable(m,s,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var i=he(this._roots,e);i>=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),fs;fs=te.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var wa={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-wa.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?wa.bounceIn(t*2)*.5:wa.bounceOut(t*2-1)*.5+.5}},no=Math.pow,Nr=Math.sqrt,cs=1e-8,em=1e-4,vv=Nr(3),io=1/3,$t=Ri(),Tt=Ri(),gi=Ri();function Or(t){return t>-cs&&t<cs}function tm(t){return t>cs||t<-cs}function Ye(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function dv(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function Fc(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),u=3*(e-t),l=t-i,f=s*s-3*o*u,c=s*u-9*o*l,h=u*u-3*s*l,v=0;if(Or(f)&&Or(c))if(Or(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[v++]=d)}else{var g=c*c-4*f*h;if(Or(g)){var p=c/f,d=-s/o+p,m=-p/2;d>=0&&d<=1&&(a[v++]=d),m>=0&&m<=1&&(a[v++]=m)}else if(g>0){var y=Nr(g),_=f*s+1.5*o*(-c+y),S=f*s+1.5*o*(-c-y);_<0?_=-no(-_,io):_=no(_,io),S<0?S=-no(-S,io):S=no(S,io);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var x=(2*f*s-3*o*c)/(2*Nr(f*f*f)),w=Math.acos(x)/3,T=Nr(f),C=Math.cos(w),d=(-s-2*T*C)/(3*o),m=(-s+T*(C+vv*Math.sin(w)))/(3*o),E=(-s+T*(C-vv*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[v++]=d),m>=0&&m<=1&&(a[v++]=m),E>=0&&E<=1&&(a[v++]=E)}}return v}function rm(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,u=0;if(Or(o)){if(tm(a)){var l=-s/a;l>=0&&l<=1&&(i[u++]=l)}}else{var f=a*a-4*o*s;if(Or(f))i[0]=-a/(2*o);else if(f>0){var c=Nr(f),l=(-a+c)/(2*o),h=(-a-c)/(2*o);l>=0&&l<=1&&(i[u++]=l),h>=0&&h<=1&&(i[u++]=h)}}return u}function hs(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,u=(n-r)*i+r,l=(s-o)*i+o,f=(u-s)*i+s,c=(f-l)*i+l;a[0]=t,a[1]=o,a[2]=l,a[3]=c,a[4]=c,a[5]=f,a[6]=u,a[7]=n}function Z1(t,e,r,n,i,a,o,s,u,l,f){var c,h=.005,v=1/0,d,g,p,m;$t[0]=u,$t[1]=l;for(var y=0;y<1;y+=.05)Tt[0]=Ye(t,r,i,o,y),Tt[1]=Ye(e,n,a,s,y),p=pi($t,Tt),p<v&&(c=y,v=p);v=1/0;for(var _=0;_<32&&!(h<em);_++)d=c-h,g=c+h,Tt[0]=Ye(t,r,i,o,d),Tt[1]=Ye(e,n,a,s,d),p=pi(Tt,$t),d>=0&&p<v?(c=d,v=p):(gi[0]=Ye(t,r,i,o,g),gi[1]=Ye(e,n,a,s,g),m=pi(gi,$t),g<=1&&m<v?(c=g,v=m):h*=.5);return Nr(v)}function $1(t,e,r,n,i,a,o,s,u){for(var l=t,f=e,c=0,h=1/u,v=1;v<=u;v++){var d=v*h,g=Ye(t,r,i,o,d),p=Ye(e,n,a,s,d),m=g-l,y=p-f;c+=Math.sqrt(m*m+y*y),l=g,f=p}return c}function it(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function pv(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function q1(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,u=0;if(Or(a)){if(tm(o)){var l=-s/o;l>=0&&l<=1&&(i[u++]=l)}}else{var f=o*o-4*a*s;if(Or(f)){var l=-o/(2*a);l>=0&&l<=1&&(i[u++]=l)}else if(f>0){var c=Nr(f),l=(-o+c)/(2*a),h=(-o-c)/(2*a);l>=0&&l<=1&&(i[u++]=l),h>=0&&h<=1&&(i[u++]=h)}}return u}function nm(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function vs(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function K1(t,e,r,n,i,a,o,s,u){var l,f=.005,c=1/0;$t[0]=o,$t[1]=s;for(var h=0;h<1;h+=.05){Tt[0]=it(t,r,i,h),Tt[1]=it(e,n,a,h);var v=pi($t,Tt);v<c&&(l=h,c=v)}c=1/0;for(var d=0;d<32&&!(f<em);d++){var g=l-f,p=l+f;Tt[0]=it(t,r,i,g),Tt[1]=it(e,n,a,g);var v=pi(Tt,$t);if(g>=0&&v<c)l=g,c=v;else{gi[0]=it(t,r,i,p),gi[1]=it(e,n,a,p);var m=pi(gi,$t);p<=1&&m<c?(l=p,c=m):f*=.5}}return Nr(c)}function Q1(t,e,r,n,i,a,o){for(var s=t,u=e,l=0,f=1/o,c=1;c<=o;c++){var h=c*f,v=it(t,r,i,h),d=it(e,n,a,h),g=v-s,p=d-u;l+=Math.sqrt(g*g+p*p),s=v,u=d}return l}var j1=/cubic-bezier\(([0-9,\.e ]+)\)/;function im(t){var e=t&&j1.exec(t);if(e){var r=e[1].split(","),n=+qt(r[0]),i=+qt(r[1]),a=+qt(r[2]),o=+qt(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:Fc(0,n,a,1,u,s)&&Ye(0,i,o,1,s[0])}}}var J1=(function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Ve,this.ondestroy=e.ondestroy||Ve,this.onrestart=e.onrestart||Ve,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=i%n;this._startTime=e-u,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=J(e)?e:wa[e]||im(e)},t})(),am=(function(){function t(e){this.value=e}return t})(),ex=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new am(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})(),wi=(function(){function t(e){this._list=new ex,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete i[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=r:s=new am(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),gv={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 Rt(t){return t=Math.round(t),t<0?0:t>255?255:t}function tx(t){return t=Math.round(t),t<0?0:t>360?360:t}function Pa(t){return t<0?0:t>1?1:t}function Ku(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Rt(parseFloat(e)/100*255):Rt(parseInt(e,10))}function bn(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Pa(parseFloat(e)/100):Pa(parseFloat(e))}function Qu(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function Ir(t,e,r){return t+(e-t)*r}function yt(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function Sf(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var om=new wi(20),ao=null;function Un(t,e){ao&&Sf(ao,e),ao=om.put(t,ao||e.slice())}function Mt(t,e){if(t){e=e||[];var r=om.get(t);if(r)return Sf(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in gv)return Sf(e,gv[n]),Un(t,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){yt(e,0,0,0,1);return}return yt(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Un(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){yt(e,0,0,0,1);return}return yt(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Un(t,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var u=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?yt(e,+l[0],+l[1],+l[2],1):yt(e,0,0,0,1);f=bn(l.pop());case"rgb":if(l.length>=3)return yt(e,Ku(l[0]),Ku(l[1]),Ku(l[2]),l.length===3?f:bn(l[3])),Un(t,e),e;yt(e,0,0,0,1);return;case"hsla":if(l.length!==4){yt(e,0,0,0,1);return}return l[3]=bn(l[3]),xf(l,e),Un(t,e),e;case"hsl":if(l.length!==3){yt(e,0,0,0,1);return}return xf(l,e),Un(t,e),e;default:return}}yt(e,0,0,0,1)}}function xf(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=bn(t[1]),i=bn(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],yt(e,Rt(Qu(o,a,r+1/3)*255),Rt(Qu(o,a,r)*255),Rt(Qu(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function rx(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=a-i,s=(a+i)/2,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(a+i):l=o/(2-a-i);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,h=((a-n)/6+o/2)/o;e===a?u=h-c:r===a?u=1/3+f-h:n===a&&(u=2/3+c-f),u<0&&(u+=1),u>1&&(u-=1)}var v=[u*360,l,s];return t[3]!=null&&v.push(t[3]),v}}function mv(t,e){var r=Mt(t);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-e)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Rn(r,r.length===4?"rgba":"rgb")}}function nx(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=e[i],s=e[a],u=n-i;return r[0]=Rt(Ir(o[0],s[0],u)),r[1]=Rt(Ir(o[1],s[1],u)),r[2]=Rt(Ir(o[2],s[2],u)),r[3]=Pa(Ir(o[3],s[3],u)),r}}function ix(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=Mt(e[i]),s=Mt(e[a]),u=n-i,l=Rn([Rt(Ir(o[0],s[0],u)),Rt(Ir(o[1],s[1],u)),Rt(Ir(o[2],s[2],u)),Pa(Ir(o[3],s[3],u))],"rgba");return r?{color:l,leftIndex:i,rightIndex:a,value:n}:l}}function ds(t,e,r,n){var i=Mt(t);if(t)return i=rx(i),e!=null&&(i[0]=tx(J(e)?e(i[0]):e)),r!=null&&(i[1]=bn(J(r)?r(i[1]):r)),n!=null&&(i[2]=bn(J(n)?n(i[2]):n)),Rn(xf(i),"rgba")}function ax(t,e){var r=Mt(t);if(r&&e!=null)return r[3]=Pa(e),Rn(r,"rgba")}function Rn(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function ps(t,e){var r=Mt(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var yv=new wi(100);function _v(t){if(H(t)){var e=yv.get(t);return e||(e=mv(t,-.1),yv.put(t,e)),e}else if(nu(t)){var r=k({},t);return r.colorStops=q(t.colorStops,function(n){return{offset:n.offset,color:mv(n.color,-.1)}}),r}return t}function ox(t){return t.type==="linear"}function sx(t){return t.type==="radial"}(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(t){return Buffer.from(t).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return process.env.NODE_ENV!=="production"&&Tn("Base64 isn't natively supported in the current environment."),null}})();var wf=Array.prototype.slice;function sr(t,e,r){return(e-t)*r+t}function ju(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=sr(e[a],r[a],n);return t}function ux(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=sr(e[o][s],r[o][s],n)}return t}function oo(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function Sv(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function lx(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function fx(t,e,r){var n=t,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var u=a;u<o;u++)n.push(r===1?i[u]:wf.call(i[u]))}for(var l=n[0]&&n[0].length,u=0;u<n.length;u++)if(r===1)isNaN(n[u])&&(n[u]=i[u]);else for(var f=0;f<l;f++)isNaN(n[u][f])&&(n[u][f]=i[u][f])}}function Ta(t){if(Je(t)){var e=t.length;if(Je(t[0])){for(var r=[],n=0;n<e;n++)r.push(wf.call(t[n]));return r}return wf.call(t)}return t}function Yo(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 cx(t){return Je(t&&t[0])?2:1}var so=0,Xo=1,sm=2,va=3,Tf=4,bf=5,xv=6;function wv(t){return t===Tf||t===bf}function uo(t){return t===Xo||t===sm}var $i=[0,0,0,0],hx=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=xv,u=r;if(Je(r)){var l=cx(r);s=l,(l===1&&!Ce(r[0])||l===2&&!Ce(r[0][0]))&&(o=!0)}else if(Ce(r)&&!An(r))s=so;else if(H(r))if(!isNaN(+r))s=so;else{var f=Mt(r);f&&(u=f,s=va)}else if(nu(r)){var c=k({},u);c.colorStops=q(r.colorStops,function(v){return{offset:v.offset,color:Mt(v.color)}}),ox(r)?s=Tf:sx(r)&&(s=bf),u=c}a===0?this.valType=s:(s!==this.valType||s===xv)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:u,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=J(n)?n:wa[n]||im(n)),i.push(h),h},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,u=uo(i),l=wv(i),f=0;f<a;f++){var c=n[f],h=c.value,v=o.value;c.percent=c.time/e,s||(u&&f!==a-1?fx(h,v,i):l&&lx(h.colorStops,v.colorStops))}if(!s&&i!==bf&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<a;f++)i===so?n[f].additiveValue=n[f].value-d:i===va?n[f].additiveValue=oo([],n[f].value,d,-1):uo(i)&&(n[f].additiveValue=i===Xo?oo([],n[f].value,d,-1):Sv([],n[f].value,d,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=a===va,f,c=this._lastFr,h=Math.min,v,d;if(s===1)v=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var g=h(c+1,s-1);for(f=g;f>=0&&!(o[f].percent<=r);f--);f=h(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=h(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=r;var p=d.percent-v.percent,m=p===0?1:h((r-v.percent)/p,1);d.easingFunc&&(m=d.easingFunc(m));var y=n?this._additiveValue:l?$i:e[u];if((uo(a)||l)&&!y&&(y=this._additiveValue=[]),this.discrete)e[u]=m<1?v.rawValue:d.rawValue;else if(uo(a))a===Xo?ju(y,v[i],d[i],m):ux(y,v[i],d[i],m);else if(wv(a)){var _=v[i],S=d[i],x=a===Tf;e[u]={type:x?"linear":"radial",x:sr(_.x,S.x,m),y:sr(_.y,S.y,m),colorStops:q(_.colorStops,function(T,C){var E=S.colorStops[C];return{offset:sr(T.offset,E.offset,m),color:Yo(ju([],T.color,E.color,m))}}),global:S.global},x?(e[u].x2=sr(_.x2,S.x2,m),e[u].y2=sr(_.y2,S.y2,m)):e[u].r=sr(_.r,S.r,m)}else if(l)ju(y,v[i],d[i],m),n||(e[u]=Yo(y));else{var w=sr(v[i],d[i],m);n?this._additiveValue=w:e[u]=w}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===so?e[n]=e[n]+i:r===va?(Mt(e[n],$i),oo($i,$i,i,1),e[n]=Yo($i)):r===Xo?oo(e[n],e[n],i,1):r===sm&&Sv(e[n],e[n],i,1)},t})(),Vc=(function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){Tn("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}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,n){return this.whenWithKeys(e,r,Se(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],u=a[s];if(!u){u=a[s]=new hx(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,h=c[c.length-1];l=h&&h.value,f.valType===va&&l&&(l=Yo(l))}else l=this._target[s];if(l==null)continue;e>0&&u.addKeyframe(0,Ta(l),i),this._trackKeys.push(s)}u.addKeyframe(e,Ta(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,f=l.length;if(s.prepare(i,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=l[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var h=new J1({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){r._started=2;var d=r._additiveAnimators;if(d){for(var g=!1,p=0;p<d.length;p++)if(d[p]._clip){g=!0;break}g||(r._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(r._target,v);var m=r._onframeCbs;if(m)for(var p=0;p<m.length;p++)m[p](r._target,v)},ondestroy:function(){r._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),e&&h.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return q(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[n?0:s.length-1];u&&(e[a]=Ta(u.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||Se(e);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})();function ci(){return new Date().getTime()}var vx=(function(t){z(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=ci()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(fs(n),!r._paused&&r.update())}fs(n)},e.prototype.start=function(){this._running||(this._time=ci(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ci(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ci()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new Vc(r,n.loop);return this.addAnimator(i),i},e})(Vt),dx=300,Ju=te.domSupported,el=(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},n=q(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}})(),Tv={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},bv=!1;function Cf(t){var e=t.pointerType;return e==="pen"||e==="touch"}function px(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function tl(t){t&&(t.zrByTouch=!0)}function gx(t,e){return St(t.dom,new mx(t,e),!0)}function um(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var mx=(function(){function t(e,r){this.stopPropagation=Ve,this.stopImmediatePropagation=Ve,this.preventDefault=Ve,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),It={mousedown:function(t){t=St(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=St(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=St(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=St(this.dom,t);var e=t.toElement||t.relatedTarget;um(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){bv=!0,t=St(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){bv||(t=St(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=St(this.dom,t),tl(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),It.mousemove.call(this,t),It.mousedown.call(this,t)},touchmove:function(t){t=St(this.dom,t),tl(t),this.handler.processGesture(t,"change"),It.mousemove.call(this,t)},touchend:function(t){t=St(this.dom,t),tl(t),this.handler.processGesture(t,"end"),It.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<dx&&It.click.call(this,t)},pointerdown:function(t){It.mousedown.call(this,t)},pointermove:function(t){Cf(t)||It.mousemove.call(this,t)},pointerup:function(t){It.mouseup.call(this,t)},pointerout:function(t){Cf(t)||It.mouseout.call(this,t)}};b(["click","dblclick","contextmenu"],function(t){It[t]=function(e){e=St(this.dom,e),this.trigger(t,e)}});var Df={pointermove:function(t){Cf(t)||Df.mousemove.call(this,t)},pointerup:function(t){Df.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function yx(t,e){var r=e.domHandlers;te.pointerEventsSupported?b(el.pointer,function(n){Zo(e,n,function(i){r[n].call(t,i)})}):(te.touchEventsSupported&&b(el.touch,function(n){Zo(e,n,function(i){r[n].call(t,i),px(e)})}),b(el.mouse,function(n){Zo(e,n,function(i){i=Nc(i),e.touching||r[n].call(t,i)})}))}function _x(t,e){te.pointerEventsSupported?b(Tv.pointer,r):te.touchEventsSupported||b(Tv.mouse,r);function r(n){function i(a){a=Nc(a),um(t,a.target)||(a=gx(t,a),e.domHandlers[n].call(t,a))}Zo(e,n,i,{capture:!0})}}function Zo(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,C1(t.domTarget,e,r,n)}function rl(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&D1(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var Cv=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),Sx=(function(t){z(e,t);function e(r,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new Cv(r,It),Ju&&(i._globalHandlerScope=new Cv(document,Df)),yx(i,i._localHandlerScope),i}return e.prototype.dispose=function(){rl(this._localHandlerScope),Ju&&rl(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,Ju&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?_x(this,n):rl(n)}},e})(Vt),lm=1;te.hasGlobalWindow&&(lm=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var gs=lm,Ef=.4,Mf="#333",Af="#ccc",xx="#eee",Dv=Ya,Ev=5e-5;function qr(t){return t>Ev||t<-Ev}var Kr=[],Wn=[],nl=Nt(),il=Math.abs,kn=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return fm(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 qr(this.rotation)||qr(this.x)||qr(this.y)||qr(this.scaleX-1)||qr(this.scaleY-1)||qr(this.skewX)||qr(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(Dv(n),this.invTransform=null);return}n=n||Nt(),r?this.getLocalTransform(n):Dv(n),e&&(r?Sa(n,e,n):kc(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||Nt(),Xa(this.invTransform,n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Kr);var n=Kr[0]<0?-1:1,i=Kr[1]<0?-1:1,a=((Kr[0]-n)*r+n)/Kr[0]||0,o=((Kr[1]-i)*r+i)/Kr[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Nt(),Sa(Wn,e.invTransform,r),r=Wn);var n=this.originX,i=this.originY;(n||i)&&(nl[4]=n,nl[5]=i,Sa(Wn,r,nl),Wn[4]-=n,Wn[5]-=i,r=Wn),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&ht(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&ht(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&il(e[0]-1)>1e-10&&il(e[3]-1)>1e-10?Math.sqrt(il(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){ms(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,u=e.anchorY,l=e.rotation||0,f=e.x,c=e.y,h=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||u){var d=n+s,g=i+u;r[4]=-d*a-h*g*o,r[5]=-g*o-v*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=v*a,r[2]=h*o,l&&Bc(r,r,l),r[4]+=n+f,r[5]+=i+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})(),fm=kn.getLocalTransform;function Tx(){return new kn}var Za=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ms(t,e){return KS(t,e,Za)}function Qt(t){lo||(lo=new wi(100)),t=t||kr;var e=lo.get(t);return e||(e={font:t,strWidthCache:new wi(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:ot.measureText("国",t).width,asciiCharWidth:ot.measureText("a",t).width},lo.put(t,e)),e}var lo;function bx(t){if(!(al>=Mv)){t=t||kr;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=ot.measureText(String.fromCharCode(n),t).width;var i=+new Date-r;return i>16?al=Mv:i>2&&al++,e}}var al=0,Mv=5;function cm(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=bx(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function jt(t,e){var r=t.strWidthCache,n=r.get(e);return n==null&&(n=ot.measureText(e,t.font).width,r.put(e,n)),n}function Av(t,e,r,n){var i=jt(Qt(e),t),a=au(e),o=Ti(0,i,r),s=Cn(0,a,n),u=new j(o,s,i,a);return u}function hm(t,e,r,n){var i=((t||"")+"").split(`
|
|
15
|
-
`),a=i.length;if(a===1)return Av(i[0],e,r,n);for(var o=new j(0,0,0,0),s=0;s<i.length;s++){var u=Av(i[s],e,r,n);s===0?o.copy(u):o.union(u)}return o}function Ti(t,e,r,n){return r==="right"?n?t+=e:t-=e:r==="center"&&(n?t+=e/2:t-=e/2),t}function Cn(t,e,r,n){return r==="middle"?n?t+=e/2:t-=e/2:r==="bottom"&&(n?t+=e:t-=e),t}function au(t){return Qt(t).stWideCharWidth}function On(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function zc(t,e,r){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,u=r.x,l=r.y,f="left",c="top";if(n instanceof Array)u+=On(n[0],r.width),l+=On(n[1],r.height),f=null,c=null;else switch(n){case"left":u-=i,l+=s,f="right",c="middle";break;case"right":u+=i+o,l+=s,c="middle";break;case"top":u+=o/2,l-=i,f="center",c="bottom";break;case"bottom":u+=o/2,l+=a+i,f="center";break;case"inside":u+=o/2,l+=s,f="center",c="middle";break;case"insideLeft":u+=i,l+=s,c="middle";break;case"insideRight":u+=o-i,l+=s,f="right",c="middle";break;case"insideTop":u+=o/2,l+=i,f="center";break;case"insideBottom":u+=o/2,l+=a-i,f="center",c="bottom";break;case"insideTopLeft":u+=i,l+=i;break;case"insideTopRight":u+=o-i,l+=i,f="right";break;case"insideBottomLeft":u+=i,l+=a-i,c="bottom";break;case"insideBottomRight":u+=o-i,l+=a-i,f="right",c="bottom";break}return t=t||{},t.x=u,t.y=l,t.align=f,t.verticalAlign=c,t}var ol="__zr_normal__",sl=Za.concat(["ignore"]),Cx=pr(Za,function(t,e){return t[e]=!0,t},{ignore:!1}),Yn={},Dx=new j(0,0,0,0),fo=[],$o=0,ou=1,su=(function(){function t(e){this.id=Gg(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=i?this:null;var l=!1;a.copyTransform(r);var f=n.position!=null,c=n.autoOverflowArea,h=void 0;if((c||f)&&(h=Dx,n.layoutRect?h.copy(n.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Yn,n,h):zc(Yn,n,h),a.x=Yn.x,a.y=Yn.y,o=Yn.align,s=Yn.verticalAlign;var v=n.origin;if(v&&n.rotation!=null){var d=void 0,g=void 0;v==="center"?(d=h.width*.5,g=h.height*.5):(d=On(v[0],h.width),g=On(v[1],h.height)),l=!0,a.originX=-a.x+d+(i?0:h.x),a.originY=-a.y+g+(i?0:h.y)}}n.rotation!=null&&(a.rotation=n.rotation);var p=n.offset;p&&(a.x+=p[0],a.y+=p[1],l||(a.originX=-p[0],a.originY=-p[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=m.overflowRect=m.overflowRect||new j(0,0,0,0);a.getLocalTransform(fo),Xa(fo,fo),j.copy(y,h),y.applyTransform(fo)}else m.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,S=void 0,x=void 0,w=void 0;_&&this.canBeInsideText()?(S=n.insideFill,x=n.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(S),w=!0)):(S=n.outsideFill,x=n.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(S),w=!0)),S=S||"#000",(S!==m.fill||x!==m.stroke||w!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(u=!0,m.fill=S,m.stroke=x,m.autoStroke=w,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=at,u&&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()?Af:Mf},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Mt(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Rn(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},k(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(W(e))for(var n=e,i=Se(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==ol)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,sl)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(ol,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===ol,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(he(s,e)>=0&&(r||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),!l&&!a){Tn("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=this._textContent,c=Lv(this,f,l,i);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,l,this._normalState,r,Iv(this,n,u),u);var h=this._textGuide;return f&&f.useState(e,r,n,!!c),h&&h.useState(e,r,n,!!c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=$o,this.__dirty&=~at),l}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var u=0;u<o;u++)if(e[u]!==a[u]){s=!1;break}}if(s)return;for(var u=0;u<o;u++){var l=e[u],f=void 0;this.stateProxy&&(f=this.stateProxy(l,e)),f||(f=this.states[l]),f&&i.push(f)}var c=i[o-1],h=this._textContent,v=Lv(this,h,c,n);v&&!this.__inHover&&(this.__inHover=v);var d=this._mergeStates(i),g=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,Iv(this,r,g),g);var p=this._textGuide;h&&h.useStates(e,r,!!v),p&&p.useStates(e,r,!!v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this.__inHover=$o,this.__dirty&=~at)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=he(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=he(i,e),o=he(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,i=0;i<e.length;i++){var a=e[i];k(r,a),a.textConfig&&(n=n||{},k(n,a.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,i,a,o){if(this.__inHover!==ou){var s=!(r&&i);r&&r.textConfig?(this.textConfig=k({},i?this.textConfig:n.textConfig),k(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var u={},l=!1,f=0;f<sl.length;f++){var c=sl[f],h=a&&Cx[c];r&&r[c]!=null?h?(l=!0,u[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(h?(l=!0,u[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(r||n)[d]:r||n)}l&&this._transitionState(e,u,o)}},t.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(e===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;if(r!==e){if(r&&r!==e&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new kn,this._attachComponent(e),this._textContent=e,this.markRedraw()}},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),k(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=at;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var i=e?this[e]:this;if(process.env.NODE_ENV!=="production"&&!i){Tn('Property "'+e+'" is not existed in element '+this.id);return}var a=new Vc(i,r,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=he(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,n){ul(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){ul(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=ul(this,r,n,i),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=$o,e.__dirty=at;var r={};function n(a,o,s){r[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[a+o+s]=!0)}function i(a,o,s,u){Object.defineProperty(e,a,{get:function(){if(process.env.NODE_ENV!=="production"&&n(a,s,u),!this[o]){var f=this[o]=[];l(this,f)}return this[o]},set:function(f){process.env.NODE_ENV!=="production"&&n(a,s,u),this[s]=f[0],this[u]=f[1],this[o]=f,l(this,f)}});function l(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(h){f[s]=h}}),Object.defineProperty(c,1,{get:function(){return f[u]},set:function(h){f[u]=h}})}}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))})(),t})();Ft(su,Vt);Ft(su,kn);function ul(t,e,r,n,i){r=r||{};var a=[];vm(t,"",t,e,r,n,a,i);var o=a.length,s=!1,u=r.done,l=r.aborted,f=function(){s=!0,o--,o<=0&&(s?u&&u():l&&l())},c=function(){o--,o<=0&&(s?u&&u():l&&l())};o||u&&u(),a.length>0&&r.during&&a[0].during(function(d,g){r.during(g)});for(var h=0;h<a.length;h++){var v=a[h];f&&v.done(f),c&&v.aborted(c),r.force&&v.duration(r.duration),v.start(r.easing)}return a}function ll(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function Ex(t){return Je(t[0])}function Mx(t,e,r){if(Je(e[r]))if(Je(t[r])||(t[r]=[]),et(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),ll(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(Ex(i))for(var s=i[0].length,u=0;u<o;u++)a[u]?ll(a[u],i[u],s):a[u]=Array.prototype.slice.call(i[u]);else ll(a,i,o);a.length=i.length}else t[r]=e[r]}function Ax(t,e){return t===e||Je(t)&&Je(e)&&Lx(t,e)}function Lx(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function vm(t,e,r,n,i,a,o,s){for(var u=Se(n),l=i.duration,f=i.delay,c=i.additive,h=i.setToFinal,v=!W(a),d=t.animators,g=[],p=0;p<u.length;p++){var m=u[p],y=n[m];if(y!=null&&r[m]!=null&&(v||a[m]))if(W(y)&&!Je(y)&&!nu(y)){if(e){s||(r[m]=y,t.updateDuringAnimation(e));continue}vm(t,m,r[m],y,i,a&&a[m],o,s)}else g.push(m);else s||(r[m]=y,t.updateDuringAnimation(e),g.push(m))}var _=g.length;if(!c&&_)for(var S=0;S<d.length;S++){var x=d[S];if(x.targetName===e){var w=x.stopTracks(g);if(w){var T=he(d,x);d.splice(T,1)}}}if(i.force||(g=Fe(g,function(M){return!Ax(n[M],r[M])}),_=g.length),_>0||i.force&&!o.length){var C=void 0,E=void 0,D=void 0;if(s){E={},h&&(C={});for(var S=0;S<_;S++){var m=g[S];E[m]=r[m],h?C[m]=n[m]:r[m]=n[m]}}else if(h){D={};for(var S=0;S<_;S++){var m=g[S];D[m]=Ta(r[m]),Mx(r,n,m)}}var x=new Vc(r,!1,!1,c?Fe(d,function(L){return L.targetName===e}):null);x.targetName=e,i.scope&&(x.scope=i.scope),h&&C&&x.whenWithKeys(0,C,g),D&&x.whenWithKeys(0,D,g),x.whenWithKeys(l??500,s?E:n,g).delay(f||0),t.addAnimator(x,e),o.push(x)}}function Lv(t,e,r,n){return!(r&&r.hoverLayer||n)||Ov(t)||e&&Ov(e)?$o:ou}function Ov(t){return t.type==="text"||t.type==="tspan"}function Iv(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var st=(function(t){z(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){if(r&&(r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),process.env.NODE_ENV!=="production"&&r.__hostTarget))throw"This elemenet has been used as an attachment";return this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=he(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=he(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},e.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new j(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var u=i[s];if(!(u.ignore||u.invisible)){var l=u.getBoundingRect(),f=u.getLocalTransform(a);f?(j.applyTransform(n,l,f),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}}return o||n},e})(su);st.prototype.type="group";/*!
|
|
16
|
-
* ZRender, a high performance 2d drawing library.
|
|
17
|
-
*
|
|
18
|
-
* Copyright (c) 2013, Baidu Inc.
|
|
19
|
-
* All rights reserved.
|
|
20
|
-
*
|
|
21
|
-
* LICENSE
|
|
22
|
-
* https://github.com/ecomfe/zrender/blob/master/LICENSE
|
|
23
|
-
*/var da={},dm={};function Ox(t){delete dm[t]}function Ix(t){if(!t)return!1;if(typeof t=="string")return ps(t,1)<Ef;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=ps(e[i].color,1);return r/=n,r<Ef}return!1}var Px=(function(){function t(e,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var a=new X1,o=n.renderer||"canvas";if(da[o]||(o=Se(da)[0]),process.env.NODE_ENV!=="production"&&!da[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new da[o](r,a,n,e),u=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!te.node&&!te.worker&&!u?new Sx(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?te.touchEventsSupported:!!f,h=44,v;c&&(v=U(n.pointerSize,h)),this.handler=new Qg(a,s,l,s.root,v),this.animation=new vx({stage:{update:u?null:function(){return i._flush(!1)}}}),u||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Ix(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,n=ci(),i=this._needsRefresh,a=this._needsRefreshHover;(i||a)&&(r=!0,this._refresh({animUpdate:e,refresh:i,refreshHover:a}));var o=ci();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof st&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Ox(this.id))},t})();function Pv(t,e){var r=new Px(Gg(),t,e);return dm[r.id]=r,r}function Nx(t,e){da[t]=e}var Nv=1e-4,pm=20,Rx=14;function kx(t){return t.replace(/^\s+|\s+$/g,"")}var ze=Math.min,ue=Math.max,Ae=Math.abs,gr=Math.round,Br=Math.floor,ki=Math.ceil,Bn=Math.pow,Na=Math.log,Lf=Math.LN10,Bx=Math.PI,Fx=Math.random;function Of(t,e,r,n){var i=e[0],a=e[1],o=r[0],s=r[1],u=a-i,l=s-o;if(u===0)return l===0?o:(o+s)/2;if(n)if(u>0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/u*l+o}var Ee=Vx;function Vx(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 If(t,e,r)}function If(t,e,r){return H(t)?zx(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function zx(t){return!!kx(t).match(/%$/)}function se(t,e,r){return process.env.NODE_ENV!=="production"&&P(e!=null),isNaN(e)?r?""+t:+t:(e=ze(ue(0,e),pm),t=(+t).toFixed(e),r?t:+t)}function uu(t){return t.sort(function(e,r){return e-r}),t}function ur(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(gr(t*e)/e===t)return r}return Hx(t)}function Hx(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return ue(0,o-n)}function gm(t,e,r){var n=Ae(t[1]-t[0]);if(!isFinite(n)||n===0)return NaN;var i=Na(2*Ae(r||1)*Ae(n))/Lf,a=Na(Ae(e))/Lf,o=ue(0,ki(-i+a));return isFinite(o)||(o=NaN),o}function Gx(t,e){var r=pr(t,function(v,d){return v+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Bn(10,e),i=q(t,function(v){return(isNaN(v)?0:v)/r*n*100}),a=n*100,o=q(i,function(v){return Br(v)}),s=pr(o,function(v,d){return v+d},0),u=q(i,function(v,d){return v-o[d]});s<a;){for(var l=Number.NEGATIVE_INFINITY,f=null,c=0,h=u.length;c<h;++c)u[c]>l&&(l=u[c],f=c);++o[f],u[f]=0,++s}return q(o,function(v){return v/n})}function mn(t,e){var r=ue(ur(t),ur(e)),n=t+e;return r>pm?n:se(n,r)}var Rv=Bn(2,53)-1;function mm(t){var e=Bx*2;return(t%e+e)%e}function ys(t){return t>-Nv&&t<Nv}var Ux=/^(?:(\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 Bi(t){if(t instanceof Date)return t;if(H(t)){var e=Ux.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(gr(t))}function ym(t){return Bn(10,Hc(t))}function Hc(t){if(t===0)return 0;var e=Br(Na(t)/Lf);return t/Bn(10,e)>=10&&e++,e}var _m=2;function Gc(t,e){var r=Hc(t),n=Bn(10,r),i=t/n,a;return e===_m?a=1:e?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,t=a*n,se(t,-r)}function Wx(t){t.sort(function(u,l){return s(u,l,0)?-1:1});for(var e=-1/0,r=1,n=0;n<t.length;){for(var i=t[n].interval,a=t[n].close,o=0;o<2;o++)i[o]<=e&&(i[o]=e,a[o]=o?1:1-r),e=i[o],r=a[o];i[0]===i[1]&&a[0]*a[1]!==1?t.splice(n,1):n++}return t;function s(u,l,f){return u.interval[f]<l.interval[f]||u.interval[f]===l.interval[f]&&(u.close[f]-l.close[f]===(f?-1:1)||!f&&s(u,l,1))}}function _s(t){var e=parseFloat(t);return e==t&&(e!==0||!H(t)||t.indexOf("x")<=0)?e:NaN}function Sm(t){return!isNaN(_s(t))}function Uc(){return gr(Fx()*9)}function xm(t,e){return e===0?t:xm(e,t%e)}function kv(t,e){return t==null?e:e==null?t:t*e/xm(t,e)}function vt(t){return t!=null&&isFinite(t)}var Yx="[ECharts] ",Bv={},Xx=typeof console<"u"&&console.warn&&console.log;function lu(t,e,r){if(Xx){if(r){if(Bv[e])return;Bv[e]=!0}console[t](Yx+e)}}function wm(t,e){lu("log",t,e)}function Ke(t,e){lu("warn",t,e)}function ce(t,e){lu("error",t,e)}function er(t){process.env.NODE_ENV!=="production"&&lu("warn","DEPRECATED: "+t,!0)}function Pe(t,e,r){process.env.NODE_ENV!=="production"&&er((r?"["+r+"]":"")+(t+" is deprecated; use "+e+" instead."))}function Ss(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r="";if(process.env.NODE_ENV!=="production"){var n=function(i){return i===void 0?"undefined":i===1/0?"Infinity":i===-1/0?"-Infinity":An(i)?"NaN":i instanceof Date?"Date("+i.toISOString()+")":J(i)?"function () { ... }":e1(i)?i+"":null};r=q(t,function(i){if(H(i))return i;var a=n(i);if(a!=null)return a;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(i,function(o,s){var u=n(s);return u??s})}catch{return"?"}else return"?"}).join(" ")}return r}function Qe(t){throw new Error(t)}function Fv(t,e,r){return(e-t)*r+t}var Tm="series\0",Zx="\0_ec_\0";function He(t){return t instanceof Array?t:t==null?[]:[t]}function Pf(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var Vv=["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 $a(t){return W(t)&&!F(t)&&!(t instanceof Date)?t.value:t}function $x(t){return W(t)&&!(t instanceof Array)}function qx(t,e,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=Z();b(e,function(u,l){if(!W(u)){e[l]=null;return}process.env.NODE_ENV!=="production"&&(u.id!=null&&!Hv(u.id)&&zv(u.id),u.name!=null&&!Hv(u.name)&&zv(u.name))});var s=Kx(t,o,r);return(n||i)&&Qx(s,t,o,e),n&&jx(s,e),n||i?Jx(s,e,i):a&&ew(s,e),tw(s),s}function Kx(t,e,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<t.length;i++){var a=t[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:r==="replaceMerge"||bi(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function Qx(t,e,r,n){b(n,function(i,a){if(!(!i||i.id==null)){var o=ba(i.id),s=r.get(o);if(s!=null){var u=t[s];P(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=i,u.existing=e[s],n[a]=null}}})}function jx(t,e){b(e,function(r,n){if(!(!r||r.name==null))for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(a.id==null||r.id==null)&&!bi(r)&&!bi(a)&&bm("name",a,r)){t[i].newOption=r,e[n]=null;return}}})}function Jx(t,e,r){b(e,function(n){if(n){for(var i,a=0;(i=t[a])&&(i.newOption||bi(i.existing)||i.existing&&n.id!=null&&!bm("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function ew(t,e){b(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function tw(t){var e=Z();b(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),b(t,function(r){var n=r.newOption;P(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),b(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(W(a)){if(o.name=a.name!=null?ba(a.name):i?i.name:Tm+n,i)o.id=ba(i.id);else if(a.id!=null)o.id=ba(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function bm(t,e,r){var n=kt(e[t],null),i=kt(r[t],null);return n!=null&&i!=null&&n===i}function ba(t){if(process.env.NODE_ENV!=="production"&&t==null)throw new Error;return kt(t,"")}function kt(t,e){return t==null?e:H(t)?t:Ce(t)||us(t)?t+"":e}function zv(t){process.env.NODE_ENV!=="production"&&Ke("`"+t+"` is invalid id or name. Must be a string or number.")}function Hv(t){return us(t)||Sm(t)}function Wc(t){var e=t.name;return!!(e&&e.indexOf(Tm))}function bi(t){return t&&t.id!=null&&ba(t.id).indexOf(Zx)===0}function rw(t,e,r){b(t,function(n){var i=n.newOption;W(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=nw(e,i,n.existing,r))})}function nw(t,e,r,n){var i=e.type?e.type:r?r.subType:n.determineSubType(t,e);return i}function iw(t,e){var r={},n={};return i(t||[],r),i(e||[],n,r),[a(r),a(n)];function i(o,s,u){for(var l=0,f=o.length;l<f;l++){var c=kt(o[l].seriesId,null);if(c==null)return;for(var h=He(o[l].dataIndex),v=u&&u[c],d=0,g=h.length;d<g;d++){var p=h[d];v&&v[p]?v[p]=null:(s[c]||(s[c]={}))[p]=1}}}function a(o,s){var u=[];for(var l in o)if(o.hasOwnProperty(l)&&o[l]!=null)if(s)u.push(+l);else{var f=a(o[l],!0);f.length&&u.push({seriesId:l,dataIndex:f})}return u}}function Fi(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return F(e.dataIndex)?q(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return F(e.name)?q(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function ye(){var t="__ec_inner_"+aw++;return function(e){return e[t]||(e[t]={})}}var aw=Uc();function fl(t,e,r){var n=Yc(e,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,u=r?r.defaultMainType:null;return!i&&u&&a.set(u,{}),a.each(function(l,f){var c=Vi(t,f,l,{useDefault:u===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 Yc(t,e){var r;if(H(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var i=Z(),a={},o=!1;return b(r,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){a[u]=s;return}var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],f=l[1],c=(l[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&he(e.includeMainTypes,f)<0)){o=o||!!f;var h=i.get(f)||i.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var ct={useDefault:!0,enableAll:!1,enableNone:!1},ow={useDefault:!1,enableAll:!0,enableNone:!0};function Vi(t,e,r,n){n=n||ct;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var u=void 0;return s.models=n.useDefault&&(u=t.getComponent(e))?[u]:[],s}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;process.env.NODE_ENV!=="production"&&ce('`"none"` or `false` is not a valid value on index option.'),i=-1}return i==="all"&&(n.enableAll?i=a=o=null:(process.env.NODE_ENV!=="production"&&ce('`"all"` is not a valid value on index option.'),i=-1)),s.models=t.queryComponents({mainType:e,index:i,id:a,name:o}),s}function sw(t,e,r){process.env.NODE_ENV!=="production"&&P(e);var n={};n[e+"Id"]=t[e+"Id"],n[e+"Index"]=t[e+"Index"],n[e+"Name"]=t[e+"Name"];var i={mainType:e,query:n};return r&&(i.subType=r),i}function Cm(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function uw(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function lw(t){return t==="auto"?te.domSupported?"html":"richText":t||"html"}function Dm(t,e,r,n,i){var a=e==null||e==="auto";if(n==null)return n;if(Ce(n)){var o=Fv(r||0,n,i);return se(o,a?Math.max(ur(r||0),ur(n)):e)}else{if(H(n))return i<1?r:n;for(var s=[],u=r,l=n,f=Math.max(u?u.length:0,l.length),c=0;c<f;++c){var h=t.getDimensionInfo(c);if(h&&h.type==="ordinal")s[c]=(i<1&&u?u:l)[c];else{var v=u&&u[c]?u[c]:0,d=l[c],o=Fv(v,d,i);s[c]=se(o,a?Math.max(ur(v),ur(d)):e)}}return s}}function Pt(){return[1/0,-1/0]}function Em(t,e){mr(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function Mm(t,e){mr(e)&&e<t[0]&&(t[0]=e)}function Am(t,e){mr(e)&&e>t[1]&&(t[1]=e)}function fw(t,e){Ci(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function mr(t){return t!=null&&isFinite(t)}function Ci(t,e){return mr(t)&&mr(e)&&t<=e}function cw(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function Lm(t){Ci(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function Xc(){var t="__ec_once_"+hw++;return function(e,r){process.env.NODE_ENV!=="production"&&P(e),B(e,t)||(e[t]=1,r())}}var hw=Uc();function Zc(t,e,r){var n=Z(),i=0;b(t,function(a){var o=e(a);process.env.NODE_ENV!=="production"&&P(H(o));var s=n.get(o)||0;r&&r(a,s),!s&&!r&&(t[i++]=a),n.set(o,s+1)}),r||(t.length=i)}function vw(t){return process.env.NODE_ENV!=="production"&&P(t.value!=null),t.value+""}function dw(t){return process.env.NODE_ENV!=="production"&&P(t!=null),t+""}function pw(t,e){return U(e,!0)?t.seriesIndex+2:0}function Om(t,e,r){var n=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&n>=r.threshold,large:t.get("large")&&n>=t.get("largeThreshold"),modDataCount:t.get("progressiveChunkMode")==="mod"?t.getData().count():null}}function gw(t,e){return{seriesType:t,overallReset:e}}function $c(t){return{overallReset:t}}var mw=".",Qr="___EC__COMPONENT__CONTAINER___",Im="___EC__EXTENDED_CLASS___";function Kt(t){var e={main:"",sub:""};if(t){var r=t.split(mw);e.main=r[0]||"",e.sub=r[1]||""}return e}function yw(t){P(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function _w(t){return!!(t&&t[Im])}function qc(t,e){t.$constructor=t,t.extend=function(r){process.env.NODE_ENV!=="production"&&b(e,function(a){r[a]||console.warn("Method `"+a+"` should be implemented"+(r.type?" in "+r.type:"")+".")});var n=this,i;return Sw(n)?i=(function(a){z(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(r.$constructor||n).apply(this,arguments)},QS(i,this)),k(i.prototype,r),i[Im]=!0,i.extend=this.extend,i.superCall=Tw,i.superApply=bw,i.superClass=n,i}}function Sw(t){return J(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Pm(t,e){t.extend=e.extend}var xw=Math.round(Math.random()*10);function ww(t){var e=["__\0is_clz",xw++].join("_");t.prototype[e]=!0,process.env.NODE_ENV!=="production"&&P(!t.isInstance,'The method "is" can not be defined.'),t.isInstance=function(r){return!!(r&&r[e])}}function Tw(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function bw(t,e,r){return this.superClass.prototype[e].apply(t,r)}function fu(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){yw(i),n.prototype.type=i;var a=Kt(i);if(!a.sub)process.env.NODE_ENV!=="production"&&e[a.main]&&console.warn(a.main+" exists."),e[a.main]=n;else if(a.sub!==Qr){var o=r(a);o[a.sub]=n}}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[Qr]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var i=Kt(n),a=[],o=e[i.main];return o&&o[Qr]?b(o,function(s,u){u!==Qr&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=Kt(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return b(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=Kt(n),a=e[i.main];return a&&a[Qr]};function r(n){var i=e[n.main];return(!i||!i[Qr])&&(i=e[n.main]={},i[Qr]=!0),i}}function Ra(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<t.length;s++){var u=t[s][1];if(!(i&&he(i,u)>=0||a&&he(a,u)<0)){var l=n.getShallow(u,e);l!=null&&(o[t[s][0]]=l)}}return o}}var Cw=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Dw=Ra(Cw),Ew=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return Dw(this,e,r)},t})(),Nf=new wi(50);function Mw(t){if(typeof t=="string"){var e=Nf.get(t);return e&&e.image}else return t}function Nm(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=Nf.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!cu(e)&&a.pending.push(o)):(e=ot.loadImage(t,Gv,Gv),e.__zrImageSrc=t,Nf.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function Gv(){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],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function cu(t){return t&&t.width&&t.height}var cl=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Aw(t,e,r,n,i,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
|
|
24
|
-
`);a=Rm(r,n,i,a);for(var s=!1,u={},l=0,f=o.length;l<f;l++)km(u,o[l],a),o[l]=u.textLine,s=s||u.isTruncated;t.text=o.join(`
|
|
25
|
-
`),t.isTruncated=s}function Rm(t,e,r,n){n=n||{};var i=k({},n);r=U(r,"..."),i.maxIterations=U(n.maxIterations,2);var a=i.minChar=U(n.minChar,0),o=i.fontMeasureInfo=Qt(e),s=o.asciiCharWidth;i.placeholder=U(n.placeholder,"");for(var u=t=Math.max(0,t-1),l=0;l<a&&u>=s;l++)u-=s;var f=jt(o,r);return f>u&&(r="",f=0),u=t-f,i.ellipsis=r,i.ellipsisWidth=f,i.contentWidth=u,i.containerWidth=t,i}function km(t,e,r){var n=r.containerWidth,i=r.contentWidth,a=r.fontMeasureInfo;if(!n){t.textLine="",t.isTruncated=!1;return}var o=jt(a,e);if(o<=n){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=r.maxIterations){e+=r.ellipsis;break}var u=s===0?Lw(e,i,a):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,u),o=jt(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function Lw(t,e,r){for(var n=0,i=0,a=t.length;i<a&&n<e;i++)n+=cm(r,t.charCodeAt(i));return i}function Ow(t,e,r,n){var i=Kc(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,u=o?o[0]+o[2]:0,l=e.font,f=a==="truncate",c=au(l),h=U(e.lineHeight,c),v=e.lineOverflow==="truncate",d=!1,g=e.width;g==null&&r!=null&&(g=r-s);var p=e.height;p==null&&n!=null&&(p=n-u);var m;g!=null&&(a==="break"||a==="breakAll")?m=i?Bm(i,e.font,g,a==="breakAll",0).lines:[]:m=i?i.split(`
|
|
26
|
-
`):[];var y=m.length*h;if(p==null&&(p=y),y>p&&v){var _=Math.floor(p/h);d=d||m.length>_,m=m.slice(0,_),y=m.length*h}if(i&&f&&g!=null)for(var S=Rm(g,l,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),x={},w=0;w<m.length;w++)km(x,m[w],S),m[w]=x.textLine,d=d||x.isTruncated;for(var T=p,C=0,E=Qt(l),w=0;w<m.length;w++)C=Math.max(jt(E,m[w]),C);g==null&&(g=C);var D=g;return T+=u,D+=s,{lines:m,height:p,outerWidth:D,outerHeight:T,lineHeight:h,calculatedLineHeight:c,contentWidth:C,contentHeight:y,width:g,isTruncated:d}}var Iw=(function(){function t(){}return t})(),Uv=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),Pw=(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 Nw(t,e,r,n,i){var a=new Pw,o=Kc(t);if(!o)return a;var s=e.padding,u=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,f=e.width;f==null&&r!=null&&(f=r-u);var c=e.height;c==null&&n!=null&&(c=n-l);for(var h=e.overflow,v=(h==="break"||h==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:h==="breakAll"}:null,d=cl.lastIndex=0,g;(g=cl.exec(o))!=null;){var p=g.index;p>d&&hl(a,o.substring(d,p),e,v),hl(a,g[2],e,v,g[1]),d=cl.lastIndex}d<o.length&&hl(a,o.substring(d,o.length),e,v);var m=[],y=0,_=0,S=h==="truncate",x=e.lineOverflow==="truncate",w={};function T(pe,ut,rr){pe.width=ut,pe.lineHeight=rr,y+=rr,_=Math.max(_,ut)}e:for(var C=0;C<a.lines.length;C++){for(var E=a.lines[C],D=0,M=0,L=0;L<E.tokens.length;L++){var A=E.tokens[L],O=A.styleName&&e.rich[A.styleName]||{},I=A.textPadding=O.padding,N=I?I[1]+I[3]:0,V=A.font=O.font||e.font;A.contentHeight=au(V);var Y=U(O.height,A.contentHeight);if(A.innerHeight=Y,I&&(Y+=I[0]+I[2]),A.height=Y,A.lineHeight=fr(O.lineHeight,e.lineHeight,Y),A.align=O&&O.align||i,A.verticalAlign=O&&O.verticalAlign||"middle",x&&c!=null&&y+A.lineHeight>c){var K=a.lines.length;L>0?(E.tokens=E.tokens.slice(0,L),T(E,M,D),a.lines=a.lines.slice(0,C+1)):a.lines=a.lines.slice(0,C),a.isTruncated=a.isTruncated||a.lines.length<K;break e}var Q=O.width,$=Q==null||Q==="auto";if(typeof Q=="string"&&Q.charAt(Q.length-1)==="%")A.percentWidth=Q,m.push(A),A.contentWidth=jt(Qt(V),A.text);else{if($){var ee=O.backgroundColor,ne=ee&&ee.image;ne&&(ne=Mw(ne),cu(ne)&&(A.width=Math.max(A.width,ne.width*Y/ne.height)))}var X=S&&f!=null?f-M:null;X!=null&&X<A.width?!$||X<N?(A.text="",A.width=A.contentWidth=0):(Aw(w,A.text,X-N,V,e.ellipsis,{minChar:e.truncateMinChar}),A.text=w.text,a.isTruncated=a.isTruncated||w.isTruncated,A.width=A.contentWidth=jt(Qt(V),A.text)):A.contentWidth=jt(Qt(V),A.text)}A.width+=N,M+=A.width,O&&(D=Math.max(D,A.lineHeight))}T(E,M,D)}a.outerWidth=a.width=U(f,_),a.outerHeight=a.height=U(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=u,a.outerHeight+=l;for(var C=0;C<m.length;C++){var A=m[C],le=A.percentWidth;A.width=parseInt(le,10)/100*a.width}return a}function hl(t,e,r,n,i){var a=e==="",o=i&&r.rich[i]||{},s=t.lines,u=o.font||r.font,l=!1,f,c;if(n){var h=o.padding,v=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var d=On(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=e.split(`
|
|
27
|
-
`),l=!0),n.accumWidth=d}else{var g=Bm(e,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+v,c=g.linesWidths,f=g.lines}}f||(f=e.split(`
|
|
28
|
-
`));for(var p=Qt(u),m=0;m<f.length;m++){var y=f[m],_=new Iw;if(_.styleName=i,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=c?c[m]:jt(p,y),!m&&!l){var S=(s[s.length-1]||(s[0]=new Uv)).tokens,x=S.length;x===1&&S[0].isLineHolder?S[0]=_:(y||!x||a)&&S.push(_)}else s.push(new Uv([_]))}}function Rw(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var kw=pr(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function Bw(t){return Rw(t)?!!kw[t]:!0}function Bm(t,e,r,n,i){for(var a=[],o=[],s="",u="",l=0,f=0,c=Qt(e),h=0;h<t.length;h++){var v=t.charAt(h);if(v===`
|
|
29
|
-
`){u&&(s+=u,f+=l),a.push(s),o.push(f),s="",u="",l=0,f=0;continue}var d=cm(c,v.charCodeAt(0)),g=n?!1:!Bw(v);if(a.length?f+d>r:i+f+d>r){f?(s||u)&&(g?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=v,l+=d,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=v,f=d)):g?(a.push(u),o.push(l),u=v,l=d):(a.push(v),o.push(d));continue}f+=d,g?(u+=v,l+=d):(u&&(s+=u,u="",l=0),s+=v)}return u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function Wv(t,e,r,n,i,a){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;j.set(Yv,Ti(r,o,i),Cn(n,s,a),o,s),j.intersect(e,Yv,null,Xv);var u=Xv.outIntersectRect;t.outerWidth=u.width,t.outerHeight=u.height,t.baseX=Ti(u.x,u.width,i,!0),t.baseY=Cn(u.y,u.height,a,!0)}}var Yv=new j(0,0,0,0),Xv={outIntersectRect:{},clamp:!0};function Kc(t){return t!=null?t+="":t=""}function Fw(t){var e=Kc(t.text),r=t.font,n=jt(Qt(r),e),i=au(r);return Rf(t,n,i,null)}function Rf(t,e,r,n){var i=new j(Ti(t.x||0,e,t.textAlign),Cn(t.y||0,r,t.textBaseline),e,r),a=n??(Fm(t)?t.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Fm(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var kf="__zr_style_"+Math.round(Math.random()*10),Dn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},hu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Dn[kf]=!0;var Zv=["z","z2","invisible"],Vw=["invisible"],zi=(function(t){z(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=Se(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(r){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&zw(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,u=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new j(0,0,0,0)),n?j.applyTransform(r,i,n):r.copy(i),(o||s||u)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(u),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+u-o));var l=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-l),r.y=Math.floor(r.y-l),r.width=Math.ceil(r.width+1+l*2),r.height=Math.ceil(r.height+1+l*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new j(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:k(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=ha,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&ha)},e.prototype.styleUpdated=function(){this.__dirty&=~ha},e.prototype.createStyle=function(r){return iu(Dn,r)},e.prototype.useStyle=function(r){r[kf]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[kf]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,Zv)},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var u=!(n&&a),l=this.__inHover===ou,f;if(n&&n.style?o?a?f=n.style:(f=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(f,n.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(f,n.style)):u&&(f=i.style),f)if(o){var c=this.style;if(this.style=this.createStyle(u?{}:c),u)for(var h=Se(c),v=0;v<h.length;v++){var d=h[v];d in f&&(f[d]=f[d],this.style[d]=c[d])}for(var g=Se(f),v=0;v<g.length;v++){var d=g[v];this.style[d]=this.style[d]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else l?this._useHoverStyle(f):this.useStyle(f);if(!l)for(var p=this.__inHover?Vw:Zv,v=0;v<p.length;v++){var d=p[v];n&&n[d]!=null?this[d]=n[d]:u&&i[d]!=null&&(this[d]=i[d])}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(r,n){return k(r,n),r},e.prototype.getAnimationStyleProps=function(){return hu},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=at|ha})(),e})(su),vl=new j(0,0,0,0),dl=new j(0,0,0,0);function zw(t,e,r){return vl.copy(t.getBoundingRect()),t.transform&&vl.applyTransform(t.transform),dl.width=e,dl.height=r,!vl.intersect(dl)}var bt=Math.min,Ct=Math.max,pl=Math.sin,gl=Math.cos,jr=Math.PI*2,co=Ri(),ho=Ri(),vo=Ri();function $v(t,e,r,n,i,a){i[0]=bt(t,r),i[1]=bt(e,n),a[0]=Ct(t,r),a[1]=Ct(e,n)}var qv=[],Kv=[];function Hw(t,e,r,n,i,a,o,s,u,l){var f=rm,c=Ye,h=f(t,r,i,o,qv);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var v=0;v<h;v++){var d=c(t,r,i,o,qv[v]);u[0]=bt(d,u[0]),l[0]=Ct(d,l[0])}h=f(e,n,a,s,Kv);for(var v=0;v<h;v++){var g=c(e,n,a,s,Kv[v]);u[1]=bt(g,u[1]),l[1]=Ct(g,l[1])}u[0]=bt(t,u[0]),l[0]=Ct(t,l[0]),u[0]=bt(o,u[0]),l[0]=Ct(o,l[0]),u[1]=bt(e,u[1]),l[1]=Ct(e,l[1]),u[1]=bt(s,u[1]),l[1]=Ct(s,l[1])}function Gw(t,e,r,n,i,a,o,s){var u=nm,l=it,f=Ct(bt(u(t,r,i),1),0),c=Ct(bt(u(e,n,a),1),0),h=l(t,r,i,f),v=l(e,n,a,c);o[0]=bt(t,i,h),o[1]=bt(e,a,v),s[0]=Ct(t,i,h),s[1]=Ct(e,a,v)}function Uw(t,e,r,n,i,a,o,s,u){var l=ui,f=li,c=Math.abs(i-a);if(c%jr<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-n,u[0]=t+r,u[1]=e+n;return}if(co[0]=gl(i)*r+t,co[1]=pl(i)*n+e,ho[0]=gl(a)*r+t,ho[1]=pl(a)*n+e,l(s,co,ho),f(u,co,ho),i=i%jr,i<0&&(i=i+jr),a=a%jr,a<0&&(a=a+jr),i>a&&!o?a+=jr:i<a&&o&&(i+=jr),o){var h=a;a=i,i=h}for(var v=0;v<a;v+=Math.PI/2)v>i&&(vo[0]=gl(v)*r+t,vo[1]=pl(v)*n+e,l(s,vo,s),f(u,vo,u))}var ve={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Jr=[],en=[],Ut=[],wr=[],Wt=[],Yt=[],ml=Math.min,yl=Math.max,tn=Math.cos,rn=Math.sin,nr=Math.abs,Bf=Math.PI,Mr=Bf*2,_l=typeof Float32Array<"u",qi=[];function Sl(t){var e=Math.round(t/Bf*1e8)/1e8;return e%2*Bf}function Vm(t,e){var r=Sl(t[0]);r<0&&(r+=Mr);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=Mr?i=r+Mr:e&&r-i>=Mr?i=r-Mr:!e&&r>i?i=r+(Mr-Sl(r-i)):e&&r<i&&(i=r-(Mr-Sl(i-r))),t[0]=r,t[1]=i}var In=(function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=nr(n/gs/e)||0,this._uy=nr(n/gs/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(ve.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 n=nr(e-this._xi),i=nr(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(ve.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(ve.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(ve.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){this._drawPendingPt(),qi[0]=i,qi[1]=a,Vm(qi,o),i=qi[0],a=qi[1];var s=a-i;return this.addData(ve.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=tn(a)*n+e,this._yi=rn(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(ve.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(ve.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&_l&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,n=0,i=this._len,a=0;a<r;a++)n+=e[a].len();var o=this.data;if(_l&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var u=e[a].data,s=0;s<u.length;s++)this.data[i++]=u[s];this._len=i}},t.prototype.addData=function(e,r,n,i,a,o,s,u,l){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,_l&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Ut[0]=Ut[1]=Wt[0]=Wt[1]=Number.MAX_VALUE,wr[0]=wr[1]=Yt[0]=Yt[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],u=o===1;switch(u&&(r=e[o],n=e[o+1],i=r,a=n),s){case ve.M:r=i=e[o++],n=a=e[o++],Wt[0]=i,Wt[1]=a,Yt[0]=i,Yt[1]=a;break;case ve.L:$v(r,n,e[o],e[o+1],Wt,Yt),r=e[o++],n=e[o++];break;case ve.C:Hw(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Wt,Yt),r=e[o++],n=e[o++];break;case ve.Q:Gw(r,n,e[o++],e[o++],e[o],e[o+1],Wt,Yt),r=e[o++],n=e[o++];break;case ve.A:var l=e[o++],f=e[o++],c=e[o++],h=e[o++],v=e[o++],d=e[o++]+v;o+=1;var g=!e[o++];u&&(i=tn(v)*c+l,a=rn(v)*h+f),Uw(l,f,c,h,v,d,g,Wt,Yt),r=tn(d)*c+l,n=rn(d)*h+f;break;case ve.R:i=r=e[o++],a=n=e[o++];var p=e[o++],m=e[o++];$v(i,a,i+p,a+m,Wt,Yt);break;case ve.Z:r=i,n=a;break}ui(Ut,Ut,Wt),li(wr,wr,Yt)}return o===0&&(Ut[0]=Ut[1]=wr[0]=wr[1]=0),new j(Ut[0],Ut[1],wr[0]-Ut[0],wr[1]-Ut[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,f=0,c=0,h=0;h<r;){var v=e[h++],d=h===1;d&&(a=e[h],o=e[h+1],s=a,u=o);var g=-1;switch(v){case ve.M:a=s=e[h++],o=u=e[h++];break;case ve.L:{var p=e[h++],m=e[h++],y=p-a,_=m-o;(nr(y)>n||nr(_)>i||h===r-1)&&(g=Math.sqrt(y*y+_*_),a=p,o=m);break}case ve.C:{var S=e[h++],x=e[h++],p=e[h++],m=e[h++],w=e[h++],T=e[h++];g=$1(a,o,S,x,p,m,w,T,10),a=w,o=T;break}case ve.Q:{var S=e[h++],x=e[h++],p=e[h++],m=e[h++];g=Q1(a,o,S,x,p,m,10),a=p,o=m;break}case ve.A:var C=e[h++],E=e[h++],D=e[h++],M=e[h++],L=e[h++],A=e[h++],O=A+L;h+=1,d&&(s=tn(L)*D+C,u=rn(L)*M+E),g=yl(D,M)*ml(Mr,Math.abs(A)),a=tn(O)*D+C,o=rn(O)*M+E;break;case ve.R:{s=a=e[h++],u=o=e[h++];var I=e[h++],N=e[h++];g=I*2+N*2;break}case ve.Z:{var y=s-a,_=u-o;g=Math.sqrt(y*y+_*_),a=s,o=u;break}}g>=0&&(l[c++]=g,f+=g)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,u,l,f,c,h,v=r<1,d,g,p=0,m=0,y,_=0,S,x;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,y=r*g,!y)))e:for(var w=0;w<o;){var T=n[w++],C=w===1;switch(C&&(l=n[w],f=n[w+1],s=l,u=f),T!==ve.L&&_>0&&(e.lineTo(S,x),_=0),T){case ve.M:s=l=n[w++],u=f=n[w++],e.moveTo(l,f);break;case ve.L:{c=n[w++],h=n[w++];var E=nr(c-l),D=nr(h-f);if(E>i||D>a){if(v){var M=d[m++];if(p+M>y){var L=(y-p)/M;e.lineTo(l*(1-L)+c*L,f*(1-L)+h*L);break e}p+=M}e.lineTo(c,h),l=c,f=h,_=0}else{var A=E*E+D*D;A>_&&(S=c,x=h,_=A)}break}case ve.C:{var O=n[w++],I=n[w++],N=n[w++],V=n[w++],Y=n[w++],K=n[w++];if(v){var M=d[m++];if(p+M>y){var L=(y-p)/M;hs(l,O,N,Y,L,Jr),hs(f,I,V,K,L,en),e.bezierCurveTo(Jr[1],en[1],Jr[2],en[2],Jr[3],en[3]);break e}p+=M}e.bezierCurveTo(O,I,N,V,Y,K),l=Y,f=K;break}case ve.Q:{var O=n[w++],I=n[w++],N=n[w++],V=n[w++];if(v){var M=d[m++];if(p+M>y){var L=(y-p)/M;vs(l,O,N,L,Jr),vs(f,I,V,L,en),e.quadraticCurveTo(Jr[1],en[1],Jr[2],en[2]);break e}p+=M}e.quadraticCurveTo(O,I,N,V),l=N,f=V;break}case ve.A:var Q=n[w++],$=n[w++],ee=n[w++],ne=n[w++],X=n[w++],le=n[w++],pe=n[w++],ut=!n[w++],rr=ee>ne?ee:ne,lt=nr(ee-ne)>.001,ke=X+le,re=!1;if(v){var M=d[m++];p+M>y&&(ke=X+le*(y-p)/M,re=!0),p+=M}if(lt&&e.ellipse?e.ellipse(Q,$,ee,ne,pe,X,ke,ut):e.arc(Q,$,rr,X,ke,ut),re)break e;C&&(s=tn(X)*ee+Q,u=rn(X)*ne+$),l=tn(ke)*ee+Q,f=rn(ke)*ne+$;break;case ve.R:s=l=n[w],u=f=n[w+1],c=n[w++],h=n[w++];var oe=n[w++],Wr=n[w++];if(v){var M=d[m++];if(p+M>y){var $e=y-p;e.moveTo(c,h),e.lineTo(c+ml($e,oe),h),$e-=oe,$e>0&&e.lineTo(c+oe,h+ml($e,Wr)),$e-=Wr,$e>0&&e.lineTo(c+yl(oe-$e,0),h+Wr),$e-=oe,$e>0&&e.lineTo(c,h+yl(Wr-$e,0));break e}p+=M}e.rect(c,h,oe,Wr);break;case ve.Z:if(v){var M=d[m++];if(p+M>y){var L=(y-p)/M;e.lineTo(l*(1-L)+s*L,f*(1-L)+u*L);break e}p+=M}e.closePath(),l=s,f=u}}},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=ve,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})();function Xn(t,e,r,n,i,a,o){if(i===0)return!1;var s=i,u=0,l=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)u=(e-n)/(t-r),l=(t*n-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=u*a-o+l,c=f*f/(u*u+1);return c<=s/2*s/2}function Ww(t,e,r,n,i,a,o,s,u,l,f){if(u===0)return!1;var c=u;if(f>e+c&&f>n+c&&f>a+c&&f>s+c||f<e-c&&f<n-c&&f<a-c&&f<s-c||l>t+c&&l>r+c&&l>i+c&&l>o+c||l<t-c&&l<r-c&&l<i-c&&l<o-c)return!1;var h=Z1(t,e,r,n,i,a,o,s,l,f);return h<=c/2}function Yw(t,e,r,n,i,a,o,s,u){if(o===0)return!1;var l=o;if(u>e+l&&u>n+l&&u>a+l||u<e-l&&u<n-l&&u<a-l||s>t+l&&s>r+l&&s>i+l||s<t-l&&s<r-l&&s<i-l)return!1;var f=K1(t,e,r,n,i,a,s,u);return f<=l/2}var Qv=Math.PI*2;function po(t){return t%=Qv,t<0&&(t+=Qv),t}var Ki=Math.PI*2;function Xw(t,e,r,n,i,a,o,s,u){if(o===0)return!1;var l=o;s-=t,u-=e;var f=Math.sqrt(s*s+u*u);if(f-l>r||f+l<r)return!1;if(Math.abs(n-i)%Ki<1e-4)return!0;if(a){var c=n;n=po(i),i=po(c)}else n=po(n),i=po(i);n>i&&(i+=Ki);var h=Math.atan2(u,s);return h<0&&(h+=Ki),h>=n&&h<=i||h+Ki>=n&&h+Ki<=i}function nn(t,e,r,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var u=o*(r-t)+t;return u===i?1/0:u>i?s:0}var Tr=In.CMD,an=Math.PI*2,Zw=1e-4;function $w(t,e){return Math.abs(t-e)<Zw}var qe=[-1,-1,-1],wt=[-1,-1];function qw(){var t=wt[0];wt[0]=wt[1],wt[1]=t}function Kw(t,e,r,n,i,a,o,s,u,l){if(l>e&&l>n&&l>a&&l>s||l<e&&l<n&&l<a&&l<s)return 0;var f=Fc(e,n,a,s,l,qe);if(f===0)return 0;for(var c=0,h=-1,v=void 0,d=void 0,g=0;g<f;g++){var p=qe[g],m=p===0||p===1?.5:1,y=Ye(t,r,i,o,p);y<u||(h<0&&(h=rm(e,n,a,s,wt),wt[1]<wt[0]&&h>1&&qw(),v=Ye(e,n,a,s,wt[0]),h>1&&(d=Ye(e,n,a,s,wt[1]))),h===2?p<wt[0]?c+=v<e?m:-m:p<wt[1]?c+=d<v?m:-m:c+=s<d?m:-m:p<wt[0]?c+=v<e?m:-m:c+=s<v?m:-m)}return c}function Qw(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var u=q1(e,n,a,s,qe);if(u===0)return 0;var l=nm(e,n,a);if(l>=0&&l<=1){for(var f=0,c=it(e,n,a,l),h=0;h<u;h++){var v=qe[h]===0||qe[h]===1?.5:1,d=it(t,r,i,qe[h]);d<o||(qe[h]<l?f+=c<e?v:-v:f+=a<c?v:-v)}return f}else{var v=qe[0]===0||qe[0]===1?.5:1,d=it(t,r,i,qe[0]);return d<o?0:a<e?v:-v}}function jw(t,e,r,n,i,a,o,s){if(s-=e,s>r||s<-r)return 0;var u=Math.sqrt(r*r-s*s);qe[0]=-u,qe[1]=u;var l=Math.abs(n-i);if(l<1e-4)return 0;if(l>=an-1e-4){n=0,i=an;var f=a?1:-1;return o>=qe[0]+t&&o<=qe[1]+t?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=an,i+=an);for(var h=0,v=0;v<2;v++){var d=qe[v];if(d+t>o){var g=Math.atan2(s,d),f=a?1:-1;g<0&&(g=an+g),(g>=n&&g<=i||g+an>=n&&g+an<=i)&&(g>Math.PI/2&&g<Math.PI*1.5&&(f=-f),h+=f)}}return h}function zm(t,e,r,n,i){for(var a=t.data,o=t.len(),s=0,u=0,l=0,f=0,c=0,h,v,d=0;d<o;){var g=a[d++],p=d===1;switch(g===Tr.M&&d>1&&(r||(s+=nn(u,l,f,c,n,i))),p&&(u=a[d],l=a[d+1],f=u,c=l),g){case Tr.M:f=a[d++],c=a[d++],u=f,l=c;break;case Tr.L:if(r){if(Xn(u,l,a[d],a[d+1],e,n,i))return!0}else s+=nn(u,l,a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case Tr.C:if(r){if(Ww(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=Kw(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case Tr.Q:if(r){if(Yw(u,l,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=Qw(u,l,a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case Tr.A:var m=a[d++],y=a[d++],_=a[d++],S=a[d++],x=a[d++],w=a[d++];d+=1;var T=!!(1-a[d++]);h=Math.cos(x)*_+m,v=Math.sin(x)*S+y,p?(f=h,c=v):s+=nn(u,l,h,v,n,i);var C=(n-m)*S/_+m;if(r){if(Xw(m,y,S,x,x+w,T,e,C,i))return!0}else s+=jw(m,y,S,x,x+w,T,C,i);u=Math.cos(x+w)*_+m,l=Math.sin(x+w)*S+y;break;case Tr.R:f=u=a[d++],c=l=a[d++];var E=a[d++],D=a[d++];if(h=f+E,v=c+D,r){if(Xn(f,c,h,c,e,n,i)||Xn(h,c,h,v,e,n,i)||Xn(h,v,f,v,e,n,i)||Xn(f,v,f,c,e,n,i))return!0}else s+=nn(h,c,h,v,n,i),s+=nn(f,v,f,c,n,i);break;case Tr.Z:if(r){if(Xn(u,l,f,c,e,n,i))return!0}else s+=nn(u,l,f,c,n,i);u=f,l=c;break}}return!r&&!$w(l,c)&&(s+=nn(u,l,f,c,n,i)||0),s!==0}function Jw(t,e,r){return zm(t,0,!1,e,r)}function eT(t,e,r,n){return zm(t,e,!0,r,n)}var Hm=ge({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Dn),tT={style:ge({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},hu.style)},xl=Za.concat(["invisible","culling","z","z2","zlevel","parent"]),we=(function(t){z(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 n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(u){r.buildPath(u,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<xl.length;++s)i[xl[s]]=this[xl[s]];i.__dirty|=at}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=Se(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?k(this.style,s):this.useStyle(s):o==="shape"?k(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(H(r)){var n=ps(r,0);return n>.5?Mf:n>.2?xx:Af}else if(r)return Af}return Mf},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(H(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=ps(r,0)<Ef;if(a===o)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~oi},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 In(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&oi)&&(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||i){s.copy(r);var u=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;l=Math.max(l,f??4)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return r},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),eT(s,u/l,r,n)))return!0}if(this.hasFill())return Jw(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=oi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:k(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&oi)},e.prototype.createStyle=function(r){return iu(Hm,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=k({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){if(t.prototype._applyStateObj.call(this,r,n,i,a,o,s),this.__inHover!==ou){var u=!(n&&a),l;if(n&&n.shape?o?a?l=n.shape:(l=k({},i.shape),k(l,n.shape)):(l=k({},a?this.shape:i.shape),k(l,n.shape)):u&&(l=i.shape),l)if(o){this.shape=k({},this.shape);for(var f={},c=Se(l),h=0;h<c.length;h++){var v=c[h];typeof l[v]=="object"?this.shape[v]=l[v]:f[v]=l[v]}this._transitionState(r,{shape:f},s)}else this.shape=l,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return tT},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=(function(a){z(o,a);function o(s){var u=a.call(this,s)||this;return r.init&&r.init.call(u,s),u}return o.prototype.getDefaultStyle=function(){return ae(r.style)},o.prototype.getDefaultShape=function(){return ae(r.shape)},o})(e);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=at|ha|oi})(),e})(zi),rT=ge({strokeFirst:!0,font:kr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Hm),xs=(function(t){z(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return Fm(this.style)},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return iu(rT,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=Fw(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(zi);xs.prototype.type="tspan";var nT=ge({x:0,y:0},Dn),iT={style:ge({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},hu.style)};function aT(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Gr=(function(t){z(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return iu(nT,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=aT(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return iT},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new j(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(zi);Gr.prototype.type="image";function oT(t,e){var r=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,u,l,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=u=l=f=o:o instanceof Array?o.length===1?s=u=l=f=o[0]:o.length===2?(s=l=o[0],u=f=o[1]):o.length===3?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0;var c;s+u>i&&(c=s+u,s*=i/c,u*=i/c),l+f>i&&(c=l+f,l*=i/c,f*=i/c),u+l>a&&(c=u+l,u*=a/c,l*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,n),t.lineTo(r+i-u,n),u!==0&&t.arc(r+i-u,n+u,u,-Math.PI/2,0),t.lineTo(r+i,n+a-l),l!==0&&t.arc(r+i-l,n+a-l,l,0,Math.PI/2),t.lineTo(r+f,n+a),f!==0&&t.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5),t.closePath()}var hi=Math.round;function Gm(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(hi(n*2)===hi(i*2)&&(t.x1=t.x2=Sn(n,s,!0)),hi(a*2)===hi(o*2)&&(t.y1=t.y2=Sn(a,s,!0))),t}}function Um(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=Sn(n,s,!0),t.y=Sn(i,s,!0),t.width=Math.max(Sn(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(Sn(i+o,s,!1)-t.y,o===0?0:1)),t}}function Sn(t,e,r){if(!e)return t;var n=hi(t*2);return(n+hi(e))%2===0?n/2:(n+(r?1:-1))/2}var sT=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})(),uT={},Le=(function(t){z(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new sT},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var u=Um(uT,n,this.style);i=u.x,a=u.y,o=u.width,s=u.height,u.r=n.r,n=u}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?oT(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(we);Le.prototype.type="rect";var jv={fill:"#000"},Jv=2,Xt={},lT={style:ge({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},hu.style)},Xe=(function(t){z(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=jv,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,dT(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 n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new j(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],u=s.getBoundingRect(),l=s.getLocalTransform(i);l?(r.copy(u),r.applyTransform(l),a=a||r.clone(),a.union(r)):(a=a||u.clone(),a.union(u))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||jv},e.prototype.setTextContent=function(r){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return k(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,n){for(var i=Se(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},k(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return lT},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||kr,i=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,u=r.align||a.align||"left",l=r.verticalAlign||a.verticalAlign||"top";Wv(Xt,a.overflowRect,o,s,u,l),o=Xt.baseX,s=Xt.baseY;var f=od(r),c=Ow(f,r,Xt.outerWidth,Xt.outerHeight),h=wl(r),v=!!r.backgroundColor,d=c.outerHeight,g=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=Cn(s,c.contentHeight,l);if(h||i){var S=Ti(o,g,u),x=Cn(s,d,l);h&&this._renderBackground(r,r,S,x,g,d)}_+=m/2,i&&(y=ad(o,u,i),l==="top"?_+=i[0]:l==="bottom"&&(_-=i[2]));for(var w=0,T=!1,C=!1,E=id("fill"in r?r.fill:(C=!0,a.fill)),D=nd("stroke"in r?r.stroke:!v&&(!a.autoStroke||C)?(w=Jv,T=!0,a.stroke):null),M=r.textShadowBlur>0,L=0;L<p.length;L++){var A=this._getOrCreateChild(xs),O=A.createStyle();A.useStyle(O),O.text=p[L],O.x=y,O.y=_,O.textAlign=u,O.textBaseline="middle",O.opacity=r.opacity,O.strokeFirst=!0,M&&(O.shadowBlur=r.textShadowBlur||0,O.shadowColor=r.textShadowColor||"transparent",O.shadowOffsetX=r.textShadowOffsetX||0,O.shadowOffsetY=r.textShadowOffsetY||0),O.stroke=D,O.fill=E,D&&(O.lineWidth=r.lineWidth||w,O.lineDash=r.lineDash,O.lineDashOffset=r.lineDashOffset||0),O.font=n,td(O,r),_+=m,A.setBoundingRect(Rf(O,c.contentWidth,c.calculatedLineHeight,T?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;Wv(Xt,n.overflowRect,o,s,i,a),o=Xt.baseX,s=Xt.baseY;var u=od(r),l=Nw(u,r,Xt.outerWidth,Xt.outerHeight,i),f=l.width,c=l.outerWidth,h=l.outerHeight,v=r.padding;this.isTruncated=!!l.isTruncated;var d=Ti(o,c,i),g=Cn(s,h,a),p=d,m=g;v&&(p+=v[3],m+=v[0]);var y=p+f;wl(r)&&this._renderBackground(r,r,d,g,c,h);for(var _=!!r.backgroundColor,S=0;S<l.lines.length;S++){for(var x=l.lines[S],w=x.tokens,T=w.length,C=x.lineHeight,E=x.width,D=0,M=p,L=y,A=T-1,O=void 0;D<T&&(O=w[D],!O.align||O.align==="left");)this._placeToken(O,r,C,m,M,"left",_),E-=O.width,M+=O.width,D++;for(;A>=0&&(O=w[A],O.align==="right");)this._placeToken(O,r,C,m,L,"right",_),E-=O.width,L-=O.width,A--;for(M+=(f-(M-p)-(y-L)-E)/2;D<=A;)O=w[D],this._placeToken(O,r,C,m,M+O.width/2,"center",_),M+=O.width,D++;m+=C}},e.prototype._placeToken=function(r,n,i,a,o,s,u){var l=n.rich[r.styleName]||{};l.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var h=!r.isLineHolder&&wl(l);h&&this._renderBackground(l,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var v=!!l.backgroundColor,d=r.textPadding;d&&(o=ad(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var g=this._getOrCreateChild(xs),p=g.createStyle();g.useStyle(p);var m=this._defaultStyle,y=!1,_=0,S=!1,x=id("fill"in l?l.fill:"fill"in n?n.fill:(y=!0,m.fill)),w=nd("stroke"in l?l.stroke:"stroke"in n?n.stroke:!v&&!u&&(!m.autoStroke||y)?(_=Jv,S=!0,m.stroke):null),T=l.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=c,T&&(p.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,p.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||kr,p.opacity=fr(l.opacity,n.opacity,1),td(p,l),w&&(p.lineWidth=fr(l.lineWidth,n.lineWidth,_),p.lineDash=U(l.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=w),x&&(p.fill=x),g.setBoundingRect(Rf(p,r.contentWidth,r.contentHeight,S?0:null))},e.prototype._renderBackground=function(r,n,i,a,o,s){var u=r.backgroundColor,l=r.borderWidth,f=r.borderColor,c=u&&u.image,h=u&&!c,v=r.borderRadius,d=this,g,p;if(h||r.lineHeight||l&&f){g=this._getOrCreateChild(Le),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=v,g.dirtyShape()}if(h){var y=g.style;y.fill=u||null,y.fillOpacity=U(r.fillOpacity,1)}else if(c){p=this._getOrCreateChild(Gr),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=u.image,_.x=i,_.y=a,_.width=o,_.height=s}if(l&&f){var y=g.style;y.lineWidth=l,y.stroke=f,y.strokeOpacity=U(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var S=(g||p).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=fr(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return vT(r)&&(n=[r.fontStyle,r.fontWeight,hT(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&qt(n)||r.textFont||r.font},e})(zi),fT={left:!0,right:1,center:1},cT={top:1,bottom:1,middle:1},ed=["fontStyle","fontWeight","fontSize","fontFamily"];function hT(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?Ac+"px":t+"px"}function td(t,e){for(var r=0;r<ed.length;r++){var n=ed[r],i=e[n];i!=null&&(t[n]=i)}}function vT(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function dT(t){return rd(t),b(t.rich,rd),t}function rd(t){if(t){t.font=Xe.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||fT[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||cT[r]?r:"top";var n=t.padding;n&&(t.padding=Pc(t.padding))}}function nd(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function id(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function ad(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function od(t){var e=t.text;return e!=null&&(e+=""),e}function wl(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var _e=ye(),Wm=function(t,e,r,n){if(n){var i=_e(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=_e(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},Hi="undefined",Ym="series",Ff=Z(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),dt="original",Ze="arrayRows",Lt="objectRows",zt="keyedColumns",cr="typedArray",Xm="unknown",Jt="column",Fn="row",pT=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Zm=(function(){function t(e){b(pT,function(r){this[r]=Te(e[r],e)},this)}return t})();function gT(t,e){return e.mainType===Ym?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var sd=1,ud={},$m=ye(),Qc=ye(),jc=0,vu=1,du=2,yr=["emphasis","blur","select"],Vf=["normal","emphasis","blur","select"],mT=10,yT=9,En="highlight",qo="downplay",ws="select",zf="unselect",Ts="toggleSelect",Jc="selectchanged";function Zn(t){return t!=null&&t!=="none"}function pu(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function qm(t){pu(t,"emphasis",du)}function Km(t){t.hoverState===du&&pu(t,"normal",jc)}function eh(t){pu(t,"blur",vu)}function Qm(t){t.hoverState===vu&&pu(t,"normal",jc)}function _T(t){t.selected=!0}function ST(t){t.selected=!1}function ld(t,e,r){e(t,r)}function xr(t,e,r){ld(t,e,r),t.isGroup&&t.traverse(function(n){ld(n,e,r)})}function xT(t,e){switch(e){case"emphasis":t.hoverState=du;break;case"normal":t.hoverState=jc;break;case"blur":t.hoverState=vu;break;case"select":t.selected=!0}}function wT(t,e,r,n){for(var i=t.style,a={},o=0;o<e.length;o++){var s=e[o],u=i[s];a[s]=u??(n&&n[s])}for(var o=0;o<t.animators.length;o++){var l=t.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(r)<0&&l.targetName==="style"&&l.saveTo(a,e)}return a}function TT(t,e,r,n){var i=r&&he(r,"select")>=0,a=!1;if(t instanceof we){var o=$m(t),s=i&&o.selectFill||o.normalFill,u=i&&o.selectStroke||o.normalStroke;if(Zn(s)||Zn(u)){n=n||{};var l=n.style||{};l.fill==="inherit"?(a=!0,n=k({},n),l=k({},l),l.fill=s):!Zn(l.fill)&&Zn(s)?(a=!0,n=k({},n),l=k({},l),l.fill=_v(s)):!Zn(l.stroke)&&Zn(u)&&(a||(n=k({},n),l=k({},l)),l.stroke=_v(u)),n.style=l}}if(n&&n.z2==null){a||(n=k({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f??mT)}return n}function bT(t,e,r){if(r&&r.z2==null){r=k({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??yT)}return r}function CT(t,e,r){var n=he(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:wT(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=k({},r),o=k({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Tl(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return TT(this,t,e,r);if(t==="blur")return CT(this,t,r);if(t==="select")return bT(this,t,r)}return r}function jm(t){t.stateProxy=Tl;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=Tl),r&&(r.stateProxy=Tl)}function fd(t,e){!ry(t,e)&&!t.__highByOuter&&xr(t,qm)}function cd(t,e){!ry(t,e)&&!t.__highByOuter&&xr(t,Km)}function bs(t,e){t.__highByOuter|=1<<(e||0),xr(t,qm)}function Cs(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&xr(t,Km)}function DT(t){xr(t,eh)}function Jm(t){xr(t,Qm)}function ey(t){xr(t,_T)}function ty(t){xr(t,ST)}function ry(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function ny(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=Qc(a),s=gT(t,a),u=i==="series";!u&&n.push(s),o.isBlured&&(s.group.traverse(function(l){Qm(l)}),u&&r.push(a)),o.isBlured=!1}),b(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function Hf(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(l,f){for(var c=0;c<f.length;c++){var h=l.getItemGraphicEl(f[c]);h&&Jm(h)}}if(t!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];i.eachSeries(function(l){var f=o===l,c=l.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!h||e==="series"&&f)){var v=n.getViewOfSeriesModel(l);if(v.group.traverse(function(p){p.__highByOuter&&f&&e==="self"||eh(p)}),Je(e))a(l.getData(),e);else if(W(e))for(var d=Se(e),g=0;g<d.length;g++)a(l.getData(d[g]),e[d[g]]);u.push(l),Qc(l).isBlured=!0}}),i.eachComponent(function(l,f){if(l!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(u,!0,i)}})}}function Gf(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){Qc(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){eh(a)})}}}function ET(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(!i){process.env.NODE_ENV!=="production"&&ce("Unknown dataType "+e.dataType);return}var a=Fi(i,e);a=(F(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),u=0;!o&&u<s;)o=i.getItemGraphicEl(u++);if(o){var l=_e(o);Hf(n,l.focus,l.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&Hf(n,f,c,r)}}function th(t,e,r,n){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return i;var a=n.getModel().getComponent(t,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),u,l=0;l<s.length;l++)if(process.env.NODE_ENV!=="production"&&!Di(s[l])&&ce("param should be highDownDispatcher"),_e(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function MT(t,e,r){process.env.NODE_ENV!=="production"&&!Di(t)&&ce("param should be highDownDispatcher");var n=_e(t),i=th(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&Gf(n.componentMainType,n.componentIndex,r),b(a,function(s){return fd(s,e)})):(Hf(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Gf(n.componentMainType,n.componentIndex,r),fd(t,e))}function AT(t,e,r){process.env.NODE_ENV!=="production"&&!Di(t)&&ce("param should be highDownDispatcher"),ny(r);var n=_e(t),i=th(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?b(i,function(a){return cd(a,e)}):cd(t,e)}function LT(t,e,r){if(Uf(e)){var n=e.dataType,i=t.getData(n),a=Fi(i,e);F(a)||(a=[a]),t[e.type===Ts?"toggleSelect":e.type===ws?"select":"unselect"](a,n)}}function hd(t){var e=t.getAllData();b(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?ey(a):ty(a)})})}function OT(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();b(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function Ds(t,e,r){rh(t,!0),xr(t,jm),NT(t,e,r)}function IT(t){rh(t,!1)}function PT(t,e,r,n){n?IT(t):Ds(t,e,r)}function NT(t,e,r){var n=_e(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var vd=["emphasis","blur","select"],RT={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function kT(t,e,r,n){r=r||"itemStyle";for(var i=0;i<vd.length;i++){var a=vd[i],o=e.getModel([a,r]),s=t.ensureState(a);s.style=o[RT[r]]()}}function rh(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Di(t){return!!(t&&t.__highDownDispatcher)}function BT(t){var e=ud[t];return e==null&&sd<=32&&(e=ud[t]=sd++),e}function Uf(t){var e=t.type;return e===ws||e===zf||e===Ts}function dd(t){var e=t.type;return e===En||e===qo}function FT(t){var e=$m(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 $n=In.CMD,VT=[[],[],[]],pd=Math.sqrt,zT=Math.atan2;function HT(t,e){if(e){var r=t.data,n=t.len(),i,a,o,s,u,l,f=$n.M,c=$n.C,h=$n.L,v=$n.R,d=$n.A,g=$n.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case h:a=1;break;case c:a=3;break;case g:a=2;break;case d:var p=e[4],m=e[5],y=pd(e[0]*e[0]+e[1]*e[1]),_=pd(e[2]*e[2]+e[3]*e[3]),S=zT(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=p,r[o]*=_,r[o++]+=m,r[o++]*=y,r[o++]*=_,r[o++]+=S,r[o++]+=S,o+=2,s=o;break;case v:l[0]=r[o++],l[1]=r[o++],ht(l,l,e),r[s++]=l[0],r[s++]=l[1],l[0]+=r[o++],l[1]+=r[o++],ht(l,l,e),r[s++]=l[0],r[s++]=l[1]}for(u=0;u<a;u++){var x=VT[u];x[0]=r[o++],x[1]=r[o++],ht(x,x,e),r[s++]=x[0],r[s++]=x[1]}}t.increaseVersion()}}var bl=Math.sqrt,go=Math.sin,mo=Math.cos,Qi=Math.PI;function gd(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Wf(t,e){return(t[0]*e[0]+t[1]*e[1])/(gd(t)*gd(e))}function md(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Wf(t,e))}function yd(t,e,r,n,i,a,o,s,u,l,f){var c=u*(Qi/180),h=mo(c)*(t-r)/2+go(c)*(e-n)/2,v=-1*go(c)*(t-r)/2+mo(c)*(e-n)/2,d=h*h/(o*o)+v*v/(s*s);d>1&&(o*=bl(d),s*=bl(d));var g=(i===a?-1:1)*bl((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,p=g*o*v/s,m=g*-s*h/o,y=(t+r)/2+mo(c)*p-go(c)*m,_=(e+n)/2+go(c)*p+mo(c)*m,S=md([1,0],[(h-p)/o,(v-m)/s]),x=[(h-p)/o,(v-m)/s],w=[(-1*h-p)/o,(-1*v-m)/s],T=md(x,w);if(Wf(x,w)<=-1&&(T=Qi),Wf(x,w)>=1&&(T=0),T<0){var C=Math.round(T/Qi*1e6)/1e6;T=Qi*2+C%2*Qi}f.addData(l,y,_,o,s,S,T,c,a)}var GT=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,UT=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function WT(t){var e=new In;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=In.CMD,u=t.match(GT);if(!u)return e;for(var l=0;l<u.length;l++){for(var f=u[l],c=f.charAt(0),h=void 0,v=f.match(UT)||[],d=v.length,g=0;g<d;g++)v[g]=parseFloat(v[g]);for(var p=0;p<d;){var m=void 0,y=void 0,_=void 0,S=void 0,x=void 0,w=void 0,T=void 0,C=r,E=n,D=void 0,M=void 0;switch(c){case"l":r+=v[p++],n+=v[p++],h=s.L,e.addData(h,r,n);break;case"L":r=v[p++],n=v[p++],h=s.L,e.addData(h,r,n);break;case"m":r+=v[p++],n+=v[p++],h=s.M,e.addData(h,r,n),i=r,a=n,c="l";break;case"M":r=v[p++],n=v[p++],h=s.M,e.addData(h,r,n),i=r,a=n,c="L";break;case"h":r+=v[p++],h=s.L,e.addData(h,r,n);break;case"H":r=v[p++],h=s.L,e.addData(h,r,n);break;case"v":n+=v[p++],h=s.L,e.addData(h,r,n);break;case"V":n=v[p++],h=s.L,e.addData(h,r,n);break;case"C":h=s.C,e.addData(h,v[p++],v[p++],v[p++],v[p++],v[p++],v[p++]),r=v[p-2],n=v[p-1];break;case"c":h=s.C,e.addData(h,v[p++]+r,v[p++]+n,v[p++]+r,v[p++]+n,v[p++]+r,v[p++]+n),r+=v[p-2],n+=v[p-1];break;case"S":m=r,y=n,D=e.len(),M=e.data,o===s.C&&(m+=r-M[D-4],y+=n-M[D-3]),h=s.C,C=v[p++],E=v[p++],r=v[p++],n=v[p++],e.addData(h,m,y,C,E,r,n);break;case"s":m=r,y=n,D=e.len(),M=e.data,o===s.C&&(m+=r-M[D-4],y+=n-M[D-3]),h=s.C,C=r+v[p++],E=n+v[p++],r+=v[p++],n+=v[p++],e.addData(h,m,y,C,E,r,n);break;case"Q":C=v[p++],E=v[p++],r=v[p++],n=v[p++],h=s.Q,e.addData(h,C,E,r,n);break;case"q":C=v[p++]+r,E=v[p++]+n,r+=v[p++],n+=v[p++],h=s.Q,e.addData(h,C,E,r,n);break;case"T":m=r,y=n,D=e.len(),M=e.data,o===s.Q&&(m+=r-M[D-4],y+=n-M[D-3]),r=v[p++],n=v[p++],h=s.Q,e.addData(h,m,y,r,n);break;case"t":m=r,y=n,D=e.len(),M=e.data,o===s.Q&&(m+=r-M[D-4],y+=n-M[D-3]),r+=v[p++],n+=v[p++],h=s.Q,e.addData(h,m,y,r,n);break;case"A":_=v[p++],S=v[p++],x=v[p++],w=v[p++],T=v[p++],C=r,E=n,r=v[p++],n=v[p++],h=s.A,yd(C,E,r,n,w,T,_,S,x,h,e);break;case"a":_=v[p++],S=v[p++],x=v[p++],w=v[p++],T=v[p++],C=r,E=n,r+=v[p++],n+=v[p++],h=s.A,yd(C,E,r,n,w,T,_,S,x,h,e);break}}(c==="z"||c==="Z")&&(h=s.Z,e.addData(h),r=i,n=a),o=h}return e.toStatic(),e}var iy=(function(t){z(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(we);function ay(t){return t.setData!=null}function oy(t,e){var r=WT(t),n=k({},e);return n.buildPath=function(i){var a=ay(i);if(a&&i.canSave()){i.appendPath(r);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&r.rebuildPath(o,1)}},n.applyTransform=function(i){HT(r,i),this.dirtyShape()},n}function YT(t,e){return new iy(oy(t,e))}function XT(t,e){var r=oy(t,e),n=(function(i){z(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(iy);return n}function ZT(t,e){for(var r=[],n=t.length,i=0;i<n;i++){var a=t[i];r.push(a.getUpdatedPathProxy(!0))}var o=new we(e);return o.createPathProxy(),o.buildPath=function(s){if(ay(s)){s.appendPath(r);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}var $T=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})(),qa=(function(t){z(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new $T},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e})(we);qa.prototype.type="circle";var qT=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})(),nh=(function(t){z(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new qT},e.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,u=n.ry,l=s*i,f=u*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-l,o-u,a,o-u),r.bezierCurveTo(a+l,o-u,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+l,o+u,a,o+u),r.bezierCurveTo(a-l,o+u,a-s,o+f,a-s,o),r.closePath()},e})(we);nh.prototype.type="ellipse";var sy=Math.PI,Cl=sy*2,on=Math.sin,qn=Math.cos,KT=Math.acos,Ge=Math.atan2,_d=Math.abs,Ca=Math.sqrt,pa=Math.max,Zt=Math.min,Ot=1e-4;function QT(t,e,r,n,i,a,o,s){var u=r-t,l=n-e,f=o-i,c=s-a,h=c*u-f*l;if(!(h*h<Ot))return h=(f*(e-a)-c*(t-i))/h,[t+h*u,e+h*l]}function yo(t,e,r,n,i,a,o){var s=t-r,u=e-n,l=(o?a:-a)/Ca(s*s+u*u),f=l*u,c=-l*s,h=t+f,v=e+c,d=r+f,g=n+c,p=(h+d)/2,m=(v+g)/2,y=d-h,_=g-v,S=y*y+_*_,x=i-a,w=h*g-d*v,T=(_<0?-1:1)*Ca(pa(0,x*x*S-w*w)),C=(w*_-y*T)/S,E=(-w*y-_*T)/S,D=(w*_+y*T)/S,M=(-w*y+_*T)/S,L=C-p,A=E-m,O=D-p,I=M-m;return L*L+A*A>O*O+I*I&&(C=D,E=M),{cx:C,cy:E,x0:-f,y0:-c,x1:C*(i/x-1),y1:E*(i/x-1)}}function jT(t){var e;if(F(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function JT(t,e){var r,n=pa(e.r,0),i=pa(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var u=e.startAngle,l=e.endAngle;if(!(isNaN(u)||isNaN(l))){var f=e.cx,c=e.cy,h=!!e.clockwise,v=_d(l-u),d=v>Cl&&v%Cl;if(d>Ot&&(v=d),!(n>Ot))t.moveTo(f,c);else if(v>Cl-Ot)t.moveTo(f+n*qn(u),c+n*on(u)),t.arc(f,c,n,u,l,!h),i>Ot&&(t.moveTo(f+i*qn(l),c+i*on(l)),t.arc(f,c,i,l,u,h));else{var g=void 0,p=void 0,m=void 0,y=void 0,_=void 0,S=void 0,x=void 0,w=void 0,T=void 0,C=void 0,E=void 0,D=void 0,M=void 0,L=void 0,A=void 0,O=void 0,I=n*qn(u),N=n*on(u),V=i*qn(l),Y=i*on(l),K=v>Ot;if(K){var Q=e.cornerRadius;Q&&(r=jT(Q),g=r[0],p=r[1],m=r[2],y=r[3]);var $=_d(n-i)/2;if(_=Zt($,m),S=Zt($,y),x=Zt($,g),w=Zt($,p),E=T=pa(_,S),D=C=pa(x,w),(T>Ot||C>Ot)&&(M=n*qn(l),L=n*on(l),A=i*qn(u),O=i*on(u),v<sy)){var ee=QT(I,N,A,O,M,L,V,Y);if(ee){var ne=I-ee[0],X=N-ee[1],le=M-ee[0],pe=L-ee[1],ut=1/on(KT((ne*le+X*pe)/(Ca(ne*ne+X*X)*Ca(le*le+pe*pe)))/2),rr=Ca(ee[0]*ee[0]+ee[1]*ee[1]);E=Zt(T,(n-rr)/(ut+1)),D=Zt(C,(i-rr)/(ut-1))}}}if(!K)t.moveTo(f+I,c+N);else if(E>Ot){var lt=Zt(m,E),ke=Zt(y,E),re=yo(A,O,I,N,n,lt,h),oe=yo(M,L,V,Y,n,ke,h);t.moveTo(f+re.cx+re.x0,c+re.cy+re.y0),E<T&<===ke?t.arc(f+re.cx,c+re.cy,E,Ge(re.y0,re.x0),Ge(oe.y0,oe.x0),!h):(lt>0&&t.arc(f+re.cx,c+re.cy,lt,Ge(re.y0,re.x0),Ge(re.y1,re.x1),!h),t.arc(f,c,n,Ge(re.cy+re.y1,re.cx+re.x1),Ge(oe.cy+oe.y1,oe.cx+oe.x1),!h),ke>0&&t.arc(f+oe.cx,c+oe.cy,ke,Ge(oe.y1,oe.x1),Ge(oe.y0,oe.x0),!h))}else t.moveTo(f+I,c+N),t.arc(f,c,n,u,l,!h);if(!(i>Ot)||!K)t.lineTo(f+V,c+Y);else if(D>Ot){var lt=Zt(g,D),ke=Zt(p,D),re=yo(V,Y,M,L,i,-ke,h),oe=yo(I,N,A,O,i,-lt,h);t.lineTo(f+re.cx+re.x0,c+re.cy+re.y0),D<C&<===ke?t.arc(f+re.cx,c+re.cy,D,Ge(re.y0,re.x0),Ge(oe.y0,oe.x0),!h):(ke>0&&t.arc(f+re.cx,c+re.cy,ke,Ge(re.y0,re.x0),Ge(re.y1,re.x1),!h),t.arc(f,c,i,Ge(re.cy+re.y1,re.cx+re.x1),Ge(oe.cy+oe.y1,oe.cx+oe.x1),h),lt>0&&t.arc(f+oe.cx,c+oe.cy,lt,Ge(oe.y1,oe.x1),Ge(oe.y0,oe.x0),!h))}else t.lineTo(f+V,c+Y),t.arc(f,c,i,l,u,h)}t.closePath()}}}var eb=(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})(),Ka=(function(t){z(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new eb},e.prototype.buildPath=function(r,n){JT(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(we);Ka.prototype.type="sector";var tb=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})(),gu=(function(t){z(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new tb},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},e})(we);gu.prototype.type="ring";function rb(t,e,r,n){var i=[],a=[],o=[],s=[],u,l,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var h=0,v=t.length;h<v;h++)ui(f,f,t[h]),li(c,c,t[h]);ui(f,f,n[0]),li(c,c,n[1])}for(var h=0,v=t.length;h<v;h++){var d=t[h];if(r)u=t[h?h-1:v-1],l=t[(h+1)%v];else if(h===0||h===v-1){i.push(s1(t[h]));continue}else u=t[h-1],l=t[h+1];u1(a,l,u),zu(a,a,e);var g=hf(d,u),p=hf(d,l),m=g+p;m!==0&&(g/=m,p/=m),zu(o,a,-g),zu(s,a,p);var y=rv([],d,o),_=rv([],d,s);n&&(li(y,y,f),ui(y,y,c),li(_,_,f),ui(_,_,c)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function uy(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=rb(i,n,r,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var u=a[s*2],l=a[s*2+1],f=i[(s+1)%o];t.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)t.lineTo(i[s][0],i[s][1])}r&&t.closePath()}}var nb=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})(),mu=(function(t){z(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new nb},e.prototype.buildPath=function(r,n){uy(r,n,!0)},e})(we);mu.prototype.type="polygon";var ib=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})(),yu=(function(t){z(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 ib},e.prototype.buildPath=function(r,n){uy(r,n,!1)},e})(we);yu.prototype.type="polyline";var ab={},ob=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})(),_r=(function(t){z(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 ob},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var u=Gm(ab,n,this.style);i=u.x1,a=u.y1,o=u.x2,s=u.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var l=n.percent;l!==0&&(r.moveTo(i,a),l<1&&(o=i*(1-l)+o*l,s=a*(1-l)+s*l),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e})(we);_r.prototype.type="line";var tt=[],sb=(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 Sd(t,e,r){var n=t.cpx2,i=t.cpy2;return n!=null||i!=null?[(r?dv:Ye)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?dv:Ye)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?pv:it)(t.x1,t.cpx1,t.x2,e),(r?pv:it)(t.y1,t.cpy1,t.y2,e)]}var ih=(function(t){z(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 sb},e.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,u=n.cpx1,l=n.cpy1,f=n.cpx2,c=n.cpy2,h=n.percent;h!==0&&(r.moveTo(i,a),f==null||c==null?(h<1&&(vs(i,u,o,h,tt),u=tt[1],o=tt[2],vs(a,l,s,h,tt),l=tt[1],s=tt[2]),r.quadraticCurveTo(u,l,o,s)):(h<1&&(hs(i,u,f,o,h,tt),u=tt[1],f=tt[2],o=tt[3],hs(a,l,c,s,h,tt),l=tt[1],c=tt[2],s=tt[3]),r.bezierCurveTo(u,l,f,c,o,s)))},e.prototype.pointAt=function(r){return Sd(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=Sd(this.shape,r,!0);return c1(n,n)},e})(we);ih.prototype.type="bezier-curve";var ub=(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})(),_u=(function(t){z(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 ub},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,u=n.endAngle,l=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+i,c*o+a),r.arc(i,a,o,s,u,!l)},e})(we);_u.prototype.type="arc";var ly=(function(t){z(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),we.prototype.getBoundingRect.call(this)},e})(we),fy=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),cy=(function(t){z(e,t);function e(r,n,i,a,o,s){var u=t.call(this,o)||this;return u.x=r??0,u.y=n??0,u.x2=i??1,u.y2=a??0,u.type="linear",u.global=s||!1,u}return e})(fy),lb=(function(t){z(e,t);function e(r,n,i,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return e})(fy),Dl=Math.min,fb=Math.max,_o=Math.abs,sn=[0,0],un=[0,0],Re=qg(),So=Re.minTv,xo=Re.maxTv,hy=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new me;for(var n=0;n<2;n++)this._axes[n]=new me;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,u=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,u),n[3].set(a,u),r)for(var l=0;l<4;l++)n[l].transform(r);me.sub(i[0],n[1],n[0]),me.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(e,r,n){var i=!0,a=!r;return r&&me.set(r,0,0),Re.reset(n,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a)||!a&&!Re.negativeSize&&me.copy(r,i?Re.useDir?Re.dirMinTv:So:xo),i},t.prototype._intersectCheckOneSide=function(e,r,n,i){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,sn),e._getProjMinMaxOnAxis(o,r._corners,un),Re.negativeSize||sn[1]<un[0]||sn[0]>un[1]){if(a=!1,Re.negativeSize||n)return a;var u=_o(un[0]-sn[1]),l=_o(sn[0]-un[1]);Dl(u,l)>xo.len()&&(u<l?me.scale(xo,s,-u*i):me.scale(xo,s,l*i))}else if(!n){var u=_o(un[0]-sn[1]),l=_o(sn[0]-un[1]);(Re.useDir||Dl(u,l)<So.len())&&((u<l||!Re.bidirectional)&&(me.scale(So,s,u*i),Re.useDir&&Re.calcDirMTV()),(u>=l||!Re.bidirectional)&&(me.scale(So,s,-l*i),Re.useDir&&Re.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var i=this._axes[e],a=this._origin,o=r[0].dot(i)+a[e],s=o,u=o,l=1;l<r.length;l++){var f=r[l].dot(i)+a[e];s=Dl(f,s),u=fb(f,u)}n[0]=s+Re.touchThreshold,n[1]=u-Re.touchThreshold,Re.negativeSize=n[1]<n[0]},t})(),vy=0,cb=1,hb=2,vb=1,Ko=0,db=[],pb=(function(t){z(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=cb,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,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,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new j(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(db)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},e})(zi),gb=ye();function dy(t,e,r,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),u=t==="update";if(s){var l=void 0,f=void 0,c=void 0;n?(l=U(n.duration,200),f=U(n.easing,"cubicOut"),c=0):(l=e.getShallow(u?"animationDurationUpdate":"animationDuration"),f=e.getShallow(u?"animationEasingUpdate":"animationEasing"),c=e.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),J(c)&&(c=c(r,i)),J(l)&&(l=l(r));var h={duration:l||0,delay:c,easing:f};return h}else return null}function ah(t,e,r,n,i,a,o){var s=!1,u;J(i)?(o=a,a=i,i=null):W(i)&&(a=i.cb,o=i.during,s=i.isFrom,u=i.removeOpt,i=i.dataIndex);var l=t==="leave";l||e.stopAnimation("leave");var f=dy(t,n,i,l?u||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:a,force:!!a||!!o,setToFinal:!l,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function Gi(t,e,r,n,i,a){ah("update",t,e,r,n,i,a)}function Qa(t,e,r,n,i,a){ah("enter",t,e,r,n,i,a)}function Da(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 oh(t,e,r,n,i,a){Da(t)||ah("leave",t,e,r,n,i,a)}function xd(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),oh(t,{style:{opacity:0}},e,r,n)}function py(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||xd(i,e,r,n)}):xd(t,e,r,n)}function mb(t){gb(t).oldStyle=t.style}var Yf={},Lr=["x","y"],Ei=["width","height"],gy=0,my=1,sh=2;function yb(t){return we.extend(t)}var _b=XT;function Sb(t,e){return _b(t,e)}function Ht(t,e){Yf[t]=e}function yy(t){if(Yf.hasOwnProperty(t))return Yf[t]}function Su(t,e,r,n){var i=YT(t,e);return r&&(n==="center"&&(r=Sy(r,i.getBoundingRect())),wy(i,r)),i}function _y(t,e,r){var n=new Gr({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(Sy(e,a))}}});return n}function Sy(t,e){var r=e.width/e.height,n=t.height*r,i;n<=t.width?i=t.height:(n=t.width,i=n/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var xy=ZT;function wy(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function ka(t,e){return Gm(t,t,{lineWidth:e}),t}function xb(t,e){return Um(t,t,e),t}var wb=Sn;function Ty(t,e){for(var r=Ya([]);t&&t!==e;)Sa(r,t.getLocalTransform(),r),t=t.parent;return r}function xu(t,e,r){return e&&!Je(e)&&(e=kn.getLocalTransform(e)),r&&(e=Xa([],e)),ht([],t,e)}function by(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Ae(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Ae(2*e[4]/e[2]),a=[t==="left"?-n:t==="right"?n:0,t==="top"?-i:t==="bottom"?i:0];return a=xu(a,e,r),Ae(a[0])>Ae(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function wd(t){return!t.isGroup}function Tb(t){return t.shape!=null}function Cy(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(u){wd(u)&&u.anid&&(s[u.anid]=u)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Tb(o)&&(s.shape=ae(o.shape)),s}var a=n(t);e.traverse(function(o){if(wd(o)&&o.anid){var s=a[o.anid];if(s){var u=i(o);o.attr(i(s)),Gi(o,u,r,_e(o).dataIndex)}}})}function bb(t,e){return q(t,function(r){var n=r[0];n=ue(n,e.x),n=ze(n,e.x+e.width);var i=r[1];return i=ue(i,e.y),i=ze(i,e.y+e.height),[n,i]})}function Dy(t,e){var r=ue(t.x,e.x),n=ze(t.x+t.width,e.x+e.width),i=ue(t.y,e.y),a=ze(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function uh(t,e,r){var n=k({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),ge(i,r),new Gr(n)):Su(t.replace("path://",""),n,r,"center")}function Cb(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Ey(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function Ey(t,e,r,n,i,a,o,s){var u=r-t,l=n-e,f=o-i,c=s-a,h=El(f,c,u,l);if(Db(h))return!1;var v=t-i,d=e-a,g=El(v,d,u,l)/h;if(g<0||g>1)return!1;var p=El(v,d,f,c)/h;return!(p<0||p>1)}function El(t,e,r,n){return t*n-r*e}function Db(t){return t<=1e-6&&t>=-1e-6}function Es(t,e,r,n,i){return e==null||(Ce(e)?xe[0]=xe[1]=xe[2]=xe[3]=e:(process.env.NODE_ENV!=="production"&&P(e.length===4),xe[0]=e[0],xe[1]=e[1],xe[2]=e[2],xe[3]=e[3]),n&&(xe[0]=ue(0,xe[0]),xe[1]=ue(0,xe[1]),xe[2]=ue(0,xe[2]),xe[3]=ue(0,xe[3])),r&&(xe[0]=-xe[0],xe[1]=-xe[1],xe[2]=-xe[2],xe[3]=-xe[3]),Td(t,xe,"x","width",3,1,i&&i[0]||0),Td(t,xe,"y","height",0,2,i&&i[1]||0)),t}var xe=[0,0,0,0];function Td(t,e,r,n,i,a,o){var s=e[a]+e[i],u=t[n];t[n]+=s,o=ue(0,ze(o,u)),t[n]<o?(t[n]=o,t[r]+=e[i]>=0?-e[i]:e[a]>=0?u+e[a]:Ae(s)>1e-8?(u-o)*e[i]/s:0):t[r]-=e[i]}function wu(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=H(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var u=t.formatterParamsExtra;u&&b(Se(u),function(f){B(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=_e(t.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:n,option:ge({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Xf(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function lh(t,e){if(t)if(F(t))for(var r=0;r<t.length;r++)Xf(t[r],e);else Xf(t,e)}function fh(t){return!t||Ae(t[1])<wo&&Ae(t[2])<wo||Ae(t[0])<wo&&Ae(t[3])<wo}var wo=1e-5;function Ba(t,e){return t?j.copy(t,e):e.clone()}function ch(t,e){return e?kc(t||Nt(),e):void 0}function hh(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function Eb(t){var e=-1/0,r=1/0;Xf(t,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())});function n(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function My(t,e,r){Ay(t,e,r,-1/0)}function Ay(t,e,r,n){if(t.ignoreModelZ)return n;var i=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),u=0;u<s.length;u++)n=ue(Ay(s[u],e,r,n),n);else t.z=e,t.zlevel=r,n=ue(t.z2||0,n);if(i&&(i.z=e,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var l=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(n)&&(a.z2=n+(l&&l.showAbove?1:-1))}return n}function Mb(t){return t.animation={duration:0},t}function Ab(t,e){return e?kc(ga.transform,e):Ya(ga.transform),ga.decomposeTransform(),ms(t,ga),t}var ga=new kn;ga.transform=Nt();function Lb(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}Ht("circle",qa);Ht("ellipse",nh);Ht("sector",Ka);Ht("ring",gu);Ht("polygon",mu);Ht("polyline",yu);Ht("rect",Le);Ht("line",_r);Ht("bezierCurve",ih);Ht("arc",_u);const Ly=Object.freeze(Object.defineProperty({__proto__:null,Arc:_u,BezierCurve:ih,BoundingRect:j,Circle:qa,CompoundPath:ly,Ellipse:nh,Group:st,HOVER_LAYER_FOR_INCREMENTAL:sh,HOVER_LAYER_FROM_THRESHOLD:my,HOVER_LAYER_NO:gy,Image:Gr,IncrementalDisplayable:pb,Line:_r,LinearGradient:cy,OrientedBoundingRect:hy,Path:we,Point:me,Polygon:mu,Polyline:yu,RadialGradient:lb,Rect:Le,Ring:gu,Sector:Ka,Text:Xe,WH:Ei,XY:Lr,applyTransform:xu,calcZ2Range:Eb,clipPointsByRect:bb,clipRectByRect:Dy,createIcon:uh,decomposeTransform:Ab,ensureCopyRect:Ba,ensureCopyTransform:ch,expandOrShrinkRect:Es,extendPath:Sb,extendShape:yb,getCurrentCanvasPainter:Lb,getShapeClass:yy,getTransform:Ty,groupTransition:Cy,initProps:Qa,isBoundingRectAxisAligned:fh,isElementRemoved:Da,lineLineIntersect:Ey,linePolygonIntersect:Cb,makeImage:_y,makePath:Su,mergePath:xy,payloadDisableAnimation:Mb,registerShape:Ht,removeElement:oh,removeElementWithFadeOut:py,resizePath:wy,retrieveZInfo:hh,setTooltipConfig:wu,subPixelOptimize:wb,subPixelOptimizeLine:ka,subPixelOptimizeRect:xb,transformDirection:by,traverseElements:lh,traverseUpdateZ:My,updateProps:Gi},Symbol.toStringTag,{value:"Module"}));var Tu={};function Oy(t,e){for(var r=0;r<yr.length;r++){var n=yr[r],i=e[n],a=t.ensureState(n);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function Zf(t,e,r){var n=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=J(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var u={normal:s},l=0;l<yr.length;l++){var f=yr[l],c=e[f];u[f]=U(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return u}function Iy(t,e,r,n){r=r||Tu;for(var i=t instanceof Xe,a=!1,o=0;o<Vf.length;o++){var s=e[Vf[o]];if(s&&s.getShallow("show")){a=!0;break}}var u=i?t:t.getTextContent();if(a){i||(u||(u=new Xe,t.setTextContent(u)),t.stateProxy&&(u.stateProxy=t.stateProxy));var l=Zf(r,e),f=e.normal,c=!!f.getShallow("show"),h=Sr(f,n&&n.normal,r,!1,!i);h.text=l.normal,i||t.setTextConfig($f(f,r,!1));for(var o=0;o<yr.length;o++){var v=yr[o],s=e[v];if(s){var d=u.ensureState(v),g=!!U(s.getShallow("show"),c);if(g!==c&&(d.ignore=!g),d.style=Sr(s,n&&n[v],r,!0,!i),d.style.text=l[v],!i){var p=t.ensureState(v);p.textConfig=$f(s,r,!0)}}}u.silent=!!f.getShallow("silent"),u.style.x!=null&&(h.x=u.style.x),u.style.y!=null&&(h.y=u.style.y),u.ignore=!c,u.useStyle(h),u.dirty(),r.enableTextSetter&&(bu(u).setLabelText=function(m){var y=Zf(r,e,m);Oy(u,y)})}else u&&(u.ignore=!0);t.dirty()}function Ob(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<yr.length;n++){var i=yr[n];r[i]=t.getModel([i,e])}return r}function Sr(t,e,r,n,i){var a={};return Ib(a,t,r,n,i),e&&k(a,e),a}function $f(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=U(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function Ib(t,e,r,n,i){r=r||Tu;var a=e.ecModel,o=a&&a.option.textStyle,s=Pb(e),u;if(s){u={};var l="richInheritPlainLabel",f=U(e.get(l),a?a.get(l):void 0);for(var c in s)if(s.hasOwnProperty(c)){var h=e.getModel(["rich",c]);Ed(u[c]={},h,o,e,f,r,n,i,!1,!0)}}u&&(t.rich=u);var v=e.get("overflow");v&&(t.overflow=v);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var g=t,p=e.get("minMargin");if(p!=null)p=Ce(p)?p/2:0,g.margin=[p,p,p,p],g.__marginType=vi.minMargin;else{var m=e.get("textMargin");m!=null&&(g.margin=Pc(m),g.__marginType=vi.textMargin)}Ed(t,e,o,null,null,r,n,i,!0,!1)}function Pb(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Tu).rich;if(r){e=e||{};for(var n=Se(r),i=0;i<n.length;i++){var a=n[i];e[a]=1}}t=t.parentModel}return e}var bd=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Cd=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Dd=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Ed(t,e,r,n,i,a,o,s,u,l){r=!o&&r||Tu;var f=a&&a.inheritColor,c=e.getShallow("color"),h=e.getShallow("textBorderColor"),v=U(e.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(process.env.NODE_ENV!=="production"&&c==="auto"&&Pe("color: 'auto'","color: 'inherit'"),f?c=f:c=null),(h==="inherit"||h==="auto")&&(process.env.NODE_ENV!=="production"&&h==="auto"&&Pe("color: 'auto'","color: 'inherit'"),f?h=f:h=null),s||(c=c||r.color,h=h||r.textBorderColor),c!=null&&(t.fill=c),h!=null&&(t.stroke=h);var d=U(e.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(t.lineWidth=d);var g=U(e.getShallow("textBorderType"),r.textBorderType);g!=null&&(t.lineDash=g);var p=U(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);p!=null&&(t.lineDashOffset=p),!o&&v==null&&!l&&(v=a&&a.defaultOpacity),v!=null&&(t.opacity=v),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var m=0;m<bd.length;m++){var y=bd[m],_=i!==!1&&n?fr(e.getShallow(y),n.getShallow(y),r[y]):U(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var m=0;m<Cd.length;m++){var y=Cd[m],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var S=e.getShallow("baseline");S!=null&&(t.verticalAlign=S)}if(!u||!a.disableBox){for(var m=0;m<Dd.length;m++){var y=Dd[m],_=e.getShallow(y);_!=null&&(t[y]=_)}var x=e.getShallow("borderType");x!=null&&(t.borderDash=x),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(process.env.NODE_ENV!=="production"&&t.backgroundColor==="auto"&&Pe("backgroundColor: 'auto'","backgroundColor: 'inherit'"),t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(process.env.NODE_ENV!=="production"&&t.borderColor==="auto"&&Pe("borderColor: 'auto'","borderColor: 'inherit'"),t.borderColor=f)}}function Py(t,e){var r=e&&e.getModel("textStyle");return qt([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 bu=ye();function Nb(t,e,r,n){if(t){var i=bu(t);i.prevValue=i.value,i.value=r;var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=e)}}function Rb(t,e,r,n,i){var a=bu(t);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=U(a.interpolatedValue,a.prevValue),u=a.value;function l(f){var c=Dm(r,a.precision,s,u,f);a.interpolatedValue=f===1?null:c;var h=Zf({labelDataIndex:e,labelFetcher:i,defaultText:o?o(c):c+""},a.statesModels,c);Oy(t,h)}t.percent=0,(a.prevValue==null?Qa:Gi)(t,{percent:1},n,e,null,l)}var vi={minMargin:1,textMargin:2},kb=["textStyle","color"],Ml=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Al=new Xe,Bb=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(kb):null)},t.prototype.getFont=function(){return Py({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Ml.length;n++)r[Ml[n]]=this.getShallow(Ml[n]);return Al.useStyle(r),Al.update(),Al.getBoundingRect()},t})(),Ny=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Fb=Ra(Ny),Vb=(function(){function t(){}return t.prototype.getLineStyle=function(e){return Fb(this,e)},t})(),Ry=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],zb=Ra(Ry),Hb=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return zb(this,e,r)},t})(),be=(function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){},t.prototype.mergeOption=function(e,r){de(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,i=n==null?n:n[e];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,r){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),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(ae(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!te.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t})();qc(be);ww(be);Ft(be,Vb);Ft(be,Hb);Ft(be,Ew);Ft(be,Bb);var Gb=Math.round(Math.random()*10);function ja(t){return[t||"",Gb++].join("_")}function Ub(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=Kt(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=Kt(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function Wb(t,e){t.topologicalTravel=function(a,o,s,u){if(!a.length)return;var l=r(o),f=l.graph,c=l.noEntryList,h={};for(b(a,function(y){h[y]=!0});c.length;){var v=c.pop(),d=f[v],g=!!h[v];g&&(s.call(u,v,d.originalDeps.slice()),delete h[v]),b(d.successor,g?m:p)}b(h,function(){var y="";throw process.env.NODE_ENV!=="production"&&(y=Ss("Circular dependency may exists: ",h,a,o)),new Error(y)});function p(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function m(y){h[y]=!0,p(y)}};function r(a){var o={},s=[];return b(a,function(u){var l=n(o,u),f=l.originalDeps=e(u),c=i(f,a);l.entryCount=c.length,l.entryCount===0&&s.push(u),b(c,function(h){he(l.predecessor,h)<0&&l.predecessor.push(h);var v=n(o,h);he(v.successor,h)<0&&v.successor.push(u)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return b(a,function(u){he(o,u)>=0&&s.push(u)}),s}}function ky(t,e){return de(de({},t,!0),e,!0)}const Yb={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:". "}}}},Xb={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 Ms="ZH",vh="EN",mi=vh,Qo={},dh={},By=te.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||mi).toUpperCase();return t.indexOf(Ms)>-1?Ms:mi})():mi;function Fy(t,e){t=t.toUpperCase(),dh[t]=new be(e),Qo[t]=e}function Zb(t){if(H(t)){var e=Qo[t.toUpperCase()]||{};return t===Ms||t===vh?ae(e):de(ae(e),ae(Qo[mi]),!1)}else return de(ae(t),ae(Qo[mi]),!1)}function $b(t){return dh[t]}function qb(){return dh[mi]}Fy(vh,Yb);Fy(Ms,Xb);var Kb=null;function Cu(){return Kb}function Vy(t,e){e.breakOption;var r=e.breakParsed;return r}function ph(t){var e=t.brk;return e?e.breaks:[]}function Pn(t){var e=t.brk;return e?e.hasBreaks():!1}var gh=1e3,mh=gh*60,Ea=mh*60,Dt=Ea*24,Md=Dt*365,Qb={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})/},jo={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},jb="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",To="{yyyy}-{MM}-{dd}",Ad={year:"{yyyy}",month:"{yyyy}-{MM}",day:To,hour:To+" "+jo.hour,minute:To+" "+jo.minute,second:To+" "+jo.second,millisecond:jb},Mn=["year","month","day","hour","minute","second","millisecond"],Jb=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function eC(t){return!H(t)&&!J(t)?tC(t):t}function tC(t){t=t||{};var e={},r=!0;return b(Mn,function(n){r&&(r=t[n]==null)}),b(Mn,function(n,i){var a=t[n];e[n]={};for(var o=null,s=i;s>=0;s--){var u=Mn[s],l=W(a)&&!F(a)?a[u]:a,f=void 0;F(l)?(f=l.slice(),o=f[0]||""):H(l)?(o=l,f=[o]):(o==null?o=jo[n]:Qb[u].test(o)||(o=e[u][u][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[n][u]=f}}),e}function br(t,e){return t+="","0000".substr(0,e-t.length)+t}function Ma(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 rC(t){return t===Ma(t)}function nC(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Du(t,e,r,n){var i=Bi(t),a=i[zy(r)](),o=i[yh(r)]()+1,s=Math.floor((o-1)/3)+1,u=i[_h(r)](),l=i["get"+(r?"UTC":"")+"Day"](),f=i[Sh(r)](),c=(f-1)%12+1,h=i[xh(r)](),v=i[wh(r)](),d=i[Th(r)](),g=f>=12?"pm":"am",p=g.toUpperCase(),m=n instanceof be?n:$b(n||By)||qb(),y=m.getModel("time"),_=y.get("month"),S=y.get("monthAbbr"),x=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,br(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,br(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,br(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,x[l]).replace(/{ee}/g,w[l]).replace(/{e}/g,l+"").replace(/{HH}/g,br(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,br(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,br(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,br(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,br(d,3)).replace(/{S}/g,d+"")}function iC(t,e,r,n,i){var a=null;if(H(r))a=r;else if(J(r)){var o={time:t.time,level:t.time?t.time.level:0},s=Cu();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var u=t.time;if(u){var l=r[u.lowerTimeUnit][u.upperTimeUnit];a=l[Math.min(u.level,l.length-1)]||""}else{var f=Jo(t.value,i);a=r[f][f][0]}}return Du(new Date(t.value),a,i,n)}function Jo(t,e){var r=Bi(t),n=r[yh(e)]()+1,i=r[_h(e)](),a=r[Sh(e)](),o=r[xh(e)](),s=r[wh(e)](),u=r[Th(e)](),l=u===0,f=l&&s===0,c=f&&o===0,h=c&&a===0,v=h&&i===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":l?"second":"millisecond"}function qf(t,e,r){switch(e){case"year":t[Hy(r)](0);case"month":t[Gy(r)](1);case"day":t[Uy(r)](0);case"hour":t[Wy(r)](0);case"minute":t[Yy(r)](0);case"second":t[Xy(r)](0)}return t}function zy(t){return t?"getUTCFullYear":"getFullYear"}function yh(t){return t?"getUTCMonth":"getMonth"}function _h(t){return t?"getUTCDate":"getDate"}function Sh(t){return t?"getUTCHours":"getHours"}function xh(t){return t?"getUTCMinutes":"getMinutes"}function wh(t){return t?"getUTCSeconds":"getSeconds"}function Th(t){return t?"getUTCMilliseconds":"getMilliseconds"}function aC(t){return t?"setUTCFullYear":"setFullYear"}function Hy(t){return t?"setUTCMonth":"setMonth"}function Gy(t){return t?"setUTCDate":"setDate"}function Uy(t){return t?"setUTCHours":"setHours"}function Wy(t){return t?"setUTCMinutes":"setMinutes"}function Yy(t){return t?"setUTCSeconds":"setSeconds"}function Xy(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Zy(t){if(!Sm(t))return H(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function $y(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Ja=Pc;function Kf(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&qt(f)?f:"-"}function a(f){return vt(f)}var o=e==="time",s=t instanceof Date;if(o||s){var u=o?Bi(t):t;if(isNaN(+u)){if(s)return"-"}else return Du(u,n,r)}if(e==="ordinal")return us(t)?i(t):Ce(t)&&a(t)?t+"":"-";var l=_s(t);return a(l)?Zy(l):us(t)?i(t):typeof t=="boolean"?t+"":"-"}var Ld=["a","b","c","d","e","f","g"],Ll=function(t,e){return"{"+t+(e??"")+"}"};function qy(t,e,r){F(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=Ld[a];t=t.replace(Ll(o),Ll(o,0))}for(var s=0;s<n;s++)for(var u=0;u<i.length;u++){var l=e[s][i[u]];t=t.replace(Ll(Ld[u],s),r?nt(l):l)}return t}function oC(t,e){var r=H(t)?{color:t,extraCssText:e}:t||{},n=r.color,i=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+nt(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+nt(n)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Mi(t,e){return e=e||"transparent",H(t)?t:W(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Od(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var es={},Ol={},Eu=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=n(es,!0),this._normalMasterList=n(Ol,!1);function n(i,a){var o=[];return b(i,function(s,u){var l=s.create(e,r);o=o.concat(l||[]),process.env.NODE_ENV!=="production"&&a&&b(l,function(f){return P(!f.update)})}),o}},t.prototype.update=function(e,r){b(this._normalMasterList,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){es[e]=r;return}Ol[e]=r},t.get=function(e){return Ol[e]||es[e]},t})();function sC(t){return!!es[t]}var uC=1,Ky=2;function lC(t){process.env.NODE_ENV!=="production"&&P(!Qf.get(t.fullType)),Qf.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var Qf=Z();function Qy(t){var e=t.getShallow("coord",!0),r=uC;if(e==null){var n=Qf.get(t.type);n&&n.getCoord2&&(r=Ky,e=n.getCoord2(t))}return{coord:e,from:r}}var yi=0,ts=1,fC=2;function cC(t,e){var r=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=n!=null,a=yi;if(r){var o=t.mainType==="series";n==null&&(n=o?"data":"box"),n==="data"?(a=ts,o||(process.env.NODE_ENV!=="production"&&i&&e&&ce('coordinateSystemUsage "data" is not supported in non-series components.'),a=yi)):n==="box"&&(a=fC,!o&&!sC(r)&&(process.env.NODE_ENV!=="production"&&i&&e&&ce('coordinateSystem "'+r+'" cannot be used'+(' as coordinateSystemUsage "box" for "'+t.type+'" yet.')),a=yi))}return{coordSysType:r,kind:a}}function hC(t){var e=t.targetModel,r=t.coordSysType,n=t.coordSysProvider,i=t.isDefaultDataCoordSys,a=t.allowNotFound;process.env.NODE_ENV!=="production"&&P(!!r);var o=cC(e,!0),s=o.kind,u=o.coordSysType;if(i&&s!==ts&&(s=ts,u=r),s===yi||u!==r)return yi;var l=n(r,e);return l?(s===ts?(process.env.NODE_ENV!=="production"&&P(e.mainType==="series"),e.coordinateSystem=l):e.boxCoordinateSystem=l,s):(process.env.NODE_ENV!=="production"&&(a||ce(r+" cannot be found for"+(" "+e.type+" (index: "+e.componentIndex+")."))),yi)}var rs=b,vC=["left","right","top","bottom","width","height"],bo=[["width","left","right"],["height","top","bottom"]];function bh(t,e,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(u,l){var f=u.getBoundingRect(),c=e.childAt(l+1),h=c&&c.getBoundingRect(),v,d;if(t==="horizontal"){var g=f.width+(h?-h.x+f.x:0);v=a+g,v>n||u.newline?(a=0,v=g,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(h?-h.y+f.y:0);d=o+p,d>i||u.newline?(a+=s+r,o=0,d=p,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),t==="horizontal"?a=v+r:o=d+r)})}var _i=bh;Ie(bh,"vertical");Ie(bh,"horizontal");function dC(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 pC(t,e){var r=eo(t,e,{enableLayoutOnlyByCenter:!0}),n=t.getBoxLayoutParams(),i,a;if(r.type===ma.point)a=r.refPoint,i=tr(n,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=F(o)?o:[o,o];i=tr(n,r.refContainer),a=r.boxCoordFrom===Ky?r.refPoint:[Ee(s[0],i.width)+i.x,Ee(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function gC(t,e){var r=pC(t,e),n=r.viewRect,i=r.center,a=t.get("radius");F(a)||(a=[0,a]);var o=Ee(n.width,e.getWidth()),s=Ee(n.height,e.getHeight()),u=Math.min(o,s),l=Ee(a[0],u/2),f=Ee(a[1],u/2);return{cx:i[0],cy:i[1],r0:l,r:f,viewRect:n}}function tr(t,e,r){r=Ja(r||0);var n=e.width,i=e.height,a=Ee(t.left,n),o=Ee(t.top,i),s=Ee(t.right,n),u=Ee(t.bottom,i),l=Ee(t.width,n),f=Ee(t.height,i),c=r[2]+r[0],h=r[1]+r[3],v=t.aspect;switch(isNaN(l)&&(l=n-s-h-a),isNaN(f)&&(f=i-u-c-o),v!=null&&(isNaN(l)&&isNaN(f)&&(v>n/i?l=n*.8:f=i*.8),isNaN(l)&&(l=v*f),isNaN(f)&&(f=l/v)),isNaN(a)&&(a=n-s-l-h),isNaN(o)&&(o=i-u-f-c),t.left||t.right){case"center":a=n/2-l/2-r[3];break;case"right":a=n-l-h;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(l)&&(l=n-h-a-(s||0)),isNaN(f)&&(f=i-c-o-(u||0));var d=new j((e.x||0)+a+r[3],(e.y||0)+o+r[0],l,f);return d.margin=r,d}var ma={rect:1,point:2};function eo(t,e,r){var n,i,a,o=t.boxCoordinateSystem,s;if(o){var u=Qy(t),l=u.coord,f=u.from;if(o.dataToLayout){a=ma.rect,s=f;var c=o.dataToLayout(l);n=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint?(a=ma.point,s=f,i=o.dataToPoint(l)):process.env.NODE_ENV!=="production"&&ce(t.type+"["+t.componentIndex+"]"+(" layout based on "+o.type+" is not supported."))}return a==null&&(a=ma.rect),a===ma.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function mC(t,e,r,n,i,a){a=a||t,a.x=t.x,a.y=t.y;var o;if(o=t.getBoundingRect(),t.needLocalTransform()){var s=t.getLocalTransform();o=o.clone(),o.applyTransform(s)}var u=tr(ge({width:o.width,height:o.height},e),r,n),l=u.x-o.x,f=u.y-o.y;return a.x+=l,a.y+=f,a===t&&t.markRedraw(),!0}function Fa(t){var e=t.layoutMode||t.constructor.layoutMode;return W(e)?e:e?{type:e}:null}function Fr(t,e,r){var n=r&&r.ignoreSize;!F(n)&&(n=[n,n]);var i=o(bo[0],0),a=o(bo[1],1);u(bo[0],t,i),u(bo[1],t,a);function o(l,f){var c={},h=0,v={},d=0,g=2;if(rs(l,function(y){v[y]=t[y]}),rs(l,function(y){B(e,y)&&(c[y]=v[y]=e[y]),s(c,y)&&h++,s(v,y)&&d++}),n[f])return s(e,l[1])?v[l[2]]=null:s(e,l[2])&&(v[l[1]]=null),v;if(d===g||!h)return v;if(h>=g)return c;for(var p=0;p<l.length;p++){var m=l[p];if(!B(c,m)&&B(t,m)){c[m]=t[m];break}}return c}function s(l,f){return l[f]!=null&&l[f]!=="auto"}function u(l,f,c){rs(l,function(h){f[h]=c[h]})}}function Ui(t){return yC({},t)}function yC(t,e){return e&&t&&rs(vC,function(r){B(e,r)&&(t[r]=e[r])}),t}var _C=ye(),fe=(function(t){z(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=ja("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Fa(this),a=i?Ui(r):{},o=n.getTheme();de(r,o.get(this.mainType)),de(r,this.getDefaultOption()),i&&Fr(r,a,i)},e.prototype.mergeOption=function(r,n){de(this.option,r,!0);var i=Fa(this);i&&Fr(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!_w(r))return r.defaultOption;var n=_C(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},u=i.length-1;u>=0;u--)s=de(s,i[u],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Vi(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){return dC(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})(be);Pm(fe,be);fu(fe);Ub(fe);Wb(fe,SC);function SC(t){var e=[];return b(fe.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=q(e,function(r){return Kt(r).main}),t!=="dataset"&&he(e,"dataset")<=0&&e.unshift("dataset"),e}var G={color:{},darkColor:{},size:{}},De=G.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)"};k(De,{primary:De.neutral80,secondary:De.neutral70,tertiary:De.neutral60,quaternary:De.neutral50,disabled:De.neutral20,border:De.neutral30,borderTint:De.neutral20,borderShade:De.neutral40,background:De.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:De.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:De.neutral70,axisLineTint:De.neutral40,axisTick:De.neutral70,axisTickMinor:De.neutral60,axisLabel:De.neutral70,axisSplitLine:De.neutral15,axisMinorSplitLine:De.neutral05});for(var ln in De)if(De.hasOwnProperty(ln)){var Id=De[ln];ln==="theme"?G.darkColor.theme=De.theme.slice():ln==="highlight"?G.darkColor.highlight="rgba(255,231,130,0.4)":ln.indexOf("accent")===0?G.darkColor[ln]=ds(Id,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):G.darkColor[ln]=ds(Id,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)})}G.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var jy="";typeof navigator<"u"&&(jy=navigator.platform||"");var Kn="rgba(0, 0, 0, 0.2)",Jy=G.color.theme[0],xC=ds(Jy,null,null,.9);const e_={darkMode:"auto",colorBy:"series",color:G.color.theme,gradientColor:[xC,Jy],aria:{decal:{decals:[{color:Kn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Kn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Kn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Kn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Kn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Kn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:jy.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Be={Must:1,Might:2,Not:3},t_=ye();function wC(t){t_(t).datasetMap=Z()}function TC(t,e,r){var n={},i=Ch(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,u=t_(s).datasetMap,l=i.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),b(t,function(g,p){var m=W(g)?g:t[p]={name:g};m.type==="ordinal"&&f==null&&(f=p,c=d(m)),n[m.name]=[]});var h=u.get(l)||u.set(l,{categoryWayDim:c,valueWayDim:0});b(t,function(g,p){var m=g.name,y=d(g);if(f==null){var _=h.valueWayDim;v(n[m],_,y),v(o,_,y),h.valueWayDim+=y}else if(f===p)v(n[m],0,y),v(a,0,y);else{var _=h.categoryWayDim;v(n[m],_,y),v(o,_,y),h.categoryWayDim+=y}});function v(g,p,m){for(var y=0;y<m;y++)g.push(p+y)}function d(g){var p=g.dimsDef;return p?p.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function bC(t,e,r){var n={},i=Ch(t);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===Lt||a===zt)&&b(o,function(f,c){(W(f)?f.name:f)==="name"&&(s=c)});var u=(function(){for(var f={},c={},h=[],v=0,d=Math.min(5,r);v<d;v++){var g=n_(e.data,a,e.seriesLayoutBy,o,e.startIndex,v);h.push(g);var p=g===Be.Not;if(p&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!p&&h[f.n]===Be.Not)&&(f.n=v),m(f)&&h[f.n]!==Be.Not)return f;p||(g===Be.Might&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v)&&(c.n=v))}function m(y){return y.v!=null&&y.n!=null}return m(f)?f:m(c)?c:null})();if(u){n.value=[u.v];var l=s??u.n;n.itemName=[l],n.seriesName=[l]}return n}function Ch(t){var e=t.get("data",!0);if(!e)return Vi(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},ct).models[0]}function CC(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:Vi(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},ct).models}function r_(t,e){return n_(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function n_(t,e,r,n,i,a){var o,s=5;if(et(t))return Be.Not;var u,l;if(n){var f=n[a];W(f)?(u=f.name,l=f.type):H(f)&&(u=f)}if(l!=null)return l==="ordinal"?Be.Must:Be.Not;if(e===Ze){var c=t;if(r===Fn){for(var h=c[a],v=0;v<(h||[]).length&&v<s;v++)if((o=S(h[i+v]))!=null)return o}else for(var v=0;v<c.length&&v<s;v++){var d=c[i+v];if(d&&(o=S(d[a]))!=null)return o}}else if(e===Lt){var g=t;if(!u)return Be.Not;for(var v=0;v<g.length&&v<s;v++){var p=g[v];if(p&&(o=S(p[u]))!=null)return o}}else if(e===zt){var m=t;if(!u)return Be.Not;var h=m[u];if(!h||et(h))return Be.Not;for(var v=0;v<h.length&&v<s;v++)if((o=S(h[v]))!=null)return o}else if(e===dt)for(var y=t,v=0;v<y.length&&v<s;v++){var p=y[v],_=$a(p);if(!F(_))return Be.Not;if((o=S(_[a]))!=null)return o}function S(x){var w=H(x);if(x!=null&&isFinite(Number(x))&&x!=="")return w?Be.Might:Be.Not;if(w&&x!=="-")return Be.Must}return Be.Not}var DC=Z();function EC(t,e,r){var n=DC.get(e);if(!n)return r;var i=n(t);if(!i)return r;if(process.env.NODE_ENV!=="production")for(var a=0;a<i.length;a++)P(bi(i[a]));return r.concat(i)}var Pd=ye();ye();var Dh=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=He(this.get("color",!0)),a=this.get("colorLayer",!0);return AC(this,Pd,i,a,e,r,n)},t.prototype.clearColorPalette=function(){LC(this,Pd)},t})();function MC(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function AC(t,e,r,n,i,a,o){a=a||t;var s=e(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var f=o==null||!n?r:MC(n,o);if(f=f||r,!(!f||!f.length)){var c=f[u];return i&&(l[i]=c),s.paletteIdx=(u+1)%f.length,c}}function LC(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Co,ji,Nd,Il="\0_ec_inner",Rd=1,OC={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"},IC={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"},As={};function PC(t){b(t,function(e,r){if(!fe.hasClass(r)){var n=OC[r];n&&!As[n]&&(ce("Component "+r+` is used but not imported.
|
|
30
|
-
import { `+n+` } from 'echarts/components';
|
|
31
|
-
echarts.use([`+n+"]);"),As[n]=!0)}})}var Eh=(function(t){z(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new be(a),this._locale=new be(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){process.env.NODE_ENV!=="production"&&(P(r!=null,"option is null/undefined"),P(r[Il]!==Rd,"please use chart.getOption()"));var a=Fd(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,Fd(n))},e.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");process.env.NODE_ENV!=="production"&&PC(o),!this.option||r==="recreate"?Nd(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var u=a.getMediaOption(this);u.length&&b(u,function(l){i=!0,this._mergeOption(l,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=Z(),l=n&&n.replaceMergeMainTypeMap;wC(this),b(r,function(c,h){c!=null&&(fe.hasClass(h)?h&&(s.push(h),u.set(h,!0)):i[h]=i[h]==null?ae(c):de(i[h],c,!0))}),l&&l.each(function(c,h){fe.hasClass(h)&&!u.get(h)&&(s.push(h),u.set(h,!0))}),fe.topologicalTravel(s,fe.getAllClassMainTypes(),f,this);function f(c){var h=EC(this,c,He(r[c])),v=a.get(c),d=v?l&&l.get(c)?"replaceMerge":"normalMerge":"replaceAll",g=qx(v,h,d);rw(g,c,fe),i[c]=null,a.set(c,null),o.set(c,0);var p=[],m=[],y=0,_,S;b(g,function(x,w){var T=x.existing,C=x.newOption;if(!C)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var E=c==="series",D=fe.getClass(c,x.keyInfo.subType,!E);if(!D){if(process.env.NODE_ENV!=="production"){var M=x.keyInfo.subType,L=IC[M];As[M]||(As[M]=!0,ce(L?"Series "+M+` is used but not imported.
|
|
32
|
-
import { `+L+` } from 'echarts/charts';
|
|
33
|
-
echarts.use([`+L+"]);":"Unknown series "+M))}return}if(c==="tooltip"){if(_){process.env.NODE_ENV!=="production"&&(S||(Ke("Currently only one tooltip component is allowed."),S=!0));return}_=!0}if(T&&T.constructor===D)T.name=x.keyInfo.name,T.mergeOption(C,this),T.optionUpdated(C,!1);else{var A=k({componentIndex:w},x.keyInfo);T=new D(C,this,this,A),k(T,A),x.brandNew&&(T.__requireNewView=!0),T.init(C,this,this),T.optionUpdated(null,!0)}}T?(p.push(T.option),m.push(T),y++):(p.push(void 0),m.push(void 0))},this),i[c]=p,a.set(c,m),o.set(c,y),c==="series"&&Co(this)}this._seriesIndices||Co(this)},e.prototype.getOption=function(){var r=ae(this.option);return b(r,function(n,i){if(fe.hasClass(i)){for(var a=He(n),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!bi(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[Il],r},e.prototype.setTheme=function(r){this._theme=new be(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,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var u;return i!=null?(u=[],b(He(i),function(l){s[l]&&u.push(s[l])})):a!=null?u=kd("id",a,s):o!=null?u=kd("name",o,s):u=Fe(s,function(l){return!!l}),Bd(u,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):Fe(this._componentsMap.get(i),function(l){return!!l});return u(Bd(o,r));function s(l){var f=i+"Index",c=i+"Id",h=i+"Name";return l&&(l[f]!=null||l[c]!=null||l[h]!=null)?{mainType:i,index:l[f],id:l[c],name:l[h]}:null}function u(l){return r.filter?Fe(l,r.filter):l}},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(J(r)){var o=n,s=r;a.each(function(c,h){for(var v=0;c&&v<c.length;v++){var d=c[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var u=H(r)?a.get(r):W(r)?this.findComponents(r):null,l=0;u&&l<u.length;l++){var f=u[l];f&&n.call(i,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=kt(r,null);return Fe(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Fe(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return Fe(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){ji(this),b(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){b(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){ji(this),b(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,n,i){return b(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return ji(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){ji(this);var i=[];b(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=Z(i)},e.prototype.restoreData=function(r){Co(this);var n=this._componentsMap,i=[];n.each(function(a,o){fe.hasClass(o)&&i.push(o)}),fe.topologicalTravel(i,fe.getAllClassMainTypes(),function(a){b(n.get(a),function(o){o&&(a!=="series"||!NC(o,r))&&o.restoreData()})})},e.internalField=(function(){Co=function(r){var n=r._seriesIndices=[];b(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=Z(n)},ji=function(r){if(process.env.NODE_ENV!=="production"&&!r._seriesIndices)throw new Error("Option should contains series.")},Nd=function(r,n){r.option={},r.option[Il]=Rd,r._componentsMap=Z({series:[]}),r._componentsCount=Z();var i=n.aria;W(i)&&i.enabled==null&&(i.enabled=!0),RC(n,r._theme.option),de(n,e_,!1),r._mergeOption(n,null)}})(),e})(be);function NC(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,i=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||i!=null&&t.name!==i}}function RC(t,e){var r=t.color&&!t.colorLayer;b(e,function(n,i){i==="colorLayer"&&r||i==="color"&&t.color||fe.hasClass(i)||(typeof n=="object"?t[i]=t[i]?de(t[i],n,!1):ae(n):t[i]==null&&(t[i]=n))})}function kd(t,e,r){if(F(e)){var n=Z();return b(e,function(a){if(a!=null){var o=kt(a,null);o!=null&&n.set(a,!0)}}),Fe(r,function(a){return a&&n.get(a[t])})}else{var i=kt(e,null);return Fe(r,function(a){return a&&i!=null&&a[t]===i})}}function Bd(t,e){return e.hasOwnProperty("subType")?Fe(t,function(r){return r&&r.subType===e.subType}):t}function Fd(t){var e=Z();return t&&b(He(t.replaceMerge),function(r){process.env.NODE_ENV!=="production"&&P(fe.hasClass(r),'"'+r+'" is not valid component main type in "replaceMerge"'),e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Ft(Eh,Dh);var kC=/^(min|max)?(.+)$/,BC=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(b(He(e.series),function(o){o&&o.data&&et(o.data)&&cf(o.data)}),b(He(e.dataset),function(o){o&&o.source&&et(o.source)&&cf(o.source)})),e=ae(e);var i=this._optionBackup,a=FC(e,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],ae(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(r=ae(n[i.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var u=0,l=i.length;u<l;u++)VC(i[u].query,r,n)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!HC(o,this._currentMediaIndices)&&(s=q(o,function(f){return ae(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},t})();function FC(t,e,r){var n=[],i,a,o=t.baseOption,s=t.timeline,u=t.options,l=t.media,f=!!t.media,c=!!(u||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(t.options=t.media=null),a=t),f&&(F(l)?b(l,function(v){process.env.NODE_ENV!=="production"&&v&&!v.option&&W(v.query)&&W(v.query.option)&&ce("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),v&&v.option&&(v.query?n.push(v):i||(i=v))}):process.env.NODE_ENV!=="production"&&ce("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),h(a),b(u,function(v){return h(v)}),b(n,function(v){return h(v.option)});function h(v){b(e,function(d){d(v,r)})}return{baseOption:a,timelineOptions:u||[],mediaDefault:i,mediaList:n}}function VC(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return b(t,function(a,o){var s=o.match(kC);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();zC(n[l],a,u)||(i=!1)}}),i}function zC(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function HC(t,e){return t.join(",")===e.join(",")}var gt=b,Va=W,Vd=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Pl(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=Vd.length;r<n;r++){var i=Vd[r],a=e.normal,o=e.emphasis;a&&a[i]&&(process.env.NODE_ENV!=="production"&&Pe("itemStyle.normal."+i,i),t[i]=t[i]||{},t[i].normal?de(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(process.env.NODE_ENV!=="production"&&Pe("itemStyle.emphasis."+i,"emphasis."+i),t[i]=t[i]||{},t[i].emphasis?de(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function We(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(process.env.NODE_ENV!=="production"&&er("'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,ge(t[e],n)):t[e]=n),i&&(process.env.NODE_ENV!=="production"&&er(e+".emphasis has been changed to emphasis."+e+" since 4.0"),t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function ya(t){We(t,"itemStyle"),We(t,"lineStyle"),We(t,"areaStyle"),We(t,"label"),We(t,"labelLine"),We(t,"upperLabel"),We(t,"edgeLabel")}function Me(t,e){var r=Va(t)&&t[e],n=Va(r)&&r.textStyle;if(n){process.env.NODE_ENV!=="production"&&er("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var i=0,a=Vv.length;i<a;i++){var o=Vv[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}}function xt(t){t&&(ya(t),Me(t,"label"),t.emphasis&&Me(t.emphasis,"label"))}function GC(t){if(Va(t)){Pl(t),ya(t),Me(t,"label"),Me(t,"upperLabel"),Me(t,"edgeLabel"),t.emphasis&&(Me(t.emphasis,"label"),Me(t.emphasis,"upperLabel"),Me(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Pl(e),xt(e));var r=t.markLine;r&&(Pl(r),xt(r));var n=t.markArea;n&&xt(n);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!et(a))for(var o=0;o<a.length;o++)xt(a[o]);b(t.categories,function(l){ya(l)})}if(i&&!et(i))for(var o=0;o<i.length;o++)xt(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)xt(s[o]);if(r=t.markLine,r&&r.data)for(var u=r.data,o=0;o<u.length;o++)F(u[o])?(xt(u[o][0]),xt(u[o][1])):xt(u[o]);t.type==="gauge"?(Me(t,"axisLabel"),Me(t,"title"),Me(t,"detail")):t.type==="treemap"?(We(t.breadcrumb,"itemStyle"),b(t.levels,function(l){ya(l)})):t.type==="tree"&&ya(t.leaves)}}function ir(t){return F(t)?t:t?[t]:[]}function zd(t){return(F(t)?t[0]:t)||{}}function UC(t,e){gt(ir(t.series),function(n){Va(n)&&GC(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),gt(r,function(n){gt(ir(t[n]),function(i){i&&(Me(i,"axisLabel"),Me(i.axisPointer,"label"))})}),gt(ir(t.parallel),function(n){var i=n&&n.parallelAxisDefault;Me(i,"axisLabel"),Me(i&&i.axisPointer,"label")}),gt(ir(t.calendar),function(n){We(n,"itemStyle"),Me(n,"dayLabel"),Me(n,"monthLabel"),Me(n,"yearLabel")}),gt(ir(t.radar),function(n){Me(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,process.env.NODE_ENV!=="production"&&er("name property in radar component has been changed to axisName")),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap,process.env.NODE_ENV!=="production"&&er("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&>(n.indicator,function(i){i.text&&Pe("text","name","radar.indicator")})}),gt(ir(t.geo),function(n){Va(n)&&(xt(n),gt(ir(n.regions),function(i){xt(i)}))}),gt(ir(t.timeline),function(n){xt(n),We(n,"label"),We(n,"itemStyle"),We(n,"controlStyle",!0);var i=n.data;F(i)&&b(i,function(a){W(a)&&(We(a,"label"),We(a,"itemStyle"))})}),gt(ir(t.toolbox),function(n){We(n,"iconStyle"),gt(n.feature,function(i){We(i,"iconStyle")})}),Me(zd(t.axisPointer),"label"),Me(zd(t.tooltip).axisPointer,"label")}function WC(t,e){for(var r=e.split(","),n=t,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function YC(t,e,r,n){for(var i=e.split(","),a=t,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function Hd(t){t&&b(XC,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var XC=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],ZC=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Nl=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ji(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<Nl.length;r++){var n=Nl[r][1],i=Nl[r][0];e[n]!=null&&(e[i]=e[n],process.env.NODE_ENV!=="production"&&Pe(n,i))}}function Gd(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&Pe("label.margin","label.edgeDistance","pie"),t.edgeDistance=t.margin)}function Ud(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay,process.env.NODE_ENV!=="production"&&Pe("downplay","blur","sunburst"))}function $C(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&Pe("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),t.emphasis.focus="adjacency"))}function i_(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&i_(t[r].children,e)}function a_(t,e){UC(t,e),t.series=He(t.series),b(t.series,function(r){if(W(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow,process.env.NODE_ENV!=="production"&&Pe("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise,process.env.NODE_ENV!=="production"&&Pe("clockWise","clockwise")),Gd(r.label);var i=r.data;if(i&&!et(i))for(var a=0;a<i.length;a++)Gd(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&Pe("hoverOffset","emphasis.scaleSize"),r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=WC(r,"pointer.color");o!=null&&YC(r,"itemStyle.color",o)}else if(n==="bar"){Ji(r),Ji(r.backgroundStyle),Ji(r.emphasis);var i=r.data;if(i&&!et(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Ji(i[a]),Ji(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s,process.env.NODE_ENV!=="production"&&Pe("highlightPolicy","emphasis.focus","sunburst"))),Ud(r),i_(r.data,Ud)}else n==="graph"||n==="sankey"?$C(r):n==="map"&&(r.mapType&&!r.map&&(process.env.NODE_ENV!=="production"&&Pe("mapType","map","map"),r.map=r.mapType),r.mapLocation&&(process.env.NODE_ENV!=="production"&&er("`mapLocation` is not used anymore."),ge(r,r.mapLocation)));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&Pe("hoverAnimation","emphasis.scale"),r.emphasis.scale=r.hoverAnimation)),Hd(r)}}),t.dataRange&&(t.visualMap=t.dataRange),b(ZC,function(r){var n=t[r];n&&(F(n)||(n=[n]),b(n,function(i){Hd(i)}))})}var qC=$c(KC);function KC(t){var e=Z();t.eachSeries(function(r){var n=r.get("stack");if(n){var i=e.get(n)||e.set(n,[]),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;i.push(o)}}),e.each(function(r){if(r.length!==0){var n=r[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&r.reverse(),b(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),QC(r)}})}function QC(t){b(t,function(e,r){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,u=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(l,f,c){var h=o.get(e.stackedDimension,c);if(isNaN(h))return i;var v,d;s?d=o.getRawIndex(c):v=o.get(e.stackedByDimension,c);for(var g=NaN,p=r-1;p>=0;p--){var m=t[p];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(u==="all"||u==="positive"&&y>0||u==="negative"&&y<0||u==="samesign"&&h>=0&&y>0||u==="samesign"&&h<=0&&y<0){h=mn(h,y),g=y;break}}}return n[0]=h,n[1]=g,n})})}var Mu=(function(){function t(e){this.data=e.data||(e.sourceFormat===zt?{}:[]),this.sourceFormat=e.sourceFormat||Xm,this.seriesLayoutBy=e.seriesLayoutBy||Jt,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&r_(this,n)===Be.Must&&(i.type="ordinal")}}return t})();function Mh(t){return t instanceof Mu}function jf(t,e,r){r=r||s_(t);var n=e.seriesLayoutBy,i=JC(t,r,n,e.sourceHeader,e.dimensions),a=new Mu({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:ae(e)});return a}function o_(t){return new Mu({data:t,sourceFormat:et(t)?cr:dt})}function jC(t){return new Mu({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:ae(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function s_(t){var e=Xm;if(et(t))e=cr;else if(F(t)){t.length===0&&(e=Ze);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if(F(i)||et(i)){e=Ze;break}else if(W(i)){e=Lt;break}}}}else if(W(t)){for(var a in t)if(B(t,a)&&Je(t[a])){e=zt;break}}return e}function JC(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:Wd(i),startIndex:o,dimensionsDetectedCount:a};if(e===Ze){var s=t;n==="auto"||n==null?Yd(function(l){l!=null&&l!=="-"&&(H(l)?o==null&&(o=1):o=0)},r,s,10):o=Ce(n)?n:n?1:0,!i&&o===1&&(i=[],Yd(function(l,f){i[f]=l!=null?l+"":""},r,s,1/0)),a=i?i.length:r===Fn?s.length:s[0]?s[0].length:null}else if(e===Lt)i||(i=eD(t));else if(e===zt)i||(i=[],b(t,function(l,f){i.push(f)}));else if(e===dt){var u=$a(t[0]);a=F(u)&&u.length||1}else e===cr&&process.env.NODE_ENV!=="production"&&P(!!i,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:Wd(i),dimensionsDetectedCount:a}}function eD(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return Se(r)}function Wd(t){if(t){var e=Z();return q(t,function(r,n){r=W(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function Yd(t,e,r,n){if(e===Fn)for(var i=0;i<r.length&&i<n;i++)t(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)t(a[i],i)}function u_(t){var e=t.sourceFormat;return e===Lt||e===zt}var fn,cn,hn,vn,Xd,Zd,l_=(function(){function t(e,r){var n=Mh(e)?e:o_(e);this._source=n;var i=this._data=n.data,a=n.sourceFormat,o=n.seriesLayoutBy;if(a===cr){if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=r,this._data=i}if(process.env.NODE_ENV!=="production"){var s=tD[Ls(a,o)];s&&s(i,n.dimensionsDefine)}Zd(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;Zd=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,c=u.startIndex,h=u.dimensionsDefine,v=Xd[Ls(l,f)];if(process.env.NODE_ENV!=="production"&&P(v,"Invalide sourceFormat: "+l),k(o,v),l===cr)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=f_(l,f);o.getItem=Te(d,null,s,c,h);var g=c_(l,f);o.count=Te(g,null,s,c,h)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var u=this._data,l=this._dimSize,f=l*o,c=0;c<l;c++)s[c]=u[f+c];return s},n=function(o,s,u,l){for(var f=this._data,c=this._dimSize,h=0;h<c;h++){for(var v=l[h],d=v[0]==null?1/0:v[0],g=v[1]==null?-1/0:v[1],p=s-o,m=u[h],y=0;y<p;y++){var _=f[y*c+h];m[o+y]=_,_<d&&(d=_),_>g&&(g=_)}v[0]=d,v[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};Xd=(e={},e[Ze+"_"+Jt]={pure:!0,appendData:a},e[Ze+"_"+Fn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Lt]={pure:!0,appendData:a},e[zt]={pure:!0,appendData:function(o){var s=this._data;b(o,function(u,l){for(var f=s[l]||(s[l]=[]),c=0;c<(u||[]).length;c++)f.push(u[c])})}},e[dt]={appendData:a},e[cr]={persistent:!1,pure:!0,appendData:function(o){process.env.NODE_ENV!=="production"&&P(et(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})(),Do=function(t){F(t)||ce("series.data or dataset.source must be an array.")},tD=(fn={},fn[Ze+"_"+Jt]=Do,fn[Ze+"_"+Fn]=Do,fn[Lt]=Do,fn[zt]=function(t,e){for(var r=0;r<e.length;r++){var n=e[r].name;n==null&&ce("dimension name must not be null/undefined.")}},fn[dt]=Do,fn),$d=function(t,e,r,n){return t[n]},rD=(cn={},cn[Ze+"_"+Jt]=function(t,e,r,n){return t[n+e]},cn[Ze+"_"+Fn]=function(t,e,r,n,i){n+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var u=o[s];a[s]=u?u[n]:null}return a},cn[Lt]=$d,cn[zt]=function(t,e,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,u=s!=null?t[s]:null;a[o]=u?u[n]:null}return a},cn[dt]=$d,cn);function f_(t,e){var r=rD[Ls(t,e)];return process.env.NODE_ENV!=="production"&&P(r,'Do not support get item on "'+t+'", "'+e+'".'),r}var qd=function(t,e,r){return t.length},nD=(hn={},hn[Ze+"_"+Jt]=function(t,e,r){return Math.max(0,t.length-e)},hn[Ze+"_"+Fn]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},hn[Lt]=qd,hn[zt]=function(t,e,r){var n=r[0].name,i=n!=null?t[n]:null;return i?i.length:0},hn[dt]=qd,hn);function c_(t,e){var r=nD[Ls(t,e)];return process.env.NODE_ENV!=="production"&&P(r,'Do not support count on "'+t+'", "'+e+'".'),r}var Rl=function(t,e,r){return t[e]},iD=(vn={},vn[Ze]=Rl,vn[Lt]=function(t,e,r){return t[r]},vn[zt]=Rl,vn[dt]=function(t,e,r){var n=$a(t);return n instanceof Array?n[e]:n},vn[cr]=Rl,vn);function h_(t){var e=iD[t];return process.env.NODE_ENV!=="production"&&P(e,'Do not support get value on "'+t+'".'),e}function Ls(t,e){return t===Ze?t+"_"+e:t}function Ai(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var i=t.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=i.getDimensionProperty(o);return h_(a)(n,o,s)}else{var u=n;return a===dt&&(u=$a(n)),u}}}}var aD=/\{@(.+?)\}/g,oD=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),i=this.getRawValue(e,r),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),u=n.getItemVisual(e,"style"),l=u&&u[n.getItemVisual(e,"drawType")||"fill"],f=u&&u.stroke,c=this.mainType,h=c==="series",v=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:l,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,i,a,o){r=r||"normal";var s=this.getData(n),u=this.getDataParams(e,n);if(o&&(u.value=o.interpolatedValue),i!=null&&F(u.value)&&(u.value=u.value[i]),!a){var l=s.getItemModel(e);a=l.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(J(a))return u.status=r,u.dimensionIndex=i,a(u);if(H(a)){var f=qy(a,u);return f.replace(aD,function(c,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1),process.env.NODE_ENV!=="production"&&isNaN(d)&&ce("Invalide label formatter: @"+h+", only support @[0], @[1], @[2], ..."));var g=Ai(s,e,d);if(o&&F(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},t.prototype.getRawValue=function(e,r){return Ai(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t})();function Kd(t){var e,r;return W(t)?t.type?r=t:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+Ss(t)):e=t,{text:e,frag:r}}function Aa(t){return new sD(t)}var sD=(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,n=e&&e.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,u=f(e&&e.modBy),l=e&&e.modDataCount||0;(o!==u||s!==l)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=u,this._modDataCount=l;var h=e&&e.step;if(r?(process.env.NODE_ENV!=="production"&&P(r._outputDueEnd!=null),this._dueEnd=r._outputDueEnd):(process.env.NODE_ENV!=="production"&&P(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v<d)){var g=this._progress;if(F(g))for(var p=0;p<g.length;p++)this._doProgress(g[p],v,d,u,l);else this._doProgress(g,v,d,u,l)}this._dueIndex=d;var m=this._settedOutputEnd!=null?this._settedOutputEnd:d;process.env.NODE_ENV!=="production"&&P(m>=this._outputDueEnd),this._outputDueEnd=m}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,n,i,a){Qd.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:Qd.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),F(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){process.env.NODE_ENV!=="production"&&P(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})(),Qd=(function(){var t,e,r,n,i,a={reset:function(u,l,f,c){e=u,t=l,r=f,n=c,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var u=e%i*r+Math.ceil(e/i),l=e>=t?null:u<n?u:e;return e++,l}})();function ns(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!Ce(t)&&t!=null&&t!=="-"&&(t=+Bi(t)),t==null||t===""?NaN:Number(t))}Z({number:function(t){return parseFloat(t)},time:function(t){return+Bi(t)},trim:function(t){return H(t)?qt(t):t}});var uD=(function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=Ce(e)?e:_s(e),i=Ce(r)?r:_s(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=H(e),u=H(r);s&&(n=u?e:0),u&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t})();function v_(t){var e="",r=-1/0,n=-1/0,i=1/0,a=1/0;return t&&(t.g!=null&&(e+="G"+t.g,r=t.g),t.ge!=null&&(e+="GE"+t.ge,n=t.ge),t.l!=null&&(e+="L"+t.l,i=t.l),t.le!=null&&(e+="LE"+t.le,a=t.le)),{key:e,g:r,ge:n,l:i,le:a}}function d_(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var lD=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return ns(e,r)},t})();function fD(t,e){var r=new lD,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==Jt&&(process.env.NODE_ENV!=="production"&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),Qe(o));var s=[],u={},l=t.dimensionsDefine;if(l)b(l,function(g,p){var m=g.name,y={index:p,name:m,displayName:g.displayName};if(s.push(y),m!=null){var _="";B(u,m)&&(process.env.NODE_ENV!=="production"&&(_='dimension name "'+m+'" duplicated.'),Qe(_)),u[m]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=f_(i,Jt);e.__isBuiltIn&&(r.getRawDataItem=function(g){return c(n,a,s,g)},r.getRawData=Te(cD,null,t)),r.cloneRawData=Te(hD,null,t);var h=c_(i,Jt);r.count=Te(h,null,n,a,s);var v=h_(i);r.retrieveValue=function(g,p){var m=c(n,a,s,g);return d(m,p)};var d=r.retrieveValueFromItem=function(g,p){if(g!=null){var m=s[p];if(m)return v(g,p,m.name)}};return r.getDimensionInfo=Te(vD,null,s,u),r.cloneAllDimensionInfo=Te(dD,null,s),r}function cD(t){var e=t.sourceFormat;if(!Ah(e)){var r="";process.env.NODE_ENV!=="production"&&(r="`getRawData` is not supported in source format "+e),Qe(r)}return t.data}function hD(t){var e=t.sourceFormat,r=t.data;if(!Ah(e)){var n="";process.env.NODE_ENV!=="production"&&(n="`cloneRawData` is not supported in source format "+e),Qe(n)}if(e===Ze){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===Lt){for(var i=[],a=0,o=r.length;a<o;a++)i.push(k({},r[a]));return i}}function vD(t,e,r){if(r!=null){if(Ce(r)||!isNaN(r)&&!B(e,r))return t[r];if(B(e,r))return e[r]}}function dD(t){return ae(t)}var p_=Z();function pD(t){t=ae(t);var e=t.type,r="";e||(process.env.NODE_ENV!=="production"&&(r="Must have a `type` when `registerTransform`."),Qe(r));var n=e.split(":");n.length!==2&&(process.env.NODE_ENV!=="production"&&(r='Name must include namespace like "ns:regression".'),Qe(r));var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),t.__isBuiltIn=i,p_.set(e,t)}function gD(t,e,r){var n=He(t),i=n.length,a="";i||(process.env.NODE_ENV!=="production"&&(a="If `transform` declared, it should at least contain one transform."),Qe(a));for(var o=0,s=i;o<s;o++){var u=n[o];e=mD(u,e,r,i===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function mD(t,e,r,n){var i="";e.length||(process.env.NODE_ENV!=="production"&&(i="Must have at least one upstream dataset."),Qe(i)),W(t)||(process.env.NODE_ENV!=="production"&&(i="transform declaration must be an object rather than "+typeof t+"."),Qe(i));var a=t.type,o=p_.get(a);o||(process.env.NODE_ENV!=="production"&&(i='Can not find transform on type "'+a+'".'),Qe(i));var s=q(e,function(f){return fD(f,o)}),u=He(o.transform({upstream:s[0],upstreamList:s,config:ae(t.config)}));if(process.env.NODE_ENV!=="production"&&t.print){var l=q(u,function(f){var c=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+r.datasetIndex+c+" ===","- transform result data:",Ss(f.data),"- transform result dimensions:",Ss(f.dimensions)].join(`
|
|
34
|
-
`)}).join(`
|
|
35
|
-
`);wm(l)}return q(u,function(f,c){var h="";W(f)||(process.env.NODE_ENV!=="production"&&(h="A transform should not return some empty results."),Qe(h)),f.data||(process.env.NODE_ENV!=="production"&&(h="Transform result data should be not be null or undefined"),Qe(h));var v=s_(f.data);Ah(v)||(process.env.NODE_ENV!=="production"&&(h="Transform result data should be array rows or object rows."),Qe(h));var d,g=e[0];if(g&&c===0&&!f.dimensions){var p=g.startIndex;p&&(f.data=g.data.slice(0,p).concat(f.data)),d={seriesLayoutBy:Jt,sourceHeader:p,dimensions:g.metaRawOption.dimensions}}else d={seriesLayoutBy:Jt,sourceHeader:0,dimensions:f.dimensions};return jf(f.data,d,null)})}function Ah(t){return t===Ze||t===Lt}var yD=typeof Uint32Array===Hi?Array:Uint32Array,_D=typeof Uint16Array===Hi?Array:Uint16Array,g_=typeof Int32Array===Hi?Array:Int32Array,jd=typeof Float64Array===Hi?Array:Float64Array,m_={float:jd,int:g_,ordinal:Array,number:Array,time:jd},kl;function Qn(t){return t>65535?yD:_D}function SD(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Jd(t,e,r,n,i){var a=m_[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var u=new a(n),l=0;l<s;l++)u[l]=o[l];t[e]=u}}else t[e]=new a(n)}var Jf=(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,n){process.env.NODE_ENV!=="production"&&P(J(e.getItem)&&J(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=kl[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[];var o=u_(i);this._dimensions=q(r,function(s){return process.env.NODE_ENV!=="production"&&o&&P(s.property!=null),{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 n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(e,a),this._chunks[a]=new m_[r||"float"](this._rawCount),this._rawExtent[a]=Pt(),a},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=Pt());for(var u=a[e],l=o;l<s;l++){var f=n[l]=r.parseAndCollect(n[l]);isNaN(f)||(u[0]=Math.min(f,u[0]),u[1]=Math.max(f,u[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){process.env.NODE_ENV!=="production"&&P(!this._indices,"appendData can only be called on raw data.");var r=this._provider,n=this.count();r.appendData(e);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),u=s+Math.max(e.length,r||0),l=0;l<a;l++){var f=i[l];Jd(n,l,f.type,u,!0)}for(var c=[],h=s;h<u;h++)for(var v=h-s,d=0;d<a;d++){var f=i[d],g=kl.arrayRows.call(this,e[v]||c,f.property,v,d);n[d][h]=g;var p=o[d];g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}return this._rawCount=this._count=u,{start:s,end:u}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=q(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];u[f]||(u[f]=Pt()),Jd(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,u);else for(var h=[],v=e;v<r;v++){h=i.getItem(v,h);for(var d=0;d<s;d++){var g=a[d],p=this._dimValueGetter(h,l[d],v,d);g[v]=p;var m=u[d];p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}}!i.persistent&&i.clean&&i.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 n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],i=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(i){isNaN(i)||r.push(i)}),uu(r);var n=this.count();return n===0?0:n%2===1?r[(n-1)/2]:(r[n/2]+r[n/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,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<e)i=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 n=r.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=r[a]}else e=new n(r.buffer,0,i)}else{var n=Qn(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Qn(n._rawCount),o=new a(i),s=[],u=e.length,l=0,f=e[0],c=n._chunks,h=0;h<i;h++){var v=void 0,d=n.getRawIndex(h);if(u===0)v=r(h);else if(u===1){var g=c[f][d];v=r(g,h)}else{for(var p=0;p<u;p++)s[p]=c[e[p]][d];s[p]=h,v=r.apply(null,s)}v&&(o[l++]=d)}return l<i&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var i=Se(e),a=i.length;if(!a)return this;var o=r.count(),s=Qn(r._rawCount),u=new s(o),l=0,f=i[0],c=e[f][0],h=e[f][1],v=r._chunks,d=!1;if(!r._indices){var g=0;if(a===1){for(var p=v[i[0]],m=0;m<n;m++){var y=p[m];(y>=c&&y<=h||isNaN(y))&&(u[l++]=g),g++}d=!0}else if(a===2){for(var p=v[i[0]],_=v[i[1]],S=e[i[1]][0],x=e[i[1]][1],m=0;m<n;m++){var y=p[m],w=_[m];(y>=c&&y<=h||isNaN(y))&&(w>=S&&w<=x||isNaN(w))&&(u[l++]=g),g++}d=!0}}if(!d)if(a===1)for(var m=0;m<o;m++){var T=r.getRawIndex(m),y=v[i[0]][T];(y>=c&&y<=h||isNaN(y))&&(u[l++]=T)}else for(var m=0;m<o;m++){for(var C=!0,T=r.getRawIndex(m),E=0;E<a;E++){var D=i[E],y=v[D][T];(y<e[D][0]||y>e[D][1])&&(C=!1)}C&&(u[l++]=r.getRawIndex(m))}return l<o&&(r._indices=u),r._count=l,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var i=e._chunks,a=[],o=r.length,s=e.count(),u=[],l=e._rawExtent,f=0;f<r.length;f++)l[r[f]]=Pt();for(var c=0;c<s;c++){for(var h=e.getRawIndex(c),v=0;v<o;v++)u[v]=i[r[v]][h];u[o]=c;var d=n&&n.apply(null,u);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var g=r[f],p=d[f],m=l[g],y=i[g];y&&(y[h]=p),p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),f,c,h,v=new(Qn(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));v[s++]=l;for(var d=1;d<o-1;d+=u){for(var g=Math.min(d+u,o-1),p=Math.min(d+u*2,o),m=(p+g)/2,y=0,_=g;_<p;_++){var S=this.getRawIndex(_),x=a[S];isNaN(x)||(y+=x)}y/=p-g;var w=d,T=Math.min(d+u,o),C=d-1,E=a[l];f=-1,h=w;for(var D=-1,M=0,_=w;_<T;_++){var S=this.getRawIndex(_),x=a[S];if(isNaN(x)){M++,D<0&&(D=S);continue}c=Math.abs((C-m)*(x-E)-(C-_)*(y-E)),c>f&&(f=c,h=S)}M>0&&M<T-w&&(v[s++]=Math.min(D,h),h=Math.max(D,h)),v[s++]=h,l=h}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/r),o=i[e],s=this.count(),u=new(Qn(this._rawCount))(Math.ceil(s/a)*2),l=0,f=0;f<s;f+=a){var c=f,h=o[this.getRawIndex(c)],v=f,d=o[this.getRawIndex(v)],g=a;f+a>s&&(g=s-f);for(var p=0;p<g;p++){var m=this.getRawIndex(f+p),y=o[m];y<h&&(h=y,c=f+p),y>d&&(d=y,v=f+p)}var _=this.getRawIndex(c),S=this.getRawIndex(v);c<v?(u[l++]=_,u[l++]=S):(u[l++]=S,u[l++]=_)}return n._count=l,n._indices=u,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],u=Math.floor(1/r),l=o[e],f=this.count(),c=a._rawExtent[e]=Pt(),h=new(Qn(this._rawCount))(Math.ceil(f/u)),v=0,d=0;d<f;d+=u){u>f-d&&(u=f-d,s.length=u);for(var g=0;g<u;g++){var p=this.getRawIndex(d+g);s[g]=l[p]}var m=n(s),y=this.getRawIndex(Math.min(d+i(s,m)||0,f-1));l[y]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),h[v++]=y}return a._count=v,a._indices=h,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[e[0]][s],a);break;case 2:r(i[e[0]][s],i[e[1]][s],a);break;default:for(var u=0,l=[];u<n;u++)l[u]=i[e[u]][s];l[u]=a,r.apply(null,l)}}},t.prototype.getDataExtent=function(e,r){var n=this._chunks[e],i=Pt();if(!n)return i;var a=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[e].slice();var s=this._extent,u=s[e]||(s[e]={}),l=v_(r),f=l.key,c=u[f];if(c)return c.slice();for(var h=i[0],v=i[1],d=0;d<a;d++){var g=this.getRawIndex(d),p=n[g];(!r||d_(l,p))&&(p<h&&(h=p),p>v&&(v=p))}return u[f]=[h,v]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},t.prototype.clone=function(e,r){var n=new t,i=this._chunks,a=e&&pr(e,function(s,u){return s[u]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?SD(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=ae(this._extent),e._rawExtent=ae(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,n,i,a){return ns(r[a],this._dimensions[a])}kl={arrayRows:e,objectRows:function(r,n,i,a){return ns(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return ns(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}})(),t})(),xD=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(ea(e)){var o=e,s=void 0,u=void 0,l=void 0;if(n){var f=r[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),u=et(s)?cr:dt,a=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},v=U(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=U(c.sourceHeader,h.sourceHeader),g=U(c.dimensions,h.dimensions),p=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||g;i=p?[jf(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:g},u)]:[]}else{var m=e;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[jf(_,this._getSourceMetaRawOption(),null)],a=[]}}process.env.NODE_ENV!=="production"&&P(i&&a),this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&P(i!=null||n!=null),i!=null){var a="";e.length!==1&&(process.env.NODE_ENV!=="production"&&(a="When using `fromTransformResult`, there should be only one upstream dataset"),ep(a))}var o,s=[],u=[];return b(e,function(l){l.prepareSource();var f=l.getSource(i||0),c="";i!=null&&!f&&(process.env.NODE_ENV!=="production"&&(c="Can not retrieve result by `fromTransformResult`: "+i),ep(c)),s.push(f),u.push(l._getVersionSign())}),n?o=gD(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[jC(s[0])]),{sourceList:o,upstreamSignList:u}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){process.env.NODE_ENV!=="production"&&P(ea(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,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var u=this._getUpstreamSourceManagers()[0];ea(this._sourceHost)&&u?s=u._innerGetDataStore(e,r,n):(s=new Jf,s.initData(new l_(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(ea(e)){var r=Ch(e);return r?[r.getSourceManager()]:[]}else return q(CC(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if(ea(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},t})();function ea(t){return t.mainType==="series"}function ep(t){throw new Error(t)}var wD="line-height:1";function y_(t){var e=t.lineHeight;return e==null?wD:"line-height:"+nt(e+"")+"px"}function __(t,e){var r=t.color||G.color.tertiary,n=t.fontSize||12,i=t.fontWeight||"400",a=t.color||G.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+nt(n+"")+"px;color:"+nt(r)+";font-weight:"+nt(i+""),valueStyle:"font-size:"+nt(o+"")+"px;color:"+nt(a)+";font-weight:"+nt(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var TD=[0,10,20,30],bD=["",`
|
|
36
|
-
`,`
|
|
37
|
-
|
|
38
|
-
`,`
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
`];function Li(t,e){return e.type=t,e}function ec(t){return t.type==="section"}function S_(t){return ec(t)?CD:DD}function x_(t){if(ec(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return b(t.blocks,function(i){var a=x_(i);a>=e&&(e=a+ +(n&&(!a||ec(i)&&!i.noHeader)))}),e}return 0}function CD(t,e,r,n){var i=e.noHeader,a=ED(x_(e)),o=[],s=e.blocks||[];P(!s||F(s)),s=s||[];var u=t.orderMode;if(e.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(B(l,u)){var f=new uD(l[u],null);s.sort(function(g,p){return f.evaluate(g.sortParam,p.sortParam)})}else u==="seriesDesc"&&s.reverse()}b(s,function(g,p){var m=e.valueFormatter,y=S_(g)(m?k(k({},t),{valueFormatter:m}):t,g,p>0?a.html:0,n);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(a.richText):tc(n,o.join(""),i?r:a.html);if(i)return c;var h=Kf(e.header,"ordinal",t.useUTC),v=__(n,t.renderMode).nameStyle,d=y_(n);return t.renderMode==="richText"?w_(t,h,v)+a.richText+c:tc(n,'<div style="'+v+";"+d+';">'+nt(h)+"</div>"+c,r)}function DD(t,e,r,n){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,u=e.name,l=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(S){return S=F(S)?S:[S],q(S,function(x,w){return Kf(x,F(v)?v[w]:v,l)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||G.color.secondary,i),h=a?"":Kf(u,"ordinal",l),v=e.valueType,d=o?[]:f(e.value,e.rawDataIndex),g=!s||!a,p=!s&&a,m=__(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":c)+(a?"":w_(t,h,y))+(o?"":LD(t,d,g,p,_)):tc(n,(s?"":c)+(a?"":MD(h,!s,y))+(o?"":AD(d,g,p,_)),r)}}function tp(t,e,r,n,i,a){if(t){var o=S_(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function ED(t){return{html:TD[t],richText:bD[t]}}function tc(t,e,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=y_(t);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function MD(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+nt(t)+"</span>"}function AD(t,e,r,n){var i=r?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=F(t)?t:[t],'<span style="'+a+";"+n+'">'+q(t,function(o){return nt(o)}).join(" ")+"</span>"}function w_(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function LD(t,e,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(F(e)?e.join(" "):e,a)}function T_(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return Mi(n)}function b_(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var Bl=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=Uc()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var i=n==="richText"?this._generateStyleName():null,a=oC({color:r,type:e,renderMode:n,markerId:i});return H(a)?a:(process.env.NODE_ENV!=="production"&&P(i),this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};F(r)?b(r,function(a){return k(n,a)}):k(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t})();function OD(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),u=F(s),l=T_(e,r),f,c,h,v;if(o>1||u&&!o){var d=ID(s,e,r,a,l);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);v=f=Ai(i,r,a[0]),c=g.type}else v=f=u?s[0]:s;var p=Wc(e),m=p&&e.name||"",y=i.getName(r),_=n?m:y;return Li("section",{header:m,noHeader:n||!p,sortParam:v,blocks:[Li("nameValue",{markerType:"item",markerColor:l,name:_,noName:!qt(_),value:f,valueType:c,rawDataIndex:i.getRawIndex(r)})].concat(h||[])})}function ID(t,e,r,n,i){var a=e.getData(),o=pr(t,function(c,h,v){var d=a.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];n.length?b(n,function(c){f(Ai(a,r,c),c)}):b(t,f);function f(c,h){var v=a.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?l.push(Li("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:c,valueType:v.type})):(s.push(c),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var Cr=ye();function Eo(t,e){return t.getName(e)||t.getId(e)}var PD="__universalTransitionEnabled",Vr=(function(t){z(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Aa({count:RD,reset:kD}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Cr(this).sourceManager=new xD(this);a.prepareSource();var o=this.getInitialData(r,i);np(o,this),this.dataTask.context.data=o,process.env.NODE_ENV!=="production"&&P(o,"getInitialData returned invalid data."),Cr(this).dataBeforeProcessed=o,rp(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Fa(this),a=i?Ui(r):{},o=this.subType;fe.hasClass(o)&&(o+="Series"),de(r,n.getTheme().get(this.subType)),de(r,this.getDefaultOption()),Pf(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Fr(r,a,i)},e.prototype.mergeOption=function(r,n){r=de(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Fa(this);i&&Fr(this.option,r,i);var a=Cr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);np(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Cr(this).dataBeforeProcessed=o,rp(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!et(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Pf(r[i],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=rc(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return Cr(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=rc(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Cr(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return Z(r)},e.prototype.getSourceManager=function(){return Cr(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Cr(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,n,i,a){var o=this.getData(),s=this.coordinateSystem,u=s&&s.getAxis(r);if(!s||!u)return[];var l=u.dataToCoord(i);a==null&&(a=1/0);for(var f=[],c=1/0,h=-1,v=0,d=o.getDimensionIndex(n),g=o.getStore(),p=0,m=g.count();p<m;p++){var y=g.get(d,p),_=u.dataToCoord(y),S=l-_,x=Math.abs(S);x<=a&&((x<c||x===c&&S>=0&&h<0)&&(c=x,h=S,v=0),S===h&&(f[v++]=p))}return f.length=v,f},e.prototype.formatTooltip=function(r,n,i){return OD({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(te.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=Dh.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),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,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var u=r[s],l=Eo(o,u);i[l]=!1,this._selectedDataIndicesMap[l]=-1}}},e.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Se(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Eo(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[PD])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,u=n.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){W(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var c=n[f],h=Eo(r,c);l[h]=!0,this._selectedDataIndicesMap[h]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var v=n[u-1],h=Eo(r,v);o.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(a={},a[h]=r.getRawIndex(v),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return fe.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})(fe);Ft(Vr,oD);Ft(Vr,Dh);Pm(Vr,fe);function rp(t){var e=t.name;Wc(t)||(t.name=ND(t)||e)}function ND(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return b(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function RD(t){return t.model.getRawData().count()}function kD(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),BD}function BD(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function np(t,e){b(i1(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Ie(FD,e))})}function FD(t,e){var r=rc(t);return r&&r.setOutputEnd((e||this).count()),e}function rc(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}var At=(function(){function t(){this.group=new st,this.uid=ja("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();qc(At);fu(At);function Lh(){var t=ye();return function(e){var r=t(e),n=e.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var C_=ye(),VD=Lh(),Rr=(function(){function t(){this.group=new st,this.uid=ja("viewChart"),this.renderTask=Aa({plan:zD,reset:HD}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);if(!a){process.env.NODE_ENV!=="production"&&ce("Unknown dataType "+i.dataType);return}ap(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);if(!a){process.env.NODE_ENV!=="production"&&ce("Unknown dataType "+i.dataType);return}ap(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){lh(this.group,e)},t.markUpdateMethod=function(e,r){C_(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function ip(t,e,r){t&&Di(t)&&(e==="emphasis"?bs:Cs)(t,r)}function ap(t,e,r){var n=Fi(t,e),i=e&&e.highlightKey!=null?BT(e.highlightKey):null;n!=null?b(He(n),function(a){ip(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){ip(a,r,i)})}qc(Rr,["dispose"]);fu(Rr);function zD(t){return VD(t.model)}function HD(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&C_(i).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](e,r,n,i),GD[u]}var GD={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)}}},Os="\0__throttleOriginMethod",op="\0__throttleRate",sp="\0__throttleType";function Au(t,e,r){var n,i=0,a=0,o=null,s,u,l,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(u,l||[])}var h=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),u=this,l=v;var g=f||e,p=f||r;f=null,s=n-(p?i:a)-g,clearTimeout(o),p?o=setTimeout(c,g):s>=0?c():o=setTimeout(c,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function Oh(t,e,r,n){var i=t[e];if(i){var a=i[Os]||i,o=i[sp],s=i[op];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=Au(a,r,n==="debounce"),i[Os]=a,i[sp]=n,i[op]=r}return i}}function Is(t,e){var r=t[e];r&&r[Os]&&(r.clear&&r.clear(),t[e]=r[Os])}var up=ye(),lp={itemStyle:Ra(Ry,!0),lineStyle:Ra(Ny,!0)},UD={lineStyle:"stroke",itemStyle:"fill"};function D_(t,e){var r=t.visualStyleMapper||lp[e];return r||(console.warn("Unknown style type '"+e+"'."),lp.itemStyle)}function E_(t,e){var r=t.visualDrawType||UD[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var WD={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=D_(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=E_(t,n),l=o[u],f=J(l)?l:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[u]||(o[u]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||J(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||J(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",u),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var g=t.getDataParams(d),p=k({},o);p[u]=f(g),v.setItemVisual(d,"style",p)}}}},ta=new be,YD={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=D_(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){ta.option=u[n];var l=i(ta),f=o.ensureUniqueItemVisual(s,"style");k(f,l),ta.option.decal&&(o.setItemVisual(s,"decal",ta.option.decal),ta.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},XD={performRawSeries:!0,overallReset:function(t){var e=Z();t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.type+"-"+r.getColorBy();up(r).scope=e.get(n)||e.set(n,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.getRawData(),i={},a=r.getData(),o=up(r).scope,s=r.visualStyleAccessPath||"itemStyle",u=E_(r,s);a.each(function(l){var f=a.getRawIndex(l);i[f]=l}),n.each(function(l){var f=i[l],c=a.getItemVisual(f,"colorFromPalette");if(c){var h=a.ensureUniqueItemVisual(f,"style"),v=n.getName(l)||l+"",d=n.count();h[u]=r.getColorFromPalette(v,o,d)}})}})}},Mo=Math.PI;function ZD(t,e){e=e||{},ge(e,{text:"loading",textColor:G.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:G.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new st,n=new Le({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new Xe({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 Le({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new _u({shape:{startAngle:-Mo/2,endAngle:-Mo/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Mo*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Mo*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,u=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-u*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:u),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:l,cy:f}),a.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var M_=(function(){function t(e,r,n,i){this._stageTaskMap=Z(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.__preparePipelineContext?e.__preparePipelineContext(r,n):Om(e,r,n);e.pipelineContext=n.context=i},t.prototype.restorePipelines=function(e,r){var n=this,i=n._pipelineMap=Z();r.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;i.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}),n._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;b(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";process.env.NODE_ENV!=="production"&&(o='"reset" and "overallReset" must not be both specified.'),P(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,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,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;b(e,function(u,l){if(!(i.visualType&&i.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var g=o.getPerformArgs(h,i.block);d.each(function(p){p.perform(g)}),h.perform(g)&&(a=!0)}else c&&c.each(function(p,m){s(i,p)&&p.dirty();var y=o.getPerformArgs(p,i.block);y.skip=!u.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(y)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.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,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=Z(),u=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):u?n.eachRawSeriesByType(u,f):l&&l(n,i).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||Aa({plan:jD,reset:JD,count:tE}));v.context={model:c,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,v)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||Aa({reset:$D});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=Z(),l=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,h=!1,v="";process.env.NODE_ENV!=="production"&&(v='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),P(!e.createOnAllSeries,v),l?n.eachRawSeriesByType(l,d):f?f(n,i).each(d):b(n.getSeries(),d);function d(g){var p=g.uid,m=u.set(p,s&&s.get(p)||(h=!0,Aa({reset:qD,onDirty:QD})));m.context={model:g,dirtyOnOverallProgress:c},m.agent=o,m.__block=c,a._pipe(g,m)}h&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},t.wrapStageHandler=function(e,r){return J(e)&&(e={overallReset:e,seriesType:rE(e)}),e.uid=ja("stageHandler"),r&&(e.visualType=r),e},t})();function $D(t){t.overallReset(t.ecModel,t.api,t.payload)}function qD(t){return t.dirtyOnOverallProgress&&KD}function KD(){this.agent.dirty(),this.getDownstream().dirty()}function QD(){this.agent&&this.agent.dirty()}function jD(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function JD(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=He(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?q(e,function(r,n){return A_(n)}):eE}var eE=A_(0);function A_(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function tE(t){return t.data.count()}function rE(t){Ps=null;try{t(za,L_)}catch{}return Ps}var za={},L_={},Ps;O_(za,Eh);O_(L_,Zm);za.eachSeriesByType=za.eachRawSeriesByType=function(t){Ps=t};za.eachComponent=function(t){t.mainType==="series"&&t.subType&&(Ps=t.subType)};function O_(t,e){for(var r in e.prototype)t[r]=Ve}var R=G.darkColor,fp=R.background,ra=function(){return{axisLine:{lineStyle:{color:R.axisLine}},splitLine:{lineStyle:{color:R.axisSplitLine}},splitArea:{areaStyle:{color:[R.backgroundTint,R.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:R.axisMinorSplitLine}},axisLabel:{color:R.axisLabel},axisName:{}}},cp={label:{color:R.secondary},itemStyle:{borderColor:R.borderTint},dividerLineStyle:{color:R.border}},I_={darkMode:!0,color:R.theme,backgroundColor:fp,axisPointer:{lineStyle:{color:R.border},crossStyle:{color:R.borderShade},label:{color:R.tertiary}},legend:{textStyle:{color:R.secondary},pageTextStyle:{color:R.tertiary}},textStyle:{color:R.secondary},title:{textStyle:{color:R.primary},subtextStyle:{color:R.quaternary}},toolbox:{iconStyle:{borderColor:R.accent50},feature:{dataView:{backgroundColor:fp,textColor:R.primary,textareaColor:R.background,textareaBorderColor:R.border,buttonColor:R.accent50,buttonTextColor:R.neutral00}}},tooltip:{backgroundColor:R.neutral20,defaultBorderColor:R.border,textStyle:{color:R.tertiary}},dataZoom:{borderColor:R.accent10,textStyle:{color:R.tertiary},brushStyle:{color:R.backgroundTint},handleStyle:{color:R.neutral00,borderColor:R.accent20},moveHandleStyle:{color:R.accent40},emphasis:{handleStyle:{borderColor:R.accent50}},dataBackground:{lineStyle:{color:R.accent30},areaStyle:{color:R.accent20}},selectedDataBackground:{lineStyle:{color:R.accent50},areaStyle:{color:R.accent30}}},visualMap:{textStyle:{color:R.secondary},handleStyle:{borderColor:R.neutral30}},timeline:{lineStyle:{color:R.accent10},label:{color:R.tertiary},controlStyle:{color:R.accent30,borderColor:R.accent30}},calendar:{itemStyle:{color:R.neutral00,borderColor:R.neutral20},dayLabel:{color:R.tertiary},monthLabel:{color:R.secondary},yearLabel:{color:R.secondary}},matrix:{x:cp,y:cp,backgroundColor:{borderColor:R.axisLine},body:{itemStyle:{borderColor:R.borderTint}}},timeAxis:ra(),logAxis:ra(),valueAxis:ra(),categoryAxis:ra(),line:{symbol:"circle"},graph:{color:R.theme},gauge:{title:{color:R.secondary},axisLine:{lineStyle:{color:[[1,R.neutral05]]}},axisLabel:{color:R.axisLabel},detail:{color:R.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:R.background}},radar:(function(){var t=ra();return t.axisName={color:R.axisLabel},t.axisLine.lineStyle.color=R.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:R.neutral20,textStyle:{color:R.secondary}},emphasis:{itemStyle:{color:R.neutral30}}}},sunburst:{itemStyle:{borderColor:R.background}},map:{itemStyle:{borderColor:R.border,areaColor:R.neutral10},label:{color:R.tertiary},emphasis:{label:{color:R.primary},itemStyle:{areaColor:R.highlight}},select:{label:{color:R.primary},itemStyle:{areaColor:R.highlight}}},geo:{itemStyle:{borderColor:R.border,areaColor:R.neutral10},emphasis:{label:{color:R.primary},itemStyle:{areaColor:R.highlight}},select:{label:{color:R.primary},itemStyle:{color:R.highlight}}}};I_.categoryAxis.splitLine.show=!1;var nE=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(H(e)){var a=Kt(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};b(e,function(u,l){for(var f=!1,c=0;c<o.length;c++){var h=o[c],v=l.lastIndexOf(h);if(v>0&&v===l.length-h.length){var d=l.slice(0,v);d!=="data"&&(r.mainType=d,r[h.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(n[l]=u,f=!0),f||(i[l]=u)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var u=r.cptQuery,l=r.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,a,"name")&&f(l,a,"dataIndex")&&f(l,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,i,a));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})(),nc=["symbol","symbolSize","symbolRotate","symbolOffset"],hp=nc.concat(["symbolKeepAspect"]),iE={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<nc.length;o++){var s=nc[o],u=t.get(s);J(u)?(a=!0,i[s]=u):n[s]=u}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(k({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var l=Se(i);function f(c,h){for(var v=t.getRawValue(h),d=t.getDataParams(h),g=0;g<l.length;g++){var p=l[g];c.setItemVisual(h,p,i[p](v,d))}}return{dataEach:a?f:null}}},aE={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<hp.length;s++){var u=hp[s],l=o.getShallow(u,!0);l!=null&&i.setItemVisual(a,u,l)}}return{dataEach:r.hasItemOption?n:null}}};function P_(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+r)}}function N_(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:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+e)}}function oE(t,e,r,n){switch(r){case"color":var i=t.ensureUniqueItemVisual(e,"style");i[t.getVisual("drawType")]=n,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,r,n);break;default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+r)}}function sE(t,e){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:t,query:i},function(o){a.push(o.seriesIndex)}),a}b([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=k({},i),process.env.NODE_ENV!=="production"&&Pe(i.type,n[1]),o.dispatchAction(k(i,{type:n[1],seriesIndex:r(a,i)}))})})}function jn(t,e,r,n,i){var a=t+e;r.isSilent(a)||(process.env.NODE_ENV!=="production"&&er("event "+a+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=i.selected,f=0;f<l.length;f++)if(l[f].seriesIndex===s){var c=o.getData(),h=Fi(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:F(h)?c.getName(h[0]):c.getName(h),selected:H(u)?u:k({},u)})}}))}function uE(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(jn("map","selectchanged",e,i,n),jn("pie","selectchanged",e,i,n)):n.fromAction==="select"?(jn("map","selected",e,i,n),jn("pie","selected",e,i,n)):n.fromAction==="unselect"&&(jn("map","unselected",e,i,n),jn("pie","unselected",e,i,n))})}function di(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var _t=new Vt,Ns={};function lE(t,e){process.env.NODE_ENV!=="production"&&Ns[t]&&ce("Already has an implementation of "+t+"."),Ns[t]=e}function fE(t){return process.env.NODE_ENV!=="production"&&(Ns[t]||ce("Implementation of "+t+" doesn't exists.")),Ns[t]}var R_={};function cE(t,e){R_[t]=e}function hE(t){return R_[t]}var Lu=ye();function vE(t){Lu(t).prepare={}}function dE(t){Lu(t).fullUpdate={}}function k_(t){return Lu(t).prepare}function Wi(t){return Lu(t).fullUpdate}var pE=Math.round(Math.random()*9),gE=typeof Object.defineProperty=="function",mE=(function(){function t(){this._id="__ec_inner_"+pE++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return gE?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})(),yE=we.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n+a),t.lineTo(r-i,n+a),t.closePath()}}),_E=we.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n),t.lineTo(r,n+a),t.lineTo(r-i,n),t.closePath()}}),SE=we.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),u=n-a+o+s,l=Math.asin(s/o),f=Math.cos(l)*o,c=Math.sin(l),h=Math.cos(l),v=o*.6,d=o*.7;t.moveTo(r-f,u+s),t.arc(r,u,o,Math.PI-l,Math.PI*2+l),t.bezierCurveTo(r+f-c*v,u+s+h*v,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-f+c*v,u+s+h*v,r-f,u+s),t.closePath()}}),xE=we.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;t.moveTo(i,a),t.lineTo(i+o,a+r),t.lineTo(i,a+r/4*3),t.lineTo(i-o,a+r),t.lineTo(i,a),t.closePath()}}),wE={line:_r,rect:Le,roundRect:Le,square:Le,circle:qa,diamond:_E,pin:SE,arrow:xE,triangle:yE},TE={line:function(t,e,r,n,i){i.x1=t,i.y1=e+n/2,i.x2=t+r,i.y2=e+n/2},rect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n},roundRect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(t,e,r,n,i){var a=Math.min(r,n);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.r=Math.min(r,n)/2},diamond:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n},pin:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},arrow:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},triangle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n}},Rs={};b(wE,function(t,e){Rs[e]=new t});var bE=we.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=zc(t,e,r),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var i=Rs[n];i||(n="rect",i=Rs[n]),TE[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function CE(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||G.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function Ou(t,e,r,n,i,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var u;return t.indexOf("image://")===0?u=_y(t.slice(8),new j(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?u=Su(t.slice(7),{},new j(e,r,n,i),o?"center":"cover"):u=new bE({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),u.__isEmptyBrush=s,u.setColor=CE,a&&u.setColor(a),u}function DE(t){return F(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function B_(t,e){if(t!=null)return F(t)||(t=[t,t]),[Ee(t[0],e[0])||0,Ee(U(t[1],t[0]),e[1])||0]}function xn(t){return isFinite(t)}function EE(t,e,r){var n=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=xn(n)?n:0,i=xn(i)?i:1,a=xn(a)?a:0,o=xn(o)?o:0;var s=t.createLinearGradient(n,a,i,o);return s}function ME(t,e,r){var n=r.width,i=r.height,a=Math.min(n,i),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,u=e.r==null?.5:e.r;e.global||(o=o*n+r.x,s=s*i+r.y,u=u*a),o=xn(o)?o:.5,s=xn(s)?s:.5,u=u>=0&&xn(u)?u:.5;var l=t.createRadialGradient(o,s,0,o,s,u);return l}function ic(t,e,r){for(var n=e.type==="radial"?ME(t,e,r):EE(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function AE(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 Ao(t){return parseInt(t,10)}function Lo(t,e,r){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[i]||Ao(s[n])||Ao(t.style[n]))-(Ao(s[a])||0)-(Ao(s[o])||0)||0}function LE(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Ce(t)?[t]:F(t)?t:null}function F_(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&LE(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=q(r,function(a){return a/i}),n/=i)}return[r,n]}var OE=new In(!0);function ks(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function vp(t){return typeof t=="string"&&t!=="none"}function Bs(t){var e=t.fill;return e!=null&&e!=="none"}function dp(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 pp(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 ac(t,e,r){var n=Nm(e.image,e.__image,r);if(cu(n)){var i=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*a1),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function IE(t,e,r,n,i){var a,o=ks(r),s=Bs(r),u=r.strokePercent,l=u<1,f=!e.path;(!e.silent||l)&&f&&e.createPathProxy();var c=e.path||OE,h=e.__dirty;if(!n){var v=r.fill,d=r.stroke,g=s&&!!v.colorStops,p=o&&!!d.colorStops,m=s&&!!v.image,y=o&&!!d.image,_=void 0,S=void 0,x=void 0,w=void 0,T=void 0;(g||p)&&(T=e.getBoundingRect()),g&&(_=h?ic(t,v,T):e.__canvasFillGradient,e.__canvasFillGradient=_),p&&(S=h?ic(t,d,T):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S),m&&(x=h||!e.__canvasFillPattern?ac(t,v,e):e.__canvasFillPattern,e.__canvasFillPattern=x),y&&(w=h||!e.__canvasStrokePattern?ac(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),g?t.fillStyle=_:m&&(x?t.fillStyle=x:s=!1),p?t.strokeStyle=S:y&&(w?t.strokeStyle=w:o=!1)}var C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold);var E,D;t.setLineDash&&r.lineDash&&(a=F_(e),E=a[0],D=a[1]);var M=!0;(f||h&oi)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),M=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),M&&c.rebuildPath(t,l?u:1),E&&(t.setLineDash(E),t.lineDashOffset=D),n?(i.batchFill=s,i.batchStroke=o):r.strokeFirst?(o&&pp(t,r),s&&dp(t,r)):(s&&dp(t,r),o&&pp(t,r)),E&&t.setLineDash([])}function PE(t,e,r){var n=e.__image=Nm(r.image,e.__image,e,e.onload);if(!(!n||!cu(n))){var i=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),u=n.width/n.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var l=r.sx||0,f=r.sy||0;t.drawImage(n,l,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var l=r.sx,f=r.sy,c=o-l,h=s-f;t.drawImage(n,l,f,c,h,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function NE(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||kr,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=F_(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(ks(r)&&t.strokeText(i,r.x,r.y),Bs(r)&&t.fillText(i,r.x,r.y)):(Bs(r)&&t.fillText(i,r.x,r.y),ks(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var gp=["shadowBlur","shadowOffsetX","shadowOffsetY"],mp=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function V_(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){je(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Dn.opacity:o}(n||e.blend!==r.blend)&&(a||(je(t,i),a=!0),t.globalCompositeOperation=e.blend||Dn.blend);for(var s=0;s<gp.length;s++){var u=gp[s];(n||e[u]!==r[u])&&(a||(je(t,i),a=!0),t[u]=t.dpr*(e[u]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(je(t,i),a=!0),t.shadowColor=e.shadowColor||Dn.shadowColor),a}function yp(t,e,r,n,i){var a=e.style,o=n?null:r&&r.style||{};if(a===o)return!1;var s=V_(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(je(t,i),s=!0),vp(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(je(t,i),s=!0),vp(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(je(t,i),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var u=a.lineWidth,l=u/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(je(t,i),s=!0),t.lineWidth=l)}for(var f=0;f<mp.length;f++){var c=mp[f],h=c[0];(n||a[h]!==o[h])&&(s||(je(t,i),s=!0),t[h]=a[h]||c[1])}return s}function RE(t,e,r,n,i){return V_(t,e.style,r&&r.style,n,i)}function z_(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function kE(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),z_(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}function BE(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var _p=1,Sp=2,xp=3,wp=4;function FE(t){var e=Bs(t),r=ks(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 je(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function H_(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};wn(t,e,r),Si(t,r)}function wn(t,e,r){var n=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~at,e.__isRendered=!1;return}var i=e.__clipPaths,a=r.prevElClipPaths,o=e.style,s=!1,u=!1;if((!a||AE(i,a))&&(a&&(je(t,r),t.restore(),u=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(je(t,r),t.save(),kE(i,t,r),s=!0,r.prevElClipPaths=i)),r.allClipped){e.__dirty&=~at,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var l=r.prevEl;l||(u=s=!0);var f=e instanceof we&&e.autoBatch&&FE(o);s||BE(n,l.transform)?(je(t,r),z_(t,e)):f||je(t,r),e instanceof we?(r.lastDrawType!==_p&&(u=!0,r.lastDrawType=_p),yp(t,e,l,u,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),IE(t,e,o,f,r)):e instanceof xs?(r.lastDrawType!==xp&&(u=!0,r.lastDrawType=xp),yp(t,e,l,u,r),NE(t,e,o)):e instanceof Gr?(r.lastDrawType!==Sp&&(u=!0,r.lastDrawType=Sp),RE(t,e,l,u,r),PE(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==wp&&(u=!0,r.lastDrawType=wp),VE(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&&je(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Si(t,e){je(t,e),e.prevElClipPaths&&t.restore()}function VE(t,e,r){var n=e.getDisplayables(),i=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=n.length;o<s;o++){var u=n[o];u.beforeBrush&&u.beforeBrush(r.beforeBrushParam),u.innerBeforeBrush(),wn(t,u,a),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}Si(t,a);for(var l=0,f=i.length;l<f;l++){var u=i[l];u.beforeBrush&&u.beforeBrush(r.beforeBrushParam),u.innerBeforeBrush(),wn(t,u,a),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}Si(t,a),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Fl=new mE,Tp=new wi(100),bp=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Fs(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&Fl.delete(t);var a=Fl.get(t);if(a)return a;var o=ge(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,Fl.set(t,s),t.dirty=!1,s;function u(l){for(var f=[r],c=!0,h=0;h<bp.length;++h){var v=o[bp[h]];if(v!=null&&!F(v)&&!H(v)&&!Ce(v)&&typeof v!="boolean"){c=!1;break}f.push(v)}var d;if(c){d=f.join(",")+(i?"-svg":"");var g=Tp.get(d);g&&(i?l.svgElement=g:l.image=g)}var p=U_(o.dashArrayX),m=zE(o.dashArrayY),y=G_(o.symbol),_=HE(p),S=W_(m),x=!i&&ot.createCanvas(),w=i&&{tag:"g",attrs:{},key:"dcl",children:[]},T=E(),C;x&&(x.width=T.width*r,x.height=T.height*r,C=x.getContext("2d")),D(),c&&Tp.put(d,x||w),l.image=x,l.svgElement=w,l.svgWidth=T.width,l.svgHeight=T.height;function E(){for(var M=1,L=0,A=_.length;L<A;++L)M=kv(M,_[L]);for(var O=1,L=0,A=y.length;L<A;++L)O=kv(O,y[L].length);M*=O;var I=S*_.length*y.length;if(process.env.NODE_ENV!=="production"){var N=function(V){console.warn("Calculated decal size is greater than "+V+" due to decal option settings so "+V+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+V+" to be larger to avoid incontinuity.")};M>o.maxTileWidth&&N("maxTileWidth"),I>o.maxTileHeight&&N("maxTileHeight")}return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(I,o.maxTileHeight))}}function D(){C&&(C.clearRect(0,0,x.width,x.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,x.width,x.height)));for(var M=0,L=0;L<m.length;++L)M+=m[L];if(M<=0)return;for(var A=-S,O=0,I=0,N=0;A<T.height;){if(O%2===0){for(var V=I/2%y.length,Y=0,K=0,Q=0;Y<T.width*2;){for(var $=0,L=0;L<p[N].length;++L)$+=p[N][L];if($<=0)break;if(K%2===0){var ee=(1-o.symbolSize)*.5,ne=Y+p[N][K]*ee,X=A+m[O]*ee,le=p[N][K]*o.symbolSize,pe=m[O]*o.symbolSize,ut=Q/2%y[V].length;rr(ne,X,le,pe,y[V][ut])}Y+=p[N][K],++Q,++K,K===p[N].length&&(K=0)}++N,N===p.length&&(N=0)}A+=m[O],++I,++O,O===m.length&&(O=0)}function rr(lt,ke,re,oe,Wr){var $e=i?1:r,Qh=Ou(Wr,lt*$e,ke*$e,re*$e,oe*$e,o.color,o.symbolKeepAspect);if(i){var jh=n.painter.renderOneToVNode(Qh);jh&&w.children.push(jh)}else H_(C,Qh)}}}}function G_(t){if(!t||t.length===0)return[["rect"]];if(H(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!H(t[r])){e=!1;break}if(e)return G_([t]);for(var n=[],r=0;r<t.length;++r)H(t[r])?n.push([t[r]]):n.push(t[r]);return n}function U_(t){if(!t||t.length===0)return[[0,0]];if(Ce(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!Ce(t[n])){r=!1;break}if(r)return U_([t]);for(var i=[],n=0;n<t.length;++n)if(Ce(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else{var e=q(t[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function zE(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(Ce(t)){var e=Math.ceil(t);return[e,e]}var r=q(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function HE(t){return q(t,function(e){return W_(e)})}function W_(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var GE=$c(UE);function UE(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var u=n.ensureUniqueItemVisual(o,"style");u.decal=Fs(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Fs(i,e)}}})}var WE=1,YE=800,XE=900,ZE=920,$E=1e3,qE=2e3,Cp=5e3,Y_=1e3,KE=1100,Ih=2e3,X_=3e3,QE=4e3,Iu=4500,jE=4600,JE=5e3,eM=6e3,Z_=7e3,tM={PROCESSOR:{SERIES_FILTER:YE,AXIS_STATISTICS:ZE,FILTER:$E,STATISTIC:Cp,STATISTICS:Cp},VISUAL:{LAYOUT:Y_,PROGRESSIVE_LAYOUT:KE,GLOBAL:Ih,CHART:X_,POST_CHART_LAYOUT:jE,COMPONENT:QE,BRUSH:JE,CHART_ITEM:Iu,ARIA:eM,DECAL:Z_}},Oe="__flagInMainProcess",Oo="__mainProcessVersion",Ne="__pendingUpdate",Vl="__needsUpdateStatus",Dp=/^[a-zA-Z0-9_]+$/,zl="__connectUpdateStatus",Ep=0,rM=1,nM=2;function $_(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){rt(this.id);return}return K_(this,t,e)}}function q_(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return K_(this,t,e)}}function K_(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),Vt.prototype[e].apply(t,r)}var Q_=(function(t){z(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Vt),j_=Q_.prototype;j_.on=q_("on");j_.off=q_("off");var dn,Hl,Io,ar,Po,Gl,Ul,Jn,ei,Mp,Ap,Wl,Lp,No,Op,J_,mt,Ip,ti,e0=(function(t){z(e,t);function e(r,n,i){var a=t.call(this,new nE)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a.__v_skip=!0,a._dom=r;var o="canvas",s="auto",u=!1;if(a[Oo]=1,process.env.NODE_ENV!=="production"){var l=te.hasGlobalWindow?window:global;l&&(o=U(l.__ECHARTS__DEFAULT__RENDERER__,o),s=U(l.__ECHARTS__DEFAULT__COARSE_POINTER,s),u=U(l.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,u))}i.ssr;var f=a._zr=Pv(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:U(i.useDirtyRect,u),useCoarsePointer:U(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Au(Te(f.flush,f),17),a._updateTheme(n),a._locale=Zb(i.locale||By),a._coordSysMgr=new Eu;var c=a._api=Op(a);function h(v,d){return v.__prio-d.__prio}return Wo(Hs,h),Wo(sc,h),a._scheduler=new M_(a,c,sc,Hs),a._messageCenter=new Q_,a._initEvents(),a.resize=Te(a.resize,a),f.animation.on("frame",a._onframe,a),Mp(f,a),Ap(f,a),cf(a),a}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,n=this._model,i=this._api;if(Ip(this),this[Ne]){var a=this[Ne].silent;this[Oe]=!0,ti(this);try{dn(this),ar.update.call(this,null,this[Ne].updateParams)}catch(u){throw this[Oe]=!1,this[Ne]=null,u}this._zr.flush(),this[Oe]=!1,this[Ne]=null,Jn.call(this,a),ei.call(this,a)}else if(r.unfinished){var o=WE;do{r.unfinished=!1;var s=ot.getTime();r.performSeriesTasks(n),r.performDataProcessorTasks(n),Gl(this,n),r.performVisualTasks(n),No(this,this._model,i,"remain",{}),o-=ot.getTime()-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,i){if(this[Oe]){process.env.NODE_ENV!=="production"&&ce("`setOption` should not be called during main process.");return}if(this._disposed){rt(this.id);return}var a,o,s;if(W(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Oe]=!0,ti(this),!this._model||n){var u=new BC(this._api),l=this._theme,f=this._model=new Eh;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},uc);var c={seriesTransition:s,optionChanged:!0};if(i)this[Ne]={silent:a,updateParams:c},this[Oe]=!1,this.getZr().wakeUp();else{try{dn(this),ar.update.call(this,null,c)}catch(h){throw this[Ne]=null,this[Oe]=!1,h}this._ssr||this._zr.flush(),this[Ne]=null,this[Oe]=!1,Jn.call(this,a),ei.call(this,a)}},e.prototype.setTheme=function(r,n){if(this[Oe]){process.env.NODE_ENV!=="production"&&ce("`setTheme` should not be called during main process.");return}if(this._disposed){rt(this.id);return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[Ne]&&(a==null&&(a=this[Ne].silent),o=this[Ne].updateParams,this[Ne]=null),this[Oe]=!0,ti(this);try{this._updateTheme(r),i.setTheme(this._theme),dn(this),ar.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Oe]=!1,s}this[Oe]=!1,Jn.call(this,a),ei.call(this,a)}},e.prototype._updateTheme=function(r){H(r)&&(r=t0[r]),r&&(r=ae(r),r&&a_(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||te.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return process.env.NODE_ENV!=="production"&&Pe("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return b(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){rt(this.id);return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;b(n,function(u){i.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return b(a,function(u){u.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){rt(this.id);return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Pp[i]){var u=s,l=s,f=-s,c=-s,h=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();b(La,function(_,S){if(_.group===i){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ae(r)),w=_.getDom().getBoundingClientRect();u=a(w.left,u),l=a(w.top,l),f=o(w.right,f),c=o(w.bottom,c),h.push({dom:x,left:w.left,top:w.top})}}),u*=v,l*=v,f*=v,c*=v;var d=f-u,g=c-l,p=ot.createCanvas(),m=Pv(p,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:g}),n){var y="";return b(h,function(_){var S=_.left-u,x=_.top-l;y+='<g transform="translate('+S+","+x+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Le({shape:{x:0,y:0,width:d,height:g},style:{fill:r.connectedBackgroundColor}})),b(h,function(_){var S=new Gr({style:{x:_.left*v-u,y:_.top*v-l,image:_.dom}});m.add(S)}),m.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n,i){return Po(this,"convertToPixel",r,n,i)},e.prototype.convertToLayout=function(r,n,i){return Po(this,"convertToLayout",r,n,i)},e.prototype.convertFromPixel=function(r,n,i){return Po(this,"convertFromPixel",r,n,i)},e.prototype.containPixel=function(r,n){if(this._disposed){rt(this.id);return}var i=this._model,a,o=fl(i,r);return b(o,function(s,u){u.indexOf("Models")>=0&&b(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(u==="seriesModels"){var c=this._chartsMap[l.__viewId];c&&c.containPoint?a=a||c.containPoint(n,l):process.env.NODE_ENV!=="production"&&Ke(u+": "+(c?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&Ke(u+": containPoint is not supported")},this)},this),!!a},e.prototype.getVisual=function(r,n){var i=this._model,a=fl(i,r,{defaultMainType:"series"}),o=a.seriesModel;process.env.NODE_ENV!=="production"&&(o||Ke("There is no specified series model"));var s=o.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?P_(s,u,n):N_(s,n)},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;b(iM,function(i){var a=function(o){var s=r.getModel(),u=o.target,l,f=i==="globalout";if(f?l={}:u&&di(u,function(g){var p=_e(g);if(p&&p.dataIndex!=null){var m=p.dataModel||s.getSeriesByIndex(p.seriesIndex);return l=m&&m.getDataParams(p.dataIndex,p.dataType,u)||{},!0}else if(p.eventData)return l=k({},p.eventData),!0},!0),l){var c=l.componentType,h=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=l.seriesIndex);var v=c&&h!=null&&s.getComponent(c,h),d=v&&r[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];process.env.NODE_ENV!=="production"&&!f&&!(v&&d)&&Ke("model or view can not be found by params"),l.event=o,l.type=i,r._$eventProcessor.eventInfo={targetEl:u,packedEvent:l,model:v,view:d},r.trigger(i,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;b(oc,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),uE(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){rt(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){rt(this.id);return}this._disposed=!0;var r=this.getDom();r&&Cm(this.getDom(),Nh,"");var n=this,i=n._api,a=n._model;b(n._componentsViews,function(o){o.dispose(a,i)}),b(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete La[n.id]},e.prototype.resize=function(r){if(this[Oe]){process.env.NODE_ENV!=="production"&&ce("`resize` should not be called during main process.");return}if(this._disposed){rt(this.id);return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[Ne]&&(a==null&&(a=this[Ne].silent),i=!0,this[Ne]=null),this[Oe]=!0,ti(this);try{i&&dn(this),ar.update.call(this,{type:"resize",animation:k({duration:0},r&&r.animation)})}catch(o){throw this[Oe]=!1,o}this[Oe]=!1,Jn.call(this,a),ei.call(this,a)}},e.prototype.showLoading=function(r,n){if(this._disposed){rt(this.id);return}if(W(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!lc[r]){process.env.NODE_ENV!=="production"&&Ke("Loading effects "+r+" not exists.");return}var i=lc[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)},e.prototype.hideLoading=function(){if(this._disposed){rt(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=k({},r);return n.type=zs[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){rt(this.id);return}if(W(n)||(n={silent:!!n}),!!Vs[r.type]&&this._model){if(this[Oe]){this._pendingActions.push(r);return}var i=n.silent;Ul.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&te.browser.weChat&&this._throttledZrFlush(),Jn.call(this,i),ei.call(this,i)}},e.prototype.updateLabelLayout=function(){_t.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){rt(this.id);return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);process.env.NODE_ENV!=="production"&&P(r.data&&a),a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){dn=function(c){vE(c._model);var h=c._scheduler;h.restorePipelines(c._zr,c._model),h.prepareStageTasks(),Hl(c,!0),Hl(c,!1),h.plan()},Hl=function(c,h){for(var v=c._model,d=c._scheduler,g=h?c._componentsViews:c._chartsViews,p=h?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,_=0;_<g.length;_++)g[_].__alive=!1;h?v.eachComponent(function(w,T){w!=="series"&&S(T)}):v.eachSeries(S);function S(w){var T=w.__requireNewView;w.__requireNewView=!1;var C="_ec_"+w.id+"_"+w.type,E=!T&&p[C];if(!E){var D=Kt(w.type),M=h?At.getClass(D.main,D.sub):Rr.getClass(D.sub);process.env.NODE_ENV!=="production"&&P(M,D.sub+" does not exist."),E=new M,E.init(v,y),p[C]=E,g.push(E),m.add(E.group)}w.__viewId=E.__id=C,E.__alive=!0,E.__model=w,E.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!h&&d.prepareView(E,w,v,y)}for(var _=0;_<g.length;){var x=g[_];x.__alive?_++:(!h&&x.renderTask.dispose(),m.remove(x.group),x.dispose(v,y),g.splice(_,1),p[x.__id]===x&&delete p[x.__id],x.__id=x.group.__ecComponentInfo=null)}},Io=function(c,h,v,d,g){var p=c._model;if(p.setUpdatePayload(v),!d){b([].concat(c._componentsViews).concat(c._chartsViews),S);return}var m=sw(v,d,g),y=v.excludeSeriesId,_;y!=null&&(_=Z(),b(He(y),function(x){var w=kt(x,null);w!=null&&_.set(w,!0)})),p&&p.eachComponent(m,function(x){var w=_&&_.get(x.id)!=null;if(!w)if(dd(v))if(x instanceof Vr)v.type===En&&!v.notBlur&&!x.get(["emphasis","disabled"])&&ET(x,v,c._api);else{var T=th(x.mainType,x.componentIndex,v.name,c._api),C=T.focusSelf,E=T.dispatchers;v.type===En&&C&&!v.notBlur&&Gf(x.mainType,x.componentIndex,c._api),E&&b(E,function(D){v.type===En?bs(D):Cs(D)})}else Uf(v)&&x instanceof Vr&&(LT(x,v,c._api),hd(x),mt(c))},c),p&&p.eachComponent(m,function(x){var w=_&&_.get(x.id)!=null;w||S(c[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},c);function S(x){x&&x.__alive&&x[h]&&x[h](x.__model,p,c._api,v)}},ar={prepareAndUpdate:function(c){dn(this),ar.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,h){var v=this._model,d=this._api,g=this._zr,p=this._coordSysMgr,m=this._scheduler;if(v){dE(v),v.setUpdatePayload(c),m.restoreData(v,c),m.performSeriesTasks(v),p.create(v,d),_t.trigger("coordsys:aftercreate",v,d),m.performDataProcessorTasks(v,c),Gl(this,v),p.update(v,d),n(v),m.performVisualTasks(v,c);var y=v.get("backgroundColor")||"transparent";g.setBackgroundColor(y);var _=v.get("darkMode");_!=null&&_!=="auto"&&g.setDarkMode(_),Wl(this,v,d,c,h),_t.trigger("afterupdate",v,d)}},updateTransform:function(c){var h=this,v=h._model,d=h._api;if(v){v.setUpdatePayload(c);var g=[];v.eachComponent(function(m,y){if(m!==Ym){var _=h.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(y,v,d,c);S&&S.update&&g.push(_)}else g.push(_)}});var p=Z();v.eachSeries(function(m){var y=h._chartsMap[m.__viewId],_=m.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var S=y.updateTransform(m,v,d,c);S&&S.update&&p.set(m.uid,1)}else p.set(m.uid,1)}),h._scheduler.performVisualTasks(v,c,{setDirty:!0,dirtyMap:p}),No(h,v,d,c,{},p),_t.trigger("afterupdate",v,d)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),Rr.markUpdateMethod(c,"updateView"),n(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),Wl(this,h,this._api,c,{}),_t.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,v=this._model;v&&(v.setUpdatePayload(c),v.eachSeries(function(d){d.getData().clearAllVisual()}),Rr.markUpdateMethod(c,"updateVisual"),n(v),this._scheduler.performVisualTasks(v,c,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,g){if(d!=="series"){var p=h.getViewOfComponentModel(g);p&&p.__alive&&p.updateVisual(g,v,h._api,c)}}),v.eachSeries(function(d){var g=h._chartsMap[d.__viewId];g.updateVisual(d,v,h._api,c)}),_t.trigger("afterupdate",v,this._api))},updateLayout:function(c){ar.update.call(this,c)}};function r(c,h,v,d,g){if(c._disposed){rt(c.id);return}for(var p=c._model,m=c._coordSysMgr.getCoordinateSystems(),y,_=fl(p,v),S=0;S<m.length;S++){var x=m[S];if(x[h]&&(y=x[h](p,_,d,g))!=null)return y}process.env.NODE_ENV!=="production"&&Ke("No coordinate system that supports "+h+" found by the given finder.")}Po=r,Gl=function(c,h){var v=c._chartsMap,d=c._scheduler;h.eachSeries(function(g){d.updateStreamModes(g,v[g.__viewId])})},Ul=function(c,h){var v=this,d=this.getModel(),g=c.type,p=c.escapeConnect,m=Vs[g],y=(m.update||"update").split(":"),_=y.pop(),S=y[0]!=null&&Kt(y[0]);this[Oe]=!0,ti(this);var x=[c],w=!1;c.batch&&(w=!0,x=q(c.batch,function(N){return N=ge(k({},N),c),N.batch=null,N}));var T=[],C,E=[],D=m.nonRefinedEventType,M=Uf(c),L=dd(c);if(L&&ny(this._api),b(x,function(N){var V=m.action(N,d,v._api);if(m.refineEvent?E.push(V):C=V,C=C||k({},N),C.type=D,T.push(C),L){var Y=Yc(c),K=Y.queryOptionMap,Q=Y.mainTypeSpecified,$=Q?K.keys()[0]:"series";Io(v,_,N,$),mt(v)}else M?(Io(v,_,N,"series"),mt(v)):S&&Io(v,_,N,S.main,S.sub)}),_!=="none"&&!L&&!M&&!S)try{this[Ne]?(dn(this),ar.update.call(this,c),this[Ne]=null):ar[_].call(this,c)}catch(N){throw this[Oe]=!1,N}if(w?C={type:D,escapeConnect:p,batch:T}:C=T[0],this[Oe]=!1,!h){var A=void 0;if(m.refineEvent){var O=m.refineEvent(E,c,d,this._api).eventContent;P(W(O)),A=ge({type:m.refinedEventType},O),A.fromAction=c.type,A.fromActionPayload=c,A.escapeConnect=!0}var I=this._messageCenter;I.trigger(C.type,C),A&&I.trigger(A.type,A)}},Jn=function(c){for(var h=this._pendingActions;h.length;){var v=h.shift();Ul.call(this,v,c)}},ei=function(c){!c&&this.trigger("updated")},Mp=function(c,h){c.on("rendered",function(v){h.trigger("rendered",v),c.animation.isFinished()&&!h[Ne]&&!h._scheduler.unfinished&&!h._pendingActions.length?h.trigger("finished"):c.refresh()})},Ap=function(c,h){c.on("mouseover",function(v){var d=v.target,g=di(d,Di);g&&(MT(g,v,h._api),mt(h))}).on("mouseout",function(v){var d=v.target,g=di(d,Di);g&&(AT(g,v,h._api),mt(h))}).on("click",function(v){var d=v.target,g=di(d,function(y){return _e(y).dataIndex!=null},!0);if(g){var p=g.selected?"unselect":"select",m=_e(g);h._api.dispatchAction({type:p,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function n(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function i(c){var h=[],v=[],d=!1;if(c.eachComponent(function(y,_){var S=_.get("zlevel")||0,x=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(y==="series"?v:h).push({zlevel:S,z:x,idx:_.componentIndex,type:y,key:w})}),d){var g=h.concat(v),p,m;Wo(g,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),b(g,function(y){var _=c.getComponent(y.type,y.idx),S=y.zlevel,x=y.key;p!=null&&(S=Math.max(p,S)),x?(S===p&&x!==m&&S++,m=x):m&&(S===p&&S++,m=""),p=S,_.setZLevel(S)})}}Wl=function(c,h,v,d,g){i(h),Lp(c,h,v,d,g),b(c._chartsViews,function(p){p.__alive=!1}),No(c,h,v,d,g),b(c._chartsViews,function(p){p.__alive||p.remove(h,v)})},Lp=function(c,h,v,d,g,p){b(p||c._componentsViews,function(m){var y=m.__model;l(y,m),m.render(y,h,v,d),u(y,m),f(y,m)})},No=function(c,h,v,d,g,p){var m=c._scheduler;g=k(g||{},{updatedSeries:h.getSeries()}),_t.trigger("series:beforeupdate",h,v,g);var y=!1;h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var x=S.renderTask;m.updatePayload(x,d),l(_,S),p&&p.get(_.uid)&&x.dirty(),x.perform(m.getPerformArgs(x))&&(y=!0),S.group.silent=!!_.get("silent"),s(_,S),hd(_)}),m.unfinished=y||m.unfinished,_t.trigger("series:layoutlabels",h,v,g),_t.trigger("series:transition",h,v,g),h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];u(_,S),f(_,S)}),o(c,h),_t.trigger("series:afterupdate",h,v,g)},mt=function(c){c[Vl]=!0,c.getZr().wakeUp()},ti=function(c){c[Oo]=(c[Oo]+1)%1e6},Ip=function(c){c[Vl]&&(c.getZr().storage.traverse(function(h){Da(h)||a(h)}),c[Vl]=!1)};function a(c){for(var h=[],v=c.currentStates,d=0;d<v.length;d++){var g=v[d];g==="emphasis"||g==="blur"||g==="select"||h.push(g)}c.selected&&c.states.select&&h.push("select"),c.hoverState===du&&c.states.emphasis?h.push("emphasis"):c.hoverState===vu&&c.states.blur&&h.push("blur"),c.useStates(h)}function o(c,h){var v=c._zr;if(v.painter.type==="canvas"){var d=v.storage,g=0;d.traverse(function(m){m.isGroup||g++});var p=g>U(h.get("hoverLayerThreshold"),e_.hoverLayerThreshold)&&!te.node&&!te.worker;(c._usingTHL||p)&&(h.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=c._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(_){var S=_.states.emphasis;S&&S.hoverLayer!==sh&&(S.hoverLayer=p?my:gy)})}}),c._usingTHL=p)}}function s(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function u(c,h){if(!c.preventAutoZ){var v=hh(c);h.eachRendered(function(d){return My(d,v.z,v.zlevel),!0})}}function l(c,h){h.eachRendered(function(v){if(!Da(v)){var d=v.getTextContent(),g=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(c,h){var v=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),g=v.get("duration"),p=g>0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Da(m))return;if(m instanceof we&&FT(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=p;var _=m.getTextContent(),S=m.getTextGuideLine();_&&(_.stateTransition=p),S&&(S.stateTransition=p)}m.__dirty&&a(m)}})}Op=function(c){return new((function(h){z(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return c._model.getComponent(g.mainType,g.index);d=d.parent}},v.prototype.enterEmphasis=function(d,g){bs(d,g),mt(c)},v.prototype.leaveEmphasis=function(d,g){Cs(d,g),mt(c)},v.prototype.enterBlur=function(d){DT(d),mt(c)},v.prototype.leaveBlur=function(d){Jm(d),mt(c)},v.prototype.enterSelect=function(d){ey(d),mt(c)},v.prototype.leaveSelect=function(d){ty(d),mt(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v.prototype.getECUpdateCycleVersion=function(){return c[Oo]},v.prototype.usingTHL=function(){return c._usingTHL},v})(Zm))(c)},J_=function(c){function h(v,d){for(var g=0;g<v.length;g++){var p=v[g];p[zl]=d}}b(zs,function(v,d){c._messageCenter.on(d,function(g){if(Pp[c.group]&&c[zl]!==Ep){if(g&&g.escapeConnect)return;var p=c.makeActionFromEvent(g),m=[];b(La,function(y){y!==c&&y.group===c.group&&m.push(y)}),h(m,Ep),b(m,function(y){y[zl]!==rM&&y.dispatchAction(p)}),h(m,nM)}})})}})(),e})(Vt),Ph=e0.prototype;Ph.on=$_("on");Ph.off=$_("off");Ph.one=function(t,e,r){var n=this;er("ECharts#one is deprecated.");function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(t,i)}this.on.call(this,t,i,r)};var iM=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function rt(t){process.env.NODE_ENV!=="production"&&Ke("Instance "+t+" has been disposed")}var Vs={},zs={},oc={},sc=[],uc=[],Hs=[],t0={},lc={},La={},Pp={},aM=+new Date-0,Nh="_echarts_instance_";function oM(t,e,r){var n=!(r&&r.ssr);if(n){if(process.env.NODE_ENV!=="production"&&!t)throw new Error("Initialize failed: invalid dom.");var i=sM(t);if(i)return process.env.NODE_ENV!=="production"&&Ke("There is a chart instance already initialized on the dom."),i;process.env.NODE_ENV!=="production"&&xi(t)&&t.nodeName.toUpperCase()!=="CANVAS"&&(!t.clientWidth&&(!r||r.width==null)||!t.clientHeight&&(!r||r.height==null))&&Ke("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 e0(t,e,r);return a.id="ec_"+aM++,La[a.id]=a,n&&Cm(t,Nh,a.id),J_(a),_t.trigger("afterinit",a),a}function sM(t){return La[uw(t,Nh)]}function r0(t,e){t0[t]=e}function n0(t){he(uc,t)<0&&uc.push(t)}function i0(t,e){kh(sc,t,e,qE)}function uM(t){Rh("afterinit",t)}function lM(t){Rh("afterupdate",t)}function Rh(t,e){_t.on(t,e)}function Vn(t,e,r){var n,i,a,o,s;J(e)&&(r=e,e=""),W(t)?(n=t.type,i=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(n=t,i=e);function u(f){return f.toLowerCase()}i=u(i||n);var l=a?u(n):i;Vs[n]||(P(Dp.test(n)&&Dp.test(i)),a&&P(i!==n),Vs[n]={actionType:n,refinedEventType:i,nonRefinedEventType:l,update:o,action:r,refineEvent:a},oc[i]=1,a&&s&&(oc[l]=1),process.env.NODE_ENV!=="production"&&zs[l]&&ce(l+' must not be shared; use "refineEvent" if you intend to share an event name.'),zs[l]=n)}function fM(t,e){Eu.register(t,e)}function cM(t,e){kh(Hs,t,e,Y_,"layout",!0)}function zn(t,e){kh(Hs,t,e,X_,"visual",!0)}var Np=[];function kh(t,e,r,n,i,a){if((J(e)||W(e))&&(r=e,e=n),process.env.NODE_ENV!=="production"){if(isNaN(e)||e==null)throw new Error("Illegal priority");b(t,function(s){P(s.__raw!==r)})}if(!(he(Np,r)>=0)){Np.push(r);var o=M_.wrapStageHandler(r,i);o.__prio=e,o.__raw=r,t.push(o),process.env.NODE_ENV!=="production"&&a&&P(!o.dirtyOnOverallProgress,"dirtyOnOverallProgress is not allowed in "+i+" stage; otherwise progressive rendering is disabled on all series.")}}function a0(t,e){lc[t]=e}function hM(t,e,r){var n=fE("registerMap");n&&n(t,e,r)}var vM=pD;zn(Ih,WD);zn(Iu,YD);zn(Iu,XD);zn(Ih,iE);zn(Iu,aE);zn(Z_,GE);n0(a_);i0(XE,qC);a0("default",ZD);Vn({type:En,event:En,update:En},Ve);Vn({type:qo,event:qo,update:qo},Ve);Vn({type:ws,event:Jc,update:ws,action:Ve,refineEvent:Bh,publishNonRefinedEvent:!0});Vn({type:zf,event:Jc,update:zf,action:Ve,refineEvent:Bh,publishNonRefinedEvent:!0});Vn({type:Ts,event:Jc,update:Ts,action:Ve,refineEvent:Bh,publishNonRefinedEvent:!0});function Bh(t,e,r,n){return{eventContent:{selected:OT(r),isFromClick:e.isFromClick||!1}}}r0("default",{});r0("dark",I_);function na(t){return t==null?0:t.length||1}function Rp(t){return t}var o0=(function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||Rp,this._newKeyGetter=i||Rp,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,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],u=n[s],l=na(u);if(l>1){var f=u.shift();u.length===1&&(n[s]=u[0]),this._update&&this._update(f,o)}else l===1?(n[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var u=a[s],l=n[u],f=i[u],c=na(l),h=na(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,l),i[u]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,l),i[u]=null;else if(c===1&&h===1)this._update&&this._update(f,l),i[u]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,l),i[u]=null;else if(c>1)for(var v=0;v<c;v++)this._remove&&this._remove(l[v]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var i=e[n],a=r[i],o=na(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},t.prototype._initIndexMap=function(e,r,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),!!r){var u=r[s],l=na(u);l===0?(r[s]=o,a&&n.push(s)):l===1?r[s]=[u,o]:u.push(o)}}},t})(),dM=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function pM(t,e){var r={},n=r.encode={},i=Z(),a=[],o=[],s={};b(t.dimensions,function(h){var v=t.getDimensionInfo(h),d=v.coordDim;if(d){process.env.NODE_ENV!=="production"&&P(Ff.get(d)==null);var g=v.coordDimIndex;Yl(n,d)[g]=h,v.isExtraCoord||(i.set(d,1),mM(v.type)&&(a[0]=h),Yl(s,d)[g]=t.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}Ff.each(function(p,m){var y=Yl(n,m),_=v.otherDims[m];_!=null&&_!==!1&&(y[_]=v.name)})});var u=[],l={};i.each(function(h,v){var d=n[v];l[v]=d[0],u=u.concat(d)}),r.dataDimsOnCoord=u,r.dataDimIndicesOnCoord=q(u,function(h){return t.getDimensionInfo(h).storeDimIndex}),r.encodeFirstDimNotExtra=l;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new dM(s,e),r}function Yl(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function gM(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function mM(t){return!(t==="ordinal"||t==="time")}var is=(function(){function t(e){this.otherDims={},e!=null&&k(this,e)}return t})(),yM=ye(),_M={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},s0=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=l0(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return U(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=u_(this.source),n=!f0(e),i="",a=[],o=0,s=0;o<e;o++){var u=void 0,l=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)u=r?c.name:null,l=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(u=r?h.name:null,l=h.type)}a.push({property:u,type:l,ordinalMeta:f}),r&&u!=null&&(!c||!c.isCalculationCoord)&&(i+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),i+="$",i+=_M[l]||"f",f&&(i+=f.uid),i+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:a,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function u0(t){return t instanceof s0}function Fh(t){for(var e=Z(),r=0;r<(t||[]).length;r++){var n=t[r],i=W(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,r)}return e}function l0(t){var e=yM(t);return e.dimNameMap||(e.dimNameMap=Fh(t.dimensionsDefine))}function f0(t){return t>30}var ia=W,Dr=q,SM=typeof Int32Array>"u"?Array:Int32Array,xM="e\0\0",kp=-1,wM=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],TM=["_approximateExtent"],Bp,Ro,aa,ri,Xl,oa,Zl,c0=(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 n,i=!1;u0(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f<n.length;f++){var c=n[f],h=H(c)?new is({name:c}):c instanceof is?c:new is(c),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),a[v]=h,l[v]!=null&&(u=!0),h.createInvertedIndices&&(s[v]=[]),process.env.NODE_ENV!=="production"&&P(i||h.storeDimIndex>=0),i&&(h.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=h.storeDimIndex),d.itemId===0&&(this._idDimIdx=h.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=Z();b(o,function(p){g.set(a[p].storeDimIndex,p)})}}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 n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(Ce(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(process.env.NODE_ENV!=="production"&&r==null)throw new 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(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var i=this,a;if(e instanceof Jf&&(a=e),!a){var o=this.dimensions,s=Mh(e)||Je(e)?new l_(e,o.length):e;a=new Jf;var u=Dr(o,function(l){return{type:i._dimInfos[l].type,property:l}});a.initData(s,u,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=pM(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 n=this._store.appendValues(e,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var u=s-i;this._nameList[s]=r[u],o&&Zl(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==cr&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,u=s===dt;if(u&&!i.pure)for(var l=[],f=e;f<r;f++){var c=i.getItem(f,l);if(!this.hasItemOption&&$x(c)&&(this.hasItemOption=!0),c){var h=c.name;a[f]==null&&h!=null&&(a[f]=kt(h,null));var v=c.id;o[f]==null&&v!=null&&(o[f]=kt(v,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)Zl(this,f);Bp(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){ia(e)?k(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=aa(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},t.prototype.getId=function(e){return Ro(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.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 n=this,i=this._store;return F(e)?i.getValues(Dr(e,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;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 n=e&&this._invertedIndicesMap[e];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Do not supported yet");var i=n&&n[r];return i==null||isNaN(i)?kp:i},t.prototype.each=function(e,r,n){J(e)&&(n=r,r=e,e=[]);var i=n||this,a=Dr(ri(e),this._getStoreDimIndex,this);this._store.each(a,i?Te(r,i):r)},t.prototype.filterSelf=function(e,r,n){J(e)&&(n=r,r=e,e=[]);var i=n||this,a=Dr(ri(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?Te(r,i):r),this},t.prototype.selectRange=function(e){var r=this,n={},i=Se(e);return b(i,function(a){var o=r._getStoreDimIndex(a);n[o]=e[a]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){J(e)&&(n=r,r=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(r&&r.apply(this,arguments))},n),i},t.prototype.map=function(e,r,n,i){var a=n||i||this,o=Dr(ri(e),this._getStoreDimIndex,this),s=oa(this);return s._store=this._store.map(o,a?Te(r,a):r),s},t.prototype.modify=function(e,r,n,i){var a=this,o=n||i||this;process.env.NODE_ENV!=="production"&&b(ri(e),function(u){var l=a.getDimensionInfo(u);l.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=Dr(ri(e),this._getStoreDimIndex,this);this._store.modify(s,o?Te(r,o):r)},t.prototype.downSample=function(e,r,n,i){var a=oa(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.minmaxDownSample=function(e,r){var n=oa(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=oa(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new be(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new o0(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Ro(e,n)},function(n){return Ro(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},ia(e)?k(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],i=n&&n[r];return i??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),F(a)?a=a.slice():ia(a)&&(a=k({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,ia(r)?k(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){ia(e)?k(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,n){this._itemLayouts[e]=n?k(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;Wm(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){b(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Dr(this.dimensions,this._getDimInfo,this),this.hostModel)),Xl(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];J(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Ic(arguments)))})},t.internalField=(function(){Bp=function(e){var r=e._invertedIndicesMap;b(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new SM(o.categories.length);for(var u=0;u<n.length;u++)n[u]=kp;for(var u=0;u<s.count();u++)n[s.get(a.storeDimIndex,u)]=u}})},aa=function(e,r,n){return kt(e._getCategory(r,n),null)},Ro=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=aa(e,e._idDimIdx,r)),n==null&&(n=xM+r),n},ri=function(e){return F(e)||(e=e!=null?[e]:[]),e},oa=function(e){var r=new t(e._schema?e._schema:Dr(e.dimensions,e._getDimInfo,e),e.hostModel);return Xl(r,e),r},Xl=function(e,r){b(wM.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,b(TM,function(n){e[n]=ae(r[n])}),e._calculationInfo=k({},r._calculationInfo)},Zl=function(e,r){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[r],u=i[r];if(s==null&&a!=null&&(n[r]=s=aa(e,a,r)),u==null&&o!=null&&(i[r]=u=aa(e,o,r)),u==null&&s!=null){var l=e._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),i[r]=u}}})(),t})();function h0(t,e){Mh(t)||(t=o_(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=Z(),a=[],o=bM(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&f0(o),u=n===t.dimensionsDefine,l=u?l0(t):Fh(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=Z(f),h=new g_(o),v=0;v<h.length;v++)h[v]=-1;function d(E){var D=h[E];if(D<0){var M=n[E],L=W(M)?M:{name:M},A=new is,O=L.name;O!=null&&l.get(O)!=null&&(A.name=A.displayName=O),L.type!=null&&(A.type=L.type),L.displayName!=null&&(A.displayName=L.displayName);var I=a.length;return h[E]=I,A.storeDimIndex=E,a.push(A),A}return a[D]}if(!s)for(var v=0;v<o;v++)d(v);c.each(function(E,D){var M=He(E).slice();if(M.length===1&&!H(M[0])&&M[0]<0){c.set(D,!1);return}var L=c.set(D,[]);b(M,function(A,O){var I=H(A)?l.get(A):A;I!=null&&I<o&&(L[O]=I,p(d(I),D,O))})});var g=0;b(r,function(E){var D,M,L,A;if(H(E))D=E,A={};else{A=E,D=A.name;var O=A.ordinalMeta;A.ordinalMeta=null,A=k({},A),A.ordinalMeta=O,M=A.dimsDef,L=A.otherDims,A.name=A.coordDim=A.coordDimIndex=A.dimsDef=A.otherDims=null}var I=c.get(D);if(I!==!1){if(I=He(I),!I.length)for(var N=0;N<(M&&M.length||1);N++){for(;g<o&&d(g).coordDim!=null;)g++;g<o&&I.push(g++)}b(I,function(V,Y){var K=d(V);if(u&&A.type!=null&&(K.type=A.type),p(ge(K,A),D,Y),K.name==null&&M){var Q=M[Y];!W(Q)&&(Q={name:Q}),K.name=K.displayName=Q.name,K.defaultTooltip=Q.defaultTooltip}L&&ge(K.otherDims,L)})}});function p(E,D,M){Ff.get(D)!=null?E.otherDims[D]=M:(E.coordDim=D,E.coordDimIndex=M,i.set(D,!0))}var m=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=m?y||1:0;var S=m||"value";function x(E){E.name==null&&(E.name=E.coordDim)}if(s)b(a,function(E){x(E)}),a.sort(function(E,D){return E.storeDimIndex-D.storeDimIndex});else for(var w=0;w<o;w++){var T=d(w),C=T.coordDim;C==null&&(T.coordDim=CM(S,i,_),T.coordDimIndex=0,(!m||y<=0)&&(T.isExtraCoord=!0),y--),x(T),T.type==null&&(r_(t,w)===Be.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return Zc(a,function(E){return E.name},function(E,D){D>0&&(E.name=E.name+(D-1))}),new s0({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function bM(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return b(e,function(a){var o;W(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function CM(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var DM=(function(){function t(e){this.coordSysDims=[],this.axisMap=Z(),this.categoryAxisMap=Z(),this.coordSysName=e}return t})();function EM(t){var e=t.get("coordinateSystem"),r=new DM(e),n=MM[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var MM={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",ct).models[0],a=t.getReferringComponents("yAxis",ct).models[0];if(process.env.NODE_ENV!=="production"){if(!i)throw new Error('xAxis "'+Ln(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!a)throw new Error('yAxis "'+Ln(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),ni(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),ni(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",ct).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],r.set("single",i),ni(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",ct).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!o)throw new Error("angleAxis option not found");if(!a)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),ni(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),ni(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();b(a.parallelAxisIndex,function(s,u){var l=i.getComponent("parallelAxis",s),f=o[u];r.set(f,l),ni(l)&&(n.set(f,l),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=u))})},matrix:function(t,e,r,n){var i=t.getReferringComponents("matrix",ct).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("matrix coordinate system should be specified.");e.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function ni(t){return t.get("type")==="category"}function AM(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;LM(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var u=!!(t&&t.get("stack")),l,f,c,h,v=!0;function d(S){return S.type!=="ordinal"&&S.type!=="time"}if(b(a,function(S,x){H(S)&&(a[x]=S={name:S}),d(S)||(v=!1)}),b(a,function(S,x){u&&!S.isExtraCoord&&(!n&&!l&&S.ordinalMeta&&(l=S),!f&&d(S)&&(!v||S.coordDim!=="x"&&S.coordDim!=="angle")&&(!i||i===S.coordDim)&&(f=S))}),f&&!n&&!l&&(n=!0),f){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var g=f.coordDim,p=f.type,m=0;b(a,function(S){S.coordDim===g&&m++});var y={name:c,coordDim:g,coordDimIndex:m,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:h,coordDim:h,coordDimIndex:m+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(h,p),_.storeDimIndex=s.ensureCalculationDimension(c,p)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function LM(t){return!u0(t.schema)}function Vh(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function OM(t,e){return Vh(t,e)?t.getCalculationInfo("stackResultDimension"):e}function IM(t,e){var r=t.get("coordinateSystem"),n=Eu.get(r),i;return e&&e.coordSysDims&&(i=q(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var u=s.get("type");o.type=gM(u)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function PM(t,e,r){var n,i;return r&&b(t,function(a,o){var s=a.coordDim,u=r.categoryAxisMap.get(s);u&&(n==null&&(n=o),a.ordinalMeta=u.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(t[n].otherDims.itemName=0),n}function NM(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===dt;var o=EM(e),s=IM(e,o),u=r.useEncodeDefaulter,l=J(u)?u:u?Ie(TC,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},c=h0(i,f),h=PM(c.dimensions,r.createInvertedIndices,o),v=a?null:n.getSharedDataStore(c),d=AM(e,{schema:c,store:v}),g=new c0(c,e);g.setCalculationInfo(d);var p=h!=null&&RM(i)?function(m,y,_,S){return S===h?_:this.defaultDimValueGetter(m,y,_,S)}:null;return g.hasItemOption=!1,g.initData(a?i:v,null,p),g}function RM(t){if(t.sourceFormat===dt){var e=kM(t.data||[]);return!F($a(e))}}function kM(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var Gt=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();fu(Gt);var BM=0,fc=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++BM,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&q(n,FM);return new t({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!H(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var i=this._getOrCreateMap();return r=i.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,i.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Z(this.categories))},t})();function FM(t){return W(t)&&t.value!=null?t.value:t+""}var Et=0,Ha=1,VM={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},zM=Se(VM),Gs=2,v0=3;function zh(t,e,r){var n;return t=t||{},GM(t,r),{brk:n,mapper:t}}function d0(t,e){b(zM,function(r){t[r]=e[r]})}function p0(t,e){t.freeze=Ve,process.env.NODE_ENV!=="production"&&(t.freeze=function(){e.freeze()})}function Ga(t){return t.getExtentUnsafe(Et,Gs)}function Us(t,e){return t.getExtentUnsafe(Ha,e)||t.getExtentUnsafe(Et,e)}function HM(t){var e=Us(t,v0);return e[1]-e[0]}function Pu(t){var e=t.getExtentUnsafe(Et,v0);return e[1]-e[0]}function GM(t,e){var r=t||{},n=[];return r._extents=n,n[Et]=e?e.slice():Pt(),k(r,UM),r}var UM={needTransform:function(){return!1},normalize:function(t){var e=this._extents[Ha]||this._extents[Et];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[Ha]||this._extents[Et];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=Us(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[Et].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){process.env.NODE_ENV!=="production"&&P(!this._frozen),Fp(this._extents,Et,t,e)},setExtent2:function(t,e,r){process.env.NODE_ENV!=="production"&&P(!this._frozen);var n=this._extents;n[t]||(n[t]=n[Et].slice()),Fp(n,t,e,r)},freeze:function(){process.env.NODE_ENV!=="production"&&(this._frozen=!0)}};function Fp(t,e,r,n){Ci(r,n)?(t[e][0]=r,t[e][1]=n):process.env.NODE_ENV!=="production"&&r!=null&&n!=null&&r<=n&&ce("Invalid setExtent call - start: "+r+", end: "+n)}function g0(t){return Ws(t)||Oi(t)}function Ws(t){return t.type==="interval"}function Nu(t){return t.type==="time"}function Oi(t){return t.type==="log"}function pt(t){return t.type==="ordinal"}function WM(t){var e=Hc(t),r=Bn(10,e),n=gr(t/r);return n?n===2?n=3:n===3?n=5:n*=2:n=1,se(n*r,-e)}function Nn(t){return ur(t)+2}function ko(t,e){return Na(t)/Na(e)}function $l(t,e,r){var n=r&&r.lookup;if(n){for(var i=0;i<n.from.length;i++)if(t===n.from[i])return n.to[i]}return Bn(e,t)}function m0(t,e,r){var n=t.slice();if(n[0]===n[1]){var i=r&&r.ctnShp;if(n[0]!==0){var a=Ae(n[0]);e[1]||(n[1]+=a/2),n[0]-=a/2}else i&&(n[0]=-1),n[1]=1}return(!mr(n[0])||!mr(n[1]))&&(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function YM(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function Ru(t,e){return t=t||e,gr(ue(t,1))}function y0(t,e,r){var n=Ga(t),i=n[0],a=t.count(),o=Math.max((e||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==n[0]&&u(n[0],!0,!0);for(var s=i;s<=n[1];s+=o)u(s,!1,s===n[0]||s===n[1]);s-o!==n[1]&&u(n[1],!0,!0);function u(l,f,c){r({value:l,offInterval:f},c)}}var _0=(function(t){z(e,t);function e(r){var n=t.call(this)||this;n.type="ordinal",n.parse=e.parse,d0(n,e.decoratedMethods);var i=r.ordinalMeta;i||(i=new fc({})),F(i)&&(i=new fc({categories:q(i,function(o){return W(o)?o.value:o})})),n._ordinalMeta=i;var a=zh(null,null,r.extent||[0,i.categories.length-1]);return n._mapper=a.mapper,p0(n,a.mapper),n}return e.parse=function(r){return r==null?r=NaN:H(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=gr(r),r},e.prototype.getTicks=function(){var r=[];return y0(this,0,function(n){r.push(n)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=ze(s,n.length);o<u;++o){var l=i[o]=n[o];a[l]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i[o]=f,a[f]=o}},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},e.prototype.count=function(){var r=Ga(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(gr(this._mapper.scale(r)))},transformIn:function(r,n){return this._mapper.transformIn(this._getTickNumber(r),n)},transformOut:function(r,n){return this.getRawOrdinalNumber(this._mapper.transformOut(r,n))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,n){return this._mapper.getExtentUnsafe(r,n)},setExtent:function(r,n){return this._mapper.setExtent(r,n)},setExtent2:function(r,n,i){return this._mapper.setExtent2(r,n,i)}},e})(Gt);Gt.registerClass(_0);function Hh(t,e,r,n){for(var i=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent(),s=1;s<i.length;s++){var u=i[s],l=i[s-1];if(!(l.break||u.break)){for(var f=0,c=[],h=u.value-l.value,v=h/e,d=Nn(v);f<e-1;){var g=se(l.value+(f+1)*v,d);g>o[0]&&g<o[1]&&c.push(g),f++}var p=Cu();p&&p.pruneTicksByBreak("auto",c,r,function(m){return m},n,o),a.push(c)}}return a}var hr=(function(t){z(e,t);function e(r){var n=t.call(this)||this;n.type="interval",n.parse=e.parse,r=r||{};var i=Vy(n,r),a=zh(n,i,null);return n.brk=a.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return ae(this._cfg)},e.prototype.setConfig=function(r){var n=Ga(this);process.env.NODE_ENV!=="production"&&(P(r.interval!=null),r.intervalCount!=null&&P(r.intervalCount>=-1&&r.intervalPrecision!=null&&!Pn(this)),r.niceExtent!=null&&(P(isFinite(r.niceExtent[0])&&isFinite(r.niceExtent[1])),P(n[0]<=r.niceExtent[0]&&r.niceExtent[1]<=n[1]),P(se(r.niceExtent[0]-r.niceExtent[1],ur(r.interval))<=r.interval))),this._cfg=r=ae(r),r.niceExtent==null&&(r.niceExtent=n.slice()),r.intervalPrecision==null&&(r.intervalPrecision=Nn(r.interval))},e.prototype.getTicks=function(r){r=r||{};var n=this._cfg,i=n.interval,a=Ga(this),o=n.niceExtent,s=n.intervalPrecision,u=Cu(),l=this.brk,f=u,c=[];if(!i)return c;r.breakTicks,process.env.NODE_ENV!=="production"&&P(o!=null);var h=3e3;a[0]<o[0]&&c.push({value:r.expandToNicedExtent?se(o[0]-i,s):a[0]});for(var v=function(_,S){return gr((S-_)/i)},d=n.intervalCount,g=o[0],p=0;;p++){if(d==null){if(g>o[1]||!isFinite(g)||!isFinite(o[1]))break}else{if(p>d)break;g=ze(g,o[1]),p===d&&(g=o[1])}if(c.push({value:g}),g=se(g+i,s),l){var m=l.calcNiceTickMultiple(g,v);m>=0&&(g=se(g+m*i,s))}if(c.length>0&&g===c[c.length-1].value)break;if(c.length>h)return process.env.NODE_ENV!=="production"&&Ke('Exceed safe limit in IntervalScale["getTicks"].'),[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:r.expandToNicedExtent?se(y+i,s):a[1]}),c},e.prototype.getMinorTicks=function(r){return Hh(this,r,ph(this),this._cfg.interval)},e.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=ur(r.value)||0:i==="auto"&&(i=this._cfg.intervalPrecision);var a=se(r.value,i,!0);return Zy(a)},e.type="interval",e})(Gt);Gt.registerClass(hr);var XM=function(t,e,r,n){for(;r<n;){var i=r+n>>>1;t[i][1]<e?r=i+1:n=i}return r},S0=(function(t){z(e,t);function e(r){var n=t.call(this)||this;n.type="time",n.parse=e.parse,n._locale=r.locale,n._useUTC=r.useUTC,n._interval=0;var i=Vy(n,r),a=zh(n,i,null);return n.brk=a.brk,n}return e.prototype.getLabel=function(r){return Du(r.value,Ad[nC(Ma(this._minLevelUnit))]||Ad.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,n,i){return iC(r,n,i,this._locale,this._useUTC)},e.prototype.getTicks=function(r){var n=this._interval,i=Ga(this),a=this.brk,o=[];if(!n)return o;var s=this._useUTC;o=eA(this._minLevelUnit,this._approxInterval,s,i,Pu(this),a);var u=Mn.length-1,l=0;return b(o,function(f){f.time&&(u=Math.min(u,he(Mn,f.time.upperTimeUnit)),l=Math.max(l,f.time.level))}),o},e.prototype.getMinorTicks=function(r){return Hh(this,r,ph(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 Ce(r)?Math.round(r):+Bi(r)},e.type="time",e})(Gt),Bo=[["second",gh],["minute",mh],["hour",Ea],["quarter-day",Ea*6],["half-day",Ea*12],["day",Dt*1.2],["half-week",Dt*3.5],["week",Dt*7],["month",Dt*31],["quarter",Dt*95],["half-year",Md/2],["year",Md]];function ZM(t,e,r,n){return qf(new Date(e),t,n).getTime()===qf(new Date(r),t,n).getTime()}function $M(t,e){return t/=Dt,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function qM(t){var e=30*Dt;return t/=e,t>6?6:t>3?3:t>2?2:1}function KM(t){return t/=Ea,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Vp(t,e){return t/=e?mh:gh,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function QM(t){return ue(Gc(t,!0),1)}function jM(t,e,r){var n=Math.max(0,he(Mn,e)-1);return qf(new Date(t),Mn[n],r).getTime()}function JM(t,e){var r=new Date(0);r[t](1);var n=r.getTime();r[t](1+e);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function eA(t,e,r,n,i,a){var o=3e3,s=Jb,u=0;function l(N,V,Y,K,Q,$,ee){for(var ne=JM(Q,N),X=V,le=new Date(X);X<Y&&X<=n[1];){if(ee.push({value:X}),u++>o){process.env.NODE_ENV!=="production"&&Ke('Exceed safe limit in TimeScale["getTicks"].');break}if(le[Q](le[K]()+N),X=le.getTime(),a){var pe=a.calcNiceTickMultiple(X,ne);pe>0&&(le[Q](le[K]()+pe*N),X=le.getTime())}}ee.push({value:X,notAdd:X>n[1]})}function f(N,V,Y){var K=[],Q=!V.length;if(!ZM(Ma(N),n[0],n[1],r)){Q&&(V=[{value:jM(n[0],N,r)},{value:n[1]}]);for(var $=0;$<V.length-1;$++){var ee=V[$].value,ne=V[$+1].value;if(ee!==ne){var X=void 0,le=void 0,pe=void 0,ut=!1;switch(N){case"year":X=Math.max(1,Math.round(e/Dt/365)),le=zy(r),pe=aC(r);break;case"half-year":case"quarter":case"month":X=qM(e),le=yh(r),pe=Hy(r);break;case"week":case"half-week":case"day":X=$M(e),le=_h(r),pe=Gy(r),ut=!0;break;case"half-day":case"quarter-day":case"hour":X=KM(e),le=Sh(r),pe=Uy(r);break;case"minute":X=Vp(e,!0),le=xh(r),pe=Wy(r);break;case"second":X=Vp(e,!1),le=wh(r),pe=Yy(r);break;case"millisecond":X=QM(e),le=Th(r),pe=Xy(r);break}ne>=n[0]&&ee<=n[1]&&l(X,ee,ne,le,pe,ut,K),N==="year"&&Y.length>1&&$===0&&Y.unshift({value:Y[0].value-X})}}for(var $=0;$<K.length;$++)Y.push(K[$])}}for(var c=[],h=[],v=0,d=0,g=0;g<s.length;++g){var p=Ma(s[g]);if(rC(s[g])){f(s[g],c[c.length-1]||[],h);var m=s[g+1]?Ma(s[g+1]):null;if(p!==m){if(h.length){d=v,h.sort(function(N,V){return N.value-V.value});for(var y=[],_=0;_<h.length;++_){var S=h[_].value;(_===0||h[_-1].value!==S)&&(y.push(h[_]),S>=n[0]&&S<=n[1]&&v++)}var x=i/e;if(v>x*1.5&&d>x/1.5||(c.push(y),v>x||t===s[g]))break}h=[]}}}for(var w=Fe(q(c,function(N){return Fe(N,function(V){return V.value>=n[0]&&V.value<=n[1]&&!V.notAdd})}),function(N){return N.length>0}),T=w.length-1,C=[],g=0;g<w.length;++g)for(var E=w[g],D=0;D<E.length;++D){var M=Jo(E[D].value,r);C.push({value:E[D].value,time:{level:T-g,upperTimeUnit:M,lowerTimeUnit:M}})}Zc(C,vw,null),C.sort(function(N,V){return N.value-V.value});var L=C[0],A=C[C.length-1],O=Jo(n[0],r),I=Jo(n[1],r);return(!L||L.value>n[0])&&C.unshift({value:n[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!A||A.value<n[1])&&C.push({value:n[1],time:{level:0,upperTimeUnit:I,lowerTimeUnit:I},notNice:!0}),C}var tA=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=Dt,r[1]+=Dt),r[1]===-1/0&&r[0]===1/0){var n=new Date;r[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),r[0]=r[1]-Dt}t.setExtent(r[0],r[1]);var i=Ru(e.splitNumber,10),a=Pu(t)/i,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var u=Bo.length,l=Math.min(XM(Bo,a,0,u),u-1),f=Bo[l][1],c=Bo[Math.max(l-1,0)][0];t.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};Gt.registerClass(S0);var Fo=0,Vo=1,Ys=(function(t){z(e,t);function e(r){var n=t.call(this)||this;n.type="log",n.parse=hr.parse,n.base=r.logBase||10;var i=[],a=[];n._lookup={from:i,to:a},i[Fo]=i[Vo]=a[Fo]=a[Vo]=NaN,d0(n,e.mapperMethods),r.breakOption;var o={};return n.powStub=new hr({breakParsed:o.original}),n.intervalStub=new hr({breakParsed:o.transformed}),p0(n,n.intervalStub),n}return e.prototype.getTicks=function(r){var n=this.base,i=this.powStub,a=this.intervalStub,o=a.getExtent(),s=i.getExtent(),u={lookup:{from:o,to:s}};return q(a.getTicks(r||{}),function(l){var f=l.value,c=$l(f,n,u),h;return{value:c,break:h}},this)},e.prototype.getMinorTicks=function(r){return Hh(this,r,ph(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,n){return this.intervalStub.getLabel(r,n)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(ko(r,this.base))},scale:function(r){return $l(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,n){return r=ko(r,this.base),n&&n.depth===Gs?r:this.intervalStub.transformIn(r,n)},transformOut:function(r,n){var i=n?n.depth:null;return zp.depth=i,Hp.lookup=this._lookup,$l(i===Gs?r:this.intervalStub.transformOut(r,zp),this.base,Hp)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,n){this.setExtent2(Et,r,n)},setExtent2:function(r,n,i){if(!(!Ci(n,i)||n<=0||i<=0)){var a=Gp,o=Gp;if(r===Et){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[Fo]=n,a[Vo]=i);var u=this.base;this.intervalStub.setExtent2(r,o[Fo]=ko(n,u),o[Vo]=ko(i,u))}},getFilter:function(){return{g:0}},sanitize:function(r,n){return Ci(n[0],n[1])&&vt(r)&&r<=0&&(r=n[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,n){return n===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,n)}},e})(Gt);Gt.registerClass(Ys);var zp={},Hp={},Gp=[],x0={value:1,category:1,time:1,log:1},w0=ye();function rA(t){var e=t.get("type");return(e==null||!B(x0,e)&&!Gt.getClass(e))&&(e="value"),e}function nA(t,e,r){var n;switch(e){case"category":return new _0({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:Pt()});case"time":return new S0({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:n});case"log":return new Ys({logBase:t.get("logBase"),breakOption:n});case"value":return new hr({breakOption:n});default:return new(Gt.getClass(e)||hr)({})}}function iA(t,e,r){var n=t.getExtentUnsafe(Et,null),i=n[0],a=n[1];return Ci(i,a)?i===e||a===e?oA:i<e&&a>e?aA:cc:cc}var aA=1,oA=2,cc=3;function sA(t){w0(t).noOnMyZero=!0}function uA(t){return w0(t).noOnMyZero}function ku(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=eC(e);return function(i,a){return t.scale.getFormattedLabel(i,a,r)}}else{if(H(e))return function(i){var a=t.scale.getLabel(i),o=e.replace("{value}",a??"");return o};if(J(e)){if(t.type==="category")return function(i,a){return e(Xs(t,i),i.value-t.scale.getExtent()[0],null)};var n=Cu();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),e(Xs(t,i),a,o)}}else return function(i){return t.scale.getLabel(i)}}}function Xs(t,e){var r=t.scale;return pt(r)?r.getLabel(e):e.value}function Gh(t){var e=t.get("interval");return e??"auto"}function lA(t){return t.type==="category"&&Gh(t.getLabelModel())===0}function fA(t,e){var r={};return b(t.mapDimensionsAll(e),function(n){r[OM(t,n)]=!0}),Se(r)}function Ii(t){return t==="middle"||t==="center"}function Ua(t){return t.getShallow("show")}function cA(t,e,r){var n=t.get("breaks",!0);if(n!=null){process.env.NODE_ENV!=="production"&&ce('Must `import {AxisBreak} from "echarts/features.js"; use(AxisBreak);` first if using breaks option.');return}}function T0(t,e,r,n,i,a){var o=Oi(t),s=o?t.intervalStub:t;if(s.setExtent(n[0],n[1]),o){var u=t.powStub,l={depth:Gs},f=t.transformOut(n[0],l),c=t.transformOut(n[1],l),h=YM(r,n);e[0]&&!h[0]&&(f=i[0]),e[1]&&!h[1]&&(c=i[1]),u.setExtent(f,c)}s.setConfig(a)}function to(t,e){return pt(t)?t.getRawOrdinalNumber(e.value):e.value}function b0(t,e){return pt(t)&&!!e.get("boundaryGap")}var C0=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})(),hA=Xc(),Zs="|&",Yi=ye(),D0=-2,vA=-1,dA=ye(),Hn;process.env.NODE_ENV!=="production"&&(Hn=function(t){P(t&&t.model&&t.model.uid&&t.model.ecModel)});function Uh(t,e){var r=t.model,n=Yi(Wi(r.ecModel)).keyed,i=n&&n.get(e);return i&&i.get(r.uid)}function pA(t,e){return process.env.NODE_ENV!=="production"&&(P(e!=null),Hn(t)),M0(Uh(t,e))}function gA(t,e){process.env.NODE_ENV!=="production"&&Hn(t);var r=[];return E0(t.model.ecModel,function(n){for(var i=0;i<e.length;i++)e[i]&&n.serByIdx[e[i].seriesIndex]&&r.push(M0(n))}),r}function E0(t,e){var r=Yi(Wi(t)).keyed;r&&r.each(function(n,i){n.each(function(a,o){e(a,i,o)})})}function M0(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function mA(t,e){process.env.NODE_ENV!=="production"&&Hn(t);var r=t.model.ecModel,n=Yi(Wi(r)).axSer;n&&Wh(r,n.get(t.model.uid),e)}function A0(t,e,r){process.env.NODE_ENV!=="production"&&(P(e!=null),Hn(t));var n=Uh(t,e);n&&Wh(t.model.ecModel,n.sers,r)}function Wh(t,e,r){if(e)for(var n=0;n<e.length;n++){var i=e[n];t.isSeriesFiltered(i)||r(i)}}function yA(t,e,r){process.env.NODE_ENV!=="production"&&P(e!=null);var n=Yi(Wi(t)).keyed,i=n&&n.get(e);i&&i.each(function(a){process.env.NODE_ENV!=="production"&&P(a.sers.length>0),r(a.axis)})}function L0(t,e){process.env.NODE_ENV!=="production"&&Hn(t);var r=t.model,n=Yi(Wi(r.ecModel)).keys;n&&b(n.get(r.uid),function(i){if(process.env.NODE_ENV!=="production"){var a=Uh(t,i);P(a&&a.sers.length>0)}e(i)})}function _A(t){var e=dA(k_(t)),r=e.keyed||(e.keyed=Z());E0(t,function(n,i,a){var o=r.get(i)||r.set(i,Z()),s=o.get(a)||o.set(a,{});n.metrics.liPosMinGap&&O0.liPosMinGap(t,n,s)})}function SA(t,e){O0[t]=e}var O0={};function hc(t,e,r){if(t){var n=e.ecModel,i=Yi(Wi(n)),a=t.model.uid;if(process.env.NODE_ENV!=="production"){Hn(t);var o=i.axSerPairCheck||(i.axSerPairCheck=Z()),s=""+a+Zs+e.uid;P(!o.get(s)),o.set(s,1)}var u=i.axSer||(i.axSer=Z()),l=u.get(a)||u.set(a,[]);if(process.env.NODE_ENV!=="production"){var f=l[l.length-1];f&&P(f.seriesIndex<e.seriesIndex)}l.push(e);var c=e.subType,h=e.getBaseAxis()===t,v=$s.get(vc(c,h,r))||$s.get(vc(c,h,null));if(v){var d=i.keyed||(i.keyed=Z()),g=i.keys||(i.keys=Z()),p=v.key,m=d.get(p)||d.set(p,Z()),y=m.get(a);y||(y=m.set(a,{axis:t,sers:[],serByIdx:[]}),y.metrics=v.getMetrics(t),(g.get(a)||g.set(a,[])).push(p)),y.sers.push(e),y.serByIdx[e.seriesIndex]=e}}}function vc(t,e,r){return t+Zs+U(e,!0)+Zs+(r||"")}function xA(t,e){var r=vc(e.seriesType,e.baseAxis,e.coordSysType);process.env.NODE_ENV!=="production"&&(P(e.seriesType&&e.key&&!dc.get(e.key)&&!$s.get(r)),dc.set(e.key,1)),$s.set(r,e),hA(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:_A})})}var dc;process.env.NODE_ENV!=="production"&&(dc=Z());var $s=Z(),wA=ye(),I0=1,P0=2,TA=3,N0=(function(){function t(e,r,n,i,a){var o=pt(e),s=o?r.getCategories().length:null,u;if(o){var l=r.getCategories(!0);u=l&&!l.length}var f=n.slice();(Ws(e)||Oi(e)||Nu(e))&&(Mm(f,sa(e,r.get("dataMin",!0))),Am(f,sa(e,r.get("dataMax",!0)))),cw(f)||(f[0]=f[1]=NaN);var c=[],h=[!1,!1],v=r.get("min",!0);v==="dataMin"?(c[0]=f[0],h[0]=!0):(c[0]=sa(e,J(v)?v({min:f[0],max:f[1]}):v),h[0]=c[0]!=null);var d=r.get("max",!0);d==="dataMax"?(c[1]=f[1],h[1]=!0):(c[1]=sa(e,J(d)?d({min:f[0],max:f[1]}):d),h[1]=c[1]!=null);var g=bA(e,r),p=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?u?f[0]:s?0:NaN:f[0]-g[0]*p),c[1]==null&&(c[1]=o?u?f[1]:s?s-1:NaN:f[1]+g[1]*p),!mr(c[0])&&(c[0]=NaN),!mr(c[1])&&(c[1]=NaN);var m=u||An(c[0])||An(c[1])||o&&!s,y=Ws(e),_=y&&r.needIncludeZero&&r.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!h[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!h[1]&&(c[1]=0));var S=!1;c[0]>c[1]&&(c.reverse(),S=!0);var x=sa(e,r.get("startValue",!0)),w=x!=null;!vt(x)&&i&&(x=e.getDefaultStartValue?e.getDefaultStartValue():0),vt(x)&&(w||!y||_)&&(x<c[0]&&!h[0]?(c[0]=x,h[0]=!0):x>c[1]&&!h[1]&&(c[1]=x,h[1]=!0));var T=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:h,zoomFixMM:[!1,!1],startValue:x,isBlank:m,incl0:_,tggAxInv:S,ctnShp:a};Up(T,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,n=e.noZoomEffMM,i=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:i,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=i[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=i[1]=!0),Up(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 Up(t,e){var r=t.scale,n=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],n),e[1]=r.sanitize(e[1],n),Lm(e))}function sa(t,e){return e==null?null:An(e)?NaN:t.parse(e)}function bA(t,e){var r;if(pt(t))r=[0,0];else{var n=e.get("boundaryGap");typeof n=="boolean"&&(process.env.NODE_ENV!=="production"&&n===!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.'),n=null),r=F(n)?n:[n,n]}return[Wp(r[0]),Wp(r[1])]}function Wp(t){return On(typeof t=="boolean"?0:t,1)||0}function R0(t){var e=wA(t.scale);return e.extent||(e.extent=Pt()),e}function CA(t,e){R0(t).dimIdxInCoord=e.get(t.dim)}function k0(t,e){var r=t.scale,n=t.model,i=t.dim;if(process.env.NODE_ENV!=="production"&&P(r&&n&&i),r.rawExtentInfo){process.env.NODE_ENV!=="production"&&P(r.rawExtentInfo.from!==e||e===P0);return}DA(r,t,i,n,e)}function DA(t,e,r,n,i){var a=R0(e),o=a.extent,s=!1;mA(e,function(f){if(f.boxCoordinateSystem){var c=Qy(f).coord,h=a.dimIdxInCoord;if(!(h>=0))process.env.NODE_ENV!=="production"&&ce('Property "series.coord" is not supported on axis '+f.boxCoordinateSystem.type+".");else if(F(c)){var v=c[h];v!=null&&!F(v)&&Em(o,t.parse(v))}}else if(f.coordinateSystem){var d=f.getData();if(d){var g=t.getFilter?t.getFilter():null;b(fA(d,r),function(p){fw(o,d.getApproximateExtent(p,g))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var u=AA(t,e,n),l=new N0(t,n,o,s,u);B0(t,l,i),a.extent=null}function EA(t,e){var r=t.scale;process.env.NODE_ENV!=="production"&&P(!r.rawExtentInfo),B0(r,new N0(r,t.model,e,!1,!1),TA)}function B0(t,e,r){t.rawExtentInfo=e,e.from=r}function MA(t,e){process.env.NODE_ENV!=="production"&&P(!qs.get(t)),qs.set(t,e)}var qs=Z();function F0(t,e,r,n,i){process.env.NODE_ENV!=="production"&&P(!0),t.rawExtentInfo||EA({scale:t,model:e},Pt());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;return t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),n&&a.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),a}function AA(t,e,r){var n=b0(t,r),i=r.get("containShape",!0);if(i==null&&!n&&(i=!0),!i)return!1;var a=!1;return L0(e,function(o){a=!!qs.get(o)||a}),a}function LA(t,e,r,n){if(r.ctnShp){var i;if(L0(t,function(s){var u=qs.get(s);if(u){var l=u(t,n);l&&(i=i||[0,0],Mm(i,l[0]),Am(i,l[1]),sA(t))}}),!!i){var a=e.getExtent();if(pt(e))t.onBand||e.setExtent2(Ha,ze(a[0],a[0]+i[0]),ue(a[1],a[1]+i[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=ze(o[0],e.transformOut(e.transformIn(o[0],null)+i[0],null))),r.zoomFixMM[1]||(o[1]=ue(o[1],e.transformOut(e.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(Ha,o[0],o[1])}}}}function Yp(t,e){var r=Oi(t),n=r?t.intervalStub:t,i=e.fixMinMax||[],a=r?t.getExtent():null,o=n.getExtent(),s=m0(o,i,e.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var u=r?IA(n,e):OA(n,e),l=u.intervalPrecision,f=u.interval,c=e.userInterval;c!=null&&(u.interval=c,u.intervalPrecision=Nn(c)),i[0]||(s[0]=se(Br(s[0]/f)*f,l)),i[1]||(s[1]=se(ki(s[1]/f)*f,l)),c!=null&&(u.niceExtent=s.slice()),T0(t,i,o,s,a,u)}function OA(t,e){var r=Ru(e.splitNumber,5),n=Pu(t);process.env.NODE_ENV!=="production"&&P(isFinite(n)&&n>0);var i=e.minInterval,a=e.maxInterval,o=Gc(n/r,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=Nn(o),u=t.getExtent(),l=[se(ki(u[0]/o)*o,s),se(Br(u[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function IA(t,e){var r=Ru(e.splitNumber,10),n=t.getExtent(),i=Pu(t);process.env.NODE_ENV!=="production"&&P(isFinite(i)&&i>0);var a=ue(ym(i),1),o=r/i*a;o<=.5&&(a*=10);var s=Nn(a),u=[se(ki(n[0]/a)*a,s),se(Br(n[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:u}}function Xp(t){var e=t.scale,r=t.model,n=r.axis,i=r.ecModel;process.env.NODE_ENV!=="production"&&P(n&&i),PA(e,r,n,i)}function PA(t,e,r,n,i){var a=F0(t,e,n,r),o=Ws(t)||Nu(t);NA(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&&n&&LA(r,t,a,n),process.env.NODE_ENV!=="production"&&t.freeze()}function NA(t,e){RA[t.type](t,e)}var RA={interval:Yp,log:Yp,time:tA,ordinal:Ve},Zp=[],kA={registerPreprocessor:n0,registerProcessor:i0,registerPostInit:uM,registerPostUpdate:lM,registerUpdateLifecycle:Rh,registerAction:Vn,registerCoordinateSystem:fM,registerLayout:cM,registerVisual:zn,registerTransform:vM,registerLoading:a0,registerMap:hM,registerImpl:lE,PRIORITY:tM,ComponentModel:fe,ComponentView:At,SeriesModel:Vr,ChartView:Rr,registerComponentModel:function(t){fe.registerClass(t)},registerComponentView:function(t){At.registerClass(t)},registerSeriesModel:function(t){Vr.registerClass(t)},registerChartView:function(t){Rr.registerClass(t)},registerCustomSeries:function(t,e){cE(t,e)},registerSubTypeDefaulter:function(t,e){fe.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Nx(t,e)}};function zr(t){if(F(t)){b(t,function(e){zr(e)});return}he(Zp,t)>=0||(Zp.push(t),J(t)&&(t={install:t}),t.install(kA))}var BA=ye(),Oa=ye(),Bt={estimate:1,determine:2};function Ks(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function FA(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=t.scale;return{labels:q(V0(r,n),function(i,a){return{formattedLabel:ku(t)(i,a),rawLabel:n.getLabel(i),tick:i}})}}return t.type==="category"?zA(t,e):GA(t)}function VA(t,e,r){var n=t.scale,i=t.getTickModel().get("customValues");return i?{ticks:V0(i,n)}:t.type==="category"?HA(t,e):{ticks:n.getTicks(r)}}function V0(t,e){var r=e.getExtent(),n=[];return b(t,function(i){i=e.parse(i),i>=r[0]&&i<=r[1]&&n.push(i)}),Zc(n,dw,null),uu(n),q(n,function(i){return{value:i}})}function zA(t,e){var r=t.getLabelModel(),n=z0(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}function z0(t,e,r){var n=WA(t),i=Gh(e),a=r.kind===Bt.estimate;if(!a){var o=G0(n,i);if(o)return o}var s,u;J(i)?s=Qs(t,i,!1):(u=i==="auto"?YA(t,r):i,s=Qs(t,u,!1));var l={labels:s,labelCategoryInterval:u};return a?r.out.noPxChangeTryDetermine.push(function(){return pc(n,i,l),!0}):pc(n,i,l),l}function HA(t,e){var r=UA(t),n=Gh(e),i=G0(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),J(n))a=Qs(t,n,!0);else if(n==="auto"){var s=z0(t,t.getLabelModel(),Ks(Bt.determine));o=s.labelCategoryInterval,a=q(s.labels,function(u){return u.tick})}else o=n,a=Qs(t,o,!0);return pc(r,n,{ticks:a,tickCategoryInterval:o})}function GA(t){var e=t.scale.getTicks(),r=ku(t);return{labels:q(e,function(n,i){return{formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tick:n}})}}var UA=H0("axisTick"),WA=H0("axisLabel");function H0(t){return function(r){return Oa(r)[t]||(Oa(r)[t]={list:[]})}}function G0(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function pc(t,e,r){return t.list.push({key:e,value:r}),r}function YA(t,e){if(e.kind===Bt.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Oa(t).autoInterval=r,!0}),r}var n=Oa(t).autoInterval;return n??(Oa(t).autoInterval=t.calculateCategoryInterval(e))}function XA(t,e){var r=e.kind,n=$A(t),i=ku(t),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),u=o.count();if(s[1]-s[0]<1)return 0;var l=1,f=40;u>f&&(l=Math.max(1,Math.floor(u/f)));for(var c=s[0],h=t.dataToCoord(c+1)-t.dataToCoord(c),v=Math.abs(h*Math.cos(a)),d=Math.abs(h*Math.sin(a)),g=0,p=0;c<=s[1];c+=l){var m=0,y=0,_=hm(i({value:c}),n.font,"center","top");m=_.width*1.3,y=_.height*1.3,g=Math.max(g,m,7),p=Math.max(p,y,7)}var S=g/v,x=p/d;isNaN(S)&&(S=1/0),isNaN(x)&&(x=1/0);var w=Math.max(0,Math.floor(Math.min(S,x)));if(r===Bt.estimate)return e.out.noPxChangeTryDetermine.push(Te(ZA,null,t,w,u)),w;var T=U0(t,w,u);return T??w}function ZA(t,e,r){return U0(t,e,r)==null}function U0(t,e,r){var n=BA(t.model),i=t.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=e,n.axisExtent0=i[0],n.axisExtent1=i[1]}function $A(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 Qs(t,e,r){var n=ku(t),i=t.scale,a=[],o=J(e);return y0(i,o?0:e,function(s,u){var l=i.getLabel(s);if(o){var f=!!e(s.value,l);if(s.offInterval=!f,!f&&!u)return}a.push(r?s:{formattedLabel:n(s),rawLabel:l,tick:s})}),a}var qA=.8;function Ur(t,e){e=e||{};var r={w:NaN,w2:NaN},n=t.scale,i=e.fromStat,a=e.min,o=HM(n);vt(o)||(o=NaN);var s=t.getExtent(),u=Ae(s[1]-s[0]);return pt(n)?KA(r,t,o,u):i?QA(r,t,o,u,i):a==null&&process.env.NODE_ENV!=="production"&&P(!1),a!=null&&(r.w=vt(r.w)?ue(a,r.w):a),r}function KA(t,e,r,n){var i=e.onBand,a=r+(i?1:0);a===0&&(a=1),t.w=n/a,!i&&r&&n&&(t.w2=t.w*r/n)}function QA(t,e,r,n,i){process.env.NODE_ENV!=="production"&&P(i);var a=!1,o=-1/0;b(i.key?[pA(e,i.key)]:gA(e,i.sers||[]),function(s){var u=s.liPosMinGap;u!=null&&(u>0?(u>o&&(o=u),a=!1):u===D0&&(a=!0))}),vt(r)&&r>0&&vt(o)?(t.w=n/r*o,t.w2=o):a&&(t.w=n*qA,t.w2=t.w*r/n)}var $p=[0,1],W0=(function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e>=n&&e<=i},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 n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this.scale;return e=n.normalize(n.parse(e)),Of(e,$p,qp(this),r)},t.prototype.coordToData=function(e,r){var n=Of(e,qp(this),$p,r);return this.scale.scale(n)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=VA(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),i=q(n.ticks,function(s){return{coord:this.dataToCoord(to(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=jA(this,i,a);return q(i,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");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=q(n,function(a){return q(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(e){return e=e||Ks(Bt.determine),FA(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 Ur(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||Ks(Bt.determine),XA(this,e)},t})();function qp(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],n=r/t.scale.count()/2;e[0]+=n,e[1]-=n}return e}function jA(t,e,r){var n=e.length;if(!t.onBand||r||!n)return!1;var i=Ur(t).w;if(!i)return!1;b(e,function(s){s.coord-=i/2});var a=t.scale.getExtent(),o=e[n-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var Kp=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],JA=1,js=2,Y0=JA|js;function Js(t,e,r){r=r||Y0,e?t.dirty|=r:t.dirty&=~r}function X0(t,e){return e=e||Y0,t.dirty==null||!!(t.dirty&e)}function Hr(t){if(t)return X0(t)&&Z0(t,t.label,t),t}function Z0(t,e,r){var n=e.getComputedTransform();t.transform=ch(t.transform,n);var i=t.localRect=Ba(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,u=r&&r.minMarginForce,l=r&&r.marginDefault,f=a.__marginType;f==null&&l&&(o=l,f=vi.textMargin);for(var c=0;c<4;c++)ql[c]=f===vi.minMargin&&u&&u[c]!=null?u[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===vi.textMargin&&Es(i,ql,!1,!1);var h=t.rect=Ba(t.rect,i);return n&&h.applyTransform(n),f===vi.minMargin&&Es(h,ql,!1,!1),t.axisAligned=fh(n),(t.label=t.label||{}).ignore=e.ignore,Js(t,!1),Js(t,!0,js),t}var ql=[0,0,0,0];function eL(t,e,r){return t.transform=ch(t.transform,r),t.localRect=Ba(t.localRect,e),t.rect=Ba(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=fh(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function tL(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,r)}}function Qp(t,e){for(var r=0;r<Kp.length;r++){var n=Kp[r];t[n]==null&&(t[n]=e[n])}return Hr(t)}function jp(t){var e=t.obb;return(!e||X0(t,js))&&(t.obb=e=e||new hy,e.fromBoundingRect(t.localRect,t.transform),Js(t,!1,js)),e}function rL(t,e,r,n,i){var a=t.length,o=Lr[e],s=Ei[e];if(a<2)return!1;t.sort(function(T,C){return T.rect[o]-C.rect[o]});for(var u=0,l,f=!1,c=0;c<a;c++){var h=t[c],v=h.rect;l=v[o]-u,l<0&&(v[o]-=l,h.label[o]-=l,f=!0),u=v[o]+v[s]}var d=t[0],g=t[a-1],p,m;y(),p<0&&x(-p,.8),m<0&&x(m,.8),y(),_(p,m,1),_(m,p,-1),y(),p<0&&w(-p),m<0&&w(m);function y(){p=d.rect[o]-r,m=n-g.rect[o]-g.rect[s]}function _(T,C,E){if(T<0){var D=Math.min(C,-T);if(D>0){S(D*E,0,a);var M=D+T;M<0&&x(-M*E,1)}else x(-T*E,1)}}function S(T,C,E){T!==0&&(f=!0);for(var D=C;D<E;D++){var M=t[D],L=M.rect;L[o]+=T,M.label[o]+=T}}function x(T,C){for(var E=[],D=0,M=1;M<a;M++){var L=t[M-1].rect,A=Math.max(t[M].rect[o]-L[o]-L[s],0);E.push(A),D+=A}if(D){var O=Math.min(Math.abs(T)/D,C);if(T>0)for(var M=0;M<a-1;M++){var I=E[M]*O;S(I,0,M+1)}else for(var M=a-1;M>0;M--){var I=E[M-1]*O;S(-I,M,a)}}}function w(T){var C=T<0?-1:1;T=Math.abs(T);for(var E=Math.ceil(T/(a-1)),D=0;D<a-1;D++)if(C>0?S(E,0,D+1):S(-E,a-D-1,a),T-=E,T<=0)return}return f}function nL(t){var e=[];t.sort(function(l,f){return(f.suggestIgnore?1:0)-(l.suggestIgnore?1:0)||f.priority-l.priority});function r(l){if(!l.ignore){var f=l.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}l.ignore=!0}for(var n=0;n<t.length;n++){var i=Hr(t[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,u=0;u<e.length;u++)if(Yh(i,e[u],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(i)}}}function Yh(t,e,r,n){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,n)?!1:t.axisAligned&&e.axisAligned?!0:jp(t).intersect(jp(e),r,n)}function Jp(t,e,r){var n=ot.createCanvas(),i=e.getWidth(),a=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",t)),n.width=i*r,n.height=a*r,n}function Kl(t){return!t.__cursors.get(vy)}function eg(t){var e=t.__cursors.get(vy);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var $0=(function(t){z(e,t);function e(r,n,i){var a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.zlevel=0,a.zlevel2=Ko,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0};var o;i=i||gs,typeof r=="string"?o=Jp(r,n,i):W(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(Xg(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return e.prototype.afterBrush=function(){this.__prevIdx=eg(this)},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=Jp("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,u=!1,l=new j(0,0,0,0);function f(S){if(!(!S.isFinite()||S.isZero()))if(o.length===0){var x=new j(0,0,0,0);x.copy(S),o.push(x)}else{for(var w=!1,T=1/0,C=0,E=0;E<o.length;++E){var D=o[E];if(D.intersect(S)){var M=new j(0,0,0,0);M.copy(D),M.union(S),o[E]=M,w=!0;break}else if(u){l.copy(S),l.union(D);var L=S.width*S.height,A=D.width*D.height,O=l.width*l.height,I=O-L-A;I<T&&(T=I,C=E)}}if(u&&(o[C].union(S),w=!0),!w){var x=new j(0,0,0,0);x.copy(S),o.push(x)}u||(u=o.length>=s)}}for(var c=eg(this),h=c.startIdx;h<c.endIdx;++h){var v=r[h];if(v){var d=v.shouldBePainted(i,a,!0,!0),g=v.__isRendered&&(v.__dirty&at||!d)?v.getPrevPaintRect():null;g&&f(g);var p=d&&(v.__dirty&at||!v.__isRendered)?v.getPaintRect():null;p&&f(p)}}for(var m=this.__prevIdx,h=m.startIdx;h<m.endIdx;++h){var v=n[h],d=v&&v.shouldBePainted(i,a,!0,!0);if(v&&(!d||!v.__zr)&&v.__isRendered){var g=v.getPrevPaintRect();g&&f(g)}}var y;do{y=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var _=h+1;_<o.length;)o[h].intersect(o[_])?(y=!0,o[h].union(o[_]),o.splice(_,1)):_++;h++}}while(y);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},e.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,u=a.height;n=n||this.clearColor;var l=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,h=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,u/c));var v=this.domBack;function d(g,p,m,y){if(o.clearRect(g,p,m,y),n&&n!=="transparent"){var _=void 0;if(nu(n)){var S=n.global||n.__width===m&&n.__height===y;_=S&&n.__canvasGradient||ic(o,n,{x:0,y:0,width:m,height:y}),n.__canvasGradient=_,n.__width=m,n.__height=y}else JS(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=ac(o,n,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(g,p,m,y),o.restore()}l&&(o.save(),o.globalAlpha=f,o.drawImage(v,g,p,m,y),o.restore())}!i||l?d(0,0,s,u):i.length&&b(i,function(g){d(g.x*c,g.y*c,g.width*c,g.height*c)})},e})(Vt),tg=1e5,pn=314159,Ql=void 0,iL=1,jl=2;function aL(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function oL(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}function rg(t,e,r,n){var i=new $0(t,e,e.dpr);return i.zlevel=r,i.zlevel2=n,i.__builtin__=!0,q0(i),i}function q0(t){t.__cursorStack=[],t.__cursors=Z()}function sL(t){return t.startIdx=t.drawIdx=t.endIdx=t.endIdxNew=0,t.used=!1,t.first=t.last=NaN,t.notClearIdx=-1,t}function uL(t,e){var r=t.__cursors,n=+e;return r.get(n)||(t.__cursorStack.push(n),r.set(n,sL({key:n})))}function zo(t,e){for(var r=t.__cursorStack,n=0;n<r.length;n++)e(t.__cursors.get(r[n]))}function Jl(t,e){var r=t.layers;return r[e]||(r[e]=new Array(3))}function Ue(t,e,r){for(var n=t.layerStack,i=0;i<n.length;i++){var a=n[i].zl,o=n[i].zl2,s=t.layers[a][o];(!r||(!(r&Ia)||s.__builtin__)&&(!(r&gc)||!s.__builtin__)&&(!(r&K0)||s!==t.hoverlayer))&&e(s,a,o,i)}}var Ia=1,gc=2,K0=4,Ho=Ia|K0,lL=(function(){function t(e,r,n,i){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=k({},n||{}),this.dpr=n.devicePixelRatio||gs,this._singleCanvas=a,this.root=e;var o=e.style;if(o&&(Xg(e),e.innerHTML=""),this.storage=r,this._prevDisplayList=[],a){var u=e,l=u.width,f=u.height;n.width!=null&&(l=n.width),n.height!=null&&(f=n.height),this.dpr=n.devicePixelRatio||1,u.width=l*this.dpr,u.height=f*this.dpr,this._width=l,this._height=f;var c=rg(u,this,pn,Ko);c.initContext(),this._insertLayer(c,pn,Ko,!0),this._domRoot=e}else{this._width=Lo(e,0,n),this._height=Lo(e,1,n);var s=this._domRoot=oL(this._width,this._height);e.appendChild(s)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r;e&&!W(e)?r={paintAll:!!e}:r=e||{};var n=U(r.refresh,!0),i=U(r.refreshHover,!1);if(i&&(this._hoverLayerDirty=jl),!n)return i&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var a=this.storage.getDisplayList(!0);this._updateLayerStatus(a,r.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(a,o,this._redrawId);var s=this._backgroundColor;return Ue(this._i,function(u,l,f,c){u.refresh&&u.refresh(c===0?s:null)},gc),this._opts.useDirtyRect&&(this._prevDisplayList=a.slice()),this},t.prototype._paintHoverList=function(e){var r=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=Ql,n!==Ql&&(!r&&n===jl&&(r=this._i.hoverlayer=this._ensureLayer(tg)),!!r)){r.clear();for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a,o=0,s=e.length;o<s;o++){var u=e[o];if(u.__inHover){a||(a=r.ctx,a.save());var l=u.__hoverStyle,f=void 0;l&&(f=u.style,u.style=l),wn(a,u,i),l&&(u.style=f)}}a&&(Si(a,i),a.restore())}},t.prototype.getHoverLayer=function(){return this._ensureLayer(tg)},t.prototype.paintOne=function(e,r){H_(e,r)},t.prototype._paintList=function(e,r,n){if(this._redrawId===n){var i=this._doPaintList(e,r);if(this._needsManuallyCompositing&&this._compositeManually(),i)Ue(this._i,function(o){o.afterBrush&&o.afterBrush()},Ho),this._paintHoverList(e);else{var a=this;fs(function(){a._paintList(e,r,n)})}}},t.prototype._compositeManually=function(){var e=this._ensureLayer(pn).ctx,r=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,r,n),Ue(this._i,function(i){i.virtual&&e.drawImage(i.dom,0,0,r,n)},Ia)},t.prototype._doPaintList=function(e,r){var n=this,i=!0;return Ue(this._i,function(a){var o=!1;if(zo(a,function(c){(c.drawIdx<c.endIdx||c.notClearIdx>=0)&&(o=!0)}),!(!o&&!a.__dirty)){var s=n._opts.useDirtyRect&&!Kl(a)?a.createRepaintRects(e,r,n._width,n._height):null,u=n._i.layerStack[0],l=!0;if(a.__dirty){l=!1,a.__dirty=!1;var f=a.zlevel===u.zl&&a.zlevel2===u.zl2?n._backgroundColor:null;a.clear(!1,f,s)}zo(a,function(c){var h=n._paintPerCursor(a,c,e,s,l);i=i&&h})}},Ho),te.wxa&&Ue(this._i,function(a){a&&a.ctx&&a.ctx.draw&&a.ctx.draw()}),i},t.prototype._paintPerCursor=function(e,r,n,i,a){var o=e.ctx;if(i)if(!i.length)r.drawIdx=r.endIdx;else for(var s=this.dpr,u=0;u<i.length;++u){var l=i[u];o.save(),o.beginPath(),o.rect(l.x*s,l.y*s,l.width*s,l.height*s),o.clip(),this._paintPerCursorInRect(e,r,n,l,a),o.restore()}else o.save(),this._paintPerCursorInRect(e,r,n,null,a),o.restore();return r.drawIdx>=r.endIdx},t.prototype._paintPerCursorInRect=function(e,r,n,i,a){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:a}},s=e.ctx,u=Kl(e),l=u&&ot.getTime(),f=r.drawIdx,c=r.notClearIdx,h=c>=0?Math.min(c,f):f;h<r.endIdx;h++){var v=n[h];if(!(h<f&&!v.notClear)){if(v.__inHover&&(this._hoverLayerDirty=jl),i!=null){var d=v.getPaintRect();d&&d.intersect(i)&&(wn(s,v,o),v.setPrevPaintRect(d))}else wn(s,v,o);if(u){var g=ot.getTime()-l;if(g>15){h++;break}}}}Si(s,o),r.drawIdx=Math.max(h,f)},t.prototype.getLayer=function(e,r){return this._ensureLayer(e,0,r)},t.prototype._ensureLayer=function(e,r,n){r=r||0;var i=this._singleCanvas;i&&!this._needsManuallyCompositing&&(e=pn,r=0);var a=Jl(this._i,e)[r];return a||(a=rg("zr_"+e+"."+r,this,e,r),this._layerConfig[e]&&de(a,this._layerConfig[e],!0),(n||i&&e!==pn)&&(a.virtual=!0),this._insertLayer(a,e,r,!1),a.initContext()),a},t.prototype.insertLayer=function(e,r){this._insertLayer(r,e,0,!1)},t.prototype._insertLayer=function(e,r,n,i){var a=this._i,o=a.layers,s=a.layerStack,u=this._domRoot,l=null;if(o[r]&&o[r][n]){process.env.NODE_ENV!=="production"&&Tn("ZLevel "+r+"."+n+" has been used already");return}if(!aL(e)){process.env.NODE_ENV!=="production"&&Tn("Layer of zlevel "+r+" is not valid");return}for(var f=s.length,c=0;c<f&&(s[c].zl<r||s[c].zl===r&&s[c].zl2<n);)c++;if(c>0&&(l=Jl(a,s[c-1].zl)[s[c-1].zl2]),s.splice(c,0,{zl:r,zl2:n}),Jl(a,r)[n]=e,!i&&!e.virtual)if(l){var h=l.dom;h.nextSibling?u.insertBefore(e.dom,h.nextSibling):u.appendChild(e.dom)}else u.firstChild?u.insertBefore(e.dom,u.firstChild):u.appendChild(e.dom);e.painter||(e.painter=this)},t.prototype.eachLayer=function(e,r){return Ue(this._i,function(n,i){e.call(r,n,i)})},t.prototype.eachBuiltinLayer=function(e,r){return Ue(this._i,function(n,i){e.call(r,n,i)},Ia)},t.prototype.eachOtherLayer=function(e,r){return Ue(this._i,function(n,i){e.call(r,n,i)},gc)},t.prototype.getLayers=function(){var e={};return Ue(this._i,function(r,n,i){e[r.id]=r}),e},t.prototype._updateLayerStatus=function(e,r){var n=this;if(n._singleCanvas)for(var i=1;i<e.length;i++){var a=e[i];if(a.zlevel!==e[i-1].zlevel||a.incremental){n._needsManuallyCompositing=!0;break}}Ue(n._i,function(p){p.__dirty=!1,zo(p,function(m){m.used=!1,m.endIdxNew=0,m.notClearIdx=-1})},Ho);for(var o,s=null,u=null,l=!1,f=0,c=e.length;f<c;f++){var a=e[f],h=a.zlevel,v=a.incremental,d=void 0;if(o!==h&&(o=h,l=!1),v?(l=!0,d=vb):d=l?hb:Ko,(!s||h!==s.zlevel||d!==s.zlevel2)&&(s=n._ensureLayer(h,d),u=null,!s.__builtin__)){Tn("ZLevel "+h+" has been used by unknown layer "+s.id);continue}if((!u||v!==u.key)&&(u=uL(s,v),!u.used))if(u.used=!0,!r&&u.first===a.id){var g=f-u.startIdx;u.startIdx=f,u.drawIdx+=g,u.endIdx+=g}else s.__dirty=!0,u.first=a.id,u.startIdx=u.drawIdx=f,u.endIdx=f+1;u.endIdxNew=f+1,a.__dirty&at&&!a.__inHover&&((!v||!a.notClear&&f<u.drawIdx)&&(s.__dirty=!0),v&&a.notClear&&u.notClearIdx<0&&(u.notClearIdx=f))}Ue(n._i,function(p){for(var m=p.__cursorStack,y=p.__cursors,_=m.length-1;_>=0;_--){var S=y.get(m[_]);if(!S.used)p.__dirty=!0,y.removeKey(m[_]),m.splice(_,1);else{var x=S.endIdxNew;(Kl(p)?x<S.drawIdx:x!==S.endIdx||!x||e[x-1].id!==S.last)&&(p.__dirty=!0),S.endIdx=S.endIdxNew,S.last=x?e[x-1].id:NaN}}p.__dirty&&(zo(p,function(w){w.drawIdx=w.startIdx}),n._hoverLayerDirty===Ql&&(n._hoverLayerDirty=iL))},Ho)},t.prototype.clear=function(){return Ue(this._i,function(e){e.clear(),q0(e)},Ia),this},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,Ue(this._i,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?de(n[e],r,!0):n[e]=r,Ue(this._i,function(i,a){de(i,n[a],!0)})}},t.prototype.delLayer=function(e){for(var r=this._i.layerStack,n=this._i.layers,i=r.length-1;i>=0;i--){var a=r[i];if(a.zl===e){var o=n[e][a.zl2];if(o.__builtin__)continue;if(r.splice(i,1),n[e][a.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},t.prototype.resize=function(e,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;e!=null&&(i.width=e),r!=null&&(i.height=r),e=Lo(a,0,i),r=Lo(a,1,i),n.style.display="",(this._width!==e||r!==this._height)&&(n.style.width=e+"px",n.style.height=r+"px",Ue(this._i,function(o){o.resize(e,r)}),this.refresh({paintAll:!0})),this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this._ensureLayer(pn).resize(e,r)}return this},t.prototype.clearLayer=function(e){b(this._i.layers[e],function(r){r&&!r.__builtin__&&r.clear()})},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[pn][0].dom;var r=new $0("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var n=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;Ue(this._i,function(c){c.__builtin__?n.drawImage(c.dom,0,0,i,a):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),u=0,l=s.length;u<l;u++){var f=s[u];wn(n,f,o)}Si(n,o)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t})();function fL(t){t.registerPainter("canvas",lL)}function cL(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Ai(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Ai(t,e,r[o]));return a.join(" ")}}function hL(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!F(e))return e+"";for(var n=[],i=0;i<r.length;i++){var a=t.getDimensionIndex(r[i]);a>=0&&n.push(e[a])}return n.join(" ")}var vL=typeof Float32Array!==Hi?Float32Array:void 0,dL=typeof Float64Array!==Hi?Float64Array:void 0;function as(t){return Xh({ctor:vL},t).arr}function Xh(t,e){process.env.NODE_ENV!=="production"&&P(e!=null&&isFinite(e)&&e>=0&&t.hasOwnProperty("ctor"));var r=t.arr,n=t.ctor;if(e>Rv&&(e=Rv),!r||t.typed&&r.length<e){var i=void 0;if(n)try{i=new n(e),t.typed=!0,r&&i.set(r)}catch(s){process.env.NODE_ENV!=="production"&&ce(s)}if(!i&&(i=[],t.typed=!1,r))for(var a=0,o=r.length;a<o;a++)i[a]=r[a];t.arr=i}return t}function Q0(t,e,r,n,i){var a=t.getArea(),o=a.x,s=a.y,u=a.width,l=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,u+=f,l+=f,u=Math.ceil(u),o!==Math.floor(o)&&(o=Math.floor(o),u++);var c=new Le({shape:{x:o,y:s,width:u,height:l}});if(e){var h=t.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(c.shape.x+=u),c.shape.width=0):(d||(c.shape.y+=l),c.shape.height=0);var g=J(i)?function(p){i(p,c)}:null;Qa(c,{shape:{width:u,height:l,x:o,y:s}},r,null,n,g)}return c}function j0(t,e,r){var n=t.getArea(),i=se(n.r0,1),a=se(n.r,1),o=new Ka({shape:{cx:se(t.cx,1),cy:se(t.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,Qa(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function pL(t,e,r,n,i){if(t){if(t.type==="polar")return j0(t,e,r);if(t.type==="cartesian2d")return Q0(t,e,r,n,i)}else return null;return null}var ng={};function gL(t,e,r,n){return t&&(t.legacy||t.legacy!==!1&&!r&&!n&&e!=="tspan"&&(e==="text"||B(t,"text")))}function mL(t,e,r){var n=t,i,a,o;if(e==="text")o=n;else{o={},B(n,"text")&&(o.text=n.text),B(n,"rich")&&(o.rich=n.rich),B(n,"textFill")&&(o.fill=n.textFill),B(n,"textStroke")&&(o.stroke=n.textStroke),B(n,"fontFamily")&&(o.fontFamily=n.fontFamily),B(n,"fontSize")&&(o.fontSize=n.fontSize),B(n,"fontStyle")&&(o.fontStyle=n.fontStyle),B(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=B(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),B(n,"textPosition")&&(i.position=n.textPosition),B(n,"textOffset")&&(i.offset=n.textOffset),B(n,"textRotation")&&(i.rotation=n.textRotation),B(n,"textDistance")&&(i.distance=n.textDistance)}return ig(o,t),b(o.rich,function(u){ig(u,u)}),{textConfig:i,textContent:a}}function ig(t,e){e&&(e.font=e.textFont||e.font,B(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),B(e,"textAlign")&&(t.align=e.textAlign),B(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),B(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),B(e,"textWidth")&&(t.width=e.textWidth),B(e,"textHeight")&&(t.height=e.textHeight),B(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),B(e,"textPadding")&&(t.padding=e.textPadding),B(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),B(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),B(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),B(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),B(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),B(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),B(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function yL(t,e,r){var n=t;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var i=n.textPosition.indexOf("inside")>=0,a=t.fill||G.color.neutral99;ag(n,e);var o=n.textFill==null;return i?o&&(n.textFill=r.insideFill||G.color.neutral00,!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=t.fill||r.outsideFill||G.color.neutral00),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=e.text,n.rich=e.rich,b(e.rich,function(s){ag(s,s)}),n}function ag(t,e){e&&(B(e,"fill")&&(t.textFill=e.fill),B(e,"stroke")&&(t.textStroke=e.fill),B(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),B(e,"font")&&(t.font=e.font),B(e,"fontStyle")&&(t.fontStyle=e.fontStyle),B(e,"fontWeight")&&(t.fontWeight=e.fontWeight),B(e,"fontSize")&&(t.fontSize=e.fontSize),B(e,"fontFamily")&&(t.fontFamily=e.fontFamily),B(e,"align")&&(t.textAlign=e.align),B(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),B(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),B(e,"width")&&(t.textWidth=e.width),B(e,"height")&&(t.textHeight=e.height),B(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),B(e,"padding")&&(t.textPadding=e.padding),B(e,"borderColor")&&(t.textBorderColor=e.borderColor),B(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),B(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),B(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),B(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),B(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),B(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),B(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),B(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),B(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),B(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}function _L(t,e){if(process.env.NODE_ENV!=="production"){var r=t+"^_^"+e;ng[r]||(console.warn('[ECharts] DEPRECATED: "'+t+'" has been deprecated. '+e),ng[r]=!0)}}var J0=(function(t){z(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||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 n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(W0),SL=null;function xL(){return SL}var wL="expandAxisBreak",Pr=Math.PI,TL=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],bL=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Pi=ye(),eS=ye(),tS=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,n=e.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},t})();function CL(t,e,r,n){var i=r.axis,a=e.ensureRecord(r),o=[],s,u=Zh(t.axisName)&&Ii(t.nameLocation);b(n,function(d){var g=Hr(d);if(!(!g||g.label.ignore)){o.push(g);var p=a.transGroup;u&&(p.transform?Xa(ua,p.transform):Ya(ua),g.transform&&Sa(ua,ua,g.transform),j.copy(Go,g.localRect),Go.applyTransform(ua),s?s.union(Go):j.copy(s=new j(0,0,0,0),Go))}});var l=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[l];if(o.sort(function(d,g){return Math.abs(d.label[l]-f)-Math.abs(g.label[l]-f)}),u&&s){var c=i.getExtent(),h=Math.min(c[0],c[1]),v=Math.max(c[0],c[1])-h;s.union(new j(h,0,v,1))}a.stOccupiedRect=s,a.labelInfoList=o}var ua=Nt(),Go=new j(0,0,0,0),rS=function(t,e,r,n,i,a){if(Ii(t.nameLocation)){var o=a.stOccupiedRect;o&&nS(eL({},o,a.transGroup.transform),n,i)}else iS(a.labelInfoList,a.dirVec,n,i)};function nS(t,e,r){var n=new me;Yh(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&tL(e,n)}function iS(t,e,r,n){for(var i=me.dot(n,e)>=0,a=0,o=t.length;a<o;a++){var s=t[i?a:o-1-a];s.label.ignore||nS(s,r,n)}}var vr=(function(){function t(e,r,n,i){this.group=new st,this._axisModel=e,this._api=r,this._local={},this._shared=i||new tS(rS),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(e){if(process.env.NODE_ENV!=="production"){var r=this._shared.ensureRecord(this._axisModel).ready;P(!r.axisLine&&!r.axisTickLabelDetermine),r.axisName=r.axisTickLabelEstimate=!1}var n=this._cfg.raw;n.position=e.position,n.labelOffset=e.labelOffset,this._resetCfgDetermined(n)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},i=U(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=U(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:U(e.nameDirection,1),tickDirection:U(e.tickDirection,1),labelDirection:U(e.labelDirection,1),labelOffset:U(e.labelOffset,0),silent:U(e.silent,!0),axisName:i,nameLocation:fr(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:Zh(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};process.env.NODE_ENV!=="production"&&(P(o.position!=null),P(o.rotation!=null)),this._cfg=o;var s=new st({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var u=this._shared.ensureRecord(r);u.transGroup=this._transformGroup,u.dirVec=new me(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),b(DL,function(i){e[i]&&EL[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},t.innerTextLayout=function(e,r,n){var i=mm(r-e),a,o;return ys(i)?(o=n>0?"top":"bottom",a="center"):ys(i-Pr)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Pr?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,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})(),DL=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],EL={axisLine:function(t,e,r,n,i,a,o){if(process.env.NODE_ENV!=="production"){var s=r.ensureRecord(n).ready;P(!s.axisLine),s.axisLine=!0}var u=n.get(["axisLine","show"]);if(u==="auto"&&(u=!0,t.raw.axisLineAutoShow!=null&&(u=!!t.raw.axisLineAutoShow)),!!u){var l=n.axis.getExtent(),f=a.transform,c=[l[0],0],h=[l[1],0],v=c[0]>h[0];f&&(ht(c,c,f),ht(h,h,f));var d=k({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),g={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(n.get(["axisLine","breakLine"])&&Pn(n.axis.scale))xL().buildAxisBreakLine(n,i,a,g);else{var p=new _r(k({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]}},g));ka(p.shape,p.style.lineWidth),p.anid="line",i.add(p)}var m=n.get(["axisLine","symbol"]);if(m!=null){var y=n.get(["axisLine","symbolSize"]);H(m)&&(m=[m,m]),(H(y)||Ce(y))&&(y=[y,y]);var _=B_(n.get(["axisLine","symbolOffset"])||0,y),S=y[0],x=y[1];b([{rotate:t.rotation+Math.PI/2,offset:_[0],r:0},{rotate:t.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((c[0]-h[0])*(c[0]-h[0])+(c[1]-h[1])*(c[1]-h[1]))}],function(w,T){if(m[T]!=="none"&&m[T]!=null){var C=Ou(m[T],-S/2,-x/2,S,x,d.stroke,!0),E=w.r+w.offset,D=v?h:c;C.attr({rotation:w.rotate,x:D[0]+E*Math.cos(t.rotation),y:D[1]-E*Math.sin(t.rotation),silent:!0,z2:11}),i.add(C)}})}}},axisTickLabelEstimate:function(t,e,r,n,i,a,o,s){if(process.env.NODE_ENV!=="production"){var u=r.ensureRecord(n).ready;P(!u.axisTickLabelDetermine),u.axisTickLabelEstimate=!0}var l=sg(e,i,s);l&&og(t,e,r,n,i,a,o,Bt.estimate)},axisTickLabelDetermine:function(t,e,r,n,i,a,o,s){if(process.env.NODE_ENV!=="production"){var u=r.ensureRecord(n).ready;u.axisTickLabelDetermine=!0}var l=sg(e,i,s);l&&og(t,e,r,n,i,a,o,Bt.determine);var f=OL(t,i,a,n);LL(t,e.labelLayoutList,f),IL(t,i,a,n,t.tickDirection)},axisName:function(t,e,r,n,i,a,o,s){var u=r.ensureRecord(n);if(process.env.NODE_ENV!=="production"){var l=u.ready;P(l.axisTickLabelEstimate||l.axisTickLabelDetermine),l.axisName=!0}e.nameEl&&(i.remove(e.nameEl),e.nameEl=u.nameLayout=u.nameLocation=null);var f=t.axisName;if(Zh(f)){var c=t.nameLocation,h=t.nameDirection,v=n.getModel("nameTextStyle"),d=n.get("nameGap")||0,g=n.axis.getExtent(),p=n.axis.inverse?-1:1,m=new me(0,0),y=new me(0,0);c==="start"?(m.x=g[0]-p*d,y.x=-p):c==="end"?(m.x=g[1]+p*d,y.x=p):(m.x=(g[0]+g[1])/2,m.y=t.labelOffset+h*d,y.y=h);var _=Nt();y.transform(Bc(_,_,t.rotation));var S=n.get("nameRotate");S!=null&&(S=S*Pr/180);var x,w;Ii(c)?x=vr.innerTextLayout(t.rotation,S??t.rotation,h):(x=ML(t.rotation,c,S||0,g),w=t.raw.axisNameAvailableWidth,w!=null&&(w=Math.abs(w/Math.sin(x.rotation)),!isFinite(w)&&(w=null)));var T=v.getFont(),C=n.get("nameTruncate",!0)||{},E=C.ellipsis,D=Ln(t.raw.nameTruncateMaxWidth,C.maxWidth,w),M=s.nameMarginLevel||0,L=new Xe({x:m.x,y:m.y,rotation:x.rotation,silent:vr.isLabelSilent(n),style:Sr(v,{text:f,font:T,overflow:"truncate",width:D,ellipsis:E,fill:v.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:v.get("align")||x.textAlign,verticalAlign:v.get("verticalAlign")||x.textVerticalAlign}),z2:1});if(wu({el:L,componentModel:n,itemName:f}),L.__fullText=f,L.anid="name",n.get("triggerEvent")){var A=vr.makeAxisEventDataBase(n);A.targetType="axisName",A.name=f,_e(L).eventData=A}a.add(L),L.updateTransform(),e.nameEl=L;var O=u.nameLayout=Hr({label:L,priority:L.z2,defaultAttr:{ignore:L.ignore},marginDefault:Ii(c)?TL[M]:bL[M]});if(u.nameLocation=c,i.add(L),L.decomposeTransform(),t.shouldNameMoveOverlap&&O){var I=r.ensureRecord(n);process.env.NODE_ENV!=="production"&&P(I.labelInfoList),r.resolveAxisNameOverlap(t,r,n,O,y,I)}}}};function og(t,e,r,n,i,a,o,s){oS(e)||PL(t,e,i,s,n,o);var u=e.labelLayoutList;NL(t,n,u,a),t.rotation;var l=t.optionHideOverlap;AL(n,u,l),l&&nL(Fe(u,function(f){return f&&!f.label.ignore})),CL(t,r,n,u)}function ML(t,e,r,n){var i=mm(r-t),a,o,s=n[0]>n[1],u=e==="start"&&!s||e!=="start"&&s;return ys(i-Pr/2)?(o=u?"bottom":"top",a="center"):ys(i-Pr*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",i<Pr*1.5&&i>Pr/2?a=u?"left":"right":a=u?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function AL(t,e,r){var n=t.axis,i=t.get(["axisLabel","customValues"]);if(lA(n))return;function a(l,f,c){var h=Hr(e[f]),v=Hr(e[c]),d=n.scale;if(!(!h||!v)){if(l==null){if(!r&&i)return;var g=Pi(h.label).labelInfo.tick;if(Nu(d)&&g.notNice||pt(d)&&g.offInterval){si(h.label);return}}if(l===!1||h.suggestIgnore){si(h.label);return}if(v.suggestIgnore){si(v.label);return}var p=.1;if(!r){var m=[0,0,0,0];h=Qp({marginForce:m},h),v=Qp({marginForce:m},v)}Yh(h,v,null,{touchThreshold:p})&&si(l?v.label:h.label)}}var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),u=e.length;a(o,0,1),a(s,u-1,u-2)}function LL(t,e,r){t.showMinorTicks||b(e,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=eS(a),s=Pi(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){si(a);return}}})}function si(t){t&&(t.ignore=!0)}function aS(t,e,r,n,i){for(var a=[],o=[],s=[],u=0;u<t.length;u++){var l=t[u].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=r,e&&(ht(o,o,e),ht(s,s,e));var f=new _r({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});ka(f.shape,f.style.lineWidth),f.anid=i+"_"+t[u].tickValue,a.push(f);var c=eS(f);c.onBand=!!t[u].onBand,c.tickValue=t[u].tickValue}return a}function OL(t,e,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),u=t.tickDirection*a.get("length"),l=i.getTicksCoords(),f=aS(l,r.transform,u,ge(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function IL(t,e,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var u=o.getModel("lineStyle"),l=i*o.get("length"),f=ge(u.getLineStyle(),ge(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var h=aS(s[c],r.transform,l,f,"minorticks_"+c),v=0;v<h.length;v++)e.add(h[v])}}function sg(t,e,r){if(oS(t)){var n=t.axisLabelsCreationContext;process.env.NODE_ENV!=="production"&&P(t.labelGroup&&n);var i=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(e.remove(t.labelGroup),mc(t,null,null,null))}return!0}function PL(t,e,r,n,i,a){var o=i.axis,s=Ln(t.raw.axisLabelShow,i.get(["axisLabel","show"])),u=new st;r.add(u);var l=Ks(n);if(!s||o.scale.isBlank()){mc(e,[],u,l);return}var f=i.getModel("axisLabel"),c=o.getViewLabels(l),h=(Ln(t.raw.labelRotate,f.get("rotate"))||0)*Pr/180,v=vr.innerTextLayout(t.rotation,h,t.labelDirection),d=i.getCategories&&i.getCategories(!0),g=[],p=i.get("triggerEvent"),m=1/0,y=-1/0;b(c,function(S,x){var w,T=S.tick,C=S.formattedLabel,E=S.rawLabel,D=f,M=to(o.scale,T);if(d&&d[M]){var L=d[M];W(L)&&L.textStyle&&(D=new be(L.textStyle,f,i.ecModel))}var A=D.getTextColor()||i.get(["axisLine","lineStyle","color"]),O=D.getShallow("align",!0)||v.textAlign,I=U(D.getShallow("alignMinLabel",!0),O),N=U(D.getShallow("alignMaxLabel",!0),O),V=D.getShallow("verticalAlign",!0)||D.getShallow("baseline",!0)||v.textVerticalAlign,Y=U(D.getShallow("verticalAlignMinLabel",!0),V),K=U(D.getShallow("verticalAlignMaxLabel",!0),V),Q=10+(((w=T.time)===null||w===void 0?void 0:w.level)||0);m=Math.min(m,Q),y=Math.max(y,Q);var $=new Xe({x:0,y:0,rotation:0,silent:vr.isLabelSilent(i),z2:Q,style:Sr(D,{text:C,align:x===0?I:x===c.length-1?N:O,verticalAlign:x===0?Y:x===c.length-1?K:V,fill:J(A)?A(o.type==="category"?E:o.type==="value"?M+"":M,x):A})});$.anid="label_"+M;var ee=Pi($);if(ee.labelInfo=S,ee.layoutRotation=v.rotation,wu({el:$,componentModel:i,itemName:C,formatterParamsExtra:{isTruncated:function(){return $.isTruncated},value:E,tickIndex:x}}),p){var ne=vr.makeAxisEventDataBase(i);ne.targetType="axisLabel",ne.value=E,ne.tickIndex=x;var X=S.tick.break;if(X){var le=X.parsedBreak;ne.break={start:le.vmin,end:le.vmax}}o.type==="category"&&(ne.dataIndex=M),_e($).eventData=ne,X&&kL(i,a,$,X)}g.push($),u.add($)});var _=q(g,function(S){return{label:S,priority:Pi(S).labelInfo.tick.break?S.z2+(y-m+1):S.z2,defaultAttr:{ignore:S.ignore}}});mc(e,_,u,l)}function oS(t){return!!t.labelLayoutList}function mc(t,e,r,n){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=n}function NL(t,e,r,n){var i=e.get(["axisLabel","margin"]);b(r,function(a,o){var s=Hr(a);if(s){var u=s.label,l=Pi(u);s.suggestIgnore=u.ignore,u.ignore=!1,ms(or,RL);var f=e.axis;or.x=f.dataToCoord(to(f.scale,l.labelInfo.tick)),or.y=t.labelOffset+t.labelDirection*i,or.rotation=l.layoutRotation,n.add(or),or.updateTransform(),n.remove(or),or.decomposeTransform(),ms(u,or),u.markRedraw(),Js(s,!0),Hr(s)}})}var or=new Le,RL=new Le;function Zh(t){return!!t}function kL(t,e,r,n){r.on("click",function(i){var a={type:wL,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function eu(t,e,r){r=r||{};var n=e.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,u=n.dim,l=[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,h=u==="x"?[l[2]-c,l[3]+c]:[l[0]-c,l[1]+c];if(a){var v=a.toGlobalCoord(a.dataToCoord(0));h[f.onZero]=Math.max(Math.min(v,h[1]),h[0])}i.position=[u==="y"?h[f[s]]:l[0],u==="x"?h[f[s]]:l[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],i.labelOffset=a?h[f[o]]-h[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Ln(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var g=e.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-g:g,i.z2=1,i}function BL(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function FL(t){var e={xAxisModel:null,yAxisModel:null};return b(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,ct).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error(i+' "'+fr(t.get(i+"Index"),t.get(i+"Id"),0)+'" not found');e[n]=a}),e}function VL(t,e,r,n,i,a){for(var o=eu(t,r),s=!1,u=!1,l=0;l<e.length;l++)g0(e[l].getOtherAxis(r.axis).scale)&&(s=u=!0,r.axis.type==="category"&&r.axis.onBand&&(u=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=u,o.defaultNameMoveOverlap=a,new vr(r,n,o,i)}function zL(t,e,r){var n=eu(e,r);if(process.env.NODE_ENV!=="production"){var i=t.__getRawCfg();b(Se(n),function(a){a!=="position"&&a!=="labelOffset"&&P(n[a]===i[a])})}t.updateCfg(n)}function HL(){SA("liPosMinGap",GL)}function GL(t,e,r){var n=Z(),i=r.serUids,a=r.liPosMinGap,o,s=e.axis,u=s.scale,l=u.needTransform(),f=u.getFilter?u.getFilter():null,c=v_(f);function h(_){Wh(t,e.sers,function(S){var x=S.getRawData(),w=x.getDimensionIndex(x.mapDimension(s.dim));w>=0&&_(w,S,x.getStore())})}var v=0;if(h(function(_,S,x){n.set(S.uid,1),(!i||!i.hasKey(S.uid))&&(o=!0),v+=x.count()}),(!i||i.keys().length!==n.keys().length)&&(o=!0),!o&&a!=null){e.liPosMinGap=a;return}Xh(gn,v);var d=0;h(function(_,S,x){for(var w=0,T=x.count();w<T;++w){var C=x.get(_,w);isFinite(C)&&(!f||d_(c,C))&&(l&&(C=u.transformIn(C,null)),gn.arr[d++]=C)}});var g=gn.typed?gn.arr.subarray(0,d):(gn.arr.length=d,gn.arr);gn.typed?g.sort():uu(g);for(var p=1/0,m=1;m<d;++m){var y=g[m]-g[m-1];y>0&&y<p&&(p=y)}r.liPosMinGap=e.liPosMinGap=vt(p)?p:d>0?D0:vA,r.serUids=n}var gn=Xh({ctor:dL},50);function UL(t){return function(e,r){var n=Ur(e,{fromStat:{key:t}});if(vt(n.w2))return[-n.w2/2,n.w2/2]}}function Bu(t,e){return t+Zs+e}function WL(t){return HL(),{liPosMinGap:!pt(t.scale)}}var YL="bar";function XL(t,e,r,n){xA(t,{key:e,seriesType:r,coordSysType:n,getMetrics:WL})}function ZL(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return process.env.NODE_ENV!=="production"&&P(vt(e)),e}var sS={left:0,right:0,top:0,bottom:0},tu=["25%","25%"],dr="cartesian2d",$L=(function(t){z(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,n){var i=Ui(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&Fr(r.outerBounds,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&Fr(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:sS,outerBoundsContain:"all",outerBoundsClampWidth:tu[0],outerBoundsClampHeight:tu[1],backgroundColor:G.color.transparent,borderWidth:1,borderColor:G.color.neutral30},e})(fe),qL=Xc(),yc="__ec_stack_";function uS(t){return t.get("stack")||yc+t.seriesIndex}function KL(t){if(pt(t.axis.scale)){for(var e=Ur(t.axis),r=[],n=0;n<t.count;n++)r.push(ge({stackId:yc+n},t));for(var i=lS({bandWidthResult:e,seriesInfo:r}),a=[],n=0;n<t.count;n++){var o=i[yc+n];o.offsetCenter=o.offset+o.width/2,a.push(o)}return a}}function QL(t,e){var r=jL(t,e);return r.columnMap=lS(r),r}function jL(t,e){var r=Bu(e,dr),n=[],i=Ur(t,{fromStat:{key:r},min:1});return A0(t,r,function(a){n.push({barWidth:Ee(a.get("barWidth"),i.w),barMaxWidth:Ee(a.get("barMaxWidth"),i.w),barMinWidth:Ee(a.get("barMinWidth")||(fS(a)?.5:1),i.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:uS(a)})}),{bandWidthResult:i,seriesInfo:n}}function lS(t){var e=t.bandWidthResult.w,r=e,n=0,i,a,o=[],s={};b(t.seriesInfo,function(g,p){p||(a=g.defaultBarGap||0);var m=g.stackId;B(s,m)||n++;var y=s[m];y||(y=s[m]={width:0,maxWidth:0},o.push(m));var _=g.barWidth;_&&!y.width&&(y.width=_,_=ze(r,_),r-=_);var S=g.barMaxWidth;S&&(y.maxWidth=S);var x=g.barMinWidth;x&&(y.minWidth=x);var w=g.barGap;w!=null&&(a=w);var T=g.barCategoryGap;T!=null&&(i=T)}),i==null&&(i=ue(35-o.length*4,15)+"%");var u=Ee(i,e),l=Ee(a,1),f=(r-u)/(n+(n-1)*l);f=ue(f,0),b(o,function(g){var p=s[g],m=p.maxWidth,y=p.minWidth;if(p.width){var _=p.width;m&&(_=ze(_,m)),y&&(_=ue(_,y)),p.width=_,r-=_+l*_,n--}else{var _=f;m&&m<_&&(_=ze(m,r)),y&&y>_&&(_=y),_!==f&&(p.width=_,r-=_+l*_,n--)}}),f=(r-u)/(n+(n-1)*l),f=ue(f,0);var c=0,h;b(o,function(g){var p=s[g];p.width||(p.width=f),h=p,c+=p.width*(1+l)}),h&&(c-=h.width*l);var v={},d=-c/2;return b(o,function(g){var p=s[g];v[g]=v[g]||{bandWidth:e,offset:d,width:p.width},d+=p.width*(1+l)}),v}function JL(t){return{seriesType:t,overallReset:function(e){var r=Bu(t,dr);yA(e,r,function(n){process.env.NODE_ENV!=="production"&&P(n instanceof J0);var i=QL(n,t);A0(n,r,function(a){var o=i.columnMap[uS(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function eO(t){return{seriesType:t,plan:Lh(),reset:function(e){if(BL(e)){var r=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),u=e.get("showBackground",!0),l=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=Vh(r,l)&&!!r.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),v=a.toGlobalCoord(a.dataToCoord(ZL(a))),d=fS(e),g=e.get("barMinHeight")||0,p=f&&r.getDimensionIndex(f),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,S){for(var x=_.count,w=d&&as(x*3),T=d&&u&&as(x*3),C=d&&as(x),E=n.master.getRect(),D=h?E.width:E.height,M,L=S.getStore(),A=0;(M=_.next())!=null;){var O=L.get(c?p:o,M),I=L.get(s,M),N=v,V=void 0;c&&(V=+O-L.get(o,M));var Y=void 0,K=void 0,Q=void 0,$=void 0;if(h){var ee=n.dataToPoint([O,I]);c&&(N=n.dataToPoint([V,I])[0]),Y=N,K=ee[1]+y,Q=ee[0]-N,$=m,Ae(Q)<g&&(Q=(Q<0?-1:1)*g)}else{var ee=n.dataToPoint([I,O]);c&&(N=n.dataToPoint([I,V])[1]),Y=ee[0]+y,K=N,Q=m,$=ee[1]-N,Ae($)<g&&($=($<=0?-1:1)*g)}d?(w[A]=Y,w[A+1]=K,w[A+2]=h?Q:$,T&&(T[A]=h?E.x:Y,T[A+1]=h?K:E.y,T[A+2]=D),C[M]=M):S.setItemLayout(M,{x:Y,y:K,width:Q,height:$}),A+=3}d&&S.setLayout({largePoints:w,largeDataIndices:C,largeBackgroundPoints:T,valueAxisHorizontal:h})}}}}}}function fS(t){return t.pipelineContext&&t.pipelineContext.large}function tO(t){return UL(Bu(t,dr))}function rO(t){qL(t,function(){function e(r){var n=Bu(r,dr);XL(t,n,r,dr),MA(n,tO(r))}e("bar"),e("pictorialBar")})}var _c=(function(t){z(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ct).models[0]},e.type="cartesian2dAxis",e})(fe);Ft(_c,C0);var cS={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:G.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:G.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:G.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[G.color.backgroundTint,G.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:G.color.neutral00,borderColor:G.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},nO=de({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},cS),$h=de({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:G.color.axisMinorSplitLine,width:1}}},cS),iO=de({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},$h),aO=ge({logBase:10},$h);const hS={category:nO,value:$h,time:iO,log:aO};function ug(t,e,r,n){b(x0,function(i,a){var o=de(de({},hS[a],!0),n,!0),s=(function(u){z(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return l.prototype.mergeDefaultAndTheme=function(f,c){var h=Fa(this),v=h?Ui(f):{},d=c.getTheme();de(f,d.get(a+"Axis")),de(f,this.getDefaultOption()),f.type=lg(f),h&&Fr(f,v,h)},l.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=fc.createByAxisModel(this))},l.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.prototype.updateAxisBreaks=function(f){return{breaks:[]}},l.type=e+"Axis."+a,l.defaultOption=o,l})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",lg)}function lg(t){return t.type||(t.data?"category":"value")}var oO=(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 q(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Fe(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})(),os=["x","y"];function fg(t){return(t.type==="interval"||t.type==="time")&&!Pn(t)}var sO=(function(t){z(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=dr,r.dimensions=os,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!fg(r)||!fg(n))){var i=Us(r,null),a=Us(n,null),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),u=i[1]-i[0],l=a[1]-a[0];if(!(!u||!l)){var f=(s[0]-o[0])/u,c=(s[1]-o[1])/l,h=o[0]-i[0]*f,v=o[1]-a[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=Xa([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.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,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new j(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return ht(i,r,this._transform);var s=this.getAxis("x"),u=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=u.toGlobalCoord(u.dataToCoord(o,n)),i},e.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),u=i.parse(r[0]),l=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(r,n,i){if(i=i||[],this._invTransform)return ht(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,u=Math.max(i[0],i[1])-o+r;return new j(a,o,s,u)},e})(oO);function vS(t,e){var r=t.scale,n=t.model;process.env.NODE_ENV!=="production"&&P(r&&n&&(r instanceof hr||r instanceof Ys)&&(e instanceof hr||e instanceof Ys));var i=F0(r,n,n.ecModel,t),a=Oi(r),o=Oi(e)?e.intervalStub:e,s=a?r.intervalStub:r,u=r.base,l=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=l.length-1;process.env.NODE_ENV!=="production"&&(P(!Pn(e)&&!Pn(r)),P(c>0),P(f.length===l.length),P(l[0].value<=l[c].value),P(f[0].value<=l[0].value&&l[c].value<=f[c].value),c>=2&&(P(f[1].value===l[1].value),P(f[c-1].value===l[c-1].value)));var h,v,d;if(c===1)h=v=0,d=1;else if(c===2){var g=Ae(l[0].value-l[1].value),p=Ae(l[1].value-l[2].value);h=v=0,g===p?d=2:(d=1,g<p?h=g/p:v=p/g)}else{var m=o.getConfig().interval;h=(1-(l[0].value-f[0].value)/m)%1,v=(1-(f[c].value-l[c].value)/m)%1,d=c-(h?1:0)-(v?1:0)}process.env.NODE_ENV!=="production"&&P(d>=1);var y=i.zoomFixMM,_=y[0]||y[1],S=[i.fixMM[0]||_,i.fixMM[1]||_],x=r.getExtent(),w=s.getExtent(),T=m0(w,S),C,E,D,M,L,A;function O(ee){for(var ne=50,X=0;X<ne&&!ee();X++)D=a?D*ue(u,2):WM(D),M=Nn(D);process.env.NODE_ENV!=="production"&&X>=ne&&Ke("incorrect impl in `scaleCalcAlign`.")}function I(){C=se(A-D*h,M)}function N(){E=se(L+D*v,M)}function V(){A=h?se(C+D*h,M):C}function Y(){L=v?se(E-D*v,M):E}if(S[0]&&S[1]){C=T[0],E=T[1],D=(E-C)/(d+h+v);var K=t.getExtent(),Q=Ae(K[1]-K[0]);M=gm([E,C],Q,.5/d),V(),Y(),vt(M)&&(D=se(D,M))}else{var $=T[1]-T[0];D=a?ue(ym($),1):Gc($/d,_m),M=Nn(D),S[0]?(C=T[0],O(function(){if(V(),L=se(A+D*d,M),N(),E>=T[1])return!0})):S[1]?(E=T[1],O(function(){if(Y(),A=se(L-D*d,M),I(),C<=T[0])return!0})):O(function(){A=se(ki(T[0]/D)*D,M),L=se(Br(T[1]/D)*D,M);var ee=gr((L-A)/D);if(ee<=d){var ne=d-ee,X=void 0,le=i.incl0||a;if(le&&T[0]===0)X=[0,ne];else if(le&&T[1]===0)X=[ne,0];else{var pe=Br(ne/2);X=ne%2===0?[pe,pe]:C+E<T[0]+T[1]?[pe,pe+1]:[pe+1,pe]}if(A=se(A-D*X[0],M),L=se(L+D*X[1],M),I(),N(),C<=T[0]&&E>=T[1])return!0}})}T0(r,S,w,[C,E],x,{interval:D,intervalCount:d,intervalPrecision:M,niceExtent:[A,L]}),process.env.NODE_ENV!=="production"&&r.freeze()}var cg=[[3,1],[0,2]],uO=(function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=os,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;b(this._axesList,function(o){k0(o,I0);var s=o.scale;pt(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function i(o){for(var s=Se(o),u=[],l=s.length-1;l>=0;l--){var f=o[+s[l]];f.__alignTo?u.push(f):Xp(f)}b(u,function(c){fO(c,c.__alignTo)?Xp(c):vS(c,c.__alignTo.scale)})}i(n.x),i(n.y);var a={};b(n.x,function(o){hg(n,"y",o,a)}),b(n.y,function(o){hg(n,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var i=eo(e,r),a=this._rect=tr(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,u=e.get("containLabel");if(dS(o,a),!n){var l=hO(a,s,o,u,r),f=void 0;if(u)process.env.NODE_ENV!=="production"&&wm("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.",!0),f=gg(a.clone(),"axisLabel",null,a,o,l,i);else{var c=vO(e,a,i),h=c.outerBoundsRect,v=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;h&&(f=gg(h,v,d,a,o,l,i))}pS(a,o,Bt.determine,null,f,i),b(this._coordsList,function(g){g.calcAffineTransform()})}},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}W(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===r)return a[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,n=e.xAxisModel||r&&r.getReferringComponents("xAxis",ct).models[0],i=e.yAxisModel||r&&r.getReferringComponents("yAxis",ct).models[0],a=e.gridModel,o=this._coordsList,s,u;if(r)s=r.coordinateSystem,he(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)u=this.getAxis("x",n.componentIndex);else if(i)u=this.getAxis("y",i.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(s=this._coordsList[0])}return{cartesian:s,axis:u}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},u={x:0,y:0};if(r.eachComponent("xAxis",l("x"),this),r.eachComponent("yAxis",l("y"),this),!u.x||!u.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,b(s.x,function(f,c){b(s.y,function(h,v){var d="x"+c+"y"+v,g=new sO(d);g.master=i,g.model=e,i._coordsMap[d]=g,i._coordsList.push(g),g.addAxis(f),g.addAxis(h)})}),dg(s.x),dg(s.y);function l(f){return function(c,h){if(lO(c,e)){var v=c.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=rA(c),g=new J0(f,nA(c,d),[0,0],d,v);g.onBand=b0(g.scale,c),g.inverse=c.get("inverse"),c.axis=g,g.model=c,g.grid=a,g.index=h,a._axesList.push(g),s[f][h]=g,u[f]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return b(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);he(r,a)<0&&r.push(a),he(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},t.create=function(e,r){var n=[];return e.eachComponent("grid",function(i,a){var o=new t(i,e,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o),b(o._axesList,function(s){CA(s,t.dimIdxMap)})}),e.eachSeries(function(i){var a,o;hC({targetModel:i,coordSysType:dr,coordSysProvider:s});function s(){var u=FL(i),l=u.xAxisModel,f=u.yAxisModel;a=l.axis,o=f.axis;var c=l.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!c)throw new Error('Grid "'+fr(l.get("gridIndex"),l.get("gridId"),0)+'" not found');if(l.getCoordSysModel()!==f.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var h=c.coordinateSystem;return h.getCartesian(l.componentIndex,f.componentIndex)}a&&o&&(hc(a,i,dr),hc(o,i,dr))},this),n},t.dimensions=os,t.dimIdxMap=Fh(os),t})();function lO(t,e){return t.getCoordSysModel()===e}function hg(t,e,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),u=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(u!=null)vg(s,i[u])&&(a=i[u]);else for(var l in i)if(B(i,l)&&vg(s,i[l])&&!n[f(i[l])]){a=i[l];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function vg(t,e){if(!e)return!1;var r=e.scale,n=iA(r,0),i=e&&e.type!=="category"&&e.type!=="time"&&n!==cc;return i&&t==="auto"&&uA(e)&&(i=!1),i}function dg(t){for(var e=Se(t),r,n=[],i=e.length-1;i>=0;i--){var a=t[+e[i]];g0(a.scale)&&cA(a.model,a.type)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?n.push(a):r=a)}r||(r=n.pop()),r&&b(n,function(o){o.__alignTo=r})}function fO(t,e){return Pn(t.scale)||Pn(e.scale)||e.scale.getTicks().length<2}function cO(t,e){var r=t.getExtent(),n=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(i){return i+e}:function(i){return n-i+e},t.toLocalCoord=t.dim==="x"?function(i){return i-e}:function(i){return n-i+e}}function dS(t,e){b(t.x,function(r){return pg(r,e.x,e.width)}),b(t.y,function(r){return pg(r,e.y,e.height)})}function pg(t,e,r){var n=[0,r],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),cO(t,e)}function gg(t,e,r,n,i,a,o){process.env.NODE_ENV!=="production"&&P(e==="all"||e==="axisLabel"),pS(n,i,Bt.estimate,e,!1,o);var s=[0,0,0,0];l(0),l(1),f(n,0,NaN),f(n,1,NaN);var u=Ug(s,function(h){return h>0})==null;return Es(n,s,!0,!0,r),dS(i,n),u;function l(h){b(i[Lr[h]],function(v){if(Ua(v.model)){var d=a.ensureRecord(v.model),g=d.labelInfoList;if(g)for(var p=0;p<g.length;p++){var m=g[p],y=v.scale.normalize(to(v.scale,Pi(m.label).labelInfo.tick));y=h===1?1-y:y,f(m.rect,h,y),f(m.rect,1-h,NaN)}var _=d.nameLayout;if(_){var y=Ii(d.nameLocation)?.5:NaN;f(_.rect,h,y),f(_.rect,1-h,NaN)}}})}function f(h,v,d){var g=t[Lr[v]]-h[Lr[v]],p=h[Ei[v]]+h[Lr[v]]-(t[Ei[v]]+t[Lr[v]]);g=c(g,1-d),p=c(p,d);var m=cg[v][0],y=cg[v][1];s[m]=ue(s[m],g),s[y]=ue(s[y],p)}function c(h,v){return h>0&&!An(v)&&v>1e-4&&(h/=v),h}}function hO(t,e,r,n,i){var a=new tS(dO);return b(r,function(o){return b(o,function(s){if(Ua(s.model)){var u=!n;s.axisBuilder=VL(t,e,s.model,i,a,u)}})}),a}function pS(t,e,r,n,i,a){var o=r===Bt.determine;b(e,function(l){return b(l,function(f){Ua(f.model)&&(zL(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};u(0),u(1);function u(l){s[Lr[1-l]]=t[Ei[l]]<=a.refContainer[Ei[l]]*.5?0:1-l===1?2:1}b(e,function(l,f){return b(l,function(c){Ua(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function vO(t,e,r){var n,i=t.get("outerBoundsMode",!0);i==="same"?n=e.clone():i==null||i==="auto"?n=tr(t.get("outerBounds",!0)||sS,r.refContainer):i!=="none"&&process.env.NODE_ENV!=="production"&&ce("Invalid grid["+t.componentIndex+"].outerBoundsMode.");var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"?o="all":he(["all","axisLabel"],a)<0?(process.env.NODE_ENV!=="production"&&ce("Invalid grid["+t.componentIndex+"].outerBoundsContain."),o="all"):o=a;var s=[If(U(t.get("outerBoundsClampWidth",!0),tu[0]),e.width),If(U(t.get("outerBoundsClampHeight",!0),tu[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var dO=function(t,e,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";rS(t,e,r,n,i,a),Ii(t.nameLocation)||b(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&iS(s.labelInfoList,s.dirVec,n,i)})};function pO(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return gO(r,t,e),r.seriesInvolved&&yO(r,t),r}function gO(t,e,r){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];b(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var u=Wa(s.model),l=t.coordSysAxesInfo[u]={};t.coordSysMap[u]=s;var f=s.model,c=f.getModel("tooltip",n);if(b(s.getAxes(),Ie(g,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var h=c.get("trigger")==="axis",v=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||v)&&b(d.baseAxes,Ie(g,v?"cross":!0,h)),v&&b(d.otherAxes,Ie(g,"cross",!1))}function g(p,m,y){var _=y.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!p&&!Sc(_))){m==null&&(m=_.get("triggerTooltip")),_=p?mO(y,c,i,e,p,m):_;var x=_.get("snap"),w=_.get("triggerEmphasis"),T=Wa(y.model),C=m||x||y.type==="category",E=t.axesInfo[T]={key:T,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:w,involveSeries:C,snap:x,useHandle:Sc(_),seriesModels:[],linkGroup:null};l[T]=E,t.seriesInvolved=t.seriesInvolved||C;var D=_O(a,y);if(D!=null){var M=o[D]||(o[D]={axesInfo:{}});M.axesInfo[T]=E,M.mapper=a[D].mapper,E.linkGroup=M}}}})}function mO(t,e,r,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};b(s,function(h){u[h]=ae(o.get(h))}),u.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(u.type="line");var l=u.label||(u.label={});if(l.show==null&&(l.show=!1),i==="cross"){var f=o.get(["label","show"]);if(l.show=f??!0,!a){var c=u.lineStyle=o.get("crossStyle");c&&ge(l,c.textStyle)}}return t.model.getModel("axisPointer",new be(u,r,n))}function yO(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||b(t.coordSysAxesInfo[Wa(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function _O(t,e){for(var r=e.model,n=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(ef(a[n+"AxisId"],r.id)||ef(a[n+"AxisIndex"],r.componentIndex)||ef(a[n+"AxisName"],r.name))return i}}function ef(t,e){return t==="all"||F(t)&&he(t,e)>=0||t===e}function SO(t){var e=qh(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Sc(r);a==null&&(i.status=s?"show":"hide");var u=n.getExtent();(o==null||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function qh(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Wa(t)]}function xO(t){var e=qh(t);return e&&e.axisPointerModel}function Sc(t){return!!t.get(["handle","show"])}function Wa(t){return t.type+"||"+t.id}var tf={},gS=(function(t){z(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,n,i,a){this.axisPointerClass&&SO(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},e.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},e.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=xO(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){if(process.env.NODE_ENV!=="production"&&tf[r])throw new Error("axisPointer "+r+" exists");tf[r]=n},e.getAxisPointerClass=function(r){return r&&tf[r]},e.type="axis",e})(At),xc=ye();function wO(t,e,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),u=n.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(l.length){var f=s.length,c=xc(t).splitAreaColors,h=Z(),v=0;if(c)for(var d=0;d<l.length;d++){var g=c.get(l[d].tickValue);if(g!=null){v=(g+(f-1)*d)%f;break}}var p=i.toGlobalCoord(l[0].coord),m=o.getAreaStyle();s=F(s)?s:[s];for(var d=1;d<l.length;d++){var y=i.toGlobalCoord(l[d].coord),_=void 0,S=void 0,x=void 0,w=void 0;i.isHorizontal()?(_=p,S=u.y,x=y-_,w=u.height,p=_+x):(_=u.x,S=p,x=u.width,w=y-S,p=S+w);var T=l[d-1].tickValue;T!=null&&h.set(T,v),e.add(new Le({anid:T!=null?"area_"+T:null,shape:{x:_,y:S,width:x,height:w},style:ge({fill:s[v]},m),autoBatch:!0,silent:!0})),v=(v+1)%f}xc(t).splitAreaColors=h}}}function TO(t){xc(t).splitAreaColors=null}var bO=["splitArea","splitLine","minorSplitLine","breakArea"],mS=(function(t){z(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,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new st,this.group.add(this._axisGroup),!!Ua(r)){this._axisGroup.add(r.axis.axisBuilder.group),b(bO,function(u){r.get([u,"show"])&&CO[u](this,this._axisGroup,r,r.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||Cy(o,this._axisGroup,r),t.prototype.render.call(this,r,n,i,a)}},e.prototype.remove=function(){TO(this)},e.type="cartesianAxis",e})(gS),CO={splitLine:function(t,e,r,n,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),u=s.get("color"),l=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;u=F(u)?u:[u];for(var c=n.coordinateSystem.getRect(),h=a.isHorizontal(),v=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],p=[],m=s.getLineStyle(),y=0;y<d.length;y++){var _=a.toGlobalCoord(d[y].coord);if(!(y===0&&!l||y===d.length-1&&!f)){var S=d[y].tickValue;h?(g[0]=_,g[1]=c.y,p[0]=_,p[1]=c.y+c.height):(g[0]=c.x,g[1]=_,p[0]=c.x+c.width,p[1]=_);var x=v++%u.length,w=new _r({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:p[0],y2:p[1]},style:ge({stroke:u[x]},m),silent:!0});ka(w.shape,m.lineWidth),e.add(w)}}}},minorSplitLine:function(t,e,r,n,i){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),u=n.coordinateSystem.getRect(),l=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],h=[],v=s.getLineStyle(),d=0;d<f.length;d++)for(var g=0;g<f[d].length;g++){var p=a.toGlobalCoord(f[d][g].coord);l?(c[0]=p,c[1]=u.y,h[0]=p,h[1]=u.y+u.height):(c[0]=u.x,c[1]=p,h[0]=u.x+u.width,h[1]=p);var m=new _r({anid:"minor_line_"+f[d][g].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:v,silent:!0});ka(m.shape,v.lineWidth),e.add(m)}},splitArea:function(t,e,r,n,i){wO(t,e,r,n)},breakArea:function(t,e,r,n,i){r.axis.scale}},yS=(function(t){z(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(mS),DO=(function(t){z(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=yS.type,r}return e.type="yAxis",e})(mS),EO=(function(t){z(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Le({shape:r.coordinateSystem.getRect(),style:ge({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(At),mg={offset:0};function MO(t){t.registerComponentView(EO),t.registerComponentModel($L),t.registerCoordinateSystem("cartesian2d",uO),ug(t,"x",_c,mg),ug(t,"y",_c,mg),t.registerComponentView(yS),t.registerComponentView(DO),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function AO(t,e,r,n,i,a){t=t||0;var o=mn(r[1],-r[0]);if(i!=null&&(i=ii(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(mn(e[1],-e[0]));s=ii(s,[0,o]),i=a=ii(s,[i,a]),n=0}e[0]=ii(e[0],r),e[1]=ii(e[1],r);var u=rf(e,n);e[n]+=t;var l=i||0,f=r.slice();u.sign<0?f[0]=mn(f[0],l):f[1]=mn(f[1],-l),e[n]=ii(e[n],f);var c;return c=rf(e,n),i!=null&&(c.sign!==u.sign||c.span<i)&&(e[1-n]=mn(e[n],u.sign*i)),c=rf(e,n),a!=null&&c.span>a&&(e[1-n]=mn(e[n],c.sign*a)),e}function rf(t,e){var r=t[e]-t[1-e];return{span:Math.abs(r),sign:r>0?-1:r<0?1:e?-1:1}}function ii(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}var yn=ye(),yg=ae,nf=Te,LO=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,u=this._handle;if(!o||o==="hide"){s&&s.hide(),u&&u.hide();return}s&&s.show(),u&&u.show();var l={};this.makeElOption(l,a,e,r,n);var f=l.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new st,this.createPointerEl(s,l,e,r),this.createLabelEl(s,l,e,r),n.getZr().add(s);else{var h=Ie(_g,r,c);this.updatePointerEl(s,l,h),this.updateLabelEl(s,l,h,r)}xg(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 n=r.get("animation"),i=e.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&Ur(i).w>s)return!0;if(o){var u=qh(e).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,i,a){},t.prototype.createPointerEl=function(e,r,n,i){var a=r.pointer;if(a){var o=yn(e).pointerEl=new Ly[a.type](yg(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=yn(e).labelEl=new Xe(yg(r.label));e.add(a),Sg(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=yn(e).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,i){var a=yn(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),Sg(a,i))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=uh(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){Rc(l.event)},onmousedown:nf(this._onHandleDragMove,this,0,0),drift:nf(this._onHandleDragMove,this),ondragend:nf(this._onHandleDragEnd,this)}),n.add(i)),xg(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");F(u)||(u=[u,u]),i.scaleX=u[0]/2,i.scaleY=u[1]/2,Oh(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){_g(this._axisPointerModel,!r&&this._moveAnimation,this._handle,af(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(af(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(af(i)),yn(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Is(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t})();function _g(t,e,r,n){_S(yn(r).lastProp,n)||(yn(r).lastProp=n,e?Gi(r,n,t):(r.stopAnimation(),r.attr(n)))}function _S(t,e){if(W(t)&&W(e)){var r=!0;return b(e,function(n,i){r=r&&_S(t[i],n)}),!!r}else return t===e}function Sg(t,e){t[e.get(["label","show"])?"show":"hide"]()}function af(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function xg(t,e,r){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function OO(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function IO(t,e,r,n,i){var a=r.get("value"),o=SS(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),u=Ja(s.get("padding")||0),l=s.getFont(),f=hm(o,l),c=i.position,h=f.width+u[1]+u[3],v=f.height+u[0]+u[2],d=i.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var g=i.verticalAlign;g==="bottom"&&(c[1]-=v),g==="middle"&&(c[1]-=v/2),PO(c,h,v,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Sr(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:p}),z2:10}}function PO(t,e,r,n){var i=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,i)-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 SS(t,e,r,n,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:Xs(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};b(n,function(u){var l=r.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,c=l&&l.getDataParams(f);c&&s.seriesData.push(c)}),H(o)?a=o.replace("{value}",a):J(o)&&(a=o(s))}return a}function xS(t,e,r){var n=Nt();return Bc(n,n,r.rotation),gf(n,n,r.position),xu([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function NO(t,e,r,n,i,a){var o=vr.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),IO(e,n,i,a,{position:xS(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function RO(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function kO(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function BO(t,e,r){return Ur(t,{fromStat:{sers:q(e,function(n){return r.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function FO(t,e,r){return[ue(ze(e[0],e[1]),t-r/2),ze(t+r/2,ue(e[0],e[1]))]}var VO=(function(t){z(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,u=s.grid,l=a.get("type"),f=s.getGlobalExtent(),c=wg(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(l&&l!=="none"){var v=OO(a),d=zO[l](s,h,f,c,a.get("seriesDataIndices"),a.ecModel);d.style=v,r.graphicKey=d.type,r.pointer=d}var g=eu(u.getRect(),i);NO(n,r,g,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=eu(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=xS(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,u=o.getGlobalExtent(!0),l=wg(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=ze(u[1],c[f]),c[f]=ue(u[0],c[f]);var h=(l[1]+l[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:v,tooltipOption:d[f]}},e})(LO);function wg(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var zO={line:function(t,e,r,n){var i=RO([e,n[0]],[e,n[1]],Tg(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,r,n,i,a){var o=BO(t,i,a),s=n[1]-n[0],u=FO(e,r,o),l=u[0],f=u[1];return{type:"Rect",shape:kO([l,n[0]],[f-l,s],Tg(t))}}};function Tg(t){return t.dim==="x"?0:1}var HO=(function(t){z(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:G.color.border,width:1,type:"dashed"},shadowStyle:{color:G.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:G.color.neutral00,padding:[5,7,5,7],backgroundColor:G.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:G.color.accent40,throttle:40}},e})(fe),lr=ye(),GO=b;function wS(t,e,r){if(!te.node){var n=e.getZr();lr(n).records||(lr(n).records={}),UO(n,e);var i=lr(n).records[t]||(lr(n).records[t]={});i.handler=r}}function UO(t,e){if(lr(t).initialized)return;lr(t).initialized=!0,r("click",Ie(of,"click")),r("mousemove",Ie(of,"mousemove")),r("mousewheel",Ie(of,"mousewheel")),r("globalout",YO);function r(n,i){t.on(n,function(a){var o=XO(e);GO(lr(t).records,function(s){s&&i(s,a,o.dispatchAction)}),WO(o.pendings,e)})}}function WO(t,e){var r=t.showTip.length,n=t.hideTip.length,i;r?i=t.showTip[r-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function YO(t,e,r){t.handler("leave",null,r)}function of(t,e,r,n){e.handler(t,r,n)}function XO(t){var e={showTip:[],hideTip:[]},r=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function wc(t,e){if(!te.node){var r=e.getZr(),n=(lr(r).records||{})[t];n&&(lr(r).records[t]=null)}}var ZO=(function(t){z(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,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";wS("axisPointer",i,function(s,u,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},e.prototype.remove=function(r,n){wc("axisPointer",n)},e.prototype.dispose=function(r,n){wc("axisPointer",n)},e.type="axisPointer",e})(At);function TS(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Fi(a,t);if(o==null||o<0||F(o))return{point:[]};var s=a.getItemGraphicEl(o),u=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(t.isStacked){var l=u.getBaseAxis(),f=u.getOtherAxis(l),c=f.dim,h=l.dim,v=c==="x"||c==="radius"?1:0,d=a.mapDimension(h),g=[];g[v]=a.get(d,o),g[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=u.dataToPoint(g)||[]}else r=u.dataToPoint(a.getValues(q(u.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var bg=ye();function $O(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||Te(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){ss(i)&&(i=TS({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var u=ss(i),l=a.axesInfo,f=s.axesInfo,c=n==="leave"||ss(i),h={},v={},d={list:[],map:{}},g={showPointer:Ie(KO,v),showTooltip:Ie(QO,d)};b(s.coordSysMap,function(m,y){var _=u||m.containPoint(i);b(s.coordSysAxesInfo[y],function(S,x){var w=S.axis,T=tI(l,S);if(!c&&_&&(!l||T)){var C=T&&T.value;C==null&&!u&&(C=w.pointToData(i)),C!=null&&Cg(S,C,g,!1,h)}})});var p={};return b(f,function(m,y){var _=m.linkGroup;_&&!v[y]&&b(_.axesInfo,function(S,x){var w=v[x];if(S!==m&&w){var T=w.value;_.mapper&&(T=m.axis.scale.parse(_.mapper(T,Dg(S),Dg(m)))),p[m.key]=T}})}),b(p,function(m,y){Cg(f[y],m,g,!0,h)}),jO(v,f,h),JO(d,i,t,o),eI(f,o,r),h}}function Cg(t,e,r,n,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=qO(e,t),s=o.payloadBatch,u=o.snapToValue;s[0]&&i.seriesIndex==null&&k(i,s[0]),!n&&t.snap&&a.containData(u)&&u!=null&&(e=u),r.showPointer(t,e,s),r.showTooltip(t,o,u)}}function qO(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return b(e.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(n),c,h;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(f,t,r);h=v.dataIndices,c=v.nestestValue}else{if(h=u.indicesOfNearest(n,f[0],t,r.type==="category"?.5:null),!h.length)return;c=u.getData().get(f[0],h[0])}if(vt(c)){var d=t-c,g=Math.abs(d);g<=o&&((g<o||d>=0&&s<0)&&(o=g,s=d,i=c,a.length=0),b(h,function(p){a.push({seriesIndex:u.seriesIndex,dataIndexInside:p,dataIndex:u.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function KO(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function QO(t,e,r,n){var i=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var u=e.coordSys.model,l=Wa(u),f=t.map[l];f||(f=t.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function jO(t,e,r){var n=r.axesInfo=[];b(e,function(i,a){var o=i.axisPointerModel.option,s=t[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function JO(t,e,r,n){if(ss(e)||!t.list.length){n({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function eI(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=bg(n)[i]||{},o=bg(n)[i]={};b(t,function(f,c){var h=f.axisPointerModel.option;h.status==="show"&&f.triggerEmphasis&&b(h.seriesDataIndices,function(v){o[v.seriesIndex+"|"+v.dataIndex]=v})});var s=[],u=[];function l(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}b(a,function(f,c){!o[c]&&u.push(l(f))}),b(o,function(f,c){!a[c]&&s.push(l(f))}),u.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function tI(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function Dg(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function ss(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function bS(t){gS.registerAxisPointerClass("CartesianAxisPointer",VO),t.registerComponentModel(HO),t.registerComponentView(ZO),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!F(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=pO(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},$O)}function rI(t){zr(MO),zr(bS)}function nI(t,e){var r=Ja(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var i=new Le({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var iI=(function(t){z(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:G.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:G.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:G.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:G.color.tertiary,fontSize:14}},e})(fe);function CS(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function DS(t){if(te.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var ES=DS(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),aI=DS(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function MS(t,e){if(!t)return e;e=$y(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function oI(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var sI=MS(aI,"transition"),Kh=MS(ES,"transform"),uI="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(te.transform3dSupported?"will-change:transform;":"");function lI(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function fI(t,e,r){if(!H(r)||r==="inside")return"";var n=t.get("backgroundColor"),i=t.get("borderWidth");e=Mi(e);var a=lI(r),o=Math.max(Math.round(i)*1.5,6),s="",u=Kh+":",l;he(["left","right"],a)>-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l=a==="left"?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l=a==="top"?225:45)+"deg)");var f=l*Math.PI/180,c=o+i,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-c)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=e+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+g.join("")+'"></div>'}function cI(t,e,r){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return r&&(i=" "+t/2+"s "+n,a="opacity"+i+",visibility"+i),e||(i=" "+t+"s "+n,a+=(a.length?",":"")+(te.transformSupported?""+Kh+i:",left"+i+",top"+i)),sI+":"+a}function Eg(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!te.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=te.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+Kh+":"+o+";":[["top",0],["left",0],[ES,o]]}function hI(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var i=U(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+i+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,u=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+u+"px "+o+"px "+a),b(["decoration","align"],function(l){var f=t.get(l);f&&e.push("text-"+l+":"+f)}),e.join(";")}function vI(t,e,r,n){var i=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),u=t.get("shadowColor"),l=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=b_(t,"html"),v=l+"px "+f+"px "+s+"px "+u;return i.push("box-shadow:"+v),e&&a>0&&i.push(cI(a,r,n)),o&&i.push("background-color:"+o),b(["width","color","radius"],function(d){var g="border-"+d,p=$y(g),m=t.get(p);m!=null&&i.push(g+":"+m+(d==="color"?"":"px"))}),i.push(hI(c)),h!=null&&i.push("padding:"+Ja(h).join("px ")+"px"),i.join(";")+";"}function Mg(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&g1(t,o,r,n,i)}else{t[0]=n,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var dI=(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,te.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=r.appendTo,o=a&&(H(a)?document.querySelector(a):xi(a)?a:J(a)&&a(e.getDom()));Mg(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=i.handler,f=i.painter.getViewportRoot();St(f,u,!0),l.dispatch("mousemove",u)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=oI(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.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 n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=uI+vI(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+Eg(a[0],a[1],!0)+("border-color:"+Mi(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(H(a)&&n.get("trigger")==="item"&&!CS(n)&&(s=fI(n,i,a)),H(e))o.innerHTML=e+s;else if(e){o.innerHTML="",F(e)||(e=[e]);for(var u=0;u<e.length;u++)xi(e[u])&&e[u].parentNode!==o&&o.appendChild(e[u]);if(s&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=s,o.appendChild(l)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var n=this._styleCoord;if(Mg(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=Eg(n[0],n[1]);b(a,function(o){i[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",te.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Te(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;m1(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},t})(),pI=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),Lg(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,i,a){var o=this;W(e)&&Qe(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Xe({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:b_(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),b(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){o.el.style[l]=n.get(l)}),b(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(l){o.el.style[l]=s.get(l)||0}),this._zr.add(this.el);var u=this;this.el.on("mouseover",function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0}),this.el.on("mouseout",function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=Ag(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var i=this._styleCoord;Lg(i,this._zr,e,r),e=i[0],r=i[1];var a=n.style,o=Ar(a.borderWidth||0),s=Ag(a);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Te(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function Ar(t){return Math.max(0,t)}function Ag(t){var e=Ar(t.shadowBlur||0),r=Ar(t.shadowOffsetX||0),n=Ar(t.shadowOffsetY||0);return{left:Ar(e-r),right:Ar(e+r),top:Ar(e-n),bottom:Ar(e+n)}}function Lg(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var gI=new Le({shape:{x:-1,y:-1,width:2,height:2}}),mI=(function(t){z(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,n){if(!(te.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=lw(i.get("renderMode"));this._tooltipContent=a==="richText"?new pI(n):new dI(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(r,n,i){if(!(te.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Oh(this,"_updatePosition",50,"fixRate"):Is(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");wS("itemTooltip",this._api,Te(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||te.node||!i.getDom())){var o=Og(a,i);this._ticket="";var s=a.dataByCoordSys,u=xI(a,n,i);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=gI;f.x=a.x,f.y=a.y,f.update(),_e(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,n,i,a))return;var c=TS(a,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide(Og(a,i))},e.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,u=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=n.getSeriesByIndex(o);if(l){var f=l.getData(),c=la([f.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=_e(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var u,l;di(i,function(f){if(f.tooltipDisabled)return u=l=null,!0;u||l||(_e(f).dataIndex!=null?u=f:_e(f).tooltipConfig!=null&&(l=f))},!0),u?this._showSeriesItemTooltip(r,u,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=Te(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=la([n.tooltipOption],a),u=this._renderMode,l=[],f=Li("section",{blocks:[],noHeader:!0}),c=[],h=new Bl;b(r,function(y){b(y.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value,w=S.axis,T=w.scale.parse(x);if(!(!S||x==null)){var C=SS(x,w,i,_.seriesDataIndices,_.valueLabelOpt),E=Li("section",{header:C,noHeader:!qt(C),sortBlocks:!0,blocks:[]});f.blocks.push(E),b(_.seriesDataIndices,function(D){var M=i.getSeriesByIndex(D.seriesIndex),L=D.dataIndexInside,A=M.getDataParams(L);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=Xs(S.axis,{value:T}),A.axisValueLabel=C,A.marker=h.makeTooltipMarker("item",Mi(A.color),u);var O=Kd(M.formatTooltip(L,!0,null)),I=O.frag;if(I){var N=la([M],a).get("valueFormatter");E.blocks.push(N?k({valueFormatter:N},I):I)}O.text&&c.push(O.text),l.push(A)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),g=tp(f,h,u,d,i.get("useUTC"),s.get("textStyle"));g&&c.unshift(g);var p=u==="richText"?`
|
|
42
|
-
|
|
43
|
-
`:"<br/>",m=c.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,l)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,m,l,Math.random()+"",o[0],o[1],v,null,h)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=_e(n),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,c=o.dataType,h=l.getData(c),v=this._renderMode,d=r.positionDefault,g=la([h.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var m=l.getDataParams(f,c),y=new Bl;m.marker=y.makeTooltipMarker("item",Mi(m.color),v);var _=Kd(l.formatTooltip(f,!1,c)),S=g.get("order"),x=g.get("valueFormatter"),w=_.frag,T=w?tp(x?k({valueFormatter:x},w):w,y,v,S,a.get("useUTC"),g.get("textStyle")):_.text,C="item_"+l.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,T,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=_e(n),s=o.tooltipConfig,u=s.option||{},l=u.encodeHTMLContent;if(H(u)){var f=u;u={content:f,formatter:f},l=!0}l&&a&&u.content&&(u=ae(u),u.content=nt(u.content));var c=[u],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:u.content});var v=r.positionDefault,d=la(c,this._tooltipModel,v?{position:v}:null),g=d.get("content"),p=Math.random()+"",m=new Bl;this._showOrMove(d,function(){var y=ae(d.get("formatterParams")||{});this._showTooltipContent(d,g,y,p,r.offsetX,r.offsetY,r.position,n,m)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,o,s,u,l,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var h=r.get("formatter");u=u||r.get("position");var v=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),g=d.color;if(h)if(H(h)){var p=r.ecModel.get("useUTC"),m=F(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,y&&(v=Du(m.axisValue,v,p)),v=qy(v,i,!0)}else if(J(h)){var _=Te(function(S,x){S===this._ticket&&(c.setContent(x,f,r,g,u),this._updatePosition(r,u,o,s,c,i,l))},this);this._ticket=a,v=h(i,a,_)}else v=h;c.setContent(v,f,r,g,u),c.show(r,g),this._updatePosition(r,u,o,s,c,i,l)}},e.prototype._getNearestPoint=function(r,n,i,a,o){if(i==="axis"||F(n))return{color:a||o};if(!F(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,i,a,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),h=r.get("align"),v=r.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),J(n)&&(n=n([i,a],s,o.el,d,{viewSize:[l,f],contentSize:c.slice()})),F(n))i=Ee(n[0],l),a=Ee(n[1],f);else if(W(n)){var g=n;g.width=c[0],g.height=c[1];var p=tr(g,{width:l,height:f});i=p.x,a=p.y,h=null,v=null}else if(H(n)&&u){var m=SI(n,d,c,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=yI(i,a,o,l,f,h?null:20,v?null:20);i=m[0],a=m[1]}if(h&&(i-=Ig(h)?c[0]/2:h==="right"?c[0]:0),v&&(a-=Ig(v)?c[1]/2:v==="bottom"?c[1]:0),CS(r)){var m=_I(i,a,o,l,f);i=m[0],a=m[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&b(i,function(s,u){var l=s.dataByAxis||[],f=r[u]||{},c=f.dataByAxis||[];o=o&&l.length===c.length,o&&b(l,function(h,v){var d=c[v]||{},g=h.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&g.length===p.length,o&&b(g,function(m,y){var _=p[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&b(h.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],S=a[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){te.node||!n.getDom()||(Is(this,"_updatePosition"),this._tooltipContent.dispose(),wc("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(At);function la(t,e,r){var n=e.ecModel,i;r?(i=new be(r,n,n),i=new be(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof be&&(o=o.get("tooltip",!0)),H(o)&&(o={formatter:o}),o&&(i=new be(o,i,n)))}return i}function Og(t,e){return t.dispatchAction||Te(e.dispatchAction,e)}function yI(t,e,r,n,i,a,o){var s=r.getSize(),u=s[0],l=s[1];return a!=null&&(t+u+a+2>n?t-=u+a:t+=a),o!=null&&(e+l+o>i?e-=l+o:e+=o),[t,e]}function _I(t,e,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function SI(t,e,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,u=0,l=e.width,f=e.height;switch(t){case"inside":s=e.x+l/2-i/2,u=e.y+f/2-a/2;break;case"top":s=e.x+l/2-i/2,u=e.y-a-o;break;case"bottom":s=e.x+l/2-i/2,u=e.y+f+o;break;case"left":s=e.x-i-o,u=e.y+f/2-a/2;break;case"right":s=e.x+l+o,u=e.y+f/2-a/2}return[s,u]}function Ig(t){return t==="center"||t==="middle"}function xI(t,e,r){var n=Yc(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Vi(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=_e(l).tooltipConfig;if(f&&f.name===t.name)return u=l,!0}),u)return{componentMainType:i,componentIndex:o.componentIndex,el:u}}}}function wI(t){zr(bS),t.registerComponentModel(iI),t.registerComponentView(mI),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ve),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ve)}var TI=(function(t){z(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:G.size.m,backgroundColor:G.color.transparent,borderColor:G.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:G.color.primary},subtextStyle:{fontSize:12,color:G.color.quaternary}},e})(fe),bI=(function(t){z(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,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),u=r.get("textAlign"),l=U(r.get("textBaseline"),r.get("textVerticalAlign")),f=new Xe({style:Sr(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=r.get("subtext"),v=new Xe({style:Sr(s,{text:h,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),g=r.get("sublink"),p=r.get("triggerEvent",!0);f.silent=!d&&!p,v.silent=!g&&!p,d&&f.on("click",function(){Od(d,"_"+r.get("target"))}),g&&v.on("click",function(){Od(g,"_"+r.get("subtarget"))}),_e(f).eventData=_e(v).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),h&&a.add(v);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=eo(r,i),S=tr(y,_.refContainer,r.get("padding"));u||(u=r.get("left")||r.get("right"),u==="middle"&&(u="center"),u==="right"?S.x+=S.width:u==="center"&&(S.x+=S.width/2)),l||(l=r.get("top")||r.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?S.y+=S.height:l==="middle"&&(S.y+=S.height/2),l=l||"top"),a.x=S.x,a.y=S.y,a.markRedraw();var x={align:u,verticalAlign:l};f.setStyle(x),v.setStyle(x),m=a.getBoundingRect();var w=S.margin,T=r.getItemStyle(["color","opacity"]);T.fill=r.get("backgroundColor");var C=new Le({shape:{x:m.x-w[3],y:m.y-w[0],width:m.width+w[1]+w[3],height:m.height+w[0]+w[2],r:r.get("borderRadius")},style:T,subPixelOptimize:!0,silent:!0});a.add(C)}},e.type="title",e})(At);function CI(t){t.registerComponentModel(TI),t.registerComponentView(bI)}var DI=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},Tc=(function(t){z(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),F(n)&&b(n,function(a,o){H(a)&&(a={type:a}),n[o]=de(a,DI(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(u){var l=u.name;i.push(l);var f;if(u.legendVisualProvider){var c=u.legendVisualProvider,h=c.getAllNames();r.isSeriesFiltered(u)||(i=i.concat(h)),h.length?n=n.concat(h):f=!0}else f=!0;f&&Wc(u)&&n.push(u.name)}),this._availableNames=i;var a=this.get("data")||n,o=Z(),s=q(a,function(u){return(H(u)||Ce(u))&&(u={name:u}),o.get(u.name)?null:(o.set(u.name,!0),new be(u,this,this.ecModel))},this);this._data=Fe(s,function(u){return!!u})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;b(a,function(o){n[o.get("name")]=!1})}n[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;b(r,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;b(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&he(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:G.size.m,align:"auto",backgroundColor:G.color.transparent,borderColor:G.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:G.color.disabled,inactiveBorderColor:G.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:G.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:G.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:G.color.tertiary,borderWidth:1,borderColor:G.color.border},emphasis:{selectorLabel:{show:!0,color:G.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(fe),ai=Ie,bc=b,Uo=st,AS=(function(t){z(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new Uo),this.group.add(this._selectorGroup=new Uo),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var u=r.get("selector",!0),l=r.get("selectorPosition",!0);u&&(!l||l==="auto")&&(l=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,u,s,l);var f=eo(r,i).refContainer,c=r.getBoxLayoutParams(),h=r.get("padding"),v=tr(c,f,h),d=this.layoutInner(r,o,v,a,u,l),g=tr(ge({width:d.width,height:d.height},c),f,h);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=nI(d,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,u){var l=this.getContentGroup(),f=Z(),c=n.get("selectedMode"),h=n.get("triggerEvent"),v=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),bc(n.getData(),function(d,g){var p=this,m=d.get("name");if(!this.newlineDisabled&&(m===""||m===`
|
|
44
|
-
`)){var y=new Uo;y.newline=!0,l.add(y);return}var _=i.getSeriesByName(m)[0];if(!f.get(m)){if(_){var S=_.getData(),x=S.getVisual("legendLineStyle")||{},w=S.getVisual("legendIcon"),T=S.getVisual("style"),C=this._createItem(_,m,g,d,n,r,x,T,w,c,a);C.on("click",ai(Pg,m,null,a,v)).on("mouseover",ai(Cc,_.name,null,a,v)).on("mouseout",ai(Dc,_.name,null,a,v)),i.ssr&&C.eachChild(function(E){var D=_e(E);D.seriesIndex=_.seriesIndex,D.dataIndex=g,D.ssrType="legend"}),h&&C.eachChild(function(E){p.packEventData(E,n,_,g,m)}),f.set(m,!0)}else i.eachRawSeries(function(E){var D=this;if(!f.get(m)&&E.legendVisualProvider){var M=E.legendVisualProvider;if(!M.containName(m))return;var L=M.indexOfName(m),A=M.getItemVisual(L,"style"),O=M.getItemVisual(L,"legendIcon"),I=Mt(A.fill);I&&I[3]===0&&(I[3]=.2,A=k(k({},A),{fill:Rn(I,"rgba")}));var N=this._createItem(E,m,g,d,n,r,{},A,O,c,a);N.on("click",ai(Pg,null,m,a,v)).on("mouseover",ai(Cc,null,m,a,v)).on("mouseout",ai(Dc,null,m,a,v)),i.ssr&&N.eachChild(function(V){var Y=_e(V);Y.seriesIndex=E.seriesIndex,Y.dataIndex=g,Y.ssrType="legend"}),h&&N.eachChild(function(V){D.packEventData(V,n,E,g,m)}),f.set(m,!0)}},this);process.env.NODE_ENV!=="production"&&(f.get(m)||console.warn(m+" series not exists. Legend data should be same with series name or data name."))}},this),o&&this._createSelector(o,n,a,s,u)},e.prototype.packEventData=function(r,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};_e(r).eventData=s},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();bc(r,function(l){var f=l.type,c=new Xe({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Iy(c,{normal:h,emphasis:v},{defaultText:l.title}),Ds(c)})},e.prototype._createItem=function(r,n,i,a,o,s,u,l,f,c,h){var v=r.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=EI(f,a,u,l,v,p,h),x=new Uo,w=a.getModel("textStyle");if(J(r.getLegendIcon)&&(!_||_==="inherit"))x.add(r.getLegendIcon({itemWidth:d,itemHeight:g,icon:f,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var T=_==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;x.add(MI({itemWidth:d,itemHeight:g,icon:f,iconRotate:T,itemStyle:S.itemStyle,symbolKeepAspect:y}))}var C=s==="left"?d+5:-5,E=s,D=o.get("formatter"),M=n;H(D)&&D?M=D.replace("{name}",n??""):J(D)&&(M=D(n));var L=p?w.getTextColor():a.get("inactiveColor");x.add(new Xe({style:Sr(w,{text:M,x:C,y:g/2,fill:L,align:E,verticalAlign:"middle"},{inheritColor:L})}));var A=new Le({shape:x.getBoundingRect(),style:{fill:"transparent"}}),O=a.getModel("tooltip");return O.get("show")&&wu({el:A,componentModel:o,itemName:n,itemTooltipOption:O.option}),x.add(A),x.eachChild(function(I){I.silent=!0}),A.silent=!c,this.getContentGroup().add(x),Ds(x),x.__legendDataIndex=i,x},e.prototype.layoutInner=function(r,n,i,a,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();_i(r.get("orient"),u,r.get("itemGap"),i.width,i.height);var f=u.getBoundingRect(),c=[-f.x,-f.y];if(l.markRedraw(),u.markRedraw(),o){_i("horizontal",l,r.get("selectorItemGap",!0));var h=l.getBoundingRect(),v=[-h.x,-h.y],d=r.get("selectorButtonGap",!0),g=r.getOrient().index,p=g===0?"width":"height",m=g===0?"height":"width",y=g===0?"y":"x";s==="end"?v[g]+=f[p]+d:c[g]+=h[p]+d,v[1-g]+=f[m]/2-h[m]/2,l.x=v[0],l.y=v[1],u.x=c[0],u.y=c[1];var _={x:0,y:0};return _[p]=f[p]+d+h[p],_[m]=Math.max(f[m],h[m]),_[y]=Math.min(0,h[y]+v[1-g]),_}else return u.x=c[0],u.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(At);function EI(t,e,r,n,i,a,o){function s(p,m){p.lineWidth==="auto"&&(p.lineWidth=m.lineWidth>0?2:0),bc(p,function(y,_){p[_]==="inherit"&&(p[_]=m[_])})}var u=e.getModel("itemStyle"),l=u.getItemStyle(),f=t.lastIndexOf("empty",0)===0?"fill":"stroke",c=u.getShallow("decal");l.decal=!c||c==="inherit"?n.decal:Fs(c,o),l.fill==="inherit"&&(l.fill=n[i]),l.stroke==="inherit"&&(l.stroke=n[f]),l.opacity==="inherit"&&(l.opacity=(i==="fill"?n:r).opacity),s(l,n);var h=e.getModel("lineStyle"),v=h.getLineStyle();if(s(v,r),l.fill==="auto"&&(l.fill=n.fill),l.stroke==="auto"&&(l.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=e.get("inactiveBorderWidth"),g=l[f];l.lineWidth=d==="auto"?n.lineWidth>0&&g?2:0:l.lineWidth,l.fill=e.get("inactiveColor"),l.stroke=e.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:l,lineStyle:v}}function MI(t){var e=t.icon||"roundRect",r=Ou(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=G.color.neutral00,r.style.lineWidth=2),r}function Pg(t,e,r,n){Dc(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),Cc(t,e,r,n)}function Cc(t,e,r,n){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function Dc(t,e,r,n){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function fa(t,e,r){var n=t==="allSelect"||t==="inverseSelect",i={},a=[];r.eachComponent({mainType:"legend",query:e},function(s){n?s[t]():s[t](e.name),Ng(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){b(i,function(u,l){s[u?"select":"unSelect"](l)}),Ng(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function Ng(t,e){var r=e||{};return b(t.getData(),function(n){var i=n.get("name");if(!(i===`
|
|
45
|
-
`||i==="")){var a=t.isSelected(i);B(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function AI(t){t.registerAction("legendToggleSelect","legendselectchanged",Ie(fa,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Ie(fa,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Ie(fa,"inverseSelect")),t.registerAction("legendSelect","legendselected",Ie(fa,"select")),t.registerAction("legendUnSelect","legendunselected",Ie(fa,"unSelect"))}var LI=$c(OI);function OI(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}function LS(t){t.registerComponentModel(Tc),t.registerComponentView(AS),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,LI),t.registerSubTypeDefaulter("legend",function(){return"plain"}),AI(t)}var II=(function(t){z(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,i){var a=Ui(r);t.prototype.init.call(this,r,n,i),Rg(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),Rg(this,this.option,r)},e.type="legend.scroll",e.defaultOption=ky(Tc.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:G.color.accent50,pageIconInactiveColor:G.color.accent10,pageIconSize:15,pageTextStyle:{color:G.color.tertiary},animationDurationUpdate:800}),e})(Tc);function Rg(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,Fr(e,r,{type:"box",ignoreSize:!!i})}var kg=st,sf=["width","height"],uf=["x","y"],PI=(function(t){z(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new kg),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new kg)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,i,a,o,s,u){var l=this;t.prototype.renderInner.call(this,r,n,i,a,o,s,u);var f=this._controllerGroup,c=n.get("pageIconSize",!0),h=F(c)?c:[c,c];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new Xe({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(g,p){var m=g+"DataIndex",y=uh(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:Te(l._pageGo,l,m,n,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});y.name=g,f.add(y)}},e.prototype.layoutInner=function(r,n,i,a,o,s){var u=this.getSelectorGroup(),l=r.getOrient().index,f=sf[l],c=uf[l],h=sf[1-l],v=uf[1-l];o&&_i("horizontal",u,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),g=u.getBoundingRect(),p=[-g.x,-g.y],m=ae(i);o&&(m[f]=i[f]-g[f]-d);var y=this._layoutContentAndController(r,a,m,l,f,h,v,c);if(o){if(s==="end")p[l]+=y[f]+d;else{var _=g[f]+d;p[l]-=_,y[c]-=_}y[f]+=g[f]+d,p[1-l]+=y[v]+y[h]/2-g[h]/2,y[h]=Math.max(y[h],g[h]),y[v]=Math.min(y[v],g[v]+p[1-l]),u.x=p[0],u.y=p[1],u.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,u,l){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;_i(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),_i("horizontal",h,r.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=h.getBoundingRect(),g=this._showController=v[o]>i[o],p=[-v.x,-v.y];n||(p[a]=f[l]);var m=[0,0],y=[-d.x,-d.y],_=U(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var S=r.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-d[o]:m[a]+=d[o]+_}y[1-a]+=v[s]/2-d[s]/2,f.setPosition(p),c.setPosition(m),h.setPosition(y);var x={x:0,y:0};if(x[o]=g?i[o]:v[o],x[s]=Math.max(v[s],d[s]),x[u]=Math.min(0,d[u]+y[1-a]),c.__rectSize=i[o],g){var w={x:0,y:0};w[o]=Math.max(i[o]-d[o]-_,0),w[s]=x[s],c.setClipPath(new Le({shape:w})),c.__rectSize=w[o]}else h.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&Gi(f,{x:T.contentPosition[0],y:T.contentPosition[1]},g?r:null),this._updatePageInfoView(r,T),x},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;b(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,u=s!=null?s+1:0,l=n.pageCount;a&&o&&a.setStyle("text",H(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",l==null?"":l+""):o({current:u,total:l}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=sf[o],u=uf[o],l=this._findTargetItemIndex(n),f=i.children(),c=f[l],h=f.length,v=h?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var g=S(c);d.contentPosition[o]=-g.s;for(var p=l+1,m=g,y=g,_=null;p<=h;++p)_=S(f[p]),(!_&&y.e>m.s+a||_&&!x(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var p=l-1,m=g,y=g,_=null;p>=-1;--p)_=S(f[p]),(!_||!x(y,_.s))&&m.i<y.i&&(y=m,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=m.i),++d.pageCount,++d.pageIndex),m=_;return d;function S(w){if(w){var T=w.getBoundingRect(),C=T[u]+w[u];return{s:C,e:C+T[s],i:w.__legendDataIndex}}}function x(w,T){return w.e>=T&&w.s<=T+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var u=o.__legendDataIndex;a==null&&u!=null&&(a=s),u===r&&(n=s)}),n??a},e.type="legend.scroll",e})(AS);function NI(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function RI(t){zr(LS),t.registerComponentModel(II),t.registerComponentView(PI),NI(t)}function kI(t){zr(LS),zr(RI)}const BI=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function FI(t){function e(r){return function(...i){if(!t.value)throw new Error("ECharts is not initialized yet.");return Reflect.apply(t.value[r],t.value,i)}}return BI.reduce((r,n)=>(r[n]=e(n),r),{})}function VI(t,e,r){ie.watch([r,t,e],([n,i,a],o,s)=>{let u=null;if(n&&i&&a){const{offsetWidth:l,offsetHeight:f}=n,{throttle:c=100,onResize:h}=a===!0?{}:a;let v=!1;const d=()=>{i.resize(),h==null||h()},g=c?Au(d,c):d;u=new ResizeObserver(()=>{!v&&(v=!0,n.offsetWidth===l&&n.offsetHeight===f)||n.offsetWidth===0||n.offsetHeight===0||g()}),u.observe(n)}s(()=>{u&&(u.disconnect(),u=null)})})}const zI={autoresize:[Boolean,Object]},HI=Symbol();function GI(t,e,r){const n=ie.inject(HI,{}),i=ie.computed(()=>({...ie.toValue(n),...r==null?void 0:r.value}));ie.watchEffect(()=>{const a=t.value;a&&(e.value?a.showLoading(i.value):a.hideLoading())})}const UI={loading:Boolean,loadingOptions:Object};function OS(){return typeof window<"u"&&typeof document<"u"}const WI=/^on[^a-z]/,IS=t=>WI.test(t);function YI(t){const e={};for(const r in t)IS(r)||(e[r]=t[r]);return e}function XI(t){const e=Number(t);return Number.isInteger(e)&&e>=0&&e<Math.pow(2,32)-1&&String(e)===t}function ZI(t,e){const r=new Set(t),n=new Set(e);if(r.size!==n.size)return!1;for(const i of r)if(!n.has(i))return!1;return!0}function PS(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)}const $I="[vue-echarts]";function Ec(t){ie.warn(`${$I} ${t}`)}const NS={tooltip:["tooltip","formatter"],dataView:["toolbox","feature","dataView","optionToContent"]},qI=Object.keys(NS);function lf(t){return qI.some(e=>t===e||t.startsWith(e+"-"))}function KI(t,e){const r=OS()?document.createElement("div"):void 0,n=ie.shallowReactive({}),i=ie.shallowReactive({}),a=ie.shallowReactive({}),o=ie.shallowRef(!1),s=()=>o.value&&r?ie.h(ie.Teleport,{to:r},Object.entries(t).filter(([c])=>lf(c)).map(([c,h])=>{const v=c;return ie.h("div",{ref:d=>{d instanceof HTMLElement&&(n[v]=d)},style:{display:"contents"}},i[v]?h==null?void 0:h(a[v]):void 0)})):void 0;function u(c){return c!==null&&typeof c=="object"&&!Array.isArray(c)}function l(c){const h={...c},v=(d,g)=>{const p=d[g];if(Array.isArray(p))return d[g]=[...p],d[g];if(u(p))return d[g]={...p},d[g];if(p===void 0)return d[g]=XI(g)?[]:{},d[g]};return Object.keys(t).filter(d=>{const g=lf(d);return g||Ec(`Invalid slot name: ${d}`),g}).forEach(d=>{const[g,...p]=d.split("-"),m=NS[g];if(!m)return;const y=[...p,...m];if(y.length===0)return;let _=h;for(let S=0;S<y.length-1;S++)if(_=v(_,y[S]),!_)return;_[y[y.length-1]]=S=>(i[d]=!0,a[d]=S,n[d])}),h}let f=[];return ie.onUpdated(()=>{const c=Object.keys(t).filter(lf);ZI(c,f)||(f.forEach(h=>{c.includes(h)||(delete a[h],delete i[h],delete n[h])}),f=c,e())}),ie.onMounted(()=>{o.value=!0}),ie.onUnmounted(()=>{r==null||r.remove()}),{teleportedSlots:s,patchOption:l}}let Er=null;const Mc="x-vue-echarts";function QI(){if(Er!=null)return Er;const t=globalThis.customElements;if(!OS()||!(t!=null&&t.get))return Er=!1,Er;if(!t.get(Mc))try{class e extends HTMLElement{constructor(){super(...arguments);Jh(this,"__dispose",null)}disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}t.define(Mc,e)}catch{return Er=!1,Er}return Er=!0,Er}function jI(t){if(!PS(t))return;const e=t.id;if(typeof e=="string")return e;if(typeof e=="number"&&Number.isFinite(e))return String(e)}function Bg(t){const e=t,r=Array.isArray(e.options)?e.options.length:0,n=Array.isArray(e.media)?e.media.length:0,i=Object.create(null),a=[],o=[];for(const s of Object.keys(e)){if(s==="options"||s==="media")continue;const u=e[s];if(Array.isArray(u)){const l=u,f=new Set;let c=0;for(let h=0;h<l.length;h++){const v=jI(l[h]);v!==void 0?f.add(v):c++}i[s]={idsSorted:f.size>0?Array.from(f).sort():[],noIdCount:c}}else PS(u)?a.push(s):u!==void 0&&o.push(s)}return a.length>1&&a.sort(),o.length>1&&o.sort(),{optionsLength:r,mediaLength:n,arrays:i,objects:a,scalars:o}}function Fg(t,e){if(t.length===0)return[];if(e.length===0)return t.slice();const r=new Set(e),n=[];for(let i=0;i<t.length;i++){const a=t[i];r.has(a)||n.push(a)}return n}function JI(t,e){if(t.length===0)return!1;if(e.length===0)return!0;const r=new Set(e);for(let n=0;n<t.length;n++)if(!r.has(t[n]))return!0;return!1}function eP(t,e){const r=Bg(e);if(!t)return{option:e,signature:r,plan:{notMerge:!1}};if(r.optionsLength<t.optionsLength)return{option:e,signature:r,plan:{notMerge:!0}};if(r.mediaLength<t.mediaLength)return{option:e,signature:r,plan:{notMerge:!0}};if(Fg(t.scalars,r.scalars).length>0)return{option:e,signature:r,plan:{notMerge:!0}};const n=new Set,i=new Map,a=Fg(t.objects,r.objects);for(let l=0;l<a.length;l++)i.set(a[l],null);for(const l of Object.keys(t.arrays)){const f=t.arrays[l];if(!f)continue;const c=r.arrays[l];if(!c){(f.idsSorted.length>0||f.noIdCount>0)&&(i.set(l,[]),n.add(l));continue}if(JI(f.idsSorted,c.idsSorted)){n.add(l);continue}c.noIdCount<f.noIdCount&&n.add(l)}let o=e,s=r;if(i.size>0){const l={...e};i.forEach((f,c)=>{l[c]=f}),o=l,s=Bg(o)}const u=n.size>0?Array.from(n).sort():void 0;return{option:o,signature:s,plan:u?{notMerge:!1,replaceMerge:u}:{notMerge:!1}}}var Vg=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0;}
|
|
46
|
-
x-vue-echarts>:first-child,x-vue-echarts>:first-child>canvas{border-radius:inherit;}
|
|
47
|
-
`;if(typeof document<"u")if(Array.isArray(document.adoptedStyleSheets)&&"replaceSync"in CSSStyleSheet.prototype){const t=new CSSStyleSheet;t.replaceSync(Vg),document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}else{const t=document.createElement("style");t.textContent=Vg,document.head.appendChild(t)}const tP=QI(),rP=Symbol(),nP=Symbol(),iP=Symbol();var aP=ie.defineComponent({name:"Echarts",inheritAttrs:!1,props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...zI,...UI},emits:{},slots:Object,setup(t,{attrs:e,expose:r,slots:n}){const i=ie.shallowRef(),a=ie.shallowRef(),o=ie.inject(rP,null),s=ie.inject(nP,null),u=ie.inject(iP,null),{autoresize:l,manualUpdate:f,loading:c,loadingOptions:h}=ie.toRefs(t),v=ie.computed(()=>t.theme||ie.toValue(o)),d=ie.computed(()=>t.initOptions||ie.toValue(s)||void 0),g=ie.computed(()=>t.updateOptions||ie.toValue(u)),p=ie.computed(()=>YI(e)),m={},y=new Map,{teleportedSlots:_,patchOption:S}=KI(n,()=>{!f.value&&t.option&&a.value&&T(a.value,t.option)});let x;function w(L){const A={},O=((L==null?void 0:L.replaceMerge)??[]).filter(I=>I!=null);return O.length>0&&(A.replaceMerge=[...new Set(O)]),(L==null?void 0:L.notMerge)!==void 0&&(A.notMerge=L.notMerge),A}function T(L,A,O,I=!1){const N=S(A);if(I){L.setOption(N,O??{}),x=void 0;return}if(g.value){const K=O??g.value;L.setOption(N,K),x=void 0;return}const V=eP(x,N),Y=w(V.plan);L.setOption(V.option,Y),x=V.signature}Object.keys(e).filter(L=>IS(L)).forEach(L=>{if(L.indexOf("Native:")===2){const N=`on${L.charAt(9).toUpperCase()}${L.slice(10)}`;m[N]=e[L];return}let A=L.charAt(2).toLowerCase()+L.slice(3),O;A.indexOf("zr:")===0&&(O=!0,A=A.substring(3));let I;A.substring(A.length-4)==="Once"&&(I=!0,A=A.substring(0,A.length-4)),y.set({event:A,zr:O,once:I},e[L])});function C(){if(!i.value)return;const L=a.value=oM(i.value,v.value,d.value);t.group&&(L.group=t.group),y.forEach((I,{zr:N,once:V,event:Y})=>{if(!I)return;const K=N?L.getZr():L;if(V){const Q=I;let $=!1;I=(...ee)=>{$||($=!0,Q(...ee),K.off(Y,I))}}K.on(Y,I)});function A(){L&&!L.isDisposed()&&L.resize()}function O(){const{option:I}=t;if(f.value){I&&T(L,I,void 0,!0);return}I&&T(L,I)}l.value?ie.nextTick(()=>{A(),O()}):O()}const E=(L,A,O)=>{if(!t.manualUpdate){Ec("`setOption` is only available when `manual-update` is `true`.");return}const I=typeof A=="boolean"?{notMerge:A,lazyUpdate:O}:A;a.value&&T(a.value,L,I??void 0,!0)};function D(){a.value&&(a.value.dispose(),a.value=void 0),x=void 0}ie.watch(()=>t.option,L=>{if(!L){x=void 0;return}if(f.value){Ec("`option` prop changes are ignored when `manual-update` is `true`.");return}a.value&&T(a.value,L)},{deep:!0}),ie.watch([f,d],()=>{D(),C()},{deep:!0}),ie.watch(v,L=>{var A;(A=a.value)==null||A.setTheme(L||{})},{deep:!0}),ie.watchEffect(()=>{t.group&&a.value&&(a.value.group=t.group)});const M=FI(a);return GI(a,c,h),VI(a,l,i),ie.onMounted(()=>{C()}),ie.onBeforeUnmount(()=>{tP&&i.value?i.value.__dispose=D:D()}),r({setOption:E,root:i,chart:a,...M}),(()=>ie.h(Mc,{...p.value,...m,ref:i,class:["echarts",p.value.class]},_()))}}),oP=aP;exports.AXIS_EXTENT_INFO_BUILD_FROM_COORD_SYS_UPDATE=I0;exports.AXIS_EXTENT_INFO_BUILD_FROM_DATA_ZOOM=P0;exports.Axis=W0;exports.AxisBuilder=vr;exports.AxisModelCommonMixin=C0;exports.BoundingRect=j;exports.ChartView=Rr;exports.Circle=qa;exports.ComponentModel=fe;exports.ComponentView=At;exports.CompoundPath=ly;exports.CoordinateSystemManager=Eu;exports.DEFAULT_PRECISION_FOR_ROUNDING_ERROR=Rx;exports.DISPLAY_STATES=Vf;exports.DataDiffer=o0;exports.Displayable=zi;exports.Eventful=Vt;exports.Group=st;exports.HOVER_LAYER_FOR_INCREMENTAL=sh;exports.IntervalScale=hr;exports.Line=_r;exports.LinearGradient=cy;exports.MULTIPLE_REFERRING=ow;exports.Model=be;exports.Path=we;exports.PathProxy=In;exports.Point=me;exports.Polygon=mu;exports.Polyline=yu;exports.Rect=Le;exports.Ring=gu;exports.SERIES_TYPE_BAR=YL;exports.SINGLE_REFERRING=ct;exports.SPECIAL_STATES=yr;exports.Sector=Ka;exports.SeriesData=c0;exports.SeriesModel=Vr;exports.TRANSFORMABLE_PROPS=Za;exports.Transformable=kn;exports.ZRImage=Gr;exports.ZRText=Xe;exports.__extends=z;exports.animateLabelValue=Rb;exports.applyTransform=ht;exports.applyTransform$1=xu;exports.asc=uu;exports.assert=P;exports.associateSeriesWithAxis=hc;exports.axisDefault=hS;exports.bind=Te;exports.boundingRectApplyTransform=N1;exports.boundingRectContain=R1;exports.boundingRectCopy=_f;exports.boundingRectCreate=I1;exports.box=_i;exports.calcBandWidth=Ur;exports.calculateTextPosition=zc;exports.clear=Is;exports.clipRectByRect=Dy;exports.clone=ae;exports.cloneValue=Ta;exports.compressBatches=iw;exports.computeBarLayoutForCustomSeries=KL;exports.computeLabelGeometry=Z0;exports.convertFromEC4CompatibleStyle=mL;exports.convertToColorString=Mi;exports.convertToEC4StyleForCustomSerise=yL;exports.copy=o1;exports.create=Nt;exports.createBoxLayoutReference=eo;exports.createClipPath=pL;exports.createCrossSeriesLayoutHandler=JL;exports.createFloat32Array=as;exports.createGridClipPath=Q0;exports.createHashMap=Z;exports.createLegacyDataSelectAction=sE;exports.createOrUpdate=Oh;exports.createOrUpdatePatternFromDecal=Fs;exports.createPolarClipPath=j0;exports.createProgressiveLayout=eO;exports.createRenderPlanner=Lh;exports.createSeriesData=NM;exports.createSimpleOverallStageHandler=gw;exports.createSymbol=Ou;exports.createTextConfig=$f;exports.createTextStyle=Sr;exports.createTooltipMarkup=Li;exports.cubicAt=Ye;exports.cubicRootAt=Fc;exports.curry=Ie;exports.defaultEmphasis=Pf;exports.defaults=ge;exports.deprecateLog=er;exports.dist=Zg;exports.each=b;exports.enableHoverEmphasis=Ds;exports.ensureExtentAscSimply=Lm;exports.ensureValidSplitNumber=Ru;exports.enterEmphasis=bs;exports.eqNaN=An;exports.extend=k;exports.fastLerp=nx;exports.filter=Fe;exports.find=Ug;exports.findEventDispatcher=di;exports.getAcceptableTickPrecision=gm;exports.getAnimationConfig=dy;exports.getCachePerECPrepare=k_;exports.getCircleLayout=gC;exports.getCustomSeries=hE;exports.getDefaultInterpolatedLabel=hL;exports.getDefaultLabel=cL;exports.getECData=_e;exports.getFont=Py;exports.getIncrementalId=pw;exports.getItemVisualFromData=P_;exports.getLabelStatesModels=Ob;exports.getLayoutParams=Ui;exports.getLayoutRect=tr;exports.getPercentSeats=Gx;exports.getShapeClass=yy;exports.getTickValueOutermost=to;exports.getTransform=Ty;exports.getUID=ja;exports.getVisualFromData=N_;exports.graphic=Ly;exports.hasOwn=B;exports.indexOf=he;exports.inheritDefaultOption=ky;exports.initExtentForUnion=Pt;exports.initProps=Qa;exports.install=fL;exports.install$1=CI;exports.install$2=wI;exports.install$3=kI;exports.install$4=rI;exports.interpolateRawValues=Dm;exports.isArray=F;exports.isArrayLike=Je;exports.isDimensionStacked=Vh;exports.isEC4CompatibleStyle=gL;exports.isFunction=J;exports.isMiddleOrRightButtonOnMouseUpDown=E1;exports.isNumber=Ce;exports.isObject=W;exports.isOrdinalScale=pt;exports.isString=H;exports.isTimeScale=Nu;exports.keys=Se;exports.labelInner=bu;exports.leaveEmphasis=Cs;exports.lerp=v1;exports.lerp$1=ix;exports.linearMap=Of;exports.makeCallOnlyOnce=Xc;exports.makeInner=ye;exports.makePath=Su;exports.makeSeriesEncodeForNameBased=bC;exports.map=q;exports.mathAbs=Ae;exports.mathCeil=ki;exports.mathFloor=Br;exports.mathMax=ue;exports.mathMin=ze;exports.merge=de;exports.mergePath=xy;exports.mixin=Ft;exports.modifyAlpha=ax;exports.modifyHSL=ds;exports.noop=Ve;exports.normalizeArcAngles=Vm;exports.normalizeCssArray=Ja;exports.normalizeSymbolOffset=B_;exports.normalizeSymbolSize=DE;exports.normalizeToArray=He;exports.parse=Mt;exports.parsePercent=Ee;exports.parsePercent$1=On;exports.platformApi=ot;exports.positionElement=mC;exports.preparePipelineContext=Om;exports.prepareSeriesDataSchema=h0;exports.queryDataIndex=Fi;exports.queryReferringComponents=Vi;exports.reduce=pr;exports.reformIntervals=Wx;exports.registerAction=Vn;exports.registerBarGridAxisHandlers=rO;exports.registerLayOutOnCoordSysUsage=lC;exports.removeElement=oh;exports.removeElementWithFadeOut=py;exports.retrieve=Ln;exports.retrieve2=U;exports.retrieve3=fr;exports.retrieveVisualColorForTooltipMarker=T_;exports.retrieveZInfo=hh;exports.round=se;exports.saveOldStyle=mb;exports.scaleCalcAlign=vS;exports.scaleRawExtentInfoCreate=k0;exports.setAsHighDownDispatcher=rh;exports.setCommonECData=Wm;exports.setDefaultStateProxy=jm;exports.setItemVisualFromData=oE;exports.setLabelStyle=Iy;exports.setLabelValueAnimation=Nb;exports.setStatesFlag=xT;exports.setStatesStylesFromModel=kT;exports.shiftLayoutOnXY=rL;exports.sliderMove=AO;exports.src_default=oP;exports.stop=Rc;exports.stringify=Rn;exports.symbolBuildProxies=Rs;exports.throttle=Au;exports.throwError=Qe;exports.toggleHoverEmphasis=PT;exports.tokens=G;exports.transformDirection=by;exports.transformableCreate=Tx;exports.transformableGetLocalTransform=fm;exports.traverseElements=lh;exports.unionExtentFromNumber=Em;exports.updateProps=Gi;exports.use=zr;exports.warn=Ke;exports.warnDeprecated=_L;
|