@manufac/react-components-potli 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/tsc/components/CustomTable/index.js +22 -11
- package/dist/tsc/components/CustomTable/index.js.map +1 -1
- package/dist/tsc/components/CustomTable/index.stories.js +7 -0
- package/dist/tsc/components/CustomTable/index.stories.js.map +1 -1
- package/dist/tsc/components/CustomTable/utils.js +12 -1
- package/dist/tsc/components/CustomTable/utils.js.map +1 -1
- package/dist/tsc/tsconfig.tsbuildinfo +1 -1
- package/dist/types/components/CustomTable/index.d.ts.map +1 -1
- package/dist/types/components/CustomTable/index.stories.d.ts.map +1 -1
- package/dist/types/components/CustomTable/utils.d.ts +3 -1
- package/dist/types/components/CustomTable/utils.d.ts.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
import{createElement as t,forwardRef as e,useEffect as n,useMemo as i,useRef as r,useState as o}from"react";import{ActionIcon as a,Alert as s,Group as l,ScrollArea as u,Select as c,Skeleton as h,Table as d,Text as f,ThemeIcon as p}from"@mantine/core";var g={85:(t,e,n)=>{t.exports=n(197)},197:(t,e)=>{var n=Symbol.for("react.transitional.element");function i(t,e,i){var r=null;if(void 0!==i&&(r=""+i),void 0!==e.key&&(r=""+e.key),"key"in e)for(var o in i={},e)"key"!==o&&(i[o]=e[o]);else i=e;return e=i.ref,{$$typeof:n,type:t,key:r,ref:void 0!==e?e:null,props:i}}Symbol.for("react.fragment"),e.jsx=i,e.jsxs=i}},v={};function m(t){var e=v[t];if(void 0!==e)return e.exports;var n=v[t]={exports:{}};return g[t](n,n.exports,m),n.exports}m.d=(t,e)=>{for(var n in e)m.o(e,n)&&!m.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},m.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),m.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var y={};m.r(y),m.d(y,{Arc:()=>rf,BezierCurve:()=>tf,BoundingRect:()=>De,Circle:()=>nd,CompoundPath:()=>of,Ellipse:()=>Cd,Group:()=>bd,Image:()=>mo,IncrementalDisplayable:()=>bf,Line:()=>Jh,LinearGradient:()=>lf,OrientedBoundingRect:()=>_f,Path:()=>uo,Point:()=>ce,Polygon:()=>Xd,Polyline:()=>Zd,RadialGradient:()=>uf,Rect:()=>Mo,Ring:()=>Gd,Sector:()=>Fd,Text:()=>Vo,WH:()=>Pf,XY:()=>Rf,applyTransform:()=>qf,calcZ2Range:()=>pp,clipPointsByRect:()=>Kf,clipRectByRect:()=>Qf,createIcon:()=>Jf,ensureCopyRect:()=>hp,ensureCopyTransform:()=>dp,expandOrShrinkRect:()=>ip,extendPath:()=>Bf,extendShape:()=>Lf,getShapeClass:()=>Ef,getTransform:()=>Xf,groupTransition:()=>$f,initProps:()=>Mf,isBoundingRectAxisAligned:()=>up,isElementRemoved:()=>Tf,lineLineIntersect:()=>ep,linePolygonIntersect:()=>tp,makeImage:()=>Ff,makePath:()=>Nf,mergePath:()=>Hf,registerShape:()=>zf,removeElement:()=>kf,removeElementWithFadeOut:()=>Df,resizePath:()=>Gf,retrieveZInfo:()=>fp,setTooltipConfig:()=>ap,subPixelOptimize:()=>jf,subPixelOptimizeLine:()=>Wf,subPixelOptimizeRect:()=>Uf,transformDirection:()=>Yf,traverseElements:()=>lp,traverseUpdateZ:()=>gp,updateProps:()=>Cf});var _=m(85),x=function(t,e){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},x(t,e)};function b(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}x(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create,Object.create;var w,S,C="12px sans-serif",M=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<95;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),T={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!w){var n=T.createCanvas();w=n&&n.getContext("2d")}if(w)return S!==e&&(S=w.font=e||C),w.measureText(t);t=t||"";var i=/((?:\d+)?\.?\d*)px/.exec(e=e||C),r=i&&+i[1]||12,o=0;if(e.indexOf("mono")>=0)o=r*t.length;else for(var a=0;a<t.length;a++){var s=M[t[a]];o+=null==s?r:s*r}return{width:o}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}},k=$(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),I=$(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),D=Object.prototype.toString,A=Array.prototype,R=A.forEach,P=A.filter,L=A.slice,O=A.map,B=function(){}.constructor,z=B?B.prototype:null,E="__proto__",N=2311;function F(){return N++}function V(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function H(t){if(null==t||"object"!=typeof t)return t;var e=t,n=D.call(t);if("[object Array]"===n){if(!bt(t)){e=[];for(var i=0,r=t.length;i<r;i++)e[i]=H(t[i])}}else if(I[n]){if(!bt(t)){var o=t.constructor;if(o.from)e=o.from(t);else for(e=new o(t.length),i=0,r=t.length;i<r;i++)e[i]=t[i]}}else if(!k[n]&&!bt(t)&&!ut(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==E&&(e[a]=H(t[a]));return e}function G(t,e,n){if(!at(e)||!at(t))return n?H(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==E){var r=t[i],o=e[i];!at(o)||!at(r)||et(o)||et(r)||ut(o)||ut(r)||st(o)||st(r)||bt(o)||bt(r)?!n&&i in t||(t[i]=H(e[i])):G(r,o,n)}return t}function W(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==E&&(t[n]=e[n]);return t}function U(t,e,n){for(var i=Q(e),r=0,o=i.length;r<o;r++){var a=i[r];(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}function j(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function X(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else U(t,e,n)}function q(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function Y(t,e,n){if(t&&e)if(t.forEach&&t.forEach===R)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function Z(t,e,n){if(!t)return[];if(!e)return gt(t);if(t.map&&t.map===O)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function $(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function K(t,e,n){if(!t)return[];if(!e)return gt(t);if(t.filter&&t.filter===P)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function Q(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}T.createCanvas;var J=z&&nt(z.bind)?z.call.bind(z.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(L.call(arguments)))}};function tt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(L.call(arguments)))}}function et(t){return Array.isArray?Array.isArray(t):"[object Array]"===D.call(t)}function nt(t){return"function"==typeof t}function it(t){return"string"==typeof t}function rt(t){return"[object String]"===D.call(t)}function ot(t){return"number"==typeof t}function at(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function st(t){return!!k[D.call(t)]}function lt(t){return!!I[D.call(t)]}function ut(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function ct(t){return null!=t.colorStops}function ht(t){return t!=t}function dt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function ft(t,e){return null!=t?t:e}function pt(t,e,n){return null!=t?t:null!=e?e:n}function gt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return L.apply(t,e)}function vt(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function mt(t,e){if(!t)throw new Error(e)}function yt(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var _t="__ec_primitive__";function xt(t){t[_t]=!0}function bt(t){return t[_t]}var wt=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return Q(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),St="function"==typeof Map,Ct=function(){function t(e){var n=et(e);this.data=St?new Map:new wt;var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&Y(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach(function(n,i){t.call(e,n,i)})},t.prototype.keys=function(){var t=this.data.keys();return St?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function Mt(t){return new Ct(t)}function Tt(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&W(n,e),n}function kt(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function It(t,e){return t.hasOwnProperty(e)}function Dt(){}var At=180/Math.PI,Rt=(Number.EPSILON||Math.pow(2,-52),function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}),Pt=new function(){this.browser=new Rt,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="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(Pt.wxa=!0,Pt.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?Pt.worker=!0:!Pt.hasGlobalWindow||"Deno"in window||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(Pt.node=!0,Pt.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);if(i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document){var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}}(navigator.userAgent,Pt);const Lt=Pt;var Ot="___EC__COMPONENT__CONTAINER___",Bt="___EC__EXTENDED_CLASS___";function zt(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function Et(t,e){t.$constructor=t,t.extend=function(t){var e,n,i=this;return nt(n=i)&&/^class\s/.test(Function.prototype.toString.call(n))?e=function(t){function e(){return t.apply(this,arguments)||this}return b(e,t),e}(i):(e=function(){(t.$constructor||i).apply(this,arguments)},function(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}(e,this)),W(e.prototype,t),e[Bt]=!0,e.extend=this.extend,e.superCall=Vt,e.superApply=Ht,e.superClass=i,e}}function Nt(t,e){t.extend=e.extend}var Ft=Math.round(10*Math.random());function Vt(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function Ht(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Gt(t){var e={};t.registerClass=function(t){var n,i=t.type||t.prototype.type;if(i){mt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=i),'componentType "'+n+'" illegal'),t.prototype.type=i;var r=zt(i);if(r.sub){if(r.sub!==Ot){var o=function(t){var n=e[t.main];return n&&n[Ot]||((n=e[t.main]={})[Ot]=!0),n}(r);o[r.sub]=t}}else e[r.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[Ot]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=zt(t),i=[],r=e[n.main];return r&&r[Ot]?Y(r,function(t,e){e!==Ot&&i.push(t)}):i.push(r),i},t.hasClass=function(t){var n=zt(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return Y(e,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){var n=zt(t),i=e[n.main];return i&&i[Ot]}}function Wt(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(i&&j(i,s)>=0||r&&j(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var Ut=Wt([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),jt=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Ut(this,t,e)},t}(),Xt=function(t,e){return Xt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Xt(t,e)};function qt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Xt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create,Object.create;var Yt=function(t){this.value=t},Zt=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new Yt(t);return this.insertEntry(e),e},t.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++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),$t=function(){function t(t){this._list=new Zt,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Yt(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const Kt=$t;var Qt=new Kt(50);function Jt(t){if("string"==typeof t){var e=Qt.get(t);return e&&e.image}return t}function te(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Qt.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?!ne(e=o.image)&&o.pending.push(a):((e=T.loadImage(t,ee,ee)).__zrImageSrc=t,Qt.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function ee(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function ne(t){return t&&t.width&&t.height}function ie(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function re(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function oe(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function ae(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function se(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(n),h=Math.cos(n);return t[0]=r*h+s*c,t[1]=-r*c+s*h,t[2]=o*h+l*c,t[3]=-o*c+h*l,t[4]=h*(a-i[0])+c*(u-i[1])+i[0],t[5]=h*(u-i[1])-c*(a-i[0])+i[1],t}function le(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}var ue=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}();const ce=ue;var he=Math.min,de=Math.max,fe=Math.abs,pe=["x","y"],ge=["width","height"],ve=new ce,me=new ce,ye=new ce,_e=new ce,xe=Ie(),be=xe.minTv,we=xe.maxTv,Se=[0,0],Ce=function(){function t(e,n,i,r){t.set(this,e,n,i,r)}return t.set=function(t,e,n,i,r){return i<0&&(e+=i,i=-i),r<0&&(n+=r,r=-r),t.x=e,t.y=n,t.width=i,t.height=r,t},t.prototype.union=function(t){var e=he(t.x,this.x),n=he(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=de(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=de(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=[1,0,0,1,0,0];return ae(r,r,[-e.x,-e.y]),function(t,e,n){var i=n[0],r=n[1];t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r}(r,r,[n,i]),ae(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n,i){return t.intersect(this,e,n,i)},t.intersect=function(e,n,i,r){i&&ce.set(i,0,0);var o=r&&r.outIntersectRect||null,a=r&&r.clamp;if(o&&(o.x=o.y=o.width=o.height=NaN),!e||!n)return!1;e instanceof t||(e=t.set(Me,e.x,e.y,e.width,e.height)),n instanceof t||(n=t.set(Te,n.x,n.y,n.width,n.height));var s=!!i;xe.reset(r,s);var l=xe.touchThreshold,u=e.x+l,c=e.x+e.width-l,h=e.y+l,d=e.y+e.height-l,f=n.x+l,p=n.x+n.width-l,g=n.y+l,v=n.y+n.height-l;if(u>c||h>d||f>p||g>v)return!1;var m=!(c<f||p<u||d<g||v<h);return(s||o)&&(Se[0]=1/0,Se[1]=0,ke(u,c,f,p,0,s,o,a),ke(h,d,g,v,1,s,o,a),s&&ce.copy(i,m?xe.useDir?xe.dirMinTv:be:we)),m},t.contain=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},t.prototype.contain=function(e,n){return t.contain(this,e,n)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}ve.x=ye.x=n.x,ve.y=_e.y=n.y,me.x=_e.x=n.x+n.width,me.y=ye.y=n.y+n.height,ve.transform(i),_e.transform(i),me.transform(i),ye.transform(i),e.x=he(ve.x,me.x,ye.x,_e.x),e.y=he(ve.y,me.y,ye.y,_e.y);var l=de(ve.x,me.x,ye.x,_e.x),u=de(ve.y,me.y,ye.y,_e.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),Me=new Ce(0,0,0,0),Te=new Ce(0,0,0,0);function ke(t,e,n,i,r,o,a,s){var l=fe(e-n),u=fe(i-t),c=he(l,u),h=pe[r],d=pe[1-r],f=ge[r];e<n||i<t?l<u?(o&&(we[h]=-l),s&&(a[h]=e,a[f]=0)):(o&&(we[h]=u),s&&(a[h]=t,a[f]=0)):(a&&(a[h]=de(t,n),a[f]=he(e,i)-a[h]),o&&(c<Se[0]||xe.useDir)&&(Se[0]=he(c,Se[0]),(l<u||!xe.bidirectional)&&(be[h]=l,be[d]=0,xe.useDir&&xe.calcDirMTV()),(l>=u||!xe.bidirectional)&&(be[h]=-u,be[d]=0,xe.useDir&&xe.calcDirMTV())))}function Ie(){var t=0,e=new ce,n=new ce,i={minTv:new ce,maxTv:new ce,useDir:!1,dirMinTv:new ce,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(r,o){i.touchThreshold=0,r&&null!=r.touchThreshold&&(i.touchThreshold=de(0,r.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,r&&null!=r.direction&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),n.copy(i.minTv),t=r.direction,i.bidirectional=null==r.bidirectional||!!r.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var o=i.minTv,a=i.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(t),u=Math.cos(t),c=l*o.y+u*o.x;r(c)?r(o.x)&&r(o.y)&&a.set(0,0):(n.x=s*u/c,n.y=s*l/c,r(n.x)&&r(n.y)?a.set(0,0):(i.bidirectional||e.dot(n)>0)&&n.len()<a.len()&&a.copy(n))}};function r(t){return fe(t)<1e-10}return i}const De=Ce;function Ae(t){Re||(Re=new Kt(100)),t=t||C;var e=Re.get(t);return e||(e={font:t,strWidthCache:new Kt(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:T.measureText("国",t).width,asciiCharWidth:T.measureText("a",t).width},Re.put(t,e)),e}var Re,Pe=0;function Le(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function(t){if(!(Pe>=5)){t=t||C;for(var e=[],n=+new Date,i=0;i<=127;i++)e[i]=T.measureText(String.fromCharCode(i),t).width;var r=+new Date-n;return r>16?Pe=5:r>2&&Pe++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Oe(t,e){var n=t.strWidthCache,i=n.get(e);return null==i&&(i=T.measureText(e,t.font).width,n.put(e,i)),i}function Be(t,e,n,i){var r=Oe(Ae(e),t),o=Fe(e),a=Ee(0,r,n),s=Ne(0,o,i);return new De(a,s,r,o)}function ze(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return Be(r[0],e,n,i);for(var o=new De(0,0,0,0),a=0;a<r.length;a++){var s=Be(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function Ee(t,e,n,i){return"right"===n?i?t+=e:t-=e:"center"===n&&(i?t+=e/2:t-=e/2),t}function Ne(t,e,n,i){return"middle"===n?i?t+=e/2:t-=e/2:"bottom"===n&&(i?t+=e:t-=e),t}function Fe(t){return Ae(t).stWideCharWidth}function Ve(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function He(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=Ve(i[0],n.width),u+=Ve(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var Ge=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function We(t,e,n,i,r,o){if(!n)return t.text="",void(t.isTruncated=!1);var a=(e+"").split("\n");o=Ue(n,i,r,o);for(var s=!1,l={},u=0,c=a.length;u<c;u++)je(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;t.text=a.join("\n"),t.isTruncated=s}function Ue(t,e,n,i){var r=W({},i=i||{});n=ft(n,"..."),r.maxIterations=ft(i.maxIterations,2);var o=r.minChar=ft(i.minChar,0),a=r.fontMeasureInfo=Ae(e),s=a.asciiCharWidth;r.placeholder=ft(i.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<o&&l>=s;u++)l-=s;var c=Oe(a,n);return c>l&&(n="",c=0),l=t-c,r.ellipsis=n,r.ellipsisWidth=c,r.contentWidth=l,r.containerWidth=t,r}function je(t,e,n){var i=n.containerWidth,r=n.contentWidth,o=n.fontMeasureInfo;if(!i)return t.textLine="",void(t.isTruncated=!1);var a=Oe(o,e);if(a<=i)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(a<=r||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?Xe(e,r,o):a>0?Math.floor(e.length*r/a):0;a=Oe(o,e=e.substr(0,l))}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function Xe(t,e,n){for(var i=0,r=0,o=t.length;r<o&&i<e;r++)i+=Le(n,t.charCodeAt(r));return r}var qe=function(){},Ye=function(t){this.tokens=[],t&&(this.tokens=t)},Ze=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function $e(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},u=t.lines,c=l.font||n.font,h=!1;if(i){var d=l.padding,f=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var p=Ve(l.width,i.width)+f;u.length>0&&p+i.accumWidth>i.width&&(o=e.split("\n"),h=!0),i.accumWidth=p}else{var g=Je(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+f,a=g.linesWidths,o=g.lines}}o||(o=e.split("\n"));for(var v=Ae(c),m=0;m<o.length;m++){var y=o[m],_=new qe;if(_.styleName=r,_.text=y,_.isLineHolder=!y&&!s,"number"==typeof l.width?_.width=l.width:_.width=a?a[m]:Oe(v,y),m||h)u.push(new Ye([_]));else{var x=(u[u.length-1]||(u[0]=new Ye)).tokens,b=x.length;1===b&&x[0].isLineHolder?x[0]=_:(y||!b||s)&&x.push(_)}}}var Ke=$(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function Qe(t){return!function(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!Ke[t]}function Je(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=Ae(e),d=0;d<t.length;d++){var f=t.charAt(d);if("\n"!==f){var p=Le(h,f.charCodeAt(0)),g=!i&&!Qe(f);(o.length?c+p>n:r+c+p>n)?c?(s||l)&&(g?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=f,s="",c=u+=p):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=f,c=p)):g?(o.push(l),a.push(u),l=f,u=p):(o.push(f),a.push(p)):(c+=p,g?(l+=f,u+=p):(l&&(s+=l,l="",u=0),s+=f))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}function tn(t,e,n,i,r,o){if(t.baseX=n,t.baseY=i,t.outerWidth=t.outerHeight=null,e){var a=2*e.width,s=2*e.height;De.set(en,Ee(n,a,r),Ne(i,s,o),a,s),De.intersect(e,en,null,nn);var l=nn.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Ee(l.x,l.width,r,!0),t.baseY=Ne(l.y,l.height,o,!0)}}var en=new De(0,0,0,0),nn={outIntersectRect:{},clamp:!0};function rn(t){return null!=t?t+="":t=""}function on(t,e,n,i){var r=new De(Ee(t.x||0,e,t.textAlign),Ne(t.y||0,n,t.textBaseline),e,n),o=null!=i?i:an(t)?t.lineWidth:0;return o>0&&(r.x-=o/2,r.y-=o/2,r.width+=o,r.height+=o),r}function an(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}function sn(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function ln(t){return[t[0],t[1]]}function un(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function cn(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function hn(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function dn(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var fn=dn,pn=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function gn(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function vn(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function mn(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var yn=ie;function _n(t){return t>5e-5||t<-5e-5}var xn=[],bn=[],wn=[1,0,0,1,0,0],Sn=Math.abs,Cn=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return _n(this.rotation)||_n(this.x)||_n(this.y)||_n(this.scaleX-1)||_n(this.scaleY-1)||_n(this.skewX)||_n(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):yn(n),t&&(e?oe(n,t,n):re(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(yn(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(xn);var n=xn[0]<0?-1:1,i=xn[1]<0?-1:1,r=((xn[0]-n)*e+n)/xn[0]||0,o=((xn[1]-i)*e+i)/xn[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],le(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],oe(bn,t.invTransform,e),e=bn);var n=this.originX,i=this.originY;(n||i)&&(wn[4]=n,wn[5]=i,oe(bn,e,wn),bn[4]-=n,bn[5]-=i,e=bn),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&gn(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&gn(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Sn(t[0]-1)>1e-10&&Sn(t[3]-1)>1e-10?Math.sqrt(Sn(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Tn(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var f=n+a,p=i+s;e[4]=-f*r-h*p*o,e[5]=-p*o-d*f*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=d*r,e[2]=h*o,l&&se(e,e,l),e[4]+=n+u,e[5]+=i+c,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),Mn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Tn(t,e){for(var n=0;n<Mn.length;n++){var i=Mn[n];t[i]=e[i]}}const kn=Cn;var In={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-In.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*In.bounceIn(2*t):.5*In.bounceOut(2*t-1)+.5}};const Dn=In;var An=Math.pow,Rn=Math.sqrt,Pn=1e-4,Ln=Rn(3),On=1/3,Bn=sn(),zn=sn(),En=sn();function Nn(t){return t>-1e-8&&t<1e-8}function Fn(t){return t>1e-8||t<-1e-8}function Vn(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function Hn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Gn(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,f=0;if(Nn(c)&&Nn(h))Nn(s)?o[0]=0:(C=-l/s)>=0&&C<=1&&(o[f++]=C);else{var p=h*h-4*c*d;if(Nn(p)){var g=h/c,v=-g/2;(C=-s/a+g)>=0&&C<=1&&(o[f++]=C),v>=0&&v<=1&&(o[f++]=v)}else if(p>0){var m=Rn(p),y=c*s+1.5*a*(-h+m),_=c*s+1.5*a*(-h-m);(C=(-s-((y=y<0?-An(-y,On):An(y,On))+(_=_<0?-An(-_,On):An(_,On))))/(3*a))>=0&&C<=1&&(o[f++]=C)}else{var x=(2*c*s-3*a*h)/(2*Rn(c*c*c)),b=Math.acos(x)/3,w=Rn(c),S=Math.cos(b),C=(-s-2*w*S)/(3*a),M=(v=(-s+w*(S+Ln*Math.sin(b)))/(3*a),(-s+w*(S-Ln*Math.sin(b)))/(3*a));C>=0&&C<=1&&(o[f++]=C),v>=0&&v<=1&&(o[f++]=v),M>=0&&M<=1&&(o[f++]=M)}}return f}function Wn(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(Nn(a))Fn(o)&&(c=-s/o)>=0&&c<=1&&(r[l++]=c);else{var u=o*o-4*a*s;if(Nn(u))r[0]=-o/(2*a);else if(u>0){var c,h=Rn(u),d=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}function Un(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function jn(t,e,n,i,r,o,a,s,l){for(var u=t,c=e,h=0,d=1/l,f=1;f<=l;f++){var p=f*d,g=Vn(t,n,r,a,p),v=Vn(e,i,o,s,p),m=g-u,y=v-c;h+=Math.sqrt(m*m+y*y),u=g,c=v}return h}function Xn(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function qn(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function Yn(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function Zn(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function $n(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var d=h*c,f=Xn(t,n,r,d),p=Xn(e,i,o,d),g=f-s,v=p-l;u+=Math.sqrt(g*g+v*v),s=f,l=p}return u}var Kn=/cubic-bezier\(([0-9,\.e ]+)\)/;function Qn(t){var e=t&&Kn.exec(t);if(e){var n=e[1].split(","),i=+yt(n[0]),r=+yt(n[1]),o=+yt(n[2]),a=+yt(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:Gn(0,i,o,1,t,s)&&Vn(0,r,a,1,s[0])}}}const Jn=function(){function t(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||Dt,this.ondestroy=t.ondestroy||Dt,this.onrestart=t.onrestart||Dt,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=nt(t)?t:Dn[t]||Qn(t)},t}();var ti={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 ei(t){return(t=Math.round(t))<0?0:t>255?255:t}function ni(t){return t<0?0:t>1?1:t}function ii(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?ei(parseFloat(e)/100*255):ei(parseInt(e,10))}function ri(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?ni(parseFloat(e)/100):ni(parseFloat(e))}function oi(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function ai(t,e,n){return t+(e-t)*n}function si(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function li(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var ui=new Kt(20),ci=null;function hi(t,e){ci&&li(ci,e),ci=ui.put(t,ci||e.slice())}function di(t,e){if(t){e=e||[];var n=ui.get(t);if(n)return li(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in ti)return li(e,ti[i]),hi(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(si(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),hi(t,e),e):void si(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(si(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),hi(t,e),e):void si(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?si(e,+u[0],+u[1],+u[2],1):si(e,0,0,0,1);c=ri(u.pop());case"rgb":return u.length>=3?(si(e,ii(u[0]),ii(u[1]),ii(u[2]),3===u.length?c:ri(u[3])),hi(t,e),e):void si(e,0,0,0,1);case"hsla":return 4!==u.length?void si(e,0,0,0,1):(u[3]=ri(u[3]),fi(u,e),hi(t,e),e);case"hsl":return 3!==u.length?void si(e,0,0,0,1):(fi(u,e),hi(t,e),e);default:return}}si(e,0,0,0,1)}}function fi(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=ri(t[1]),r=ri(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return si(e=e||[],ei(255*oi(a,o,n+1/3)),ei(255*oi(a,o,n)),ei(255*oi(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function pi(t,e){var n=di(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return mi(n,4===n.length?"rgba":"rgb")}}function gi(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=di(e[r]),s=di(e[o]),l=i-r,u=mi([ei(ai(a[0],s[0],l)),ei(ai(a[1],s[1],l)),ei(ai(a[2],s[2],l)),ni(ai(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}function vi(t,e,n,i){var r,o=di(t);if(t)return o=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-h:r===s?e=1/3+c-d:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}(o),null!=e&&(o[0]=(r=nt(e)?e(o[0]):e,(r=Math.round(r))<0?0:r>360?360:r)),null!=n&&(o[1]=ri(nt(n)?n(o[1]):n)),null!=i&&(o[2]=ri(nt(i)?i(o[2]):i)),mi(fi(o),"rgba")}function mi(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function yi(t,e){var n=di(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var _i=new Kt(100);function xi(t){if(it(t)){var e=_i.get(t);return e||(e=pi(t,-.1),_i.put(t,e)),e}if(ct(t)){var n=W({},t);return n.colorStops=Z(t.colorStops,function(t){return{offset:t.offset,color:pi(t.color,-.1)}}),n}return t}Math.round,Lt.hasGlobalWindow&&nt(window.btoa);var bi=Array.prototype.slice;function wi(t,e,n){return(e-t)*n+t}function Si(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=wi(e[o],n[o],i);return t}function Ci(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function Mi(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function Ti(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function ki(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a)if(o>a)i.length=a;else for(var s=o;s<a;s++)i.push(1===n?r[s]:bi.call(r[s]));var l=i[0]&&i[0].length;for(s=0;s<i.length;s++)if(1===n)isNaN(i[s])&&(i[s]=r[s]);else for(var u=0;u<l;u++)isNaN(i[s][u])&&(i[s][u]=r[s][u])}}function Ii(t){if(q(t)){var e=t.length;if(q(t[0])){for(var n=[],i=0;i<e;i++)n.push(bi.call(t[i]));return n}return bi.call(t)}return t}function Di(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function Ai(t){return 4===t||5===t}function Ri(t){return 1===t||2===t}var Pi=[0,0,0,0],Li=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(q(e)){var l=function(t){return q(t&&t[0])?2:1}(e);a=l,(1===l&&!ot(e[0])||2===l&&!ot(e[0][0]))&&(o=!0)}else if(ot(e)&&!ht(e))a=0;else if(it(e))if(isNaN(+e)){var u=di(e);u&&(s=u,a=3)}else a=0;else if(ct(e)){var c=W({},s);c.colorStops=Z(e.colorStops,function(t){return{offset:t.offset,color:di(t.color)}}),"linear"===e.type?a=4:"radial"===e.type&&(a=5),s=c}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=nt(n)?n:Dn[n]||Qn(n)),i.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=Ri(i),l=Ai(i),u=0;u<r;u++){var c=n[u],h=c.value,d=o.value;c.percent=c.time/t,a||(s&&u!==r-1?ki(h,d,i):l&&Ti(h.colorStops,d.colorStops))}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;var f=n[0].value;for(u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-f:3===i?n[u].additiveValue=Ci([],n[u].value,f,-1):Ri(i)&&(n[u].additiveValue=1===i?Ci([],n[u].value,f,-1):Mi([],n[u].value,f,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,h=3===s,d=this._lastFr,f=Math.min;if(1===u)i=r=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=f(d+1,u-1);n>=0&&!(l[n].percent<=e);n--);n=f(n,u-2)}else{for(n=d;n<u&&!(l[n].percent>e);n++);n=f(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var p=r.percent-i.percent,g=0===p?1:f((e-i.percent)/p,1);r.easingFunc&&(g=r.easingFunc(g));var v=o?this._additiveValue:h?Pi:t[c];if(!Ri(s)&&!h||v||(v=this._additiveValue=[]),this.discrete)t[c]=g<1?i.rawValue:r.rawValue;else if(Ri(s))1===s?Si(v,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=wi(e[a][s],n[a][s],i)}}(v,i[a],r[a],g);else if(Ai(s)){var m=i[a],y=r[a],_=4===s;t[c]={type:_?"linear":"radial",x:wi(m.x,y.x,g),y:wi(m.y,y.y,g),colorStops:Z(m.colorStops,function(t,e){var n=y.colorStops[e];return{offset:wi(t.offset,n.offset,g),color:Di(Si([],t.color,n.color,g))}}),global:y.global},_?(t[c].x2=wi(m.x2,y.x2,g),t[c].y2=wi(m.y2,y.y2,g)):t[c].r=wi(m.r,y.r,g)}else if(h)Si(v,i[a],r[a],g),o||(t[c]=Di(v));else{var x=wi(i[a],r[a],g);o?this._additiveValue=x:t[c]=x}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(di(t[n],Pi),Ci(Pi,Pi,i,1),t[n]=Di(Pi)):1===e?Ci(t[n],t[n],i,1):2===e&&Mi(t[n],t[n],i,1)},t}(),Oi=function(){function t(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?V("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Q(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new Li(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,3===u.valType&&l&&(l=Di(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,Ii(l),i),this._trackKeys.push(a)}s.addKeyframe(t,Ii(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(e._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new Jn({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return Z(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[r]=Ii(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||Q(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();const Bi=Oi;var zi=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}();const Ei=zi;var Ni=1;Lt.hasGlobalWindow&&(Ni=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Fi=Ni,Vi="#333",Hi="#ccc",Gi="__zr_normal__",Wi=Mn.concat(["ignore"]),Ui=$(Mn,function(t,e){return t[e]=!0,t},{ignore:!1}),ji={},Xi=new De(0,0,0,0),qi=[],Yi=function(){function t(t){this.id=F(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;r.copyTransform(e);var u=null!=n.position,c=n.autoOverflowArea,h=void 0;if((c||u)&&(h=Xi,n.layoutRect?h.copy(n.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(ji,n,h):He(ji,n,h),r.x=ji.x,r.y=ji.y,o=ji.align,a=ji.verticalAlign;var d=n.origin;if(d&&null!=n.rotation){var f=void 0,p=void 0;"center"===d?(f=.5*h.width,p=.5*h.height):(f=Ve(d[0],h.width),p=Ve(d[1],h.height)),l=!0,r.originX=-r.x+f+(i?0:h.x),r.originY=-r.y+p+(i?0:h.y)}}null!=n.rotation&&(r.rotation=n.rotation);var g=n.offset;g&&(r.x+=g[0],r.y+=g[1],l||(r.originX=-g[0],r.originY=-g[1]));var v=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var m=v.overflowRect=v.overflowRect||new De(0,0,0,0);r.getLocalTransform(qi),le(qi,qi),De.copy(m,h),m.applyTransform(qi)}else v.overflowRect=null;var y=void 0,_=void 0,x=void 0;(null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside)&&this.canBeInsideText()?(y=n.insideFill,_=n.insideStroke,null!=y&&"auto"!==y||(y=this.getInsideTextFill()),null!=_&&"auto"!==_||(_=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,_=n.outsideStroke,null!=y&&"auto"!==y||(y=this.getOutsideFill()),null!=_&&"auto"!==_||(_=this.getOutsideStroke(y),x=!0)),(y=y||"#000")===v.fill&&_===v.stroke&&x===v.autoStroke&&o===v.align&&a===v.verticalAlign||(s=!0,v.fill=y,v.stroke=_,v.autoStroke=x,v.align=o,v.verticalAlign=a,e.setDefaultTextStyle(v)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Hi:Vi},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&di(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,mi(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},W(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(at(t))for(var n=Q(t),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,t[r])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&r!==Gi)){var o=i.targetName,a=o?e[o]:e;i.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Wi)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(Gi,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===Gi;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(j(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(t,e,n,l),c&&c.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}V("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var c=i[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(i),f=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&f&&f.duration>0,f);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=j(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=j(i,t),o=j(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];W(n,r),r.textConfig&&W(e=e||{},r.textConfig)}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=W({},i?this.textConfig:n.textConfig),W(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<Wi.length;u++){var c=Wi[u],h=r&&Ui[c];e&&null!=e[c]?h?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(h?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!r)for(u=0;u<this.animators.length;u++){var d=this.animators[u],f=d.targetName;d.getLoop()||d.__changeFinalValue(f?(e||n)[f]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new kn,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),W(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=1;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var i=t?this[t]:this,r=new Bi(i,e,n);return t&&(r.targetName=t),this.addAnimator(r,t),r},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var e=i.animators,n=j(e,t);n>=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){Zi(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){Zi(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=Zi(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function n(t,n,i,r){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}Object.defineProperty(e,t,{get:function(){return this[n]||o(this,this[n]=[]),this[n]},set:function(t){this[i]=t[0],this[r]=t[1],this[n]=t,o(this,t)}})}e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function Zi(t,e,n,i,r){var o=[];Qi(t,"",t,e,n=n||{},i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},h=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var d=0;d<o.length;d++){var f=o[d];c&&f.done(c),h&&f.aborted(h),n.force&&f.duration(n.duration),f.start(n.easing)}return o}function $i(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function Ki(t,e,n){if(q(e[n]))if(q(t[n])||(t[n]=[]),lt(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),$i(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(q(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?$i(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else $i(o,r,a);o.length=r.length}else t[n]=e[n]}function Qi(t,e,n,i,r,o,a,s){for(var l=Q(i),u=r.duration,c=r.delay,h=r.additive,d=r.setToFinal,f=!at(o),p=t.animators,g=[],v=0;v<l.length;v++){var m=l[v],y=i[m];if(null!=y&&null!=n[m]&&(f||o[m]))if(!at(y)||q(y)||ct(y))g.push(m);else{if(e){s||(n[m]=y,t.updateDuringAnimation(e));continue}Qi(t,m,n[m],y,r,o&&o[m],a,s)}else s||(n[m]=y,t.updateDuringAnimation(e),g.push(m))}var _=g.length;if(!h&&_)for(var x=0;x<p.length;x++)if((w=p[x]).targetName===e&&w.stopTracks(g)){var b=j(p,w);p.splice(b,1)}if(r.force||(g=K(g,function(t){return!((e=i[t])===(r=n[t])||q(e)&&q(r)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(e,r));var e,r}),_=g.length),_>0||r.force&&!a.length){var w,S=void 0,C=void 0,M=void 0;if(s)for(C={},d&&(S={}),x=0;x<_;x++)C[m=g[x]]=n[m],d?S[m]=i[m]:n[m]=i[m];else if(d)for(M={},x=0;x<_;x++)M[m=g[x]]=Ii(n[m]),Ki(n,i,m);(w=new Bi(n,!1,!1,h?K(p,function(t){return t.targetName===e}):null)).targetName=e,r.scope&&(w.scope=r.scope),d&&S&&w.whenWithKeys(0,S,g),M&&w.whenWithKeys(0,M,g),w.whenWithKeys(null==u?500:u,s?C:i,g).delay(c||0),t.addAnimator(w,e),a.push(w)}}X(Yi,Ei),X(Yi,kn);const Ji=Yi;var tr="__zr_style_"+Math.round(10*Math.random()),er={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},nr={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};er[tr]=!0;var ir=["z","z2","invisible"],rr=["invisible"],or=function(t){function e(e){return t.call(this,e)||this}var n;return qt(e,t),e.prototype._init=function(e){for(var n=Q(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,i){var r,o,a,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(r=this,o=t,a=e,ar.copy(r.getBoundingRect()),r.transform&&ar.applyTransform(r.transform),sr.width=o,sr.height=a,!ar.intersect(sr))||s&&!s[0]&&!s[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length)for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1;if(i&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new De(0,0,0,0)),e?De.applyTransform(t,n,e):t.copy(n),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new De(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:W(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(2&this.__dirty)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(t){return Tt(er,t)},e.prototype.useStyle=function(t){t[tr]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[tr]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,ir)},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.style?o?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=Q(u),h=0;h<c.length;h++)(f=c[h])in s&&(s[f]=s[f],this.style[f]=u[f]);var d=Q(s);for(h=0;h<d.length;h++){var f=d[h];this.style[f]=this.style[f]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var p=this.__inHover?rr:ir;for(h=0;h<p.length;h++)f=p[h],n&&null!=n[f]?this[f]=n[f]:l&&null!=i[f]&&(this[f]=i[f])},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(t,e){return W(t,e),t},e.prototype.getAnimationStyleProps=function(){return nr},e.initDefaultProps=((n=e.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=3)),e}(Ji),ar=new De(0,0,0,0),sr=new De(0,0,0,0);const lr=or;var ur=Math.min,cr=Math.max,hr=Math.sin,dr=Math.cos,fr=2*Math.PI,pr=sn(),gr=sn(),vr=sn();function mr(t,e,n,i,r,o){r[0]=ur(t,n),r[1]=ur(e,i),o[0]=cr(t,n),o[1]=cr(e,i)}var yr=[],_r=[];function xr(t,e,n,i,r,o,a,s,l,u){var c=Wn,h=Vn,d=c(t,n,r,a,yr);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var f=0;f<d;f++){var p=h(t,n,r,a,yr[f]);l[0]=ur(p,l[0]),u[0]=cr(p,u[0])}for(d=c(e,i,o,s,_r),f=0;f<d;f++){var g=h(e,i,o,s,_r[f]);l[1]=ur(g,l[1]),u[1]=cr(g,u[1])}l[0]=ur(t,l[0]),u[0]=cr(t,u[0]),l[0]=ur(a,l[0]),u[0]=cr(a,u[0]),l[1]=ur(e,l[1]),u[1]=cr(e,u[1]),l[1]=ur(s,l[1]),u[1]=cr(s,u[1])}function br(t,e,n,i,r,o,a,s){var l=Yn,u=Xn,c=cr(ur(l(t,n,r),1),0),h=cr(ur(l(e,i,o),1),0),d=u(t,n,r,c),f=u(e,i,o,h);a[0]=ur(t,r,d),a[1]=ur(e,o,f),s[0]=cr(t,r,d),s[1]=cr(e,o,f)}function wr(t,e,n,i,r,o,a,s,l){var u=vn,c=mn,h=Math.abs(r-o);if(h%fr<1e-4&&h>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(pr[0]=dr(r)*n+t,pr[1]=hr(r)*i+e,gr[0]=dr(o)*n+t,gr[1]=hr(o)*i+e,u(s,pr,gr),c(l,pr,gr),(r%=fr)<0&&(r+=fr),(o%=fr)<0&&(o+=fr),r>o&&!a?o+=fr:r<o&&a&&(r+=fr),a){var d=o;o=r,r=d}for(var f=0;f<o;f+=Math.PI/2)f>r&&(vr[0]=dr(f)*n+t,vr[1]=hr(f)*i+e,u(s,vr,s),c(l,vr,l))}var Sr={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Cr=[],Mr=[],Tr=[],kr=[],Ir=[],Dr=[],Ar=Math.min,Rr=Math.max,Pr=Math.cos,Lr=Math.sin,Or=Math.abs,Br=Math.PI,zr=2*Br,Er="undefined"!=typeof Float32Array,Nr=[];function Fr(t){return Math.round(t/Br*1e8)/1e8%2*Br}var Vr=function(){function t(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=[])}var e;return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=Or(n/Fi/t)||0,this._uy=Or(n/Fi/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Sr.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=Or(t-this._xi),i=Or(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Sr.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Sr.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Sr.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),Nr[0]=i,Nr[1]=r,function(t,e){var n=Fr(t[0]);n<0&&(n+=zr);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=zr?r=n+zr:e&&n-r>=zr?r=n-zr:!e&&n>r?r=n+(zr-Fr(n-r)):e&&n<r&&(r=n-(zr-Fr(r-n))),t[0]=n,t[1]=r}(Nr,o),i=Nr[0];var a=(r=Nr[1])-i;return this.addData(Sr.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Pr(r)*n+t,this._yi=Lr(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Sr.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Sr.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){if(this._saveData){var e=t.length;this.data&&this.data.length===e||!Er||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e}},t.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();var o=this.data;if(Er&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var a=0;a<i;a++)this.data[a]=o[a];for(r=0;r<e;r++){var s=t[r].data;for(a=0;a<s.length;a++)this.data[i++]=s[a]}this._len=i}},t.prototype.addData=function(t,e,n,i,r,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Er&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Tr[0]=Tr[1]=Ir[0]=Ir[1]=Number.MAX_VALUE,kr[0]=kr[1]=Dr[0]=Dr[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(r=n=e[t],o=i=e[t+1]),a){case Sr.M:n=r=e[t++],i=o=e[t++],Ir[0]=r,Ir[1]=o,Dr[0]=r,Dr[1]=o;break;case Sr.L:mr(n,i,e[t],e[t+1],Ir,Dr),n=e[t++],i=e[t++];break;case Sr.C:xr(n,i,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],Ir,Dr),n=e[t++],i=e[t++];break;case Sr.Q:br(n,i,e[t++],e[t++],e[t],e[t+1],Ir,Dr),n=e[t++],i=e[t++];break;case Sr.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],d=e[t++],f=e[t++]+d;t+=1;var p=!e[t++];s&&(r=Pr(d)*c+l,o=Lr(d)*h+u),wr(l,u,c,h,d,f,p,Ir,Dr),n=Pr(f)*c+l,i=Lr(f)*h+u;break;case Sr.R:mr(r=n=e[t++],o=i=e[t++],r+e[t++],o+e[t++],Ir,Dr);break;case Sr.Z:n=r,i=o}vn(Tr,Tr,Ir),mn(kr,kr,Dr)}return 0===t&&(Tr[0]=Tr[1]=kr[0]=kr[1]=0),new De(Tr[0],Tr[1],kr[0]-Tr[0],kr[1]-Tr[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var d=t[h++],f=1===h;f&&(a=r=t[h],s=o=t[h+1]);var p=-1;switch(d){case Sr.M:r=a=t[h++],o=s=t[h++];break;case Sr.L:var g=t[h++],v=(_=t[h++])-o;(Or(D=g-r)>n||Or(v)>i||h===e-1)&&(p=Math.sqrt(D*D+v*v),r=g,o=_);break;case Sr.C:var m=t[h++],y=t[h++],_=(g=t[h++],t[h++]),x=t[h++],b=t[h++];p=jn(r,o,m,y,g,_,x,b,10),r=x,o=b;break;case Sr.Q:p=$n(r,o,m=t[h++],y=t[h++],g=t[h++],_=t[h++],10),r=g,o=_;break;case Sr.A:var w=t[h++],S=t[h++],C=t[h++],M=t[h++],T=t[h++],k=t[h++],I=k+T;h+=1,f&&(a=Pr(T)*C+w,s=Lr(T)*M+S),p=Rr(C,M)*Ar(zr,Math.abs(k)),r=Pr(I)*C+w,o=Lr(I)*M+S;break;case Sr.R:a=r=t[h++],s=o=t[h++],p=2*t[h++]+2*t[h++];break;case Sr.Z:var D=a-r;v=s-o,p=Math.sqrt(D*D+v*v),r=a,o=s}p>=0&&(l[c++]=p,u+=p)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,c,h,d=this.data,f=this._ux,p=this._uy,g=this._len,v=e<1,m=0,y=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var x=0;x<g;){var b=d[x++],w=1===x;switch(w&&(n=r=d[x],i=o=d[x+1]),b!==Sr.L&&_>0&&(t.lineTo(c,h),_=0),b){case Sr.M:n=r=d[x++],i=o=d[x++],t.moveTo(r,o);break;case Sr.L:a=d[x++],s=d[x++];var S=Or(a-r),C=Or(s-o);if(S>f||C>p){if(v){if(m+(Y=l[y++])>u){var M=(u-m)/Y;t.lineTo(r*(1-M)+a*M,o*(1-M)+s*M);break t}m+=Y}t.lineTo(a,s),r=a,o=s,_=0}else{var T=S*S+C*C;T>_&&(c=a,h=s,_=T)}break;case Sr.C:var k=d[x++],I=d[x++],D=d[x++],A=d[x++],R=d[x++],P=d[x++];if(v){if(m+(Y=l[y++])>u){Un(r,k,D,R,M=(u-m)/Y,Cr),Un(o,I,A,P,M,Mr),t.bezierCurveTo(Cr[1],Mr[1],Cr[2],Mr[2],Cr[3],Mr[3]);break t}m+=Y}t.bezierCurveTo(k,I,D,A,R,P),r=R,o=P;break;case Sr.Q:if(k=d[x++],I=d[x++],D=d[x++],A=d[x++],v){if(m+(Y=l[y++])>u){Zn(r,k,D,M=(u-m)/Y,Cr),Zn(o,I,A,M,Mr),t.quadraticCurveTo(Cr[1],Mr[1],Cr[2],Mr[2]);break t}m+=Y}t.quadraticCurveTo(k,I,D,A),r=D,o=A;break;case Sr.A:var L=d[x++],O=d[x++],B=d[x++],z=d[x++],E=d[x++],N=d[x++],F=d[x++],V=!d[x++],H=B>z?B:z,G=Or(B-z)>.001,W=E+N,U=!1;if(v&&(m+(Y=l[y++])>u&&(W=E+N*(u-m)/Y,U=!0),m+=Y),G&&t.ellipse?t.ellipse(L,O,B,z,F,E,W,V):t.arc(L,O,H,E,W,V),U)break t;w&&(n=Pr(E)*B+L,i=Lr(E)*z+O),r=Pr(W)*B+L,o=Lr(W)*z+O;break;case Sr.R:n=r=d[x],i=o=d[x+1],a=d[x++],s=d[x++];var j=d[x++],X=d[x++];if(v){if(m+(Y=l[y++])>u){var q=u-m;t.moveTo(a,s),t.lineTo(a+Ar(q,j),s),(q-=j)>0&&t.lineTo(a+j,s+Ar(q,X)),(q-=X)>0&&t.lineTo(a+Rr(j-q,0),s+X),(q-=j)>0&&t.lineTo(a,s+Rr(X-q,0));break t}m+=Y}t.rect(a,s,j,X);break;case Sr.Z:if(v){var Y;if(m+(Y=l[y++])>u){M=(u-m)/Y,t.lineTo(r*(1-M)+n*M,o*(1-M)+i*M);break t}m+=Y}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=Sr,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}();const Hr=Vr;function Gr(t,e,n,i,r,o,a){if(0===r)return!1;var s,l=r;if(a>e+l&&a>i+l||a<e-l&&a<i-l||o>t+l&&o>n+l||o<t-l&&o<n-l)return!1;if(t===n)return Math.abs(o-t)<=l/2;var u=(s=(e-i)/(t-n))*o-a+(t*i-n*e)/(t-n);return u*u/(s*s+1)<=l/2*l/2}function Wr(t,e,n,i,r,o,a,s,l,u,c){if(0===l)return!1;var h=l;if(c>e+h&&c>i+h&&c>o+h&&c>s+h||c<e-h&&c<i-h&&c<o-h&&c<s-h||u>t+h&&u>n+h&&u>r+h&&u>a+h||u<t-h&&u<n-h&&u<r-h&&u<a-h)return!1;var d=function(t,e,n,i,r,o,a,s,l,u){var c,h,d,f,p,g=.005,v=1/0;Bn[0]=l,Bn[1]=u;for(var m=0;m<1;m+=.05)zn[0]=Vn(t,n,r,a,m),zn[1]=Vn(e,i,o,s,m),(f=pn(Bn,zn))<v&&(c=m,v=f);v=1/0;for(var y=0;y<32&&!(g<Pn);y++)h=c-g,d=c+g,zn[0]=Vn(t,n,r,a,h),zn[1]=Vn(e,i,o,s,h),f=pn(zn,Bn),h>=0&&f<v?(c=h,v=f):(En[0]=Vn(t,n,r,a,d),En[1]=Vn(e,i,o,s,d),p=pn(En,Bn),d<=1&&p<v?(c=d,v=p):g*=.5);return Rn(v)}(t,e,n,i,r,o,a,s,u,c);return d<=h/2}function Ur(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>i+u&&l>o+u||l<e-u&&l<i-u&&l<o-u||s>t+u&&s>n+u&&s>r+u||s<t-u&&s<n-u&&s<r-u)return!1;var c=function(t,e,n,i,r,o,a,s){var l,u=.005,c=1/0;Bn[0]=a,Bn[1]=s;for(var h=0;h<1;h+=.05)zn[0]=Xn(t,n,r,h),zn[1]=Xn(e,i,o,h),(g=pn(Bn,zn))<c&&(l=h,c=g);c=1/0;for(var d=0;d<32&&!(u<Pn);d++){var f=l-u,p=l+u;zn[0]=Xn(t,n,r,f),zn[1]=Xn(e,i,o,f);var g=pn(zn,Bn);if(f>=0&&g<c)l=f,c=g;else{En[0]=Xn(t,n,r,p),En[1]=Xn(e,i,o,p);var v=pn(En,Bn);p<=1&&v<c?(l=p,c=v):u*=.5}}return Rn(c)}(t,e,n,i,r,o,s,l);return c<=u/2}var jr=2*Math.PI;function Xr(t){return(t%=jr)<0&&(t+=jr),t}var qr=2*Math.PI;function Yr(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(i-r)%qr<1e-4)return!0;if(o){var h=i;i=Xr(r),r=Xr(h)}else i=Xr(i),r=Xr(r);i>r&&(r+=qr);var d=Math.atan2(l,s);return d<0&&(d+=qr),d>=i&&d<=r||d+qr>=i&&d+qr<=r}function Zr(t,e,n,i,r,o){if(o>e&&o>i||o<e&&o<i)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=i<e?1:-1;1!==a&&0!==a||(s=i<e?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}var $r=Hr.CMD,Kr=2*Math.PI,Qr=[-1,-1,-1],Jr=[-1,-1];function to(){var t=Jr[0];Jr[0]=Jr[1],Jr[1]=t}function eo(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u<e&&u<i&&u<o&&u<s)return 0;var c=Gn(e,i,o,s,u,Qr);if(0===c)return 0;for(var h=0,d=-1,f=void 0,p=void 0,g=0;g<c;g++){var v=Qr[g],m=0===v||1===v?.5:1;Vn(t,n,r,a,v)<l||(d<0&&(d=Wn(e,i,o,s,Jr),Jr[1]<Jr[0]&&d>1&&to(),f=Vn(e,i,o,s,Jr[0]),d>1&&(p=Vn(e,i,o,s,Jr[1]))),2===d?v<Jr[0]?h+=f<e?m:-m:v<Jr[1]?h+=p<f?m:-m:h+=s<p?m:-m:v<Jr[0]?h+=f<e?m:-m:h+=s<f?m:-m)}return h}function no(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||s<e&&s<i&&s<o)return 0;var l=function(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(Nn(o))Fn(a)&&(c=-s/a)>=0&&c<=1&&(r[l++]=c);else{var u=a*a-4*o*s;if(Nn(u))(c=-a/(2*o))>=0&&c<=1&&(r[l++]=c);else if(u>0){var c,h=Rn(u),d=(-a-h)/(2*o);(c=(-a+h)/(2*o))>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}(e,i,o,s,Qr);if(0===l)return 0;var u=Yn(e,i,o);if(u>=0&&u<=1){for(var c=0,h=Xn(e,i,o,u),d=0;d<l;d++){var f=0===Qr[d]||1===Qr[d]?.5:1;Xn(t,n,r,Qr[d])<a||(Qr[d]<u?c+=h<e?f:-f:c+=o<h?f:-f)}return c}return f=0===Qr[0]||1===Qr[0]?.5:1,Xn(t,n,r,Qr[0])<a?0:o<e?f:-f}function io(t,e,n,i,r,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Qr[0]=-l,Qr[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=Kr-1e-4){i=0,r=Kr;var c=o?1:-1;return a>=Qr[0]+t&&a<=Qr[1]+t?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=Kr,r+=Kr);for(var d=0,f=0;f<2;f++){var p=Qr[f];if(p+t>a){var g=Math.atan2(s,p);c=o?1:-1,g<0&&(g=Kr+g),(g>=i&&g<=r||g+Kr>=i&&g+Kr<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function ro(t,e,n,i,r){for(var o,a,s,l,u=t.data,c=t.len(),h=0,d=0,f=0,p=0,g=0,v=0;v<c;){var m=u[v++],y=1===v;switch(m===$r.M&&v>1&&(n||(h+=Zr(d,f,p,g,i,r))),y&&(p=d=u[v],g=f=u[v+1]),m){case $r.M:d=p=u[v++],f=g=u[v++];break;case $r.L:if(n){if(Gr(d,f,u[v],u[v+1],e,i,r))return!0}else h+=Zr(d,f,u[v],u[v+1],i,r)||0;d=u[v++],f=u[v++];break;case $r.C:if(n){if(Wr(d,f,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],e,i,r))return!0}else h+=eo(d,f,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],i,r)||0;d=u[v++],f=u[v++];break;case $r.Q:if(n){if(Ur(d,f,u[v++],u[v++],u[v],u[v+1],e,i,r))return!0}else h+=no(d,f,u[v++],u[v++],u[v],u[v+1],i,r)||0;d=u[v++],f=u[v++];break;case $r.A:var _=u[v++],x=u[v++],b=u[v++],w=u[v++],S=u[v++],C=u[v++];v+=1;var M=!!(1-u[v++]);o=Math.cos(S)*b+_,a=Math.sin(S)*w+x,y?(p=o,g=a):h+=Zr(d,f,o,a,i,r);var T=(i-_)*w/b+_;if(n){if(Yr(_,x,w,S,S+C,M,e,T,r))return!0}else h+=io(_,x,w,S,S+C,M,T,r);d=Math.cos(S+C)*b+_,f=Math.sin(S+C)*w+x;break;case $r.R:if(p=d=u[v++],g=f=u[v++],o=p+u[v++],a=g+u[v++],n){if(Gr(p,g,o,g,e,i,r)||Gr(o,g,o,a,e,i,r)||Gr(o,a,p,a,e,i,r)||Gr(p,a,p,g,e,i,r))return!0}else h+=Zr(o,g,o,a,i,r),h+=Zr(p,a,p,g,i,r);break;case $r.Z:if(n){if(Gr(d,f,p,g,e,i,r))return!0}else h+=Zr(d,f,p,g,i,r);d=p,f=g}}return n||(s=f,l=g,Math.abs(s-l)<1e-4)||(h+=Zr(d,f,p,g,i,r)||0),0!==h}var oo=U({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},er),ao={style:U({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},nr.style)},so=Mn.concat(["invisible","culling","z","z2","zlevel","parent"]),lo=function(t){function e(e){return t.call(this,e)||this}var n;return qt(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<so.length;++s)r[so[s]]=this[so[s]];r.__dirty|=1}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=Q(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?W(this.style,a):this.useStyle(a):"shape"===o?W(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(it(t)){var e=yi(t,0);return e>.5?Vi:e>.2?"#eee":Hi}if(t)return Hi}return Vi},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(it(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==yi(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Hr(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||4&this.__dirty)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return ro(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return ro(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:W(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(t){return Tt(oo,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=W({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=W({},i.shape),W(s,n.shape)):(s=W({},r?this.shape:i.shape),W(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=W({},this.shape);for(var u={},c=Q(s),h=0;h<c.length;h++){var d=c[h];"object"==typeof s[d]?this.shape[d]=s[d]:u[d]=s[d]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return ao},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var i=e.call(this,n)||this;return t.init&&t.init.call(i,n),i}return qt(n,e),n.prototype.getDefaultStyle=function(){return H(t.style)},n.prototype.getDefaultShape=function(){return H(t.shape)},n}(e);for(var i in t)"function"==typeof t[i]&&(n.prototype[i]=t[i]);return n},e.initDefaultProps=((n=e.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=7)),e}(lr);const uo=lo;var co=U({strokeFirst:!0,font:C,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},oo),ho=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qt(e,t),e.prototype.hasStroke=function(){return an(this.style)},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return Tt(co,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t,e,n;return this._rect||(this._rect=(e=rn((t=this.style).text),on(t,Oe(Ae(n=t.font),e),Fe(n),null))),this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(lr);ho.prototype.type="tspan";const fo=ho;var po=U({x:0,y:0},er),go={style:U({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},nr.style)},vo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qt(e,t),e.prototype.createStyle=function(t){return Tt(po,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return go},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new De(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(lr);vo.prototype.type="image";const mo=vo;var yo=Math.round;function _o(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(yo(2*i)===yo(2*r)&&(t.x1=t.x2=bo(i,s,!0)),yo(2*o)===yo(2*a)&&(t.y1=t.y2=bo(o,s,!0)),t):t}}function xo(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=bo(i,s,!0),t.y=bo(r,s,!0),t.width=Math.max(bo(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(bo(r+a,s,!1)-t.y,0===a?0:1),t):t}}function bo(t,e,n){if(!e)return t;var i=yo(2*t);return(i+yo(e))%2==0?i/2:(i+(n?1:-1))/2}var wo=function(){this.x=0,this.y=0,this.width=0,this.height=0},So={},Co=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultShape=function(){return new wo},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=xo(So,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>c&&(i*=c/(a=i+r),r*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(uo);Co.prototype.type="rect";const Mo=Co;var To={fill:"#000"},ko={},Io={style:U({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},nr.style)},Do=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=To,n.attr(e),n}return qt(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,Oo(t=this.style),Y(t.rich,Oo),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new De(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||To},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return W(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,e){for(var n=Q(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},W(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return Io},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||C,n=t.padding,i=this._defaultStyle,r=t.x||0,o=t.y||0,a=t.align||i.align||"left",s=t.verticalAlign||i.verticalAlign||"top";tn(ko,i.overflowRect,r,o,a,s),r=ko.baseX,o=ko.baseY;var l=function(t,e,n,i){var r=rn(t),o=e.overflow,a=e.padding,s=a?a[1]+a[3]:0,l=a?a[0]+a[2]:0,u=e.font,c="truncate"===o,h=Fe(u),d=ft(e.lineHeight,h),f="truncate"===e.lineOverflow,p=!1,g=e.width;null==g&&null!=n&&(g=n-s);var v,m=e.height;null==m&&null!=i&&(m=i-l);var y=(v=null==g||"break"!==o&&"breakAll"!==o?r?r.split("\n"):[]:r?Je(r,e.font,g,"breakAll"===o,0).lines:[]).length*d;if(null==m&&(m=y),y>m&&f){var _=Math.floor(m/d);p=p||v.length>_,y=(v=v.slice(0,_)).length*d}if(r&&c&&null!=g)for(var x=Ue(g,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},w=0;w<v.length;w++)je(b,v[w],x),v[w]=b.textLine,p=p||b.isTruncated;var S=m,C=0,M=Ae(u);for(w=0;w<v.length;w++)C=Math.max(Oe(M,v[w]),C);null==g&&(g=C);var T=g;return{lines:v,height:m,outerWidth:T+=s,outerHeight:S+=l,lineHeight:d,calculatedLineHeight:h,contentWidth:C,contentHeight:y,width:g,isTruncated:p}}(No(t),t,ko.outerWidth,ko.outerHeight),u=Fo(t),c=!!t.backgroundColor,h=l.outerHeight,d=l.outerWidth,f=l.lines,p=l.lineHeight;this.isTruncated=!!l.isTruncated;var g=r,v=Ne(o,l.contentHeight,s);if(u||n){var m=Ee(r,d,a),y=Ne(o,h,s);u&&this._renderBackground(t,t,m,y,d,h)}v+=p/2,n&&(g=Eo(r,a,n),"top"===s?v+=n[0]:"bottom"===s&&(v-=n[2]));for(var _=0,x=!1,b=!1,w=(zo("fill"in t?t.fill:(b=!0,i.fill))),S=(Bo("stroke"in t?t.stroke:c||i.autoStroke&&!b?null:(_=2,x=!0,i.stroke))),M=t.textShadowBlur>0,T=0;T<f.length;T++){var k=this._getOrCreateChild(fo),I=k.createStyle();k.useStyle(I),I.text=f[T],I.x=g,I.y=v,a&&(I.textAlign=a),I.textBaseline="middle",I.opacity=t.opacity,I.strokeFirst=!0,M&&(I.shadowBlur=t.textShadowBlur||0,I.shadowColor=t.textShadowColor||"transparent",I.shadowOffsetX=t.textShadowOffsetX||0,I.shadowOffsetY=t.textShadowOffsetY||0),I.stroke=S,I.fill=w,S&&(I.lineWidth=t.lineWidth||_,I.lineDash=t.lineDash,I.lineDashOffset=t.lineDashOffset||0),I.font=e,Lo(I,t),v+=p,k.setBoundingRect(on(I,l.contentWidth,l.calculatedLineHeight,x?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,e=this._defaultStyle,n=t.align||e.align,i=t.verticalAlign||e.verticalAlign,r=t.x||0,o=t.y||0;tn(ko,e.overflowRect,r,o,n,i),r=ko.baseX,o=ko.baseY;var a=function(t,e,n,i,r){var o=new Ze,a=rn(t);if(!a)return o;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,c=e.width;null==c&&null!=n&&(c=n-l);var h=e.height;null==h&&null!=i&&(h=i-u);for(var d,f=e.overflow,p="break"!==f&&"breakAll"!==f||null==c?null:{width:c,accumWidth:0,breakAll:"breakAll"===f},g=Ge.lastIndex=0;null!=(d=Ge.exec(a));){var v=d.index;v>g&&$e(o,a.substring(g,v),e,p),$e(o,d[2],e,p,d[1]),g=Ge.lastIndex}g<a.length&&$e(o,a.substring(g,a.length),e,p);var m=[],y=0,_=0,x="truncate"===f,b="truncate"===e.lineOverflow,w={};function S(t,e,n){t.width=e,t.lineHeight=n,y+=n,_=Math.max(_,e)}t:for(var C=0;C<o.lines.length;C++){for(var M=o.lines[C],T=0,k=0,I=0;I<M.tokens.length;I++){var D=(V=M.tokens[I]).styleName&&e.rich[V.styleName]||{},A=V.textPadding=D.padding,R=A?A[1]+A[3]:0,P=V.font=D.font||e.font;V.contentHeight=Fe(P);var L=ft(D.height,V.contentHeight);if(V.innerHeight=L,A&&(L+=A[0]+A[2]),V.height=L,V.lineHeight=pt(D.lineHeight,e.lineHeight,L),V.align=D&&D.align||r,V.verticalAlign=D&&D.verticalAlign||"middle",b&&null!=h&&y+V.lineHeight>h){var O=o.lines.length;I>0?(M.tokens=M.tokens.slice(0,I),S(M,k,T),o.lines=o.lines.slice(0,C+1)):o.lines=o.lines.slice(0,C),o.isTruncated=o.isTruncated||o.lines.length<O;break t}var B=D.width,z=null==B||"auto"===B;if("string"==typeof B&&"%"===B.charAt(B.length-1))V.percentWidth=B,m.push(V),V.contentWidth=Oe(Ae(P),V.text);else{if(z){var E=D.backgroundColor,N=E&&E.image;N&&ne(N=Jt(N))&&(V.width=Math.max(V.width,N.width*L/N.height))}var F=x&&null!=c?c-k:null;null!=F&&F<V.width?!z||F<R?(V.text="",V.width=V.contentWidth=0):(We(w,V.text,F-R,P,e.ellipsis,{minChar:e.truncateMinChar}),V.text=w.text,o.isTruncated=o.isTruncated||w.isTruncated,V.width=V.contentWidth=Oe(Ae(P),V.text)):V.contentWidth=Oe(Ae(P),V.text)}V.width+=R,k+=V.width,D&&(T=Math.max(T,V.lineHeight))}S(M,k,T)}for(o.outerWidth=o.width=ft(c,_),o.outerHeight=o.height=ft(h,y),o.contentHeight=y,o.contentWidth=_,o.outerWidth+=l,o.outerHeight+=u,C=0;C<m.length;C++){var V,H=(V=m[C]).percentWidth;V.width=parseInt(H,10)/100*o.width}return o}(No(t),t,ko.outerWidth,ko.outerHeight,n),s=a.width,l=a.outerWidth,u=a.outerHeight,c=t.padding;this.isTruncated=!!a.isTruncated;var h=Ee(r,l,n),d=Ne(o,u,i),f=h,p=d;c&&(f+=c[3],p+=c[0]);var g=f+s;Fo(t)&&this._renderBackground(t,t,h,d,l,u);for(var v=!!t.backgroundColor,m=0;m<a.lines.length;m++){for(var y=a.lines[m],_=y.tokens,x=_.length,b=y.lineHeight,w=y.width,S=0,C=f,M=g,T=x-1,k=void 0;S<x&&(!(k=_[S]).align||"left"===k.align);)this._placeToken(k,t,b,p,C,"left",v),w-=k.width,C+=k.width,S++;for(;T>=0&&"right"===(k=_[T]).align;)this._placeToken(k,t,b,p,M,"right",v),w-=k.width,M-=k.width,T--;for(C+=(s-(C-f)-(g-M)-w)/2;S<=T;)k=_[S],this._placeToken(k,t,b,p,C+k.width/2,"center",v),C+=k.width,S++;p+=b}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&Fo(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,h=t.textPadding;h&&(r=Eo(r,o,h),u-=t.height/2-h[0]-t.innerHeight/2);var d=this._getOrCreateChild(fo),f=d.createStyle();d.useStyle(f);var p=this._defaultStyle,g=!1,v=0,m=!1,y=zo("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,p.fill)),_=Bo("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||p.autoStroke&&!g?null:(v=2,m=!0,p.stroke)),x=s.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=r,f.y=u,x&&(f.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,f.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=t.font||C,f.opacity=pt(s.opacity,e.opacity,1),Lo(f,s),_&&(f.lineWidth=pt(s.lineWidth,e.lineWidth,v),f.lineDash=ft(s.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=_),y&&(f.fill=y),d.setBoundingRect(on(f,t.contentWidth,t.contentHeight,m?0:null))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u=t.backgroundColor,c=t.borderWidth,h=t.borderColor,d=u&&u.image,f=u&&!d,p=t.borderRadius,g=this;if(f||t.lineHeight||c&&h){(a=this._getOrCreateChild(Mo)).useStyle(a.createStyle()),a.style.fill=null;var v=a.shape;v.x=n,v.y=i,v.width=r,v.height=o,v.r=p,a.dirtyShape()}if(f)(l=a.style).fill=u||null,l.fillOpacity=ft(t.fillOpacity,1);else if(d){(s=this._getOrCreateChild(mo)).onload=function(){g.dirtyStyle()};var m=s.style;m.image=u.image,m.x=n,m.y=i,m.width=r,m.height=o}c&&h&&((l=a.style).lineWidth=c,l.stroke=h,l.strokeOpacity=ft(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var y=(a||s).style;y.shadowBlur=t.shadowBlur||0,y.shadowColor=t.shadowColor||"transparent",y.shadowOffsetX=t.shadowOffsetX||0,y.shadowOffsetY=t.shadowOffsetY||0,y.opacity=pt(t.opacity,e.opacity,1)},e.makeFont=function(t){var e,n="";return function(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}(t)&&(n=[t.fontStyle,t.fontWeight,(e=t.fontSize,"string"!=typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?"12px":e+"px":e),t.fontFamily||"sans-serif"].join(" ")),n&&yt(n)||t.textFont||t.font},e}(lr),Ao={left:!0,right:1,center:1},Ro={top:1,bottom:1,middle:1},Po=["fontStyle","fontWeight","fontSize","fontFamily"];function Lo(t,e){for(var n=0;n<Po.length;n++){var i=Po[n],r=e[i];null!=r&&(t[i]=r)}}function Oo(t){if(t){t.font=Do.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||Ao[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||Ro[n]?n:"top",t.padding&&(t.padding=vt(t.padding))}}function Bo(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function zo(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Eo(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function No(t){var e=t.text;return null!=e&&(e+=""),e}function Fo(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const Vo=Do;var Ho=Math.min,Go=Math.max,Wo=Math.abs;function Uo(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}var jo=function(t,e,n){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return Xo(t,e,n)};function Xo(t,e,n){return it(t)?(i=t,i.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e+(n||0):parseFloat(t):null==t?NaN:+t;var i}function qo(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function Yo(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return function(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}(t)}function Zo(t,e){var n=Math.max(Yo(t),Yo(e)),i=t+e;return n>20?i:qo(i,n)}function $o(t){var e=2*Math.PI;return(t%e+e)%e}function Ko(t){return t>-1e-4&&t<1e-4}var Qo=/^(?:(\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 Jo(t){if(t instanceof Date)return t;if(it(t)){var e=Qo.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function ta(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function ea(t,e){var n=ta(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function na(t){var e=parseFloat(t);return e==t&&(0!==e||!it(t)||t.indexOf("x")<=0)?e:NaN}function ia(){return Math.round(9*Math.random())}function ra(t,e){return 0===e?t:ra(e,t%e)}function oa(t,e){return null==t?e:null==e?t:t*e/ra(t,e)}function aa(t,e,n){return(e-t)*n+t}var sa="series\0";function la(t){return t instanceof Array?t:null==t?[]:[t]}function ua(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var ca=["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 ha(t){return!at(t)||et(t)||t instanceof Date?t:t.value}function da(t){return at(t)&&!(t instanceof Array)}function fa(t,e,n){var i=ga(e[t],null),r=ga(n[t],null);return null!=i&&null!=r&&i===r}function pa(t){return ga(t,"")}function ga(t,e){return null==t?e:it(t)?t:ot(t)||rt(t)?t+"":e}function va(t){var e=t.name;return!(!e||!e.indexOf(sa))}function ma(t){return t&&null!=t.id&&0===pa(t.id).indexOf("\0_ec_\0")}function ya(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?et(e.dataIndex)?Z(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?et(e.name)?Z(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function _a(){var t="__ec_inner_"+xa++;return function(e){return e[t]||(e[t]={})}}var xa=ia();function ba(t,e,n){var i=wa(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=n?n.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each(function(e,i){var r=Ca(t,i,e,{useDefault:s===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[i+"Models"]=r.models,a[i+"Model"]=r.models[0]}),a}function wa(t,e){var n;if(it(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var r=Mt(),o={},a=!1;return Y(n,function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();!s||!l||e&&e.includeMainTypes&&j(e.includeMainTypes,s)<0||(a=a||!!s,(r.get(s)||r.set(s,{}))[l]=t)}else o[n]=t}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var Sa={useDefault:!0,enableAll:!1,enableNone:!1};function Ca(t,e,n,i){i=i||Sa;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}if("none"===r||!1===r){if(i.enableNone)return s.models=[],s;r=-1}return"all"===r&&(r=i.enableAll?o=a=null:-1),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s}function Ma(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}!function(){function t(){}t.prototype.reset=function(t,e,n,i){return this._list=t,this._step=i=i||1,this._idx=e,this._end=null!=n?n:i>0?t.length:0,this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0)}}();var Ta=_a(),ka=1,Ia={},Da=_a(),Aa=_a(),Ra=["emphasis","blur","select"],Pa=["normal","emphasis","blur","select"],La="highlight",Oa="downplay",Ba="select",za="unselect",Ea="toggleSelect",Na="selectchanged";function Fa(t){return null!=t&&"none"!==t}function Va(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Ha(t){Va(t,"emphasis",2)}function Ga(t){2===t.hoverState&&Va(t,"normal",0)}function Wa(t){Va(t,"blur",1)}function Ua(t){1===t.hoverState&&Va(t,"normal",0)}function ja(t){t.selected=!0}function Xa(t){t.selected=!1}function qa(t,e,n){e(t,n)}function Ya(t,e,n){qa(t,e,n),t.isGroup&&t.traverse(function(t){qa(t,e,n)})}function Za(t,e){switch(e){case"emphasis":t.hoverState=2;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=1;break;case"select":t.selected=!0}}function $a(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,i){var r=n&&j(n,"select")>=0,o=!1;if(t instanceof uo){var a=Da(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(Fa(s)||Fa(l)){var u=(i=i||{}).style||{};"inherit"===u.fill?(o=!0,i=W({},i),(u=W({},u)).fill=s):!Fa(u.fill)&&Fa(s)?(o=!0,i=W({},i),(u=W({},u)).fill=xi(s)):!Fa(u.stroke)&&Fa(l)&&(o||(i=W({},i),u=W({},u)),u.stroke=xi(l)),i.style=u}}if(i&&null==i.z2){o||(i=W({},i));var c=t.z2EmphasisLift;i.z2=t.z2+(null!=c?c:10)}return i}(this,0,e,n);if("blur"===t)return function(t,e,n){var i=j(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=W({},n),a=W({opacity:i?r:.1*o.opacity},a),n.style=a),n}(this,t,n);if("select"===t)return function(t,e,n){if(n&&null==n.z2){n=W({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:9)}return n}(this,0,n)}return n}function Ka(t){t.stateProxy=$a;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=$a),n&&(n.stateProxy=$a)}function Qa(t,e){!os(t,e)&&!t.__highByOuter&&Ya(t,Ha)}function Ja(t,e){!os(t,e)&&!t.__highByOuter&&Ya(t,Ga)}function ts(t,e){t.__highByOuter|=1<<(e||0),Ya(t,Ha)}function es(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Ya(t,Ga)}function ns(t){Ya(t,Ua)}function is(t){Ya(t,ja)}function rs(t){Ya(t,Xa)}function os(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function as(t){var e=t.getModel(),n=[],i=[];e.eachComponent(function(e,r){var o=Aa(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse(function(t){Ua(t)}),a&&n.push(r)),o.isBlured=!1}),Y(i,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function ss(t,e,n,i){var r=i.getModel();function o(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&ns(i)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=r.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries(function(t){var r=a===t,u=t.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!r||"coordinateSystem"===n&&!(u&&s?u===s:r)||"series"===e&&r)){if(i.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&r&&"self"===e||Wa(t)}),q(e))o(t.getData(),e);else if(at(e))for(var c=Q(e),h=0;h<c.length;h++)o(t.getData(c[h]),e[c[h]]);l.push(t),Aa(t).isBlured=!0}}),r.eachComponent(function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,r)}})}}function ls(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){Aa(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse(function(t){Wa(t)})}}}function us(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;var o=i.getModel().getComponent(t,e);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===Ta(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function cs(t){Y(t.getAllData(),function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(e,n){t.isSelected(n,i)?is(e):rs(e)})})}function hs(t){var e=[];return t.eachSeries(function(t){Y(t.getAllData(),function(n){n.data;var i=n.type,r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}})}),e}function ds(t,e,n,i){i?function(t){vs(t,!1)}(t):function(t,e,n){vs(t,!0),Ya(t,Ka),function(t,e,n){var i=Ta(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}(t,e,n)}(t,e,n)}var fs=["emphasis","blur","select"],ps={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function gs(t,e,n,i){n=n||"itemStyle";for(var r=0;r<fs.length;r++){var o=fs[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[ps[n]]()}}function vs(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function ms(t){return!(!t||!t.__highDownDispatcher)}function ys(t){var e=t.type;return e===Ba||e===za||e===Ea}function _s(t){var e=t.type;return e===La||e===Oa}var xs={};function bs(t,e,n){var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=nt(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:i},u=0;u<Ra.length;u++){var c=Ra[u],h=e[c];l[c]=ft(r?r.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,i)}return l}function ws(t,e,n,i){n=n||xs;for(var r=t instanceof Vo,o=!1,a=0;a<Pa.length;a++)if((d=e[Pa[a]])&&d.getShallow("show")){o=!0;break}var s=r?t:t.getTextContent();if(o){r||(s||(s=new Vo,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=bs(n,e),u=e.normal,c=!!u.getShallow("show"),h=Cs(u,i&&i.normal,n,!1,!r);for(h.text=l.normal,r||t.setTextConfig(Ms(u,n,!1)),a=0;a<Ra.length;a++){var d,f=Ra[a];if(d=e[f]){var p=s.ensureState(f),g=!!ft(d.getShallow("show"),c);g!==c&&(p.ignore=!g),p.style=Cs(d,i&&i[f],n,!0,!r),p.style.text=l[f],r||(t.ensureState(f).textConfig=Ms(d,n,!0))}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(h.x=s.style.x),null!=s.style.y&&(h.y=s.style.y),s.ignore=!c,s.useStyle(h),s.dirty(),n.enableTextSetter&&(As(s).setLabelText=function(t){var i=bs(n,e,t);!function(t,e){for(var n=0;n<Ra.length;n++){var i=Ra[n],r=e[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}(s,i)})}else s&&(s.ignore=!0);t.dirty()}function Ss(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<Ra.length;i++){var r=Ra[i];n[r]=t.getModel([r,e])}return n}function Cs(t,e,n,i,r){var o={};return function(t,e,n,i,r){n=n||xs;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||xs).rich;if(n){e=e||{};for(var i=Q(n),r=0;r<i.length;r++)e[i[r]]=1}t=t.parentModel}return e}(e);if(l){o={};var u="richInheritPlainLabel",c=ft(e.get(u),a?a.get(u):void 0);for(var h in l)if(l.hasOwnProperty(h)){var d=e.getModel(["rich",h]);Ds(o[h]={},d,s,e,c,n,i,r,!1,!0)}}o&&(t.rich=o);var f=e.get("overflow");f&&(t.overflow=f);var p=e.get("lineOverflow");p&&(t.lineOverflow=p);var g=t,v=e.get("minMargin");if(null!=v)v=ot(v)?v/2:0,g.margin=[v,v,v,v],g.__marginType=Rs.minMargin;else{var m=e.get("textMargin");null!=m&&(g.margin=vt(m),g.__marginType=Rs.textMargin)}Ds(t,e,s,null,null,n,i,r,!0,!1)}(o,t,n,i,r),e&&W(o,e),o}function Ms(t,e,n){e=e||{};var i,r={},o=t.getShallow("rotate"),a=ft(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return"outside"===(i=t.getShallow("position")||(n?null:"inside"))&&(i=e.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",null!=e.autoOverflowArea&&(r.autoOverflowArea=e.autoOverflowArea),null!=e.layoutRect&&(r.layoutRect=e.layoutRect),r}var Ts=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],ks=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Is=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Ds(t,e,n,i,r,o,a,s,l,u){n=!a&&n||xs;var c=o&&o.inheritColor,h=e.getShallow("color"),d=e.getShallow("textBorderColor"),f=ft(e.getShallow("opacity"),n.opacity);"inherit"!==h&&"auto"!==h||(h=c||null),"inherit"!==d&&"auto"!==d||(d=c||null),s||(h=h||n.color,d=d||n.textBorderColor),null!=h&&(t.fill=h),null!=d&&(t.stroke=d);var p=ft(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(t.lineWidth=p);var g=ft(e.getShallow("textBorderType"),n.textBorderType);null!=g&&(t.lineDash=g);var v=ft(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=v&&(t.lineDashOffset=v),a||null!=f||u||(f=o&&o.defaultOpacity),null!=f&&(t.opacity=f),a||s||null==t.fill&&o.inheritColor&&(t.fill=o.inheritColor);for(var m=0;m<Ts.length;m++){var y=Ts[m];null!=(x=!1!==r&&i?pt(e.getShallow(y),i.getShallow(y),n[y]):ft(e.getShallow(y),n[y]))&&(t[y]=x)}for(m=0;m<ks.length;m++)y=ks[m],null!=(x=e.getShallow(y))&&(t[y]=x);if(null==t.verticalAlign){var _=e.getShallow("baseline");null!=_&&(t.verticalAlign=_)}if(!l||!o.disableBox){for(m=0;m<Is.length;m++){var x;y=Is[m],null!=(x=e.getShallow(y))&&(t[y]=x)}var b=e.getShallow("borderType");null!=b&&(t.borderDash=b),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!c||(t.backgroundColor=c),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!c||(t.borderColor=c)}}var As=_a(),Rs={minMargin:1,textMargin:2},Ps=["textStyle","color"],Ls=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Os=new Vo;const Bs=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Ps):null)},t.prototype.getFont=function(){return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},n=(e=this.ecModel)&&e.getModel("textStyle"),yt([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "));var t,e,n},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Ls.length;n++)e[Ls[n]]=this.getShallow(Ls[n]);return Os.useStyle(e),Os.update(),Os.getBoundingRect()},t}();var zs,Es,Ns=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Fs=Wt(Ns),Vs=function(){function t(){}return t.prototype.getLineStyle=function(t){return Fs(this,t)},t}(),Hs=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Gs=Wt(Hs),Ws=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return Gs(this,t,e)},t}(),Us=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},t.prototype.mergeOption=function(t,e){G(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null;return new t(i?this._doGet(r):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(H(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!Lt.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();Et(Us),zs=Us,Es=["__\0is_clz",Ft++].join("_"),zs.prototype[Es]=!0,zs.isInstance=function(t){return!(!t||!t[Es])},X(Us,Vs),X(Us,Ws),X(Us,jt),X(Us,Bs);const js=Us;function Xs(t){return null==t?0:t.length||1}function qs(t){return t}var Ys=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||qs,this._newKeyGetter=i||qs,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=i[o],s=n[a],l=Xs(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],c=Xs(l),h=Xs(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),i[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=Xs(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[i](t[o],o);if(r||(n[o]=a),e){var s=e[a],l=Xs(s);0===l?(e[a]=o,r&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}();const Zs=Ys;var $s=Mt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ks="original",Qs="arrayRows",Js="objectRows",tl="keyedColumns",el="typedArray",nl="unknown",il="column",rl="row",ol=_a();function al(t,e,n){var i={},r=sl(e);if(!r||!t)return i;var o,a,s=[],l=[],u=e.ecModel,c=ol(u).datasetMap,h=r.uid+"_"+n.seriesLayoutBy;Y(t=t.slice(),function(e,n){var r=at(e)?e:t[n]={name:e};"ordinal"===r.type&&null==o&&(o=n,a=p(r)),i[r.name]=[]});var d=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function f(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function p(t){var e=t.dimsDef;return e?e.length:1}return Y(t,function(t,e){var n=t.name,r=p(t);if(null==o){var a=d.valueWayDim;f(i[n],a,r),f(l,a,r),d.valueWayDim+=r}else o===e?(f(i[n],0,r),f(s,0,r)):(a=d.categoryWayDim,f(i[n],a,r),f(l,a,r),d.categoryWayDim+=r)}),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function sl(t){if(!t.get("data",!0))return Ca(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Sa).models[0]}function ll(t,e){return function(t,e,n,i,r,o){var a,s,l;if(lt(t))return 3;if(i){var u=i[o];at(u)?(s=u.name,l=u.type):it(u)&&(s=u)}if(null!=l)return"ordinal"===l?1:3;if(e===Qs){var c=t;if(n===rl){for(var h=c[o],d=0;d<(h||[]).length&&d<5;d++)if(null!=(a=y(h[r+d])))return a}else for(d=0;d<c.length&&d<5;d++){var f=c[r+d];if(f&&null!=(a=y(f[o])))return a}}else if(e===Js){var p=t;if(!s)return 3;for(d=0;d<p.length&&d<5;d++)if((v=p[d])&&null!=(a=y(v[s])))return a}else if(e===tl){if(!s)return 3;if(!(h=t[s])||lt(h))return 3;for(d=0;d<h.length&&d<5;d++)if(null!=(a=y(h[d])))return a}else if(e===Ks){var g=t;for(d=0;d<g.length&&d<5;d++){var v,m=ha(v=g[d]);if(!et(m))return 3;if(null!=(a=y(m[o])))return a}}function y(t){var e=it(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?2:3:e&&"-"!==t?1:void 0}return 3}(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}var ul=function(t){this.data=t.data||(t.sourceFormat===tl?{}:[]),this.sourceFormat=t.sourceFormat||nl,this.seriesLayoutBy=t.seriesLayoutBy||il,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&1===ll(this,n)&&(i.type="ordinal")}};function cl(t){return t instanceof ul}function hl(t,e,n){n=n||fl(t);var i=e.seriesLayoutBy,r=function(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:pl(r),startIndex:a,dimensionsDetectedCount:o};if(e===Qs){var s=t;"auto"===i||null==i?gl(function(t){null!=t&&"-"!==t&&(it(t)?null==a&&(a=1):a=0)},n,s,10):a=ot(i)?i:i?1:0,r||1!==a||(r=[],gl(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===rl?s.length:s[0]?s[0].length:null}else if(e===Js)r||(r=function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e)return Q(e)}(t));else if(e===tl)r||(r=[],Y(t,function(t,e){r.push(e)}));else if(e===Ks){var l=ha(t[0]);o=et(l)&&l.length||1}return{startIndex:a,dimensionsDefine:pl(r),dimensionsDetectedCount:o}}(t,n,i,e.sourceHeader,e.dimensions);return new ul({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:H(e)})}function dl(t){return new ul({data:t,sourceFormat:lt(t)?el:Ks})}function fl(t){var e=nl;if(lt(t))e=el;else if(et(t)){0===t.length&&(e=Qs);for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(et(r)||lt(r)){e=Qs;break}if(at(r)){e=Js;break}}}}else if(at(t))for(var o in t)if(It(t,o)&&q(t[o])){e=tl;break}return e}function pl(t){if(t){var e=Mt();return Z(t,function(t,n){var i={name:(t=at(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var r=e.get(i.name);return r?i.name+="-"+r.count++:e.set(i.name,{count:1}),i})}}function gl(t,e,n,i){if(e===rl)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else{var o=n[0]||[];for(r=0;r<o.length&&r<i;r++)t(o[r],r)}}function vl(t){var e=t.sourceFormat;return e===Js||e===tl}var ml,yl,_l,xl,bl,wl,Sl={},Cl="undefined"!=typeof console&&console.warn&&console.log;function Ml(t,e){!function(t,e,n){if(Cl){if(n){if(Sl[e])return;Sl[e]=!0}console[t]("[ECharts] "+e)}}("error",t,e)}function Tl(t){throw new Error(t)}var kl=function(){function t(t,e){var n=cl(t)?t:dl(t);this._source=n;var i=this._data=n.data,r=n.sourceFormat;n.seriesLayoutBy,r===el&&(this._offset=0,this._dimSize=e,this._data=i),wl(this,i,n)}var e;return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=((e=t.prototype).pure=!1,void(e.persistent=!0)),t.internalField=function(){var t;wl=function(t,r,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine;if(W(t,bl[Nl(a,s)]),a===el)t.getItem=e,t.count=i,t.fillStorage=n;else{var c=Rl(a,s);t.getItem=J(c,null,r,l,u);var h=Ol(a,s);t.count=J(h,null,r,l,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},n=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],d=0;d<c;d++){var f=r[d*o+a];h[t+d]=f,f<l&&(l=f),f>u&&(u=f)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[Qs+"_"+il]={pure:!0,appendData:r},t[Qs+"_"+rl]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Js]={pure:!0,appendData:r},t[tl]={pure:!0,appendData:function(t){var e=this._data;Y(t,function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])})}},t[Ks]={appendData:r},t[el]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},bl=t}(),t}(),Il=function(t){et(t)||Ml("series.data or dataset.source must be an array.")},Dl=((ml={})[Qs+"_"+il]=Il,ml[Qs+"_"+rl]=Il,ml[Js]=Il,ml[tl]=function(t,e){for(var n=0;n<e.length;n++)null==e[n].name&&Ml("dimension name must not be null/undefined.")},ml[Ks]=Il,function(t,e,n,i){return t[i]}),Al=((yl={})[Qs+"_"+il]=function(t,e,n,i){return t[i+e]},yl[Qs+"_"+rl]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},yl[Js]=Dl,yl[tl]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=n[a].name,l=null!=s?t[s]:null;o[a]=l?l[i]:null}return o},yl[Ks]=Dl,yl);function Rl(t,e){return Al[Nl(t,e)]}var Pl=function(t,e,n){return t.length},Ll=((_l={})[Qs+"_"+il]=function(t,e,n){return Math.max(0,t.length-e)},_l[Qs+"_"+rl]=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},_l[Js]=Pl,_l[tl]=function(t,e,n){var i=n[0].name,r=null!=i?t[i]:null;return r?r.length:0},_l[Ks]=Pl,_l);function Ol(t,e){return Ll[Nl(t,e)]}var Bl=function(t,e,n){return t[e]},zl=((xl={})[Qs]=Bl,xl[Js]=function(t,e,n){return t[n]},xl[tl]=Bl,xl[Ks]=function(t,e,n){var i=ha(t);return i instanceof Array?i[e]:i},xl[el]=Bl,xl);function El(t){return zl[t]}function Nl(t,e){return t===Qs?t+"_"+e:t}function Fl(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return El(o)(i,a,s)}var l=i;return o===Ks&&(l=ha(i)),l}}}var Vl=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function Hl(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}const Gl=function(t){this.otherDims={},null!=t&&W(this,t)};function Wl(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||ot(t)||null==t||"-"===t||(t=+Jo(t)),null==t||""===t?NaN:Number(t))}Mt({number:function(t){return parseFloat(t)},time:function(t){return+Jo(t)},trim:function(t){return it(t)?yt(t):t}});var Ul,jl=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=ot(t)?t:na(t),i=ot(e)?e:na(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=it(t),s=it(e);a&&(n=s?t:0),s&&(i=a?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t}(),Xl="undefined",ql=typeof Uint32Array===Xl?Array:Uint32Array,Yl=typeof Uint16Array===Xl?Array:Uint16Array,Zl=typeof Int32Array===Xl?Array:Int32Array,$l=typeof Float64Array===Xl?Array:Float64Array,Kl={float:$l,int:Zl,ordinal:Array,number:Array,time:$l};function Ql(t){return t>65535?ql:Yl}function Jl(){return[1/0,-1/0]}function tu(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function eu(t,e,n,i,r){var o=Kl[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(i)}var nu=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Mt()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=Ul[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[],vl(i),this._dimensions=Z(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new Kl[e||"float"](this._rawCount),this._rawExtent[r]=[1/0,-1/0],r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=[1/0,-1/0]);for(var s=r[t],l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;l++)eu(n,l,(f=i[l]).type,s,!0);for(var u=[],c=a;c<s;c++)for(var h=c-a,d=0;d<r;d++){var f=i[d],p=Ul.arrayRows.call(this,t[h]||u,f.property,h,d);n[d][c]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=Z(o,function(t){return t.property}),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=Jl()),eu(r,u,c.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var h=[],d=t;d<e;d++){h=i.getItem(d,h);for(var f=0;f<a;f++){var p=r[f],g=this._dimValueGetter(h,l[f],d,f);p[d]=g;var v=s[f];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;r=0;for(var o=i.length;r<o;r++)n.push(this.get(i[r],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var r=this.get(t,n);isNaN(r)||(e+=r)}return e},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)});var n=e.sort(function(t,e){return t-e}),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r<i;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else for(t=new(n=Ql(this._rawCount))(this.count()),r=0;r<t.length;r++)t[r]=r;return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(Ql(n._rawCount))(i),o=[],a=t.length,s=0,l=t[0],u=n._chunks,c=0;c<i;c++){var h=void 0,d=n.getRawIndex(c);if(0===a)h=e(c);else if(1===a)h=e(u[l][d],c);else{for(var f=0;f<a;f++)o[f]=u[t[f]][d];o[f]=c,h=e.apply(null,o)}h&&(r[s++]=d)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=Q(t),r=i.length;if(!r)return this;var o=e.count(),a=new(Ql(e._rawCount))(o),s=0,l=i[0],u=t[l][0],c=t[l][1],h=e._chunks,d=!1;if(!e._indices){var f=0;if(1===r){for(var p=h[i[0]],g=0;g<n;g++)((_=p[g])>=u&&_<=c||isNaN(_))&&(a[s++]=f),f++;d=!0}else if(2===r){p=h[i[0]];var v=h[i[1]],m=t[i[1]][0],y=t[i[1]][1];for(g=0;g<n;g++){var _=p[g],x=v[g];(_>=u&&_<=c||isNaN(_))&&(x>=m&&x<=y||isNaN(x))&&(a[s++]=f),f++}d=!0}}if(!d)if(1===r)for(g=0;g<o;g++){var b=e.getRawIndex(g);((_=h[i[0]][b])>=u&&_<=c||isNaN(_))&&(a[s++]=b)}else for(g=0;g<o;g++){for(var w=!0,S=(b=e.getRawIndex(g),0);S<r;S++){var C=i[S];((_=h[C][b])<t[C][0]||_>t[C][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=Jl();for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),d=0;d<o;d++)s[d]=i[e[d]][h];s[o]=c;var f=n&&n.apply(null,s);if(null!=f)for("object"!=typeof f&&(r[0]=f,f=r),u=0;u<f.length;u++){var p=e[u],g=f[u],v=l[p],m=i[p];m&&(m[h]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),c=this.getRawIndex(0),h=new(Ql(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));h[l++]=c;for(var d=1;d<s-1;d+=u){for(var f=Math.min(d+u,s-1),p=Math.min(d+2*u,s),g=(p+f)/2,v=0,m=f;m<p;m++){var y=a[M=this.getRawIndex(m)];isNaN(y)||(v+=y)}v/=p-f;var _=d,x=Math.min(d+u,s),b=d-1,w=a[c];n=-1,r=_;var S=-1,C=0;for(m=_;m<x;m++){var M;y=a[M=this.getRawIndex(m)],isNaN(y)?(C++,S<0&&(S=M)):(i=Math.abs((b-g)*(y-w)-(b-m)*(v-w)))>n&&(n=i,r=M)}C>0&&C<x-_&&(h[l++]=Math.min(S,r),r=Math.max(S,r)),h[l++]=r,c=r}return h[l++]=this.getRawIndex(s-1),o._count=l,o._indices=h,o.getRawIndex=this._getRawIdx,o},t.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),i=n._chunks,r=Math.floor(1/e),o=i[t],a=this.count(),s=new(Ql(this._rawCount))(2*Math.ceil(a/r)),l=0,u=0;u<a;u+=r){var c=u,h=o[this.getRawIndex(c)],d=u,f=o[this.getRawIndex(d)],p=r;u+r>a&&(p=a-u);for(var g=0;g<p;g++){var v=o[this.getRawIndex(u+g)];v<h&&(h=v,c=u+g),v>f&&(f=v,d=u+g)}var m=this.getRawIndex(c),y=this.getRawIndex(d);c<d?(s[l++]=m,s[l++]=y):(s[l++]=y,s[l++]=m)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=r._rawExtent[t]=[1/0,-1/0],h=new(Ql(this._rawCount))(Math.ceil(u/s)),d=0,f=0;f<u;f+=s){s>u-f&&(s=u-f,a.length=s);for(var p=0;p<s;p++){var g=this.getRawIndex(f+p);a[p]=l[g]}var v=n(a),m=this.getRawIndex(Math.min(f+i(a,v)||0,u-1));l[m]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),h[d++]=m}return r._count=d,r._indices=h,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var i,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();for(var o=(i=n)[0],a=i[1],s=0;s<r;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return i=[o,a],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},t.prototype.clone=function(e,n){var i=new t,r=this._chunks,o=e&&$(e,function(t,e){return t[e]=!0,t},{});if(o)for(var a=0;a<r.length;a++)i._chunks[a]=o[a]?tu(r[a]):r[a];else i._chunks=r;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=H(this._extent),t._rawExtent=H(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return Wl(t[i],this._dimensions[i])}Ul={arrayRows:t,objectRows:function(t,e,n,i){return Wl(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return Wl(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}();const iu=nu;var ru=_a(),ou={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},au=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=uu(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return ft(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=vl(this.source),n=!cu(t),i="",r=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=e?h.name:null,l=h.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=ou[l]||"f",u&&(i+=u.uid),i+="$"}var d=this.source;return{dimensions:r,hash:[d.seriesLayoutBy,d.startIndex,i].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function su(t){return t instanceof au}function lu(t){for(var e=Mt(),n=0;n<(t||[]).length;n++){var i=t[n],r=at(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function uu(t){var e=ru(t);return e.dimNameMap||(e.dimNameMap=lu(t.dimensionsDefine))}function cu(t){return t>30}var hu,du,fu,pu,gu,vu,mu,yu=at,_u=Z,xu="undefined"==typeof Int32Array?Array:Int32Array,bu=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],wu=["_approximateExtent"],Su=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i=!1;su(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=it(c)?new Gl({name:c}):c instanceof Gl?c:new Gl(c),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var f=h.otherDims=h.otherDims||{};o.push(d),r[d]=h,null!=l[d]&&(s=!0),h.createInvertedIndices&&(a[d]=[]);var p=u;ot(h.storeDimIndex)&&(p=h.storeDimIndex),0===f.itemName&&(this._nameDimIdx=p),0===f.itemId&&(this._idDimIdx=p),i&&(h.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var g=this._dimIdxToName=Mt();Y(o,function(t){g.set(r[t].storeDimIndex,t)})}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var i=this._schema.getSourceDimension(e);return i?i.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(ot(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var i,r=this;if(t instanceof iu&&(i=t),!i){var o=this.dimensions,a=cl(t)||q(t)?new kl(t,o.length):t;i=new iu;var s=_u(o,function(t){return{type:r._dimInfos[t].type,property:t}});i.initData(a,s,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=function(t,e){var n={},i=n.encode={},r=Mt(),o=[],a=[],s={};Y(t.dimensions,function(e){var n,l=t.getDimensionInfo(e),u=l.coordDim;if(u){var c=l.coordDimIndex;Hl(i,u)[c]=e,l.isExtraCoord||(r.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=e),Hl(s,u)[c]=t.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(e)}$s.each(function(t,e){var n=Hl(i,e),r=l.otherDims[e];null!=r&&!1!==r&&(n[r]=l.name)})});var l=[],u={};r.each(function(t,e){var n=i[e];u[e]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Z(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=i.label;c&&c.length&&(o=c.slice());var h=i.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new Vl(s,e),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=e[s],o&&mu(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==el&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if(n.getSource().sourceFormat===Ks&&!n.pure)for(var o=[],a=t;a<e;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&da(s)&&(this.hasItemOption=!0),s){var l=s.name;null==i[a]&&null!=l&&(i[a]=ga(l,null));var u=s.id;null==r[a]&&null!=u&&(r[a]=ga(u,null))}}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)mu(this,a);hu(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){yu(t)?W(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=fu(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return du(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return et(t)?i.getValues(_u(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n&&n[e];return null==i||isNaN(i)?-1:i},t.prototype.each=function(t,e,n){nt(t)&&(n=e,e=t,t=[]);var i=n||this,r=_u(pu(t),this._getStoreDimIndex,this);this._store.each(r,i?J(e,i):e)},t.prototype.filterSelf=function(t,e,n){nt(t)&&(n=e,e=t,t=[]);var i=n||this,r=_u(pu(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?J(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=Q(t),r=[];return Y(i,function(i){var o=e._getStoreDimIndex(i);n[o]=t[i],r.push(o)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){nt(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=_u(pu(t),this._getStoreDimIndex,this),a=vu(this);return a._store=this._store.map(o,r?J(e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=n||i||this,o=_u(pu(t),this._getStoreDimIndex,this);this._store.modify(o,r?J(e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=vu(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.minmaxDownSample=function(t,e){var n=vu(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},t.prototype.lttbDownSample=function(t,e){var n=vu(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new js(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new Zs(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return du(t,e)},function(t){return du(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},yu(t)?W(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(et(r=this.getVisual(e))?r=r.slice():yu(r)&&(r=W({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,yu(e)?W(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){yu(t)?W(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?W(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){!function(t,e,n,i){if(i){var r=Ta(i);r.dataIndex=n,r.dataType=e,r.seriesIndex=t,r.ssrType="chart","group"===i.type&&i.traverse(function(i){var r=Ta(i);r.seriesIndex=t,r.dataIndex=n,r.dataType=e,r.ssrType="chart"})}}(this.hostModel&&this.hostModel.seriesIndex,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){Y(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:_u(this.dimensions,this._getDimInfo,this),this.hostModel)),gu(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];nt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(gt(arguments)))})},t.internalField=(hu=function(t){var e=t._invertedIndicesMap;Y(e,function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new xu(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}})},fu=function(t,e,n){return ga(t._getCategory(e,n),null)},du=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=fu(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},pu=function(t){return et(t)||(t=null!=t?[t]:[]),t},vu=function(e){var n=new t(e._schema?e._schema:_u(e.dimensions,e._getDimInfo,e),e.hostModel);return gu(n,e),n},gu=function(t,e){Y(bu.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,Y(wu,function(n){t[n]=H(e[n])}),t._calculationInfo=W({},e._calculationInfo)},void(mu=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=r&&(n[e]=a=fu(t,r,e)),null==s&&null!=o&&(i[e]=s=fu(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[e]=s}})),t}();const Cu=Su;function Mu(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}var Tu={},ku={},Iu=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(t,e){function n(n,i){var r=[];return Y(n,function(n,i){var o=n.create(t,e);r=r.concat(o||[])}),r}this._nonSeriesBoxMasterList=n(Tu),this._normalMasterList=n(ku)},t.prototype.update=function(t,e){Y(this._normalMasterList,function(n){n.update&&n.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(t,e){"matrix"!==t&&"calendar"!==t?ku[t]=e:Tu[t]=e},t.get=function(t){return ku[t]||Tu[t]},t}(),Du=Mt();const Au=Iu;var Ru=function(t){this.coordSysDims=[],this.axisMap=Mt(),this.categoryAxisMap=Mt(),this.coordSysName=t},Pu={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",Sa).models[0],o=t.getReferringComponents("yAxis",Sa).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),Lu(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),Lu(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",Sa).models[0];e.coordSysDims=["single"],n.set("single",r),Lu(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",Sa).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Lu(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),Lu(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();Y(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),Lu(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})},matrix:function(t,e,n,i){var r=t.getReferringComponents("matrix",Sa).models[0];e.coordSysDims=["x","y"];var o=r.getDimensionModel("x"),a=r.getDimensionModel("y");n.set("x",o),n.set("y",a),i.set("x",o),i.set("y",a)}};function Lu(t){return"category"===t.get("type")}function Ou(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}const Bu=function(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=dl(t)):o=(i=r.getSource()).sourceFormat===Ks;var a=function(t){var e=t.get("coordinateSystem"),n=new Ru(e),i=Pu[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,i=t.get("coordinateSystem"),r=Au.get(i);return e&&e.coordSysDims&&(n=Z(e.coordSysDims,function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=function(t){return"category"===t?"ordinal":"time"===t?"time":"float"}(r)}return n})),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,u=nt(l)?l:l?tt(al,s,e):null,c=function(t,e){cl(t)||(t=dl(t));var n=(e=e||{}).coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],r=Mt(),o=[],a=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return Y(e,function(t){var e;at(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))}),r}(t,n,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&cu(a),l=i===t.dimensionsDefine,u=l?uu(t):lu(i),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=Mt(c),d=new Zl(a),f=0;f<d.length;f++)d[f]=-1;function p(t){var e=d[t];if(e<0){var n=i[t],r=at(n)?n:{name:n},a=new Gl,s=r.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=r.type&&(a.type=r.type),null!=r.displayName&&(a.displayName=r.displayName);var l=o.length;return d[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(f=0;f<a;f++)p(f);h.each(function(t,e){var n=la(t).slice();if(1===n.length&&!it(n[0])&&n[0]<0)h.set(e,!1);else{var i=h.set(e,[]);Y(n,function(t,n){var r=it(t)?u.get(t):t;null!=r&&r<a&&(i[n]=r,v(p(r),e,n))})}});var g=0;function v(t,e,n){null!=$s.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,r.set(e,!0))}Y(n,function(t){var e,n,i,r;if(it(t))e=t,r={};else{e=(r=t).name;var o=r.ordinalMeta;r.ordinalMeta=null,(r=W({},r)).ordinalMeta=o,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=h.get(e);if(!1!==s){if(!(s=la(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;g<a&&null!=p(g).coordDim;)g++;g<a&&s.push(g++)}Y(s,function(t,o){var a=p(t);if(l&&null!=r.type&&(a.type=r.type),v(U(a,r),e,o),null==a.name&&n){var s=n[o];!at(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}i&&U(a.otherDims,i)})}});var m=e.generateCoord,y=e.generateCoordCount,_=null!=y;y=m?y||1:0;var x=m||"value";function b(t){null==t.name&&(t.name=t.coordDim)}if(s)Y(o,function(t){b(t)}),o.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var w=0;w<a;w++){var S=p(w);null==S.coordDim&&(S.coordDim=Mu(x,r,_),S.coordDimIndex=0,(!m||y<=0)&&(S.isExtraCoord=!0),y--),b(S),null!=S.type||1!==ll(t,w)&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(t){for(var e=Mt(),n=0;n<t.length;n++){var i=t[n],r=i.name,o=e.get(r)||0;o>0&&(i.name=r+(o-1)),o++,e.set(r,o)}}(o),new au({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}(i,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),h=function(t,e,n){var i,r;return n&&Y(t,function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)}),r||null==i||(t[i].otherDims.itemName=0),i}(c.dimensions,n.createInvertedIndices,a),d=o?null:r.getSharedDataStore(c),f=function(t,e,n){var i,r,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!su(t.schema)}(e)?(r=e.schema,i=r.dimensions,o=e.store):i=e;var l,u,c,h,d=!(!t||!t.get("stack"));if(Y(i,function(t,e){it(t)&&(i[e]=t={name:t}),d&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))}),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var f=u.coordDim,p=u.type,g=0;Y(i,function(t){t.coordDim===f&&g++});var v={name:c,coordDim:f,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:h,coordDim:h,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(h,p),m.storeDimIndex=o.ensureCalculationDimension(c,p)),r.appendCalculationDimension(v),r.appendCalculationDimension(m)):(i.push(v),i.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}(e,{schema:c,store:d}),p=new Cu(c,e);p.setCalculationInfo(f);var g=null!=h&&function(t){if(t.sourceFormat===Ks)return!et(ha(function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[])))}(i)?function(t,e,n,i){return i===h?n:this.defaultDimValueGetter(t,e,n,i)}:null;return p.hasItemOption=!1,p.initData(o?i:d,null,g),p};var zu=Math.round(10*Math.random());function Eu(t){return[t||"",zu++].join("_")}var Nu=Math.log(2);function Fu(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/Nu);return t[n][l]}for(var u=i|1<<n,c=n+1;i&1<<c;)c++;for(var h=0,d=0,f=0;d<s;d++){var p=1<<d;p&r||(h+=(f%2?-1:1)*t[n][d]*Fu(t,e-1,c,u,r|p,o),f++)}return o[a]=h,h}function Vu(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=Fu(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*Fu(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}var Hu="___zrEVENTSAVED",Gu=[];function Wu(t,e,n,i,r){if(e.getBoundingClientRect&&Lt.domSupported&&!Uu(e)){var o=e[Hu]||(e[Hu]={}),a=function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return e.clearMarkers=function(){Y(n,function(t){t.parentNode&&t.parentNode.removeChild(t)})},n}(e,o),s=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,d=c.left,f=c.top;a.push(d,f),l=l&&o&&d===o[h]&&f===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?Vu(s,a):Vu(a,s))}(a,o,r);if(s)return s(t,n,i),!0}return!1}function Uu(t){return"CANVAS"===t.nodeName.toUpperCase()}var ju=/([&<>"'])/g,Xu={"&":"&","<":"<",">":">",'"':""","'":"'"};function qu(t){return null==t?"":(t+"").replace(ju,function(t,e){return Xu[e]})}var Yu="ZH",Zu="EN",$u=Zu,Ku={},Qu={},Ju=Lt.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||$u).toUpperCase().indexOf(Yu)>-1?Yu:$u;function tc(t,e){t=t.toUpperCase(),Qu[t]=new js(e),Ku[t]=e}tc(Zu,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),tc(Yu,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});function ec(){return null}var nc=36e5,ic=864e5,rc=31536e6,oc={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},ac={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},sc="{yyyy}-{MM}-{dd}",lc={year:"{yyyy}",month:"{yyyy}-{MM}",day:sc,hour:sc+" "+ac.hour,minute:sc+" "+ac.minute,second:sc+" "+ac.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},uc=["year","month","day","hour","minute","second","millisecond"],cc=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function hc(t,e){return"0000".substr(0,e-(t+="").length)+t}function dc(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function fc(t){return t===dc(t)}function pc(t,e,n,i){var r=Jo(t),o=r[mc(n)](),a=r[yc(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[_c(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[xc(n)](),h=(c-1)%12+1,d=r[bc(n)](),f=r[wc(n)](),p=r[Sc(n)](),g=c>=12?"pm":"am",v=g.toUpperCase(),m=i instanceof js?i:function(t){return Qu[t]}(i||Ju)||Qu[$u],y=m.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),b=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,v+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,hc(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,hc(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,hc(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,hc(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,hc(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,hc(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,hc(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,hc(p,3)).replace(/{S}/g,p+"")}function gc(t,e){var n=Jo(t),i=n[yc(e)]()+1,r=n[_c(e)](),o=n[xc(e)](),a=n[bc(e)](),s=n[wc(e)](),l=0===n[Sc(e)](),u=l&&0===s,c=u&&0===a,h=c&&0===o,d=h&&1===r;return d&&1===i?"year":d?"month":h?"day":c?"hour":u?"minute":l?"second":"millisecond"}function vc(t,e,n){switch(e){case"year":t[Mc(n)](0);case"month":t[Tc(n)](1);case"day":t[kc(n)](0);case"hour":t[Ic(n)](0);case"minute":t[Dc(n)](0);case"second":t[Ac(n)](0)}return t}function mc(t){return t?"getUTCFullYear":"getFullYear"}function yc(t){return t?"getUTCMonth":"getMonth"}function _c(t){return t?"getUTCDate":"getDate"}function xc(t){return t?"getUTCHours":"getHours"}function bc(t){return t?"getUTCMinutes":"getMinutes"}function wc(t){return t?"getUTCSeconds":"getSeconds"}function Sc(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Cc(t){return t?"setUTCFullYear":"setFullYear"}function Mc(t){return t?"setUTCMonth":"setMonth"}function Tc(t){return t?"setUTCDate":"setDate"}function kc(t){return t?"setUTCHours":"setHours"}function Ic(t){return t?"setUTCMinutes":"setMinutes"}function Dc(t){return t?"setUTCSeconds":"setSeconds"}function Ac(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Rc(t){if(isNaN(na(t)))return it(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Pc(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Lc=vt;function Oc(t,e,n){function i(t){return t&&yt(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?Jo(t):t;if(!isNaN(+s))return pc(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return rt(t)?i(t):ot(t)&&r(t)?t+"":"-";var l=na(t);return r(l)?Rc(l):rt(t)?i(t):"boolean"==typeof t?t+"":"-"}var Bc=["a","b","c","d","e","f","g"],zc=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Ec(t,e,n){et(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=Bc[o];t=t.replace(zc(a),zc(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(zc(Bc[l],s),n?qu(u):u)}return t}function Nc(t,e){return e=e||"transparent",it(t)?t:at(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Fc(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var Vc=Y,Hc=["left","right","top","bottom","width","height"],Gc=[["width","left","right"],["height","top","bottom"]];function Wc(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var c,h,d=l.getBoundingRect(),f=e.childAt(u+1),p=f&&f.getBoundingRect();if("horizontal"===t){var g=d.width+(p?-p.x+d.x:0);(c=o+g)>i||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var v=d.height+(p?-p.y+d.y:0);(h=a+v)>r||l.newline?(o+=s+n,a=0,h=v,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)})}function Uc(t,e,n){n=Lc(n||0);var i=e.width,r=e.height,o=jo(t.left,i),a=jo(t.top,r),s=jo(t.right,i),l=jo(t.bottom,r),u=jo(t.width,i),c=jo(t.height,r),h=n[2]+n[0],d=n[1]+n[3],f=t.aspect;switch(isNaN(u)&&(u=i-s-d-o),isNaN(c)&&(c=r-l-h-a),null!=f&&(isNaN(u)&&isNaN(c)&&(f>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(o)&&(o=i-s-u-d),isNaN(a)&&(a=r-l-c-h),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-d}switch(t.top||t.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-h}o=o||0,a=a||0,isNaN(u)&&(u=i-d-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var p=new De((e.x||0)+o+n[3],(e.y||0)+a+n[0],u,c);return p.margin=n,p}tt(Wc,"vertical"),tt(Wc,"horizontal");var jc=1,Xc=2;function qc(t,e,n){var i,r,o,a,s=t.boxCoordinateSystem;if(s){var l=function(t){var e=t.getShallow("coord",!0),n=1;if(null==e){var i=Du.get(t.type);i&&i.getCoord2&&(n=2,e=i.getCoord2(t))}return{coord:e,from:n}}(t),u=l.coord,c=l.from;if(s.dataToLayout){o=jc,a=c;var h=s.dataToLayout(u);i=h.contentRect||h.rect}else n&&n.enableLayoutOnlyByCenter&&s.dataToPoint&&(o=Xc,a=c,r=s.dataToPoint(u))}return null==o&&(o=jc),o===jc&&(i||(i={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),r=[i.x+i.width/2,i.y+i.height/2]),{type:o,refContainer:i,refPoint:r,boxCoordFrom:a}}function Yc(t){var e=t.layoutMode||t.constructor.layoutMode;return at(e)?e:e?{type:e}:null}function Zc(t,e,n){var i=n&&n.ignoreSize;!et(i)&&(i=[i,i]);var r=a(Gc[0],0),o=a(Gc[1],1);function a(n,r){var o={},a=0,l={},u=0;if(Vc(n,function(e){l[e]=t[e]}),Vc(n,function(t){It(e,t)&&(o[t]=l[t]=e[t]),s(o,t)&&a++,s(l,t)&&u++}),i[r])return s(e,n[1])?l[n[2]]=null:s(e,n[2])&&(l[n[1]]=null),l;if(2!==u&&a){if(a>=2)return o;for(var c=0;c<n.length;c++){var h=n[c];if(!It(o,h)&&It(t,h)){o[h]=t[h];break}}return o}return l}function s(t,e){return null!=t[e]&&"auto"!==t[e]}function l(t,e,n){Vc(t,function(t){e[t]=n[t]})}l(Gc[0],t,r),l(Gc[1],t,o)}function $c(t){return function(t,e){return e&&t&&Vc(Hc,function(n){It(e,n)&&(t[n]=e[n])}),t}({},t)}var Kc=_a(),Qc=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=Eu("ec_cpt_model"),r}var n;return b(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Yc(this),i=n?$c(t):{};G(t,e.getTheme().get(this.mainType)),G(t,this.getDefaultOption()),n&&Zc(t,i,n)},e.prototype.mergeOption=function(t,e){G(this.option,t,!0);var n=Yc(this);n&&Zc(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!function(t){return!(!t||!t[Bt])}(t))return t.defaultOption;var e=Kc(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=G(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Ca(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){return e=!1,{left:(t=this).getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)};var t,e},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((n=e.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),e}(js);Nt(Qc,js),Gt(Qc),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=zt(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=zt(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(Qc),function(){function t(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}Qc.topologicalTravel=function(e,n,i,r){if(e.length){var o=function(e){var n={},i=[];return Y(e,function(r){var o,a,s=t(n,r),l=function(t,e){var n=[];return Y(t,function(t){j(e,t)>=0&&n.push(t)}),n}(s.originalDeps=(o=r,a=[],Y(Qc.getClassesByMainType(o),function(t){a=a.concat(t.dependencies||t.prototype.dependencies||[])}),a=Z(a,function(t){return zt(t).main}),"dataset"!==o&&j(a,"dataset")<=0&&a.unshift("dataset"),a),e);s.entryCount=l.length,0===s.entryCount&&i.push(r),Y(l,function(e){j(s.predecessor,e)<0&&s.predecessor.push(e);var i=t(n,e);j(i.successor,e)<0&&i.successor.push(r)})}),{graph:n,noEntryList:i}}(n),a=o.graph,s=o.noEntryList,l={};for(Y(e,function(t){l[t]=!0});s.length;){var u=s.pop(),c=a[u],h=!!l[u];h&&(i.call(r,u,c.originalDeps.slice()),delete l[u]),Y(c.successor,h?f:d)}Y(l,function(){throw new Error("")})}function d(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function f(t){l[t]=!0,d(t)}}}();const Jc=Qc;var th=_a(),eh=(_a(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var i=la(this.get("color",!0)),r=this.get("colorLayer",!0);return function(t,e,n,i,r,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&i?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(i,a):n;if((c=c||n)&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}(this,th,i,r,t,e,n)},t.prototype.clearColorPalette=function(){!function(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}(this,th)},t}());var nh=/\{@(.+?)\}/g,ih=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,i,r,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);return o&&(s.value=o.interpolatedValue),null!=i&&et(s.value)&&(s.value=s.value[i]),r||(r=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])),nt(r)?(s.status=e,s.dimensionIndex=i,r(s)):it(r)?Ec(r,s).replace(nh,function(e,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1));var s=Fl(a,t,r);if(o&&et(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}):void 0},t.prototype.getRawValue=function(t,e){return Fl(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function rh(t){var e,n;return at(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function oh(t){return new ah(t)}var ah=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(o||d<f)){var p=this._progress;if(et(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],d,f,l,u);else this._doProgress(p,d,f,l,u)}this._dueIndex=f;var v=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,i,r){sh.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:sh.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),et(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),sh=function(){var t,e,n,i,r,o={reset:function(l,u,c,h){e=l,t=u,n=c,i=h,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*n+Math.ceil(e/r),a=e>=t?null:o<i?o:e;return e++,a}}(),lh=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Wl(t,e)},t}();function uh(t){return gh(t.sourceFormat)||Tl(""),t.data}function ch(t){var e=t.sourceFormat,n=t.data;if(gh(e)||Tl(""),e===Qs){for(var i=[],r=0,o=n.length;r<o;r++)i.push(n[r].slice());return i}if(e===Js){for(i=[],r=0,o=n.length;r<o;r++)i.push(W({},n[r]));return i}}function hh(t,e,n){if(null!=n)return ot(n)||!isNaN(n)&&!It(e,n)?t[n]:It(e,n)?e[n]:void 0}function dh(t){return H(t)}var fh=Mt();function ph(t,e,n,i){e.length||Tl(""),at(t)||Tl("");var r=t.type,o=fh.get(r);o||Tl("");var a=Z(e,function(t){return function(t,e){var n=new lh,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==il&&Tl("");var a=[],s={},l=t.dimensionsDefine;if(l)Y(l,function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};a.push(i),null!=n&&(It(s,n)&&Tl(""),s[n]=i)});else for(var u=0;u<t.dimensionsDetectedCount;u++)a.push({index:u});var c=Rl(r,il);e.__isBuiltIn&&(n.getRawDataItem=function(t){return c(i,o,a,t)},n.getRawData=J(uh,null,t)),n.cloneRawData=J(ch,null,t);var h=Ol(r,il);n.count=J(h,null,i,o,a);var d=El(r);n.retrieveValue=function(t,e){var n=c(i,o,a,t);return f(n,e)};var f=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=a[e];return n?d(t,e,n.name):void 0}};return n.getDimensionInfo=J(hh,null,a,s),n.cloneAllDimensionInfo=J(dh,null,a),n}(t,o)});return Z(la(o.transform({upstream:a[0],upstreamList:a,config:H(t.config)})),function(t,n){var i;at(t)||Tl(""),t.data||Tl(""),gh(fl(t.data))||Tl("");var r=e[0];if(r&&0===n&&!t.dimensions){var o=r.startIndex;o&&(t.data=r.data.slice(0,o).concat(t.data)),i={seriesLayoutBy:il,sourceHeader:o,dimensions:r.metaRawOption.dimensions}}else i={seriesLayoutBy:il,sourceHeader:0,dimensions:t.dimensions};return hl(t.data,i,null)})}function gh(t){return t===Qs||t===Js}var vh=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(mh(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=lt(a=o.get("data",!0))?el:Ks,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},d=ft(c.seriesLayoutBy,h.seriesLayoutBy)||null,f=ft(c.sourceHeader,h.sourceHeader),p=ft(c.dimensions,h.dimensions);t=d!==h.seriesLayoutBy||!!f!=!!h.sourceHeader||p?[hl(a,{seriesLayoutBy:d,sourceHeader:f,dimensions:p},s)]:[]}else{var g=n;if(r){var v=this._applyTransform(i);t=v.sourceList,e=v.upstreamSignList}else t=[hl(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);null!=r&&1!==t.length&&yh("");var o,a=[],s=[];return Y(t,function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||yh(""),a.push(e),s.push(t._getVersionSign())}),i?e=function(t,e){var n=la(t),i=n.length;i||Tl("");for(var r=0,o=i;r<o;r++)e=ph(n[r],e),r!==o-1&&(e.length=Math.max(e.length,1));return e}(i,a,n.componentIndex):null!=r&&(e=[(o=a[0],new ul({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:H(o.dimensionsDefine),startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount}))]),{sourceList:e,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var i=this._storeList,r=i[0];r||(r=i[0]={});var o=r[n];if(!o){var a=this._getUpstreamSourceManagers()[0];mh(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new iu).initData(new kl(e,t.length),t),r[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(mh(t)){var e=sl(t);return e?[e.getSourceManager()]:[]}return Z(function(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Ca(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Sa).models:[]}(t),function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(mh(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function mh(t){return"series"===t.mainType}function yh(t){throw new Error(t)}var _h={color:{},darkColor:{},size:{}},xh=_h.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};for(var bh in W(xh,{primary:xh.neutral80,secondary:xh.neutral70,tertiary:xh.neutral60,quaternary:xh.neutral50,disabled:xh.neutral20,border:xh.neutral30,borderTint:xh.neutral20,borderShade:xh.neutral40,background:xh.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:xh.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:xh.neutral70,axisLineTint:xh.neutral40,axisTick:xh.neutral70,axisTickMinor:xh.neutral60,axisLabel:xh.neutral70,axisSplitLine:xh.neutral15,axisMinorSplitLine:xh.neutral05}),xh)if(xh.hasOwnProperty(bh)){var wh=xh[bh];"theme"===bh?_h.darkColor.theme=xh.theme.slice():"highlight"===bh?_h.darkColor.highlight="rgba(255,231,130,0.4)":0===bh.indexOf("accent")?_h.darkColor[bh]=vi(wh,null,function(t){return.5*t},function(t){return Math.min(1,1.3-t)}):_h.darkColor[bh]=vi(wh,null,function(t){return.9*t},function(t){return 1-Math.pow(t,1.5)})}_h.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const Sh=_h;function Ch(t){var e=t.lineHeight;return null==e?"line-height:1":"line-height:"+qu(e+"")+"px"}function Mh(t,e){var n=t.color||Sh.color.tertiary,i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||Sh.color.secondary,a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+qu(i+"")+"px;color:"+qu(n)+";font-weight:"+qu(r+""),valueStyle:"font-size:"+qu(a+"")+"px;color:"+qu(o)+";font-weight:"+qu(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var Th=[0,10,20,30],kh=["","\n","\n\n","\n\n\n"];function Ih(t,e){return e.type=t,e}function Dh(t){return"section"===t.type}function Ah(t){return Dh(t)?Ph:Lh}function Rh(t){if(Dh(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return Y(t.blocks,function(t){var n=Rh(t);n>=e&&(e=n+ +(i&&(!n||Dh(t)&&!t.noHeader)))}),e}return 0}function Ph(t,e,n,i){var r,o=e.noHeader,a=(r=Rh(e),{html:Th[r],richText:kh[r]}),s=[],l=e.blocks||[];mt(!l||et(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(It(c,u)){var h=new jl(c[u],null);l.sort(function(t,e){return h.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===u&&l.reverse()}Y(l,function(n,r){var o=e.valueFormatter,l=Ah(n)(o?W(W({},t),{valueFormatter:o}):t,n,r>0?a.html:0,i);null!=l&&s.push(l)});var d="richText"===t.renderMode?s.join(a.richText):Bh(i,s.join(""),o?n:a.html);if(o)return d;var f=Oc(e.header,"ordinal",t.useUTC),p=Mh(i,t.renderMode).nameStyle,g=Ch(i);return"richText"===t.renderMode?zh(t,f,p)+a.richText+d:Bh(i,'<div style="'+p+";"+g+';">'+qu(f)+"</div>"+d,n)}function Lh(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return Z(t=et(t)?t:[t],function(t,e){return Oc(t,et(f)?f[e]:f,u)})};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||Sh.color.secondary,r),d=o?"":Oc(l,"ordinal",u),f=e.valueType,p=a?[]:c(e.value,e.dataIndex),g=!s||!o,v=!s&&o,m=Mh(i,r),y=m.nameStyle,_=m.valueStyle;return"richText"===r?(s?"":h)+(o?"":zh(t,d,y))+(a?"":function(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(et(e)?e.join(" "):e,o)}(t,p,g,v,_)):Bh(i,(s?"":h)+(o?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+qu(t)+"</span>"}(d,!s,y))+(a?"":function(t,e,n,i){return'<span style="'+(e?"float:right;margin-left:"+(n?"10px":"20px"):"")+";"+i+'">'+Z(t=et(t)?t:[t],function(t){return qu(t)}).join(" ")+"</span>"}(p,g,v,_)),n)}}function Oh(t,e,n,i,r,o){if(t)return Ah(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function Bh(t,e,n){return'<div style="margin: '+n+"px 0 0;"+Ch(t)+';">'+e+'<div style="clear:both"></div></div>'}function zh(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Eh(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var Nh=function(){function t(){this.richTextStyles={},this._nextStyleNameId=ia()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=function(t,e){var n=it(t)?{color:t,extraCssText:e}:t||{},i=n.color,r=n.type;e=n.extraCssText;var o=n.renderMode||"html";return i?"html"===o?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+qu(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+qu(i)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}({color:e,type:t,renderMode:n,markerId:i});return it(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};et(e)?Y(e,function(t){return W(n,t)}):W(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();var Fh=_a();function Vh(t,e){return t.getName(e)||t.getId(e)}var Hh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}var n;return b(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=oh({count:Wh,reset:Uh}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Fh(this).sourceManager=new vh(this)).prepareSource();var i=this.getInitialData(t,n);Xh(i,this),this.dataTask.context.data=i,Fh(this).dataBeforeProcessed=i,Gh(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Yc(this),i=n?$c(t):{},r=this.subType;Jc.hasClass(r)&&(r+="Series"),G(t,e.getTheme().get(this.subType)),G(t,this.getDefaultOption()),ua(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Zc(t,i,n)},e.prototype.mergeOption=function(t,e){t=G(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Yc(this);n&&Zc(this.option,t,n);var i=Fh(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);Xh(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,Fh(this).dataBeforeProcessed=r,Gh(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!lt(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&ua(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){this.getRawData().appendData(t.data)},e.prototype.getData=function(t){var e=Yh(this);if(e){var n=e.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n}return Fh(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=Yh(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}Fh(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return Mt(t)},e.prototype.getSourceManager=function(){return Fh(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Fh(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,e,n,i){var r=this.getData(),o=this.coordinateSystem,a=o&&o.getAxis(t);if(!o||!a)return[];var s=a.dataToCoord(n);null==i&&(i=1/0);var l=[],u=1/0,c=-1,h=0;return r.each(e,function(t,e){var n=a.dataToCoord(t),r=s-n,o=Math.abs(r);o<=i&&((o<u||o===u&&r>=0&&c<0)&&(u=o,c=r,h=0),r===c&&(l[h++]=e))}),l.length=h,l},e.prototype.formatTooltip=function(t,e,n){return function(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),d=et(h),f=function(t,e){return Nc(t.getData().getItemVisual(e,"style")[t.visualDrawType])}(o,a);if(c>1||d&&!c){var p=function(t,e,n,i,r){var o=e.getData(),a=$(t,function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName},!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(Ih("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?Y(i,function(t){c(Fl(o,n,t),t)}):Y(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(h,o,a,u,f);e=p.inlineValues,n=p.inlineValueTypes,i=p.blocks,r=p.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=e=Fl(l,a,u[0]),n=g.type}else r=e=d?h[0]:h;var v=va(o),m=v&&o.name||"",y=l.getName(a),_=s?m:y;return Ih("section",{header:m,noHeader:s||!v,sortParam:r,blocks:[Ih("nameValue",{markerType:"item",markerColor:f,name:_,noName:!yt(_),value:e,valueType:n,dataIndex:a})].concat(i||[])})}({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Lt.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=eh.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=Vh(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=Q(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];r>=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[Vh(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){at(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l<a;l++){var u=e[l];s[h=Vh(t,u)]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||!0===o){var c=e[a-1],h=Vh(t,c);r.selectedMap=((n={})[h]=!0,n),this._selectedDataIndicesMap=((i={})[h]=t.getRawIndex(c),i)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)}),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return Jc.registerClass(t)},e.protoInitialize=((n=e.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),e}(Jc);function Gh(t){var e=t.name;va(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return Y(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")}(t)||e)}function Wh(t){return t.model.getRawData().count()}function Uh(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),jh}function jh(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Xh(t,e){Y(function(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,tt(qh,e))})}function qh(t,e){var n=Yh(t);return n&&n.setOutputEnd((e||this).count()),e}function Yh(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}X(Hh,ih),X(Hh,eh),Nt(Hh,Jc);const Zh=Hh;var $h={},Kh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Qh=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Kh},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=_o($h,e,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=e.x1,i=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,i),s<1&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),t.lineTo(r,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(uo);Qh.prototype.type="line";const Jh=Qh;var td=function(){this.cx=0,this.cy=0,this.r=0},ed=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultShape=function(){return new td},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(uo);ed.prototype.type="circle";const nd=ed;var id=Hr.CMD,rd=[[],[],[]],od=Math.sqrt,ad=Math.atan2,sd=Math.sqrt,ld=Math.sin,ud=Math.cos,cd=Math.PI;function hd(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function dd(t,e){return(t[0]*e[0]+t[1]*e[1])/(hd(t)*hd(e))}function fd(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(dd(t,e))}function pd(t,e,n,i,r,o,a,s,l,u,c){var h=l*(cd/180),d=ud(h)*(t-n)/2+ld(h)*(e-i)/2,f=-1*ld(h)*(t-n)/2+ud(h)*(e-i)/2,p=d*d/(a*a)+f*f/(s*s);p>1&&(a*=sd(p),s*=sd(p));var g=(r===o?-1:1)*sd((a*a*(s*s)-a*a*(f*f)-s*s*(d*d))/(a*a*(f*f)+s*s*(d*d)))||0,v=g*a*f/s,m=g*-s*d/a,y=(t+n)/2+ud(h)*v-ld(h)*m,_=(e+i)/2+ld(h)*v+ud(h)*m,x=fd([1,0],[(d-v)/a,(f-m)/s]),b=[(d-v)/a,(f-m)/s],w=[(-1*d-v)/a,(-1*f-m)/s],S=fd(b,w);if(dd(b,w)<=-1&&(S=cd),dd(b,w)>=1&&(S=0),S<0){var C=Math.round(S/cd*1e6)/1e6;S=2*cd+C%2*cd}c.addData(u,y,_,a,s,x,S,h,o)}var gd=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,vd=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,md=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qt(e,t),e.prototype.applyTransform=function(t){},e}(uo);function yd(t){return null!=t.setData}function _d(t,e){var n=function(t){var e=new Hr;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=Hr.CMD,l=t.match(gd);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),d=void 0,f=c.match(vd)||[],p=f.length,g=0;g<p;g++)f[g]=parseFloat(f[g]);for(var v=0;v<p;){var m=void 0,y=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,C=i,M=r,T=void 0,k=void 0;switch(h){case"l":i+=f[v++],r+=f[v++],d=s.L,e.addData(d,i,r);break;case"L":i=f[v++],r=f[v++],d=s.L,e.addData(d,i,r);break;case"m":i+=f[v++],r+=f[v++],d=s.M,e.addData(d,i,r),o=i,a=r,h="l";break;case"M":i=f[v++],r=f[v++],d=s.M,e.addData(d,i,r),o=i,a=r,h="L";break;case"h":i+=f[v++],d=s.L,e.addData(d,i,r);break;case"H":i=f[v++],d=s.L,e.addData(d,i,r);break;case"v":r+=f[v++],d=s.L,e.addData(d,i,r);break;case"V":r=f[v++],d=s.L,e.addData(d,i,r);break;case"C":d=s.C,e.addData(d,f[v++],f[v++],f[v++],f[v++],f[v++],f[v++]),i=f[v-2],r=f[v-1];break;case"c":d=s.C,e.addData(d,f[v++]+i,f[v++]+r,f[v++]+i,f[v++]+r,f[v++]+i,f[v++]+r),i+=f[v-2],r+=f[v-1];break;case"S":m=i,y=r,T=e.len(),k=e.data,n===s.C&&(m+=i-k[T-4],y+=r-k[T-3]),d=s.C,C=f[v++],M=f[v++],i=f[v++],r=f[v++],e.addData(d,m,y,C,M,i,r);break;case"s":m=i,y=r,T=e.len(),k=e.data,n===s.C&&(m+=i-k[T-4],y+=r-k[T-3]),d=s.C,C=i+f[v++],M=r+f[v++],i+=f[v++],r+=f[v++],e.addData(d,m,y,C,M,i,r);break;case"Q":C=f[v++],M=f[v++],i=f[v++],r=f[v++],d=s.Q,e.addData(d,C,M,i,r);break;case"q":C=f[v++]+i,M=f[v++]+r,i+=f[v++],r+=f[v++],d=s.Q,e.addData(d,C,M,i,r);break;case"T":m=i,y=r,T=e.len(),k=e.data,n===s.Q&&(m+=i-k[T-4],y+=r-k[T-3]),i=f[v++],r=f[v++],d=s.Q,e.addData(d,m,y,i,r);break;case"t":m=i,y=r,T=e.len(),k=e.data,n===s.Q&&(m+=i-k[T-4],y+=r-k[T-3]),i+=f[v++],r+=f[v++],d=s.Q,e.addData(d,m,y,i,r);break;case"A":_=f[v++],x=f[v++],b=f[v++],w=f[v++],S=f[v++],pd(C=i,M=r,i=f[v++],r=f[v++],w,S,_,x,b,d=s.A,e);break;case"a":_=f[v++],x=f[v++],b=f[v++],w=f[v++],S=f[v++],pd(C=i,M=r,i+=f[v++],r+=f[v++],w,S,_,x,b,d=s.A,e)}}"z"!==h&&"Z"!==h||(d=s.Z,e.addData(d),i=o,r=a),n=d}return e.toStatic(),e}(t),i=W({},e);return i.buildPath=function(t){var e,i=yd(t);i&&t.canSave()?(t.appendPath(n),(e=t.getContext())&&t.rebuildPath(e,1)):(e=i?t.getContext():t)&&n.rebuildPath(e,1)},i.applyTransform=function(t){!function(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),c=id.M,h=id.C,d=id.L,f=id.R,p=id.A,g=id.Q;for(r=0,o=0;r<u;){switch(n=l[r++],o=r,i=0,n){case c:case d:i=1;break;case h:i=3;break;case g:i=2;break;case p:var v=e[4],m=e[5],y=od(e[0]*e[0]+e[1]*e[1]),_=od(e[2]*e[2]+e[3]*e[3]),x=ad(-e[1]/_,e[0]/y);l[r]*=y,l[r++]+=v,l[r]*=_,l[r++]+=m,l[r++]*=y,l[r++]*=_,l[r++]+=x,l[r++]+=x,o=r+=2;break;case f:s[0]=l[r++],s[1]=l[r++],gn(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],gn(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<i;a++){var b=rd[a];b[0]=l[r++],b[1]=l[r++],gn(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}}(n,t),this.dirtyShape()},i}var xd=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return qt(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=j(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=j(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(e)},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(e)},e.prototype.getBoundingRect=function(t){for(var e=new De(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(De.applyTransform(e,s,l),(r=r||e.clone()).union(e)):(r=r||s.clone()).union(s)}}return r||e},e}(Ji);xd.prototype.type="group";const bd=xd;var wd=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Sd=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultShape=function(){return new wd},e.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},e}(uo);Sd.prototype.type="ellipse";const Cd=Sd;var Md=Math.PI,Td=2*Md,kd=Math.sin,Id=Math.cos,Dd=Math.acos,Ad=Math.atan2,Rd=Math.abs,Pd=Math.sqrt,Ld=Math.max,Od=Math.min,Bd=1e-4;function zd(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/Pd(s*s+l*l),c=u*l,h=-u*s,d=t+c,f=e+h,p=n+c,g=i+h,v=(d+p)/2,m=(f+g)/2,y=p-d,_=g-f,x=y*y+_*_,b=r-o,w=d*g-p*f,S=(_<0?-1:1)*Pd(Ld(0,b*b*x-w*w)),C=(w*_-y*S)/x,M=(-w*y-_*S)/x,T=(w*_+y*S)/x,k=(-w*y+_*S)/x,I=C-v,D=M-m,A=T-v,R=k-m;return I*I+D*D>A*A+R*R&&(C=T,M=k),{cx:C,cy:M,x0:-c,y0:-h,x1:C*(r/b-1),y1:M*(r/b-1)}}var Ed=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},Nd=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultShape=function(){return new Ed},e.prototype.buildPath=function(t,e){!function(t,e){var n,i=Ld(e.r,0),r=Ld(e.r0||0,0),o=i>0;if(o||r>0){if(o||(i=r,r=0),r>i){var a=i;i=r,r=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=e.cx,c=e.cy,h=!!e.clockwise,d=Rd(l-s),f=d>Td&&d%Td;if(f>Bd&&(d=f),i>Bd)if(d>Td-Bd)t.moveTo(u+i*Id(s),c+i*kd(s)),t.arc(u,c,i,s,l,!h),r>Bd&&(t.moveTo(u+r*Id(l),c+r*kd(l)),t.arc(u,c,r,l,s,h));else{var p=void 0,g=void 0,v=void 0,m=void 0,y=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,C=void 0,M=void 0,T=void 0,k=void 0,I=void 0,D=void 0,A=i*Id(s),R=i*kd(s),P=r*Id(l),L=r*kd(l),O=d>Bd;if(O){var B=e.cornerRadius;B&&(n=function(t){var e;if(et(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(B),p=n[0],g=n[1],v=n[2],m=n[3]);var z=Rd(i-r)/2;if(y=Od(z,v),_=Od(z,m),x=Od(z,p),b=Od(z,g),C=w=Ld(y,_),M=S=Ld(x,b),(w>Bd||S>Bd)&&(T=i*Id(l),k=i*kd(l),I=r*Id(s),D=r*kd(s),d<Md)){var E=function(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,c=a-r,h=s-o,d=h*l-c*u;if(!(d*d<Bd))return[t+(d=(c*(e-o)-h*(t-r))/d)*l,e+d*u]}(A,R,I,D,T,k,P,L);if(E){var N=A-E[0],F=R-E[1],V=T-E[0],H=k-E[1],G=1/kd(Dd((N*V+F*H)/(Pd(N*N+F*F)*Pd(V*V+H*H)))/2),W=Pd(E[0]*E[0]+E[1]*E[1]);C=Od(w,(i-W)/(G+1)),M=Od(S,(r-W)/(G-1))}}}if(O)if(C>Bd){var U=Od(v,C),j=Od(m,C),X=zd(I,D,A,R,i,U,h),q=zd(T,k,P,L,i,j,h);t.moveTo(u+X.cx+X.x0,c+X.cy+X.y0),C<w&&U===j?t.arc(u+X.cx,c+X.cy,C,Ad(X.y0,X.x0),Ad(q.y0,q.x0),!h):(U>0&&t.arc(u+X.cx,c+X.cy,U,Ad(X.y0,X.x0),Ad(X.y1,X.x1),!h),t.arc(u,c,i,Ad(X.cy+X.y1,X.cx+X.x1),Ad(q.cy+q.y1,q.cx+q.x1),!h),j>0&&t.arc(u+q.cx,c+q.cy,j,Ad(q.y1,q.x1),Ad(q.y0,q.x0),!h))}else t.moveTo(u+A,c+R),t.arc(u,c,i,s,l,!h);else t.moveTo(u+A,c+R);r>Bd&&O?M>Bd?(U=Od(p,M),X=zd(P,L,T,k,r,-(j=Od(g,M)),h),q=zd(A,R,I,D,r,-U,h),t.lineTo(u+X.cx+X.x0,c+X.cy+X.y0),M<S&&U===j?t.arc(u+X.cx,c+X.cy,M,Ad(X.y0,X.x0),Ad(q.y0,q.x0),!h):(j>0&&t.arc(u+X.cx,c+X.cy,j,Ad(X.y0,X.x0),Ad(X.y1,X.x1),!h),t.arc(u,c,r,Ad(X.cy+X.y1,X.cx+X.x1),Ad(q.cy+q.y1,q.cx+q.x1),h),U>0&&t.arc(u+q.cx,c+q.cy,U,Ad(q.y1,q.x1),Ad(q.y0,q.x0),!h))):(t.lineTo(u+P,c+L),t.arc(u,c,r,l,s,h)):t.lineTo(u+P,c+L)}else t.moveTo(u,c);t.closePath()}}}(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(uo);Nd.prototype.type="sector";const Fd=Nd;var Vd=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Hd=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultShape=function(){return new Vd},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(uo);Hd.prototype.type="ring";const Gd=Hd;function Wd(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=function(t,e,n,i){var r,o,a,s,l=[],u=[],c=[],h=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=t.length;d<f;d++)vn(a,a,t[d]),mn(s,s,t[d]);vn(a,a,i[0]),mn(s,s,i[1])}for(d=0,f=t.length;d<f;d++){var p=t[d];if(n)r=t[d?d-1:f-1],o=t[(d+1)%f];else{if(0===d||d===f-1){l.push(ln(t[d]));continue}r=t[d-1],o=t[d+1]}cn(u,o,r),hn(u,u,e);var g=dn(p,r),v=dn(p,o),m=g+v;0!==m&&(g/=m,v/=m),hn(c,u,-g),hn(h,u,v);var y=un([],p,c),_=un([],p,h);i&&(mn(y,y,a),vn(y,y,s),mn(_,_,a),vn(_,_,s)),l.push(y),l.push(_)}return n&&l.push(l.shift()),l}(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(r[0][0],r[0][1]),s=1;for(var h=r.length;s<h;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}var Ud=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},jd=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultShape=function(){return new Ud},e.prototype.buildPath=function(t,e){Wd(t,e,!0)},e}(uo);jd.prototype.type="polygon";const Xd=jd;var qd=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Yd=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new qd},e.prototype.buildPath=function(t,e){Wd(t,e,!1)},e}(uo);Yd.prototype.type="polyline";const Zd=Yd;var $d=[],Kd=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Qd(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?Hn:Vn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Hn:Vn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?qn:Xn)(t.x1,t.cpx1,t.x2,e),(n?qn:Xn)(t.y1,t.cpy1,t.y2,e)]}var Jd=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Kd},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,i),null==l||null==u?(c<1&&(Zn(n,a,r,c,$d),a=$d[1],r=$d[2],Zn(i,s,o,c,$d),s=$d[1],o=$d[2]),t.quadraticCurveTo(a,s,r,o)):(c<1&&(Un(n,a,l,r,c,$d),a=$d[1],l=$d[2],r=$d[3],Un(i,s,u,o,c,$d),s=$d[1],u=$d[2],o=$d[3]),t.bezierCurveTo(a,s,l,u,r,o)))},e.prototype.pointAt=function(t){return Qd(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=Qd(this.shape,t,!0);return function(t,e){var n=function(t){return Math.sqrt(function(t){return t[0]*t[0]+t[1]*t[1]}(t))}(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}(e,e)},e}(uo);Jd.prototype.type="bezier-curve";const tf=Jd;var ef=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},nf=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ef},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},e}(uo);nf.prototype.type="arc";const rf=nf;const of=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return qt(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),uo.prototype.getBoundingRect.call(this)},e}(uo);var af=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}();const sf=af,lf=function(t){function e(e,n,i,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return qt(e,t),e}(sf),uf=function(t){function e(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return qt(e,t),e}(sf);var cf=Math.min,hf=Math.max,df=Math.abs,ff=[0,0],pf=[0,0],gf=Ie(),vf=gf.minTv,mf=gf.maxTv,yf=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new ce;for(n=0;n<2;n++)this._axes[n]=new ce;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),e)for(var l=0;l<4;l++)n[l].transform(e);for(ce.sub(i[0],n[1],n[0]),ce.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize(),l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e,n){var i=!0,r=!e;return e&&ce.set(e,0,0),gf.reset(n,!r),!this._intersectCheckOneSide(this,t,r,1)&&(i=!1,r)||!this._intersectCheckOneSide(t,this,r,-1)&&(i=!1,r)||r||gf.negativeSize||ce.copy(e,i?gf.useDir?gf.dirMinTv:vf:mf),i},t.prototype._intersectCheckOneSide=function(t,e,n,i){for(var r=!0,o=0;o<2;o++){var a=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,ff),t._getProjMinMaxOnAxis(o,e._corners,pf),gf.negativeSize||ff[1]<pf[0]||ff[0]>pf[1]){if(r=!1,gf.negativeSize||n)return r;var s=df(pf[0]-ff[1]),l=df(ff[0]-pf[1]);cf(s,l)>mf.len()&&(s<l?ce.scale(mf,a,-s*i):ce.scale(mf,a,l*i))}else n||(s=df(pf[0]-ff[1]),l=df(ff[0]-pf[1]),(gf.useDir||cf(s,l)<vf.len())&&((s<l||!gf.bidirectional)&&(ce.scale(vf,a,s*i),gf.useDir&&gf.calcDirMTV()),(s>=l||!gf.bidirectional)&&(ce.scale(vf,a,-l*i),gf.useDir&&gf.calcDirMTV())))}return r},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(i)+r[t];a=cf(u,a),s=hf(u,s)}n[0]=a+gf.touchThreshold,n[1]=s-gf.touchThreshold,gf.negativeSize=n[1]<n[0]},t}();const _f=yf;var xf=[];const bf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return qt(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++)(e=this._displayables[t]).parent=this,e.update(),e.parent=null;for(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new De(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(xf)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(t,e))return!0;return!1},e}(lr);var wf=_a();function Sf(t,e,n,i,r,o,a){var s,l=!1;nt(r)?(a=o,o=r,r=null):at(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=function(t,e,n,i,r){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===t;if(e&&e.isAnimationEnabled()){var l=void 0,u=void 0,c=void 0;return i?(l=ft(i.duration,200),u=ft(i.easing,"cubicOut"),c=0):(l=e.getShallow(s?"animationDurationUpdate":"animationDuration"),u=e.getShallow(s?"animationEasingUpdate":"animationEasing"),c=e.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(c=o.delay)),nt(c)&&(c=c(n,r)),nt(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}(t,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(c&&c.duration>0){var h={duration:c.duration,delay:c.delay||0,easing:c.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,h):e.animateTo(n,h)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function Cf(t,e,n,i,r,o){Sf("update",t,e,n,i,r,o)}function Mf(t,e,n,i,r,o){Sf("enter",t,e,n,i,r,o)}function Tf(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function kf(t,e,n,i,r,o){Tf(t)||Sf("leave",t,e,n,i,r,o)}function If(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),kf(t,{style:{opacity:0}},e,n,i)}function Df(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||If(t,e,n,i)}):If(t,e,n,i)}var Af={},Rf=["x","y"],Pf=["width","height"];function Lf(t){return uo.extend(t)}var Of=function(t,e){var n=_d(t,e);return function(t){function e(e){var i=t.call(this,e)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return qt(e,t),e}(md)};function Bf(t,e){return Of(t,e)}function zf(t,e){Af[t]=e}function Ef(t){if(Af.hasOwnProperty(t))return Af[t]}function Nf(t,e,n,i){var r=function(t,e){return new md(_d(t,e))}(t,e);return n&&("center"===i&&(n=Vf(n,r.getBoundingRect())),Gf(r,n)),r}function Ff(t,e,n){var i=new mo({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(Vf(e,r))}}});return i}function Vf(t,e){var n,i=e.width/e.height,r=t.height*i;return n=r<=t.width?t.height:(r=t.width)/i,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-n/2,width:r,height:n}}var Hf=function(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}var a=new uo(e);return a.createPathProxy(),a.buildPath=function(t){if(yd(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function Gf(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function Wf(t,e){return _o(t,t,{lineWidth:e}),t}function Uf(t,e){return xo(t,t,e),t}var jf=bo;function Xf(t,e){for(var n=ie([]);t&&t!==e;)oe(n,t.getLocalTransform(),n),t=t.parent;return n}function qf(t,e,n){return e&&!q(e)&&(e=kn.getLocalTransform(e)),n&&(e=le([],e)),gn([],t,e)}function Yf(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Wo(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Wo(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=qf(o,e,n),Wo(o[0])>Wo(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Zf(t){return!t.isGroup}function $f(t,e,n){if(t&&e){var i,r=(i={},t.traverse(function(t){Zf(t)&&t.anid&&(i[t.anid]=t)}),i);e.traverse(function(t){if(Zf(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),Cf(t,i,n,Ta(t).dataIndex)}}})}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=H(t.shape)),e}}function Kf(t,e){return Z(t,function(t){var n=t[0];n=Go(n,e.x),n=Ho(n,e.x+e.width);var i=t[1];return i=Go(i,e.y),[n,i=Ho(i,e.y+e.height)]})}function Qf(t,e){var n=Go(t.x,e.x),i=Ho(t.x+t.width,e.x+e.width),r=Go(t.y,e.y),o=Ho(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function Jf(t,e,n){var i=W({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),U(r,n),new mo(i)):Nf(t.replace("path://",""),i,n,"center")}function tp(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(ep(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function ep(t,e,n,i,r,o,a,s){var l,u=n-t,c=i-e,h=a-r,d=s-o,f=np(h,d,u,c);if((l=f)<=1e-6&&l>=-1e-6)return!1;var p=t-r,g=e-o,v=np(p,g,u,c)/f;if(v<0||v>1)return!1;var m=np(p,g,h,d)/f;return!(m<0||m>1)}function np(t,e,n,i){return t*i-n*e}function ip(t,e,n,i,r){return null==e||(ot(e)?rp[0]=rp[1]=rp[2]=rp[3]=e:(rp[0]=e[0],rp[1]=e[1],rp[2]=e[2],rp[3]=e[3]),i&&(rp[0]=Go(0,rp[0]),rp[1]=Go(0,rp[1]),rp[2]=Go(0,rp[2]),rp[3]=Go(0,rp[3])),n&&(rp[0]=-rp[0],rp[1]=-rp[1],rp[2]=-rp[2],rp[3]=-rp[3]),op(t,rp,"x","width",3,1,r&&r[0]||0),op(t,rp,"y","height",0,2,r&&r[1]||0)),t}var rp=[0,0,0,0];function op(t,e,n,i,r,o,a){var s=e[o]+e[r],l=t[i];t[i]+=s,a=Go(0,Ho(a,l)),t[i]<a?(t[i]=a,t[n]+=e[r]>=0?-e[r]:e[o]>=0?l+e[o]:Wo(s)>1e-8?(l-a)*e[r]/s:0):t[n]-=e[r]}function ap(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=it(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Y(Q(l),function(t){It(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=Ta(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:U({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function sp(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function lp(t,e){if(t)if(et(t))for(var n=0;n<t.length;n++)sp(t[n],e);else sp(t,e)}function up(t){return!t||Wo(t[1])<cp&&Wo(t[2])<cp||Wo(t[0])<cp&&Wo(t[3])<cp}var cp=1e-5;function hp(t,e){return t?De.copy(t,e):e.clone()}function dp(t,e){return e?re(t||[1,0,0,1,0,0],e):void 0}function fp(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function pp(t){var e=-1/0,n=1/0;function i(t){if(t&&!t.isGroup){var e=t.currentStates;if(e.length)for(var n=0;n<e.length;n++)r(t.states[e[n]]);r(t)}}function r(t){if(t){var i=t.z2;i>e&&(e=i),i<n&&(n=i)}}return sp(t,function(t){i(t),i(t.getTextContent()),i(t.getTextGuideLine())}),n>e&&(n=e=0),{min:n,max:e}}function gp(t,e,n){vp(t,e,n,-1/0)}function vp(t,e,n,i){if(t.ignoreModelZ)return i;var r=t.getTextContent(),o=t.getTextGuideLine();if(t.isGroup)for(var a=t.childrenRef(),s=0;s<a.length;s++)i=Go(vp(a[s],e,n,i),i);else t.z=e,t.zlevel=n,i=Go(t.z2||0,i);if(r&&(r.z=e,r.zlevel=n,isFinite(i)&&(r.z2=i+2)),o){var l=t.textGuideLineConfig;o.z=e,o.zlevel=n,isFinite(i)&&(o.z2=i+(l&&l.showAbove?1:-1))}return i}zf("circle",nd),zf("ellipse",Cd),zf("sector",Fd),zf("ring",Gd),zf("polygon",Xd),zf("polyline",Zd),zf("rect",Mo),zf("line",Jh),zf("bezierCurve",tf),zf("arc",rf);var mp=uo.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),yp=uo.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),_p=uo.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),f=.6*a,p=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*f,l+s+d*f,n,i-p,n,i),t.bezierCurveTo(n,i-p,n-c+h*f,l+s+d*f,n-c,l+s),t.closePath()}}),xp=uo.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),bp={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},wp={};Y({line:Jh,rect:Mo,roundRect:Mo,square:Mo,circle:nd,diamond:yp,pin:_p,arrow:xp,triangle:mp},function(t,e){wp[e]=new t});var Sp=uo.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=He(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=wp[i];r||(r=wp[i="rect"]),bp[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function Cp(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||Sh.color.neutral00,n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function Mp(t,e,n,i,r,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?Ff(t.slice(8),new De(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?Nf(t.slice(7),{},new De(e,n,i,r),a?"center":"cover"):new Sp({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=l,s.setColor=Cp,o&&s.setColor(o),s}function Tp(t,e){if(null!=t)return et(t)||(t=[t,t]),[jo(t[0],e[0])||0,jo(ft(t[1],t[0]),e[1])||0]}const kp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return b(e,t),e.prototype.getInitialData=function(t){return Bu(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new bd,n=Mp("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*t.itemHeight,s=Mp(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill=Sh.color.neutral00,s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Zh);function Ip(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=Fl(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(Fl(t,e,n[a]));return o.join(" ")}}var Dp=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return b(e,t),e.prototype._createSymbol=function(t,e,n,i,r,o){this.removeAll();var a=Mp(t,-1,-1,2,2,null,o);a.attr({z2:ft(r,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),a.drift=Ap,this._symbolType=t,this.add(a)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ts(this.childAt(0))},e.prototype.downplay=function(){es(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var o,a=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=e.getSymbolZ2(t,n),c=a!==this._symbolType,h=r&&r.disableAnimation;if(c){var d=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,t,n,l,u,d)}else{(p=this.childAt(0)).silent=!1;var f={scaleX:l[0]/2,scaleY:l[1]/2};h?p.attr(f):Cf(p,f,s,n),wf(o=p).oldStyle=o.style}if(this._updateCommon(t,n,l,i,r),c){var p=this.childAt(0);h||(f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}},p.scaleX=p.scaleY=0,p.style.opacity=0,Mf(p,f,s,n))}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,u,c,h,d,f,p=this.childAt(0),g=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,h=i.labelStatesModels,d=i.hoverScale,f=i.cursorStyle,c=i.emphasisDisabled),!i||t.hasItemOption){var v=i&&i.itemModel?i.itemModel:t.getItemModel(e),m=v.getModel("emphasis");o=m.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=m.get("focus"),u=m.get("blurScope"),c=m.get("disabled"),h=Ss(v),d=m.getShallow("scale"),f=v.getShallow("cursor")}var y=t.getItemVisual(e,"symbolRotate");p.attr("rotation",(y||0)*Math.PI/180||0);var _=Tp(t.getItemVisual(e,"symbolOffset"),n);_&&(p.x=_[0],p.y=_[1]),f&&p.attr("cursor",f);var x=t.getItemVisual(e,"style"),b=x.fill;if(p instanceof mo){var w=p.style;p.useStyle(W({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},x))}else p.__isEmptyBrush?p.useStyle(W({},x)):p.useStyle(x),p.style.decal=null,p.setColor(b,r&&r.symbolInnerColor),p.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),C=this._z2;null!=S?null==C&&(this._z2=p.z2,p.z2+=S):null!=C&&(p.z2=C,this._z2=null);var M=r&&r.useNameLabel;ws(p,h,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return M?t.getName(e):Ip(t,e)},inheritColor:b,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=p.ensureState("emphasis");T.style=o,p.ensureState("select").style=s,p.ensureState("blur").style=a;var k=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;T.scaleX=this._sizeX*k,T.scaleY=this._sizeY*k,this.setSymbolScale(1),ds(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=Ta(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&kf(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();kf(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return et(n=t.getItemVisual(e,"symbolSize"))||(n=[+n,+n]),[n[0]||0,n[1]||0];var n},e.getSymbolZ2=function(t,e){return t.getItemVisual(e,"z2")},e}(bd);function Ap(t,e){this.parent.drift(t,e)}const Rp=Dp;function Pp(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function Lp(t){return null==t||at(t)||(t={isIgnore:t}),t||{}}function Op(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Ss(e),cursorStyle:e.get("cursor")}}var Bp=function(){function t(t){this.group=new bd,this._SymbolCtor=t||Rp}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=Lp(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=Op(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add(function(i){var r=u(i);if(Pp(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}}).update(function(c,h){var d=r.getItemGraphicEl(h),f=u(c);if(Pp(t,f,c,e)){var p=t.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==p)n.remove(d),(d=new o(t,c,s,l)).setPosition(f);else{d.updateData(t,c,s,l);var v={x:f[0],y:f[1]};a?d.attr(v):Cf(d,v,i)}n.add(d),t.setItemGraphicEl(c,d)}else n.remove(d)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},i)}).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Op(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=Lp(n);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(Pp(e,o,r,n)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){lp(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},n.hostModel)}):e.removeAll()},t}();const zp=Bp;function Ep(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),o=function(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:ot(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=Z(t.dimensions,function(t){return e.mapDimension(t)}),d=!1,f=e.getCalculationInfo("stackResultDimension");return Ou(e,h[0])&&(d=!0,h[0]=f),Ou(e,h[1])&&(d=!0,h[1]=f),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Np(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var Fp="undefined"!=typeof Float32Array,Vp=Fp?Float32Array:Array;function Hp(t){return et(t)?Fp?new Float32Array(t):t:new Vp(t)}var Gp=Math.min,Wp=Math.max;function Up(t,e){return isNaN(t)||isNaN(e)}function jp(t,e,n,i,r,o,a,s,l){for(var u,c,h,d,f,p,g=n,v=0;v<i;v++){var m=e[2*g],y=e[2*g+1];if(g>=r||g<0)break;if(Up(m,y)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](m,y),h=m,d=y;else{var _=m-u,x=y-c;if(_*_+x*x<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===m&&S===y&&v<i;)v++,g+=o,w=e[2*(b+=o)],S=e[2*b+1],_=(m=e[2*g])-u,x=(y=e[2*g+1])-c;var C=v+1;if(l)for(;Up(w,S)&&C<i;)C++,w=e[2*(b+=o)],S=e[2*b+1];var M=.5,T=0,k=0,I=void 0,D=void 0;if(C>=i||Up(w,S))f=m,p=y;else{T=w-u,k=S-c;var A=m-u,R=w-m,P=y-c,L=S-y,O=void 0,B=void 0;if("x"===s){var z=T>0?1:-1;f=m-z*(O=Math.abs(A))*a,p=y,I=m+z*(B=Math.abs(R))*a,D=y}else if("y"===s){var E=k>0?1:-1;f=m,p=y-E*(O=Math.abs(P))*a,I=m,D=y+E*(B=Math.abs(L))*a}else O=Math.sqrt(A*A+P*P),f=m-T*a*(1-(M=(B=Math.sqrt(R*R+L*L))/(B+O))),p=y-k*a*(1-M),D=y+k*a*M,I=Gp(I=m+T*a*M,Wp(w,m)),D=Gp(D,Wp(S,y)),I=Wp(I,Gp(w,m)),p=y-(k=(D=Wp(D,Gp(S,y)))-y)*O/B,f=Gp(f=m-(T=I-m)*O/B,Wp(u,m)),p=Gp(p,Wp(c,y)),I=m+(T=m-(f=Wp(f,Gp(u,m))))*B/O,D=y+(k=y-(p=Wp(p,Gp(c,y))))*B/O}t.bezierCurveTo(h,d,f,p,m,y),h=I,d=D}else t.lineTo(m,y)}u=m,c=y,g+=o}return v}var Xp=function(){this.smooth=0,this.smoothConstraint=!0},qp=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return b(e,t),e.prototype.getDefaultStyle=function(){return{stroke:Sh.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Xp},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&Up(n[2*r-2],n[2*r-1]);r--);for(;i<r&&Up(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=jp(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path.data,o=Hr.CMD,a="x"===e,s=[],l=0;l<r.length;){var u=void 0,c=void 0,h=void 0,d=void 0,f=void 0,p=void 0,g=void 0;switch(r[l++]){case o.M:n=r[l++],i=r[l++];break;case o.L:if(u=r[l++],c=r[l++],(g=a?(t-n)/(u-n):(t-i)/(c-i))<=1&&g>=0){var v=a?(c-i)*g+i:(u-n)*g+n;return a?[t,v]:[v,t]}n=u,i=c;break;case o.C:u=r[l++],c=r[l++],h=r[l++],d=r[l++],f=r[l++],p=r[l++];var m=a?Gn(n,u,h,f,t,s):Gn(i,c,d,p,t,s);if(m>0)for(var y=0;y<m;y++){var _=s[y];if(_<=1&&_>=0)return v=a?Vn(i,c,d,p,_):Vn(n,u,h,f,_),a?[t,v]:[v,t]}n=f,i=p}}},e}(uo),Yp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e}(Xp),Zp=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return b(e,t),e.prototype.getDefaultShape=function(){return new Yp},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&Up(n[2*o-2],n[2*o-1]);o--);for(;r<o&&Up(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=jp(t,n,r,o,o,1,e.smooth,a,e.connectNulls);jp(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},e}(uo);function $p(){var t=_a();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var Kp=_a(),Qp=$p(),Jp=function(){function t(){this.group=new bd,this.uid=Eu("viewChart"),this.renderTask=oh({plan:ng,reset:ig}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&eg(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&eg(r,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){lp(this.group,t)},t.markUpdateMethod=function(t,e){Kp(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function tg(t,e,n){t&&ms(t)&&("emphasis"===e?ts:es)(t,n)}function eg(t,e,n){var i=ya(t,e),r=e&&null!=e.highlightKey?function(t){var e=Ia[t];return null==e&&ka<=32&&(e=Ia[t]=ka++),e}(e.highlightKey):null;null!=i?Y(la(i),function(e){tg(t.getItemGraphicEl(e),n,r)}):t.eachItemGraphicEl(function(t){tg(t,n,r)})}function ng(t){return Qp(t.model)}function ig(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&Kp(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),rg[l]}Et(Jp),Gt(Jp);var rg={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const og=Jp;function ag(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function sg(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function lg(t,e){var n=sg(t),i=n[0],r=n[1],o=sg(e),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function ug(t){return ot(t)?t:t?.5:0}function cg(t,e,n,i,r){var o=n.getBaseAxis(),a="x"===o.dim||"radius"===o.dim?0:1,s=[],l=0,u=[],c=[],h=[],d=[];if(r){for(l=0;l<t.length;l+=2){var f=e||t;isNaN(f[l])||isNaN(f[l+1])||d.push(t[l],t[l+1])}t=d}for(l=0;l<t.length-2;l+=2)switch(h[0]=t[l+2],h[1]=t[l+3],c[0]=t[l],c[1]=t[l+1],s.push(c[0],c[1]),i){case"end":u[a]=h[a],u[1-a]=c[1-a],s.push(u[0],u[1]);break;case"middle":var p=(c[a]+h[a])/2,g=[];u[a]=g[a]=p,u[1-a]=c[1-a],g[1-a]=h[1-a],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[a]=c[a],u[1-a]=h[1-a],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function hg(t,e){return isNaN(t)||isNaN(e)}function dg(t,e){return[t[2*e],t[2*e+1]]}function fg(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Ra.length;e++)if(t.get([Ra[e],"endLabel","show"]))return!0;return!1}function pg(t,e,n,i){if(function(t){return"cartesian2d"===t.type}(e)){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=fg(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,u=e.getBaseAxis().isHorizontal(),c=function(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||0;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var h=new Mo({shape:{x:a,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),f=d.isHorizontal(),p=d.inverse;f?(p&&(h.shape.x+=l),h.shape.width=0):(p||(h.shape.y+=u),h.shape.height=0);var g=nt(r)?function(t){r(t,h)}:null;Mf(h,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return h}(e,n,i,function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,c),c}return function(t,e,n){var i=t.getArea(),r=qo(i.r0,1),o=qo(i.r,1),a=new Fd({shape:{cx:qo(t.cx,1),cy:qo(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=r,Mf(a,{shape:{endAngle:i.endAngle,r:o}},n)),a}(e,n,i)}var gg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e.prototype.init=function(){var t=new bd,e=new zp;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t,this._changePolyState=J(this._changePolyState,this)},e.prototype.render=function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=t.getModel("lineStyle"),s=t.getModel("areaStyle"),l=o.getLayout("points")||[],u="polar"===i.type,c=this._coordSys,h=this._symbolDraw,d=this._polyline,f=this._polygon,p=this._lineGroup,g=!e.ssr&&t.get("animation"),v=!s.isEmpty(),m=s.get("origin"),y=Ep(i,o,m),_=v&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=Hp(2*i),o=0;o<i;o++){var a=Np(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(i,o,y),x=t.get("showSymbol"),b=t.get("connectNulls"),w=x&&!u&&function(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*Rp.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return Y(o.getViewLabels(),function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}(t,o,i),S=this._data;S&&S.eachItemGraphicEl(function(t,e){t.__temp&&(r.remove(t),S.setItemGraphicEl(e,null))}),x||h.remove(),r.add(p);var C,M=!u&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(null!=(C=i.getArea()).width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var T=function(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var s=t.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=e.getAxis(r),u=Z(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=function(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:gi((n-i)/(e.coord-i),[t.color,e.color])}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(u>e){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}(u,"x"===r?n.getWidth():n.getHeight()),f=d.length;if(!f&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var p=d[0].coord-10,g=d[f-1].coord+10,v=g-p;if(v<.001)return"transparent";Y(d,function(t){t.offset=(t.coord-p)/v}),d.push({offset:f?d[f-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:f?d[0].offset:.5,color:h[0]||"transparent"});var m=new lf(0,0,0,0,d,!0);return m[r]=p,m[r+"2"]=g,m}}}(o,i,n)||o.getVisual("style")[o.getVisual("drawType")];if(d&&c.type===i.type&&M===this._step){v&&!f?f=this._newPolygon(l,_):f&&!v&&(p.remove(f),f=this._polygon=null),u||this._initOrUpdateEndLabel(t,i,Nc(T));var k=p.getClipPath();k?Mf(k,{shape:pg(this,i,!1,t).shape},t):p.setClipPath(pg(this,i,!0,t)),x&&h.updateData(o,{isIgnore:w,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),ag(this._stackedOnPoints,_)&&ag(this._points,l)||(g?this._doUpdateAnimation(o,_,i,n,M,m,b):(M&&(_&&(_=cg(_,l,i,M,b)),l=cg(l,null,i,M,b)),d.setShape({points:l}),f&&f.setShape({points:l,stackedOnPoints:_})))}else x&&h.updateData(o,{isIgnore:w,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),g&&this._initSymbolLabelAnimation(o,i,C),M&&(_&&(_=cg(_,l,i,M,b)),l=cg(l,null,i,M,b)),d=this._newPolyline(l),v?f=this._newPolygon(l,_):f&&(p.remove(f),f=this._polygon=null),u||this._initOrUpdateEndLabel(t,i,Nc(T)),p.setClipPath(pg(this,i,!0,t));var I=t.getModel("emphasis"),D=I.get("focus"),A=I.get("blurScope"),R=I.get("disabled");d.useStyle(U(a.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),gs(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1),Ta(d).seriesIndex=t.seriesIndex,ds(d,D,A,R);var P=ug(t.get("smooth")),L=t.get("smoothMonotone");if(d.setShape({smooth:P,smoothMonotone:L,connectNulls:b}),f){var O=o.getCalculationInfo("stackedOnSeries"),B=0;f.useStyle(U(s.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),O&&(B=ug(O.get("smooth"))),f.setShape({smooth:P,stackedOnSmooth:B,smoothMonotone:L,connectNulls:b}),gs(f,t,"areaStyle"),Ta(f).seriesIndex=t.seriesIndex,ds(f,D,A,R)}var z=this._changePolyState;o.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=z)}),this._polyline.onHoverStateChange=z,this._data=o,this._coordSys=i,this._stackedOnPoints=_,this._points=l,this._step=M,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,d),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){Ta(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=ya(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;(s=new Rp(r,o)).x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else og.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=ya(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else og.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;Za(this._polyline,t),e&&Za(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new qp({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Zp({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");nt(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=nt(u)?u(null):u;t.eachItemGraphicEl(function(t,o){var s=t;if(s){var h=[t.x,t.y],d=void 0,f=void 0,p=void 0;if(n)if(r){var g=n,v=e.pointToCoord(h);i?(d=g.startAngle,f=g.endAngle,p=-v[1]/180*Math.PI):(d=g.r0,f=g.r,p=v[0])}else{var m=n;i?(d=m.x,f=m.x+m.width,p=t.x):(d=m.y+m.height,f=m.y,p=t.y)}var y=f===d?0:(p-d)/(f-d);a&&(y=1-y);var _=nt(u)?u(o):l*y+c,x=s.getSymbolPath(),b=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(fg(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new Vo({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e=t.length/2;e>0&&hg(t[2*e-2],t[2*e-1]);e--);return e-1}(a);l>=0&&(ws(o,Ss(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?function(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!et(e))return e+"";for(var i=[],r=0;r<n.length;r++){var o=t.getDimensionIndex(n[r]);o>=0&&i.push(e[o])}return i.join(" ")}(r,n):Ip(r,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=o.get("precision"),f=o.get("distance")||0,p=a.getBaseAxis(),g=p.isHorizontal(),v=p.inverse,m=e.shape,y=v?g?m.x:m.y+m.height:g?m.x+m.width:m.y,_=(g?f:0)*(v?-1:1),x=(g?0:-f)*(v?-1:1),b=g?"x":"y",w=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a]))if(0!==u){if(i<=e&&r>=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(u,y,b),S=w.range,C=S[1]-S[0],M=void 0;if(C>=1){if(C>1&&!h){var T=dg(u,S[0]);s.attr({x:T[0]+_,y:T[1]+x}),r&&(M=c.getRawValue(S[0]))}else{(T=l.getPointOn(y,b))&&s.attr({x:T[0]+_,y:T[1]+x});var k=c.getRawValue(S[0]),I=c.getRawValue(S[1]);r&&(M=function(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if(ot(i))return qo(p=aa(n||0,i,r),o?Math.max(Yo(n||0),Yo(i)):e);if(it(i))return r<1?n:i;for(var a=[],s=n,l=i,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var h=t.getDimensionInfo(c);if(h&&"ordinal"===h.type)a[c]=(r<1&&s?s:l)[c];else{var d=s&&s[c]?s[c]:0,f=l[c],p=aa(d,f,r);a[c]=qo(p,o?Math.max(Yo(d),Yo(f)):e)}}return a}(n,d,k,I,w.t))}i.lastFrameIndex=S[0]}else{var D=1===t||i.lastFrameIndex>0?S[0]:0;T=dg(u,D),r&&(M=c.getRawValue(D)),s.attr({x:T[0]+_,y:T[1]+x})}if(r){var A=As(s);"function"==typeof A.setLabelText&&A.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=function(t,e,n,i,r,o,a){for(var s=function(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}(t,e),l=[],u=[],c=[],h=[],d=[],f=[],p=[],g=Ep(r,e,a),v=t.getLayout("points")||[],m=e.getLayout("points")||[],y=0;y<s.length;y++){var _=s[y],x=!0,b=void 0,w=void 0;switch(_.cmd){case"=":b=2*_.idx,w=2*_.idx1;var S=v[b],C=v[b+1],M=m[w],T=m[w+1];(isNaN(S)||isNaN(C))&&(S=M,C=T),l.push(S,C),u.push(M,T),c.push(n[b],n[b+1]),h.push(i[w],i[w+1]),p.push(e.getRawIndex(_.idx1));break;case"+":var k=_.idx,I=g.dataDimsForPoint,D=r.dataToPoint([e.get(I[0],k),e.get(I[1],k)]);w=2*k,l.push(D[0],D[1]),u.push(m[w],m[w+1]);var A=Np(g,r,e,k);c.push(A[0],A[1]),h.push(i[w],i[w+1]),p.push(e.getRawIndex(k));break;case"-":x=!1}x&&(d.push(_),f.push(f.length))}f.sort(function(t,e){return p[t]-p[e]});var R=l.length,P=Hp(R),L=Hp(R),O=Hp(R),B=Hp(R),z=[];for(y=0;y<f.length;y++){var E=f[y],N=2*y,F=2*E;P[N]=l[F],P[N+1]=l[F+1],L[N]=u[F],L[N+1]=u[F+1],O[N]=c[F],O[N+1]=c[F+1],B[N]=h[F],B[N+1]=h[F+1],z[y]=d[E]}return{current:P,next:L,stackedOnCurrent:O,stackedOnNext:B,status:z}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),h=c.current,d=c.stackedOnCurrent,f=c.next,p=c.stackedOnNext;if(r&&(d=cg(c.stackedOnCurrent,c.current,n,r,a),h=cg(c.current,null,n,r,a),p=cg(c.stackedOnNext,c.next,n,r,a),f=cg(c.next,null,n,r,a)),lg(h,f)>3e3||l&&lg(d,p)>3e3)return s.stopAnimation(),s.setShape({points:f}),void(l&&(l.stopAnimation(),l.setShape({points:f,stackedOnPoints:p})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:f}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),Cf(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),Cf(l,{shape:{stackedOnPoints:p}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],m=c.status,y=0;y<m.length;y++)if("="===m[y].cmd){var _=t.getItemGraphicEl(m[y].idx1);_&&v.push({el:_,ptIdx:y})}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<v.length;e++){var n=v[e].el,i=2*v[e].ptIdx;n.x=t[i],n.y=t[i+1],n.markRedraw()}})},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(og);const vg=gg;var mg={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},yg=function(t){return Math.round(t.length/2)},_g=function(){function t(){this.group=new bd,this.uid=Eu("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();Et(_g),Gt(_g);const xg=_g;var bg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return b(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:Sh.size.m,backgroundColor:Sh.color.transparent,borderColor:Sh.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:Sh.color.primary},subtextStyle:{fontSize:12,color:Sh.color.quaternary}},e}(Jc),wg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return b(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=ft(t.get("textBaseline"),t.get("textVerticalAlign")),l=new Vo({style:Cs(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new Vo({style:Cs(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),f=t.get("sublink"),p=t.get("triggerEvent",!0);l.silent=!d&&!p,h.silent=!f&&!p,d&&l.on("click",function(){Fc(d,"_"+t.get("target"))}),f&&h.on("click",function(){Fc(f,"_"+t.get("subtarget"))}),Ta(l).eventData=Ta(h).eventData=p?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),c&&i.add(h);var g=i.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var m=Uc(v,qc(t,n).refContainer,t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),i.x=m.x,i.y=m.y,i.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),h.setStyle(y),g=i.getBoundingRect();var _=m.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var b=new Mo({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(b)}},e.type="title",e}(xg),Sg={left:0,right:0,top:0,bottom:0},Cg=["25%","25%"];const Mg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e.prototype.mergeDefaultAndTheme=function(e,n){var i=$c(e.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&e.outerBounds&&Zc(e.outerBounds,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&Zc(this.option.outerBounds,e.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:Sg,outerBoundsContain:"all",outerBoundsClampWidth:Cg[0],outerBoundsClampHeight:Cg[1],backgroundColor:Sh.color.transparent,borderWidth:1,borderColor:Sh.color.neutral30},e}(Jc);var Tg=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),kg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Sa).models[0]},e.type="cartesian2dAxis",e}(Jc);X(kg,Tg);var Ig={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:Sh.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:Sh.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Sh.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[Sh.color.backgroundTint,Sh.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Sh.color.neutral00,borderColor:Sh.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},Dg=G({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},Ig),Ag=G({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Sh.color.axisMinorSplitLine,width:1}}},Ig);const Rg={category:Dg,value:Ag,time:G({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Ag),log:U({logBase:10},Ag)};var Pg=0;function Lg(t){return at(t)&&null!=t.value?t.value:t+""}const Og=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Pg,this._onCollect=t.onCollect}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&Z(i,Lg);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!it(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Mt(this.categories))},t}();var Bg={value:1,category:1,time:1,log:1};function zg(t,e,n,i){Y(Bg,function(r,o){var a=G(G({},Rg[o],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return b(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=Yc(this),i=n?$c(t):{};G(t,e.getTheme().get(o+"Axis")),G(t,this.getDefaultOption()),t.type=Eg(t),n&&Zc(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Og.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(t){var e=null;return e?e.updateModelAxisBreak(this,t):{breaks:[]}},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",Eg)}function Eg(t){return t.type||(t.data?"category":"value")}function Ng(t){return"interval"===t.type||"log"===t.type}function Fg(t){var e=Math.pow(10,ta(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,qo(n*e)}function Vg(t){return Yo(t)+2}function Hg(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Gg(t,e){return t>=e[0]&&t<=e[1]}var Wg=function(){function t(){this.normalize=Ug,this.scale=jg}return t.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=J(t.normalize,t),this.scale=J(t.scale,t)):(this.normalize=Ug,this.scale=jg)},t}();function Ug(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function jg(t,e){return t*(e[1]-e[0])+e[0]}function Xg(t,e,n){var i=Math.log(t);return[Math.log(n?e[0]:Math.max(0,e[0]))/i,Math.log(n?e[1]:Math.max(0,e[1]))/i]}var qg=function(){function t(t){this._calculator=new Wg,this._setting=t||{},this._extent=[1/0,-1/0];var e=null;e&&(this._brkCtx=e.createScaleBreakContext(),this._brkCtx.update(this._extent))}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent(t[0]<e[0]?t[0]:e[0],t[1]>e[1]?t[1]:e[1])},t.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},t.prototype._innerSetExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e),this._brkCtx&&this._brkCtx.update(n)},t.prototype.setBreaksFromOption=function(t){var e=null;e&&this._innerSetBreak(e.parseAxisBreakOption(t,J(this.parse,this)))},t.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},t.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.hasBreaks=function(){return!!this._brkCtx&&this._brkCtx.hasBreaks()},t.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Gt(qg);const Yg=qg;var Zg=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Og({})),et(i)&&(i=new Og({categories:Z(i,function(t){return at(t)?t.value:t})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return b(e,t),e.prototype.parse=function(t){return null==t?NaN:it(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return Gg(t,this._extent)&&t>=0&&t<this._ordinalMeta.categories.length},e.prototype.normalize=function(t){return t=this._getTickNumber(t),this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(this._calculator.scale(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Yg);Yg.registerClass(Zg);const $g=Zg;var Kg=qo,Qg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return b(e,t),e.prototype.parse=function(t){return null==t||""===t?NaN:Number(t)},e.prototype.contain=function(t){return Gg(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Vg(t)},e.prototype.getTicks=function(t){t=t||{};var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=null,a=[];if(!e)return a;if("only_break"===t.breakTicks&&o)return o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent),a;n[0]<i[0]&&(t.expandToNicedExtent?a.push({value:Kg(i[0]-e,r)}):a.push({value:n[0]}));for(var s=function(t,n){return Math.round((n-t)/e)},l=i[0];l<=i[1];){if(a.push({value:l}),l=Kg(l+e,r),this._brkCtx){var u=this._brkCtx.calcNiceTickMultiple(l,s);u>=0&&(l=Kg(l+u*e,r))}if(a.length>0&&l===a[a.length-1].value)break;if(a.length>1e4)return[]}var c=a.length?a[a.length-1].value:i[1];return n[1]>c&&(t.expandToNicedExtent?a.push({value:Kg(c+e,r)}):a.push({value:n[1]})),o&&o.pruneTicksByBreak(t.pruneByBreak,a,this._brkCtx.breaks,function(t){return t.value},this._interval,this._extent),"none"!==t.breakTicks&&o&&o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent),a},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),r=1;r<e.length;r++){var o=e[r],a=e[r-1];if(!a.break&&!o.break){for(var s=0,l=[],u=(o.value-a.value)/t,c=Vg(u);s<t-1;){var h=Kg(a.value+(s+1)*u,c);h>i[0]&&h<i[1]&&l.push(h),s++}var d=ec();d&&d.pruneTicksByBreak("auto",l,this._getNonTransBreaks(),function(t){return t},this._interval,i),n.push(l)}}return n},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=Yo(t.value)||0:"auto"===n&&(n=this._intervalPrecision),Rc(Kg(t.value,n,!0))},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent.slice(),r=this._getExtentSpanWithBreaks();if(isFinite(r)){r<0&&(r=-r,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice());var o=function(t,e,n,i,r){var o={},a=o.interval=ea(e/n,!0);null!=i&&a<i&&(a=o.interval=i),null!=r&&a>r&&(a=o.interval=r);var s=o.intervalPrecision=Vg(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Hg(t,0,e),Hg(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(o.niceTickExtent=[qo(Math.ceil(t[0]/a)*a,s),qo(Math.floor(t[1]/a)*a,s)],t),o}(i,r,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent.slice();if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this._innerSetExtent(e[0],e[1]),e=this._extent.slice(),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval,o=this._intervalPrecision;t.fixMin||(e[0]=Kg(Math.floor(e[0]/r)*r,o)),t.fixMax||(e[1]=Kg(Math.ceil(e[1]/r)*r,o)),this._innerSetExtent(e[0],e[1])},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(Yg);Yg.registerClass(Qg);const Jg=Qg;function tv(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function ev(t){return t.dim+t.index}function nv(t){var e=function(t){var e={};Y(t,function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),r=n.dim+"_"+n.index,o=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);e[r]?e[r].push(u):e[r]=[u]}});var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r){r.sort(function(t,e){return t-e});for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}(t),n=[];return Y(t,function(t){var i,r=t.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var a=r.dim+"_"+r.index,s=e[a],l=Math.abs(o[1]-o[0]),u=r.scale.getExtent(),c=Math.abs(u[1]-u[0]);i=s?l/c*s:l}else{var h=t.getData();i=Math.abs(o[1]-o[0])/h.count()}var d=jo(t.get("barWidth"),i),f=jo(t.get("barMaxWidth"),i),p=jo(t.get("barMinWidth")||(function(t){return t.pipelineContext&&t.pipelineContext.large}(t)?.5:1),i),g=t.get("barGap"),v=t.get("barCategoryGap"),m=t.get("defaultBarGap");n.push({bandWidth:i,barWidth:d,barMaxWidth:f,barMinWidth:p,barGap:g,barCategoryGap:v,defaultBarGap:m,axisKey:ev(r),stackId:tv(t)})}),function(t){var e={};Y(t,function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:t.defaultBarGap||0,stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)});var n={};return Y(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=Q(i).length;o=Math.max(35-4*a,15)+"%"}var s=jo(o,r),l=jo(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),Y(i,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width)i=t.width,e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,c--;else{var i=h;e&&e<i&&(i=Math.min(e,u)),n&&n>i&&(i=n),i!==h&&(t.width=i,u-=i+l*i,c--)}}),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,f=0;Y(i,function(t,e){t.width||(t.width=h),d=t,f+=t.width*(1+l)}),d&&(f-=d.width*l);var p=-f/2;Y(i,function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:p,width:t.width},p+=t.width*(1+l)})}),n}(n)}var iv=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return b(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return pc(t.value,lc[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(dc(this._minLevelUnit))]||lc.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC");return function(t,e,n,i,r){var o=null;if(it(n))o=n;else if(nt(n)){var a={time:t.time,level:t.time.level},s=null;s&&s.makeAxisLabelFormatterParamBreak(a,t.break),o=n(t.value,e,a)}else{var l=t.time;if(l){var u=n[l.lowerTimeUnit][l.upperTimeUnit];o=u[Math.min(l.level,u.length-1)]||""}else{var c=gc(t.value,r);o=n[c][c][0]}}return pc(new Date(t.value),o,r,i)}(t,e,n,this.getSetting("locale"),i)},e.prototype.getTicks=function(t){t=t||{};var e=this._interval,n=this._extent,i=null,r=[];if(!e)return r;var o=this.getSetting("useUTC");var a=gc(n[1],o);r.push({value:n[0],time:{level:0,upperTimeUnit:a,lowerTimeUnit:a}});var s=function(t,e,n,i,r,o){var a=cc,s=0;function l(t,e,n,r,a,l,u){for(var c=function(t,e){var n=new Date(0);n[t](1);var i=n.getTime();n[t](1+e);var r=n.getTime()-i;return function(t,e){return Math.max(0,Math.round((e-t)/r))}}(a,t),h=e,d=new Date(h);h<n&&h<=i[1]&&(u.push({value:h}),!(s++>1e4));)if(d[a](d[r]()+t),h=d.getTime(),o){var f=o.calcNiceTickMultiple(h,c);f>0&&(d[a](d[r]()+f*t),h=d.getTime())}u.push({value:h,notAdd:!0})}function u(t,r,o){var a=[],s=!r.length;if(!ov(dc(t),i[0],i[1],n)){s&&(r=[{value:hv(i[0],t,n)},{value:i[1]}]);for(var u=0;u<r.length-1;u++){var c=r[u].value,h=r[u+1].value;if(c!==h){var d=void 0,f=void 0,p=void 0;switch(t){case"year":d=Math.max(1,Math.round(e/ic/365)),f=mc(n),p=Cc(n);break;case"half-year":case"quarter":case"month":d=sv(e),f=yc(n),p=Mc(n);break;case"week":case"half-week":case"day":d=av(e),f=_c(n),p=Tc(n);break;case"half-day":case"quarter-day":case"hour":d=lv(e),f=xc(n),p=kc(n);break;case"minute":d=uv(e,!0),f=bc(n),p=Ic(n);break;case"second":d=uv(e,!1),f=wc(n),p=Dc(n);break;case"millisecond":d=cv(e),f=Sc(n),p=Ac(n)}h>=i[0]&&c<=i[1]&&l(d,c,h,f,p,0,a),"year"===t&&o.length>1&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u<a.length;u++)o.push(a[u])}}for(var c=[],h=[],d=0,f=0,p=0;p<a.length;++p){var g=dc(a[p]);if(fc(a[p])&&(u(a[p],c[c.length-1]||[],h),g!==(a[p+1]?dc(a[p+1]):null))){if(h.length){f=d,h.sort(function(t,e){return t.value-e.value});for(var v=[],m=0;m<h.length;++m){var y=h[m].value;0!==m&&h[m-1].value===y||(v.push(h[m]),y>=i[0]&&y<=i[1]&&d++)}var _=r/e;if(d>1.5*_&&f>_/1.5)break;if(c.push(v),d>_||t===a[p])break}h=[]}}var x=K(Z(c,function(t){return K(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return t.length>0}),b=[],w=x.length-1;for(p=0;p<x.length;++p)for(var S=x[p],C=0;C<S.length;++C){var M=gc(S[C].value,n);b.push({value:S[C].value,time:{level:w-p,upperTimeUnit:M,lowerTimeUnit:M}})}b.sort(function(t,e){return t.value-e.value});var T=[];for(p=0;p<b.length;++p)0!==p&&b[p].value===b[p-1].value||T.push(b[p]);return T}(this._minLevelUnit,this._approxInterval,o,n,this._getExtentSpanWithBreaks(),this._brkCtx);r=r.concat(s);var l=gc(n[1],o);r.push({value:n[1],time:{level:0,upperTimeUnit:l,lowerTimeUnit:l}});this.getSetting("useUTC");var u=uc.length-1,c=0;return Y(r,function(t){u=Math.min(u,j(uc,t.time.upperTimeUnit)),c=Math.max(c,t.time.level)}),r},e.prototype.calcNiceExtent=function(t){var e=this.getExtent();if(e[0]===e[1]&&(e[0]-=ic,e[1]+=ic),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-ic}this._innerSetExtent(e[0],e[1]),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._getExtentSpanWithBreaks();this._approxInterval=i/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var r=rv.length,o=Math.min(function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n}(rv,this._approxInterval,0,r),r-1);this._interval=rv[o][1],this._intervalPrecision=Vg(this._interval),this._minLevelUnit=rv[Math.max(o-1,0)][0]},e.prototype.parse=function(t){return ot(t)?t:+Jo(t)},e.prototype.contain=function(t){return Gg(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.type="time",e}(Jg),rv=[["second",1e3],["minute",6e4],["hour",nc],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",rc/2],["year",rc]];function ov(t,e,n,i){return vc(new Date(e),t,i).getTime()===vc(new Date(n),t,i).getTime()}function av(t,e){return(t/=ic)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function sv(t){return(t/=2592e6)>6?6:t>3?3:t>2?2:1}function lv(t){return(t/=nc)>12?12:t>6?6:t>3.5?4:t>2?2:1}function uv(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function cv(t){return ea(t,!0)}function hv(t,e,n){var i=Math.max(0,j(uc,e)-1);return vc(new Date(t),uc[i],n).getTime()}Yg.registerClass(iv);const dv=iv;var fv=qo,pv=Math.floor,gv=Math.ceil,vv=Math.pow,mv=Math.log,yv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Jg,e}return b(e,t),e.prototype.getTicks=function(e){e=e||{};var n=this._extent.slice(),i=this._originalScale.getExtent(),r=t.prototype.getTicks.call(this,e),o=this.base,a=this._originalScale._innerGetBreaks(),s=null;return Z(r,function(t){var e,r=t.value,l=null,u=vv(o,r);if(r===n[0]&&this._fixMin?l=i[0]:r===n[1]&&this._fixMax&&(l=i[1]),s){var c=s.getTicksLogTransformBreak(t,o,a,_v);e=c.vBreak,null==l&&(l=c.brkRoundingCriterion)}return null!=l&&(u=_v(u,l)),{value:u,break:e}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(e,n){this._originalScale.setExtent(e,n);var i=Xg(this.base,[e,n]);t.prototype.setExtent.call(this,i[0],i[1])},e.prototype.getExtent=function(){var e=this.base,n=t.prototype.getExtent.call(this);n[0]=vv(e,n[0]),n[1]=vv(e,n[1]);var i=this._originalScale.getExtent();return this._fixMin&&(n[0]=_v(n[0],i[0])),this._fixMax&&(n[1]=_v(n[1],i[1])),n},e.prototype.unionExtentFromData=function(t,e){this._originalScale.unionExtentFromData(t,e);var n=Xg(this.base,t.getApproximateExtent(e),!0);this._innerUnionExtent(n)},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(isFinite(n)&&!(n<=0)){var i,r=(i=n,Math.pow(10,ta(i)));for(t/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var o=[fv(gv(e[0]/r)*r),fv(pv(e[1]/r)*r)];this._interval=r,this._intervalPrecision=Vg(r),this._niceExtent=o}},e.prototype.calcNiceExtent=function(e){t.prototype.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},e.prototype.contain=function(e){return e=mv(e)/mv(this.base),t.prototype.contain.call(this,e)},e.prototype.normalize=function(e){return e=mv(e)/mv(this.base),t.prototype.normalize.call(this,e)},e.prototype.scale=function(e){return e=t.prototype.scale.call(this,e),vv(this.base,e)},e.prototype.setBreaksFromOption=function(t){var e=null;if(e){var n=e.logarithmicParseBreaksFromOption(t,this.base,J(this.parse,this)),i=n.parsedOriginal,r=n.parsedLogged;this._originalScale._innerSetBreak(i),this._innerSetBreak(r)}},e.type="log",e}(Jg);function _v(t,e){return fv(t,Yo(e))}Yg.registerClass(yv);const xv=yv;var bv=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var r=e.get("min",!0);null==r&&(r=e.get("startValue",!0));var o=this._modelMinRaw=r;nt(o)?this._modelMinNum=Cv(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=Cv(t,o));var a=this._modelMaxRaw=e.get("max",!0);if(nt(a)?this._modelMaxNum=Cv(t,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=Cv(t,a)),i)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=et(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Ve(l[0],1),Ve(l[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?i?0:NaN:e-r[0]*o),null==s&&(s=t?i?i-1:NaN:n+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=ht(a)||ht(s)||t&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(a=h,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[Sv[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[wv[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),wv={min:"_determinedMin",max:"_determinedMax"},Sv={min:"_dataMin",max:"_dataMax"};function Cv(t,e){return null==e?null:ht(e)?NaN:t.parse(e)}function Mv(t,e){var n=t.type,i=function(t,e,n){var i=t.rawExtentInfo;return i||(i=new bv(t,e,n),t.rawExtentInfo=i,i)}(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=function(t,e){var n=[];return e.eachSeriesByType(t,function(t){(function(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type})(t)&&n.push(t)}),n}("bar",a),l=!1;if(Y(s,function(t){l=l||t.getBaseAxis()===e.axis}),l){var u=nv(s),c=function(t,e,n,i){var r=n.axis.getExtent(),o=Math.abs(r[1]-r[0]),a=function(t,e){if(t&&e){var n=t[ev(e)];return n}}(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;Y(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;Y(a,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=c/(1-(s+l)/o)-c;return{min:t-=h*(s/u),max:e+=h*(l/u)}}(r,o,e,u);r=c.min,o=c.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function Tv(t,e){var n=e,i=Mv(t,n),r=i.extent,o=n.get("splitNumber");t instanceof xv&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setBreaksFromOption(Lv(n)),t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function kv(t){var e,n=t.getLabelModel().get("formatter");if("time"===t.type){var i=it(e=n)||nt(e)?e:function(t){t=t||{};var e={},n=!0;return Y(uc,function(e){n&&(n=null==t[e])}),Y(uc,function(i,r){var o=t[i];e[i]={};for(var a=null,s=r;s>=0;s--){var l=uc[s],u=at(o)&&!et(o)?o[l]:o,c=void 0;et(u)?a=(c=u.slice())[0]||"":it(u)?c=[a=u]:(null==a?a=ac[i]:oc[l].test(a)||(a=e[l][l][0]+" "+a),c=[a],n&&(c[1]="{primary|"+a+"}")),e[i][l]=c}}),e}(e);return function(e,n){return t.scale.getFormattedLabel(e,n,i)}}if(it(n))return function(e){var i=t.scale.getLabel(e);return n.replace("{value}",null!=i?i:"")};if(nt(n)){if("category"===t.type)return function(e,i){return n(Iv(t,e),e.value-t.scale.getExtent()[0],null)};var r=null;return function(e,i){var o=null;return r&&(o=r.makeAxisLabelFormatterParamBreak(o,e.break)),n(Iv(t,e),i,o)}}return function(e){return t.scale.getLabel(e)}}function Iv(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Dv(t){var e=t.get("interval");return null==e?"auto":e}function Av(t){return"category"===t.type&&0===Dv(t.getLabelModel())}function Rv(t){return"middle"===t||"center"===t}function Pv(t){return t.getShallow("show")}function Lv(t){t.get("breaks",!0)}var Ov=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return Z(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),K(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),Bv=["x","y"];function zv(t){return("interval"===t.type||"time"===t.type)&&!t.hasBreaks()}var Ev=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Bv,e}return b(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(zv(t)&&zv(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,h=r[1]-i[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=le([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new De(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return gn(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e,n){if(n=n||[],this._invTransform)return gn(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,r=Math.min(n[0],n[1])-t,o=Math.max(e[0],e[1])-i+t,a=Math.max(n[0],n[1])-r+t;return new De(i,r,o,a)},e}(Ov);const Nv=Ev;var Fv=_a(),Vv=_a();function Hv(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function Gv(t,e){var n=Z(e,function(e){return t.scale.parse(e)});return"time"===t.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function Wv(t,e,n){var i,r,o=jv(t),a=Dv(e),s=1===n.kind;if(!s){var l=qv(o,a);if(l)return l}nt(a)?i=Qv(t,a):(r="auto"===a?function(t,e){if(1===e.kind){var n=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Vv(t).autoInterval=n,!0}),n}var i=Vv(t).autoInterval;return null!=i?i:Vv(t).autoInterval=t.calculateCategoryInterval(e)}(t,n):a,i=Kv(t,r));var u={labels:i,labelCategoryInterval:r};return s?n.out.noPxChangeTryDetermine.push(function(){return Yv(o,a,u),!0}):Yv(o,a,u),u}var Uv=Xv("axisTick"),jv=Xv("axisLabel");function Xv(t){return function(e){return Vv(e)[t]||(Vv(e)[t]={list:[]})}}function qv(t,e){for(var n=0;n<t.list.length;n++)if(t.list[n].key===e)return t.list[n].value}function Yv(t,e,n){return t.list.push({key:e,value:n}),n}function Zv(t,e,n){return null==$v(t,e,n)}function $v(t,e,n){var i=Fv(t.model),r=t.getExtent(),o=i.lastAutoInterval,a=i.lastTickCount;if(null!=o&&null!=a&&Math.abs(o-e)<=1&&Math.abs(a-n)<=1&&o>e&&i.axisExtent0===r[0]&&i.axisExtent1===r[1])return o;i.lastTickCount=n,i.lastAutoInterval=e,i.axisExtent0=r[0],i.axisExtent1=r[1]}function Kv(t,e,n){var i=kv(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=r.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=Av(t),d=a.get("showMinLabel")||h,f=a.get("showMaxLabel")||h;d&&u!==o[0]&&g(o[0]);for(var p=u;p<=o[1];p+=l)g(p);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t,time:void 0,break:void 0})}return f&&p-l!==o[1]&&g(o[1]),s}function Qv(t,e,n){var i=t.scale,r=kv(t),o=[];return Y(i.getTicks(),function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s,time:void 0,break:void 0})}),o}var Jv=[0,1],tm=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return function(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Wo(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(i.parse(t)),this.onBand&&"ordinal"===i.type&&em(n=n.slice(),i.count()),Uo(t,Jv,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&em(n=n.slice(),i.count());var r=Uo(t,n,Jv,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=Z(function(t,e,n){var i=t.getTickModel().get("customValues");if(i){var r=t.scale.getExtent();return{ticks:K(Gv(t,i),function(t){return t>=r[0]&&t<=r[1]})}}return"category"===t.type?function(t,e){var n,i,r=Uv(t),o=Dv(e),a=qv(r,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),nt(o))n=Qv(t,o,!0);else if("auto"===o){var s=Wv(t,t.getLabelModel(),Hv(2));i=s.labelCategoryInterval,n=Z(s.labels,function(t){return t.tickValue})}else n=Kv(t,i=o,!0);return Yv(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:Z(t.scale.getTicks(n),function(t){return t.value})}}(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return function(t,e,n,i){var r=e.length;if(t.onBand&&!n&&r){var o,a,s=t.getExtent();if(1===r)e[0].coord=s[0],e[0].onBand=!0,o=e[1]={coord:s[1],tickValue:e[0].tickValue,onBand:!0};else{var l=e[r-1].tickValue-e[0].tickValue,u=(e[r-1].coord-e[0].coord)/l;Y(e,function(t){t.coord-=u/2,t.onBand=!0});var c=t.scale.getExtent();a=1+c[1]-e[r-1].tickValue,o={coord:e[r-1].coord+u*a,tickValue:c[1]+1,onBand:!0},e.push(o)}var h=s[0]>s[1];d(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift()),i&&d(s[0],e[0].coord)&&e.unshift({coord:s[0],onBand:!0}),d(s[1],o.coord)&&(i?o.coord=s[1]:e.pop()),i&&d(o.coord,s[1])&&e.push({coord:s[1],onBand:!0})}function d(t,e){return t=qo(t),e=qo(e),h?t>e:t<e}}(this,n,e.get("alignWithLabel"),t.clamp),n},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),Z(this.scale.getMinorTicks(t),function(t){return Z(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(t){return function(t,e){var n=t.getLabelModel().get("customValues");if(n){var i=kv(t),r=t.scale.getExtent();return{labels:Z(K(Gv(t,n),function(t){return t>=r[0]&&t<=r[1]}),function(e){var n={value:e};return{formattedLabel:i(n),rawLabel:t.scale.getLabel(n),tickValue:e,time:void 0,break:void 0}})}}return"category"===t.type?function(t,e){var n=t.getLabelModel(),i=Wv(t,n,e);return!n.get("show")||t.scale.isBlank()?{labels:[]}:i}(t,e):function(t){var e=t.scale.getTicks(),n=kv(t);return{labels:Z(e,function(e,i){return{formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value,time:e.time,break:e.break}})}}(t)}(this,t=t||Hv(2)).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(t){return function(t,e){var n=e.kind,i=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),r=kv(t),o=(i.axisRotate-i.labelRotate)/180*Math.PI,a=t.scale,s=a.getExtent(),l=a.count();if(s[1]-s[0]<1)return 0;var u=1;l>40&&(u=Math.max(1,Math.floor(l/40)));for(var c=s[0],h=t.dataToCoord(c+1)-t.dataToCoord(c),d=Math.abs(h*Math.cos(o)),f=Math.abs(h*Math.sin(o)),p=0,g=0;c<=s[1];c+=u){var v,m,y=ze(r({value:c}),i.font,"center","top");v=1.3*y.width,m=1.3*y.height,p=Math.max(p,v,7),g=Math.max(g,m,7)}var _=p/d,x=g/f;isNaN(_)&&(_=1/0),isNaN(x)&&(x=1/0);var b=Math.max(0,Math.floor(Math.min(_,x)));if(1===n)return e.out.noPxChangeTryDetermine.push(J(Zv,null,t,b,l)),b;var w=$v(t,b,l);return null!=w?w:b}(this,t=t||Hv(2))},t}();function em(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var nm=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return b(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(tm);const im=nm;var rm=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"];function om(t,e,n){n=n||3,e?t.dirty|=n:t.dirty&=~n}function am(t,e){return e=e||3,null==t.dirty||!!(t.dirty&e)}function sm(t){if(t)return am(t)&&function(t,e,n){var i=e.getComputedTransform();t.transform=dp(t.transform,i);var r=t.localRect=hp(t.localRect,e.getBoundingRect()),o=e.style,a=o.margin,s=n&&n.marginForce,l=n&&n.minMarginForce,u=n&&n.marginDefault,c=o.__marginType;null==c&&u&&(a=u,c=Rs.textMargin);for(var h=0;h<4;h++)lm[h]=c===Rs.minMargin&&l&&null!=l[h]?l[h]:s&&null!=s[h]?s[h]:a?a[h]:0;c===Rs.textMargin&&ip(r,lm,!1,!1);var d=t.rect=hp(t.rect,r);i&&d.applyTransform(i),c===Rs.minMargin&&ip(d,lm,!1,!1),t.axisAligned=up(i),(t.label=t.label||{}).ignore=e.ignore,om(t,!1),om(t,!0,2)}(t,t.label,t),t}var lm=[0,0,0,0];function um(t,e){for(var n=0;n<rm.length;n++){var i=rm[n];null==t[i]&&(t[i]=e[i])}return sm(t)}function cm(t){var e=t.obb;return e&&!am(t,2)||(t.obb=e=e||new _f,e.fromBoundingRect(t.localRect,t.transform),om(t,!1,2)),e}function hm(t,e,n,i){return!(!t||!e)&&!(t.label&&t.label.ignore||e.label&&e.label.ignore)&&!!t.rect.intersect(e.rect,n,i)&&(!(!t.axisAligned||!e.axisAligned)||cm(t).intersect(cm(e),n,i))}var dm=Math.PI,fm=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],pm=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],gm=_a(),vm=_a(),mm=function(){function t(t){this.recordMap={},this.resolveAxisNameOverlap=t}return t.prototype.ensureRecord=function(t){var e=t.axis.dim,n=t.componentIndex,i=this.recordMap,r=i[e]||(i[e]=[]);return r[n]||(r[n]={ready:{}})},t}(),ym=[1,0,0,1,0,0],_m=new De(0,0,0,0),xm=function(t,e,n,i,r,o){if(Rv(t.nameLocation)){var a=o.stOccupiedRect;a&&bm(function(t,e,n){return t.transform=dp(t.transform,n),t.localRect=hp(t.localRect,e),t.rect=hp(t.rect,e),n&&t.rect.applyTransform(n),t.axisAligned=up(n),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}({},a,o.transGroup.transform),i,r)}else wm(o.labelInfoList,o.dirVec,i,r)};function bm(t,e,n){var i=new ce;hm(t,e,i,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&function(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var n=t.transform;n&&(n[4]+=e.x,n[5]+=e.y);var i=t.rect;i&&(i.x+=e.x,i.y+=e.y);var r=t.obb;r&&r.fromBoundingRect(t.localRect,n)}}(e,i)}function wm(t,e,n,i){for(var r=ce.dot(i,e)>=0,o=0,a=t.length;o<a;o++){var s=t[r?o:a-1-o];s.label.ignore||bm(s,n,i)}}var Sm=function(){function t(t,e,n,i){this.group=new bd,this._axisModel=t,this._api=e,this._local={},this._shared=i||new mm(xm),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(t){var e=this._axisModel,n=e.getDefaultOption?e.getDefaultOption():{},i=ft(t.axisName,e.get("name")),r=e.get("nameMoveOverlap");null!=r&&"auto"!==r||(r=ft(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:ft(t.nameDirection,1),tickDirection:ft(t.tickDirection,1),labelDirection:ft(t.labelDirection,1),labelOffset:ft(t.labelOffset,0),silent:ft(t.silent,!0),axisName:i,nameLocation:pt(e.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:Om(i)&&r,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=o;var a=new bd({x:o.position[0],y:o.position[1],rotation:o.rotation});a.updateTransform(),this._transformGroup=a;var s=this._shared.ensureRecord(e);s.transGroup=this._transformGroup,s.dirVec=new ce(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(t,e){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),Y(Cm,function(i){t[i]&&Mm[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,e||{})}),this},t.innerTextLayout=function(t,e,n){var i,r,o=$o(e-t);return Ko(o)?(r=n>0?"top":"bottom",i="center"):Ko(o-dm)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<dm?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),Cm=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],Mm={axisLine:function(t,e,n,i,r,o,a){var s=i.get(["axisLine","show"]);if("auto"===s&&(s=!0,null!=t.raw.axisLineAutoShow&&(s=!!t.raw.axisLineAutoShow)),s){var l=i.axis.getExtent(),u=o.transform,c=[l[0],0],h=[l[1],0],d=c[0]>h[0];u&&(gn(c,c,u),gn(h,h,u));var f=W({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),p={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:f};if(i.get(["axisLine","breakLine"])&&i.axis.scale.hasBreaks())null.buildAxisBreakLine(i,r,o,p);else{var g=new Jh(W({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]}},p));Wf(g.shape,g.style.lineWidth),g.anid="line",r.add(g)}var v=i.get(["axisLine","symbol"]);if(null!=v){var m=i.get(["axisLine","symbolSize"]);it(v)&&(v=[v,v]),(it(m)||ot(m))&&(m=[m,m]);var y=Tp(i.get(["axisLine","symbolOffset"])||0,m),_=m[0],x=m[1];Y([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((c[0]-h[0])*(c[0]-h[0])+(c[1]-h[1])*(c[1]-h[1]))}],function(e,n){if("none"!==v[n]&&null!=v[n]){var i=Mp(v[n],-_/2,-x/2,_,x,f.stroke,!0),o=e.r+e.offset,a=d?h:c;i.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),r.add(i)}})}}},axisTickLabelEstimate:function(t,e,n,i,r,o,a,s){Dm(e,r,s)&&Tm(t,e,n,i,r,o,a,1)},axisTickLabelDetermine:function(t,e,n,i,r,o,a,s){Dm(e,r,s)&&Tm(t,e,n,i,r,o,a,2);var l=function(t,e,n,i){var r=i.axis,o=i.getModel("axisTick"),a=o.get("show");if("auto"===a&&(a=!0,null!=t.raw.axisTickAutoShow&&(a=!!t.raw.axisTickAutoShow)),!a||r.scale.isBlank())return[];for(var s=o.getModel("lineStyle"),l=t.tickDirection*o.get("length"),u=Im(r.getTicksCoords(),n.transform,l,U(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)e.add(u[c]);return u}(t,r,o,i);!function(t,e,n){t.showMinorTicks||Y(e,function(t){if(t&&t.label.ignore)for(var e=0;e<n.length;e++){var i=n[e],r=vm(i),o=gm(t.label);if(null!=r.tickValue&&!r.onBand&&r.tickValue===o.tickValue)return void km(i)}})}(t,e.labelLayoutList,l),function(t,e,n,i,r){var o=i.axis,a=i.getModel("minorTick");if(t.showMinorTicks&&!o.scale.isBlank()){var s=o.getMinorTicksCoords();if(s.length)for(var l=a.getModel("lineStyle"),u=r*a.get("length"),c=U(l.getLineStyle(),U(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var d=Im(s[h],n.transform,u,c,"minorticks_"+h),f=0;f<d.length;f++)e.add(d[f])}}(t,r,o,i,t.tickDirection)},axisName:function(t,e,n,i,r,o,a,s){var l=n.ensureRecord(i);e.nameEl&&(r.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=t.axisName;if(Om(u)){var c=t.nameLocation,h=t.nameDirection,d=i.getModel("nameTextStyle"),f=i.get("nameGap")||0,p=i.axis.getExtent(),g=i.axis.inverse?-1:1,v=new ce(0,0),m=new ce(0,0);"start"===c?(v.x=p[0]-g*f,m.x=-g):"end"===c?(v.x=p[1]+g*f,m.x=g):(v.x=(p[0]+p[1])/2,v.y=t.labelOffset+h*f,m.y=h);var y=[1,0,0,1,0,0];m.transform(se(y,y,t.rotation));var _,x,b=i.get("nameRotate");null!=b&&(b=b*dm/180),Rv(c)?_=Sm.innerTextLayout(t.rotation,null!=b?b:t.rotation,h):(_=function(t,e,n,i){var r,o,a=$o(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return Ko(a-dm/2)?(o=l?"bottom":"top",r="center"):Ko(a-1.5*dm)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*dm&&a>dm/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,c,b||0,p),null!=(x=t.raw.axisNameAvailableWidth)&&(x=Math.abs(x/Math.sin(_.rotation)),!isFinite(x)&&(x=null)));var w=d.getFont(),S=i.get("nameTruncate",!0)||{},C=S.ellipsis,M=dt(t.raw.nameTruncateMaxWidth,S.maxWidth,x),T=s.nameMarginLevel||0,k=new Vo({x:v.x,y:v.y,rotation:_.rotation,silent:Sm.isLabelSilent(i),style:Cs(d,{text:u,font:w,overflow:"truncate",width:M,ellipsis:C,fill:d.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:d.get("align")||_.textAlign,verticalAlign:d.get("verticalAlign")||_.textVerticalAlign}),z2:1});if(ap({el:k,componentModel:i,itemName:u}),k.__fullText=u,k.anid="name",i.get("triggerEvent")){var I=Sm.makeAxisEventDataBase(i);I.targetType="axisName",I.name=u,Ta(k).eventData=I}o.add(k),k.updateTransform(),e.nameEl=k;var D=l.nameLayout=sm({label:k,priority:k.z2,defaultAttr:{ignore:k.ignore},marginDefault:Rv(c)?fm[T]:pm[T]});if(l.nameLocation=c,r.add(k),k.decomposeTransform(),t.shouldNameMoveOverlap&&D){var A=n.ensureRecord(i);n.resolveAxisNameOverlap(t,n,i,D,m,A)}}}};function Tm(t,e,n,i,r,o,a,s){Am(e)||function(t,e,n,i,r,o){var a=r.axis,s=dt(t.raw.axisLabelShow,r.get(["axisLabel","show"])),l=new bd;n.add(l);var u=Hv(i);if(s&&!a.scale.isBlank()){var c=r.getModel("axisLabel"),h=a.getViewLabels(u),d=(dt(t.raw.labelRotate,c.get("rotate"))||0)*dm/180,f=Sm.innerTextLayout(t.rotation,d,t.labelDirection),p=r.getCategories&&r.getCategories(!0),g=[],v=r.get("triggerEvent"),m=1/0,y=-1/0;Y(h,function(t,e){var n,i="ordinal"===a.scale.type?a.scale.getRawOrdinalNumber(t.tickValue):t.tickValue,s=t.formattedLabel,u=t.rawLabel,d=c;if(p&&p[i]){var _=p[i];at(_)&&_.textStyle&&(d=new js(_.textStyle,c,r.ecModel))}var x=d.getTextColor()||r.get(["axisLine","lineStyle","color"]),b=d.getShallow("align",!0)||f.textAlign,w=ft(d.getShallow("alignMinLabel",!0),b),S=ft(d.getShallow("alignMaxLabel",!0),b),C=d.getShallow("verticalAlign",!0)||d.getShallow("baseline",!0)||f.textVerticalAlign,M=ft(d.getShallow("verticalAlignMinLabel",!0),C),T=ft(d.getShallow("verticalAlignMaxLabel",!0),C),k=10+((null===(n=t.time)||void 0===n?void 0:n.level)||0);m=Math.min(m,k),y=Math.max(y,k);var I=new Vo({x:0,y:0,rotation:0,silent:Sm.isLabelSilent(r),z2:k,style:Cs(d,{text:s,align:0===e?w:e===h.length-1?S:b,verticalAlign:0===e?M:e===h.length-1?T:C,fill:nt(x)?x("category"===a.type?u:"value"===a.type?i+"":i,e):x})});I.anid="label_"+i;var D=gm(I);if(D.break=t.break,D.tickValue=i,D.layoutRotation=f.rotation,ap({el:I,componentModel:r,itemName:s,formatterParamsExtra:{isTruncated:function(){return I.isTruncated},value:u,tickIndex:e}}),v){var A=Sm.makeAxisEventDataBase(r);A.targetType="axisLabel",A.value=u,A.tickIndex=e,t.break&&(A.break={start:t.break.parsedBreak.vmin,end:t.break.parsedBreak.vmax}),"category"===a.type&&(A.dataIndex=i),Ta(I).eventData=A,t.break&&function(t,e,n,i){n.on("click",function(n){var r={type:"expandAxisBreak",breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};r[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(r)})}(r,o,I,t.break)}g.push(I),l.add(I)}),Rm(e,Z(g,function(t){return{label:t,priority:gm(t).break?t.z2+(y-m+1):t.z2,defaultAttr:{ignore:t.ignore}}}),l,u)}else Rm(e,[],l,u)}(t,e,r,s,i,a);var l=e.labelLayoutList;!function(t,e,n,i){var r=e.get(["axisLabel","margin"]);Y(n,function(n,o){var a=sm(n);if(a){var s=a.label,l=gm(s);a.suggestIgnore=s.ignore,s.ignore=!1,Tn(Pm,Lm),Pm.x=e.axis.dataToCoord(l.tickValue),Pm.y=t.labelOffset+t.labelDirection*r,Pm.rotation=l.layoutRotation,i.add(Pm),Pm.updateTransform(),i.remove(Pm),Pm.decomposeTransform(),Tn(s,Pm),s.markRedraw(),om(a,!0),sm(a)}})}(t,i,l,o),function(t,e,n){var i=null;if(i){var r=i.retrieveAxisBreakPairs(n,function(t){return t&&gm(t.label).break},!0),o=t.get(["breakLabelLayout","moveOverlap"],!0);!0!==o&&"auto"!==o||Y(r,function(i){null.adjustBreakLabelPair(t.axis.inverse,e,[sm(n[i[0]]),sm(n[i[1]])])})}}(i,t.rotation,l);var u=t.optionHideOverlap;!function(t,e,n){if(!Av(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]),o=e.length;a(i,0,1),a(r,o-1,o-2)}function a(t,i,r){var o=sm(e[i]),a=sm(e[r]);if(o&&a)if(!1===t||o.suggestIgnore)km(o.label);else if(a.suggestIgnore)km(a.label);else{if(!n){var s=[0,0,0,0];o=um({marginForce:s},o),a=um({marginForce:s},a)}hm(o,a,null,{touchThreshold:.1})&&km(t?a.label:o.label)}}}(i,l,u),u&&function(t){var e=[];function n(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}t.sort(function(t,e){return(e.suggestIgnore?1:0)-(t.suggestIgnore?1:0)||e.priority-t.priority});for(var i=0;i<t.length;i++){var r=sm(t[i]);if(!r.label.ignore){for(var o=r.label,a=r.labelLine,s=!1,l=0;l<e.length;l++)if(hm(r,e[l],null,{touchThreshold:.05})){s=!0;break}s?(n(o),a&&n(a)):e.push(r)}}}(K(l,function(t){return t&&!t.label.ignore})),function(t,e,n,i){var r,o=n.axis,a=e.ensureRecord(n),s=[],l=Om(t.axisName)&&Rv(t.nameLocation);Y(i,function(t){var e=sm(t);if(e&&!e.label.ignore){s.push(e);var n=a.transGroup;l&&(n.transform?le(ym,n.transform):ie(ym),e.transform&&oe(ym,ym,e.transform),De.copy(_m,e.localRect),_m.applyTransform(ym),r?r.union(_m):De.copy(r=new De(0,0,0,0),_m))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",c=a.transGroup[u];if(s.sort(function(t,e){return Math.abs(t.label[u]-c)-Math.abs(e.label[u]-c)}),l&&r){var h=o.getExtent(),d=Math.min(h[0],h[1]),f=Math.max(h[0],h[1])-d;r.union(new De(d,0,f,1))}a.stOccupiedRect=r,a.labelInfoList=s}(t,n,i,l)}function km(t){t&&(t.ignore=!0)}function Im(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(gn(a,a,e),gn(s,s,e));var c=new Jh({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Wf(c.shape,c.style.lineWidth),c.anid=r+"_"+t[l].tickValue,o.push(c);var h=vm(c);h.onBand=!!t[l].onBand,h.tickValue=t[l].tickValue}return o}function Dm(t,e,n){if(Am(t)){var i=t.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var r=!0,o=0;o<i.length;o++)r=r&&i[o]();if(r)return!1}i.length&&(e.remove(t.labelGroup),Rm(t,null,null,null))}return!0}function Am(t){return!!t.labelLayoutList}function Rm(t,e,n,i){t.labelLayoutList=e,t.labelGroup=n,t.axisLabelsCreationContext=i}var Pm=new Mo,Lm=new Mo;function Om(t){return!!t}const Bm=Sm;function zm(t,e,n){n=n||{};var i=e.axis,r={},o=i.getAxesOnZeroOf()[0],a=i.position,s=o?"onZero":a,l=i.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],c={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,d="x"===l?[u[2]-h,u[3]+h]:[u[0]-h,u[1]+h];if(o){var f=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(f,d[1]),d[0])}r.position=["y"===l?d[c[s]]:u[0],"x"===l?d[c[s]]:u[3]],r.rotation=Math.PI/2*("x"===l?0:1),r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],r.labelOffset=o?d[c[a]]-d[c.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),dt(n.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var p=e.get(["axisLabel","rotate"]);return r.labelRotate="top"===s?-p:p,r.z2=1,r}function Em(t){var e={xAxisModel:null,yAxisModel:null};return Y(e,function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,Sa).models[0];e[i]=o}),e}var Nm=[[3,1],[0,2]],Fm=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Bv,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=Q(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;Ng(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(Tv(l,s),Ng(l)&&(e=a))}r.length&&(e||Tv((e=r.pop()).scale,e.model),Y(r,function(t){!function(t,e,n){var i=Jg.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,{expandToNicedExtent:!0}),a=r.length-1,s=i.getInterval.call(n),l=Mv(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;"log"===t.type&&(u=Xg(t.base,u,!0)),t.setBreaksFromOption(Lv(e)),t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var d=i.getExtent.call(t);c&&(u[0]=d[0]),h&&(u[1]=d[1]);var f=i.getInterval.call(t),p=u[0],g=u[1];if(c&&h)f=(g-p)/a;else if(c)for(g=u[0]+f*a;g<u[1]&&isFinite(g)&&isFinite(u[1]);)f=Fg(f),g=u[0]+f*a;else if(h)for(p=u[1]-f*a;p>u[0]&&isFinite(p)&&isFinite(u[0]);)f=Fg(f),p=u[1]-f*a;else{t.getTicks().length-1>a&&(f=Fg(f));var v=f*a;(p=qo((g=Math.ceil(u[1]/f)*f)-v))<0&&u[0]>=0?(p=0,g=qo(v)):g>0&&u[1]<=0&&(g=0,p=-qo(v))}var m=(r[0].value-o[0].value)/s,y=(r[a].value-o[a].value)/s;i.setExtent.call(t,p+f*m,g+f*y),i.setInterval.call(t,f),(m||y)&&i.setNiceExtent.call(t,p+f,g-f)}(t.scale,t.model,e.scale)}))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};Y(n.x,function(t){Hm(n,"y",t,r)}),Y(n.y,function(t){Hm(n,"x",t,r)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=qc(t,e),r=this._rect=Uc(t.getBoxLayoutParams(),i.refContainer),o=this._axesMap,a=this._coordsList,s=t.get("containLabel");if(Wm(o,r),!n){var l=function(t,e,n,i,r){var o=new mm(qm);return Y(n,function(n){return Y(n,function(n){if(Pv(n.model)){var a=!i;n.axisBuilder=function(t,e,n,i,r,o){for(var a=zm(t,n),s=!1,l=!1,u=0;u<e.length;u++)Ng(e[u].getOtherAxis(n.axis).scale)&&(s=l=!0,"category"===n.axis.type&&n.axis.onBand&&(l=!1));return a.axisLineAutoShow=s,a.axisTickAutoShow=l,a.defaultNameMoveOverlap=o,new Bm(n,i,a,r)}(t,e,n.model,r,o,a)}})}),o}(r,a,o,s,e),u=void 0;if(s)u=jm(r.clone(),"axisLabel",null,r,o,l,i);else{var c=function(t,e,n){var i,r=t.get("outerBoundsMode",!0);"same"===r?i=e.clone():null!=r&&"auto"!==r||(i=Uc(t.get("outerBounds",!0)||Sg,n.refContainer));var o=t.get("outerBoundsContain",!0);return{outerBoundsRect:i,parsedOuterBoundsContain:null==o||"auto"===o||j(["all","axisLabel"],o)<0?"all":o,outerBoundsClamp:[Xo(ft(t.get("outerBoundsClampWidth",!0),Cg[0]),e.width),Xo(ft(t.get("outerBoundsClampHeight",!0),Cg[1]),e.height)]}}(t,r,i),h=c.outerBoundsRect,d=c.parsedOuterBoundsContain,f=c.outerBoundsClamp;h&&(u=jm(h,d,f,r,o,l,i))}Xm(r,o,2,null,u,i)}Y(this._coordsList,function(t){t.calcAffineTransform()})},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}at(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",Sa).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",Sa).models[0],a=t.gridModel,s=this._coordsList;return i?j(s,e=i.coordinateSystem)<0&&(e=null):r&&o?e=this.getCartesian(r.componentIndex,o.componentIndex):r?n=this.getAxis("x",r.componentIndex):o?n=this.getAxis("y",o.componentIndex):a&&a.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,i){if(Vm(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new im(e,function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new $g({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new dv({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Yg.getClass(e)||Jg)}}(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),a[e][i]=u,s[e]++}}}this._axesMap=a,Y(a.x,function(e,n){Y(a.y,function(r,o){var a="x"+n+"y"+o,s=new Nv(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)})})},t.prototype._updateScale=function(t,e){function n(t,e){Y(function(t,e){var n={};return Y(t.mapDimensionsAll(e),function(e){n[function(t,e){return Ou(t,e)?t.getCalculationInfo("stackResultDimension"):e}(t,e)]=!0}),Q(n)}(t,e.dim),function(n){e.scale.unionExtentFromData(t,n)})}Y(this._axesList,function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}}),t.eachSeries(function(t){if(function(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}(t)){var i=Em(t),r=i.xAxisModel,o=i.yAxisModel;if(!Vm(r,e)||!Vm(o,e))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}},this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return Y(this.getCartesians(),function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);j(e,r)<0&&e.push(r),j(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)}),e.eachSeries(function(t){!function(t){var e=t.targetModel,n=t.coordSysType,i=t.coordSysProvider,r=t.isDefaultDataCoordSys,o=function(t){var e=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=0;if(e){var r="series"===t.mainType;null==n&&(n=r?"data":"box"),"data"===n?(i=1,r||(i=0)):"box"===n&&(i=2,r||function(t){return!!Tu[t]}(e)||(i=0))}return{coordSysType:e,kind:i}}(e),a=o.kind,s=o.coordSysType;if(r&&1!==a&&(a=1,s=n),0===a||s!==n)return!1;var l=i(n,e);l&&(1===a?e.coordinateSystem=l:e.boxCoordinateSystem=l)}({targetModel:t,coordSysType:"cartesian2d",coordSysProvider:function(){var e=Em(t),n=e.xAxisModel,i=e.yAxisModel;return n.getCoordSysModel().coordinateSystem.getCartesian(n.componentIndex,i.componentIndex)}})}),i},t.dimensions=Bv,t}();function Vm(t,e){return t.getCoordSysModel()===e}function Hm(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)Gm(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&Gm(o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0)}function c(t){return t.dim+"_"+t.index}}function Gm(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}(t)}function Wm(t,e){Y(t.x,function(t){return Um(t,e.x,e.width)}),Y(t.y,function(t){return Um(t,e.y,e.height)})}function Um(t,e,n){var i=[0,n],r=t.inverse?1:0;t.setExtent(i[r],i[1-r]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e)}function jm(t,e,n,i,r,o,a){Xm(i,r,1,e,!1,a);var s=[0,0,0,0];u(0),u(1),c(i,0,NaN),c(i,1,NaN);var l=null==function(t,e){if(t&&e)for(var n=0,i=t.length;n<i;n++)if(e.call(undefined,t[n],n,t))return t[n]}(s,function(t){return t>0});return ip(i,s,!0,!0,n),Wm(r,i),l;function u(t){Y(r[Rf[t]],function(e){if(Pv(e.model)){var n=o.ensureRecord(e.model),i=n.labelInfoList;if(i)for(var r=0;r<i.length;r++){var a=i[r],s=e.scale.normalize(gm(a.label).tickValue);s=1===t?1-s:s,c(a.rect,t,s),c(a.rect,1-t,NaN)}var l=n.nameLayout;l&&(s=Rv(n.nameLocation)?.5:NaN,c(l.rect,t,s),c(l.rect,1-t,NaN))}})}function c(e,n,i){var r=t[Rf[n]]-e[Rf[n]],o=e[Pf[n]]+e[Rf[n]]-(t[Pf[n]]+t[Rf[n]]);r=h(r,1-i),o=h(o,i);var a=Nm[n][0],l=Nm[n][1];s[a]=Go(s[a],r),s[l]=Go(s[l],o)}function h(t,e){return t>0&&!ht(e)&&e>1e-4&&(t/=e),t}}function Xm(t,e,n,i,r,o){var a=2===n;Y(e,function(e){return Y(e,function(e){Pv(e.model)&&(function(t,e,n){var i=zm(e,n);t.updateCfg(i)}(e.axisBuilder,t,e.model),e.axisBuilder.build(a?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:r}))})});var s={x:0,y:0};function l(e){s[Rf[1-e]]=t[Pf[e]]<=.5*o.refContainer[Pf[e]]?0:1-e==1?2:1}l(0),l(1),Y(e,function(t,e){return Y(t,function(t){Pv(t.model)&&(("all"===i||a)&&t.axisBuilder.build({axisName:!0},{nameMarginLevel:s[e]}),a&&t.axisBuilder.build({axisLine:!0}))})})}var qm=function(t,e,n,i,r,o){var a="x"===n.axis.dim?"y":"x";xm(t,0,0,i,r,o),Rv(t.nameLocation)||Y(e.recordMap[a],function(t){t&&t.labelInfoList&&t.dirVec&&wm(t.labelInfoList,t.dirVec,i,r)})};const Ym=Fm;function Zm(t,e){return"all"===t||et(t)&&j(t,e)>=0||t===e}function $m(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Qm(t)]}function Km(t){return!!t.get(["handle","show"])}function Qm(t){return t.type+"||"+t.id}var Jm={};const ty=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return b(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&function(t){var e=$m(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=Km(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var o=function(t){var e=$m(t);return e&&e.axisPointerModel}(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){Jm[t]=e},e.getAxisPointerClass=function(t){return t&&Jm[t]},e.type="axis",e}(xg);var ey=_a(),ny=["splitArea","splitLine","minorSplitLine","breakArea"],iy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return b(e,t),e.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;this._axisGroup=new bd,this.group.add(this._axisGroup),Pv(e)&&(this._axisGroup.add(e.axis.axisBuilder.group),Y(ny,function(t){e.get([t,"show"])&&ry[t](this,this._axisGroup,e,e.getCoordSysModel(),i)},this),r&&"changeAxisOrder"===r.type&&r.isInitSort||$f(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r))},e.prototype.remove=function(){ey(this).splitAreaColors=null},e.type="cartesianAxis",e}(ty),ry={splitLine:function(t,e,n,i,r){var o=n.axis;if(!o.scale.isBlank()){var a=n.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=!1!==a.get("showMinLine"),c=!1!==a.get("showMaxLine");l=et(l)?l:[l];for(var h=i.coordinateSystem.getRect(),d=o.isHorizontal(),f=0,p=o.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],v=[],m=s.getLineStyle(),y=0;y<p.length;y++){var _=o.toGlobalCoord(p[y].coord);if((0!==y||u)&&(y!==p.length-1||c)){var x=p[y].tickValue;d?(g[0]=_,g[1]=h.y,v[0]=_,v[1]=h.y+h.height):(g[0]=h.x,g[1]=_,v[0]=h.x+h.width,v[1]=_);var b=f++%l.length,w=new Jh({anid:null!=x?"line_"+x:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:v[0],y2:v[1]},style:U({stroke:l[b]},m),silent:!0});Wf(w.shape,m.lineWidth),e.add(w)}}}},minorSplitLine:function(t,e,n,i,r){var o=n.axis,a=n.getModel("minorSplitLine").getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=o.isHorizontal(),u=o.getMinorTicksCoords();if(u.length)for(var c=[],h=[],d=a.getLineStyle(),f=0;f<u.length;f++)for(var p=0;p<u[f].length;p++){var g=o.toGlobalCoord(u[f][p].coord);l?(c[0]=g,c[1]=s.y,h[0]=g,h[1]=s.y+s.height):(c[0]=s.x,c[1]=g,h[0]=s.x+s.width,h[1]=g);var v=new Jh({anid:"minor_line_"+u[f][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:d,silent:!0});Wf(v.shape,d.lineWidth),e.add(v)}},splitArea:function(t,e,n,i,r){!function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var c=s.length,h=ey(t).splitAreaColors,d=Mt(),f=0;if(h)for(var p=0;p<u.length;p++){var g=h.get(u[p].tickValue);if(null!=g){f=(g+(c-1)*p)%c;break}}var v=r.toGlobalCoord(u[0].coord),m=a.getAreaStyle();for(s=et(s)?s:[s],p=1;p<u.length;p++){var y=r.toGlobalCoord(u[p].coord),_=void 0,x=void 0,b=void 0,w=void 0;r.isHorizontal()?(_=v,x=l.y,b=y-_,w=l.height,v=_+b):(_=l.x,x=v,b=l.width,v=x+(w=y-x));var S=u[p-1].tickValue;null!=S&&d.set(S,f),e.add(new Mo({anid:null!=S?"area_"+S:null,shape:{x:_,y:x,width:b,height:w},style:U({fill:s[f]},m),autoBatch:!0,silent:!0})),f=(f+1)%c}ey(t).splitAreaColors=d}}}(t,e,n,i)},breakArea:function(t,e,n,i,r){var o=null,a=n.axis.scale;o&&"ordinal"!==a.type&&o.rectCoordBuildBreakAxis(e,t,n,i.coordinateSystem.getRect(),r)}},oy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return b(e,t),e.type="xAxis",e}(iy),ay=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=oy.type,e}return b(e,t),e.type="yAxis",e}(iy),sy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return b(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new Mo({shape:t.coordinateSystem.getRect(),style:U({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(xg),ly={offset:0};function uy(t){t.registerComponentView(sy),t.registerComponentModel(Mg),t.registerCoordinateSystem("cartesian2d",Ym),zg(t,"x",kg,ly),zg(t,"y",kg,ly),t.registerComponentView(oy),t.registerComponentView(ay),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var cy=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,hy=[],dy=Lt.browser.firefox&&+Lt.browser.version.split(".")[0]<39;function fy(t,e,n,i){return n=n||{},i?py(t,e,n):dy&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):py(t,e,n),n}function py(t,e,n){if(Lt.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(Uu(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(Wu(hy,t,i,r))return n.zrX=hy[0],void(n.zrY=hy[1])}n.zrX=n.zrY=0}function gy(t){return t||window.event}function vy(t,e,n){if(null!=(e=gy(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&fy(t,r,e,n)}else{fy(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&cy.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function my(t,e,n,i){t.removeEventListener(e,n,i)}var yy=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},_y="\0__throttleOriginMethod",xy="\0__throttleRate",by="\0__throttleType";function wy(t,e,n){var i,r,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];i=(new Date).getTime(),o=this,a=t;var f=s||e,p=s||n;s=null,r=i-(p?l:u)-f,clearTimeout(c),p?c=setTimeout(h,f):r>=0?h():c=setTimeout(h,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function Sy(t,e,n,i){var r=t[e];if(r){var o=r[_y]||r,a=r[by];if(r[xy]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=wy(o,n,"debounce"===i))[_y]=o,r[by]=i,r[xy]=n}return r}}function Cy(t,e){var n=t[e];n&&n[_y]&&(n.clear&&n.clear(),t[e]=n[_y])}var My=_a(),Ty=H,ky=J,Iy=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=tt(Dy,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new bd,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);Ly(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=$m(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=My(t).pointerEl=new y[r.type](Ty(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=My(t).labelEl=new Vo(Ty(e.label));t.add(r),Ry(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=My(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=My(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),Ry(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=Jf(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){yy(t.event)},onmousedown:ky(this._onHandleDragMove,this,0,0),drift:ky(this._onHandleDragMove,this),ondragend:ky(this._onHandleDragEnd,this)}),i.add(r)),Ly(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");et(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Sy(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){Dy(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Py(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Py(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Py(i)),My(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Cy(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function Dy(t,e,n,i){Ay(My(n).lastProp,i)||(My(n).lastProp=i,e?Cf(n,i,t):(n.stopAnimation(),n.attr(i)))}function Ay(t,e){if(at(t)&&at(e)){var n=!0;return Y(e,function(e,i){n=n&&Ay(t[i],e)}),!!n}return t===e}function Ry(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Py(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Ly(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function Oy(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:Iv(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};Y(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)}),it(a)?o=a.replace("{value}",o):nt(a)&&(o=a(s))}return o}function By(t,e,n){var i=[1,0,0,1,0,0];return se(i,i,n.rotation),ae(i,i,n.position),qf([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}var zy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=Ey(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=function(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}(i),h=Ny[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}!function(t,e,n,i,r,o){var a=Bm.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),function(t,e,n,i,r){var o=Oy(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Lc(a.get("padding")||0),l=a.getFont(),u=ze(o,l),c=r.position,h=u.width+s[1]+s[3],d=u.height+s[0]+s[2],f=r.align;"right"===f&&(c[0]-=h),"center"===f&&(c[0]-=h/2);var p=r.verticalAlign;"bottom"===p&&(c[1]-=d),"middle"===p&&(c[1]-=d/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,h,d,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Cs(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}(e,i,r,o,{position:By(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}(e,t,zm(a.getRect(),n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=zm(e.axis.grid.getRect(),e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=By(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=Ey(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];return h[l]=u[l],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(Iy);function Ey(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var Ny={line:function(t,e,n){var i,r,o;return{type:"Line",subPixelOptimize:!0,shape:(i=[e,n[0]],r=[e,n[1]],o=Fy(t),{x1:i[o=o||0],y1:i[1-o],x2:r[o],y2:r[1-o]})}},shadow:function(t,e,n){var i,r,o,a=Math.max(1,t.getBandWidth()),s=n[1]-n[0];return{type:"Rect",shape:(i=[e-a/2,n[0]],r=[a,s],o=Fy(t),{x:i[o=o||0],y:i[1-o],width:r[o],height:r[1-o]})}}};function Fy(t){return"x"===t.dim?0:1}const Vy=zy,Hy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return b(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Sh.color.border,width:1,type:"dashed"},shadowStyle:{color:Sh.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:Sh.color.neutral00,padding:[5,7,5,7],backgroundColor:Sh.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:Sh.color.accent40,throttle:40}},e}(Jc);var Gy=_a(),Wy=Y;function Uy(t,e,n){if(!Lt.node){var i=e.getZr();Gy(i).records||(Gy(i).records={}),function(t,e){function n(n,i){t.on(n,function(n){var r=function(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);Wy(Gy(t).records,function(t){t&&i(t,n,r.dispatchAction)}),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)})}Gy(t).initialized||(Gy(t).initialized=!0,n("click",tt(Xy,"click")),n("mousemove",tt(Xy,"mousemove")),n("globalout",jy))}(i,e),(Gy(i).records[t]||(Gy(i).records[t]={})).handler=n}}function jy(t,e,n){t.handler("leave",null,n)}function Xy(t,e,n,i){e.handler(t,n,i)}function qy(t,e){if(!Lt.node){var n=e.getZr();(Gy(n).records||{})[t]&&(Gy(n).records[t]=null)}}var Yy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return b(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Uy("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},e.prototype.remove=function(t,e){qy("axisPointer",e)},e.prototype.dispose=function(t,e){qy("axisPointer",e)},e.type="axisPointer",e}(xg);const Zy=Yy;function $y(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=ya(o,t);if(null==a||a<0||et(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h=u.dim,d="x"===c||"radius"===c?1:0,f=o.mapDimension(h),p=[];p[d]=o.get(f,a),p[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(p)||[]}else i=l.dataToPoint(o.getValues(Z(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var Ky=_a();function Qy(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||J(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){i_(r)&&(r=$y({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=i_(r),u=o.axesInfo,c=s.axesInfo,h="leave"===i||i_(r),d={},f={},p={list:[],map:{}},g={showPointer:tt(t_,f),showTooltip:tt(e_,p)};Y(s.coordSysMap,function(t,e){var n=l||t.containPoint(r);Y(s.coordSysAxesInfo[e],function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&Jy(t,a,g,!1,d)}})});var v={};return Y(c,function(t,e){var n=t.linkGroup;n&&!f[e]&&Y(n.axesInfo,function(e,i){var r=f[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,n_(e),n_(t)))),v[t.key]=o}})}),Y(v,function(t,e){Jy(c[e],t,g,!0,d)}),function(t,e,n){var i=n.axesInfo=[];Y(e,function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}(f,c,d),function(t,e,n,i){if(!i_(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}(p,r,t,a),function(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=Ky(i)[r]||{},a=Ky(i)[r]={};Y(t,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&Y(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t})});var s=[],l=[];Y(o,function(t,e){!a[e]&&l.push(t)}),Y(a,function(t,e){!o[e]&&s.push(t)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),d}}function Jy(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return Y(e.seriesModels,function(e,l){var u,c,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);c=d.dataIndices,u=d.nestestValue}else{if(!(c=e.indicesOfNearest(i,h[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var f=t-u,p=Math.abs(f);p<=a&&((p<a||f>=0&&s<0)&&(a=p,s=f,r=u,o.length=0),Y(c,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&W(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function t_(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function e_(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=Qm(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function n_(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function i_(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function r_(t){ty.registerAxisPointerClass("CartesianAxisPointer",Vy),t.registerComponentModel(Hy),t.registerComponentView(Zy),t.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!et(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=function(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];Y(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var s=Qm(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel("tooltip",i);if(Y(n.getAxes(),tt(f,!1,null)),n.getTooltipAxes&&i&&u.get("show")){var c="axis"===u.get("trigger"),h="cross"===u.get(["axisPointer","type"]),d=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||h)&&Y(d.baseAxes,tt(f,!h||"cross",c)),h&&Y(d.otherAxes,tt(f,"cross",!1))}}function f(i,s,c){var h=c.model.getModel("axisPointer",r),d=h.get("show");if(d&&("auto"!==d||i||Km(h))){null==s&&(s=h.get("triggerTooltip")),h=i?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};Y(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=H(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&U(l,c.textStyle)}}return t.model.getModel("axisPointer",new js(s,n,i))}(c,u,r,e,i,s):h;var f=h.get("snap"),p=h.get("triggerEmphasis"),g=Qm(c.model),v=s||f||"category"===c.type,m=t.axesInfo[g]={key:g,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,triggerEmphasis:p,involveSeries:v,snap:f,useHandle:Km(h),seriesModels:[],linkGroup:null};l[g]=m,t.seriesInvolved=t.seriesInvolved||v;var y=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(Zm(o[i+"AxisId"],n.id)||Zm(o[i+"AxisIndex"],n.componentIndex)||Zm(o[i+"AxisName"],n.name))return r}}(o,c);if(null!=y){var _=a[y]||(a[y]={axesInfo:{}});_.axesInfo[g]=m,_.mapper=o[y].mapper,m.linkGroup=_}}}})}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries(function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&n.model&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&Y(t.coordSysAxesInfo[Qm(n.model)],function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})})}(n,t),n}(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Qy)}var o_=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},a_=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new o_(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new o_(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new o_(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new o_(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new o_(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new o_(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}();const s_=a_;var l_=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=fy(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in c_)if(c_.hasOwnProperty(e)){var n=c_[e](this._track,t);if(n)return n}},t}();function u_(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var c_={pinch:function(t,e){var n=t.length;if(n){var i,r=(t[n-1]||{}).points,o=(t[n-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var a=u_(r)/u_(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}},h_="silent";function d_(){yy(this.event)}var f_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return qt(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Ei),p_=function(t,e){this.x=t,this.y=e},g_=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],v_=new De(0,0,0,0),m_=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new p_(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new f_,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new s_(a),a}return qt(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(Y(g_,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=x_(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new p_(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new p_(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:d_}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new p_(t,e);if(__(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new De(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var c=i[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(v_.copy(c.getBoundingRect()),c.transform&&v_.applyTransform(c.transform),v_.intersect(l)&&o.push(c))}if(o.length)for(var h=Math.PI/12,d=2*Math.PI,f=0;f<s;f+=4)for(var p=0;p<d;p+=h)if(__(o,r,t+f*Math.cos(p),e+f*Math.sin(p),n),r.target)return r}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new l_);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new p_;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(Ei);function y_(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return!r||h_}return!1}function __(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=y_(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==h_)){e.target=a;break}}}function x_(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}Y(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){m_.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=x_(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||fn(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});const b_=m_;function w_(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;!function(t,e,n){for(n--;e<n;){var i=t[e];t[e++]=t[n],t[n--]=i}}(t,e,r)}else for(;r<n&&i(t[r],t[r-1])>=0;)r++;return r-e}function S_(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function C_(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l<s&&o(t,e[n+r+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function M_(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(t,e[n+r+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function T_(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<32)S_(t,n,i,n+(o=w_(t,n,i,e)),e);else{var a=function(t,e){var n,i,r=7,o=0,a=[];function s(s){var l=n[s],u=i[s],c=n[s+1],h=i[s+1];i[s]=u+h,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var d=M_(t[c],t,l,u,0,e);l+=d,0!==(u-=d)&&0!==(h=C_(t[l+u-1],t,c,h,h-1,e))&&(u<=h?function(n,i,o,s){var l=0;for(l=0;l<i;l++)a[l]=t[n+l];var u=0,c=o,h=n;if(t[h++]=t[c++],0!==--s)if(1!==i){for(var d,f,p,g=r;;){d=0,f=0,p=!1;do{if(e(t[c],a[u])<0){if(t[h++]=t[c++],f++,d=0,0===--s){p=!0;break}}else if(t[h++]=a[u++],d++,f=0,1===--i){p=!0;break}}while((d|f)<g);if(p)break;do{if(0!==(d=M_(t[c],a,u,i,0,e))){for(l=0;l<d;l++)t[h+l]=a[u+l];if(h+=d,u+=d,(i-=d)<=1){p=!0;break}}if(t[h++]=t[c++],0===--s){p=!0;break}if(0!==(f=C_(a[u],t,c,s,0,e))){for(l=0;l<f;l++)t[h+l]=t[c+l];if(h+=f,c+=f,0===(s-=f)){p=!0;break}}if(t[h++]=a[u++],1===--i){p=!0;break}g--}while(d>=7||f>=7);if(p)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else{if(0===i)throw new Error;for(l=0;l<i;l++)t[h+l]=a[u+l]}}else{for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else for(l=0;l<i;l++)t[h+l]=a[u+l]}(l,u,c,h):function(n,i,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+i-1,c=s-1,h=o+s-1,d=0,f=0;if(t[h--]=t[u--],0!==--i)if(1!==s){for(var p=r;;){var g=0,v=0,m=!1;do{if(e(a[c],t[u])<0){if(t[h--]=t[u--],g++,v=0,0===--i){m=!0;break}}else if(t[h--]=a[c--],v++,g=0,1===--s){m=!0;break}}while((g|v)<p);if(m)break;do{if(0!==(g=i-M_(a[c],t,n,i,i-1,e))){for(i-=g,f=1+(h-=g),d=1+(u-=g),l=g-1;l>=0;l--)t[f+l]=t[d+l];if(0===i){m=!0;break}}if(t[h--]=a[c--],1===--s){m=!0;break}if(0!==(v=s-C_(t[u],a,0,s,s-1,e))){for(s-=v,f=1+(h-=v),d=1+(c-=v),l=0;l<v;l++)t[f+l]=a[d+l];if(s<=1){m=!0;break}}if(t[h--]=t[u--],0===--i){m=!0;break}p--}while(g>=7||v>=7);if(m)break;p<0&&(p=0),p+=2}if((r=p)<1&&(r=1),1===s){for(f=1+(h-=i),d=1+(u-=i),l=i-1;l>=0;l--)t[f+l]=t[d+l];t[h]=a[c]}else{if(0===s)throw new Error;for(d=h-(s-1),l=0;l<s;l++)t[d+l]=a[l]}}else{for(f=1+(h-=i),d=1+(u-=i),l=i-1;l>=0;l--)t[f+l]=t[d+l];t[h]=a[c]}else for(d=h-(s-1),l=0;l<s;l++)t[d+l]=a[l]}(l,u,c,h))}return n=[],i=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]<i[t+1]&&t--,s(t)}},pushRun:function(t,e){n[o]=t,i[o]=e,o+=1}}}(t,e),s=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=w_(t,n,i,e))<s){var l=r;l>s&&(l=s),S_(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var k_=!1;function I_(){k_||(k_=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function D_(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var A_=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=D_}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,T_(n,D_)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath(),r=e&&e.length,o=0,a=t.__clipPaths;if(!t.ignoreClip&&(r||i)){if(a||(a=t.__clipPaths=[]),r)for(var s=0;s<e.length;s++)a[o++]=e[s];for(var l=i,u=t;l;)l.parent=u,l.updateTransform(),a[o++]=l,u=l,l=l.getClipPath()}if(a&&(a.length=o),t.childrenRef){for(var c=t.childrenRef(),h=0;h<c.length;h++){var d=c[h];t.__dirty&&(d.__dirty|=1),this._updateAndAddDisplayable(d,a,n)}t.__dirty=0}else{var f=t;isNaN(f.z)&&(I_(),f.z=0),isNaN(f.z2)&&(I_(),f.z2=0),isNaN(f.zlevel)&&(I_(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,a,n);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,a,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,a,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=j(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();const R_=A_,P_=Lt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};function L_(){return(new Date).getTime()}var O_=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return qt(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=L_()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,P_(function e(){t._running&&(P_(e),!t._paused&&t.update())})},e.prototype.start=function(){this._running||(this._time=L_(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=L_(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=L_()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new Bi(t,e.loop);return this.addAnimator(n),n},e}(Ei);const B_=O_;var z_,E_,N_=Lt.domSupported,F_=(E_={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:z_=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:Z(z_,function(t){var e=t.replace("mouse","pointer");return E_.hasOwnProperty(e)?e:t})}),V_=["mousemove","mouseup"],H_=["pointermove","pointerup"],G_=!1;function W_(t){var e=t.pointerType;return"pen"===e||"touch"===e}function U_(t){t&&(t.zrByTouch=!0)}function j_(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var X_=function(t,e){this.stopPropagation=Dt,this.stopImmediatePropagation=Dt,this.preventDefault=Dt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},q_={mousedown:function(t){t=vy(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=vy(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=vy(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){j_(this,(t=vy(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){G_=!0,t=vy(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){G_||(t=vy(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){U_(t=vy(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),q_.mousemove.call(this,t),q_.mousedown.call(this,t)},touchmove:function(t){U_(t=vy(this.dom,t)),this.handler.processGesture(t,"change"),q_.mousemove.call(this,t)},touchend:function(t){U_(t=vy(this.dom,t)),this.handler.processGesture(t,"end"),q_.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&q_.click.call(this,t)},pointerdown:function(t){q_.mousedown.call(this,t)},pointermove:function(t){W_(t)||q_.mousemove.call(this,t)},pointerup:function(t){q_.mouseup.call(this,t)},pointerout:function(t){W_(t)||q_.mouseout.call(this,t)}};Y(["click","dblclick","contextmenu"],function(t){q_[t]=function(e){e=vy(this.dom,e),this.trigger(t,e)}});var Y_={pointermove:function(t){W_(t)||Y_.mousemove.call(this,t)},pointerup:function(t){Y_.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Z_(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,function(t,e,n,i){t.addEventListener(e,n,i)}(t.domTarget,e,n,i)}function $_(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&my(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var K_=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};const Q_=function(t){function e(e,n){var i,r,o,a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=e,a.painterRoot=n,a._localHandlerScope=new K_(e,q_),N_&&(a._globalHandlerScope=new K_(document,Y_)),i=a,r=a._localHandlerScope,o=r.domHandlers,Lt.pointerEventsSupported?Y(F_.pointer,function(t){Z_(r,t,function(e){o[t].call(i,e)})}):(Lt.touchEventsSupported&&Y(F_.touch,function(t){Z_(r,t,function(e){o[t].call(i,e),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}(r)})}),Y(F_.mouse,function(t){Z_(r,t,function(e){e=gy(e),r.touching||o[t].call(i,e)})})),a}return qt(e,t),e.prototype.dispose=function(){$_(this._localHandlerScope),N_&&$_(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,N_&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){function n(n){Z_(e,n,function(i){i=gy(i),j_(t,i.target)||(i=function(t,e){return vy(t.dom,new X_(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))},{capture:!0})}Lt.pointerEventsSupported?Y(H_,n):Lt.touchEventsSupported||Y(V_,n)}(this,e):$_(e)}},e}(Ei);var J_={},tx={},ex=function(){function t(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var r=new R_,o=n.renderer||"canvas";J_[o]||(o=Q(J_)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new J_[o](e,r,n,t),s=n.ssr||a.ssrOnly;this.storage=r,this.painter=a;var l,u=Lt.node||Lt.worker||s?null:new Q_(a.getViewportRoot(),a.root),c=n.useCoarsePointer;(null==c||"auto"===c?Lt.touchEventsSupported:!!c)&&(l=ft(n.pointerSize,44)),this.handler=new b_(r,a,u,a.root,l),this.animation=new B_({stage:{update:s?null:function(){return i._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return yi(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=yi(e[r].color,1);return(n/=i)<.4}return!1}(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=L_();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=L_();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof bd&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){var t;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete tx[t])},t}();function nx(t,e){var n=new ex(F(),t,e);return tx[n.id]=n,n}var ix="";"undefined"!=typeof navigator&&(ix=navigator.platform||"");var rx="rgba(0, 0, 0, 0.2)",ox=Sh.color.theme[0],ax=vi(ox,null,null,.9);const sx={darkMode:"auto",colorBy:"series",color:Sh.color.theme,gradientColor:[ax,ox],aria:{decal:{decals:[{color:rx,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:rx,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:rx,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:rx,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:rx,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:rx,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ix.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 lx,ux,cx,hx=Mt(),dx="\0_ec_inner",fx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new js(i),this._locale=new js(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=vx(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,vx(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):cx(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&Y(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=Mt(),s=e&&e.replaceMergeMainTypeMap;ol(this).datasetMap=Mt(),Y(t,function(t,e){null!=t&&(Jc.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?H(t):G(n[e],t,!0))}),s&&s.each(function(t,e){Jc.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))}),Jc.topologicalTravel(o,Jc.getAllClassMainTypes(),function(e){var o=function(t,e,n){var i=hx.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,la(t[e])),a=i.get(e),l=function(t,e,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=Mt();Y(e,function(t,n){at(t)||(e[n]=null)});var s,l,u=function(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||ma(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(t,a,n);return(i||r)&&function(t,e,n,i){Y(i,function(r,o){if(r&&null!=r.id){var a=pa(r.id),s=n.get(a);if(null!=s){var l=t[s];mt(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],i[o]=null}}})}(u,t,a,e),i&&function(t,e){Y(e,function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==n.id)&&!ma(n)&&!ma(o)&&fa("name",o,n))return t[r].newOption=n,void(e[i]=null)}})}(u,e),i||r?function(t,e,n){Y(e,function(e){if(e){for(var i,r=0;(i=t[r])&&(i.newOption||ma(i.existing)||i.existing&&null!=e.id&&!fa("id",e,i.existing));)r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}})}(u,e,r):o&&function(t,e){Y(e,function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}(u,e),s=u,l=Mt(),Y(s,function(t){var e=t.existing;e&&l.set(e.id,t)}),Y(s,function(t){var e=t.newOption;mt(!e||null==e.id||!l.get(e.id)||l.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&l.set(e.id,t),!t.keyInfo&&(t.keyInfo={})}),Y(s,function(t,e){var n=t.existing,i=t.newOption,r=t.keyInfo;if(at(i)){if(r.name=null!=i.name?pa(i.name):n?n.name:sa+e,n)r.id=pa(n.id);else if(null!=i.id)r.id=pa(i.id);else{var o=0;do{r.id="\0"+r.name+"\0"+o++}while(l.get(r.id))}l.set(r.id,t)}}),u}(a,o,a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll");(function(t,e,n){Y(t,function(t){var i=t.newOption;at(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}(e,i,t.existing,n))})})(l,e,Jc),n[e]=null,i.set(e,null),r.set(e,0);var u,c=[],h=[],d=0;Y(l,function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=Jc.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(u)return;u=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=W({componentIndex:n},t.keyInfo);W(i=new a(r,this,this,s),s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(c.push(i.option),h.push(i),d++):(c.push(void 0),h.push(void 0))},this),n[e]=c,i.set(e,h),r.set(e,d),"series"===e&&lx(this)},this),this._seriesIndices||lx(this)},e.prototype.getOption=function(){var t=H(this.option);return Y(t,function(e,n){if(Jc.hasClass(n)){for(var i=la(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!ma(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}}),delete t[dx],t},e.prototype.setTheme=function(t){this._theme=new js(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=i?(n=[],Y(la(i),function(t){a[t]&&n.push(a[t])})):n=null!=r?px("id",r,a):null!=o?px("name",o,a):K(a,function(t){return!!t}),gx(n,t)):[]},e.prototype.findComponents=function(t){var e,n,i,r,o,a=t.query,s=t.mainType,l=(n=s+"Index",i=s+"Id",r=s+"Name",!(e=a)||null==e[n]&&null==e[i]&&null==e[r]?null:{mainType:s,index:e[n],id:e[i],name:e[r]});return o=gx(l?this.queryComponents(l):K(this._componentsMap.get(s),function(t){return!!t}),t),t.filter?K(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(nt(t)){var r=e,o=t;i.each(function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&o.call(r,e,i,i.componentIndex)}})}else for(var a=it(t)?i.get(t):at(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=ga(t,null);return K(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return K(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},e.prototype.getSeries=function(){return K(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){ux(this),Y(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},e.prototype.eachRawSeries=function(t,e){Y(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,e,n){ux(this),Y(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)},this)},e.prototype.eachRawSeriesByType=function(t,e,n){return Y(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return ux(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){ux(this);var n=[];Y(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=Mt(n)},e.prototype.restoreData=function(t){lx(this);var e=this._componentsMap,n=[];e.each(function(t,e){Jc.hasClass(e)&&n.push(e)}),Jc.topologicalTravel(n,Jc.getAllClassMainTypes(),function(n){Y(e.get(n),function(e){!e||"series"===n&&function(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}(e,t)||e.restoreData()})})},e.internalField=(lx=function(t){var e=t._seriesIndices=[];Y(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=Mt(e)},ux=function(t){},void(cx=function(t,e){t.option={},t.option[dx]=1,t._componentsMap=Mt({series:[]}),t._componentsCount=Mt();var n=e.aria;at(n)&&null==n.enabled&&(n.enabled=!0),function(t,e){var n=t.color&&!t.colorLayer;Y(e,function(e,i){"colorLayer"===i&&n||"color"===i&&t.color||Jc.hasClass(i)||("object"==typeof e?t[i]=t[i]?G(t[i],e,!1):H(e):null==t[i]&&(t[i]=e))})}(e,t._theme.option),G(e,sx,!1),t._mergeOption(e,null)})),e}(js);function px(t,e,n){if(et(e)){var i=Mt();return Y(e,function(t){null!=t&&null!=ga(t,null)&&i.set(t,!0)}),K(n,function(e){return e&&i.get(e[t])})}var r=ga(e,null);return K(n,function(e){return e&&null!=r&&e[t]===r})}function gx(t,e){return e.hasOwnProperty("subType")?K(t,function(t){return t&&t.subType===e.subType}):t}function vx(t){var e=Mt();return t&&Y(la(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}X(fx,eh);const mx=fx;var yx=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];const _x=function(t){Y(yx,function(e){this[e]=J(t[e],t)},this)};var xx=/^(min|max)?(.+)$/,bx=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(Y(la(t.series),function(t){t&&t.data&<(t.data)&&xt(t.data)}),Y(la(t.dataset),function(t){t&&t.source&<(t.source)&&xt(t.source)})),t=H(t);var i=this._optionBackup,r=function(t,e,n){var i,r,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||a&&a.timeline);function d(t){Y(e,function(e){e(t,n)})}return a?(r=a).timeline||(r.timeline=s):((h||c)&&(t.options=t.media=null),r=t),c&&et(u)&&Y(u,function(t){t&&t.option&&(t.query?o.push(t):i||(i=t))}),d(r),Y(l,function(t){return d(t)}),Y(o,function(t){return d(t.option)}),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:o}}(t,e,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],H(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=H(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,i=this._api.getWidth(),r=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,c=o.length;u<c;u++)Sx(o[u].query,i,r)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=Z(s,function(t){return H(-1===t?a.option:o[t].option)})),this._currentMediaIndices=s,l},t}();function Sx(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return Y(t,function(t,e){var n=e.match(xx);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(i[a],t,o)||(r=!1)}}),r}const Cx=bx;var Mx=Y,Tx=at,kx=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ix(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=kx.length;n<i;n++){var r=kx[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?G(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?G(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function Dx(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,U(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function Ax(t){Dx(t,"itemStyle"),Dx(t,"lineStyle"),Dx(t,"areaStyle"),Dx(t,"label"),Dx(t,"labelLine"),Dx(t,"upperLabel"),Dx(t,"edgeLabel")}function Rx(t,e){var n=Tx(t)&&t[e],i=Tx(n)&&n.textStyle;if(i)for(var r=0,o=ca.length;r<o;r++){var a=ca[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function Px(t){t&&(Ax(t),Rx(t,"label"),t.emphasis&&Rx(t.emphasis,"label"))}function Lx(t){return et(t)?t:t?[t]:[]}function Ox(t){return(et(t)?t[0]:t)||{}}function Bx(t){t&&Y(zx,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var zx=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Ex=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Nx=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Fx(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Nx.length;n++){var i=Nx[n][1],r=Nx[n][0];null!=e[i]&&(e[r]=e[i])}}function Vx(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Hx(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Gx(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&Gx(t[n].children,e)}function Wx(t,e){(function(t,e){Mx(Lx(t.series),function(t){Tx(t)&&function(t){if(Tx(t)){Ix(t),Ax(t),Rx(t,"label"),Rx(t,"upperLabel"),Rx(t,"edgeLabel"),t.emphasis&&(Rx(t.emphasis,"label"),Rx(t.emphasis,"upperLabel"),Rx(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Ix(e),Px(e));var n=t.markLine;n&&(Ix(n),Px(n));var i=t.markArea;i&&Px(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!lt(o))for(var a=0;a<o.length;a++)Px(o[a]);Y(t.categories,function(t){Ax(t)})}if(r&&!lt(r))for(a=0;a<r.length;a++)Px(r[a]);if((e=t.markPoint)&&e.data){var s=e.data;for(a=0;a<s.length;a++)Px(s[a])}if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)et(l[a])?(Px(l[a][0]),Px(l[a][1])):Px(l[a])}"gauge"===t.type?(Rx(t,"axisLabel"),Rx(t,"title"),Rx(t,"detail")):"treemap"===t.type?(Dx(t.breadcrumb,"itemStyle"),Y(t.levels,function(t){Ax(t)})):"tree"===t.type&&Ax(t.leaves)}}(t)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Mx(n,function(e){Mx(Lx(t[e]),function(t){t&&(Rx(t,"axisLabel"),Rx(t.axisPointer,"label"))})}),Mx(Lx(t.parallel),function(t){var e=t&&t.parallelAxisDefault;Rx(e,"axisLabel"),Rx(e&&e.axisPointer,"label")}),Mx(Lx(t.calendar),function(t){Dx(t,"itemStyle"),Rx(t,"dayLabel"),Rx(t,"monthLabel"),Rx(t,"yearLabel")}),Mx(Lx(t.radar),function(t){Rx(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),Mx(Lx(t.geo),function(t){Tx(t)&&(Px(t),Mx(Lx(t.regions),function(t){Px(t)}))}),Mx(Lx(t.timeline),function(t){Px(t),Dx(t,"label"),Dx(t,"itemStyle"),Dx(t,"controlStyle",!0);var e=t.data;et(e)&&Y(e,function(t){at(t)&&(Dx(t,"label"),Dx(t,"itemStyle"))})}),Mx(Lx(t.toolbox),function(t){Dx(t,"iconStyle"),Mx(t.feature,function(t){Dx(t,"iconStyle")})}),Rx(Ox(t.axisPointer),"label"),Rx(Ox(t.tooltip).axisPointer,"label")})(t,e),t.series=la(t.series),Y(t.series,function(t){if(at(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){if(null!=t.clockWise&&(t.clockwise=t.clockWise),Vx(t.label),(r=t.data)&&!lt(r))for(var n=0;n<r.length;n++)Vx(r[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var i=function(t){for(var e="pointer.color".split(","),n=t,i=0;i<e.length&&null!=(n=n&&n[e[i]]);i++);return n}(t);null!=i&&function(t,e,n){for(var i,r="itemStyle.color".split(","),o=t,a=0;a<r.length-1;a++)null==o[i=r[a]]&&(o[i]={}),o=o[i];null==o[r[a]]&&(o[r[a]]=n)}(t,0,i)}else if("bar"===e){var r;if(Fx(t),Fx(t.backgroundStyle),Fx(t.emphasis),(r=t.data)&&!lt(r))for(n=0;n<r.length;n++)"object"==typeof r[n]&&(Fx(r[n]),Fx(r[n]&&r[n].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),Hx(t),Gx(t.data,Hx)}else"graph"===e||"sankey"===e?function(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&U(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),Bx(t)}}),t.dataRange&&(t.visualMap=t.dataRange),Y(Ex,function(e){var n=t[e];n&&(et(n)||(n=[n]),Y(n,function(t){Bx(t)}))})}var Ux=_a(),jx={itemStyle:Wt(Hs,!0),lineStyle:Wt(Ns,!0)},Xx={lineStyle:"stroke",itemStyle:"fill"};function qx(t,e){return t.visualStyleMapper||jx[e]||(console.warn("Unknown style type '"+e+"'."),jx.itemStyle)}function Yx(t,e){return t.visualDrawType||Xx[e]||(console.warn("Unknown style type '"+e+"'."),"fill")}var Zx={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=qx(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=Yx(t,i),l=o[s],u=nt(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=h,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||nt(o.fill)?h:o.fill,o.stroke="auto"===o.stroke||nt(o.stroke)?h:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=W({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}},$x=new js,Kx={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=qx(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){$x.option=n[i];var a=r($x);W(t.ensureUniqueItemVisual(e,"style"),a),$x.option.decal&&(t.setItemVisual(e,"decal",$x.option.decal),$x.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Qx={performRawSeries:!0,overallReset:function(t){var e=Mt();t.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),Ux(t).scope=r}}),t.eachSeries(function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=Ux(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Yx(e,a);r.each(function(t){var e=r.getRawIndex(t);i[e]=t}),n.each(function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(u,o,c)}})}})}},Jx=Math.PI,tb=function(){function t(t,e,n,i){this._stageTaskMap=Mt(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Mt();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Y(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{});mt(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)},this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Y(t,function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each(function(t){a(i,t)&&(t.dirty(),h=!0)}),h&&c.dirty(),o.updatePayload(c,n);var f=o.getPerformArgs(c,i.block);d.each(function(t){t.perform(f)}),c.perform(f)&&(r=!0)}else u&&u.each(function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)})}}),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Mt(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||oh({plan:ob,reset:ab,count:ub}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||oh({reset:eb});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=Mt(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1;function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,oh({reset:nb,onDirty:rb})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,r._pipe(t,n)}mt(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,d):u?u(n,i).each(d):(c=!1,Y(n.getSeries(),d)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return nt(t)&&(t={overallReset:t,seriesType:cb(t)}),t.uid=Eu("stageHandler"),e&&(t.visualType=e),t},t}();function eb(t){t.overallReset(t.ecModel,t.api,t.payload)}function nb(t){return t.overallProgress&&ib}function ib(){this.agent.dirty(),this.getDownstream().dirty()}function rb(){this.agent&&this.agent.dirty()}function ob(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function ab(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=la(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Z(e,function(t,e){return lb(e)}):sb}var sb=lb(0);function lb(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function ub(t){return t.data.count()}function cb(t){hb=null;try{t(db,fb)}catch(t){}return hb}var hb,db={},fb={};function pb(t,e){for(var n in e.prototype)t[n]=Dt}pb(db,mx),pb(fb,_x),db.eachSeriesByType=db.eachRawSeriesByType=function(t){hb=t},db.eachComponent=function(t){"series"===t.mainType&&t.subType&&(hb=t.subType)};const gb=tb;var vb,mb=Sh.darkColor,yb=mb.background,_b=function(){return{axisLine:{lineStyle:{color:mb.axisLine}},splitLine:{lineStyle:{color:mb.axisSplitLine}},splitArea:{areaStyle:{color:[mb.backgroundTint,mb.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:mb.axisMinorSplitLine}},axisLabel:{color:mb.axisLabel},axisName:{}}},xb={label:{color:mb.secondary},itemStyle:{borderColor:mb.borderTint},dividerLineStyle:{color:mb.border}},bb={darkMode:!0,color:mb.theme,backgroundColor:yb,axisPointer:{lineStyle:{color:mb.border},crossStyle:{color:mb.borderShade},label:{color:mb.tertiary}},legend:{textStyle:{color:mb.secondary},pageTextStyle:{color:mb.tertiary}},textStyle:{color:mb.secondary},title:{textStyle:{color:mb.primary},subtextStyle:{color:mb.quaternary}},toolbox:{iconStyle:{borderColor:mb.accent50}},tooltip:{backgroundColor:mb.neutral20,defaultBorderColor:mb.border,textStyle:{color:mb.tertiary}},dataZoom:{borderColor:mb.accent10,textStyle:{color:mb.tertiary},brushStyle:{color:mb.backgroundTint},handleStyle:{color:mb.neutral00,borderColor:mb.accent20},moveHandleStyle:{color:mb.accent40},emphasis:{handleStyle:{borderColor:mb.accent50}},dataBackground:{lineStyle:{color:mb.accent30},areaStyle:{color:mb.accent20}},selectedDataBackground:{lineStyle:{color:mb.accent50},areaStyle:{color:mb.accent30}}},visualMap:{textStyle:{color:mb.secondary},handleStyle:{borderColor:mb.neutral30}},timeline:{lineStyle:{color:mb.accent10},label:{color:mb.tertiary},controlStyle:{color:mb.accent30,borderColor:mb.accent30}},calendar:{itemStyle:{color:mb.neutral00,borderColor:mb.neutral20},dayLabel:{color:mb.tertiary},monthLabel:{color:mb.secondary},yearLabel:{color:mb.secondary}},matrix:{x:xb,y:xb,backgroundColor:{borderColor:mb.axisLine},body:{itemStyle:{borderColor:mb.borderTint}}},timeAxis:_b(),logAxis:_b(),valueAxis:_b(),categoryAxis:_b(),line:{symbol:"circle"},graph:{color:mb.theme},gauge:{title:{color:mb.secondary},axisLine:{lineStyle:{color:[[1,mb.neutral05]]}},axisLabel:{color:mb.axisLabel},detail:{color:mb.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:mb.background}},radar:(vb=_b(),vb.axisName={color:mb.axisLabel},vb.axisLine.lineStyle.color=mb.neutral20,vb),treemap:{breadcrumb:{itemStyle:{color:mb.neutral20,textStyle:{color:mb.secondary}},emphasis:{itemStyle:{color:mb.neutral30}}}},sunburst:{itemStyle:{borderColor:mb.background}},map:{itemStyle:{borderColor:mb.border,areaColor:mb.neutral10},label:{color:mb.tertiary},emphasis:{label:{color:mb.primary},itemStyle:{areaColor:mb.highlight}},select:{label:{color:mb.primary},itemStyle:{areaColor:mb.highlight}}},geo:{itemStyle:{borderColor:mb.border,areaColor:mb.neutral10},emphasis:{label:{color:mb.primary},itemStyle:{areaColor:mb.highlight}},select:{label:{color:mb.primary},itemStyle:{color:mb.highlight}}}};bb.categoryAxis.splitLine.show=!1;const wb=bb;var Sb=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(it(t)){var r=zt(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};Y(t,function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Cb=["symbol","symbolSize","symbolRotate","symbolOffset"],Mb=Cb.concat(["symbolKeepAspect"]),Tb={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a<Cb.length;a++){var s=Cb[a],l=t.get(s);nt(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual(W({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var u=Q(r);return{dataEach:o?function(e,n){for(var i=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,r[s](i,o))}}:null}}}}},kb={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i<Mb.length;i++){var r=Mb[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}};function Ib(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,i=t.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=ya(l,r.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:et(u)?l.getName(u[0]):l.getName(u),selected:it(i)?i:W({},i)})}})}function Db(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var Ab=Math.round(9*Math.random()),Rb="function"==typeof Object.defineProperty,Pb=function(){function t(){this._id="__ec_inner_"+Ab++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return Rb?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}();const Lb=Pb;function Ob(t){return isFinite(t)}function Bb(t,e,n){for(var i="radial"===e.type?function(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*i+n.x,s=s*r+n.y,l*=o),a=Ob(a)?a:.5,s=Ob(s)?s:.5,l=l>=0&&Ob(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}(t,e,n):function(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=Ob(i)?i:0,r=Ob(r)?r:1,o=Ob(o)?o:0,a=Ob(a)?a:0,t.createLinearGradient(i,o,r,a)}(t,e,n),r=e.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function zb(t){return parseInt(t,10)}function Eb(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(t);return(t[r]||zb(s[i])||zb(t.style[i]))-(zb(s[o])||0)-(zb(s[a])||0)|0}function Nb(t){var e,n,i=t.style,r=i.lineDash&&i.lineWidth>0&&(e=i.lineDash,n=i.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:ot(e)?[e]:et(e)?e:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=Z(r,function(t){return t/a}),o/=a)}return[r,o]}var Fb=new Hr(!0);function Vb(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Hb(t){return"string"==typeof t&&"none"!==t}function Gb(t){var e=t.fill;return null!=e&&"none"!==e}function Wb(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Ub(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function jb(t,e,n){var i=te(e.image,e.__image,n);if(ne(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*At),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var Xb=["shadowBlur","shadowOffsetX","shadowOffsetY"],qb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Yb(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){Kb(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?er.opacity:a}(i||e.blend!==n.blend)&&(o||(Kb(t,r),o=!0),t.globalCompositeOperation=e.blend||er.blend);for(var s=0;s<Xb.length;s++){var l=Xb[s];(i||e[l]!==n[l])&&(o||(Kb(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==n.shadowColor)&&(o||(Kb(t,r),o=!0),t.shadowColor=e.shadowColor||er.shadowColor),o}function Zb(t,e,n,i,r){var o=Qb(e,r.inHover),a=i?null:n&&Qb(n,r.inHover)||{};if(o===a)return!1;var s=Yb(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(Kb(t,r),s=!0),Hb(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(Kb(t,r),s=!0),Hb(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(Kb(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(Kb(t,r),s=!0),t.lineWidth=l)}for(var u=0;u<qb.length;u++){var c=qb[u],h=c[0];(i||o[h]!==a[h])&&(s||(Kb(t,r),s=!0),t[h]=o[h]||c[1])}return s}function $b(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function Kb(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Qb(t,e){return e&&t.__hoverStyle||t.style}function Jb(t,e){tw(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function tw(t,e,n,i){var r=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=-2,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!function(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}(o,a)||(a&&a.length&&(Kb(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Kb(t,n),t.save(),function(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];i=i||o.isZeroArea(),$b(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=i}(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c,h,d=e instanceof uo&&e.autoBatch&&function(t){var e=Gb(t),n=Vb(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(e.style);s||(c=r,h=u.transform,c&&h?c[0]!==h[0]||c[1]!==h[1]||c[2]!==h[2]||c[3]!==h[3]||c[4]!==h[4]||c[5]!==h[5]:c||h)?(Kb(t,n),$b(t,e)):d||Kb(t,n);var f=Qb(e,n.inHover);e instanceof uo?(1!==n.lastDrawType&&(l=!0,n.lastDrawType=1),Zb(t,e,u,l,n),d&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,i){var r,o=Vb(n),a=Gb(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||Fb,h=e.__dirty;if(!i){var d=n.fill,f=n.stroke,p=a&&!!d.colorStops,g=o&&!!f.colorStops,v=a&&!!d.image,m=o&&!!f.image,y=void 0,_=void 0,x=void 0,b=void 0,w=void 0;(p||g)&&(w=e.getBoundingRect()),p&&(y=h?Bb(t,d,w):e.__canvasFillGradient,e.__canvasFillGradient=y),g&&(_=h?Bb(t,f,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),v&&(x=h||!e.__canvasFillPattern?jb(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=x),m&&(b=h||!e.__canvasStrokePattern?jb(t,f,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),p?t.fillStyle=y:v&&(x?t.fillStyle=x:a=!1),g?t.strokeStyle=_:m&&(b?t.strokeStyle=b:o=!1)}var S,C,M=e.getGlobalScale();c.setScale(M[0],M[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(S=(r=Nb(e))[0],C=r[1]);var T=!0;(u||4&h)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),T=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),T&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=C),i||(n.strokeFirst?(o&&Ub(t,n),a&&Wb(t,n)):(a&&Wb(t,n),o&&Ub(t,n))),S&&t.setLineDash([])}(t,e,f,d),d&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):e instanceof fo?(3!==n.lastDrawType&&(l=!0,n.lastDrawType=3),Zb(t,e,u,l,n),function(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||C,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(o=(i=Nb(e))[0],a=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(Vb(n)&&t.strokeText(r,n.x,n.y),Gb(n)&&t.fillText(r,n.x,n.y)):(Gb(n)&&t.fillText(r,n.x,n.y),Vb(n)&&t.strokeText(r,n.x,n.y)),o&&t.setLineDash([])}}(t,e,f)):e instanceof mo?(2!==n.lastDrawType&&(l=!0,n.lastDrawType=2),function(t,e,n,i,r){Yb(t,Qb(e,r.inHover),n&&Qb(n,r.inHover),i,r)}(t,e,u,l,n),function(t,e,n){var i=e.__image=te(n.image,e.__image,e,e.onload);if(i&&ne(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(i,u,c,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var h=a-(u=n.sx),d=s-(c=n.sy);t.drawImage(i,u,c,h,d,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}(t,e,f)):e.getTemporalDisplayables&&(4!==n.lastDrawType&&(l=!0,n.lastDrawType=4),function(t,e,n){var i=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=i.length;o<a;o++)(c=i[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),tw(t,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c;for(var l=0,u=r.length;l<u;l++){var c;(c=r[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),tw(t,c,s,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n)),d&&i&&Kb(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}var ew=new Lb,nw=new Kt(100),iw=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function rw(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&ew.delete(t);var o=ew.get(t);if(o)return o;var a=U(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e,o=[n],s=!0,l=0;l<iw.length;++l){var u=a[iw[l]];if(null!=u&&!et(u)&&!it(u)&&!ot(u)&&"boolean"!=typeof u){s=!1;break}o.push(u)}if(s){e=o.join(",")+(r?"-svg":"");var c=nw.get(e);c&&(r?t.svgElement=c:t.image=c)}var h,d=aw(a.dashArrayX),f=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(ot(t)){var e=Math.ceil(t);return[e,e]}var n=Z(t,function(t){return Math.ceil(t)});return t.length%2?n.concat(n):n}(a.dashArrayY),p=ow(a.symbol),g=Z(d,function(t){return sw(t)}),v=sw(f),m=!r&&T.createCanvas(),y=r&&{tag:"g",attrs:{},key:"dcl",children:[]},_=function(){for(var t=1,e=0,n=g.length;e<n;++e)t=oa(t,g[e]);var i=1;for(e=0,n=p.length;e<n;++e)i=oa(i,p[e].length);t*=i;var r=v*g.length*p.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();m&&(m.width=_.width*n,m.height=_.height*n,h=m.getContext("2d")),function(){h&&(h.clearRect(0,0,m.width,m.height),a.backgroundColor&&(h.fillStyle=a.backgroundColor,h.fillRect(0,0,m.width,m.height)));for(var t=0,e=0;e<f.length;++e)t+=f[e];if(!(t<=0))for(var o=-v,s=0,l=0,u=0;o<_.height;){if(s%2==0){for(var c=l/2%p.length,g=0,x=0,b=0;g<2*_.width;){var w=0;for(e=0;e<d[u].length;++e)w+=d[u][e];if(w<=0)break;if(x%2==0){var S=.5*(1-a.symbolSize),C=g+d[u][x]*S,M=o+f[s]*S,T=d[u][x]*a.symbolSize,k=f[s]*a.symbolSize,I=b/2%p[c].length;D(C,M,T,k,p[c][I])}g+=d[u][x],++b,++x===d[u].length&&(x=0)}++u===d.length&&(u=0)}o+=f[s],++l,++s===f.length&&(s=0)}function D(t,e,o,s,l){var u=r?1:n,c=Mp(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(r){var d=i.painter.renderOneToVNode(c);d&&y.children.push(d)}else Jb(h,c)}}(),s&&nw.put(e,m||y),t.image=m,t.svgElement=y,t.svgWidth=_.width,t.svgHeight=_.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,ew.set(t,s),t.dirty=!1,s}function ow(t){if(!t||0===t.length)return[["rect"]];if(it(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!it(t[n])){e=!1;break}if(e)return ow([t]);var i=[];for(n=0;n<t.length;++n)it(t[n])?i.push([t[n]]):i.push(t[n]);return i}function aw(t){if(!t||0===t.length)return[[0,0]];if(ot(t))return[[r=Math.ceil(t),r]];for(var e=!0,n=0;n<t.length;++n)if(!ot(t[n])){e=!1;break}if(e)return aw([t]);var i=[];for(n=0;n<t.length;++n)if(ot(t[n])){var r=Math.ceil(t[n]);i.push([r,r])}else(r=Z(t[n],function(t){return Math.ceil(t)})).length%2==1?i.push(r.concat(r)):i.push(r);return i}function sw(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}const lw=new Ei;var uw={},cw=2e3,hw=4500,dw={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:cw,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:hw,ARIA:6e3,DECAL:7e3}},fw="__flagInMainProcess",pw="__mainProcessVersion",gw="__pendingUpdate",vw="__needsUpdateStatus",mw=/^[a-zA-Z0-9_]+$/,yw="__connectUpdateStatus";function _w(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return bw(this,t,e);Xw(this.id)}}function xw(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return bw(this,t,e)}}function bw(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),Ei.prototype[e].apply(t,n)}var ww,Sw,Cw,Mw,Tw,kw,Iw,Dw,Aw,Rw,Pw,Lw,Ow,Bw,zw,Ew,Nw,Fw,Vw,Hw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e}(Ei),Gw=Hw.prototype;Gw.on=xw("on"),Gw.off=xw("off");var Ww=function(t){function e(e,n,i){var r=t.call(this,new Sb)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},r._dom=e,r[pw]=1,i.ssr;var o=r._zr=nx(e,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:ft(i.useDirtyRect,!1),useCoarsePointer:ft(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});r._ssr=i.ssr,r._throttledZrFlush=wy(J(o.flush,o),17),r._updateTheme(n),r._locale=function(t){if(it(t)){var e=Ku[t.toUpperCase()]||{};return t===Yu||t===Zu?H(e):G(H(e),H(Ku[$u]),!1)}return G(H(t),H(Ku[$u]),!1)}(i.locale||Ju),r._coordSysMgr=new Au;var a=r._api=zw(r);function s(t,e){return t.__prio-e.__prio}return T_(Qw,s),T_($w,s),r._scheduler=new gb(r,a,$w,Qw),r._messageCenter=new Hw,r._initEvents(),r.resize=J(r.resize,r),o.animation.on("frame",r._onframe,r),Rw(o,r),Pw(o,r),xt(r),r}return b(e,t),e.prototype._onframe=function(){if(!this._disposed){Fw(this);var t=this._scheduler;if(this[gw]){var e=this[gw].silent;this[fw]=!0,Vw(this);try{ww(this),Mw.update.call(this,null,this[gw].updateParams)}catch(t){throw this[fw]=!1,this[gw]=null,t}this._zr.flush(),this[fw]=!1,this[gw]=null,Dw.call(this,e),Aw.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),kw(this,i),t.performVisualTasks(i),Bw(this,this._model,r,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[fw])if(this._disposed)Xw(this.id);else{var i,r,o;if(at(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[fw]=!0,Vw(this),!this._model||e){var a=new Cx(this._api),s=this._theme,l=this._model=new mx;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},Kw);var u={seriesTransition:o,optionChanged:!0};if(n)this[gw]={silent:i,updateParams:u},this[fw]=!1,this.getZr().wakeUp();else{try{ww(this),Mw.update.call(this,null,u)}catch(t){throw this[gw]=null,this[fw]=!1,t}this._ssr||this._zr.flush(),this[gw]=null,this[fw]=!1,Dw.call(this,i),Aw.call(this,i)}}},e.prototype.setTheme=function(t,e){if(!this[fw])if(this._disposed)Xw(this.id);else{var n=this._model;if(n){var i=e&&e.silent,r=null;this[gw]&&(null==i&&(i=this[gw].silent),r=this[gw].updateParams,this[gw]=null),this[fw]=!0,Vw(this);try{this._updateTheme(t),n.setTheme(this._theme),ww(this),Mw.update.call(this,{type:"setTheme"},r)}catch(t){throw this[fw]=!1,t}this[fw]=!1,Dw.call(this,i),Aw.call(this,i)}}},e.prototype._updateTheme=function(t){it(t)&&(t=Jw[t]),t&&((t=H(t))&&Wx(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Lt.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr;return Y(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;Y(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Y(i,function(t){t.group.ignore=!1}),o}Xw(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(nS[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();Y(eS,function(o,h){if(o.group===n){var d=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(H(t)),f=o.getDom().getBoundingClientRect();a=i(f.left,a),s=i(f.top,s),l=r(f.right,l),u=r(f.bottom,u),c.push({dom:d,left:f.left,top:f.top})}});var d=(l*=h)-(a*=h),f=(u*=h)-(s*=h),p=T.createCanvas(),g=nx(p,{renderer:e?"svg":"canvas"});if(g.resize({width:d,height:f}),e){var v="";return Y(c,function(t){var e=t.left-a,n=t.top-s;v+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new Mo({shape:{x:0,y:0,width:d,height:f},style:{fill:t.connectedBackgroundColor}})),Y(c,function(t){var e=new mo({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)}),g.refreshImmediately(),p.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}Xw(this.id)},e.prototype.convertToPixel=function(t,e,n){return Tw(this,"convertToPixel",t,e,n)},e.prototype.convertToLayout=function(t,e,n){return Tw(this,"convertToLayout",t,e,n)},e.prototype.convertFromPixel=function(t,e,n){return Tw(this,"convertFromPixel",t,e,n)},e.prototype.containPixel=function(t,e){var n;if(!this._disposed)return Y(ba(this._model,t),function(t,i){i.indexOf("Models")>=0&&Y(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n;Xw(this.id)},e.prototype.getVisual=function(t,e){var n=ba(this._model,t,{defaultMainType:"series"}),i=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=r?function(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}(i,r,e):function(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}(i,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Y(jw,function(e){var n=function(n){var i,r=t.getModel(),o=n.target;if("globalout"===e?i={}:o&&Db(o,function(t){var e=Ta(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return i=W({},e.eventData),!0},!0),i){var a=i.componentType,s=i.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=i.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),u=l&&t["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:l,view:u},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)});var e=this._messageCenter;Y(Zw,function(n,i){e.on(i,function(e){t.trigger(i,e)})}),function(t,e,n){t.on("selectchanged",function(t){var i=n.getModel();t.isFromClick?(Ib("map","selectchanged",e,i,t),Ib("pie","selectchanged",e,i,t)):"select"===t.fromAction?(Ib("map","selected",e,i,t),Ib("pie","selected",e,i,t)):"unselect"===t.fromAction&&(Ib("map","unselected",e,i,t),Ib("pie","unselected",e,i,t))})}(e,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?Xw(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)Xw(this.id);else{this._disposed=!0,this.getDom()&&Ma(this.getDom(),rS,"");var t=this,e=t._api,n=t._model;Y(t._componentsViews,function(t){t.dispose(n,e)}),Y(t._chartsViews,function(t){t.dispose(n,e)}),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete eS[t.id]}},e.prototype.resize=function(t){if(!this[fw])if(this._disposed)Xw(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[gw]&&(null==i&&(i=this[gw].silent),n=!0,this[gw]=null),this[fw]=!0,Vw(this);try{n&&ww(this),Mw.update.call(this,{type:"resize",animation:W({duration:0},t&&t.animation)})}catch(t){throw this[fw]=!1,t}this[fw]=!1,Dw.call(this,i),Aw.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)Xw(this.id);else if(at(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),tS[t]){var n=tS[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?Xw(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=W({},t);return e.type=Yw[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)Xw(this.id);else if(at(e)||(e={silent:!!e}),qw[t.type]&&this._model)if(this[fw])this._pendingActions.push(t);else{var n=e.silent;Iw.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&Lt.browser.weChat&&this._throttledZrFlush(),Dw.call(this,n),Aw.call(this,n)}},e.prototype.updateLabelLayout=function(){lw.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)Xw(this.id);else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function e(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),2===t.hoverState&&t.states.emphasis?e.push("emphasis"):1===t.hoverState&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=fp(t);e.eachRendered(function(t){return gp(t,n.z,n.zlevel),!0})}}function i(t,e){e.eachRendered(function(t){if(!Tf(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function r(t,n){var i=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered(function(t){if(t.states&&t.states.emphasis){if(Tf(t))return;if(t instanceof uo&&function(t){var e=Da(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}})}ww=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Sw(t,!0),Sw(t,!1),e.plan()},Sw=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var h=zt(t.type);(c=new(e?xg.getClass(h.main,h.sub):og.getClass(h.sub))).init(n,s),o[u]=c,r.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&i.prepareView(c,t,n,s)}for(e?n.eachComponent(function(t,e){"series"!==t&&u(e)}):n.eachSeries(u),l=0;l<r.length;){var c=r[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),r.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},Cw=function(t,e,n,i,r){var o=t._model;if(o.setUpdatePayload(n),i){var a={};a[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"];var s={mainType:i,query:a};r&&(s.subType=r);var l,u=n.excludeSeriesId;null!=u&&(l=Mt(),Y(la(u),function(t){var e=ga(t,null);null!=e&&l.set(e,!0)})),o&&o.eachComponent(s,function(e){if(!l||null==l.get(e.id))if(_s(n))if(e instanceof Zh)n.type!==La||n.notBlur||e.get(["emphasis","disabled"])||function(t,e,n){var i=t.seriesIndex,r=t.getData(e.dataType);if(r){var o=ya(r,e);o=(et(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var s=r.count(),l=0;!a&&l<s;)a=r.getItemGraphicEl(l++);if(a){var u=Ta(a);ss(i,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&ss(i,c,h,n)}}}(e,n,t._api);else{var i=us(e.mainType,e.componentIndex,n.name,t._api),r=i.focusSelf,o=i.dispatchers;n.type===La&&r&&!n.notBlur&&ls(e.mainType,e.componentIndex,t._api),o&&Y(o,function(t){n.type===La?ts(t):es(t)})}else ys(n)&&e instanceof Zh&&(function(t,e){if(ys(e)){var n=e.dataType,i=ya(t.getData(n),e);et(i)||(i=[i]),t[e.type===Ea?"toggleSelect":e.type===Ba?"select":"unselect"](i,n)}}(e,n,t._api),cs(e),Nw(t))},t),o&&o.eachComponent(s,function(e){l&&null!=l.get(e.id)||c(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)}else Y([].concat(t._componentsViews).concat(t._chartsViews),c);function c(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}},Mw={prepareAndUpdate:function(t){ww(this),Mw.update.call(this,t,t&&{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,e),kw(this,i),a.update(i,r),t(i),s.performVisualTasks(i,e);var l=i.get("backgroundColor")||"transparent";o.setBackgroundColor(l);var u=i.get("darkMode");null!=u&&"auto"!==u&&o.setDarkMode(u),Lw(this,i,r,e,n),lw.trigger("afterupdate",i,r)}},updateTransform:function(e){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(e);var o=[];i.eachComponent(function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,r,e);l&&l.update&&o.push(s)}else o.push(s)}});var a=Mt();i.eachSeries(function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,i,r,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)}),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0,dirtyMap:a}),Bw(this,i,r,e,{},a),lw.trigger("afterupdate",i,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),og.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),Lw(this,n,this._api,e,{}),lw.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries(function(t){t.getData().clearAllVisual()}),og.markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent(function(t,r){if("series"!==t){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,e)}}),i.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,i,n._api,e)}),lw.trigger("afterupdate",i,this._api))},updateLayout:function(t){Mw.update.call(this,t)}},Tw=function(t,e,n,i,r){if(t._disposed)Xw(t.id);else for(var o,a=t._model,s=t._coordSysMgr.getCoordinateSystems(),l=ba(a,n),u=0;u<s.length;u++){var c=s[u];if(c[e]&&null!=(o=c[e](a,l,i,r)))return o}},kw=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},Iw=function(t,e){var n=this,i=this.getModel(),r=t.type,o=t.escapeConnect,a=qw[r],s=(a.update||"update").split(":"),l=s.pop(),u=null!=s[0]&&zt(s[0]);this[fw]=!0,Vw(this);var c=[t],h=!1;t.batch&&(h=!0,c=Z(t.batch,function(e){return(e=U(W({},e),t)).batch=null,e}));var d,f=[],p=[],g=a.nonRefinedEventType,v=ys(t),m=_s(t);if(m&&as(this._api),Y(c,function(e){var r=a.action(e,i,n._api);if(a.refineEvent?p.push(r):d=r,(d=d||W({},e)).type=g,f.push(d),m){var o=wa(t),s=o.queryOptionMap,c=o.mainTypeSpecified?s.keys()[0]:"series";Cw(n,l,e,c),Nw(n)}else v?(Cw(n,l,e,"series"),Nw(n)):u&&Cw(n,l,e,u.main,u.sub)}),"none"!==l&&!m&&!v&&!u)try{this[gw]?(ww(this),Mw.update.call(this,t),this[gw]=null):Mw[l].call(this,t)}catch(t){throw this[fw]=!1,t}if(d=h?{type:g,escapeConnect:o,batch:f}:f[0],this[fw]=!1,!e){var y=void 0;if(a.refineEvent){var _=a.refineEvent(p,t,i,this._api).eventContent;mt(at(_)),(y=U({type:a.refinedEventType},_)).fromAction=t.type,y.fromActionPayload=t,y.escapeConnect=!0}var x=this._messageCenter;x.trigger(d.type,d),y&&x.trigger(y.type,y)}},Dw=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Iw.call(this,n,t)}},Aw=function(t){!t&&this.trigger("updated")},Rw=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[gw]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},Pw=function(t,e){t.on("mouseover",function(t){var n=Db(t.target,ms);n&&(function(t,e,n){var i=Ta(t),r=us(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=r.dispatchers,a=r.focusSelf;o?(a&&ls(i.componentMainType,i.componentIndex,n),Y(o,function(t){return Qa(t,e)})):(ss(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&ls(i.componentMainType,i.componentIndex,n),Qa(t,e))}(n,t,e._api),Nw(e))}).on("mouseout",function(t){var n=Db(t.target,ms);n&&(function(t,e,n){as(n);var i=Ta(t),r=us(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?Y(r,function(t){return Ja(t,e)}):Ja(t,e)}(n,t,e._api),Nw(e))}).on("click",function(t){var n=Db(t.target,function(t){return null!=Ta(t).dataIndex},!0);if(n){var i=n.selected?"unselect":"select",r=Ta(n);e._api.dispatchAction({type:i,dataType:r.dataType,dataIndexInside:r.dataIndex,seriesIndex:r.seriesIndex,isFromClick:!0})}})},Lw=function(t,e,n,i,r){!function(t){var e=[],n=[],i=!1;if(t.eachComponent(function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})}),i){var r,o,a=e.concat(n);T_(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),Y(a,function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)})}}(e),Ow(t,e,n,i,r),Y(t._chartsViews,function(t){t.__alive=!1}),Bw(t,e,n,i,r),Y(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},Ow=function(t,e,o,a,s,l){Y(l||t._componentsViews,function(t){var s=t.__model;i(0,t),t.render(s,e,o,a),n(s,t),r(s,t)})},Bw=function(t,e,o,a,s,l){var u=t._scheduler;s=W(s||{},{updatedSeries:e.getSeries()}),lw.trigger("series:beforeupdate",e,o,s);var c=!1;e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;u.updatePayload(r,a),i(0,n),l&&l.get(e.uid)&&r.dirty(),r.perform(u.getPerformArgs(r))&&(c=!0),n.group.silent=!!e.get("silent"),function(t,e){var n=t.get("blendMode")||null;e.eachRendered(function(t){t.isGroup||(t.style.blend=n)})}(e,n),cs(e)}),u.unfinished=c||u.unfinished,lw.trigger("series:layoutlabels",e,o,s),lw.trigger("series:transition",e,o,s),e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];n(e,i),r(e,i)}),function(t,e){var n=t._zr.storage,i=0;n.traverse(function(t){t.isGroup||i++}),i>e.get("hoverLayerThreshold")&&!Lt.node&&!Lt.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}(t,e),lw.trigger("series:afterupdate",e,o,s)},Nw=function(t){t[vw]=!0,t.getZr().wakeUp()},Vw=function(t){t[pw]=(t[pw]+1)%1e3},Fw=function(t){t[vw]&&(t.getZr().storage.traverse(function(t){Tf(t)||e(t)}),t[vw]=!1)},zw=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return b(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){ts(e,n),Nw(t)},n.prototype.leaveEmphasis=function(e,n){es(e,n),Nw(t)},n.prototype.enterBlur=function(e){!function(t){Ya(t,Wa)}(e),Nw(t)},n.prototype.leaveBlur=function(e){ns(e),Nw(t)},n.prototype.enterSelect=function(e){is(e),Nw(t)},n.prototype.leaveSelect=function(e){rs(e),Nw(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n.prototype.getMainProcessVersion=function(){return t[pw]},n}(_x))(t)},Ew=function(t){function e(t,e){for(var n=0;n<t.length;n++)t[n][yw]=e}Y(Yw,function(n,i){t._messageCenter.on(i,function(n){if(nS[t.group]&&0!==t[yw]){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),r=[];Y(eS,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),Y(r,function(t){1!==t[yw]&&t.dispatchAction(i)}),e(r,2)}})})}}(),e}(Ei),Uw=Ww.prototype;Uw.on=_w("on"),Uw.off=_w("off"),Uw.one=function(t,e,n){var i=this;this.on.call(this,t,function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),i.off(t,n)},n)};var jw=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Xw(t){}var qw={},Yw={},Zw={},$w=[],Kw=[],Qw=[],Jw={},tS={},eS={},nS={},iS=+new Date-0,rS=(new Date,"_echarts_instance_");function oS(t){return eS[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,rS)]}function aS(t,e){Jw[t]=e}function sS(t){j(Kw,t)<0&&Kw.push(t)}function lS(t,e){fS($w,t,e,2e3)}function uS(t,e){lw.on(t,e)}function cS(t,e,n){var i,r,o,a,s;function l(t){return t.toLowerCase()}nt(e)&&(n=e,e=""),at(t)?(i=t.type,r=t.event,a=t.update,s=t.publishNonRefinedEvent,n||(n=t.action),o=t.refineEvent):(i=t,r=e),r=l(r||i);var u=o?l(i):r;qw[i]||(mt(mw.test(i)&&mw.test(r)),o&&mt(r!==i),qw[i]={actionType:i,refinedEventType:r,nonRefinedEventType:u,update:a,action:n,refineEvent:o},Zw[r]=1,o&&s&&(Zw[u]=1),Yw[u]=i)}function hS(t,e){fS(Qw,t,e,3e3,"visual")}var dS=[];function fS(t,e,n,i,r){if((nt(e)||at(e))&&(n=e,e=i),!(j(dS,n)>=0)){dS.push(n);var o=gb.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function pS(t,e){tS[t]=e}function gS(t,e,n,i){return{eventContent:{selected:hs(n),isFromClick:e.isFromClick||!1}}}hS(cw,Zx),hS(hw,Kx),hS(hw,Qx),hS(cw,Tb),hS(hw,kb),hS(7e3,function(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each(function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=rw(n,e))});var r=i.getVisual("decal");r&&(i.getVisual("style").decal=rw(r,e))}})}),sS(Wx),lS(900,function(t){var e=Mt();t.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.push(o)}}),e.each(function(t){0!==t.length&&("seriesDesc"===(t[0].seriesModel.get("stackOrder")||"seriesAsc")&&t.reverse(),Y(t,function(e,n){e.data.setCalculationInfo("stackedOnSeries",n>0?t[n-1].seriesModel:null)}),function(t){Y(t,function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,c){var h,d,f=a.get(e.stackedDimension,c);if(isNaN(f))return r;s?d=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var p=NaN,g=n-1;g>=0;g--){var v=t[g];if(s||(d=v.data.rawIndexOf(v.stackedByDimension,h)),d>=0){var m=v.data.getByRawIndex(v.stackResultDimension,d);if("all"===l||"positive"===l&&m>0||"negative"===l&&m<0||"samesign"===l&&f>=0&&m>0||"samesign"===l&&f<=0&&m<0){f=Zo(f,m),p=m;break}}}return i[0]=f,i[1]=p,i})})}(t))})}),pS("default",function(t,e){U(e=e||{},{text:"loading",textColor:Sh.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Sh.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new bd,i=new Mo({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new Vo({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Mo({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((r=new rf({shape:{startAngle:-Jx/2,endAngle:-Jx/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Jx/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Jx/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}),cS({type:La,event:La,update:La},Dt),cS({type:Oa,event:Oa,update:Oa},Dt),cS({type:Ba,event:Na,update:Ba,action:Dt,refineEvent:gS,publishNonRefinedEvent:!0}),cS({type:za,event:Na,update:za,action:Dt,refineEvent:gS,publishNonRefinedEvent:!0}),cS({type:Ea,event:Na,update:Ea,action:Dt,refineEvent:gS,publishNonRefinedEvent:!0}),aS("default",{}),aS("dark",wb);var vS={},mS=[],yS={registerPreprocessor:sS,registerProcessor:lS,registerPostInit:function(t){uS("afterinit",t)},registerPostUpdate:function(t){uS("afterupdate",t)},registerUpdateLifecycle:uS,registerAction:cS,registerCoordinateSystem:function(t,e){Au.register(t,e)},registerLayout:function(t,e){fS(Qw,t,e,1e3,"layout")},registerVisual:hS,registerTransform:function(t){var e=(t=H(t)).type;e||Tl("");var n=e.split(":");2!==n.length&&Tl("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,fh.set(e,t)},registerLoading:pS,registerMap:function(t,e,n){var i=uw.registerMap;i&&i(t,e,n)},registerImpl:function(t,e){uw[t]=e},PRIORITY:dw,ComponentModel:Jc,ComponentView:xg,SeriesModel:Zh,ChartView:og,registerComponentModel:function(t){Jc.registerClass(t)},registerComponentView:function(t){xg.registerClass(t)},registerSeriesModel:function(t){Zh.registerClass(t)},registerChartView:function(t){og.registerClass(t)},registerCustomSeries:function(t,e){!function(t,e){vS[t]=e}(t,e)},registerSubTypeDefaulter:function(t,e){Jc.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){var n;n=e,J_[t]=n}};function _S(t){et(t)?Y(t,function(t){_S(t)}):j(mS,t)>=0||(mS.push(t),nt(t)&&(t={install:t}),t.install(yS))}const xS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return b(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Sh.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Sh.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:Sh.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:Sh.color.tertiary,fontSize:14}},e}(Jc);function bS(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function wS(t){if(Lt.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var SS=wS(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function CS(t,e){if(!t)return e;e=Pc(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var MS=CS(wS(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),TS=CS(SS,"transform"),kS="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Lt.transform3dSupported?"will-change:transform;":"");function IS(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!Lt.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=Lt.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+TS+":"+a+";":[["top",0],["left",0],[SS,a]]}function DS(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&function(t,e,n,i,r){Wu(Gu,e,i,r,!0)&&Wu(t,n,Gu[0],Gu[1])}(t,a,n,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var AS=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Lt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),r=e.appendTo,o=r&&(it(r)?document.querySelector(r):ut(r)?r:nt(r)&&r(t.getDom()));DS(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler;vy(i.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=(o="position",(a=(r=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r))?o?a[o]:a:null),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var r,o,a,s=t.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=kS+function(t,e,n,i){var r=[],o=t.get("transitionDuration"),a=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),h=t.getModel("textStyle"),d=Eh(t,"html"),f=u+"px "+c+"px "+s+"px "+l;return r.push("box-shadow:"+f),e&&o>0&&r.push(function(t,e,n){var i="cubic-bezier(0.23,1,0.32,1)",r="",o="";return n&&(o="opacity"+(r=" "+t/2+"s "+i)+",visibility"+r),e||(r=" "+t+"s "+i,o+=(o.length?",":"")+(Lt.transformSupported?""+TS+r:",left"+r+",top"+r)),MS+":"+o}(o,n,i)),a&&r.push("background-color:"+a),Y(["width","color","radius"],function(e){var n="border-"+e,i=Pc(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))}),r.push(function(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var r=ft(t.get("lineHeight"),Math.round(3*n/2));n&&e.push("line-height:"+r+"px");var o=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return o&&a&&e.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),Y(["decoration","align"],function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)}),e.join(";")}(h)),null!=d&&r.push("padding:"+Lc(d).join("px ")+"px"),r.join(";")+";"}(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+IS(r[0],r[1],!0)+"border-color:"+Nc(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null!=t){var a="";if(it(r)&&"item"===n.get("trigger")&&!bS(n)&&(a=function(t,e,n){if(!it(n)||"inside"===n)return"";var i=t.get("backgroundColor"),r=t.get("borderWidth");e=Nc(e);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(r),6),u="",c=TS+":";j(["left","right"],s)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var h=a*Math.PI/180,d=l+r,f=d*Math.abs(Math.cos(h))+d*Math.abs(Math.sin(h)),p=e+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(u+=";"+s+":-"+Math.round(100*((f-Math.SQRT2*r)/2+Math.SQRT2*r-(f-d)/2))/100+"px")+";"+c+";","border-bottom:"+p,"border-right:"+p,"background-color:"+i+";"].join("")+'"></div>'}(n,i,r)),it(t))o.innerHTML=t+a;else if(t){o.innerHTML="",et(t)||(t=[t]);for(var s=0;s<t.length;s++)ut(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},t.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(DS(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style;Y(IS(n[0],n[1]),function(t){i[t[0]]=t[1]})}}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",Lt.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(J(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;!function(t,e){function n(t){var e=t[Hu];e&&(e.clearMarkers&&e.clearMarkers(),delete t[Hu])}t&&n(t),e&&n(e)}(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var n=e.parentNode;n&&n.removeChild(e)}this.el=this._container=null},t}();const RS=AS;function PS(t){return Math.max(0,t)}function LS(t){var e=PS(t.shadowBlur||0),n=PS(t.shadowOffsetX||0),i=PS(t.shadowOffsetY||0);return{left:PS(e-n),right:PS(e+n),top:PS(e-i),bottom:PS(e+i)}}function OS(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const BS=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),OS(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i,r){var o=this;at(t)&&Tl(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Vo({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Eh(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),Y(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){o.el.style[t]=n.get(t)}),Y(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){o.el.style[t]=a.get(t)||0}),this._zr.add(this.el);var s=this;this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=LS(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;OS(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=PS(r.borderWidth||0),a=LS(r);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(J(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();var zS=new Mo({shape:{x:-1,y:-1,width:2,height:2}}),ES=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return b(e,t),e.prototype.init=function(t,e){if(!Lt.node&&e.getDom()){var n,i=t.getComponent("tooltip"),r=this._renderMode="auto"===(n=i.get("renderMode"))?Lt.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===r?new BS(e):new RS(e,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!Lt.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?Sy(this,"_updatePosition",50,"fixRate"):Cy(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");Uy("itemTooltip",this._api,J(function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!Lt.node&&n.getDom()){var r=FS(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i=wa(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o,a=Ca(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a)return n.getViewOfComponentModel(a).group.traverse(function(e){var n=Ta(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0}),o?{componentMainType:r,componentIndex:a.componentIndex,el:o}:void 0}}(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=zS;l.x=i.x,l.y=i.y,l.update(),Ta(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=$y(i,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(FS(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&"axis"===NS([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var r,o;if("legend"===Ta(n).ssrType)return;this._lastDataByCoordSys=null,Db(n,function(t){if(t.tooltipDisabled)return r=o=null,!0;r||o||(null!=Ta(t).dataIndex?r=t:null!=Ta(t).tooltipConfig&&(o=t))},!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=J(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=NS([e.tooltipOption],i),a=this._renderMode,s=[],l=Ih("section",{blocks:[],noHeader:!0}),u=[],c=new Nh;Y(t,function(t){Y(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=Oy(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=Ih("section",{header:o,noHeader:!yt(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),Y(t.seriesDataIndices,function(l){var d=n.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,p=d.getDataParams(f);if(!(p.dataIndex<0)){p.axisDim=t.axisDim,p.axisIndex=t.axisIndex,p.axisType=t.axisType,p.axisId=t.axisId,p.axisValue=Iv(e.axis,{value:r}),p.axisValueLabel=o,p.marker=c.makeTooltipMarker("item",Nc(p.color),a);var g=rh(d.formatTooltip(f,!0,null)),v=g.frag;if(v){var m=NS([d],i).get("valueFormatter");h.blocks.push(m?W({valueFormatter:m},v):v)}g.text&&u.push(g.text),s.push(p)}})}})}),l.blocks.reverse(),u.reverse();var h=e.position,d=o.get("order"),f=Oh(l,c,a,d,n.get("useUTC"),o.get("textStyle"));f&&u.unshift(f);var p="richText"===a?"\n\n":"<br/>",g=u.join(p);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],h,null,c)})},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=Ta(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),h=this._renderMode,d=t.positionDefault,f=NS([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=f.get("trigger");if(null==p||"item"===p){var g=s.getDataParams(l,u),v=new Nh;g.marker=v.makeTooltipMarker("item",Nc(g.color),h);var m=rh(s.formatTooltip(l,!1,u)),y=f.get("order"),_=f.get("valueFormatter"),x=m.frag,b=x?Oh(_?W({valueFormatter:_},x):x,v,h,y,i.get("useUTC"),f.get("textStyle")):m.text,w="item_"+s.name+"_"+l;this._showOrMove(f,function(){this._showTooltipContent(f,b,g,w,t.offsetX,t.offsetY,t.position,t.target,v)}),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,r=Ta(e),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent;it(o)&&(o={content:o,formatter:o},a=!0),a&&i&&o.content&&((o=H(o)).content=qu(o.content));var s=[o],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=t.positionDefault,c=NS(s,this._tooltipModel,u?{position:u}:null),h=c.get("content"),d=Math.random()+"",f=new Nh;this._showOrMove(c,function(){var n=H(c.get("formatterParams")||{});this._showTooltipContent(c,h,n,d,t.offsetX,t.offsetY,t.position,e,f)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,d=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)).color;if(c)if(it(c)){var f=t.ecModel.get("useUTC"),p=et(n)?n[0]:n;h=c,p&&p.axisType&&p.axisType.indexOf("time")>=0&&(h=pc(p.axisValue,h,f)),h=Ec(h,n,!0)}else if(nt(c)){var g=J(function(e,i){e===this._ticket&&(u.setContent(i,l,t,d,a),this._updatePosition(t,a,r,o,u,n,s))},this);this._ticket=i,h=c(n,i,g)}else h=c;u.setContent(h,l,t,d,a),u.show(t,d),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i,r){return"axis"===n||et(e)?{color:i||r}:et(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),nt(e)&&(e=e([n,i],o,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),et(e))n=jo(e[0],s),i=jo(e[1],l);else if(at(e)){var f=e;f.width=u[0],f.height=u[1];var p=Uc(f,{width:s,height:l});n=p.x,i=p.y,c=null,h=null}else if(it(e)&&a){var g=function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+c+a;break;case"left":s=e.x-r-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}(e,d,u,t.get("borderWidth"));n=g[0],i=g[1]}else g=function(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}(n,i,r,s,l,c?null:20,h?null:20),n=g[0],i=g[1];c&&(n-=VS(c)?u[0]/2:"right"===c?u[0]:0),h&&(i-=VS(h)?u[1]/2:"bottom"===h?u[1]:0),bS(t)&&(g=function(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,[t=Math.max(t,0),e=Math.max(e,0)]}(n,i,r,s,l),n=g[0],i=g[1]),r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&Y(n,function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&Y(a,function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&Y(a,function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}),i&&Y(t.seriesDataIndices,function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!Lt.node&&e.getDom()&&(Cy(this,"_updatePosition"),this._tooltipContent.dispose(),qy("itemTooltip",e))},e.type="tooltip",e}(xg);function NS(t,e,n){var i,r=e.ecModel;n?(i=new js(n,r,r),i=new js(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof js&&(a=a.get("tooltip",!0)),it(a)&&(a={formatter:a}),a&&(i=new js(a,i,r)))}return i}function FS(t,e){return t.dispatchAction||J(e.dispatchAction,e)}function VS(t){return"center"===t||"middle"===t}const HS=ES;function GS(t,e,n){var i=T.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}var WS=function(t){function e(e,n,i){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||Fi,"string"==typeof e?r=GS(e,n,i):at(e)&&(e=(r=e).id),o.id=e,o.dom=r;var a=r.style;return a&&(kt(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return qt(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=GS("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new De(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length)(e=new De(0,0,0,0)).copy(t),o.push(e);else{for(var e,n=!1,i=1/0,r=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new De(0,0,0,0);h.copy(c),h.union(t),o[u]=h,n=!0;break}if(s){l.copy(t),l.union(c);var d=t.width*t.height,f=c.width*c.height,p=l.width*l.height-d-f;p<i&&(i=p,r=u)}}s&&(o[r].union(t),n=!0),n||((e=new De(0,0,0,0)).copy(t),o.push(e)),s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c)if(f=t[c]){var h=f.shouldBePainted(n,i,!0,!0);(p=f.__isRendered&&(1&f.__dirty||!h)?f.getPrevPaintRect():null)&&u(p);var d=h&&(1&f.__dirty||!f.__isRendered)?f.getPaintRect():null;d&&u(d)}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var f,p;h=(f=e[c])&&f.shouldBePainted(n,i,!0,!0),!f||h&&f.__zr||!f.__isRendered||(p=f.getPrevPaintRect())&&u(p)}do{for(r=!1,c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(r=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(r);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var i=this.dom,r=this.ctx,o=i.width,a=i.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/u,a/u));var h=this.domBack;function d(t,n,i,o){if(r.clearRect(t,n,i,o),e&&"transparent"!==e){var a=void 0;ct(e)?(a=(e.global||e.__width===i&&e.__height===o)&&e.__canvasGradient||Bb(r,e,{x:0,y:0,width:i,height:o}),e.__canvasGradient=a,e.__width=i,e.__height=o):null!=e.image&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=jb(r,e,{dirty:function(){c.setUnpainted(),c.painter.refresh()}})),r.save(),r.fillStyle=a||e,r.fillRect(t,n,i,o),r.restore()}s&&(r.save(),r.globalAlpha=l,r.drawImage(h,t,n,i,o),r.restore())}!n||s?d(0,0,o,a):n.length&&Y(n,function(t){d(t.x*u,t.y*u,t.width*u,t.height*u)})},e}(Ei);const US=WS;var jS=1e5,XS=314159,qS=.01,YS=function(){function t(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=W({},n||{}),this.dpr=n.devicePixelRatio||Fi,this._singleCanvas=r,this.root=t,t.style&&(kt(t),t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(r){var s=t,l=s.width,u=s.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=new US(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[314159]=c,c.zlevel=XS,o.push(XS),this._domRoot=t}else{this._width=Eb(t,0,n),this._height=Eb(t,1,n);var h=this._domRoot=function(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);t.appendChild(h)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(jS)),i||(i=n.ctx).save(),tw(i,a,r,o===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(jS)},t.prototype.paintOne=function(t,e){Jb(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer(function(t){t.afterBrush&&t.afterBrush()});else{var s=this;P_(function(){s._paintList(t,e,n,i)})}}},t.prototype._compositeManually=function(){var t=this.getLayer(XS).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},t.prototype._doPaintList=function(t,e,n){for(var i=this,r=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&r.push(l)}for(var u=!0,c=!1,h=function(a){var s,l=r[a],h=l.ctx,f=o&&l.createRepaintRects(t,e,d._width,d._height),p=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),m=l.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,m,f);else if(p===l.__startIndex){var y=t[p];y.incremental&&y.notClear&&!n||l.clear(!1,m,f)}-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=l.__startIndex);var _=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=p;s<l.__endIndex;s++){var r=t[s];if(r.__inHover&&(c=!0),i._doPaintEl(r,l,o,e,n,s===l.__endIndex-1),g&&Date.now()-v>15)break}n.prevElClipPaths&&h.restore()};if(f)if(0===f.length)s=l.__endIndex;else for(var x=d.dpr,b=0;b<f.length;++b){var w=f[b];h.save(),h.beginPath(),h.rect(w.x*x,w.y*x,w.width*x,w.height*x),h.clip(),_(w),h.restore()}else h.save(),_(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},d=this,f=0;f<r.length;f++)h(f);return Lt.wxa&&Y(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:u,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,n,i,r,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!i||s&&s.intersect(i))&&(tw(a,t,r,o),t.setPrevPaintRect(s))}else tw(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=XS);var n=this._layers[t];return n||((n=new US("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?G(n,this._layerConfig[t],!0):this._layerConfig[t-qS]&&G(n,this._layerConfig[t-qS],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,a=null,s=-1;if(!n[t]&&function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(r>0&&t>i[0]){for(s=0;s<r-1&&!(i[s]<t&&i[s+1]>t);s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++)if((s=t[n]).zlevel!==t[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}var i,r,o=null,a=0;for(r=0;r<t.length;r++){var s,l=(s=t[r]).zlevel,u=void 0;i!==l&&(i=l,a=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(a>0?qS:0),this._needsManuallyCompositing),u.__builtin__||V("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==r&&(u.__dirty=!0),u.__startIndex=r,u.incremental?u.__drawIndex=-1:u.__drawIndex=r,e(r),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=r))}e(r),this.eachBuiltinLayer(function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,Y(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?G(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];r!==t&&r!==t+qS||G(this._layers[r],n[t],!0)}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(j(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=Eb(r,0,i),e=Eb(r,1,i),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(XS).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new US("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,r=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];tw(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();const ZS=YS;function $S({theme:t,data:e}){const o=r(null),a=i(()=>{const t=e.flatMap(t=>{const e=new Date(t.start).getTime(),n=new Date(t.end).getTime(),i=(e+n)/2;return[{type:"line",name:t.event,data:[[e,0],[n,0]],lineStyle:{width:4,color:t.color},symbol:"none"},{type:"line",name:t.event,data:[[i,0]],symbol:t.icon,symbolSize:32,symbolOffset:[0,-25],tooltip:{formatter:()=>{const e=new Date(t.start).toLocaleString(void 0,{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit"}),n=new Date(t.end).toLocaleString(void 0,{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit"});return`\n <div style="padding:6px">\n <b>${qu(t.event.toUpperCase())}</b><br/>\n Start: ${qu(e)}<br/>\n End: ${qu(n)}<br/>\n </div>\n `}}}]});return t},[e]);return n(()=>{let e,n;return null!==o.current&&(e=function(t,e,n){var i=oS(t);if(i)return i;var r=new Ww(t,e,n);return r.id="ec_"+iS++,eS[r.id]=r,Ma(t,rS,r.id),Ew(r),lw.trigger("afterinit",r),r}(o.current,t),n=new ResizeObserver(()=>{e?.resize()}),n.observe(o.current)),()=>{e?.dispose(),n?.disconnect()}},[t]),n(()=>{if(null!==o.current){const t=oS(o.current),e={title:{text:"Event Timeline",left:"center"},xAxis:{type:"time",position:"bottom",axisTick:{show:!0,length:15,lineStyle:{color:"#999",width:2},inside:!0},axisLine:{lineStyle:{color:"#999",width:2}},axisLabel:{formatter:t=>{const e=new Date(t);return`${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}`},margin:10}},yAxis:{type:"value",min:0,max:0,show:!1},tooltip:{trigger:"item"},series:a};t?.setOption(e,!0)}},[t,a]),(0,_.jsx)("div",{ref:o,style:{height:"100%",width:"100%"}})}_S([function(t){t.registerComponentModel(bg),t.registerComponentView(wg)},function(t){_S(uy),_S(r_)},function(t){t.registerChartView(vg),t.registerSeriesModel(kp),t.registerLayout({seriesType:"line",plan:$p(),reset:function(t){var e=t.getData(),n=t.coordinateSystem;if(t.pipelineContext,n){var i=Z(n.dimensions,function(t){return e.mapDimension(t)}).slice(0,2),r=i.length,o=e.getCalculationInfo("stackResultDimension");Ou(e,i[0])&&(i[0]=o),Ou(e,i[1])&&(i[1]=o);var a=e.getStore(),s=e.getDimensionIndex(i[0]),l=e.getDimensionIndex(i[1]);return r&&{progress:function(t,e){for(var i=Hp((t.end-t.start)*r),o=[],u=[],c=t.start,h=0;c<t.end;c++){var d=void 0;if(1===r){var f=a.get(s,c);d=n.dataToPoint(f,null,u)}else o[0]=a.get(s,c),o[1]=a.get(l,c),d=n.dataToPoint(o,null,u);i[h++]=d[0],i[h++]=d[1]}e.setLayout("points",i)}}}}}),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{seriesType:"line",reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(a/h);if(isFinite(d)&&d>1){"lttb"===r?t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d)):"minmax"===r&&t.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/d));var f=void 0;it(r)?f=mg[r]:nt(r)&&(f=r),f&&t.setData(i.downSample(i.mapDimension(l.dim),1/d,f,yg))}}}})},function(t){t.registerPainter("canvas",ZS)},function(t){_S(r_),t.registerComponentModel(xS),t.registerComponentView(HS),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Dt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Dt)}]);var KS={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};const QS=(n,i,r,o)=>{const a=e(({color:e="currentColor",size:r=24,stroke:a=2,title:s,className:l,children:u,...c},h)=>t("svg",{ref:h,...KS[n],width:r,height:r,className:["tabler-icon",`tabler-icon-${i}`,l].join(" "),..."filled"===n?{fill:e}:{strokeWidth:a,stroke:e},...c},[s&&t("title",{key:"svg-title"},s),...o.map(([e,n])=>t(e,n)),...Array.isArray(u)?u:[u]]));return a.displayName=`${r}`,a},JS=QS("outline","chevron-up","ChevronUp",[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]]),tC=QS("outline","chevron-down","ChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]),eC=QS("outline","selector","Selector",[["path",{d:"M8 9l4 -4l4 4",key:"svg-0"}],["path",{d:"M16 15l-4 4l-4 -4",key:"svg-1"}]]);function nC(t,e){return"function"==typeof t?t(e):t}function iC(t,e){return n=>{e.setState(e=>({...e,[t]:nC(n,e[t])}))}}function rC(t){return t instanceof Function}function oC(t,e,n){let i,r=[];return o=>{let a;n.key&&n.debug&&(a=Date.now());const s=t(o);if(s.length===r.length&&!s.some((t,e)=>r[e]!==t))return i;let l;if(r=s,n.key&&n.debug&&(l=Date.now()),i=e(...s),null==n||null==n.onChange||n.onChange(i),n.key&&n.debug&&null!=n&&n.debug()){const t=Math.round(100*(Date.now()-a))/100,e=Math.round(100*(Date.now()-l))/100,i=e/16,r=(t,e)=>{for(t=String(t);t.length<e;)t=" "+t;return t};console.info(`%c⏱ ${r(e,5)} /${r(t,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*i,120))}deg 100% 31%);`,null==n?void 0:n.key)}return i}}function aC(t,e,n,i){return{debug:()=>{var n;return null!=(n=null==t?void 0:t.debugAll)?n:t[e]},key:!1,onChange:i}}const sC="debugHeaders";function lC(t,e,n){var i;let r={id:null!=(i=n.id)?i:e.id,column:e,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const t=[],e=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(e),t.push(n)};return e(r),t},getContext:()=>({table:t,header:r,column:e})};return t._features.forEach(e=>{null==e.createHeader||e.createHeader(r,t)}),r}const uC={createTable:t=>{t.getHeaderGroups=oC(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,i,r)=>{var o,a;const s=null!=(o=null==i?void 0:i.map(t=>n.find(e=>e.id===t)).filter(Boolean))?o:[],l=null!=(a=null==r?void 0:r.map(t=>n.find(e=>e.id===t)).filter(Boolean))?a:[];return cC(e,[...s,...n.filter(t=>!(null!=i&&i.includes(t.id)||null!=r&&r.includes(t.id))),...l],t)},aC(t.options,sC)),t.getCenterHeaderGroups=oC(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,i,r)=>cC(e,n=n.filter(t=>!(null!=i&&i.includes(t.id)||null!=r&&r.includes(t.id))),t,"center"),aC(t.options,sC)),t.getLeftHeaderGroups=oC(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left],(e,n,i)=>{var r;return cC(e,null!=(r=null==i?void 0:i.map(t=>n.find(e=>e.id===t)).filter(Boolean))?r:[],t,"left")},aC(t.options,sC)),t.getRightHeaderGroups=oC(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.right],(e,n,i)=>{var r;return cC(e,null!=(r=null==i?void 0:i.map(t=>n.find(e=>e.id===t)).filter(Boolean))?r:[],t,"right")},aC(t.options,sC)),t.getFooterGroups=oC(()=>[t.getHeaderGroups()],t=>[...t].reverse(),aC(t.options,sC)),t.getLeftFooterGroups=oC(()=>[t.getLeftHeaderGroups()],t=>[...t].reverse(),aC(t.options,sC)),t.getCenterFooterGroups=oC(()=>[t.getCenterHeaderGroups()],t=>[...t].reverse(),aC(t.options,sC)),t.getRightFooterGroups=oC(()=>[t.getRightHeaderGroups()],t=>[...t].reverse(),aC(t.options,sC)),t.getFlatHeaders=oC(()=>[t.getHeaderGroups()],t=>t.map(t=>t.headers).flat(),aC(t.options,sC)),t.getLeftFlatHeaders=oC(()=>[t.getLeftHeaderGroups()],t=>t.map(t=>t.headers).flat(),aC(t.options,sC)),t.getCenterFlatHeaders=oC(()=>[t.getCenterHeaderGroups()],t=>t.map(t=>t.headers).flat(),aC(t.options,sC)),t.getRightFlatHeaders=oC(()=>[t.getRightHeaderGroups()],t=>t.map(t=>t.headers).flat(),aC(t.options,sC)),t.getCenterLeafHeaders=oC(()=>[t.getCenterFlatHeaders()],t=>t.filter(t=>{var e;return!(null!=(e=t.subHeaders)&&e.length)}),aC(t.options,sC)),t.getLeftLeafHeaders=oC(()=>[t.getLeftFlatHeaders()],t=>t.filter(t=>{var e;return!(null!=(e=t.subHeaders)&&e.length)}),aC(t.options,sC)),t.getRightLeafHeaders=oC(()=>[t.getRightFlatHeaders()],t=>t.filter(t=>{var e;return!(null!=(e=t.subHeaders)&&e.length)}),aC(t.options,sC)),t.getLeafHeaders=oC(()=>[t.getLeftHeaderGroups(),t.getCenterHeaderGroups(),t.getRightHeaderGroups()],(t,e,n)=>{var i,r,o,a,s,l;return[...null!=(i=null==(r=t[0])?void 0:r.headers)?i:[],...null!=(o=null==(a=e[0])?void 0:a.headers)?o:[],...null!=(s=null==(l=n[0])?void 0:l.headers)?s:[]].map(t=>t.getLeafHeaders()).flat()},aC(t.options,sC))}};function cC(t,e,n,i){var r,o;let a=0;const s=function(t,e){void 0===e&&(e=1),a=Math.max(a,e),t.filter(t=>t.getIsVisible()).forEach(t=>{var n;null!=(n=t.columns)&&n.length&&s(t.columns,e+1)},0)};s(t);let l=[];const u=(t,e)=>{const r={depth:e,id:[i,`${e}`].filter(Boolean).join("_"),headers:[]},o=[];t.forEach(t=>{const a=[...o].reverse()[0];let s,l=!1;if(t.column.depth===r.depth&&t.column.parent?s=t.column.parent:(s=t.column,l=!0),a&&(null==a?void 0:a.column)===s)a.subHeaders.push(t);else{const r=lC(n,s,{id:[i,e,s.id,null==t?void 0:t.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${o.filter(t=>t.column===s).length}`:void 0,depth:e,index:o.length});r.subHeaders.push(t),o.push(r)}r.headers.push(t),t.headerGroup=r}),l.push(r),e>0&&u(o,e-1)},c=e.map((t,e)=>lC(n,t,{depth:a,index:e}));u(c,a-1),l.reverse();const h=t=>t.filter(t=>t.column.getIsVisible()).map(t=>{let e=0,n=0,i=[0];return t.subHeaders&&t.subHeaders.length?(i=[],h(t.subHeaders).forEach(t=>{let{colSpan:n,rowSpan:r}=t;e+=n,i.push(r)})):e=1,n+=Math.min(...i),t.colSpan=e,t.rowSpan=n,{colSpan:e,rowSpan:n}});return h(null!=(r=null==(o=l[0])?void 0:o.headers)?r:[]),l}const hC=(t,e,n,i,r,o,a)=>{let s={id:e,index:i,original:n,depth:r,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:e=>{if(s._valuesCache.hasOwnProperty(e))return s._valuesCache[e];const n=t.getColumn(e);return null!=n&&n.accessorFn?(s._valuesCache[e]=n.accessorFn(s.original,i),s._valuesCache[e]):void 0},getUniqueValues:e=>{if(s._uniqueValuesCache.hasOwnProperty(e))return s._uniqueValuesCache[e];const n=t.getColumn(e);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(s._uniqueValuesCache[e]=n.columnDef.getUniqueValues(s.original,i),s._uniqueValuesCache[e]):(s._uniqueValuesCache[e]=[s.getValue(e)],s._uniqueValuesCache[e]):void 0},renderValue:e=>{var n;return null!=(n=s.getValue(e))?n:t.options.renderFallbackValue},subRows:null!=o?o:[],getLeafRows:()=>function(t,e){const n=[],i=t=>{t.forEach(t=>{n.push(t);const r=e(t);null!=r&&r.length&&i(r)})};return i(t),n}(s.subRows,t=>t.subRows),getParentRow:()=>s.parentId?t.getRow(s.parentId,!0):void 0,getParentRows:()=>{let t=[],e=s;for(;;){const n=e.getParentRow();if(!n)break;t.push(n),e=n}return t.reverse()},getAllCells:oC(()=>[t.getAllLeafColumns()],e=>e.map(e=>function(t,e,n,i){const r={id:`${e.id}_${n.id}`,row:e,column:n,getValue:()=>e.getValue(i),renderValue:()=>{var e;return null!=(e=r.getValue())?e:t.options.renderFallbackValue},getContext:oC(()=>[t,n,e,r],(t,e,n,i)=>({table:t,column:e,row:n,cell:i,getValue:i.getValue,renderValue:i.renderValue}),aC(t.options,"debugCells"))};return t._features.forEach(i=>{null==i.createCell||i.createCell(r,n,e,t)},{}),r}(t,s,e,e.id)),aC(t.options,"debugRows")),_getAllCellsByColumnId:oC(()=>[s.getAllCells()],t=>t.reduce((t,e)=>(t[e.column.id]=e,t),{}),aC(t.options,"debugRows"))};for(let e=0;e<t._features.length;e++){const n=t._features[e];null==n||null==n.createRow||n.createRow(s,t)}return s},dC={createColumn:(t,e)=>{t._getFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,t.id),t.getFacetedRowModel=()=>t._getFacetedRowModel?t._getFacetedRowModel():e.getPreFilteredRowModel(),t._getFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,t.id),t.getFacetedUniqueValues=()=>t._getFacetedUniqueValues?t._getFacetedUniqueValues():new Map,t._getFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,t.id),t.getFacetedMinMaxValues=()=>{if(t._getFacetedMinMaxValues)return t._getFacetedMinMaxValues()}}},fC=(t,e,n)=>{var i,r;const o=null==n||null==(i=n.toString())?void 0:i.toLowerCase();return Boolean(null==(r=t.getValue(e))||null==(r=r.toString())||null==(r=r.toLowerCase())?void 0:r.includes(o))};fC.autoRemove=t=>SC(t);const pC=(t,e,n)=>{var i;return Boolean(null==(i=t.getValue(e))||null==(i=i.toString())?void 0:i.includes(n))};pC.autoRemove=t=>SC(t);const gC=(t,e,n)=>{var i;return(null==(i=t.getValue(e))||null==(i=i.toString())?void 0:i.toLowerCase())===(null==n?void 0:n.toLowerCase())};gC.autoRemove=t=>SC(t);const vC=(t,e,n)=>{var i;return null==(i=t.getValue(e))?void 0:i.includes(n)};vC.autoRemove=t=>SC(t);const mC=(t,e,n)=>!n.some(n=>{var i;return!(null!=(i=t.getValue(e))&&i.includes(n))});mC.autoRemove=t=>SC(t)||!(null!=t&&t.length);const yC=(t,e,n)=>n.some(n=>{var i;return null==(i=t.getValue(e))?void 0:i.includes(n)});yC.autoRemove=t=>SC(t)||!(null!=t&&t.length);const _C=(t,e,n)=>t.getValue(e)===n;_C.autoRemove=t=>SC(t);const xC=(t,e,n)=>t.getValue(e)==n;xC.autoRemove=t=>SC(t);const bC=(t,e,n)=>{let[i,r]=n;const o=t.getValue(e);return o>=i&&o<=r};bC.resolveFilterValue=t=>{let[e,n]=t,i="number"!=typeof e?parseFloat(e):e,r="number"!=typeof n?parseFloat(n):n,o=null===e||Number.isNaN(i)?-1/0:i,a=null===n||Number.isNaN(r)?1/0:r;if(o>a){const t=o;o=a,a=t}return[o,a]},bC.autoRemove=t=>SC(t)||SC(t[0])&&SC(t[1]);const wC={includesString:fC,includesStringSensitive:pC,equalsString:gC,arrIncludes:vC,arrIncludesAll:mC,arrIncludesSome:yC,equals:_C,weakEquals:xC,inNumberRange:bC};function SC(t){return null==t||""===t}const CC={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:t=>({columnFilters:[],...t}),getDefaultOptions:t=>({onColumnFiltersChange:iC("columnFilters",t),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(t,e)=>{t.getAutoFilterFn=()=>{const n=e.getCoreRowModel().flatRows[0],i=null==n?void 0:n.getValue(t.id);return"string"==typeof i?wC.includesString:"number"==typeof i?wC.inNumberRange:"boolean"==typeof i||null!==i&&"object"==typeof i?wC.equals:Array.isArray(i)?wC.arrIncludes:wC.weakEquals},t.getFilterFn=()=>{var n,i;return rC(t.columnDef.filterFn)?t.columnDef.filterFn:"auto"===t.columnDef.filterFn?t.getAutoFilterFn():null!=(n=null==(i=e.options.filterFns)?void 0:i[t.columnDef.filterFn])?n:wC[t.columnDef.filterFn]},t.getCanFilter=()=>{var n,i,r;return(null==(n=t.columnDef.enableColumnFilter)||n)&&(null==(i=e.options.enableColumnFilters)||i)&&(null==(r=e.options.enableFilters)||r)&&!!t.accessorFn},t.getIsFiltered=()=>t.getFilterIndex()>-1,t.getFilterValue=()=>{var n;return null==(n=e.getState().columnFilters)||null==(n=n.find(e=>e.id===t.id))?void 0:n.value},t.getFilterIndex=()=>{var n,i;return null!=(n=null==(i=e.getState().columnFilters)?void 0:i.findIndex(e=>e.id===t.id))?n:-1},t.setFilterValue=n=>{e.setColumnFilters(e=>{const i=t.getFilterFn(),r=null==e?void 0:e.find(e=>e.id===t.id),o=nC(n,r?r.value:void 0);var a;if(MC(i,o,t))return null!=(a=null==e?void 0:e.filter(e=>e.id!==t.id))?a:[];const s={id:t.id,value:o};var l;return r?null!=(l=null==e?void 0:e.map(e=>e.id===t.id?s:e))?l:[]:null!=e&&e.length?[...e,s]:[s]})}},createRow:(t,e)=>{t.columnFilters={},t.columnFiltersMeta={}},createTable:t=>{t.setColumnFilters=e=>{const n=t.getAllLeafColumns();null==t.options.onColumnFiltersChange||t.options.onColumnFiltersChange(t=>{var i;return null==(i=nC(e,t))?void 0:i.filter(t=>{const e=n.find(e=>e.id===t.id);return!e||!MC(e.getFilterFn(),t.value,e)})})},t.resetColumnFilters=e=>{var n,i;t.setColumnFilters(e?[]:null!=(n=null==(i=t.initialState)?void 0:i.columnFilters)?n:[])},t.getPreFilteredRowModel=()=>t.getCoreRowModel(),t.getFilteredRowModel=()=>(!t._getFilteredRowModel&&t.options.getFilteredRowModel&&(t._getFilteredRowModel=t.options.getFilteredRowModel(t)),t.options.manualFiltering||!t._getFilteredRowModel?t.getPreFilteredRowModel():t._getFilteredRowModel())}};function MC(t,e,n){return!(!t||!t.autoRemove)&&t.autoRemove(e,n)||void 0===e||"string"==typeof e&&!e}const TC={sum:(t,e,n)=>n.reduce((e,n)=>{const i=n.getValue(t);return e+("number"==typeof i?i:0)},0),min:(t,e,n)=>{let i;return n.forEach(e=>{const n=e.getValue(t);null!=n&&(i>n||void 0===i&&n>=n)&&(i=n)}),i},max:(t,e,n)=>{let i;return n.forEach(e=>{const n=e.getValue(t);null!=n&&(i<n||void 0===i&&n>=n)&&(i=n)}),i},extent:(t,e,n)=>{let i,r;return n.forEach(e=>{const n=e.getValue(t);null!=n&&(void 0===i?n>=n&&(i=r=n):(i>n&&(i=n),r<n&&(r=n)))}),[i,r]},mean:(t,e)=>{let n=0,i=0;if(e.forEach(e=>{let r=e.getValue(t);null!=r&&(r=+r)>=r&&(++n,i+=r)}),n)return i/n},median:(t,e)=>{if(!e.length)return;const n=e.map(e=>e.getValue(t));if(i=n,!Array.isArray(i)||!i.every(t=>"number"==typeof t))return;var i;if(1===n.length)return n[0];const r=Math.floor(n.length/2),o=n.sort((t,e)=>t-e);return n.length%2!=0?o[r]:(o[r-1]+o[r])/2},unique:(t,e)=>Array.from(new Set(e.map(e=>e.getValue(t))).values()),uniqueCount:(t,e)=>new Set(e.map(e=>e.getValue(t))).size,count:(t,e)=>e.length},kC={getDefaultColumnDef:()=>({aggregatedCell:t=>{var e,n;return null!=(e=null==(n=t.getValue())||null==n.toString?void 0:n.toString())?e:null},aggregationFn:"auto"}),getInitialState:t=>({grouping:[],...t}),getDefaultOptions:t=>({onGroupingChange:iC("grouping",t),groupedColumnMode:"reorder"}),createColumn:(t,e)=>{t.toggleGrouping=()=>{e.setGrouping(e=>null!=e&&e.includes(t.id)?e.filter(e=>e!==t.id):[...null!=e?e:[],t.id])},t.getCanGroup=()=>{var n,i;return(null==(n=t.columnDef.enableGrouping)||n)&&(null==(i=e.options.enableGrouping)||i)&&(!!t.accessorFn||!!t.columnDef.getGroupingValue)},t.getIsGrouped=()=>{var n;return null==(n=e.getState().grouping)?void 0:n.includes(t.id)},t.getGroupedIndex=()=>{var n;return null==(n=e.getState().grouping)?void 0:n.indexOf(t.id)},t.getToggleGroupingHandler=()=>{const e=t.getCanGroup();return()=>{e&&t.toggleGrouping()}},t.getAutoAggregationFn=()=>{const n=e.getCoreRowModel().flatRows[0],i=null==n?void 0:n.getValue(t.id);return"number"==typeof i?TC.sum:"[object Date]"===Object.prototype.toString.call(i)?TC.extent:void 0},t.getAggregationFn=()=>{var n,i;if(!t)throw new Error;return rC(t.columnDef.aggregationFn)?t.columnDef.aggregationFn:"auto"===t.columnDef.aggregationFn?t.getAutoAggregationFn():null!=(n=null==(i=e.options.aggregationFns)?void 0:i[t.columnDef.aggregationFn])?n:TC[t.columnDef.aggregationFn]}},createTable:t=>{t.setGrouping=e=>null==t.options.onGroupingChange?void 0:t.options.onGroupingChange(e),t.resetGrouping=e=>{var n,i;t.setGrouping(e?[]:null!=(n=null==(i=t.initialState)?void 0:i.grouping)?n:[])},t.getPreGroupedRowModel=()=>t.getFilteredRowModel(),t.getGroupedRowModel=()=>(!t._getGroupedRowModel&&t.options.getGroupedRowModel&&(t._getGroupedRowModel=t.options.getGroupedRowModel(t)),t.options.manualGrouping||!t._getGroupedRowModel?t.getPreGroupedRowModel():t._getGroupedRowModel())},createRow:(t,e)=>{t.getIsGrouped=()=>!!t.groupingColumnId,t.getGroupingValue=n=>{if(t._groupingValuesCache.hasOwnProperty(n))return t._groupingValuesCache[n];const i=e.getColumn(n);return null!=i&&i.columnDef.getGroupingValue?(t._groupingValuesCache[n]=i.columnDef.getGroupingValue(t.original),t._groupingValuesCache[n]):t.getValue(n)},t._groupingValuesCache={}},createCell:(t,e,n,i)=>{t.getIsGrouped=()=>e.getIsGrouped()&&e.id===n.groupingColumnId,t.getIsPlaceholder=()=>!t.getIsGrouped()&&e.getIsGrouped(),t.getIsAggregated=()=>{var e;return!t.getIsGrouped()&&!t.getIsPlaceholder()&&!(null==(e=n.subRows)||!e.length)}}},IC={getInitialState:t=>({columnOrder:[],...t}),getDefaultOptions:t=>({onColumnOrderChange:iC("columnOrder",t)}),createColumn:(t,e)=>{t.getIndex=oC(t=>[BC(e,t)],e=>e.findIndex(e=>e.id===t.id),aC(e.options,"debugColumns")),t.getIsFirstColumn=n=>{var i;return(null==(i=BC(e,n)[0])?void 0:i.id)===t.id},t.getIsLastColumn=n=>{var i;const r=BC(e,n);return(null==(i=r[r.length-1])?void 0:i.id)===t.id}},createTable:t=>{t.setColumnOrder=e=>null==t.options.onColumnOrderChange?void 0:t.options.onColumnOrderChange(e),t.resetColumnOrder=e=>{var n;t.setColumnOrder(e?[]:null!=(n=t.initialState.columnOrder)?n:[])},t._getOrderColumnsFn=oC(()=>[t.getState().columnOrder,t.getState().grouping,t.options.groupedColumnMode],(t,e,n)=>i=>{let r=[];if(null!=t&&t.length){const e=[...t],n=[...i];for(;n.length&&e.length;){const t=e.shift(),i=n.findIndex(e=>e.id===t);i>-1&&r.push(n.splice(i,1)[0])}r=[...r,...n]}else r=i;return function(t,e,n){if(null==e||!e.length||!n)return t;const i=t.filter(t=>!e.includes(t.id));return"remove"===n?i:[...e.map(e=>t.find(t=>t.id===e)).filter(Boolean),...i]}(r,e,n)},aC(t.options,"debugTable"))}},DC={getInitialState:t=>({columnPinning:{left:[],right:[]},...t}),getDefaultOptions:t=>({onColumnPinningChange:iC("columnPinning",t)}),createColumn:(t,e)=>{t.pin=n=>{const i=t.getLeafColumns().map(t=>t.id).filter(Boolean);e.setColumnPinning(t=>{var e,r,o,a,s,l;return"right"===n?{left:(null!=(o=null==t?void 0:t.left)?o:[]).filter(t=>!(null!=i&&i.includes(t))),right:[...(null!=(a=null==t?void 0:t.right)?a:[]).filter(t=>!(null!=i&&i.includes(t))),...i]}:"left"===n?{left:[...(null!=(s=null==t?void 0:t.left)?s:[]).filter(t=>!(null!=i&&i.includes(t))),...i],right:(null!=(l=null==t?void 0:t.right)?l:[]).filter(t=>!(null!=i&&i.includes(t)))}:{left:(null!=(e=null==t?void 0:t.left)?e:[]).filter(t=>!(null!=i&&i.includes(t))),right:(null!=(r=null==t?void 0:t.right)?r:[]).filter(t=>!(null!=i&&i.includes(t)))}})},t.getCanPin=()=>t.getLeafColumns().some(t=>{var n,i,r;return(null==(n=t.columnDef.enablePinning)||n)&&(null==(i=null!=(r=e.options.enableColumnPinning)?r:e.options.enablePinning)||i)}),t.getIsPinned=()=>{const n=t.getLeafColumns().map(t=>t.id),{left:i,right:r}=e.getState().columnPinning,o=n.some(t=>null==i?void 0:i.includes(t)),a=n.some(t=>null==r?void 0:r.includes(t));return o?"left":!!a&&"right"},t.getPinnedIndex=()=>{var n,i;const r=t.getIsPinned();return r?null!=(n=null==(i=e.getState().columnPinning)||null==(i=i[r])?void 0:i.indexOf(t.id))?n:-1:0}},createRow:(t,e)=>{t.getCenterVisibleCells=oC(()=>[t._getAllVisibleCells(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,e,n)=>{const i=[...null!=e?e:[],...null!=n?n:[]];return t.filter(t=>!i.includes(t.column.id))},aC(e.options,"debugRows")),t.getLeftVisibleCells=oC(()=>[t._getAllVisibleCells(),e.getState().columnPinning.left],(t,e)=>(null!=e?e:[]).map(e=>t.find(t=>t.column.id===e)).filter(Boolean).map(t=>({...t,position:"left"})),aC(e.options,"debugRows")),t.getRightVisibleCells=oC(()=>[t._getAllVisibleCells(),e.getState().columnPinning.right],(t,e)=>(null!=e?e:[]).map(e=>t.find(t=>t.column.id===e)).filter(Boolean).map(t=>({...t,position:"right"})),aC(e.options,"debugRows"))},createTable:t=>{t.setColumnPinning=e=>null==t.options.onColumnPinningChange?void 0:t.options.onColumnPinningChange(e),t.resetColumnPinning=e=>{var n,i;return t.setColumnPinning(e?{left:[],right:[]}:null!=(n=null==(i=t.initialState)?void 0:i.columnPinning)?n:{left:[],right:[]})},t.getIsSomeColumnsPinned=e=>{var n;const i=t.getState().columnPinning;var r,o;return e?Boolean(null==(n=i[e])?void 0:n.length):Boolean((null==(r=i.left)?void 0:r.length)||(null==(o=i.right)?void 0:o.length))},t.getLeftLeafColumns=oC(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left],(t,e)=>(null!=e?e:[]).map(e=>t.find(t=>t.id===e)).filter(Boolean),aC(t.options,"debugColumns")),t.getRightLeafColumns=oC(()=>[t.getAllLeafColumns(),t.getState().columnPinning.right],(t,e)=>(null!=e?e:[]).map(e=>t.find(t=>t.id===e)).filter(Boolean),aC(t.options,"debugColumns")),t.getCenterLeafColumns=oC(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(t,e,n)=>{const i=[...null!=e?e:[],...null!=n?n:[]];return t.filter(t=>!i.includes(t.id))},aC(t.options,"debugColumns"))}},AC={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},RC={getDefaultColumnDef:()=>AC,getInitialState:t=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...t}),getDefaultOptions:t=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:iC("columnSizing",t),onColumnSizingInfoChange:iC("columnSizingInfo",t)}),createColumn:(t,e)=>{t.getSize=()=>{var n,i,r;const o=e.getState().columnSizing[t.id];return Math.min(Math.max(null!=(n=t.columnDef.minSize)?n:AC.minSize,null!=(i=null!=o?o:t.columnDef.size)?i:AC.size),null!=(r=t.columnDef.maxSize)?r:AC.maxSize)},t.getStart=oC(t=>[t,BC(e,t),e.getState().columnSizing],(e,n)=>n.slice(0,t.getIndex(e)).reduce((t,e)=>t+e.getSize(),0),aC(e.options,"debugColumns")),t.getAfter=oC(t=>[t,BC(e,t),e.getState().columnSizing],(e,n)=>n.slice(t.getIndex(e)+1).reduce((t,e)=>t+e.getSize(),0),aC(e.options,"debugColumns")),t.resetSize=()=>{e.setColumnSizing(e=>{let{[t.id]:n,...i}=e;return i})},t.getCanResize=()=>{var n,i;return(null==(n=t.columnDef.enableResizing)||n)&&(null==(i=e.options.enableColumnResizing)||i)},t.getIsResizing=()=>e.getState().columnSizingInfo.isResizingColumn===t.id},createHeader:(t,e)=>{t.getSize=()=>{let e=0;const n=t=>{var i;t.subHeaders.length?t.subHeaders.forEach(n):e+=null!=(i=t.column.getSize())?i:0};return n(t),e},t.getStart=()=>{if(t.index>0){const e=t.headerGroup.headers[t.index-1];return e.getStart()+e.getSize()}return 0},t.getResizeHandler=n=>{const i=e.getColumn(t.column.id),r=null==i?void 0:i.getCanResize();return o=>{if(!i||!r)return;if(null==o.persist||o.persist(),LC(o)&&o.touches&&o.touches.length>1)return;const a=t.getSize(),s=t?t.getLeafHeaders().map(t=>[t.column.id,t.column.getSize()]):[[i.id,i.getSize()]],l=LC(o)?Math.round(o.touches[0].clientX):o.clientX,u={},c=(t,n)=>{"number"==typeof n&&(e.setColumnSizingInfo(t=>{var i,r;const o="rtl"===e.options.columnResizeDirection?-1:1,a=(n-(null!=(i=null==t?void 0:t.startOffset)?i:0))*o,s=Math.max(a/(null!=(r=null==t?void 0:t.startSize)?r:0),-.999999);return t.columnSizingStart.forEach(t=>{let[e,n]=t;u[e]=Math.round(100*Math.max(n+n*s,0))/100}),{...t,deltaOffset:a,deltaPercentage:s}}),"onChange"!==e.options.columnResizeMode&&"end"!==t||e.setColumnSizing(t=>({...t,...u})))},h=t=>c("move",t),d=t=>{c("end",t),e.setColumnSizingInfo(t=>({...t,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=n||("undefined"!=typeof document?document:null),p={moveHandler:t=>h(t.clientX),upHandler:t=>{null==f||f.removeEventListener("mousemove",p.moveHandler),null==f||f.removeEventListener("mouseup",p.upHandler),d(t.clientX)}},g={moveHandler:t=>(t.cancelable&&(t.preventDefault(),t.stopPropagation()),h(t.touches[0].clientX),!1),upHandler:t=>{var e;null==f||f.removeEventListener("touchmove",g.moveHandler),null==f||f.removeEventListener("touchend",g.upHandler),t.cancelable&&(t.preventDefault(),t.stopPropagation()),d(null==(e=t.touches[0])?void 0:e.clientX)}},v=!!function(){if("boolean"==typeof PC)return PC;let t=!1;try{const e={get passive(){return t=!0,!1}},n=()=>{};window.addEventListener("test",n,e),window.removeEventListener("test",n)}catch(e){t=!1}return PC=t,PC}()&&{passive:!1};LC(o)?(null==f||f.addEventListener("touchmove",g.moveHandler,v),null==f||f.addEventListener("touchend",g.upHandler,v)):(null==f||f.addEventListener("mousemove",p.moveHandler,v),null==f||f.addEventListener("mouseup",p.upHandler,v)),e.setColumnSizingInfo(t=>({...t,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:i.id}))}}},createTable:t=>{t.setColumnSizing=e=>null==t.options.onColumnSizingChange?void 0:t.options.onColumnSizingChange(e),t.setColumnSizingInfo=e=>null==t.options.onColumnSizingInfoChange?void 0:t.options.onColumnSizingInfoChange(e),t.resetColumnSizing=e=>{var n;t.setColumnSizing(e?{}:null!=(n=t.initialState.columnSizing)?n:{})},t.resetHeaderSizeInfo=e=>{var n;t.setColumnSizingInfo(e?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=t.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},t.getTotalSize=()=>{var e,n;return null!=(e=null==(n=t.getHeaderGroups()[0])?void 0:n.headers.reduce((t,e)=>t+e.getSize(),0))?e:0},t.getLeftTotalSize=()=>{var e,n;return null!=(e=null==(n=t.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((t,e)=>t+e.getSize(),0))?e:0},t.getCenterTotalSize=()=>{var e,n;return null!=(e=null==(n=t.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((t,e)=>t+e.getSize(),0))?e:0},t.getRightTotalSize=()=>{var e,n;return null!=(e=null==(n=t.getRightHeaderGroups()[0])?void 0:n.headers.reduce((t,e)=>t+e.getSize(),0))?e:0}}};let PC=null;function LC(t){return"touchstart"===t.type}const OC={getInitialState:t=>({columnVisibility:{},...t}),getDefaultOptions:t=>({onColumnVisibilityChange:iC("columnVisibility",t)}),createColumn:(t,e)=>{t.toggleVisibility=n=>{t.getCanHide()&&e.setColumnVisibility(e=>({...e,[t.id]:null!=n?n:!t.getIsVisible()}))},t.getIsVisible=()=>{var n,i;const r=t.columns;return null==(n=r.length?r.some(t=>t.getIsVisible()):null==(i=e.getState().columnVisibility)?void 0:i[t.id])||n},t.getCanHide=()=>{var n,i;return(null==(n=t.columnDef.enableHiding)||n)&&(null==(i=e.options.enableHiding)||i)},t.getToggleVisibilityHandler=()=>e=>{null==t.toggleVisibility||t.toggleVisibility(e.target.checked)}},createRow:(t,e)=>{t._getAllVisibleCells=oC(()=>[t.getAllCells(),e.getState().columnVisibility],t=>t.filter(t=>t.column.getIsVisible()),aC(e.options,"debugRows")),t.getVisibleCells=oC(()=>[t.getLeftVisibleCells(),t.getCenterVisibleCells(),t.getRightVisibleCells()],(t,e,n)=>[...t,...e,...n],aC(e.options,"debugRows"))},createTable:t=>{const e=(e,n)=>oC(()=>[n(),n().filter(t=>t.getIsVisible()).map(t=>t.id).join("_")],t=>t.filter(t=>null==t.getIsVisible?void 0:t.getIsVisible()),aC(t.options,"debugColumns"));t.getVisibleFlatColumns=e(0,()=>t.getAllFlatColumns()),t.getVisibleLeafColumns=e(0,()=>t.getAllLeafColumns()),t.getLeftVisibleLeafColumns=e(0,()=>t.getLeftLeafColumns()),t.getRightVisibleLeafColumns=e(0,()=>t.getRightLeafColumns()),t.getCenterVisibleLeafColumns=e(0,()=>t.getCenterLeafColumns()),t.setColumnVisibility=e=>null==t.options.onColumnVisibilityChange?void 0:t.options.onColumnVisibilityChange(e),t.resetColumnVisibility=e=>{var n;t.setColumnVisibility(e?{}:null!=(n=t.initialState.columnVisibility)?n:{})},t.toggleAllColumnsVisible=e=>{var n;e=null!=(n=e)?n:!t.getIsAllColumnsVisible(),t.setColumnVisibility(t.getAllLeafColumns().reduce((t,n)=>({...t,[n.id]:e||!(null!=n.getCanHide&&n.getCanHide())}),{}))},t.getIsAllColumnsVisible=()=>!t.getAllLeafColumns().some(t=>!(null!=t.getIsVisible&&t.getIsVisible())),t.getIsSomeColumnsVisible=()=>t.getAllLeafColumns().some(t=>null==t.getIsVisible?void 0:t.getIsVisible()),t.getToggleAllColumnsVisibilityHandler=()=>e=>{var n;t.toggleAllColumnsVisible(null==(n=e.target)?void 0:n.checked)}}};function BC(t,e){return e?"center"===e?t.getCenterVisibleLeafColumns():"left"===e?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns()}const zC={getInitialState:t=>({expanded:{},...t}),getDefaultOptions:t=>({onExpandedChange:iC("expanded",t),paginateExpandedRows:!0}),createTable:t=>{let e=!1,n=!1;t._autoResetExpanded=()=>{var i,r;if(e){if(null!=(i=null!=(r=t.options.autoResetAll)?r:t.options.autoResetExpanded)?i:!t.options.manualExpanding){if(n)return;n=!0,t._queue(()=>{t.resetExpanded(),n=!1})}}else t._queue(()=>{e=!0})},t.setExpanded=e=>null==t.options.onExpandedChange?void 0:t.options.onExpandedChange(e),t.toggleAllRowsExpanded=e=>{(null!=e?e:!t.getIsAllRowsExpanded())?t.setExpanded(!0):t.setExpanded({})},t.resetExpanded=e=>{var n,i;t.setExpanded(e?{}:null!=(n=null==(i=t.initialState)?void 0:i.expanded)?n:{})},t.getCanSomeRowsExpand=()=>t.getPrePaginationRowModel().flatRows.some(t=>t.getCanExpand()),t.getToggleAllRowsExpandedHandler=()=>e=>{null==e.persist||e.persist(),t.toggleAllRowsExpanded()},t.getIsSomeRowsExpanded=()=>{const e=t.getState().expanded;return!0===e||Object.values(e).some(Boolean)},t.getIsAllRowsExpanded=()=>{const e=t.getState().expanded;return"boolean"==typeof e?!0===e:!!Object.keys(e).length&&!t.getRowModel().flatRows.some(t=>!t.getIsExpanded())},t.getExpandedDepth=()=>{let e=0;return(!0===t.getState().expanded?Object.keys(t.getRowModel().rowsById):Object.keys(t.getState().expanded)).forEach(t=>{const n=t.split(".");e=Math.max(e,n.length)}),e},t.getPreExpandedRowModel=()=>t.getSortedRowModel(),t.getExpandedRowModel=()=>(!t._getExpandedRowModel&&t.options.getExpandedRowModel&&(t._getExpandedRowModel=t.options.getExpandedRowModel(t)),t.options.manualExpanding||!t._getExpandedRowModel?t.getPreExpandedRowModel():t._getExpandedRowModel())},createRow:(t,e)=>{t.toggleExpanded=n=>{e.setExpanded(i=>{var r;const o=!0===i||!(null==i||!i[t.id]);let a={};if(!0===i?Object.keys(e.getRowModel().rowsById).forEach(t=>{a[t]=!0}):a=i,n=null!=(r=n)?r:!o,!o&&n)return{...a,[t.id]:!0};if(o&&!n){const{[t.id]:e,...n}=a;return n}return i})},t.getIsExpanded=()=>{var n;const i=e.getState().expanded;return!!(null!=(n=null==e.options.getIsRowExpanded?void 0:e.options.getIsRowExpanded(t))?n:!0===i||(null==i?void 0:i[t.id]))},t.getCanExpand=()=>{var n,i,r;return null!=(n=null==e.options.getRowCanExpand?void 0:e.options.getRowCanExpand(t))?n:(null==(i=e.options.enableExpanding)||i)&&!(null==(r=t.subRows)||!r.length)},t.getIsAllParentsExpanded=()=>{let n=!0,i=t;for(;n&&i.parentId;)i=e.getRow(i.parentId,!0),n=i.getIsExpanded();return n},t.getToggleExpandedHandler=()=>{const e=t.getCanExpand();return()=>{e&&t.toggleExpanded()}}}},EC={getInitialState:t=>({rowSelection:{},...t}),getDefaultOptions:t=>({onRowSelectionChange:iC("rowSelection",t),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:t=>{t.setRowSelection=e=>null==t.options.onRowSelectionChange?void 0:t.options.onRowSelectionChange(e),t.resetRowSelection=e=>{var n;return t.setRowSelection(e?{}:null!=(n=t.initialState.rowSelection)?n:{})},t.toggleAllRowsSelected=e=>{t.setRowSelection(n=>{e=void 0!==e?e:!t.getIsAllRowsSelected();const i={...n},r=t.getPreGroupedRowModel().flatRows;return e?r.forEach(t=>{t.getCanSelect()&&(i[t.id]=!0)}):r.forEach(t=>{delete i[t.id]}),i})},t.toggleAllPageRowsSelected=e=>t.setRowSelection(n=>{const i=void 0!==e?e:!t.getIsAllPageRowsSelected(),r={...n};return t.getRowModel().rows.forEach(e=>{NC(r,e.id,i,!0,t)}),r}),t.getPreSelectedRowModel=()=>t.getCoreRowModel(),t.getSelectedRowModel=oC(()=>[t.getState().rowSelection,t.getCoreRowModel()],(e,n)=>Object.keys(e).length?FC(t,n):{rows:[],flatRows:[],rowsById:{}},aC(t.options,"debugTable")),t.getFilteredSelectedRowModel=oC(()=>[t.getState().rowSelection,t.getFilteredRowModel()],(e,n)=>Object.keys(e).length?FC(t,n):{rows:[],flatRows:[],rowsById:{}},aC(t.options,"debugTable")),t.getGroupedSelectedRowModel=oC(()=>[t.getState().rowSelection,t.getSortedRowModel()],(e,n)=>Object.keys(e).length?FC(t,n):{rows:[],flatRows:[],rowsById:{}},aC(t.options,"debugTable")),t.getIsAllRowsSelected=()=>{const e=t.getFilteredRowModel().flatRows,{rowSelection:n}=t.getState();let i=Boolean(e.length&&Object.keys(n).length);return i&&e.some(t=>t.getCanSelect()&&!n[t.id])&&(i=!1),i},t.getIsAllPageRowsSelected=()=>{const e=t.getPaginationRowModel().flatRows.filter(t=>t.getCanSelect()),{rowSelection:n}=t.getState();let i=!!e.length;return i&&e.some(t=>!n[t.id])&&(i=!1),i},t.getIsSomeRowsSelected=()=>{var e;const n=Object.keys(null!=(e=t.getState().rowSelection)?e:{}).length;return n>0&&n<t.getFilteredRowModel().flatRows.length},t.getIsSomePageRowsSelected=()=>{const e=t.getPaginationRowModel().flatRows;return!t.getIsAllPageRowsSelected()&&e.filter(t=>t.getCanSelect()).some(t=>t.getIsSelected()||t.getIsSomeSelected())},t.getToggleAllRowsSelectedHandler=()=>e=>{t.toggleAllRowsSelected(e.target.checked)},t.getToggleAllPageRowsSelectedHandler=()=>e=>{t.toggleAllPageRowsSelected(e.target.checked)}},createRow:(t,e)=>{t.toggleSelected=(n,i)=>{const r=t.getIsSelected();e.setRowSelection(o=>{var a;if(n=void 0!==n?n:!r,t.getCanSelect()&&r===n)return o;const s={...o};return NC(s,t.id,n,null==(a=null==i?void 0:i.selectChildren)||a,e),s})},t.getIsSelected=()=>{const{rowSelection:n}=e.getState();return VC(t,n)},t.getIsSomeSelected=()=>{const{rowSelection:n}=e.getState();return"some"===HC(t,n)},t.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=e.getState();return"all"===HC(t,n)},t.getCanSelect=()=>{var n;return"function"==typeof e.options.enableRowSelection?e.options.enableRowSelection(t):null==(n=e.options.enableRowSelection)||n},t.getCanSelectSubRows=()=>{var n;return"function"==typeof e.options.enableSubRowSelection?e.options.enableSubRowSelection(t):null==(n=e.options.enableSubRowSelection)||n},t.getCanMultiSelect=()=>{var n;return"function"==typeof e.options.enableMultiRowSelection?e.options.enableMultiRowSelection(t):null==(n=e.options.enableMultiRowSelection)||n},t.getToggleSelectedHandler=()=>{const e=t.getCanSelect();return n=>{var i;e&&t.toggleSelected(null==(i=n.target)?void 0:i.checked)}}}},NC=(t,e,n,i,r)=>{var o;const a=r.getRow(e,!0);n?(a.getCanMultiSelect()||Object.keys(t).forEach(e=>delete t[e]),a.getCanSelect()&&(t[e]=!0)):delete t[e],i&&null!=(o=a.subRows)&&o.length&&a.getCanSelectSubRows()&&a.subRows.forEach(e=>NC(t,e.id,n,i,r))};function FC(t,e){const n=t.getState().rowSelection,i=[],r={},o=function(t,e){return t.map(t=>{var e;const a=VC(t,n);if(a&&(i.push(t),r[t.id]=t),null!=(e=t.subRows)&&e.length&&(t={...t,subRows:o(t.subRows)}),a)return t}).filter(Boolean)};return{rows:o(e.rows),flatRows:i,rowsById:r}}function VC(t,e){var n;return null!=(n=e[t.id])&&n}function HC(t,e,n){var i;if(null==(i=t.subRows)||!i.length)return!1;let r=!0,o=!1;return t.subRows.forEach(t=>{if((!o||r)&&(t.getCanSelect()&&(VC(t,e)?o=!0:r=!1),t.subRows&&t.subRows.length)){const n=HC(t,e);"all"===n?o=!0:"some"===n?(o=!0,r=!1):r=!1}}),r?"all":!!o&&"some"}const GC=/([0-9]+)/gm;function WC(t,e){return t===e?0:t>e?1:-1}function UC(t){return"number"==typeof t?isNaN(t)||t===1/0||t===-1/0?"":String(t):"string"==typeof t?t:""}function jC(t,e){const n=t.split(GC).filter(Boolean),i=e.split(GC).filter(Boolean);for(;n.length&&i.length;){const t=n.shift(),e=i.shift(),r=parseInt(t,10),o=parseInt(e,10),a=[r,o].sort();if(isNaN(a[0])){if(t>e)return 1;if(e>t)return-1}else{if(isNaN(a[1]))return isNaN(r)?-1:1;if(r>o)return 1;if(o>r)return-1}}return n.length-i.length}const XC={alphanumeric:(t,e,n)=>jC(UC(t.getValue(n)).toLowerCase(),UC(e.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(t,e,n)=>jC(UC(t.getValue(n)),UC(e.getValue(n))),text:(t,e,n)=>WC(UC(t.getValue(n)).toLowerCase(),UC(e.getValue(n)).toLowerCase()),textCaseSensitive:(t,e,n)=>WC(UC(t.getValue(n)),UC(e.getValue(n))),datetime:(t,e,n)=>{const i=t.getValue(n),r=e.getValue(n);return i>r?1:i<r?-1:0},basic:(t,e,n)=>WC(t.getValue(n),e.getValue(n))},qC={getInitialState:t=>({sorting:[],...t}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:t=>({onSortingChange:iC("sorting",t),isMultiSortEvent:t=>t.shiftKey}),createColumn:(t,e)=>{t.getAutoSortingFn=()=>{const n=e.getFilteredRowModel().flatRows.slice(10);let i=!1;for(const e of n){const n=null==e?void 0:e.getValue(t.id);if("[object Date]"===Object.prototype.toString.call(n))return XC.datetime;if("string"==typeof n&&(i=!0,n.split(GC).length>1))return XC.alphanumeric}return i?XC.text:XC.basic},t.getAutoSortDir=()=>{const n=e.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(t.id))?"asc":"desc"},t.getSortingFn=()=>{var n,i;if(!t)throw new Error;return rC(t.columnDef.sortingFn)?t.columnDef.sortingFn:"auto"===t.columnDef.sortingFn?t.getAutoSortingFn():null!=(n=null==(i=e.options.sortingFns)?void 0:i[t.columnDef.sortingFn])?n:XC[t.columnDef.sortingFn]},t.toggleSorting=(n,i)=>{const r=t.getNextSortingOrder(),o=null!=n;e.setSorting(a=>{const s=null==a?void 0:a.find(e=>e.id===t.id),l=null==a?void 0:a.findIndex(e=>e.id===t.id);let u,c=[],h=o?n:"desc"===r;var d;return u=null!=a&&a.length&&t.getCanMultiSort()&&i?s?"toggle":"add":null!=a&&a.length&&l!==a.length-1?"replace":s?"toggle":"replace","toggle"===u&&(o||r||(u="remove")),"add"===u?(c=[...a,{id:t.id,desc:h}],c.splice(0,c.length-(null!=(d=e.options.maxMultiSortColCount)?d:Number.MAX_SAFE_INTEGER))):c="toggle"===u?a.map(e=>e.id===t.id?{...e,desc:h}:e):"remove"===u?a.filter(e=>e.id!==t.id):[{id:t.id,desc:h}],c})},t.getFirstSortDir=()=>{var n,i;return(null!=(n=null!=(i=t.columnDef.sortDescFirst)?i:e.options.sortDescFirst)?n:"desc"===t.getAutoSortDir())?"desc":"asc"},t.getNextSortingOrder=n=>{var i,r;const o=t.getFirstSortDir(),a=t.getIsSorted();return a?!!(a===o||null!=(i=e.options.enableSortingRemoval)&&!i||n&&null!=(r=e.options.enableMultiRemove)&&!r)&&("desc"===a?"asc":"desc"):o},t.getCanSort=()=>{var n,i;return(null==(n=t.columnDef.enableSorting)||n)&&(null==(i=e.options.enableSorting)||i)&&!!t.accessorFn},t.getCanMultiSort=()=>{var n,i;return null!=(n=null!=(i=t.columnDef.enableMultiSort)?i:e.options.enableMultiSort)?n:!!t.accessorFn},t.getIsSorted=()=>{var n;const i=null==(n=e.getState().sorting)?void 0:n.find(e=>e.id===t.id);return!!i&&(i.desc?"desc":"asc")},t.getSortIndex=()=>{var n,i;return null!=(n=null==(i=e.getState().sorting)?void 0:i.findIndex(e=>e.id===t.id))?n:-1},t.clearSorting=()=>{e.setSorting(e=>null!=e&&e.length?e.filter(e=>e.id!==t.id):[])},t.getToggleSortingHandler=()=>{const n=t.getCanSort();return i=>{n&&(null==i.persist||i.persist(),null==t.toggleSorting||t.toggleSorting(void 0,!!t.getCanMultiSort()&&(null==e.options.isMultiSortEvent?void 0:e.options.isMultiSortEvent(i))))}}},createTable:t=>{t.setSorting=e=>null==t.options.onSortingChange?void 0:t.options.onSortingChange(e),t.resetSorting=e=>{var n,i;t.setSorting(e?[]:null!=(n=null==(i=t.initialState)?void 0:i.sorting)?n:[])},t.getPreSortedRowModel=()=>t.getGroupedRowModel(),t.getSortedRowModel=()=>(!t._getSortedRowModel&&t.options.getSortedRowModel&&(t._getSortedRowModel=t.options.getSortedRowModel(t)),t.options.manualSorting||!t._getSortedRowModel?t.getPreSortedRowModel():t._getSortedRowModel())}},YC=[uC,OC,IC,DC,dC,CC,{createTable:t=>{t._getGlobalFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,"__global__"),t.getGlobalFacetedRowModel=()=>t.options.manualFiltering||!t._getGlobalFacetedRowModel?t.getPreFilteredRowModel():t._getGlobalFacetedRowModel(),t._getGlobalFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,"__global__"),t.getGlobalFacetedUniqueValues=()=>t._getGlobalFacetedUniqueValues?t._getGlobalFacetedUniqueValues():new Map,t._getGlobalFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,"__global__"),t.getGlobalFacetedMinMaxValues=()=>{if(t._getGlobalFacetedMinMaxValues)return t._getGlobalFacetedMinMaxValues()}}},{getInitialState:t=>({globalFilter:void 0,...t}),getDefaultOptions:t=>({onGlobalFilterChange:iC("globalFilter",t),globalFilterFn:"auto",getColumnCanGlobalFilter:e=>{var n;const i=null==(n=t.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[e.id])?void 0:n.getValue();return"string"==typeof i||"number"==typeof i}}),createColumn:(t,e)=>{t.getCanGlobalFilter=()=>{var n,i,r,o;return(null==(n=t.columnDef.enableGlobalFilter)||n)&&(null==(i=e.options.enableGlobalFilter)||i)&&(null==(r=e.options.enableFilters)||r)&&(null==(o=null==e.options.getColumnCanGlobalFilter?void 0:e.options.getColumnCanGlobalFilter(t))||o)&&!!t.accessorFn}},createTable:t=>{t.getGlobalAutoFilterFn=()=>wC.includesString,t.getGlobalFilterFn=()=>{var e,n;const{globalFilterFn:i}=t.options;return rC(i)?i:"auto"===i?t.getGlobalAutoFilterFn():null!=(e=null==(n=t.options.filterFns)?void 0:n[i])?e:wC[i]},t.setGlobalFilter=e=>{null==t.options.onGlobalFilterChange||t.options.onGlobalFilterChange(e)},t.resetGlobalFilter=e=>{t.setGlobalFilter(e?void 0:t.initialState.globalFilter)}}},qC,kC,zC,{getInitialState:t=>({...t,pagination:{pageIndex:0,pageSize:10,...null==t?void 0:t.pagination}}),getDefaultOptions:t=>({onPaginationChange:iC("pagination",t)}),createTable:t=>{let e=!1,n=!1;t._autoResetPageIndex=()=>{var i,r;if(e){if(null!=(i=null!=(r=t.options.autoResetAll)?r:t.options.autoResetPageIndex)?i:!t.options.manualPagination){if(n)return;n=!0,t._queue(()=>{t.resetPageIndex(),n=!1})}}else t._queue(()=>{e=!0})},t.setPagination=e=>null==t.options.onPaginationChange?void 0:t.options.onPaginationChange(t=>nC(e,t)),t.resetPagination=e=>{var n;t.setPagination(e?{pageIndex:0,pageSize:10}:null!=(n=t.initialState.pagination)?n:{pageIndex:0,pageSize:10})},t.setPageIndex=e=>{t.setPagination(n=>{let i=nC(e,n.pageIndex);const r=void 0===t.options.pageCount||-1===t.options.pageCount?Number.MAX_SAFE_INTEGER:t.options.pageCount-1;return i=Math.max(0,Math.min(i,r)),{...n,pageIndex:i}})},t.resetPageIndex=e=>{var n,i;t.setPageIndex(e?0:null!=(n=null==(i=t.initialState)||null==(i=i.pagination)?void 0:i.pageIndex)?n:0)},t.resetPageSize=e=>{var n,i;t.setPageSize(e?10:null!=(n=null==(i=t.initialState)||null==(i=i.pagination)?void 0:i.pageSize)?n:10)},t.setPageSize=e=>{t.setPagination(t=>{const n=Math.max(1,nC(e,t.pageSize)),i=t.pageSize*t.pageIndex,r=Math.floor(i/n);return{...t,pageIndex:r,pageSize:n}})},t.setPageCount=e=>t.setPagination(n=>{var i;let r=nC(e,null!=(i=t.options.pageCount)?i:-1);return"number"==typeof r&&(r=Math.max(-1,r)),{...n,pageCount:r}}),t.getPageOptions=oC(()=>[t.getPageCount()],t=>{let e=[];return t&&t>0&&(e=[...new Array(t)].fill(null).map((t,e)=>e)),e},aC(t.options,"debugTable")),t.getCanPreviousPage=()=>t.getState().pagination.pageIndex>0,t.getCanNextPage=()=>{const{pageIndex:e}=t.getState().pagination,n=t.getPageCount();return-1===n||0!==n&&e<n-1},t.previousPage=()=>t.setPageIndex(t=>t-1),t.nextPage=()=>t.setPageIndex(t=>t+1),t.firstPage=()=>t.setPageIndex(0),t.lastPage=()=>t.setPageIndex(t.getPageCount()-1),t.getPrePaginationRowModel=()=>t.getExpandedRowModel(),t.getPaginationRowModel=()=>(!t._getPaginationRowModel&&t.options.getPaginationRowModel&&(t._getPaginationRowModel=t.options.getPaginationRowModel(t)),t.options.manualPagination||!t._getPaginationRowModel?t.getPrePaginationRowModel():t._getPaginationRowModel()),t.getPageCount=()=>{var e;return null!=(e=t.options.pageCount)?e:Math.ceil(t.getRowCount()/t.getState().pagination.pageSize)},t.getRowCount=()=>{var e;return null!=(e=t.options.rowCount)?e:t.getPrePaginationRowModel().rows.length}}},{getInitialState:t=>({rowPinning:{top:[],bottom:[]},...t}),getDefaultOptions:t=>({onRowPinningChange:iC("rowPinning",t)}),createRow:(t,e)=>{t.pin=(n,i,r)=>{const o=i?t.getLeafRows().map(t=>{let{id:e}=t;return e}):[],a=r?t.getParentRows().map(t=>{let{id:e}=t;return e}):[],s=new Set([...a,t.id,...o]);e.setRowPinning(t=>{var e,i,r,o,a,l;return"bottom"===n?{top:(null!=(r=null==t?void 0:t.top)?r:[]).filter(t=>!(null!=s&&s.has(t))),bottom:[...(null!=(o=null==t?void 0:t.bottom)?o:[]).filter(t=>!(null!=s&&s.has(t))),...Array.from(s)]}:"top"===n?{top:[...(null!=(a=null==t?void 0:t.top)?a:[]).filter(t=>!(null!=s&&s.has(t))),...Array.from(s)],bottom:(null!=(l=null==t?void 0:t.bottom)?l:[]).filter(t=>!(null!=s&&s.has(t)))}:{top:(null!=(e=null==t?void 0:t.top)?e:[]).filter(t=>!(null!=s&&s.has(t))),bottom:(null!=(i=null==t?void 0:t.bottom)?i:[]).filter(t=>!(null!=s&&s.has(t)))}})},t.getCanPin=()=>{var n;const{enableRowPinning:i,enablePinning:r}=e.options;return"function"==typeof i?i(t):null==(n=null!=i?i:r)||n},t.getIsPinned=()=>{const n=[t.id],{top:i,bottom:r}=e.getState().rowPinning,o=n.some(t=>null==i?void 0:i.includes(t)),a=n.some(t=>null==r?void 0:r.includes(t));return o?"top":!!a&&"bottom"},t.getPinnedIndex=()=>{var n,i;const r=t.getIsPinned();if(!r)return-1;const o=null==(n="top"===r?e.getTopRows():e.getBottomRows())?void 0:n.map(t=>{let{id:e}=t;return e});return null!=(i=null==o?void 0:o.indexOf(t.id))?i:-1}},createTable:t=>{t.setRowPinning=e=>null==t.options.onRowPinningChange?void 0:t.options.onRowPinningChange(e),t.resetRowPinning=e=>{var n,i;return t.setRowPinning(e?{top:[],bottom:[]}:null!=(n=null==(i=t.initialState)?void 0:i.rowPinning)?n:{top:[],bottom:[]})},t.getIsSomeRowsPinned=e=>{var n;const i=t.getState().rowPinning;var r,o;return e?Boolean(null==(n=i[e])?void 0:n.length):Boolean((null==(r=i.top)?void 0:r.length)||(null==(o=i.bottom)?void 0:o.length))},t._getPinnedRows=(e,n,i)=>{var r;return(null==(r=t.options.keepPinnedRows)||r?(null!=n?n:[]).map(e=>{const n=t.getRow(e,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=n?n:[]).map(t=>e.find(e=>e.id===t))).filter(Boolean).map(t=>({...t,position:i}))},t.getTopRows=oC(()=>[t.getRowModel().rows,t.getState().rowPinning.top],(e,n)=>t._getPinnedRows(e,n,"top"),aC(t.options,"debugRows")),t.getBottomRows=oC(()=>[t.getRowModel().rows,t.getState().rowPinning.bottom],(e,n)=>t._getPinnedRows(e,n,"bottom"),aC(t.options,"debugRows")),t.getCenterRows=oC(()=>[t.getRowModel().rows,t.getState().rowPinning.top,t.getState().rowPinning.bottom],(t,e,n)=>{const i=new Set([...null!=e?e:[],...null!=n?n:[]]);return t.filter(t=>!i.has(t.id))},aC(t.options,"debugRows"))}},EC,RC];function ZC(t){var e,n;const i=[...YC,...null!=(e=t._features)?e:[]];let r={_features:i};const o=r._features.reduce((t,e)=>Object.assign(t,null==e.getDefaultOptions?void 0:e.getDefaultOptions(r)),{});let a={...null!=(n=t.initialState)?n:{}};r._features.forEach(t=>{var e;a=null!=(e=null==t.getInitialState?void 0:t.getInitialState(a))?e:a});const s=[];let l=!1;const u={_features:i,options:{...o,...t},initialState:a,_queue:t=>{s.push(t),l||(l=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();l=!1}).catch(t=>setTimeout(()=>{throw t})))},reset:()=>{r.setState(r.initialState)},setOptions:t=>{const e=nC(t,r.options);r.options=(t=>r.options.mergeOptions?r.options.mergeOptions(o,t):{...o,...t})(e)},getState:()=>r.options.state,setState:t=>{null==r.options.onStateChange||r.options.onStateChange(t)},_getRowId:(t,e,n)=>{var i;return null!=(i=null==r.options.getRowId?void 0:r.options.getRowId(t,e,n))?i:`${n?[n.id,e].join("."):e}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(t,e)=>{let n=(e?r.getPrePaginationRowModel():r.getRowModel()).rowsById[t];if(!n&&(n=r.getCoreRowModel().rowsById[t],!n))throw new Error;return n},_getDefaultColumnDef:oC(()=>[r.options.defaultColumn],t=>{var e;return t=null!=(e=t)?e:{},{header:t=>{const e=t.header.column.columnDef;return e.accessorKey?e.accessorKey:e.accessorFn?e.id:null},cell:t=>{var e,n;return null!=(e=null==(n=t.renderValue())||null==n.toString?void 0:n.toString())?e:null},...r._features.reduce((t,e)=>Object.assign(t,null==e.getDefaultColumnDef?void 0:e.getDefaultColumnDef()),{}),...t}},aC(t,"debugColumns")),_getColumnDefs:()=>r.options.columns,getAllColumns:oC(()=>[r._getColumnDefs()],t=>{const e=function(t,n,i){return void 0===i&&(i=0),t.map(t=>{const o=function(t,e,n,i){var r,o;const a={...t._getDefaultColumnDef(),...e},s=a.accessorKey;let l,u=null!=(r=null!=(o=a.id)?o:s?"function"==typeof String.prototype.replaceAll?s.replaceAll(".","_"):s.replace(/\./g,"_"):void 0)?r:"string"==typeof a.header?a.header:void 0;if(a.accessorFn?l=a.accessorFn:s&&(l=s.includes(".")?t=>{let e=t;for(const t of s.split(".")){var n;e=null==(n=e)?void 0:n[t]}return e}:t=>t[a.accessorKey]),!u)throw new Error;let c={id:`${String(u)}`,accessorFn:l,parent:i,depth:n,columnDef:a,columns:[],getFlatColumns:oC(()=>[!0],()=>{var t;return[c,...null==(t=c.columns)?void 0:t.flatMap(t=>t.getFlatColumns())]},aC(t.options,"debugColumns")),getLeafColumns:oC(()=>[t._getOrderColumnsFn()],t=>{var e;if(null!=(e=c.columns)&&e.length){let e=c.columns.flatMap(t=>t.getLeafColumns());return t(e)}return[c]},aC(t.options,"debugColumns"))};for(const e of t._features)null==e.createColumn||e.createColumn(c,t);return c}(r,t,i,n),a=t;return o.columns=a.columns?e(a.columns,o,i+1):[],o})};return e(t)},aC(t,"debugColumns")),getAllFlatColumns:oC(()=>[r.getAllColumns()],t=>t.flatMap(t=>t.getFlatColumns()),aC(t,"debugColumns")),_getAllFlatColumnsById:oC(()=>[r.getAllFlatColumns()],t=>t.reduce((t,e)=>(t[e.id]=e,t),{}),aC(t,"debugColumns")),getAllLeafColumns:oC(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(t,e)=>e(t.flatMap(t=>t.getLeafColumns())),aC(t,"debugColumns")),getColumn:t=>r._getAllFlatColumnsById()[t]};Object.assign(r,u);for(let t=0;t<r._features.length;t++){const e=r._features[t];null==e||null==e.createTable||e.createTable(r)}return r}function $C(e,n){return e?function(t){return"function"==typeof t&&(()=>{const e=Object.getPrototypeOf(t);return e.prototype&&e.prototype.isReactComponent})()}(i=e)||"function"==typeof i||function(t){return"object"==typeof t&&"symbol"==typeof t.$$typeof&&["react.memo","react.forward_ref"].includes(t.$$typeof.description)}(i)?t(e,n):e:null;var i}const KC="asc",QC="desc",JC="default",tM={[KC]:(0,_.jsx)(JS,{}),[QC]:(0,_.jsx)(tC,{}),[JC]:(0,_.jsx)(eC,{})};function eM({isLoading:t,error:e,tableRows:n,columnCount:i}){let r;return r=!0===t?Array.from({length:5}).map((t,e)=>(0,_.jsx)(d.Tr,{children:Array.from({length:i}).map((t,e)=>(0,_.jsx)(d.Td,{children:(0,_.jsx)(h,{height:16,width:"100%"})},e))},e)):e instanceof Error?(0,_.jsx)(d.Tr,{children:(0,_.jsx)(d.Td,{colSpan:i,align:"center",children:(0,_.jsx)(s,{color:"red",children:e.message})})}):0===n.length?(0,_.jsx)(d.Tr,{children:(0,_.jsx)(d.Td,{colSpan:i,align:"center",children:"No data available."})}):n.map(t=>(0,_.jsx)(d.Tr,{children:t.getVisibleCells().map(t=>(0,_.jsx)(d.Td,{children:$C(t.column.columnDef.cell,t.getContext())},t.id))},t.id)),r}function nM({data:t,isLoading:e,error:n,columns:i}){const[r,s]=o([]),c=function(t){const e={state:{},onStateChange:()=>{},renderFallbackValue:null,...t},[n]=o(()=>({current:ZC(e)})),[i,r]=o(()=>n.current.initialState);return n.current.setOptions(e=>({...e,...t,state:{...i,...t.state},onStateChange:e=>{r(e),null==t.onStateChange||t.onStateChange(e)}})),n.current}({data:t,columns:i,getCoreRowModel:t=>oC(()=>[t.options.data],e=>{const n={rows:[],flatRows:[],rowsById:{}},i=function(e,r,o){void 0===r&&(r=0);const a=[];for(let l=0;l<e.length;l++){const u=hC(t,t._getRowId(e[l],l,o),e[l],l,r,void 0,null==o?void 0:o.id);var s;n.flatRows.push(u),n.rowsById[u.id]=u,a.push(u),t.options.getSubRows&&(u.originalSubRows=t.options.getSubRows(e[l],l),null!=(s=u.originalSubRows)&&s.length&&(u.subRows=i(u.originalSubRows,r+1,u)))}return a};return n.rows=i(e),n},aC(t.options,"debugTable",0,()=>t._autoResetPageIndex())),getSortedRowModel:t=>oC(()=>[t.getState().sorting,t.getPreSortedRowModel()],(e,n)=>{if(!n.rows.length||null==e||!e.length)return n;const i=t.getState().sorting,r=[],o=i.filter(e=>{var n;return null==(n=t.getColumn(e.id))?void 0:n.getCanSort()}),a={};o.forEach(e=>{const n=t.getColumn(e.id);n&&(a[e.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})});const s=t=>{const e=t.map(t=>({...t}));return e.sort((t,e)=>{for(let i=0;i<o.length;i+=1){var n;const r=o[i],s=a[r.id],l=s.sortUndefined,u=null!=(n=null==r?void 0:r.desc)&&n;let c=0;if(l){const n=void 0===t.getValue(r.id),i=void 0===e.getValue(r.id);if(n||i){if("first"===l)return n?-1:1;if("last"===l)return n?1:-1;c=n&&i?0:n?l:-l}}if(0===c&&(c=s.sortingFn(t,e,r.id)),0!==c)return u&&(c*=-1),s.invertSorting&&(c*=-1),c}return t.index-e.index}),e.forEach(t=>{var e;r.push(t),null!=(e=t.subRows)&&e.length&&(t.subRows=s(t.subRows))}),e};return{rows:s(n.rows),flatRows:r,rowsById:n.rowsById}},aC(t.options,"debugTable",0,()=>t._autoResetPageIndex())),onSortingChange:s,state:{sorting:r}});return(0,_.jsx)(u,{children:(0,_.jsxs)(d,{highlightOnHover:!0,withTableBorder:!0,withColumnBorders:!0,children:[(0,_.jsx)(d.Thead,{children:c.getHeaderGroups().map(t=>(0,_.jsx)(d.Tr,{children:t.headers.map(t=>(0,_.jsx)(d.Th,{onClick:t.column.getToggleSortingHandler(),children:(0,_.jsxs)(l,{gap:"xs",wrap:"nowrap",children:[$C(t.column.columnDef.header,t.getContext()),(0,_.jsx)(a,{variant:"subtle",size:"sm",children:(()=>{const e=t.column.getIsSorted();return function(t,e){let n;return!0===e&&(n=tM[t]),n}(!1===e?JC:e,t.column.getCanSort())})()})]})},t.id))},t.id))}),(0,_.jsx)(d.Tbody,{children:eM({isLoading:e,error:n,tableRows:c.getRowModel().rows,columnCount:i.length})})]})})}function iM(t){for(var e=t.length/6|0,n=new Array(e),i=0;i<e;)n[i]="#"+t.slice(6*i,6*++i);return n}const rM=iM("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),oM=iM("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),aM=iM("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),sM=iM("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),lM=iM("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),uM=iM("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),cM=iM("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),hM=iM("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function dM(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function fM(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function pM(){}var gM=.7,vM=1/gM,mM="\\s*([+-]?\\d+)\\s*",yM="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_M="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xM=/^#([0-9a-f]{3,8})$/,bM=new RegExp(`^rgb\\(${mM},${mM},${mM}\\)$`),wM=new RegExp(`^rgb\\(${_M},${_M},${_M}\\)$`),SM=new RegExp(`^rgba\\(${mM},${mM},${mM},${yM}\\)$`),CM=new RegExp(`^rgba\\(${_M},${_M},${_M},${yM}\\)$`),MM=new RegExp(`^hsl\\(${yM},${_M},${_M}\\)$`),TM=new RegExp(`^hsla\\(${yM},${_M},${_M},${yM}\\)$`),kM={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function IM(){return this.rgb().formatHex()}function DM(){return this.rgb().formatRgb()}function AM(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=xM.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?RM(e):3===n?new OM(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?PM(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?PM(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=bM.exec(t))?new OM(e[1],e[2],e[3],1):(e=wM.exec(t))?new OM(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=SM.exec(t))?PM(e[1],e[2],e[3],e[4]):(e=CM.exec(t))?PM(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=MM.exec(t))?VM(e[1],e[2]/100,e[3]/100,1):(e=TM.exec(t))?VM(e[1],e[2]/100,e[3]/100,e[4]):kM.hasOwnProperty(t)?RM(kM[t]):"transparent"===t?new OM(NaN,NaN,NaN,0):null}function RM(t){return new OM(t>>16&255,t>>8&255,255&t,1)}function PM(t,e,n,i){return i<=0&&(t=e=n=NaN),new OM(t,e,n,i)}function LM(t,e,n,i){return 1===arguments.length?((r=t)instanceof pM||(r=AM(r)),r?new OM((r=r.rgb()).r,r.g,r.b,r.opacity):new OM):new OM(t,e,n,null==i?1:i);var r}function OM(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function BM(){return`#${FM(this.r)}${FM(this.g)}${FM(this.b)}`}function zM(){const t=EM(this.opacity);return`${1===t?"rgb(":"rgba("}${NM(this.r)}, ${NM(this.g)}, ${NM(this.b)}${1===t?")":`, ${t})`}`}function EM(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function NM(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function FM(t){return((t=NM(t))<16?"0":"")+t.toString(16)}function VM(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new GM(t,e,n,i)}function HM(t){if(t instanceof GM)return new GM(t.h,t.s,t.l,t.opacity);if(t instanceof pM||(t=AM(t)),!t)return new GM;if(t instanceof GM)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),o=Math.max(e,n,i),a=NaN,s=o-r,l=(o+r)/2;return s?(a=e===o?(n-i)/s+6*(n<i):n===o?(i-e)/s+2:(e-n)/s+4,s/=l<.5?o+r:2-o-r,a*=60):s=l>0&&l<1?0:a,new GM(a,s,l,t.opacity)}function GM(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function WM(t){return(t=(t||0)%360)<0?t+360:t}function UM(t){return Math.max(0,Math.min(1,t||0))}function jM(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function XM(t,e,n,i,r){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*i+a*r)/6}dM(pM,AM,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:IM,formatHex:IM,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return HM(this).formatHsl()},formatRgb:DM,toString:DM}),dM(OM,LM,fM(pM,{brighter(t){return t=null==t?vM:Math.pow(vM,t),new OM(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?gM:Math.pow(gM,t),new OM(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new OM(NM(this.r),NM(this.g),NM(this.b),EM(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:BM,formatHex:BM,formatHex8:function(){return`#${FM(this.r)}${FM(this.g)}${FM(this.b)}${FM(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:zM,toString:zM})),dM(GM,function(t,e,n,i){return 1===arguments.length?HM(t):new GM(t,e,n,null==i?1:i)},fM(pM,{brighter(t){return t=null==t?vM:Math.pow(vM,t),new GM(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?gM:Math.pow(gM,t),new GM(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new OM(jM(t>=240?t-240:t+120,r,i),jM(t,r,i),jM(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new GM(WM(this.h),UM(this.s),UM(this.l),EM(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=EM(this.opacity);return`${1===t?"hsl(":"hsla("}${WM(this.h)}, ${100*UM(this.s)}%, ${100*UM(this.l)}%${1===t?")":`, ${t})`}`}}));const qM=t=>()=>t;function YM(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):qM(isNaN(t)?e:t)}function ZM(t){return function(e){var n,i,r=e.length,o=new Array(r),a=new Array(r),s=new Array(r);for(n=0;n<r;++n)i=LM(e[n]),o[n]=i.r||0,a[n]=i.g||0,s[n]=i.b||0;return o=t(o),a=t(a),s=t(s),i.opacity=1,function(t){return i.r=o(t),i.g=a(t),i.b=s(t),i+""}}}!function t(e){var n=function(t){return 1===(t=+t)?YM:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):qM(isNaN(e)?n:e)}}(e);function i(t,e){var i=n((t=LM(t)).r,(e=LM(e)).r),r=n(t.g,e.g),o=n(t.b,e.b),a=YM(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=o(e),t.opacity=a(e),t+""}}return i.gamma=t,i}(1);var $M=ZM(function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),r=t[i],o=t[i+1],a=i>0?t[i-1]:2*r-o,s=i<e-1?t[i+2]:2*o-r;return XM((n-i/e)*e,a,r,o,s)}});ZM(function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),r=t[(i+e-1)%e],o=t[i%e],a=t[(i+1)%e],s=t[(i+2)%e];return XM((n-i/e)*e,r,o,a,s)}});const KM=t=>$M(t[t.length-1]);var QM=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(iM);KM(QM);var JM=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(iM);KM(JM);var tT=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(iM);KM(tT);var eT=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(iM);KM(eT);var nT=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(iM);KM(nT);var iT=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(iM);KM(iT);var rT=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(iM);KM(rT);var oT=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(iM);KM(oT);var aT=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(iM);KM(aT);var sT=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(iM);KM(sT);var lT=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(iM);KM(lT);var uT=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(iM);KM(uT);var cT=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(iM);KM(cT);var hT=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(iM);KM(hT);var dT=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(iM);KM(dT);var fT=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(iM);KM(fT);var pT=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(iM);KM(pT);var gT=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(iM);KM(gT);var vT=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(iM);KM(vT);var mT=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(iM);KM(mT);const yT={Categorical:{"color-scheme-category-10":rM,"color-scheme-accent":oM,"color-scheme-dark-2":aM,"color-scheme-observable-10":sM,"color-scheme-paired":lM,"color-scheme-set-1":uM,"color-scheme-set-2":cM,"color-scheme-tableau-10":hM},SequentialSingleHue:{"color-scheme-blues":QM[9],"color-scheme-greens":JM[9],"color-scheme-greys":tT[9],"color-scheme-oranges":eT[9],"color-scheme-purples":nT[9],"color-scheme-reds":iT[9]},SequentialMultiHue:{"color-scheme-yellow-orange-brown":rT[9],"color-scheme-yellow-orange-red":oT[9],"color-scheme-orange-red":aT[9],"color-scheme-purple-blue-green":sT[9],"color-scheme-blue-purple":lT[9]},Diverging:{"color-scheme-brown-blue-green":uT[11],"color-scheme-purple-green":cT[11],"color-scheme-pink-yellow-green":hT[11],"color-scheme-purple-orange":dT[11],"color-scheme-red-blue":fT[11],"color-scheme-red-grey":pT[11],"color-scheme-red-yellow-blue":gT[11],"color-scheme-red-yellow-green":vT[11],"color-scheme-spectral":mT[11]}},_T={"color-scheme-category-10":"Category 10","color-scheme-accent":"Accent","color-scheme-dark-2":"Dark 2","color-scheme-observable-10":"Observable 10","color-scheme-paired":"Paired","color-scheme-set-1":"Set 1","color-scheme-set-2":"Set 2","color-scheme-tableau-10":"Tableau 10","color-scheme-blues":"Blues","color-scheme-greens":"Greens","color-scheme-greys":"Greys","color-scheme-oranges":"Oranges","color-scheme-purples":"Purples","color-scheme-reds":"Reds","color-scheme-yellow-orange-brown":"Yellow Orange Brown","color-scheme-yellow-orange-red":"Yellow Orange Red","color-scheme-orange-red":"Orange Red","color-scheme-purple-blue-green":"Purple Blue Green","color-scheme-blue-purple":"Blue Purple","color-scheme-brown-blue-green":"Brown Blue Green","color-scheme-purple-green":"Purple Green","color-scheme-pink-yellow-green":"Pink Yellow Green","color-scheme-purple-orange":"Purple Orange","color-scheme-red-blue":"Red Blue","color-scheme-red-grey":"Red Grey","color-scheme-red-yellow-blue":"Red Yellow Blue","color-scheme-red-yellow-green":"Red Yellow Green","color-scheme-spectral":"Spectral"},xT=Object.entries(yT).map(([t,e])=>({group:t,items:Object.keys(e).map(e=>({value:e,label:_T[e],groupName:t}))}));function bT({option:t}){const e=yT[t.groupName][t.value];return(0,_.jsxs)(l,{justify:"space-between",w:"100%",wrap:"nowrap",children:[(0,_.jsx)(f,{children:t.label}),(0,_.jsx)(l,{p:"xs",children:e.map(t=>(0,_.jsx)(p,{bg:t,size:"xs"},t))})]})}function wT(t){return(0,_.jsx)(c,{placeholder:"Select color palette for chart",renderOption:bT,data:xT,...t})}export{wT as CustomColorSelect,nM as CustomTable,$S as EventTimelineChart};
|
|
2
|
+
import{createElement as t,forwardRef as e,useEffect as n,useMemo as i,useRef as r,useState as o}from"react";import{ActionIcon as a,Alert as s,Group as l,ScrollArea as u,Select as c,Skeleton as h,Table as d,Text as f,TextInput as p,ThemeIcon as g}from"@mantine/core";var v={85:(t,e,n)=>{t.exports=n(197)},197:(t,e)=>{var n=Symbol.for("react.transitional.element");function i(t,e,i){var r=null;if(void 0!==i&&(r=""+i),void 0!==e.key&&(r=""+e.key),"key"in e)for(var o in i={},e)"key"!==o&&(i[o]=e[o]);else i=e;return e=i.ref,{$$typeof:n,type:t,key:r,ref:void 0!==e?e:null,props:i}}Symbol.for("react.fragment"),e.jsx=i,e.jsxs=i}},m={};function y(t){var e=m[t];if(void 0!==e)return e.exports;var n=m[t]={exports:{}};return v[t](n,n.exports,y),n.exports}y.d=(t,e)=>{for(var n in e)y.o(e,n)&&!y.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},y.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),y.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var _={};y.r(_),y.d(_,{Arc:()=>of,BezierCurve:()=>ef,BoundingRect:()=>Re,Circle:()=>id,CompoundPath:()=>af,Ellipse:()=>Md,Group:()=>wd,Image:()=>yo,IncrementalDisplayable:()=>wf,Line:()=>td,LinearGradient:()=>uf,OrientedBoundingRect:()=>xf,Path:()=>co,Point:()=>he,Polygon:()=>Yd,Polyline:()=>$d,RadialGradient:()=>cf,Rect:()=>To,Ring:()=>Wd,Sector:()=>Vd,Text:()=>Ho,WH:()=>Lf,XY:()=>Pf,applyTransform:()=>qf,calcZ2Range:()=>gp,clipPointsByRect:()=>Qf,clipRectByRect:()=>Jf,createIcon:()=>tp,ensureCopyRect:()=>dp,ensureCopyTransform:()=>fp,expandOrShrinkRect:()=>rp,extendPath:()=>Bf,extendShape:()=>Of,getShapeClass:()=>Ff,getTransform:()=>Yf,groupTransition:()=>Kf,initProps:()=>Tf,isBoundingRectAxisAligned:()=>cp,isElementRemoved:()=>kf,lineLineIntersect:()=>np,linePolygonIntersect:()=>ep,makeImage:()=>Vf,makePath:()=>Nf,mergePath:()=>Gf,registerShape:()=>zf,removeElement:()=>If,removeElementWithFadeOut:()=>Rf,resizePath:()=>Wf,retrieveZInfo:()=>pp,setTooltipConfig:()=>sp,subPixelOptimize:()=>Xf,subPixelOptimizeLine:()=>Uf,subPixelOptimizeRect:()=>jf,transformDirection:()=>Zf,traverseElements:()=>up,traverseUpdateZ:()=>vp,updateProps:()=>Mf});var x=y(85),b=function(t,e){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},b(t,e)};function w(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create,Object.create;var S,C,M="12px sans-serif",T=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<95;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),k={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!S){var n=k.createCanvas();S=n&&n.getContext("2d")}if(S)return C!==e&&(C=S.font=e||M),S.measureText(t);t=t||"";var i=/((?:\d+)?\.?\d*)px/.exec(e=e||M),r=i&&+i[1]||12,o=0;if(e.indexOf("mono")>=0)o=r*t.length;else for(var a=0;a<t.length;a++){var s=T[t[a]];o+=null==s?r:s*r}return{width:o}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}},I=K(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),D=K(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),R=Object.prototype.toString,A=Array.prototype,P=A.forEach,L=A.filter,O=A.slice,E=A.map,B=function(){}.constructor,z=B?B.prototype:null,F="__proto__",N=2311;function V(){return N++}function H(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function G(t){if(null==t||"object"!=typeof t)return t;var e=t,n=R.call(t);if("[object Array]"===n){if(!wt(t)){e=[];for(var i=0,r=t.length;i<r;i++)e[i]=G(t[i])}}else if(D[n]){if(!wt(t)){var o=t.constructor;if(o.from)e=o.from(t);else for(e=new o(t.length),i=0,r=t.length;i<r;i++)e[i]=t[i]}}else if(!I[n]&&!wt(t)&&!ct(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==F&&(e[a]=G(t[a]));return e}function W(t,e,n){if(!st(e)||!st(t))return n?G(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==F){var r=t[i],o=e[i];!st(o)||!st(r)||nt(o)||nt(r)||ct(o)||ct(r)||lt(o)||lt(r)||wt(o)||wt(r)?!n&&i in t||(t[i]=G(e[i])):W(r,o,n)}return t}function U(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==F&&(t[n]=e[n]);return t}function j(t,e,n){for(var i=J(e),r=0,o=i.length;r<o;r++){var a=i[r];(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}function X(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function Y(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else j(t,e,n)}function q(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function Z(t,e,n){if(t&&e)if(t.forEach&&t.forEach===P)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function $(t,e,n){if(!t)return[];if(!e)return vt(t);if(t.map&&t.map===E)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function K(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function Q(t,e,n){if(!t)return[];if(!e)return vt(t);if(t.filter&&t.filter===L)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function J(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}k.createCanvas;var tt=z&&it(z.bind)?z.call.bind(z.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(O.call(arguments)))}};function et(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(O.call(arguments)))}}function nt(t){return Array.isArray?Array.isArray(t):"[object Array]"===R.call(t)}function it(t){return"function"==typeof t}function rt(t){return"string"==typeof t}function ot(t){return"[object String]"===R.call(t)}function at(t){return"number"==typeof t}function st(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function lt(t){return!!I[R.call(t)]}function ut(t){return!!D[R.call(t)]}function ct(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function ht(t){return null!=t.colorStops}function dt(t){return t!=t}function ft(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function pt(t,e){return null!=t?t:e}function gt(t,e,n){return null!=t?t:null!=e?e:n}function vt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return O.apply(t,e)}function mt(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function yt(t,e){if(!t)throw new Error(e)}function _t(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var xt="__ec_primitive__";function bt(t){t[xt]=!0}function wt(t){return t[xt]}var St=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return J(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),Ct="function"==typeof Map,Mt=function(){function t(e){var n=nt(e);this.data=Ct?new Map:new St;var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&Z(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach(function(n,i){t.call(e,n,i)})},t.prototype.keys=function(){var t=this.data.keys();return Ct?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function Tt(t){return new Mt(t)}function kt(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&U(n,e),n}function It(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Dt(t,e){return t.hasOwnProperty(e)}function Rt(){}var At=180/Math.PI,Pt=(Number.EPSILON||Math.pow(2,-52),function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}),Lt=new function(){this.browser=new Pt,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="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(Lt.wxa=!0,Lt.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?Lt.worker=!0:!Lt.hasGlobalWindow||"Deno"in window||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(Lt.node=!0,Lt.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);if(i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document){var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}}(navigator.userAgent,Lt);const Ot=Lt;var Et="___EC__COMPONENT__CONTAINER___",Bt="___EC__EXTENDED_CLASS___";function zt(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function Ft(t,e){t.$constructor=t,t.extend=function(t){var e,n,i=this;return it(n=i)&&/^class\s/.test(Function.prototype.toString.call(n))?e=function(t){function e(){return t.apply(this,arguments)||this}return w(e,t),e}(i):(e=function(){(t.$constructor||i).apply(this,arguments)},function(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}(e,this)),U(e.prototype,t),e[Bt]=!0,e.extend=this.extend,e.superCall=Ht,e.superApply=Gt,e.superClass=i,e}}function Nt(t,e){t.extend=e.extend}var Vt=Math.round(10*Math.random());function Ht(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function Gt(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Wt(t){var e={};t.registerClass=function(t){var n,i=t.type||t.prototype.type;if(i){yt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=i),'componentType "'+n+'" illegal'),t.prototype.type=i;var r=zt(i);if(r.sub){if(r.sub!==Et){var o=function(t){var n=e[t.main];return n&&n[Et]||((n=e[t.main]={})[Et]=!0),n}(r);o[r.sub]=t}}else e[r.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[Et]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=zt(t),i=[],r=e[n.main];return r&&r[Et]?Z(r,function(t,e){e!==Et&&i.push(t)}):i.push(r),i},t.hasClass=function(t){var n=zt(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return Z(e,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){var n=zt(t),i=e[n.main];return i&&i[Et]}}function Ut(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(i&&X(i,s)>=0||r&&X(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var jt=Ut([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Xt=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return jt(this,t,e)},t}(),Yt=function(t,e){return Yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Yt(t,e)};function qt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Yt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create,Object.create;var Zt=function(t){this.value=t},$t=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new Zt(t);return this.insertEntry(e),e},t.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++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),Kt=function(){function t(t){this._list=new $t,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Zt(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const Qt=Kt;var Jt=new Qt(50);function te(t){if("string"==typeof t){var e=Jt.get(t);return e&&e.image}return t}function ee(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Jt.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?!ie(e=o.image)&&o.pending.push(a):((e=k.loadImage(t,ne,ne)).__zrImageSrc=t,Jt.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function ne(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function ie(t){return t&&t.width&&t.height}function re(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function oe(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function ae(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function se(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function le(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(n),h=Math.cos(n);return t[0]=r*h+s*c,t[1]=-r*c+s*h,t[2]=o*h+l*c,t[3]=-o*c+h*l,t[4]=h*(a-i[0])+c*(u-i[1])+i[0],t[5]=h*(u-i[1])-c*(a-i[0])+i[1],t}function ue(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}var ce=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}();const he=ce;var de=Math.min,fe=Math.max,pe=Math.abs,ge=["x","y"],ve=["width","height"],me=new he,ye=new he,_e=new he,xe=new he,be=De(),we=be.minTv,Se=be.maxTv,Ce=[0,0],Me=function(){function t(e,n,i,r){t.set(this,e,n,i,r)}return t.set=function(t,e,n,i,r){return i<0&&(e+=i,i=-i),r<0&&(n+=r,r=-r),t.x=e,t.y=n,t.width=i,t.height=r,t},t.prototype.union=function(t){var e=de(t.x,this.x),n=de(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=fe(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=fe(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=[1,0,0,1,0,0];return se(r,r,[-e.x,-e.y]),function(t,e,n){var i=n[0],r=n[1];t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r}(r,r,[n,i]),se(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n,i){return t.intersect(this,e,n,i)},t.intersect=function(e,n,i,r){i&&he.set(i,0,0);var o=r&&r.outIntersectRect||null,a=r&&r.clamp;if(o&&(o.x=o.y=o.width=o.height=NaN),!e||!n)return!1;e instanceof t||(e=t.set(Te,e.x,e.y,e.width,e.height)),n instanceof t||(n=t.set(ke,n.x,n.y,n.width,n.height));var s=!!i;be.reset(r,s);var l=be.touchThreshold,u=e.x+l,c=e.x+e.width-l,h=e.y+l,d=e.y+e.height-l,f=n.x+l,p=n.x+n.width-l,g=n.y+l,v=n.y+n.height-l;if(u>c||h>d||f>p||g>v)return!1;var m=!(c<f||p<u||d<g||v<h);return(s||o)&&(Ce[0]=1/0,Ce[1]=0,Ie(u,c,f,p,0,s,o,a),Ie(h,d,g,v,1,s,o,a),s&&he.copy(i,m?be.useDir?be.dirMinTv:we:Se)),m},t.contain=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},t.prototype.contain=function(e,n){return t.contain(this,e,n)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}me.x=_e.x=n.x,me.y=xe.y=n.y,ye.x=xe.x=n.x+n.width,ye.y=_e.y=n.y+n.height,me.transform(i),xe.transform(i),ye.transform(i),_e.transform(i),e.x=de(me.x,ye.x,_e.x,xe.x),e.y=de(me.y,ye.y,_e.y,xe.y);var l=fe(me.x,ye.x,_e.x,xe.x),u=fe(me.y,ye.y,_e.y,xe.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),Te=new Me(0,0,0,0),ke=new Me(0,0,0,0);function Ie(t,e,n,i,r,o,a,s){var l=pe(e-n),u=pe(i-t),c=de(l,u),h=ge[r],d=ge[1-r],f=ve[r];e<n||i<t?l<u?(o&&(Se[h]=-l),s&&(a[h]=e,a[f]=0)):(o&&(Se[h]=u),s&&(a[h]=t,a[f]=0)):(a&&(a[h]=fe(t,n),a[f]=de(e,i)-a[h]),o&&(c<Ce[0]||be.useDir)&&(Ce[0]=de(c,Ce[0]),(l<u||!be.bidirectional)&&(we[h]=l,we[d]=0,be.useDir&&be.calcDirMTV()),(l>=u||!be.bidirectional)&&(we[h]=-u,we[d]=0,be.useDir&&be.calcDirMTV())))}function De(){var t=0,e=new he,n=new he,i={minTv:new he,maxTv:new he,useDir:!1,dirMinTv:new he,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(r,o){i.touchThreshold=0,r&&null!=r.touchThreshold&&(i.touchThreshold=fe(0,r.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,r&&null!=r.direction&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),n.copy(i.minTv),t=r.direction,i.bidirectional=null==r.bidirectional||!!r.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var o=i.minTv,a=i.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(t),u=Math.cos(t),c=l*o.y+u*o.x;r(c)?r(o.x)&&r(o.y)&&a.set(0,0):(n.x=s*u/c,n.y=s*l/c,r(n.x)&&r(n.y)?a.set(0,0):(i.bidirectional||e.dot(n)>0)&&n.len()<a.len()&&a.copy(n))}};function r(t){return pe(t)<1e-10}return i}const Re=Me;function Ae(t){Pe||(Pe=new Qt(100)),t=t||M;var e=Pe.get(t);return e||(e={font:t,strWidthCache:new Qt(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:k.measureText("国",t).width,asciiCharWidth:k.measureText("a",t).width},Pe.put(t,e)),e}var Pe,Le=0;function Oe(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function(t){if(!(Le>=5)){t=t||M;for(var e=[],n=+new Date,i=0;i<=127;i++)e[i]=k.measureText(String.fromCharCode(i),t).width;var r=+new Date-n;return r>16?Le=5:r>2&&Le++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Ee(t,e){var n=t.strWidthCache,i=n.get(e);return null==i&&(i=k.measureText(e,t.font).width,n.put(e,i)),i}function Be(t,e,n,i){var r=Ee(Ae(e),t),o=Ve(e),a=Fe(0,r,n),s=Ne(0,o,i);return new Re(a,s,r,o)}function ze(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return Be(r[0],e,n,i);for(var o=new Re(0,0,0,0),a=0;a<r.length;a++){var s=Be(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function Fe(t,e,n,i){return"right"===n?i?t+=e:t-=e:"center"===n&&(i?t+=e/2:t-=e/2),t}function Ne(t,e,n,i){return"middle"===n?i?t+=e/2:t-=e/2:"bottom"===n&&(i?t+=e:t-=e),t}function Ve(t){return Ae(t).stWideCharWidth}function He(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Ge(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=He(i[0],n.width),u+=He(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var We=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Ue(t,e,n,i,r,o){if(!n)return t.text="",void(t.isTruncated=!1);var a=(e+"").split("\n");o=je(n,i,r,o);for(var s=!1,l={},u=0,c=a.length;u<c;u++)Xe(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;t.text=a.join("\n"),t.isTruncated=s}function je(t,e,n,i){var r=U({},i=i||{});n=pt(n,"..."),r.maxIterations=pt(i.maxIterations,2);var o=r.minChar=pt(i.minChar,0),a=r.fontMeasureInfo=Ae(e),s=a.asciiCharWidth;r.placeholder=pt(i.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<o&&l>=s;u++)l-=s;var c=Ee(a,n);return c>l&&(n="",c=0),l=t-c,r.ellipsis=n,r.ellipsisWidth=c,r.contentWidth=l,r.containerWidth=t,r}function Xe(t,e,n){var i=n.containerWidth,r=n.contentWidth,o=n.fontMeasureInfo;if(!i)return t.textLine="",void(t.isTruncated=!1);var a=Ee(o,e);if(a<=i)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(a<=r||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?Ye(e,r,o):a>0?Math.floor(e.length*r/a):0;a=Ee(o,e=e.substr(0,l))}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function Ye(t,e,n){for(var i=0,r=0,o=t.length;r<o&&i<e;r++)i+=Oe(n,t.charCodeAt(r));return r}var qe=function(){},Ze=function(t){this.tokens=[],t&&(this.tokens=t)},$e=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function Ke(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},u=t.lines,c=l.font||n.font,h=!1;if(i){var d=l.padding,f=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var p=He(l.width,i.width)+f;u.length>0&&p+i.accumWidth>i.width&&(o=e.split("\n"),h=!0),i.accumWidth=p}else{var g=tn(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+f,a=g.linesWidths,o=g.lines}}o||(o=e.split("\n"));for(var v=Ae(c),m=0;m<o.length;m++){var y=o[m],_=new qe;if(_.styleName=r,_.text=y,_.isLineHolder=!y&&!s,"number"==typeof l.width?_.width=l.width:_.width=a?a[m]:Ee(v,y),m||h)u.push(new Ze([_]));else{var x=(u[u.length-1]||(u[0]=new Ze)).tokens,b=x.length;1===b&&x[0].isLineHolder?x[0]=_:(y||!b||s)&&x.push(_)}}}var Qe=K(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function Je(t){return!function(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!Qe[t]}function tn(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=Ae(e),d=0;d<t.length;d++){var f=t.charAt(d);if("\n"!==f){var p=Oe(h,f.charCodeAt(0)),g=!i&&!Je(f);(o.length?c+p>n:r+c+p>n)?c?(s||l)&&(g?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=f,s="",c=u+=p):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=f,c=p)):g?(o.push(l),a.push(u),l=f,u=p):(o.push(f),a.push(p)):(c+=p,g?(l+=f,u+=p):(l&&(s+=l,l="",u=0),s+=f))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}function en(t,e,n,i,r,o){if(t.baseX=n,t.baseY=i,t.outerWidth=t.outerHeight=null,e){var a=2*e.width,s=2*e.height;Re.set(nn,Fe(n,a,r),Ne(i,s,o),a,s),Re.intersect(e,nn,null,rn);var l=rn.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Fe(l.x,l.width,r,!0),t.baseY=Ne(l.y,l.height,o,!0)}}var nn=new Re(0,0,0,0),rn={outIntersectRect:{},clamp:!0};function on(t){return null!=t?t+="":t=""}function an(t,e,n,i){var r=new Re(Fe(t.x||0,e,t.textAlign),Ne(t.y||0,n,t.textBaseline),e,n),o=null!=i?i:sn(t)?t.lineWidth:0;return o>0&&(r.x-=o/2,r.y-=o/2,r.width+=o,r.height+=o),r}function sn(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}function ln(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function un(t){return[t[0],t[1]]}function cn(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function hn(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function dn(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function fn(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var pn=fn,gn=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function vn(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function mn(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function yn(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var _n=re;function xn(t){return t>5e-5||t<-5e-5}var bn=[],wn=[],Sn=[1,0,0,1,0,0],Cn=Math.abs,Mn=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return xn(this.rotation)||xn(this.x)||xn(this.y)||xn(this.scaleX-1)||xn(this.scaleY-1)||xn(this.skewX)||xn(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):_n(n),t&&(e?ae(n,t,n):oe(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(_n(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(bn);var n=bn[0]<0?-1:1,i=bn[1]<0?-1:1,r=((bn[0]-n)*e+n)/bn[0]||0,o=((bn[1]-i)*e+i)/bn[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],ue(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],ae(wn,t.invTransform,e),e=wn);var n=this.originX,i=this.originY;(n||i)&&(Sn[4]=n,Sn[5]=i,ae(wn,e,Sn),wn[4]-=n,wn[5]-=i,e=wn),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&vn(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&vn(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Cn(t[0]-1)>1e-10&&Cn(t[3]-1)>1e-10?Math.sqrt(Cn(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){kn(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var f=n+a,p=i+s;e[4]=-f*r-h*p*o,e[5]=-p*o-d*f*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=d*r,e[2]=h*o,l&&le(e,e,l),e[4]+=n+u,e[5]+=i+c,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),Tn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function kn(t,e){for(var n=0;n<Tn.length;n++){var i=Tn[n];t[i]=e[i]}}const In=Mn;var Dn={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Dn.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Dn.bounceIn(2*t):.5*Dn.bounceOut(2*t-1)+.5}};const Rn=Dn;var An=Math.pow,Pn=Math.sqrt,Ln=1e-4,On=Pn(3),En=1/3,Bn=ln(),zn=ln(),Fn=ln();function Nn(t){return t>-1e-8&&t<1e-8}function Vn(t){return t>1e-8||t<-1e-8}function Hn(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function Gn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Wn(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,f=0;if(Nn(c)&&Nn(h))Nn(s)?o[0]=0:(C=-l/s)>=0&&C<=1&&(o[f++]=C);else{var p=h*h-4*c*d;if(Nn(p)){var g=h/c,v=-g/2;(C=-s/a+g)>=0&&C<=1&&(o[f++]=C),v>=0&&v<=1&&(o[f++]=v)}else if(p>0){var m=Pn(p),y=c*s+1.5*a*(-h+m),_=c*s+1.5*a*(-h-m);(C=(-s-((y=y<0?-An(-y,En):An(y,En))+(_=_<0?-An(-_,En):An(_,En))))/(3*a))>=0&&C<=1&&(o[f++]=C)}else{var x=(2*c*s-3*a*h)/(2*Pn(c*c*c)),b=Math.acos(x)/3,w=Pn(c),S=Math.cos(b),C=(-s-2*w*S)/(3*a),M=(v=(-s+w*(S+On*Math.sin(b)))/(3*a),(-s+w*(S-On*Math.sin(b)))/(3*a));C>=0&&C<=1&&(o[f++]=C),v>=0&&v<=1&&(o[f++]=v),M>=0&&M<=1&&(o[f++]=M)}}return f}function Un(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(Nn(a))Vn(o)&&(c=-s/o)>=0&&c<=1&&(r[l++]=c);else{var u=o*o-4*a*s;if(Nn(u))r[0]=-o/(2*a);else if(u>0){var c,h=Pn(u),d=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}function jn(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function Xn(t,e,n,i,r,o,a,s,l){for(var u=t,c=e,h=0,d=1/l,f=1;f<=l;f++){var p=f*d,g=Hn(t,n,r,a,p),v=Hn(e,i,o,s,p),m=g-u,y=v-c;h+=Math.sqrt(m*m+y*y),u=g,c=v}return h}function Yn(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function qn(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function Zn(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function $n(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function Kn(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var d=h*c,f=Yn(t,n,r,d),p=Yn(e,i,o,d),g=f-s,v=p-l;u+=Math.sqrt(g*g+v*v),s=f,l=p}return u}var Qn=/cubic-bezier\(([0-9,\.e ]+)\)/;function Jn(t){var e=t&&Qn.exec(t);if(e){var n=e[1].split(","),i=+_t(n[0]),r=+_t(n[1]),o=+_t(n[2]),a=+_t(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:Wn(0,i,o,1,t,s)&&Hn(0,r,a,1,s[0])}}}const ti=function(){function t(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||Rt,this.ondestroy=t.ondestroy||Rt,this.onrestart=t.onrestart||Rt,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=it(t)?t:Rn[t]||Jn(t)},t}();var ei={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 ni(t){return(t=Math.round(t))<0?0:t>255?255:t}function ii(t){return t<0?0:t>1?1:t}function ri(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?ni(parseFloat(e)/100*255):ni(parseInt(e,10))}function oi(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?ii(parseFloat(e)/100):ii(parseFloat(e))}function ai(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function si(t,e,n){return t+(e-t)*n}function li(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function ui(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var ci=new Qt(20),hi=null;function di(t,e){hi&&ui(hi,e),hi=ci.put(t,hi||e.slice())}function fi(t,e){if(t){e=e||[];var n=ci.get(t);if(n)return ui(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in ei)return ui(e,ei[i]),di(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(li(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),di(t,e),e):void li(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(li(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),di(t,e),e):void li(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?li(e,+u[0],+u[1],+u[2],1):li(e,0,0,0,1);c=oi(u.pop());case"rgb":return u.length>=3?(li(e,ri(u[0]),ri(u[1]),ri(u[2]),3===u.length?c:oi(u[3])),di(t,e),e):void li(e,0,0,0,1);case"hsla":return 4!==u.length?void li(e,0,0,0,1):(u[3]=oi(u[3]),pi(u,e),di(t,e),e);case"hsl":return 3!==u.length?void li(e,0,0,0,1):(pi(u,e),di(t,e),e);default:return}}li(e,0,0,0,1)}}function pi(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=oi(t[1]),r=oi(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return li(e=e||[],ni(255*ai(a,o,n+1/3)),ni(255*ai(a,o,n)),ni(255*ai(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function gi(t,e){var n=fi(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return yi(n,4===n.length?"rgba":"rgb")}}function vi(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=fi(e[r]),s=fi(e[o]),l=i-r,u=yi([ni(si(a[0],s[0],l)),ni(si(a[1],s[1],l)),ni(si(a[2],s[2],l)),ii(si(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}function mi(t,e,n,i){var r,o=fi(t);if(t)return o=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-h:r===s?e=1/3+c-d:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}(o),null!=e&&(o[0]=(r=it(e)?e(o[0]):e,(r=Math.round(r))<0?0:r>360?360:r)),null!=n&&(o[1]=oi(it(n)?n(o[1]):n)),null!=i&&(o[2]=oi(it(i)?i(o[2]):i)),yi(pi(o),"rgba")}function yi(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function _i(t,e){var n=fi(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var xi=new Qt(100);function bi(t){if(rt(t)){var e=xi.get(t);return e||(e=gi(t,-.1),xi.put(t,e)),e}if(ht(t)){var n=U({},t);return n.colorStops=$(t.colorStops,function(t){return{offset:t.offset,color:gi(t.color,-.1)}}),n}return t}Math.round,Ot.hasGlobalWindow&&it(window.btoa);var wi=Array.prototype.slice;function Si(t,e,n){return(e-t)*n+t}function Ci(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=Si(e[o],n[o],i);return t}function Mi(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function Ti(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function ki(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function Ii(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a)if(o>a)i.length=a;else for(var s=o;s<a;s++)i.push(1===n?r[s]:wi.call(r[s]));var l=i[0]&&i[0].length;for(s=0;s<i.length;s++)if(1===n)isNaN(i[s])&&(i[s]=r[s]);else for(var u=0;u<l;u++)isNaN(i[s][u])&&(i[s][u]=r[s][u])}}function Di(t){if(q(t)){var e=t.length;if(q(t[0])){for(var n=[],i=0;i<e;i++)n.push(wi.call(t[i]));return n}return wi.call(t)}return t}function Ri(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function Ai(t){return 4===t||5===t}function Pi(t){return 1===t||2===t}var Li=[0,0,0,0],Oi=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(q(e)){var l=function(t){return q(t&&t[0])?2:1}(e);a=l,(1===l&&!at(e[0])||2===l&&!at(e[0][0]))&&(o=!0)}else if(at(e)&&!dt(e))a=0;else if(rt(e))if(isNaN(+e)){var u=fi(e);u&&(s=u,a=3)}else a=0;else if(ht(e)){var c=U({},s);c.colorStops=$(e.colorStops,function(t){return{offset:t.offset,color:fi(t.color)}}),"linear"===e.type?a=4:"radial"===e.type&&(a=5),s=c}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=it(n)?n:Rn[n]||Jn(n)),i.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=Pi(i),l=Ai(i),u=0;u<r;u++){var c=n[u],h=c.value,d=o.value;c.percent=c.time/t,a||(s&&u!==r-1?Ii(h,d,i):l&&ki(h.colorStops,d.colorStops))}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;var f=n[0].value;for(u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-f:3===i?n[u].additiveValue=Mi([],n[u].value,f,-1):Pi(i)&&(n[u].additiveValue=1===i?Mi([],n[u].value,f,-1):Ti([],n[u].value,f,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,h=3===s,d=this._lastFr,f=Math.min;if(1===u)i=r=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=f(d+1,u-1);n>=0&&!(l[n].percent<=e);n--);n=f(n,u-2)}else{for(n=d;n<u&&!(l[n].percent>e);n++);n=f(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var p=r.percent-i.percent,g=0===p?1:f((e-i.percent)/p,1);r.easingFunc&&(g=r.easingFunc(g));var v=o?this._additiveValue:h?Li:t[c];if(!Pi(s)&&!h||v||(v=this._additiveValue=[]),this.discrete)t[c]=g<1?i.rawValue:r.rawValue;else if(Pi(s))1===s?Ci(v,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=Si(e[a][s],n[a][s],i)}}(v,i[a],r[a],g);else if(Ai(s)){var m=i[a],y=r[a],_=4===s;t[c]={type:_?"linear":"radial",x:Si(m.x,y.x,g),y:Si(m.y,y.y,g),colorStops:$(m.colorStops,function(t,e){var n=y.colorStops[e];return{offset:Si(t.offset,n.offset,g),color:Ri(Ci([],t.color,n.color,g))}}),global:y.global},_?(t[c].x2=Si(m.x2,y.x2,g),t[c].y2=Si(m.y2,y.y2,g)):t[c].r=Si(m.r,y.r,g)}else if(h)Ci(v,i[a],r[a],g),o||(t[c]=Ri(v));else{var x=Si(i[a],r[a],g);o?this._additiveValue=x:t[c]=x}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(fi(t[n],Li),Mi(Li,Li,i,1),t[n]=Ri(Li)):1===e?Mi(t[n],t[n],i,1):2===e&&Ti(t[n],t[n],i,1)},t}(),Ei=function(){function t(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?H("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,J(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new Oi(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,3===u.valType&&l&&(l=Ri(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,Di(l),i),this._trackKeys.push(a)}s.addKeyframe(t,Di(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(e._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new ti({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return $(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[r]=Di(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||J(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();const Bi=Ei;var zi=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}();const Fi=zi;var Ni=1;Ot.hasGlobalWindow&&(Ni=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Vi=Ni,Hi="#333",Gi="#ccc",Wi="__zr_normal__",Ui=Tn.concat(["ignore"]),ji=K(Tn,function(t,e){return t[e]=!0,t},{ignore:!1}),Xi={},Yi=new Re(0,0,0,0),qi=[],Zi=function(){function t(t){this.id=V(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;r.copyTransform(e);var u=null!=n.position,c=n.autoOverflowArea,h=void 0;if((c||u)&&(h=Yi,n.layoutRect?h.copy(n.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(Xi,n,h):Ge(Xi,n,h),r.x=Xi.x,r.y=Xi.y,o=Xi.align,a=Xi.verticalAlign;var d=n.origin;if(d&&null!=n.rotation){var f=void 0,p=void 0;"center"===d?(f=.5*h.width,p=.5*h.height):(f=He(d[0],h.width),p=He(d[1],h.height)),l=!0,r.originX=-r.x+f+(i?0:h.x),r.originY=-r.y+p+(i?0:h.y)}}null!=n.rotation&&(r.rotation=n.rotation);var g=n.offset;g&&(r.x+=g[0],r.y+=g[1],l||(r.originX=-g[0],r.originY=-g[1]));var v=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var m=v.overflowRect=v.overflowRect||new Re(0,0,0,0);r.getLocalTransform(qi),ue(qi,qi),Re.copy(m,h),m.applyTransform(qi)}else v.overflowRect=null;var y=void 0,_=void 0,x=void 0;(null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside)&&this.canBeInsideText()?(y=n.insideFill,_=n.insideStroke,null!=y&&"auto"!==y||(y=this.getInsideTextFill()),null!=_&&"auto"!==_||(_=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,_=n.outsideStroke,null!=y&&"auto"!==y||(y=this.getOutsideFill()),null!=_&&"auto"!==_||(_=this.getOutsideStroke(y),x=!0)),(y=y||"#000")===v.fill&&_===v.stroke&&x===v.autoStroke&&o===v.align&&a===v.verticalAlign||(s=!0,v.fill=y,v.stroke=_,v.autoStroke=x,v.align=o,v.verticalAlign=a,e.setDefaultTextStyle(v)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Gi:Hi},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&fi(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,yi(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},U(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(st(t))for(var n=J(t),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,t[r])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&r!==Wi)){var o=i.targetName,a=o?e[o]:e;i.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Ui)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(Wi,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===Wi;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(X(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(t,e,n,l),c&&c.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}H("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var c=i[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(i),f=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&f&&f.duration>0,f);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=X(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=X(i,t),o=X(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];U(n,r),r.textConfig&&U(e=e||{},r.textConfig)}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=U({},i?this.textConfig:n.textConfig),U(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<Ui.length;u++){var c=Ui[u],h=r&&ji[c];e&&null!=e[c]?h?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(h?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!r)for(u=0;u<this.animators.length;u++){var d=this.animators[u],f=d.targetName;d.getLoop()||d.__changeFinalValue(f?(e||n)[f]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new In,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),U(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=1;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var i=t?this[t]:this,r=new Bi(i,e,n);return t&&(r.targetName=t),this.addAnimator(r,t),r},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var e=i.animators,n=X(e,t);n>=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){$i(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){$i(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=$i(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function n(t,n,i,r){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}Object.defineProperty(e,t,{get:function(){return this[n]||o(this,this[n]=[]),this[n]},set:function(t){this[i]=t[0],this[r]=t[1],this[n]=t,o(this,t)}})}e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function $i(t,e,n,i,r){var o=[];Ji(t,"",t,e,n=n||{},i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},h=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var d=0;d<o.length;d++){var f=o[d];c&&f.done(c),h&&f.aborted(h),n.force&&f.duration(n.duration),f.start(n.easing)}return o}function Ki(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function Qi(t,e,n){if(q(e[n]))if(q(t[n])||(t[n]=[]),ut(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),Ki(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(q(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?Ki(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else Ki(o,r,a);o.length=r.length}else t[n]=e[n]}function Ji(t,e,n,i,r,o,a,s){for(var l=J(i),u=r.duration,c=r.delay,h=r.additive,d=r.setToFinal,f=!st(o),p=t.animators,g=[],v=0;v<l.length;v++){var m=l[v],y=i[m];if(null!=y&&null!=n[m]&&(f||o[m]))if(!st(y)||q(y)||ht(y))g.push(m);else{if(e){s||(n[m]=y,t.updateDuringAnimation(e));continue}Ji(t,m,n[m],y,r,o&&o[m],a,s)}else s||(n[m]=y,t.updateDuringAnimation(e),g.push(m))}var _=g.length;if(!h&&_)for(var x=0;x<p.length;x++)if((w=p[x]).targetName===e&&w.stopTracks(g)){var b=X(p,w);p.splice(b,1)}if(r.force||(g=Q(g,function(t){return!((e=i[t])===(r=n[t])||q(e)&&q(r)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(e,r));var e,r}),_=g.length),_>0||r.force&&!a.length){var w,S=void 0,C=void 0,M=void 0;if(s)for(C={},d&&(S={}),x=0;x<_;x++)C[m=g[x]]=n[m],d?S[m]=i[m]:n[m]=i[m];else if(d)for(M={},x=0;x<_;x++)M[m=g[x]]=Di(n[m]),Qi(n,i,m);(w=new Bi(n,!1,!1,h?Q(p,function(t){return t.targetName===e}):null)).targetName=e,r.scope&&(w.scope=r.scope),d&&S&&w.whenWithKeys(0,S,g),M&&w.whenWithKeys(0,M,g),w.whenWithKeys(null==u?500:u,s?C:i,g).delay(c||0),t.addAnimator(w,e),a.push(w)}}Y(Zi,Fi),Y(Zi,In);const tr=Zi;var er="__zr_style_"+Math.round(10*Math.random()),nr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ir={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};nr[er]=!0;var rr=["z","z2","invisible"],or=["invisible"],ar=function(t){function e(e){return t.call(this,e)||this}var n;return qt(e,t),e.prototype._init=function(e){for(var n=J(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,i){var r,o,a,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(r=this,o=t,a=e,sr.copy(r.getBoundingRect()),r.transform&&sr.applyTransform(r.transform),lr.width=o,lr.height=a,!sr.intersect(lr))||s&&!s[0]&&!s[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length)for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1;if(i&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new Re(0,0,0,0)),e?Re.applyTransform(t,n,e):t.copy(n),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Re(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:U(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(2&this.__dirty)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(t){return kt(nr,t)},e.prototype.useStyle=function(t){t[er]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[er]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,rr)},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.style?o?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=J(u),h=0;h<c.length;h++)(f=c[h])in s&&(s[f]=s[f],this.style[f]=u[f]);var d=J(s);for(h=0;h<d.length;h++){var f=d[h];this.style[f]=this.style[f]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var p=this.__inHover?or:rr;for(h=0;h<p.length;h++)f=p[h],n&&null!=n[f]?this[f]=n[f]:l&&null!=i[f]&&(this[f]=i[f])},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(t,e){return U(t,e),t},e.prototype.getAnimationStyleProps=function(){return ir},e.initDefaultProps=((n=e.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=3)),e}(tr),sr=new Re(0,0,0,0),lr=new Re(0,0,0,0);const ur=ar;var cr=Math.min,hr=Math.max,dr=Math.sin,fr=Math.cos,pr=2*Math.PI,gr=ln(),vr=ln(),mr=ln();function yr(t,e,n,i,r,o){r[0]=cr(t,n),r[1]=cr(e,i),o[0]=hr(t,n),o[1]=hr(e,i)}var _r=[],xr=[];function br(t,e,n,i,r,o,a,s,l,u){var c=Un,h=Hn,d=c(t,n,r,a,_r);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var f=0;f<d;f++){var p=h(t,n,r,a,_r[f]);l[0]=cr(p,l[0]),u[0]=hr(p,u[0])}for(d=c(e,i,o,s,xr),f=0;f<d;f++){var g=h(e,i,o,s,xr[f]);l[1]=cr(g,l[1]),u[1]=hr(g,u[1])}l[0]=cr(t,l[0]),u[0]=hr(t,u[0]),l[0]=cr(a,l[0]),u[0]=hr(a,u[0]),l[1]=cr(e,l[1]),u[1]=hr(e,u[1]),l[1]=cr(s,l[1]),u[1]=hr(s,u[1])}function wr(t,e,n,i,r,o,a,s){var l=Zn,u=Yn,c=hr(cr(l(t,n,r),1),0),h=hr(cr(l(e,i,o),1),0),d=u(t,n,r,c),f=u(e,i,o,h);a[0]=cr(t,r,d),a[1]=cr(e,o,f),s[0]=hr(t,r,d),s[1]=hr(e,o,f)}function Sr(t,e,n,i,r,o,a,s,l){var u=mn,c=yn,h=Math.abs(r-o);if(h%pr<1e-4&&h>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(gr[0]=fr(r)*n+t,gr[1]=dr(r)*i+e,vr[0]=fr(o)*n+t,vr[1]=dr(o)*i+e,u(s,gr,vr),c(l,gr,vr),(r%=pr)<0&&(r+=pr),(o%=pr)<0&&(o+=pr),r>o&&!a?o+=pr:r<o&&a&&(r+=pr),a){var d=o;o=r,r=d}for(var f=0;f<o;f+=Math.PI/2)f>r&&(mr[0]=fr(f)*n+t,mr[1]=dr(f)*i+e,u(s,mr,s),c(l,mr,l))}var Cr={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Mr=[],Tr=[],kr=[],Ir=[],Dr=[],Rr=[],Ar=Math.min,Pr=Math.max,Lr=Math.cos,Or=Math.sin,Er=Math.abs,Br=Math.PI,zr=2*Br,Fr="undefined"!=typeof Float32Array,Nr=[];function Vr(t){return Math.round(t/Br*1e8)/1e8%2*Br}var Hr=function(){function t(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=[])}var e;return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=Er(n/Vi/t)||0,this._uy=Er(n/Vi/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Cr.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=Er(t-this._xi),i=Er(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Cr.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Cr.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Cr.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),Nr[0]=i,Nr[1]=r,function(t,e){var n=Vr(t[0]);n<0&&(n+=zr);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=zr?r=n+zr:e&&n-r>=zr?r=n-zr:!e&&n>r?r=n+(zr-Vr(n-r)):e&&n<r&&(r=n-(zr-Vr(r-n))),t[0]=n,t[1]=r}(Nr,o),i=Nr[0];var a=(r=Nr[1])-i;return this.addData(Cr.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Lr(r)*n+t,this._yi=Or(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Cr.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Cr.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){if(this._saveData){var e=t.length;this.data&&this.data.length===e||!Fr||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e}},t.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();var o=this.data;if(Fr&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var a=0;a<i;a++)this.data[a]=o[a];for(r=0;r<e;r++){var s=t[r].data;for(a=0;a<s.length;a++)this.data[i++]=s[a]}this._len=i}},t.prototype.addData=function(t,e,n,i,r,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Fr&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){kr[0]=kr[1]=Dr[0]=Dr[1]=Number.MAX_VALUE,Ir[0]=Ir[1]=Rr[0]=Rr[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(r=n=e[t],o=i=e[t+1]),a){case Cr.M:n=r=e[t++],i=o=e[t++],Dr[0]=r,Dr[1]=o,Rr[0]=r,Rr[1]=o;break;case Cr.L:yr(n,i,e[t],e[t+1],Dr,Rr),n=e[t++],i=e[t++];break;case Cr.C:br(n,i,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],Dr,Rr),n=e[t++],i=e[t++];break;case Cr.Q:wr(n,i,e[t++],e[t++],e[t],e[t+1],Dr,Rr),n=e[t++],i=e[t++];break;case Cr.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],d=e[t++],f=e[t++]+d;t+=1;var p=!e[t++];s&&(r=Lr(d)*c+l,o=Or(d)*h+u),Sr(l,u,c,h,d,f,p,Dr,Rr),n=Lr(f)*c+l,i=Or(f)*h+u;break;case Cr.R:yr(r=n=e[t++],o=i=e[t++],r+e[t++],o+e[t++],Dr,Rr);break;case Cr.Z:n=r,i=o}mn(kr,kr,Dr),yn(Ir,Ir,Rr)}return 0===t&&(kr[0]=kr[1]=Ir[0]=Ir[1]=0),new Re(kr[0],kr[1],Ir[0]-kr[0],Ir[1]-kr[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var d=t[h++],f=1===h;f&&(a=r=t[h],s=o=t[h+1]);var p=-1;switch(d){case Cr.M:r=a=t[h++],o=s=t[h++];break;case Cr.L:var g=t[h++],v=(_=t[h++])-o;(Er(D=g-r)>n||Er(v)>i||h===e-1)&&(p=Math.sqrt(D*D+v*v),r=g,o=_);break;case Cr.C:var m=t[h++],y=t[h++],_=(g=t[h++],t[h++]),x=t[h++],b=t[h++];p=Xn(r,o,m,y,g,_,x,b,10),r=x,o=b;break;case Cr.Q:p=Kn(r,o,m=t[h++],y=t[h++],g=t[h++],_=t[h++],10),r=g,o=_;break;case Cr.A:var w=t[h++],S=t[h++],C=t[h++],M=t[h++],T=t[h++],k=t[h++],I=k+T;h+=1,f&&(a=Lr(T)*C+w,s=Or(T)*M+S),p=Pr(C,M)*Ar(zr,Math.abs(k)),r=Lr(I)*C+w,o=Or(I)*M+S;break;case Cr.R:a=r=t[h++],s=o=t[h++],p=2*t[h++]+2*t[h++];break;case Cr.Z:var D=a-r;v=s-o,p=Math.sqrt(D*D+v*v),r=a,o=s}p>=0&&(l[c++]=p,u+=p)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,c,h,d=this.data,f=this._ux,p=this._uy,g=this._len,v=e<1,m=0,y=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var x=0;x<g;){var b=d[x++],w=1===x;switch(w&&(n=r=d[x],i=o=d[x+1]),b!==Cr.L&&_>0&&(t.lineTo(c,h),_=0),b){case Cr.M:n=r=d[x++],i=o=d[x++],t.moveTo(r,o);break;case Cr.L:a=d[x++],s=d[x++];var S=Er(a-r),C=Er(s-o);if(S>f||C>p){if(v){if(m+(q=l[y++])>u){var M=(u-m)/q;t.lineTo(r*(1-M)+a*M,o*(1-M)+s*M);break t}m+=q}t.lineTo(a,s),r=a,o=s,_=0}else{var T=S*S+C*C;T>_&&(c=a,h=s,_=T)}break;case Cr.C:var k=d[x++],I=d[x++],D=d[x++],R=d[x++],A=d[x++],P=d[x++];if(v){if(m+(q=l[y++])>u){jn(r,k,D,A,M=(u-m)/q,Mr),jn(o,I,R,P,M,Tr),t.bezierCurveTo(Mr[1],Tr[1],Mr[2],Tr[2],Mr[3],Tr[3]);break t}m+=q}t.bezierCurveTo(k,I,D,R,A,P),r=A,o=P;break;case Cr.Q:if(k=d[x++],I=d[x++],D=d[x++],R=d[x++],v){if(m+(q=l[y++])>u){$n(r,k,D,M=(u-m)/q,Mr),$n(o,I,R,M,Tr),t.quadraticCurveTo(Mr[1],Tr[1],Mr[2],Tr[2]);break t}m+=q}t.quadraticCurveTo(k,I,D,R),r=D,o=R;break;case Cr.A:var L=d[x++],O=d[x++],E=d[x++],B=d[x++],z=d[x++],F=d[x++],N=d[x++],V=!d[x++],H=E>B?E:B,G=Er(E-B)>.001,W=z+F,U=!1;if(v&&(m+(q=l[y++])>u&&(W=z+F*(u-m)/q,U=!0),m+=q),G&&t.ellipse?t.ellipse(L,O,E,B,N,z,W,V):t.arc(L,O,H,z,W,V),U)break t;w&&(n=Lr(z)*E+L,i=Or(z)*B+O),r=Lr(W)*E+L,o=Or(W)*B+O;break;case Cr.R:n=r=d[x],i=o=d[x+1],a=d[x++],s=d[x++];var j=d[x++],X=d[x++];if(v){if(m+(q=l[y++])>u){var Y=u-m;t.moveTo(a,s),t.lineTo(a+Ar(Y,j),s),(Y-=j)>0&&t.lineTo(a+j,s+Ar(Y,X)),(Y-=X)>0&&t.lineTo(a+Pr(j-Y,0),s+X),(Y-=j)>0&&t.lineTo(a,s+Pr(X-Y,0));break t}m+=q}t.rect(a,s,j,X);break;case Cr.Z:if(v){var q;if(m+(q=l[y++])>u){M=(u-m)/q,t.lineTo(r*(1-M)+n*M,o*(1-M)+i*M);break t}m+=q}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=Cr,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}();const Gr=Hr;function Wr(t,e,n,i,r,o,a){if(0===r)return!1;var s,l=r;if(a>e+l&&a>i+l||a<e-l&&a<i-l||o>t+l&&o>n+l||o<t-l&&o<n-l)return!1;if(t===n)return Math.abs(o-t)<=l/2;var u=(s=(e-i)/(t-n))*o-a+(t*i-n*e)/(t-n);return u*u/(s*s+1)<=l/2*l/2}function Ur(t,e,n,i,r,o,a,s,l,u,c){if(0===l)return!1;var h=l;if(c>e+h&&c>i+h&&c>o+h&&c>s+h||c<e-h&&c<i-h&&c<o-h&&c<s-h||u>t+h&&u>n+h&&u>r+h&&u>a+h||u<t-h&&u<n-h&&u<r-h&&u<a-h)return!1;var d=function(t,e,n,i,r,o,a,s,l,u){var c,h,d,f,p,g=.005,v=1/0;Bn[0]=l,Bn[1]=u;for(var m=0;m<1;m+=.05)zn[0]=Hn(t,n,r,a,m),zn[1]=Hn(e,i,o,s,m),(f=gn(Bn,zn))<v&&(c=m,v=f);v=1/0;for(var y=0;y<32&&!(g<Ln);y++)h=c-g,d=c+g,zn[0]=Hn(t,n,r,a,h),zn[1]=Hn(e,i,o,s,h),f=gn(zn,Bn),h>=0&&f<v?(c=h,v=f):(Fn[0]=Hn(t,n,r,a,d),Fn[1]=Hn(e,i,o,s,d),p=gn(Fn,Bn),d<=1&&p<v?(c=d,v=p):g*=.5);return Pn(v)}(t,e,n,i,r,o,a,s,u,c);return d<=h/2}function jr(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>i+u&&l>o+u||l<e-u&&l<i-u&&l<o-u||s>t+u&&s>n+u&&s>r+u||s<t-u&&s<n-u&&s<r-u)return!1;var c=function(t,e,n,i,r,o,a,s){var l,u=.005,c=1/0;Bn[0]=a,Bn[1]=s;for(var h=0;h<1;h+=.05)zn[0]=Yn(t,n,r,h),zn[1]=Yn(e,i,o,h),(g=gn(Bn,zn))<c&&(l=h,c=g);c=1/0;for(var d=0;d<32&&!(u<Ln);d++){var f=l-u,p=l+u;zn[0]=Yn(t,n,r,f),zn[1]=Yn(e,i,o,f);var g=gn(zn,Bn);if(f>=0&&g<c)l=f,c=g;else{Fn[0]=Yn(t,n,r,p),Fn[1]=Yn(e,i,o,p);var v=gn(Fn,Bn);p<=1&&v<c?(l=p,c=v):u*=.5}}return Pn(c)}(t,e,n,i,r,o,s,l);return c<=u/2}var Xr=2*Math.PI;function Yr(t){return(t%=Xr)<0&&(t+=Xr),t}var qr=2*Math.PI;function Zr(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(i-r)%qr<1e-4)return!0;if(o){var h=i;i=Yr(r),r=Yr(h)}else i=Yr(i),r=Yr(r);i>r&&(r+=qr);var d=Math.atan2(l,s);return d<0&&(d+=qr),d>=i&&d<=r||d+qr>=i&&d+qr<=r}function $r(t,e,n,i,r,o){if(o>e&&o>i||o<e&&o<i)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=i<e?1:-1;1!==a&&0!==a||(s=i<e?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}var Kr=Gr.CMD,Qr=2*Math.PI,Jr=[-1,-1,-1],to=[-1,-1];function eo(){var t=to[0];to[0]=to[1],to[1]=t}function no(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u<e&&u<i&&u<o&&u<s)return 0;var c=Wn(e,i,o,s,u,Jr);if(0===c)return 0;for(var h=0,d=-1,f=void 0,p=void 0,g=0;g<c;g++){var v=Jr[g],m=0===v||1===v?.5:1;Hn(t,n,r,a,v)<l||(d<0&&(d=Un(e,i,o,s,to),to[1]<to[0]&&d>1&&eo(),f=Hn(e,i,o,s,to[0]),d>1&&(p=Hn(e,i,o,s,to[1]))),2===d?v<to[0]?h+=f<e?m:-m:v<to[1]?h+=p<f?m:-m:h+=s<p?m:-m:v<to[0]?h+=f<e?m:-m:h+=s<f?m:-m)}return h}function io(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||s<e&&s<i&&s<o)return 0;var l=function(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(Nn(o))Vn(a)&&(c=-s/a)>=0&&c<=1&&(r[l++]=c);else{var u=a*a-4*o*s;if(Nn(u))(c=-a/(2*o))>=0&&c<=1&&(r[l++]=c);else if(u>0){var c,h=Pn(u),d=(-a-h)/(2*o);(c=(-a+h)/(2*o))>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}(e,i,o,s,Jr);if(0===l)return 0;var u=Zn(e,i,o);if(u>=0&&u<=1){for(var c=0,h=Yn(e,i,o,u),d=0;d<l;d++){var f=0===Jr[d]||1===Jr[d]?.5:1;Yn(t,n,r,Jr[d])<a||(Jr[d]<u?c+=h<e?f:-f:c+=o<h?f:-f)}return c}return f=0===Jr[0]||1===Jr[0]?.5:1,Yn(t,n,r,Jr[0])<a?0:o<e?f:-f}function ro(t,e,n,i,r,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Jr[0]=-l,Jr[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=Qr-1e-4){i=0,r=Qr;var c=o?1:-1;return a>=Jr[0]+t&&a<=Jr[1]+t?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=Qr,r+=Qr);for(var d=0,f=0;f<2;f++){var p=Jr[f];if(p+t>a){var g=Math.atan2(s,p);c=o?1:-1,g<0&&(g=Qr+g),(g>=i&&g<=r||g+Qr>=i&&g+Qr<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function oo(t,e,n,i,r){for(var o,a,s,l,u=t.data,c=t.len(),h=0,d=0,f=0,p=0,g=0,v=0;v<c;){var m=u[v++],y=1===v;switch(m===Kr.M&&v>1&&(n||(h+=$r(d,f,p,g,i,r))),y&&(p=d=u[v],g=f=u[v+1]),m){case Kr.M:d=p=u[v++],f=g=u[v++];break;case Kr.L:if(n){if(Wr(d,f,u[v],u[v+1],e,i,r))return!0}else h+=$r(d,f,u[v],u[v+1],i,r)||0;d=u[v++],f=u[v++];break;case Kr.C:if(n){if(Ur(d,f,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],e,i,r))return!0}else h+=no(d,f,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],i,r)||0;d=u[v++],f=u[v++];break;case Kr.Q:if(n){if(jr(d,f,u[v++],u[v++],u[v],u[v+1],e,i,r))return!0}else h+=io(d,f,u[v++],u[v++],u[v],u[v+1],i,r)||0;d=u[v++],f=u[v++];break;case Kr.A:var _=u[v++],x=u[v++],b=u[v++],w=u[v++],S=u[v++],C=u[v++];v+=1;var M=!!(1-u[v++]);o=Math.cos(S)*b+_,a=Math.sin(S)*w+x,y?(p=o,g=a):h+=$r(d,f,o,a,i,r);var T=(i-_)*w/b+_;if(n){if(Zr(_,x,w,S,S+C,M,e,T,r))return!0}else h+=ro(_,x,w,S,S+C,M,T,r);d=Math.cos(S+C)*b+_,f=Math.sin(S+C)*w+x;break;case Kr.R:if(p=d=u[v++],g=f=u[v++],o=p+u[v++],a=g+u[v++],n){if(Wr(p,g,o,g,e,i,r)||Wr(o,g,o,a,e,i,r)||Wr(o,a,p,a,e,i,r)||Wr(p,a,p,g,e,i,r))return!0}else h+=$r(o,g,o,a,i,r),h+=$r(p,a,p,g,i,r);break;case Kr.Z:if(n){if(Wr(d,f,p,g,e,i,r))return!0}else h+=$r(d,f,p,g,i,r);d=p,f=g}}return n||(s=f,l=g,Math.abs(s-l)<1e-4)||(h+=$r(d,f,p,g,i,r)||0),0!==h}var ao=j({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},nr),so={style:j({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ir.style)},lo=Tn.concat(["invisible","culling","z","z2","zlevel","parent"]),uo=function(t){function e(e){return t.call(this,e)||this}var n;return qt(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<lo.length;++s)r[lo[s]]=this[lo[s]];r.__dirty|=1}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=J(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?U(this.style,a):this.useStyle(a):"shape"===o?U(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(rt(t)){var e=_i(t,0);return e>.5?Hi:e>.2?"#eee":Gi}if(t)return Gi}return Hi},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(rt(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==_i(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Gr(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||4&this.__dirty)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return oo(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return oo(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:U(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(t){return kt(ao,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=U({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=U({},i.shape),U(s,n.shape)):(s=U({},r?this.shape:i.shape),U(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=U({},this.shape);for(var u={},c=J(s),h=0;h<c.length;h++){var d=c[h];"object"==typeof s[d]?this.shape[d]=s[d]:u[d]=s[d]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return so},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var i=e.call(this,n)||this;return t.init&&t.init.call(i,n),i}return qt(n,e),n.prototype.getDefaultStyle=function(){return G(t.style)},n.prototype.getDefaultShape=function(){return G(t.shape)},n}(e);for(var i in t)"function"==typeof t[i]&&(n.prototype[i]=t[i]);return n},e.initDefaultProps=((n=e.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=7)),e}(ur);const co=uo;var ho=j({strokeFirst:!0,font:M,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},ao),fo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qt(e,t),e.prototype.hasStroke=function(){return sn(this.style)},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return kt(ho,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t,e,n;return this._rect||(this._rect=(e=on((t=this.style).text),an(t,Ee(Ae(n=t.font),e),Ve(n),null))),this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(ur);fo.prototype.type="tspan";const po=fo;var go=j({x:0,y:0},nr),vo={style:j({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ir.style)},mo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qt(e,t),e.prototype.createStyle=function(t){return kt(go,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return vo},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Re(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(ur);mo.prototype.type="image";const yo=mo;var _o=Math.round;function xo(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(_o(2*i)===_o(2*r)&&(t.x1=t.x2=wo(i,s,!0)),_o(2*o)===_o(2*a)&&(t.y1=t.y2=wo(o,s,!0)),t):t}}function bo(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=wo(i,s,!0),t.y=wo(r,s,!0),t.width=Math.max(wo(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(wo(r+a,s,!1)-t.y,0===a?0:1),t):t}}function wo(t,e,n){if(!e)return t;var i=_o(2*t);return(i+_o(e))%2==0?i/2:(i+(n?1:-1))/2}var So=function(){this.x=0,this.y=0,this.width=0,this.height=0},Co={},Mo=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultShape=function(){return new So},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=bo(Co,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>c&&(i*=c/(a=i+r),r*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(co);Mo.prototype.type="rect";const To=Mo;var ko={fill:"#000"},Io={},Do={style:j({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},ir.style)},Ro=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=ko,n.attr(e),n}return qt(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,Eo(t=this.style),Z(t.rich,Eo),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Re(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||ko},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return U(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,e){for(var n=J(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},U(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return Do},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||M,n=t.padding,i=this._defaultStyle,r=t.x||0,o=t.y||0,a=t.align||i.align||"left",s=t.verticalAlign||i.verticalAlign||"top";en(Io,i.overflowRect,r,o,a,s),r=Io.baseX,o=Io.baseY;var l=function(t,e,n,i){var r=on(t),o=e.overflow,a=e.padding,s=a?a[1]+a[3]:0,l=a?a[0]+a[2]:0,u=e.font,c="truncate"===o,h=Ve(u),d=pt(e.lineHeight,h),f="truncate"===e.lineOverflow,p=!1,g=e.width;null==g&&null!=n&&(g=n-s);var v,m=e.height;null==m&&null!=i&&(m=i-l);var y=(v=null==g||"break"!==o&&"breakAll"!==o?r?r.split("\n"):[]:r?tn(r,e.font,g,"breakAll"===o,0).lines:[]).length*d;if(null==m&&(m=y),y>m&&f){var _=Math.floor(m/d);p=p||v.length>_,y=(v=v.slice(0,_)).length*d}if(r&&c&&null!=g)for(var x=je(g,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},w=0;w<v.length;w++)Xe(b,v[w],x),v[w]=b.textLine,p=p||b.isTruncated;var S=m,C=0,M=Ae(u);for(w=0;w<v.length;w++)C=Math.max(Ee(M,v[w]),C);null==g&&(g=C);var T=g;return{lines:v,height:m,outerWidth:T+=s,outerHeight:S+=l,lineHeight:d,calculatedLineHeight:h,contentWidth:C,contentHeight:y,width:g,isTruncated:p}}(No(t),t,Io.outerWidth,Io.outerHeight),u=Vo(t),c=!!t.backgroundColor,h=l.outerHeight,d=l.outerWidth,f=l.lines,p=l.lineHeight;this.isTruncated=!!l.isTruncated;var g=r,v=Ne(o,l.contentHeight,s);if(u||n){var m=Fe(r,d,a),y=Ne(o,h,s);u&&this._renderBackground(t,t,m,y,d,h)}v+=p/2,n&&(g=Fo(r,a,n),"top"===s?v+=n[0]:"bottom"===s&&(v-=n[2]));for(var _=0,x=!1,b=!1,w=(zo("fill"in t?t.fill:(b=!0,i.fill))),S=(Bo("stroke"in t?t.stroke:c||i.autoStroke&&!b?null:(_=2,x=!0,i.stroke))),C=t.textShadowBlur>0,T=0;T<f.length;T++){var k=this._getOrCreateChild(po),I=k.createStyle();k.useStyle(I),I.text=f[T],I.x=g,I.y=v,a&&(I.textAlign=a),I.textBaseline="middle",I.opacity=t.opacity,I.strokeFirst=!0,C&&(I.shadowBlur=t.textShadowBlur||0,I.shadowColor=t.textShadowColor||"transparent",I.shadowOffsetX=t.textShadowOffsetX||0,I.shadowOffsetY=t.textShadowOffsetY||0),I.stroke=S,I.fill=w,S&&(I.lineWidth=t.lineWidth||_,I.lineDash=t.lineDash,I.lineDashOffset=t.lineDashOffset||0),I.font=e,Oo(I,t),v+=p,k.setBoundingRect(an(I,l.contentWidth,l.calculatedLineHeight,x?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,e=this._defaultStyle,n=t.align||e.align,i=t.verticalAlign||e.verticalAlign,r=t.x||0,o=t.y||0;en(Io,e.overflowRect,r,o,n,i),r=Io.baseX,o=Io.baseY;var a=function(t,e,n,i,r){var o=new $e,a=on(t);if(!a)return o;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,c=e.width;null==c&&null!=n&&(c=n-l);var h=e.height;null==h&&null!=i&&(h=i-u);for(var d,f=e.overflow,p="break"!==f&&"breakAll"!==f||null==c?null:{width:c,accumWidth:0,breakAll:"breakAll"===f},g=We.lastIndex=0;null!=(d=We.exec(a));){var v=d.index;v>g&&Ke(o,a.substring(g,v),e,p),Ke(o,d[2],e,p,d[1]),g=We.lastIndex}g<a.length&&Ke(o,a.substring(g,a.length),e,p);var m=[],y=0,_=0,x="truncate"===f,b="truncate"===e.lineOverflow,w={};function S(t,e,n){t.width=e,t.lineHeight=n,y+=n,_=Math.max(_,e)}t:for(var C=0;C<o.lines.length;C++){for(var M=o.lines[C],T=0,k=0,I=0;I<M.tokens.length;I++){var D=(V=M.tokens[I]).styleName&&e.rich[V.styleName]||{},R=V.textPadding=D.padding,A=R?R[1]+R[3]:0,P=V.font=D.font||e.font;V.contentHeight=Ve(P);var L=pt(D.height,V.contentHeight);if(V.innerHeight=L,R&&(L+=R[0]+R[2]),V.height=L,V.lineHeight=gt(D.lineHeight,e.lineHeight,L),V.align=D&&D.align||r,V.verticalAlign=D&&D.verticalAlign||"middle",b&&null!=h&&y+V.lineHeight>h){var O=o.lines.length;I>0?(M.tokens=M.tokens.slice(0,I),S(M,k,T),o.lines=o.lines.slice(0,C+1)):o.lines=o.lines.slice(0,C),o.isTruncated=o.isTruncated||o.lines.length<O;break t}var E=D.width,B=null==E||"auto"===E;if("string"==typeof E&&"%"===E.charAt(E.length-1))V.percentWidth=E,m.push(V),V.contentWidth=Ee(Ae(P),V.text);else{if(B){var z=D.backgroundColor,F=z&&z.image;F&&ie(F=te(F))&&(V.width=Math.max(V.width,F.width*L/F.height))}var N=x&&null!=c?c-k:null;null!=N&&N<V.width?!B||N<A?(V.text="",V.width=V.contentWidth=0):(Ue(w,V.text,N-A,P,e.ellipsis,{minChar:e.truncateMinChar}),V.text=w.text,o.isTruncated=o.isTruncated||w.isTruncated,V.width=V.contentWidth=Ee(Ae(P),V.text)):V.contentWidth=Ee(Ae(P),V.text)}V.width+=A,k+=V.width,D&&(T=Math.max(T,V.lineHeight))}S(M,k,T)}for(o.outerWidth=o.width=pt(c,_),o.outerHeight=o.height=pt(h,y),o.contentHeight=y,o.contentWidth=_,o.outerWidth+=l,o.outerHeight+=u,C=0;C<m.length;C++){var V,H=(V=m[C]).percentWidth;V.width=parseInt(H,10)/100*o.width}return o}(No(t),t,Io.outerWidth,Io.outerHeight,n),s=a.width,l=a.outerWidth,u=a.outerHeight,c=t.padding;this.isTruncated=!!a.isTruncated;var h=Fe(r,l,n),d=Ne(o,u,i),f=h,p=d;c&&(f+=c[3],p+=c[0]);var g=f+s;Vo(t)&&this._renderBackground(t,t,h,d,l,u);for(var v=!!t.backgroundColor,m=0;m<a.lines.length;m++){for(var y=a.lines[m],_=y.tokens,x=_.length,b=y.lineHeight,w=y.width,S=0,C=f,M=g,T=x-1,k=void 0;S<x&&(!(k=_[S]).align||"left"===k.align);)this._placeToken(k,t,b,p,C,"left",v),w-=k.width,C+=k.width,S++;for(;T>=0&&"right"===(k=_[T]).align;)this._placeToken(k,t,b,p,M,"right",v),w-=k.width,M-=k.width,T--;for(C+=(s-(C-f)-(g-M)-w)/2;S<=T;)k=_[S],this._placeToken(k,t,b,p,C+k.width/2,"center",v),C+=k.width,S++;p+=b}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&Vo(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,h=t.textPadding;h&&(r=Fo(r,o,h),u-=t.height/2-h[0]-t.innerHeight/2);var d=this._getOrCreateChild(po),f=d.createStyle();d.useStyle(f);var p=this._defaultStyle,g=!1,v=0,m=!1,y=zo("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,p.fill)),_=Bo("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||p.autoStroke&&!g?null:(v=2,m=!0,p.stroke)),x=s.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=r,f.y=u,x&&(f.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,f.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=t.font||M,f.opacity=gt(s.opacity,e.opacity,1),Oo(f,s),_&&(f.lineWidth=gt(s.lineWidth,e.lineWidth,v),f.lineDash=pt(s.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=_),y&&(f.fill=y),d.setBoundingRect(an(f,t.contentWidth,t.contentHeight,m?0:null))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u=t.backgroundColor,c=t.borderWidth,h=t.borderColor,d=u&&u.image,f=u&&!d,p=t.borderRadius,g=this;if(f||t.lineHeight||c&&h){(a=this._getOrCreateChild(To)).useStyle(a.createStyle()),a.style.fill=null;var v=a.shape;v.x=n,v.y=i,v.width=r,v.height=o,v.r=p,a.dirtyShape()}if(f)(l=a.style).fill=u||null,l.fillOpacity=pt(t.fillOpacity,1);else if(d){(s=this._getOrCreateChild(yo)).onload=function(){g.dirtyStyle()};var m=s.style;m.image=u.image,m.x=n,m.y=i,m.width=r,m.height=o}c&&h&&((l=a.style).lineWidth=c,l.stroke=h,l.strokeOpacity=pt(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var y=(a||s).style;y.shadowBlur=t.shadowBlur||0,y.shadowColor=t.shadowColor||"transparent",y.shadowOffsetX=t.shadowOffsetX||0,y.shadowOffsetY=t.shadowOffsetY||0,y.opacity=gt(t.opacity,e.opacity,1)},e.makeFont=function(t){var e,n="";return function(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}(t)&&(n=[t.fontStyle,t.fontWeight,(e=t.fontSize,"string"!=typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?"12px":e+"px":e),t.fontFamily||"sans-serif"].join(" ")),n&&_t(n)||t.textFont||t.font},e}(ur),Ao={left:!0,right:1,center:1},Po={top:1,bottom:1,middle:1},Lo=["fontStyle","fontWeight","fontSize","fontFamily"];function Oo(t,e){for(var n=0;n<Lo.length;n++){var i=Lo[n],r=e[i];null!=r&&(t[i]=r)}}function Eo(t){if(t){t.font=Ro.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||Ao[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||Po[n]?n:"top",t.padding&&(t.padding=mt(t.padding))}}function Bo(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function zo(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Fo(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function No(t){var e=t.text;return null!=e&&(e+=""),e}function Vo(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const Ho=Ro;var Go=Math.min,Wo=Math.max,Uo=Math.abs;function jo(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}var Xo=function(t,e,n){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return Yo(t,e,n)};function Yo(t,e,n){return rt(t)?(i=t,i.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e+(n||0):parseFloat(t):null==t?NaN:+t;var i}function qo(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function Zo(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return function(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}(t)}function $o(t,e){var n=Math.max(Zo(t),Zo(e)),i=t+e;return n>20?i:qo(i,n)}function Ko(t){var e=2*Math.PI;return(t%e+e)%e}function Qo(t){return t>-1e-4&&t<1e-4}var Jo=/^(?:(\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 ta(t){if(t instanceof Date)return t;if(rt(t)){var e=Jo.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function ea(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function na(t,e){var n=ea(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function ia(t){var e=parseFloat(t);return e==t&&(0!==e||!rt(t)||t.indexOf("x")<=0)?e:NaN}function ra(){return Math.round(9*Math.random())}function oa(t,e){return 0===e?t:oa(e,t%e)}function aa(t,e){return null==t?e:null==e?t:t*e/oa(t,e)}function sa(t,e,n){return(e-t)*n+t}var la="series\0";function ua(t){return t instanceof Array?t:null==t?[]:[t]}function ca(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var ha=["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 da(t){return!st(t)||nt(t)||t instanceof Date?t:t.value}function fa(t){return st(t)&&!(t instanceof Array)}function pa(t,e,n){var i=va(e[t],null),r=va(n[t],null);return null!=i&&null!=r&&i===r}function ga(t){return va(t,"")}function va(t,e){return null==t?e:rt(t)?t:at(t)||ot(t)?t+"":e}function ma(t){var e=t.name;return!(!e||!e.indexOf(la))}function ya(t){return t&&null!=t.id&&0===ga(t.id).indexOf("\0_ec_\0")}function _a(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?nt(e.dataIndex)?$(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?nt(e.name)?$(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function xa(){var t="__ec_inner_"+ba++;return function(e){return e[t]||(e[t]={})}}var ba=ra();function wa(t,e,n){var i=Sa(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=n?n.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each(function(e,i){var r=Ma(t,i,e,{useDefault:s===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[i+"Models"]=r.models,a[i+"Model"]=r.models[0]}),a}function Sa(t,e){var n;if(rt(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var r=Tt(),o={},a=!1;return Z(n,function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();!s||!l||e&&e.includeMainTypes&&X(e.includeMainTypes,s)<0||(a=a||!!s,(r.get(s)||r.set(s,{}))[l]=t)}else o[n]=t}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var Ca={useDefault:!0,enableAll:!1,enableNone:!1};function Ma(t,e,n,i){i=i||Ca;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}if("none"===r||!1===r){if(i.enableNone)return s.models=[],s;r=-1}return"all"===r&&(r=i.enableAll?o=a=null:-1),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s}function Ta(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}!function(){function t(){}t.prototype.reset=function(t,e,n,i){return this._list=t,this._step=i=i||1,this._idx=e,this._end=null!=n?n:i>0?t.length:0,this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0)}}();var ka=xa(),Ia=1,Da={},Ra=xa(),Aa=xa(),Pa=["emphasis","blur","select"],La=["normal","emphasis","blur","select"],Oa="highlight",Ea="downplay",Ba="select",za="unselect",Fa="toggleSelect",Na="selectchanged";function Va(t){return null!=t&&"none"!==t}function Ha(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Ga(t){Ha(t,"emphasis",2)}function Wa(t){2===t.hoverState&&Ha(t,"normal",0)}function Ua(t){Ha(t,"blur",1)}function ja(t){1===t.hoverState&&Ha(t,"normal",0)}function Xa(t){t.selected=!0}function Ya(t){t.selected=!1}function qa(t,e,n){e(t,n)}function Za(t,e,n){qa(t,e,n),t.isGroup&&t.traverse(function(t){qa(t,e,n)})}function $a(t,e){switch(e){case"emphasis":t.hoverState=2;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=1;break;case"select":t.selected=!0}}function Ka(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,i){var r=n&&X(n,"select")>=0,o=!1;if(t instanceof co){var a=Ra(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(Va(s)||Va(l)){var u=(i=i||{}).style||{};"inherit"===u.fill?(o=!0,i=U({},i),(u=U({},u)).fill=s):!Va(u.fill)&&Va(s)?(o=!0,i=U({},i),(u=U({},u)).fill=bi(s)):!Va(u.stroke)&&Va(l)&&(o||(i=U({},i),u=U({},u)),u.stroke=bi(l)),i.style=u}}if(i&&null==i.z2){o||(i=U({},i));var c=t.z2EmphasisLift;i.z2=t.z2+(null!=c?c:10)}return i}(this,0,e,n);if("blur"===t)return function(t,e,n){var i=X(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=U({},n),a=U({opacity:i?r:.1*o.opacity},a),n.style=a),n}(this,t,n);if("select"===t)return function(t,e,n){if(n&&null==n.z2){n=U({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:9)}return n}(this,0,n)}return n}function Qa(t){t.stateProxy=Ka;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=Ka),n&&(n.stateProxy=Ka)}function Ja(t,e){!as(t,e)&&!t.__highByOuter&&Za(t,Ga)}function ts(t,e){!as(t,e)&&!t.__highByOuter&&Za(t,Wa)}function es(t,e){t.__highByOuter|=1<<(e||0),Za(t,Ga)}function ns(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Za(t,Wa)}function is(t){Za(t,ja)}function rs(t){Za(t,Xa)}function os(t){Za(t,Ya)}function as(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function ss(t){var e=t.getModel(),n=[],i=[];e.eachComponent(function(e,r){var o=Aa(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse(function(t){ja(t)}),a&&n.push(r)),o.isBlured=!1}),Z(i,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function ls(t,e,n,i){var r=i.getModel();function o(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&is(i)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=r.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries(function(t){var r=a===t,u=t.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!r||"coordinateSystem"===n&&!(u&&s?u===s:r)||"series"===e&&r)){if(i.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&r&&"self"===e||Ua(t)}),q(e))o(t.getData(),e);else if(st(e))for(var c=J(e),h=0;h<c.length;h++)o(t.getData(c[h]),e[c[h]]);l.push(t),Aa(t).isBlured=!0}}),r.eachComponent(function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,r)}})}}function us(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){Aa(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse(function(t){Ua(t)})}}}function cs(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;var o=i.getModel().getComponent(t,e);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===ka(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function hs(t){Z(t.getAllData(),function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(e,n){t.isSelected(n,i)?rs(e):os(e)})})}function ds(t){var e=[];return t.eachSeries(function(t){Z(t.getAllData(),function(n){n.data;var i=n.type,r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}})}),e}function fs(t,e,n,i){i?function(t){ms(t,!1)}(t):function(t,e,n){ms(t,!0),Za(t,Qa),function(t,e,n){var i=ka(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}(t,e,n)}(t,e,n)}var ps=["emphasis","blur","select"],gs={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function vs(t,e,n,i){n=n||"itemStyle";for(var r=0;r<ps.length;r++){var o=ps[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[gs[n]]()}}function ms(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function ys(t){return!(!t||!t.__highDownDispatcher)}function _s(t){var e=t.type;return e===Ba||e===za||e===Fa}function xs(t){var e=t.type;return e===Oa||e===Ea}var bs={};function ws(t,e,n){var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=it(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:i},u=0;u<Pa.length;u++){var c=Pa[u],h=e[c];l[c]=pt(r?r.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,i)}return l}function Ss(t,e,n,i){n=n||bs;for(var r=t instanceof Ho,o=!1,a=0;a<La.length;a++)if((d=e[La[a]])&&d.getShallow("show")){o=!0;break}var s=r?t:t.getTextContent();if(o){r||(s||(s=new Ho,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=ws(n,e),u=e.normal,c=!!u.getShallow("show"),h=Ms(u,i&&i.normal,n,!1,!r);for(h.text=l.normal,r||t.setTextConfig(Ts(u,n,!1)),a=0;a<Pa.length;a++){var d,f=Pa[a];if(d=e[f]){var p=s.ensureState(f),g=!!pt(d.getShallow("show"),c);g!==c&&(p.ignore=!g),p.style=Ms(d,i&&i[f],n,!0,!r),p.style.text=l[f],r||(t.ensureState(f).textConfig=Ts(d,n,!0))}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(h.x=s.style.x),null!=s.style.y&&(h.y=s.style.y),s.ignore=!c,s.useStyle(h),s.dirty(),n.enableTextSetter&&(As(s).setLabelText=function(t){var i=ws(n,e,t);!function(t,e){for(var n=0;n<Pa.length;n++){var i=Pa[n],r=e[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}(s,i)})}else s&&(s.ignore=!0);t.dirty()}function Cs(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<Pa.length;i++){var r=Pa[i];n[r]=t.getModel([r,e])}return n}function Ms(t,e,n,i,r){var o={};return function(t,e,n,i,r){n=n||bs;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||bs).rich;if(n){e=e||{};for(var i=J(n),r=0;r<i.length;r++)e[i[r]]=1}t=t.parentModel}return e}(e);if(l){o={};var u="richInheritPlainLabel",c=pt(e.get(u),a?a.get(u):void 0);for(var h in l)if(l.hasOwnProperty(h)){var d=e.getModel(["rich",h]);Rs(o[h]={},d,s,e,c,n,i,r,!1,!0)}}o&&(t.rich=o);var f=e.get("overflow");f&&(t.overflow=f);var p=e.get("lineOverflow");p&&(t.lineOverflow=p);var g=t,v=e.get("minMargin");if(null!=v)v=at(v)?v/2:0,g.margin=[v,v,v,v],g.__marginType=Ps.minMargin;else{var m=e.get("textMargin");null!=m&&(g.margin=mt(m),g.__marginType=Ps.textMargin)}Rs(t,e,s,null,null,n,i,r,!0,!1)}(o,t,n,i,r),e&&U(o,e),o}function Ts(t,e,n){e=e||{};var i,r={},o=t.getShallow("rotate"),a=pt(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return"outside"===(i=t.getShallow("position")||(n?null:"inside"))&&(i=e.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",null!=e.autoOverflowArea&&(r.autoOverflowArea=e.autoOverflowArea),null!=e.layoutRect&&(r.layoutRect=e.layoutRect),r}var ks=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Is=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Ds=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Rs(t,e,n,i,r,o,a,s,l,u){n=!a&&n||bs;var c=o&&o.inheritColor,h=e.getShallow("color"),d=e.getShallow("textBorderColor"),f=pt(e.getShallow("opacity"),n.opacity);"inherit"!==h&&"auto"!==h||(h=c||null),"inherit"!==d&&"auto"!==d||(d=c||null),s||(h=h||n.color,d=d||n.textBorderColor),null!=h&&(t.fill=h),null!=d&&(t.stroke=d);var p=pt(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(t.lineWidth=p);var g=pt(e.getShallow("textBorderType"),n.textBorderType);null!=g&&(t.lineDash=g);var v=pt(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=v&&(t.lineDashOffset=v),a||null!=f||u||(f=o&&o.defaultOpacity),null!=f&&(t.opacity=f),a||s||null==t.fill&&o.inheritColor&&(t.fill=o.inheritColor);for(var m=0;m<ks.length;m++){var y=ks[m];null!=(x=!1!==r&&i?gt(e.getShallow(y),i.getShallow(y),n[y]):pt(e.getShallow(y),n[y]))&&(t[y]=x)}for(m=0;m<Is.length;m++)y=Is[m],null!=(x=e.getShallow(y))&&(t[y]=x);if(null==t.verticalAlign){var _=e.getShallow("baseline");null!=_&&(t.verticalAlign=_)}if(!l||!o.disableBox){for(m=0;m<Ds.length;m++){var x;y=Ds[m],null!=(x=e.getShallow(y))&&(t[y]=x)}var b=e.getShallow("borderType");null!=b&&(t.borderDash=b),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!c||(t.backgroundColor=c),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!c||(t.borderColor=c)}}var As=xa(),Ps={minMargin:1,textMargin:2},Ls=["textStyle","color"],Os=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Es=new Ho;const Bs=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Ls):null)},t.prototype.getFont=function(){return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},n=(e=this.ecModel)&&e.getModel("textStyle"),_t([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "));var t,e,n},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Os.length;n++)e[Os[n]]=this.getShallow(Os[n]);return Es.useStyle(e),Es.update(),Es.getBoundingRect()},t}();var zs,Fs,Ns=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Vs=Ut(Ns),Hs=function(){function t(){}return t.prototype.getLineStyle=function(t){return Vs(this,t)},t}(),Gs=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Ws=Ut(Gs),Us=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return Ws(this,t,e)},t}(),js=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},t.prototype.mergeOption=function(t,e){W(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null;return new t(i?this._doGet(r):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(G(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!Ot.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();Ft(js),zs=js,Fs=["__\0is_clz",Vt++].join("_"),zs.prototype[Fs]=!0,zs.isInstance=function(t){return!(!t||!t[Fs])},Y(js,Hs),Y(js,Us),Y(js,Xt),Y(js,Bs);const Xs=js;function Ys(t){return null==t?0:t.length||1}function qs(t){return t}var Zs=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||qs,this._newKeyGetter=i||qs,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=i[o],s=n[a],l=Ys(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],c=Ys(l),h=Ys(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),i[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=Ys(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[i](t[o],o);if(r||(n[o]=a),e){var s=e[a],l=Ys(s);0===l?(e[a]=o,r&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}();const $s=Zs;var Ks=Tt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Qs="original",Js="arrayRows",tl="objectRows",el="keyedColumns",nl="typedArray",il="unknown",rl="column",ol="row",al=xa();function sl(t,e,n){var i={},r=ll(e);if(!r||!t)return i;var o,a,s=[],l=[],u=e.ecModel,c=al(u).datasetMap,h=r.uid+"_"+n.seriesLayoutBy;Z(t=t.slice(),function(e,n){var r=st(e)?e:t[n]={name:e};"ordinal"===r.type&&null==o&&(o=n,a=p(r)),i[r.name]=[]});var d=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function f(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function p(t){var e=t.dimsDef;return e?e.length:1}return Z(t,function(t,e){var n=t.name,r=p(t);if(null==o){var a=d.valueWayDim;f(i[n],a,r),f(l,a,r),d.valueWayDim+=r}else o===e?(f(i[n],0,r),f(s,0,r)):(a=d.categoryWayDim,f(i[n],a,r),f(l,a,r),d.categoryWayDim+=r)}),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function ll(t){if(!t.get("data",!0))return Ma(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Ca).models[0]}function ul(t,e){return function(t,e,n,i,r,o){var a,s,l;if(ut(t))return 3;if(i){var u=i[o];st(u)?(s=u.name,l=u.type):rt(u)&&(s=u)}if(null!=l)return"ordinal"===l?1:3;if(e===Js){var c=t;if(n===ol){for(var h=c[o],d=0;d<(h||[]).length&&d<5;d++)if(null!=(a=y(h[r+d])))return a}else for(d=0;d<c.length&&d<5;d++){var f=c[r+d];if(f&&null!=(a=y(f[o])))return a}}else if(e===tl){var p=t;if(!s)return 3;for(d=0;d<p.length&&d<5;d++)if((v=p[d])&&null!=(a=y(v[s])))return a}else if(e===el){if(!s)return 3;if(!(h=t[s])||ut(h))return 3;for(d=0;d<h.length&&d<5;d++)if(null!=(a=y(h[d])))return a}else if(e===Qs){var g=t;for(d=0;d<g.length&&d<5;d++){var v,m=da(v=g[d]);if(!nt(m))return 3;if(null!=(a=y(m[o])))return a}}function y(t){var e=rt(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?2:3:e&&"-"!==t?1:void 0}return 3}(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}var cl=function(t){this.data=t.data||(t.sourceFormat===el?{}:[]),this.sourceFormat=t.sourceFormat||il,this.seriesLayoutBy=t.seriesLayoutBy||rl,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&1===ul(this,n)&&(i.type="ordinal")}};function hl(t){return t instanceof cl}function dl(t,e,n){n=n||pl(t);var i=e.seriesLayoutBy,r=function(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:gl(r),startIndex:a,dimensionsDetectedCount:o};if(e===Js){var s=t;"auto"===i||null==i?vl(function(t){null!=t&&"-"!==t&&(rt(t)?null==a&&(a=1):a=0)},n,s,10):a=at(i)?i:i?1:0,r||1!==a||(r=[],vl(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===ol?s.length:s[0]?s[0].length:null}else if(e===tl)r||(r=function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e)return J(e)}(t));else if(e===el)r||(r=[],Z(t,function(t,e){r.push(e)}));else if(e===Qs){var l=da(t[0]);o=nt(l)&&l.length||1}return{startIndex:a,dimensionsDefine:gl(r),dimensionsDetectedCount:o}}(t,n,i,e.sourceHeader,e.dimensions);return new cl({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:G(e)})}function fl(t){return new cl({data:t,sourceFormat:ut(t)?nl:Qs})}function pl(t){var e=il;if(ut(t))e=nl;else if(nt(t)){0===t.length&&(e=Js);for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(nt(r)||ut(r)){e=Js;break}if(st(r)){e=tl;break}}}}else if(st(t))for(var o in t)if(Dt(t,o)&&q(t[o])){e=el;break}return e}function gl(t){if(t){var e=Tt();return $(t,function(t,n){var i={name:(t=st(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var r=e.get(i.name);return r?i.name+="-"+r.count++:e.set(i.name,{count:1}),i})}}function vl(t,e,n,i){if(e===ol)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else{var o=n[0]||[];for(r=0;r<o.length&&r<i;r++)t(o[r],r)}}function ml(t){var e=t.sourceFormat;return e===tl||e===el}var yl,_l,xl,bl,wl,Sl,Cl={},Ml="undefined"!=typeof console&&console.warn&&console.log;function Tl(t,e){!function(t,e,n){if(Ml){if(n){if(Cl[e])return;Cl[e]=!0}console[t]("[ECharts] "+e)}}("error",t,e)}function kl(t){throw new Error(t)}var Il=function(){function t(t,e){var n=hl(t)?t:fl(t);this._source=n;var i=this._data=n.data,r=n.sourceFormat;n.seriesLayoutBy,r===nl&&(this._offset=0,this._dimSize=e,this._data=i),Sl(this,i,n)}var e;return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=((e=t.prototype).pure=!1,void(e.persistent=!0)),t.internalField=function(){var t;Sl=function(t,r,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine;if(U(t,wl[Nl(a,s)]),a===nl)t.getItem=e,t.count=i,t.fillStorage=n;else{var c=Pl(a,s);t.getItem=tt(c,null,r,l,u);var h=El(a,s);t.count=tt(h,null,r,l,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},n=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],d=0;d<c;d++){var f=r[d*o+a];h[t+d]=f,f<l&&(l=f),f>u&&(u=f)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[Js+"_"+rl]={pure:!0,appendData:r},t[Js+"_"+ol]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[tl]={pure:!0,appendData:r},t[el]={pure:!0,appendData:function(t){var e=this._data;Z(t,function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])})}},t[Qs]={appendData:r},t[nl]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},wl=t}(),t}(),Dl=function(t){nt(t)||Tl("series.data or dataset.source must be an array.")},Rl=((yl={})[Js+"_"+rl]=Dl,yl[Js+"_"+ol]=Dl,yl[tl]=Dl,yl[el]=function(t,e){for(var n=0;n<e.length;n++)null==e[n].name&&Tl("dimension name must not be null/undefined.")},yl[Qs]=Dl,function(t,e,n,i){return t[i]}),Al=((_l={})[Js+"_"+rl]=function(t,e,n,i){return t[i+e]},_l[Js+"_"+ol]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},_l[tl]=Rl,_l[el]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=n[a].name,l=null!=s?t[s]:null;o[a]=l?l[i]:null}return o},_l[Qs]=Rl,_l);function Pl(t,e){return Al[Nl(t,e)]}var Ll=function(t,e,n){return t.length},Ol=((xl={})[Js+"_"+rl]=function(t,e,n){return Math.max(0,t.length-e)},xl[Js+"_"+ol]=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},xl[tl]=Ll,xl[el]=function(t,e,n){var i=n[0].name,r=null!=i?t[i]:null;return r?r.length:0},xl[Qs]=Ll,xl);function El(t,e){return Ol[Nl(t,e)]}var Bl=function(t,e,n){return t[e]},zl=((bl={})[Js]=Bl,bl[tl]=function(t,e,n){return t[n]},bl[el]=Bl,bl[Qs]=function(t,e,n){var i=da(t);return i instanceof Array?i[e]:i},bl[nl]=Bl,bl);function Fl(t){return zl[t]}function Nl(t,e){return t===Js?t+"_"+e:t}function Vl(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return Fl(o)(i,a,s)}var l=i;return o===Qs&&(l=da(i)),l}}}var Hl=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function Gl(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}const Wl=function(t){this.otherDims={},null!=t&&U(this,t)};function Ul(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||at(t)||null==t||"-"===t||(t=+ta(t)),null==t||""===t?NaN:Number(t))}Tt({number:function(t){return parseFloat(t)},time:function(t){return+ta(t)},trim:function(t){return rt(t)?_t(t):t}});var jl,Xl=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=at(t)?t:ia(t),i=at(e)?e:ia(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=rt(t),s=rt(e);a&&(n=s?t:0),s&&(i=a?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t}(),Yl="undefined",ql=typeof Uint32Array===Yl?Array:Uint32Array,Zl=typeof Uint16Array===Yl?Array:Uint16Array,$l=typeof Int32Array===Yl?Array:Int32Array,Kl=typeof Float64Array===Yl?Array:Float64Array,Ql={float:Kl,int:$l,ordinal:Array,number:Array,time:Kl};function Jl(t){return t>65535?ql:Zl}function tu(){return[1/0,-1/0]}function eu(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function nu(t,e,n,i,r){var o=Ql[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(i)}var iu=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Tt()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=jl[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[],ml(i),this._dimensions=$(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new Ql[e||"float"](this._rawCount),this._rawExtent[r]=[1/0,-1/0],r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=[1/0,-1/0]);for(var s=r[t],l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;l++)nu(n,l,(f=i[l]).type,s,!0);for(var u=[],c=a;c<s;c++)for(var h=c-a,d=0;d<r;d++){var f=i[d],p=jl.arrayRows.call(this,t[h]||u,f.property,h,d);n[d][c]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=$(o,function(t){return t.property}),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=tu()),nu(r,u,c.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var h=[],d=t;d<e;d++){h=i.getItem(d,h);for(var f=0;f<a;f++){var p=r[f],g=this._dimValueGetter(h,l[f],d,f);p[d]=g;var v=s[f];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;r=0;for(var o=i.length;r<o;r++)n.push(this.get(i[r],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var r=this.get(t,n);isNaN(r)||(e+=r)}return e},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)});var n=e.sort(function(t,e){return t-e}),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r<i;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else for(t=new(n=Jl(this._rawCount))(this.count()),r=0;r<t.length;r++)t[r]=r;return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(Jl(n._rawCount))(i),o=[],a=t.length,s=0,l=t[0],u=n._chunks,c=0;c<i;c++){var h=void 0,d=n.getRawIndex(c);if(0===a)h=e(c);else if(1===a)h=e(u[l][d],c);else{for(var f=0;f<a;f++)o[f]=u[t[f]][d];o[f]=c,h=e.apply(null,o)}h&&(r[s++]=d)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=J(t),r=i.length;if(!r)return this;var o=e.count(),a=new(Jl(e._rawCount))(o),s=0,l=i[0],u=t[l][0],c=t[l][1],h=e._chunks,d=!1;if(!e._indices){var f=0;if(1===r){for(var p=h[i[0]],g=0;g<n;g++)((_=p[g])>=u&&_<=c||isNaN(_))&&(a[s++]=f),f++;d=!0}else if(2===r){p=h[i[0]];var v=h[i[1]],m=t[i[1]][0],y=t[i[1]][1];for(g=0;g<n;g++){var _=p[g],x=v[g];(_>=u&&_<=c||isNaN(_))&&(x>=m&&x<=y||isNaN(x))&&(a[s++]=f),f++}d=!0}}if(!d)if(1===r)for(g=0;g<o;g++){var b=e.getRawIndex(g);((_=h[i[0]][b])>=u&&_<=c||isNaN(_))&&(a[s++]=b)}else for(g=0;g<o;g++){for(var w=!0,S=(b=e.getRawIndex(g),0);S<r;S++){var C=i[S];((_=h[C][b])<t[C][0]||_>t[C][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=tu();for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),d=0;d<o;d++)s[d]=i[e[d]][h];s[o]=c;var f=n&&n.apply(null,s);if(null!=f)for("object"!=typeof f&&(r[0]=f,f=r),u=0;u<f.length;u++){var p=e[u],g=f[u],v=l[p],m=i[p];m&&(m[h]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),c=this.getRawIndex(0),h=new(Jl(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));h[l++]=c;for(var d=1;d<s-1;d+=u){for(var f=Math.min(d+u,s-1),p=Math.min(d+2*u,s),g=(p+f)/2,v=0,m=f;m<p;m++){var y=a[M=this.getRawIndex(m)];isNaN(y)||(v+=y)}v/=p-f;var _=d,x=Math.min(d+u,s),b=d-1,w=a[c];n=-1,r=_;var S=-1,C=0;for(m=_;m<x;m++){var M;y=a[M=this.getRawIndex(m)],isNaN(y)?(C++,S<0&&(S=M)):(i=Math.abs((b-g)*(y-w)-(b-m)*(v-w)))>n&&(n=i,r=M)}C>0&&C<x-_&&(h[l++]=Math.min(S,r),r=Math.max(S,r)),h[l++]=r,c=r}return h[l++]=this.getRawIndex(s-1),o._count=l,o._indices=h,o.getRawIndex=this._getRawIdx,o},t.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),i=n._chunks,r=Math.floor(1/e),o=i[t],a=this.count(),s=new(Jl(this._rawCount))(2*Math.ceil(a/r)),l=0,u=0;u<a;u+=r){var c=u,h=o[this.getRawIndex(c)],d=u,f=o[this.getRawIndex(d)],p=r;u+r>a&&(p=a-u);for(var g=0;g<p;g++){var v=o[this.getRawIndex(u+g)];v<h&&(h=v,c=u+g),v>f&&(f=v,d=u+g)}var m=this.getRawIndex(c),y=this.getRawIndex(d);c<d?(s[l++]=m,s[l++]=y):(s[l++]=y,s[l++]=m)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=r._rawExtent[t]=[1/0,-1/0],h=new(Jl(this._rawCount))(Math.ceil(u/s)),d=0,f=0;f<u;f+=s){s>u-f&&(s=u-f,a.length=s);for(var p=0;p<s;p++){var g=this.getRawIndex(f+p);a[p]=l[g]}var v=n(a),m=this.getRawIndex(Math.min(f+i(a,v)||0,u-1));l[m]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),h[d++]=m}return r._count=d,r._indices=h,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var i,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();for(var o=(i=n)[0],a=i[1],s=0;s<r;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return i=[o,a],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},t.prototype.clone=function(e,n){var i=new t,r=this._chunks,o=e&&K(e,function(t,e){return t[e]=!0,t},{});if(o)for(var a=0;a<r.length;a++)i._chunks[a]=o[a]?eu(r[a]):r[a];else i._chunks=r;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=G(this._extent),t._rawExtent=G(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return Ul(t[i],this._dimensions[i])}jl={arrayRows:t,objectRows:function(t,e,n,i){return Ul(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return Ul(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}();const ru=iu;var ou=xa(),au={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},su=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=cu(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return pt(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=ml(this.source),n=!hu(t),i="",r=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=e?h.name:null,l=h.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=au[l]||"f",u&&(i+=u.uid),i+="$"}var d=this.source;return{dimensions:r,hash:[d.seriesLayoutBy,d.startIndex,i].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function lu(t){return t instanceof su}function uu(t){for(var e=Tt(),n=0;n<(t||[]).length;n++){var i=t[n],r=st(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function cu(t){var e=ou(t);return e.dimNameMap||(e.dimNameMap=uu(t.dimensionsDefine))}function hu(t){return t>30}var du,fu,pu,gu,vu,mu,yu,_u=st,xu=$,bu="undefined"==typeof Int32Array?Array:Int32Array,wu=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Su=["_approximateExtent"],Cu=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i=!1;lu(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=rt(c)?new Wl({name:c}):c instanceof Wl?c:new Wl(c),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var f=h.otherDims=h.otherDims||{};o.push(d),r[d]=h,null!=l[d]&&(s=!0),h.createInvertedIndices&&(a[d]=[]);var p=u;at(h.storeDimIndex)&&(p=h.storeDimIndex),0===f.itemName&&(this._nameDimIdx=p),0===f.itemId&&(this._idDimIdx=p),i&&(h.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var g=this._dimIdxToName=Tt();Z(o,function(t){g.set(r[t].storeDimIndex,t)})}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var i=this._schema.getSourceDimension(e);return i?i.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(at(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var i,r=this;if(t instanceof ru&&(i=t),!i){var o=this.dimensions,a=hl(t)||q(t)?new Il(t,o.length):t;i=new ru;var s=xu(o,function(t){return{type:r._dimInfos[t].type,property:t}});i.initData(a,s,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=function(t,e){var n={},i=n.encode={},r=Tt(),o=[],a=[],s={};Z(t.dimensions,function(e){var n,l=t.getDimensionInfo(e),u=l.coordDim;if(u){var c=l.coordDimIndex;Gl(i,u)[c]=e,l.isExtraCoord||(r.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=e),Gl(s,u)[c]=t.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(e)}Ks.each(function(t,e){var n=Gl(i,e),r=l.otherDims[e];null!=r&&!1!==r&&(n[r]=l.name)})});var l=[],u={};r.each(function(t,e){var n=i[e];u[e]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=$(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=i.label;c&&c.length&&(o=c.slice());var h=i.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new Hl(s,e),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=e[s],o&&yu(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==nl&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if(n.getSource().sourceFormat===Qs&&!n.pure)for(var o=[],a=t;a<e;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&fa(s)&&(this.hasItemOption=!0),s){var l=s.name;null==i[a]&&null!=l&&(i[a]=va(l,null));var u=s.id;null==r[a]&&null!=u&&(r[a]=va(u,null))}}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)yu(this,a);du(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){_u(t)?U(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=pu(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return fu(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return nt(t)?i.getValues(xu(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n&&n[e];return null==i||isNaN(i)?-1:i},t.prototype.each=function(t,e,n){it(t)&&(n=e,e=t,t=[]);var i=n||this,r=xu(gu(t),this._getStoreDimIndex,this);this._store.each(r,i?tt(e,i):e)},t.prototype.filterSelf=function(t,e,n){it(t)&&(n=e,e=t,t=[]);var i=n||this,r=xu(gu(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?tt(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=J(t),r=[];return Z(i,function(i){var o=e._getStoreDimIndex(i);n[o]=t[i],r.push(o)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){it(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=xu(gu(t),this._getStoreDimIndex,this),a=mu(this);return a._store=this._store.map(o,r?tt(e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=n||i||this,o=xu(gu(t),this._getStoreDimIndex,this);this._store.modify(o,r?tt(e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=mu(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.minmaxDownSample=function(t,e){var n=mu(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},t.prototype.lttbDownSample=function(t,e){var n=mu(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Xs(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new $s(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return fu(t,e)},function(t){return fu(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},_u(t)?U(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(nt(r=this.getVisual(e))?r=r.slice():_u(r)&&(r=U({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,_u(e)?U(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){_u(t)?U(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?U(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){!function(t,e,n,i){if(i){var r=ka(i);r.dataIndex=n,r.dataType=e,r.seriesIndex=t,r.ssrType="chart","group"===i.type&&i.traverse(function(i){var r=ka(i);r.seriesIndex=t,r.dataIndex=n,r.dataType=e,r.ssrType="chart"})}}(this.hostModel&&this.hostModel.seriesIndex,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){Z(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:xu(this.dimensions,this._getDimInfo,this),this.hostModel)),vu(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];it(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(vt(arguments)))})},t.internalField=(du=function(t){var e=t._invertedIndicesMap;Z(e,function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new bu(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}})},pu=function(t,e,n){return va(t._getCategory(e,n),null)},fu=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=pu(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},gu=function(t){return nt(t)||(t=null!=t?[t]:[]),t},mu=function(e){var n=new t(e._schema?e._schema:xu(e.dimensions,e._getDimInfo,e),e.hostModel);return vu(n,e),n},vu=function(t,e){Z(wu.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,Z(Su,function(n){t[n]=G(e[n])}),t._calculationInfo=U({},e._calculationInfo)},void(yu=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=r&&(n[e]=a=pu(t,r,e)),null==s&&null!=o&&(i[e]=s=pu(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[e]=s}})),t}();const Mu=Cu;function Tu(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}var ku={},Iu={},Du=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(t,e){function n(n,i){var r=[];return Z(n,function(n,i){var o=n.create(t,e);r=r.concat(o||[])}),r}this._nonSeriesBoxMasterList=n(ku),this._normalMasterList=n(Iu)},t.prototype.update=function(t,e){Z(this._normalMasterList,function(n){n.update&&n.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(t,e){"matrix"!==t&&"calendar"!==t?Iu[t]=e:ku[t]=e},t.get=function(t){return Iu[t]||ku[t]},t}(),Ru=Tt();const Au=Du;var Pu=function(t){this.coordSysDims=[],this.axisMap=Tt(),this.categoryAxisMap=Tt(),this.coordSysName=t},Lu={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",Ca).models[0],o=t.getReferringComponents("yAxis",Ca).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),Ou(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),Ou(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",Ca).models[0];e.coordSysDims=["single"],n.set("single",r),Ou(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",Ca).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Ou(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),Ou(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();Z(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),Ou(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})},matrix:function(t,e,n,i){var r=t.getReferringComponents("matrix",Ca).models[0];e.coordSysDims=["x","y"];var o=r.getDimensionModel("x"),a=r.getDimensionModel("y");n.set("x",o),n.set("y",a),i.set("x",o),i.set("y",a)}};function Ou(t){return"category"===t.get("type")}function Eu(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}const Bu=function(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=fl(t)):o=(i=r.getSource()).sourceFormat===Qs;var a=function(t){var e=t.get("coordinateSystem"),n=new Pu(e),i=Lu[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,i=t.get("coordinateSystem"),r=Au.get(i);return e&&e.coordSysDims&&(n=$(e.coordSysDims,function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=function(t){return"category"===t?"ordinal":"time"===t?"time":"float"}(r)}return n})),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,u=it(l)?l:l?et(sl,s,e):null,c=function(t,e){hl(t)||(t=fl(t));var n=(e=e||{}).coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],r=Tt(),o=[],a=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return Z(e,function(t){var e;st(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))}),r}(t,n,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&hu(a),l=i===t.dimensionsDefine,u=l?cu(t):uu(i),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=Tt(c),d=new $l(a),f=0;f<d.length;f++)d[f]=-1;function p(t){var e=d[t];if(e<0){var n=i[t],r=st(n)?n:{name:n},a=new Wl,s=r.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=r.type&&(a.type=r.type),null!=r.displayName&&(a.displayName=r.displayName);var l=o.length;return d[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(f=0;f<a;f++)p(f);h.each(function(t,e){var n=ua(t).slice();if(1===n.length&&!rt(n[0])&&n[0]<0)h.set(e,!1);else{var i=h.set(e,[]);Z(n,function(t,n){var r=rt(t)?u.get(t):t;null!=r&&r<a&&(i[n]=r,v(p(r),e,n))})}});var g=0;function v(t,e,n){null!=Ks.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,r.set(e,!0))}Z(n,function(t){var e,n,i,r;if(rt(t))e=t,r={};else{e=(r=t).name;var o=r.ordinalMeta;r.ordinalMeta=null,(r=U({},r)).ordinalMeta=o,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=h.get(e);if(!1!==s){if(!(s=ua(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;g<a&&null!=p(g).coordDim;)g++;g<a&&s.push(g++)}Z(s,function(t,o){var a=p(t);if(l&&null!=r.type&&(a.type=r.type),v(j(a,r),e,o),null==a.name&&n){var s=n[o];!st(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}i&&j(a.otherDims,i)})}});var m=e.generateCoord,y=e.generateCoordCount,_=null!=y;y=m?y||1:0;var x=m||"value";function b(t){null==t.name&&(t.name=t.coordDim)}if(s)Z(o,function(t){b(t)}),o.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var w=0;w<a;w++){var S=p(w);null==S.coordDim&&(S.coordDim=Tu(x,r,_),S.coordDimIndex=0,(!m||y<=0)&&(S.isExtraCoord=!0),y--),b(S),null!=S.type||1!==ul(t,w)&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(t){for(var e=Tt(),n=0;n<t.length;n++){var i=t[n],r=i.name,o=e.get(r)||0;o>0&&(i.name=r+(o-1)),o++,e.set(r,o)}}(o),new su({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}(i,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),h=function(t,e,n){var i,r;return n&&Z(t,function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)}),r||null==i||(t[i].otherDims.itemName=0),i}(c.dimensions,n.createInvertedIndices,a),d=o?null:r.getSharedDataStore(c),f=function(t,e,n){var i,r,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!lu(t.schema)}(e)?(r=e.schema,i=r.dimensions,o=e.store):i=e;var l,u,c,h,d=!(!t||!t.get("stack"));if(Z(i,function(t,e){rt(t)&&(i[e]=t={name:t}),d&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))}),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var f=u.coordDim,p=u.type,g=0;Z(i,function(t){t.coordDim===f&&g++});var v={name:c,coordDim:f,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:h,coordDim:h,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(h,p),m.storeDimIndex=o.ensureCalculationDimension(c,p)),r.appendCalculationDimension(v),r.appendCalculationDimension(m)):(i.push(v),i.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}(e,{schema:c,store:d}),p=new Mu(c,e);p.setCalculationInfo(f);var g=null!=h&&function(t){if(t.sourceFormat===Qs)return!nt(da(function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[])))}(i)?function(t,e,n,i){return i===h?n:this.defaultDimValueGetter(t,e,n,i)}:null;return p.hasItemOption=!1,p.initData(o?i:d,null,g),p};var zu=Math.round(10*Math.random());function Fu(t){return[t||"",zu++].join("_")}var Nu=Math.log(2);function Vu(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/Nu);return t[n][l]}for(var u=i|1<<n,c=n+1;i&1<<c;)c++;for(var h=0,d=0,f=0;d<s;d++){var p=1<<d;p&r||(h+=(f%2?-1:1)*t[n][d]*Vu(t,e-1,c,u,r|p,o),f++)}return o[a]=h,h}function Hu(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=Vu(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*Vu(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}var Gu="___zrEVENTSAVED",Wu=[];function Uu(t,e,n,i,r){if(e.getBoundingClientRect&&Ot.domSupported&&!ju(e)){var o=e[Gu]||(e[Gu]={}),a=function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return e.clearMarkers=function(){Z(n,function(t){t.parentNode&&t.parentNode.removeChild(t)})},n}(e,o),s=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,d=c.left,f=c.top;a.push(d,f),l=l&&o&&d===o[h]&&f===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?Hu(s,a):Hu(a,s))}(a,o,r);if(s)return s(t,n,i),!0}return!1}function ju(t){return"CANVAS"===t.nodeName.toUpperCase()}var Xu=/([&<>"'])/g,Yu={"&":"&","<":"<",">":">",'"':""","'":"'"};function qu(t){return null==t?"":(t+"").replace(Xu,function(t,e){return Yu[e]})}var Zu="ZH",$u="EN",Ku=$u,Qu={},Ju={},tc=Ot.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ku).toUpperCase().indexOf(Zu)>-1?Zu:Ku;function ec(t,e){t=t.toUpperCase(),Ju[t]=new Xs(e),Qu[t]=e}ec($u,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),ec(Zu,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});function nc(){return null}var ic=36e5,rc=864e5,oc=31536e6,ac={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},sc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},lc="{yyyy}-{MM}-{dd}",uc={year:"{yyyy}",month:"{yyyy}-{MM}",day:lc,hour:lc+" "+sc.hour,minute:lc+" "+sc.minute,second:lc+" "+sc.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},cc=["year","month","day","hour","minute","second","millisecond"],hc=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function dc(t,e){return"0000".substr(0,e-(t+="").length)+t}function fc(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function pc(t){return t===fc(t)}function gc(t,e,n,i){var r=ta(t),o=r[yc(n)](),a=r[_c(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[xc(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[bc(n)](),h=(c-1)%12+1,d=r[wc(n)](),f=r[Sc(n)](),p=r[Cc(n)](),g=c>=12?"pm":"am",v=g.toUpperCase(),m=i instanceof Xs?i:function(t){return Ju[t]}(i||tc)||Ju[Ku],y=m.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),b=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,v+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,dc(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,dc(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,dc(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,dc(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,dc(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,dc(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,dc(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,dc(p,3)).replace(/{S}/g,p+"")}function vc(t,e){var n=ta(t),i=n[_c(e)]()+1,r=n[xc(e)](),o=n[bc(e)](),a=n[wc(e)](),s=n[Sc(e)](),l=0===n[Cc(e)](),u=l&&0===s,c=u&&0===a,h=c&&0===o,d=h&&1===r;return d&&1===i?"year":d?"month":h?"day":c?"hour":u?"minute":l?"second":"millisecond"}function mc(t,e,n){switch(e){case"year":t[Tc(n)](0);case"month":t[kc(n)](1);case"day":t[Ic(n)](0);case"hour":t[Dc(n)](0);case"minute":t[Rc(n)](0);case"second":t[Ac(n)](0)}return t}function yc(t){return t?"getUTCFullYear":"getFullYear"}function _c(t){return t?"getUTCMonth":"getMonth"}function xc(t){return t?"getUTCDate":"getDate"}function bc(t){return t?"getUTCHours":"getHours"}function wc(t){return t?"getUTCMinutes":"getMinutes"}function Sc(t){return t?"getUTCSeconds":"getSeconds"}function Cc(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Mc(t){return t?"setUTCFullYear":"setFullYear"}function Tc(t){return t?"setUTCMonth":"setMonth"}function kc(t){return t?"setUTCDate":"setDate"}function Ic(t){return t?"setUTCHours":"setHours"}function Dc(t){return t?"setUTCMinutes":"setMinutes"}function Rc(t){return t?"setUTCSeconds":"setSeconds"}function Ac(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Pc(t){if(isNaN(ia(t)))return rt(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Lc(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Oc=mt;function Ec(t,e,n){function i(t){return t&&_t(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?ta(t):t;if(!isNaN(+s))return gc(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return ot(t)?i(t):at(t)&&r(t)?t+"":"-";var l=ia(t);return r(l)?Pc(l):ot(t)?i(t):"boolean"==typeof t?t+"":"-"}var Bc=["a","b","c","d","e","f","g"],zc=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Fc(t,e,n){nt(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=Bc[o];t=t.replace(zc(a),zc(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(zc(Bc[l],s),n?qu(u):u)}return t}function Nc(t,e){return e=e||"transparent",rt(t)?t:st(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Vc(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var Hc=Z,Gc=["left","right","top","bottom","width","height"],Wc=[["width","left","right"],["height","top","bottom"]];function Uc(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var c,h,d=l.getBoundingRect(),f=e.childAt(u+1),p=f&&f.getBoundingRect();if("horizontal"===t){var g=d.width+(p?-p.x+d.x:0);(c=o+g)>i||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var v=d.height+(p?-p.y+d.y:0);(h=a+v)>r||l.newline?(o+=s+n,a=0,h=v,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)})}function jc(t,e,n){n=Oc(n||0);var i=e.width,r=e.height,o=Xo(t.left,i),a=Xo(t.top,r),s=Xo(t.right,i),l=Xo(t.bottom,r),u=Xo(t.width,i),c=Xo(t.height,r),h=n[2]+n[0],d=n[1]+n[3],f=t.aspect;switch(isNaN(u)&&(u=i-s-d-o),isNaN(c)&&(c=r-l-h-a),null!=f&&(isNaN(u)&&isNaN(c)&&(f>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(o)&&(o=i-s-u-d),isNaN(a)&&(a=r-l-c-h),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-d}switch(t.top||t.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-h}o=o||0,a=a||0,isNaN(u)&&(u=i-d-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var p=new Re((e.x||0)+o+n[3],(e.y||0)+a+n[0],u,c);return p.margin=n,p}et(Uc,"vertical"),et(Uc,"horizontal");var Xc=1,Yc=2;function qc(t,e,n){var i,r,o,a,s=t.boxCoordinateSystem;if(s){var l=function(t){var e=t.getShallow("coord",!0),n=1;if(null==e){var i=Ru.get(t.type);i&&i.getCoord2&&(n=2,e=i.getCoord2(t))}return{coord:e,from:n}}(t),u=l.coord,c=l.from;if(s.dataToLayout){o=Xc,a=c;var h=s.dataToLayout(u);i=h.contentRect||h.rect}else n&&n.enableLayoutOnlyByCenter&&s.dataToPoint&&(o=Yc,a=c,r=s.dataToPoint(u))}return null==o&&(o=Xc),o===Xc&&(i||(i={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),r=[i.x+i.width/2,i.y+i.height/2]),{type:o,refContainer:i,refPoint:r,boxCoordFrom:a}}function Zc(t){var e=t.layoutMode||t.constructor.layoutMode;return st(e)?e:e?{type:e}:null}function $c(t,e,n){var i=n&&n.ignoreSize;!nt(i)&&(i=[i,i]);var r=a(Wc[0],0),o=a(Wc[1],1);function a(n,r){var o={},a=0,l={},u=0;if(Hc(n,function(e){l[e]=t[e]}),Hc(n,function(t){Dt(e,t)&&(o[t]=l[t]=e[t]),s(o,t)&&a++,s(l,t)&&u++}),i[r])return s(e,n[1])?l[n[2]]=null:s(e,n[2])&&(l[n[1]]=null),l;if(2!==u&&a){if(a>=2)return o;for(var c=0;c<n.length;c++){var h=n[c];if(!Dt(o,h)&&Dt(t,h)){o[h]=t[h];break}}return o}return l}function s(t,e){return null!=t[e]&&"auto"!==t[e]}function l(t,e,n){Hc(t,function(t){e[t]=n[t]})}l(Wc[0],t,r),l(Wc[1],t,o)}function Kc(t){return function(t,e){return e&&t&&Hc(Gc,function(n){Dt(e,n)&&(t[n]=e[n])}),t}({},t)}var Qc=xa(),Jc=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=Fu("ec_cpt_model"),r}var n;return w(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Zc(this),i=n?Kc(t):{};W(t,e.getTheme().get(this.mainType)),W(t,this.getDefaultOption()),n&&$c(t,i,n)},e.prototype.mergeOption=function(t,e){W(this.option,t,!0);var n=Zc(this);n&&$c(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!function(t){return!(!t||!t[Bt])}(t))return t.defaultOption;var e=Qc(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=W(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Ma(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){return e=!1,{left:(t=this).getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)};var t,e},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((n=e.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),e}(Xs);Nt(Jc,Xs),Wt(Jc),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=zt(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=zt(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(Jc),function(){function t(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}Jc.topologicalTravel=function(e,n,i,r){if(e.length){var o=function(e){var n={},i=[];return Z(e,function(r){var o,a,s=t(n,r),l=function(t,e){var n=[];return Z(t,function(t){X(e,t)>=0&&n.push(t)}),n}(s.originalDeps=(o=r,a=[],Z(Jc.getClassesByMainType(o),function(t){a=a.concat(t.dependencies||t.prototype.dependencies||[])}),a=$(a,function(t){return zt(t).main}),"dataset"!==o&&X(a,"dataset")<=0&&a.unshift("dataset"),a),e);s.entryCount=l.length,0===s.entryCount&&i.push(r),Z(l,function(e){X(s.predecessor,e)<0&&s.predecessor.push(e);var i=t(n,e);X(i.successor,e)<0&&i.successor.push(r)})}),{graph:n,noEntryList:i}}(n),a=o.graph,s=o.noEntryList,l={};for(Z(e,function(t){l[t]=!0});s.length;){var u=s.pop(),c=a[u],h=!!l[u];h&&(i.call(r,u,c.originalDeps.slice()),delete l[u]),Z(c.successor,h?f:d)}Z(l,function(){throw new Error("")})}function d(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function f(t){l[t]=!0,d(t)}}}();const th=Jc;var eh=xa(),nh=(xa(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var i=ua(this.get("color",!0)),r=this.get("colorLayer",!0);return function(t,e,n,i,r,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&i?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(i,a):n;if((c=c||n)&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}(this,eh,i,r,t,e,n)},t.prototype.clearColorPalette=function(){!function(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}(this,eh)},t}());var ih=/\{@(.+?)\}/g,rh=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,i,r,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);return o&&(s.value=o.interpolatedValue),null!=i&&nt(s.value)&&(s.value=s.value[i]),r||(r=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])),it(r)?(s.status=e,s.dimensionIndex=i,r(s)):rt(r)?Fc(r,s).replace(ih,function(e,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1));var s=Vl(a,t,r);if(o&&nt(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}):void 0},t.prototype.getRawValue=function(t,e){return Vl(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function oh(t){var e,n;return st(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function ah(t){return new sh(t)}var sh=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(o||d<f)){var p=this._progress;if(nt(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],d,f,l,u);else this._doProgress(p,d,f,l,u)}this._dueIndex=f;var v=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,i,r){lh.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:lh.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),nt(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),lh=function(){var t,e,n,i,r,o={reset:function(l,u,c,h){e=l,t=u,n=c,i=h,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*n+Math.ceil(e/r),a=e>=t?null:o<i?o:e;return e++,a}}(),uh=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Ul(t,e)},t}();function ch(t){return vh(t.sourceFormat)||kl(""),t.data}function hh(t){var e=t.sourceFormat,n=t.data;if(vh(e)||kl(""),e===Js){for(var i=[],r=0,o=n.length;r<o;r++)i.push(n[r].slice());return i}if(e===tl){for(i=[],r=0,o=n.length;r<o;r++)i.push(U({},n[r]));return i}}function dh(t,e,n){if(null!=n)return at(n)||!isNaN(n)&&!Dt(e,n)?t[n]:Dt(e,n)?e[n]:void 0}function fh(t){return G(t)}var ph=Tt();function gh(t,e,n,i){e.length||kl(""),st(t)||kl("");var r=t.type,o=ph.get(r);o||kl("");var a=$(e,function(t){return function(t,e){var n=new uh,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==rl&&kl("");var a=[],s={},l=t.dimensionsDefine;if(l)Z(l,function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};a.push(i),null!=n&&(Dt(s,n)&&kl(""),s[n]=i)});else for(var u=0;u<t.dimensionsDetectedCount;u++)a.push({index:u});var c=Pl(r,rl);e.__isBuiltIn&&(n.getRawDataItem=function(t){return c(i,o,a,t)},n.getRawData=tt(ch,null,t)),n.cloneRawData=tt(hh,null,t);var h=El(r,rl);n.count=tt(h,null,i,o,a);var d=Fl(r);n.retrieveValue=function(t,e){var n=c(i,o,a,t);return f(n,e)};var f=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=a[e];return n?d(t,e,n.name):void 0}};return n.getDimensionInfo=tt(dh,null,a,s),n.cloneAllDimensionInfo=tt(fh,null,a),n}(t,o)});return $(ua(o.transform({upstream:a[0],upstreamList:a,config:G(t.config)})),function(t,n){var i;st(t)||kl(""),t.data||kl(""),vh(pl(t.data))||kl("");var r=e[0];if(r&&0===n&&!t.dimensions){var o=r.startIndex;o&&(t.data=r.data.slice(0,o).concat(t.data)),i={seriesLayoutBy:rl,sourceHeader:o,dimensions:r.metaRawOption.dimensions}}else i={seriesLayoutBy:rl,sourceHeader:0,dimensions:t.dimensions};return dl(t.data,i,null)})}function vh(t){return t===Js||t===tl}var mh=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(yh(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=ut(a=o.get("data",!0))?nl:Qs,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},d=pt(c.seriesLayoutBy,h.seriesLayoutBy)||null,f=pt(c.sourceHeader,h.sourceHeader),p=pt(c.dimensions,h.dimensions);t=d!==h.seriesLayoutBy||!!f!=!!h.sourceHeader||p?[dl(a,{seriesLayoutBy:d,sourceHeader:f,dimensions:p},s)]:[]}else{var g=n;if(r){var v=this._applyTransform(i);t=v.sourceList,e=v.upstreamSignList}else t=[dl(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);null!=r&&1!==t.length&&_h("");var o,a=[],s=[];return Z(t,function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||_h(""),a.push(e),s.push(t._getVersionSign())}),i?e=function(t,e){var n=ua(t),i=n.length;i||kl("");for(var r=0,o=i;r<o;r++)e=gh(n[r],e),r!==o-1&&(e.length=Math.max(e.length,1));return e}(i,a,n.componentIndex):null!=r&&(e=[(o=a[0],new cl({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:G(o.dimensionsDefine),startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount}))]),{sourceList:e,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var i=this._storeList,r=i[0];r||(r=i[0]={});var o=r[n];if(!o){var a=this._getUpstreamSourceManagers()[0];yh(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new ru).initData(new Il(e,t.length),t),r[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(yh(t)){var e=ll(t);return e?[e.getSourceManager()]:[]}return $(function(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Ma(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Ca).models:[]}(t),function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(yh(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function yh(t){return"series"===t.mainType}function _h(t){throw new Error(t)}var xh={color:{},darkColor:{},size:{}},bh=xh.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};for(var wh in U(bh,{primary:bh.neutral80,secondary:bh.neutral70,tertiary:bh.neutral60,quaternary:bh.neutral50,disabled:bh.neutral20,border:bh.neutral30,borderTint:bh.neutral20,borderShade:bh.neutral40,background:bh.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:bh.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:bh.neutral70,axisLineTint:bh.neutral40,axisTick:bh.neutral70,axisTickMinor:bh.neutral60,axisLabel:bh.neutral70,axisSplitLine:bh.neutral15,axisMinorSplitLine:bh.neutral05}),bh)if(bh.hasOwnProperty(wh)){var Sh=bh[wh];"theme"===wh?xh.darkColor.theme=bh.theme.slice():"highlight"===wh?xh.darkColor.highlight="rgba(255,231,130,0.4)":0===wh.indexOf("accent")?xh.darkColor[wh]=mi(Sh,null,function(t){return.5*t},function(t){return Math.min(1,1.3-t)}):xh.darkColor[wh]=mi(Sh,null,function(t){return.9*t},function(t){return 1-Math.pow(t,1.5)})}xh.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const Ch=xh;function Mh(t){var e=t.lineHeight;return null==e?"line-height:1":"line-height:"+qu(e+"")+"px"}function Th(t,e){var n=t.color||Ch.color.tertiary,i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||Ch.color.secondary,a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+qu(i+"")+"px;color:"+qu(n)+";font-weight:"+qu(r+""),valueStyle:"font-size:"+qu(a+"")+"px;color:"+qu(o)+";font-weight:"+qu(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var kh=[0,10,20,30],Ih=["","\n","\n\n","\n\n\n"];function Dh(t,e){return e.type=t,e}function Rh(t){return"section"===t.type}function Ah(t){return Rh(t)?Lh:Oh}function Ph(t){if(Rh(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return Z(t.blocks,function(t){var n=Ph(t);n>=e&&(e=n+ +(i&&(!n||Rh(t)&&!t.noHeader)))}),e}return 0}function Lh(t,e,n,i){var r,o=e.noHeader,a=(r=Ph(e),{html:kh[r],richText:Ih[r]}),s=[],l=e.blocks||[];yt(!l||nt(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Dt(c,u)){var h=new Xl(c[u],null);l.sort(function(t,e){return h.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===u&&l.reverse()}Z(l,function(n,r){var o=e.valueFormatter,l=Ah(n)(o?U(U({},t),{valueFormatter:o}):t,n,r>0?a.html:0,i);null!=l&&s.push(l)});var d="richText"===t.renderMode?s.join(a.richText):Bh(i,s.join(""),o?n:a.html);if(o)return d;var f=Ec(e.header,"ordinal",t.useUTC),p=Th(i,t.renderMode).nameStyle,g=Mh(i);return"richText"===t.renderMode?zh(t,f,p)+a.richText+d:Bh(i,'<div style="'+p+";"+g+';">'+qu(f)+"</div>"+d,n)}function Oh(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return $(t=nt(t)?t:[t],function(t,e){return Ec(t,nt(f)?f[e]:f,u)})};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||Ch.color.secondary,r),d=o?"":Ec(l,"ordinal",u),f=e.valueType,p=a?[]:c(e.value,e.dataIndex),g=!s||!o,v=!s&&o,m=Th(i,r),y=m.nameStyle,_=m.valueStyle;return"richText"===r?(s?"":h)+(o?"":zh(t,d,y))+(a?"":function(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(nt(e)?e.join(" "):e,o)}(t,p,g,v,_)):Bh(i,(s?"":h)+(o?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+qu(t)+"</span>"}(d,!s,y))+(a?"":function(t,e,n,i){return'<span style="'+(e?"float:right;margin-left:"+(n?"10px":"20px"):"")+";"+i+'">'+$(t=nt(t)?t:[t],function(t){return qu(t)}).join(" ")+"</span>"}(p,g,v,_)),n)}}function Eh(t,e,n,i,r,o){if(t)return Ah(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function Bh(t,e,n){return'<div style="margin: '+n+"px 0 0;"+Mh(t)+';">'+e+'<div style="clear:both"></div></div>'}function zh(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Fh(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var Nh=function(){function t(){this.richTextStyles={},this._nextStyleNameId=ra()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=function(t,e){var n=rt(t)?{color:t,extraCssText:e}:t||{},i=n.color,r=n.type;e=n.extraCssText;var o=n.renderMode||"html";return i?"html"===o?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+qu(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+qu(i)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}({color:e,type:t,renderMode:n,markerId:i});return rt(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};nt(e)?Z(e,function(t){return U(n,t)}):U(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();var Vh=xa();function Hh(t,e){return t.getName(e)||t.getId(e)}var Gh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}var n;return w(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=ah({count:Uh,reset:jh}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Vh(this).sourceManager=new mh(this)).prepareSource();var i=this.getInitialData(t,n);Yh(i,this),this.dataTask.context.data=i,Vh(this).dataBeforeProcessed=i,Wh(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Zc(this),i=n?Kc(t):{},r=this.subType;th.hasClass(r)&&(r+="Series"),W(t,e.getTheme().get(this.subType)),W(t,this.getDefaultOption()),ca(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&$c(t,i,n)},e.prototype.mergeOption=function(t,e){t=W(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Zc(this);n&&$c(this.option,t,n);var i=Vh(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);Yh(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,Vh(this).dataBeforeProcessed=r,Wh(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!ut(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&ca(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){this.getRawData().appendData(t.data)},e.prototype.getData=function(t){var e=Zh(this);if(e){var n=e.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n}return Vh(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=Zh(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}Vh(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return Tt(t)},e.prototype.getSourceManager=function(){return Vh(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Vh(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,e,n,i){var r=this.getData(),o=this.coordinateSystem,a=o&&o.getAxis(t);if(!o||!a)return[];var s=a.dataToCoord(n);null==i&&(i=1/0);var l=[],u=1/0,c=-1,h=0;return r.each(e,function(t,e){var n=a.dataToCoord(t),r=s-n,o=Math.abs(r);o<=i&&((o<u||o===u&&r>=0&&c<0)&&(u=o,c=r,h=0),r===c&&(l[h++]=e))}),l.length=h,l},e.prototype.formatTooltip=function(t,e,n){return function(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),d=nt(h),f=function(t,e){return Nc(t.getData().getItemVisual(e,"style")[t.visualDrawType])}(o,a);if(c>1||d&&!c){var p=function(t,e,n,i,r){var o=e.getData(),a=K(t,function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName},!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(Dh("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?Z(i,function(t){c(Vl(o,n,t),t)}):Z(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(h,o,a,u,f);e=p.inlineValues,n=p.inlineValueTypes,i=p.blocks,r=p.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=e=Vl(l,a,u[0]),n=g.type}else r=e=d?h[0]:h;var v=ma(o),m=v&&o.name||"",y=l.getName(a),_=s?m:y;return Dh("section",{header:m,noHeader:s||!v,sortParam:r,blocks:[Dh("nameValue",{markerType:"item",markerColor:f,name:_,noName:!_t(_),value:e,valueType:n,dataIndex:a})].concat(i||[])})}({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Ot.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=nh.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=Hh(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=J(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];r>=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[Hh(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){st(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l<a;l++){var u=e[l];s[h=Hh(t,u)]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||!0===o){var c=e[a-1],h=Hh(t,c);r.selectedMap=((n={})[h]=!0,n),this._selectedDataIndicesMap=((i={})[h]=t.getRawIndex(c),i)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)}),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return th.registerClass(t)},e.protoInitialize=((n=e.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),e}(th);function Wh(t){var e=t.name;ma(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return Z(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")}(t)||e)}function Uh(t){return t.model.getRawData().count()}function jh(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Xh}function Xh(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Yh(t,e){Z(function(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,et(qh,e))})}function qh(t,e){var n=Zh(t);return n&&n.setOutputEnd((e||this).count()),e}function Zh(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}Y(Gh,rh),Y(Gh,nh),Nt(Gh,th);const $h=Gh;var Kh={},Qh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Jh=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Qh},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=xo(Kh,e,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=e.x1,i=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,i),s<1&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),t.lineTo(r,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(co);Jh.prototype.type="line";const td=Jh;var ed=function(){this.cx=0,this.cy=0,this.r=0},nd=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultShape=function(){return new ed},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(co);nd.prototype.type="circle";const id=nd;var rd=Gr.CMD,od=[[],[],[]],ad=Math.sqrt,sd=Math.atan2,ld=Math.sqrt,ud=Math.sin,cd=Math.cos,hd=Math.PI;function dd(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function fd(t,e){return(t[0]*e[0]+t[1]*e[1])/(dd(t)*dd(e))}function pd(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(fd(t,e))}function gd(t,e,n,i,r,o,a,s,l,u,c){var h=l*(hd/180),d=cd(h)*(t-n)/2+ud(h)*(e-i)/2,f=-1*ud(h)*(t-n)/2+cd(h)*(e-i)/2,p=d*d/(a*a)+f*f/(s*s);p>1&&(a*=ld(p),s*=ld(p));var g=(r===o?-1:1)*ld((a*a*(s*s)-a*a*(f*f)-s*s*(d*d))/(a*a*(f*f)+s*s*(d*d)))||0,v=g*a*f/s,m=g*-s*d/a,y=(t+n)/2+cd(h)*v-ud(h)*m,_=(e+i)/2+ud(h)*v+cd(h)*m,x=pd([1,0],[(d-v)/a,(f-m)/s]),b=[(d-v)/a,(f-m)/s],w=[(-1*d-v)/a,(-1*f-m)/s],S=pd(b,w);if(fd(b,w)<=-1&&(S=hd),fd(b,w)>=1&&(S=0),S<0){var C=Math.round(S/hd*1e6)/1e6;S=2*hd+C%2*hd}c.addData(u,y,_,a,s,x,S,h,o)}var vd=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,md=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,yd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qt(e,t),e.prototype.applyTransform=function(t){},e}(co);function _d(t){return null!=t.setData}function xd(t,e){var n=function(t){var e=new Gr;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=Gr.CMD,l=t.match(vd);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),d=void 0,f=c.match(md)||[],p=f.length,g=0;g<p;g++)f[g]=parseFloat(f[g]);for(var v=0;v<p;){var m=void 0,y=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,C=i,M=r,T=void 0,k=void 0;switch(h){case"l":i+=f[v++],r+=f[v++],d=s.L,e.addData(d,i,r);break;case"L":i=f[v++],r=f[v++],d=s.L,e.addData(d,i,r);break;case"m":i+=f[v++],r+=f[v++],d=s.M,e.addData(d,i,r),o=i,a=r,h="l";break;case"M":i=f[v++],r=f[v++],d=s.M,e.addData(d,i,r),o=i,a=r,h="L";break;case"h":i+=f[v++],d=s.L,e.addData(d,i,r);break;case"H":i=f[v++],d=s.L,e.addData(d,i,r);break;case"v":r+=f[v++],d=s.L,e.addData(d,i,r);break;case"V":r=f[v++],d=s.L,e.addData(d,i,r);break;case"C":d=s.C,e.addData(d,f[v++],f[v++],f[v++],f[v++],f[v++],f[v++]),i=f[v-2],r=f[v-1];break;case"c":d=s.C,e.addData(d,f[v++]+i,f[v++]+r,f[v++]+i,f[v++]+r,f[v++]+i,f[v++]+r),i+=f[v-2],r+=f[v-1];break;case"S":m=i,y=r,T=e.len(),k=e.data,n===s.C&&(m+=i-k[T-4],y+=r-k[T-3]),d=s.C,C=f[v++],M=f[v++],i=f[v++],r=f[v++],e.addData(d,m,y,C,M,i,r);break;case"s":m=i,y=r,T=e.len(),k=e.data,n===s.C&&(m+=i-k[T-4],y+=r-k[T-3]),d=s.C,C=i+f[v++],M=r+f[v++],i+=f[v++],r+=f[v++],e.addData(d,m,y,C,M,i,r);break;case"Q":C=f[v++],M=f[v++],i=f[v++],r=f[v++],d=s.Q,e.addData(d,C,M,i,r);break;case"q":C=f[v++]+i,M=f[v++]+r,i+=f[v++],r+=f[v++],d=s.Q,e.addData(d,C,M,i,r);break;case"T":m=i,y=r,T=e.len(),k=e.data,n===s.Q&&(m+=i-k[T-4],y+=r-k[T-3]),i=f[v++],r=f[v++],d=s.Q,e.addData(d,m,y,i,r);break;case"t":m=i,y=r,T=e.len(),k=e.data,n===s.Q&&(m+=i-k[T-4],y+=r-k[T-3]),i+=f[v++],r+=f[v++],d=s.Q,e.addData(d,m,y,i,r);break;case"A":_=f[v++],x=f[v++],b=f[v++],w=f[v++],S=f[v++],gd(C=i,M=r,i=f[v++],r=f[v++],w,S,_,x,b,d=s.A,e);break;case"a":_=f[v++],x=f[v++],b=f[v++],w=f[v++],S=f[v++],gd(C=i,M=r,i+=f[v++],r+=f[v++],w,S,_,x,b,d=s.A,e)}}"z"!==h&&"Z"!==h||(d=s.Z,e.addData(d),i=o,r=a),n=d}return e.toStatic(),e}(t),i=U({},e);return i.buildPath=function(t){var e,i=_d(t);i&&t.canSave()?(t.appendPath(n),(e=t.getContext())&&t.rebuildPath(e,1)):(e=i?t.getContext():t)&&n.rebuildPath(e,1)},i.applyTransform=function(t){!function(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),c=rd.M,h=rd.C,d=rd.L,f=rd.R,p=rd.A,g=rd.Q;for(r=0,o=0;r<u;){switch(n=l[r++],o=r,i=0,n){case c:case d:i=1;break;case h:i=3;break;case g:i=2;break;case p:var v=e[4],m=e[5],y=ad(e[0]*e[0]+e[1]*e[1]),_=ad(e[2]*e[2]+e[3]*e[3]),x=sd(-e[1]/_,e[0]/y);l[r]*=y,l[r++]+=v,l[r]*=_,l[r++]+=m,l[r++]*=y,l[r++]*=_,l[r++]+=x,l[r++]+=x,o=r+=2;break;case f:s[0]=l[r++],s[1]=l[r++],vn(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],vn(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<i;a++){var b=od[a];b[0]=l[r++],b[1]=l[r++],vn(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}}(n,t),this.dirtyShape()},i}var bd=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return qt(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=X(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=X(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(e)},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(e)},e.prototype.getBoundingRect=function(t){for(var e=new Re(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(Re.applyTransform(e,s,l),(r=r||e.clone()).union(e)):(r=r||s.clone()).union(s)}}return r||e},e}(tr);bd.prototype.type="group";const wd=bd;var Sd=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Cd=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultShape=function(){return new Sd},e.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},e}(co);Cd.prototype.type="ellipse";const Md=Cd;var Td=Math.PI,kd=2*Td,Id=Math.sin,Dd=Math.cos,Rd=Math.acos,Ad=Math.atan2,Pd=Math.abs,Ld=Math.sqrt,Od=Math.max,Ed=Math.min,Bd=1e-4;function zd(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/Ld(s*s+l*l),c=u*l,h=-u*s,d=t+c,f=e+h,p=n+c,g=i+h,v=(d+p)/2,m=(f+g)/2,y=p-d,_=g-f,x=y*y+_*_,b=r-o,w=d*g-p*f,S=(_<0?-1:1)*Ld(Od(0,b*b*x-w*w)),C=(w*_-y*S)/x,M=(-w*y-_*S)/x,T=(w*_+y*S)/x,k=(-w*y+_*S)/x,I=C-v,D=M-m,R=T-v,A=k-m;return I*I+D*D>R*R+A*A&&(C=T,M=k),{cx:C,cy:M,x0:-c,y0:-h,x1:C*(r/b-1),y1:M*(r/b-1)}}var Fd=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},Nd=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultShape=function(){return new Fd},e.prototype.buildPath=function(t,e){!function(t,e){var n,i=Od(e.r,0),r=Od(e.r0||0,0),o=i>0;if(o||r>0){if(o||(i=r,r=0),r>i){var a=i;i=r,r=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=e.cx,c=e.cy,h=!!e.clockwise,d=Pd(l-s),f=d>kd&&d%kd;if(f>Bd&&(d=f),i>Bd)if(d>kd-Bd)t.moveTo(u+i*Dd(s),c+i*Id(s)),t.arc(u,c,i,s,l,!h),r>Bd&&(t.moveTo(u+r*Dd(l),c+r*Id(l)),t.arc(u,c,r,l,s,h));else{var p=void 0,g=void 0,v=void 0,m=void 0,y=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,C=void 0,M=void 0,T=void 0,k=void 0,I=void 0,D=void 0,R=i*Dd(s),A=i*Id(s),P=r*Dd(l),L=r*Id(l),O=d>Bd;if(O){var E=e.cornerRadius;E&&(n=function(t){var e;if(nt(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(E),p=n[0],g=n[1],v=n[2],m=n[3]);var B=Pd(i-r)/2;if(y=Ed(B,v),_=Ed(B,m),x=Ed(B,p),b=Ed(B,g),C=w=Od(y,_),M=S=Od(x,b),(w>Bd||S>Bd)&&(T=i*Dd(l),k=i*Id(l),I=r*Dd(s),D=r*Id(s),d<Td)){var z=function(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,c=a-r,h=s-o,d=h*l-c*u;if(!(d*d<Bd))return[t+(d=(c*(e-o)-h*(t-r))/d)*l,e+d*u]}(R,A,I,D,T,k,P,L);if(z){var F=R-z[0],N=A-z[1],V=T-z[0],H=k-z[1],G=1/Id(Rd((F*V+N*H)/(Ld(F*F+N*N)*Ld(V*V+H*H)))/2),W=Ld(z[0]*z[0]+z[1]*z[1]);C=Ed(w,(i-W)/(G+1)),M=Ed(S,(r-W)/(G-1))}}}if(O)if(C>Bd){var U=Ed(v,C),j=Ed(m,C),X=zd(I,D,R,A,i,U,h),Y=zd(T,k,P,L,i,j,h);t.moveTo(u+X.cx+X.x0,c+X.cy+X.y0),C<w&&U===j?t.arc(u+X.cx,c+X.cy,C,Ad(X.y0,X.x0),Ad(Y.y0,Y.x0),!h):(U>0&&t.arc(u+X.cx,c+X.cy,U,Ad(X.y0,X.x0),Ad(X.y1,X.x1),!h),t.arc(u,c,i,Ad(X.cy+X.y1,X.cx+X.x1),Ad(Y.cy+Y.y1,Y.cx+Y.x1),!h),j>0&&t.arc(u+Y.cx,c+Y.cy,j,Ad(Y.y1,Y.x1),Ad(Y.y0,Y.x0),!h))}else t.moveTo(u+R,c+A),t.arc(u,c,i,s,l,!h);else t.moveTo(u+R,c+A);r>Bd&&O?M>Bd?(U=Ed(p,M),X=zd(P,L,T,k,r,-(j=Ed(g,M)),h),Y=zd(R,A,I,D,r,-U,h),t.lineTo(u+X.cx+X.x0,c+X.cy+X.y0),M<S&&U===j?t.arc(u+X.cx,c+X.cy,M,Ad(X.y0,X.x0),Ad(Y.y0,Y.x0),!h):(j>0&&t.arc(u+X.cx,c+X.cy,j,Ad(X.y0,X.x0),Ad(X.y1,X.x1),!h),t.arc(u,c,r,Ad(X.cy+X.y1,X.cx+X.x1),Ad(Y.cy+Y.y1,Y.cx+Y.x1),h),U>0&&t.arc(u+Y.cx,c+Y.cy,U,Ad(Y.y1,Y.x1),Ad(Y.y0,Y.x0),!h))):(t.lineTo(u+P,c+L),t.arc(u,c,r,l,s,h)):t.lineTo(u+P,c+L)}else t.moveTo(u,c);t.closePath()}}}(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(co);Nd.prototype.type="sector";const Vd=Nd;var Hd=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Gd=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultShape=function(){return new Hd},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(co);Gd.prototype.type="ring";const Wd=Gd;function Ud(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=function(t,e,n,i){var r,o,a,s,l=[],u=[],c=[],h=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=t.length;d<f;d++)mn(a,a,t[d]),yn(s,s,t[d]);mn(a,a,i[0]),yn(s,s,i[1])}for(d=0,f=t.length;d<f;d++){var p=t[d];if(n)r=t[d?d-1:f-1],o=t[(d+1)%f];else{if(0===d||d===f-1){l.push(un(t[d]));continue}r=t[d-1],o=t[d+1]}hn(u,o,r),dn(u,u,e);var g=fn(p,r),v=fn(p,o),m=g+v;0!==m&&(g/=m,v/=m),dn(c,u,-g),dn(h,u,v);var y=cn([],p,c),_=cn([],p,h);i&&(yn(y,y,a),mn(y,y,s),yn(_,_,a),mn(_,_,s)),l.push(y),l.push(_)}return n&&l.push(l.shift()),l}(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(r[0][0],r[0][1]),s=1;for(var h=r.length;s<h;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}var jd=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Xd=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultShape=function(){return new jd},e.prototype.buildPath=function(t,e){Ud(t,e,!0)},e}(co);Xd.prototype.type="polygon";const Yd=Xd;var qd=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Zd=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new qd},e.prototype.buildPath=function(t,e){Ud(t,e,!1)},e}(co);Zd.prototype.type="polyline";const $d=Zd;var Kd=[],Qd=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Jd(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?Gn:Hn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Gn:Hn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?qn:Yn)(t.x1,t.cpx1,t.x2,e),(n?qn:Yn)(t.y1,t.cpy1,t.y2,e)]}var tf=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Qd},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,i),null==l||null==u?(c<1&&($n(n,a,r,c,Kd),a=Kd[1],r=Kd[2],$n(i,s,o,c,Kd),s=Kd[1],o=Kd[2]),t.quadraticCurveTo(a,s,r,o)):(c<1&&(jn(n,a,l,r,c,Kd),a=Kd[1],l=Kd[2],r=Kd[3],jn(i,s,u,o,c,Kd),s=Kd[1],u=Kd[2],o=Kd[3]),t.bezierCurveTo(a,s,l,u,r,o)))},e.prototype.pointAt=function(t){return Jd(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=Jd(this.shape,t,!0);return function(t,e){var n=function(t){return Math.sqrt(function(t){return t[0]*t[0]+t[1]*t[1]}(t))}(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}(e,e)},e}(co);tf.prototype.type="bezier-curve";const ef=tf;var nf=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},rf=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new nf},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},e}(co);rf.prototype.type="arc";const of=rf;const af=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return qt(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),co.prototype.getBoundingRect.call(this)},e}(co);var sf=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}();const lf=sf,uf=function(t){function e(e,n,i,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return qt(e,t),e}(lf),cf=function(t){function e(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return qt(e,t),e}(lf);var hf=Math.min,df=Math.max,ff=Math.abs,pf=[0,0],gf=[0,0],vf=De(),mf=vf.minTv,yf=vf.maxTv,_f=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new he;for(n=0;n<2;n++)this._axes[n]=new he;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),e)for(var l=0;l<4;l++)n[l].transform(e);for(he.sub(i[0],n[1],n[0]),he.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize(),l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e,n){var i=!0,r=!e;return e&&he.set(e,0,0),vf.reset(n,!r),!this._intersectCheckOneSide(this,t,r,1)&&(i=!1,r)||!this._intersectCheckOneSide(t,this,r,-1)&&(i=!1,r)||r||vf.negativeSize||he.copy(e,i?vf.useDir?vf.dirMinTv:mf:yf),i},t.prototype._intersectCheckOneSide=function(t,e,n,i){for(var r=!0,o=0;o<2;o++){var a=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,pf),t._getProjMinMaxOnAxis(o,e._corners,gf),vf.negativeSize||pf[1]<gf[0]||pf[0]>gf[1]){if(r=!1,vf.negativeSize||n)return r;var s=ff(gf[0]-pf[1]),l=ff(pf[0]-gf[1]);hf(s,l)>yf.len()&&(s<l?he.scale(yf,a,-s*i):he.scale(yf,a,l*i))}else n||(s=ff(gf[0]-pf[1]),l=ff(pf[0]-gf[1]),(vf.useDir||hf(s,l)<mf.len())&&((s<l||!vf.bidirectional)&&(he.scale(mf,a,s*i),vf.useDir&&vf.calcDirMTV()),(s>=l||!vf.bidirectional)&&(he.scale(mf,a,-l*i),vf.useDir&&vf.calcDirMTV())))}return r},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(i)+r[t];a=hf(u,a),s=df(u,s)}n[0]=a+vf.touchThreshold,n[1]=s-vf.touchThreshold,vf.negativeSize=n[1]<n[0]},t}();const xf=_f;var bf=[];const wf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return qt(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++)(e=this._displayables[t]).parent=this,e.update(),e.parent=null;for(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Re(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(bf)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(t,e))return!0;return!1},e}(ur);var Sf=xa();function Cf(t,e,n,i,r,o,a){var s,l=!1;it(r)?(a=o,o=r,r=null):st(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=function(t,e,n,i,r){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===t;if(e&&e.isAnimationEnabled()){var l=void 0,u=void 0,c=void 0;return i?(l=pt(i.duration,200),u=pt(i.easing,"cubicOut"),c=0):(l=e.getShallow(s?"animationDurationUpdate":"animationDuration"),u=e.getShallow(s?"animationEasingUpdate":"animationEasing"),c=e.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(c=o.delay)),it(c)&&(c=c(n,r)),it(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}(t,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(c&&c.duration>0){var h={duration:c.duration,delay:c.delay||0,easing:c.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,h):e.animateTo(n,h)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function Mf(t,e,n,i,r,o){Cf("update",t,e,n,i,r,o)}function Tf(t,e,n,i,r,o){Cf("enter",t,e,n,i,r,o)}function kf(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function If(t,e,n,i,r,o){kf(t)||Cf("leave",t,e,n,i,r,o)}function Df(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),If(t,{style:{opacity:0}},e,n,i)}function Rf(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||Df(t,e,n,i)}):Df(t,e,n,i)}var Af={},Pf=["x","y"],Lf=["width","height"];function Of(t){return co.extend(t)}var Ef=function(t,e){var n=xd(t,e);return function(t){function e(e){var i=t.call(this,e)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return qt(e,t),e}(yd)};function Bf(t,e){return Ef(t,e)}function zf(t,e){Af[t]=e}function Ff(t){if(Af.hasOwnProperty(t))return Af[t]}function Nf(t,e,n,i){var r=function(t,e){return new yd(xd(t,e))}(t,e);return n&&("center"===i&&(n=Hf(n,r.getBoundingRect())),Wf(r,n)),r}function Vf(t,e,n){var i=new yo({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(Hf(e,r))}}});return i}function Hf(t,e){var n,i=e.width/e.height,r=t.height*i;return n=r<=t.width?t.height:(r=t.width)/i,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-n/2,width:r,height:n}}var Gf=function(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}var a=new co(e);return a.createPathProxy(),a.buildPath=function(t){if(_d(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function Wf(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function Uf(t,e){return xo(t,t,{lineWidth:e}),t}function jf(t,e){return bo(t,t,e),t}var Xf=wo;function Yf(t,e){for(var n=re([]);t&&t!==e;)ae(n,t.getLocalTransform(),n),t=t.parent;return n}function qf(t,e,n){return e&&!q(e)&&(e=In.getLocalTransform(e)),n&&(e=ue([],e)),vn([],t,e)}function Zf(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Uo(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Uo(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=qf(o,e,n),Uo(o[0])>Uo(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function $f(t){return!t.isGroup}function Kf(t,e,n){if(t&&e){var i,r=(i={},t.traverse(function(t){$f(t)&&t.anid&&(i[t.anid]=t)}),i);e.traverse(function(t){if($f(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),Mf(t,i,n,ka(t).dataIndex)}}})}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=G(t.shape)),e}}function Qf(t,e){return $(t,function(t){var n=t[0];n=Wo(n,e.x),n=Go(n,e.x+e.width);var i=t[1];return i=Wo(i,e.y),[n,i=Go(i,e.y+e.height)]})}function Jf(t,e){var n=Wo(t.x,e.x),i=Go(t.x+t.width,e.x+e.width),r=Wo(t.y,e.y),o=Go(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function tp(t,e,n){var i=U({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),j(r,n),new yo(i)):Nf(t.replace("path://",""),i,n,"center")}function ep(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(np(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function np(t,e,n,i,r,o,a,s){var l,u=n-t,c=i-e,h=a-r,d=s-o,f=ip(h,d,u,c);if((l=f)<=1e-6&&l>=-1e-6)return!1;var p=t-r,g=e-o,v=ip(p,g,u,c)/f;if(v<0||v>1)return!1;var m=ip(p,g,h,d)/f;return!(m<0||m>1)}function ip(t,e,n,i){return t*i-n*e}function rp(t,e,n,i,r){return null==e||(at(e)?op[0]=op[1]=op[2]=op[3]=e:(op[0]=e[0],op[1]=e[1],op[2]=e[2],op[3]=e[3]),i&&(op[0]=Wo(0,op[0]),op[1]=Wo(0,op[1]),op[2]=Wo(0,op[2]),op[3]=Wo(0,op[3])),n&&(op[0]=-op[0],op[1]=-op[1],op[2]=-op[2],op[3]=-op[3]),ap(t,op,"x","width",3,1,r&&r[0]||0),ap(t,op,"y","height",0,2,r&&r[1]||0)),t}var op=[0,0,0,0];function ap(t,e,n,i,r,o,a){var s=e[o]+e[r],l=t[i];t[i]+=s,a=Wo(0,Go(a,l)),t[i]<a?(t[i]=a,t[n]+=e[r]>=0?-e[r]:e[o]>=0?l+e[o]:Uo(s)>1e-8?(l-a)*e[r]/s:0):t[n]-=e[r]}function sp(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=rt(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Z(J(l),function(t){Dt(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=ka(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:j({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function lp(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function up(t,e){if(t)if(nt(t))for(var n=0;n<t.length;n++)lp(t[n],e);else lp(t,e)}function cp(t){return!t||Uo(t[1])<hp&&Uo(t[2])<hp||Uo(t[0])<hp&&Uo(t[3])<hp}var hp=1e-5;function dp(t,e){return t?Re.copy(t,e):e.clone()}function fp(t,e){return e?oe(t||[1,0,0,1,0,0],e):void 0}function pp(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function gp(t){var e=-1/0,n=1/0;function i(t){if(t&&!t.isGroup){var e=t.currentStates;if(e.length)for(var n=0;n<e.length;n++)r(t.states[e[n]]);r(t)}}function r(t){if(t){var i=t.z2;i>e&&(e=i),i<n&&(n=i)}}return lp(t,function(t){i(t),i(t.getTextContent()),i(t.getTextGuideLine())}),n>e&&(n=e=0),{min:n,max:e}}function vp(t,e,n){mp(t,e,n,-1/0)}function mp(t,e,n,i){if(t.ignoreModelZ)return i;var r=t.getTextContent(),o=t.getTextGuideLine();if(t.isGroup)for(var a=t.childrenRef(),s=0;s<a.length;s++)i=Wo(mp(a[s],e,n,i),i);else t.z=e,t.zlevel=n,i=Wo(t.z2||0,i);if(r&&(r.z=e,r.zlevel=n,isFinite(i)&&(r.z2=i+2)),o){var l=t.textGuideLineConfig;o.z=e,o.zlevel=n,isFinite(i)&&(o.z2=i+(l&&l.showAbove?1:-1))}return i}zf("circle",id),zf("ellipse",Md),zf("sector",Vd),zf("ring",Wd),zf("polygon",Yd),zf("polyline",$d),zf("rect",To),zf("line",td),zf("bezierCurve",ef),zf("arc",of);var yp=co.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),_p=co.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),xp=co.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),f=.6*a,p=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*f,l+s+d*f,n,i-p,n,i),t.bezierCurveTo(n,i-p,n-c+h*f,l+s+d*f,n-c,l+s),t.closePath()}}),bp=co.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),wp={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},Sp={};Z({line:td,rect:To,roundRect:To,square:To,circle:id,diamond:_p,pin:xp,arrow:bp,triangle:yp},function(t,e){Sp[e]=new t});var Cp=co.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=Ge(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=Sp[i];r||(r=Sp[i="rect"]),wp[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function Mp(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||Ch.color.neutral00,n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function Tp(t,e,n,i,r,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?Vf(t.slice(8),new Re(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?Nf(t.slice(7),{},new Re(e,n,i,r),a?"center":"cover"):new Cp({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=l,s.setColor=Mp,o&&s.setColor(o),s}function kp(t,e){if(null!=t)return nt(t)||(t=[t,t]),[Xo(t[0],e[0])||0,Xo(pt(t[1],t[0]),e[1])||0]}const Ip=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return w(e,t),e.prototype.getInitialData=function(t){return Bu(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new wd,n=Tp("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*t.itemHeight,s=Tp(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill=Ch.color.neutral00,s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}($h);function Dp(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=Vl(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(Vl(t,e,n[a]));return o.join(" ")}}var Rp=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return w(e,t),e.prototype._createSymbol=function(t,e,n,i,r,o){this.removeAll();var a=Tp(t,-1,-1,2,2,null,o);a.attr({z2:pt(r,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),a.drift=Ap,this._symbolType=t,this.add(a)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){es(this.childAt(0))},e.prototype.downplay=function(){ns(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var o,a=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=e.getSymbolZ2(t,n),c=a!==this._symbolType,h=r&&r.disableAnimation;if(c){var d=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,t,n,l,u,d)}else{(p=this.childAt(0)).silent=!1;var f={scaleX:l[0]/2,scaleY:l[1]/2};h?p.attr(f):Mf(p,f,s,n),Sf(o=p).oldStyle=o.style}if(this._updateCommon(t,n,l,i,r),c){var p=this.childAt(0);h||(f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}},p.scaleX=p.scaleY=0,p.style.opacity=0,Tf(p,f,s,n))}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,u,c,h,d,f,p=this.childAt(0),g=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,h=i.labelStatesModels,d=i.hoverScale,f=i.cursorStyle,c=i.emphasisDisabled),!i||t.hasItemOption){var v=i&&i.itemModel?i.itemModel:t.getItemModel(e),m=v.getModel("emphasis");o=m.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=m.get("focus"),u=m.get("blurScope"),c=m.get("disabled"),h=Cs(v),d=m.getShallow("scale"),f=v.getShallow("cursor")}var y=t.getItemVisual(e,"symbolRotate");p.attr("rotation",(y||0)*Math.PI/180||0);var _=kp(t.getItemVisual(e,"symbolOffset"),n);_&&(p.x=_[0],p.y=_[1]),f&&p.attr("cursor",f);var x=t.getItemVisual(e,"style"),b=x.fill;if(p instanceof yo){var w=p.style;p.useStyle(U({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},x))}else p.__isEmptyBrush?p.useStyle(U({},x)):p.useStyle(x),p.style.decal=null,p.setColor(b,r&&r.symbolInnerColor),p.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),C=this._z2;null!=S?null==C&&(this._z2=p.z2,p.z2+=S):null!=C&&(p.z2=C,this._z2=null);var M=r&&r.useNameLabel;Ss(p,h,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return M?t.getName(e):Dp(t,e)},inheritColor:b,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=p.ensureState("emphasis");T.style=o,p.ensureState("select").style=s,p.ensureState("blur").style=a;var k=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;T.scaleX=this._sizeX*k,T.scaleY=this._sizeY*k,this.setSymbolScale(1),fs(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=ka(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&If(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();If(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return nt(n=t.getItemVisual(e,"symbolSize"))||(n=[+n,+n]),[n[0]||0,n[1]||0];var n},e.getSymbolZ2=function(t,e){return t.getItemVisual(e,"z2")},e}(wd);function Ap(t,e){this.parent.drift(t,e)}const Pp=Rp;function Lp(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function Op(t){return null==t||st(t)||(t={isIgnore:t}),t||{}}function Ep(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Cs(e),cursorStyle:e.get("cursor")}}var Bp=function(){function t(t){this.group=new wd,this._SymbolCtor=t||Pp}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=Op(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=Ep(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add(function(i){var r=u(i);if(Lp(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}}).update(function(c,h){var d=r.getItemGraphicEl(h),f=u(c);if(Lp(t,f,c,e)){var p=t.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==p)n.remove(d),(d=new o(t,c,s,l)).setPosition(f);else{d.updateData(t,c,s,l);var v={x:f[0],y:f[1]};a?d.attr(v):Mf(d,v,i)}n.add(d),t.setItemGraphicEl(c,d)}else n.remove(d)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},i)}).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Ep(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=Op(n);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(Lp(e,o,r,n)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){up(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},n.hostModel)}):e.removeAll()},t}();const zp=Bp;function Fp(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),o=function(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:at(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=$(t.dimensions,function(t){return e.mapDimension(t)}),d=!1,f=e.getCalculationInfo("stackResultDimension");return Eu(e,h[0])&&(d=!0,h[0]=f),Eu(e,h[1])&&(d=!0,h[1]=f),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Np(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var Vp="undefined"!=typeof Float32Array,Hp=Vp?Float32Array:Array;function Gp(t){return nt(t)?Vp?new Float32Array(t):t:new Hp(t)}var Wp=Math.min,Up=Math.max;function jp(t,e){return isNaN(t)||isNaN(e)}function Xp(t,e,n,i,r,o,a,s,l){for(var u,c,h,d,f,p,g=n,v=0;v<i;v++){var m=e[2*g],y=e[2*g+1];if(g>=r||g<0)break;if(jp(m,y)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](m,y),h=m,d=y;else{var _=m-u,x=y-c;if(_*_+x*x<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===m&&S===y&&v<i;)v++,g+=o,w=e[2*(b+=o)],S=e[2*b+1],_=(m=e[2*g])-u,x=(y=e[2*g+1])-c;var C=v+1;if(l)for(;jp(w,S)&&C<i;)C++,w=e[2*(b+=o)],S=e[2*b+1];var M=.5,T=0,k=0,I=void 0,D=void 0;if(C>=i||jp(w,S))f=m,p=y;else{T=w-u,k=S-c;var R=m-u,A=w-m,P=y-c,L=S-y,O=void 0,E=void 0;if("x"===s){var B=T>0?1:-1;f=m-B*(O=Math.abs(R))*a,p=y,I=m+B*(E=Math.abs(A))*a,D=y}else if("y"===s){var z=k>0?1:-1;f=m,p=y-z*(O=Math.abs(P))*a,I=m,D=y+z*(E=Math.abs(L))*a}else O=Math.sqrt(R*R+P*P),f=m-T*a*(1-(M=(E=Math.sqrt(A*A+L*L))/(E+O))),p=y-k*a*(1-M),D=y+k*a*M,I=Wp(I=m+T*a*M,Up(w,m)),D=Wp(D,Up(S,y)),I=Up(I,Wp(w,m)),p=y-(k=(D=Up(D,Wp(S,y)))-y)*O/E,f=Wp(f=m-(T=I-m)*O/E,Up(u,m)),p=Wp(p,Up(c,y)),I=m+(T=m-(f=Up(f,Wp(u,m))))*E/O,D=y+(k=y-(p=Up(p,Wp(c,y))))*E/O}t.bezierCurveTo(h,d,f,p,m,y),h=I,d=D}else t.lineTo(m,y)}u=m,c=y,g+=o}return v}var Yp=function(){this.smooth=0,this.smoothConstraint=!0},qp=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return w(e,t),e.prototype.getDefaultStyle=function(){return{stroke:Ch.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Yp},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&jp(n[2*r-2],n[2*r-1]);r--);for(;i<r&&jp(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=Xp(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path.data,o=Gr.CMD,a="x"===e,s=[],l=0;l<r.length;){var u=void 0,c=void 0,h=void 0,d=void 0,f=void 0,p=void 0,g=void 0;switch(r[l++]){case o.M:n=r[l++],i=r[l++];break;case o.L:if(u=r[l++],c=r[l++],(g=a?(t-n)/(u-n):(t-i)/(c-i))<=1&&g>=0){var v=a?(c-i)*g+i:(u-n)*g+n;return a?[t,v]:[v,t]}n=u,i=c;break;case o.C:u=r[l++],c=r[l++],h=r[l++],d=r[l++],f=r[l++],p=r[l++];var m=a?Wn(n,u,h,f,t,s):Wn(i,c,d,p,t,s);if(m>0)for(var y=0;y<m;y++){var _=s[y];if(_<=1&&_>=0)return v=a?Hn(i,c,d,p,_):Hn(n,u,h,f,_),a?[t,v]:[v,t]}n=f,i=p}}},e}(co),Zp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e}(Yp),$p=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return w(e,t),e.prototype.getDefaultShape=function(){return new Zp},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&jp(n[2*o-2],n[2*o-1]);o--);for(;r<o&&jp(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=Xp(t,n,r,o,o,1,e.smooth,a,e.connectNulls);Xp(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},e}(co);function Kp(){var t=xa();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var Qp=xa(),Jp=Kp(),tg=function(){function t(){this.group=new wd,this.uid=Fu("viewChart"),this.renderTask=ah({plan:ig,reset:rg}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&ng(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&ng(r,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){up(this.group,t)},t.markUpdateMethod=function(t,e){Qp(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function eg(t,e,n){t&&ys(t)&&("emphasis"===e?es:ns)(t,n)}function ng(t,e,n){var i=_a(t,e),r=e&&null!=e.highlightKey?function(t){var e=Da[t];return null==e&&Ia<=32&&(e=Da[t]=Ia++),e}(e.highlightKey):null;null!=i?Z(ua(i),function(e){eg(t.getItemGraphicEl(e),n,r)}):t.eachItemGraphicEl(function(t){eg(t,n,r)})}function ig(t){return Jp(t.model)}function rg(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&Qp(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),og[l]}Ft(tg),Wt(tg);var og={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const ag=tg;function sg(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function lg(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function ug(t,e){var n=lg(t),i=n[0],r=n[1],o=lg(e),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function cg(t){return at(t)?t:t?.5:0}function hg(t,e,n,i,r){var o=n.getBaseAxis(),a="x"===o.dim||"radius"===o.dim?0:1,s=[],l=0,u=[],c=[],h=[],d=[];if(r){for(l=0;l<t.length;l+=2){var f=e||t;isNaN(f[l])||isNaN(f[l+1])||d.push(t[l],t[l+1])}t=d}for(l=0;l<t.length-2;l+=2)switch(h[0]=t[l+2],h[1]=t[l+3],c[0]=t[l],c[1]=t[l+1],s.push(c[0],c[1]),i){case"end":u[a]=h[a],u[1-a]=c[1-a],s.push(u[0],u[1]);break;case"middle":var p=(c[a]+h[a])/2,g=[];u[a]=g[a]=p,u[1-a]=c[1-a],g[1-a]=h[1-a],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[a]=c[a],u[1-a]=h[1-a],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function dg(t,e){return isNaN(t)||isNaN(e)}function fg(t,e){return[t[2*e],t[2*e+1]]}function pg(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Pa.length;e++)if(t.get([Pa[e],"endLabel","show"]))return!0;return!1}function gg(t,e,n,i){if(function(t){return"cartesian2d"===t.type}(e)){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=pg(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,u=e.getBaseAxis().isHorizontal(),c=function(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||0;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var h=new To({shape:{x:a,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),f=d.isHorizontal(),p=d.inverse;f?(p&&(h.shape.x+=l),h.shape.width=0):(p||(h.shape.y+=u),h.shape.height=0);var g=it(r)?function(t){r(t,h)}:null;Tf(h,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return h}(e,n,i,function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,c),c}return function(t,e,n){var i=t.getArea(),r=qo(i.r0,1),o=qo(i.r,1),a=new Vd({shape:{cx:qo(t.cx,1),cy:qo(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=r,Tf(a,{shape:{endAngle:i.endAngle,r:o}},n)),a}(e,n,i)}var vg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e.prototype.init=function(){var t=new wd,e=new zp;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t,this._changePolyState=tt(this._changePolyState,this)},e.prototype.render=function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=t.getModel("lineStyle"),s=t.getModel("areaStyle"),l=o.getLayout("points")||[],u="polar"===i.type,c=this._coordSys,h=this._symbolDraw,d=this._polyline,f=this._polygon,p=this._lineGroup,g=!e.ssr&&t.get("animation"),v=!s.isEmpty(),m=s.get("origin"),y=Fp(i,o,m),_=v&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=Gp(2*i),o=0;o<i;o++){var a=Np(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(i,o,y),x=t.get("showSymbol"),b=t.get("connectNulls"),w=x&&!u&&function(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*Pp.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return Z(o.getViewLabels(),function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}(t,o,i),S=this._data;S&&S.eachItemGraphicEl(function(t,e){t.__temp&&(r.remove(t),S.setItemGraphicEl(e,null))}),x||h.remove(),r.add(p);var C,M=!u&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(null!=(C=i.getArea()).width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var T=function(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var s=t.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=e.getAxis(r),u=$(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=function(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:vi((n-i)/(e.coord-i),[t.color,e.color])}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(u>e){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}(u,"x"===r?n.getWidth():n.getHeight()),f=d.length;if(!f&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var p=d[0].coord-10,g=d[f-1].coord+10,v=g-p;if(v<.001)return"transparent";Z(d,function(t){t.offset=(t.coord-p)/v}),d.push({offset:f?d[f-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:f?d[0].offset:.5,color:h[0]||"transparent"});var m=new uf(0,0,0,0,d,!0);return m[r]=p,m[r+"2"]=g,m}}}(o,i,n)||o.getVisual("style")[o.getVisual("drawType")];if(d&&c.type===i.type&&M===this._step){v&&!f?f=this._newPolygon(l,_):f&&!v&&(p.remove(f),f=this._polygon=null),u||this._initOrUpdateEndLabel(t,i,Nc(T));var k=p.getClipPath();k?Tf(k,{shape:gg(this,i,!1,t).shape},t):p.setClipPath(gg(this,i,!0,t)),x&&h.updateData(o,{isIgnore:w,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),sg(this._stackedOnPoints,_)&&sg(this._points,l)||(g?this._doUpdateAnimation(o,_,i,n,M,m,b):(M&&(_&&(_=hg(_,l,i,M,b)),l=hg(l,null,i,M,b)),d.setShape({points:l}),f&&f.setShape({points:l,stackedOnPoints:_})))}else x&&h.updateData(o,{isIgnore:w,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),g&&this._initSymbolLabelAnimation(o,i,C),M&&(_&&(_=hg(_,l,i,M,b)),l=hg(l,null,i,M,b)),d=this._newPolyline(l),v?f=this._newPolygon(l,_):f&&(p.remove(f),f=this._polygon=null),u||this._initOrUpdateEndLabel(t,i,Nc(T)),p.setClipPath(gg(this,i,!0,t));var I=t.getModel("emphasis"),D=I.get("focus"),R=I.get("blurScope"),A=I.get("disabled");d.useStyle(j(a.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),vs(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1),ka(d).seriesIndex=t.seriesIndex,fs(d,D,R,A);var P=cg(t.get("smooth")),L=t.get("smoothMonotone");if(d.setShape({smooth:P,smoothMonotone:L,connectNulls:b}),f){var O=o.getCalculationInfo("stackedOnSeries"),E=0;f.useStyle(j(s.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),O&&(E=cg(O.get("smooth"))),f.setShape({smooth:P,stackedOnSmooth:E,smoothMonotone:L,connectNulls:b}),vs(f,t,"areaStyle"),ka(f).seriesIndex=t.seriesIndex,fs(f,D,R,A)}var B=this._changePolyState;o.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=B)}),this._polyline.onHoverStateChange=B,this._data=o,this._coordSys=i,this._stackedOnPoints=_,this._points=l,this._step=M,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,d),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){ka(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=_a(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;(s=new Pp(r,o)).x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else ag.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=_a(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else ag.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;$a(this._polyline,t),e&&$a(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new qp({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new $p({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");it(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=it(u)?u(null):u;t.eachItemGraphicEl(function(t,o){var s=t;if(s){var h=[t.x,t.y],d=void 0,f=void 0,p=void 0;if(n)if(r){var g=n,v=e.pointToCoord(h);i?(d=g.startAngle,f=g.endAngle,p=-v[1]/180*Math.PI):(d=g.r0,f=g.r,p=v[0])}else{var m=n;i?(d=m.x,f=m.x+m.width,p=t.x):(d=m.y+m.height,f=m.y,p=t.y)}var y=f===d?0:(p-d)/(f-d);a&&(y=1-y);var _=it(u)?u(o):l*y+c,x=s.getSymbolPath(),b=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(pg(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new Ho({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e=t.length/2;e>0&&dg(t[2*e-2],t[2*e-1]);e--);return e-1}(a);l>=0&&(Ss(o,Cs(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?function(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!nt(e))return e+"";for(var i=[],r=0;r<n.length;r++){var o=t.getDimensionIndex(n[r]);o>=0&&i.push(e[o])}return i.join(" ")}(r,n):Dp(r,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=o.get("precision"),f=o.get("distance")||0,p=a.getBaseAxis(),g=p.isHorizontal(),v=p.inverse,m=e.shape,y=v?g?m.x:m.y+m.height:g?m.x+m.width:m.y,_=(g?f:0)*(v?-1:1),x=(g?0:-f)*(v?-1:1),b=g?"x":"y",w=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a]))if(0!==u){if(i<=e&&r>=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(u,y,b),S=w.range,C=S[1]-S[0],M=void 0;if(C>=1){if(C>1&&!h){var T=fg(u,S[0]);s.attr({x:T[0]+_,y:T[1]+x}),r&&(M=c.getRawValue(S[0]))}else{(T=l.getPointOn(y,b))&&s.attr({x:T[0]+_,y:T[1]+x});var k=c.getRawValue(S[0]),I=c.getRawValue(S[1]);r&&(M=function(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if(at(i))return qo(p=sa(n||0,i,r),o?Math.max(Zo(n||0),Zo(i)):e);if(rt(i))return r<1?n:i;for(var a=[],s=n,l=i,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var h=t.getDimensionInfo(c);if(h&&"ordinal"===h.type)a[c]=(r<1&&s?s:l)[c];else{var d=s&&s[c]?s[c]:0,f=l[c],p=sa(d,f,r);a[c]=qo(p,o?Math.max(Zo(d),Zo(f)):e)}}return a}(n,d,k,I,w.t))}i.lastFrameIndex=S[0]}else{var D=1===t||i.lastFrameIndex>0?S[0]:0;T=fg(u,D),r&&(M=c.getRawValue(D)),s.attr({x:T[0]+_,y:T[1]+x})}if(r){var R=As(s);"function"==typeof R.setLabelText&&R.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=function(t,e,n,i,r,o,a){for(var s=function(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}(t,e),l=[],u=[],c=[],h=[],d=[],f=[],p=[],g=Fp(r,e,a),v=t.getLayout("points")||[],m=e.getLayout("points")||[],y=0;y<s.length;y++){var _=s[y],x=!0,b=void 0,w=void 0;switch(_.cmd){case"=":b=2*_.idx,w=2*_.idx1;var S=v[b],C=v[b+1],M=m[w],T=m[w+1];(isNaN(S)||isNaN(C))&&(S=M,C=T),l.push(S,C),u.push(M,T),c.push(n[b],n[b+1]),h.push(i[w],i[w+1]),p.push(e.getRawIndex(_.idx1));break;case"+":var k=_.idx,I=g.dataDimsForPoint,D=r.dataToPoint([e.get(I[0],k),e.get(I[1],k)]);w=2*k,l.push(D[0],D[1]),u.push(m[w],m[w+1]);var R=Np(g,r,e,k);c.push(R[0],R[1]),h.push(i[w],i[w+1]),p.push(e.getRawIndex(k));break;case"-":x=!1}x&&(d.push(_),f.push(f.length))}f.sort(function(t,e){return p[t]-p[e]});var A=l.length,P=Gp(A),L=Gp(A),O=Gp(A),E=Gp(A),B=[];for(y=0;y<f.length;y++){var z=f[y],F=2*y,N=2*z;P[F]=l[N],P[F+1]=l[N+1],L[F]=u[N],L[F+1]=u[N+1],O[F]=c[N],O[F+1]=c[N+1],E[F]=h[N],E[F+1]=h[N+1],B[y]=d[z]}return{current:P,next:L,stackedOnCurrent:O,stackedOnNext:E,status:B}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),h=c.current,d=c.stackedOnCurrent,f=c.next,p=c.stackedOnNext;if(r&&(d=hg(c.stackedOnCurrent,c.current,n,r,a),h=hg(c.current,null,n,r,a),p=hg(c.stackedOnNext,c.next,n,r,a),f=hg(c.next,null,n,r,a)),ug(h,f)>3e3||l&&ug(d,p)>3e3)return s.stopAnimation(),s.setShape({points:f}),void(l&&(l.stopAnimation(),l.setShape({points:f,stackedOnPoints:p})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:f}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),Mf(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),Mf(l,{shape:{stackedOnPoints:p}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],m=c.status,y=0;y<m.length;y++)if("="===m[y].cmd){var _=t.getItemGraphicEl(m[y].idx1);_&&v.push({el:_,ptIdx:y})}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<v.length;e++){var n=v[e].el,i=2*v[e].ptIdx;n.x=t[i],n.y=t[i+1],n.markRedraw()}})},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(ag);const mg=vg;var yg={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},_g=function(t){return Math.round(t.length/2)},xg=function(){function t(){this.group=new wd,this.uid=Fu("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();Ft(xg),Wt(xg);const bg=xg;var wg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return w(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:Ch.size.m,backgroundColor:Ch.color.transparent,borderColor:Ch.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:Ch.color.primary},subtextStyle:{fontSize:12,color:Ch.color.quaternary}},e}(th),Sg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return w(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=pt(t.get("textBaseline"),t.get("textVerticalAlign")),l=new Ho({style:Ms(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new Ho({style:Ms(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),f=t.get("sublink"),p=t.get("triggerEvent",!0);l.silent=!d&&!p,h.silent=!f&&!p,d&&l.on("click",function(){Vc(d,"_"+t.get("target"))}),f&&h.on("click",function(){Vc(f,"_"+t.get("subtarget"))}),ka(l).eventData=ka(h).eventData=p?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),c&&i.add(h);var g=i.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var m=jc(v,qc(t,n).refContainer,t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),i.x=m.x,i.y=m.y,i.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),h.setStyle(y),g=i.getBoundingRect();var _=m.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var b=new To({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(b)}},e.type="title",e}(bg),Cg={left:0,right:0,top:0,bottom:0},Mg=["25%","25%"];const Tg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e.prototype.mergeDefaultAndTheme=function(e,n){var i=Kc(e.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&e.outerBounds&&$c(e.outerBounds,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&$c(this.option.outerBounds,e.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:Cg,outerBoundsContain:"all",outerBoundsClampWidth:Mg[0],outerBoundsClampHeight:Mg[1],backgroundColor:Ch.color.transparent,borderWidth:1,borderColor:Ch.color.neutral30},e}(th);var kg=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),Ig=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ca).models[0]},e.type="cartesian2dAxis",e}(th);Y(Ig,kg);var Dg={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:Ch.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:Ch.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Ch.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[Ch.color.backgroundTint,Ch.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Ch.color.neutral00,borderColor:Ch.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},Rg=W({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},Dg),Ag=W({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Ch.color.axisMinorSplitLine,width:1}}},Dg);const Pg={category:Rg,value:Ag,time:W({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Ag),log:j({logBase:10},Ag)};var Lg=0;function Og(t){return st(t)&&null!=t.value?t.value:t+""}const Eg=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Lg,this._onCollect=t.onCollect}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&$(i,Og);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!rt(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Tt(this.categories))},t}();var Bg={value:1,category:1,time:1,log:1};function zg(t,e,n,i){Z(Bg,function(r,o){var a=W(W({},Pg[o],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return w(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=Zc(this),i=n?Kc(t):{};W(t,e.getTheme().get(o+"Axis")),W(t,this.getDefaultOption()),t.type=Fg(t),n&&$c(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Eg.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(t){var e=null;return e?e.updateModelAxisBreak(this,t):{breaks:[]}},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",Fg)}function Fg(t){return t.type||(t.data?"category":"value")}function Ng(t){return"interval"===t.type||"log"===t.type}function Vg(t){var e=Math.pow(10,ea(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,qo(n*e)}function Hg(t){return Zo(t)+2}function Gg(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Wg(t,e){return t>=e[0]&&t<=e[1]}var Ug=function(){function t(){this.normalize=jg,this.scale=Xg}return t.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=tt(t.normalize,t),this.scale=tt(t.scale,t)):(this.normalize=jg,this.scale=Xg)},t}();function jg(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Xg(t,e){return t*(e[1]-e[0])+e[0]}function Yg(t,e,n){var i=Math.log(t);return[Math.log(n?e[0]:Math.max(0,e[0]))/i,Math.log(n?e[1]:Math.max(0,e[1]))/i]}var qg=function(){function t(t){this._calculator=new Ug,this._setting=t||{},this._extent=[1/0,-1/0];var e=null;e&&(this._brkCtx=e.createScaleBreakContext(),this._brkCtx.update(this._extent))}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent(t[0]<e[0]?t[0]:e[0],t[1]>e[1]?t[1]:e[1])},t.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},t.prototype._innerSetExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e),this._brkCtx&&this._brkCtx.update(n)},t.prototype.setBreaksFromOption=function(t){var e=null;e&&this._innerSetBreak(e.parseAxisBreakOption(t,tt(this.parse,this)))},t.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},t.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.hasBreaks=function(){return!!this._brkCtx&&this._brkCtx.hasBreaks()},t.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Wt(qg);const Zg=qg;var $g=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Eg({})),nt(i)&&(i=new Eg({categories:$(i,function(t){return st(t)?t.value:t})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return w(e,t),e.prototype.parse=function(t){return null==t?NaN:rt(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return Wg(t,this._extent)&&t>=0&&t<this._ordinalMeta.categories.length},e.prototype.normalize=function(t){return t=this._getTickNumber(t),this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(this._calculator.scale(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Zg);Zg.registerClass($g);const Kg=$g;var Qg=qo,Jg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return w(e,t),e.prototype.parse=function(t){return null==t||""===t?NaN:Number(t)},e.prototype.contain=function(t){return Wg(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Hg(t)},e.prototype.getTicks=function(t){t=t||{};var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=null,a=[];if(!e)return a;if("only_break"===t.breakTicks&&o)return o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent),a;n[0]<i[0]&&(t.expandToNicedExtent?a.push({value:Qg(i[0]-e,r)}):a.push({value:n[0]}));for(var s=function(t,n){return Math.round((n-t)/e)},l=i[0];l<=i[1];){if(a.push({value:l}),l=Qg(l+e,r),this._brkCtx){var u=this._brkCtx.calcNiceTickMultiple(l,s);u>=0&&(l=Qg(l+u*e,r))}if(a.length>0&&l===a[a.length-1].value)break;if(a.length>1e4)return[]}var c=a.length?a[a.length-1].value:i[1];return n[1]>c&&(t.expandToNicedExtent?a.push({value:Qg(c+e,r)}):a.push({value:n[1]})),o&&o.pruneTicksByBreak(t.pruneByBreak,a,this._brkCtx.breaks,function(t){return t.value},this._interval,this._extent),"none"!==t.breakTicks&&o&&o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent),a},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),r=1;r<e.length;r++){var o=e[r],a=e[r-1];if(!a.break&&!o.break){for(var s=0,l=[],u=(o.value-a.value)/t,c=Hg(u);s<t-1;){var h=Qg(a.value+(s+1)*u,c);h>i[0]&&h<i[1]&&l.push(h),s++}var d=nc();d&&d.pruneTicksByBreak("auto",l,this._getNonTransBreaks(),function(t){return t},this._interval,i),n.push(l)}}return n},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=Zo(t.value)||0:"auto"===n&&(n=this._intervalPrecision),Pc(Qg(t.value,n,!0))},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent.slice(),r=this._getExtentSpanWithBreaks();if(isFinite(r)){r<0&&(r=-r,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice());var o=function(t,e,n,i,r){var o={},a=o.interval=na(e/n,!0);null!=i&&a<i&&(a=o.interval=i),null!=r&&a>r&&(a=o.interval=r);var s=o.intervalPrecision=Hg(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Gg(t,0,e),Gg(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(o.niceTickExtent=[qo(Math.ceil(t[0]/a)*a,s),qo(Math.floor(t[1]/a)*a,s)],t),o}(i,r,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent.slice();if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this._innerSetExtent(e[0],e[1]),e=this._extent.slice(),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval,o=this._intervalPrecision;t.fixMin||(e[0]=Qg(Math.floor(e[0]/r)*r,o)),t.fixMax||(e[1]=Qg(Math.ceil(e[1]/r)*r,o)),this._innerSetExtent(e[0],e[1])},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(Zg);Zg.registerClass(Jg);const tv=Jg;function ev(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function nv(t){return t.dim+t.index}function iv(t){var e=function(t){var e={};Z(t,function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),r=n.dim+"_"+n.index,o=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);e[r]?e[r].push(u):e[r]=[u]}});var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r){r.sort(function(t,e){return t-e});for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}(t),n=[];return Z(t,function(t){var i,r=t.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var a=r.dim+"_"+r.index,s=e[a],l=Math.abs(o[1]-o[0]),u=r.scale.getExtent(),c=Math.abs(u[1]-u[0]);i=s?l/c*s:l}else{var h=t.getData();i=Math.abs(o[1]-o[0])/h.count()}var d=Xo(t.get("barWidth"),i),f=Xo(t.get("barMaxWidth"),i),p=Xo(t.get("barMinWidth")||(function(t){return t.pipelineContext&&t.pipelineContext.large}(t)?.5:1),i),g=t.get("barGap"),v=t.get("barCategoryGap"),m=t.get("defaultBarGap");n.push({bandWidth:i,barWidth:d,barMaxWidth:f,barMinWidth:p,barGap:g,barCategoryGap:v,defaultBarGap:m,axisKey:nv(r),stackId:ev(t)})}),function(t){var e={};Z(t,function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:t.defaultBarGap||0,stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)});var n={};return Z(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=J(i).length;o=Math.max(35-4*a,15)+"%"}var s=Xo(o,r),l=Xo(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),Z(i,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width)i=t.width,e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,c--;else{var i=h;e&&e<i&&(i=Math.min(e,u)),n&&n>i&&(i=n),i!==h&&(t.width=i,u-=i+l*i,c--)}}),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,f=0;Z(i,function(t,e){t.width||(t.width=h),d=t,f+=t.width*(1+l)}),d&&(f-=d.width*l);var p=-f/2;Z(i,function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:p,width:t.width},p+=t.width*(1+l)})}),n}(n)}var rv=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return w(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return gc(t.value,uc[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(fc(this._minLevelUnit))]||uc.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC");return function(t,e,n,i,r){var o=null;if(rt(n))o=n;else if(it(n)){var a={time:t.time,level:t.time.level},s=null;s&&s.makeAxisLabelFormatterParamBreak(a,t.break),o=n(t.value,e,a)}else{var l=t.time;if(l){var u=n[l.lowerTimeUnit][l.upperTimeUnit];o=u[Math.min(l.level,u.length-1)]||""}else{var c=vc(t.value,r);o=n[c][c][0]}}return gc(new Date(t.value),o,r,i)}(t,e,n,this.getSetting("locale"),i)},e.prototype.getTicks=function(t){t=t||{};var e=this._interval,n=this._extent,i=null,r=[];if(!e)return r;var o=this.getSetting("useUTC");var a=vc(n[1],o);r.push({value:n[0],time:{level:0,upperTimeUnit:a,lowerTimeUnit:a}});var s=function(t,e,n,i,r,o){var a=hc,s=0;function l(t,e,n,r,a,l,u){for(var c=function(t,e){var n=new Date(0);n[t](1);var i=n.getTime();n[t](1+e);var r=n.getTime()-i;return function(t,e){return Math.max(0,Math.round((e-t)/r))}}(a,t),h=e,d=new Date(h);h<n&&h<=i[1]&&(u.push({value:h}),!(s++>1e4));)if(d[a](d[r]()+t),h=d.getTime(),o){var f=o.calcNiceTickMultiple(h,c);f>0&&(d[a](d[r]()+f*t),h=d.getTime())}u.push({value:h,notAdd:!0})}function u(t,r,o){var a=[],s=!r.length;if(!av(fc(t),i[0],i[1],n)){s&&(r=[{value:dv(i[0],t,n)},{value:i[1]}]);for(var u=0;u<r.length-1;u++){var c=r[u].value,h=r[u+1].value;if(c!==h){var d=void 0,f=void 0,p=void 0;switch(t){case"year":d=Math.max(1,Math.round(e/rc/365)),f=yc(n),p=Mc(n);break;case"half-year":case"quarter":case"month":d=lv(e),f=_c(n),p=Tc(n);break;case"week":case"half-week":case"day":d=sv(e),f=xc(n),p=kc(n);break;case"half-day":case"quarter-day":case"hour":d=uv(e),f=bc(n),p=Ic(n);break;case"minute":d=cv(e,!0),f=wc(n),p=Dc(n);break;case"second":d=cv(e,!1),f=Sc(n),p=Rc(n);break;case"millisecond":d=hv(e),f=Cc(n),p=Ac(n)}h>=i[0]&&c<=i[1]&&l(d,c,h,f,p,0,a),"year"===t&&o.length>1&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u<a.length;u++)o.push(a[u])}}for(var c=[],h=[],d=0,f=0,p=0;p<a.length;++p){var g=fc(a[p]);if(pc(a[p])&&(u(a[p],c[c.length-1]||[],h),g!==(a[p+1]?fc(a[p+1]):null))){if(h.length){f=d,h.sort(function(t,e){return t.value-e.value});for(var v=[],m=0;m<h.length;++m){var y=h[m].value;0!==m&&h[m-1].value===y||(v.push(h[m]),y>=i[0]&&y<=i[1]&&d++)}var _=r/e;if(d>1.5*_&&f>_/1.5)break;if(c.push(v),d>_||t===a[p])break}h=[]}}var x=Q($(c,function(t){return Q(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return t.length>0}),b=[],w=x.length-1;for(p=0;p<x.length;++p)for(var S=x[p],C=0;C<S.length;++C){var M=vc(S[C].value,n);b.push({value:S[C].value,time:{level:w-p,upperTimeUnit:M,lowerTimeUnit:M}})}b.sort(function(t,e){return t.value-e.value});var T=[];for(p=0;p<b.length;++p)0!==p&&b[p].value===b[p-1].value||T.push(b[p]);return T}(this._minLevelUnit,this._approxInterval,o,n,this._getExtentSpanWithBreaks(),this._brkCtx);r=r.concat(s);var l=vc(n[1],o);r.push({value:n[1],time:{level:0,upperTimeUnit:l,lowerTimeUnit:l}});this.getSetting("useUTC");var u=cc.length-1,c=0;return Z(r,function(t){u=Math.min(u,X(cc,t.time.upperTimeUnit)),c=Math.max(c,t.time.level)}),r},e.prototype.calcNiceExtent=function(t){var e=this.getExtent();if(e[0]===e[1]&&(e[0]-=rc,e[1]+=rc),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-rc}this._innerSetExtent(e[0],e[1]),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._getExtentSpanWithBreaks();this._approxInterval=i/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var r=ov.length,o=Math.min(function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n}(ov,this._approxInterval,0,r),r-1);this._interval=ov[o][1],this._intervalPrecision=Hg(this._interval),this._minLevelUnit=ov[Math.max(o-1,0)][0]},e.prototype.parse=function(t){return at(t)?t:+ta(t)},e.prototype.contain=function(t){return Wg(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.type="time",e}(tv),ov=[["second",1e3],["minute",6e4],["hour",ic],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",oc/2],["year",oc]];function av(t,e,n,i){return mc(new Date(e),t,i).getTime()===mc(new Date(n),t,i).getTime()}function sv(t,e){return(t/=rc)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function lv(t){return(t/=2592e6)>6?6:t>3?3:t>2?2:1}function uv(t){return(t/=ic)>12?12:t>6?6:t>3.5?4:t>2?2:1}function cv(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function hv(t){return na(t,!0)}function dv(t,e,n){var i=Math.max(0,X(cc,e)-1);return mc(new Date(t),cc[i],n).getTime()}Zg.registerClass(rv);const fv=rv;var pv=qo,gv=Math.floor,vv=Math.ceil,mv=Math.pow,yv=Math.log,_v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new tv,e}return w(e,t),e.prototype.getTicks=function(e){e=e||{};var n=this._extent.slice(),i=this._originalScale.getExtent(),r=t.prototype.getTicks.call(this,e),o=this.base,a=this._originalScale._innerGetBreaks(),s=null;return $(r,function(t){var e,r=t.value,l=null,u=mv(o,r);if(r===n[0]&&this._fixMin?l=i[0]:r===n[1]&&this._fixMax&&(l=i[1]),s){var c=s.getTicksLogTransformBreak(t,o,a,xv);e=c.vBreak,null==l&&(l=c.brkRoundingCriterion)}return null!=l&&(u=xv(u,l)),{value:u,break:e}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(e,n){this._originalScale.setExtent(e,n);var i=Yg(this.base,[e,n]);t.prototype.setExtent.call(this,i[0],i[1])},e.prototype.getExtent=function(){var e=this.base,n=t.prototype.getExtent.call(this);n[0]=mv(e,n[0]),n[1]=mv(e,n[1]);var i=this._originalScale.getExtent();return this._fixMin&&(n[0]=xv(n[0],i[0])),this._fixMax&&(n[1]=xv(n[1],i[1])),n},e.prototype.unionExtentFromData=function(t,e){this._originalScale.unionExtentFromData(t,e);var n=Yg(this.base,t.getApproximateExtent(e),!0);this._innerUnionExtent(n)},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(isFinite(n)&&!(n<=0)){var i,r=(i=n,Math.pow(10,ea(i)));for(t/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var o=[pv(vv(e[0]/r)*r),pv(gv(e[1]/r)*r)];this._interval=r,this._intervalPrecision=Hg(r),this._niceExtent=o}},e.prototype.calcNiceExtent=function(e){t.prototype.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},e.prototype.contain=function(e){return e=yv(e)/yv(this.base),t.prototype.contain.call(this,e)},e.prototype.normalize=function(e){return e=yv(e)/yv(this.base),t.prototype.normalize.call(this,e)},e.prototype.scale=function(e){return e=t.prototype.scale.call(this,e),mv(this.base,e)},e.prototype.setBreaksFromOption=function(t){var e=null;if(e){var n=e.logarithmicParseBreaksFromOption(t,this.base,tt(this.parse,this)),i=n.parsedOriginal,r=n.parsedLogged;this._originalScale._innerSetBreak(i),this._innerSetBreak(r)}},e.type="log",e}(tv);function xv(t,e){return pv(t,Zo(e))}Zg.registerClass(_v);const bv=_v;var wv=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var r=e.get("min",!0);null==r&&(r=e.get("startValue",!0));var o=this._modelMinRaw=r;it(o)?this._modelMinNum=Mv(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=Mv(t,o));var a=this._modelMaxRaw=e.get("max",!0);if(it(a)?this._modelMaxNum=Mv(t,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=Mv(t,a)),i)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=nt(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[He(l[0],1),He(l[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?i?0:NaN:e-r[0]*o),null==s&&(s=t?i?i-1:NaN:n+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=dt(a)||dt(s)||t&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(a=h,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[Cv[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[Sv[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),Sv={min:"_determinedMin",max:"_determinedMax"},Cv={min:"_dataMin",max:"_dataMax"};function Mv(t,e){return null==e?null:dt(e)?NaN:t.parse(e)}function Tv(t,e){var n=t.type,i=function(t,e,n){var i=t.rawExtentInfo;return i||(i=new wv(t,e,n),t.rawExtentInfo=i,i)}(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=function(t,e){var n=[];return e.eachSeriesByType(t,function(t){(function(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type})(t)&&n.push(t)}),n}("bar",a),l=!1;if(Z(s,function(t){l=l||t.getBaseAxis()===e.axis}),l){var u=iv(s),c=function(t,e,n,i){var r=n.axis.getExtent(),o=Math.abs(r[1]-r[0]),a=function(t,e){if(t&&e){var n=t[nv(e)];return n}}(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;Z(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;Z(a,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=c/(1-(s+l)/o)-c;return{min:t-=h*(s/u),max:e+=h*(l/u)}}(r,o,e,u);r=c.min,o=c.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function kv(t,e){var n=e,i=Tv(t,n),r=i.extent,o=n.get("splitNumber");t instanceof bv&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setBreaksFromOption(Ov(n)),t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function Iv(t){var e,n=t.getLabelModel().get("formatter");if("time"===t.type){var i=rt(e=n)||it(e)?e:function(t){t=t||{};var e={},n=!0;return Z(cc,function(e){n&&(n=null==t[e])}),Z(cc,function(i,r){var o=t[i];e[i]={};for(var a=null,s=r;s>=0;s--){var l=cc[s],u=st(o)&&!nt(o)?o[l]:o,c=void 0;nt(u)?a=(c=u.slice())[0]||"":rt(u)?c=[a=u]:(null==a?a=sc[i]:ac[l].test(a)||(a=e[l][l][0]+" "+a),c=[a],n&&(c[1]="{primary|"+a+"}")),e[i][l]=c}}),e}(e);return function(e,n){return t.scale.getFormattedLabel(e,n,i)}}if(rt(n))return function(e){var i=t.scale.getLabel(e);return n.replace("{value}",null!=i?i:"")};if(it(n)){if("category"===t.type)return function(e,i){return n(Dv(t,e),e.value-t.scale.getExtent()[0],null)};var r=null;return function(e,i){var o=null;return r&&(o=r.makeAxisLabelFormatterParamBreak(o,e.break)),n(Dv(t,e),i,o)}}return function(e){return t.scale.getLabel(e)}}function Dv(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Rv(t){var e=t.get("interval");return null==e?"auto":e}function Av(t){return"category"===t.type&&0===Rv(t.getLabelModel())}function Pv(t){return"middle"===t||"center"===t}function Lv(t){return t.getShallow("show")}function Ov(t){t.get("breaks",!0)}var Ev=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return $(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Q(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),Bv=["x","y"];function zv(t){return("interval"===t.type||"time"===t.type)&&!t.hasBreaks()}var Fv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Bv,e}return w(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(zv(t)&&zv(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,h=r[1]-i[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=ue([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new Re(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return vn(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e,n){if(n=n||[],this._invTransform)return vn(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,r=Math.min(n[0],n[1])-t,o=Math.max(e[0],e[1])-i+t,a=Math.max(n[0],n[1])-r+t;return new Re(i,r,o,a)},e}(Ev);const Nv=Fv;var Vv=xa(),Hv=xa();function Gv(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function Wv(t,e){var n=$(e,function(e){return t.scale.parse(e)});return"time"===t.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function Uv(t,e,n){var i,r,o=Xv(t),a=Rv(e),s=1===n.kind;if(!s){var l=qv(o,a);if(l)return l}it(a)?i=Jv(t,a):(r="auto"===a?function(t,e){if(1===e.kind){var n=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Hv(t).autoInterval=n,!0}),n}var i=Hv(t).autoInterval;return null!=i?i:Hv(t).autoInterval=t.calculateCategoryInterval(e)}(t,n):a,i=Qv(t,r));var u={labels:i,labelCategoryInterval:r};return s?n.out.noPxChangeTryDetermine.push(function(){return Zv(o,a,u),!0}):Zv(o,a,u),u}var jv=Yv("axisTick"),Xv=Yv("axisLabel");function Yv(t){return function(e){return Hv(e)[t]||(Hv(e)[t]={list:[]})}}function qv(t,e){for(var n=0;n<t.list.length;n++)if(t.list[n].key===e)return t.list[n].value}function Zv(t,e,n){return t.list.push({key:e,value:n}),n}function $v(t,e,n){return null==Kv(t,e,n)}function Kv(t,e,n){var i=Vv(t.model),r=t.getExtent(),o=i.lastAutoInterval,a=i.lastTickCount;if(null!=o&&null!=a&&Math.abs(o-e)<=1&&Math.abs(a-n)<=1&&o>e&&i.axisExtent0===r[0]&&i.axisExtent1===r[1])return o;i.lastTickCount=n,i.lastAutoInterval=e,i.axisExtent0=r[0],i.axisExtent1=r[1]}function Qv(t,e,n){var i=Iv(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=r.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=Av(t),d=a.get("showMinLabel")||h,f=a.get("showMaxLabel")||h;d&&u!==o[0]&&g(o[0]);for(var p=u;p<=o[1];p+=l)g(p);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t,time:void 0,break:void 0})}return f&&p-l!==o[1]&&g(o[1]),s}function Jv(t,e,n){var i=t.scale,r=Iv(t),o=[];return Z(i.getTicks(),function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s,time:void 0,break:void 0})}),o}var tm=[0,1],em=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return function(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Uo(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(i.parse(t)),this.onBand&&"ordinal"===i.type&&nm(n=n.slice(),i.count()),jo(t,tm,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&nm(n=n.slice(),i.count());var r=jo(t,n,tm,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=$(function(t,e,n){var i=t.getTickModel().get("customValues");if(i){var r=t.scale.getExtent();return{ticks:Q(Wv(t,i),function(t){return t>=r[0]&&t<=r[1]})}}return"category"===t.type?function(t,e){var n,i,r=jv(t),o=Rv(e),a=qv(r,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),it(o))n=Jv(t,o,!0);else if("auto"===o){var s=Uv(t,t.getLabelModel(),Gv(2));i=s.labelCategoryInterval,n=$(s.labels,function(t){return t.tickValue})}else n=Qv(t,i=o,!0);return Zv(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:$(t.scale.getTicks(n),function(t){return t.value})}}(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return function(t,e,n,i){var r=e.length;if(t.onBand&&!n&&r){var o,a,s=t.getExtent();if(1===r)e[0].coord=s[0],e[0].onBand=!0,o=e[1]={coord:s[1],tickValue:e[0].tickValue,onBand:!0};else{var l=e[r-1].tickValue-e[0].tickValue,u=(e[r-1].coord-e[0].coord)/l;Z(e,function(t){t.coord-=u/2,t.onBand=!0});var c=t.scale.getExtent();a=1+c[1]-e[r-1].tickValue,o={coord:e[r-1].coord+u*a,tickValue:c[1]+1,onBand:!0},e.push(o)}var h=s[0]>s[1];d(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift()),i&&d(s[0],e[0].coord)&&e.unshift({coord:s[0],onBand:!0}),d(s[1],o.coord)&&(i?o.coord=s[1]:e.pop()),i&&d(o.coord,s[1])&&e.push({coord:s[1],onBand:!0})}function d(t,e){return t=qo(t),e=qo(e),h?t>e:t<e}}(this,n,e.get("alignWithLabel"),t.clamp),n},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),$(this.scale.getMinorTicks(t),function(t){return $(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(t){return function(t,e){var n=t.getLabelModel().get("customValues");if(n){var i=Iv(t),r=t.scale.getExtent();return{labels:$(Q(Wv(t,n),function(t){return t>=r[0]&&t<=r[1]}),function(e){var n={value:e};return{formattedLabel:i(n),rawLabel:t.scale.getLabel(n),tickValue:e,time:void 0,break:void 0}})}}return"category"===t.type?function(t,e){var n=t.getLabelModel(),i=Uv(t,n,e);return!n.get("show")||t.scale.isBlank()?{labels:[]}:i}(t,e):function(t){var e=t.scale.getTicks(),n=Iv(t);return{labels:$(e,function(e,i){return{formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value,time:e.time,break:e.break}})}}(t)}(this,t=t||Gv(2)).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(t){return function(t,e){var n=e.kind,i=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),r=Iv(t),o=(i.axisRotate-i.labelRotate)/180*Math.PI,a=t.scale,s=a.getExtent(),l=a.count();if(s[1]-s[0]<1)return 0;var u=1;l>40&&(u=Math.max(1,Math.floor(l/40)));for(var c=s[0],h=t.dataToCoord(c+1)-t.dataToCoord(c),d=Math.abs(h*Math.cos(o)),f=Math.abs(h*Math.sin(o)),p=0,g=0;c<=s[1];c+=u){var v,m,y=ze(r({value:c}),i.font,"center","top");v=1.3*y.width,m=1.3*y.height,p=Math.max(p,v,7),g=Math.max(g,m,7)}var _=p/d,x=g/f;isNaN(_)&&(_=1/0),isNaN(x)&&(x=1/0);var b=Math.max(0,Math.floor(Math.min(_,x)));if(1===n)return e.out.noPxChangeTryDetermine.push(tt($v,null,t,b,l)),b;var w=Kv(t,b,l);return null!=w?w:b}(this,t=t||Gv(2))},t}();function nm(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var im=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return w(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(em);const rm=im;var om=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"];function am(t,e,n){n=n||3,e?t.dirty|=n:t.dirty&=~n}function sm(t,e){return e=e||3,null==t.dirty||!!(t.dirty&e)}function lm(t){if(t)return sm(t)&&function(t,e,n){var i=e.getComputedTransform();t.transform=fp(t.transform,i);var r=t.localRect=dp(t.localRect,e.getBoundingRect()),o=e.style,a=o.margin,s=n&&n.marginForce,l=n&&n.minMarginForce,u=n&&n.marginDefault,c=o.__marginType;null==c&&u&&(a=u,c=Ps.textMargin);for(var h=0;h<4;h++)um[h]=c===Ps.minMargin&&l&&null!=l[h]?l[h]:s&&null!=s[h]?s[h]:a?a[h]:0;c===Ps.textMargin&&rp(r,um,!1,!1);var d=t.rect=dp(t.rect,r);i&&d.applyTransform(i),c===Ps.minMargin&&rp(d,um,!1,!1),t.axisAligned=cp(i),(t.label=t.label||{}).ignore=e.ignore,am(t,!1),am(t,!0,2)}(t,t.label,t),t}var um=[0,0,0,0];function cm(t,e){for(var n=0;n<om.length;n++){var i=om[n];null==t[i]&&(t[i]=e[i])}return lm(t)}function hm(t){var e=t.obb;return e&&!sm(t,2)||(t.obb=e=e||new xf,e.fromBoundingRect(t.localRect,t.transform),am(t,!1,2)),e}function dm(t,e,n,i){return!(!t||!e)&&!(t.label&&t.label.ignore||e.label&&e.label.ignore)&&!!t.rect.intersect(e.rect,n,i)&&(!(!t.axisAligned||!e.axisAligned)||hm(t).intersect(hm(e),n,i))}var fm=Math.PI,pm=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],gm=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],vm=xa(),mm=xa(),ym=function(){function t(t){this.recordMap={},this.resolveAxisNameOverlap=t}return t.prototype.ensureRecord=function(t){var e=t.axis.dim,n=t.componentIndex,i=this.recordMap,r=i[e]||(i[e]=[]);return r[n]||(r[n]={ready:{}})},t}(),_m=[1,0,0,1,0,0],xm=new Re(0,0,0,0),bm=function(t,e,n,i,r,o){if(Pv(t.nameLocation)){var a=o.stOccupiedRect;a&&wm(function(t,e,n){return t.transform=fp(t.transform,n),t.localRect=dp(t.localRect,e),t.rect=dp(t.rect,e),n&&t.rect.applyTransform(n),t.axisAligned=cp(n),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}({},a,o.transGroup.transform),i,r)}else Sm(o.labelInfoList,o.dirVec,i,r)};function wm(t,e,n){var i=new he;dm(t,e,i,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&function(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var n=t.transform;n&&(n[4]+=e.x,n[5]+=e.y);var i=t.rect;i&&(i.x+=e.x,i.y+=e.y);var r=t.obb;r&&r.fromBoundingRect(t.localRect,n)}}(e,i)}function Sm(t,e,n,i){for(var r=he.dot(i,e)>=0,o=0,a=t.length;o<a;o++){var s=t[r?o:a-1-o];s.label.ignore||wm(s,n,i)}}var Cm=function(){function t(t,e,n,i){this.group=new wd,this._axisModel=t,this._api=e,this._local={},this._shared=i||new ym(bm),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(t){var e=this._axisModel,n=e.getDefaultOption?e.getDefaultOption():{},i=pt(t.axisName,e.get("name")),r=e.get("nameMoveOverlap");null!=r&&"auto"!==r||(r=pt(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:pt(t.nameDirection,1),tickDirection:pt(t.tickDirection,1),labelDirection:pt(t.labelDirection,1),labelOffset:pt(t.labelOffset,0),silent:pt(t.silent,!0),axisName:i,nameLocation:gt(e.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:Em(i)&&r,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=o;var a=new wd({x:o.position[0],y:o.position[1],rotation:o.rotation});a.updateTransform(),this._transformGroup=a;var s=this._shared.ensureRecord(e);s.transGroup=this._transformGroup,s.dirVec=new he(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(t,e){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),Z(Mm,function(i){t[i]&&Tm[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,e||{})}),this},t.innerTextLayout=function(t,e,n){var i,r,o=Ko(e-t);return Qo(o)?(r=n>0?"top":"bottom",i="center"):Qo(o-fm)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<fm?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),Mm=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],Tm={axisLine:function(t,e,n,i,r,o,a){var s=i.get(["axisLine","show"]);if("auto"===s&&(s=!0,null!=t.raw.axisLineAutoShow&&(s=!!t.raw.axisLineAutoShow)),s){var l=i.axis.getExtent(),u=o.transform,c=[l[0],0],h=[l[1],0],d=c[0]>h[0];u&&(vn(c,c,u),vn(h,h,u));var f=U({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),p={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:f};if(i.get(["axisLine","breakLine"])&&i.axis.scale.hasBreaks())null.buildAxisBreakLine(i,r,o,p);else{var g=new td(U({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]}},p));Uf(g.shape,g.style.lineWidth),g.anid="line",r.add(g)}var v=i.get(["axisLine","symbol"]);if(null!=v){var m=i.get(["axisLine","symbolSize"]);rt(v)&&(v=[v,v]),(rt(m)||at(m))&&(m=[m,m]);var y=kp(i.get(["axisLine","symbolOffset"])||0,m),_=m[0],x=m[1];Z([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((c[0]-h[0])*(c[0]-h[0])+(c[1]-h[1])*(c[1]-h[1]))}],function(e,n){if("none"!==v[n]&&null!=v[n]){var i=Tp(v[n],-_/2,-x/2,_,x,f.stroke,!0),o=e.r+e.offset,a=d?h:c;i.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),r.add(i)}})}}},axisTickLabelEstimate:function(t,e,n,i,r,o,a,s){Rm(e,r,s)&&km(t,e,n,i,r,o,a,1)},axisTickLabelDetermine:function(t,e,n,i,r,o,a,s){Rm(e,r,s)&&km(t,e,n,i,r,o,a,2);var l=function(t,e,n,i){var r=i.axis,o=i.getModel("axisTick"),a=o.get("show");if("auto"===a&&(a=!0,null!=t.raw.axisTickAutoShow&&(a=!!t.raw.axisTickAutoShow)),!a||r.scale.isBlank())return[];for(var s=o.getModel("lineStyle"),l=t.tickDirection*o.get("length"),u=Dm(r.getTicksCoords(),n.transform,l,j(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)e.add(u[c]);return u}(t,r,o,i);!function(t,e,n){t.showMinorTicks||Z(e,function(t){if(t&&t.label.ignore)for(var e=0;e<n.length;e++){var i=n[e],r=mm(i),o=vm(t.label);if(null!=r.tickValue&&!r.onBand&&r.tickValue===o.tickValue)return void Im(i)}})}(t,e.labelLayoutList,l),function(t,e,n,i,r){var o=i.axis,a=i.getModel("minorTick");if(t.showMinorTicks&&!o.scale.isBlank()){var s=o.getMinorTicksCoords();if(s.length)for(var l=a.getModel("lineStyle"),u=r*a.get("length"),c=j(l.getLineStyle(),j(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var d=Dm(s[h],n.transform,u,c,"minorticks_"+h),f=0;f<d.length;f++)e.add(d[f])}}(t,r,o,i,t.tickDirection)},axisName:function(t,e,n,i,r,o,a,s){var l=n.ensureRecord(i);e.nameEl&&(r.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=t.axisName;if(Em(u)){var c=t.nameLocation,h=t.nameDirection,d=i.getModel("nameTextStyle"),f=i.get("nameGap")||0,p=i.axis.getExtent(),g=i.axis.inverse?-1:1,v=new he(0,0),m=new he(0,0);"start"===c?(v.x=p[0]-g*f,m.x=-g):"end"===c?(v.x=p[1]+g*f,m.x=g):(v.x=(p[0]+p[1])/2,v.y=t.labelOffset+h*f,m.y=h);var y=[1,0,0,1,0,0];m.transform(le(y,y,t.rotation));var _,x,b=i.get("nameRotate");null!=b&&(b=b*fm/180),Pv(c)?_=Cm.innerTextLayout(t.rotation,null!=b?b:t.rotation,h):(_=function(t,e,n,i){var r,o,a=Ko(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return Qo(a-fm/2)?(o=l?"bottom":"top",r="center"):Qo(a-1.5*fm)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*fm&&a>fm/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,c,b||0,p),null!=(x=t.raw.axisNameAvailableWidth)&&(x=Math.abs(x/Math.sin(_.rotation)),!isFinite(x)&&(x=null)));var w=d.getFont(),S=i.get("nameTruncate",!0)||{},C=S.ellipsis,M=ft(t.raw.nameTruncateMaxWidth,S.maxWidth,x),T=s.nameMarginLevel||0,k=new Ho({x:v.x,y:v.y,rotation:_.rotation,silent:Cm.isLabelSilent(i),style:Ms(d,{text:u,font:w,overflow:"truncate",width:M,ellipsis:C,fill:d.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:d.get("align")||_.textAlign,verticalAlign:d.get("verticalAlign")||_.textVerticalAlign}),z2:1});if(sp({el:k,componentModel:i,itemName:u}),k.__fullText=u,k.anid="name",i.get("triggerEvent")){var I=Cm.makeAxisEventDataBase(i);I.targetType="axisName",I.name=u,ka(k).eventData=I}o.add(k),k.updateTransform(),e.nameEl=k;var D=l.nameLayout=lm({label:k,priority:k.z2,defaultAttr:{ignore:k.ignore},marginDefault:Pv(c)?pm[T]:gm[T]});if(l.nameLocation=c,r.add(k),k.decomposeTransform(),t.shouldNameMoveOverlap&&D){var R=n.ensureRecord(i);n.resolveAxisNameOverlap(t,n,i,D,m,R)}}}};function km(t,e,n,i,r,o,a,s){Am(e)||function(t,e,n,i,r,o){var a=r.axis,s=ft(t.raw.axisLabelShow,r.get(["axisLabel","show"])),l=new wd;n.add(l);var u=Gv(i);if(s&&!a.scale.isBlank()){var c=r.getModel("axisLabel"),h=a.getViewLabels(u),d=(ft(t.raw.labelRotate,c.get("rotate"))||0)*fm/180,f=Cm.innerTextLayout(t.rotation,d,t.labelDirection),p=r.getCategories&&r.getCategories(!0),g=[],v=r.get("triggerEvent"),m=1/0,y=-1/0;Z(h,function(t,e){var n,i="ordinal"===a.scale.type?a.scale.getRawOrdinalNumber(t.tickValue):t.tickValue,s=t.formattedLabel,u=t.rawLabel,d=c;if(p&&p[i]){var _=p[i];st(_)&&_.textStyle&&(d=new Xs(_.textStyle,c,r.ecModel))}var x=d.getTextColor()||r.get(["axisLine","lineStyle","color"]),b=d.getShallow("align",!0)||f.textAlign,w=pt(d.getShallow("alignMinLabel",!0),b),S=pt(d.getShallow("alignMaxLabel",!0),b),C=d.getShallow("verticalAlign",!0)||d.getShallow("baseline",!0)||f.textVerticalAlign,M=pt(d.getShallow("verticalAlignMinLabel",!0),C),T=pt(d.getShallow("verticalAlignMaxLabel",!0),C),k=10+((null===(n=t.time)||void 0===n?void 0:n.level)||0);m=Math.min(m,k),y=Math.max(y,k);var I=new Ho({x:0,y:0,rotation:0,silent:Cm.isLabelSilent(r),z2:k,style:Ms(d,{text:s,align:0===e?w:e===h.length-1?S:b,verticalAlign:0===e?M:e===h.length-1?T:C,fill:it(x)?x("category"===a.type?u:"value"===a.type?i+"":i,e):x})});I.anid="label_"+i;var D=vm(I);if(D.break=t.break,D.tickValue=i,D.layoutRotation=f.rotation,sp({el:I,componentModel:r,itemName:s,formatterParamsExtra:{isTruncated:function(){return I.isTruncated},value:u,tickIndex:e}}),v){var R=Cm.makeAxisEventDataBase(r);R.targetType="axisLabel",R.value=u,R.tickIndex=e,t.break&&(R.break={start:t.break.parsedBreak.vmin,end:t.break.parsedBreak.vmax}),"category"===a.type&&(R.dataIndex=i),ka(I).eventData=R,t.break&&function(t,e,n,i){n.on("click",function(n){var r={type:"expandAxisBreak",breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};r[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(r)})}(r,o,I,t.break)}g.push(I),l.add(I)}),Pm(e,$(g,function(t){return{label:t,priority:vm(t).break?t.z2+(y-m+1):t.z2,defaultAttr:{ignore:t.ignore}}}),l,u)}else Pm(e,[],l,u)}(t,e,r,s,i,a);var l=e.labelLayoutList;!function(t,e,n,i){var r=e.get(["axisLabel","margin"]);Z(n,function(n,o){var a=lm(n);if(a){var s=a.label,l=vm(s);a.suggestIgnore=s.ignore,s.ignore=!1,kn(Lm,Om),Lm.x=e.axis.dataToCoord(l.tickValue),Lm.y=t.labelOffset+t.labelDirection*r,Lm.rotation=l.layoutRotation,i.add(Lm),Lm.updateTransform(),i.remove(Lm),Lm.decomposeTransform(),kn(s,Lm),s.markRedraw(),am(a,!0),lm(a)}})}(t,i,l,o),function(t,e,n){var i=null;if(i){var r=i.retrieveAxisBreakPairs(n,function(t){return t&&vm(t.label).break},!0),o=t.get(["breakLabelLayout","moveOverlap"],!0);!0!==o&&"auto"!==o||Z(r,function(i){null.adjustBreakLabelPair(t.axis.inverse,e,[lm(n[i[0]]),lm(n[i[1]])])})}}(i,t.rotation,l);var u=t.optionHideOverlap;!function(t,e,n){if(!Av(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]),o=e.length;a(i,0,1),a(r,o-1,o-2)}function a(t,i,r){var o=lm(e[i]),a=lm(e[r]);if(o&&a)if(!1===t||o.suggestIgnore)Im(o.label);else if(a.suggestIgnore)Im(a.label);else{if(!n){var s=[0,0,0,0];o=cm({marginForce:s},o),a=cm({marginForce:s},a)}dm(o,a,null,{touchThreshold:.1})&&Im(t?a.label:o.label)}}}(i,l,u),u&&function(t){var e=[];function n(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}t.sort(function(t,e){return(e.suggestIgnore?1:0)-(t.suggestIgnore?1:0)||e.priority-t.priority});for(var i=0;i<t.length;i++){var r=lm(t[i]);if(!r.label.ignore){for(var o=r.label,a=r.labelLine,s=!1,l=0;l<e.length;l++)if(dm(r,e[l],null,{touchThreshold:.05})){s=!0;break}s?(n(o),a&&n(a)):e.push(r)}}}(Q(l,function(t){return t&&!t.label.ignore})),function(t,e,n,i){var r,o=n.axis,a=e.ensureRecord(n),s=[],l=Em(t.axisName)&&Pv(t.nameLocation);Z(i,function(t){var e=lm(t);if(e&&!e.label.ignore){s.push(e);var n=a.transGroup;l&&(n.transform?ue(_m,n.transform):re(_m),e.transform&&ae(_m,_m,e.transform),Re.copy(xm,e.localRect),xm.applyTransform(_m),r?r.union(xm):Re.copy(r=new Re(0,0,0,0),xm))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",c=a.transGroup[u];if(s.sort(function(t,e){return Math.abs(t.label[u]-c)-Math.abs(e.label[u]-c)}),l&&r){var h=o.getExtent(),d=Math.min(h[0],h[1]),f=Math.max(h[0],h[1])-d;r.union(new Re(d,0,f,1))}a.stOccupiedRect=r,a.labelInfoList=s}(t,n,i,l)}function Im(t){t&&(t.ignore=!0)}function Dm(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(vn(a,a,e),vn(s,s,e));var c=new td({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Uf(c.shape,c.style.lineWidth),c.anid=r+"_"+t[l].tickValue,o.push(c);var h=mm(c);h.onBand=!!t[l].onBand,h.tickValue=t[l].tickValue}return o}function Rm(t,e,n){if(Am(t)){var i=t.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var r=!0,o=0;o<i.length;o++)r=r&&i[o]();if(r)return!1}i.length&&(e.remove(t.labelGroup),Pm(t,null,null,null))}return!0}function Am(t){return!!t.labelLayoutList}function Pm(t,e,n,i){t.labelLayoutList=e,t.labelGroup=n,t.axisLabelsCreationContext=i}var Lm=new To,Om=new To;function Em(t){return!!t}const Bm=Cm;function zm(t,e,n){n=n||{};var i=e.axis,r={},o=i.getAxesOnZeroOf()[0],a=i.position,s=o?"onZero":a,l=i.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],c={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,d="x"===l?[u[2]-h,u[3]+h]:[u[0]-h,u[1]+h];if(o){var f=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(f,d[1]),d[0])}r.position=["y"===l?d[c[s]]:u[0],"x"===l?d[c[s]]:u[3]],r.rotation=Math.PI/2*("x"===l?0:1),r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],r.labelOffset=o?d[c[a]]-d[c.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),ft(n.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var p=e.get(["axisLabel","rotate"]);return r.labelRotate="top"===s?-p:p,r.z2=1,r}function Fm(t){var e={xAxisModel:null,yAxisModel:null};return Z(e,function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,Ca).models[0];e[i]=o}),e}var Nm=[[3,1],[0,2]],Vm=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Bv,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=J(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;Ng(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(kv(l,s),Ng(l)&&(e=a))}r.length&&(e||kv((e=r.pop()).scale,e.model),Z(r,function(t){!function(t,e,n){var i=tv.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,{expandToNicedExtent:!0}),a=r.length-1,s=i.getInterval.call(n),l=Tv(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;"log"===t.type&&(u=Yg(t.base,u,!0)),t.setBreaksFromOption(Ov(e)),t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var d=i.getExtent.call(t);c&&(u[0]=d[0]),h&&(u[1]=d[1]);var f=i.getInterval.call(t),p=u[0],g=u[1];if(c&&h)f=(g-p)/a;else if(c)for(g=u[0]+f*a;g<u[1]&&isFinite(g)&&isFinite(u[1]);)f=Vg(f),g=u[0]+f*a;else if(h)for(p=u[1]-f*a;p>u[0]&&isFinite(p)&&isFinite(u[0]);)f=Vg(f),p=u[1]-f*a;else{t.getTicks().length-1>a&&(f=Vg(f));var v=f*a;(p=qo((g=Math.ceil(u[1]/f)*f)-v))<0&&u[0]>=0?(p=0,g=qo(v)):g>0&&u[1]<=0&&(g=0,p=-qo(v))}var m=(r[0].value-o[0].value)/s,y=(r[a].value-o[a].value)/s;i.setExtent.call(t,p+f*m,g+f*y),i.setInterval.call(t,f),(m||y)&&i.setNiceExtent.call(t,p+f,g-f)}(t.scale,t.model,e.scale)}))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};Z(n.x,function(t){Gm(n,"y",t,r)}),Z(n.y,function(t){Gm(n,"x",t,r)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=qc(t,e),r=this._rect=jc(t.getBoxLayoutParams(),i.refContainer),o=this._axesMap,a=this._coordsList,s=t.get("containLabel");if(Um(o,r),!n){var l=function(t,e,n,i,r){var o=new ym(qm);return Z(n,function(n){return Z(n,function(n){if(Lv(n.model)){var a=!i;n.axisBuilder=function(t,e,n,i,r,o){for(var a=zm(t,n),s=!1,l=!1,u=0;u<e.length;u++)Ng(e[u].getOtherAxis(n.axis).scale)&&(s=l=!0,"category"===n.axis.type&&n.axis.onBand&&(l=!1));return a.axisLineAutoShow=s,a.axisTickAutoShow=l,a.defaultNameMoveOverlap=o,new Bm(n,i,a,r)}(t,e,n.model,r,o,a)}})}),o}(r,a,o,s,e),u=void 0;if(s)u=Xm(r.clone(),"axisLabel",null,r,o,l,i);else{var c=function(t,e,n){var i,r=t.get("outerBoundsMode",!0);"same"===r?i=e.clone():null!=r&&"auto"!==r||(i=jc(t.get("outerBounds",!0)||Cg,n.refContainer));var o=t.get("outerBoundsContain",!0);return{outerBoundsRect:i,parsedOuterBoundsContain:null==o||"auto"===o||X(["all","axisLabel"],o)<0?"all":o,outerBoundsClamp:[Yo(pt(t.get("outerBoundsClampWidth",!0),Mg[0]),e.width),Yo(pt(t.get("outerBoundsClampHeight",!0),Mg[1]),e.height)]}}(t,r,i),h=c.outerBoundsRect,d=c.parsedOuterBoundsContain,f=c.outerBoundsClamp;h&&(u=Xm(h,d,f,r,o,l,i))}Ym(r,o,2,null,u,i)}Z(this._coordsList,function(t){t.calcAffineTransform()})},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}st(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",Ca).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",Ca).models[0],a=t.gridModel,s=this._coordsList;return i?X(s,e=i.coordinateSystem)<0&&(e=null):r&&o?e=this.getCartesian(r.componentIndex,o.componentIndex):r?n=this.getAxis("x",r.componentIndex):o?n=this.getAxis("y",o.componentIndex):a&&a.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,i){if(Hm(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new rm(e,function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Kg({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new fv({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Zg.getClass(e)||tv)}}(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),a[e][i]=u,s[e]++}}}this._axesMap=a,Z(a.x,function(e,n){Z(a.y,function(r,o){var a="x"+n+"y"+o,s=new Nv(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)})})},t.prototype._updateScale=function(t,e){function n(t,e){Z(function(t,e){var n={};return Z(t.mapDimensionsAll(e),function(e){n[function(t,e){return Eu(t,e)?t.getCalculationInfo("stackResultDimension"):e}(t,e)]=!0}),J(n)}(t,e.dim),function(n){e.scale.unionExtentFromData(t,n)})}Z(this._axesList,function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}}),t.eachSeries(function(t){if(function(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}(t)){var i=Fm(t),r=i.xAxisModel,o=i.yAxisModel;if(!Hm(r,e)||!Hm(o,e))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}},this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return Z(this.getCartesians(),function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);X(e,r)<0&&e.push(r),X(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)}),e.eachSeries(function(t){!function(t){var e=t.targetModel,n=t.coordSysType,i=t.coordSysProvider,r=t.isDefaultDataCoordSys,o=function(t){var e=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=0;if(e){var r="series"===t.mainType;null==n&&(n=r?"data":"box"),"data"===n?(i=1,r||(i=0)):"box"===n&&(i=2,r||function(t){return!!ku[t]}(e)||(i=0))}return{coordSysType:e,kind:i}}(e),a=o.kind,s=o.coordSysType;if(r&&1!==a&&(a=1,s=n),0===a||s!==n)return!1;var l=i(n,e);l&&(1===a?e.coordinateSystem=l:e.boxCoordinateSystem=l)}({targetModel:t,coordSysType:"cartesian2d",coordSysProvider:function(){var e=Fm(t),n=e.xAxisModel,i=e.yAxisModel;return n.getCoordSysModel().coordinateSystem.getCartesian(n.componentIndex,i.componentIndex)}})}),i},t.dimensions=Bv,t}();function Hm(t,e){return t.getCoordSysModel()===e}function Gm(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)Wm(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&Wm(o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0)}function c(t){return t.dim+"_"+t.index}}function Wm(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}(t)}function Um(t,e){Z(t.x,function(t){return jm(t,e.x,e.width)}),Z(t.y,function(t){return jm(t,e.y,e.height)})}function jm(t,e,n){var i=[0,n],r=t.inverse?1:0;t.setExtent(i[r],i[1-r]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e)}function Xm(t,e,n,i,r,o,a){Ym(i,r,1,e,!1,a);var s=[0,0,0,0];u(0),u(1),c(i,0,NaN),c(i,1,NaN);var l=null==function(t,e){if(t&&e)for(var n=0,i=t.length;n<i;n++)if(e.call(undefined,t[n],n,t))return t[n]}(s,function(t){return t>0});return rp(i,s,!0,!0,n),Um(r,i),l;function u(t){Z(r[Pf[t]],function(e){if(Lv(e.model)){var n=o.ensureRecord(e.model),i=n.labelInfoList;if(i)for(var r=0;r<i.length;r++){var a=i[r],s=e.scale.normalize(vm(a.label).tickValue);s=1===t?1-s:s,c(a.rect,t,s),c(a.rect,1-t,NaN)}var l=n.nameLayout;l&&(s=Pv(n.nameLocation)?.5:NaN,c(l.rect,t,s),c(l.rect,1-t,NaN))}})}function c(e,n,i){var r=t[Pf[n]]-e[Pf[n]],o=e[Lf[n]]+e[Pf[n]]-(t[Lf[n]]+t[Pf[n]]);r=h(r,1-i),o=h(o,i);var a=Nm[n][0],l=Nm[n][1];s[a]=Wo(s[a],r),s[l]=Wo(s[l],o)}function h(t,e){return t>0&&!dt(e)&&e>1e-4&&(t/=e),t}}function Ym(t,e,n,i,r,o){var a=2===n;Z(e,function(e){return Z(e,function(e){Lv(e.model)&&(function(t,e,n){var i=zm(e,n);t.updateCfg(i)}(e.axisBuilder,t,e.model),e.axisBuilder.build(a?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:r}))})});var s={x:0,y:0};function l(e){s[Pf[1-e]]=t[Lf[e]]<=.5*o.refContainer[Lf[e]]?0:1-e==1?2:1}l(0),l(1),Z(e,function(t,e){return Z(t,function(t){Lv(t.model)&&(("all"===i||a)&&t.axisBuilder.build({axisName:!0},{nameMarginLevel:s[e]}),a&&t.axisBuilder.build({axisLine:!0}))})})}var qm=function(t,e,n,i,r,o){var a="x"===n.axis.dim?"y":"x";bm(t,0,0,i,r,o),Pv(t.nameLocation)||Z(e.recordMap[a],function(t){t&&t.labelInfoList&&t.dirVec&&Sm(t.labelInfoList,t.dirVec,i,r)})};const Zm=Vm;function $m(t,e){return"all"===t||nt(t)&&X(t,e)>=0||t===e}function Km(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Jm(t)]}function Qm(t){return!!t.get(["handle","show"])}function Jm(t){return t.type+"||"+t.id}var ty={};const ey=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return w(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&function(t){var e=Km(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=Qm(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var o=function(t){var e=Km(t);return e&&e.axisPointerModel}(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){ty[t]=e},e.getAxisPointerClass=function(t){return t&&ty[t]},e.type="axis",e}(bg);var ny=xa(),iy=["splitArea","splitLine","minorSplitLine","breakArea"],ry=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return w(e,t),e.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;this._axisGroup=new wd,this.group.add(this._axisGroup),Lv(e)&&(this._axisGroup.add(e.axis.axisBuilder.group),Z(iy,function(t){e.get([t,"show"])&&oy[t](this,this._axisGroup,e,e.getCoordSysModel(),i)},this),r&&"changeAxisOrder"===r.type&&r.isInitSort||Kf(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r))},e.prototype.remove=function(){ny(this).splitAreaColors=null},e.type="cartesianAxis",e}(ey),oy={splitLine:function(t,e,n,i,r){var o=n.axis;if(!o.scale.isBlank()){var a=n.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=!1!==a.get("showMinLine"),c=!1!==a.get("showMaxLine");l=nt(l)?l:[l];for(var h=i.coordinateSystem.getRect(),d=o.isHorizontal(),f=0,p=o.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],v=[],m=s.getLineStyle(),y=0;y<p.length;y++){var _=o.toGlobalCoord(p[y].coord);if((0!==y||u)&&(y!==p.length-1||c)){var x=p[y].tickValue;d?(g[0]=_,g[1]=h.y,v[0]=_,v[1]=h.y+h.height):(g[0]=h.x,g[1]=_,v[0]=h.x+h.width,v[1]=_);var b=f++%l.length,w=new td({anid:null!=x?"line_"+x:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:v[0],y2:v[1]},style:j({stroke:l[b]},m),silent:!0});Uf(w.shape,m.lineWidth),e.add(w)}}}},minorSplitLine:function(t,e,n,i,r){var o=n.axis,a=n.getModel("minorSplitLine").getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=o.isHorizontal(),u=o.getMinorTicksCoords();if(u.length)for(var c=[],h=[],d=a.getLineStyle(),f=0;f<u.length;f++)for(var p=0;p<u[f].length;p++){var g=o.toGlobalCoord(u[f][p].coord);l?(c[0]=g,c[1]=s.y,h[0]=g,h[1]=s.y+s.height):(c[0]=s.x,c[1]=g,h[0]=s.x+s.width,h[1]=g);var v=new td({anid:"minor_line_"+u[f][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:d,silent:!0});Uf(v.shape,d.lineWidth),e.add(v)}},splitArea:function(t,e,n,i,r){!function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var c=s.length,h=ny(t).splitAreaColors,d=Tt(),f=0;if(h)for(var p=0;p<u.length;p++){var g=h.get(u[p].tickValue);if(null!=g){f=(g+(c-1)*p)%c;break}}var v=r.toGlobalCoord(u[0].coord),m=a.getAreaStyle();for(s=nt(s)?s:[s],p=1;p<u.length;p++){var y=r.toGlobalCoord(u[p].coord),_=void 0,x=void 0,b=void 0,w=void 0;r.isHorizontal()?(_=v,x=l.y,b=y-_,w=l.height,v=_+b):(_=l.x,x=v,b=l.width,v=x+(w=y-x));var S=u[p-1].tickValue;null!=S&&d.set(S,f),e.add(new To({anid:null!=S?"area_"+S:null,shape:{x:_,y:x,width:b,height:w},style:j({fill:s[f]},m),autoBatch:!0,silent:!0})),f=(f+1)%c}ny(t).splitAreaColors=d}}}(t,e,n,i)},breakArea:function(t,e,n,i,r){var o=null,a=n.axis.scale;o&&"ordinal"!==a.type&&o.rectCoordBuildBreakAxis(e,t,n,i.coordinateSystem.getRect(),r)}},ay=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return w(e,t),e.type="xAxis",e}(ry),sy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=ay.type,e}return w(e,t),e.type="yAxis",e}(ry),ly=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return w(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new To({shape:t.coordinateSystem.getRect(),style:j({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(bg),uy={offset:0};function cy(t){t.registerComponentView(ly),t.registerComponentModel(Tg),t.registerCoordinateSystem("cartesian2d",Zm),zg(t,"x",Ig,uy),zg(t,"y",Ig,uy),t.registerComponentView(ay),t.registerComponentView(sy),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var hy=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,dy=[],fy=Ot.browser.firefox&&+Ot.browser.version.split(".")[0]<39;function py(t,e,n,i){return n=n||{},i?gy(t,e,n):fy&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):gy(t,e,n),n}function gy(t,e,n){if(Ot.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(ju(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(Uu(dy,t,i,r))return n.zrX=dy[0],void(n.zrY=dy[1])}n.zrX=n.zrY=0}function vy(t){return t||window.event}function my(t,e,n){if(null!=(e=vy(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&py(t,r,e,n)}else{py(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&hy.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function yy(t,e,n,i){t.removeEventListener(e,n,i)}var _y=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},xy="\0__throttleOriginMethod",by="\0__throttleRate",wy="\0__throttleType";function Sy(t,e,n){var i,r,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];i=(new Date).getTime(),o=this,a=t;var f=s||e,p=s||n;s=null,r=i-(p?l:u)-f,clearTimeout(c),p?c=setTimeout(h,f):r>=0?h():c=setTimeout(h,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function Cy(t,e,n,i){var r=t[e];if(r){var o=r[xy]||r,a=r[wy];if(r[by]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=Sy(o,n,"debounce"===i))[xy]=o,r[wy]=i,r[by]=n}return r}}function My(t,e){var n=t[e];n&&n[xy]&&(n.clear&&n.clear(),t[e]=n[xy])}var Ty=xa(),ky=G,Iy=tt,Dy=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=et(Ry,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new wd,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);Oy(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=Km(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=Ty(t).pointerEl=new _[r.type](ky(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=Ty(t).labelEl=new Ho(ky(e.label));t.add(r),Py(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=Ty(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=Ty(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),Py(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=tp(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){_y(t.event)},onmousedown:Iy(this._onHandleDragMove,this,0,0),drift:Iy(this._onHandleDragMove,this),ondragend:Iy(this._onHandleDragEnd,this)}),i.add(r)),Oy(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");nt(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Cy(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){Ry(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Ly(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Ly(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Ly(i)),Ty(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),My(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function Ry(t,e,n,i){Ay(Ty(n).lastProp,i)||(Ty(n).lastProp=i,e?Mf(n,i,t):(n.stopAnimation(),n.attr(i)))}function Ay(t,e){if(st(t)&&st(e)){var n=!0;return Z(e,function(e,i){n=n&&Ay(t[i],e)}),!!n}return t===e}function Py(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Ly(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Oy(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function Ey(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:Dv(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};Z(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)}),rt(a)?o=a.replace("{value}",o):it(a)&&(o=a(s))}return o}function By(t,e,n){var i=[1,0,0,1,0,0];return le(i,i,n.rotation),se(i,i,n.position),qf([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}var zy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=Fy(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=function(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}(i),h=Ny[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}!function(t,e,n,i,r,o){var a=Bm.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),function(t,e,n,i,r){var o=Ey(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Oc(a.get("padding")||0),l=a.getFont(),u=ze(o,l),c=r.position,h=u.width+s[1]+s[3],d=u.height+s[0]+s[2],f=r.align;"right"===f&&(c[0]-=h),"center"===f&&(c[0]-=h/2);var p=r.verticalAlign;"bottom"===p&&(c[1]-=d),"middle"===p&&(c[1]-=d/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,h,d,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Ms(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}(e,i,r,o,{position:By(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}(e,t,zm(a.getRect(),n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=zm(e.axis.grid.getRect(),e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=By(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=Fy(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];return h[l]=u[l],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(Dy);function Fy(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var Ny={line:function(t,e,n){var i,r,o;return{type:"Line",subPixelOptimize:!0,shape:(i=[e,n[0]],r=[e,n[1]],o=Vy(t),{x1:i[o=o||0],y1:i[1-o],x2:r[o],y2:r[1-o]})}},shadow:function(t,e,n){var i,r,o,a=Math.max(1,t.getBandWidth()),s=n[1]-n[0];return{type:"Rect",shape:(i=[e-a/2,n[0]],r=[a,s],o=Vy(t),{x:i[o=o||0],y:i[1-o],width:r[o],height:r[1-o]})}}};function Vy(t){return"x"===t.dim?0:1}const Hy=zy,Gy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return w(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Ch.color.border,width:1,type:"dashed"},shadowStyle:{color:Ch.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:Ch.color.neutral00,padding:[5,7,5,7],backgroundColor:Ch.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:Ch.color.accent40,throttle:40}},e}(th);var Wy=xa(),Uy=Z;function jy(t,e,n){if(!Ot.node){var i=e.getZr();Wy(i).records||(Wy(i).records={}),function(t,e){function n(n,i){t.on(n,function(n){var r=function(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);Uy(Wy(t).records,function(t){t&&i(t,n,r.dispatchAction)}),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)})}Wy(t).initialized||(Wy(t).initialized=!0,n("click",et(Yy,"click")),n("mousemove",et(Yy,"mousemove")),n("globalout",Xy))}(i,e),(Wy(i).records[t]||(Wy(i).records[t]={})).handler=n}}function Xy(t,e,n){t.handler("leave",null,n)}function Yy(t,e,n,i){e.handler(t,n,i)}function qy(t,e){if(!Ot.node){var n=e.getZr();(Wy(n).records||{})[t]&&(Wy(n).records[t]=null)}}var Zy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return w(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";jy("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},e.prototype.remove=function(t,e){qy("axisPointer",e)},e.prototype.dispose=function(t,e){qy("axisPointer",e)},e.type="axisPointer",e}(bg);const $y=Zy;function Ky(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=_a(o,t);if(null==a||a<0||nt(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h=u.dim,d="x"===c||"radius"===c?1:0,f=o.mapDimension(h),p=[];p[d]=o.get(f,a),p[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(p)||[]}else i=l.dataToPoint(o.getValues($(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var Qy=xa();function Jy(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||tt(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){r_(r)&&(r=Ky({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=r_(r),u=o.axesInfo,c=s.axesInfo,h="leave"===i||r_(r),d={},f={},p={list:[],map:{}},g={showPointer:et(e_,f),showTooltip:et(n_,p)};Z(s.coordSysMap,function(t,e){var n=l||t.containPoint(r);Z(s.coordSysAxesInfo[e],function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&t_(t,a,g,!1,d)}})});var v={};return Z(c,function(t,e){var n=t.linkGroup;n&&!f[e]&&Z(n.axesInfo,function(e,i){var r=f[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,i_(e),i_(t)))),v[t.key]=o}})}),Z(v,function(t,e){t_(c[e],t,g,!0,d)}),function(t,e,n){var i=n.axesInfo=[];Z(e,function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}(f,c,d),function(t,e,n,i){if(!r_(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}(p,r,t,a),function(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=Qy(i)[r]||{},a=Qy(i)[r]={};Z(t,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&Z(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t})});var s=[],l=[];Z(o,function(t,e){!a[e]&&l.push(t)}),Z(a,function(t,e){!o[e]&&s.push(t)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),d}}function t_(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return Z(e.seriesModels,function(e,l){var u,c,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);c=d.dataIndices,u=d.nestestValue}else{if(!(c=e.indicesOfNearest(i,h[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var f=t-u,p=Math.abs(f);p<=a&&((p<a||f>=0&&s<0)&&(a=p,s=f,r=u,o.length=0),Z(c,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&U(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function e_(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function n_(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=Jm(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function i_(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function r_(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function o_(t){ey.registerAxisPointerClass("CartesianAxisPointer",Hy),t.registerComponentModel(Gy),t.registerComponentView($y),t.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!nt(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=function(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];Z(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var s=Jm(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel("tooltip",i);if(Z(n.getAxes(),et(f,!1,null)),n.getTooltipAxes&&i&&u.get("show")){var c="axis"===u.get("trigger"),h="cross"===u.get(["axisPointer","type"]),d=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||h)&&Z(d.baseAxes,et(f,!h||"cross",c)),h&&Z(d.otherAxes,et(f,"cross",!1))}}function f(i,s,c){var h=c.model.getModel("axisPointer",r),d=h.get("show");if(d&&("auto"!==d||i||Qm(h))){null==s&&(s=h.get("triggerTooltip")),h=i?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};Z(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=G(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&j(l,c.textStyle)}}return t.model.getModel("axisPointer",new Xs(s,n,i))}(c,u,r,e,i,s):h;var f=h.get("snap"),p=h.get("triggerEmphasis"),g=Jm(c.model),v=s||f||"category"===c.type,m=t.axesInfo[g]={key:g,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,triggerEmphasis:p,involveSeries:v,snap:f,useHandle:Qm(h),seriesModels:[],linkGroup:null};l[g]=m,t.seriesInvolved=t.seriesInvolved||v;var y=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if($m(o[i+"AxisId"],n.id)||$m(o[i+"AxisIndex"],n.componentIndex)||$m(o[i+"AxisName"],n.name))return r}}(o,c);if(null!=y){var _=a[y]||(a[y]={axesInfo:{}});_.axesInfo[g]=m,_.mapper=o[y].mapper,m.linkGroup=_}}}})}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries(function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&n.model&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&Z(t.coordSysAxesInfo[Jm(n.model)],function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})})}(n,t),n}(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Jy)}var a_=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},s_=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new a_(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new a_(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new a_(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new a_(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new a_(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new a_(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}();const l_=s_;var u_=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=py(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in h_)if(h_.hasOwnProperty(e)){var n=h_[e](this._track,t);if(n)return n}},t}();function c_(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var h_={pinch:function(t,e){var n=t.length;if(n){var i,r=(t[n-1]||{}).points,o=(t[n-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var a=c_(r)/c_(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}},d_="silent";function f_(){_y(this.event)}var p_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return qt(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Fi),g_=function(t,e){this.x=t,this.y=e},v_=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],m_=new Re(0,0,0,0),y_=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new g_(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new p_,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new l_(a),a}return qt(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(Z(v_,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=b_(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new g_(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new g_(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:f_}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new g_(t,e);if(x_(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Re(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var c=i[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(m_.copy(c.getBoundingRect()),c.transform&&m_.applyTransform(c.transform),m_.intersect(l)&&o.push(c))}if(o.length)for(var h=Math.PI/12,d=2*Math.PI,f=0;f<s;f+=4)for(var p=0;p<d;p+=h)if(x_(o,r,t+f*Math.cos(p),e+f*Math.sin(p),n),r.target)return r}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new u_);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new g_;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(Fi);function __(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return!r||d_}return!1}function x_(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=__(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==d_)){e.target=a;break}}}function b_(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}Z(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){y_.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=b_(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||pn(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});const w_=y_;function S_(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;!function(t,e,n){for(n--;e<n;){var i=t[e];t[e++]=t[n],t[n--]=i}}(t,e,r)}else for(;r<n&&i(t[r],t[r-1])>=0;)r++;return r-e}function C_(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function M_(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l<s&&o(t,e[n+r+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function T_(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(t,e[n+r+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function k_(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<32)C_(t,n,i,n+(o=S_(t,n,i,e)),e);else{var a=function(t,e){var n,i,r=7,o=0,a=[];function s(s){var l=n[s],u=i[s],c=n[s+1],h=i[s+1];i[s]=u+h,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var d=T_(t[c],t,l,u,0,e);l+=d,0!==(u-=d)&&0!==(h=M_(t[l+u-1],t,c,h,h-1,e))&&(u<=h?function(n,i,o,s){var l=0;for(l=0;l<i;l++)a[l]=t[n+l];var u=0,c=o,h=n;if(t[h++]=t[c++],0!==--s)if(1!==i){for(var d,f,p,g=r;;){d=0,f=0,p=!1;do{if(e(t[c],a[u])<0){if(t[h++]=t[c++],f++,d=0,0===--s){p=!0;break}}else if(t[h++]=a[u++],d++,f=0,1===--i){p=!0;break}}while((d|f)<g);if(p)break;do{if(0!==(d=T_(t[c],a,u,i,0,e))){for(l=0;l<d;l++)t[h+l]=a[u+l];if(h+=d,u+=d,(i-=d)<=1){p=!0;break}}if(t[h++]=t[c++],0===--s){p=!0;break}if(0!==(f=M_(a[u],t,c,s,0,e))){for(l=0;l<f;l++)t[h+l]=t[c+l];if(h+=f,c+=f,0===(s-=f)){p=!0;break}}if(t[h++]=a[u++],1===--i){p=!0;break}g--}while(d>=7||f>=7);if(p)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else{if(0===i)throw new Error;for(l=0;l<i;l++)t[h+l]=a[u+l]}}else{for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else for(l=0;l<i;l++)t[h+l]=a[u+l]}(l,u,c,h):function(n,i,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+i-1,c=s-1,h=o+s-1,d=0,f=0;if(t[h--]=t[u--],0!==--i)if(1!==s){for(var p=r;;){var g=0,v=0,m=!1;do{if(e(a[c],t[u])<0){if(t[h--]=t[u--],g++,v=0,0===--i){m=!0;break}}else if(t[h--]=a[c--],v++,g=0,1===--s){m=!0;break}}while((g|v)<p);if(m)break;do{if(0!==(g=i-T_(a[c],t,n,i,i-1,e))){for(i-=g,f=1+(h-=g),d=1+(u-=g),l=g-1;l>=0;l--)t[f+l]=t[d+l];if(0===i){m=!0;break}}if(t[h--]=a[c--],1===--s){m=!0;break}if(0!==(v=s-M_(t[u],a,0,s,s-1,e))){for(s-=v,f=1+(h-=v),d=1+(c-=v),l=0;l<v;l++)t[f+l]=a[d+l];if(s<=1){m=!0;break}}if(t[h--]=t[u--],0===--i){m=!0;break}p--}while(g>=7||v>=7);if(m)break;p<0&&(p=0),p+=2}if((r=p)<1&&(r=1),1===s){for(f=1+(h-=i),d=1+(u-=i),l=i-1;l>=0;l--)t[f+l]=t[d+l];t[h]=a[c]}else{if(0===s)throw new Error;for(d=h-(s-1),l=0;l<s;l++)t[d+l]=a[l]}}else{for(f=1+(h-=i),d=1+(u-=i),l=i-1;l>=0;l--)t[f+l]=t[d+l];t[h]=a[c]}else for(d=h-(s-1),l=0;l<s;l++)t[d+l]=a[l]}(l,u,c,h))}return n=[],i=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]<i[t+1]&&t--,s(t)}},pushRun:function(t,e){n[o]=t,i[o]=e,o+=1}}}(t,e),s=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=S_(t,n,i,e))<s){var l=r;l>s&&(l=s),C_(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var I_=!1;function D_(){I_||(I_=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function R_(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var A_=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=R_}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,k_(n,R_)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath(),r=e&&e.length,o=0,a=t.__clipPaths;if(!t.ignoreClip&&(r||i)){if(a||(a=t.__clipPaths=[]),r)for(var s=0;s<e.length;s++)a[o++]=e[s];for(var l=i,u=t;l;)l.parent=u,l.updateTransform(),a[o++]=l,u=l,l=l.getClipPath()}if(a&&(a.length=o),t.childrenRef){for(var c=t.childrenRef(),h=0;h<c.length;h++){var d=c[h];t.__dirty&&(d.__dirty|=1),this._updateAndAddDisplayable(d,a,n)}t.__dirty=0}else{var f=t;isNaN(f.z)&&(D_(),f.z=0),isNaN(f.z2)&&(D_(),f.z2=0),isNaN(f.zlevel)&&(D_(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,a,n);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,a,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,a,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=X(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();const P_=A_,L_=Ot.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};function O_(){return(new Date).getTime()}var E_=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return qt(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=O_()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,L_(function e(){t._running&&(L_(e),!t._paused&&t.update())})},e.prototype.start=function(){this._running||(this._time=O_(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=O_(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=O_()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new Bi(t,e.loop);return this.addAnimator(n),n},e}(Fi);const B_=E_;var z_,F_,N_=Ot.domSupported,V_=(F_={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:z_=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:$(z_,function(t){var e=t.replace("mouse","pointer");return F_.hasOwnProperty(e)?e:t})}),H_=["mousemove","mouseup"],G_=["pointermove","pointerup"],W_=!1;function U_(t){var e=t.pointerType;return"pen"===e||"touch"===e}function j_(t){t&&(t.zrByTouch=!0)}function X_(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var Y_=function(t,e){this.stopPropagation=Rt,this.stopImmediatePropagation=Rt,this.preventDefault=Rt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},q_={mousedown:function(t){t=my(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=my(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=my(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){X_(this,(t=my(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){W_=!0,t=my(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){W_||(t=my(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){j_(t=my(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),q_.mousemove.call(this,t),q_.mousedown.call(this,t)},touchmove:function(t){j_(t=my(this.dom,t)),this.handler.processGesture(t,"change"),q_.mousemove.call(this,t)},touchend:function(t){j_(t=my(this.dom,t)),this.handler.processGesture(t,"end"),q_.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&q_.click.call(this,t)},pointerdown:function(t){q_.mousedown.call(this,t)},pointermove:function(t){U_(t)||q_.mousemove.call(this,t)},pointerup:function(t){q_.mouseup.call(this,t)},pointerout:function(t){U_(t)||q_.mouseout.call(this,t)}};Z(["click","dblclick","contextmenu"],function(t){q_[t]=function(e){e=my(this.dom,e),this.trigger(t,e)}});var Z_={pointermove:function(t){U_(t)||Z_.mousemove.call(this,t)},pointerup:function(t){Z_.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function $_(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,function(t,e,n,i){t.addEventListener(e,n,i)}(t.domTarget,e,n,i)}function K_(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&yy(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var Q_=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};const J_=function(t){function e(e,n){var i,r,o,a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=e,a.painterRoot=n,a._localHandlerScope=new Q_(e,q_),N_&&(a._globalHandlerScope=new Q_(document,Z_)),i=a,r=a._localHandlerScope,o=r.domHandlers,Ot.pointerEventsSupported?Z(V_.pointer,function(t){$_(r,t,function(e){o[t].call(i,e)})}):(Ot.touchEventsSupported&&Z(V_.touch,function(t){$_(r,t,function(e){o[t].call(i,e),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}(r)})}),Z(V_.mouse,function(t){$_(r,t,function(e){e=vy(e),r.touching||o[t].call(i,e)})})),a}return qt(e,t),e.prototype.dispose=function(){K_(this._localHandlerScope),N_&&K_(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,N_&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){function n(n){$_(e,n,function(i){i=vy(i),X_(t,i.target)||(i=function(t,e){return my(t.dom,new Y_(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))},{capture:!0})}Ot.pointerEventsSupported?Z(G_,n):Ot.touchEventsSupported||Z(H_,n)}(this,e):K_(e)}},e}(Fi);var tx={},ex={},nx=function(){function t(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var r=new P_,o=n.renderer||"canvas";tx[o]||(o=J(tx)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new tx[o](e,r,n,t),s=n.ssr||a.ssrOnly;this.storage=r,this.painter=a;var l,u=Ot.node||Ot.worker||s?null:new J_(a.getViewportRoot(),a.root),c=n.useCoarsePointer;(null==c||"auto"===c?Ot.touchEventsSupported:!!c)&&(l=pt(n.pointerSize,44)),this.handler=new w_(r,a,u,a.root,l),this.animation=new B_({stage:{update:s?null:function(){return i._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return _i(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=_i(e[r].color,1);return(n/=i)<.4}return!1}(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=O_();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=O_();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof wd&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){var t;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete ex[t])},t}();function ix(t,e){var n=new nx(V(),t,e);return ex[n.id]=n,n}var rx="";"undefined"!=typeof navigator&&(rx=navigator.platform||"");var ox="rgba(0, 0, 0, 0.2)",ax=Ch.color.theme[0],sx=mi(ax,null,null,.9);const lx={darkMode:"auto",colorBy:"series",color:Ch.color.theme,gradientColor:[sx,ax],aria:{decal:{decals:[{color:ox,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ox,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ox,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ox,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ox,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ox,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:rx.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 ux,cx,hx,dx=Tt(),fx="\0_ec_inner",px=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new Xs(i),this._locale=new Xs(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=mx(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,mx(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):hx(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&Z(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=Tt(),s=e&&e.replaceMergeMainTypeMap;al(this).datasetMap=Tt(),Z(t,function(t,e){null!=t&&(th.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?G(t):W(n[e],t,!0))}),s&&s.each(function(t,e){th.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))}),th.topologicalTravel(o,th.getAllClassMainTypes(),function(e){var o=function(t,e,n){var i=dx.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,ua(t[e])),a=i.get(e),l=function(t,e,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=Tt();Z(e,function(t,n){st(t)||(e[n]=null)});var s,l,u=function(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||ya(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(t,a,n);return(i||r)&&function(t,e,n,i){Z(i,function(r,o){if(r&&null!=r.id){var a=ga(r.id),s=n.get(a);if(null!=s){var l=t[s];yt(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],i[o]=null}}})}(u,t,a,e),i&&function(t,e){Z(e,function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==n.id)&&!ya(n)&&!ya(o)&&pa("name",o,n))return t[r].newOption=n,void(e[i]=null)}})}(u,e),i||r?function(t,e,n){Z(e,function(e){if(e){for(var i,r=0;(i=t[r])&&(i.newOption||ya(i.existing)||i.existing&&null!=e.id&&!pa("id",e,i.existing));)r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}})}(u,e,r):o&&function(t,e){Z(e,function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}(u,e),s=u,l=Tt(),Z(s,function(t){var e=t.existing;e&&l.set(e.id,t)}),Z(s,function(t){var e=t.newOption;yt(!e||null==e.id||!l.get(e.id)||l.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&l.set(e.id,t),!t.keyInfo&&(t.keyInfo={})}),Z(s,function(t,e){var n=t.existing,i=t.newOption,r=t.keyInfo;if(st(i)){if(r.name=null!=i.name?ga(i.name):n?n.name:la+e,n)r.id=ga(n.id);else if(null!=i.id)r.id=ga(i.id);else{var o=0;do{r.id="\0"+r.name+"\0"+o++}while(l.get(r.id))}l.set(r.id,t)}}),u}(a,o,a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll");(function(t,e,n){Z(t,function(t){var i=t.newOption;st(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}(e,i,t.existing,n))})})(l,e,th),n[e]=null,i.set(e,null),r.set(e,0);var u,c=[],h=[],d=0;Z(l,function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=th.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(u)return;u=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=U({componentIndex:n},t.keyInfo);U(i=new a(r,this,this,s),s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(c.push(i.option),h.push(i),d++):(c.push(void 0),h.push(void 0))},this),n[e]=c,i.set(e,h),r.set(e,d),"series"===e&&ux(this)},this),this._seriesIndices||ux(this)},e.prototype.getOption=function(){var t=G(this.option);return Z(t,function(e,n){if(th.hasClass(n)){for(var i=ua(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!ya(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}}),delete t[fx],t},e.prototype.setTheme=function(t){this._theme=new Xs(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=i?(n=[],Z(ua(i),function(t){a[t]&&n.push(a[t])})):n=null!=r?gx("id",r,a):null!=o?gx("name",o,a):Q(a,function(t){return!!t}),vx(n,t)):[]},e.prototype.findComponents=function(t){var e,n,i,r,o,a=t.query,s=t.mainType,l=(n=s+"Index",i=s+"Id",r=s+"Name",!(e=a)||null==e[n]&&null==e[i]&&null==e[r]?null:{mainType:s,index:e[n],id:e[i],name:e[r]});return o=vx(l?this.queryComponents(l):Q(this._componentsMap.get(s),function(t){return!!t}),t),t.filter?Q(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(it(t)){var r=e,o=t;i.each(function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&o.call(r,e,i,i.componentIndex)}})}else for(var a=rt(t)?i.get(t):st(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=va(t,null);return Q(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Q(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},e.prototype.getSeries=function(){return Q(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){cx(this),Z(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},e.prototype.eachRawSeries=function(t,e){Z(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,e,n){cx(this),Z(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)},this)},e.prototype.eachRawSeriesByType=function(t,e,n){return Z(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return cx(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){cx(this);var n=[];Z(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=Tt(n)},e.prototype.restoreData=function(t){ux(this);var e=this._componentsMap,n=[];e.each(function(t,e){th.hasClass(e)&&n.push(e)}),th.topologicalTravel(n,th.getAllClassMainTypes(),function(n){Z(e.get(n),function(e){!e||"series"===n&&function(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}(e,t)||e.restoreData()})})},e.internalField=(ux=function(t){var e=t._seriesIndices=[];Z(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=Tt(e)},cx=function(t){},void(hx=function(t,e){t.option={},t.option[fx]=1,t._componentsMap=Tt({series:[]}),t._componentsCount=Tt();var n=e.aria;st(n)&&null==n.enabled&&(n.enabled=!0),function(t,e){var n=t.color&&!t.colorLayer;Z(e,function(e,i){"colorLayer"===i&&n||"color"===i&&t.color||th.hasClass(i)||("object"==typeof e?t[i]=t[i]?W(t[i],e,!1):G(e):null==t[i]&&(t[i]=e))})}(e,t._theme.option),W(e,lx,!1),t._mergeOption(e,null)})),e}(Xs);function gx(t,e,n){if(nt(e)){var i=Tt();return Z(e,function(t){null!=t&&null!=va(t,null)&&i.set(t,!0)}),Q(n,function(e){return e&&i.get(e[t])})}var r=va(e,null);return Q(n,function(e){return e&&null!=r&&e[t]===r})}function vx(t,e){return e.hasOwnProperty("subType")?Q(t,function(t){return t&&t.subType===e.subType}):t}function mx(t){var e=Tt();return t&&Z(ua(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}Y(px,nh);const yx=px;var _x=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];const xx=function(t){Z(_x,function(e){this[e]=tt(t[e],t)},this)};var bx=/^(min|max)?(.+)$/,Sx=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(Z(ua(t.series),function(t){t&&t.data&&ut(t.data)&&bt(t.data)}),Z(ua(t.dataset),function(t){t&&t.source&&ut(t.source)&&bt(t.source)})),t=G(t);var i=this._optionBackup,r=function(t,e,n){var i,r,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||a&&a.timeline);function d(t){Z(e,function(e){e(t,n)})}return a?(r=a).timeline||(r.timeline=s):((h||c)&&(t.options=t.media=null),r=t),c&&nt(u)&&Z(u,function(t){t&&t.option&&(t.query?o.push(t):i||(i=t))}),d(r),Z(l,function(t){return d(t)}),Z(o,function(t){return d(t.option)}),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:o}}(t,e,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],G(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=G(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,i=this._api.getWidth(),r=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,c=o.length;u<c;u++)Cx(o[u].query,i,r)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=$(s,function(t){return G(-1===t?a.option:o[t].option)})),this._currentMediaIndices=s,l},t}();function Cx(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return Z(t,function(t,e){var n=e.match(bx);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(i[a],t,o)||(r=!1)}}),r}const Mx=Sx;var Tx=Z,kx=st,Ix=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Dx(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=Ix.length;n<i;n++){var r=Ix[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?W(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?W(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function Rx(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,j(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function Ax(t){Rx(t,"itemStyle"),Rx(t,"lineStyle"),Rx(t,"areaStyle"),Rx(t,"label"),Rx(t,"labelLine"),Rx(t,"upperLabel"),Rx(t,"edgeLabel")}function Px(t,e){var n=kx(t)&&t[e],i=kx(n)&&n.textStyle;if(i)for(var r=0,o=ha.length;r<o;r++){var a=ha[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function Lx(t){t&&(Ax(t),Px(t,"label"),t.emphasis&&Px(t.emphasis,"label"))}function Ox(t){return nt(t)?t:t?[t]:[]}function Ex(t){return(nt(t)?t[0]:t)||{}}function Bx(t){t&&Z(zx,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var zx=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Fx=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Nx=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Vx(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Nx.length;n++){var i=Nx[n][1],r=Nx[n][0];null!=e[i]&&(e[r]=e[i])}}function Hx(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Gx(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Wx(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&Wx(t[n].children,e)}function Ux(t,e){(function(t,e){Tx(Ox(t.series),function(t){kx(t)&&function(t){if(kx(t)){Dx(t),Ax(t),Px(t,"label"),Px(t,"upperLabel"),Px(t,"edgeLabel"),t.emphasis&&(Px(t.emphasis,"label"),Px(t.emphasis,"upperLabel"),Px(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Dx(e),Lx(e));var n=t.markLine;n&&(Dx(n),Lx(n));var i=t.markArea;i&&Lx(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!ut(o))for(var a=0;a<o.length;a++)Lx(o[a]);Z(t.categories,function(t){Ax(t)})}if(r&&!ut(r))for(a=0;a<r.length;a++)Lx(r[a]);if((e=t.markPoint)&&e.data){var s=e.data;for(a=0;a<s.length;a++)Lx(s[a])}if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)nt(l[a])?(Lx(l[a][0]),Lx(l[a][1])):Lx(l[a])}"gauge"===t.type?(Px(t,"axisLabel"),Px(t,"title"),Px(t,"detail")):"treemap"===t.type?(Rx(t.breadcrumb,"itemStyle"),Z(t.levels,function(t){Ax(t)})):"tree"===t.type&&Ax(t.leaves)}}(t)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Tx(n,function(e){Tx(Ox(t[e]),function(t){t&&(Px(t,"axisLabel"),Px(t.axisPointer,"label"))})}),Tx(Ox(t.parallel),function(t){var e=t&&t.parallelAxisDefault;Px(e,"axisLabel"),Px(e&&e.axisPointer,"label")}),Tx(Ox(t.calendar),function(t){Rx(t,"itemStyle"),Px(t,"dayLabel"),Px(t,"monthLabel"),Px(t,"yearLabel")}),Tx(Ox(t.radar),function(t){Px(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),Tx(Ox(t.geo),function(t){kx(t)&&(Lx(t),Tx(Ox(t.regions),function(t){Lx(t)}))}),Tx(Ox(t.timeline),function(t){Lx(t),Rx(t,"label"),Rx(t,"itemStyle"),Rx(t,"controlStyle",!0);var e=t.data;nt(e)&&Z(e,function(t){st(t)&&(Rx(t,"label"),Rx(t,"itemStyle"))})}),Tx(Ox(t.toolbox),function(t){Rx(t,"iconStyle"),Tx(t.feature,function(t){Rx(t,"iconStyle")})}),Px(Ex(t.axisPointer),"label"),Px(Ex(t.tooltip).axisPointer,"label")})(t,e),t.series=ua(t.series),Z(t.series,function(t){if(st(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){if(null!=t.clockWise&&(t.clockwise=t.clockWise),Hx(t.label),(r=t.data)&&!ut(r))for(var n=0;n<r.length;n++)Hx(r[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var i=function(t){for(var e="pointer.color".split(","),n=t,i=0;i<e.length&&null!=(n=n&&n[e[i]]);i++);return n}(t);null!=i&&function(t,e,n){for(var i,r="itemStyle.color".split(","),o=t,a=0;a<r.length-1;a++)null==o[i=r[a]]&&(o[i]={}),o=o[i];null==o[r[a]]&&(o[r[a]]=n)}(t,0,i)}else if("bar"===e){var r;if(Vx(t),Vx(t.backgroundStyle),Vx(t.emphasis),(r=t.data)&&!ut(r))for(n=0;n<r.length;n++)"object"==typeof r[n]&&(Vx(r[n]),Vx(r[n]&&r[n].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),Gx(t),Wx(t.data,Gx)}else"graph"===e||"sankey"===e?function(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&j(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),Bx(t)}}),t.dataRange&&(t.visualMap=t.dataRange),Z(Fx,function(e){var n=t[e];n&&(nt(n)||(n=[n]),Z(n,function(t){Bx(t)}))})}var jx=xa(),Xx={itemStyle:Ut(Gs,!0),lineStyle:Ut(Ns,!0)},Yx={lineStyle:"stroke",itemStyle:"fill"};function qx(t,e){return t.visualStyleMapper||Xx[e]||(console.warn("Unknown style type '"+e+"'."),Xx.itemStyle)}function Zx(t,e){return t.visualDrawType||Yx[e]||(console.warn("Unknown style type '"+e+"'."),"fill")}var $x={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=qx(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=Zx(t,i),l=o[s],u=it(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=h,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||it(o.fill)?h:o.fill,o.stroke="auto"===o.stroke||it(o.stroke)?h:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=U({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}},Kx=new Xs,Qx={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=qx(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){Kx.option=n[i];var a=r(Kx);U(t.ensureUniqueItemVisual(e,"style"),a),Kx.option.decal&&(t.setItemVisual(e,"decal",Kx.option.decal),Kx.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Jx={performRawSeries:!0,overallReset:function(t){var e=Tt();t.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),jx(t).scope=r}}),t.eachSeries(function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=jx(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Zx(e,a);r.each(function(t){var e=r.getRawIndex(t);i[e]=t}),n.each(function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(u,o,c)}})}})}},tb=Math.PI,eb=function(){function t(t,e,n,i){this._stageTaskMap=Tt(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Tt();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Z(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{});yt(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)},this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Z(t,function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each(function(t){a(i,t)&&(t.dirty(),h=!0)}),h&&c.dirty(),o.updatePayload(c,n);var f=o.getPerformArgs(c,i.block);d.each(function(t){t.perform(f)}),c.perform(f)&&(r=!0)}else u&&u.each(function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)})}}),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Tt(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||ah({plan:ab,reset:sb,count:cb}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||ah({reset:nb});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=Tt(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1;function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,ah({reset:ib,onDirty:ob})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,r._pipe(t,n)}yt(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,d):u?u(n,i).each(d):(c=!1,Z(n.getSeries(),d)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return it(t)&&(t={overallReset:t,seriesType:hb(t)}),t.uid=Fu("stageHandler"),e&&(t.visualType=e),t},t}();function nb(t){t.overallReset(t.ecModel,t.api,t.payload)}function ib(t){return t.overallProgress&&rb}function rb(){this.agent.dirty(),this.getDownstream().dirty()}function ob(){this.agent&&this.agent.dirty()}function ab(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function sb(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=ua(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?$(e,function(t,e){return ub(e)}):lb}var lb=ub(0);function ub(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function cb(t){return t.data.count()}function hb(t){db=null;try{t(fb,pb)}catch(t){}return db}var db,fb={},pb={};function gb(t,e){for(var n in e.prototype)t[n]=Rt}gb(fb,yx),gb(pb,xx),fb.eachSeriesByType=fb.eachRawSeriesByType=function(t){db=t},fb.eachComponent=function(t){"series"===t.mainType&&t.subType&&(db=t.subType)};const vb=eb;var mb,yb=Ch.darkColor,_b=yb.background,xb=function(){return{axisLine:{lineStyle:{color:yb.axisLine}},splitLine:{lineStyle:{color:yb.axisSplitLine}},splitArea:{areaStyle:{color:[yb.backgroundTint,yb.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:yb.axisMinorSplitLine}},axisLabel:{color:yb.axisLabel},axisName:{}}},bb={label:{color:yb.secondary},itemStyle:{borderColor:yb.borderTint},dividerLineStyle:{color:yb.border}},wb={darkMode:!0,color:yb.theme,backgroundColor:_b,axisPointer:{lineStyle:{color:yb.border},crossStyle:{color:yb.borderShade},label:{color:yb.tertiary}},legend:{textStyle:{color:yb.secondary},pageTextStyle:{color:yb.tertiary}},textStyle:{color:yb.secondary},title:{textStyle:{color:yb.primary},subtextStyle:{color:yb.quaternary}},toolbox:{iconStyle:{borderColor:yb.accent50}},tooltip:{backgroundColor:yb.neutral20,defaultBorderColor:yb.border,textStyle:{color:yb.tertiary}},dataZoom:{borderColor:yb.accent10,textStyle:{color:yb.tertiary},brushStyle:{color:yb.backgroundTint},handleStyle:{color:yb.neutral00,borderColor:yb.accent20},moveHandleStyle:{color:yb.accent40},emphasis:{handleStyle:{borderColor:yb.accent50}},dataBackground:{lineStyle:{color:yb.accent30},areaStyle:{color:yb.accent20}},selectedDataBackground:{lineStyle:{color:yb.accent50},areaStyle:{color:yb.accent30}}},visualMap:{textStyle:{color:yb.secondary},handleStyle:{borderColor:yb.neutral30}},timeline:{lineStyle:{color:yb.accent10},label:{color:yb.tertiary},controlStyle:{color:yb.accent30,borderColor:yb.accent30}},calendar:{itemStyle:{color:yb.neutral00,borderColor:yb.neutral20},dayLabel:{color:yb.tertiary},monthLabel:{color:yb.secondary},yearLabel:{color:yb.secondary}},matrix:{x:bb,y:bb,backgroundColor:{borderColor:yb.axisLine},body:{itemStyle:{borderColor:yb.borderTint}}},timeAxis:xb(),logAxis:xb(),valueAxis:xb(),categoryAxis:xb(),line:{symbol:"circle"},graph:{color:yb.theme},gauge:{title:{color:yb.secondary},axisLine:{lineStyle:{color:[[1,yb.neutral05]]}},axisLabel:{color:yb.axisLabel},detail:{color:yb.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:yb.background}},radar:(mb=xb(),mb.axisName={color:yb.axisLabel},mb.axisLine.lineStyle.color=yb.neutral20,mb),treemap:{breadcrumb:{itemStyle:{color:yb.neutral20,textStyle:{color:yb.secondary}},emphasis:{itemStyle:{color:yb.neutral30}}}},sunburst:{itemStyle:{borderColor:yb.background}},map:{itemStyle:{borderColor:yb.border,areaColor:yb.neutral10},label:{color:yb.tertiary},emphasis:{label:{color:yb.primary},itemStyle:{areaColor:yb.highlight}},select:{label:{color:yb.primary},itemStyle:{areaColor:yb.highlight}}},geo:{itemStyle:{borderColor:yb.border,areaColor:yb.neutral10},emphasis:{label:{color:yb.primary},itemStyle:{areaColor:yb.highlight}},select:{label:{color:yb.primary},itemStyle:{color:yb.highlight}}}};wb.categoryAxis.splitLine.show=!1;const Sb=wb;var Cb=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(rt(t)){var r=zt(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};Z(t,function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Mb=["symbol","symbolSize","symbolRotate","symbolOffset"],Tb=Mb.concat(["symbolKeepAspect"]),kb={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a<Mb.length;a++){var s=Mb[a],l=t.get(s);it(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual(U({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var u=J(r);return{dataEach:o?function(e,n){for(var i=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,r[s](i,o))}}:null}}}}},Ib={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i<Tb.length;i++){var r=Tb[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}};function Db(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,i=t.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=_a(l,r.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:nt(u)?l.getName(u[0]):l.getName(u),selected:rt(i)?i:U({},i)})}})}function Rb(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var Ab=Math.round(9*Math.random()),Pb="function"==typeof Object.defineProperty,Lb=function(){function t(){this._id="__ec_inner_"+Ab++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return Pb?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}();const Ob=Lb;function Eb(t){return isFinite(t)}function Bb(t,e,n){for(var i="radial"===e.type?function(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*i+n.x,s=s*r+n.y,l*=o),a=Eb(a)?a:.5,s=Eb(s)?s:.5,l=l>=0&&Eb(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}(t,e,n):function(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=Eb(i)?i:0,r=Eb(r)?r:1,o=Eb(o)?o:0,a=Eb(a)?a:0,t.createLinearGradient(i,o,r,a)}(t,e,n),r=e.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function zb(t){return parseInt(t,10)}function Fb(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(t);return(t[r]||zb(s[i])||zb(t.style[i]))-(zb(s[o])||0)-(zb(s[a])||0)|0}function Nb(t){var e,n,i=t.style,r=i.lineDash&&i.lineWidth>0&&(e=i.lineDash,n=i.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:at(e)?[e]:nt(e)?e:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=$(r,function(t){return t/a}),o/=a)}return[r,o]}var Vb=new Gr(!0);function Hb(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Gb(t){return"string"==typeof t&&"none"!==t}function Wb(t){var e=t.fill;return null!=e&&"none"!==e}function Ub(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function jb(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function Xb(t,e,n){var i=ee(e.image,e.__image,n);if(ie(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*At),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var Yb=["shadowBlur","shadowOffsetX","shadowOffsetY"],qb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Zb(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){Qb(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?nr.opacity:a}(i||e.blend!==n.blend)&&(o||(Qb(t,r),o=!0),t.globalCompositeOperation=e.blend||nr.blend);for(var s=0;s<Yb.length;s++){var l=Yb[s];(i||e[l]!==n[l])&&(o||(Qb(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==n.shadowColor)&&(o||(Qb(t,r),o=!0),t.shadowColor=e.shadowColor||nr.shadowColor),o}function $b(t,e,n,i,r){var o=Jb(e,r.inHover),a=i?null:n&&Jb(n,r.inHover)||{};if(o===a)return!1;var s=Zb(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(Qb(t,r),s=!0),Gb(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(Qb(t,r),s=!0),Gb(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(Qb(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(Qb(t,r),s=!0),t.lineWidth=l)}for(var u=0;u<qb.length;u++){var c=qb[u],h=c[0];(i||o[h]!==a[h])&&(s||(Qb(t,r),s=!0),t[h]=o[h]||c[1])}return s}function Kb(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function Qb(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Jb(t,e){return e&&t.__hoverStyle||t.style}function tw(t,e){ew(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ew(t,e,n,i){var r=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=-2,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!function(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}(o,a)||(a&&a.length&&(Qb(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Qb(t,n),t.save(),function(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];i=i||o.isZeroArea(),Kb(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=i}(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c,h,d=e instanceof co&&e.autoBatch&&function(t){var e=Wb(t),n=Hb(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(e.style);s||(c=r,h=u.transform,c&&h?c[0]!==h[0]||c[1]!==h[1]||c[2]!==h[2]||c[3]!==h[3]||c[4]!==h[4]||c[5]!==h[5]:c||h)?(Qb(t,n),Kb(t,e)):d||Qb(t,n);var f=Jb(e,n.inHover);e instanceof co?(1!==n.lastDrawType&&(l=!0,n.lastDrawType=1),$b(t,e,u,l,n),d&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,i){var r,o=Hb(n),a=Wb(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||Vb,h=e.__dirty;if(!i){var d=n.fill,f=n.stroke,p=a&&!!d.colorStops,g=o&&!!f.colorStops,v=a&&!!d.image,m=o&&!!f.image,y=void 0,_=void 0,x=void 0,b=void 0,w=void 0;(p||g)&&(w=e.getBoundingRect()),p&&(y=h?Bb(t,d,w):e.__canvasFillGradient,e.__canvasFillGradient=y),g&&(_=h?Bb(t,f,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),v&&(x=h||!e.__canvasFillPattern?Xb(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=x),m&&(b=h||!e.__canvasStrokePattern?Xb(t,f,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),p?t.fillStyle=y:v&&(x?t.fillStyle=x:a=!1),g?t.strokeStyle=_:m&&(b?t.strokeStyle=b:o=!1)}var S,C,M=e.getGlobalScale();c.setScale(M[0],M[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(S=(r=Nb(e))[0],C=r[1]);var T=!0;(u||4&h)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),T=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),T&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=C),i||(n.strokeFirst?(o&&jb(t,n),a&&Ub(t,n)):(a&&Ub(t,n),o&&jb(t,n))),S&&t.setLineDash([])}(t,e,f,d),d&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):e instanceof po?(3!==n.lastDrawType&&(l=!0,n.lastDrawType=3),$b(t,e,u,l,n),function(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||M,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(o=(i=Nb(e))[0],a=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(Hb(n)&&t.strokeText(r,n.x,n.y),Wb(n)&&t.fillText(r,n.x,n.y)):(Wb(n)&&t.fillText(r,n.x,n.y),Hb(n)&&t.strokeText(r,n.x,n.y)),o&&t.setLineDash([])}}(t,e,f)):e instanceof yo?(2!==n.lastDrawType&&(l=!0,n.lastDrawType=2),function(t,e,n,i,r){Zb(t,Jb(e,r.inHover),n&&Jb(n,r.inHover),i,r)}(t,e,u,l,n),function(t,e,n){var i=e.__image=ee(n.image,e.__image,e,e.onload);if(i&&ie(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(i,u,c,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var h=a-(u=n.sx),d=s-(c=n.sy);t.drawImage(i,u,c,h,d,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}(t,e,f)):e.getTemporalDisplayables&&(4!==n.lastDrawType&&(l=!0,n.lastDrawType=4),function(t,e,n){var i=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=i.length;o<a;o++)(c=i[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),ew(t,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c;for(var l=0,u=r.length;l<u;l++){var c;(c=r[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),ew(t,c,s,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n)),d&&i&&Qb(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}var nw=new Ob,iw=new Qt(100),rw=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ow(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&nw.delete(t);var o=nw.get(t);if(o)return o;var a=j(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e,o=[n],s=!0,l=0;l<rw.length;++l){var u=a[rw[l]];if(null!=u&&!nt(u)&&!rt(u)&&!at(u)&&"boolean"!=typeof u){s=!1;break}o.push(u)}if(s){e=o.join(",")+(r?"-svg":"");var c=iw.get(e);c&&(r?t.svgElement=c:t.image=c)}var h,d=sw(a.dashArrayX),f=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(at(t)){var e=Math.ceil(t);return[e,e]}var n=$(t,function(t){return Math.ceil(t)});return t.length%2?n.concat(n):n}(a.dashArrayY),p=aw(a.symbol),g=$(d,function(t){return lw(t)}),v=lw(f),m=!r&&k.createCanvas(),y=r&&{tag:"g",attrs:{},key:"dcl",children:[]},_=function(){for(var t=1,e=0,n=g.length;e<n;++e)t=aa(t,g[e]);var i=1;for(e=0,n=p.length;e<n;++e)i=aa(i,p[e].length);t*=i;var r=v*g.length*p.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();m&&(m.width=_.width*n,m.height=_.height*n,h=m.getContext("2d")),function(){h&&(h.clearRect(0,0,m.width,m.height),a.backgroundColor&&(h.fillStyle=a.backgroundColor,h.fillRect(0,0,m.width,m.height)));for(var t=0,e=0;e<f.length;++e)t+=f[e];if(!(t<=0))for(var o=-v,s=0,l=0,u=0;o<_.height;){if(s%2==0){for(var c=l/2%p.length,g=0,x=0,b=0;g<2*_.width;){var w=0;for(e=0;e<d[u].length;++e)w+=d[u][e];if(w<=0)break;if(x%2==0){var S=.5*(1-a.symbolSize),C=g+d[u][x]*S,M=o+f[s]*S,T=d[u][x]*a.symbolSize,k=f[s]*a.symbolSize,I=b/2%p[c].length;D(C,M,T,k,p[c][I])}g+=d[u][x],++b,++x===d[u].length&&(x=0)}++u===d.length&&(u=0)}o+=f[s],++l,++s===f.length&&(s=0)}function D(t,e,o,s,l){var u=r?1:n,c=Tp(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(r){var d=i.painter.renderOneToVNode(c);d&&y.children.push(d)}else tw(h,c)}}(),s&&iw.put(e,m||y),t.image=m,t.svgElement=y,t.svgWidth=_.width,t.svgHeight=_.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,nw.set(t,s),t.dirty=!1,s}function aw(t){if(!t||0===t.length)return[["rect"]];if(rt(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!rt(t[n])){e=!1;break}if(e)return aw([t]);var i=[];for(n=0;n<t.length;++n)rt(t[n])?i.push([t[n]]):i.push(t[n]);return i}function sw(t){if(!t||0===t.length)return[[0,0]];if(at(t))return[[r=Math.ceil(t),r]];for(var e=!0,n=0;n<t.length;++n)if(!at(t[n])){e=!1;break}if(e)return sw([t]);var i=[];for(n=0;n<t.length;++n)if(at(t[n])){var r=Math.ceil(t[n]);i.push([r,r])}else(r=$(t[n],function(t){return Math.ceil(t)})).length%2==1?i.push(r.concat(r)):i.push(r);return i}function lw(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}const uw=new Fi;var cw={},hw=2e3,dw=4500,fw={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:hw,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:dw,ARIA:6e3,DECAL:7e3}},pw="__flagInMainProcess",gw="__mainProcessVersion",vw="__pendingUpdate",mw="__needsUpdateStatus",yw=/^[a-zA-Z0-9_]+$/,_w="__connectUpdateStatus";function xw(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return ww(this,t,e);Yw(this.id)}}function bw(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return ww(this,t,e)}}function ww(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),Fi.prototype[e].apply(t,n)}var Sw,Cw,Mw,Tw,kw,Iw,Dw,Rw,Aw,Pw,Lw,Ow,Ew,Bw,zw,Fw,Nw,Vw,Hw,Gw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e}(Fi),Ww=Gw.prototype;Ww.on=bw("on"),Ww.off=bw("off");var Uw=function(t){function e(e,n,i){var r=t.call(this,new Cb)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},r._dom=e,r[gw]=1,i.ssr;var o=r._zr=ix(e,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:pt(i.useDirtyRect,!1),useCoarsePointer:pt(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});r._ssr=i.ssr,r._throttledZrFlush=Sy(tt(o.flush,o),17),r._updateTheme(n),r._locale=function(t){if(rt(t)){var e=Qu[t.toUpperCase()]||{};return t===Zu||t===$u?G(e):W(G(e),G(Qu[Ku]),!1)}return W(G(t),G(Qu[Ku]),!1)}(i.locale||tc),r._coordSysMgr=new Au;var a=r._api=zw(r);function s(t,e){return t.__prio-e.__prio}return k_(Jw,s),k_(Kw,s),r._scheduler=new vb(r,a,Kw,Jw),r._messageCenter=new Gw,r._initEvents(),r.resize=tt(r.resize,r),o.animation.on("frame",r._onframe,r),Pw(o,r),Lw(o,r),bt(r),r}return w(e,t),e.prototype._onframe=function(){if(!this._disposed){Vw(this);var t=this._scheduler;if(this[vw]){var e=this[vw].silent;this[pw]=!0,Hw(this);try{Sw(this),Tw.update.call(this,null,this[vw].updateParams)}catch(t){throw this[pw]=!1,this[vw]=null,t}this._zr.flush(),this[pw]=!1,this[vw]=null,Rw.call(this,e),Aw.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),Iw(this,i),t.performVisualTasks(i),Bw(this,this._model,r,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[pw])if(this._disposed)Yw(this.id);else{var i,r,o;if(st(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[pw]=!0,Hw(this),!this._model||e){var a=new Mx(this._api),s=this._theme,l=this._model=new yx;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},Qw);var u={seriesTransition:o,optionChanged:!0};if(n)this[vw]={silent:i,updateParams:u},this[pw]=!1,this.getZr().wakeUp();else{try{Sw(this),Tw.update.call(this,null,u)}catch(t){throw this[vw]=null,this[pw]=!1,t}this._ssr||this._zr.flush(),this[vw]=null,this[pw]=!1,Rw.call(this,i),Aw.call(this,i)}}},e.prototype.setTheme=function(t,e){if(!this[pw])if(this._disposed)Yw(this.id);else{var n=this._model;if(n){var i=e&&e.silent,r=null;this[vw]&&(null==i&&(i=this[vw].silent),r=this[vw].updateParams,this[vw]=null),this[pw]=!0,Hw(this);try{this._updateTheme(t),n.setTheme(this._theme),Sw(this),Tw.update.call(this,{type:"setTheme"},r)}catch(t){throw this[pw]=!1,t}this[pw]=!1,Rw.call(this,i),Aw.call(this,i)}}},e.prototype._updateTheme=function(t){rt(t)&&(t=tS[t]),t&&((t=G(t))&&Ux(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ot.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr;return Z(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;Z(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Z(i,function(t){t.group.ignore=!1}),o}Yw(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(iS[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();Z(nS,function(o,h){if(o.group===n){var d=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(G(t)),f=o.getDom().getBoundingClientRect();a=i(f.left,a),s=i(f.top,s),l=r(f.right,l),u=r(f.bottom,u),c.push({dom:d,left:f.left,top:f.top})}});var d=(l*=h)-(a*=h),f=(u*=h)-(s*=h),p=k.createCanvas(),g=ix(p,{renderer:e?"svg":"canvas"});if(g.resize({width:d,height:f}),e){var v="";return Z(c,function(t){var e=t.left-a,n=t.top-s;v+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new To({shape:{x:0,y:0,width:d,height:f},style:{fill:t.connectedBackgroundColor}})),Z(c,function(t){var e=new yo({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)}),g.refreshImmediately(),p.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}Yw(this.id)},e.prototype.convertToPixel=function(t,e,n){return kw(this,"convertToPixel",t,e,n)},e.prototype.convertToLayout=function(t,e,n){return kw(this,"convertToLayout",t,e,n)},e.prototype.convertFromPixel=function(t,e,n){return kw(this,"convertFromPixel",t,e,n)},e.prototype.containPixel=function(t,e){var n;if(!this._disposed)return Z(wa(this._model,t),function(t,i){i.indexOf("Models")>=0&&Z(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n;Yw(this.id)},e.prototype.getVisual=function(t,e){var n=wa(this._model,t,{defaultMainType:"series"}),i=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=r?function(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}(i,r,e):function(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}(i,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Z(Xw,function(e){var n=function(n){var i,r=t.getModel(),o=n.target;if("globalout"===e?i={}:o&&Rb(o,function(t){var e=ka(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return i=U({},e.eventData),!0},!0),i){var a=i.componentType,s=i.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=i.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),u=l&&t["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:l,view:u},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)});var e=this._messageCenter;Z($w,function(n,i){e.on(i,function(e){t.trigger(i,e)})}),function(t,e,n){t.on("selectchanged",function(t){var i=n.getModel();t.isFromClick?(Db("map","selectchanged",e,i,t),Db("pie","selectchanged",e,i,t)):"select"===t.fromAction?(Db("map","selected",e,i,t),Db("pie","selected",e,i,t)):"unselect"===t.fromAction&&(Db("map","unselected",e,i,t),Db("pie","unselected",e,i,t))})}(e,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?Yw(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)Yw(this.id);else{this._disposed=!0,this.getDom()&&Ta(this.getDom(),oS,"");var t=this,e=t._api,n=t._model;Z(t._componentsViews,function(t){t.dispose(n,e)}),Z(t._chartsViews,function(t){t.dispose(n,e)}),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete nS[t.id]}},e.prototype.resize=function(t){if(!this[pw])if(this._disposed)Yw(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[vw]&&(null==i&&(i=this[vw].silent),n=!0,this[vw]=null),this[pw]=!0,Hw(this);try{n&&Sw(this),Tw.update.call(this,{type:"resize",animation:U({duration:0},t&&t.animation)})}catch(t){throw this[pw]=!1,t}this[pw]=!1,Rw.call(this,i),Aw.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)Yw(this.id);else if(st(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),eS[t]){var n=eS[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?Yw(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=U({},t);return e.type=Zw[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)Yw(this.id);else if(st(e)||(e={silent:!!e}),qw[t.type]&&this._model)if(this[pw])this._pendingActions.push(t);else{var n=e.silent;Dw.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&Ot.browser.weChat&&this._throttledZrFlush(),Rw.call(this,n),Aw.call(this,n)}},e.prototype.updateLabelLayout=function(){uw.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)Yw(this.id);else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function e(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),2===t.hoverState&&t.states.emphasis?e.push("emphasis"):1===t.hoverState&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=pp(t);e.eachRendered(function(t){return vp(t,n.z,n.zlevel),!0})}}function i(t,e){e.eachRendered(function(t){if(!kf(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function r(t,n){var i=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered(function(t){if(t.states&&t.states.emphasis){if(kf(t))return;if(t instanceof co&&function(t){var e=Ra(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}})}Sw=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Cw(t,!0),Cw(t,!1),e.plan()},Cw=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var h=zt(t.type);(c=new(e?bg.getClass(h.main,h.sub):ag.getClass(h.sub))).init(n,s),o[u]=c,r.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&i.prepareView(c,t,n,s)}for(e?n.eachComponent(function(t,e){"series"!==t&&u(e)}):n.eachSeries(u),l=0;l<r.length;){var c=r[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),r.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},Mw=function(t,e,n,i,r){var o=t._model;if(o.setUpdatePayload(n),i){var a={};a[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"];var s={mainType:i,query:a};r&&(s.subType=r);var l,u=n.excludeSeriesId;null!=u&&(l=Tt(),Z(ua(u),function(t){var e=va(t,null);null!=e&&l.set(e,!0)})),o&&o.eachComponent(s,function(e){if(!l||null==l.get(e.id))if(xs(n))if(e instanceof $h)n.type!==Oa||n.notBlur||e.get(["emphasis","disabled"])||function(t,e,n){var i=t.seriesIndex,r=t.getData(e.dataType);if(r){var o=_a(r,e);o=(nt(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var s=r.count(),l=0;!a&&l<s;)a=r.getItemGraphicEl(l++);if(a){var u=ka(a);ls(i,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&ls(i,c,h,n)}}}(e,n,t._api);else{var i=cs(e.mainType,e.componentIndex,n.name,t._api),r=i.focusSelf,o=i.dispatchers;n.type===Oa&&r&&!n.notBlur&&us(e.mainType,e.componentIndex,t._api),o&&Z(o,function(t){n.type===Oa?es(t):ns(t)})}else _s(n)&&e instanceof $h&&(function(t,e){if(_s(e)){var n=e.dataType,i=_a(t.getData(n),e);nt(i)||(i=[i]),t[e.type===Fa?"toggleSelect":e.type===Ba?"select":"unselect"](i,n)}}(e,n,t._api),hs(e),Nw(t))},t),o&&o.eachComponent(s,function(e){l&&null!=l.get(e.id)||c(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)}else Z([].concat(t._componentsViews).concat(t._chartsViews),c);function c(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}},Tw={prepareAndUpdate:function(t){Sw(this),Tw.update.call(this,t,t&&{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,e),Iw(this,i),a.update(i,r),t(i),s.performVisualTasks(i,e);var l=i.get("backgroundColor")||"transparent";o.setBackgroundColor(l);var u=i.get("darkMode");null!=u&&"auto"!==u&&o.setDarkMode(u),Ow(this,i,r,e,n),uw.trigger("afterupdate",i,r)}},updateTransform:function(e){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(e);var o=[];i.eachComponent(function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,r,e);l&&l.update&&o.push(s)}else o.push(s)}});var a=Tt();i.eachSeries(function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,i,r,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)}),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0,dirtyMap:a}),Bw(this,i,r,e,{},a),uw.trigger("afterupdate",i,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),ag.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),Ow(this,n,this._api,e,{}),uw.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries(function(t){t.getData().clearAllVisual()}),ag.markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent(function(t,r){if("series"!==t){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,e)}}),i.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,i,n._api,e)}),uw.trigger("afterupdate",i,this._api))},updateLayout:function(t){Tw.update.call(this,t)}},kw=function(t,e,n,i,r){if(t._disposed)Yw(t.id);else for(var o,a=t._model,s=t._coordSysMgr.getCoordinateSystems(),l=wa(a,n),u=0;u<s.length;u++){var c=s[u];if(c[e]&&null!=(o=c[e](a,l,i,r)))return o}},Iw=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},Dw=function(t,e){var n=this,i=this.getModel(),r=t.type,o=t.escapeConnect,a=qw[r],s=(a.update||"update").split(":"),l=s.pop(),u=null!=s[0]&&zt(s[0]);this[pw]=!0,Hw(this);var c=[t],h=!1;t.batch&&(h=!0,c=$(t.batch,function(e){return(e=j(U({},e),t)).batch=null,e}));var d,f=[],p=[],g=a.nonRefinedEventType,v=_s(t),m=xs(t);if(m&&ss(this._api),Z(c,function(e){var r=a.action(e,i,n._api);if(a.refineEvent?p.push(r):d=r,(d=d||U({},e)).type=g,f.push(d),m){var o=Sa(t),s=o.queryOptionMap,c=o.mainTypeSpecified?s.keys()[0]:"series";Mw(n,l,e,c),Nw(n)}else v?(Mw(n,l,e,"series"),Nw(n)):u&&Mw(n,l,e,u.main,u.sub)}),"none"!==l&&!m&&!v&&!u)try{this[vw]?(Sw(this),Tw.update.call(this,t),this[vw]=null):Tw[l].call(this,t)}catch(t){throw this[pw]=!1,t}if(d=h?{type:g,escapeConnect:o,batch:f}:f[0],this[pw]=!1,!e){var y=void 0;if(a.refineEvent){var _=a.refineEvent(p,t,i,this._api).eventContent;yt(st(_)),(y=j({type:a.refinedEventType},_)).fromAction=t.type,y.fromActionPayload=t,y.escapeConnect=!0}var x=this._messageCenter;x.trigger(d.type,d),y&&x.trigger(y.type,y)}},Rw=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Dw.call(this,n,t)}},Aw=function(t){!t&&this.trigger("updated")},Pw=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[vw]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},Lw=function(t,e){t.on("mouseover",function(t){var n=Rb(t.target,ys);n&&(function(t,e,n){var i=ka(t),r=cs(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=r.dispatchers,a=r.focusSelf;o?(a&&us(i.componentMainType,i.componentIndex,n),Z(o,function(t){return Ja(t,e)})):(ls(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&us(i.componentMainType,i.componentIndex,n),Ja(t,e))}(n,t,e._api),Nw(e))}).on("mouseout",function(t){var n=Rb(t.target,ys);n&&(function(t,e,n){ss(n);var i=ka(t),r=cs(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?Z(r,function(t){return ts(t,e)}):ts(t,e)}(n,t,e._api),Nw(e))}).on("click",function(t){var n=Rb(t.target,function(t){return null!=ka(t).dataIndex},!0);if(n){var i=n.selected?"unselect":"select",r=ka(n);e._api.dispatchAction({type:i,dataType:r.dataType,dataIndexInside:r.dataIndex,seriesIndex:r.seriesIndex,isFromClick:!0})}})},Ow=function(t,e,n,i,r){!function(t){var e=[],n=[],i=!1;if(t.eachComponent(function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})}),i){var r,o,a=e.concat(n);k_(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),Z(a,function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)})}}(e),Ew(t,e,n,i,r),Z(t._chartsViews,function(t){t.__alive=!1}),Bw(t,e,n,i,r),Z(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},Ew=function(t,e,o,a,s,l){Z(l||t._componentsViews,function(t){var s=t.__model;i(0,t),t.render(s,e,o,a),n(s,t),r(s,t)})},Bw=function(t,e,o,a,s,l){var u=t._scheduler;s=U(s||{},{updatedSeries:e.getSeries()}),uw.trigger("series:beforeupdate",e,o,s);var c=!1;e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;u.updatePayload(r,a),i(0,n),l&&l.get(e.uid)&&r.dirty(),r.perform(u.getPerformArgs(r))&&(c=!0),n.group.silent=!!e.get("silent"),function(t,e){var n=t.get("blendMode")||null;e.eachRendered(function(t){t.isGroup||(t.style.blend=n)})}(e,n),hs(e)}),u.unfinished=c||u.unfinished,uw.trigger("series:layoutlabels",e,o,s),uw.trigger("series:transition",e,o,s),e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];n(e,i),r(e,i)}),function(t,e){var n=t._zr.storage,i=0;n.traverse(function(t){t.isGroup||i++}),i>e.get("hoverLayerThreshold")&&!Ot.node&&!Ot.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}(t,e),uw.trigger("series:afterupdate",e,o,s)},Nw=function(t){t[mw]=!0,t.getZr().wakeUp()},Hw=function(t){t[gw]=(t[gw]+1)%1e3},Vw=function(t){t[mw]&&(t.getZr().storage.traverse(function(t){kf(t)||e(t)}),t[mw]=!1)},zw=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return w(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){es(e,n),Nw(t)},n.prototype.leaveEmphasis=function(e,n){ns(e,n),Nw(t)},n.prototype.enterBlur=function(e){!function(t){Za(t,Ua)}(e),Nw(t)},n.prototype.leaveBlur=function(e){is(e),Nw(t)},n.prototype.enterSelect=function(e){rs(e),Nw(t)},n.prototype.leaveSelect=function(e){os(e),Nw(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n.prototype.getMainProcessVersion=function(){return t[gw]},n}(xx))(t)},Fw=function(t){function e(t,e){for(var n=0;n<t.length;n++)t[n][_w]=e}Z(Zw,function(n,i){t._messageCenter.on(i,function(n){if(iS[t.group]&&0!==t[_w]){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),r=[];Z(nS,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),Z(r,function(t){1!==t[_w]&&t.dispatchAction(i)}),e(r,2)}})})}}(),e}(Fi),jw=Uw.prototype;jw.on=xw("on"),jw.off=xw("off"),jw.one=function(t,e,n){var i=this;this.on.call(this,t,function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),i.off(t,n)},n)};var Xw=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Yw(t){}var qw={},Zw={},$w={},Kw=[],Qw=[],Jw=[],tS={},eS={},nS={},iS={},rS=+new Date-0,oS=(new Date,"_echarts_instance_");function aS(t){return nS[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,oS)]}function sS(t,e){tS[t]=e}function lS(t){X(Qw,t)<0&&Qw.push(t)}function uS(t,e){pS(Kw,t,e,2e3)}function cS(t,e){uw.on(t,e)}function hS(t,e,n){var i,r,o,a,s;function l(t){return t.toLowerCase()}it(e)&&(n=e,e=""),st(t)?(i=t.type,r=t.event,a=t.update,s=t.publishNonRefinedEvent,n||(n=t.action),o=t.refineEvent):(i=t,r=e),r=l(r||i);var u=o?l(i):r;qw[i]||(yt(yw.test(i)&&yw.test(r)),o&&yt(r!==i),qw[i]={actionType:i,refinedEventType:r,nonRefinedEventType:u,update:a,action:n,refineEvent:o},$w[r]=1,o&&s&&($w[u]=1),Zw[u]=i)}function dS(t,e){pS(Jw,t,e,3e3,"visual")}var fS=[];function pS(t,e,n,i,r){if((it(e)||st(e))&&(n=e,e=i),!(X(fS,n)>=0)){fS.push(n);var o=vb.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function gS(t,e){eS[t]=e}function vS(t,e,n,i){return{eventContent:{selected:ds(n),isFromClick:e.isFromClick||!1}}}dS(hw,$x),dS(dw,Qx),dS(dw,Jx),dS(hw,kb),dS(dw,Ib),dS(7e3,function(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each(function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=ow(n,e))});var r=i.getVisual("decal");r&&(i.getVisual("style").decal=ow(r,e))}})}),lS(Ux),uS(900,function(t){var e=Tt();t.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.push(o)}}),e.each(function(t){0!==t.length&&("seriesDesc"===(t[0].seriesModel.get("stackOrder")||"seriesAsc")&&t.reverse(),Z(t,function(e,n){e.data.setCalculationInfo("stackedOnSeries",n>0?t[n-1].seriesModel:null)}),function(t){Z(t,function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,c){var h,d,f=a.get(e.stackedDimension,c);if(isNaN(f))return r;s?d=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var p=NaN,g=n-1;g>=0;g--){var v=t[g];if(s||(d=v.data.rawIndexOf(v.stackedByDimension,h)),d>=0){var m=v.data.getByRawIndex(v.stackResultDimension,d);if("all"===l||"positive"===l&&m>0||"negative"===l&&m<0||"samesign"===l&&f>=0&&m>0||"samesign"===l&&f<=0&&m<0){f=$o(f,m),p=m;break}}}return i[0]=f,i[1]=p,i})})}(t))})}),gS("default",function(t,e){j(e=e||{},{text:"loading",textColor:Ch.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Ch.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new wd,i=new To({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new Ho({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new To({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((r=new of({shape:{startAngle:-tb/2,endAngle:-tb/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*tb/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*tb/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}),hS({type:Oa,event:Oa,update:Oa},Rt),hS({type:Ea,event:Ea,update:Ea},Rt),hS({type:Ba,event:Na,update:Ba,action:Rt,refineEvent:vS,publishNonRefinedEvent:!0}),hS({type:za,event:Na,update:za,action:Rt,refineEvent:vS,publishNonRefinedEvent:!0}),hS({type:Fa,event:Na,update:Fa,action:Rt,refineEvent:vS,publishNonRefinedEvent:!0}),sS("default",{}),sS("dark",Sb);var mS={},yS=[],_S={registerPreprocessor:lS,registerProcessor:uS,registerPostInit:function(t){cS("afterinit",t)},registerPostUpdate:function(t){cS("afterupdate",t)},registerUpdateLifecycle:cS,registerAction:hS,registerCoordinateSystem:function(t,e){Au.register(t,e)},registerLayout:function(t,e){pS(Jw,t,e,1e3,"layout")},registerVisual:dS,registerTransform:function(t){var e=(t=G(t)).type;e||kl("");var n=e.split(":");2!==n.length&&kl("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,ph.set(e,t)},registerLoading:gS,registerMap:function(t,e,n){var i=cw.registerMap;i&&i(t,e,n)},registerImpl:function(t,e){cw[t]=e},PRIORITY:fw,ComponentModel:th,ComponentView:bg,SeriesModel:$h,ChartView:ag,registerComponentModel:function(t){th.registerClass(t)},registerComponentView:function(t){bg.registerClass(t)},registerSeriesModel:function(t){$h.registerClass(t)},registerChartView:function(t){ag.registerClass(t)},registerCustomSeries:function(t,e){!function(t,e){mS[t]=e}(t,e)},registerSubTypeDefaulter:function(t,e){th.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){var n;n=e,tx[t]=n}};function xS(t){nt(t)?Z(t,function(t){xS(t)}):X(yS,t)>=0||(yS.push(t),it(t)&&(t={install:t}),t.install(_S))}const bS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return w(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Ch.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Ch.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:Ch.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:Ch.color.tertiary,fontSize:14}},e}(th);function wS(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function SS(t){if(Ot.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var CS=SS(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function MS(t,e){if(!t)return e;e=Lc(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var TS=MS(SS(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),kS=MS(CS,"transform"),IS="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ot.transform3dSupported?"will-change:transform;":"");function DS(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!Ot.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=Ot.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+kS+":"+a+";":[["top",0],["left",0],[CS,a]]}function RS(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&function(t,e,n,i,r){Uu(Wu,e,i,r,!0)&&Uu(t,n,Wu[0],Wu[1])}(t,a,n,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var AS=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ot.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),r=e.appendTo,o=r&&(rt(r)?document.querySelector(r):ct(r)?r:it(r)&&r(t.getDom()));RS(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler;my(i.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=(o="position",(a=(r=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r))?o?a[o]:a:null),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var r,o,a,s=t.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=IS+function(t,e,n,i){var r=[],o=t.get("transitionDuration"),a=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),h=t.getModel("textStyle"),d=Fh(t,"html"),f=u+"px "+c+"px "+s+"px "+l;return r.push("box-shadow:"+f),e&&o>0&&r.push(function(t,e,n){var i="cubic-bezier(0.23,1,0.32,1)",r="",o="";return n&&(o="opacity"+(r=" "+t/2+"s "+i)+",visibility"+r),e||(r=" "+t+"s "+i,o+=(o.length?",":"")+(Ot.transformSupported?""+kS+r:",left"+r+",top"+r)),TS+":"+o}(o,n,i)),a&&r.push("background-color:"+a),Z(["width","color","radius"],function(e){var n="border-"+e,i=Lc(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))}),r.push(function(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var r=pt(t.get("lineHeight"),Math.round(3*n/2));n&&e.push("line-height:"+r+"px");var o=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return o&&a&&e.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),Z(["decoration","align"],function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)}),e.join(";")}(h)),null!=d&&r.push("padding:"+Oc(d).join("px ")+"px"),r.join(";")+";"}(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+DS(r[0],r[1],!0)+"border-color:"+Nc(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null!=t){var a="";if(rt(r)&&"item"===n.get("trigger")&&!wS(n)&&(a=function(t,e,n){if(!rt(n)||"inside"===n)return"";var i=t.get("backgroundColor"),r=t.get("borderWidth");e=Nc(e);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(r),6),u="",c=kS+":";X(["left","right"],s)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var h=a*Math.PI/180,d=l+r,f=d*Math.abs(Math.cos(h))+d*Math.abs(Math.sin(h)),p=e+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(u+=";"+s+":-"+Math.round(100*((f-Math.SQRT2*r)/2+Math.SQRT2*r-(f-d)/2))/100+"px")+";"+c+";","border-bottom:"+p,"border-right:"+p,"background-color:"+i+";"].join("")+'"></div>'}(n,i,r)),rt(t))o.innerHTML=t+a;else if(t){o.innerHTML="",nt(t)||(t=[t]);for(var s=0;s<t.length;s++)ct(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},t.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(RS(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style;Z(DS(n[0],n[1]),function(t){i[t[0]]=t[1]})}}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",Ot.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(tt(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;!function(t,e){function n(t){var e=t[Gu];e&&(e.clearMarkers&&e.clearMarkers(),delete t[Gu])}t&&n(t),e&&n(e)}(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var n=e.parentNode;n&&n.removeChild(e)}this.el=this._container=null},t}();const PS=AS;function LS(t){return Math.max(0,t)}function OS(t){var e=LS(t.shadowBlur||0),n=LS(t.shadowOffsetX||0),i=LS(t.shadowOffsetY||0);return{left:LS(e-n),right:LS(e+n),top:LS(e-i),bottom:LS(e+i)}}function ES(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const BS=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),ES(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i,r){var o=this;st(t)&&kl(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Ho({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Fh(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),Z(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){o.el.style[t]=n.get(t)}),Z(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){o.el.style[t]=a.get(t)||0}),this._zr.add(this.el);var s=this;this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=OS(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;ES(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=LS(r.borderWidth||0),a=OS(r);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(tt(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();var zS=new To({shape:{x:-1,y:-1,width:2,height:2}}),FS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return w(e,t),e.prototype.init=function(t,e){if(!Ot.node&&e.getDom()){var n,i=t.getComponent("tooltip"),r=this._renderMode="auto"===(n=i.get("renderMode"))?Ot.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===r?new BS(e):new PS(e,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!Ot.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?Cy(this,"_updatePosition",50,"fixRate"):My(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");jy("itemTooltip",this._api,tt(function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!Ot.node&&n.getDom()){var r=VS(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i=Sa(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o,a=Ma(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a)return n.getViewOfComponentModel(a).group.traverse(function(e){var n=ka(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0}),o?{componentMainType:r,componentIndex:a.componentIndex,el:o}:void 0}}(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=zS;l.x=i.x,l.y=i.y,l.update(),ka(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=Ky(i,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(VS(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&"axis"===NS([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var r,o;if("legend"===ka(n).ssrType)return;this._lastDataByCoordSys=null,Rb(n,function(t){if(t.tooltipDisabled)return r=o=null,!0;r||o||(null!=ka(t).dataIndex?r=t:null!=ka(t).tooltipConfig&&(o=t))},!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=tt(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=NS([e.tooltipOption],i),a=this._renderMode,s=[],l=Dh("section",{blocks:[],noHeader:!0}),u=[],c=new Nh;Z(t,function(t){Z(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=Ey(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=Dh("section",{header:o,noHeader:!_t(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),Z(t.seriesDataIndices,function(l){var d=n.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,p=d.getDataParams(f);if(!(p.dataIndex<0)){p.axisDim=t.axisDim,p.axisIndex=t.axisIndex,p.axisType=t.axisType,p.axisId=t.axisId,p.axisValue=Dv(e.axis,{value:r}),p.axisValueLabel=o,p.marker=c.makeTooltipMarker("item",Nc(p.color),a);var g=oh(d.formatTooltip(f,!0,null)),v=g.frag;if(v){var m=NS([d],i).get("valueFormatter");h.blocks.push(m?U({valueFormatter:m},v):v)}g.text&&u.push(g.text),s.push(p)}})}})}),l.blocks.reverse(),u.reverse();var h=e.position,d=o.get("order"),f=Eh(l,c,a,d,n.get("useUTC"),o.get("textStyle"));f&&u.unshift(f);var p="richText"===a?"\n\n":"<br/>",g=u.join(p);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],h,null,c)})},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=ka(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),h=this._renderMode,d=t.positionDefault,f=NS([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=f.get("trigger");if(null==p||"item"===p){var g=s.getDataParams(l,u),v=new Nh;g.marker=v.makeTooltipMarker("item",Nc(g.color),h);var m=oh(s.formatTooltip(l,!1,u)),y=f.get("order"),_=f.get("valueFormatter"),x=m.frag,b=x?Eh(_?U({valueFormatter:_},x):x,v,h,y,i.get("useUTC"),f.get("textStyle")):m.text,w="item_"+s.name+"_"+l;this._showOrMove(f,function(){this._showTooltipContent(f,b,g,w,t.offsetX,t.offsetY,t.position,t.target,v)}),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,r=ka(e),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent;rt(o)&&(o={content:o,formatter:o},a=!0),a&&i&&o.content&&((o=G(o)).content=qu(o.content));var s=[o],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=t.positionDefault,c=NS(s,this._tooltipModel,u?{position:u}:null),h=c.get("content"),d=Math.random()+"",f=new Nh;this._showOrMove(c,function(){var n=G(c.get("formatterParams")||{});this._showTooltipContent(c,h,n,d,t.offsetX,t.offsetY,t.position,e,f)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,d=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)).color;if(c)if(rt(c)){var f=t.ecModel.get("useUTC"),p=nt(n)?n[0]:n;h=c,p&&p.axisType&&p.axisType.indexOf("time")>=0&&(h=gc(p.axisValue,h,f)),h=Fc(h,n,!0)}else if(it(c)){var g=tt(function(e,i){e===this._ticket&&(u.setContent(i,l,t,d,a),this._updatePosition(t,a,r,o,u,n,s))},this);this._ticket=i,h=c(n,i,g)}else h=c;u.setContent(h,l,t,d,a),u.show(t,d),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i,r){return"axis"===n||nt(e)?{color:i||r}:nt(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),it(e)&&(e=e([n,i],o,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),nt(e))n=Xo(e[0],s),i=Xo(e[1],l);else if(st(e)){var f=e;f.width=u[0],f.height=u[1];var p=jc(f,{width:s,height:l});n=p.x,i=p.y,c=null,h=null}else if(rt(e)&&a){var g=function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+c+a;break;case"left":s=e.x-r-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}(e,d,u,t.get("borderWidth"));n=g[0],i=g[1]}else g=function(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}(n,i,r,s,l,c?null:20,h?null:20),n=g[0],i=g[1];c&&(n-=HS(c)?u[0]/2:"right"===c?u[0]:0),h&&(i-=HS(h)?u[1]/2:"bottom"===h?u[1]:0),wS(t)&&(g=function(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,[t=Math.max(t,0),e=Math.max(e,0)]}(n,i,r,s,l),n=g[0],i=g[1]),r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&Z(n,function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&Z(a,function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&Z(a,function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}),i&&Z(t.seriesDataIndices,function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!Ot.node&&e.getDom()&&(My(this,"_updatePosition"),this._tooltipContent.dispose(),qy("itemTooltip",e))},e.type="tooltip",e}(bg);function NS(t,e,n){var i,r=e.ecModel;n?(i=new Xs(n,r,r),i=new Xs(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Xs&&(a=a.get("tooltip",!0)),rt(a)&&(a={formatter:a}),a&&(i=new Xs(a,i,r)))}return i}function VS(t,e){return t.dispatchAction||tt(e.dispatchAction,e)}function HS(t){return"center"===t||"middle"===t}const GS=FS;function WS(t,e,n){var i=k.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}var US=function(t){function e(e,n,i){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||Vi,"string"==typeof e?r=WS(e,n,i):st(e)&&(e=(r=e).id),o.id=e,o.dom=r;var a=r.style;return a&&(It(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return qt(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=WS("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new Re(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length)(e=new Re(0,0,0,0)).copy(t),o.push(e);else{for(var e,n=!1,i=1/0,r=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new Re(0,0,0,0);h.copy(c),h.union(t),o[u]=h,n=!0;break}if(s){l.copy(t),l.union(c);var d=t.width*t.height,f=c.width*c.height,p=l.width*l.height-d-f;p<i&&(i=p,r=u)}}s&&(o[r].union(t),n=!0),n||((e=new Re(0,0,0,0)).copy(t),o.push(e)),s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c)if(f=t[c]){var h=f.shouldBePainted(n,i,!0,!0);(p=f.__isRendered&&(1&f.__dirty||!h)?f.getPrevPaintRect():null)&&u(p);var d=h&&(1&f.__dirty||!f.__isRendered)?f.getPaintRect():null;d&&u(d)}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var f,p;h=(f=e[c])&&f.shouldBePainted(n,i,!0,!0),!f||h&&f.__zr||!f.__isRendered||(p=f.getPrevPaintRect())&&u(p)}do{for(r=!1,c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(r=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(r);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var i=this.dom,r=this.ctx,o=i.width,a=i.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/u,a/u));var h=this.domBack;function d(t,n,i,o){if(r.clearRect(t,n,i,o),e&&"transparent"!==e){var a=void 0;ht(e)?(a=(e.global||e.__width===i&&e.__height===o)&&e.__canvasGradient||Bb(r,e,{x:0,y:0,width:i,height:o}),e.__canvasGradient=a,e.__width=i,e.__height=o):null!=e.image&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=Xb(r,e,{dirty:function(){c.setUnpainted(),c.painter.refresh()}})),r.save(),r.fillStyle=a||e,r.fillRect(t,n,i,o),r.restore()}s&&(r.save(),r.globalAlpha=l,r.drawImage(h,t,n,i,o),r.restore())}!n||s?d(0,0,o,a):n.length&&Z(n,function(t){d(t.x*u,t.y*u,t.width*u,t.height*u)})},e}(Fi);const jS=US;var XS=1e5,YS=314159,qS=.01,ZS=function(){function t(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=U({},n||{}),this.dpr=n.devicePixelRatio||Vi,this._singleCanvas=r,this.root=t,t.style&&(It(t),t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(r){var s=t,l=s.width,u=s.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=new jS(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[314159]=c,c.zlevel=YS,o.push(YS),this._domRoot=t}else{this._width=Fb(t,0,n),this._height=Fb(t,1,n);var h=this._domRoot=function(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);t.appendChild(h)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(XS)),i||(i=n.ctx).save(),ew(i,a,r,o===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(XS)},t.prototype.paintOne=function(t,e){tw(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer(function(t){t.afterBrush&&t.afterBrush()});else{var s=this;L_(function(){s._paintList(t,e,n,i)})}}},t.prototype._compositeManually=function(){var t=this.getLayer(YS).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},t.prototype._doPaintList=function(t,e,n){for(var i=this,r=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&r.push(l)}for(var u=!0,c=!1,h=function(a){var s,l=r[a],h=l.ctx,f=o&&l.createRepaintRects(t,e,d._width,d._height),p=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),m=l.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,m,f);else if(p===l.__startIndex){var y=t[p];y.incremental&&y.notClear&&!n||l.clear(!1,m,f)}-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=l.__startIndex);var _=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=p;s<l.__endIndex;s++){var r=t[s];if(r.__inHover&&(c=!0),i._doPaintEl(r,l,o,e,n,s===l.__endIndex-1),g&&Date.now()-v>15)break}n.prevElClipPaths&&h.restore()};if(f)if(0===f.length)s=l.__endIndex;else for(var x=d.dpr,b=0;b<f.length;++b){var w=f[b];h.save(),h.beginPath(),h.rect(w.x*x,w.y*x,w.width*x,w.height*x),h.clip(),_(w),h.restore()}else h.save(),_(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},d=this,f=0;f<r.length;f++)h(f);return Ot.wxa&&Z(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:u,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,n,i,r,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!i||s&&s.intersect(i))&&(ew(a,t,r,o),t.setPrevPaintRect(s))}else ew(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=YS);var n=this._layers[t];return n||((n=new jS("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?W(n,this._layerConfig[t],!0):this._layerConfig[t-qS]&&W(n,this._layerConfig[t-qS],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,a=null,s=-1;if(!n[t]&&function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(r>0&&t>i[0]){for(s=0;s<r-1&&!(i[s]<t&&i[s+1]>t);s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++)if((s=t[n]).zlevel!==t[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}var i,r,o=null,a=0;for(r=0;r<t.length;r++){var s,l=(s=t[r]).zlevel,u=void 0;i!==l&&(i=l,a=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(a>0?qS:0),this._needsManuallyCompositing),u.__builtin__||H("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==r&&(u.__dirty=!0),u.__startIndex=r,u.incremental?u.__drawIndex=-1:u.__drawIndex=r,e(r),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=r))}e(r),this.eachBuiltinLayer(function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,Z(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?W(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];r!==t&&r!==t+qS||W(this._layers[r],n[t],!0)}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(X(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=Fb(r,0,i),e=Fb(r,1,i),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(YS).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new jS("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,r=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];ew(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();const $S=ZS;function KS({theme:t,data:e}){const o=r(null),a=i(()=>{const t=e.flatMap(t=>{const e=new Date(t.start).getTime(),n=new Date(t.end).getTime(),i=(e+n)/2;return[{type:"line",name:t.event,data:[[e,0],[n,0]],lineStyle:{width:4,color:t.color},symbol:"none"},{type:"line",name:t.event,data:[[i,0]],symbol:t.icon,symbolSize:32,symbolOffset:[0,-25],tooltip:{formatter:()=>{const e=new Date(t.start).toLocaleString(void 0,{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit"}),n=new Date(t.end).toLocaleString(void 0,{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit"});return`\n <div style="padding:6px">\n <b>${qu(t.event.toUpperCase())}</b><br/>\n Start: ${qu(e)}<br/>\n End: ${qu(n)}<br/>\n </div>\n `}}}]});return t},[e]);return n(()=>{let e,n;return null!==o.current&&(e=function(t,e,n){var i=aS(t);if(i)return i;var r=new Uw(t,e,n);return r.id="ec_"+rS++,nS[r.id]=r,Ta(t,oS,r.id),Fw(r),uw.trigger("afterinit",r),r}(o.current,t),n=new ResizeObserver(()=>{e?.resize()}),n.observe(o.current)),()=>{e?.dispose(),n?.disconnect()}},[t]),n(()=>{if(null!==o.current){const t=aS(o.current),e={title:{text:"Event Timeline",left:"center"},xAxis:{type:"time",position:"bottom",axisTick:{show:!0,length:15,lineStyle:{color:"#999",width:2},inside:!0},axisLine:{lineStyle:{color:"#999",width:2}},axisLabel:{formatter:t=>{const e=new Date(t);return`${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}`},margin:10}},yAxis:{type:"value",min:0,max:0,show:!1},tooltip:{trigger:"item"},series:a};t?.setOption(e,!0)}},[t,a]),(0,x.jsx)("div",{ref:o,style:{height:"100%",width:"100%"}})}xS([function(t){t.registerComponentModel(wg),t.registerComponentView(Sg)},function(t){xS(cy),xS(o_)},function(t){t.registerChartView(mg),t.registerSeriesModel(Ip),t.registerLayout({seriesType:"line",plan:Kp(),reset:function(t){var e=t.getData(),n=t.coordinateSystem;if(t.pipelineContext,n){var i=$(n.dimensions,function(t){return e.mapDimension(t)}).slice(0,2),r=i.length,o=e.getCalculationInfo("stackResultDimension");Eu(e,i[0])&&(i[0]=o),Eu(e,i[1])&&(i[1]=o);var a=e.getStore(),s=e.getDimensionIndex(i[0]),l=e.getDimensionIndex(i[1]);return r&&{progress:function(t,e){for(var i=Gp((t.end-t.start)*r),o=[],u=[],c=t.start,h=0;c<t.end;c++){var d=void 0;if(1===r){var f=a.get(s,c);d=n.dataToPoint(f,null,u)}else o[0]=a.get(s,c),o[1]=a.get(l,c),d=n.dataToPoint(o,null,u);i[h++]=d[0],i[h++]=d[1]}e.setLayout("points",i)}}}}}),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{seriesType:"line",reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(a/h);if(isFinite(d)&&d>1){"lttb"===r?t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d)):"minmax"===r&&t.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/d));var f=void 0;rt(r)?f=yg[r]:it(r)&&(f=r),f&&t.setData(i.downSample(i.mapDimension(l.dim),1/d,f,_g))}}}})},function(t){t.registerPainter("canvas",$S)},function(t){xS(o_),t.registerComponentModel(bS),t.registerComponentView(GS),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Rt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Rt)}]);var QS={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};const JS=(n,i,r,o)=>{const a=e(({color:e="currentColor",size:r=24,stroke:a=2,title:s,className:l,children:u,...c},h)=>t("svg",{ref:h,...QS[n],width:r,height:r,className:["tabler-icon",`tabler-icon-${i}`,l].join(" "),..."filled"===n?{fill:e}:{strokeWidth:a,stroke:e},...c},[s&&t("title",{key:"svg-title"},s),...o.map(([e,n])=>t(e,n)),...Array.isArray(u)?u:[u]]));return a.displayName=`${r}`,a},tC=JS("outline","chevron-up","ChevronUp",[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]]),eC=JS("outline","chevron-down","ChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]),nC=JS("outline","selector","Selector",[["path",{d:"M8 9l4 -4l4 4",key:"svg-0"}],["path",{d:"M16 15l-4 4l-4 -4",key:"svg-1"}]]),iC={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},rC=Object.keys(iC).join("|"),oC=new RegExp(rC,"g");function aC(t,e,n){return t=sC(t,n),(e=sC(e,n)).length>t.length?0:t===e?7:(t=t.toLowerCase())===(e=e.toLowerCase())?6:t.startsWith(e)?5:t.includes(` ${e}`)?4:t.includes(e)?3:1===e.length?0:function(t){let e="";return t.split(" ").forEach(t=>{t.split("-").forEach(t=>{e+=t.substr(0,1)})}),e}(t).includes(e)?2:function(t,e){let n=0,i=0;function r(t,e,i){for(let r=i,o=e.length;r<o;r++)if(e[r]===t)return n+=1,r+1;return-1}const o=r(e[0],t,0);if(o<0)return 0;i=o;for(let n=1,o=e.length;n<o;n++)if(i=r(e[n],t,i),!(i>-1))return 0;return function(t){const i=1/t;return 1+n/e.length*i}(i-o)}(t,e)}function sC(t,e){let{keepDiacritics:n}=e;return t=`${t}`,n||(t=t.replace(oC,t=>iC[t])),t}function lC(t,e){let n=e;"object"==typeof e&&(n=e.accessor);const i=n(t);return null==i?[]:Array.isArray(i)?i:[String(i)]}const uC={maxRanking:1/0,minRanking:-1/0};function cC(t){return"function"==typeof t?uC:{...uC,...t}}function hC(t,e){return"function"==typeof t?t(e):t}function dC(t,e){return n=>{e.setState(e=>({...e,[t]:hC(n,e[t])}))}}function fC(t){return t instanceof Function}function pC(t,e,n){let i,r=[];return o=>{let a;n.key&&n.debug&&(a=Date.now());const s=t(o);if(s.length===r.length&&!s.some((t,e)=>r[e]!==t))return i;let l;if(r=s,n.key&&n.debug&&(l=Date.now()),i=e(...s),null==n||null==n.onChange||n.onChange(i),n.key&&n.debug&&null!=n&&n.debug()){const t=Math.round(100*(Date.now()-a))/100,e=Math.round(100*(Date.now()-l))/100,i=e/16,r=(t,e)=>{for(t=String(t);t.length<e;)t=" "+t;return t};console.info(`%c⏱ ${r(e,5)} /${r(t,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*i,120))}deg 100% 31%);`,null==n?void 0:n.key)}return i}}function gC(t,e,n,i){return{debug:()=>{var n;return null!=(n=null==t?void 0:t.debugAll)?n:t[e]},key:!1,onChange:i}}const vC="debugHeaders";function mC(t,e,n){var i;let r={id:null!=(i=n.id)?i:e.id,column:e,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const t=[],e=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(e),t.push(n)};return e(r),t},getContext:()=>({table:t,header:r,column:e})};return t._features.forEach(e=>{null==e.createHeader||e.createHeader(r,t)}),r}const yC={createTable:t=>{t.getHeaderGroups=pC(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,i,r)=>{var o,a;const s=null!=(o=null==i?void 0:i.map(t=>n.find(e=>e.id===t)).filter(Boolean))?o:[],l=null!=(a=null==r?void 0:r.map(t=>n.find(e=>e.id===t)).filter(Boolean))?a:[];return _C(e,[...s,...n.filter(t=>!(null!=i&&i.includes(t.id)||null!=r&&r.includes(t.id))),...l],t)},gC(t.options,vC)),t.getCenterHeaderGroups=pC(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,i,r)=>_C(e,n=n.filter(t=>!(null!=i&&i.includes(t.id)||null!=r&&r.includes(t.id))),t,"center"),gC(t.options,vC)),t.getLeftHeaderGroups=pC(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left],(e,n,i)=>{var r;return _C(e,null!=(r=null==i?void 0:i.map(t=>n.find(e=>e.id===t)).filter(Boolean))?r:[],t,"left")},gC(t.options,vC)),t.getRightHeaderGroups=pC(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.right],(e,n,i)=>{var r;return _C(e,null!=(r=null==i?void 0:i.map(t=>n.find(e=>e.id===t)).filter(Boolean))?r:[],t,"right")},gC(t.options,vC)),t.getFooterGroups=pC(()=>[t.getHeaderGroups()],t=>[...t].reverse(),gC(t.options,vC)),t.getLeftFooterGroups=pC(()=>[t.getLeftHeaderGroups()],t=>[...t].reverse(),gC(t.options,vC)),t.getCenterFooterGroups=pC(()=>[t.getCenterHeaderGroups()],t=>[...t].reverse(),gC(t.options,vC)),t.getRightFooterGroups=pC(()=>[t.getRightHeaderGroups()],t=>[...t].reverse(),gC(t.options,vC)),t.getFlatHeaders=pC(()=>[t.getHeaderGroups()],t=>t.map(t=>t.headers).flat(),gC(t.options,vC)),t.getLeftFlatHeaders=pC(()=>[t.getLeftHeaderGroups()],t=>t.map(t=>t.headers).flat(),gC(t.options,vC)),t.getCenterFlatHeaders=pC(()=>[t.getCenterHeaderGroups()],t=>t.map(t=>t.headers).flat(),gC(t.options,vC)),t.getRightFlatHeaders=pC(()=>[t.getRightHeaderGroups()],t=>t.map(t=>t.headers).flat(),gC(t.options,vC)),t.getCenterLeafHeaders=pC(()=>[t.getCenterFlatHeaders()],t=>t.filter(t=>{var e;return!(null!=(e=t.subHeaders)&&e.length)}),gC(t.options,vC)),t.getLeftLeafHeaders=pC(()=>[t.getLeftFlatHeaders()],t=>t.filter(t=>{var e;return!(null!=(e=t.subHeaders)&&e.length)}),gC(t.options,vC)),t.getRightLeafHeaders=pC(()=>[t.getRightFlatHeaders()],t=>t.filter(t=>{var e;return!(null!=(e=t.subHeaders)&&e.length)}),gC(t.options,vC)),t.getLeafHeaders=pC(()=>[t.getLeftHeaderGroups(),t.getCenterHeaderGroups(),t.getRightHeaderGroups()],(t,e,n)=>{var i,r,o,a,s,l;return[...null!=(i=null==(r=t[0])?void 0:r.headers)?i:[],...null!=(o=null==(a=e[0])?void 0:a.headers)?o:[],...null!=(s=null==(l=n[0])?void 0:l.headers)?s:[]].map(t=>t.getLeafHeaders()).flat()},gC(t.options,vC))}};function _C(t,e,n,i){var r,o;let a=0;const s=function(t,e){void 0===e&&(e=1),a=Math.max(a,e),t.filter(t=>t.getIsVisible()).forEach(t=>{var n;null!=(n=t.columns)&&n.length&&s(t.columns,e+1)},0)};s(t);let l=[];const u=(t,e)=>{const r={depth:e,id:[i,`${e}`].filter(Boolean).join("_"),headers:[]},o=[];t.forEach(t=>{const a=[...o].reverse()[0];let s,l=!1;if(t.column.depth===r.depth&&t.column.parent?s=t.column.parent:(s=t.column,l=!0),a&&(null==a?void 0:a.column)===s)a.subHeaders.push(t);else{const r=mC(n,s,{id:[i,e,s.id,null==t?void 0:t.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${o.filter(t=>t.column===s).length}`:void 0,depth:e,index:o.length});r.subHeaders.push(t),o.push(r)}r.headers.push(t),t.headerGroup=r}),l.push(r),e>0&&u(o,e-1)},c=e.map((t,e)=>mC(n,t,{depth:a,index:e}));u(c,a-1),l.reverse();const h=t=>t.filter(t=>t.column.getIsVisible()).map(t=>{let e=0,n=0,i=[0];return t.subHeaders&&t.subHeaders.length?(i=[],h(t.subHeaders).forEach(t=>{let{colSpan:n,rowSpan:r}=t;e+=n,i.push(r)})):e=1,n+=Math.min(...i),t.colSpan=e,t.rowSpan=n,{colSpan:e,rowSpan:n}});return h(null!=(r=null==(o=l[0])?void 0:o.headers)?r:[]),l}const xC=(t,e,n,i,r,o,a)=>{let s={id:e,index:i,original:n,depth:r,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:e=>{if(s._valuesCache.hasOwnProperty(e))return s._valuesCache[e];const n=t.getColumn(e);return null!=n&&n.accessorFn?(s._valuesCache[e]=n.accessorFn(s.original,i),s._valuesCache[e]):void 0},getUniqueValues:e=>{if(s._uniqueValuesCache.hasOwnProperty(e))return s._uniqueValuesCache[e];const n=t.getColumn(e);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(s._uniqueValuesCache[e]=n.columnDef.getUniqueValues(s.original,i),s._uniqueValuesCache[e]):(s._uniqueValuesCache[e]=[s.getValue(e)],s._uniqueValuesCache[e]):void 0},renderValue:e=>{var n;return null!=(n=s.getValue(e))?n:t.options.renderFallbackValue},subRows:null!=o?o:[],getLeafRows:()=>function(t,e){const n=[],i=t=>{t.forEach(t=>{n.push(t);const r=e(t);null!=r&&r.length&&i(r)})};return i(t),n}(s.subRows,t=>t.subRows),getParentRow:()=>s.parentId?t.getRow(s.parentId,!0):void 0,getParentRows:()=>{let t=[],e=s;for(;;){const n=e.getParentRow();if(!n)break;t.push(n),e=n}return t.reverse()},getAllCells:pC(()=>[t.getAllLeafColumns()],e=>e.map(e=>function(t,e,n,i){const r={id:`${e.id}_${n.id}`,row:e,column:n,getValue:()=>e.getValue(i),renderValue:()=>{var e;return null!=(e=r.getValue())?e:t.options.renderFallbackValue},getContext:pC(()=>[t,n,e,r],(t,e,n,i)=>({table:t,column:e,row:n,cell:i,getValue:i.getValue,renderValue:i.renderValue}),gC(t.options,"debugCells"))};return t._features.forEach(i=>{null==i.createCell||i.createCell(r,n,e,t)},{}),r}(t,s,e,e.id)),gC(t.options,"debugRows")),_getAllCellsByColumnId:pC(()=>[s.getAllCells()],t=>t.reduce((t,e)=>(t[e.column.id]=e,t),{}),gC(t.options,"debugRows"))};for(let e=0;e<t._features.length;e++){const n=t._features[e];null==n||null==n.createRow||n.createRow(s,t)}return s},bC={createColumn:(t,e)=>{t._getFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,t.id),t.getFacetedRowModel=()=>t._getFacetedRowModel?t._getFacetedRowModel():e.getPreFilteredRowModel(),t._getFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,t.id),t.getFacetedUniqueValues=()=>t._getFacetedUniqueValues?t._getFacetedUniqueValues():new Map,t._getFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,t.id),t.getFacetedMinMaxValues=()=>{if(t._getFacetedMinMaxValues)return t._getFacetedMinMaxValues()}}},wC=(t,e,n)=>{var i,r;const o=null==n||null==(i=n.toString())?void 0:i.toLowerCase();return Boolean(null==(r=t.getValue(e))||null==(r=r.toString())||null==(r=r.toLowerCase())?void 0:r.includes(o))};wC.autoRemove=t=>PC(t);const SC=(t,e,n)=>{var i;return Boolean(null==(i=t.getValue(e))||null==(i=i.toString())?void 0:i.includes(n))};SC.autoRemove=t=>PC(t);const CC=(t,e,n)=>{var i;return(null==(i=t.getValue(e))||null==(i=i.toString())?void 0:i.toLowerCase())===(null==n?void 0:n.toLowerCase())};CC.autoRemove=t=>PC(t);const MC=(t,e,n)=>{var i;return null==(i=t.getValue(e))?void 0:i.includes(n)};MC.autoRemove=t=>PC(t);const TC=(t,e,n)=>!n.some(n=>{var i;return!(null!=(i=t.getValue(e))&&i.includes(n))});TC.autoRemove=t=>PC(t)||!(null!=t&&t.length);const kC=(t,e,n)=>n.some(n=>{var i;return null==(i=t.getValue(e))?void 0:i.includes(n)});kC.autoRemove=t=>PC(t)||!(null!=t&&t.length);const IC=(t,e,n)=>t.getValue(e)===n;IC.autoRemove=t=>PC(t);const DC=(t,e,n)=>t.getValue(e)==n;DC.autoRemove=t=>PC(t);const RC=(t,e,n)=>{let[i,r]=n;const o=t.getValue(e);return o>=i&&o<=r};RC.resolveFilterValue=t=>{let[e,n]=t,i="number"!=typeof e?parseFloat(e):e,r="number"!=typeof n?parseFloat(n):n,o=null===e||Number.isNaN(i)?-1/0:i,a=null===n||Number.isNaN(r)?1/0:r;if(o>a){const t=o;o=a,a=t}return[o,a]},RC.autoRemove=t=>PC(t)||PC(t[0])&&PC(t[1]);const AC={includesString:wC,includesStringSensitive:SC,equalsString:CC,arrIncludes:MC,arrIncludesAll:TC,arrIncludesSome:kC,equals:IC,weakEquals:DC,inNumberRange:RC};function PC(t){return null==t||""===t}const LC={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:t=>({columnFilters:[],...t}),getDefaultOptions:t=>({onColumnFiltersChange:dC("columnFilters",t),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(t,e)=>{t.getAutoFilterFn=()=>{const n=e.getCoreRowModel().flatRows[0],i=null==n?void 0:n.getValue(t.id);return"string"==typeof i?AC.includesString:"number"==typeof i?AC.inNumberRange:"boolean"==typeof i||null!==i&&"object"==typeof i?AC.equals:Array.isArray(i)?AC.arrIncludes:AC.weakEquals},t.getFilterFn=()=>{var n,i;return fC(t.columnDef.filterFn)?t.columnDef.filterFn:"auto"===t.columnDef.filterFn?t.getAutoFilterFn():null!=(n=null==(i=e.options.filterFns)?void 0:i[t.columnDef.filterFn])?n:AC[t.columnDef.filterFn]},t.getCanFilter=()=>{var n,i,r;return(null==(n=t.columnDef.enableColumnFilter)||n)&&(null==(i=e.options.enableColumnFilters)||i)&&(null==(r=e.options.enableFilters)||r)&&!!t.accessorFn},t.getIsFiltered=()=>t.getFilterIndex()>-1,t.getFilterValue=()=>{var n;return null==(n=e.getState().columnFilters)||null==(n=n.find(e=>e.id===t.id))?void 0:n.value},t.getFilterIndex=()=>{var n,i;return null!=(n=null==(i=e.getState().columnFilters)?void 0:i.findIndex(e=>e.id===t.id))?n:-1},t.setFilterValue=n=>{e.setColumnFilters(e=>{const i=t.getFilterFn(),r=null==e?void 0:e.find(e=>e.id===t.id),o=hC(n,r?r.value:void 0);var a;if(OC(i,o,t))return null!=(a=null==e?void 0:e.filter(e=>e.id!==t.id))?a:[];const s={id:t.id,value:o};var l;return r?null!=(l=null==e?void 0:e.map(e=>e.id===t.id?s:e))?l:[]:null!=e&&e.length?[...e,s]:[s]})}},createRow:(t,e)=>{t.columnFilters={},t.columnFiltersMeta={}},createTable:t=>{t.setColumnFilters=e=>{const n=t.getAllLeafColumns();null==t.options.onColumnFiltersChange||t.options.onColumnFiltersChange(t=>{var i;return null==(i=hC(e,t))?void 0:i.filter(t=>{const e=n.find(e=>e.id===t.id);return!e||!OC(e.getFilterFn(),t.value,e)})})},t.resetColumnFilters=e=>{var n,i;t.setColumnFilters(e?[]:null!=(n=null==(i=t.initialState)?void 0:i.columnFilters)?n:[])},t.getPreFilteredRowModel=()=>t.getCoreRowModel(),t.getFilteredRowModel=()=>(!t._getFilteredRowModel&&t.options.getFilteredRowModel&&(t._getFilteredRowModel=t.options.getFilteredRowModel(t)),t.options.manualFiltering||!t._getFilteredRowModel?t.getPreFilteredRowModel():t._getFilteredRowModel())}};function OC(t,e,n){return!(!t||!t.autoRemove)&&t.autoRemove(e,n)||void 0===e||"string"==typeof e&&!e}const EC={sum:(t,e,n)=>n.reduce((e,n)=>{const i=n.getValue(t);return e+("number"==typeof i?i:0)},0),min:(t,e,n)=>{let i;return n.forEach(e=>{const n=e.getValue(t);null!=n&&(i>n||void 0===i&&n>=n)&&(i=n)}),i},max:(t,e,n)=>{let i;return n.forEach(e=>{const n=e.getValue(t);null!=n&&(i<n||void 0===i&&n>=n)&&(i=n)}),i},extent:(t,e,n)=>{let i,r;return n.forEach(e=>{const n=e.getValue(t);null!=n&&(void 0===i?n>=n&&(i=r=n):(i>n&&(i=n),r<n&&(r=n)))}),[i,r]},mean:(t,e)=>{let n=0,i=0;if(e.forEach(e=>{let r=e.getValue(t);null!=r&&(r=+r)>=r&&(++n,i+=r)}),n)return i/n},median:(t,e)=>{if(!e.length)return;const n=e.map(e=>e.getValue(t));if(i=n,!Array.isArray(i)||!i.every(t=>"number"==typeof t))return;var i;if(1===n.length)return n[0];const r=Math.floor(n.length/2),o=n.sort((t,e)=>t-e);return n.length%2!=0?o[r]:(o[r-1]+o[r])/2},unique:(t,e)=>Array.from(new Set(e.map(e=>e.getValue(t))).values()),uniqueCount:(t,e)=>new Set(e.map(e=>e.getValue(t))).size,count:(t,e)=>e.length},BC={getDefaultColumnDef:()=>({aggregatedCell:t=>{var e,n;return null!=(e=null==(n=t.getValue())||null==n.toString?void 0:n.toString())?e:null},aggregationFn:"auto"}),getInitialState:t=>({grouping:[],...t}),getDefaultOptions:t=>({onGroupingChange:dC("grouping",t),groupedColumnMode:"reorder"}),createColumn:(t,e)=>{t.toggleGrouping=()=>{e.setGrouping(e=>null!=e&&e.includes(t.id)?e.filter(e=>e!==t.id):[...null!=e?e:[],t.id])},t.getCanGroup=()=>{var n,i;return(null==(n=t.columnDef.enableGrouping)||n)&&(null==(i=e.options.enableGrouping)||i)&&(!!t.accessorFn||!!t.columnDef.getGroupingValue)},t.getIsGrouped=()=>{var n;return null==(n=e.getState().grouping)?void 0:n.includes(t.id)},t.getGroupedIndex=()=>{var n;return null==(n=e.getState().grouping)?void 0:n.indexOf(t.id)},t.getToggleGroupingHandler=()=>{const e=t.getCanGroup();return()=>{e&&t.toggleGrouping()}},t.getAutoAggregationFn=()=>{const n=e.getCoreRowModel().flatRows[0],i=null==n?void 0:n.getValue(t.id);return"number"==typeof i?EC.sum:"[object Date]"===Object.prototype.toString.call(i)?EC.extent:void 0},t.getAggregationFn=()=>{var n,i;if(!t)throw new Error;return fC(t.columnDef.aggregationFn)?t.columnDef.aggregationFn:"auto"===t.columnDef.aggregationFn?t.getAutoAggregationFn():null!=(n=null==(i=e.options.aggregationFns)?void 0:i[t.columnDef.aggregationFn])?n:EC[t.columnDef.aggregationFn]}},createTable:t=>{t.setGrouping=e=>null==t.options.onGroupingChange?void 0:t.options.onGroupingChange(e),t.resetGrouping=e=>{var n,i;t.setGrouping(e?[]:null!=(n=null==(i=t.initialState)?void 0:i.grouping)?n:[])},t.getPreGroupedRowModel=()=>t.getFilteredRowModel(),t.getGroupedRowModel=()=>(!t._getGroupedRowModel&&t.options.getGroupedRowModel&&(t._getGroupedRowModel=t.options.getGroupedRowModel(t)),t.options.manualGrouping||!t._getGroupedRowModel?t.getPreGroupedRowModel():t._getGroupedRowModel())},createRow:(t,e)=>{t.getIsGrouped=()=>!!t.groupingColumnId,t.getGroupingValue=n=>{if(t._groupingValuesCache.hasOwnProperty(n))return t._groupingValuesCache[n];const i=e.getColumn(n);return null!=i&&i.columnDef.getGroupingValue?(t._groupingValuesCache[n]=i.columnDef.getGroupingValue(t.original),t._groupingValuesCache[n]):t.getValue(n)},t._groupingValuesCache={}},createCell:(t,e,n,i)=>{t.getIsGrouped=()=>e.getIsGrouped()&&e.id===n.groupingColumnId,t.getIsPlaceholder=()=>!t.getIsGrouped()&&e.getIsGrouped(),t.getIsAggregated=()=>{var e;return!t.getIsGrouped()&&!t.getIsPlaceholder()&&!(null==(e=n.subRows)||!e.length)}}},zC={getInitialState:t=>({columnOrder:[],...t}),getDefaultOptions:t=>({onColumnOrderChange:dC("columnOrder",t)}),createColumn:(t,e)=>{t.getIndex=pC(t=>[UC(e,t)],e=>e.findIndex(e=>e.id===t.id),gC(e.options,"debugColumns")),t.getIsFirstColumn=n=>{var i;return(null==(i=UC(e,n)[0])?void 0:i.id)===t.id},t.getIsLastColumn=n=>{var i;const r=UC(e,n);return(null==(i=r[r.length-1])?void 0:i.id)===t.id}},createTable:t=>{t.setColumnOrder=e=>null==t.options.onColumnOrderChange?void 0:t.options.onColumnOrderChange(e),t.resetColumnOrder=e=>{var n;t.setColumnOrder(e?[]:null!=(n=t.initialState.columnOrder)?n:[])},t._getOrderColumnsFn=pC(()=>[t.getState().columnOrder,t.getState().grouping,t.options.groupedColumnMode],(t,e,n)=>i=>{let r=[];if(null!=t&&t.length){const e=[...t],n=[...i];for(;n.length&&e.length;){const t=e.shift(),i=n.findIndex(e=>e.id===t);i>-1&&r.push(n.splice(i,1)[0])}r=[...r,...n]}else r=i;return function(t,e,n){if(null==e||!e.length||!n)return t;const i=t.filter(t=>!e.includes(t.id));return"remove"===n?i:[...e.map(e=>t.find(t=>t.id===e)).filter(Boolean),...i]}(r,e,n)},gC(t.options,"debugTable"))}},FC={getInitialState:t=>({columnPinning:{left:[],right:[]},...t}),getDefaultOptions:t=>({onColumnPinningChange:dC("columnPinning",t)}),createColumn:(t,e)=>{t.pin=n=>{const i=t.getLeafColumns().map(t=>t.id).filter(Boolean);e.setColumnPinning(t=>{var e,r,o,a,s,l;return"right"===n?{left:(null!=(o=null==t?void 0:t.left)?o:[]).filter(t=>!(null!=i&&i.includes(t))),right:[...(null!=(a=null==t?void 0:t.right)?a:[]).filter(t=>!(null!=i&&i.includes(t))),...i]}:"left"===n?{left:[...(null!=(s=null==t?void 0:t.left)?s:[]).filter(t=>!(null!=i&&i.includes(t))),...i],right:(null!=(l=null==t?void 0:t.right)?l:[]).filter(t=>!(null!=i&&i.includes(t)))}:{left:(null!=(e=null==t?void 0:t.left)?e:[]).filter(t=>!(null!=i&&i.includes(t))),right:(null!=(r=null==t?void 0:t.right)?r:[]).filter(t=>!(null!=i&&i.includes(t)))}})},t.getCanPin=()=>t.getLeafColumns().some(t=>{var n,i,r;return(null==(n=t.columnDef.enablePinning)||n)&&(null==(i=null!=(r=e.options.enableColumnPinning)?r:e.options.enablePinning)||i)}),t.getIsPinned=()=>{const n=t.getLeafColumns().map(t=>t.id),{left:i,right:r}=e.getState().columnPinning,o=n.some(t=>null==i?void 0:i.includes(t)),a=n.some(t=>null==r?void 0:r.includes(t));return o?"left":!!a&&"right"},t.getPinnedIndex=()=>{var n,i;const r=t.getIsPinned();return r?null!=(n=null==(i=e.getState().columnPinning)||null==(i=i[r])?void 0:i.indexOf(t.id))?n:-1:0}},createRow:(t,e)=>{t.getCenterVisibleCells=pC(()=>[t._getAllVisibleCells(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,e,n)=>{const i=[...null!=e?e:[],...null!=n?n:[]];return t.filter(t=>!i.includes(t.column.id))},gC(e.options,"debugRows")),t.getLeftVisibleCells=pC(()=>[t._getAllVisibleCells(),e.getState().columnPinning.left],(t,e)=>(null!=e?e:[]).map(e=>t.find(t=>t.column.id===e)).filter(Boolean).map(t=>({...t,position:"left"})),gC(e.options,"debugRows")),t.getRightVisibleCells=pC(()=>[t._getAllVisibleCells(),e.getState().columnPinning.right],(t,e)=>(null!=e?e:[]).map(e=>t.find(t=>t.column.id===e)).filter(Boolean).map(t=>({...t,position:"right"})),gC(e.options,"debugRows"))},createTable:t=>{t.setColumnPinning=e=>null==t.options.onColumnPinningChange?void 0:t.options.onColumnPinningChange(e),t.resetColumnPinning=e=>{var n,i;return t.setColumnPinning(e?{left:[],right:[]}:null!=(n=null==(i=t.initialState)?void 0:i.columnPinning)?n:{left:[],right:[]})},t.getIsSomeColumnsPinned=e=>{var n;const i=t.getState().columnPinning;var r,o;return e?Boolean(null==(n=i[e])?void 0:n.length):Boolean((null==(r=i.left)?void 0:r.length)||(null==(o=i.right)?void 0:o.length))},t.getLeftLeafColumns=pC(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left],(t,e)=>(null!=e?e:[]).map(e=>t.find(t=>t.id===e)).filter(Boolean),gC(t.options,"debugColumns")),t.getRightLeafColumns=pC(()=>[t.getAllLeafColumns(),t.getState().columnPinning.right],(t,e)=>(null!=e?e:[]).map(e=>t.find(t=>t.id===e)).filter(Boolean),gC(t.options,"debugColumns")),t.getCenterLeafColumns=pC(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(t,e,n)=>{const i=[...null!=e?e:[],...null!=n?n:[]];return t.filter(t=>!i.includes(t.id))},gC(t.options,"debugColumns"))}},NC={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},VC={getDefaultColumnDef:()=>NC,getInitialState:t=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...t}),getDefaultOptions:t=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:dC("columnSizing",t),onColumnSizingInfoChange:dC("columnSizingInfo",t)}),createColumn:(t,e)=>{t.getSize=()=>{var n,i,r;const o=e.getState().columnSizing[t.id];return Math.min(Math.max(null!=(n=t.columnDef.minSize)?n:NC.minSize,null!=(i=null!=o?o:t.columnDef.size)?i:NC.size),null!=(r=t.columnDef.maxSize)?r:NC.maxSize)},t.getStart=pC(t=>[t,UC(e,t),e.getState().columnSizing],(e,n)=>n.slice(0,t.getIndex(e)).reduce((t,e)=>t+e.getSize(),0),gC(e.options,"debugColumns")),t.getAfter=pC(t=>[t,UC(e,t),e.getState().columnSizing],(e,n)=>n.slice(t.getIndex(e)+1).reduce((t,e)=>t+e.getSize(),0),gC(e.options,"debugColumns")),t.resetSize=()=>{e.setColumnSizing(e=>{let{[t.id]:n,...i}=e;return i})},t.getCanResize=()=>{var n,i;return(null==(n=t.columnDef.enableResizing)||n)&&(null==(i=e.options.enableColumnResizing)||i)},t.getIsResizing=()=>e.getState().columnSizingInfo.isResizingColumn===t.id},createHeader:(t,e)=>{t.getSize=()=>{let e=0;const n=t=>{var i;t.subHeaders.length?t.subHeaders.forEach(n):e+=null!=(i=t.column.getSize())?i:0};return n(t),e},t.getStart=()=>{if(t.index>0){const e=t.headerGroup.headers[t.index-1];return e.getStart()+e.getSize()}return 0},t.getResizeHandler=n=>{const i=e.getColumn(t.column.id),r=null==i?void 0:i.getCanResize();return o=>{if(!i||!r)return;if(null==o.persist||o.persist(),GC(o)&&o.touches&&o.touches.length>1)return;const a=t.getSize(),s=t?t.getLeafHeaders().map(t=>[t.column.id,t.column.getSize()]):[[i.id,i.getSize()]],l=GC(o)?Math.round(o.touches[0].clientX):o.clientX,u={},c=(t,n)=>{"number"==typeof n&&(e.setColumnSizingInfo(t=>{var i,r;const o="rtl"===e.options.columnResizeDirection?-1:1,a=(n-(null!=(i=null==t?void 0:t.startOffset)?i:0))*o,s=Math.max(a/(null!=(r=null==t?void 0:t.startSize)?r:0),-.999999);return t.columnSizingStart.forEach(t=>{let[e,n]=t;u[e]=Math.round(100*Math.max(n+n*s,0))/100}),{...t,deltaOffset:a,deltaPercentage:s}}),"onChange"!==e.options.columnResizeMode&&"end"!==t||e.setColumnSizing(t=>({...t,...u})))},h=t=>c("move",t),d=t=>{c("end",t),e.setColumnSizingInfo(t=>({...t,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=n||("undefined"!=typeof document?document:null),p={moveHandler:t=>h(t.clientX),upHandler:t=>{null==f||f.removeEventListener("mousemove",p.moveHandler),null==f||f.removeEventListener("mouseup",p.upHandler),d(t.clientX)}},g={moveHandler:t=>(t.cancelable&&(t.preventDefault(),t.stopPropagation()),h(t.touches[0].clientX),!1),upHandler:t=>{var e;null==f||f.removeEventListener("touchmove",g.moveHandler),null==f||f.removeEventListener("touchend",g.upHandler),t.cancelable&&(t.preventDefault(),t.stopPropagation()),d(null==(e=t.touches[0])?void 0:e.clientX)}},v=!!function(){if("boolean"==typeof HC)return HC;let t=!1;try{const e={get passive(){return t=!0,!1}},n=()=>{};window.addEventListener("test",n,e),window.removeEventListener("test",n)}catch(e){t=!1}return HC=t,HC}()&&{passive:!1};GC(o)?(null==f||f.addEventListener("touchmove",g.moveHandler,v),null==f||f.addEventListener("touchend",g.upHandler,v)):(null==f||f.addEventListener("mousemove",p.moveHandler,v),null==f||f.addEventListener("mouseup",p.upHandler,v)),e.setColumnSizingInfo(t=>({...t,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:i.id}))}}},createTable:t=>{t.setColumnSizing=e=>null==t.options.onColumnSizingChange?void 0:t.options.onColumnSizingChange(e),t.setColumnSizingInfo=e=>null==t.options.onColumnSizingInfoChange?void 0:t.options.onColumnSizingInfoChange(e),t.resetColumnSizing=e=>{var n;t.setColumnSizing(e?{}:null!=(n=t.initialState.columnSizing)?n:{})},t.resetHeaderSizeInfo=e=>{var n;t.setColumnSizingInfo(e?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=t.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},t.getTotalSize=()=>{var e,n;return null!=(e=null==(n=t.getHeaderGroups()[0])?void 0:n.headers.reduce((t,e)=>t+e.getSize(),0))?e:0},t.getLeftTotalSize=()=>{var e,n;return null!=(e=null==(n=t.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((t,e)=>t+e.getSize(),0))?e:0},t.getCenterTotalSize=()=>{var e,n;return null!=(e=null==(n=t.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((t,e)=>t+e.getSize(),0))?e:0},t.getRightTotalSize=()=>{var e,n;return null!=(e=null==(n=t.getRightHeaderGroups()[0])?void 0:n.headers.reduce((t,e)=>t+e.getSize(),0))?e:0}}};let HC=null;function GC(t){return"touchstart"===t.type}const WC={getInitialState:t=>({columnVisibility:{},...t}),getDefaultOptions:t=>({onColumnVisibilityChange:dC("columnVisibility",t)}),createColumn:(t,e)=>{t.toggleVisibility=n=>{t.getCanHide()&&e.setColumnVisibility(e=>({...e,[t.id]:null!=n?n:!t.getIsVisible()}))},t.getIsVisible=()=>{var n,i;const r=t.columns;return null==(n=r.length?r.some(t=>t.getIsVisible()):null==(i=e.getState().columnVisibility)?void 0:i[t.id])||n},t.getCanHide=()=>{var n,i;return(null==(n=t.columnDef.enableHiding)||n)&&(null==(i=e.options.enableHiding)||i)},t.getToggleVisibilityHandler=()=>e=>{null==t.toggleVisibility||t.toggleVisibility(e.target.checked)}},createRow:(t,e)=>{t._getAllVisibleCells=pC(()=>[t.getAllCells(),e.getState().columnVisibility],t=>t.filter(t=>t.column.getIsVisible()),gC(e.options,"debugRows")),t.getVisibleCells=pC(()=>[t.getLeftVisibleCells(),t.getCenterVisibleCells(),t.getRightVisibleCells()],(t,e,n)=>[...t,...e,...n],gC(e.options,"debugRows"))},createTable:t=>{const e=(e,n)=>pC(()=>[n(),n().filter(t=>t.getIsVisible()).map(t=>t.id).join("_")],t=>t.filter(t=>null==t.getIsVisible?void 0:t.getIsVisible()),gC(t.options,"debugColumns"));t.getVisibleFlatColumns=e(0,()=>t.getAllFlatColumns()),t.getVisibleLeafColumns=e(0,()=>t.getAllLeafColumns()),t.getLeftVisibleLeafColumns=e(0,()=>t.getLeftLeafColumns()),t.getRightVisibleLeafColumns=e(0,()=>t.getRightLeafColumns()),t.getCenterVisibleLeafColumns=e(0,()=>t.getCenterLeafColumns()),t.setColumnVisibility=e=>null==t.options.onColumnVisibilityChange?void 0:t.options.onColumnVisibilityChange(e),t.resetColumnVisibility=e=>{var n;t.setColumnVisibility(e?{}:null!=(n=t.initialState.columnVisibility)?n:{})},t.toggleAllColumnsVisible=e=>{var n;e=null!=(n=e)?n:!t.getIsAllColumnsVisible(),t.setColumnVisibility(t.getAllLeafColumns().reduce((t,n)=>({...t,[n.id]:e||!(null!=n.getCanHide&&n.getCanHide())}),{}))},t.getIsAllColumnsVisible=()=>!t.getAllLeafColumns().some(t=>!(null!=t.getIsVisible&&t.getIsVisible())),t.getIsSomeColumnsVisible=()=>t.getAllLeafColumns().some(t=>null==t.getIsVisible?void 0:t.getIsVisible()),t.getToggleAllColumnsVisibilityHandler=()=>e=>{var n;t.toggleAllColumnsVisible(null==(n=e.target)?void 0:n.checked)}}};function UC(t,e){return e?"center"===e?t.getCenterVisibleLeafColumns():"left"===e?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns()}const jC={getInitialState:t=>({expanded:{},...t}),getDefaultOptions:t=>({onExpandedChange:dC("expanded",t),paginateExpandedRows:!0}),createTable:t=>{let e=!1,n=!1;t._autoResetExpanded=()=>{var i,r;if(e){if(null!=(i=null!=(r=t.options.autoResetAll)?r:t.options.autoResetExpanded)?i:!t.options.manualExpanding){if(n)return;n=!0,t._queue(()=>{t.resetExpanded(),n=!1})}}else t._queue(()=>{e=!0})},t.setExpanded=e=>null==t.options.onExpandedChange?void 0:t.options.onExpandedChange(e),t.toggleAllRowsExpanded=e=>{(null!=e?e:!t.getIsAllRowsExpanded())?t.setExpanded(!0):t.setExpanded({})},t.resetExpanded=e=>{var n,i;t.setExpanded(e?{}:null!=(n=null==(i=t.initialState)?void 0:i.expanded)?n:{})},t.getCanSomeRowsExpand=()=>t.getPrePaginationRowModel().flatRows.some(t=>t.getCanExpand()),t.getToggleAllRowsExpandedHandler=()=>e=>{null==e.persist||e.persist(),t.toggleAllRowsExpanded()},t.getIsSomeRowsExpanded=()=>{const e=t.getState().expanded;return!0===e||Object.values(e).some(Boolean)},t.getIsAllRowsExpanded=()=>{const e=t.getState().expanded;return"boolean"==typeof e?!0===e:!!Object.keys(e).length&&!t.getRowModel().flatRows.some(t=>!t.getIsExpanded())},t.getExpandedDepth=()=>{let e=0;return(!0===t.getState().expanded?Object.keys(t.getRowModel().rowsById):Object.keys(t.getState().expanded)).forEach(t=>{const n=t.split(".");e=Math.max(e,n.length)}),e},t.getPreExpandedRowModel=()=>t.getSortedRowModel(),t.getExpandedRowModel=()=>(!t._getExpandedRowModel&&t.options.getExpandedRowModel&&(t._getExpandedRowModel=t.options.getExpandedRowModel(t)),t.options.manualExpanding||!t._getExpandedRowModel?t.getPreExpandedRowModel():t._getExpandedRowModel())},createRow:(t,e)=>{t.toggleExpanded=n=>{e.setExpanded(i=>{var r;const o=!0===i||!(null==i||!i[t.id]);let a={};if(!0===i?Object.keys(e.getRowModel().rowsById).forEach(t=>{a[t]=!0}):a=i,n=null!=(r=n)?r:!o,!o&&n)return{...a,[t.id]:!0};if(o&&!n){const{[t.id]:e,...n}=a;return n}return i})},t.getIsExpanded=()=>{var n;const i=e.getState().expanded;return!!(null!=(n=null==e.options.getIsRowExpanded?void 0:e.options.getIsRowExpanded(t))?n:!0===i||(null==i?void 0:i[t.id]))},t.getCanExpand=()=>{var n,i,r;return null!=(n=null==e.options.getRowCanExpand?void 0:e.options.getRowCanExpand(t))?n:(null==(i=e.options.enableExpanding)||i)&&!(null==(r=t.subRows)||!r.length)},t.getIsAllParentsExpanded=()=>{let n=!0,i=t;for(;n&&i.parentId;)i=e.getRow(i.parentId,!0),n=i.getIsExpanded();return n},t.getToggleExpandedHandler=()=>{const e=t.getCanExpand();return()=>{e&&t.toggleExpanded()}}}},XC={getInitialState:t=>({rowSelection:{},...t}),getDefaultOptions:t=>({onRowSelectionChange:dC("rowSelection",t),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:t=>{t.setRowSelection=e=>null==t.options.onRowSelectionChange?void 0:t.options.onRowSelectionChange(e),t.resetRowSelection=e=>{var n;return t.setRowSelection(e?{}:null!=(n=t.initialState.rowSelection)?n:{})},t.toggleAllRowsSelected=e=>{t.setRowSelection(n=>{e=void 0!==e?e:!t.getIsAllRowsSelected();const i={...n},r=t.getPreGroupedRowModel().flatRows;return e?r.forEach(t=>{t.getCanSelect()&&(i[t.id]=!0)}):r.forEach(t=>{delete i[t.id]}),i})},t.toggleAllPageRowsSelected=e=>t.setRowSelection(n=>{const i=void 0!==e?e:!t.getIsAllPageRowsSelected(),r={...n};return t.getRowModel().rows.forEach(e=>{YC(r,e.id,i,!0,t)}),r}),t.getPreSelectedRowModel=()=>t.getCoreRowModel(),t.getSelectedRowModel=pC(()=>[t.getState().rowSelection,t.getCoreRowModel()],(e,n)=>Object.keys(e).length?qC(t,n):{rows:[],flatRows:[],rowsById:{}},gC(t.options,"debugTable")),t.getFilteredSelectedRowModel=pC(()=>[t.getState().rowSelection,t.getFilteredRowModel()],(e,n)=>Object.keys(e).length?qC(t,n):{rows:[],flatRows:[],rowsById:{}},gC(t.options,"debugTable")),t.getGroupedSelectedRowModel=pC(()=>[t.getState().rowSelection,t.getSortedRowModel()],(e,n)=>Object.keys(e).length?qC(t,n):{rows:[],flatRows:[],rowsById:{}},gC(t.options,"debugTable")),t.getIsAllRowsSelected=()=>{const e=t.getFilteredRowModel().flatRows,{rowSelection:n}=t.getState();let i=Boolean(e.length&&Object.keys(n).length);return i&&e.some(t=>t.getCanSelect()&&!n[t.id])&&(i=!1),i},t.getIsAllPageRowsSelected=()=>{const e=t.getPaginationRowModel().flatRows.filter(t=>t.getCanSelect()),{rowSelection:n}=t.getState();let i=!!e.length;return i&&e.some(t=>!n[t.id])&&(i=!1),i},t.getIsSomeRowsSelected=()=>{var e;const n=Object.keys(null!=(e=t.getState().rowSelection)?e:{}).length;return n>0&&n<t.getFilteredRowModel().flatRows.length},t.getIsSomePageRowsSelected=()=>{const e=t.getPaginationRowModel().flatRows;return!t.getIsAllPageRowsSelected()&&e.filter(t=>t.getCanSelect()).some(t=>t.getIsSelected()||t.getIsSomeSelected())},t.getToggleAllRowsSelectedHandler=()=>e=>{t.toggleAllRowsSelected(e.target.checked)},t.getToggleAllPageRowsSelectedHandler=()=>e=>{t.toggleAllPageRowsSelected(e.target.checked)}},createRow:(t,e)=>{t.toggleSelected=(n,i)=>{const r=t.getIsSelected();e.setRowSelection(o=>{var a;if(n=void 0!==n?n:!r,t.getCanSelect()&&r===n)return o;const s={...o};return YC(s,t.id,n,null==(a=null==i?void 0:i.selectChildren)||a,e),s})},t.getIsSelected=()=>{const{rowSelection:n}=e.getState();return ZC(t,n)},t.getIsSomeSelected=()=>{const{rowSelection:n}=e.getState();return"some"===$C(t,n)},t.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=e.getState();return"all"===$C(t,n)},t.getCanSelect=()=>{var n;return"function"==typeof e.options.enableRowSelection?e.options.enableRowSelection(t):null==(n=e.options.enableRowSelection)||n},t.getCanSelectSubRows=()=>{var n;return"function"==typeof e.options.enableSubRowSelection?e.options.enableSubRowSelection(t):null==(n=e.options.enableSubRowSelection)||n},t.getCanMultiSelect=()=>{var n;return"function"==typeof e.options.enableMultiRowSelection?e.options.enableMultiRowSelection(t):null==(n=e.options.enableMultiRowSelection)||n},t.getToggleSelectedHandler=()=>{const e=t.getCanSelect();return n=>{var i;e&&t.toggleSelected(null==(i=n.target)?void 0:i.checked)}}}},YC=(t,e,n,i,r)=>{var o;const a=r.getRow(e,!0);n?(a.getCanMultiSelect()||Object.keys(t).forEach(e=>delete t[e]),a.getCanSelect()&&(t[e]=!0)):delete t[e],i&&null!=(o=a.subRows)&&o.length&&a.getCanSelectSubRows()&&a.subRows.forEach(e=>YC(t,e.id,n,i,r))};function qC(t,e){const n=t.getState().rowSelection,i=[],r={},o=function(t,e){return t.map(t=>{var e;const a=ZC(t,n);if(a&&(i.push(t),r[t.id]=t),null!=(e=t.subRows)&&e.length&&(t={...t,subRows:o(t.subRows)}),a)return t}).filter(Boolean)};return{rows:o(e.rows),flatRows:i,rowsById:r}}function ZC(t,e){var n;return null!=(n=e[t.id])&&n}function $C(t,e,n){var i;if(null==(i=t.subRows)||!i.length)return!1;let r=!0,o=!1;return t.subRows.forEach(t=>{if((!o||r)&&(t.getCanSelect()&&(ZC(t,e)?o=!0:r=!1),t.subRows&&t.subRows.length)){const n=$C(t,e);"all"===n?o=!0:"some"===n?(o=!0,r=!1):r=!1}}),r?"all":!!o&&"some"}const KC=/([0-9]+)/gm;function QC(t,e){return t===e?0:t>e?1:-1}function JC(t){return"number"==typeof t?isNaN(t)||t===1/0||t===-1/0?"":String(t):"string"==typeof t?t:""}function tM(t,e){const n=t.split(KC).filter(Boolean),i=e.split(KC).filter(Boolean);for(;n.length&&i.length;){const t=n.shift(),e=i.shift(),r=parseInt(t,10),o=parseInt(e,10),a=[r,o].sort();if(isNaN(a[0])){if(t>e)return 1;if(e>t)return-1}else{if(isNaN(a[1]))return isNaN(r)?-1:1;if(r>o)return 1;if(o>r)return-1}}return n.length-i.length}const eM={alphanumeric:(t,e,n)=>tM(JC(t.getValue(n)).toLowerCase(),JC(e.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(t,e,n)=>tM(JC(t.getValue(n)),JC(e.getValue(n))),text:(t,e,n)=>QC(JC(t.getValue(n)).toLowerCase(),JC(e.getValue(n)).toLowerCase()),textCaseSensitive:(t,e,n)=>QC(JC(t.getValue(n)),JC(e.getValue(n))),datetime:(t,e,n)=>{const i=t.getValue(n),r=e.getValue(n);return i>r?1:i<r?-1:0},basic:(t,e,n)=>QC(t.getValue(n),e.getValue(n))},nM={getInitialState:t=>({sorting:[],...t}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:t=>({onSortingChange:dC("sorting",t),isMultiSortEvent:t=>t.shiftKey}),createColumn:(t,e)=>{t.getAutoSortingFn=()=>{const n=e.getFilteredRowModel().flatRows.slice(10);let i=!1;for(const e of n){const n=null==e?void 0:e.getValue(t.id);if("[object Date]"===Object.prototype.toString.call(n))return eM.datetime;if("string"==typeof n&&(i=!0,n.split(KC).length>1))return eM.alphanumeric}return i?eM.text:eM.basic},t.getAutoSortDir=()=>{const n=e.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(t.id))?"asc":"desc"},t.getSortingFn=()=>{var n,i;if(!t)throw new Error;return fC(t.columnDef.sortingFn)?t.columnDef.sortingFn:"auto"===t.columnDef.sortingFn?t.getAutoSortingFn():null!=(n=null==(i=e.options.sortingFns)?void 0:i[t.columnDef.sortingFn])?n:eM[t.columnDef.sortingFn]},t.toggleSorting=(n,i)=>{const r=t.getNextSortingOrder(),o=null!=n;e.setSorting(a=>{const s=null==a?void 0:a.find(e=>e.id===t.id),l=null==a?void 0:a.findIndex(e=>e.id===t.id);let u,c=[],h=o?n:"desc"===r;var d;return u=null!=a&&a.length&&t.getCanMultiSort()&&i?s?"toggle":"add":null!=a&&a.length&&l!==a.length-1?"replace":s?"toggle":"replace","toggle"===u&&(o||r||(u="remove")),"add"===u?(c=[...a,{id:t.id,desc:h}],c.splice(0,c.length-(null!=(d=e.options.maxMultiSortColCount)?d:Number.MAX_SAFE_INTEGER))):c="toggle"===u?a.map(e=>e.id===t.id?{...e,desc:h}:e):"remove"===u?a.filter(e=>e.id!==t.id):[{id:t.id,desc:h}],c})},t.getFirstSortDir=()=>{var n,i;return(null!=(n=null!=(i=t.columnDef.sortDescFirst)?i:e.options.sortDescFirst)?n:"desc"===t.getAutoSortDir())?"desc":"asc"},t.getNextSortingOrder=n=>{var i,r;const o=t.getFirstSortDir(),a=t.getIsSorted();return a?!!(a===o||null!=(i=e.options.enableSortingRemoval)&&!i||n&&null!=(r=e.options.enableMultiRemove)&&!r)&&("desc"===a?"asc":"desc"):o},t.getCanSort=()=>{var n,i;return(null==(n=t.columnDef.enableSorting)||n)&&(null==(i=e.options.enableSorting)||i)&&!!t.accessorFn},t.getCanMultiSort=()=>{var n,i;return null!=(n=null!=(i=t.columnDef.enableMultiSort)?i:e.options.enableMultiSort)?n:!!t.accessorFn},t.getIsSorted=()=>{var n;const i=null==(n=e.getState().sorting)?void 0:n.find(e=>e.id===t.id);return!!i&&(i.desc?"desc":"asc")},t.getSortIndex=()=>{var n,i;return null!=(n=null==(i=e.getState().sorting)?void 0:i.findIndex(e=>e.id===t.id))?n:-1},t.clearSorting=()=>{e.setSorting(e=>null!=e&&e.length?e.filter(e=>e.id!==t.id):[])},t.getToggleSortingHandler=()=>{const n=t.getCanSort();return i=>{n&&(null==i.persist||i.persist(),null==t.toggleSorting||t.toggleSorting(void 0,!!t.getCanMultiSort()&&(null==e.options.isMultiSortEvent?void 0:e.options.isMultiSortEvent(i))))}}},createTable:t=>{t.setSorting=e=>null==t.options.onSortingChange?void 0:t.options.onSortingChange(e),t.resetSorting=e=>{var n,i;t.setSorting(e?[]:null!=(n=null==(i=t.initialState)?void 0:i.sorting)?n:[])},t.getPreSortedRowModel=()=>t.getGroupedRowModel(),t.getSortedRowModel=()=>(!t._getSortedRowModel&&t.options.getSortedRowModel&&(t._getSortedRowModel=t.options.getSortedRowModel(t)),t.options.manualSorting||!t._getSortedRowModel?t.getPreSortedRowModel():t._getSortedRowModel())}},iM=[yC,WC,zC,FC,bC,LC,{createTable:t=>{t._getGlobalFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,"__global__"),t.getGlobalFacetedRowModel=()=>t.options.manualFiltering||!t._getGlobalFacetedRowModel?t.getPreFilteredRowModel():t._getGlobalFacetedRowModel(),t._getGlobalFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,"__global__"),t.getGlobalFacetedUniqueValues=()=>t._getGlobalFacetedUniqueValues?t._getGlobalFacetedUniqueValues():new Map,t._getGlobalFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,"__global__"),t.getGlobalFacetedMinMaxValues=()=>{if(t._getGlobalFacetedMinMaxValues)return t._getGlobalFacetedMinMaxValues()}}},{getInitialState:t=>({globalFilter:void 0,...t}),getDefaultOptions:t=>({onGlobalFilterChange:dC("globalFilter",t),globalFilterFn:"auto",getColumnCanGlobalFilter:e=>{var n;const i=null==(n=t.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[e.id])?void 0:n.getValue();return"string"==typeof i||"number"==typeof i}}),createColumn:(t,e)=>{t.getCanGlobalFilter=()=>{var n,i,r,o;return(null==(n=t.columnDef.enableGlobalFilter)||n)&&(null==(i=e.options.enableGlobalFilter)||i)&&(null==(r=e.options.enableFilters)||r)&&(null==(o=null==e.options.getColumnCanGlobalFilter?void 0:e.options.getColumnCanGlobalFilter(t))||o)&&!!t.accessorFn}},createTable:t=>{t.getGlobalAutoFilterFn=()=>AC.includesString,t.getGlobalFilterFn=()=>{var e,n;const{globalFilterFn:i}=t.options;return fC(i)?i:"auto"===i?t.getGlobalAutoFilterFn():null!=(e=null==(n=t.options.filterFns)?void 0:n[i])?e:AC[i]},t.setGlobalFilter=e=>{null==t.options.onGlobalFilterChange||t.options.onGlobalFilterChange(e)},t.resetGlobalFilter=e=>{t.setGlobalFilter(e?void 0:t.initialState.globalFilter)}}},nM,BC,jC,{getInitialState:t=>({...t,pagination:{pageIndex:0,pageSize:10,...null==t?void 0:t.pagination}}),getDefaultOptions:t=>({onPaginationChange:dC("pagination",t)}),createTable:t=>{let e=!1,n=!1;t._autoResetPageIndex=()=>{var i,r;if(e){if(null!=(i=null!=(r=t.options.autoResetAll)?r:t.options.autoResetPageIndex)?i:!t.options.manualPagination){if(n)return;n=!0,t._queue(()=>{t.resetPageIndex(),n=!1})}}else t._queue(()=>{e=!0})},t.setPagination=e=>null==t.options.onPaginationChange?void 0:t.options.onPaginationChange(t=>hC(e,t)),t.resetPagination=e=>{var n;t.setPagination(e?{pageIndex:0,pageSize:10}:null!=(n=t.initialState.pagination)?n:{pageIndex:0,pageSize:10})},t.setPageIndex=e=>{t.setPagination(n=>{let i=hC(e,n.pageIndex);const r=void 0===t.options.pageCount||-1===t.options.pageCount?Number.MAX_SAFE_INTEGER:t.options.pageCount-1;return i=Math.max(0,Math.min(i,r)),{...n,pageIndex:i}})},t.resetPageIndex=e=>{var n,i;t.setPageIndex(e?0:null!=(n=null==(i=t.initialState)||null==(i=i.pagination)?void 0:i.pageIndex)?n:0)},t.resetPageSize=e=>{var n,i;t.setPageSize(e?10:null!=(n=null==(i=t.initialState)||null==(i=i.pagination)?void 0:i.pageSize)?n:10)},t.setPageSize=e=>{t.setPagination(t=>{const n=Math.max(1,hC(e,t.pageSize)),i=t.pageSize*t.pageIndex,r=Math.floor(i/n);return{...t,pageIndex:r,pageSize:n}})},t.setPageCount=e=>t.setPagination(n=>{var i;let r=hC(e,null!=(i=t.options.pageCount)?i:-1);return"number"==typeof r&&(r=Math.max(-1,r)),{...n,pageCount:r}}),t.getPageOptions=pC(()=>[t.getPageCount()],t=>{let e=[];return t&&t>0&&(e=[...new Array(t)].fill(null).map((t,e)=>e)),e},gC(t.options,"debugTable")),t.getCanPreviousPage=()=>t.getState().pagination.pageIndex>0,t.getCanNextPage=()=>{const{pageIndex:e}=t.getState().pagination,n=t.getPageCount();return-1===n||0!==n&&e<n-1},t.previousPage=()=>t.setPageIndex(t=>t-1),t.nextPage=()=>t.setPageIndex(t=>t+1),t.firstPage=()=>t.setPageIndex(0),t.lastPage=()=>t.setPageIndex(t.getPageCount()-1),t.getPrePaginationRowModel=()=>t.getExpandedRowModel(),t.getPaginationRowModel=()=>(!t._getPaginationRowModel&&t.options.getPaginationRowModel&&(t._getPaginationRowModel=t.options.getPaginationRowModel(t)),t.options.manualPagination||!t._getPaginationRowModel?t.getPrePaginationRowModel():t._getPaginationRowModel()),t.getPageCount=()=>{var e;return null!=(e=t.options.pageCount)?e:Math.ceil(t.getRowCount()/t.getState().pagination.pageSize)},t.getRowCount=()=>{var e;return null!=(e=t.options.rowCount)?e:t.getPrePaginationRowModel().rows.length}}},{getInitialState:t=>({rowPinning:{top:[],bottom:[]},...t}),getDefaultOptions:t=>({onRowPinningChange:dC("rowPinning",t)}),createRow:(t,e)=>{t.pin=(n,i,r)=>{const o=i?t.getLeafRows().map(t=>{let{id:e}=t;return e}):[],a=r?t.getParentRows().map(t=>{let{id:e}=t;return e}):[],s=new Set([...a,t.id,...o]);e.setRowPinning(t=>{var e,i,r,o,a,l;return"bottom"===n?{top:(null!=(r=null==t?void 0:t.top)?r:[]).filter(t=>!(null!=s&&s.has(t))),bottom:[...(null!=(o=null==t?void 0:t.bottom)?o:[]).filter(t=>!(null!=s&&s.has(t))),...Array.from(s)]}:"top"===n?{top:[...(null!=(a=null==t?void 0:t.top)?a:[]).filter(t=>!(null!=s&&s.has(t))),...Array.from(s)],bottom:(null!=(l=null==t?void 0:t.bottom)?l:[]).filter(t=>!(null!=s&&s.has(t)))}:{top:(null!=(e=null==t?void 0:t.top)?e:[]).filter(t=>!(null!=s&&s.has(t))),bottom:(null!=(i=null==t?void 0:t.bottom)?i:[]).filter(t=>!(null!=s&&s.has(t)))}})},t.getCanPin=()=>{var n;const{enableRowPinning:i,enablePinning:r}=e.options;return"function"==typeof i?i(t):null==(n=null!=i?i:r)||n},t.getIsPinned=()=>{const n=[t.id],{top:i,bottom:r}=e.getState().rowPinning,o=n.some(t=>null==i?void 0:i.includes(t)),a=n.some(t=>null==r?void 0:r.includes(t));return o?"top":!!a&&"bottom"},t.getPinnedIndex=()=>{var n,i;const r=t.getIsPinned();if(!r)return-1;const o=null==(n="top"===r?e.getTopRows():e.getBottomRows())?void 0:n.map(t=>{let{id:e}=t;return e});return null!=(i=null==o?void 0:o.indexOf(t.id))?i:-1}},createTable:t=>{t.setRowPinning=e=>null==t.options.onRowPinningChange?void 0:t.options.onRowPinningChange(e),t.resetRowPinning=e=>{var n,i;return t.setRowPinning(e?{top:[],bottom:[]}:null!=(n=null==(i=t.initialState)?void 0:i.rowPinning)?n:{top:[],bottom:[]})},t.getIsSomeRowsPinned=e=>{var n;const i=t.getState().rowPinning;var r,o;return e?Boolean(null==(n=i[e])?void 0:n.length):Boolean((null==(r=i.top)?void 0:r.length)||(null==(o=i.bottom)?void 0:o.length))},t._getPinnedRows=(e,n,i)=>{var r;return(null==(r=t.options.keepPinnedRows)||r?(null!=n?n:[]).map(e=>{const n=t.getRow(e,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=n?n:[]).map(t=>e.find(e=>e.id===t))).filter(Boolean).map(t=>({...t,position:i}))},t.getTopRows=pC(()=>[t.getRowModel().rows,t.getState().rowPinning.top],(e,n)=>t._getPinnedRows(e,n,"top"),gC(t.options,"debugRows")),t.getBottomRows=pC(()=>[t.getRowModel().rows,t.getState().rowPinning.bottom],(e,n)=>t._getPinnedRows(e,n,"bottom"),gC(t.options,"debugRows")),t.getCenterRows=pC(()=>[t.getRowModel().rows,t.getState().rowPinning.top,t.getState().rowPinning.bottom],(t,e,n)=>{const i=new Set([...null!=e?e:[],...null!=n?n:[]]);return t.filter(t=>!i.has(t.id))},gC(t.options,"debugRows"))}},XC,VC];function rM(t){var e,n;const i=[...iM,...null!=(e=t._features)?e:[]];let r={_features:i};const o=r._features.reduce((t,e)=>Object.assign(t,null==e.getDefaultOptions?void 0:e.getDefaultOptions(r)),{});let a={...null!=(n=t.initialState)?n:{}};r._features.forEach(t=>{var e;a=null!=(e=null==t.getInitialState?void 0:t.getInitialState(a))?e:a});const s=[];let l=!1;const u={_features:i,options:{...o,...t},initialState:a,_queue:t=>{s.push(t),l||(l=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();l=!1}).catch(t=>setTimeout(()=>{throw t})))},reset:()=>{r.setState(r.initialState)},setOptions:t=>{const e=hC(t,r.options);r.options=(t=>r.options.mergeOptions?r.options.mergeOptions(o,t):{...o,...t})(e)},getState:()=>r.options.state,setState:t=>{null==r.options.onStateChange||r.options.onStateChange(t)},_getRowId:(t,e,n)=>{var i;return null!=(i=null==r.options.getRowId?void 0:r.options.getRowId(t,e,n))?i:`${n?[n.id,e].join("."):e}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(t,e)=>{let n=(e?r.getPrePaginationRowModel():r.getRowModel()).rowsById[t];if(!n&&(n=r.getCoreRowModel().rowsById[t],!n))throw new Error;return n},_getDefaultColumnDef:pC(()=>[r.options.defaultColumn],t=>{var e;return t=null!=(e=t)?e:{},{header:t=>{const e=t.header.column.columnDef;return e.accessorKey?e.accessorKey:e.accessorFn?e.id:null},cell:t=>{var e,n;return null!=(e=null==(n=t.renderValue())||null==n.toString?void 0:n.toString())?e:null},...r._features.reduce((t,e)=>Object.assign(t,null==e.getDefaultColumnDef?void 0:e.getDefaultColumnDef()),{}),...t}},gC(t,"debugColumns")),_getColumnDefs:()=>r.options.columns,getAllColumns:pC(()=>[r._getColumnDefs()],t=>{const e=function(t,n,i){return void 0===i&&(i=0),t.map(t=>{const o=function(t,e,n,i){var r,o;const a={...t._getDefaultColumnDef(),...e},s=a.accessorKey;let l,u=null!=(r=null!=(o=a.id)?o:s?"function"==typeof String.prototype.replaceAll?s.replaceAll(".","_"):s.replace(/\./g,"_"):void 0)?r:"string"==typeof a.header?a.header:void 0;if(a.accessorFn?l=a.accessorFn:s&&(l=s.includes(".")?t=>{let e=t;for(const t of s.split(".")){var n;e=null==(n=e)?void 0:n[t]}return e}:t=>t[a.accessorKey]),!u)throw new Error;let c={id:`${String(u)}`,accessorFn:l,parent:i,depth:n,columnDef:a,columns:[],getFlatColumns:pC(()=>[!0],()=>{var t;return[c,...null==(t=c.columns)?void 0:t.flatMap(t=>t.getFlatColumns())]},gC(t.options,"debugColumns")),getLeafColumns:pC(()=>[t._getOrderColumnsFn()],t=>{var e;if(null!=(e=c.columns)&&e.length){let e=c.columns.flatMap(t=>t.getLeafColumns());return t(e)}return[c]},gC(t.options,"debugColumns"))};for(const e of t._features)null==e.createColumn||e.createColumn(c,t);return c}(r,t,i,n),a=t;return o.columns=a.columns?e(a.columns,o,i+1):[],o})};return e(t)},gC(t,"debugColumns")),getAllFlatColumns:pC(()=>[r.getAllColumns()],t=>t.flatMap(t=>t.getFlatColumns()),gC(t,"debugColumns")),_getAllFlatColumnsById:pC(()=>[r.getAllFlatColumns()],t=>t.reduce((t,e)=>(t[e.id]=e,t),{}),gC(t,"debugColumns")),getAllLeafColumns:pC(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(t,e)=>e(t.flatMap(t=>t.getLeafColumns())),gC(t,"debugColumns")),getColumn:t=>r._getAllFlatColumnsById()[t]};Object.assign(r,u);for(let t=0;t<r._features.length;t++){const e=r._features[t];null==e||null==e.createTable||e.createTable(r)}return r}function oM(e,n){return e?function(t){return"function"==typeof t&&(()=>{const e=Object.getPrototypeOf(t);return e.prototype&&e.prototype.isReactComponent})()}(i=e)||"function"==typeof i||function(t){return"object"==typeof t&&"symbol"==typeof t.$$typeof&&["react.memo","react.forward_ref"].includes(t.$$typeof.description)}(i)?t(e,n):e:null;var i}const aM="asc",sM="desc",lM="default",uM={[aM]:(0,x.jsx)(tC,{}),[sM]:(0,x.jsx)(eC,{}),[lM]:(0,x.jsx)(nC,{})};function cM({isLoading:t,error:e,tableRows:n,columnCount:i}){let r;return r=!0===t?Array.from({length:5}).map((t,e)=>(0,x.jsx)(d.Tr,{children:Array.from({length:i}).map((t,e)=>(0,x.jsx)(d.Td,{children:(0,x.jsx)(h,{height:16,width:"100%"})},e))},e)):e instanceof Error?(0,x.jsx)(d.Tr,{children:(0,x.jsx)(d.Td,{colSpan:i,align:"center",children:(0,x.jsx)(s,{color:"red",children:e.message})})}):0===n.length?(0,x.jsx)(d.Tr,{children:(0,x.jsx)(d.Td,{colSpan:i,align:"center",children:"No data available."})}):n.map(t=>(0,x.jsx)(d.Tr,{children:t.getVisibleCells().map(t=>(0,x.jsx)(d.Td,{children:oM(t.column.columnDef.cell,t.getContext())},t.id))},t.id)),r}const hM=(t,e,n,i)=>{const r=function(t,e,n){var i;if((n=n||{}).threshold=null!=(i=n.threshold)?i:1,!n.accessors){const i=aC(t,e,n);return{rankedValue:t,rank:i,accessorIndex:-1,accessorThreshold:n.threshold,passed:i>=n.threshold}}const r=function(t,e){const n=[];for(let i=0,r=e.length;i<r;i++){const r=e[i],o=cC(r),a=lC(t,r);for(let t=0,e=a.length;t<e;t++)n.push({itemValue:a[t],attributes:o})}return n}(t,n.accessors),o={rankedValue:t,rank:0,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let t=0;t<r.length;t++){const i=r[t];let a=aC(i.itemValue,e,n);const{minRanking:s,maxRanking:l,threshold:u=n.threshold}=i.attributes;a<s&&a>=1?a=s:a>l&&(a=l),a=Math.min(a,l),a>=u&&a>o.rank&&(o.rank=a,o.passed=!0,o.accessorIndex=t,o.accessorThreshold=u,o.rankedValue=i.itemValue)}return o}(t.getValue(e),n??"");return i({itemRank:r}),r.passed};function dM({data:t,isLoading:e,error:n,columns:i}){const[r,s]=o([]),[c,h]=o([]),f=function(t){const e={state:{},onStateChange:()=>{},renderFallbackValue:null,...t},[n]=o(()=>({current:rM(e)})),[i,r]=o(()=>n.current.initialState);return n.current.setOptions(e=>({...e,...t,state:{...i,...t.state},onStateChange:e=>{r(e),null==t.onStateChange||t.onStateChange(e)}})),n.current}({data:t,columns:i,getCoreRowModel:t=>pC(()=>[t.options.data],e=>{const n={rows:[],flatRows:[],rowsById:{}},i=function(e,r,o){void 0===r&&(r=0);const a=[];for(let l=0;l<e.length;l++){const u=xC(t,t._getRowId(e[l],l,o),e[l],l,r,void 0,null==o?void 0:o.id);var s;n.flatRows.push(u),n.rowsById[u.id]=u,a.push(u),t.options.getSubRows&&(u.originalSubRows=t.options.getSubRows(e[l],l),null!=(s=u.originalSubRows)&&s.length&&(u.subRows=i(u.originalSubRows,r+1,u)))}return a};return n.rows=i(e),n},gC(t.options,"debugTable",0,()=>t._autoResetPageIndex())),getSortedRowModel:t=>pC(()=>[t.getState().sorting,t.getPreSortedRowModel()],(e,n)=>{if(!n.rows.length||null==e||!e.length)return n;const i=t.getState().sorting,r=[],o=i.filter(e=>{var n;return null==(n=t.getColumn(e.id))?void 0:n.getCanSort()}),a={};o.forEach(e=>{const n=t.getColumn(e.id);n&&(a[e.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})});const s=t=>{const e=t.map(t=>({...t}));return e.sort((t,e)=>{for(let i=0;i<o.length;i+=1){var n;const r=o[i],s=a[r.id],l=s.sortUndefined,u=null!=(n=null==r?void 0:r.desc)&&n;let c=0;if(l){const n=void 0===t.getValue(r.id),i=void 0===e.getValue(r.id);if(n||i){if("first"===l)return n?-1:1;if("last"===l)return n?1:-1;c=n&&i?0:n?l:-l}}if(0===c&&(c=s.sortingFn(t,e,r.id)),0!==c)return u&&(c*=-1),s.invertSorting&&(c*=-1),c}return t.index-e.index}),e.forEach(t=>{var e;r.push(t),null!=(e=t.subRows)&&e.length&&(t.subRows=s(t.subRows))}),e};return{rows:s(n.rows),flatRows:r,rowsById:n.rowsById}},gC(t.options,"debugTable",0,()=>t._autoResetPageIndex())),getFilteredRowModel:t=>pC(()=>[t.getPreFilteredRowModel(),t.getState().columnFilters,t.getState().globalFilter],(e,n,i)=>{if(!e.rows.length||(null==n||!n.length)&&!i){for(let t=0;t<e.flatRows.length;t++)e.flatRows[t].columnFilters={},e.flatRows[t].columnFiltersMeta={};return e}const r=[],o=[];(null!=n?n:[]).forEach(e=>{var n;const i=t.getColumn(e.id);if(!i)return;const o=i.getFilterFn();o&&r.push({id:e.id,filterFn:o,resolvedValue:null!=(n=null==o.resolveFilterValue?void 0:o.resolveFilterValue(e.value))?n:e.value})});const a=(null!=n?n:[]).map(t=>t.id),s=t.getGlobalFilterFn(),l=t.getAllLeafColumns().filter(t=>t.getCanGlobalFilter());let u,c;i&&s&&l.length&&(a.push("__global__"),l.forEach(t=>{var e;o.push({id:t.id,filterFn:s,resolvedValue:null!=(e=null==s.resolveFilterValue?void 0:s.resolveFilterValue(i))?e:i})}));for(let t=0;t<e.flatRows.length;t++){const n=e.flatRows[t];if(n.columnFilters={},r.length)for(let t=0;t<r.length;t++){u=r[t];const e=u.id;n.columnFilters[e]=u.filterFn(n,e,u.resolvedValue,t=>{n.columnFiltersMeta[e]=t})}if(o.length){for(let t=0;t<o.length;t++){c=o[t];const e=c.id;if(c.filterFn(n,e,c.resolvedValue,t=>{n.columnFiltersMeta[e]=t})){n.columnFilters.__global__=!0;break}}!0!==n.columnFilters.__global__&&(n.columnFilters.__global__=!1)}}return function(t,e,n){return n.options.filterFromLeafRows?function(t,e,n){var i;const r=[],o={},a=null!=(i=n.options.maxLeafRowFilterDepth)?i:100,s=function(t,i){void 0===i&&(i=0);const l=[];for(let c=0;c<t.length;c++){var u;let h=t[c];const d=xC(n,h.id,h.original,h.index,h.depth,void 0,h.parentId);if(d.columnFilters=h.columnFilters,null!=(u=h.subRows)&&u.length&&i<a){if(d.subRows=s(h.subRows,i+1),h=d,e(h)&&!d.subRows.length){l.push(h),o[h.id]=h,r.push(h);continue}if(e(h)||d.subRows.length){l.push(h),o[h.id]=h,r.push(h);continue}}else h=d,e(h)&&(l.push(h),o[h.id]=h,r.push(h))}return l};return{rows:s(t),flatRows:r,rowsById:o}}(t,e,n):function(t,e,n){var i;const r=[],o={},a=null!=(i=n.options.maxLeafRowFilterDepth)?i:100,s=function(t,i){void 0===i&&(i=0);const l=[];for(let c=0;c<t.length;c++){let h=t[c];if(e(h)){var u;if(null!=(u=h.subRows)&&u.length&&i<a){const t=xC(n,h.id,h.original,h.index,h.depth,void 0,h.parentId);t.subRows=s(h.subRows,i+1),h=t}l.push(h),r.push(h),o[h.id]=h}}return l};return{rows:s(t),flatRows:r,rowsById:o}}(t,e,n)}(e.rows,t=>{for(let e=0;e<a.length;e++)if(!1===t.columnFilters[a[e]])return!1;return!0},t)},gC(t.options,"debugTable",0,()=>t._autoResetPageIndex())),onSortingChange:s,onColumnFiltersChange:h,state:{sorting:r,columnFilters:c},filterFns:{fuzzyFilter:hM}});return(0,x.jsx)(u,{children:(0,x.jsxs)(d,{highlightOnHover:!0,withTableBorder:!0,withColumnBorders:!0,children:[(0,x.jsxs)(d.Thead,{children:[f.getHeaderGroups().map(t=>(0,x.jsx)(d.Tr,{children:t.headers.map(t=>(0,x.jsx)(d.Th,{onClick:t.column.getToggleSortingHandler(),children:(0,x.jsxs)(l,{gap:"xs",wrap:"nowrap",children:[oM(t.column.columnDef.header,t.getContext()),(0,x.jsx)(a,{variant:"subtle",size:"sm",children:(()=>{const e=t.column.getIsSorted();return function(t,e){let n;return!0===e&&(n=uM[t]),n}(!1===e?lM:e,t.column.getCanSort())})()})]})},t.id))},t.id)),f.getHeaderGroups().map(t=>(0,x.jsx)(d.Tr,{children:t.headers.map(t=>{return(0,x.jsx)(d.Th,{children:(e=t.column,e.getCanFilter()?(0,x.jsx)(p,{placeholder:"string"==typeof e.columnDef.header?`Filter ${e.columnDef.header}`:"Filter",value:e.getFilterValue()??"",onChange:t=>{e.setFilterValue(t.target.value)}}):null)},t.id);var e})},t.id))]}),(0,x.jsx)(d.Tbody,{children:cM({isLoading:e,error:n,tableRows:f.getRowModel().rows,columnCount:i.length})})]})})}function fM(t){for(var e=t.length/6|0,n=new Array(e),i=0;i<e;)n[i]="#"+t.slice(6*i,6*++i);return n}const pM=fM("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),gM=fM("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),vM=fM("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),mM=fM("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),yM=fM("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),_M=fM("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),xM=fM("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),bM=fM("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function wM(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function SM(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function CM(){}var MM=.7,TM=1/MM,kM="\\s*([+-]?\\d+)\\s*",IM="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",DM="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",RM=/^#([0-9a-f]{3,8})$/,AM=new RegExp(`^rgb\\(${kM},${kM},${kM}\\)$`),PM=new RegExp(`^rgb\\(${DM},${DM},${DM}\\)$`),LM=new RegExp(`^rgba\\(${kM},${kM},${kM},${IM}\\)$`),OM=new RegExp(`^rgba\\(${DM},${DM},${DM},${IM}\\)$`),EM=new RegExp(`^hsl\\(${IM},${DM},${DM}\\)$`),BM=new RegExp(`^hsla\\(${IM},${DM},${DM},${IM}\\)$`),zM={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function FM(){return this.rgb().formatHex()}function NM(){return this.rgb().formatRgb()}function VM(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=RM.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?HM(e):3===n?new UM(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?GM(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?GM(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=AM.exec(t))?new UM(e[1],e[2],e[3],1):(e=PM.exec(t))?new UM(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=LM.exec(t))?GM(e[1],e[2],e[3],e[4]):(e=OM.exec(t))?GM(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=EM.exec(t))?$M(e[1],e[2]/100,e[3]/100,1):(e=BM.exec(t))?$M(e[1],e[2]/100,e[3]/100,e[4]):zM.hasOwnProperty(t)?HM(zM[t]):"transparent"===t?new UM(NaN,NaN,NaN,0):null}function HM(t){return new UM(t>>16&255,t>>8&255,255&t,1)}function GM(t,e,n,i){return i<=0&&(t=e=n=NaN),new UM(t,e,n,i)}function WM(t,e,n,i){return 1===arguments.length?((r=t)instanceof CM||(r=VM(r)),r?new UM((r=r.rgb()).r,r.g,r.b,r.opacity):new UM):new UM(t,e,n,null==i?1:i);var r}function UM(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function jM(){return`#${ZM(this.r)}${ZM(this.g)}${ZM(this.b)}`}function XM(){const t=YM(this.opacity);return`${1===t?"rgb(":"rgba("}${qM(this.r)}, ${qM(this.g)}, ${qM(this.b)}${1===t?")":`, ${t})`}`}function YM(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function qM(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ZM(t){return((t=qM(t))<16?"0":"")+t.toString(16)}function $M(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new QM(t,e,n,i)}function KM(t){if(t instanceof QM)return new QM(t.h,t.s,t.l,t.opacity);if(t instanceof CM||(t=VM(t)),!t)return new QM;if(t instanceof QM)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),o=Math.max(e,n,i),a=NaN,s=o-r,l=(o+r)/2;return s?(a=e===o?(n-i)/s+6*(n<i):n===o?(i-e)/s+2:(e-n)/s+4,s/=l<.5?o+r:2-o-r,a*=60):s=l>0&&l<1?0:a,new QM(a,s,l,t.opacity)}function QM(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function JM(t){return(t=(t||0)%360)<0?t+360:t}function tT(t){return Math.max(0,Math.min(1,t||0))}function eT(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function nT(t,e,n,i,r){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*i+a*r)/6}wM(CM,VM,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:FM,formatHex:FM,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return KM(this).formatHsl()},formatRgb:NM,toString:NM}),wM(UM,WM,SM(CM,{brighter(t){return t=null==t?TM:Math.pow(TM,t),new UM(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?MM:Math.pow(MM,t),new UM(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new UM(qM(this.r),qM(this.g),qM(this.b),YM(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:jM,formatHex:jM,formatHex8:function(){return`#${ZM(this.r)}${ZM(this.g)}${ZM(this.b)}${ZM(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:XM,toString:XM})),wM(QM,function(t,e,n,i){return 1===arguments.length?KM(t):new QM(t,e,n,null==i?1:i)},SM(CM,{brighter(t){return t=null==t?TM:Math.pow(TM,t),new QM(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?MM:Math.pow(MM,t),new QM(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new UM(eT(t>=240?t-240:t+120,r,i),eT(t,r,i),eT(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new QM(JM(this.h),tT(this.s),tT(this.l),YM(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=YM(this.opacity);return`${1===t?"hsl(":"hsla("}${JM(this.h)}, ${100*tT(this.s)}%, ${100*tT(this.l)}%${1===t?")":`, ${t})`}`}}));const iT=t=>()=>t;function rT(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):iT(isNaN(t)?e:t)}function oT(t){return function(e){var n,i,r=e.length,o=new Array(r),a=new Array(r),s=new Array(r);for(n=0;n<r;++n)i=WM(e[n]),o[n]=i.r||0,a[n]=i.g||0,s[n]=i.b||0;return o=t(o),a=t(a),s=t(s),i.opacity=1,function(t){return i.r=o(t),i.g=a(t),i.b=s(t),i+""}}}!function t(e){var n=function(t){return 1===(t=+t)?rT:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):iT(isNaN(e)?n:e)}}(e);function i(t,e){var i=n((t=WM(t)).r,(e=WM(e)).r),r=n(t.g,e.g),o=n(t.b,e.b),a=rT(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=o(e),t.opacity=a(e),t+""}}return i.gamma=t,i}(1);var aT=oT(function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),r=t[i],o=t[i+1],a=i>0?t[i-1]:2*r-o,s=i<e-1?t[i+2]:2*o-r;return nT((n-i/e)*e,a,r,o,s)}});oT(function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),r=t[(i+e-1)%e],o=t[i%e],a=t[(i+1)%e],s=t[(i+2)%e];return nT((n-i/e)*e,r,o,a,s)}});const sT=t=>aT(t[t.length-1]);var lT=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(fM);sT(lT);var uT=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(fM);sT(uT);var cT=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(fM);sT(cT);var hT=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(fM);sT(hT);var dT=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(fM);sT(dT);var fT=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(fM);sT(fT);var pT=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(fM);sT(pT);var gT=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(fM);sT(gT);var vT=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(fM);sT(vT);var mT=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(fM);sT(mT);var yT=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(fM);sT(yT);var _T=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(fM);sT(_T);var xT=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(fM);sT(xT);var bT=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(fM);sT(bT);var wT=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(fM);sT(wT);var ST=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(fM);sT(ST);var CT=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(fM);sT(CT);var MT=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(fM);sT(MT);var TT=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(fM);sT(TT);var kT=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(fM);sT(kT);const IT={Categorical:{"color-scheme-category-10":pM,"color-scheme-accent":gM,"color-scheme-dark-2":vM,"color-scheme-observable-10":mM,"color-scheme-paired":yM,"color-scheme-set-1":_M,"color-scheme-set-2":xM,"color-scheme-tableau-10":bM},SequentialSingleHue:{"color-scheme-blues":lT[9],"color-scheme-greens":uT[9],"color-scheme-greys":cT[9],"color-scheme-oranges":hT[9],"color-scheme-purples":dT[9],"color-scheme-reds":fT[9]},SequentialMultiHue:{"color-scheme-yellow-orange-brown":pT[9],"color-scheme-yellow-orange-red":gT[9],"color-scheme-orange-red":vT[9],"color-scheme-purple-blue-green":mT[9],"color-scheme-blue-purple":yT[9]},Diverging:{"color-scheme-brown-blue-green":_T[11],"color-scheme-purple-green":xT[11],"color-scheme-pink-yellow-green":bT[11],"color-scheme-purple-orange":wT[11],"color-scheme-red-blue":ST[11],"color-scheme-red-grey":CT[11],"color-scheme-red-yellow-blue":MT[11],"color-scheme-red-yellow-green":TT[11],"color-scheme-spectral":kT[11]}},DT={"color-scheme-category-10":"Category 10","color-scheme-accent":"Accent","color-scheme-dark-2":"Dark 2","color-scheme-observable-10":"Observable 10","color-scheme-paired":"Paired","color-scheme-set-1":"Set 1","color-scheme-set-2":"Set 2","color-scheme-tableau-10":"Tableau 10","color-scheme-blues":"Blues","color-scheme-greens":"Greens","color-scheme-greys":"Greys","color-scheme-oranges":"Oranges","color-scheme-purples":"Purples","color-scheme-reds":"Reds","color-scheme-yellow-orange-brown":"Yellow Orange Brown","color-scheme-yellow-orange-red":"Yellow Orange Red","color-scheme-orange-red":"Orange Red","color-scheme-purple-blue-green":"Purple Blue Green","color-scheme-blue-purple":"Blue Purple","color-scheme-brown-blue-green":"Brown Blue Green","color-scheme-purple-green":"Purple Green","color-scheme-pink-yellow-green":"Pink Yellow Green","color-scheme-purple-orange":"Purple Orange","color-scheme-red-blue":"Red Blue","color-scheme-red-grey":"Red Grey","color-scheme-red-yellow-blue":"Red Yellow Blue","color-scheme-red-yellow-green":"Red Yellow Green","color-scheme-spectral":"Spectral"},RT=Object.entries(IT).map(([t,e])=>({group:t,items:Object.keys(e).map(e=>({value:e,label:DT[e],groupName:t}))}));function AT({option:t}){const e=IT[t.groupName][t.value];return(0,x.jsxs)(l,{justify:"space-between",w:"100%",wrap:"nowrap",children:[(0,x.jsx)(f,{children:t.label}),(0,x.jsx)(l,{p:"xs",children:e.map(t=>(0,x.jsx)(g,{bg:t,size:"xs"},t))})]})}function PT(t){return(0,x.jsx)(c,{placeholder:"Select color palette for chart",renderOption:AT,data:RT,...t})}export{PT as CustomColorSelect,dM as CustomTable,KS as EventTimelineChart};
|