import{e as fg,O as wi,i as bi,t as hg,d as Hr,b as vg,w as Ti,G as Ll,o as cg,s as dg,h as Al,I as pg,n as gg}from"./vue-bf422dc1.js";/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var ks=function(e,t){return ks=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])},ks(e,t)};function W(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ks(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Pu=12,yg="sans-serif",Or=Pu+"px "+yg,_g=20,mg=100,Sg="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function wg(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-_g)/mg;t[n]=i}return t}var bg=wg(Sg),ci={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=ci.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||Or),e.measureText(r);r=r||"",n=n||Or;var a=/(\d+)px/.exec(n),o=a&&+a[1]||Pu,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=bg[r[u]];s+=l==null?o:l*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},Lv=je(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),Av=je(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),di=Object.prototype.toString,qa=Array.prototype,Tg=qa.forEach,Mg=qa.filter,Eu=qa.slice,Cg=qa.map,Pl=(function(){}).constructor,Mi=Pl?Pl.prototype:null,Ru="__proto__",Dg=2311;function Pv(){return Dg++}function Ev(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function J(e){if(e==null||typeof e!="object")return e;var t=e,r=di.call(e);if(r==="[object Array]"){if(!Wn(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=J(e[n])}}else if(Av[r]){if(!Wn(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!Lv[r]&&!Wn(e)&&!Bs(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==Ru&&(t[o]=J(e[o]))}return t}function ft(e,t,r){if(!z(t)||!z(e))return r?J(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==Ru){var i=e[n],a=t[n];z(a)&&z(i)&&!B(a)&&!B(i)&&!Bs(a)&&!Bs(i)&&!El(a)&&!El(i)&&!Wn(a)&&!Wn(i)?ft(i,a,r):(r||!(n in e))&&(e[n]=J(t[n]))}return e}function OM(e,t){for(var r=e[0],n=1,i=e.length;n<i;n++)r=ft(r,e[n],t);return r}function O(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==Ru&&(e[r]=t[r]);return e}function ht(e,t,r){for(var n=it(t),i=0;i<n.length;i++){var a=n[i];(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}function at(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function xg(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function Fe(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else ht(e,t,r)}function Ft(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function D(e,t,r){if(e&&t)if(e.forEach&&e.forEach===Tg)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function G(e,t,r){if(!e)return[];if(!t)return Ou(e);if(e.map&&e.map===Cg)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function je(e,t,r,n){if(e&&t){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function yt(e,t,r){if(!e)return[];if(!t)return Ou(e);if(e.filter&&e.filter===Mg)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function kM(e,t,r){if(e&&t){for(var n=0,i=e.length;n<i;n++)if(t.call(r,e[n],n,e))return e[n]}}function it(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function Lg(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(Eu.call(arguments)))}}var Ot=Mi&&Z(Mi.bind)?Mi.call.bind(Mi.bind):Lg;function Za(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(Eu.call(arguments)))}}function B(e){return Array.isArray?Array.isArray(e):di.call(e)==="[object Array]"}function Z(e){return typeof e=="function"}function V(e){return typeof e=="string"}function Fs(e){return di.call(e)==="[object String]"}function ut(e){return typeof e=="number"}function z(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function El(e){return!!Lv[di.call(e)]}function Wt(e){return!!Av[di.call(e)]}function Bs(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Iu(e){return e.colorStops!=null}function FM(e){return e.image!=null}function ba(e){return e!==e}function BM(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function q(e,t){return e??t}function sa(e,t,r){return e??t??r}function Ou(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Eu.apply(e,t)}function Rv(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function we(e,t){if(!e)throw new Error(t)}function Ae(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Iv="__ec_primitive__";function Ns(e){e[Iv]=!0}function Wn(e){return e[Iv]}var Ag=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return it(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),Ov=typeof Map=="function";function Pg(){return Ov?new Map:new Ag}var Eg=function(){function e(t){var r=B(t);this.data=Pg();var n=this;t instanceof e?t.each(i):t&&D(t,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,i){t.call(r,n,i)})},e.prototype.keys=function(){var t=this.data.keys();return Ov?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function $(e){return new Eg(e)}function Rg(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function Ka(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&O(r,t),r}function NM(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function fn(e,t){return e.hasOwnProperty(t)}function Qt(){}var Ig=180/Math.PI,Og=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),kg=function(){function e(){this.browser=new Og,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 e}(),Mr=new kg;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Mr.wxa=!0,Mr.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Mr.worker=!0:typeof navigator>"u"?(Mr.node=!0,Mr.svgSupported=!0):Fg(navigator.userAgent,Mr);function Fg(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);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),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const nt=Mr;var Bg=".",nr="___EC__COMPONENT__CONTAINER___",kv="___EC__EXTENDED_CLASS___";function _e(e){var t={main:"",sub:""};if(e){var r=e.split(Bg);t.main=r[0]||"",t.sub=r[1]||""}return t}function Ng(e){we(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function zg(e){return!!(e&&e[kv])}function ku(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return Hg(n)?i=function(a){W(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},xg(i,this)),O(i.prototype,r),i[kv]=!0,i.extend=this.extend,i.superCall=Wg,i.superApply=Ug,i.superClass=n,i}}function Hg(e){return Z(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Fv(e,t){e.extend=t.extend}var Gg=Math.round(Math.random()*10);function Vg(e){var t=["__\0is_clz",Gg++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function Wg(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function Ug(e,t,r){return this.superClass.prototype[t].apply(e,r)}function Qa(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){Ng(i),n.prototype.type=i;var a=_e(i);if(!a.sub)t[a.main]=n;else if(a.sub!==nr){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[nr]&&(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},e.getClassesByMainType=function(n){var i=_e(n),a=[],o=t[i.main];return o&&o[nr]?D(o,function(s,u){u!==nr&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=_e(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return D(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=_e(n),a=t[i.main];return a&&a[nr]};function r(n){var i=t[n.main];return(!i||!i[nr])&&(i=t[n.main]={},i[nr]=!0),i}}function ei(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<e.length;s++){var u=e[s][1];if(!(i&&at(i,u)>=0||a&&at(a,u)<0)){var l=n.getShallow(u,t);l!=null&&(o[e[s][0]]=l)}}return o}}var Yg=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],$g=ei(Yg),Xg=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return $g(this,t,r)},e}(),Bv=function(){function e(t){this.value=t}return e}(),qg=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new Bv(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Zg=function(){function e(t){this._list=new qg,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete i[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=r:s=new Bv(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const pi=Zg;var zs=new pi(50);function Kg(e){if(typeof e=="string"){var t=zs.get(e);return t&&t.image}else return e}function Nv(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=zs.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!Ja(t)&&a.pending.push(o)):(t=ci.loadImage(e,Rl,Rl),t.__zrImageSrc=e,zs.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function Rl(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function Ja(e){return e&&e.width&&e.height}function Ta(){return[1,0,0,1,0,0]}function Fu(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Qg(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Un(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],u=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=u,e}function Il(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Jg(e,t,r){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],u=t[5],l=Math.sin(r),f=Math.cos(r);return e[0]=n*f+o*l,e[1]=-n*l+o*f,e[2]=i*f+s*l,e[3]=-i*l+f*s,e[4]=f*a+l*u,e[5]=f*u-l*a,e}function jg(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function ja(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],u=r*o-a*n;return u?(u=1/u,e[0]=o*u,e[1]=-a*u,e[2]=-n*u,e[3]=r*u,e[4]=(n*s-o*i)*u,e[5]=(a*i-r*s)*u,e):null}var t0=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}();const N=t0;var Ci=Math.min,Di=Math.max,ir=new N,ar=new N,or=new N,sr=new N,gn=new N,yn=new N,e0=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=Ci(t.x,this.x),n=Ci(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Di(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Di(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=Ta();return Il(a,a,[-r.x,-r.y]),jg(a,a,[n,i]),Il(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,u=t.x,l=t.x+t.width,f=t.y,h=t.y+t.height,c=!(a<u||l<i||s<f||h<o);if(r){var v=1/0,d=0,y=Math.abs(a-u),p=Math.abs(l-i),g=Math.abs(s-f),_=Math.abs(h-o),m=Math.min(y,p),S=Math.min(g,_);a<u||l<i?m>d&&(d=m,y<p?N.set(yn,-y,0):N.set(yn,p,0)):m<v&&(v=m,y<p?N.set(gn,y,0):N.set(gn,-p,0)),s<f||h<o?S>d&&(d=S,g<_?N.set(yn,0,-g):N.set(yn,0,_)):m<v&&(v=m,g<_?N.set(gn,0,g):N.set(gn,0,-_))}return r&&N.copy(r,c?gn:yn),c},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,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];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}ir.x=or.x=r.x,ir.y=sr.y=r.y,ar.x=sr.x=r.x+r.width,ar.y=or.y=r.y+r.height,ir.transform(n),sr.transform(n),ar.transform(n),or.transform(n),t.x=Ci(ir.x,ar.x,or.x,sr.x),t.y=Ci(ir.y,ar.y,or.y,sr.y);var u=Di(ir.x,ar.x,or.x,sr.x),l=Di(ir.y,ar.y,or.y,sr.y);t.width=u-t.x,t.height=l-t.y},e}();const j=e0;var Ol={};function Gt(e,t){t=t||Or;var r=Ol[t];r||(r=Ol[t]=new pi(500));var n=r.get(e);return n==null&&(n=ci.measureText(e,t).width,r.put(e,n)),n}function kl(e,t,r,n){var i=Gt(e,t),a=Bu(t),o=Bn(0,i,r),s=tn(0,a,n),u=new j(o,s,i,a);return u}function zv(e,t,r,n){var i=((e||"")+"").split(`
`),a=i.length;if(a===1)return kl(i[0],t,r,n);for(var o=new j(0,0,0,0),s=0;s<i.length;s++){var u=kl(i[s],t,r,n);s===0?o.copy(u):o.union(u)}return o}function Bn(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function tn(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function Bu(e){return Gt("国",e)}function kr(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Hv(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,u=r.x,l=r.y,f="left",h="top";if(n instanceof Array)u+=kr(n[0],r.width),l+=kr(n[1],r.height),f=null,h=null;else switch(n){case"left":u-=i,l+=s,f="right",h="middle";break;case"right":u+=i+o,l+=s,h="middle";break;case"top":u+=o/2,l-=i,f="center",h="bottom";break;case"bottom":u+=o/2,l+=a+i,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=i,l+=s,h="middle";break;case"insideRight":u+=o-i,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=i,f="center";break;case"insideBottom":u+=o/2,l+=a-i,f="center",h="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,h="bottom";break;case"insideBottomRight":u+=o-i,l+=a-i,f="right",h="bottom";break}return e=e||{},e.x=u,e.y=l,e.align=f,e.verticalAlign=h,e}var To=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function r0(e,t,r,n,i){if(!t)return"";var a=(e+"").split(`
`);i=Gv(t,r,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=Vv(a[o],i);return a.join(`
`)}function Gv(e,t,r,n){n=n||{};var i=O({},n);i.font=t,r=q(r,"..."),i.maxIterations=q(n.maxIterations,2);var a=i.minChar=q(n.minChar,0);i.cnCharWidth=Gt("国",t);var o=i.ascCharWidth=Gt("a",t);i.placeholder=q(n.placeholder,"");for(var s=e=Math.max(0,e-1),u=0;u<a&&s>=o;u++)s-=o;var l=Gt(r,t);return l>s&&(r="",l=0),s=e-l,i.ellipsis=r,i.ellipsisWidth=l,i.contentWidth=s,i.containerWidth=e,i}function Vv(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Gt(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?n0(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Gt(e,n)}return e===""&&(e=t.placeholder),e}function n0(e,t,r,n){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?r:n}return a}function i0(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,a=r==="truncate",o=Bu(i),s=q(t.lineHeight,o),u=!!t.backgroundColor,l=t.lineOverflow==="truncate",f=t.width,h;f!=null&&(r==="break"||r==="breakAll")?h=e?Wv(e,t.font,f,r==="breakAll",0).lines:[]:h=e?e.split(`
`):[];var c=h.length*s,v=q(t.height,c);if(c>v&&l){var d=Math.floor(v/s);h=h.slice(0,d)}if(e&&a&&f!=null)for(var y=Gv(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;p<h.length;p++)h[p]=Vv(h[p],y);for(var g=v,_=0,p=0;p<h.length;p++)_=Math.max(Gt(h[p],i),_);f==null&&(f=_);var m=_;return n&&(g+=n[0]+n[2],m+=n[1]+n[3],f+=n[1]+n[3]),u&&(m=f),{lines:h,height:v,outerWidth:m,outerHeight:g,lineHeight:s,calculatedLineHeight:o,contentWidth:_,contentHeight:c,width:f}}var a0=function(){function e(){}return e}(),Fl=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),o0=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function s0(e,t){var r=new o0;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=To.lastIndex=0,u;(u=To.exec(e))!=null;){var l=u.index;l>s&&Mo(r,e.substring(s,l),t,o),Mo(r,u[2],t,o,u[1]),s=To.lastIndex}s<e.length&&Mo(r,e.substring(s,e.length),t,o);var f=[],h=0,c=0,v=t.padding,d=a==="truncate",y=t.lineOverflow==="truncate";function p(F,k,U){F.width=k,F.lineHeight=U,h+=U,c=Math.max(c,k)}t:for(var g=0;g<r.lines.length;g++){for(var _=r.lines[g],m=0,S=0,b=0;b<_.tokens.length;b++){var w=_.tokens[b],x=w.styleName&&t.rich[w.styleName]||{},L=w.textPadding=x.padding,T=L?L[1]+L[3]:0,C=w.font=x.font||t.font;w.contentHeight=Bu(C);var M=q(x.height,w.contentHeight);if(w.innerHeight=M,L&&(M+=L[0]+L[2]),w.height=M,w.lineHeight=sa(x.lineHeight,t.lineHeight,M),w.align=x&&x.align||t.align,w.verticalAlign=x&&x.verticalAlign||"middle",y&&i!=null&&h+w.lineHeight>i){b>0?(_.tokens=_.tokens.slice(0,b),p(_,S,m),r.lines=r.lines.slice(0,g+1)):r.lines=r.lines.slice(0,g);break t}var A=x.width,P=A==null||A==="auto";if(typeof A=="string"&&A.charAt(A.length-1)==="%")w.percentWidth=A,f.push(w),w.contentWidth=Gt(w.text,C);else{if(P){var E=x.backgroundColor,I=E&&E.image;I&&(I=Kg(I),Ja(I)&&(w.width=Math.max(w.width,I.width*M/I.height)))}var R=d&&n!=null?n-S:null;R!=null&&R<w.width?!P||R<T?(w.text="",w.width=w.contentWidth=0):(w.text=r0(w.text,R-T,C,t.ellipsis,{minChar:t.truncateMinChar}),w.width=w.contentWidth=Gt(w.text,C)):w.contentWidth=Gt(w.text,C)}w.width+=T,S+=w.width,x&&(m=Math.max(m,w.lineHeight))}p(_,S,m)}r.outerWidth=r.width=q(n,c),r.outerHeight=r.height=q(i,h),r.contentHeight=h,r.contentWidth=c,v&&(r.outerWidth+=v[1]+v[3],r.outerHeight+=v[0]+v[2]);for(var g=0;g<f.length;g++){var w=f[g],Y=w.percentWidth;w.width=parseInt(Y,10)/100*r.width}return r}function Mo(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,u=o.font||r.font,l=!1,f,h;if(n){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=kr(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
`),l=!0),n.accumWidth=d}else{var y=Wv(t,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=y.accumWidth+v,h=y.linesWidths,f=y.lines}}else f=t.split(`
`);for(var p=0;p<f.length;p++){var g=f[p],_=new a0;if(_.styleName=i,_.text=g,_.isLineHolder=!g&&!a,typeof o.width=="number"?_.width=o.width:_.width=h?h[p]:Gt(g,u),!p&&!l){var m=(s[s.length-1]||(s[0]=new Fl)).tokens,S=m.length;S===1&&m[0].isLineHolder?m[0]=_:(g||!S||a)&&m.push(_)}else s.push(new Fl([_]))}}function u0(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var l0=je(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function f0(e){return u0(e)?!!l0[e]:!0}function Wv(e,t,r,n,i){for(var a=[],o=[],s="",u="",l=0,f=0,h=0;h<e.length;h++){var c=e.charAt(h);if(c===`
`){u&&(s+=u,f+=l),a.push(s),o.push(f),s="",u="",l=0,f=0;continue}var v=Gt(c,t),d=n?!1:!f0(c);if(a.length?f+v>r:i+f+v>r){f?(s||u)&&(d?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=c,l+=v,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=c,f=v)):d?(a.push(u),o.push(l),u=c,l=v):(a.push(c),o.push(v));continue}f+=v,d?(u+=c,l+=v):(u&&(s+=u,u="",l=0),s+=c)}return!a.length&&!s&&(s=e,u="",l=0),u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function hn(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function zM(e,t){return e[0]=t[0],e[1]=t[1],e}function h0(e){return[e[0],e[1]]}function Bl(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function v0(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function c0(e){return Math.sqrt(d0(e))}function d0(e){return e[0]*e[0]+e[1]*e[1]}function Co(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function p0(e,t){var r=c0(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Hs(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Gs=Hs;function g0(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var an=g0;function Do(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function Ke(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function Cr(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Dr(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var Nl=Fu,zl=5e-5;function ur(e){return e>zl||e<-zl}var lr=[],Gr=[],xo=Ta(),Lo=Math.abs,y0=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return ur(this.rotation)||ur(this.x)||ur(this.y)||ur(this.scaleX-1)||ur(this.scaleY-1)||ur(this.skewX)||ur(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(Nl(n),this.invTransform=null);return}n=n||Ta(),r?this.getLocalTransform(n):Nl(n),t&&(r?Un(n,t,n):Qg(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(lr);var n=lr[0]<0?-1:1,i=lr[1]<0?-1:1,a=((lr[0]-n)*r+n)/lr[0]||0,o=((lr[1]-i)*r+i)/lr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Ta(),ja(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(Un(Gr,t.invTransform,r),r=Gr);var n=this.originX,i=this.originY;(n||i)&&(xo[4]=n,xo[5]=i,Un(Gr,r,xo),Gr[4]-=n,Gr[5]-=i,r=Gr),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&Ke(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&Ke(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Lo(t[0]-1)>1e-10&&Lo(t[3]-1)>1e-10?Math.sqrt(Lo(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){_0(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||u){var d=n+s,y=i+u;r[4]=-d*a-c*y*o,r[5]=-y*o-v*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=v*a,r[2]=c*o,l&&Jg(r,r,l),r[4]+=n+f,r[5]+=i+h,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),ri=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function _0(e,t){for(var r=0;r<ri.length;r++){var n=ri[r];e[n]=t[n]}}const to=y0;var ua={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-ua.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?ua.bounceIn(e*2)*.5:ua.bounceOut(e*2-1)*.5+.5}};const Uv=ua;var xi=Math.pow,Qe=Math.sqrt,Ma=1e-8,Yv=1e-4,Hl=Qe(3),Li=1/3,pe=hn(),Zt=hn(),on=hn();function qe(e){return e>-Ma&&e<Ma}function $v(e){return e>Ma||e<-Ma}function gt(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function Gl(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function Xv(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),u=3*(t-e),l=e-i,f=s*s-3*o*u,h=s*u-9*o*l,c=u*u-3*s*l,v=0;if(qe(f)&&qe(h))if(qe(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[v++]=d)}else{var y=h*h-4*f*c;if(qe(y)){var p=h/f,d=-s/o+p,g=-p/2;d>=0&&d<=1&&(a[v++]=d),g>=0&&g<=1&&(a[v++]=g)}else if(y>0){var _=Qe(y),m=f*s+1.5*o*(-h+_),S=f*s+1.5*o*(-h-_);m<0?m=-xi(-m,Li):m=xi(m,Li),S<0?S=-xi(-S,Li):S=xi(S,Li);var d=(-s-(m+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var b=(2*f*s-3*o*h)/(2*Qe(f*f*f)),w=Math.acos(b)/3,x=Qe(f),L=Math.cos(w),d=(-s-2*x*L)/(3*o),g=(-s+x*(L+Hl*Math.sin(w)))/(3*o),T=(-s+x*(L-Hl*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[v++]=d),g>=0&&g<=1&&(a[v++]=g),T>=0&&T<=1&&(a[v++]=T)}}return v}function qv(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,u=0;if(qe(o)){if($v(a)){var l=-s/a;l>=0&&l<=1&&(i[u++]=l)}}else{var f=a*a-4*o*s;if(qe(f))i[0]=-a/(2*o);else if(f>0){var h=Qe(f),l=(-a+h)/(2*o),c=(-a-h)/(2*o);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function Ca(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,u=(n-r)*i+r,l=(s-o)*i+o,f=(u-s)*i+s,h=(f-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=n}function Zv(e,t,r,n,i,a,o,s,u,l,f){var h,c=.005,v=1/0,d,y,p,g;pe[0]=u,pe[1]=l;for(var _=0;_<1;_+=.05)Zt[0]=gt(e,r,i,o,_),Zt[1]=gt(t,n,a,s,_),p=an(pe,Zt),p<v&&(h=_,v=p);v=1/0;for(var m=0;m<32&&!(c<Yv);m++)d=h-c,y=h+c,Zt[0]=gt(e,r,i,o,d),Zt[1]=gt(t,n,a,s,d),p=an(Zt,pe),d>=0&&p<v?(h=d,v=p):(on[0]=gt(e,r,i,o,y),on[1]=gt(t,n,a,s,y),g=an(on,pe),y<=1&&g<v?(h=y,v=g):c*=.5);return f&&(f[0]=gt(e,r,i,o,h),f[1]=gt(t,n,a,s,h)),Qe(v)}function m0(e,t,r,n,i,a,o,s,u){for(var l=e,f=t,h=0,c=1/u,v=1;v<=u;v++){var d=v*c,y=gt(e,r,i,o,d),p=gt(t,n,a,s,d),g=y-l,_=p-f;h+=Math.sqrt(g*g+_*_),l=y,f=p}return h}function wt(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function Vl(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function S0(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,u=0;if(qe(a)){if($v(o)){var l=-s/o;l>=0&&l<=1&&(i[u++]=l)}}else{var f=o*o-4*a*s;if(qe(f)){var l=-o/(2*a);l>=0&&l<=1&&(i[u++]=l)}else if(f>0){var h=Qe(f),l=(-o+h)/(2*a),c=(-o-h)/(2*a);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function Kv(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Da(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function Qv(e,t,r,n,i,a,o,s,u){var l,f=.005,h=1/0;pe[0]=o,pe[1]=s;for(var c=0;c<1;c+=.05){Zt[0]=wt(e,r,i,c),Zt[1]=wt(t,n,a,c);var v=an(pe,Zt);v<h&&(l=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<Yv);d++){var y=l-f,p=l+f;Zt[0]=wt(e,r,i,y),Zt[1]=wt(t,n,a,y);var v=an(Zt,pe);if(y>=0&&v<h)l=y,h=v;else{on[0]=wt(e,r,i,p),on[1]=wt(t,n,a,p);var g=an(on,pe);p<=1&&g<h?(l=p,h=g):f*=.5}}return u&&(u[0]=wt(e,r,i,l),u[1]=wt(t,n,a,l)),Qe(h)}function w0(e,t,r,n,i,a,o){for(var s=e,u=t,l=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=wt(e,r,i,c),d=wt(t,n,a,c),y=v-s,p=d-u;l+=Math.sqrt(y*y+p*p),s=v,u=d}return l}var b0=/cubic-bezier\(([0-9,\.e ]+)\)/;function Jv(e){var t=e&&b0.exec(e);if(t){var r=t[1].split(","),n=+Ae(r[0]),i=+Ae(r[1]),a=+Ae(r[2]),o=+Ae(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:Xv(0,n,a,1,u,s)&&gt(0,i,o,1,s[0])}}}var T0=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Qt,this.ondestroy=t.ondestroy||Qt,this.onrestart=t.onrestart||Qt,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=i%n;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Z(t)?t:Uv[t]||Jv(t)},e}();const M0=T0;var Wl={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 se(e){return e=Math.round(e),e<0?0:e>255?255:e}function C0(e){return e=Math.round(e),e<0?0:e>360?360:e}function ni(e){return e<0?0:e>1?1:e}function Ao(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?se(parseFloat(t)/100*255):se(parseInt(t,10))}function Er(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?ni(parseFloat(t)/100):ni(parseFloat(t))}function Po(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Ze(e,t,r){return e+(t-e)*r}function $t(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function Vs(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var jv=new pi(20),Ai=null;function Vr(e,t){Ai&&Vs(Ai,t),Ai=jv.put(e,Ai||t.slice())}function Se(e,t){if(e){t=t||[];var r=jv.get(e);if(r)return Vs(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in Wl)return Vs(t,Wl[n]),Vr(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){$t(t,0,0,0,1);return}return $t(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Vr(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){$t(t,0,0,0,1);return}return $t(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Vr(e,t),t}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?$t(t,+l[0],+l[1],+l[2],1):$t(t,0,0,0,1);f=Er(l.pop());case"rgb":if(l.length>=3)return $t(t,Ao(l[0]),Ao(l[1]),Ao(l[2]),l.length===3?f:Er(l[3])),Vr(e,t),t;$t(t,0,0,0,1);return;case"hsla":if(l.length!==4){$t(t,0,0,0,1);return}return l[3]=Er(l[3]),Ws(l,t),Vr(e,t),t;case"hsl":if(l.length!==3){$t(t,0,0,0,1);return}return Ws(l,t),Vr(e,t),t;default:return}}$t(t,0,0,0,1)}}function Ws(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Er(e[1]),i=Er(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],$t(t,se(Po(o,a,r+1/3)*255),se(Po(o,a,r)*255),se(Po(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function D0(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,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-t)/6+o/2)/o,h=((a-r)/6+o/2)/o,c=((a-n)/6+o/2)/o;t===a?u=c-h:r===a?u=1/3+f-c:n===a&&(u=2/3+h-f),u<0&&(u+=1),u>1&&(u-=1)}var v=[u*360,l,s];return e[3]!=null&&v.push(e[3]),v}}function Ul(e,t){var r=Se(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return gi(r,r.length===4?"rgba":"rgb")}}function HM(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],u=n-i;return r[0]=se(Ze(o[0],s[0],u)),r[1]=se(Ze(o[1],s[1],u)),r[2]=se(Ze(o[2],s[2],u)),r[3]=ni(Ze(o[3],s[3],u)),r}}function GM(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=Se(t[i]),s=Se(t[a]),u=n-i,l=gi([se(Ze(o[0],s[0],u)),se(Ze(o[1],s[1],u)),se(Ze(o[2],s[2],u)),ni(Ze(o[3],s[3],u))],"rgba");return r?{color:l,leftIndex:i,rightIndex:a,value:n}:l}}function VM(e,t,r,n){var i=Se(e);if(e)return i=D0(i),t!=null&&(i[0]=C0(t)),r!=null&&(i[1]=Er(r)),n!=null&&(i[2]=Er(n)),gi(Ws(i),"rgba")}function WM(e,t){var r=Se(e);if(r&&t!=null)return r[3]=ni(t),gi(r,"rgba")}function gi(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function xa(e,t){var r=Se(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function x0(e){return e.type==="linear"}function L0(e){return e.type==="radial"}(function(){return nt.hasGlobalWindow&&Z(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var Us=Array.prototype.slice;function De(e,t,r){return(t-e)*r+e}function Eo(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=De(t[a],r[a],n);return e}function A0(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=De(t[o][s],r[o][s],n)}return e}function Pi(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function Yl(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function P0(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,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 E0(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var u=a;u<o;u++)n.push(r===1?i[u]:Us.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 la(e){if(Ft(e)){var t=e.length;if(Ft(e[0])){for(var r=[],n=0;n<t;n++)r.push(Us.call(e[n]));return r}return Us.call(e)}return e}function fa(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function R0(e){return Ft(e&&e[0])?2:1}var Ei=0,ha=1,tc=2,Nn=3,Ys=4,$s=5,$l=6;function Xl(e){return e===Ys||e===$s}function Ri(e){return e===ha||e===tc}var _n=[0,0,0,0],I0=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=$l,u=r;if(Ft(r)){var l=R0(r);s=l,(l===1&&!ut(r[0])||l===2&&!ut(r[0][0]))&&(o=!0)}else if(ut(r)&&!ba(r))s=Ei;else if(V(r))if(!isNaN(+r))s=Ei;else{var f=Se(r);f&&(u=f,s=Nn)}else if(Iu(r)){var h=O({},u);h.colorStops=G(r.colorStops,function(v){return{offset:v.offset,color:Se(v.color)}}),x0(r)?s=Ys:L0(r)&&(s=$s),u=h}a===0?this.valType=s:(s!==this.valType||s===$l)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:u,rawValue:r,percent:0};return n&&(c.easing=n,c.easingFunc=Z(n)?n:Uv[n]||Jv(n)),i.push(c),c},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(y,p){return y.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,u=Ri(i),l=Xl(i),f=0;f<a;f++){var h=n[f],c=h.value,v=o.value;h.percent=h.time/t,s||(u&&f!==a-1?E0(c,v,i):l&&P0(c.colorStops,v.colorStops))}if(!s&&i!==$s&&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===Ei?n[f].additiveValue=n[f].value-d:i===Nn?n[f].additiveValue=Pi([],n[f].value,d,-1):Ri(i)&&(n[f].additiveValue=i===ha?Pi([],n[f].value,d,-1):Yl([],n[f].value,d,-1))}},e.prototype.step=function(t,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===Nn,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var y=c(h+1,s-1);for(f=y;f>=0&&!(o[f].percent<=r);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>r);f++);f=c(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,g=p===0?1:c((r-v.percent)/p,1);d.easingFunc&&(g=d.easingFunc(g));var _=n?this._additiveValue:l?_n:t[u];if((Ri(a)||l)&&!_&&(_=this._additiveValue=[]),this.discrete)t[u]=g<1?v.rawValue:d.rawValue;else if(Ri(a))a===ha?Eo(_,v[i],d[i],g):A0(_,v[i],d[i],g);else if(Xl(a)){var m=v[i],S=d[i],b=a===Ys;t[u]={type:b?"linear":"radial",x:De(m.x,S.x,g),y:De(m.y,S.y,g),colorStops:G(m.colorStops,function(x,L){var T=S.colorStops[L];return{offset:De(x.offset,T.offset,g),color:fa(Eo([],x.color,T.color,g))}}),global:S.global},b?(t[u].x2=De(m.x2,S.x2,g),t[u].y2=De(m.y2,S.y2,g)):t[u].r=De(m.r,S.r,g)}else if(l)Eo(_,v[i],d[i],g),n||(t[u]=fa(_));else{var w=De(v[i],d[i],g);n?this._additiveValue=w:t[u]=w}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===Ei?t[n]=t[n]+i:r===Nn?(Se(t[n],_n),Pi(_n,_n,i,1),t[n]=fa(_n)):r===ha?Pi(t[n],t[n],i,1):r===tc&&Yl(t[n],t[n],i,1)},e}(),Nu=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){Ev("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,it(r),n)},e.prototype.whenWithKeys=function(t,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 I0(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];l=c&&c.value,f.valType===Nn&&l&&(l=fa(l))}else l=this._target[s];if(l==null)continue;t>0&&u.addKeyframe(0,la(l),i),this._trackKeys.push(s)}u.addKeyframe(t,la(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){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 h=l[f-1];h&&(r._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var c=new M0({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){r._started=2;var d=r._additiveAnimators;if(d){for(var y=!1,p=0;p<d.length;p++)if(d[p]._clip){y=!0;break}y||(r._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(r._target,v);var g=r._onframeCbs;if(g)for(var p=0;p<g.length;p++)g[p](r._target,v)},ondestroy:function(){r._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return G(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(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},e.prototype.saveTo=function(t,r,n){if(t){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&&(t[a]=la(u.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||it(t);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,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}(),O0=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var u={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=a[t].length-1,f=a[t][l];return f&&f.callAtLast?a[t].splice(l,0,u):a[t].push(u),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],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(t,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(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],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(t,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(t),this},e}();const Be=O0;var ec=1;nt.hasGlobalWindow&&(ec=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ql=ec,Xs=.4,qs="#333",Zs="#ccc",k0="#eee",ge=1,zn=2,en=4,Ro="__zr_normal__",Io=ri.concat(["ignore"]),F0=je(ri,function(e,t){return e[t]=!0,e},{ignore:!1}),Wr={},B0=new j(0,0,0,0),zu=function(){function e(t){this.id=Pv(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){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;if(a.copyTransform(r),n.position!=null){var f=B0;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Wr,n,f):Hv(Wr,n,f),a.x=Wr.x,a.y=Wr.y,o=Wr.align,s=Wr.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=kr(h[0],f.width),v=kr(h[1],f.height)),l=!0,a.originX=-a.x+c+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],l||(a.originX=-d[0],a.originY=-d[1]));var y=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,_=void 0,m=void 0;y&&this.canBeInsideText()?(g=n.insideFill,_=n.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(_==null||_==="auto")&&(_=this.getInsideTextStroke(g),m=!0)):(g=n.outsideFill,_=n.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(_==null||_==="auto")&&(_=this.getOutsideStroke(g),m=!0)),g=g||"#000",(g!==p.fill||_!==p.stroke||m!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(u=!0,p.fill=g,p.stroke=_,p.autoStroke=m,p.align=o,p.verticalAlign=s,r.setDefaultTextStyle(p)),r.__dirty|=ge,u&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Zs:qs},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Se(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,gi(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},O(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(z(t))for(var n=t,i=it(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);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!==Ro)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,Io)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Ro,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===Ro,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(at(s,t)>=0&&(r||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){Ev("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,r,!n&&!this.__inHover&&u&&u.duration>0,u);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,r,n,f),c&&c.useState(t,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ge),l}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var u=0;u<o;u++)if(t[u]!==a[u]){s=!1;break}}if(s)return;for(var u=0;u<o;u++){var l=t[u],f=void 0;this.stateProxy&&(f=this.stateProxy(l,t)),f||(f=this.states[l]),f&&i.push(f)}var h=i[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var y=this._textContent,p=this._textGuide;y&&y.useStates(t,r,c),p&&p.useStates(t,r,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ge)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=at(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=at(i,t),o=at(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i<t.length;i++){var a=t[i];O(r,a),a.textConfig&&(n=n||{},O(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=O({},i?this.textConfig:n.textConfig),O(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var u={},l=!1,f=0;f<Io.length;f++){var h=Io[f],c=a&&F0[h];r&&r[h]!=null?c?(l=!0,u[h]=r[h]):this[h]=r[h]:s&&n[h]!=null&&(c?(l=!0,u[h]=n[h]):this[h]=n[h])}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(t,u,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new to,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),O(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=ge;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var i=t?this[t]:this,a=new Nu(i,r,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=at(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){Oo(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){Oo(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=Oo(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=ge;function r(n,i,a,o){Object.defineProperty(t,n,{get:function(){if(!this[i]){var u=this[i]=[];s(this,u)}return this[i]},set:function(u){this[a]=u[0],this[o]=u[1],this[i]=u,s(this,u)}});function s(u,l){Object.defineProperty(l,0,{get:function(){return u[a]},set:function(f){u[a]=f}}),Object.defineProperty(l,1,{get:function(){return u[o]},set:function(f){u[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();Fe(zu,Be);Fe(zu,to);function Oo(e,t,r,n,i){r=r||{};var a=[];rc(e,"",e,t,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())},h=function(){o--,o<=0&&(s?u&&u():l&&l())};o||u&&u(),a.length>0&&r.during&&a[0].during(function(d,y){r.during(y)});for(var c=0;c<a.length;c++){var v=a[c];f&&v.done(f),h&&v.aborted(h),r.force&&v.duration(r.duration),v.start(r.easing)}return a}function ko(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function N0(e){return Ft(e[0])}function z0(e,t,r){if(Ft(t[r]))if(Ft(e[r])||(e[r]=[]),Wt(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),ko(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(N0(i))for(var s=i[0].length,u=0;u<o;u++)a[u]?ko(a[u],i[u],s):a[u]=Array.prototype.slice.call(i[u]);else ko(a,i,o);a.length=i.length}else e[r]=t[r]}function H0(e,t){return e===t||Ft(e)&&Ft(t)&&G0(e,t)}function G0(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function rc(e,t,r,n,i,a,o,s){for(var u=it(n),l=i.duration,f=i.delay,h=i.additive,c=i.setToFinal,v=!z(a),d=e.animators,y=[],p=0;p<u.length;p++){var g=u[p],_=n[g];if(_!=null&&r[g]!=null&&(v||a[g]))if(z(_)&&!Ft(_)&&!Iu(_)){if(t){s||(r[g]=_,e.updateDuringAnimation(t));continue}rc(e,g,r[g],_,i,a&&a[g],o,s)}else y.push(g);else s||(r[g]=_,e.updateDuringAnimation(t),y.push(g))}var m=y.length;if(!h&&m)for(var S=0;S<d.length;S++){var b=d[S];if(b.targetName===t){var w=b.stopTracks(y);if(w){var x=at(d,b);d.splice(x,1)}}}if(i.force||(y=yt(y,function(M){return!H0(n[M],r[M])}),m=y.length),m>0||i.force&&!o.length){var L=void 0,T=void 0,C=void 0;if(s){T={},c&&(L={});for(var S=0;S<m;S++){var g=y[S];T[g]=r[g],c?L[g]=n[g]:r[g]=n[g]}}else if(c){C={};for(var S=0;S<m;S++){var g=y[S];C[g]=la(r[g]),z0(r,n,g)}}var b=new Nu(r,!1,!1,h?yt(d,function(A){return A.targetName===t}):null);b.targetName=t,i.scope&&(b.scope=i.scope),c&&L&&b.whenWithKeys(0,L,y),C&&b.whenWithKeys(0,C,y),b.whenWithKeys(l??500,s?T:n,y).delay(f||0),e.addAnimator(b,t),o.push(b)}}const nc=zu;var Ks="__zr_style_"+Math.round(Math.random()*10),Rr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},eo={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Rr[Ks]=!0;var Zl=["z","z2","invisible"],V0=["invisible"],W0=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=it(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&U0(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.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},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new j(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:O(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=zn,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&zn)},t.prototype.styleUpdated=function(){this.__dirty&=~zn},t.prototype.createStyle=function(r){return Ka(Rr,r)},t.prototype.useStyle=function(r){r[Ks]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[Ks]},t.prototype._innerSaveToNormal=function(r){e.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,Zl)},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var u=!(n&&a),l;if(n&&n.style?o?a?l=n.style:(l=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(l,n.style)):u&&(l=i.style),l)if(o){var f=this.style;if(this.style=this.createStyle(u?{}:f),u)for(var h=it(f),c=0;c<h.length;c++){var v=h[c];v in l&&(l[v]=l[v],this.style[v]=f[v])}for(var d=it(l),c=0;c<d.length;c++){var v=d[c];this.style[v]=this.style[v]}this._transitionState(r,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);for(var y=this.__inHover?V0:Zl,c=0;c<y.length;c++){var v=y[c];n&&n[v]!=null?this[v]=n[v]:u&&i[v]!=null&&(this[v]=i[v])}},t.prototype._mergeStates=function(r){for(var n=e.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},t.prototype._mergeStyle=function(r,n){return O(r,n),r},t.prototype.getAnimationStyleProps=function(){return eo},t.initDefaultProps=function(){var r=t.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=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=ge|zn}(),t}(nc),Fo=new j(0,0,0,0),Bo=new j(0,0,0,0);function U0(e,t,r){return Fo.copy(e.getBoundingRect()),e.transform&&Fo.applyTransform(e.transform),Bo.width=t,Bo.height=r,!Fo.intersect(Bo)}const yi=W0;var Rt=Math.min,It=Math.max,No=Math.sin,zo=Math.cos,fr=Math.PI*2,Ii=hn(),Oi=hn(),ki=hn();function UM(e,t,r){if(e.length!==0){for(var n=e[0],i=n[0],a=n[0],o=n[1],s=n[1],u=1;u<e.length;u++)n=e[u],i=Rt(i,n[0]),a=It(a,n[0]),o=Rt(o,n[1]),s=It(s,n[1]);t[0]=i,t[1]=o,r[0]=a,r[1]=s}}function Kl(e,t,r,n,i,a){i[0]=Rt(e,r),i[1]=Rt(t,n),a[0]=It(e,r),a[1]=It(t,n)}var Ql=[],Jl=[];function Y0(e,t,r,n,i,a,o,s,u,l){var f=qv,h=gt,c=f(e,r,i,o,Ql);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var v=0;v<c;v++){var d=h(e,r,i,o,Ql[v]);u[0]=Rt(d,u[0]),l[0]=It(d,l[0])}c=f(t,n,a,s,Jl);for(var v=0;v<c;v++){var y=h(t,n,a,s,Jl[v]);u[1]=Rt(y,u[1]),l[1]=It(y,l[1])}u[0]=Rt(e,u[0]),l[0]=It(e,l[0]),u[0]=Rt(o,u[0]),l[0]=It(o,l[0]),u[1]=Rt(t,u[1]),l[1]=It(t,l[1]),u[1]=Rt(s,u[1]),l[1]=It(s,l[1])}function $0(e,t,r,n,i,a,o,s){var u=Kv,l=wt,f=It(Rt(u(e,r,i),1),0),h=It(Rt(u(t,n,a),1),0),c=l(e,r,i,f),v=l(t,n,a,h);o[0]=Rt(e,i,c),o[1]=Rt(t,a,v),s[0]=It(e,i,c),s[1]=It(t,a,v)}function X0(e,t,r,n,i,a,o,s,u){var l=Cr,f=Dr,h=Math.abs(i-a);if(h%fr<1e-4&&h>1e-4){s[0]=e-r,s[1]=t-n,u[0]=e+r,u[1]=t+n;return}if(Ii[0]=zo(i)*r+e,Ii[1]=No(i)*n+t,Oi[0]=zo(a)*r+e,Oi[1]=No(a)*n+t,l(s,Ii,Oi),f(u,Ii,Oi),i=i%fr,i<0&&(i=i+fr),a=a%fr,a<0&&(a=a+fr),i>a&&!o?a+=fr:i<a&&o&&(i+=fr),o){var c=a;a=i,i=c}for(var v=0;v<a;v+=Math.PI/2)v>i&&(ki[0]=zo(v)*r+e,ki[1]=No(v)*n+t,l(s,ki,s),f(u,ki,u))}var K={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},hr=[],vr=[],he=[],Ge=[],ve=[],ce=[],Ho=Math.min,Go=Math.max,cr=Math.cos,dr=Math.sin,Me=Math.abs,Qs=Math.PI,Xe=Qs*2,Vo=typeof Float32Array<"u",mn=[];function Wo(e){var t=Math.round(e/Qs*1e8)/1e8;return t%2*Qs}function q0(e,t){var r=Wo(e[0]);r<0&&(r+=Xe);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Xe?i=r+Xe:t&&r-i>=Xe?i=r-Xe:!t&&r>i?i=r+(Xe-Wo(r-i)):t&&r<i&&(i=r-(Xe-Wo(i-r))),e[0]=r,e[1]=i}var Z0=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=Me(n/ql/t)||0,this._uy=Me(n/ql/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(K.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=Me(t-this._xi),i=Me(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(K.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(K.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(K.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),mn[0]=i,mn[1]=a,q0(mn,o),i=mn[0],a=mn[1];var s=a-i;return this.addData(K.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=cr(a)*n+t,this._yi=dr(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(K.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(K.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Vo&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,i=this._len,a=0;a<r;a++)n+=t[a].len();Vo&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<r;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},e.prototype.addData=function(t,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 h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Vo&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){he[0]=he[1]=ve[0]=ve[1]=Number.MAX_VALUE,Ge[0]=Ge[1]=ce[0]=ce[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],u=o===1;switch(u&&(r=t[o],n=t[o+1],i=r,a=n),s){case K.M:r=i=t[o++],n=a=t[o++],ve[0]=i,ve[1]=a,ce[0]=i,ce[1]=a;break;case K.L:Kl(r,n,t[o],t[o+1],ve,ce),r=t[o++],n=t[o++];break;case K.C:Y0(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],ve,ce),r=t[o++],n=t[o++];break;case K.Q:$0(r,n,t[o++],t[o++],t[o],t[o+1],ve,ce),r=t[o++],n=t[o++];break;case K.A:var l=t[o++],f=t[o++],h=t[o++],c=t[o++],v=t[o++],d=t[o++]+v;o+=1;var y=!t[o++];u&&(i=cr(v)*h+l,a=dr(v)*c+f),X0(l,f,h,c,v,d,y,ve,ce),r=cr(d)*h+l,n=dr(d)*c+f;break;case K.R:i=r=t[o++],a=n=t[o++];var p=t[o++],g=t[o++];Kl(i,a,i+p,a+g,ve,ce);break;case K.Z:r=i,n=a;break}Cr(he,he,ve),Dr(Ge,Ge,ce)}return o===0&&(he[0]=he[1]=Ge[0]=Ge[1]=0),new j(he[0],he[1],Ge[0]-he[0],Ge[1]-he[1])},e.prototype._calculateLength=function(){var t=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,h=0,c=0;c<r;){var v=t[c++],d=c===1;d&&(a=t[c],o=t[c+1],s=a,u=o);var y=-1;switch(v){case K.M:a=s=t[c++],o=u=t[c++];break;case K.L:{var p=t[c++],g=t[c++],_=p-a,m=g-o;(Me(_)>n||Me(m)>i||c===r-1)&&(y=Math.sqrt(_*_+m*m),a=p,o=g);break}case K.C:{var S=t[c++],b=t[c++],p=t[c++],g=t[c++],w=t[c++],x=t[c++];y=m0(a,o,S,b,p,g,w,x,10),a=w,o=x;break}case K.Q:{var S=t[c++],b=t[c++],p=t[c++],g=t[c++];y=w0(a,o,S,b,p,g,10),a=p,o=g;break}case K.A:var L=t[c++],T=t[c++],C=t[c++],M=t[c++],A=t[c++],P=t[c++],E=P+A;c+=1,t[c++],d&&(s=cr(A)*C+L,u=dr(A)*M+T),y=Go(C,M)*Ho(Xe,Math.abs(P)),a=cr(E)*C+L,o=dr(E)*M+T;break;case K.R:{s=a=t[c++],u=o=t[c++];var I=t[c++],R=t[c++];y=I*2+R*2;break}case K.Z:{var _=s-a,m=u-o;y=Math.sqrt(_*_+m*m),a=s,o=u;break}}y>=0&&(l[h++]=y,f+=y)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,u,l,f,h,c,v=r<1,d,y,p=0,g=0,_,m=0,S,b;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,y=this._pathLen,_=r*y,!_)))t:for(var w=0;w<o;){var x=n[w++],L=w===1;switch(L&&(l=n[w],f=n[w+1],s=l,u=f),x!==K.L&&m>0&&(t.lineTo(S,b),m=0),x){case K.M:s=l=n[w++],u=f=n[w++],t.moveTo(l,f);break;case K.L:{h=n[w++],c=n[w++];var T=Me(h-l),C=Me(c-f);if(T>i||C>a){if(v){var M=d[g++];if(p+M>_){var A=(_-p)/M;t.lineTo(l*(1-A)+h*A,f*(1-A)+c*A);break t}p+=M}t.lineTo(h,c),l=h,f=c,m=0}else{var P=T*T+C*C;P>m&&(S=h,b=c,m=P)}break}case K.C:{var E=n[w++],I=n[w++],R=n[w++],Y=n[w++],F=n[w++],k=n[w++];if(v){var M=d[g++];if(p+M>_){var A=(_-p)/M;Ca(l,E,R,F,A,hr),Ca(f,I,Y,k,A,vr),t.bezierCurveTo(hr[1],vr[1],hr[2],vr[2],hr[3],vr[3]);break t}p+=M}t.bezierCurveTo(E,I,R,Y,F,k),l=F,f=k;break}case K.Q:{var E=n[w++],I=n[w++],R=n[w++],Y=n[w++];if(v){var M=d[g++];if(p+M>_){var A=(_-p)/M;Da(l,E,R,A,hr),Da(f,I,Y,A,vr),t.quadraticCurveTo(hr[1],vr[1],hr[2],vr[2]);break t}p+=M}t.quadraticCurveTo(E,I,R,Y),l=R,f=Y;break}case K.A:var U=n[w++],rt=n[w++],tt=n[w++],lt=n[w++],Ut=n[w++],He=n[w++],tr=n[w++],er=!n[w++],zr=tt>lt?tt:lt,Nt=Me(tt-lt)>.001,dt=Ut+He,H=!1;if(v){var M=d[g++];p+M>_&&(dt=Ut+He*(_-p)/M,H=!0),p+=M}if(Nt&&t.ellipse?t.ellipse(U,rt,tt,lt,tr,Ut,dt,er):t.arc(U,rt,zr,Ut,dt,er),H)break t;L&&(s=cr(Ut)*tt+U,u=dr(Ut)*lt+rt),l=cr(dt)*tt+U,f=dr(dt)*lt+rt;break;case K.R:s=l=n[w],u=f=n[w+1],h=n[w++],c=n[w++];var X=n[w++],rr=n[w++];if(v){var M=d[g++];if(p+M>_){var Mt=_-p;t.moveTo(h,c),t.lineTo(h+Ho(Mt,X),c),Mt-=X,Mt>0&&t.lineTo(h+X,c+Ho(Mt,rr)),Mt-=rr,Mt>0&&t.lineTo(h+Go(X-Mt,0),c+rr),Mt-=X,Mt>0&&t.lineTo(h,c+Go(rr-Mt,0));break t}p+=M}t.rect(h,c,X,rr);break;case K.Z:if(v){var M=d[g++];if(p+M>_){var A=(_-p)/M;t.lineTo(l*(1-A)+s*A,f*(1-A)+u*A);break t}p+=M}t.closePath(),l=s,f=u}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=K,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const Fr=Z0;function Ur(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,u=0,l=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)u=(t-n)/(e-r),l=(e*n-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var f=u*a-o+l,h=f*f/(u*u+1);return h<=s/2*s/2}function K0(e,t,r,n,i,a,o,s,u,l,f){if(u===0)return!1;var h=u;if(f>t+h&&f>n+h&&f>a+h&&f>s+h||f<t-h&&f<n-h&&f<a-h&&f<s-h||l>e+h&&l>r+h&&l>i+h&&l>o+h||l<e-h&&l<r-h&&l<i-h&&l<o-h)return!1;var c=Zv(e,t,r,n,i,a,o,s,l,f,null);return c<=h/2}function Q0(e,t,r,n,i,a,o,s,u){if(o===0)return!1;var l=o;if(u>t+l&&u>n+l&&u>a+l||u<t-l&&u<n-l&&u<a-l||s>e+l&&s>r+l&&s>i+l||s<e-l&&s<r-l&&s<i-l)return!1;var f=Qv(e,t,r,n,i,a,s,u,null);return f<=l/2}var jl=Math.PI*2;function Pe(e){return e%=jl,e<0&&(e+=jl),e}var Sn=Math.PI*2;function J0(e,t,r,n,i,a,o,s,u){if(o===0)return!1;var l=o;s-=e,u-=t;var f=Math.sqrt(s*s+u*u);if(f-l>r||f+l<r)return!1;if(Math.abs(n-i)%Sn<1e-4)return!0;if(a){var h=n;n=Pe(i),i=Pe(h)}else n=Pe(n),i=Pe(i);n>i&&(i+=Sn);var c=Math.atan2(u,s);return c<0&&(c+=Sn),c>=n&&c<=i||c+Sn>=n&&c+Sn<=i}function xe(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var u=o*(r-e)+e;return u===i?1/0:u>i?s:0}var Ve=Fr.CMD,pr=Math.PI*2,j0=1e-4;function ty(e,t){return Math.abs(e-t)<j0}var xt=[-1,-1,-1],qt=[-1,-1];function ey(){var e=qt[0];qt[0]=qt[1],qt[1]=e}function ry(e,t,r,n,i,a,o,s,u,l){if(l>t&&l>n&&l>a&&l>s||l<t&&l<n&&l<a&&l<s)return 0;var f=Xv(t,n,a,s,l,xt);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,y=0;y<f;y++){var p=xt[y],g=p===0||p===1?.5:1,_=gt(e,r,i,o,p);_<u||(c<0&&(c=qv(t,n,a,s,qt),qt[1]<qt[0]&&c>1&&ey(),v=gt(t,n,a,s,qt[0]),c>1&&(d=gt(t,n,a,s,qt[1]))),c===2?p<qt[0]?h+=v<t?g:-g:p<qt[1]?h+=d<v?g:-g:h+=s<d?g:-g:p<qt[0]?h+=v<t?g:-g:h+=s<v?g:-g)}return h}function ny(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var u=S0(t,n,a,s,xt);if(u===0)return 0;var l=Kv(t,n,a);if(l>=0&&l<=1){for(var f=0,h=wt(t,n,a,l),c=0;c<u;c++){var v=xt[c]===0||xt[c]===1?.5:1,d=wt(e,r,i,xt[c]);d<o||(xt[c]<l?f+=h<t?v:-v:f+=a<h?v:-v)}return f}else{var v=xt[0]===0||xt[0]===1?.5:1,d=wt(e,r,i,xt[0]);return d<o?0:a<t?v:-v}}function iy(e,t,r,n,i,a,o,s){if(s-=t,s>r||s<-r)return 0;var u=Math.sqrt(r*r-s*s);xt[0]=-u,xt[1]=u;var l=Math.abs(n-i);if(l<1e-4)return 0;if(l>=pr-1e-4){n=0,i=pr;var f=a?1:-1;return o>=xt[0]+e&&o<=xt[1]+e?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=pr,i+=pr);for(var c=0,v=0;v<2;v++){var d=xt[v];if(d+e>o){var y=Math.atan2(s,d),f=a?1:-1;y<0&&(y=pr+y),(y>=n&&y<=i||y+pr>=n&&y+pr<=i)&&(y>Math.PI/2&&y<Math.PI*1.5&&(f=-f),c+=f)}}return c}function ic(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,u=0,l=0,f=0,h=0,c,v,d=0;d<o;){var y=a[d++],p=d===1;switch(y===Ve.M&&d>1&&(r||(s+=xe(u,l,f,h,n,i))),p&&(u=a[d],l=a[d+1],f=u,h=l),y){case Ve.M:f=a[d++],h=a[d++],u=f,l=h;break;case Ve.L:if(r){if(Ur(u,l,a[d],a[d+1],t,n,i))return!0}else s+=xe(u,l,a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case Ve.C:if(r){if(K0(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=ry(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 Ve.Q:if(r){if(Q0(u,l,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=ny(u,l,a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case Ve.A:var g=a[d++],_=a[d++],m=a[d++],S=a[d++],b=a[d++],w=a[d++];d+=1;var x=!!(1-a[d++]);c=Math.cos(b)*m+g,v=Math.sin(b)*S+_,p?(f=c,h=v):s+=xe(u,l,c,v,n,i);var L=(n-g)*S/m+g;if(r){if(J0(g,_,S,b,b+w,x,t,L,i))return!0}else s+=iy(g,_,S,b,b+w,x,L,i);u=Math.cos(b+w)*m+g,l=Math.sin(b+w)*S+_;break;case Ve.R:f=u=a[d++],h=l=a[d++];var T=a[d++],C=a[d++];if(c=f+T,v=h+C,r){if(Ur(f,h,c,h,t,n,i)||Ur(c,h,c,v,t,n,i)||Ur(c,v,f,v,t,n,i)||Ur(f,v,f,h,t,n,i))return!0}else s+=xe(c,h,c,v,n,i),s+=xe(f,v,f,h,n,i);break;case Ve.Z:if(r){if(Ur(u,l,f,h,t,n,i))return!0}else s+=xe(u,l,f,h,n,i);u=f,l=h;break}}return!r&&!ty(l,h)&&(s+=xe(u,l,f,h,n,i)||0),s!==0}function ay(e,t,r){return ic(e,0,!1,t,r)}function oy(e,t,r,n){return ic(e,t,!0,r,n)}var ac=ht({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Rr),sy={style:ht({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},eo.style)},Uo=ri.concat(["invisible","culling","z","z2","zlevel","parent"]),uy=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(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<Uo.length;++s)i[Uo[s]]=this[Uo[s]];i.__dirty|=ge}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=it(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?O(this.style,s):this.useStyle(s):o==="shape"?O(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(V(r)){var n=xa(r,0);return n>.5?qs:n>.2?k0:Zs}else if(r)return Zs}return qs},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(V(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=xa(r,0)<Xs;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~en},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new Fr(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.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&en)&&(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},t.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)),oy(s,u/l,r,n)))return!0}if(this.hasFill())return ay(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=en,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:O(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&en)},t.prototype.createStyle=function(r){return Ka(ac,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=O({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var u=!(n&&a),l;if(n&&n.shape?o?a?l=n.shape:(l=O({},i.shape),O(l,n.shape)):(l=O({},a?this.shape:i.shape),O(l,n.shape)):u&&(l=i.shape),l)if(o){this.shape=O({},this.shape);for(var f={},h=it(l),c=0;c<h.length;c++){var v=h[c];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()},t.prototype._mergeStates=function(r){for(var n=e.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},t.prototype.getAnimationStyleProps=function(){return sy},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(a){W(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 J(r.style)},o.prototype.getDefaultShape=function(){return J(r.shape)},o}(t);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=ge|zn|en}(),t}(yi);const et=uy;var ly=ht({strokeFirst:!0,font:Or,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},ac),oc=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return Ka(ly,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=zv(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(yi);oc.prototype.type="tspan";const Js=oc;var fy=ht({x:0,y:0},Rr),hy={style:ht({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},eo.style)};function vy(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var sc=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Ka(fy,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=vy(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},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return hy},t.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},t}(yi);sc.prototype.type="image";const vn=sc;function cy(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.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 h;s+u>i&&(h=s+u,s*=i/h,u*=i/h),l+f>i&&(h=l+f,l*=i/h,f*=i/h),u+l>a&&(h=u+l,u*=a/h,l*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),e.moveTo(r+s,n),e.lineTo(r+i-u,n),u!==0&&e.arc(r+i-u,n+u,u,-Math.PI/2,0),e.lineTo(r+i,n+a-l),l!==0&&e.arc(r+i-l,n+a-l,l,0,Math.PI/2),e.lineTo(r+f,n+a),f!==0&&e.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var rn=Math.round;function uc(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(rn(n*2)===rn(i*2)&&(e.x1=e.x2=xr(n,s,!0)),rn(a*2)===rn(o*2)&&(e.y1=e.y2=xr(a,s,!0))),e}}function lc(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=xr(n,s,!0),e.y=xr(i,s,!0),e.width=Math.max(xr(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(xr(i+o,s,!1)-e.y,o===0?0:1)),e}}function xr(e,t,r){if(!t)return e;var n=rn(e*2);return(n+rn(t))%2===0?n/2:(n+(r?1:-1))/2}var dy=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),py={},fc=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new dy},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var u=lc(py,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?cy(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(et);fc.prototype.type="rect";const Re=fc;var tf={fill:"#000"},ef=2,gy={style:ht({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},eo.style)},hc=function(e){W(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=tf,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.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}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,wy(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var 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},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||tf},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return O(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var i=it(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},O(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return gy},t.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},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Or,i=r.padding,a=lf(r),o=i0(a,r),s=Yo(r),u=!!r.backgroundColor,l=o.outerHeight,f=o.outerWidth,h=o.contentWidth,c=o.lines,v=o.lineHeight,d=this._defaultStyle,y=r.x||0,p=r.y||0,g=r.align||d.align||"left",_=r.verticalAlign||d.verticalAlign||"top",m=y,S=tn(p,o.contentHeight,_);if(s||i){var b=Bn(y,f,g),w=tn(p,l,_);s&&this._renderBackground(r,r,b,w,f,l)}S+=v/2,i&&(m=uf(y,g,i),_==="top"?S+=i[0]:_==="bottom"&&(S-=i[2]));for(var x=0,L=!1,T=sf("fill"in r?r.fill:(L=!0,d.fill)),C=of("stroke"in r?r.stroke:!u&&(!d.autoStroke||L)?(x=ef,d.stroke):null),M=r.textShadowBlur>0,A=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),P=o.calculatedLineHeight,E=0;E<c.length;E++){var I=this._getOrCreateChild(Js),R=I.createStyle();I.useStyle(R),R.text=c[E],R.x=m,R.y=S,g&&(R.textAlign=g),R.textBaseline="middle",R.opacity=r.opacity,R.strokeFirst=!0,M&&(R.shadowBlur=r.textShadowBlur||0,R.shadowColor=r.textShadowColor||"transparent",R.shadowOffsetX=r.textShadowOffsetX||0,R.shadowOffsetY=r.textShadowOffsetY||0),R.stroke=C,R.fill=T,C&&(R.lineWidth=r.lineWidth||x,R.lineDash=r.lineDash,R.lineDashOffset=r.lineDashOffset||0),R.font=n,nf(R,r),S+=v,A&&I.setBoundingRect(new j(Bn(R.x,r.width,R.textAlign),tn(R.y,P,R.textBaseline),h,P))}},t.prototype._updateRichTexts=function(){var r=this.style,n=lf(r),i=s0(n,r),a=i.width,o=i.outerWidth,s=i.outerHeight,u=r.padding,l=r.x||0,f=r.y||0,h=this._defaultStyle,c=r.align||h.align,v=r.verticalAlign||h.verticalAlign,d=Bn(l,o,c),y=tn(f,s,v),p=d,g=y;u&&(p+=u[3],g+=u[0]);var _=p+a;Yo(r)&&this._renderBackground(r,r,d,y,o,s);for(var m=!!r.backgroundColor,S=0;S<i.lines.length;S++){for(var b=i.lines[S],w=b.tokens,x=w.length,L=b.lineHeight,T=b.width,C=0,M=p,A=_,P=x-1,E=void 0;C<x&&(E=w[C],!E.align||E.align==="left");)this._placeToken(E,r,L,g,M,"left",m),T-=E.width,M+=E.width,C++;for(;P>=0&&(E=w[P],E.align==="right");)this._placeToken(E,r,L,g,A,"right",m),T-=E.width,A-=E.width,P--;for(M+=(a-(M-p)-(_-A)-T)/2;C<=P;)E=w[C],this._placeToken(E,r,L,g,M+E.width/2,"center",m),M+=E.width,C++;g+=L}},t.prototype._placeToken=function(r,n,i,a,o,s,u){var l=n.rich[r.styleName]||{};l.text=r.text;var f=r.verticalAlign,h=a+i/2;f==="top"?h=a+r.height/2:f==="bottom"&&(h=a+i-r.height/2);var c=!r.isLineHolder&&Yo(l);c&&this._renderBackground(l,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,h-r.height/2,r.width,r.height);var v=!!l.backgroundColor,d=r.textPadding;d&&(o=uf(o,s,d),h-=r.height/2-d[0]-r.innerHeight/2);var y=this._getOrCreateChild(Js),p=y.createStyle();y.useStyle(p);var g=this._defaultStyle,_=!1,m=0,S=sf("fill"in l?l.fill:"fill"in n?n.fill:(_=!0,g.fill)),b=of("stroke"in l?l.stroke:"stroke"in n?n.stroke:!v&&!u&&(!g.autoStroke||_)?(m=ef,g.stroke):null),w=l.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=h,w&&(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||Or,p.opacity=sa(l.opacity,n.opacity,1),nf(p,l),b&&(p.lineWidth=sa(l.lineWidth,n.lineWidth,m),p.lineDash=q(l.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=b),S&&(p.fill=S);var x=r.contentWidth,L=r.contentHeight;y.setBoundingRect(new j(Bn(p.x,x,p.textAlign),tn(p.y,L,p.textBaseline),x,L))},t.prototype._renderBackground=function(r,n,i,a,o,s){var u=r.backgroundColor,l=r.borderWidth,f=r.borderColor,h=u&&u.image,c=u&&!h,v=r.borderRadius,d=this,y,p;if(c||r.lineHeight||l&&f){y=this._getOrCreateChild(Re),y.useStyle(y.createStyle()),y.style.fill=null;var g=y.shape;g.x=i,g.y=a,g.width=o,g.height=s,g.r=v,y.dirtyShape()}if(c){var _=y.style;_.fill=u||null,_.fillOpacity=q(r.fillOpacity,1)}else if(h){p=this._getOrCreateChild(vn),p.onload=function(){d.dirtyStyle()};var m=p.style;m.image=u.image,m.x=i,m.y=a,m.width=o,m.height=s}if(l&&f){var _=y.style;_.lineWidth=l,_.stroke=f,_.strokeOpacity=q(r.strokeOpacity,1),_.lineDash=r.borderDash,_.lineDashOffset=r.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(_.strokeFirst=!0,_.lineWidth*=2)}var S=(y||p).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=sa(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return Sy(r)&&(n=[r.fontStyle,r.fontWeight,my(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Ae(n)||r.textFont||r.font},t}(yi),yy={left:!0,right:1,center:1},_y={top:1,bottom:1,middle:1},rf=["fontStyle","fontWeight","fontSize","fontFamily"];function my(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?Pu+"px":e+"px"}function nf(e,t){for(var r=0;r<rf.length;r++){var n=rf[r],i=t[n];i!=null&&(e[n]=i)}}function Sy(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function wy(e){return af(e),D(e.rich,af),e}function af(e){if(e){e.font=hc.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||yy[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||_y[r]?r:"top";var n=e.padding;n&&(e.padding=Rv(e.padding))}}function of(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function sf(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function uf(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function lf(e){var t=e.text;return t!=null&&(t+=""),t}function Yo(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const ii=hc;var ff=1e-4,vc=20;function by(e){return e.replace(/^\s+|\s+$/g,"")}function hf(e,t,r,n){var i=t[0],a=t[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(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/u*l+o}function At(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return V(e)?by(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Vt(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),vc),e=(+e).toFixed(t),r?e:+e}function YM(e){return e.sort(function(t,r){return t-r}),e}function Ee(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return Ty(e)}function Ty(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function My(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function $M(e,t){var r=je(e,function(v,d){return v+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=G(e,function(v){return(isNaN(v)?0:v)/r*n*100}),a=n*100,o=G(i,function(v){return Math.floor(v)}),s=je(o,function(v,d){return v+d},0),u=G(i,function(v,d){return v-o[d]});s<a;){for(var l=Number.NEGATIVE_INFINITY,f=null,h=0,c=u.length;h<c;++h)u[h]>l&&(l=u[h],f=h);++o[f],u[f]=0,++s}return G(o,function(v){return v/n})}function Cy(e,t){var r=Math.max(Ee(e),Ee(t)),n=e+t;return r>vc?n:Vt(n,r)}function XM(e){var t=Math.PI*2;return(e%t+t)%t}function qM(e){return e>-ff&&e<ff}var Dy=/^(?:(\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 ke(e){if(e instanceof Date)return e;if(V(e)){var t=Dy.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function xy(e){return Math.pow(10,Hu(e))}function Hu(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function cc(e,t){var r=Hu(e),n=Math.pow(10,r),i=e/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function ZM(e){e.sort(function(u,l){return s(u,l,0)?-1:1});for(var t=-1/0,r=1,n=0;n<e.length;){for(var i=e[n].interval,a=e[n].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-r),t=i[o],r=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(n,1):n++}return e;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 La(e){var t=parseFloat(e);return t==e&&(t!==0||!V(e)||e.indexOf("x")<=0)?t:NaN}function Ly(e){return!isNaN(La(e))}function dc(){return Math.round(Math.random()*9)}function pc(e,t){return t===0?e:pc(t,e%t)}function vf(e,t){return e==null?t:t==null?e:e*t/pc(e,t)}var Ay="[ECharts] ",cf={},Py=typeof console<"u"&&console.warn&&console.log;function Ey(e,t,r){if(Py){if(r){if(cf[t])return;cf[t]=!0}console[e](Ay+t)}}function KM(e,t){Ey("warn",e,t)}function zt(e){throw new Error(e)}function df(e,t,r){return(t-e)*r+e}var gc="series\0",yc="\0_ec_\0";function _t(e){return e instanceof Array?e:e==null?[]:[e]}function pf(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var gf=["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 _i(e){return z(e)&&!B(e)&&!(e instanceof Date)?e.value:e}function Ry(e){return z(e)&&!(e instanceof Array)}function Iy(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=$();D(t,function(u,l){if(!z(u)){t[l]=null;return}});var s=Oy(e,o,r);return(n||i)&&ky(s,e,o,t),n&&Fy(s,t),n||i?By(s,t,i):a&&Ny(s,t),zy(s),s}function Oy(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:r==="replaceMerge"||ai(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function ky(e,t,r,n){D(n,function(i,a){if(!(!i||i.id==null)){var o=Yn(i.id),s=r.get(o);if(s!=null){var u=e[s];we(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=i,u.existing=t[s],n[a]=null}}})}function Fy(e,t){D(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||r.id==null)&&!ai(r)&&!ai(a)&&_c("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function By(e,t,r){D(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||ai(i.existing)||i.existing&&n.id!=null&&!_c("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function Ny(e,t){D(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function zy(e){var t=$();D(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),D(e,function(r){var n=r.newOption;we(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),D(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(z(a)){if(o.name=a.name!=null?Yn(a.name):i?i.name:gc+n,i)o.id=Yn(i.id);else if(a.id!=null)o.id=Yn(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function _c(e,t,r){var n=ue(t[e],null),i=ue(r[e],null);return n!=null&&i!=null&&n===i}function Yn(e){return ue(e,"")}function ue(e,t){return e==null?t:V(e)?e:ut(e)||Fs(e)?e+"":t}function mc(e){var t=e.name;return!!(t&&t.indexOf(gc))}function ai(e){return e&&e.id!=null&&Yn(e.id).indexOf(yc)===0}function QM(e){return yc+e}function Hy(e,t,r){D(e,function(n){var i=n.newOption;z(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=Gy(t,i,n.existing,r))})}function Gy(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function JM(e,t){var r={},n={};return i(e||[],r),i(t||[],n,r),[a(r),a(n)];function i(o,s,u){for(var l=0,f=o.length;l<f;l++){var h=ue(o[l].seriesId,null);if(h==null)return;for(var c=_t(o[l].dataIndex),v=u&&u[h],d=0,y=c.length;d<y;d++){var p=c[d];v&&v[p]?v[p]=null:(s[h]||(s[h]={}))[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 ro(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return B(t.dataIndex)?G(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return B(t.name)?G(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function ct(){var e="__ec_inner_"+Vy++;return function(t){return t[e]||(t[e]={})}}var Vy=dc();function $o(e,t,r){var n=Sc(t,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 h=no(e,f,l,{useDefault:u===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function Sc(e,t){var r;if(V(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=$(),a={},o=!1;return D(r,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){a[u]=s;return}var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],f=l[1],h=(l[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&at(t.includeMainTypes,f)<0)){o=o||!!f;var c=i.get(f)||i.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Lr={useDefault:!0,enableAll:!1,enableNone:!1},jM={useDefault:!1,enableAll:!0,enableNone:!0};function no(e,t,r,n){n=n||Lr;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=e.getComponent(t))?[u]:[],s}return i==="none"||i===!1?(we(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(we(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function wc(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function Wy(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function tC(e){return e==="auto"?nt.domSupported?"html":"richText":e||"html"}function Uy(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if(ut(n)){var o=df(r||0,n,i);return Vt(o,a?Math.max(Ee(r||0),Ee(n)):t)}else{if(V(n))return i<1?r:n;for(var s=[],u=r,l=n,f=Math.max(u?u.length:0,l.length),h=0;h<f;++h){var c=e.getDimensionInfo(h);if(c&&c.type==="ordinal")s[h]=(i<1&&u?u:l)[h];else{var v=u&&u[h]?u[h]:0,d=l[h],o=df(v,d,i);s[h]=Vt(o,a?Math.max(Ee(v),Ee(d)):t)}}return s}}var Tt=ct(),Yy=function(e,t,r,n){if(n){var i=Tt(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,n.type==="group"&&n.traverse(function(a){var o=Tt(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t})}},yf=1,_f={},bc=ct(),Gu=ct(),Vu=0,io=1,ao=2,be=["emphasis","blur","select"],Aa=["normal","emphasis","blur","select"],$y=10,Xy=9,Ir="highlight",va="downplay",$n="select",ca="unselect",Xn="toggleSelect";function Yr(e){return e!=null&&e!=="none"}var mf=new pi(100);function Sf(e){if(V(e)){var t=mf.get(e);return t||(t=Ul(e,-.1),mf.put(e,t)),t}else if(Iu(e)){var r=O({},e);return r.colorStops=G(e.colorStops,function(n){return{offset:n.offset,color:Ul(n.color,-.1)}}),r}return e}function oo(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function Tc(e){oo(e,"emphasis",ao)}function Mc(e){e.hoverState===ao&&oo(e,"normal",Vu)}function Wu(e){oo(e,"blur",io)}function Cc(e){e.hoverState===io&&oo(e,"normal",Vu)}function qy(e){e.selected=!0}function Zy(e){e.selected=!1}function wf(e,t,r){t(e,r)}function Ne(e,t,r){wf(e,t,r),e.isGroup&&e.traverse(function(n){wf(n,t,r)})}function eC(e,t){switch(t){case"emphasis":e.hoverState=ao;break;case"normal":e.hoverState=Vu;break;case"blur":e.hoverState=io;break;case"select":e.selected=!0}}function Ky(e,t,r,n){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],u=i[s];a[s]=u??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var l=e.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(r)<0&&l.targetName==="style"&&l.saveTo(a,t)}return a}function Qy(e,t,r,n){var i=r&&at(r,"select")>=0,a=!1;if(e instanceof et){var o=bc(e),s=i&&o.selectFill||o.normalFill,u=i&&o.selectStroke||o.normalStroke;if(Yr(s)||Yr(u)){n=n||{};var l=n.style||{};l.fill==="inherit"?(a=!0,n=O({},n),l=O({},l),l.fill=s):!Yr(l.fill)&&Yr(s)?(a=!0,n=O({},n),l=O({},l),l.fill=Sf(s)):!Yr(l.stroke)&&Yr(u)&&(a||(n=O({},n),l=O({},l)),l.stroke=Sf(u)),n.style=l}}if(n&&n.z2==null){a||(n=O({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f??$y)}return n}function Jy(e,t,r){if(r&&r.z2==null){r=O({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??Xy)}return r}function jy(e,t,r){var n=at(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:Ky(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=O({},r),o=O({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Xo(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return Qy(this,e,t,r);if(e==="blur")return jy(this,e,r);if(e==="select")return Jy(this,e,r)}return r}function t_(e){e.stateProxy=Xo;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Xo),r&&(r.stateProxy=Xo)}function bf(e,t){!Ac(e,t)&&!e.__highByOuter&&Ne(e,Tc)}function Tf(e,t){!Ac(e,t)&&!e.__highByOuter&&Ne(e,Mc)}function js(e,t){e.__highByOuter|=1<<(t||0),Ne(e,Tc)}function tu(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ne(e,Mc)}function e_(e){Ne(e,Wu)}function Dc(e){Ne(e,Cc)}function xc(e){Ne(e,qy)}function Lc(e){Ne(e,Zy)}function Ac(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Pc(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=Gu(a),s=i==="series",u=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(u),o.isBlured&&(u.group.traverse(function(l){Cc(l)}),s&&r.push(a)),o.isBlured=!1}),D(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function eu(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(l,f){for(var h=0;h<f.length;h++){var c=l.getItemGraphicEl(f[h]);c&&Dc(c)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];i.eachSeries(function(l){var f=o===l,h=l.coordinateSystem;h&&h.master&&(h=h.master);var c=h&&s?h===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!c||t==="series"&&f)){var v=n.getViewOfSeriesModel(l);if(v.group.traverse(function(p){p.__highByOuter&&f&&t==="self"||Wu(p)}),Ft(t))a(l.getData(),t);else if(z(t))for(var d=it(t),y=0;y<d.length;y++)a(l.getData(d[y]),t[d[y]]);u.push(l),Gu(l).isBlured=!0}}),i.eachComponent(function(l,f){if(l!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(u,!0,i)}})}}function ru(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){Gu(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Wu(a)})}}}function r_(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=ro(i,t);a=(B(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=Tt(o);eu(n,l.focus,l.blurScope,r)}else{var f=e.get(["emphasis","focus"]),h=e.get(["emphasis","blurScope"]);f!=null&&eu(n,f,h,r)}}}function Uu(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var a=n.getModel().getComponent(e,t);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(Tt(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function n_(e,t,r){var n=Tt(e),i=Uu(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&ru(n.componentMainType,n.componentIndex,r),D(a,function(s){return bf(s,t)})):(eu(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&ru(n.componentMainType,n.componentIndex,r),bf(e,t))}function i_(e,t,r){Pc(r);var n=Tt(e),i=Uu(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?D(i,function(a){return Tf(a,t)}):Tf(e,t)}function a_(e,t,r){if(iu(t)){var n=t.dataType,i=e.getData(n),a=ro(i,t);B(a)||(a=[a]),e[t.type===Xn?"toggleSelect":t.type===$n?"select":"unselect"](a,n)}}function Mf(e){var t=e.getAllData();D(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?xc(a):Lc(a)})})}function o_(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();D(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),t.push(s)}})}),t}function s_(e,t,r){Ec(e,!0),Ne(e,t_),l_(e,t,r)}function u_(e){Ec(e,!1)}function rC(e,t,r,n){n?u_(e):s_(e,t,r)}function l_(e,t,r){var n=Tt(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var Cf=["emphasis","blur","select"],f_={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function nC(e,t,r,n){r=r||"itemStyle";for(var i=0;i<Cf.length;i++){var a=Cf[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=n?n(o):o[f_[r]]()}}function Ec(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function nu(e){return!!(e&&e.__highDownDispatcher)}function iC(e,t,r){var n=Tt(e);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=r}function h_(e){var t=_f[e];return t==null&&yf<=32&&(t=_f[e]=yf++),t}function iu(e){var t=e.type;return t===$n||t===ca||t===Xn}function Df(e){var t=e.type;return t===Ir||t===va}function v_(e){var t=bc(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var $r=Fr.CMD,c_=[[],[],[]],xf=Math.sqrt,d_=Math.atan2;function Rc(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,u,l,f=$r.M,h=$r.C,c=$r.L,v=$r.R,d=$r.A,y=$r.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case c:a=1;break;case h:a=3;break;case y:a=2;break;case d:var p=t[4],g=t[5],_=xf(t[0]*t[0]+t[1]*t[1]),m=xf(t[2]*t[2]+t[3]*t[3]),S=d_(-t[1]/m,t[0]/_);r[o]*=_,r[o++]+=p,r[o]*=m,r[o++]+=g,r[o++]*=_,r[o++]*=m,r[o++]+=S,r[o++]+=S,o+=2,s=o;break;case v:l[0]=r[o++],l[1]=r[o++],Ke(l,l,t),r[s++]=l[0],r[s++]=l[1],l[0]+=r[o++],l[1]+=r[o++],Ke(l,l,t),r[s++]=l[0],r[s++]=l[1]}for(u=0;u<a;u++){var b=c_[u];b[0]=r[o++],b[1]=r[o++],Ke(b,b,t),r[s++]=b[0],r[s++]=b[1]}}e.increaseVersion()}}var qo=Math.sqrt,Fi=Math.sin,Bi=Math.cos,wn=Math.PI;function Lf(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function au(e,t){return(e[0]*t[0]+e[1]*t[1])/(Lf(e)*Lf(t))}function Af(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(au(e,t))}function Pf(e,t,r,n,i,a,o,s,u,l,f){var h=u*(wn/180),c=Bi(h)*(e-r)/2+Fi(h)*(t-n)/2,v=-1*Fi(h)*(e-r)/2+Bi(h)*(t-n)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=qo(d),s*=qo(d));var y=(i===a?-1:1)*qo((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,p=y*o*v/s,g=y*-s*c/o,_=(e+r)/2+Bi(h)*p-Fi(h)*g,m=(t+n)/2+Fi(h)*p+Bi(h)*g,S=Af([1,0],[(c-p)/o,(v-g)/s]),b=[(c-p)/o,(v-g)/s],w=[(-1*c-p)/o,(-1*v-g)/s],x=Af(b,w);if(au(b,w)<=-1&&(x=wn),au(b,w)>=1&&(x=0),x<0){var L=Math.round(x/wn*1e6)/1e6;x=wn*2+L%2*wn}f.addData(l,_,m,o,s,S,x,h,a)}var p_=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,g_=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function y_(e){var t=new Fr;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Fr.CMD,u=e.match(p_);if(!u)return t;for(var l=0;l<u.length;l++){for(var f=u[l],h=f.charAt(0),c=void 0,v=f.match(g_)||[],d=v.length,y=0;y<d;y++)v[y]=parseFloat(v[y]);for(var p=0;p<d;){var g=void 0,_=void 0,m=void 0,S=void 0,b=void 0,w=void 0,x=void 0,L=r,T=n,C=void 0,M=void 0;switch(h){case"l":r+=v[p++],n+=v[p++],c=s.L,t.addData(c,r,n);break;case"L":r=v[p++],n=v[p++],c=s.L,t.addData(c,r,n);break;case"m":r+=v[p++],n+=v[p++],c=s.M,t.addData(c,r,n),i=r,a=n,h="l";break;case"M":r=v[p++],n=v[p++],c=s.M,t.addData(c,r,n),i=r,a=n,h="L";break;case"h":r+=v[p++],c=s.L,t.addData(c,r,n);break;case"H":r=v[p++],c=s.L,t.addData(c,r,n);break;case"v":n+=v[p++],c=s.L,t.addData(c,r,n);break;case"V":n=v[p++],c=s.L,t.addData(c,r,n);break;case"C":c=s.C,t.addData(c,v[p++],v[p++],v[p++],v[p++],v[p++],v[p++]),r=v[p-2],n=v[p-1];break;case"c":c=s.C,t.addData(c,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":g=r,_=n,C=t.len(),M=t.data,o===s.C&&(g+=r-M[C-4],_+=n-M[C-3]),c=s.C,L=v[p++],T=v[p++],r=v[p++],n=v[p++],t.addData(c,g,_,L,T,r,n);break;case"s":g=r,_=n,C=t.len(),M=t.data,o===s.C&&(g+=r-M[C-4],_+=n-M[C-3]),c=s.C,L=r+v[p++],T=n+v[p++],r+=v[p++],n+=v[p++],t.addData(c,g,_,L,T,r,n);break;case"Q":L=v[p++],T=v[p++],r=v[p++],n=v[p++],c=s.Q,t.addData(c,L,T,r,n);break;case"q":L=v[p++]+r,T=v[p++]+n,r+=v[p++],n+=v[p++],c=s.Q,t.addData(c,L,T,r,n);break;case"T":g=r,_=n,C=t.len(),M=t.data,o===s.Q&&(g+=r-M[C-4],_+=n-M[C-3]),r=v[p++],n=v[p++],c=s.Q,t.addData(c,g,_,r,n);break;case"t":g=r,_=n,C=t.len(),M=t.data,o===s.Q&&(g+=r-M[C-4],_+=n-M[C-3]),r+=v[p++],n+=v[p++],c=s.Q,t.addData(c,g,_,r,n);break;case"A":m=v[p++],S=v[p++],b=v[p++],w=v[p++],x=v[p++],L=r,T=n,r=v[p++],n=v[p++],c=s.A,Pf(L,T,r,n,w,x,m,S,b,c,t);break;case"a":m=v[p++],S=v[p++],b=v[p++],w=v[p++],x=v[p++],L=r,T=n,r+=v[p++],n+=v[p++],c=s.A,Pf(L,T,r,n,w,x,m,S,b,c,t);break}}(h==="z"||h==="Z")&&(c=s.Z,t.addData(c),r=i,n=a),o=c}return t.toStatic(),t}var Ic=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(et);function Oc(e){return e.setData!=null}function kc(e,t){var r=y_(e),n=O({},t);return n.buildPath=function(i){if(Oc(i)){i.setData(r.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;r.rebuildPath(a,1)}},n.applyTransform=function(i){Rc(r,i),this.dirtyShape()},n}function __(e,t){return new Ic(kc(e,t))}function m_(e,t){var r=kc(e,t),n=function(i){W(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(Ic);return n}function S_(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var a=e[i];r.push(a.getUpdatedPathProxy(!0))}var o=new et(t);return o.createPathProxy(),o.buildPath=function(s){if(Oc(s)){s.appendPath(r);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}function aC(e,t){t=t||{};var r=new et;return e.shape&&r.setShape(e.shape),r.setStyle(e.style),t.bakeTransform?Rc(r.path,e.getComputedTransform()):t.toLocal?r.setLocalTransform(e.getComputedTransform()):r.copyTransform(e),r.buildPath=e.buildPath,r.applyTransform=r.applyTransform,r.z=e.z,r.z2=e.z2,r.zlevel=e.zlevel,r}var Fc=function(e){W(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.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},t.prototype.replace=function(r,n){var i=at(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.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},t.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()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=at(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.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},t.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},t.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},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},t.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},t}(nc);Fc.prototype.type="group";const mi=Fc;var w_=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Bc=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new w_},t.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)},t}(et);Bc.prototype.type="circle";const Yu=Bc;var b_=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),Nc=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new b_},t.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()},t}(et);Nc.prototype.type="ellipse";const zc=Nc;var Hc=Math.PI,Zo=Hc*2,gr=Math.sin,Xr=Math.cos,T_=Math.acos,mt=Math.atan2,Ef=Math.abs,qn=Math.sqrt,Hn=Math.max,de=Math.min,ee=1e-4;function M_(e,t,r,n,i,a,o,s){var u=r-e,l=n-t,f=o-i,h=s-a,c=h*u-f*l;if(!(c*c<ee))return c=(f*(t-a)-h*(e-i))/c,[e+c*u,t+c*l]}function Ni(e,t,r,n,i,a,o){var s=e-r,u=t-n,l=(o?a:-a)/qn(s*s+u*u),f=l*u,h=-l*s,c=e+f,v=t+h,d=r+f,y=n+h,p=(c+d)/2,g=(v+y)/2,_=d-c,m=y-v,S=_*_+m*m,b=i-a,w=c*y-d*v,x=(m<0?-1:1)*qn(Hn(0,b*b*S-w*w)),L=(w*m-_*x)/S,T=(-w*_-m*x)/S,C=(w*m+_*x)/S,M=(-w*_+m*x)/S,A=L-p,P=T-g,E=C-p,I=M-g;return A*A+P*P>E*E+I*I&&(L=C,T=M),{cx:L,cy:T,x0:-f,y0:-h,x1:L*(i/b-1),y1:T*(i/b-1)}}function C_(e){var t;if(B(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function D_(e,t){var r,n=Hn(t.r,0),i=Hn(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=Ef(l-u),d=v>Zo&&v%Zo;if(d>ee&&(v=d),!(n>ee))e.moveTo(f,h);else if(v>Zo-ee)e.moveTo(f+n*Xr(u),h+n*gr(u)),e.arc(f,h,n,u,l,!c),i>ee&&(e.moveTo(f+i*Xr(l),h+i*gr(l)),e.arc(f,h,i,l,u,c));else{var y=void 0,p=void 0,g=void 0,_=void 0,m=void 0,S=void 0,b=void 0,w=void 0,x=void 0,L=void 0,T=void 0,C=void 0,M=void 0,A=void 0,P=void 0,E=void 0,I=n*Xr(u),R=n*gr(u),Y=i*Xr(l),F=i*gr(l),k=v>ee;if(k){var U=t.cornerRadius;U&&(r=C_(U),y=r[0],p=r[1],g=r[2],_=r[3]);var rt=Ef(n-i)/2;if(m=de(rt,g),S=de(rt,_),b=de(rt,y),w=de(rt,p),T=x=Hn(m,S),C=L=Hn(b,w),(x>ee||L>ee)&&(M=n*Xr(l),A=n*gr(l),P=i*Xr(u),E=i*gr(u),v<Hc)){var tt=M_(I,R,P,E,M,A,Y,F);if(tt){var lt=I-tt[0],Ut=R-tt[1],He=M-tt[0],tr=A-tt[1],er=1/gr(T_((lt*He+Ut*tr)/(qn(lt*lt+Ut*Ut)*qn(He*He+tr*tr)))/2),zr=qn(tt[0]*tt[0]+tt[1]*tt[1]);T=de(x,(n-zr)/(er+1)),C=de(L,(i-zr)/(er-1))}}}if(!k)e.moveTo(f+I,h+R);else if(T>ee){var Nt=de(g,T),dt=de(_,T),H=Ni(P,E,I,R,n,Nt,c),X=Ni(M,A,Y,F,n,dt,c);e.moveTo(f+H.cx+H.x0,h+H.cy+H.y0),T<x&&Nt===dt?e.arc(f+H.cx,h+H.cy,T,mt(H.y0,H.x0),mt(X.y0,X.x0),!c):(Nt>0&&e.arc(f+H.cx,h+H.cy,Nt,mt(H.y0,H.x0),mt(H.y1,H.x1),!c),e.arc(f,h,n,mt(H.cy+H.y1,H.cx+H.x1),mt(X.cy+X.y1,X.cx+X.x1),!c),dt>0&&e.arc(f+X.cx,h+X.cy,dt,mt(X.y1,X.x1),mt(X.y0,X.x0),!c))}else e.moveTo(f+I,h+R),e.arc(f,h,n,u,l,!c);if(!(i>ee)||!k)e.lineTo(f+Y,h+F);else if(C>ee){var Nt=de(y,C),dt=de(p,C),H=Ni(Y,F,M,A,i,-dt,c),X=Ni(I,R,P,E,i,-Nt,c);e.lineTo(f+H.cx+H.x0,h+H.cy+H.y0),C<L&&Nt===dt?e.arc(f+H.cx,h+H.cy,C,mt(H.y0,H.x0),mt(X.y0,X.x0),!c):(dt>0&&e.arc(f+H.cx,h+H.cy,dt,mt(H.y0,H.x0),mt(H.y1,H.x1),!c),e.arc(f,h,i,mt(H.cy+H.y1,H.cx+H.x1),mt(X.cy+X.y1,X.cx+X.x1),c),Nt>0&&e.arc(f+X.cx,h+X.cy,Nt,mt(X.y1,X.x1),mt(X.y0,X.x0),!c))}else e.lineTo(f+Y,h+F),e.arc(f,h,i,l,u,c)}e.closePath()}}}var x_=function(){function e(){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 e}(),Gc=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new x_},t.prototype.buildPath=function(r,n){D_(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(et);Gc.prototype.type="sector";const Vc=Gc;var L_=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Wc=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new L_},t.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)},t}(et);Wc.prototype.type="ring";const Uc=Wc;function A_(e,t,r,n){var i=[],a=[],o=[],s=[],u,l,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=e.length;c<v;c++)Cr(f,f,e[c]),Dr(h,h,e[c]);Cr(f,f,n[0]),Dr(h,h,n[1])}for(var c=0,v=e.length;c<v;c++){var d=e[c];if(r)u=e[c?c-1:v-1],l=e[(c+1)%v];else if(c===0||c===v-1){i.push(h0(e[c]));continue}else u=e[c-1],l=e[c+1];v0(a,l,u),Co(a,a,t);var y=Hs(d,u),p=Hs(d,l),g=y+p;g!==0&&(y/=g,p/=g),Co(o,a,-y),Co(s,a,p);var _=Bl([],d,o),m=Bl([],d,s);n&&(Dr(_,_,f),Cr(_,_,h),Dr(m,m,f),Cr(m,m,h)),i.push(_),i.push(m)}return r&&i.push(i.shift()),i}function Yc(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=A_(i,n,r,t.smoothConstraint);e.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];e.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var P_=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),$c=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new P_},t.prototype.buildPath=function(r,n){Yc(r,n,!0)},t}(et);$c.prototype.type="polygon";const Xc=$c;var E_=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),qc=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new E_},t.prototype.buildPath=function(r,n){Yc(r,n,!1)},t}(et);qc.prototype.type="polyline";const $u=qc;var R_={},I_=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Zc=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new I_},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var u=uc(R_,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))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(et);Zc.prototype.type="line";const Xu=Zc;var Pt=[],O_=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function Rf(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?Gl:gt)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?Gl:gt)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?Vl:wt)(e.x1,e.cpx1,e.x2,t),(r?Vl:wt)(e.y1,e.cpy1,e.y2,t)]}var Kc=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new O_},t.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,h=n.cpy2,c=n.percent;c!==0&&(r.moveTo(i,a),f==null||h==null?(c<1&&(Da(i,u,o,c,Pt),u=Pt[1],o=Pt[2],Da(a,l,s,c,Pt),l=Pt[1],s=Pt[2]),r.quadraticCurveTo(u,l,o,s)):(c<1&&(Ca(i,u,f,o,c,Pt),u=Pt[1],f=Pt[2],o=Pt[3],Ca(a,l,h,s,c,Pt),l=Pt[1],h=Pt[2],s=Pt[3]),r.bezierCurveTo(u,l,f,h,o,s)))},t.prototype.pointAt=function(r){return Rf(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=Rf(this.shape,r,!0);return p0(n,n)},t}(et);Kc.prototype.type="bezier-curve";const Qc=Kc;var k_=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Jc=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new k_},t.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),h=Math.sin(s);r.moveTo(f*o+i,h*o+a),r.arc(i,a,o,s,u,!l)},t}(et);Jc.prototype.type="arc";const qu=Jc;var F_=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.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()},t.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)},t.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),et.prototype.getBoundingRect.call(this)},t}(et);const B_=F_;var N_=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}();const jc=N_;var z_=function(e){W(t,e);function t(r,n,i,a,o,s){var u=e.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 t}(jc);const H_=z_;var G_=function(e){W(t,e);function t(r,n,i,a,o){var s=e.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 t}(jc);const V_=G_;var yr=[0,0],_r=[0,0],zi=new N,Hi=new N,W_=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new N;for(var n=0;n<2;n++)this._axes[n]=new N;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,u=o+t.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);N.sub(i[0],n[1],n[0]),N.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])},e.prototype.intersect=function(t,r){var n=!0,i=!r;return zi.set(1/0,1/0),Hi.set(0,0),!this._intersectCheckOneSide(this,t,zi,Hi,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,zi,Hi,i,-1)&&(n=!1,i)||i||N.copy(r,n?zi:Hi),n},e.prototype._intersectCheckOneSide=function(t,r,n,i,a,o){for(var s=!0,u=0;u<2;u++){var l=this._axes[u];if(this._getProjMinMaxOnAxis(u,t._corners,yr),this._getProjMinMaxOnAxis(u,r._corners,_r),yr[1]<_r[0]||yr[0]>_r[1]){if(s=!1,a)return s;var f=Math.abs(_r[0]-yr[1]),h=Math.abs(yr[0]-_r[1]);Math.min(f,h)>i.len()&&(f<h?N.scale(i,l,-f*o):N.scale(i,l,h*o))}else if(n){var f=Math.abs(_r[0]-yr[1]),h=Math.abs(yr[0]-_r[1]);Math.min(f,h)<n.len()&&(f<h?N.scale(n,l,f*o):N.scale(n,l,-h*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,u=o,l=1;l<r.length;l++){var f=r[l].dot(i)+a[t];s=Math.min(f,s),u=Math.max(f,u)}n[0]=s,n[1]=u},e}();const Pa=W_;var U_=[],Y_=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.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])},t.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}},t.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(U_)),r.union(a)}this._rect=r}return this._rect},t.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},t}(yi);const $_=Y_;var td=ct();function X_(e,t,r,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),u=e==="update";if(s){var l=void 0,f=void 0,h=void 0;n?(l=q(n.duration,200),f=q(n.easing,"cubicOut"),h=0):(l=t.getShallow(u?"animationDurationUpdate":"animationDuration"),f=t.getShallow(u?"animationEasingUpdate":"animationEasing"),h=t.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),Z(h)&&(h=h(r,i)),Z(l)&&(l=l(r));var c={duration:l||0,delay:h,easing:f};return c}else return null}function Zu(e,t,r,n,i,a,o){var s=!1,u;Z(i)?(o=a,a=i,i=null):z(i)&&(a=i.cb,o=i.during,s=i.isFrom,u=i.removeOpt,i=i.dataIndex);var l=e==="leave";l||t.stopAnimation("leave");var f=X_(e,n,i,l?u||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(f&&f.duration>0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function oi(e,t,r,n,i,a){Zu("update",e,t,r,n,i,a)}function Ea(e,t,r,n,i,a){Zu("enter",e,t,r,n,i,a)}function sn(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function ed(e,t,r,n,i,a){sn(e)||Zu("leave",e,t,r,n,i,a)}function If(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),ed(e,{style:{opacity:0}},t,r,n)}function q_(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||If(i,t,r,n)}):If(e,t,r,n)}function oC(e){td(e).oldStyle=e.style}function sC(e){return td(e).oldStyle}var Ra=Math.max,Ia=Math.min,ou={};function Z_(e){return et.extend(e)}var K_=m_;function Q_(e,t){return K_(e,t)}function le(e,t){ou[e]=t}function J_(e){if(ou.hasOwnProperty(e))return ou[e]}function Ku(e,t,r,n){var i=__(e,t);return r&&(n==="center"&&(r=nd(r,i.getBoundingRect())),id(i,r)),i}function rd(e,t,r){var n=new vn({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(nd(t,a))}}});return n}function nd(e,t){var r=t.width/t.height,n=e.height*r,i;n<=e.width?i=e.height:(n=e.width,i=n/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var j_=S_;function id(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function tm(e,t){return uc(e,e,{lineWidth:t}),e}function em(e){return lc(e.shape,e.shape,e.style),e}var rm=xr;function nm(e,t){for(var r=Fu([]);e&&e!==t;)Un(r,e.getLocalTransform(),r),e=e.parent;return r}function ad(e,t,r){return t&&!Ft(t)&&(t=to.getLocalTransform(t)),r&&(t=ja([],t)),Ke([],e,t)}function im(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return a=ad(a,t,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Of(e){return!e.isGroup}function am(e){return e.shape!=null}function om(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(u){Of(u)&&u.anid&&(s[u.anid]=u)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return am(o)&&(s.shape=O({},o.shape)),s}var a=n(e);t.traverse(function(o){if(Of(o)&&o.anid){var s=a[o.anid];if(s){var u=i(o);o.attr(i(s)),oi(o,u,r,Tt(o).dataIndex)}}})}function sm(e,t){return G(e,function(r){var n=r[0];n=Ra(n,t.x),n=Ia(n,t.x+t.width);var i=r[1];return i=Ra(i,t.y),i=Ia(i,t.y+t.height),[n,i]})}function um(e,t){var r=Ra(e.x,t.x),n=Ia(e.x+e.width,t.x+t.width),i=Ra(e.y,t.y),a=Ia(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function lm(e,t,r){var n=O({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),ht(i,r),new vn(n)):Ku(e.replace("path://",""),n,r,"center")}function fm(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(od(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function od(e,t,r,n,i,a,o,s){var u=r-e,l=n-t,f=o-i,h=s-a,c=Ko(f,h,u,l);if(hm(c))return!1;var v=e-i,d=t-a,y=Ko(v,d,u,l)/c;if(y<0||y>1)return!1;var p=Ko(v,d,f,h)/c;return!(p<0||p>1)}function Ko(e,t,r,n){return e*n-r*t}function hm(e){return e<=1e-6&&e>=-1e-6}function vm(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=V(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var u=e.formatterParamsExtra;u&&D(it(u),function(f){fn(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=Tt(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:n,option:ht({content:n,formatterParams:s},i)}}function kf(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function sd(e,t){if(e)if(B(e))for(var r=0;r<e.length;r++)kf(e[r],t);else kf(e,t)}le("circle",Yu);le("ellipse",zc);le("sector",Vc);le("ring",Uc);le("polygon",Xc);le("polyline",$u);le("rect",Re);le("line",Xu);le("bezierCurve",Qc);le("arc",qu);const uC=Object.freeze(Object.defineProperty({__proto__:null,Arc:qu,BezierCurve:Qc,BoundingRect:j,Circle:Yu,CompoundPath:B_,Ellipse:zc,Group:mi,Image:vn,IncrementalDisplayable:$_,Line:Xu,LinearGradient:H_,OrientedBoundingRect:Pa,Path:et,Point:N,Polygon:Xc,Polyline:$u,RadialGradient:V_,Rect:Re,Ring:Uc,Sector:Vc,Text:ii,applyTransform:ad,clipPointsByRect:sm,clipRectByRect:um,createIcon:lm,extendPath:Q_,extendShape:Z_,getShapeClass:J_,getTransform:nm,groupTransition:om,initProps:Ea,isElementRemoved:sn,lineLineIntersect:od,linePolygonIntersect:fm,makeImage:rd,makePath:Ku,mergePath:j_,registerShape:le,removeElement:ed,removeElementWithFadeOut:q_,resizePath:id,setTooltipConfig:vm,subPixelOptimize:rm,subPixelOptimizeLine:tm,subPixelOptimizeRect:em,transformDirection:im,traverseElements:sd,updateProps:oi},Symbol.toStringTag,{value:"Module"}));var so={};function ud(e,t){for(var r=0;r<be.length;r++){var n=be[r],i=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function su(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Z(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var u={normal:s},l=0;l<be.length;l++){var f=be[l],h=t[f];u[f]=q(n?n.getFormattedLabel(i,f,null,a,h&&h.get("formatter")):null,s)}return u}function lC(e,t,r,n){r=r||so;for(var i=e instanceof ii,a=!1,o=0;o<Aa.length;o++){var s=t[Aa[o]];if(s&&s.getShallow("show")){a=!0;break}}var u=i?e:e.getTextContent();if(a){i||(u||(u=new ii,e.setTextContent(u)),e.stateProxy&&(u.stateProxy=e.stateProxy));var l=su(r,t),f=t.normal,h=!!f.getShallow("show"),c=Ff(f,n&&n.normal,r,!1,!i);c.text=l.normal,i||e.setTextConfig(Bf(f,r,!1));for(var o=0;o<be.length;o++){var v=be[o],s=t[v];if(s){var d=u.ensureState(v),y=!!q(s.getShallow("show"),h);if(y!==h&&(d.ignore=!y),d.style=Ff(s,n&&n[v],r,!0,!i),d.style.text=l[v],!i){var p=e.ensureState(v);p.textConfig=Bf(s,r,!0)}}}u.silent=!!f.getShallow("silent"),u.style.x!=null&&(c.x=u.style.x),u.style.y!=null&&(c.y=u.style.y),u.ignore=!h,u.useStyle(c),u.dirty(),r.enableTextSetter&&(uo(u).setLabelText=function(g){var _=su(r,t,g);ud(u,_)})}else u&&(u.ignore=!0);e.dirty()}function fC(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<be.length;n++){var i=be[n];r[i]=e.getModel([i,t])}return r}function Ff(e,t,r,n,i){var a={};return cm(a,e,r,n,i),t&&O(a,t),a}function Bf(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=q(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function cm(e,t,r,n,i){r=r||so;var a=t.ecModel,o=a&&a.option.textStyle,s=dm(t),u;if(s){u={};for(var l in s)if(s.hasOwnProperty(l)){var f=t.getModel(["rich",l]);Gf(u[l]={},f,o,r,n,i,!1,!0)}}u&&(e.rich=u);var h=t.get("overflow");h&&(e.overflow=h);var c=t.get("minMargin");c!=null&&(e.margin=c),Gf(e,t,o,r,n,i,!0,!1)}function dm(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||so).rich;if(r){t=t||{};for(var n=it(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var Nf=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],zf=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Hf=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Gf(e,t,r,n,i,a,o,s){r=!i&&r||so;var u=n&&n.inheritColor,l=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=q(t.getShallow("opacity"),r.opacity);(l==="inherit"||l==="auto")&&(u?l=u:l=null),(f==="inherit"||f==="auto")&&(u?f=u:f=null),a||(l=l||r.color,f=f||r.textBorderColor),l!=null&&(e.fill=l),f!=null&&(e.stroke=f);var c=q(t.getShallow("textBorderWidth"),r.textBorderWidth);c!=null&&(e.lineWidth=c);var v=q(t.getShallow("textBorderType"),r.textBorderType);v!=null&&(e.lineDash=v);var d=q(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);d!=null&&(e.lineDashOffset=d),!i&&h==null&&!s&&(h=n&&n.defaultOpacity),h!=null&&(e.opacity=h),!i&&!a&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var y=0;y<Nf.length;y++){var p=Nf[y],g=q(t.getShallow(p),r[p]);g!=null&&(e[p]=g)}for(var y=0;y<zf.length;y++){var p=zf[y],g=t.getShallow(p);g!=null&&(e[p]=g)}if(e.verticalAlign==null){var _=t.getShallow("baseline");_!=null&&(e.verticalAlign=_)}if(!o||!n.disableBox){for(var y=0;y<Hf.length;y++){var p=Hf[y],g=t.getShallow(p);g!=null&&(e[p]=g)}var m=t.getShallow("borderType");m!=null&&(e.borderDash=m),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&u&&(e.backgroundColor=u),(e.borderColor==="auto"||e.borderColor==="inherit")&&u&&(e.borderColor=u)}}function pm(e,t){var r=t&&t.getModel("textStyle");return Ae([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var uo=ct();function hC(e,t,r,n){if(e){var i=uo(e);i.prevValue=i.value,i.value=r;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function gm(e,t,r,n,i){var a=uo(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=q(a.interpolatedValue,a.prevValue),u=a.value;function l(f){var h=Uy(r,a.precision,s,u,f);a.interpolatedValue=f===1?null:h;var c=su({labelDataIndex:t,labelFetcher:i,defaultText:o?o(h):h+""},a.statesModels,h);ud(e,c)}e.percent=0,(a.prevValue==null?Ea:oi)(e,{percent:1},n,t,null,l)}var ym=["textStyle","color"],Qo=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Jo=new ii,_m=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(ym):null)},e.prototype.getFont=function(){return pm({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Qo.length;n++)r[Qo[n]]=this.getShallow(Qo[n]);return Jo.useStyle(r),Jo.update(),Jo.getBoundingRect()},e}();const mm=_m;var ld=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Sm=ei(ld),wm=function(){function e(){}return e.prototype.getLineStyle=function(t){return Sm(this,t)},e}(),fd=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],bm=ei(fd),Tm=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return bm(this,t,r)},e}(),Br=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){ft(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,i=n==null?n:n[t];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(J(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!nt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();ku(Br);Vg(Br);Fe(Br,wm);Fe(Br,Tm);Fe(Br,Xg);Fe(Br,mm);const Ie=Br;function bn(e){return e==null?0:e.length||1}function Vf(e){return e}var Mm=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||Vf,this._newKeyGetter=i||Vf,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],u=n[s],l=bn(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)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,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],h=bn(l),c=bn(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,l),i[u]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,l),i[u]=null;else if(h===1&&c===1)this._update&&this._update(f,l),i[u]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,l),i[u]=null;else if(h>1)for(var v=0;v<h;v++)this._remove&&this._remove(l[v]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],a=r[i],o=bn(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}},e.prototype._initIndexMap=function(t,r,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!r){var u=r[s],l=bn(u);l===0?(r[s]=o,a&&n.push(s)):l===1?r[s]=[u,o]:u.push(o)}}},e}();const Cm=Mm;var hd=$(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Jt="original",Bt="arrayRows",fe="objectRows",Te="keyedColumns",Je="typedArray",vd="unknown",Oe="column",cn="row",pt={Must:1,Might:2,Not:3},cd=ct();function Dm(e){cd(e).datasetMap=$()}function xm(e,t,r){var n={},i=Qu(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,u=cd(s).datasetMap,l=i.uid+"_"+r.seriesLayoutBy,f,h;e=e.slice(),D(e,function(y,p){var g=z(y)?y:e[p]={name:y};g.type==="ordinal"&&f==null&&(f=p,h=d(g)),n[g.name]=[]});var c=u.get(l)||u.set(l,{categoryWayDim:h,valueWayDim:0});D(e,function(y,p){var g=y.name,_=d(y);if(f==null){var m=c.valueWayDim;v(n[g],m,_),v(o,m,_),c.valueWayDim+=_}else if(f===p)v(n[g],0,_),v(a,0,_);else{var m=c.categoryWayDim;v(n[g],m,_),v(o,m,_),c.categoryWayDim+=_}});function v(y,p,g){for(var _=0;_<g;_++)y.push(p+_)}function d(y){var p=y.dimsDef;return p?p.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function vC(e,t,r){var n={},i=Qu(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===fe||a===Te)&&D(o,function(f,h){(z(f)?f.name:f)==="name"&&(s=h)});var u=function(){for(var f={},h={},c=[],v=0,d=Math.min(5,r);v<d;v++){var y=pd(t.data,a,t.seriesLayoutBy,o,t.startIndex,v);c.push(y);var p=y===pt.Not;if(p&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!p&&c[f.n]===pt.Not)&&(f.n=v),g(f)&&c[f.n]!==pt.Not)return f;p||(y===pt.Might&&h.v==null&&v!==s&&(h.v=v),(h.n==null||h.n===h.v)&&(h.n=v))}function g(_){return _.v!=null&&_.n!=null}return g(f)?f:g(h)?h:null}();if(u){n.value=[u.v];var l=s??u.n;n.itemName=[l],n.seriesName=[l]}return n}function Qu(e){var t=e.get("data",!0);if(!t)return no(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Lr).models[0]}function Lm(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:no(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Lr).models}function dd(e,t){return pd(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function pd(e,t,r,n,i,a){var o,s=5;if(Wt(e))return pt.Not;var u,l;if(n){var f=n[a];z(f)?(u=f.name,l=f.type):V(f)&&(u=f)}if(l!=null)return l==="ordinal"?pt.Must:pt.Not;if(t===Bt){var h=e;if(r===cn){for(var c=h[a],v=0;v<(c||[]).length&&v<s;v++)if((o=S(c[i+v]))!=null)return o}else for(var v=0;v<h.length&&v<s;v++){var d=h[i+v];if(d&&(o=S(d[a]))!=null)return o}}else if(t===fe){var y=e;if(!u)return pt.Not;for(var v=0;v<y.length&&v<s;v++){var p=y[v];if(p&&(o=S(p[u]))!=null)return o}}else if(t===Te){var g=e;if(!u)return pt.Not;var c=g[u];if(!c||Wt(c))return pt.Not;for(var v=0;v<c.length&&v<s;v++)if((o=S(c[v]))!=null)return o}else if(t===Jt)for(var _=e,v=0;v<_.length&&v<s;v++){var p=_[v],m=_i(p);if(!B(m))return pt.Not;if((o=S(m[a]))!=null)return o}function S(b){var w=V(b);if(b!=null&&isFinite(b)&&b!=="")return w?pt.Might:pt.Not;if(w&&b!=="-")return pt.Must}return pt.Not}var lo=function(){function e(t){this.data=t.data||(t.sourceFormat===Te?{}:[]),this.sourceFormat=t.sourceFormat||vd,this.seriesLayoutBy=t.seriesLayoutBy||Oe,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&dd(this,n)===pt.Must&&(i.type="ordinal")}}return e}();function Ju(e){return e instanceof lo}function uu(e,t,r){r=r||gd(e);var n=t.seriesLayoutBy,i=Pm(e,r,n,t.sourceHeader,t.dimensions),a=new lo({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:J(t)});return a}function ju(e){return new lo({data:e,sourceFormat:Wt(e)?Je:Jt})}function Am(e){return new lo({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:J(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function gd(e){var t=vd;if(Wt(e))t=Je;else if(B(e)){e.length===0&&(t=Bt);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(B(i)){t=Bt;break}else if(z(i)){t=fe;break}}}}else if(z(e)){for(var a in e)if(fn(e,a)&&Ft(e[a])){t=Te;break}}return t}function Pm(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:Wf(i),startIndex:o,dimensionsDetectedCount:a};if(t===Bt){var s=e;n==="auto"||n==null?Uf(function(l){l!=null&&l!=="-"&&(V(l)?o==null&&(o=1):o=0)},r,s,10):o=ut(n)?n:n?1:0,!i&&o===1&&(i=[],Uf(function(l,f){i[f]=l!=null?l+"":""},r,s,1/0)),a=i?i.length:r===cn?s.length:s[0]?s[0].length:null}else if(t===fe)i||(i=Em(e));else if(t===Te)i||(i=[],D(e,function(l,f){i.push(f)}));else if(t===Jt){var u=_i(e[0]);a=B(u)&&u.length||1}return{startIndex:o,dimensionsDefine:Wf(i),dimensionsDetectedCount:a}}function Em(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return it(r)}function Wf(e){if(e){var t=$();return G(e,function(r,n){r=z(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=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function Uf(e,t,r,n){if(t===cn)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)e(a[i],i)}function yd(e){var t=e.sourceFormat;return t===fe||t===Te}var mr,Sr,wr,Yf,$f,_d=function(){function e(t,r){var n=Ju(t)?t:ju(t);this._source=n;var i=this._data=n.data;n.sourceFormat===Je&&(this._offset=0,this._dimSize=r,this._data=i),$f(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;$f=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,h=u.startIndex,c=u.dimensionsDefine,v=Yf[tl(l,f)];if(O(o,v),l===Je)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=md(l,f);o.getItem=Ot(d,null,s,h,c);var y=Sd(l,f);o.count=Ot(y,null,s,h,c)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var u=this._data,l=this._dimSize,f=l*o,h=0;h<l;h++)s[h]=u[f+h];return s},n=function(o,s,u,l){for(var f=this._data,h=this._dimSize,c=0;c<h;c++){for(var v=l[c],d=v[0]==null?1/0:v[0],y=v[1]==null?-1/0:v[1],p=s-o,g=u[c],_=0;_<p;_++){var m=f[_*h+c];g[o+_]=m,m<d&&(d=m),m>y&&(y=m)}v[0]=d,v[1]=y}},i=function(){return this._data?this._data.length/this._dimSize:0};Yf=(t={},t[Bt+"_"+Oe]={pure:!0,appendData:a},t[Bt+"_"+cn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[fe]={pure:!0,appendData:a},t[Te]={pure:!0,appendData:function(o){var s=this._data;D(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[Jt]={appendData:a},t[Je]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),Xf=function(e,t,r,n){return e[n]},Rm=(mr={},mr[Bt+"_"+Oe]=function(e,t,r,n){return e[n+t]},mr[Bt+"_"+cn]=function(e,t,r,n,i){n+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var u=o[s];a[s]=u?u[n]:null}return a},mr[fe]=Xf,mr[Te]=function(e,t,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,u=e[s];a[o]=u?u[n]:null}return a},mr[Jt]=Xf,mr);function md(e,t){var r=Rm[tl(e,t)];return r}var qf=function(e,t,r){return e.length},Im=(Sr={},Sr[Bt+"_"+Oe]=function(e,t,r){return Math.max(0,e.length-t)},Sr[Bt+"_"+cn]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},Sr[fe]=qf,Sr[Te]=function(e,t,r){var n=r[0].name,i=e[n];return i?i.length:0},Sr[Jt]=qf,Sr);function Sd(e,t){var r=Im[tl(e,t)];return r}var jo=function(e,t,r){return e[t]},Om=(wr={},wr[Bt]=jo,wr[fe]=function(e,t,r){return e[r]},wr[Te]=jo,wr[Jt]=function(e,t,r){var n=_i(e);return n instanceof Array?n[t]:n},wr[Je]=jo,wr);function wd(e){var t=Om[e];return t}function tl(e,t){return e===Bt?e+"_"+t:e}function Oa(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=i.getDimensionProperty(o);return wd(a)(n,o,s)}else{var u=n;return a===Jt&&(u=_i(n)),u}}}}var km=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function Fm(e,t){var r={},n=r.encode={},i=$(),a=[],o=[],s={};D(e.dimensions,function(c){var v=e.getDimensionInfo(c),d=v.coordDim;if(d){var y=v.coordDimIndex;ts(n,d)[y]=c,v.isExtraCoord||(i.set(d,1),Nm(v.type)&&(a[0]=c),ts(s,d)[y]=e.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}hd.each(function(p,g){var _=ts(n,g),m=v.otherDims[g];m!=null&&m!==!1&&(_[m]=v.name)})});var u=[],l={};i.each(function(c,v){var d=n[v];l[v]=d[0],u=u.concat(d)}),r.dataDimsOnCoord=u,r.dataDimIndicesOnCoord=G(u,function(c){return e.getDimensionInfo(c).storeDimIndex}),r.encodeFirstDimNotExtra=l;var f=n.label;f&&f.length&&(a=f.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new km(s,t),r}function ts(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function Bm(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function Nm(e){return!(e==="ordinal"||e==="time")}var zm=function(){function e(t){this.otherDims={},t!=null&&O(this,t)}return e}();const da=zm;function pa(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!ut(e)&&e!=null&&e!=="-"&&(e=+ke(e)),e==null||e===""?NaN:+e)}$({number:function(e){return parseFloat(e)},time:function(e){return+ke(e)},trim:function(e){return V(e)?Ae(e):e}});var Hm=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=ut(t)?t:La(t),i=ut(r)?r:La(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=V(t),u=V(r);s&&(n=u?t:0),u&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),fo="undefined",Gm=typeof Uint32Array===fo?Array:Uint32Array,Vm=typeof Uint16Array===fo?Array:Uint16Array,bd=typeof Int32Array===fo?Array:Int32Array,Zf=typeof Float64Array===fo?Array:Float64Array,Td={float:Zf,int:bd,ordinal:Array,number:Array,time:Zf},es;function Tn(e){return e>65535?Gm:Vm}function qr(){return[1/0,-1/0]}function Wm(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Kf(e,t,r,n,i){var a=Td[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var u=new a(n),l=0;l<s;l++)u[l]=o[l];e[t]=u}}else e[t]=new a(n)}var lu=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=$()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=es[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],yd(i),this._dimensions=G(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(t,a),this._chunks[a]=new Td[r||"float"](this._rawCount),this._rawExtent[a]=qr(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=qr());for(var u=a[t],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"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),u=s+Math.max(t.length,r||0),l=0;l<a;l++){var f=i[l];Kf(n,l,f.type,u,!0)}for(var h=[],c=s;c<u;c++)for(var v=c-s,d=0;d<a;d++){var f=i[d],y=es.arrayRows.call(this,t[v]||h,f.property,v,d);n[d][c]=y;var p=o[d];y<p[0]&&(p[0]=y),y>p[1]&&(p[1]=y)}return this._rawCount=this._count=u,{start:s,end:u}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=G(o,function(_){return _.property}),f=0;f<s;f++){var h=o[f];u[f]||(u[f]=qr()),Kf(a,f,h.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,u);else for(var c=[],v=t;v<r;v++){c=i.getItem(v,c);for(var d=0;d<s;d++){var y=a[d],p=this._dimValueGetter(c,l[d],v,d);y[v]=p;var g=u[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],i=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<t)i=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,u=-1,l=0,f=0,h=this.count();f<h;f++){var c=this.getRawIndex(f),v=r-a[c],d=Math.abs(v);d<=n&&((d<s||d===s&&v>=0&&u<0)&&(s=d,u=v,l=0),v===u&&(o[l++]=f))}return o.length=l,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=Tn(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Tn(n._rawCount),o=new a(i),s=[],u=t.length,l=0,f=t[0],h=n._chunks,c=0;c<i;c++){var v=void 0,d=n.getRawIndex(c);if(u===0)v=r(c);else if(u===1){var y=h[f][d];v=r(y,c)}else{for(var p=0;p<u;p++)s[p]=h[t[p]][d];s[p]=c,v=r.apply(null,s)}v&&(o[l++]=d)}return l<i&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=it(t),a=i.length;if(!a)return this;var o=r.count(),s=Tn(r._rawCount),u=new s(o),l=0,f=i[0],h=t[f][0],c=t[f][1],v=r._chunks,d=!1;if(!r._indices){var y=0;if(a===1){for(var p=v[i[0]],g=0;g<n;g++){var _=p[g];(_>=h&&_<=c||isNaN(_))&&(u[l++]=y),y++}d=!0}else if(a===2){for(var p=v[i[0]],m=v[i[1]],S=t[i[1]][0],b=t[i[1]][1],g=0;g<n;g++){var _=p[g],w=m[g];(_>=h&&_<=c||isNaN(_))&&(w>=S&&w<=b||isNaN(w))&&(u[l++]=y),y++}d=!0}}if(!d)if(a===1)for(var g=0;g<o;g++){var x=r.getRawIndex(g),_=v[i[0]][x];(_>=h&&_<=c||isNaN(_))&&(u[l++]=x)}else for(var g=0;g<o;g++){for(var L=!0,x=r.getRawIndex(g),T=0;T<a;T++){var C=i[T],_=v[C][x];(_<t[C][0]||_>t[C][1])&&(L=!1)}L&&(u[l++]=r.getRawIndex(g))}return l<o&&(r._indices=u),r._count=l,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var i=t._chunks,a=[],o=r.length,s=t.count(),u=[],l=t._rawExtent,f=0;f<r.length;f++)l[r[f]]=qr();for(var h=0;h<s;h++){for(var c=t.getRawIndex(h),v=0;v<o;v++)u[v]=i[r[v]][c];u[o]=h;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 y=r[f],p=d[f],g=l[y],_=i[y];_&&(_[c]=p),p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),f,h,c,v=new(Tn(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 y=Math.min(d+u,o-1),p=Math.min(d+u*2,o),g=(p+y)/2,_=0,m=y;m<p;m++){var S=this.getRawIndex(m),b=a[S];isNaN(b)||(_+=b)}_/=p-y;var w=d,x=Math.min(d+u,o),L=d-1,T=a[l];f=-1,c=w;for(var C=-1,M=0,m=w;m<x;m++){var S=this.getRawIndex(m),b=a[S];if(isNaN(b)){M++,C<0&&(C=S);continue}h=Math.abs((L-g)*(b-T)-(L-m)*(_-T)),h>f&&(f=h,c=S)}M>0&&M<x-w&&(v[s++]=Math.min(C,c),c=Math.max(C,c)),v[s++]=c,l=c}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],u=Math.floor(1/r),l=o[t],f=this.count(),h=a._rawExtent[t]=qr(),c=new(Tn(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 y=0;y<u;y++){var p=this.getRawIndex(d+y);s[y]=l[p]}var g=n(s),_=this.getRawIndex(Math.min(d+i(s,g)||0,f-1));l[_]=g,g<h[0]&&(h[0]=g),g>h[1]&&(h[1]=g),c[v++]=_}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[t[0]][s],a);break;case 2:r(i[t[0]][s],i[t[1]][s],a);break;default:for(var u=0,l=[];u<n;u++)l[u]=i[t[u]][s];l[u]=a,r.apply(null,l)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=qr();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],u=o[1],l=0;l<i;l++){var f=this.getRawIndex(l),h=r[f];h<s&&(s=h),h>u&&(u=h)}return o=[s,u],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);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},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,a=t&&je(t,function(s,u){return s[u]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?Wm(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=J(this._extent),t._rawExtent=J(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return pa(r[a],this._dimensions[a])}es={arrayRows:t,objectRows:function(r,n,i,a){return pa(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return pa(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),Um=ct(),Ym={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Md=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=xd(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return q(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=yd(this.source),n=!Ld(t),i="",a=[],o=0,s=0;o<t;o++){var u=void 0,l=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)u=r?h.name:null,l=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(u=r?c.name:null,l=c.type)}a.push({property:u,type:l,ordinalMeta:f}),r&&u!=null&&(!h||!h.isCalculationCoord)&&(i+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),i+="$",i+=Ym[l]||"f",f&&(i+=f.uid),i+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:a,hash:d}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],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)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function Cd(e){return e instanceof Md}function Dd(e){for(var t=$(),r=0;r<(e||[]).length;r++){var n=e[r],i=z(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function xd(e){var t=Um(e);return t.dimNameMap||(t.dimNameMap=Dd(e.dimensionsDefine))}function Ld(e){return e>30}var Mn=z,We=G,$m=typeof Int32Array>"u"?Array:Int32Array,Xm="e\0\0",Qf=-1,qm=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Zm=["_approximateExtent"],Jf,Gi,Cn,Dn,rs,Vi,ns,Km=function(){function e(t,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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;Cd(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f<n.length;f++){var h=n[f],c=V(h)?new da({name:h}):h instanceof da?h:new da(h),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(v),a[v]=c,l[v]!=null&&(u=!0),c.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),i&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var y=this._dimIdxToName=$();D(o,function(p){y.set(a[p].storeDimIndex,p)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!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},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(ut(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var i=this,a;if(t instanceof lu&&(a=t),!a){var o=this.dimensions,s=Ju(t)||Ft(t)?new _d(t,o.length):t;a=new lu;var u=We(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=Fm(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,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&&ns(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Je&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,u=s===Jt;if(u&&!i.pure)for(var l=[],f=t;f<r;f++){var h=i.getItem(f,l);if(!this.hasItemOption&&Ry(h)&&(this.hasItemOption=!0),h){var c=h.name;a[f]==null&&c!=null&&(a[f]=ue(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=ue(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)ns(this,f);Jf(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){Mn(t)?O(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Cn(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},e.prototype.getId=function(t){return Gi(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,i=this._store;return B(t)?i.getValues(We(t,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],i=n[r];return i==null||isNaN(i)?Qf:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){Z(t)&&(n=r,r=t,t=[]);var i=n||this,a=We(Dn(t),this._getStoreDimIndex,this);this._store.each(a,i?Ot(r,i):r)},e.prototype.filterSelf=function(t,r,n){Z(t)&&(n=r,r=t,t=[]);var i=n||this,a=We(Dn(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?Ot(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=it(t);return D(i,function(a){var o=r._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){Z(t)&&(n=r,r=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(r&&r.apply(this,arguments))},n),i},e.prototype.map=function(t,r,n,i){var a=n||i||this,o=We(Dn(t),this._getStoreDimIndex,this),s=Vi(this);return s._store=this._store.map(o,a?Ot(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=n||i||this,o=We(Dn(t),this._getStoreDimIndex,this);this._store.modify(o,a?Ot(r,a):r)},e.prototype.downSample=function(t,r,n,i){var a=Vi(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.lttbDownSample=function(t,r){var n=Vi(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new Ie(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new Cm(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Gi(t,n)},function(n){return Gi(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Mn(t)?O(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],i=n&&n[r];return i??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),B(a)?a=a.slice():Mn(a)&&(a=O({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Mn(r)?O(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Mn(t)?O(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?O(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;Yy(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){D(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:We(this.dimensions,this._getDimInfo,this),this.hostModel)),rs(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];Z(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Ou(arguments)))})},e.internalField=function(){Jf=function(t){var r=t._invertedIndicesMap;D(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new $m(o.categories.length);for(var u=0;u<n.length;u++)n[u]=Qf;for(var u=0;u<s.count();u++)n[s.get(a.storeDimIndex,u)]=u}})},Cn=function(t,r,n){return ue(t._getCategory(r,n),null)},Gi=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Cn(t,t._idDimIdx,r)),n==null&&(n=Xm+r),n},Dn=function(t){return B(t)||(t=t!=null?[t]:[]),t},Vi=function(t){var r=new e(t._schema?t._schema:We(t.dimensions,t._getDimInfo,t),t.hostModel);return rs(r,t),r},rs=function(t,r){D(qm.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,D(Zm,function(n){t[n]=J(r[n])}),t._calculationInfo=O({},r._calculationInfo)},ns=function(t,r){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[r],u=i[r];if(s==null&&a!=null&&(n[r]=s=Cn(t,a,r)),u==null&&o!=null&&(i[r]=u=Cn(t,o,r)),u==null&&s!=null){var l=t._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),i[r]=u}}}(),e}();const Qm=Km;function Jm(e,t){Ju(e)||(e=ju(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=$(),a=[],o=t1(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Ld(o),u=n===e.dimensionsDefine,l=u?xd(e):Dd(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var h=$(f),c=new bd(o),v=0;v<c.length;v++)c[v]=-1;function d(T){var C=c[T];if(C<0){var M=n[T],A=z(M)?M:{name:M},P=new da,E=A.name;E!=null&&l.get(E)!=null&&(P.name=P.displayName=E),A.type!=null&&(P.type=A.type),A.displayName!=null&&(P.displayName=A.displayName);var I=a.length;return c[T]=I,P.storeDimIndex=T,a.push(P),P}return a[C]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(T,C){var M=_t(T).slice();if(M.length===1&&!V(M[0])&&M[0]<0){h.set(C,!1);return}var A=h.set(C,[]);D(M,function(P,E){var I=V(P)?l.get(P):P;I!=null&&I<o&&(A[E]=I,p(d(I),C,E))})});var y=0;D(r,function(T){var C,M,A,P;if(V(T))C=T,P={};else{P=T,C=P.name;var E=P.ordinalMeta;P.ordinalMeta=null,P=O({},P),P.ordinalMeta=E,M=P.dimsDef,A=P.otherDims,P.name=P.coordDim=P.coordDimIndex=P.dimsDef=P.otherDims=null}var I=h.get(C);if(I!==!1){if(I=_t(I),!I.length)for(var R=0;R<(M&&M.length||1);R++){for(;y<o&&d(y).coordDim!=null;)y++;y<o&&I.push(y++)}D(I,function(Y,F){var k=d(Y);if(u&&P.type!=null&&(k.type=P.type),p(ht(k,P),C,F),k.name==null&&M){var U=M[F];!z(U)&&(U={name:U}),k.name=k.displayName=U.name,k.defaultTooltip=U.defaultTooltip}A&&ht(k.otherDims,A)})}});function p(T,C,M){hd.get(C)!=null?T.otherDims[C]=M:(T.coordDim=C,T.coordDimIndex=M,i.set(C,!0))}var g=t.generateCoord,_=t.generateCoordCount,m=_!=null;_=g?_||1:0;var S=g||"value";function b(T){T.name==null&&(T.name=T.coordDim)}if(s)D(a,function(T){b(T)}),a.sort(function(T,C){return T.storeDimIndex-C.storeDimIndex});else for(var w=0;w<o;w++){var x=d(w),L=x.coordDim;L==null&&(x.coordDim=e1(S,i,m),x.coordDimIndex=0,(!g||_<=0)&&(x.isExtraCoord=!0),_--),b(x),x.type==null&&(dd(e,w)===pt.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return jm(a),new Md({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function jm(e){for(var t=$(),r=0;r<e.length;r++){var n=e[r],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function t1(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return D(t,function(a){var o;z(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function e1(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var is={},r1=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];D(is,function(i,a){var o=i.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){D(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){is[t]=r},e.get=function(t){return is[t]},e}();const el=r1;var n1=function(){function e(t){this.coordSysDims=[],this.axisMap=$(),this.categoryAxisMap=$(),this.coordSysName=t}return e}();function i1(e){var t=e.get("coordinateSystem"),r=new n1(t),n=a1[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var a1={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",Lr).models[0],a=e.getReferringComponents("yAxis",Lr).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Zr(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Zr(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",Lr).models[0];t.coordSysDims=["single"],r.set("single",i),Zr(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",Lr).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Zr(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Zr(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();D(a.parallelAxisIndex,function(s,u){var l=i.getComponent("parallelAxis",s),f=o[u];r.set(f,l),Zr(l)&&(n.set(f,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})}};function Zr(e){return e.get("type")==="category"}function o1(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;s1(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var u=!!(e&&e.get("stack")),l,f,h,c;if(D(a,function(_,m){V(_)&&(a[m]=_={name:_}),u&&!_.isExtraCoord&&(!n&&!l&&_.ordinalMeta&&(l=_),!f&&_.type!=="ordinal"&&_.type!=="time"&&(!i||i===_.coordDim)&&(f=_))}),f&&!n&&!l&&(n=!0),f){h="__\0ecstackresult_"+e.id,c="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var v=f.coordDim,d=f.type,y=0;D(a,function(_){_.coordDim===v&&y++});var p={name:h,coordDim:v,coordDimIndex:y,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},g={name:c,coordDim:c,coordDimIndex:y+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(c,d),g.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(g)):(a.push(p),a.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:h}}function s1(e){return!Cd(e.schema)}function Ad(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function u1(e,t){return Ad(e,t)?e.getCalculationInfo("stackResultDimension"):t}function l1(e,t){var r=e.get("coordinateSystem"),n=el.get(r),i;return t&&t.coordSysDims&&(i=G(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var u=s.get("type");o.type=Bm(u)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function f1(e,t,r){var n,i;return r&&D(e,function(a,o){var s=a.coordDim,u=r.categoryAxisMap.get(s);u&&(n==null&&(n=o),a.ordinalMeta=u.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function cC(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=ju(e)):(i=n.getSource(),a=i.sourceFormat===Jt);var o=i1(t),s=l1(t,o),u=r.useEncodeDefaulter,l=Z(u)?u:u?Za(xm,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},h=Jm(i,f),c=f1(h.dimensions,r.createInvertedIndices,o),v=a?null:n.getSharedDataStore(h),d=o1(t,{schema:h,store:v}),y=new Qm(h,t);y.setCalculationInfo(d);var p=c!=null&&h1(i)?function(g,_,m,S){return S===c?m:this.defaultDimValueGetter(g,_,m,S)}:null;return y.hasItemOption=!1,y.initData(a?i:v,null,p),y}function h1(e){if(e.sourceFormat===Jt){var t=v1(e.data||[]);return!B(_i(t))}}function v1(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var c1=Math.round(Math.random()*10);function ho(e){return[e||"",c1++].join("_")}function d1(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=_e(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=_e(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function p1(e,t){e.topologicalTravel=function(a,o,s,u){if(!a.length)return;var l=r(o),f=l.graph,h=l.noEntryList,c={};for(D(a,function(_){c[_]=!0});h.length;){var v=h.pop(),d=f[v],y=!!c[v];y&&(s.call(u,v,d.originalDeps.slice()),delete c[v]),D(d.successor,y?g:p)}D(c,function(){var _="";throw new Error(_)});function p(_){f[_].entryCount--,f[_].entryCount===0&&h.push(_)}function g(_){c[_]=!0,p(_)}};function r(a){var o={},s=[];return D(a,function(u){var l=n(o,u),f=l.originalDeps=t(u),h=i(f,a);l.entryCount=h.length,l.entryCount===0&&s.push(u),D(h,function(c){at(l.predecessor,c)<0&&l.predecessor.push(c);var v=n(o,c);at(v.successor,c)<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 D(a,function(u){at(o,u)>=0&&s.push(u)}),s}}function dC(e,t){return ft(ft({},e,!0),t,!0)}var g1=Math.log(2);function fu(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var u=Math.round(Math.log((1<<s)-1&~i)/g1);return e[r][u]}for(var l=n|1<<r,f=r+1;n&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var d=1<<c;d&i||(h+=(v%2?-1:1)*e[r][c]*fu(e,t-1,f,l,i|d,a),v++)}return a[o]=h,h}function jf(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},i=fu(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)*fu(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(u,l,f){var h=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/h,u[1]=(l*a[3]+f*a[4]+a[5])/h}}}var th="___zrEVENTSAVED",as=[];function pC(e,t,r,n,i){return hu(as,t,n,i,!0)&&hu(e,r,as[0],as[1])}function hu(e,t,r,n,i){if(t.getBoundingClientRect&&nt.domSupported&&!Pd(t)){var a=t[th]||(t[th]={}),o=y1(t,a),s=_1(o,a,i);if(s)return s(e,r,n),!0}return!1}function y1(e,t){var r=t.markers;if(r)return r;r=t.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;"),e.appendChild(o),r.push(o)}return r}function _1(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=e[l].getBoundingClientRect(),h=2*l,c=f.left,v=f.top;o.push(c,v),u=u&&a&&c===a[h]&&v===a[h+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return u&&i?i:(t.srcCoords=o,t[n]=r?jf(s,o):jf(o,s))}function Pd(e){return e.nodeName.toUpperCase()==="CANVAS"}var m1=/([&<>"'])/g,S1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ht(e){return e==null?"":(e+"").replace(m1,function(t,r){return S1[r]})}const w1={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},b1={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表，"},series:{single:{prefix:"",withName:"图表类型是{seriesType}，表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}，",withoutName:"第{seriesId}个系列是一个{seriesType}，",separator:{middle:"；",end:"。"}}},data:{allData:"其数据是——",partialData:"其中，前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"，",end:""}}}};var ka="ZH",rl="EN",si=rl,ga={},nl={},Ed=nt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(ka)>-1?ka:si}():si;function Rd(e,t){e=e.toUpperCase(),nl[e]=new Ie(t),ga[e]=t}function T1(e){if(V(e)){var t=ga[e.toUpperCase()]||{};return e===ka||e===rl?J(t):ft(J(t),J(ga[si]),!1)}else return ft(J(e),J(ga[si]),!1)}function M1(e){return nl[e]}function C1(){return nl[si]}Rd(rl,w1);Rd(ka,b1);var il=1e3,al=il*60,Zn=al*60,Kt=Zn*24,eh=Kt*365,Gn={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Wi="{yyyy}-{MM}-{dd}",rh={year:"{yyyy}",month:"{yyyy}-{MM}",day:Wi,hour:Wi+" "+Gn.hour,minute:Wi+" "+Gn.minute,second:Wi+" "+Gn.second,millisecond:Gn.none},os=["year","month","day","hour","minute","second","millisecond"],Id=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ue(e,t){return e+="","0000".substr(0,t-e.length)+e}function un(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function D1(e){return e===un(e)}function x1(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ol(e,t,r,n){var i=ke(e),a=i[sl(r)](),o=i[ln(r)]()+1,s=Math.floor((o-1)/3)+1,u=i[vo(r)](),l=i["get"+(r?"UTC":"")+"Day"](),f=i[ui(r)](),h=(f-1)%12+1,c=i[co(r)](),v=i[po(r)](),d=i[go(r)](),y=n instanceof Ie?n:M1(n||Ed)||C1(),p=y.getModel("time"),g=p.get("month"),_=p.get("monthAbbr"),m=p.get("dayOfWeek"),S=p.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Ue(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[o-1]).replace(/{MMM}/g,_[o-1]).replace(/{MM}/g,Ue(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ue(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,m[l]).replace(/{ee}/g,S[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Ue(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ue(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Ue(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Ue(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Ue(d,3)).replace(/{S}/g,d+"")}function L1(e,t,r,n,i){var a=null;if(V(r))a=r;else if(Z(r))a=r(e.value,t,{level:e.level});else{var o=O({},Gn);if(e.level>0)for(var s=0;s<os.length;++s)o[os[s]]="{primary|"+o[os[s]]+"}";var u=r?r.inherit===!1?r:ht(r,o):o,l=Od(e.value,i);if(u[l])a=u[l];else if(u.inherit){for(var f=Id.indexOf(l),s=f-1;s>=0;--s)if(u[l]){a=u[l];break}a=a||o.none}if(B(a)){var h=e.level==null?0:e.level>=0?e.level:a.length+e.level;h=Math.min(h,a.length-1),a=a[h]}}return ol(new Date(e.value),a,i,n)}function Od(e,t){var r=ke(e),n=r[ln(t)]()+1,i=r[vo(t)](),a=r[ui(t)](),o=r[co(t)](),s=r[po(t)](),u=r[go(t)](),l=u===0,f=l&&s===0,h=f&&o===0,c=h&&a===0,v=c&&i===1,d=v&&n===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":l?"second":"millisecond"}function nh(e,t,r){var n=ut(e)?ke(e):e;switch(t=t||Od(e,r),t){case"year":return n[sl(r)]();case"half-year":return n[ln(r)]()>=6?1:0;case"quarter":return Math.floor((n[ln(r)]()+1)/4);case"month":return n[ln(r)]();case"day":return n[vo(r)]();case"half-day":return n[ui(r)]()/24;case"hour":return n[ui(r)]();case"minute":return n[co(r)]();case"second":return n[po(r)]();case"millisecond":return n[go(r)]()}}function sl(e){return e?"getUTCFullYear":"getFullYear"}function ln(e){return e?"getUTCMonth":"getMonth"}function vo(e){return e?"getUTCDate":"getDate"}function ui(e){return e?"getUTCHours":"getHours"}function co(e){return e?"getUTCMinutes":"getMinutes"}function po(e){return e?"getUTCSeconds":"getSeconds"}function go(e){return e?"getUTCMilliseconds":"getMilliseconds"}function A1(e){return e?"setUTCFullYear":"setFullYear"}function kd(e){return e?"setUTCMonth":"setMonth"}function Fd(e){return e?"setUTCDate":"setDate"}function Bd(e){return e?"setUTCHours":"setHours"}function Nd(e){return e?"setUTCMinutes":"setMinutes"}function zd(e){return e?"setUTCSeconds":"setSeconds"}function Hd(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Gd(e){if(!Ly(e))return V(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function gC(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var P1=Rv;function vu(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Ae(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var u=o?ke(e):e;if(isNaN(+u)){if(s)return"-"}else return ol(u,n,r)}if(t==="ordinal")return Fs(e)?i(e):ut(e)&&a(e)?e+"":"-";var l=La(e);return a(l)?Gd(l):Fs(e)?i(e):typeof e=="boolean"?e+"":"-"}var ih=["a","b","c","d","e","f","g"],ss=function(e,t){return"{"+e+(t??"")+"}"};function E1(e,t,r){B(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=ih[a];e=e.replace(ss(o),ss(o,0))}for(var s=0;s<n;s++)for(var u=0;u<i.length;u++){var l=t[s][i[u]];e=e.replace(ss(ih[u],s),r?Ht(l):l)}return e}function yC(e,t,r){return D(t,function(n,i){e=e.replace("{"+i+"}",r?Ht(n):n)}),e}function R1(e,t){var r=V(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=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:'+Ht(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ht(n)+";"+(t||"")+'"></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 I1(e,t){return t=t||"transparent",V(e)?e:z(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function _C(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var ya=D,O1=["left","right","top","bottom","width","height"],Ar=[["width","left","right"],["height","top","bottom"]];function ul(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(u,l){var f=u.getBoundingRect(),h=t.childAt(l+1),c=h&&h.getBoundingRect(),v,d;if(e==="horizontal"){var y=f.width+(c?-c.x+f.x:0);v=a+y,v>n||u.newline?(a=0,v=y,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(c?-c.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(),e==="horizontal"?a=v+r:o=d+r)})}var mC=ul;Za(ul,"vertical");Za(ul,"horizontal");function k1(e,t,r){r=P1(r||0);var n=t.width,i=t.height,a=At(e.left,n),o=At(e.top,i),s=At(e.right,n),u=At(e.bottom,i),l=At(e.width,n),f=At(e.height,i),h=r[2]+r[0],c=r[1]+r[3],v=e.aspect;switch(isNaN(l)&&(l=n-s-c-a),isNaN(f)&&(f=i-u-h-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-c),isNaN(o)&&(o=i-u-f-h),e.left||e.right){case"center":a=n/2-l/2-r[3];break;case"right":a=n-l-c;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(l)&&(l=n-c-a-(s||0)),isNaN(f)&&(f=i-h-o-(u||0));var d=new j(a+r[3],o+r[0],l,f);return d.margin=r,d}function SC(e,t,r,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if(a=a||e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(u==="raw")l=e.type==="group"?new j(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var f=e.getLocalTransform();l=l.clone(),l.applyTransform(f)}var h=k1(ht({width:l.width,height:l.height},t),r,n),c=o?h.x-l.x:0,v=s?h.y-l.y:0;return u==="raw"?(a.x=c,a.y=v):(a.x+=c,a.y+=v),a===e&&e.markRedraw(),!0}function wC(e,t){return e[Ar[t][0]]!=null||e[Ar[t][1]]!=null&&e[Ar[t][2]]!=null}function Fa(e){var t=e.layoutMode||e.constructor.layoutMode;return z(t)?t:t?{type:t}:null}function Ba(e,t,r){var n=r&&r.ignoreSize;!B(n)&&(n=[n,n]);var i=o(Ar[0],0),a=o(Ar[1],1);l(Ar[0],e,i),l(Ar[1],e,a);function o(f,h){var c={},v=0,d={},y=0,p=2;if(ya(f,function(m){d[m]=e[m]}),ya(f,function(m){s(t,m)&&(c[m]=d[m]=t[m]),u(c,m)&&v++,u(d,m)&&y++}),n[h])return u(t,f[1])?d[f[2]]=null:u(t,f[2])&&(d[f[1]]=null),d;if(y===p||!v)return d;if(v>=p)return c;for(var g=0;g<f.length;g++){var _=f[g];if(!s(c,_)&&s(e,_)){c[_]=e[_];break}}return c}function s(f,h){return f.hasOwnProperty(h)}function u(f,h){return f[h]!=null&&f[h]!=="auto"}function l(f,h,c){ya(f,function(v){h[v]=c[v]})}}function Vd(e){return F1({},e)}function F1(e,t){return t&&e&&ya(O1,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var B1=ct(),dn=function(e){W(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=ho("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Fa(this),a=i?Vd(r):{},o=n.getTheme();ft(r,o.get(this.mainType)),ft(r,this.getDefaultOption()),i&&Ba(r,a,i)},t.prototype.mergeOption=function(r,n){ft(this.option,r,!0);var i=Fa(this);i&&Ba(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!zg(r))return r.defaultOption;var n=B1(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=ft(s,i[u],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return no(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(Ie);Fv(dn,Ie);Qa(dn);d1(dn);p1(dn,N1);function N1(e){var t=[];return D(dn.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=G(t,function(r){return _e(r).main}),e!=="dataset"&&at(t,"dataset")<=0&&t.unshift("dataset"),t}const vt=dn;var ah=ct(),z1=ct(),ll=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=_t(this.get("color",!0)),a=this.get("colorLayer",!0);return Wd(this,ah,i,a,t,r,n)},e.prototype.clearColorPalette=function(){G1(this,ah)},e}();function bC(e,t,r,n){var i=_t(e.get(["aria","decal","decals"]));return Wd(e,z1,i,null,t,r,n)}function H1(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function Wd(e,t,r,n,i,a,o){a=a||e;var s=t(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var f=o==null||!n?r:H1(n,o);if(f=f||r,!(!f||!f.length)){var h=f[u];return i&&(l[i]=h),s.paletteIdx=(u+1)%f.length,h}}function G1(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var V1=/\{@(.+?)\}/g,W1=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),u=n.getItemVisual(t,"style"),l=u&&u[n.getItemVisual(t,"drawType")||"fill"],f=u&&u.stroke,h=this.mainType,c=h==="series",v=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?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"]}},e.prototype.getFormattedLabel=function(t,r,n,i,a,o){r=r||"normal";var s=this.getData(n),u=this.getDataParams(t,n);if(o&&(u.value=o.interpolatedValue),i!=null&&B(u.value)&&(u.value=u.value[i]),!a){var l=s.getItemModel(t);a=l.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Z(a))return u.status=r,u.dimensionIndex=i,a(u);if(V(a)){var f=E1(a,u);return f.replace(V1,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var y=Oa(s,t,d);if(o&&B(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(y=o.interpolatedValue[p])}return y!=null?y+"":""})}},e.prototype.getRawValue=function(t,r){return Oa(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function TC(e){var t,r;return z(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Kn(e){return new U1(e)}var U1=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.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(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(a="reset");function f(_){return!(_>=1)&&(_=1),_}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=u,this._modDataCount=l;var c=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||v<d)){var y=this._progress;if(B(y))for(var p=0;p<y.length;p++)this._doProgress(y[p],v,d,u,l);else this._doProgress(y,v,d,u,l)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,i,a){oh.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:oh.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),B(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),oh=function(){var e,t,r,n,i,a={reset:function(u,l,f,h){t=u,e=l,r=f,n=h,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var u=t%i*r+Math.ceil(t/i),l=t>=e?null:u<n?u:t;return t++,l}}(),Y1=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return pa(t,r)},e}();function $1(e,t){var r=new Y1,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Oe&&zt(o);var s=[],u={},l=e.dimensionsDefine;if(l)D(l,function(y,p){var g=y.name,_={index:p,name:g,displayName:y.displayName};if(s.push(_),g!=null){var m="";fn(u,g)&&zt(m),u[g]=_}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var h=md(i,Oe);t.__isBuiltIn&&(r.getRawDataItem=function(y){return h(n,a,s,y)},r.getRawData=Ot(X1,null,e)),r.cloneRawData=Ot(q1,null,e);var c=Sd(i,Oe);r.count=Ot(c,null,n,a,s);var v=wd(i);r.retrieveValue=function(y,p){var g=h(n,a,s,y);return d(g,p)};var d=r.retrieveValueFromItem=function(y,p){if(y!=null){var g=s[p];if(g)return v(y,p,g.name)}};return r.getDimensionInfo=Ot(Z1,null,s,u),r.cloneAllDimensionInfo=Ot(K1,null,s),r}function X1(e){var t=e.sourceFormat;if(!fl(t)){var r="";zt(r)}return e.data}function q1(e){var t=e.sourceFormat,r=e.data;if(!fl(t)){var n="";zt(n)}if(t===Bt){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===fe){for(var i=[],a=0,o=r.length;a<o;a++)i.push(O({},r[a]));return i}}function Z1(e,t,r){if(r!=null){if(ut(r)||!isNaN(r)&&!fn(t,r))return e[r];if(fn(t,r))return t[r]}}function K1(e){return J(e)}var Ud=$();function Q1(e){e=J(e);var t=e.type,r="";t||zt(r);var n=t.split(":");n.length!==2&&zt(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,Ud.set(t,e)}function J1(e,t,r){var n=_t(e),i=n.length,a="";i||zt(a);for(var o=0,s=i;o<s;o++){var u=n[o];t=j1(u,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function j1(e,t,r,n){var i="";t.length||zt(i),z(e)||zt(i);var a=e.type,o=Ud.get(a);o||zt(i);var s=G(t,function(l){return $1(l,o)}),u=_t(o.transform({upstream:s[0],upstreamList:s,config:J(e.config)}));return G(u,function(l,f){var h="";z(l)||zt(h),l.data||zt(h);var c=gd(l.data);fl(c)||zt(h);var v,d=t[0];if(d&&f===0&&!l.dimensions){var y=d.startIndex;y&&(l.data=d.data.slice(0,y).concat(l.data)),v={seriesLayoutBy:Oe,sourceHeader:y,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:Oe,sourceHeader:0,dimensions:l.dimensions};return uu(l.data,v,null)})}function fl(e){return e===Bt||e===fe}var tS=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Ui(t)){var o=t,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=Wt(s)?Je:Jt,a=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},v=q(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=q(h.sourceHeader,c.sourceHeader),y=q(h.dimensions,c.dimensions),p=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||y;i=p?[uu(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:y},u)]:[]}else{var g=t;if(n){var _=this._applyTransform(r);i=_.sourceList,a=_.upstreamSignList}else{var m=g.get("source",!0);i=[uu(m,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&sh(a)}var o,s=[],u=[];return D(t,function(l){l.prepareSource();var f=l.getSource(i||0),h="";i!=null&&!f&&sh(h),s.push(f),u.push(l._getVersionSign())}),n?o=J1(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[Am(s[0])]),{sourceList:o,upstreamSignList:u}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,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];Ui(this._sourceHost)&&u?s=u._innerGetDataStore(t,r,n):(s=new lu,s.initData(new _d(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Ui(t)){var r=Qu(t);return r?[r.getSourceManager()]:[]}else return G(Lm(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(Ui(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e}();function Ui(e){return e.mainType==="series"}function sh(e){throw new Error(e)}var Yd="line-height:1";function $d(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,i=e.fontWeight||"400",a=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Ht(n+"")+"px;color:"+Ht(r)+";font-weight:"+Ht(i+""),valueStyle:"font-size:"+Ht(o+"")+"px;color:"+Ht(a)+";font-weight:"+Ht(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var eS=[0,10,20,30],rS=["",`
`,`

`,`


`];function cu(e,t){return t.type=e,t}function du(e){return e.type==="section"}function Xd(e){return du(e)?nS:iS}function qd(e){if(du(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return D(e.blocks,function(i){var a=qd(i);a>=t&&(t=a+ +(n&&(!a||du(i)&&!i.noHeader)))}),t}return 0}function nS(e,t,r,n){var i=t.noHeader,a=aS(qd(t)),o=[],s=t.blocks||[];we(!s||B(s)),s=s||[];var u=e.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(fn(l,u)){var f=new Hm(l[u],null);s.sort(function(d,y){return f.evaluate(d.sortParam,y.sortParam)})}else u==="seriesDesc"&&s.reverse()}D(s,function(d,y){var p=t.valueFormatter,g=Xd(d)(p?O(O({},e),{valueFormatter:p}):e,d,y>0?a.html:0,n);g!=null&&o.push(g)});var h=e.renderMode==="richText"?o.join(a.richText):pu(o.join(""),i?r:a.html);if(i)return h;var c=vu(t.header,"ordinal",e.useUTC),v=$d(n,e.renderMode).nameStyle;return e.renderMode==="richText"?Zd(e,c,v)+a.richText+h:pu('<div style="'+v+";"+Yd+';">'+Ht(c)+"</div>"+h,r)}function iS(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(S){return S=B(S)?S:[S],G(S,function(b,w){return vu(b,B(v)?v[w]:v,l)})};if(!(a&&o)){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),c=a?"":vu(u,"ordinal",l),v=t.valueType,d=o?[]:f(t.value),y=!s||!a,p=!s&&a,g=$d(n,i),_=g.nameStyle,m=g.valueStyle;return i==="richText"?(s?"":h)+(a?"":Zd(e,c,_))+(o?"":uS(e,d,y,p,m)):pu((s?"":h)+(a?"":oS(c,!s,_))+(o?"":sS(d,y,p,m)),r)}}function MC(e,t,r,n,i,a){if(e){var o=Xd(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function aS(e){return{html:eS[e],richText:rS[e]}}function pu(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+Yd+';">'+e+r+"</div>"}function oS(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Ht(e)+"</span>"}function sS(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=B(e)?e:[e],'<span style="'+a+";"+n+'">'+G(e,function(o){return Ht(o)}).join("&nbsp;&nbsp;")+"</span>"}function Zd(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function uS(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(B(t)?t.join("  "):t,a)}function lS(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return I1(n)}function CC(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var DC=function(){function e(){this.richTextStyles={},this._nextStyleNameId=dc()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=R1({color:r,type:t,renderMode:n,markerId:i});return V(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};B(r)?D(r,function(a){return O(n,a)}):O(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function fS(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),u=B(s),l=lS(t,r),f,h,c,v;if(o>1||u&&!o){var d=hS(s,t,r,a,l);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var y=i.getDimensionInfo(a[0]);v=f=Oa(i,r,a[0]),h=y.type}else v=f=u?s[0]:s;var p=mc(t),g=p&&t.name||"",_=i.getName(r),m=n?g:_;return cu("section",{header:g,noHeader:n||!p,sortParam:v,blocks:[cu("nameValue",{markerType:"item",markerColor:l,name:m,noName:!Ae(m),value:f,valueType:h})].concat(c||[])})}function hS(e,t,r,n,i){var a=t.getData(),o=je(e,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];n.length?D(n,function(h){f(Oa(a,r,h),h)}):D(e,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?l.push(cu("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:h,valueType:v.type})):(s.push(h),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var Ye=ct();function Yi(e,t){return e.getName(t)||e.getId(t)}var vS="__universalTransitionEnabled",yo=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Kn({count:dS,reset:pS}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Ye(this).sourceManager=new tS(this);a.prepareSource();var o=this.getInitialData(r,i);lh(o,this),this.dataTask.context.data=o,Ye(this).dataBeforeProcessed=o,uh(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Fa(this),a=i?Vd(r):{},o=this.subType;vt.hasClass(o)&&(o+="Series"),ft(r,n.getTheme().get(this.subType)),ft(r,this.getDefaultOption()),pf(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Ba(r,a,i)},t.prototype.mergeOption=function(r,n){r=ft(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Fa(this);i&&Ba(this.option,r,i);var a=Ye(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);lh(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ye(this).dataBeforeProcessed=o,uh(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Wt(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&pf(r[i],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=gu(this);if(n){var i=n.context.data;return r==null?i:i.getLinkedData(r)}else return Ye(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=gu(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Ye(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return $(r)},t.prototype.getSourceManager=function(){return Ye(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Ye(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,i){return fS({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(nt.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=ll.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.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=Yi(o,u);i[l]=!1,this._selectedDataIndicesMap[l]=-1}}},t.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)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=it(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Yi(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[vS])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.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"){z(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var h=n[f],c=Yi(r,h);l[c]=!0,this._selectedDataIndicesMap[c]=r.getRawIndex(h)}}else if(s==="single"||s===!0){var v=n[u-1],c=Yi(r,v);o.selectedMap=(i={},i[c]=!0,i),this._selectedDataIndicesMap=(a={},a[c]=r.getRawIndex(v),a)}}},t.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)}},t.registerClass=function(r){return vt.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(vt);Fe(yo,W1);Fe(yo,ll);Fv(yo,vt);function uh(e){var t=e.name;mc(e)||(e.name=cS(e)||t)}function cS(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return D(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function dS(e){return e.model.getRawData().count()}function pS(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),gS}function gS(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function lh(e,t){D(Rg(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Za(yS,t))})}function yS(e,t){var r=gu(e);return r&&r.setOutputEnd((t||this).count()),t}function gu(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}const Na=yo;var _S=et.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n+a),e.lineTo(r-i,n+a),e.closePath()}}),mS=et.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n),e.lineTo(r,n+a),e.lineTo(r-i,n),e.closePath()}}),SS=et.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),u=n-a+o+s,l=Math.asin(s/o),f=Math.cos(l)*o,h=Math.sin(l),c=Math.cos(l),v=o*.6,d=o*.7;e.moveTo(r-f,u+s),e.arc(r,u,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(r+f-h*v,u+s+c*v,r,n-d,r,n),e.bezierCurveTo(r,n-d,r-f+h*v,u+s+c*v,r-f,u+s),e.closePath()}}),wS=et.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;e.moveTo(i,a),e.lineTo(i+o,a+r),e.lineTo(i,a+r/4*3),e.lineTo(i-o,a+r),e.lineTo(i,a),e.closePath()}}),bS={line:Xu,rect:Re,roundRect:Re,square:Re,circle:Yu,diamond:mS,pin:SS,arrow:wS,triangle:_S},TS={line:function(e,t,r,n,i){i.x1=e,i.y1=t+n/2,i.x2=e+r,i.y2=t+n/2},rect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n},roundRect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(e,t,r,n,i){var a=Math.min(r,n);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.r=Math.min(r,n)/2},diamond:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n},pin:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},arrow:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},triangle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n}},yu={};D(bS,function(e,t){yu[t]=new e});var MS=et.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=Hv(e,t,r),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var i=yu[n];i||(n="rect",i=yu[n]),TS[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function CS(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function DS(e,t,r,n,i,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var u;return e.indexOf("image://")===0?u=rd(e.slice(8),new j(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?u=Ku(e.slice(7),{},new j(t,r,n,i),o?"center":"cover"):u=new MS({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),u.__isEmptyBrush=s,u.setColor=CS,a&&u.setColor(a),u}function xC(e){return B(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function LC(e,t){if(e!=null)return B(e)||(e=[e,e]),[At(e[0],t[0])||0,At(q(e[1],e[0]),t[1])||0]}var Kd=typeof Float32Array<"u",xS=Kd?Float32Array:Array;function us(e){return B(e)?Kd?new Float32Array(e):e:new xS(e)}function Qd(){var e=ct();return function(t){var r=e(t),n=t.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 Jd=ct(),LS=Qd(),hl=function(){function e(){this.group=new mi,this.uid=ho("viewChart"),this.renderTask=Kn({plan:AS,reset:PS}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&hh(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&hh(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){sd(this.group,t)},e.markUpdateMethod=function(t,r){Jd(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function fh(e,t,r){e&&nu(e)&&(t==="emphasis"?js:tu)(e,r)}function hh(e,t,r){var n=ro(e,t),i=t&&t.highlightKey!=null?h_(t.highlightKey):null;n!=null?D(_t(n),function(a){fh(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){fh(a,r,i)})}ku(hl);Qa(hl);function AS(e){return LS(e.model)}function PS(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&Jd(i).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,r,n,i),ES[u]}var ES={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Qn=hl;var RS="__ec_stack_";function vl(e){return e.get("stack")||RS+e.seriesIndex}function cl(e){return e.dim+e.index}function jd(e,t){var r=[];return t.eachSeriesByType(e,function(n){ep(n)&&r.push(n)}),r}function IS(e){var t={};D(e,function(u){var l=u.coordinateSystem,f=l.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=u.getData(),c=f.dim+"_"+f.index,v=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),y=0,p=d.count();y<p;++y){var g=d.get(v,y);t[c]?t[c].push(g):t[c]=[g]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(u,l){return u-l});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function tp(e){var t=IS(e),r=[];return D(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var u=a.dim+"_"+a.index,l=t[u],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=l?f/c*l:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=At(n.get("barWidth"),s),y=At(n.get("barMaxWidth"),s),p=At(n.get("barMinWidth")||(rp(n)?.5:1),s),g=n.get("barGap"),_=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:y,barMinWidth:p,barGap:g,barCategoryGap:_,axisKey:cl(a),stackId:vl(n)})}),OS(r)}function OS(e){var t={};D(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},u=s.stacks;t[a]=s;var l=n.stackId;u[l]||s.autoWidthCount++,u[l]=u[l]||{width:0,maxWidth:0};var f=n.barWidth;f&&!u[l].width&&(u[l].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(u[l].maxWidth=h);var c=n.barMinWidth;c&&(u[l].minWidth=c);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return D(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var u=it(a).length;s=Math.max(35-u*4,15)+"%"}var l=At(s,o),f=At(n.gap,1),h=n.remainedWidth,c=n.autoWidthCount,v=(h-l)/(c+(c-1)*f);v=Math.max(v,0),D(a,function(g){var _=g.maxWidth,m=g.minWidth;if(g.width){var S=g.width;_&&(S=Math.min(S,_)),m&&(S=Math.max(S,m)),g.width=S,h-=S+f*S,c--}else{var S=v;_&&_<S&&(S=Math.min(_,h)),m&&m>S&&(S=m),S!==v&&(g.width=S,h-=S+f*S,c--)}}),v=(h-l)/(c+(c-1)*f),v=Math.max(v,0);var d=0,y;D(a,function(g,_){g.width||(g.width=v),y=g,d+=g.width*(1+f)}),y&&(d-=y.width*f);var p=-d/2;D(a,function(g,_){r[i][_]=r[i][_]||{bandWidth:o,offset:p,width:g.width},p+=g.width*(1+f)})}),r}function kS(e,t,r){if(e&&t){var n=e[cl(t)];return n!=null&&r!=null?n[vl(r)]:n}}function AC(e,t){var r=jd(e,t),n=tp(r);D(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),u=vl(i),l=n[cl(s)][u],f=l.offset,h=l.width;a.setLayout({bandWidth:l.bandWidth,offset:f,size:h})})}function PC(e){return{seriesType:e,plan:Qd(),reset:function(t){if(ep(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),u=t.get("showBackground",!0),l=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),h=Ad(r,l)&&!!r.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=FS(i,a),d=rp(t),y=t.get("barMinHeight")||0,p=f&&r.getDimensionIndex(f),g=r.getLayout("size"),_=r.getLayout("offset");return{progress:function(m,S){for(var b=m.count,w=d&&us(b*3),x=d&&u&&us(b*3),L=d&&us(b),T=n.master.getRect(),C=c?T.width:T.height,M,A=S.getStore(),P=0;(M=m.next())!=null;){var E=A.get(h?p:o,M),I=A.get(s,M),R=v,Y=void 0;h&&(Y=+E-A.get(o,M));var F=void 0,k=void 0,U=void 0,rt=void 0;if(c){var tt=n.dataToPoint([E,I]);if(h){var lt=n.dataToPoint([Y,I]);R=lt[0]}F=R,k=tt[1]+_,U=tt[0]-R,rt=g,Math.abs(U)<y&&(U=(U<0?-1:1)*y)}else{var tt=n.dataToPoint([I,E]);if(h){var lt=n.dataToPoint([I,Y]);R=lt[1]}F=tt[0]+_,k=R,U=g,rt=tt[1]-R,Math.abs(rt)<y&&(rt=(rt<=0?-1:1)*y)}d?(w[P]=F,w[P+1]=k,w[P+2]=c?U:rt,x&&(x[P]=c?T.x:F,x[P+1]=c?k:T.y,x[P+2]=C),L[M]=M):S.setItemLayout(M,{x:F,y:k,width:U,height:rt}),P+=3}d&&S.setLayout({largePoints:w,largeDataIndices:L,largeBackgroundPoints:x,valueAxisHorizontal:c})}}}}}}function ep(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function rp(e){return e.pipelineContext&&e.pipelineContext.large}function FS(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var za="\0__throttleOriginMethod",vh="\0__throttleRate",ch="\0__throttleType";function dl(e,t,r){var n,i=0,a=0,o=null,s,u,l,f;t=t||0;function h(){a=new Date().getTime(),o=null,e.apply(u,l||[])}var c=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),u=this,l=v;var y=f||t,p=f||r;f=null,s=n-(p?i:a)-y,clearTimeout(o),p?o=setTimeout(h,y):s>=0?h():o=setTimeout(h,-s),i=n};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function EC(e,t,r,n){var i=e[t];if(i){var a=i[za]||i,o=i[ch],s=i[vh];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=dl(a,r,n==="debounce"),i[za]=a,i[ch]=n,i[vh]=r}return i}}function RC(e,t){var r=e[t];r&&r[za]&&(r.clear&&r.clear(),e[t]=r[za])}function IC(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}D([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=O({},i),o.dispatchAction(O(i,{type:n[1],seriesIndex:r(a,i)}))})})}function Kr(e,t,r,n,i){var a=e+t;r.isSilent(a)||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 h=o.getData(),c=ro(h,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:B(c)?h.getName(c[0]):h.getName(c),selected:V(u)?u:O({},u)})}})}function BS(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(Kr("map","selectchanged",t,i,n),Kr("pie","selectchanged",t,i,n)):n.fromAction==="select"?(Kr("map","selected",t,i,n),Kr("pie","selected",t,i,n)):n.fromAction==="unselect"&&(Kr("map","unselected",t,i,n),Kr("pie","unselected",t,i,n))})}var xn=Math.PI*2,br=Fr.CMD,NS=["top","right","bottom","left"];function zS(e,t,r,n,i){var a=r.width,o=r.height;switch(e){case"top":n.set(r.x+a/2,r.y-t),i.set(0,-1);break;case"bottom":n.set(r.x+a/2,r.y+o+t),i.set(0,1);break;case"left":n.set(r.x-t,r.y+o/2),i.set(-1,0);break;case"right":n.set(r.x+a+t,r.y+o/2),i.set(1,0);break}}function HS(e,t,r,n,i,a,o,s,u){o-=e,s-=t;var l=Math.sqrt(o*o+s*s);o/=l,s/=l;var f=o*r+e,h=s*r+t;if(Math.abs(n-i)%xn<1e-4)return u[0]=f,u[1]=h,l-r;if(a){var c=n;n=Pe(i),i=Pe(c)}else n=Pe(n),i=Pe(i);n>i&&(i+=xn);var v=Math.atan2(s,o);if(v<0&&(v+=xn),v>=n&&v<=i||v+xn>=n&&v+xn<=i)return u[0]=f,u[1]=h,l-r;var d=r*Math.cos(n)+e,y=r*Math.sin(n)+t,p=r*Math.cos(i)+e,g=r*Math.sin(i)+t,_=(d-o)*(d-o)+(y-s)*(y-s),m=(p-o)*(p-o)+(g-s)*(g-s);return _<m?(u[0]=d,u[1]=y,Math.sqrt(_)):(u[0]=p,u[1]=g,Math.sqrt(m))}function Ha(e,t,r,n,i,a,o,s){var u=i-e,l=a-t,f=r-e,h=n-t,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=u*f+l*h,d=v/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var y=o[0]=e+d*f,p=o[1]=t+d*h;return Math.sqrt((y-i)*(y-i)+(p-a)*(p-a))}function np(e,t,r,n,i,a,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,u=t+n,l=o[0]=Math.min(Math.max(i,e),s),f=o[1]=Math.min(Math.max(a,t),u);return Math.sqrt((l-i)*(l-i)+(f-a)*(f-a))}var ae=[];function GS(e,t,r){var n=np(t.x,t.y,t.width,t.height,e.x,e.y,ae);return r.set(ae[0],ae[1]),n}function VS(e,t,r){for(var n=0,i=0,a=0,o=0,s,u,l=1/0,f=t.data,h=e.x,c=e.y,v=0;v<f.length;){var d=f[v++];v===1&&(n=f[v],i=f[v+1],a=n,o=i);var y=l;switch(d){case br.M:a=f[v++],o=f[v++],n=a,i=o;break;case br.L:y=Ha(n,i,f[v],f[v+1],h,c,ae,!0),n=f[v++],i=f[v++];break;case br.C:y=Zv(n,i,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],h,c,ae),n=f[v++],i=f[v++];break;case br.Q:y=Qv(n,i,f[v++],f[v++],f[v],f[v+1],h,c,ae),n=f[v++],i=f[v++];break;case br.A:var p=f[v++],g=f[v++],_=f[v++],m=f[v++],S=f[v++],b=f[v++];v+=1;var w=!!(1-f[v++]);s=Math.cos(S)*_+p,u=Math.sin(S)*m+g,v<=1&&(a=s,o=u);var x=(h-p)*m/_+p;y=HS(p,g,m,S,S+b,w,x,c,ae),n=Math.cos(S+b)*_+p,i=Math.sin(S+b)*m+g;break;case br.R:a=n=f[v++],o=i=f[v++];var L=f[v++],T=f[v++];y=np(a,o,L,T,h,c,ae);break;case br.Z:y=Ha(n,i,a,o,h,c,ae,!0),n=a,i=o;break}y<l&&(l=y,r.set(ae[0],ae[1]))}return l}var oe=new N,Q=new N,ot=new N,me=new N,ye=new N;function dh(e,t){if(e){var r=e.getTextGuideLine(),n=e.getTextContent();if(n&&r){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||NS,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var u=1/0,l=i.anchor,f=e.getComputedTransform(),h=f&&ja([],f),c=t.get("length2")||0;l&&ot.copy(l);for(var v=0;v<o.length;v++){var d=o[v];zS(d,0,s,oe,me),N.scaleAndAdd(Q,oe,me,c),Q.transform(h);var y=e.getBoundingRect(),p=l?l.distance(Q):e instanceof et?VS(Q,e.path,ot):GS(Q,y,ot);p<u&&(u=p,Q.transform(f),ot.transform(f),ot.toArray(a[0]),Q.toArray(a[1]),oe.toArray(a[2]))}WS(a,t.get("minTurnAngle")),r.setShape({points:a})}}}var Ga=[],Lt=new N;function WS(e,t){if(t<=180&&t>0){t=t/180*Math.PI,oe.fromArray(e[0]),Q.fromArray(e[1]),ot.fromArray(e[2]),N.sub(me,oe,Q),N.sub(ye,ot,Q);var r=me.len(),n=ye.len();if(!(r<.001||n<.001)){me.scale(1/r),ye.scale(1/n);var i=me.dot(ye),a=Math.cos(t);if(a<i){var o=Ha(Q.x,Q.y,ot.x,ot.y,oe.x,oe.y,Ga,!1);Lt.fromArray(Ga),Lt.scaleAndAdd(ye,o/Math.tan(Math.PI-t));var s=ot.x!==Q.x?(Lt.x-Q.x)/(ot.x-Q.x):(Lt.y-Q.y)/(ot.y-Q.y);if(isNaN(s))return;s<0?N.copy(Lt,Q):s>1&&N.copy(Lt,ot),Lt.toArray(e[1])}}}}function OC(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,oe.fromArray(e[0]),Q.fromArray(e[1]),ot.fromArray(e[2]),N.sub(me,Q,oe),N.sub(ye,ot,Q);var n=me.len(),i=ye.len();if(!(n<.001||i<.001)){me.scale(1/n),ye.scale(1/i);var a=me.dot(t),o=Math.cos(r);if(a<o){var s=Ha(Q.x,Q.y,ot.x,ot.y,oe.x,oe.y,Ga,!1);Lt.fromArray(Ga);var u=Math.PI/2,l=Math.acos(ye.dot(t)),f=u+l-r;if(f>=u)N.copy(Lt,ot);else{Lt.scaleAndAdd(ye,s/Math.tan(Math.PI/2-f));var h=ot.x!==Q.x?(Lt.x-Q.x)/(ot.x-Q.x):(Lt.y-Q.y)/(ot.y-Q.y);if(isNaN(h))return;h<0?N.copy(Lt,Q):h>1&&N.copy(Lt,ot)}Lt.toArray(e[1])}}}}function ph(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function US(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=Gs(n[0],n[1]),a=Gs(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Do([],n[1],n[0],o/i),u=Do([],n[1],n[2],o/a),l=Do([],s,u,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(u[0],u[1],u[0],u[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)e.lineTo(n[f][0],n[f][1])}function YS(e,t,r){var n=e.getTextGuideLine(),i=e.getTextContent();if(!i){n&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,u=0;u<Aa.length;u++){var l=Aa[u],f=t[l],h=l==="normal";if(f){var c=f.get("show"),v=h?s:q(i.states[l]&&i.states[l].ignore,s);if(v||!q(c,o)){var d=h?n:n&&n.states[l];d&&(d.ignore=!0);continue}n||(n=new $u,e.setTextGuideLine(n),!h&&(s||!o)&&ph(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),ph(n,!1,l,f)}}if(n){ht(n.style,r),n.style.fill=null;var y=a.get("showAbove"),p=e.textGuideLineConfig=e.textGuideLineConfig||{};p.showAbove=y||!1,n.buildPath=US}}function $S(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<be.length;n++){var i=be[n];r[i]=e.getModel([i,t])}return r}function XS(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,u=i.style.margin||0,l=o.clone();l.applyTransform(a),l.x-=u/2,l.y-=u/2,l.width+=u,l.height+=u;var f=s?new Pa(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:l,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function ip(e,t,r,n,i,a){var o=e.length;if(o<2)return;e.sort(function(L,T){return L.rect[t]-T.rect[t]});for(var s=0,u,l=!1,f=0,h=0;h<o;h++){var c=e[h],v=c.rect;u=v[t]-s,u<0&&(v[t]-=u,c.label[t]-=u,l=!0);var d=Math.max(-u,0);f+=d,s=v[t]+v[r]}f>0&&a&&b(-f/o,0,o);var y=e[0],p=e[o-1],g,_;m(),g<0&&w(-g,.8),_<0&&w(_,.8),m(),S(g,_,1),S(_,g,-1),m(),g<0&&x(-g),_<0&&x(_);function m(){g=y.rect[t]-n,_=i-p.rect[t]-p.rect[r]}function S(L,T,C){if(L<0){var M=Math.min(T,-L);if(M>0){b(M*C,0,o);var A=M+L;A<0&&w(-A*C,1)}else w(-L*C,1)}}function b(L,T,C){L!==0&&(l=!0);for(var M=T;M<C;M++){var A=e[M],P=A.rect;P[t]+=L,A.label[t]+=L}}function w(L,T){for(var C=[],M=0,A=1;A<o;A++){var P=e[A-1].rect,E=Math.max(e[A].rect[t]-P[t]-P[r],0);C.push(E),M+=E}if(M){var I=Math.min(Math.abs(L)/M,T);if(L>0)for(var A=0;A<o-1;A++){var R=C[A]*I;b(R,0,A+1)}else for(var A=o-1;A>0;A--){var R=C[A-1]*I;b(-R,A,o)}}}function x(L){var T=L<0?-1:1;L=Math.abs(L);for(var C=Math.ceil(L/(o-1)),M=0;M<o-1;M++)if(T>0?b(C,0,M+1):b(-C,o-M-1,o),L-=C,L<=0)return}return l}function qS(e,t,r,n){return ip(e,"x","width",t,r,n)}function ZS(e,t,r,n){return ip(e,"y","height",t,r,n)}function KS(e){var t=[];e.sort(function(y,p){return p.priority-y.priority});var r=new j(0,0,0,0);function n(y){if(!y.ignore){var p=y.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}y.ignore=!0}for(var i=0;i<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,u=a.transform,l=a.label,f=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var h=a.obb,c=!1,v=0;v<t.length;v++){var d=t[v];if(r.intersect(d.rect)){if(o&&d.axisAligned){c=!0;break}if(d.obb||(d.obb=new Pa(d.localRect,d.transform)),h||(h=new Pa(s,u)),h.intersect(d.obb)){c=!0;break}}}c?(n(l),f&&n(f)):(l.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}var Qr=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),QS=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Qr(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new Qr(r,t),"drag",t.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 Qr(u,t),"dragleave",t.event),s&&s!==u&&this.handler.dispatchToElement(new Qr(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Qr(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Qr(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}();const JS=QS;var jS=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ls=[],tw=nt.browser.firefox&&+nt.browser.version.split(".")[0]<39;function _u(e,t,r,n){return r=r||{},n?gh(e,t,r):tw&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):gh(e,t,r),r}function gh(e,t,r){if(nt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(Pd(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(hu(ls,e,n,i)){r.zrX=ls[0],r.zrY=ls[1];return}}r.zrX=r.zrY=0}function pl(e){return e||window.event}function re(e,t,r){if(t=pl(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&_u(e,o,t,r)}else{_u(e,t,t,r);var a=ew(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&jS.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function ew(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function rw(e,t,r,n){e.addEventListener(t,r,n)}function nw(e,t,r,n){e.removeEventListener(t,r,n)}var iw=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function kC(e){return e.which===2||e.which===3}var aw=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o<s;o++){var u=i[o],l=_u(n,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in fs)if(fs.hasOwnProperty(r)){var n=fs[r](this._track,t);if(n)return n}},e}();function yh(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function ow(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var fs={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=yh(n)/yh(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=ow(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}},ap="silent";function sw(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.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:uw}}function uw(){iw(this.event)}var lw=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Be),Ln=function(){function e(t,r){this.x=t,this.y=r}return e}(),fw=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],hs=new j(0,0,0,0),op=function(e){W(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new Ln(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new lw,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new JS(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(fw,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=sp(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 Ln(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)},t.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})},t.prototype.resize=function(){this._hovered=new Ln(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=sw(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)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Ln(r,n);if(_h(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),h=a.length-1;h>=0;h--){var c=a[h];c!==i&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(hs.copy(c.getBoundingRect()),c.transform&&hs.applyTransform(c.transform),hs.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,y=Math.PI*2,p=0;p<l;p+=v)for(var g=0;g<y;g+=d){var _=r+p*Math.cos(g),m=n+p*Math.sin(g);if(_h(s,o,_,m,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new aw);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 Ln;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Be);D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){op.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=sp(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||Gs(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function hw(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?ap:!0}return!1}function _h(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=hw(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==ap)){t.target=o;break}}}function sp(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const vw=op;var up=32,An=7;function cw(e){for(var t=0;e>=up;)t|=e&1,e>>=1;return e+t}function mh(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;dw(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function dw(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function Sh(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,u;o<s;)u=o+s>>>1,i(a,e[u])<0?s=u:o=u+1;var l=n-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function vs(e,t,r,n,i,a){var o=0,s=0,u=1;if(a(e,t[r+i])>0){for(s=n-i;u<s&&a(e,t[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(e,t[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(e,t[r+f])>0?o=f+1:u=f}return u}function cs(e,t,r,n,i,a){var o=0,s=0,u=1;if(a(e,t[r+i])<0){for(s=i+1;u<s&&a(e,t[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(e,t[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(e,t[r+f])<0?u=f:o=f+1}return u}function pw(e,t){var r=An,n,i,a=0;e.length;var 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],y=i[v],p=n[v+1],g=i[v+1];i[v]=y+g,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var _=cs(e[p],e,d,y,0,t);d+=_,y-=_,y!==0&&(g=vs(e[d+y-1],e,p,g,g-1,t),g!==0&&(y<=g?h(d,y,p,g):c(d,y,p,g)))}function h(v,d,y,p){var g=0;for(g=0;g<d;g++)o[g]=e[v+g];var _=0,m=y,S=v;if(e[S++]=e[m++],--p===0){for(g=0;g<d;g++)e[S+g]=o[_+g];return}if(d===1){for(g=0;g<p;g++)e[S+g]=e[m+g];e[S+p]=o[_];return}for(var b=r,w,x,L;;){w=0,x=0,L=!1;do if(t(e[m],o[_])<0){if(e[S++]=e[m++],x++,w=0,--p===0){L=!0;break}}else if(e[S++]=o[_++],w++,x=0,--d===1){L=!0;break}while((w|x)<b);if(L)break;do{if(w=cs(e[m],o,_,d,0,t),w!==0){for(g=0;g<w;g++)e[S+g]=o[_+g];if(S+=w,_+=w,d-=w,d<=1){L=!0;break}}if(e[S++]=e[m++],--p===0){L=!0;break}if(x=vs(o[_],e,m,p,0,t),x!==0){for(g=0;g<x;g++)e[S+g]=e[m+g];if(S+=x,m+=x,p-=x,p===0){L=!0;break}}if(e[S++]=o[_++],--d===1){L=!0;break}b--}while(w>=An||x>=An);if(L)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),d===1){for(g=0;g<p;g++)e[S+g]=e[m+g];e[S+p]=o[_]}else{if(d===0)throw new Error;for(g=0;g<d;g++)e[S+g]=o[_+g]}}function c(v,d,y,p){var g=0;for(g=0;g<p;g++)o[g]=e[y+g];var _=v+d-1,m=p-1,S=y+p-1,b=0,w=0;if(e[S--]=e[_--],--d===0){for(b=S-(p-1),g=0;g<p;g++)e[b+g]=o[g];return}if(p===1){for(S-=d,_-=d,w=S+1,b=_+1,g=d-1;g>=0;g--)e[w+g]=e[b+g];e[S]=o[m];return}for(var x=r;;){var L=0,T=0,C=!1;do if(t(o[m],e[_])<0){if(e[S--]=e[_--],L++,T=0,--d===0){C=!0;break}}else if(e[S--]=o[m--],T++,L=0,--p===1){C=!0;break}while((L|T)<x);if(C)break;do{if(L=d-cs(o[m],e,v,d,d-1,t),L!==0){for(S-=L,_-=L,d-=L,w=S+1,b=_+1,g=L-1;g>=0;g--)e[w+g]=e[b+g];if(d===0){C=!0;break}}if(e[S--]=o[m--],--p===1){C=!0;break}if(T=p-vs(e[_],o,0,p,p-1,t),T!==0){for(S-=T,m-=T,p-=T,w=S+1,b=m+1,g=0;g<T;g++)e[w+g]=o[b+g];if(p<=1){C=!0;break}}if(e[S--]=e[_--],--d===0){C=!0;break}x--}while(L>=An||T>=An);if(C)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),p===1){for(S-=d,_-=d,w=S+1,b=_+1,g=d-1;g>=0;g--)e[w+g]=e[b+g];e[S]=o[m]}else{if(p===0)throw new Error;for(b=S-(p-1),g=0;g<p;g++)e[b+g]=o[g]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function _a(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<up){a=mh(e,r,n,t),Sh(e,r,n,r+a,t);return}var o=pw(e,t),s=cw(i);do{if(a=mh(e,r,n,t),a<s){var u=i;u>s&&(u=s),Sh(e,r,r+u,r+a,t),a=u}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var wh=!1;function ds(){wh||(wh=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function bh(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var gw=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=bh}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,_a(n,bh)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)r=null;else if(i){r?r=r.slice():r=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),u=0;u<s.length;u++){var l=s[u];t.__dirty&&(l.__dirty|=ge),this._updateAndAddDisplayable(l,r,n)}t.__dirty=0}else{var f=t;r&&r.length?f.__clipPaths=r:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(ds(),f.z=0),isNaN(f.z2)&&(ds(),f.z2=0),isNaN(f.zlevel)&&(ds(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,r,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,r,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var i=at(this._roots,t);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const yw=gw;var lp;lp=nt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const Th=lp;function nn(){return new Date().getTime()}var _w=function(e){W(t,e);function t(r){var n=e.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 t.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},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.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}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=nn()-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())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Th(n),!r._paused&&r.update())}Th(n)},t.prototype.start=function(){this._running||(this._time=nn(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=nn(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=nn()-this._pauseStart,this._paused=!1)},t.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},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new Nu(r,n.loop);return this.addAnimator(i),i},t}(Be);const mw=_w;var Sw=300,ps=nt.domSupported,gs=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=G(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),Mh={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Ch=!1;function mu(e){var t=e.pointerType;return t==="pen"||t==="touch"}function ww(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function ys(e){e&&(e.zrByTouch=!0)}function bw(e,t){return re(e.dom,new Tw(e,t),!0)}function fp(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var Tw=function(){function e(t,r){this.stopPropagation=Qt,this.stopImmediatePropagation=Qt,this.preventDefault=Qt,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),ne={mousedown:function(e){e=re(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=re(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=re(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=re(this.dom,e);var t=e.toElement||e.relatedTarget;fp(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Ch=!0,e=re(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Ch||(e=re(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=re(this.dom,e),ys(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),ne.mousemove.call(this,e),ne.mousedown.call(this,e)},touchmove:function(e){e=re(this.dom,e),ys(e),this.handler.processGesture(e,"change"),ne.mousemove.call(this,e)},touchend:function(e){e=re(this.dom,e),ys(e),this.handler.processGesture(e,"end"),ne.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<Sw&&ne.click.call(this,e)},pointerdown:function(e){ne.mousedown.call(this,e)},pointermove:function(e){mu(e)||ne.mousemove.call(this,e)},pointerup:function(e){ne.mouseup.call(this,e)},pointerout:function(e){mu(e)||ne.mouseout.call(this,e)}};D(["click","dblclick","contextmenu"],function(e){ne[e]=function(t){t=re(this.dom,t),this.trigger(e,t)}});var Su={pointermove:function(e){mu(e)||Su.mousemove.call(this,e)},pointerup:function(e){Su.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function Mw(e,t){var r=t.domHandlers;nt.pointerEventsSupported?D(gs.pointer,function(n){ma(t,n,function(i){r[n].call(e,i)})}):(nt.touchEventsSupported&&D(gs.touch,function(n){ma(t,n,function(i){r[n].call(e,i),ww(t)})}),D(gs.mouse,function(n){ma(t,n,function(i){i=pl(i),t.touching||r[n].call(e,i)})}))}function Cw(e,t){nt.pointerEventsSupported?D(Mh.pointer,r):nt.touchEventsSupported||D(Mh.mouse,r);function r(n){function i(a){a=pl(a),fp(e,a.target)||(a=bw(e,a),t.domHandlers[n].call(e,a))}ma(t,n,i,{capture:!0})}}function ma(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,rw(e.domTarget,t,r,n)}function _s(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&nw(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var Dh=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),Dw=function(e){W(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new Dh(r,ne),ps&&(i._globalHandlerScope=new Dh(document,Su)),Mw(i,i._localHandlerScope),i}return t.prototype.dispose=function(){_s(this._localHandlerScope),ps&&_s(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,ps&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?Cw(this,n):_s(n)}},t}(Be);const xw=Dw;/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var Sa={},hp={};function Lw(e){delete hp[e]}function Aw(e){if(!e)return!1;if(typeof e=="string")return xa(e,1)<Xs;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=xa(t[i].color,1);return r/=n,r<Xs}return!1}var Pw=function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var a=new yw,o=n.renderer||"canvas";Sa[o]||(o=it(Sa)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Sa[o](r,a,n,t),u=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!nt.node&&!nt.worker&&!u?new xw(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?nt.touchEventsSupported:!!f,c=44,v;h&&(v=q(n.pointerSize,c)),this.handler=new vw(a,s,l,s.root,v),this.animation=new mw({stage:{update:u?null:function(){return i._flush(!0)}}}),u||this.animation.start()}return e.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh()},e.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Aw(t)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(t){var r,n=nn();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=nn();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof mi&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,Lw(this.id)},e}();function xh(e,t){var r=new Pw(Pv(),e,t);return hp[r.id]=r,r}function Ew(e,t){Sa[e]=t}var vp="";typeof navigator<"u"&&(vp=navigator.platform||"");var Jr="rgba(0, 0, 0, 0.2)";const Rw={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Jr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Jr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Jr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Jr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Jr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Jr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:vp.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 wu=$();function FC(e,t){we(wu.get(e)==null&&t),wu.set(e,t)}function Iw(e,t,r){var n=wu.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var $i,Pn,Lh,Ah="\0_ec_inner",Ow=1,cp=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Ie(a),this._locale=new Ie(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=Rh(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,Rh(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?Lh(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&&D(u,function(l){i=!0,this._mergeOption(l,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=$(),l=n&&n.replaceMergeMainTypeMap;Dm(this),D(r,function(h,c){h!=null&&(vt.hasClass(c)?c&&(s.push(c),u.set(c,!0)):i[c]=i[c]==null?J(h):ft(i[c],h,!0))}),l&&l.each(function(h,c){vt.hasClass(c)&&!u.get(c)&&(s.push(c),u.set(c,!0))}),vt.topologicalTravel(s,vt.getAllClassMainTypes(),f,this);function f(h){var c=Iw(this,h,_t(r[h])),v=a.get(h),d=v?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",y=Iy(v,c,d);Hy(y,h,vt),i[h]=null,a.set(h,null),o.set(h,0);var p=[],g=[],_=0,m;D(y,function(S,b){var w=S.existing,x=S.newOption;if(!x)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var L=h==="series",T=vt.getClass(h,S.keyInfo.subType,!L);if(!T)return;if(h==="tooltip"){if(m)return;m=!0}if(w&&w.constructor===T)w.name=S.keyInfo.name,w.mergeOption(x,this),w.optionUpdated(x,!1);else{var C=O({componentIndex:b},S.keyInfo);w=new T(x,this,this,C),O(w,C),S.brandNew&&(w.__requireNewView=!0),w.init(x,this,this),w.optionUpdated(null,!0)}}w?(p.push(w.option),g.push(w),_++):(p.push(void 0),g.push(void 0))},this),i[h]=p,a.set(h,g),o.set(h,_),h==="series"&&$i(this)}this._seriesIndices||$i(this)},t.prototype.getOption=function(){var r=J(this.option);return D(r,function(n,i){if(vt.hasClass(i)){for(var a=_t(n),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!ai(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[Ah],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.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]}}},t.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=[],D(_t(i),function(l){s[l]&&u.push(s[l])})):a!=null?u=Ph("id",a,s):o!=null?u=Ph("name",o,s):u=yt(s,function(l){return!!l}),Eh(u,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):yt(this._componentsMap.get(i),function(l){return!!l});return u(Eh(o,r));function s(l){var f=i+"Index",h=i+"Id",c=i+"Name";return l&&(l[f]!=null||l[h]!=null||l[c]!=null)?{mainType:i,index:l[f],id:l[h],name:l[c]}:null}function u(l){return r.filter?yt(l,r.filter):l}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(Z(r)){var o=n,s=r;a.each(function(h,c){for(var v=0;h&&v<h.length;v++){var d=h[v];d&&s.call(o,c,d,d.componentIndex)}})}else for(var u=V(r)?a.get(r):z(r)?this.findComponents(r):null,l=0;u&&l<u.length;l++){var f=u[l];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=ue(r,null);return yt(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return yt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return yt(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){Pn(this),D(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){D(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){Pn(this),D(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return D(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return Pn(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){Pn(this);var i=[];D(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=$(i)},t.prototype.restoreData=function(r){$i(this);var n=this._componentsMap,i=[];n.each(function(a,o){vt.hasClass(o)&&i.push(o)}),vt.topologicalTravel(i,vt.getAllClassMainTypes(),function(a){D(n.get(a),function(o){o&&(a!=="series"||!kw(o,r))&&o.restoreData()})})},t.internalField=function(){$i=function(r){var n=r._seriesIndices=[];D(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=$(n)},Pn=function(r){},Lh=function(r,n){r.option={},r.option[Ah]=Ow,r._componentsMap=$({series:[]}),r._componentsCount=$();var i=n.aria;z(i)&&i.enabled==null&&(i.enabled=!0),Fw(n,r._theme.option),ft(n,Rw,!1),r._mergeOption(n,null)}}(),t}(Ie);function kw(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,i=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||i!=null&&e.name!==i}}function Fw(e,t){var r=e.color&&!e.colorLayer;D(t,function(n,i){i==="colorLayer"&&r||vt.hasClass(i)||(typeof n=="object"?e[i]=e[i]?ft(e[i],n,!1):J(n):e[i]==null&&(e[i]=n))})}function Ph(e,t,r){if(B(t)){var n=$();return D(t,function(a){if(a!=null){var o=ue(a,null);o!=null&&n.set(a,!0)}}),yt(r,function(a){return a&&n.get(a[e])})}else{var i=ue(t,null);return yt(r,function(a){return a&&i!=null&&a[e]===i})}}function Eh(e,t){return t.hasOwnProperty("subType")?yt(e,function(r){return r&&r.subType===t.subType}):e}function Rh(e){var t=$();return e&&D(_t(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Fe(cp,ll);const dp=cp;var Bw=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Nw=function(){function e(t){D(Bw,function(r){this[r]=Ot(t[r],t)},this)}return e}();const pp=Nw;var zw=/^(min|max)?(.+)$/,Hw=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(D(_t(t.series),function(o){o&&o.data&&Wt(o.data)&&Ns(o.data)}),D(_t(t.dataset),function(o){o&&o.source&&Wt(o.source)&&Ns(o.source)})),t=J(t);var i=this._optionBackup,a=Gw(t,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},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],J(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(r=J(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){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++)Vw(i[u].query,r,n)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!Uw(o,this._currentMediaIndices)&&(s=G(o,function(f){return J(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},e}();function Gw(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,u=e.options,l=e.media,f=!!e.media,h=!!(u||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(e.options=e.media=null),a=e),f&&B(l)&&D(l,function(v){v&&v.option&&(v.query?n.push(v):i||(i=v))}),c(a),D(u,function(v){return c(v)}),D(n,function(v){return c(v.option)});function c(v){D(t,function(d){d(v,r)})}return{baseOption:a,timelineOptions:u||[],mediaDefault:i,mediaList:n}}function Vw(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return D(e,function(a,o){var s=o.match(zw);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();Ww(n[l],a,u)||(i=!1)}}),i}function Ww(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function Uw(e,t){return e.join(",")===t.join(",")}const Yw=Hw;var jt=D,li=z,Ih=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ms(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=Ih.length;r<n;r++){var i=Ih[r],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?ft(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?ft(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function bt(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,i=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,ht(e[t],n)):e[t]=n),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Vn(e){bt(e,"itemStyle"),bt(e,"lineStyle"),bt(e,"areaStyle"),bt(e,"label"),bt(e,"labelLine"),bt(e,"upperLabel"),bt(e,"edgeLabel")}function st(e,t){var r=li(e)&&e[t],n=li(r)&&r.textStyle;if(n)for(var i=0,a=gf.length;i<a;i++){var o=gf[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Xt(e){e&&(Vn(e),st(e,"label"),e.emphasis&&st(e.emphasis,"label"))}function $w(e){if(li(e)){ms(e),Vn(e),st(e,"label"),st(e,"upperLabel"),st(e,"edgeLabel"),e.emphasis&&(st(e.emphasis,"label"),st(e.emphasis,"upperLabel"),st(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(ms(t),Xt(t));var r=e.markLine;r&&(ms(r),Xt(r));var n=e.markArea;n&&Xt(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!Wt(a))for(var o=0;o<a.length;o++)Xt(a[o]);D(e.categories,function(l){Vn(l)})}if(i&&!Wt(i))for(var o=0;o<i.length;o++)Xt(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Xt(s[o]);if(r=e.markLine,r&&r.data)for(var u=r.data,o=0;o<u.length;o++)B(u[o])?(Xt(u[o][0]),Xt(u[o][1])):Xt(u[o]);e.type==="gauge"?(st(e,"axisLabel"),st(e,"title"),st(e,"detail")):e.type==="treemap"?(bt(e.breadcrumb,"itemStyle"),D(e.levels,function(l){Vn(l)})):e.type==="tree"&&Vn(e.leaves)}}function Ce(e){return B(e)?e:e?[e]:[]}function Oh(e){return(B(e)?e[0]:e)||{}}function Xw(e,t){jt(Ce(e.series),function(n){li(n)&&$w(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),jt(r,function(n){jt(Ce(e[n]),function(i){i&&(st(i,"axisLabel"),st(i.axisPointer,"label"))})}),jt(Ce(e.parallel),function(n){var i=n&&n.parallelAxisDefault;st(i,"axisLabel"),st(i&&i.axisPointer,"label")}),jt(Ce(e.calendar),function(n){bt(n,"itemStyle"),st(n,"dayLabel"),st(n,"monthLabel"),st(n,"yearLabel")}),jt(Ce(e.radar),function(n){st(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),jt(Ce(e.geo),function(n){li(n)&&(Xt(n),jt(Ce(n.regions),function(i){Xt(i)}))}),jt(Ce(e.timeline),function(n){Xt(n),bt(n,"label"),bt(n,"itemStyle"),bt(n,"controlStyle",!0);var i=n.data;B(i)&&D(i,function(a){z(a)&&(bt(a,"label"),bt(a,"itemStyle"))})}),jt(Ce(e.toolbox),function(n){bt(n,"iconStyle"),jt(n.feature,function(i){bt(i,"iconStyle")})}),st(Oh(e.axisPointer),"label"),st(Oh(e.tooltip).axisPointer,"label")}function qw(e,t){for(var r=t.split(","),n=e,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function Zw(e,t,r,n){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(n||a[i[s]]==null)&&(a[i[s]]=r)}function kh(e){e&&D(Kw,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Kw=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Qw=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Ss=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function En(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Ss.length;r++){var n=Ss[r][1],i=Ss[r][0];t[n]!=null&&(t[i]=t[n])}}function Fh(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function Bh(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Jw(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function gp(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&gp(e[r].children,t)}function yp(e,t){Xw(e,t),e.series=_t(e.series),D(e.series,function(r){if(z(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),Fh(r.label);var i=r.data;if(i&&!Wt(i))for(var a=0;a<i.length;a++)Fh(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=qw(r,"pointer.color");o!=null&&Zw(r,"itemStyle.color",o)}else if(n==="bar"){En(r),En(r.backgroundStyle),En(r.emphasis);var i=r.data;if(i&&!Wt(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(En(i[a]),En(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)),Bh(r),gp(r.data,Bh)}else n==="graph"||n==="sankey"?Jw(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&ht(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),kh(r)}}),e.dataRange&&(e.visualMap=e.dataRange),D(Qw,function(r){var n=e[r];n&&(B(n)||(n=[n]),D(n,function(i){kh(i)}))})}function jw(e){var t=$();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.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.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(tb)}function tb(e){D(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,u=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(l,f,h){var c=o.get(t.stackedDimension,h);if(isNaN(c))return i;var v,d;s?d=o.getRawIndex(h):v=o.get(t.stackedByDimension,h);for(var y=NaN,p=r-1;p>=0;p--){var g=e[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,v)),d>=0){var _=g.data.getByRawIndex(g.stackResultDimension,d);if(u==="all"||u==="positive"&&_>0||u==="negative"&&_<0||u==="samesign"&&c>=0&&_>0||u==="samesign"&&c<=0&&_<0){c=Cy(c,_),y=_;break}}}return n[0]=c,n[1]=y,n})})}var gl=function(){function e(){this.group=new mi,this.uid=ho("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();ku(gl);Qa(gl);const bu=gl;var Nh=ct(),zh={itemStyle:ei(fd,!0),lineStyle:ei(ld,!0)},eb={lineStyle:"stroke",itemStyle:"fill"};function _p(e,t){var r=e.visualStyleMapper||zh[t];return r||(console.warn("Unknown style type '"+t+"'."),zh.itemStyle)}function mp(e,t){var r=e.visualDrawType||eb[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var rb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=_p(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=mp(e,n),l=o[u],f=Z(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||h){var c=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[u]||(o[u]=c,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Z(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||Z(o.stroke)?c:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",u),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var y=e.getDataParams(d),p=O({},o);p[u]=f(y),v.setItemVisual(d,"style",p)}}}},Rn=new Ie,nb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=_p(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){Rn.option=u[n];var l=i(Rn),f=o.ensureUniqueItemVisual(s,"style");O(f,l),Rn.option.decal&&(o.setItemVisual(s,"decal",Rn.option.decal),Rn.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},ib={performRawSeries:!0,overallReset:function(e){var t=$();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),Nh(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=Nh(r).scope,s=r.visualStyleAccessPath||"itemStyle",u=mp(r,s);a.each(function(l){var f=a.getRawIndex(l);i[f]=l}),n.each(function(l){var f=i[l],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=n.getName(l)||l+"",d=n.count();c[u]=r.getColorFromPalette(v,o,d)}})}})}},Xi=Math.PI;function ab(e,t){t=t||{},ht(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new mi,n=new Re({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new ii({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Re({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new qu({shape:{startAngle:-Xi/2,endAngle:-Xi/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Xi*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Xi*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),f=e.getHeight()/2;t.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:e.getWidth(),height:e.getHeight()})},r.resize(),r}var ob=function(){function e(t,r,n,i){this._stageTaskMap=$(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__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}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),u=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:u,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=$();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;D(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";we(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;D(t,function(u,l){if(!(i.visualType&&i.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,n);var y=o.getPerformArgs(c,i.block);d.each(function(p){p.perform(y)}),c.perform(y)&&(a=!0)}else h&&h.each(function(p,g){s(i,p)&&p.dirty();var _=o.getPerformArgs(p,i.block);_.skip=!u.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(_)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=$(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):u?n.eachRawSeriesByType(u,f):l&&l(n,i).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||Kn({plan:hb,reset:vb,count:db}));v.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Kn({reset:sb});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=$(),l=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";we(!t.createOnAllSeries,v),l?n.eachRawSeriesByType(l,d):f?f(n,i).each(d):(h=!1,D(n.getSeries(),d));function d(y){var p=y.uid,g=u.set(p,s&&s.get(p)||(c=!0,Kn({reset:ub,onDirty:fb})));g.context={model:y,overallProgress:h},g.agent=o,g.__block=h,a._pipe(y,g)}c&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.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},e.wrapStageHandler=function(t,r){return Z(t)&&(t={overallReset:t,seriesType:pb(t)}),t.uid=ho("stageHandler"),r&&(t.visualType=r),t},e}();function sb(e){e.overallReset(e.ecModel,e.api,e.payload)}function ub(e){return e.overallProgress&&lb}function lb(){this.agent.dirty(),this.getDownstream().dirty()}function fb(){this.agent&&this.agent.dirty()}function hb(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function vb(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=_t(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?G(t,function(r,n){return Sp(n)}):cb}var cb=Sp(0);function Sp(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function db(e){return e.data.count()}function pb(e){Va=null;try{e(fi,wp)}catch{}return Va}var fi={},wp={},Va;bp(fi,dp);bp(wp,pp);fi.eachSeriesByType=fi.eachRawSeriesByType=function(e){Va=e};fi.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Va=e.subType)};function bp(e,t){for(var r in t.prototype)e[r]=Qt}const Tp=ob;var Hh=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const gb={color:Hh,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Hh]};var Dt="#B9B8CE",Gh="#100C2A",qi=function(){return{axisLine:{lineStyle:{color:Dt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Vh=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Mp={darkMode:!0,color:Vh,backgroundColor:Gh,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Dt}},textStyle:{color:Dt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Dt}},dataZoom:{borderColor:"#71708A",textStyle:{color:Dt},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Dt}},timeline:{lineStyle:{color:Dt},label:{color:Dt},controlStyle:{color:Dt,borderColor:Dt}},calendar:{itemStyle:{color:Gh},dayLabel:{color:Dt},monthLabel:{color:Dt},yearLabel:{color:Dt}},timeAxis:qi(),logAxis:qi(),valueAxis:qi(),categoryAxis:qi(),line:{symbol:"circle"},graph:{color:Vh},gauge:{title:{color:Dt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Dt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Mp.categoryAxis.splitLine.show=!1;const yb=Mp;var _b=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(V(t)){var a=_e(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};D(t,function(u,l){for(var f=!1,h=0;h<o.length;h++){var c=o[h],v=l.lastIndexOf(c);if(v>0&&v===l.length-c.length){var d=l.slice(0,v);d!=="data"&&(r.mainType=d,r[c.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(n[l]=u,f=!0),f||(i[l]=u)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,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(t,r.otherQuery,i,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Tu=["symbol","symbolSize","symbolRotate","symbolOffset"],Wh=Tu.concat(["symbolKeepAspect"]),mb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<Tu.length;o++){var s=Tu[o],u=e.get(s);Z(u)?(a=!0,i[s]=u):n[s]=u}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(O({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var l=it(i);function f(h,c){for(var v=e.getRawValue(c),d=e.getDataParams(c),y=0;y<l.length;y++){var p=l[y];h.setItemVisual(c,p,i[p](v,d))}}return{dataEach:a?f:null}}},Sb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<Wh.length;s++){var u=Wh[s],l=o.getShallow(u,!0);l!=null&&i.setItemVisual(a,u,l)}}return{dataEach:r.hasItemOption?n:null}}};function wb(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function bb(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function BC(e,t,r,n){switch(r){case"color":var i=e.ensureUniqueItemVisual(t,"style");i[e.getVisual("drawType")]=n,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,r,n);break}}function Zi(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var Tb=Math.round(Math.random()*9),Mb=typeof Object.defineProperty=="function",Cb=function(){function e(){this._id="__ec_inner_"+Tb++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return Mb?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}();const Db=Cb;function Pr(e){return isFinite(e)}function xb(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=Pr(n)?n:0,i=Pr(i)?i:1,a=Pr(a)?a:0,o=Pr(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function Lb(e,t,r){var n=r.width,i=r.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,u=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*i+r.y,u=u*a),o=Pr(o)?o:.5,s=Pr(s)?s:.5,u=u>=0&&Pr(u)?u:.5;var l=e.createRadialGradient(o,s,0,o,s,u);return l}function Uh(e,t,r){for(var n=t.type==="radial"?Lb(e,t,r):xb(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function Ab(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Ki(e){return parseInt(e,10)}function NC(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Ki(s[n])||Ki(e.style[n]))-(Ki(s[a])||0)-(Ki(s[o])||0)|0}function Pb(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:ut(e)?[e]:B(e)?e:null}function Cp(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&Pb(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=G(r,function(a){return a/i}),n/=i)}return[r,n]}var Eb=new Fr(!0);function Wa(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Yh(e){return typeof e=="string"&&e!=="none"}function Ua(e){var t=e.fill;return t!=null&&t!=="none"}function $h(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function Xh(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function qh(e,t,r){var n=Nv(t.image,t.__image,r);if(Ja(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Ig),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function Rb(e,t,r,n){var i,a=Wa(r),o=Ua(r),s=r.strokePercent,u=s<1,l=!t.path;(!t.silent||u)&&l&&t.createPathProxy();var f=t.path||Eb,h=t.__dirty;if(!n){var c=r.fill,v=r.stroke,d=o&&!!c.colorStops,y=a&&!!v.colorStops,p=o&&!!c.image,g=a&&!!v.image,_=void 0,m=void 0,S=void 0,b=void 0,w=void 0;(d||y)&&(w=t.getBoundingRect()),d&&(_=h?Uh(e,c,w):t.__canvasFillGradient,t.__canvasFillGradient=_),y&&(m=h?Uh(e,v,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),p&&(S=h||!t.__canvasFillPattern?qh(e,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),g&&(b=h||!t.__canvasStrokePattern?qh(e,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?e.fillStyle=_:p&&(S?e.fillStyle=S:o=!1),y?e.strokeStyle=m:g&&(b?e.strokeStyle=b:a=!1)}var x=t.getGlobalScale();f.setScale(x[0],x[1],t.segmentIgnoreThreshold);var L,T;e.setLineDash&&r.lineDash&&(i=Cp(t),L=i[0],T=i[1]);var C=!0;(l||h&en)&&(f.setDPR(e.dpr),u?f.setContext(null):(f.setContext(e),C=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),C&&f.rebuildPath(e,u?s:1),L&&(e.setLineDash(L),e.lineDashOffset=T),n||(r.strokeFirst?(a&&Xh(e,r),o&&$h(e,r)):(o&&$h(e,r),a&&Xh(e,r))),L&&e.setLineDash([])}function Ib(e,t,r){var n=t.__image=Nv(r.image,t.__image,t,t.onload);if(!(!n||!Ja(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.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;e.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,h=o-l,c=s-f;e.drawImage(n,l,f,h,c,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function Ob(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Or,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=Cp(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(Wa(r)&&e.strokeText(i,r.x,r.y),Ua(r)&&e.fillText(i,r.x,r.y)):(Ua(r)&&e.fillText(i,r.x,r.y),Wa(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var Zh=["shadowBlur","shadowOffsetX","shadowOffsetY"],Kh=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Dp(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){kt(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Rr.opacity:o}(n||t.blend!==r.blend)&&(a||(kt(e,i),a=!0),e.globalCompositeOperation=t.blend||Rr.blend);for(var s=0;s<Zh.length;s++){var u=Zh[s];(n||t[u]!==r[u])&&(a||(kt(e,i),a=!0),e[u]=e.dpr*(t[u]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(kt(e,i),a=!0),e.shadowColor=t.shadowColor||Rr.shadowColor),a}function Qh(e,t,r,n,i){var a=hi(t,i.inHover),o=n?null:r&&hi(r,i.inHover)||{};if(a===o)return!1;var s=Dp(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(kt(e,i),s=!0),Yh(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(kt(e,i),s=!0),Yh(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(kt(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var u=a.lineWidth,l=u/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(kt(e,i),s=!0),e.lineWidth=l)}for(var f=0;f<Kh.length;f++){var h=Kh[f],c=h[0];(n||a[c]!==o[c])&&(s||(kt(e,i),s=!0),e[c]=a[c]||h[1])}return s}function kb(e,t,r,n,i){return Dp(e,hi(t,i.inHover),r&&hi(r,i.inHover),n,i)}function xp(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function Fb(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),xp(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function Bb(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var Jh=1,jh=2,tv=3,ev=4;function Nb(e){var t=Ua(e),r=Wa(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function kt(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function hi(e,t){return t&&e.__hoverStyle||e.style}function zb(e,t){Mu(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Mu(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~ge,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,u=!1;if((!o||Ab(a,o))&&(o&&o.length&&(kt(e,r),e.restore(),u=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(kt(e,r),e.save(),Fb(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=r.prevEl;l||(u=s=!0);var f=t instanceof et&&t.autoBatch&&Nb(t.style);s||Bb(i,l.transform)?(kt(e,r),xp(e,t)):f||kt(e,r);var h=hi(t,r.inHover);t instanceof et?(r.lastDrawType!==Jh&&(u=!0,r.lastDrawType=Jh),Qh(e,t,l,u,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),Rb(e,t,h,f),f&&(r.batchFill=h.fill||"",r.batchStroke=h.stroke||"")):t instanceof Js?(r.lastDrawType!==tv&&(u=!0,r.lastDrawType=tv),Qh(e,t,l,u,r),Ob(e,t,h)):t instanceof vn?(r.lastDrawType!==jh&&(u=!0,r.lastDrawType=jh),kb(e,t,l,u,r),Ib(e,t,h)):t.getTemporalDisplayables&&(r.lastDrawType!==ev&&(u=!0,r.lastDrawType=ev),Hb(e,t,r)),f&&n&&kt(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Hb(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var u=n[o];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),Mu(e,u,a,o===s-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}for(var l=0,f=i.length;l<f;l++){var u=i[l];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),Mu(e,u,a,l===f-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var ws=new Db,rv=new pi(100),nv=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function iv(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&ws.delete(e);var a=ws.get(e);if(a)return a;var o=ht(e,{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,ws.set(e,s),e.dirty=!1,s;function u(l){for(var f=[r],h=!0,c=0;c<nv.length;++c){var v=o[nv[c]];if(v!=null&&!B(v)&&!V(v)&&!ut(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var d;if(h){d=f.join(",")+(i?"-svg":"");var y=rv.get(d);y&&(i?l.svgElement=y:l.image=y)}var p=Ap(o.dashArrayX),g=Gb(o.dashArrayY),_=Lp(o.symbol),m=Vb(p),S=Pp(g),b=!i&&ci.createCanvas(),w=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=T(),L;b&&(b.width=x.width*r,b.height=x.height*r,L=b.getContext("2d")),C(),h&&rv.put(d,b||w),l.image=b,l.svgElement=w,l.svgWidth=x.width,l.svgHeight=x.height;function T(){for(var M=1,A=0,P=m.length;A<P;++A)M=vf(M,m[A]);for(var E=1,A=0,P=_.length;A<P;++A)E=vf(E,_[A].length);M*=E;var I=S*m.length*_.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(I,o.maxTileHeight))}}function C(){L&&(L.clearRect(0,0,b.width,b.height),o.backgroundColor&&(L.fillStyle=o.backgroundColor,L.fillRect(0,0,b.width,b.height)));for(var M=0,A=0;A<g.length;++A)M+=g[A];if(M<=0)return;for(var P=-S,E=0,I=0,R=0;P<x.height;){if(E%2===0){for(var Y=I/2%_.length,F=0,k=0,U=0;F<x.width*2;){for(var rt=0,A=0;A<p[R].length;++A)rt+=p[R][A];if(rt<=0)break;if(k%2===0){var tt=(1-o.symbolSize)*.5,lt=F+p[R][k]*tt,Ut=P+g[E]*tt,He=p[R][k]*o.symbolSize,tr=g[E]*o.symbolSize,er=U/2%_[Y].length;zr(lt,Ut,He,tr,_[Y][er])}F+=p[R][k],++U,++k,k===p[R].length&&(k=0)}++R,R===p.length&&(R=0)}P+=g[E],++I,++E,E===g.length&&(E=0)}function zr(Nt,dt,H,X,rr){var Mt=i?1:r,Dl=DS(rr,Nt*Mt,dt*Mt,H*Mt,X*Mt,o.color,o.symbolKeepAspect);if(i){var xl=n.painter.renderOneToVNode(Dl);xl&&w.children.push(xl)}else zb(L,Dl)}}}}function Lp(e){if(!e||e.length===0)return[["rect"]];if(V(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!V(e[r])){t=!1;break}if(t)return Lp([e]);for(var n=[],r=0;r<e.length;++r)V(e[r])?n.push([e[r]]):n.push(e[r]);return n}function Ap(e){if(!e||e.length===0)return[[0,0]];if(ut(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!ut(e[n])){r=!1;break}if(r)return Ap([e]);for(var i=[],n=0;n<e.length;++n)if(ut(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=G(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function Gb(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(ut(e)){var t=Math.ceil(e);return[t,t]}var r=G(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function Vb(e){return G(e,function(t){return Pp(t)})}function Pp(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function Wb(e,t){e.eachRawSeries(function(r){if(!e.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=iv(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=iv(i,t)}}})}var Ub=new Be;const ie=Ub;var Ep={};function Yb(e,t){Ep[e]=t}function $b(e){return Ep[e]}var Xb=1,qb=800,Zb=900,Kb=1e3,Qb=2e3,Jb=5e3,Rp=1e3,jb=1100,yl=2e3,Ip=3e3,tT=4e3,_o=4500,eT=4600,rT=5e3,nT=6e3,Op=7e3,iT={PROCESSOR:{FILTER:Kb,SERIES_FILTER:qb,STATISTIC:Jb},VISUAL:{LAYOUT:Rp,PROGRESSIVE_LAYOUT:jb,GLOBAL:yl,CHART:Ip,POST_CHART_LAYOUT:eT,COMPONENT:tT,BRUSH:rT,CHART_ITEM:_o,ARIA:nT,DECAL:Op}},St="__flagInMainProcess",Et="__pendingUpdate",bs="__needsUpdateStatus",av=/^[a-zA-Z0-9_]+$/,Ts="__connectUpdateStatus",ov=0,aT=1,oT=2;function kp(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return Bp(this,e,t)}}function Fp(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Bp(this,e,t)}}function Bp(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Be.prototype[t].apply(e,r)}var Np=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Be),zp=Np.prototype;zp.on=Fp("on");zp.off=Fp("off");var jr,Ms,Qi,$e,Cs,Ds,xs,In,On,sv,uv,Ls,lv,Ji,fv,Hp,Yt,hv,Gp=function(e){W(t,e);function t(r,n,i){var a=e.call(this,new _b)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},V(n)&&(n=Vp[n]),a._dom=r;var o="canvas",s="auto",u=!1,l=a._zr=xh(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:q(i.useDirtyRect,u),useCoarsePointer:q(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=dl(Ot(l.flush,l),17),n=J(n),n&&yp(n,!0),a._theme=n,a._locale=T1(i.locale||Ed),a._coordSysMgr=new el;var f=a._api=fv(a);function h(c,v){return c.__prio-v.__prio}return _a($a,h),_a(Cu,h),a._scheduler=new Tp(a,f,Cu,$a),a._messageCenter=new Np,a._initEvents(),a.resize=Ot(a.resize,a),l.animation.on("frame",a._onframe,a),sv(l,a),uv(l,a),Ns(a),a}return t.prototype._onframe=function(){if(!this._disposed){hv(this);var r=this._scheduler;if(this[Et]){var n=this[Et].silent;this[St]=!0;try{jr(this),$e.update.call(this,null,this[Et].updateParams)}catch(u){throw this[St]=!1,this[Et]=null,u}this._zr.flush(),this[St]=!1,this[Et]=null,In.call(this,n),On.call(this,n)}else if(r.unfinished){var i=Xb,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),Ds(this,a),r.performVisualTasks(a),Ji(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[St]){if(this._disposed){this.id;return}var a,o,s;if(z(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[St]=!0,!this._model||n){var u=new Yw(this._api),l=this._theme,f=this._model=new dp;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},Du);var h={seriesTransition:s,optionChanged:!0};if(i)this[Et]={silent:a,updateParams:h},this[St]=!1,this.getZr().wakeUp();else{try{jr(this),$e.update.call(this,null,h)}catch(c){throw this[Et]=null,this[St]=!1,c}this._ssr||this._zr.flush(),this[Et]=null,this[St]=!1,In.call(this,a),On.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||nt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(nt.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return D(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;D(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 D(a,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(vv[i]){var u=s,l=s,f=-s,h=-s,c=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();D(jn,function(m,S){if(m.group===i){var b=n?m.getZr().painter.getSvgDom().innerHTML:m.renderToCanvas(J(r)),w=m.getDom().getBoundingClientRect();u=a(w.left,u),l=a(w.top,l),f=o(w.right,f),h=o(w.bottom,h),c.push({dom:b,left:w.left,top:w.top})}}),u*=v,l*=v,f*=v,h*=v;var d=f-u,y=h-l,p=ci.createCanvas(),g=xh(p,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:y}),n){var _="";return D(c,function(m){var S=m.left-u,b=m.top-l;_+='<g transform="translate('+S+","+b+')">'+m.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=_,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new Re({shape:{x:0,y:0,width:d,height:y},style:{fill:r.connectedBackgroundColor}})),D(c,function(m){var S=new vn({style:{x:m.left*v-u,y:m.top*v-l,image:m.dom}});g.add(S)}),g.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return Cs(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Cs(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=$o(i,r);return D(o,function(s,u){u.indexOf("Models")>=0&&D(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(u==="seriesModels"){var h=this._chartsMap[l.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,l))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=$o(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?wb(s,u,n):bb(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;D(sT,function(n){var i=function(a){var o=r.getModel(),s=a.target,u,l=n==="globalout";if(l?u={}:s&&Zi(s,function(d){var y=Tt(d);if(y&&y.dataIndex!=null){var p=y.dataModel||o.getSeriesByIndex(y.seriesIndex);return u=p&&p.getDataParams(y.dataIndex,y.dataType,s)||{},!0}else if(y.eventData)return u=O({},y.eventData),!0},!0),u){var f=u.componentType,h=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=u.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&r[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];u.event=a,u.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:u,model:c,view:v},r.trigger(n,u)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),D(Jn,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),D(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),BS(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&wc(this.getDom(),ml,"");var n=this,i=n._api,a=n._model;D(n._componentsViews,function(o){o.dispose(a,i)}),D(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 jn[n.id]},t.prototype.resize=function(r){if(!this[St]){if(this._disposed){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[Et]&&(a==null&&(a=this[Et].silent),i=!0,this[Et]=null),this[St]=!0;try{i&&jr(this),$e.update.call(this,{type:"resize",animation:O({duration:0},r&&r.animation)})}catch(o){throw this[St]=!1,o}this[St]=!1,In.call(this,a),On.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(z(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!xu[r]){var i=xu[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=O({},r);return n.type=Jn[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(z(n)||(n={silent:!!n}),!!Ya[r.type]&&this._model){if(this[St]){this._pendingActions.push(r);return}var i=n.silent;xs.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&nt.browser.weChat&&this._throttledZrFlush(),In.call(this,i),On.call(this,i)}},t.prototype.updateLabelLayout=function(){ie.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){jr=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),Ms(h,!0),Ms(h,!1),c.plan()},Ms=function(h,c){for(var v=h._model,d=h._scheduler,y=c?h._componentsViews:h._chartsViews,p=c?h._componentsMap:h._chartsMap,g=h._zr,_=h._api,m=0;m<y.length;m++)y[m].__alive=!1;c?v.eachComponent(function(w,x){w!=="series"&&S(x)}):v.eachSeries(S);function S(w){var x=w.__requireNewView;w.__requireNewView=!1;var L="_ec_"+w.id+"_"+w.type,T=!x&&p[L];if(!T){var C=_e(w.type),M=c?bu.getClass(C.main,C.sub):Qn.getClass(C.sub);T=new M,T.init(v,_),p[L]=T,y.push(T),g.add(T.group)}w.__viewId=T.__id=L,T.__alive=!0,T.__model=w,T.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!c&&d.prepareView(T,w,v,_)}for(var m=0;m<y.length;){var b=y[m];b.__alive?m++:(!c&&b.renderTask.dispose(),g.remove(b.group),b.dispose(v,_),y.splice(m,1),p[b.__id]===b&&delete p[b.__id],b.__id=b.group.__ecComponentInfo=null)}},Qi=function(h,c,v,d,y){var p=h._model;if(p.setUpdatePayload(v),!d){D([].concat(h._componentsViews).concat(h._chartsViews),b);return}var g={};g[d+"Id"]=v[d+"Id"],g[d+"Index"]=v[d+"Index"],g[d+"Name"]=v[d+"Name"];var _={mainType:d,query:g};y&&(_.subType=y);var m=v.excludeSeriesId,S;m!=null&&(S=$(),D(_t(m),function(w){var x=ue(w,null);x!=null&&S.set(x,!0)})),p&&p.eachComponent(_,function(w){var x=S&&S.get(w.id)!=null;if(!x)if(Df(v))if(w instanceof Na)v.type===Ir&&!v.notBlur&&!w.get(["emphasis","disabled"])&&r_(w,v,h._api);else{var L=Uu(w.mainType,w.componentIndex,v.name,h._api),T=L.focusSelf,C=L.dispatchers;v.type===Ir&&T&&!v.notBlur&&ru(w.mainType,w.componentIndex,h._api),C&&D(C,function(M){v.type===Ir?js(M):tu(M)})}else iu(v)&&w instanceof Na&&(a_(w,v,h._api),Mf(w),Yt(h))},h),p&&p.eachComponent(_,function(w){var x=S&&S.get(w.id)!=null;x||b(h[d==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},h);function b(w){w&&w.__alive&&w[c]&&w[c](w.__model,p,h._api,v)}},$e={prepareAndUpdate:function(h){jr(this),$e.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,d=this._api,y=this._zr,p=this._coordSysMgr,g=this._scheduler;if(v){v.setUpdatePayload(h),g.restoreData(v,h),g.performSeriesTasks(v),p.create(v,d),g.performDataProcessorTasks(v,h),Ds(this,v),p.update(v,d),r(v),g.performVisualTasks(v,h),Ls(this,v,d,h,c);var _=v.get("backgroundColor")||"transparent",m=v.get("darkMode");y.setBackgroundColor(_),m!=null&&m!=="auto"&&y.setDarkMode(m),ie.trigger("afterupdate",v,d)}},updateTransform:function(h){var c=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(h);var y=[];v.eachComponent(function(g,_){if(g!=="series"){var m=c.getViewOfComponentModel(_);if(m&&m.__alive)if(m.updateTransform){var S=m.updateTransform(_,v,d,h);S&&S.update&&y.push(m)}else y.push(m)}});var p=$();v.eachSeries(function(g){var _=c._chartsMap[g.__viewId];if(_.updateTransform){var m=_.updateTransform(g,v,d,h);m&&m.update&&p.set(g.uid,1)}else p.set(g.uid,1)}),r(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:p}),Ji(this,v,d,h,{},p),ie.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;c&&(c.setUpdatePayload(h),Qn.markUpdateMethod(h,"updateView"),r(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),Ls(this,c,this._api,h,{}),ie.trigger("afterupdate",c,this._api))},updateVisual:function(h){var c=this,v=this._model;v&&(v.setUpdatePayload(h),v.eachSeries(function(d){d.getData().clearAllVisual()}),Qn.markUpdateMethod(h,"updateVisual"),r(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,y){if(d!=="series"){var p=c.getViewOfComponentModel(y);p&&p.__alive&&p.updateVisual(y,v,c._api,h)}}),v.eachSeries(function(d){var y=c._chartsMap[d.__viewId];y.updateVisual(d,v,c._api,h)}),ie.trigger("afterupdate",v,this._api))},updateLayout:function(h){$e.update.call(this,h)}},Cs=function(h,c,v,d){if(h._disposed){h.id;return}for(var y=h._model,p=h._coordSysMgr.getCoordinateSystems(),g,_=$o(y,v),m=0;m<p.length;m++){var S=p[m];if(S[c]&&(g=S[c](y,_,d))!=null)return g}},Ds=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(y){d.updateStreamModes(y,v[y.__viewId])})},xs=function(h,c){var v=this,d=this.getModel(),y=h.type,p=h.escapeConnect,g=Ya[y],_=g.actionInfo,m=(_.update||"update").split(":"),S=m.pop(),b=m[0]!=null&&_e(m[0]);this[St]=!0;var w=[h],x=!1;h.batch&&(x=!0,w=G(h.batch,function(E){return E=ht(O({},E),h),E.batch=null,E}));var L=[],T,C=iu(h),M=Df(h);if(M&&Pc(this._api),D(w,function(E){if(T=g.action(E,v._model,v._api),T=T||O({},E),T.type=_.event||T.type,L.push(T),M){var I=Sc(h),R=I.queryOptionMap,Y=I.mainTypeSpecified,F=Y?R.keys()[0]:"series";Qi(v,S,E,F),Yt(v)}else C?(Qi(v,S,E,"series"),Yt(v)):b&&Qi(v,S,E,b.main,b.sub)}),S!=="none"&&!M&&!C&&!b)try{this[Et]?(jr(this),$e.update.call(this,h),this[Et]=null):$e[S].call(this,h)}catch(E){throw this[St]=!1,E}if(x?T={type:_.event||y,escapeConnect:p,batch:L}:T=L[0],this[St]=!1,!c){var A=this._messageCenter;if(A.trigger(T.type,T),C){var P={type:"selectchanged",escapeConnect:p,selected:o_(d),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};A.trigger(P.type,P)}}},In=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();xs.call(this,v,h)}},On=function(h){!h&&this.trigger("updated")},sv=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[Et]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},uv=function(h,c){h.on("mouseover",function(v){var d=v.target,y=Zi(d,nu);y&&(n_(y,v,c._api),Yt(c))}).on("mouseout",function(v){var d=v.target,y=Zi(d,nu);y&&(i_(y,v,c._api),Yt(c))}).on("click",function(v){var d=v.target,y=Zi(d,function(_){return Tt(_).dataIndex!=null},!0);if(y){var p=y.selected?"unselect":"select",g=Tt(y);c._api.dispatchAction({type:p,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function r(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function n(h){var c=[],v=[],d=!1;if(h.eachComponent(function(_,m){var S=m.get("zlevel")||0,b=m.get("z")||0,w=m.getZLevelKey();d=d||!!w,(_==="series"?v:c).push({zlevel:S,z:b,idx:m.componentIndex,type:_,key:w})}),d){var y=c.concat(v),p,g;_a(y,function(_,m){return _.zlevel===m.zlevel?_.z-m.z:_.zlevel-m.zlevel}),D(y,function(_){var m=h.getComponent(_.type,_.idx),S=_.zlevel,b=_.key;p!=null&&(S=Math.max(p,S)),b?(S===p&&b!==g&&S++,g=b):g&&(S===p&&S++,g=""),p=S,m.setZLevel(S)})}}Ls=function(h,c,v,d,y){n(c),lv(h,c,v,d,y),D(h._chartsViews,function(p){p.__alive=!1}),Ji(h,c,v,d,y),D(h._chartsViews,function(p){p.__alive||p.remove(c,v)})},lv=function(h,c,v,d,y,p){D(p||h._componentsViews,function(g){var _=g.__model;l(_,g),g.render(_,c,v,d),s(_,g),f(_,g)})},Ji=function(h,c,v,d,y,p){var g=h._scheduler;y=O(y||{},{updatedSeries:c.getSeries()}),ie.trigger("series:beforeupdate",c,v,y);var _=!1;c.eachSeries(function(m){var S=h._chartsMap[m.__viewId];S.__alive=!0;var b=S.renderTask;g.updatePayload(b,d),l(m,S),p&&p.get(m.uid)&&b.dirty(),b.perform(g.getPerformArgs(b))&&(_=!0),S.group.silent=!!m.get("silent"),o(m,S),Mf(m)}),g.unfinished=_||g.unfinished,ie.trigger("series:layoutlabels",c,v,y),ie.trigger("series:transition",c,v,y),c.eachSeries(function(m){var S=h._chartsMap[m.__viewId];s(m,S),f(m,S)}),a(h,c),ie.trigger("series:afterupdate",c,v,y)},Yt=function(h){h[bs]=!0,h.getZr().wakeUp()},hv=function(h){h[bs]&&(h.getZr().storage.traverse(function(c){sn(c)||i(c)}),h[bs]=!1)};function i(h){for(var c=[],v=h.currentStates,d=0;d<v.length;d++){var y=v[d];y==="emphasis"||y==="blur"||y==="select"||c.push(y)}h.selected&&h.states.select&&c.push("select"),h.hoverState===ao&&h.states.emphasis?c.push("emphasis"):h.hoverState===io&&h.states.blur&&c.push("blur"),h.useStates(c)}function a(h,c){var v=h._zr,d=v.storage,y=0;d.traverse(function(p){p.isGroup||y++}),y>c.get("hoverLayerThreshold")&&!nt.node&&!nt.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=h._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(_){_.states.emphasis&&(_.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,d=h.get("zlevel")||0;c.eachRendered(function(y){return u(y,v,d,-1/0),!0})}}function u(h,c,v,d){var y=h.getTextContent(),p=h.getTextGuideLine(),g=h.isGroup;if(g)for(var _=h.childrenRef(),m=0;m<_.length;m++)d=Math.max(u(_[m],c,v,d),d);else h.z=c,h.zlevel=v,d=Math.max(h.z2,d);if(y&&(y.z=c,y.zlevel=v,isFinite(d)&&(y.z2=d+2)),p){var S=h.textGuideLineConfig;p.z=c,p.zlevel=v,isFinite(d)&&(p.z2=d+(S&&S.showAbove?1:-1))}return d}function l(h,c){c.eachRendered(function(v){if(!sn(v)){var d=v.getTextContent(),y=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),y&&y.stateTransition&&(y.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(h,c){var v=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),y=v.get("duration"),p=y>0?{duration:y,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(g){if(g.states&&g.states.emphasis){if(sn(g))return;if(g instanceof et&&v_(g),g.__dirty){var _=g.prevStates;_&&g.useStates(_)}if(d){g.stateTransition=p;var m=g.getTextContent(),S=g.getTextGuideLine();m&&(m.stateTransition=p),S&&(S.stateTransition=p)}g.__dirty&&i(g)}})}fv=function(h){return new(function(c){W(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var y=d.__ecComponentInfo;if(y!=null)return h._model.getComponent(y.mainType,y.index);d=d.parent}},v.prototype.enterEmphasis=function(d,y){js(d,y),Yt(h)},v.prototype.leaveEmphasis=function(d,y){tu(d,y),Yt(h)},v.prototype.enterBlur=function(d){e_(d),Yt(h)},v.prototype.leaveBlur=function(d){Dc(d),Yt(h)},v.prototype.enterSelect=function(d){xc(d),Yt(h)},v.prototype.leaveSelect=function(d){Lc(d),Yt(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v}(pp))(h)},Hp=function(h){function c(v,d){for(var y=0;y<v.length;y++){var p=v[y];p[Ts]=d}}D(Jn,function(v,d){h._messageCenter.on(d,function(y){if(vv[h.group]&&h[Ts]!==ov){if(y&&y.escapeConnect)return;var p=h.makeActionFromEvent(y),g=[];D(jn,function(_){_!==h&&_.group===h.group&&g.push(_)}),c(g,ov),D(g,function(_){_[Ts]!==aT&&_.dispatchAction(p)}),c(g,oT)}})})}}(),t}(Be),_l=Gp.prototype;_l.on=kp("on");_l.off=kp("off");_l.one=function(e,t,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(e,i)}this.on.call(this,e,i,r)};var sT=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Ya={},Jn={},Cu=[],Du=[],$a=[],Vp={},xu={},jn={},vv={},uT=+new Date-0,ml="_echarts_instance_";function lT(e,t,r){var n=!(r&&r.ssr);if(n){var i=fT(e);if(i)return i}var a=new Gp(e,t,r);return a.id="ec_"+uT++,jn[a.id]=a,n&&wc(e,ml,a.id),Hp(a),ie.trigger("afterinit",a),a}function fT(e){return jn[Wy(e,ml)]}function Wp(e,t){Vp[e]=t}function Up(e){at(Du,e)<0&&Du.push(e)}function Yp(e,t){wl(Cu,e,t,Qb)}function hT(e){Sl("afterinit",e)}function vT(e){Sl("afterupdate",e)}function Sl(e,t){ie.on(e,t)}function pn(e,t,r){Z(t)&&(r=t,t="");var n=z(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!Jn[t]&&(we(av.test(n)&&av.test(t)),Ya[n]||(Ya[n]={action:r,actionInfo:e}),Jn[t]=n)}function cT(e,t){el.register(e,t)}function dT(e,t){wl($a,e,t,Rp,"layout")}function Nr(e,t){wl($a,e,t,Ip,"visual")}var cv=[];function wl(e,t,r,n,i){if((Z(t)||z(t))&&(r=t,t=n),!(at(cv,r)>=0)){cv.push(r);var a=Tp.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function $p(e,t){xu[e]=t}function pT(e,t,r){var n=$b("registerMap");n&&n(e,t,r)}var gT=Q1;Nr(yl,rb);Nr(_o,nb);Nr(_o,ib);Nr(yl,mb);Nr(_o,Sb);Nr(Op,Wb);Up(yp);Yp(Zb,jw);$p("default",ab);pn({type:Ir,event:Ir,update:Ir},Qt);pn({type:va,event:va,update:va},Qt);pn({type:$n,event:$n,update:$n},Qt);pn({type:ca,event:ca,update:ca},Qt);pn({type:Xn,event:Xn,update:Xn},Qt);Wp("light",gb);Wp("dark",yb);var dv=[],yT={registerPreprocessor:Up,registerProcessor:Yp,registerPostInit:hT,registerPostUpdate:vT,registerUpdateLifecycle:Sl,registerAction:pn,registerCoordinateSystem:cT,registerLayout:dT,registerVisual:Nr,registerTransform:gT,registerLoading:$p,registerMap:pT,registerImpl:Yb,PRIORITY:iT,ComponentModel:vt,ComponentView:bu,SeriesModel:Na,ChartView:Qn,registerComponentModel:function(e){vt.registerClass(e)},registerComponentView:function(e){bu.registerClass(e)},registerSeriesModel:function(e){Na.registerClass(e)},registerChartView:function(e){Qn.registerClass(e)},registerSubTypeDefaulter:function(e,t){vt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Ew(e,t)}};function _T(e){if(B(e)){D(e,function(t){_T(t)});return}at(dv,e)>=0||(dv.push(e),Z(e)&&(e={install:e}),e.install(yT))}var zC=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),mT=0,ST=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++mT}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&G(n,wT);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!V(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=$(this.categories))},e}();function wT(e){return z(e)&&e.value!=null?e.value:e+""}const pv=ST;var Xp=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();Qa(Xp);const ze=Xp;function HC(e){return e.type==="interval"||e.type==="log"}function bT(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=cc(a/t,!0);r!=null&&o<r&&(o=i.interval=r),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=qp(o),u=i.niceTickExtent=[Vt(Math.ceil(e[0]/o)*o,s),Vt(Math.floor(e[1]/o)*o,s)];return TT(u,e),i}function GC(e){var t=Math.pow(10,Hu(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Vt(r*t)}function qp(e){return Ee(e)+2}function gv(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function TT(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),gv(e,0,t),gv(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function mo(e,t){return e>=t[0]&&e<=t[1]}function So(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function wo(e,t){return e*(t[1]-t[0])+t[0]}var Zp=function(e){W(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new pv({})),B(i)&&(i=new pv({categories:G(i,function(a){return z(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:V(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),mo(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),So(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(wo(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.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=Math.min(s,n.length);o<u;++o){var l=n[o];i[o]=l,a[l]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(ze);ze.registerClass(Zp);const Kp=Zp;var Tr=Vt,Qp=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return mo(r,this._extent)},t.prototype.normalize=function(r){return So(r,this._extent)},t.prototype.scale=function(r){return wo(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=qp(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var u=1e4;i[0]<a[0]&&(r?s.push({value:Tr(a[0]-n,o)}):s.push({value:i[0]}));for(var l=a[0];l<=a[1]&&(s.push({value:l}),l=Tr(l+n,o),l!==s[s.length-1].value);)if(s.length>u)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(r?s.push({value:Tr(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],u=n[o-1],l=0,f=[],h=s.value-u.value,c=h/r;l<r-1;){var v=Tr(u.value+(l+1)*c);v>a[0]&&v<a[1]&&f.push(v),l++}i.push(f)}return i},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=Ee(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=Tr(r.value,i,!0);return Gd(a)},t.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=bT(a,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=Tr(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=Tr(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(ze);ze.registerClass(Qp);const bo=Qp;var MT=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},Jp=function(e){W(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return ol(r.value,rh[x1(un(this._minLevelUnit))]||rh.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return L1(r,n,i,o,a)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,i=[];if(!r)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=ET(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Kt,n[1]+=Kt),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Kt}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=ji.length,u=Math.min(MT(ji,this._approxInterval,0,s),s-1);this._interval=ji[u][1],this._minLevelUnit=ji[Math.max(u-1,0)][0]},t.prototype.parse=function(r){return ut(r)?r:+ke(r)},t.prototype.contain=function(r){return mo(this.parse(r),this._extent)},t.prototype.normalize=function(r){return So(this.parse(r),this._extent)},t.prototype.scale=function(r){return wo(r,this._extent)},t.type="time",t}(bo),ji=[["second",il],["minute",al],["hour",Zn],["quarter-day",Zn*6],["half-day",Zn*12],["day",Kt*1.2],["half-week",Kt*3.5],["week",Kt*7],["month",Kt*31],["quarter",Kt*95],["half-year",eh/2],["year",eh]];function CT(e,t,r,n){var i=ke(t),a=ke(r),o=function(d){return nh(i,d,n)===nh(a,d,n)},s=function(){return o("year")},u=function(){return s()&&o("month")},l=function(){return u()&&o("day")},f=function(){return l()&&o("hour")},h=function(){return f()&&o("minute")},c=function(){return h()&&o("second")},v=function(){return c()&&o("millisecond")};switch(e){case"year":return s();case"month":return u();case"day":return l();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function DT(e,t){return e/=Kt,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function xT(e){var t=30*Kt;return e/=t,e>6?6:e>3?3:e>2?2:1}function LT(e){return e/=Zn,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function yv(e,t){return e/=t?al:il,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function AT(e){return cc(e,!0)}function PT(e,t,r){var n=new Date(e);switch(un(t)){case"year":case"month":n[kd(r)](0);case"day":n[Fd(r)](1);case"hour":n[Bd(r)](0);case"minute":n[Nd(r)](0);case"second":n[zd(r)](0),n[Hd(r)](0)}return n.getTime()}function ET(e,t,r,n){var i=1e4,a=Id,o=0;function s(C,M,A,P,E,I,R){for(var Y=new Date(M),F=M,k=Y[P]();F<A&&F<=n[1];)R.push({value:F}),k+=C,Y[E](k),F=Y.getTime();R.push({value:F,notAdd:!0})}function u(C,M,A){var P=[],E=!M.length;if(!CT(un(C),n[0],n[1],r)){E&&(M=[{value:PT(new Date(n[0]),C,r)},{value:n[1]}]);for(var I=0;I<M.length-1;I++){var R=M[I].value,Y=M[I+1].value;if(R!==Y){var F=void 0,k=void 0,U=void 0,rt=!1;switch(C){case"year":F=Math.max(1,Math.round(t/Kt/365)),k=sl(r),U=A1(r);break;case"half-year":case"quarter":case"month":F=xT(t),k=ln(r),U=kd(r);break;case"week":case"half-week":case"day":F=DT(t),k=vo(r),U=Fd(r),rt=!0;break;case"half-day":case"quarter-day":case"hour":F=LT(t),k=ui(r),U=Bd(r);break;case"minute":F=yv(t,!0),k=co(r),U=Nd(r);break;case"second":F=yv(t,!1),k=po(r),U=zd(r);break;case"millisecond":F=AT(t),k=go(r),U=Hd(r);break}s(F,R,Y,k,U,rt,P),C==="year"&&A.length>1&&I===0&&A.unshift({value:A[0].value-F})}}for(var I=0;I<P.length;I++)A.push(P[I]);return P}}for(var l=[],f=[],h=0,c=0,v=0;v<a.length&&o++<i;++v){var d=un(a[v]);if(D1(a[v])){u(a[v],l[l.length-1]||[],f);var y=a[v+1]?un(a[v+1]):null;if(d!==y){if(f.length){c=h,f.sort(function(C,M){return C.value-M.value});for(var p=[],g=0;g<f.length;++g){var _=f[g].value;(g===0||f[g-1].value!==_)&&(p.push(f[g]),_>=n[0]&&_<=n[1]&&h++)}var m=(n[1]-n[0])/t;if(h>m*1.5&&c>m/1.5||(l.push(p),h>m||e===a[v]))break}f=[]}}}for(var S=yt(G(l,function(C){return yt(C,function(M){return M.value>=n[0]&&M.value<=n[1]&&!M.notAdd})}),function(C){return C.length>0}),b=[],w=S.length-1,v=0;v<S.length;++v)for(var x=S[v],L=0;L<x.length;++L)b.push({value:x[L].value,level:w-v});b.sort(function(C,M){return C.value-M.value});for(var T=[],v=0;v<b.length;++v)(v===0||b[v].value!==b[v-1].value)&&T.push(b[v]);return T}ze.registerClass(Jp);const RT=Jp;var _v=ze.prototype,ti=bo.prototype,IT=Vt,OT=Math.floor,kT=Math.ceil,ta=Math.pow,te=Math.log,bl=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new bo,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=ti.getTicks.call(this,r);return G(o,function(s){var u=s.value,l=Vt(ta(this.base,u));return l=u===i[0]&&this._fixMin?ea(l,a[0]):l,l=u===i[1]&&this._fixMax?ea(l,a[1]):l,{value:l}},this)},t.prototype.setExtent=function(r,n){var i=te(this.base);r=te(Math.max(0,r))/i,n=te(Math.max(0,n))/i,ti.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=_v.getExtent.call(this);n[0]=ta(r,n[0]),n[1]=ta(r,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=ea(n[0],a[0])),this._fixMax&&(n[1]=ea(n[1],a[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=te(r[0])/te(n),r[1]=te(r[1])/te(n),_v.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=xy(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Vt(kT(n[0]/a)*a),Vt(OT(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){ti.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=te(r)/te(this.base),mo(r,this._extent)},t.prototype.normalize=function(r){return r=te(r)/te(this.base),So(r,this._extent)},t.prototype.scale=function(r){return r=wo(r,this._extent),ta(this.base,r)},t.type="log",t}(ze),jp=bl.prototype;jp.getMinorTicks=ti.getMinorTicks;jp.getLabel=ti.getLabel;function ea(e,t){return IT(e,Ee(t))}ze.registerClass(bl);const FT=bl;var BT=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=this._modelMinRaw=r.get("min",!0);Z(a)?this._modelMinNum=ra(t,a({min:n[0],max:n[1]})):a!=="dataMin"&&(this._modelMinNum=ra(t,a));var o=this._modelMaxRaw=r.get("max",!0);if(Z(o)?this._modelMaxNum=ra(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=ra(t,o)),i)this._axisDataLen=r.getCategories().length;else{var s=r.get("boundaryGap"),u=B(s)?s:[s||0,s||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[kr(u[0],1),kr(u[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,u=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,l=s!=null,f=u!=null;s==null&&(s=t?i?0:NaN:r-a[0]*o),u==null&&(u=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(u==null||!isFinite(u))&&(u=NaN);var h=ba(s)||ba(u)||t&&!i;this._needCrossZero&&(s>0&&u>0&&!l&&(s=0),s<0&&u<0&&!f&&(u=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,l=!0),v!=null&&(u=v,f=!0),{min:s,max:u,minFixed:l,maxFixed:f,isBlank:h}},e.prototype.modifyDataMinMax=function(t,r){this[zT[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=NT[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),NT={min:"_determinedMin",max:"_determinedMax"},zT={min:"_dataMin",max:"_dataMax"};function HT(e,t,r){var n=e.rawExtentInfo;return n||(n=new BT(e,t,r),e.rawExtentInfo=n,n)}function ra(e,t){return t==null?null:ba(t)?NaN:e.parse(t)}function GT(e,t){var r=e.type,n=HT(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=jd("bar",o),u=!1;if(D(s,function(h){u=u||h.getBaseAxis()===t.axis}),u){var l=tp(s),f=VT(i,a,t,l);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function VT(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=kS(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;D(o,function(v){s=Math.min(v.offset,s)});var u=-1/0;D(o,function(v){u=Math.max(v.offset+v.width,u)}),s=Math.abs(s),u=Math.abs(u);var l=s+u,f=t-e,h=1-(s+u)/a,c=f/h-f;return t+=c*(u/l),e-=c*(s/l),{min:e,max:t}}function VC(e,t){var r=t,n=GT(e,r),i=n.extent,a=r.get("splitNumber");e instanceof FT&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),u=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:u?r.get("minInterval"):null,maxInterval:u?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function WC(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Kp({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new RT({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(ze.getClass(t)||bo)}}function UC(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Si(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):V(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):Z(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(WT(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function WT(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function YC(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof Kp?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=Si(e),u,l=1;i>40&&(l=Math.ceil(i/40));for(var f=0;f<i;f+=l){var h=n?n[f]:{value:a[0]+f},c=s(h,f),v=o.getTextRect(c),d=UT(v,o.get("rotate")||0);u?u.union(d):u=d}return u}}function UT(e,t){var r=t*Math.PI/180,n=e.width,i=e.height,a=n*Math.abs(Math.cos(r))+Math.abs(i*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(i*Math.cos(r)),s=new j(e.x,e.y,a,o);return s}function Tl(e){var t=e.get("interval");return t??"auto"}function YT(e){return e.type==="category"&&Tl(e.getLabelModel())===0}function $T(e,t){var r={};return D(e.mapDimensionsAll(t),function(n){r[u1(e,n)]=!0}),it(r)}function $C(e,t,r){t&&D($T(t,r),function(n){var i=t.getApproximateExtent(n);i[0]<e[0]&&(e[0]=i[0]),i[1]>e[1]&&(e[1]=i[1])})}var vi=ct();function XT(e){return e.type==="category"?ZT(e):QT(e)}function qT(e,t){return e.type==="category"?KT(e,t):{ticks:G(e.scale.getTicks(),function(r){return r.value})}}function ZT(e){var t=e.getLabelModel(),r=tg(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function tg(e,t){var r=eg(e,"labels"),n=Tl(t),i=rg(r,n);if(i)return i;var a,o;return Z(n)?a=ag(e,n):(o=n==="auto"?JT(e):n,a=ig(e,o)),ng(r,n,{labels:a,labelCategoryInterval:o})}function KT(e,t){var r=eg(e,"ticks"),n=Tl(t),i=rg(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),Z(n))a=ag(e,n,!0);else if(n==="auto"){var s=tg(e,e.getLabelModel());o=s.labelCategoryInterval,a=G(s.labels,function(u){return u.tickValue})}else o=n,a=ig(e,o,!0);return ng(r,n,{ticks:a,tickCategoryInterval:o})}function QT(e){var t=e.scale.getTicks(),r=Si(e);return{labels:G(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function eg(e,t){return vi(e)[t]||(vi(e)[t]=[])}function rg(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function ng(e,t,r){return e.push({key:t,value:r}),r}function JT(e){var t=vi(e).autoInterval;return t??(vi(e).autoInterval=e.calculateCategoryInterval())}function jT(e){var t=tM(e),r=Si(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var u=a[0],l=e.dataToCoord(u+1)-e.dataToCoord(u),f=Math.abs(l*Math.cos(n)),h=Math.abs(l*Math.sin(n)),c=0,v=0;u<=a[1];u+=s){var d=0,y=0,p=zv(r({value:u}),t.font,"center","top");d=p.width*1.3,y=p.height*1.3,c=Math.max(c,d,7),v=Math.max(v,y,7)}var g=c/f,_=v/h;isNaN(g)&&(g=1/0),isNaN(_)&&(_=1/0);var m=Math.max(0,Math.floor(Math.min(g,_))),S=vi(e.model),b=e.getExtent(),w=S.lastAutoInterval,x=S.lastTickCount;return w!=null&&x!=null&&Math.abs(w-m)<=1&&Math.abs(x-o)<=1&&w>m&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?m=w:(S.lastTickCount=o,S.lastAutoInterval=m,S.axisExtent0=b[0],S.axisExtent1=b[1]),m}function tM(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function ig(e,t,r){var n=Si(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],u=Math.max((t||0)+1,1),l=a[0],f=i.count();l!==0&&u>1&&f/u>2&&(l=Math.round(Math.ceil(l/u)*u));var h=YT(e),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&l!==a[0]&&y(a[0]);for(var d=l;d<=a[1];d+=u)y(d);v&&d-u!==a[1]&&y(a[1]);function y(p){var g={value:p};s.push(r?p:{formattedLabel:n(g),rawLabel:i.getLabel(g),tickValue:p})}return s}function ag(e,t,r){var n=e.scale,i=Si(e),a=[];return D(n.getTicks(),function(o){var s=n.getLabel(o),u=o.value;t(o.value,s)&&a.push(r?u:{formattedLabel:i(o),rawLabel:s,tickValue:u})}),a}var mv=[0,1],eM=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return My(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Sv(n,i.count())),hf(t,mv,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Sv(n,i.count()));var a=hf(t,n,mv,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=qT(this,r),i=n.ticks,a=G(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return rM(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=G(n,function(a){return G(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return XT(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return jT(this)},e}();function Sv(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function rM(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var u=t[i-1].tickValue-t[0].tickValue,l=(t[i-1].coord-t[0].coord)/u;D(t,function(v){v.coord-=l/2});var f=e.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+l*s},t.push(o)}var h=a[0]>a[1];c(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&c(a[0],t[0].coord)&&t.unshift({coord:a[0]}),c(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&c(o.coord,a[1])&&t.push({coord:a[1]});function c(v,d){return v=Vt(v),d=Vt(d),h?v>d:v<d}}const XC=eM;var nM=1e-8;function wv(e,t){return Math.abs(e-t)<nM}function bv(e,t,r){var n=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];n+=xe(i[0],i[1],o[0],o[1],t,r),i=o}var s=e[0];return(!wv(i[0],s[0])||!wv(i[1],s[1]))&&(n+=xe(i[0],i[1],s[0],s[1],t,r)),n!==0}var iM=[];function As(e,t){for(var r=0;r<e.length;r++)Ke(e[r],e[r],t)}function Tv(e,t,r,n){for(var i=0;i<e.length;i++){var a=e[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Cr(t,t,a),Dr(r,r,a))}}function aM(e){for(var t=0,r=0,n=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var u=e[s][0],l=e[s][1],f=a*l-u*o;t+=f,r+=(a+u)*f,n+=(o+l)*f,a=u,o=l}return t?[r/t/3,n/t/3,t]:[e[0][0]||0,e[0][1]||0]}var og=function(){function e(t){this.name=t}return e.prototype.setCenter=function(t){this._center=t},e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},e}(),Mv=function(){function e(t,r){this.type="polygon",this.exterior=t,this.interiors=r}return e}(),Cv=function(){function e(t){this.type="linestring",this.points=t}return e}(),oM=function(e){W(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return t.prototype.calcCenter=function(){for(var r=this.geometries,n,i=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,u=s&&s.length;u>i&&(n=o,i=u)}if(n)return aM(n.exterior);var l=this.getBoundingRect();return[l.x+l.width/2,l.y+l.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return D(o,function(s){s.type==="polygon"?Tv(s.exterior,i,a,r):D(s.points,function(u){Tv(u,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new j(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;t:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var u=s.exterior,l=s.interiors;if(bv(u,r[0],r[1])){for(var f=0;f<(l?l.length:0);f++)if(bv(l[f],r[0],r[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var u=new j(r,n,i,a),l=o.calculateTransform(u),f=this.geometries,h=0;h<f.length;h++){var c=f[h];c.type==="polygon"?(As(c.exterior,l),D(c.interiors,function(v){As(v,l)})):D(c.points,function(v){As(v,l)})}o=this._rect,o.copy(u),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new t(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(og),qC=function(e){W(t,e);function t(r,n){var i=e.call(this,r)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return t.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=Fu(iM),o=r;o&&!o.isGeoSVGGraphicRoot;)Un(a,o.getLocalTransform(),a),o=o.parent;return ja(a,a),Ke(i,i,a),i},t}(og);function sM(e){if(!e.UTF8Encoding)return e;var t=e,r=t.UTF8Scale;r==null&&(r=1024);var n=t.features;return D(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=sg(s,o,r);break;case"Polygon":Ps(s,o,r);break;case"MultiLineString":Ps(s,o,r);break;case"MultiPolygon":D(s,function(u,l){return Ps(u,o[l],r)})}}),t.UTF8Encoding=!1,t}function Ps(e,t,r){for(var n=0;n<e.length;n++)e[n]=sg(e[n],t[n],r)}function sg(e,t,r){for(var n=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,u=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),u=u>>1^-(u&1),s+=i,u+=a,i=s,a=u,n.push([s/r,u/r])}return n}function ZC(e,t){return e=sM(e),G(yt(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new Mv(o[0],o.slice(1)));break;case"MultiPolygon":D(i.coordinates,function(u){u[0]&&a.push(new Mv(u[0],u.slice(1)))});break;case"LineString":a.push(new Cv([i.coordinates]));break;case"MultiLineString":a.push(new Cv(i.coordinates))}var s=new oM(n[t||"name"],a,n.cp);return s.properties=n,s})}function uM(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function lM(e,t){var r=e.label,n=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:uM(n&&n.shape.points)}}var Dv=["align","verticalAlign","width","height","fontSize"],Ct=new to,Es=ct(),fM=ct();function na(e,t,r){for(var n=0;n<r.length;n++){var i=r[n];t[i]!=null&&(e[i]=t[i])}}var ia=["x","y","rotation"],hM=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,i,a){var o=i.style,s=i.__hostTarget,u=s.textConfig||{},l=i.getComputedTransform(),f=i.getBoundingRect().plain();j.applyTransform(f,f,l),l?Ct.setLocalTransform(l):(Ct.x=Ct.y=Ct.rotation=Ct.originX=Ct.originY=0,Ct.scaleX=Ct.scaleY=1),Ct.rotation=Pe(Ct.rotation);var h=i.__hostTarget,c;if(h){c=h.getBoundingRect().plain();var v=h.getComputedTransform();j.applyTransform(c,c,v)}var d=c&&h.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:t,dataType:r,layoutOption:a,computedLayoutOption:null,rect:f,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:Ct.x,y:Ct.y,scaleX:Ct.scaleX,scaleY:Ct.scaleY,rotation:Ct.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:u.position,attachedRot:u.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(Z(i)||it(i).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=Tt(a);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,i)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function i(m,S){return function(){dh(m,S)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,u=s.__hostTarget,l=o.defaultAttr,f=void 0;Z(o.layoutOption)?f=o.layoutOption(lM(o,u)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var h=Math.PI/180;u&&u.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:l.attachedPos,rotation:f.rotate!=null?f.rotate*h:l.attachedRot,offset:[f.dx||0,f.dy||0]});var c=!1;if(f.x!=null?(s.x=At(f.x,r),s.setStyle("x",0),c=!0):(s.x=l.x,s.setStyle("x",l.style.x)),f.y!=null?(s.y=At(f.y,n),s.setStyle("y",0),c=!0):(s.y=l.y,s.setStyle("y",l.style.y)),f.labelLinePoints){var v=u.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),c=!1)}var d=Es(s);d.needsUpdateLabelLine=c,s.rotation=f.rotate!=null?f.rotate*h:l.rotation,s.scaleX=l.scaleX,s.scaleY=l.scaleY;for(var y=0;y<Dv.length;y++){var p=Dv[y];s.setStyle(p,f[p]!=null?f[p]:l.style[p])}if(f.draggable){if(s.draggable=!0,s.cursor="move",u){var g=o.seriesModel;if(o.dataIndex!=null){var _=o.seriesModel.getData(o.dataType);g=_.getItemModel(o.dataIndex)}s.on("drag",i(u,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=l.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),i=XS(this._labelList),a=yt(i,function(u){return u.layoutOption.moveOverlap==="shiftX"}),o=yt(i,function(u){return u.layoutOption.moveOverlap==="shiftY"});qS(a,0,r),ZS(o,0,n);var s=yt(i,function(u){return u.layoutOption.hideOverlap});KS(s)},e.prototype.processLabelsOverall=function(){var t=this;D(this._chartViewList,function(r){var n=r.__model,i=r.ignoreLabelLineUpdate,a=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,u=o.getTextContent();!s&&u&&(s=Es(u).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),i=Tt(t),a=i.dataIndex;if(n&&a!=null){var o=r.getData(i.dataType),s=o.getItemModel(a),u={},l=o.getItemVisual(a,"style");if(l){var f=o.getVisual("drawType");u.stroke=l[f]}var h=s.getModel("labelLine");YS(t,$S(s),u),dh(t,h)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!sn(t))){var a=Es(n),o=a.oldLayout,s=Tt(t),u=s.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},f=r.getData(s.dataType);if(o){n.attr(o);var c=t.prevStates;c&&(at(c,"select")>=0&&n.attr(a.oldLayoutSelect),at(c,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),oi(n,l,r,u)}else if(n.attr(l),!uo(n).valueAnimation){var h=q(n.style.opacity,1);n.style.opacity=0,Ea(n,{style:{opacity:h}},r,u)}if(a.oldLayout=l,n.states.select){var v=a.oldLayoutSelect={};na(v,l,ia),na(v,n.states.select,ia)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};na(d,l,ia),na(d,n.states.emphasis,ia)}gm(n,u,f,r,r)}if(i&&!i.ignore&&!i.invisible){var a=fM(i),o=a.oldLayout,y={points:i.shape.points};o?(i.attr({shape:o}),oi(i,{shape:y},r)):(i.setShape(y),i.style.strokePercent=0,Ea(i,{style:{strokePercent:1}},r)),a.oldLayout=y}},e}();const vM=hM;var Rs=ct();function KC(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=Rs(r).labelManager;i||(i=Rs(r).labelManager=new vM),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=Rs(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var Is=null;function cM(e){return Is||(Is=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return setTimeout(t,16)}).bind(window)),Is(e)}var Os=null;function dM(e){Os||(Os=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(t){clearTimeout(t)}).bind(window)),Os(e)}function pM(e){var t=document.createElement("style");return t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(t),t}function aa(e,t){t===void 0&&(t={});var r=document.createElement(e);return Object.keys(t).forEach(function(n){r[n]=t[n]}),r}function ug(e,t,r){var n=window.getComputedStyle(e,r||null)||{display:"none"};return n[t]}function Lu(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};for(var t=e;t!==document;){if(ug(t,"display")==="none")return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}var gM='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',Au=0,wa=null;function yM(e,t){e.__resize_mutation_handler__||(e.__resize_mutation_handler__=SM.bind(e));var r=e.__resize_listeners__;if(!r){if(e.__resize_listeners__=[],window.ResizeObserver){var n=e.offsetWidth,i=e.offsetHeight,a=new ResizeObserver(function(){!e.__resize_observer_triggered__&&(e.__resize_observer_triggered__=!0,e.offsetWidth===n&&e.offsetHeight===i)||Xa(e)}),o=Lu(e),s=o.detached,u=o.rendered;e.__resize_observer_triggered__=s===!1&&u===!1,e.__resize_observer__=a,a.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){Xa(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(Au||(wa=pM(gM)),wM(e),e.__resize_rendered__=Lu(e).rendered,window.MutationObserver){var l=new MutationObserver(e.__resize_mutation_handler__);l.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=l}}e.__resize_listeners__.push(t),Au++}function _M(e,t){var r=e.__resize_listeners__;if(r){if(t&&r.splice(r.indexOf(t),1),!r.length||!t){if(e.detachEvent&&e.removeEventListener){e.detachEvent("onresize",e.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);return}e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",Ml),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--Au&&wa&&wa.parentNode.removeChild(wa)}}function mM(e){var t=e.__resize_last__,r=t.width,n=t.height,i=e.offsetWidth,a=e.offsetHeight;return i!==r||a!==n?{width:i,height:a}:null}function SM(){var e=Lu(this),t=e.rendered,r=e.detached;t!==this.__resize_rendered__&&(!r&&this.__resize_triggers__&&(Cl(this),this.addEventListener("scroll",Ml,!0)),this.__resize_rendered__=t,Xa(this))}function Ml(){var e=this;Cl(this),this.__resize_raf__&&dM(this.__resize_raf__),this.__resize_raf__=cM(function(){var t=mM(e);t&&(e.__resize_last__=t,Xa(e))})}function Xa(e){!e||!e.__resize_listeners__||e.__resize_listeners__.forEach(function(t){t.call(e,e)})}function wM(e){var t=ug(e,"position");(!t||t==="static")&&(e.style.position="relative"),e.__resize_old_position__=t,e.__resize_last__={};var r=aa("div",{className:"resize-triggers"}),n=aa("div",{className:"resize-expand-trigger"}),i=aa("div"),a=aa("div",{className:"resize-contract-trigger"});n.appendChild(i),r.appendChild(n),r.appendChild(a),e.appendChild(r),e.__resize_triggers__={triggers:r,expand:n,expandChild:i,contract:a},Cl(e),e.addEventListener("scroll",Ml,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}function Cl(e){var t=e.__resize_triggers__,r=t.expand,n=t.expandChild,i=t.contract,a=i.scrollWidth,o=i.scrollHeight,s=r.offsetWidth,u=r.offsetHeight,l=r.scrollWidth,f=r.scrollHeight;i.scrollLeft=a,i.scrollTop=o,n.style.width=s+1+"px",n.style.height=u+1+"px",r.scrollLeft=l,r.scrollTop=f}var Le=function(){return Le=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Le.apply(this,arguments)};var bM=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function TM(e){return t=Object.create(null),bM.forEach(function(r){t[r]=function(n){return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(!e.value)throw new Error("ECharts is not initialized yet.");return e.value[n].apply(e.value,i)}}(r)}),t;var t}var MM={autoresize:[Boolean,Object]},CM=/^on[^a-z]/,DM=function(e){return CM.test(e)};function oa(e,t){var r=pg(e);return r&&typeof r=="object"&&"value"in r?r.value||t:r||t}var xM="ecLoadingOptions",LM={loading:Boolean,loadingOptions:Object},kn=null,lg="x-vue-echarts",xv=[],Fn=[];(function(e,t){if(e&&typeof document<"u"){var r,n=t.prepend===!0?"prepend":"append",i=t.singleTag===!0,a=typeof t.container=="string"?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(i){var o=xv.indexOf(a);o===-1&&(o=xv.push(a)-1,Fn[o]={}),r=Fn[o]&&Fn[o][n]?Fn[o][n]:Fn[o][n]=s()}else r=s();e.charCodeAt(0)===65279&&(e=e.substring(1)),r.styleSheet?r.styleSheet.cssText+=e:r.appendChild(document.createTextNode(e))}function s(){var u=document.createElement("style");if(u.setAttribute("type","text/css"),t.attributes)for(var l=Object.keys(t.attributes),f=0;f<l.length;f++)u.setAttribute(l[f],t.attributes[l[f]]);var h=n==="prepend"?"afterbegin":"beforeend";return a.insertAdjacentElement(h,u),u}})(`x-vue-echarts,.echarts-inner{display:block;width:100%;height:100%;min-width:0}
`,{});var AM=function(){if(kn!=null)return kn;if(typeof HTMLElement>"u"||typeof customElements>"u")return kn=!1;try{new Function("tag",`class EChartsElement extends HTMLElement {
  __dispose = null;

  disconnectedCallback() {
    if (this.__dispose) {
      this.__dispose();
      this.__dispose = null;
    }
  }
}

if (customElements.get(tag) == null) {
  customElements.define(tag, EChartsElement);
}
`)(lg)}catch{return kn=!1}return kn=!0}(),PM="ecTheme",EM="ecInitOptions",RM="ecUpdateOptions",QC=fg({name:"echarts",props:Le(Le({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},MM),LM),emits:{},inheritAttrs:!1,setup:function(e,t){var r=t.attrs,n=wi(),i=wi(),a=wi(),o=wi(),s=bi(PM,null),u=bi(EM,null),l=bi(RM,null),f=hg(e),h=f.autoresize,c=f.manualUpdate,v=f.loading,d=f.loadingOptions,y=Hr(function(){return o.value||e.option||null}),p=Hr(function(){return e.theme||oa(s,{})}),g=Hr(function(){return e.initOptions||oa(u,{})}),_=Hr(function(){return e.updateOptions||oa(l,{})}),m=Hr(function(){return function(T){var C={};for(var M in T)DM(M)||(C[M]=T[M]);return C}(r)}),S=vg().proxy.$listeners;function b(T){if(i.value){var C=a.value=lT(i.value,p.value,g.value);e.group&&(C.group=e.group);var M=S;M||(M={},Object.keys(r).filter(function(P){return P.indexOf("on")===0&&P.length>2}).forEach(function(P){var E=P.charAt(2).toLowerCase()+P.slice(3);E.substring(E.length-4)==="Once"&&(E="~".concat(E.substring(0,E.length-4))),M[E]=r[P]})),Object.keys(M).forEach(function(P){var E=M[P];if(E){var I=P.toLowerCase();I.charAt(0)==="~"&&(I=I.substring(1),E.__once__=!0);var R=C;if(I.indexOf("zr:")===0&&(R=C.getZr(),I=I.substring(3)),E.__once__){delete E.__once__;var Y=E;E=function(){for(var F=[],k=0;k<arguments.length;k++)F[k]=arguments[k];Y.apply(void 0,F),R.off(I,E)}}R.on(I,E)}}),h.value?gg(function(){C&&!C.isDisposed()&&C.resize(),A()}):A()}function A(){var P=T||y.value;P&&C.setOption(P,_.value)}}function w(){a.value&&(a.value.dispose(),a.value=void 0)}var x=null;Ti(c,function(T){typeof x=="function"&&(x(),x=null),T||(x=Ti(function(){return e.option},function(C,M){C&&(a.value?a.value.setOption(C,Le({notMerge:C!==M},_.value)):b())},{deep:!0}))},{immediate:!0}),Ti([p,g],function(){w(),b()},{deep:!0}),Ll(function(){e.group&&a.value&&(a.value.group=e.group)});var L=TM(a);return function(T,C,M){var A=bi(xM,{}),P=Hr(function(){return Le(Le({},oa(A,{})),M==null?void 0:M.value)});Ll(function(){var E=T.value;E&&(C.value?E.showLoading(P.value):E.hideLoading())})}(a,v,d),function(T,C,M){var A=null;Ti([M,T,C],function(P,E,I){var R=P[0],Y=P[1],F=P[2];if(R&&Y&&F){var k=F===!0?{}:F,U=k.throttle,rt=U===void 0?100:U,tt=k.onResize,lt=function(){Y.resize(),tt==null||tt()};A=rt?dl(lt,rt):lt,yM(R,A)}I(function(){R&&A&&_M(R,A)})})}(a,h,i),cg(function(){b()}),dg(function(){AM&&n.value?n.value.__dispose=w:w()}),Le({chart:a,root:n,inner:i,setOption:function(T,C){e.manualUpdate&&(o.value=T),a.value?a.value.setOption(T,C||{}):b(T)},nonEventAttrs:m},L)},render:function(){var e=Le({},this.nonEventAttrs);return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",Al(lg,e,[Al("div",{ref:"inner",class:"echarts-inner"})])}});export{q_ as $,Vt as A,Vc as B,Z as C,I1 as D,ht as E,nC as F,mi as G,ro as H,Qn as I,eC as J,ii as K,Uy as L,uo as M,D as N,H_ as O,Fr as P,be as Q,Re as R,Na as S,GM as T,Qd as U,V,dC as W,Hv as X,kr as Y,vn as Z,W as _,DS as a,J as a$,hC as a0,dl as a1,Za as a2,PC as a3,AC as a4,hf as a5,k1 as a6,At as a7,N as a8,WS as a9,Ke as aA,XC as aB,BM as aC,bo as aD,GT as aE,GC as aF,YC as aG,at as aH,WC as aI,$T as aJ,UC as aK,it as aL,HC as aM,VC as aN,Xu as aO,tm as aP,XS as aQ,KS as aR,Ff as aS,vm as aT,YT as aU,Fu as aV,Jg as aW,Un as aX,Ie as aY,XM as aZ,qM as a_,OC as aa,ZS as ab,$u as ac,YS as ad,sa as ae,$S as af,Jm as ag,Qm as ah,Ot as ai,vC as aj,$M as ak,pf as al,ct as am,IC as an,j as ao,vt as ap,Lr as aq,Fe as ar,zC as as,ft as at,Fa as au,Vd as av,Ba as aw,pv as ax,yt as ay,ja as az,Ea as b,ri as b$,bu as b0,$ as b1,om as b2,_T as b3,kM as b4,Xc as b5,uC as b6,lS as b7,cu as b8,Yu as b9,$y as bA,to as bB,Qg as bC,zM as bD,q as bE,OM as bF,Cr as bG,Dr as bH,je as bI,Zi as bJ,HM as bK,gi as bL,Se as bM,KM as bN,VM as bO,WM as bP,_t as bQ,EC as bR,RC as bS,ad as bT,ei as bU,YM as bV,Cm as bW,im as bX,nm as bY,sm as bZ,Ly as b_,Uc as ba,j_ as bb,pn as bc,Qt as bd,kC as be,iw as bf,Be as bg,fn as bh,Js as bi,zc as bj,__ as bk,V_ as bl,Ae as bm,jg as bn,Il as bo,Ta as bp,we as bq,qC as br,oM as bs,ZC as bt,ho as bu,yi as bv,t_ as bw,iv as bx,iC as by,B_ as bz,cC as c,ge as c$,la as c0,Ft as c1,X_ as c2,lm as c3,P1 as c4,zv as c5,WT as c6,nt as c7,wC as c8,yC as c9,ol as cA,E1 as cB,Sc as cC,no as cD,DC as cE,wb as cF,BC as cG,_C as cH,_i as cI,W1 as cJ,s_ as cK,RT as cL,Kp as cM,mc as cN,yu as cO,Ec as cP,JM as cQ,bb as cR,ZM as cS,bC as cT,Ca as cU,UM as cV,aC as cW,Do as cX,vS as cY,sC as cZ,NM as c_,M1 as ca,ke as cb,Iy as cc,F1 as cd,ue as ce,SC as cf,J_ as cg,O1 as ch,jM as ci,My as cj,$C as ck,HT as cl,mC as cm,Bs as cn,rw as co,$o as cp,FC as cq,QM as cr,gC as cs,re as ct,CC as cu,pC as cv,zt as cw,tC as cx,TC as cy,MC as cz,O as d,ci as d0,ql as d1,Iu as d2,Uh as d3,FM as d4,qh as d5,Mu as d6,zb as d7,Th as d8,Ev as d9,NC as da,KC as db,QC as dc,lT as dd,js as e,lC as f,fC as g,Tt as h,B as i,ed as j,xC as k,tu as l,sd as m,LC as n,z as o,G as p,Ad as q,Oa as r,oC as s,rC as t,oi as u,ut as v,us as w,Xv as x,et as y,gt as z};
