@manufac/react-components-potli 1.0.4 → 1.0.6

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.
Files changed (30) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/tsc/components/CustomDateTimePicker/index.js +34 -0
  3. package/dist/tsc/components/CustomDateTimePicker/index.js.map +1 -0
  4. package/dist/tsc/components/CustomDateTimePicker/index.stories.js +19 -0
  5. package/dist/tsc/components/CustomDateTimePicker/index.stories.js.map +1 -0
  6. package/dist/tsc/components/CustomDateTimePicker/utils.js +13 -0
  7. package/dist/tsc/components/CustomDateTimePicker/utils.js.map +1 -0
  8. package/dist/tsc/components/CustomEventTimelineChart/index.js +6 -6
  9. package/dist/tsc/components/CustomTable/index.js +22 -11
  10. package/dist/tsc/components/CustomTable/index.js.map +1 -1
  11. package/dist/tsc/components/CustomTable/index.stories.js +7 -0
  12. package/dist/tsc/components/CustomTable/index.stories.js.map +1 -1
  13. package/dist/tsc/components/CustomTable/utils.js +12 -1
  14. package/dist/tsc/components/CustomTable/utils.js.map +1 -1
  15. package/dist/tsc/index.js +1 -0
  16. package/dist/tsc/index.js.map +1 -1
  17. package/dist/tsc/tsconfig.tsbuildinfo +1 -1
  18. package/dist/types/components/CustomDateTimePicker/index.d.ts +12 -0
  19. package/dist/types/components/CustomDateTimePicker/index.d.ts.map +1 -0
  20. package/dist/types/components/CustomDateTimePicker/index.stories.d.ts +6 -0
  21. package/dist/types/components/CustomDateTimePicker/index.stories.d.ts.map +1 -0
  22. package/dist/types/components/CustomDateTimePicker/utils.d.ts +3 -0
  23. package/dist/types/components/CustomDateTimePicker/utils.d.ts.map +1 -0
  24. package/dist/types/components/CustomTable/index.d.ts.map +1 -1
  25. package/dist/types/components/CustomTable/index.stories.d.ts.map +1 -1
  26. package/dist/types/components/CustomTable/utils.d.ts +3 -1
  27. package/dist/types/components/CustomTable/utils.d.ts.map +1 -1
  28. package/dist/types/index.d.ts +1 -0
  29. package/dist/types/index.d.ts.map +1 -1
  30. package/package.json +4 -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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};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("&nbsp;&nbsp;")+"</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&&lt(t.data)&&xt(t.data)}),Y(la(t.dataset),function(t){t&&t.source&&lt(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{createContext as e,createElement as t,default as n,forwardRef as r,useCallback as i,useContext as o,useEffect as a,useImperativeHandle as s,useLayoutEffect as l,useMemo as u,useRef as c,useState as h}from"react";import{AccordionChevron as d,ActionIcon as f,Alert as p,Box as g,CloseButton as m,Group as v,Input as y,InputBase as _,InputWrapper as x,Modal as b,Popover as w,ScrollArea as S,Select as C,SimpleGrid as M,Skeleton as D,Table as k,Text as T,TextInput as I,ThemeIcon as P,UnstyledButton as L,createSafeContext as A,createVarsResolver as R,factory as O,getFontSize as N,getSize as F,getSpacing as z,useInputProps as E,useProps as B,useResolvedStylesApi as V,useStyles as H}from"@mantine/core";var G={85:(e,t,n)=>{e.exports=n(197)},197:(e,t)=>{var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(e,t,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),"key"in t)for(var o in r={},t)"key"!==o&&(r[o]=t[o]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:i,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=i,t.jsxs=i},390:function(e){e.exports=function(){var e="day";return function(t,n,r){var i=function(t){return t.add(4-t.isoWeekday(),e)},o=n.prototype;o.isoWeekYear=function(){return i(this).year()},o.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var n,o,a,s=i(this),l=(n=this.isoWeekYear(),a=4-(o=(this.$u?r.utc:r)().year(n).startOf("year")).isoWeekday(),o.isoWeekday()>4&&(a+=7),o.add(a,e));return s.diff(l,"week")+1},o.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=o.startOf;o.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return"isoweek"===n.p(e)?r?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(e,t)}}}()},464:function(e){e.exports=function(){var e=6e4,t=36e5,n="millisecond",r="second",i="minute",o="hour",a="day",s="week",l="month",u="quarter",c="year",h="date",d="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),o=n-i<0,a=t.clone().add(r+(o?-1:1),l);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:c,w:s,d:a,D:h,h:o,m:i,s:r,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",_={};_[y]=g;var x="$isDayjsObject",b=function(e){return e instanceof M||!(!e||!e[x])},w=function e(t,n,r){var i;if(!t)return y;if("string"==typeof t){var o=t.toLowerCase();_[o]&&(i=o),n&&(_[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;_[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},S=function(e,t){if(b(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new M(n)},C=v;C.l=w,C.i=b,C.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var M=function(){function g(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var m=g.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return C},m.isValid=function(){return!(this.$d.toString()===d)},m.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return S(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<S(e)},m.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,u=!!C.u(t)||t,d=C.p(e),f=function(e,t){var r=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return u?r:r.endOf(a)},p=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(d){case c:return u?f(1,0):f(31,11);case l:return u?f(1,m):f(0,m+1);case s:var _=this.$locale().weekStart||0,x=(g<_?g+7:g)-_;return f(u?v-x:v+(6-x),m);case a:case h:return p(y+"Hours",0);case o:return p(y+"Minutes",1);case i:return p(y+"Seconds",2);case r:return p(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var s,u=C.p(e),d="set"+(this.$u?"UTC":""),f=(s={},s[a]=d+"Date",s[h]=d+"Date",s[l]=d+"Month",s[c]=d+"FullYear",s[o]=d+"Hours",s[i]=d+"Minutes",s[r]=d+"Seconds",s[n]=d+"Milliseconds",s)[u],p=u===a?this.$D+(t-this.$W):t;if(u===l||u===c){var g=this.clone().set(h,1);g.$d[f](p),g.init(),this.$d=g.set(h,Math.min(this.$D,g.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[C.p(e)]()},m.add=function(n,u){var h,d=this;n=Number(n);var f=C.p(u),p=function(e){var t=S(d);return C.w(t.date(t.date()+Math.round(e*n)),d)};if(f===l)return this.set(l,this.$M+n);if(f===c)return this.set(c,this.$y+n);if(f===a)return p(1);if(f===s)return p(7);var g=(h={},h[i]=e,h[o]=t,h[r]=1e3,h)[f]||1,m=this.$d.getTime()+n*g;return C.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=C.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,u=n.months,c=n.meridiem,h=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},f=function(e){return C.s(o%12||12,e,"0")},g=c||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(p,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return h(n.monthsShort,s,u,3);case"MMMM":return h(u,s);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(n.weekdaysMin,t.$W,l,2);case"ddd":return h(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return C.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return g(o,a,!0);case"A":return g(o,a,!1);case"m":return String(a);case"mm":return C.s(a,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,h,d){var f,p=this,g=C.p(h),m=S(n),v=(m.utcOffset()-this.utcOffset())*e,y=this-m,_=function(){return C.m(p,m)};switch(g){case c:f=_()/12;break;case l:f=_();break;case u:f=_()/3;break;case s:f=(y-v)/6048e5;break;case a:f=(y-v)/864e5;break;case o:f=y/t;break;case i:f=y/e;break;case r:f=y/1e3;break;default:f=y}return d?f:C.a(f)},m.daysInMonth=function(){return this.endOf(l).$D},m.$locale=function(){return _[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=w(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return C.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},g}(),D=M.prototype;return S.prototype=D,[["$ms",n],["$s",r],["$m",i],["$H",o],["$W",a],["$M",l],["$y",c],["$D",h]].forEach(function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),S.extend=function(e,t){return e.$i||(e(t,M,S),e.$i=!0),S},S.locale=w,S.isDayjs=b,S.unix=function(e){return S(1e3*e)},S.en=_[y],S.Ls=_,S.p={},S}()}},W={};function Y(e){var t=W[e];if(void 0!==t)return t.exports;var n=W[e]={exports:{}};return G[e].call(n.exports,n,n.exports,Y),n.exports}Y.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return Y.d(t,{a:t}),t},Y.d=(e,t)=>{for(var n in t)Y.o(t,n)&&!Y.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},Y.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Y.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var j={};Y.r(j),Y.d(j,{Arc:()=>Lf,BezierCurve:()=>Tf,BoundingRect:()=>nn,Circle:()=>Id,CompoundPath:()=>Af,Ellipse:()=>Kd,Group:()=>Xd,Image:()=>Yo,IncrementalDisplayable:()=>qf,Line:()=>Dd,LinearGradient:()=>Nf,OrientedBoundingRect:()=>Uf,Path:()=>zo,Point:()=>zt,Polygon:()=>xf,Polyline:()=>Sf,RadialGradient:()=>zf,Rect:()=>Qo,Ring:()=>mf,Sector:()=>ff,Text:()=>fa,WH:()=>ap,XY:()=>op,applyTransform:()=>bp,calcZ2Range:()=>Gp,clipPointsByRect:()=>Mp,clipRectByRect:()=>Dp,createIcon:()=>kp,ensureCopyRect:()=>Bp,ensureCopyTransform:()=>Vp,expandOrShrinkRect:()=>Lp,extendPath:()=>up,extendShape:()=>sp,getShapeClass:()=>hp,getTransform:()=>xp,groupTransition:()=>Cp,initProps:()=>Jf,isBoundingRectAxisAligned:()=>zp,isElementRemoved:()=>ep,lineLineIntersect:()=>Ip,linePolygonIntersect:()=>Tp,makeImage:()=>fp,makePath:()=>dp,mergePath:()=>gp,registerShape:()=>cp,removeElement:()=>tp,removeElementWithFadeOut:()=>rp,resizePath:()=>mp,retrieveZInfo:()=>Hp,setTooltipConfig:()=>Op,subPixelOptimize:()=>_p,subPixelOptimizeLine:()=>vp,subPixelOptimizeRect:()=>yp,transformDirection:()=>wp,traverseElements:()=>Fp,traverseUpdateZ:()=>Wp,updateProps:()=>Qf});var $=Y(85),U=function(e,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},U(e,t)};function X(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}U(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create,Object.create;var q,Z,K="12px sans-serif",Q=function(e){var t={};if("undefined"==typeof JSON)return t;for(var n=0;n<95;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-20)/100;t[r]=i}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),J={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(e,t){if(!q){var n=J.createCanvas();q=n&&n.getContext("2d")}if(q)return Z!==t&&(Z=q.font=t||K),q.measureText(e);e=e||"";var r=/((?:\d+)?\.?\d*)px/.exec(t=t||K),i=r&&+r[1]||12,o=0;if(t.indexOf("mono")>=0)o=i*e.length;else for(var a=0;a<e.length;a++){var s=Q[e[a]];o+=null==s?i:s*i}return{width:o}},loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},ee=Se(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),te=Se(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),ne=Object.prototype.toString,re=Array.prototype,ie=re.forEach,oe=re.filter,ae=re.slice,se=re.map,le=function(){}.constructor,ue=le?le.prototype:null,ce="__proto__",he=2311;function de(){return he++}function fe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!=typeof console&&console.error.apply(console,e)}function pe(e){if(null==e||"object"!=typeof e)return e;var t=e,n=ne.call(e);if("[object Array]"===n){if(!Xe(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=pe(e[r])}}else if(te[n]){if(!Xe(e)){var o=e.constructor;if(o.from)t=o.from(e);else for(t=new o(e.length),r=0,i=e.length;r<i;r++)t[r]=e[r]}}else if(!ee[n]&&!Xe(e)&&!Fe(e))for(var a in t={},e)e.hasOwnProperty(a)&&a!==ce&&(t[a]=pe(e[a]));return t}function ge(e,t,n){if(!Re(t)||!Re(e))return n?pe(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==ce){var i=e[r],o=t[r];!Re(o)||!Re(i)||Te(o)||Te(i)||Fe(o)||Fe(i)||Oe(o)||Oe(i)||Xe(o)||Xe(i)?!n&&r in e||(e[r]=pe(t[r])):ge(i,o,n)}return e}function me(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==ce&&(e[n]=t[n]);return e}function ve(e,t,n){for(var r=Me(t),i=0,o=r.length;i<o;i++){var a=r[i];(n?null!=t[a]:null==e[a])&&(e[a]=t[a])}return e}function ye(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function _e(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}else ve(e,t,n)}function xe(e){return!!e&&"string"!=typeof e&&"number"==typeof e.length}function be(e,t,n){if(e&&t)if(e.forEach&&e.forEach===ie)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function we(e,t,n){if(!e)return[];if(!t)return Ge(e);if(e.map&&e.map===se)return e.map(t,n);for(var r=[],i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i,e));return r}function Se(e,t,n,r){if(e&&t){for(var i=0,o=e.length;i<o;i++)n=t.call(r,n,e[i],i,e);return n}}function Ce(e,t,n){if(!e)return[];if(!t)return Ge(e);if(e.filter&&e.filter===oe)return e.filter(t,n);for(var r=[],i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function Me(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}J.createCanvas;var De=ue&&Ie(ue.bind)?ue.call.bind(ue.bind):function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(ae.call(arguments)))}};function ke(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(ae.call(arguments)))}}function Te(e){return Array.isArray?Array.isArray(e):"[object Array]"===ne.call(e)}function Ie(e){return"function"==typeof e}function Pe(e){return"string"==typeof e}function Le(e){return"[object String]"===ne.call(e)}function Ae(e){return"number"==typeof e}function Re(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function Oe(e){return!!ee[ne.call(e)]}function Ne(e){return!!te[ne.call(e)]}function Fe(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function ze(e){return null!=e.colorStops}function Ee(e){return e!=e}function Be(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(null!=e[n])return e[n]}function Ve(e,t){return null!=e?e:t}function He(e,t,n){return null!=e?e:null!=t?t:n}function Ge(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return ae.apply(e,t)}function We(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function Ye(e,t){if(!e)throw new Error(t)}function je(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var $e="__ec_primitive__";function Ue(e){e[$e]=!0}function Xe(e){return e[$e]}var qe=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return Me(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Ze="function"==typeof Map,Ke=function(){function e(t){var n=Te(t);this.data=Ze?new Map:new qe;var r=this;function i(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(i):t&&be(t,i)}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return Ze?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function Qe(e){return new Ke(e)}function Je(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&me(n,t),n}function et(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function tt(e,t){return e.hasOwnProperty(t)}function nt(){}var rt=180/Math.PI,it=(Number.EPSILON||Math.pow(2,-52),function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}),ot=new function(){this.browser=new it,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?(ot.wxa=!0,ot.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?ot.worker=!0:!ot.hasGlobalWindow||"Deno"in window||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(ot.node=!0,ot.svgSupported=!0):function(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),t.svgSupported="undefined"!=typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!=typeof document){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}(navigator.userAgent,ot);const at=ot;var st="___EC__COMPONENT__CONTAINER___",lt="___EC__EXTENDED_CLASS___";function ut(e){var t={main:"",sub:""};if(e){var n=e.split(".");t.main=n[0]||"",t.sub=n[1]||""}return t}function ct(e,t){e.$constructor=e,e.extend=function(e){var t,n,r=this;return Ie(n=r)&&/^class\s/.test(Function.prototype.toString.call(n))?t=function(e){function t(){return e.apply(this,arguments)||this}return X(t,e),t}(r):(t=function(){(e.$constructor||r).apply(this,arguments)},function(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}(t,this)),me(t.prototype,e),t[lt]=!0,t.extend=this.extend,t.superCall=ft,t.superApply=pt,t.superClass=r,t}}function ht(e,t){e.extend=t.extend}var dt=Math.round(10*Math.random());function ft(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function pt(e,t,n){return this.superClass.prototype[t].apply(e,n)}function gt(e){var t={};e.registerClass=function(e){var n,r=e.type||e.prototype.type;if(r){Ye(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=r),'componentType "'+n+'" illegal'),e.prototype.type=r;var i=ut(r);if(i.sub){if(i.sub!==st){var o=function(e){var n=t[e.main];return n&&n[st]||((n=t[e.main]={})[st]=!0),n}(i);o[i.sub]=e}}else t[i.main]=e}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[st]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return i},e.getClassesByMainType=function(e){var n=ut(e),r=[],i=t[n.main];return i&&i[st]?be(i,function(e,t){t!==st&&r.push(e)}):r.push(i),r},e.hasClass=function(e){var n=ut(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return be(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=ut(e),r=t[n.main];return r&&r[st]}}function mt(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,r,i){for(var o={},a=0;a<e.length;a++){var s=e[a][1];if(!(r&&ye(r,s)>=0||i&&ye(i,s)<0)){var l=n.getShallow(s,t);null!=l&&(o[e[a][0]]=l)}}return o}}var vt=mt([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),yt=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return vt(this,e,t)},e}(),_t=function(e,t){return _t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},_t(e,t)};function xt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}_t(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create,Object.create;var bt=function(e){this.value=e},wt=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new bt(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),St=function(){function e(e){this._list=new wt,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(null==r[e]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}a?a.value=t:a=new bt(t),a.key=e,n.insertEntry(a),r[e]=a}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const Ct=St;var Mt=new Ct(50);function Dt(e){if("string"==typeof e){var t=Mt.get(e);return t&&t.image}return e}function kt(e,t,n,r,i){if(e){if("string"==typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var o=Mt.get(e),a={hostEl:n,cb:r,cbPayload:i};return o?!It(t=o.image)&&o.pending.push(a):((t=J.loadImage(e,Tt,Tt)).__zrImageSrc=e,Mt.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}return e}return t}function Tt(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function It(e){return e&&e.width&&e.height}function Pt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Lt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function At(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function Rt(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Ot(e,t,n,r){void 0===r&&(r=[0,0]);var i=t[0],o=t[2],a=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(n),h=Math.cos(n);return e[0]=i*h+s*c,e[1]=-i*c+s*h,e[2]=o*h+l*c,e[3]=-o*c+h*l,e[4]=h*(a-r[0])+c*(u-r[1])+r[0],e[5]=h*(u-r[1])-c*(a-r[0])+r[1],e}function Nt(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*r;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-a*i)*l,e[5]=(o*i-n*s)*l,e):null}var Ft=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}();const zt=Ft;var Et=Math.min,Bt=Math.max,Vt=Math.abs,Ht=["x","y"],Gt=["width","height"],Wt=new zt,Yt=new zt,jt=new zt,$t=new zt,Ut=tn(),Xt=Ut.minTv,qt=Ut.maxTv,Zt=[0,0],Kt=function(){function e(t,n,r,i){e.set(this,t,n,r,i)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=Et(e.x,this.x),n=Et(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Bt(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Bt(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=[1,0,0,1,0,0];return Rt(i,i,[-t.x,-t.y]),function(e,t,n){var r=n[0],i=n[1];e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i}(i,i,[n,r]),Rt(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&zt.set(r,0,0);var o=i&&i.outIntersectRect||null,a=i&&i.clamp;if(o&&(o.x=o.y=o.width=o.height=NaN),!t||!n)return!1;t instanceof e||(t=e.set(Qt,t.x,t.y,t.width,t.height)),n instanceof e||(n=e.set(Jt,n.x,n.y,n.width,n.height));var s=!!r;Ut.reset(i,s);var l=Ut.touchThreshold,u=t.x+l,c=t.x+t.width-l,h=t.y+l,d=t.y+t.height-l,f=n.x+l,p=n.x+n.width-l,g=n.y+l,m=n.y+n.height-l;if(u>c||h>d||f>p||g>m)return!1;var v=!(c<f||p<u||d<g||m<h);return(s||o)&&(Zt[0]=1/0,Zt[1]=0,en(u,c,f,p,0,s,o,a),en(h,d,g,m,1,s,o,a),s&&zt.copy(r,v?Ut.useDir?Ut.dirMinTv:Xt:qt)),v},e.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(t,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return t.x=n.x*i+a,t.y=n.y*o+s,t.width=n.width*i,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}Wt.x=jt.x=n.x,Wt.y=$t.y=n.y,Yt.x=$t.x=n.x+n.width,Yt.y=jt.y=n.y+n.height,Wt.transform(r),$t.transform(r),Yt.transform(r),jt.transform(r),t.x=Et(Wt.x,Yt.x,jt.x,$t.x),t.y=Et(Wt.y,Yt.y,jt.y,$t.y);var l=Bt(Wt.x,Yt.x,jt.x,$t.x),u=Bt(Wt.y,Yt.y,jt.y,$t.y);t.width=l-t.x,t.height=u-t.y}else t!==n&&e.copy(t,n)},e}(),Qt=new Kt(0,0,0,0),Jt=new Kt(0,0,0,0);function en(e,t,n,r,i,o,a,s){var l=Vt(t-n),u=Vt(r-e),c=Et(l,u),h=Ht[i],d=Ht[1-i],f=Gt[i];t<n||r<e?l<u?(o&&(qt[h]=-l),s&&(a[h]=t,a[f]=0)):(o&&(qt[h]=u),s&&(a[h]=e,a[f]=0)):(a&&(a[h]=Bt(e,n),a[f]=Et(t,r)-a[h]),o&&(c<Zt[0]||Ut.useDir)&&(Zt[0]=Et(c,Zt[0]),(l<u||!Ut.bidirectional)&&(Xt[h]=l,Xt[d]=0,Ut.useDir&&Ut.calcDirMTV()),(l>=u||!Ut.bidirectional)&&(Xt[h]=-u,Xt[d]=0,Ut.useDir&&Ut.calcDirMTV())))}function tn(){var e=0,t=new zt,n=new zt,r={minTv:new zt,maxTv:new zt,useDir:!1,dirMinTv:new zt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){r.touchThreshold=0,i&&null!=i.touchThreshold&&(r.touchThreshold=Bt(0,i.touchThreshold)),r.negativeSize=!1,o&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&null!=i.direction&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=null==i.bidirectional||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var o=r.minTv,a=r.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(e),u=Math.cos(e),c=l*o.y+u*o.x;i(c)?i(o.x)&&i(o.y)&&a.set(0,0):(n.x=s*u/c,n.y=s*l/c,i(n.x)&&i(n.y)?a.set(0,0):(r.bidirectional||t.dot(n)>0)&&n.len()<a.len()&&a.copy(n))}};function i(e){return Vt(e)<1e-10}return r}const nn=Kt;function rn(e){on||(on=new Ct(100)),e=e||K;var t=on.get(e);return t||(t={font:e,strWidthCache:new Ct(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:J.measureText("国",e).width,asciiCharWidth:J.measureText("a",e).width},on.put(e,t)),t}var on,an=0;function sn(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=function(e){if(!(an>=5)){e=e||K;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=J.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?an=5:i>2&&an++,t}}(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?null!=e.asciiWidthMap?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function ln(e,t){var n=e.strWidthCache,r=n.get(t);return null==r&&(r=J.measureText(t,e.font).width,n.put(t,r)),r}function un(e,t,n,r){var i=ln(rn(t),e),o=fn(t),a=hn(0,i,n),s=dn(0,o,r);return new nn(a,s,i,o)}function cn(e,t,n,r){var i=((e||"")+"").split("\n");if(1===i.length)return un(i[0],t,n,r);for(var o=new nn(0,0,0,0),a=0;a<i.length;a++){var s=un(i[a],t,n,r);0===a?o.copy(s):o.union(s)}return o}function hn(e,t,n,r){return"right"===n?r?e+=t:e-=t:"center"===n&&(r?e+=t/2:e-=t/2),e}function dn(e,t,n,r){return"middle"===n?r?e+=t/2:e-=t/2:"bottom"===n&&(r?e+=t:e-=t),e}function fn(e){return rn(e).stWideCharWidth}function pn(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function gn(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(r instanceof Array)l+=pn(r[0],n.width),u+=pn(r[1],n.height),c=null,h=null;else switch(r){case"left":l-=i,u+=s,c="right",h="middle";break;case"right":l+=i+a,u+=s,h="middle";break;case"top":l+=a/2,u-=i,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=a-i,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,h="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",h="bottom"}return(e=e||{}).x=l,e.y=u,e.align=c,e.verticalAlign=h,e}var mn=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function vn(e,t,n,r,i,o){if(!n)return e.text="",void(e.isTruncated=!1);var a=(t+"").split("\n");o=yn(n,r,i,o);for(var s=!1,l={},u=0,c=a.length;u<c;u++)_n(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;e.text=a.join("\n"),e.isTruncated=s}function yn(e,t,n,r){var i=me({},r=r||{});n=Ve(n,"..."),i.maxIterations=Ve(r.maxIterations,2);var o=i.minChar=Ve(r.minChar,0),a=i.fontMeasureInfo=rn(t),s=a.asciiCharWidth;i.placeholder=Ve(r.placeholder,"");for(var l=e=Math.max(0,e-1),u=0;u<o&&l>=s;u++)l-=s;var c=ln(a,n);return c>l&&(n="",c=0),l=e-c,i.ellipsis=n,i.ellipsisWidth=c,i.contentWidth=l,i.containerWidth=e,i}function _n(e,t,n){var r=n.containerWidth,i=n.contentWidth,o=n.fontMeasureInfo;if(!r)return e.textLine="",void(e.isTruncated=!1);var a=ln(o,t);if(a<=r)return e.textLine=t,void(e.isTruncated=!1);for(var s=0;;s++){if(a<=i||s>=n.maxIterations){t+=n.ellipsis;break}var l=0===s?xn(t,i,o):a>0?Math.floor(t.length*i/a):0;a=ln(o,t=t.substr(0,l))}""===t&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function xn(e,t,n){for(var r=0,i=0,o=e.length;i<o&&r<t;i++)r+=sn(n,e.charCodeAt(i));return i}var bn=function(){},wn=function(e){this.tokens=[],e&&(this.tokens=e)},Sn=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 Cn(e,t,n,r,i){var o,a,s=""===t,l=i&&n.rich[i]||{},u=e.lines,c=l.font||n.font,h=!1;if(r){var d=l.padding,f=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var p=pn(l.width,r.width)+f;u.length>0&&p+r.accumWidth>r.width&&(o=t.split("\n"),h=!0),r.accumWidth=p}else{var g=kn(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+f,a=g.linesWidths,o=g.lines}}o||(o=t.split("\n"));for(var m=rn(c),v=0;v<o.length;v++){var y=o[v],_=new bn;if(_.styleName=i,_.text=y,_.isLineHolder=!y&&!s,"number"==typeof l.width?_.width=l.width:_.width=a?a[v]:ln(m,y),v||h)u.push(new wn([_]));else{var x=(u[u.length-1]||(u[0]=new wn)).tokens,b=x.length;1===b&&x[0].isLineHolder?x[0]=_:(y||!b||s)&&x.push(_)}}}var Mn=Se(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Dn(e){return!function(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}(e)||!!Mn[e]}function kn(e,t,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,h=rn(t),d=0;d<e.length;d++){var f=e.charAt(d);if("\n"!==f){var p=sn(h,f.charCodeAt(0)),g=!r&&!Dn(f);(o.length?c+p>n:i+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+=i),{accumWidth:c,lines:o,linesWidths:a}}function Tn(e,t,n,r,i,o){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var a=2*t.width,s=2*t.height;nn.set(In,hn(n,a,i),dn(r,s,o),a,s),nn.intersect(t,In,null,Pn);var l=Pn.outIntersectRect;e.outerWidth=l.width,e.outerHeight=l.height,e.baseX=hn(l.x,l.width,i,!0),e.baseY=dn(l.y,l.height,o,!0)}}var In=new nn(0,0,0,0),Pn={outIntersectRect:{},clamp:!0};function Ln(e){return null!=e?e+="":e=""}function An(e,t,n,r){var i=new nn(hn(e.x||0,t,e.textAlign),dn(e.y||0,n,e.textBaseline),t,n),o=null!=r?r:Rn(e)?e.lineWidth:0;return o>0&&(i.x-=o/2,i.y-=o/2,i.width+=o,i.height+=o),i}function Rn(e){var t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0}function On(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function Nn(e){return[e[0],e[1]]}function Fn(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function zn(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function En(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Bn(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Vn=Bn,Hn=function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])};function Gn(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function Wn(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Yn(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var jn=Pt;function $n(e){return e>5e-5||e<-5e-5}var Un=[],Xn=[],qn=[1,0,0,1,0,0],Zn=Math.abs,Kn=function(){function e(){}var t;return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.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)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||[1,0,0,1,0,0],t?this.getLocalTransform(n):jn(n),e&&(t?At(n,e,n):Lt(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(jn(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(Un);var n=Un[0]<0?-1:1,r=Un[1]<0?-1:1,i=((Un[0]-n)*t+n)/Un[0]||0,o=((Un[1]-r)*t+r)/Un[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],Nt(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||[1,0,0,1,0,0],At(Xn,e.invTransform,t),t=Xn);var n=this.originX,r=this.originY;(n||r)&&(qn[4]=n,qn[5]=r,At(Xn,t,qn),Xn[4]-=n,Xn[5]-=r,t=Xn),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&Gn(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Gn(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Zn(e[0]-1)>1e-10&&Zn(e[3]-1)>1e-10?Math.sqrt(Zn(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){Jn(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,o=e.scaleY,a=e.anchorX,s=e.anchorY,l=e.rotation||0,u=e.x,c=e.y,h=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(n||r||a||s){var f=n+a,p=r+s;t[4]=-f*i-h*p*o,t[5]=-p*o-d*f*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=d*i,t[2]=h*o,l&&Ot(t,t,l),t[4]+=n+u,t[5]+=r+c,t},e.initDefaultProps=((t=e.prototype).scaleX=t.scaleY=t.globalScaleRatio=1,void(t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0)),e}(),Qn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Jn(e,t){for(var n=0;n<Qn.length;n++){var r=Qn[n];e[r]=t[r]}}const er=Kn;var tr={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-tr.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*tr.bounceIn(2*e):.5*tr.bounceOut(2*e-1)+.5}};const nr=tr;var rr=Math.pow,ir=Math.sqrt,or=1e-4,ar=ir(3),sr=1/3,lr=On(),ur=On(),cr=On();function hr(e){return e>-1e-8&&e<1e-8}function dr(e){return e>1e-8||e<-1e-8}function fr(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function pr(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function gr(e,t,n,r,i,o){var a=r+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-i,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,f=0;if(hr(c)&&hr(h))hr(s)?o[0]=0:(C=-l/s)>=0&&C<=1&&(o[f++]=C);else{var p=h*h-4*c*d;if(hr(p)){var g=h/c,m=-g/2;(C=-s/a+g)>=0&&C<=1&&(o[f++]=C),m>=0&&m<=1&&(o[f++]=m)}else if(p>0){var v=ir(p),y=c*s+1.5*a*(-h+v),_=c*s+1.5*a*(-h-v);(C=(-s-((y=y<0?-rr(-y,sr):rr(y,sr))+(_=_<0?-rr(-_,sr):rr(_,sr))))/(3*a))>=0&&C<=1&&(o[f++]=C)}else{var x=(2*c*s-3*a*h)/(2*ir(c*c*c)),b=Math.acos(x)/3,w=ir(c),S=Math.cos(b),C=(-s-2*w*S)/(3*a),M=(m=(-s+w*(S+ar*Math.sin(b)))/(3*a),(-s+w*(S-ar*Math.sin(b)))/(3*a));C>=0&&C<=1&&(o[f++]=C),m>=0&&m<=1&&(o[f++]=m),M>=0&&M<=1&&(o[f++]=M)}}return f}function mr(e,t,n,r,i){var o=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(hr(a))dr(o)&&(c=-s/o)>=0&&c<=1&&(i[l++]=c);else{var u=o*o-4*a*s;if(hr(u))i[0]=-o/(2*a);else if(u>0){var c,h=ir(u),d=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&c<=1&&(i[l++]=c),d>=0&&d<=1&&(i[l++]=d)}}return l}function vr(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,h=(c-u)*i+u;o[0]=e,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=r}function yr(e,t,n,r,i,o,a,s,l){for(var u=e,c=t,h=0,d=1/l,f=1;f<=l;f++){var p=f*d,g=fr(e,n,i,a,p),m=fr(t,r,o,s,p),v=g-u,y=m-c;h+=Math.sqrt(v*v+y*y),u=g,c=m}return h}function _r(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function xr(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function br(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function wr(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function Sr(e,t,n,r,i,o,a){for(var s=e,l=t,u=0,c=1/a,h=1;h<=a;h++){var d=h*c,f=_r(e,n,i,d),p=_r(t,r,o,d),g=f-s,m=p-l;u+=Math.sqrt(g*g+m*m),s=f,l=p}return u}var Cr=/cubic-bezier\(([0-9,\.e ]+)\)/;function Mr(e){var t=e&&Cr.exec(e);if(t){var n=t[1].split(","),r=+je(n[0]),i=+je(n[1]),o=+je(n[2]),a=+je(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(e){return e<=0?0:e>=1?1:gr(0,r,o,1,e,s)&&fr(0,i,a,1,s[0])}}}const Dr=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||nt,this.ondestroy=e.ondestroy||nt,this.onrestart=e.onrestart||nt,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Ie(e)?e:nr[e]||Mr(e)},e}();var kr={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 Tr(e){return(e=Math.round(e))<0?0:e>255?255:e}function Ir(e){return e<0?0:e>1?1:e}function Pr(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?Tr(parseFloat(t)/100*255):Tr(parseInt(t,10))}function Lr(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?Ir(parseFloat(t)/100):Ir(parseFloat(t))}function Ar(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function Rr(e,t,n){return e+(t-e)*n}function Or(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Nr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Fr=new Ct(20),zr=null;function Er(e,t){zr&&Nr(zr,t),zr=Fr.put(e,zr||t.slice())}function Br(e,t){if(e){t=t||[];var n=Fr.get(e);if(n)return Nr(t,n);var r=(e+="").replace(/ /g,"").toLowerCase();if(r in kr)return Nr(t,kr[r]),Er(e,t),t;var i,o=r.length;if("#"===r.charAt(0))return 4===o||5===o?(i=parseInt(r.slice(1,4),16))>=0&&i<=4095?(Or(t,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===o?parseInt(r.slice(4),16)/15:1),Er(e,t),t):void Or(t,0,0,0,1):7===o||9===o?(i=parseInt(r.slice(1,7),16))>=0&&i<=16777215?(Or(t,(16711680&i)>>16,(65280&i)>>8,255&i,9===o?parseInt(r.slice(7),16)/255:1),Er(e,t),t):void Or(t,0,0,0,1):void 0;var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===o){var l=r.substr(0,a),u=r.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?Or(t,+u[0],+u[1],+u[2],1):Or(t,0,0,0,1);c=Lr(u.pop());case"rgb":return u.length>=3?(Or(t,Pr(u[0]),Pr(u[1]),Pr(u[2]),3===u.length?c:Lr(u[3])),Er(e,t),t):void Or(t,0,0,0,1);case"hsla":return 4!==u.length?void Or(t,0,0,0,1):(u[3]=Lr(u[3]),Vr(u,t),Er(e,t),t);case"hsl":return 3!==u.length?void Or(t,0,0,0,1):(Vr(u,t),Er(e,t),t);default:return}}Or(t,0,0,0,1)}}function Vr(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Lr(e[1]),i=Lr(e[2]),o=i<=.5?i*(r+1):i+r-i*r,a=2*i-o;return Or(t=t||[],Tr(255*Ar(a,o,n+1/3)),Tr(255*Ar(a,o,n)),Tr(255*Ar(a,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function Hr(e,t){var n=Br(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Yr(n,4===n.length?"rgba":"rgb")}}function Gr(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),a=Br(t[i]),s=Br(t[o]),l=r-i,u=Yr([Tr(Rr(a[0],s[0],l)),Tr(Rr(a[1],s[1],l)),Tr(Rr(a[2],s[2],l)),Ir(Rr(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}function Wr(e,t,n,r){var i,o=Br(e);if(e)return o=function(e){if(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)t=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,h=((s-i)/6+l/2)/l,d=((s-o)/6+l/2)/l;r===s?t=d-h:i===s?t=1/3+c-d:o===s&&(t=2/3+h-c),t<0&&(t+=1),t>1&&(t-=1)}var f=[360*t,n,u];return null!=e[3]&&f.push(e[3]),f}}(o),null!=t&&(o[0]=(i=Ie(t)?t(o[0]):t,(i=Math.round(i))<0?0:i>360?360:i)),null!=n&&(o[1]=Lr(Ie(n)?n(o[1]):n)),null!=r&&(o[2]=Lr(Ie(r)?r(o[2]):r)),Yr(Vr(o),"rgba")}function Yr(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function jr(e,t){var n=Br(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var $r=new Ct(100);function Ur(e){if(Pe(e)){var t=$r.get(e);return t||(t=Hr(e,-.1),$r.put(e,t)),t}if(ze(e)){var n=me({},e);return n.colorStops=we(e.colorStops,function(e){return{offset:e.offset,color:Hr(e.color,-.1)}}),n}return e}Math.round,at.hasGlobalWindow&&Ie(window.btoa);var Xr=Array.prototype.slice;function qr(e,t,n){return(t-e)*n+e}function Zr(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=qr(t[o],n[o],r);return e}function Kr(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=t[o]+n[o]*r;return e}function Qr(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*r}return e}function Jr(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function ei(e,t,n){var r=e,i=t;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a)if(o>a)r.length=a;else for(var s=o;s<a;s++)r.push(1===n?i[s]:Xr.call(i[s]));var l=r[0]&&r[0].length;for(s=0;s<r.length;s++)if(1===n)isNaN(r[s])&&(r[s]=i[s]);else for(var u=0;u<l;u++)isNaN(r[s][u])&&(r[s][u]=i[s][u])}}function ti(e){if(xe(e)){var t=e.length;if(xe(e[0])){for(var n=[],r=0;r<t;r++)n.push(Xr.call(e[r]));return n}return Xr.call(e)}return e}function ni(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function ri(e){return 4===e||5===e}function ii(e){return 1===e||2===e}var oi=[0,0,0,0],ai=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=6,s=t;if(xe(t)){var l=function(e){return xe(e&&e[0])?2:1}(t);a=l,(1===l&&!Ae(t[0])||2===l&&!Ae(t[0][0]))&&(o=!0)}else if(Ae(t)&&!Ee(t))a=0;else if(Pe(t))if(isNaN(+t)){var u=Br(t);u&&(s=u,a=3)}else a=0;else if(ze(t)){var c=me({},s);c.colorStops=we(t.colorStops,function(e){return{offset:e.offset,color:Br(e.color)}}),"linear"===t.type?a=4:"radial"===t.type&&(a=5),s=c}0===i?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var h={time:e,value:s,rawValue:t,percent:0};return n&&(h.easing=n,h.easingFunc=Ie(n)?n:nr[n]||Mr(n)),r.push(h),h},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=ii(r),l=ri(r),u=0;u<i;u++){var c=n[u],h=c.value,d=o.value;c.percent=c.time/e,a||(s&&u!==i-1?ei(h,d,r):l&&Jr(h.colorStops,d.colorStops))}if(!a&&5!==r&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;var f=n[0].value;for(u=0;u<i;u++)0===r?n[u].additiveValue=n[u].value-f:3===r?n[u].additiveValue=Kr([],n[u].value,f,-1):ii(r)&&(n[u].additiveValue=1===r?Kr([],n[u].value,f,-1):Qr([],n[u].value,f,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,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)r=i=l[0];else{if(t<0)n=0;else if(t<this._lastFrP){for(n=f(d+1,u-1);n>=0&&!(l[n].percent<=t);n--);n=f(n,u-2)}else{for(n=d;n<u&&!(l[n].percent>t);n++);n=f(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var p=i.percent-r.percent,g=0===p?1:f((t-r.percent)/p,1);i.easingFunc&&(g=i.easingFunc(g));var m=o?this._additiveValue:h?oi:e[c];if(!ii(s)&&!h||m||(m=this._additiveValue=[]),this.discrete)e[c]=g<1?r.rawValue:i.rawValue;else if(ii(s))1===s?Zr(m,r[a],i[a],g):function(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=qr(t[a][s],n[a][s],r)}}(m,r[a],i[a],g);else if(ri(s)){var v=r[a],y=i[a],_=4===s;e[c]={type:_?"linear":"radial",x:qr(v.x,y.x,g),y:qr(v.y,y.y,g),colorStops:we(v.colorStops,function(e,t){var n=y.colorStops[t];return{offset:qr(e.offset,n.offset,g),color:ni(Zr([],e.color,n.color,g))}}),global:y.global},_?(e[c].x2=qr(v.x2,y.x2,g),e[c].y2=qr(v.y2,y.y2,g)):e[c].r=qr(v.r,y.r,g)}else if(h)Zr(m,r[a],i[a],g),o||(e[c]=ni(m));else{var x=qr(r[a],i[a],g);o?this._additiveValue=x:e[c]=x}o&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;0===t?e[n]=e[n]+r:3===t?(Br(e[n],oi),Kr(oi,oi,r,1),e[n]=ni(oi)):1===t?Kr(e[n],e[n],r,1):2===t&&Qr(e[n],e[n],r,1)},e}(),si=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?fe("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,Me(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new ai(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=ni(l))}else l=this._target[a];if(null==l)continue;e>0&&s.addKeyframe(0,ti(l),r),this._trackKeys.push(a)}s.addKeyframe(e,ti(t[a]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(t._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new Dr({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(t._target,e);var a=t._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),e&&h.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return we(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var o=n[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(e[i]=ti(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||Me(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var a=o.pop();i.addKeyframe(a.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();const li=si;var ui=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof t&&(r=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var a=0;a<i[e].length;a++)if(i[e][a].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[e].length-1,u=i[e][l];return u&&u.callAtLast?i[e].splice(l,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var o=t.length,a=r.length,s=0;s<a;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(e,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var o=t.length,a=t[o-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(e,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,t[0]);break;case 2:u.h.call(a,t[0],t[1]);break;default:u.h.apply(a,t.slice(1,o-1))}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e}();const ci=ui;var hi=1;at.hasGlobalWindow&&(hi=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var di=hi,fi="#333",pi="#ccc",gi="__zr_normal__",mi=Qn.concat(["ignore"]),vi=Se(Qn,function(e,t){return e[t]=!0,e},{ignore:!1}),yi={},_i=new nn(0,0,0,0),xi=[],bi=function(){function e(e){this.id=de(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=t.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;i.copyTransform(t);var u=null!=n.position,c=n.autoOverflowArea,h=void 0;if((c||u)&&(h=_i,n.layoutRect?h.copy(n.layoutRect):h.copy(this.getBoundingRect()),r||h.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(yi,n,h):gn(yi,n,h),i.x=yi.x,i.y=yi.y,o=yi.align,a=yi.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=pn(d[0],h.width),p=pn(d[1],h.height)),l=!0,i.originX=-i.x+f+(r?0:h.x),i.originY=-i.y+p+(r?0:h.y)}}null!=n.rotation&&(i.rotation=n.rotation);var g=n.offset;g&&(i.x+=g[0],i.y+=g[1],l||(i.originX=-g[0],i.originY=-g[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var v=m.overflowRect=m.overflowRect||new nn(0,0,0,0);i.getLocalTransform(xi),Nt(xi,xi),nn.copy(v,h),v.applyTransform(xi)}else m.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")===m.fill&&_===m.stroke&&x===m.autoStroke&&o===m.align&&a===m.verticalAlign||(s=!0,m.fill=y,m.stroke=_,m.autoStroke=x,m.align=o,m.verticalAlign=a,t.setDefaultTextStyle(m)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?pi:fi},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof t&&Br(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Yr(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},me(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(Re(e))for(var n=Me(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==gi)){var o=r.targetName,a=o?t[o]:t;r.saveTo(a)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,mi)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null==e[i]||i in t||(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(gi,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===gi;if(this.hasState()||!i){var o=this.currentStates,a=this.stateTransition;if(!(ye(o,e)>=0)||!t&&1!==o.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||(s=this.states&&this.states[e]),s||i){i||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(e,t,n,l),c&&c.useState(e,t,n,l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}fe("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],i=this.currentStates,o=e.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(e[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=e[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,e)),u||(u=this.states[l]),u&&r.push(u)}var c=r[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(r),f=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,!t&&!this.__inHover&&f&&f.duration>0,f);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,t,h),g&&g.useStates(e,t,h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=ye(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=ye(r,e),o=ye(r,t)>=0;i>=0?o?r.splice(i,1):r[i]=t:n&&!o&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r<e.length;r++){var i=e[r];me(n,i),i.textConfig&&me(t=t||{},i.textConfig)}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,i,o){var a=!(t&&r);t&&t.textConfig?(this.textConfig=me({},r?this.textConfig:n.textConfig),me(this.textConfig,t.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<mi.length;u++){var c=mi[u],h=i&&vi[c];t&&null!=t[c]?h?(l=!0,s[c]=t[c]):this[c]=t[c]:a&&null!=n[c]&&(h?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(u=0;u<this.animators.length;u++){var d=this.animators[u],f=d.targetName;d.getLoop()||d.__changeFinalValue(f?(t||n)[f]:t||n)}l&&this._transitionState(e,s,o)},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new er,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),me(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=e?this[e]:this,i=new li(r,t,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=ye(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];e&&e!==a.scope?i.push(a):a.stop(t)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){wi(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){wi(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=wi(this,t,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;function n(e,n,r,i){function o(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}Object.defineProperty(t,e,{get:function(){return this[n]||o(this,this[n]=[]),this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,o(this,e)}})}t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();function wi(e,t,n,r,i){var o=[];Mi(e,"",e,t,n=n||{},r,o,i);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(e,t){n.during(t)});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 Si(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Ci(e,t,n){if(xe(t[n]))if(xe(e[n])||(e[n]=[]),Ne(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),Si(e[n],t[n],r))}else{var i=t[n],o=e[n],a=i.length;if(xe(i[0]))for(var s=i[0].length,l=0;l<a;l++)o[l]?Si(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else Si(o,i,a);o.length=i.length}else e[n]=t[n]}function Mi(e,t,n,r,i,o,a,s){for(var l=Me(r),u=i.duration,c=i.delay,h=i.additive,d=i.setToFinal,f=!Re(o),p=e.animators,g=[],m=0;m<l.length;m++){var v=l[m],y=r[v];if(null!=y&&null!=n[v]&&(f||o[v]))if(!Re(y)||xe(y)||ze(y))g.push(v);else{if(t){s||(n[v]=y,e.updateDuringAnimation(t));continue}Mi(e,v,n[v],y,i,o&&o[v],a,s)}else s||(n[v]=y,e.updateDuringAnimation(t),g.push(v))}var _=g.length;if(!h&&_)for(var x=0;x<p.length;x++)if((w=p[x]).targetName===t&&w.stopTracks(g)){var b=ye(p,w);p.splice(b,1)}if(i.force||(g=Ce(g,function(e){return!((t=r[e])===(i=n[e])||xe(t)&&xe(i)&&function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}(t,i));var t,i}),_=g.length),_>0||i.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[v=g[x]]=n[v],d?S[v]=r[v]:n[v]=r[v];else if(d)for(M={},x=0;x<_;x++)M[v=g[x]]=ti(n[v]),Ci(n,r,v);(w=new li(n,!1,!1,h?Ce(p,function(e){return e.targetName===t}):null)).targetName=t,i.scope&&(w.scope=i.scope),d&&S&&w.whenWithKeys(0,S,g),M&&w.whenWithKeys(0,M,g),w.whenWithKeys(null==u?500:u,s?C:r,g).delay(c||0),e.addAnimator(w,t),a.push(w)}}_e(bi,ci),_e(bi,er);const Di=bi;var ki="__zr_style_"+Math.round(10*Math.random()),Ti={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ii={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ti[ki]=!0;var Pi=["z","z2","invisible"],Li=["invisible"],Ai=function(e){function t(t){return e.call(this,t)||this}var n;return xt(t,e),t.prototype._init=function(t){for(var n=Me(t),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i,o,a,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(i=this,o=e,a=t,Ri.copy(i.getBoundingRect()),i.transform&&Ri.applyTransform(i.transform),Oi.width=o,Oi.height=a,!Ri.intersect(Oi))||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(r&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new nn(0,0,0,0)),t?nn.applyTransform(e,n,t):e.copy(n),(i||o||a)&&(e.width+=2*i+Math.abs(o),e.height+=2*i+Math.abs(a),e.x=Math.min(e.x,e.x+o-i),e.y=Math.min(e.y,e.y+a-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new nn(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:me(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(2&this.__dirty)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return Je(Ti,e)},t.prototype.useStyle=function(e){e[ki]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[ki]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Pi)},t.prototype._applyStateObj=function(t,n,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=Me(u),h=0;h<c.length;h++)(f=c[h])in s&&(s[f]=s[f],this.style[f]=u[f]);var d=Me(s);for(h=0;h<d.length;h++){var f=d[h];this.style[f]=this.style[f]}this._transitionState(t,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var p=this.__inHover?Li:Pi;for(h=0;h<p.length;h++)f=p[h],n&&null!=n[f]?this[f]=n[f]:l&&null!=r[f]&&(this[f]=r[f])},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},t.prototype._mergeStyle=function(e,t){return me(e,t),e},t.prototype.getAnimationStyleProps=function(){return Ii},t.initDefaultProps=((n=t.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)),t}(Di),Ri=new nn(0,0,0,0),Oi=new nn(0,0,0,0);const Ni=Ai;var Fi=Math.min,zi=Math.max,Ei=Math.sin,Bi=Math.cos,Vi=2*Math.PI,Hi=On(),Gi=On(),Wi=On();function Yi(e,t,n,r,i,o){i[0]=Fi(e,n),i[1]=Fi(t,r),o[0]=zi(e,n),o[1]=zi(t,r)}var ji=[],$i=[];function Ui(e,t,n,r,i,o,a,s,l,u){var c=mr,h=fr,d=c(e,n,i,a,ji);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(e,n,i,a,ji[f]);l[0]=Fi(p,l[0]),u[0]=zi(p,u[0])}for(d=c(t,r,o,s,$i),f=0;f<d;f++){var g=h(t,r,o,s,$i[f]);l[1]=Fi(g,l[1]),u[1]=zi(g,u[1])}l[0]=Fi(e,l[0]),u[0]=zi(e,u[0]),l[0]=Fi(a,l[0]),u[0]=zi(a,u[0]),l[1]=Fi(t,l[1]),u[1]=zi(t,u[1]),l[1]=Fi(s,l[1]),u[1]=zi(s,u[1])}function Xi(e,t,n,r,i,o,a,s){var l=br,u=_r,c=zi(Fi(l(e,n,i),1),0),h=zi(Fi(l(t,r,o),1),0),d=u(e,n,i,c),f=u(t,r,o,h);a[0]=Fi(e,i,d),a[1]=Fi(t,o,f),s[0]=zi(e,i,d),s[1]=zi(t,o,f)}function qi(e,t,n,r,i,o,a,s,l){var u=Wn,c=Yn,h=Math.abs(i-o);if(h%Vi<1e-4&&h>1e-4)return s[0]=e-n,s[1]=t-r,l[0]=e+n,void(l[1]=t+r);if(Hi[0]=Bi(i)*n+e,Hi[1]=Ei(i)*r+t,Gi[0]=Bi(o)*n+e,Gi[1]=Ei(o)*r+t,u(s,Hi,Gi),c(l,Hi,Gi),(i%=Vi)<0&&(i+=Vi),(o%=Vi)<0&&(o+=Vi),i>o&&!a?o+=Vi:i<o&&a&&(i+=Vi),a){var d=o;o=i,i=d}for(var f=0;f<o;f+=Math.PI/2)f>i&&(Wi[0]=Bi(f)*n+e,Wi[1]=Ei(f)*r+t,u(s,Wi,s),c(l,Wi,l))}var Zi={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ki=[],Qi=[],Ji=[],eo=[],to=[],no=[],ro=Math.min,io=Math.max,oo=Math.cos,ao=Math.sin,so=Math.abs,lo=Math.PI,uo=2*lo,co="undefined"!=typeof Float32Array,ho=[];function fo(e){return Math.round(e/lo*1e8)/1e8%2*lo}var po=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}var t;return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){(n=n||0)>0&&(this._ux=so(n/di/e)||0,this._uy=so(n/di/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Zi.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=so(e-this._xi),r=so(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(Zi.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,o){return this._drawPendingPt(),this.addData(Zi.C,e,t,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(Zi.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,o){this._drawPendingPt(),ho[0]=r,ho[1]=i,function(e,t){var n=fo(e[0]);n<0&&(n+=uo);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=uo?i=n+uo:t&&n-i>=uo?i=n-uo:!t&&n>i?i=n+(uo-fo(n-i)):t&&n<i&&(i=n-(uo-fo(i-n))),e[0]=n,e[1]=i}(ho,o),r=ho[0];var a=(i=ho[1])-r;return this.addData(Zi.A,e,t,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,o),this._xi=oo(i)*n+e,this._yi=ao(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(Zi.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Zi.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;this.data&&this.data.length===t||!co||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},e.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();var o=this.data;if(co&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(r+n),r>0&&o))for(var a=0;a<r;a++)this.data[a]=o[a];for(i=0;i<t;i++){var s=e[i].data;for(a=0;a<s.length;a++)this.data[r++]=s[a]}this._len=r}},e.prototype.addData=function(e,t,n,r,i,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]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,co&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Ji[0]=Ji[1]=to[0]=to[1]=Number.MAX_VALUE,eo[0]=eo[1]=no[0]=no[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,r=0,i=0,o=0;for(e=0;e<this._len;){var a=t[e++],s=1===e;switch(s&&(i=n=t[e],o=r=t[e+1]),a){case Zi.M:n=i=t[e++],r=o=t[e++],to[0]=i,to[1]=o,no[0]=i,no[1]=o;break;case Zi.L:Yi(n,r,t[e],t[e+1],to,no),n=t[e++],r=t[e++];break;case Zi.C:Ui(n,r,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],to,no),n=t[e++],r=t[e++];break;case Zi.Q:Xi(n,r,t[e++],t[e++],t[e],t[e+1],to,no),n=t[e++],r=t[e++];break;case Zi.A:var l=t[e++],u=t[e++],c=t[e++],h=t[e++],d=t[e++],f=t[e++]+d;e+=1;var p=!t[e++];s&&(i=oo(d)*c+l,o=ao(d)*h+u),qi(l,u,c,h,d,f,p,to,no),n=oo(f)*c+l,r=ao(f)*h+u;break;case Zi.R:Yi(i=n=t[e++],o=r=t[e++],i+t[e++],o+t[e++],to,no);break;case Zi.Z:n=i,r=o}Wn(Ji,Ji,to),Yn(eo,eo,no)}return 0===e&&(Ji[0]=Ji[1]=eo[0]=eo[1]=0),new nn(Ji[0],Ji[1],eo[0]-Ji[0],eo[1]-Ji[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<t;){var d=e[h++],f=1===h;f&&(a=i=e[h],s=o=e[h+1]);var p=-1;switch(d){case Zi.M:i=a=e[h++],o=s=e[h++];break;case Zi.L:var g=e[h++],m=(_=e[h++])-o;(so(I=g-i)>n||so(m)>r||h===t-1)&&(p=Math.sqrt(I*I+m*m),i=g,o=_);break;case Zi.C:var v=e[h++],y=e[h++],_=(g=e[h++],e[h++]),x=e[h++],b=e[h++];p=yr(i,o,v,y,g,_,x,b,10),i=x,o=b;break;case Zi.Q:p=Sr(i,o,v=e[h++],y=e[h++],g=e[h++],_=e[h++],10),i=g,o=_;break;case Zi.A:var w=e[h++],S=e[h++],C=e[h++],M=e[h++],D=e[h++],k=e[h++],T=k+D;h+=1,f&&(a=oo(D)*C+w,s=ao(D)*M+S),p=io(C,M)*ro(uo,Math.abs(k)),i=oo(T)*C+w,o=ao(T)*M+S;break;case Zi.R:a=i=e[h++],s=o=e[h++],p=2*e[h++]+2*e[h++];break;case Zi.Z:var I=a-i;m=s-o,p=Math.sqrt(I*I+m*m),i=a,o=s}p>=0&&(l[c++]=p,u+=p)}return this._pathLen=u,u},e.prototype.rebuildPath=function(e,t){var n,r,i,o,a,s,l,u,c,h,d=this.data,f=this._ux,p=this._uy,g=this._len,m=t<1,v=0,y=0,_=0;if(!m||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=t*this._pathLen))e:for(var x=0;x<g;){var b=d[x++],w=1===x;switch(w&&(n=i=d[x],r=o=d[x+1]),b!==Zi.L&&_>0&&(e.lineTo(c,h),_=0),b){case Zi.M:n=i=d[x++],r=o=d[x++],e.moveTo(i,o);break;case Zi.L:a=d[x++],s=d[x++];var S=so(a-i),C=so(s-o);if(S>f||C>p){if(m){if(v+(X=l[y++])>u){var M=(u-v)/X;e.lineTo(i*(1-M)+a*M,o*(1-M)+s*M);break e}v+=X}e.lineTo(a,s),i=a,o=s,_=0}else{var D=S*S+C*C;D>_&&(c=a,h=s,_=D)}break;case Zi.C:var k=d[x++],T=d[x++],I=d[x++],P=d[x++],L=d[x++],A=d[x++];if(m){if(v+(X=l[y++])>u){vr(i,k,I,L,M=(u-v)/X,Ki),vr(o,T,P,A,M,Qi),e.bezierCurveTo(Ki[1],Qi[1],Ki[2],Qi[2],Ki[3],Qi[3]);break e}v+=X}e.bezierCurveTo(k,T,I,P,L,A),i=L,o=A;break;case Zi.Q:if(k=d[x++],T=d[x++],I=d[x++],P=d[x++],m){if(v+(X=l[y++])>u){wr(i,k,I,M=(u-v)/X,Ki),wr(o,T,P,M,Qi),e.quadraticCurveTo(Ki[1],Qi[1],Ki[2],Qi[2]);break e}v+=X}e.quadraticCurveTo(k,T,I,P),i=I,o=P;break;case Zi.A:var R=d[x++],O=d[x++],N=d[x++],F=d[x++],z=d[x++],E=d[x++],B=d[x++],V=!d[x++],H=N>F?N:F,G=so(N-F)>.001,W=z+E,Y=!1;if(m&&(v+(X=l[y++])>u&&(W=z+E*(u-v)/X,Y=!0),v+=X),G&&e.ellipse?e.ellipse(R,O,N,F,B,z,W,V):e.arc(R,O,H,z,W,V),Y)break e;w&&(n=oo(z)*N+R,r=ao(z)*F+O),i=oo(W)*N+R,o=ao(W)*F+O;break;case Zi.R:n=i=d[x],r=o=d[x+1],a=d[x++],s=d[x++];var j=d[x++],$=d[x++];if(m){if(v+(X=l[y++])>u){var U=u-v;e.moveTo(a,s),e.lineTo(a+ro(U,j),s),(U-=j)>0&&e.lineTo(a+j,s+ro(U,$)),(U-=$)>0&&e.lineTo(a+io(j-U,0),s+$),(U-=j)>0&&e.lineTo(a,s+io($-U,0));break e}v+=X}e.rect(a,s,j,$);break;case Zi.Z:if(m){var X;if(v+(X=l[y++])>u){M=(u-v)/X,e.lineTo(i*(1-M)+n*M,o*(1-M)+r*M);break e}v+=X}e.closePath(),i=n,o=r}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=Zi,e.initDefaultProps=((t=e.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,void(t._version=0)),e}();const go=po;function mo(e,t,n,r,i,o,a){if(0===i)return!1;var s,l=i;if(a>t+l&&a>r+l||a<t-l&&a<r-l||o>e+l&&o>n+l||o<e-l&&o<n-l)return!1;if(e===n)return Math.abs(o-e)<=l/2;var u=(s=(t-r)/(e-n))*o-a+(e*r-n*t)/(e-n);return u*u/(s*s+1)<=l/2*l/2}function vo(e,t,n,r,i,o,a,s,l,u,c){if(0===l)return!1;var h=l;if(c>t+h&&c>r+h&&c>o+h&&c>s+h||c<t-h&&c<r-h&&c<o-h&&c<s-h||u>e+h&&u>n+h&&u>i+h&&u>a+h||u<e-h&&u<n-h&&u<i-h&&u<a-h)return!1;var d=function(e,t,n,r,i,o,a,s,l,u){var c,h,d,f,p,g=.005,m=1/0;lr[0]=l,lr[1]=u;for(var v=0;v<1;v+=.05)ur[0]=fr(e,n,i,a,v),ur[1]=fr(t,r,o,s,v),(f=Hn(lr,ur))<m&&(c=v,m=f);m=1/0;for(var y=0;y<32&&!(g<or);y++)h=c-g,d=c+g,ur[0]=fr(e,n,i,a,h),ur[1]=fr(t,r,o,s,h),f=Hn(ur,lr),h>=0&&f<m?(c=h,m=f):(cr[0]=fr(e,n,i,a,d),cr[1]=fr(t,r,o,s,d),p=Hn(cr,lr),d<=1&&p<m?(c=d,m=p):g*=.5);return ir(m)}(e,t,n,r,i,o,a,s,u,c);return d<=h/2}function yo(e,t,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;if(l>t+u&&l>r+u&&l>o+u||l<t-u&&l<r-u&&l<o-u||s>e+u&&s>n+u&&s>i+u||s<e-u&&s<n-u&&s<i-u)return!1;var c=function(e,t,n,r,i,o,a,s){var l,u=.005,c=1/0;lr[0]=a,lr[1]=s;for(var h=0;h<1;h+=.05)ur[0]=_r(e,n,i,h),ur[1]=_r(t,r,o,h),(g=Hn(lr,ur))<c&&(l=h,c=g);c=1/0;for(var d=0;d<32&&!(u<or);d++){var f=l-u,p=l+u;ur[0]=_r(e,n,i,f),ur[1]=_r(t,r,o,f);var g=Hn(ur,lr);if(f>=0&&g<c)l=f,c=g;else{cr[0]=_r(e,n,i,p),cr[1]=_r(t,r,o,p);var m=Hn(cr,lr);p<=1&&m<c?(l=p,c=m):u*=.5}}return ir(c)}(e,t,n,r,i,o,s,l);return c<=u/2}var _o=2*Math.PI;function xo(e){return(e%=_o)<0&&(e+=_o),e}var bo=2*Math.PI;function wo(e,t,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%bo<1e-4)return!0;if(o){var h=r;r=xo(i),i=xo(h)}else r=xo(r),i=xo(i);r>i&&(i+=bo);var d=Math.atan2(l,s);return d<0&&(d+=bo),d>=r&&d<=i||d+bo>=r&&d+bo<=i}function So(e,t,n,r,i,o){if(o>t&&o>r||o<t&&o<r)return 0;if(r===t)return 0;var a=(o-t)/(r-t),s=r<t?1:-1;1!==a&&0!==a||(s=r<t?.5:-.5);var l=a*(n-e)+e;return l===i?1/0:l>i?s:0}var Co=go.CMD,Mo=2*Math.PI,Do=[-1,-1,-1],ko=[-1,-1];function To(){var e=ko[0];ko[0]=ko[1],ko[1]=e}function Io(e,t,n,r,i,o,a,s,l,u){if(u>t&&u>r&&u>o&&u>s||u<t&&u<r&&u<o&&u<s)return 0;var c=gr(t,r,o,s,u,Do);if(0===c)return 0;for(var h=0,d=-1,f=void 0,p=void 0,g=0;g<c;g++){var m=Do[g],v=0===m||1===m?.5:1;fr(e,n,i,a,m)<l||(d<0&&(d=mr(t,r,o,s,ko),ko[1]<ko[0]&&d>1&&To(),f=fr(t,r,o,s,ko[0]),d>1&&(p=fr(t,r,o,s,ko[1]))),2===d?m<ko[0]?h+=f<t?v:-v:m<ko[1]?h+=p<f?v:-v:h+=s<p?v:-v:m<ko[0]?h+=f<t?v:-v:h+=s<f?v:-v)}return h}function Po(e,t,n,r,i,o,a,s){if(s>t&&s>r&&s>o||s<t&&s<r&&s<o)return 0;var l=function(e,t,n,r,i){var o=e-2*t+n,a=2*(t-e),s=e-r,l=0;if(hr(o))dr(a)&&(c=-s/a)>=0&&c<=1&&(i[l++]=c);else{var u=a*a-4*o*s;if(hr(u))(c=-a/(2*o))>=0&&c<=1&&(i[l++]=c);else if(u>0){var c,h=ir(u),d=(-a-h)/(2*o);(c=(-a+h)/(2*o))>=0&&c<=1&&(i[l++]=c),d>=0&&d<=1&&(i[l++]=d)}}return l}(t,r,o,s,Do);if(0===l)return 0;var u=br(t,r,o);if(u>=0&&u<=1){for(var c=0,h=_r(t,r,o,u),d=0;d<l;d++){var f=0===Do[d]||1===Do[d]?.5:1;_r(e,n,i,Do[d])<a||(Do[d]<u?c+=h<t?f:-f:c+=o<h?f:-f)}return c}return f=0===Do[0]||1===Do[0]?.5:1,_r(e,n,i,Do[0])<a?0:o<t?f:-f}function Lo(e,t,n,r,i,o,a,s){if((s-=t)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Do[0]=-l,Do[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Mo-1e-4){r=0,i=Mo;var c=o?1:-1;return a>=Do[0]+e&&a<=Do[1]+e?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=Mo,i+=Mo);for(var d=0,f=0;f<2;f++){var p=Do[f];if(p+e>a){var g=Math.atan2(s,p);c=o?1:-1,g<0&&(g=Mo+g),(g>=r&&g<=i||g+Mo>=r&&g+Mo<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function Ao(e,t,n,r,i){for(var o,a,s,l,u=e.data,c=e.len(),h=0,d=0,f=0,p=0,g=0,m=0;m<c;){var v=u[m++],y=1===m;switch(v===Co.M&&m>1&&(n||(h+=So(d,f,p,g,r,i))),y&&(p=d=u[m],g=f=u[m+1]),v){case Co.M:d=p=u[m++],f=g=u[m++];break;case Co.L:if(n){if(mo(d,f,u[m],u[m+1],t,r,i))return!0}else h+=So(d,f,u[m],u[m+1],r,i)||0;d=u[m++],f=u[m++];break;case Co.C:if(n){if(vo(d,f,u[m++],u[m++],u[m++],u[m++],u[m],u[m+1],t,r,i))return!0}else h+=Io(d,f,u[m++],u[m++],u[m++],u[m++],u[m],u[m+1],r,i)||0;d=u[m++],f=u[m++];break;case Co.Q:if(n){if(yo(d,f,u[m++],u[m++],u[m],u[m+1],t,r,i))return!0}else h+=Po(d,f,u[m++],u[m++],u[m],u[m+1],r,i)||0;d=u[m++],f=u[m++];break;case Co.A:var _=u[m++],x=u[m++],b=u[m++],w=u[m++],S=u[m++],C=u[m++];m+=1;var M=!!(1-u[m++]);o=Math.cos(S)*b+_,a=Math.sin(S)*w+x,y?(p=o,g=a):h+=So(d,f,o,a,r,i);var D=(r-_)*w/b+_;if(n){if(wo(_,x,w,S,S+C,M,t,D,i))return!0}else h+=Lo(_,x,w,S,S+C,M,D,i);d=Math.cos(S+C)*b+_,f=Math.sin(S+C)*w+x;break;case Co.R:if(p=d=u[m++],g=f=u[m++],o=p+u[m++],a=g+u[m++],n){if(mo(p,g,o,g,t,r,i)||mo(o,g,o,a,t,r,i)||mo(o,a,p,a,t,r,i)||mo(p,a,p,g,t,r,i))return!0}else h+=So(o,g,o,a,r,i),h+=So(p,a,p,g,r,i);break;case Co.Z:if(n){if(mo(d,f,p,g,t,r,i))return!0}else h+=So(d,f,p,g,r,i);d=p,f=g}}return n||(s=f,l=g,Math.abs(s-l)<1e-4)||(h+=So(d,f,p,g,r,i)||0),0!==h}var Ro=ve({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ti),Oo={style:ve({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ii.style)},No=Qn.concat(["invisible","culling","z","z2","zlevel","parent"]),Fo=function(e){function t(t){return e.call(this,t)||this}var n;return xt(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<No.length;++s)i[No[s]]=this[No[s]];i.__dirty|=1}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=Me(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=t[o];"style"===o?this.style?me(this.style,a):this.useStyle(a):"shape"===o?me(this.shape,a):e.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(Pe(e)){var t=jr(e,0);return t>.5?fi:t>.2?"#eee":pi}if(e)return pi}return fi},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Pe(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())==jr(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new go(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||4&this.__dirty)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){o.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.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 e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(e,t,n,r){return Ao(e,t,!0,n,r)}(o,a/s,e,t)))return!0}if(this.hasFill())return function(e,t,n){return Ao(e,0,!1,t,n)}(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:me(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(4&this.__dirty)},t.prototype.createStyle=function(e){return Je(Ro,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=me({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=me({},r.shape),me(s,n.shape)):(s=me({},i?this.shape:r.shape),me(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=me({},this.shape);for(var u={},c=Me(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(t,{shape:u},a)}else this.shape=s,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},t.prototype.getAnimationStyleProps=function(){return Oo},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return xt(n,t),n.prototype.getDefaultStyle=function(){return pe(e.style)},n.prototype.getDefaultShape=function(){return pe(e.shape)},n}(t);for(var r in e)"function"==typeof e[r]&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=((n=t.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=7)),t}(Ni);const zo=Fo;var Eo=ve({strokeFirst:!0,font:K,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ro),Bo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xt(t,e),t.prototype.hasStroke=function(){return Rn(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return Je(Eo,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e,t,n;return this._rect||(this._rect=(t=Ln((e=this.style).text),An(e,ln(rn(n=e.font),t),fn(n),null))),this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(Ni);Bo.prototype.type="tspan";const Vo=Bo;var Ho=ve({x:0,y:0},Ti),Go={style:ve({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ii.style)},Wo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xt(t,e),t.prototype.createStyle=function(e){return Je(Ho,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var r,i=(r=t.image)&&"string"!=typeof r&&r.width&&r.height?t.image:this.__image;if(!i)return 0;var o="width"===e?"height":"width",a=t[o];return null==a?i[e]:i[e]/i[o]*a},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Go},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new nn(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Ni);Wo.prototype.type="image";const Yo=Wo;var jo=Math.round;function $o(e,t,n){if(t){var r=t.x1,i=t.x2,o=t.y1,a=t.y2;e.x1=r,e.x2=i,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s?(jo(2*r)===jo(2*i)&&(e.x1=e.x2=Xo(r,s,!0)),jo(2*o)===jo(2*a)&&(e.y1=e.y2=Xo(o,s,!0)),e):e}}function Uo(e,t,n){if(t){var r=t.x,i=t.y,o=t.width,a=t.height;e.x=r,e.y=i,e.width=o,e.height=a;var s=n&&n.lineWidth;return s?(e.x=Xo(r,s,!0),e.y=Xo(i,s,!0),e.width=Math.max(Xo(r+o,s,!1)-e.x,0===o?0:1),e.height=Math.max(Xo(i+a,s,!1)-e.y,0===a?0:1),e):e}}function Xo(e,t,n){if(!t)return e;var r=jo(2*e);return(r+jo(t))%2==0?r/2:(r+(n?1:-1))/2}var qo=function(){this.x=0,this.y=0,this.width=0,this.height=0},Zo={},Ko=function(e){function t(t){return e.call(this,t)||this}return xt(t,e),t.prototype.getDefaultShape=function(){return new qo},t.prototype.buildPath=function(e,t){var n,r,i,o;if(this.subPixelOptimize){var a=Uo(Zo,t,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=t.r,t=a}else n=t.x,r=t.y,i=t.width,o=t.height;t.r?function(e,t){var n,r,i,o,a,s=t.x,l=t.y,u=t.width,c=t.height,h=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof h?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0,n+r>u&&(n*=u/(a=n+r),r*=u/a),i+o>u&&(i*=u/(a=i+o),o*=u/a),r+i>c&&(r*=c/(a=r+i),i*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),e.moveTo(s+n,l),e.lineTo(s+u-r,l),0!==r&&e.arc(s+u-r,l+r,r,-Math.PI/2,0),e.lineTo(s+u,l+c-i),0!==i&&e.arc(s+u-i,l+c-i,i,0,Math.PI/2),e.lineTo(s+o,l+c),0!==o&&e.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(e,t):e.rect(n,r,i,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(zo);Ko.prototype.type="rect";const Qo=Ko;var Jo={fill:"#000"},ea={},ta={style:ve({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},Ii.style)},na=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Jo,n.attr(t),n}return xt(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var e;this._childCursor=0,sa(e=this.style),be(e.rich,sa),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new nn(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var o=t[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(e.copy(a),e.applyTransform(s),(r=r||e.clone()).union(e)):(r=r||a.clone()).union(a)}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Jo},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return me(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=Me(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},me(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return ta},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||K,n=e.padding,r=this._defaultStyle,i=e.x||0,o=e.y||0,a=e.align||r.align||"left",s=e.verticalAlign||r.verticalAlign||"top";Tn(ea,r.overflowRect,i,o,a,s),i=ea.baseX,o=ea.baseY;var l=function(e,t,n,r){var i=Ln(e),o=t.overflow,a=t.padding,s=a?a[1]+a[3]:0,l=a?a[0]+a[2]:0,u=t.font,c="truncate"===o,h=fn(u),d=Ve(t.lineHeight,h),f="truncate"===t.lineOverflow,p=!1,g=t.width;null==g&&null!=n&&(g=n-s);var m,v=t.height;null==v&&null!=r&&(v=r-l);var y=(m=null==g||"break"!==o&&"breakAll"!==o?i?i.split("\n"):[]:i?kn(i,t.font,g,"breakAll"===o,0).lines:[]).length*d;if(null==v&&(v=y),y>v&&f){var _=Math.floor(v/d);p=p||m.length>_,y=(m=m.slice(0,_)).length*d}if(i&&c&&null!=g)for(var x=yn(g,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),b={},w=0;w<m.length;w++)_n(b,m[w],x),m[w]=b.textLine,p=p||b.isTruncated;var S=v,C=0,M=rn(u);for(w=0;w<m.length;w++)C=Math.max(ln(M,m[w]),C);null==g&&(g=C);var D=g;return{lines:m,height:v,outerWidth:D+=s,outerHeight:S+=l,lineHeight:d,calculatedLineHeight:h,contentWidth:C,contentHeight:y,width:g,isTruncated:p}}(ha(e),e,ea.outerWidth,ea.outerHeight),u=da(e),c=!!e.backgroundColor,h=l.outerHeight,d=l.outerWidth,f=l.lines,p=l.lineHeight;this.isTruncated=!!l.isTruncated;var g=i,m=dn(o,l.contentHeight,s);if(u||n){var v=hn(i,d,a),y=dn(o,h,s);u&&this._renderBackground(e,e,v,y,d,h)}m+=p/2,n&&(g=ca(i,a,n),"top"===s?m+=n[0]:"bottom"===s&&(m-=n[2]));for(var _=0,x=!1,b=!1,w=(ua("fill"in e?e.fill:(b=!0,r.fill))),S=(la("stroke"in e?e.stroke:c||r.autoStroke&&!b?null:(_=2,x=!0,r.stroke))),C=e.textShadowBlur>0,M=0;M<f.length;M++){var D=this._getOrCreateChild(Vo),k=D.createStyle();D.useStyle(k),k.text=f[M],k.x=g,k.y=m,a&&(k.textAlign=a),k.textBaseline="middle",k.opacity=e.opacity,k.strokeFirst=!0,C&&(k.shadowBlur=e.textShadowBlur||0,k.shadowColor=e.textShadowColor||"transparent",k.shadowOffsetX=e.textShadowOffsetX||0,k.shadowOffsetY=e.textShadowOffsetY||0),k.stroke=S,k.fill=w,S&&(k.lineWidth=e.lineWidth||_,k.lineDash=e.lineDash,k.lineDashOffset=e.lineDashOffset||0),k.font=t,aa(k,e),m+=p,D.setBoundingRect(An(k,l.contentWidth,l.calculatedLineHeight,x?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,n=e.align||t.align,r=e.verticalAlign||t.verticalAlign,i=e.x||0,o=e.y||0;Tn(ea,t.overflowRect,i,o,n,r),i=ea.baseX,o=ea.baseY;var a=function(e,t,n,r,i){var o=new Sn,a=Ln(e);if(!a)return o;var s=t.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,c=t.width;null==c&&null!=n&&(c=n-l);var h=t.height;null==h&&null!=r&&(h=r-u);for(var d,f=t.overflow,p="break"!==f&&"breakAll"!==f||null==c?null:{width:c,accumWidth:0,breakAll:"breakAll"===f},g=mn.lastIndex=0;null!=(d=mn.exec(a));){var m=d.index;m>g&&Cn(o,a.substring(g,m),t,p),Cn(o,d[2],t,p,d[1]),g=mn.lastIndex}g<a.length&&Cn(o,a.substring(g,a.length),t,p);var v=[],y=0,_=0,x="truncate"===f,b="truncate"===t.lineOverflow,w={};function S(e,t,n){e.width=t,e.lineHeight=n,y+=n,_=Math.max(_,t)}e:for(var C=0;C<o.lines.length;C++){for(var M=o.lines[C],D=0,k=0,T=0;T<M.tokens.length;T++){var I=(V=M.tokens[T]).styleName&&t.rich[V.styleName]||{},P=V.textPadding=I.padding,L=P?P[1]+P[3]:0,A=V.font=I.font||t.font;V.contentHeight=fn(A);var R=Ve(I.height,V.contentHeight);if(V.innerHeight=R,P&&(R+=P[0]+P[2]),V.height=R,V.lineHeight=He(I.lineHeight,t.lineHeight,R),V.align=I&&I.align||i,V.verticalAlign=I&&I.verticalAlign||"middle",b&&null!=h&&y+V.lineHeight>h){var O=o.lines.length;T>0?(M.tokens=M.tokens.slice(0,T),S(M,k,D),o.lines=o.lines.slice(0,C+1)):o.lines=o.lines.slice(0,C),o.isTruncated=o.isTruncated||o.lines.length<O;break e}var N=I.width,F=null==N||"auto"===N;if("string"==typeof N&&"%"===N.charAt(N.length-1))V.percentWidth=N,v.push(V),V.contentWidth=ln(rn(A),V.text);else{if(F){var z=I.backgroundColor,E=z&&z.image;E&&It(E=Dt(E))&&(V.width=Math.max(V.width,E.width*R/E.height))}var B=x&&null!=c?c-k:null;null!=B&&B<V.width?!F||B<L?(V.text="",V.width=V.contentWidth=0):(vn(w,V.text,B-L,A,t.ellipsis,{minChar:t.truncateMinChar}),V.text=w.text,o.isTruncated=o.isTruncated||w.isTruncated,V.width=V.contentWidth=ln(rn(A),V.text)):V.contentWidth=ln(rn(A),V.text)}V.width+=L,k+=V.width,I&&(D=Math.max(D,V.lineHeight))}S(M,k,D)}for(o.outerWidth=o.width=Ve(c,_),o.outerHeight=o.height=Ve(h,y),o.contentHeight=y,o.contentWidth=_,o.outerWidth+=l,o.outerHeight+=u,C=0;C<v.length;C++){var V,H=(V=v[C]).percentWidth;V.width=parseInt(H,10)/100*o.width}return o}(ha(e),e,ea.outerWidth,ea.outerHeight,n),s=a.width,l=a.outerWidth,u=a.outerHeight,c=e.padding;this.isTruncated=!!a.isTruncated;var h=hn(i,l,n),d=dn(o,u,r),f=h,p=d;c&&(f+=c[3],p+=c[0]);var g=f+s;da(e)&&this._renderBackground(e,e,h,d,l,u);for(var m=!!e.backgroundColor,v=0;v<a.lines.length;v++){for(var y=a.lines[v],_=y.tokens,x=_.length,b=y.lineHeight,w=y.width,S=0,C=f,M=g,D=x-1,k=void 0;S<x&&(!(k=_[S]).align||"left"===k.align);)this._placeToken(k,e,b,p,C,"left",m),w-=k.width,C+=k.width,S++;for(;D>=0&&"right"===(k=_[D]).align;)this._placeToken(k,e,b,p,M,"right",m),w-=k.width,M-=k.width,D--;for(C+=(s-(C-f)-(g-M)-w)/2;S<=D;)k=_[S],this._placeToken(k,e,b,p,C+k.width/2,"center",m),C+=k.width,S++;p+=b}},t.prototype._placeToken=function(e,t,n,r,i,o,a){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,u=r+n/2;"top"===l?u=r+e.height/2:"bottom"===l&&(u=r+n-e.height/2),!e.isLineHolder&&da(s)&&this._renderBackground(s,t,"right"===o?i-e.width:"center"===o?i-e.width/2:i,u-e.height/2,e.width,e.height);var c=!!s.backgroundColor,h=e.textPadding;h&&(i=ca(i,o,h),u-=e.height/2-h[0]-e.innerHeight/2);var d=this._getOrCreateChild(Vo),f=d.createStyle();d.useStyle(f);var p=this._defaultStyle,g=!1,m=0,v=!1,y=ua("fill"in s?s.fill:"fill"in t?t.fill:(g=!0,p.fill)),_=la("stroke"in s?s.stroke:"stroke"in t?t.stroke:c||a||p.autoStroke&&!g?null:(m=2,v=!0,p.stroke)),x=s.textShadowBlur>0||t.textShadowBlur>0;f.text=e.text,f.x=i,f.y=u,x&&(f.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,f.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=e.font||K,f.opacity=He(s.opacity,t.opacity,1),aa(f,s),_&&(f.lineWidth=He(s.lineWidth,t.lineWidth,m),f.lineDash=Ve(s.lineDash,t.lineDash),f.lineDashOffset=t.lineDashOffset||0,f.stroke=_),y&&(f.fill=y),d.setBoundingRect(An(f,e.contentWidth,e.contentHeight,v?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,o){var a,s,l,u=e.backgroundColor,c=e.borderWidth,h=e.borderColor,d=u&&u.image,f=u&&!d,p=e.borderRadius,g=this;if(f||e.lineHeight||c&&h){(a=this._getOrCreateChild(Qo)).useStyle(a.createStyle()),a.style.fill=null;var m=a.shape;m.x=n,m.y=r,m.width=i,m.height=o,m.r=p,a.dirtyShape()}if(f)(l=a.style).fill=u||null,l.fillOpacity=Ve(e.fillOpacity,1);else if(d){(s=this._getOrCreateChild(Yo)).onload=function(){g.dirtyStyle()};var v=s.style;v.image=u.image,v.x=n,v.y=r,v.width=i,v.height=o}c&&h&&((l=a.style).lineWidth=c,l.stroke=h,l.strokeOpacity=Ve(e.strokeOpacity,1),l.lineDash=e.borderDash,l.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var y=(a||s).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=He(e.opacity,t.opacity,1)},t.makeFont=function(e){var t,n="";return function(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}(e)&&(n=[e.fontStyle,e.fontWeight,(t=e.fontSize,"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?"12px":t+"px":t),e.fontFamily||"sans-serif"].join(" ")),n&&je(n)||e.textFont||e.font},t}(Ni),ra={left:!0,right:1,center:1},ia={top:1,bottom:1,middle:1},oa=["fontStyle","fontWeight","fontSize","fontFamily"];function aa(e,t){for(var n=0;n<oa.length;n++){var r=oa[n],i=t[r];null!=i&&(e[r]=i)}}function sa(e){if(e){e.font=na.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||ra[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||ia[n]?n:"top",e.padding&&(e.padding=We(e.padding))}}function la(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function ua(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function ca(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function ha(e){var t=e.text;return null!=t&&(t+=""),t}function da(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const fa=na;var pa=Math.min,ga=Math.max,ma=Math.abs;function va(e,t,n,r){var i=t[0],o=t[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/l*u+a}var ya=function(e,t,n){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return _a(e,t,n)};function _a(e,t,n){return Pe(e)?(r=e,r.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t+(n||0):parseFloat(e):null==e?NaN:+e;var r}function xa(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function ba(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return function(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}(e)}function wa(e,t){var n=Math.max(ba(e),ba(t)),r=e+t;return n>20?r:xa(r,n)}function Sa(e){var t=2*Math.PI;return(e%t+t)%t}function Ca(e){return e>-1e-4&&e<1e-4}var Ma=/^(?:(\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 Da(e){if(e instanceof Date)return e;if(Pe(e)){var t=Ma.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return null==e?new Date(NaN):new Date(Math.round(e))}function ka(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function Ta(e,t){var n=ka(e),r=Math.pow(10,n),i=e/r;return e=(t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function Ia(e){var t=parseFloat(e);return t==e&&(0!==t||!Pe(e)||e.indexOf("x")<=0)?t:NaN}function Pa(){return Math.round(9*Math.random())}function La(e,t){return 0===t?e:La(t,e%t)}function Aa(e,t){return null==e?t:null==t?e:e*t/La(e,t)}function Ra(e,t,n){return(t-e)*n+e}var Oa="series\0";function Na(e){return e instanceof Array?e:null==e?[]:[e]}function Fa(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var za=["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 Ea(e){return!Re(e)||Te(e)||e instanceof Date?e:e.value}function Ba(e){return Re(e)&&!(e instanceof Array)}function Va(e,t,n){var r=Ga(t[e],null),i=Ga(n[e],null);return null!=r&&null!=i&&r===i}function Ha(e){return Ga(e,"")}function Ga(e,t){return null==e?t:Pe(e)?e:Ae(e)||Le(e)?e+"":t}function Wa(e){var t=e.name;return!(!t||!t.indexOf(Oa))}function Ya(e){return e&&null!=e.id&&0===Ha(e.id).indexOf("\0_ec_\0")}function ja(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?Te(t.dataIndex)?we(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?Te(t.name)?we(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function $a(){var e="__ec_inner_"+Ua++;return function(t){return t[e]||(t[e]={})}}var Ua=Pa();function Xa(e,t,n){var r=qa(t,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=n?n.defaultMainType:null;return!i&&s&&o.set(s,{}),o.each(function(t,r){var i=Ka(e,r,t,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[r+"Models"]=i.models,a[r+"Model"]=i.models[0]}),a}function qa(e,t){var n;if(Pe(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var i=Qe(),o={},a=!1;return be(n,function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();!s||!l||t&&t.includeMainTypes&&ye(t.includeMainTypes,s)<0||(a=a||!!s,(i.get(s)||i.set(s,{}))[l]=e)}else o[n]=e}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var Za={useDefault:!0,enableAll:!1,enableNone:!1};function Ka(e,t,n,r){r=r||Za;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}if("none"===i||!1===i){if(r.enableNone)return s.models=[],s;i=-1}return"all"===i&&(i=r.enableAll?o=a=null:-1),s.models=e.queryComponents({mainType:t,index:i,id:o,name:a}),s}function Qa(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}!function(){function e(){}e.prototype.reset=function(e,t,n,r){return this._list=e,this._step=r=r||1,this._idx=t,this._end=null!=n?n:r>0?e.length:0,this.item=null,this.key=NaN,this},e.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 Ja=$a(),es=1,ts={},ns=$a(),rs=$a(),is=["emphasis","blur","select"],os=["normal","emphasis","blur","select"],as="highlight",ss="downplay",ls="select",us="unselect",cs="toggleSelect",hs="selectchanged";function ds(e){return null!=e&&"none"!==e}function fs(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function ps(e){fs(e,"emphasis",2)}function gs(e){2===e.hoverState&&fs(e,"normal",0)}function ms(e){fs(e,"blur",1)}function vs(e){1===e.hoverState&&fs(e,"normal",0)}function ys(e){e.selected=!0}function _s(e){e.selected=!1}function xs(e,t,n){t(e,n)}function bs(e,t,n){xs(e,t,n),e.isGroup&&e.traverse(function(e){xs(e,t,n)})}function ws(e,t){switch(t){case"emphasis":e.hoverState=2;break;case"normal":e.hoverState=0;break;case"blur":e.hoverState=1;break;case"select":e.selected=!0}}function Ss(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,r){var i=n&&ye(n,"select")>=0,o=!1;if(e instanceof zo){var a=ns(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(ds(s)||ds(l)){var u=(r=r||{}).style||{};"inherit"===u.fill?(o=!0,r=me({},r),(u=me({},u)).fill=s):!ds(u.fill)&&ds(s)?(o=!0,r=me({},r),(u=me({},u)).fill=Ur(s)):!ds(u.stroke)&&ds(l)&&(o||(r=me({},r),u=me({},u)),u.stroke=Ur(l)),r.style=u}}if(r&&null==r.z2){o||(r=me({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(null!=c?c:10)}return r}(this,0,t,n);if("blur"===e)return function(e,t,n){var r=ye(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:function(e,t,n,r){for(var i=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=i[s];o[s]=null==l?r&&r[s]:l}for(a=0;a<e.animators.length;a++){var u=e.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,t)}return o}(e,["opacity"],t,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=me({},n),a=me({opacity:r?i:.1*o.opacity},a),n.style=a),n}(this,e,n);if("select"===e)return function(e,t,n){if(n&&null==n.z2){n=me({},n);var r=e.z2SelectLift;n.z2=e.z2+(null!=r?r:9)}return n}(this,0,n)}return n}function Cs(e){e.stateProxy=Ss;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Ss),n&&(n.stateProxy=Ss)}function Ms(e,t){!As(e,t)&&!e.__highByOuter&&bs(e,ps)}function Ds(e,t){!As(e,t)&&!e.__highByOuter&&bs(e,gs)}function ks(e,t){e.__highByOuter|=1<<(t||0),bs(e,ps)}function Ts(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&bs(e,gs)}function Is(e){bs(e,vs)}function Ps(e){bs(e,ys)}function Ls(e){bs(e,_s)}function As(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Rs(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var o=rs(i),a="series"===t,s=a?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse(function(e){vs(e)}),a&&n.push(i)),o.isBlured=!1}),be(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Os(e,t,n,r){var i=r.getModel();function o(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&Is(r)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var a=i.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(e){var i=a===e,u=e.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!i||"coordinateSystem"===n&&!(u&&s?u===s:i)||"series"===t&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&"self"===t||ms(e)}),xe(t))o(e.getData(),t);else if(Re(t))for(var c=Me(t),h=0;h<c.length;h++)o(e.getData(c[h]),t[c[h]]);l.push(e),rs(e).isBlured=!0}}),i.eachComponent(function(e,t){if("series"!==e){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}})}}function Ns(e,t,n){if(null!=e&&null!=t){var r=n.getModel().getComponent(e,t);if(r){rs(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse(function(e){ms(e)})}}}function Fs(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return i;var o=r.getModel().getComponent(e,t);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===Ja(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function zs(e){be(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?Ps(t):Ls(t)})})}function Es(e){var t=[];return e.eachSeries(function(e){be(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:e.seriesIndex};null!=r&&(o.dataType=r),t.push(o)}})}),t}function Bs(e,t,n,r){r?function(e){Ws(e,!1)}(e):function(e,t,n){Ws(e,!0),bs(e,Cs),function(e,t,n){var r=Ja(e);null!=t?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}(e,t,n)}(e,t,n)}var Vs=["emphasis","blur","select"],Hs={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Gs(e,t,n,r){n=n||"itemStyle";for(var i=0;i<Vs.length;i++){var o=Vs[i],a=t.getModel([o,n]);e.ensureState(o).style=r?r(a):a[Hs[n]]()}}function Ws(e,t){var n=!1===t,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Ys(e){return!(!e||!e.__highDownDispatcher)}function js(e){var t=e.type;return t===ls||t===us||t===cs}function $s(e){var t=e.type;return t===as||t===ss}var Us={};function Xs(e,t,n){var r,i=e.labelFetcher,o=e.labelDataIndex,a=e.labelDimIndex,s=t.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=Ie(e.defaultText)?e.defaultText(o,e,n):e.defaultText);for(var l={normal:r},u=0;u<is.length;u++){var c=is[u],h=t[c];l[c]=Ve(i?i.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,r)}return l}function qs(e,t,n,r){n=n||Us;for(var i=e instanceof fa,o=!1,a=0;a<os.length;a++)if((d=t[os[a]])&&d.getShallow("show")){o=!0;break}var s=i?e:e.getTextContent();if(o){i||(s||(s=new fa,e.setTextContent(s)),e.stateProxy&&(s.stateProxy=e.stateProxy));var l=Xs(n,t),u=t.normal,c=!!u.getShallow("show"),h=Ks(u,r&&r.normal,n,!1,!i);for(h.text=l.normal,i||e.setTextConfig(Qs(u,n,!1)),a=0;a<is.length;a++){var d,f=is[a];if(d=t[f]){var p=s.ensureState(f),g=!!Ve(d.getShallow("show"),c);g!==c&&(p.ignore=!g),p.style=Ks(d,r&&r[f],n,!0,!i),p.style.text=l[f],i||(e.ensureState(f).textConfig=Qs(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&&(rl(s).setLabelText=function(e){var r=Xs(n,t,e);!function(e,t){for(var n=0;n<is.length;n++){var r=is[n],i=t[r],o=e.ensureState(r);o.style=o.style||{},o.style.text=i}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}(s,r)})}else s&&(s.ignore=!0);e.dirty()}function Zs(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<is.length;r++){var i=is[r];n[i]=e.getModel([i,t])}return n}function Ks(e,t,n,r,i){var o={};return function(e,t,n,r,i){n=n||Us;var o,a=t.ecModel,s=a&&a.option.textStyle,l=function(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||Us).rich;if(n){t=t||{};for(var r=Me(n),i=0;i<r.length;i++)t[r[i]]=1}e=e.parentModel}return t}(t);if(l){o={};var u="richInheritPlainLabel",c=Ve(t.get(u),a?a.get(u):void 0);for(var h in l)if(l.hasOwnProperty(h)){var d=t.getModel(["rich",h]);nl(o[h]={},d,s,t,c,n,r,i,!1,!0)}}o&&(e.rich=o);var f=t.get("overflow");f&&(e.overflow=f);var p=t.get("lineOverflow");p&&(e.lineOverflow=p);var g=e,m=t.get("minMargin");if(null!=m)m=Ae(m)?m/2:0,g.margin=[m,m,m,m],g.__marginType=il.minMargin;else{var v=t.get("textMargin");null!=v&&(g.margin=We(v),g.__marginType=il.textMargin)}nl(e,t,s,null,null,n,r,i,!0,!1)}(o,e,n,r,i),t&&me(o,t),o}function Qs(e,t,n){t=t||{};var r,i={},o=e.getShallow("rotate"),a=Ve(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return"outside"===(r=e.getShallow("position")||(n?null:"inside"))&&(r=t.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=a&&(i.distance=a),i.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",null!=t.autoOverflowArea&&(i.autoOverflowArea=t.autoOverflowArea),null!=t.layoutRect&&(i.layoutRect=t.layoutRect),i}var Js=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],el=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],tl=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function nl(e,t,n,r,i,o,a,s,l,u){n=!a&&n||Us;var c=o&&o.inheritColor,h=t.getShallow("color"),d=t.getShallow("textBorderColor"),f=Ve(t.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&&(e.fill=h),null!=d&&(e.stroke=d);var p=Ve(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(e.lineWidth=p);var g=Ve(t.getShallow("textBorderType"),n.textBorderType);null!=g&&(e.lineDash=g);var m=Ve(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=m&&(e.lineDashOffset=m),a||null!=f||u||(f=o&&o.defaultOpacity),null!=f&&(e.opacity=f),a||s||null==e.fill&&o.inheritColor&&(e.fill=o.inheritColor);for(var v=0;v<Js.length;v++){var y=Js[v];null!=(x=!1!==i&&r?He(t.getShallow(y),r.getShallow(y),n[y]):Ve(t.getShallow(y),n[y]))&&(e[y]=x)}for(v=0;v<el.length;v++)y=el[v],null!=(x=t.getShallow(y))&&(e[y]=x);if(null==e.verticalAlign){var _=t.getShallow("baseline");null!=_&&(e.verticalAlign=_)}if(!l||!o.disableBox){for(v=0;v<tl.length;v++){var x;y=tl[v],null!=(x=t.getShallow(y))&&(e[y]=x)}var b=t.getShallow("borderType");null!=b&&(e.borderDash=b),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!c||(e.backgroundColor=c),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!c||(e.borderColor=c)}}var rl=$a(),il={minMargin:1,textMargin:2},ol=["textStyle","color"],al=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],sl=new fa;const ll=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(ol):null)},e.prototype.getFont=function(){return e={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},n=(t=this.ecModel)&&t.getModel("textStyle"),je([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "));var e,t,n},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<al.length;n++)t[al[n]]=this.getShallow(al[n]);return sl.useStyle(t),sl.update(),sl.getBoundingRect()},e}();var ul,cl,hl=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],dl=mt(hl),fl=function(){function e(){}return e.prototype.getLineStyle=function(e){return dl(this,e)},e}(),pl=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],gl=mt(pl),ml=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return gl(this,e,t)},e}(),vl=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},e.prototype.mergeOption=function(e,t){ge(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=null==n?n:n[e];if(null==r&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=null!=t,i=r?this.parsePath(t):null;return new e(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new(0,this.constructor)(pe(this.option))},e.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!at.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&(!e[r]||null!=(n=n&&"object"==typeof n?n[e[r]]:null));r++);return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();ct(vl),ul=vl,cl=["__\0is_clz",dt++].join("_"),ul.prototype[cl]=!0,ul.isInstance=function(e){return!(!e||!e[cl])},_e(vl,fl),_e(vl,ml),_e(vl,yt),_e(vl,ll);const yl=vl;function _l(e){return null==e?0:e.length||1}function xl(e){return e}var bl=function(){function e(e,t,n,r,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||xl,this._newKeyGetter=r||xl,this.context=i,this._diffModeMultiple="multiple"===o}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,r,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var a=r[o],s=n[a],l=_l(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(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],c=_l(l),h=_l(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),r[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[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,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],o=_l(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var a="_ec_"+this[r](e[o],o);if(i||(n[o]=a),t){var s=t[a],l=_l(s);0===l?(t[a]=o,i&&n.push(a)):1===l?t[a]=[s,o]:s.push(o)}}},e}();const wl=bl;var Sl=Qe(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Cl="original",Ml="arrayRows",Dl="objectRows",kl="keyedColumns",Tl="typedArray",Il="unknown",Pl="column",Ll="row",Al=$a();function Rl(e,t,n){var r={},i=Ol(t);if(!i||!e)return r;var o,a,s=[],l=[],u=t.ecModel,c=Al(u).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;be(e=e.slice(),function(t,n){var i=Re(t)?t:e[n]={name:t};"ordinal"===i.type&&null==o&&(o=n,a=p(i)),r[i.name]=[]});var d=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function f(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function p(e){var t=e.dimsDef;return t?t.length:1}return be(e,function(e,t){var n=e.name,i=p(e);if(null==o){var a=d.valueWayDim;f(r[n],a,i),f(l,a,i),d.valueWayDim+=i}else o===t?(f(r[n],0,i),f(s,0,i)):(a=d.categoryWayDim,f(r[n],a,i),f(l,a,i),d.categoryWayDim+=i)}),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function Ol(e){if(!e.get("data",!0))return Ka(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Za).models[0]}function Nl(e,t){return function(e,t,n,r,i,o){var a,s,l;if(Ne(e))return 3;if(r){var u=r[o];Re(u)?(s=u.name,l=u.type):Pe(u)&&(s=u)}if(null!=l)return"ordinal"===l?1:3;if(t===Ml){var c=e;if(n===Ll){for(var h=c[o],d=0;d<(h||[]).length&&d<5;d++)if(null!=(a=y(h[i+d])))return a}else for(d=0;d<c.length&&d<5;d++){var f=c[i+d];if(f&&null!=(a=y(f[o])))return a}}else if(t===Dl){var p=e;if(!s)return 3;for(d=0;d<p.length&&d<5;d++)if((m=p[d])&&null!=(a=y(m[s])))return a}else if(t===kl){if(!s)return 3;if(!(h=e[s])||Ne(h))return 3;for(d=0;d<h.length&&d<5;d++)if(null!=(a=y(h[d])))return a}else if(t===Cl){var g=e;for(d=0;d<g.length&&d<5;d++){var m,v=Ea(m=g[d]);if(!Te(v))return 3;if(null!=(a=y(v[o])))return a}}function y(e){var t=Pe(e);return null!=e&&Number.isFinite(Number(e))&&""!==e?t?2:3:t&&"-"!==e?1:void 0}return 3}(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}var Fl=function(e){this.data=e.data||(e.sourceFormat===kl?{}:[]),this.sourceFormat=e.sourceFormat||Il,this.seriesLayoutBy=e.seriesLayoutBy||Pl,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];null==r.type&&1===Nl(this,n)&&(r.type="ordinal")}};function zl(e){return e instanceof Fl}function El(e,t,n){n=n||Vl(e);var r=t.seriesLayoutBy,i=function(e,t,n,r,i){var o,a;if(!e)return{dimensionsDefine:Hl(i),startIndex:a,dimensionsDetectedCount:o};if(t===Ml){var s=e;"auto"===r||null==r?Gl(function(e){null!=e&&"-"!==e&&(Pe(e)?null==a&&(a=1):a=0)},n,s,10):a=Ae(r)?r:r?1:0,i||1!==a||(i=[],Gl(function(e,t){i[t]=null!=e?e+"":""},n,s,1/0)),o=i?i.length:n===Ll?s.length:s[0]?s[0].length:null}else if(t===Dl)i||(i=function(e){for(var t,n=0;n<e.length&&!(t=e[n++]););if(t)return Me(t)}(e));else if(t===kl)i||(i=[],be(e,function(e,t){i.push(t)}));else if(t===Cl){var l=Ea(e[0]);o=Te(l)&&l.length||1}return{startIndex:a,dimensionsDefine:Hl(i),dimensionsDetectedCount:o}}(e,n,r,t.sourceHeader,t.dimensions);return new Fl({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:pe(t)})}function Bl(e){return new Fl({data:e,sourceFormat:Ne(e)?Tl:Cl})}function Vl(e){var t=Il;if(Ne(e))t=Tl;else if(Te(e)){0===e.length&&(t=Ml);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(null!=i){if(Te(i)||Ne(i)){t=Ml;break}if(Re(i)){t=Dl;break}}}}else if(Re(e))for(var o in e)if(tt(e,o)&&xe(e[o])){t=kl;break}return t}function Hl(e){if(e){var t=Qe();return we(e,function(e,n){var r={name:(e=Re(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=t.get(r.name);return i?r.name+="-"+i.count++:t.set(r.name,{count:1}),r})}}function Gl(e,t,n,r){if(t===Ll)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)e(o[i],i)}}function Wl(e){var t=e.sourceFormat;return t===Dl||t===kl}var Yl,jl,$l,Ul,Xl,ql,Zl={},Kl="undefined"!=typeof console&&console.warn&&console.log;function Ql(e,t){!function(e,t,n){if(Kl){if(n){if(Zl[t])return;Zl[t]=!0}console[e]("[ECharts] "+t)}}("error",e,t)}function Jl(e){throw new Error(e)}var eu=function(){function e(e,t){var n=zl(e)?e:Bl(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===Tl&&(this._offset=0,this._dimSize=t,this._data=r),ql(this,r,n)}var t;return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=((t=e.prototype).pure=!1,void(t.persistent=!0)),e.internalField=function(){var e;ql=function(e,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine;if(me(e,Xl[hu(a,s)]),a===Tl)e.getItem=t,e.count=r,e.fillStorage=n;else{var c=iu(a,s);e.getItem=De(c,null,i,l,u);var h=su(a,s);e.count=De(h,null,i,l,u)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,r=this._dimSize,i=r*e,o=0;o<r;o++)t[o]=n[i+o];return t},n=function(e,t,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=t-e,h=n[a],d=0;d<c;d++){var f=i[d*o+a];h[e+d]=f,f<l&&(l=f),f>u&&(u=f)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={})[Ml+"_"+Pl]={pure:!0,appendData:i},e[Ml+"_"+Ll]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Dl]={pure:!0,appendData:i},e[kl]={pure:!0,appendData:function(e){var t=this._data;be(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[Cl]={appendData:i},e[Tl]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},Xl=e}(),e}(),tu=function(e){Te(e)||Ql("series.data or dataset.source must be an array.")},nu=((Yl={})[Ml+"_"+Pl]=tu,Yl[Ml+"_"+Ll]=tu,Yl[Dl]=tu,Yl[kl]=function(e,t){for(var n=0;n<t.length;n++)null==t[n].name&&Ql("dimension name must not be null/undefined.")},Yl[Cl]=tu,function(e,t,n,r){return e[r]}),ru=((jl={})[Ml+"_"+Pl]=function(e,t,n,r){return e[r+t]},jl[Ml+"_"+Ll]=function(e,t,n,r,i){r+=t;for(var o=i||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},jl[Dl]=nu,jl[kl]=function(e,t,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name,l=null!=s?e[s]:null;o[a]=l?l[r]:null}return o},jl[Cl]=nu,jl);function iu(e,t){return ru[hu(e,t)]}var ou=function(e,t,n){return e.length},au=(($l={})[Ml+"_"+Pl]=function(e,t,n){return Math.max(0,e.length-t)},$l[Ml+"_"+Ll]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},$l[Dl]=ou,$l[kl]=function(e,t,n){var r=n[0].name,i=null!=r?e[r]:null;return i?i.length:0},$l[Cl]=ou,$l);function su(e,t){return au[hu(e,t)]}var lu=function(e,t,n){return e[t]},uu=((Ul={})[Ml]=lu,Ul[Dl]=function(e,t,n){return e[n]},Ul[kl]=lu,Ul[Cl]=function(e,t,n){var r=Ea(e);return r instanceof Array?r[t]:r},Ul[Tl]=lu,Ul);function cu(e){return uu[e]}function hu(e,t){return e===Ml?e+"_"+t:e}function du(e,t,n){if(e){var r=e.getRawDataItem(t);if(null!=r){var i=e.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=e.getDimensionIndex(n),s=i.getDimensionProperty(a);return cu(o)(r,a,s)}var l=r;return o===Cl&&(l=Ea(r)),l}}}var fu=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function pu(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}const gu=function(e){this.otherDims={},null!=e&&me(this,e)};function mu(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||Ae(e)||null==e||"-"===e||(e=+Da(e)),null==e||""===e?NaN:Number(e))}Qe({number:function(e){return parseFloat(e)},time:function(e){return+Da(e)},trim:function(e){return Pe(e)?je(e):e}});var vu,yu=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=Ae(e)?e:Ia(e),r=Ae(t)?t:Ia(t),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=Pe(e),s=Pe(t);a&&(n=s?e:0),s&&(r=a?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),_u="undefined",xu=typeof Uint32Array===_u?Array:Uint32Array,bu=typeof Uint16Array===_u?Array:Uint16Array,wu=typeof Int32Array===_u?Array:Int32Array,Su=typeof Float64Array===_u?Array:Float64Array,Cu={float:Su,int:wu,ordinal:Array,number:Array,time:Su};function Mu(e){return e>65535?xu:bu}function Du(){return[1/0,-1/0]}function ku(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Tu(e,t,n,r,i){var o=Cu[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];e[t]=l}}else e[t]=new o(r)}var Iu=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Qe()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=vu[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],Wl(r),this._dimensions=we(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(null!=i){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new Cu[t||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[e]=[1/0,-1/0]);for(var s=i[e],l=o;l<a;l++){var u=n[l]=t.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=t,r.ordinalOffset=a,r.type="ordinal"},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(e.length,t||0),l=0;l<i;l++)Tu(n,l,(f=r[l]).type,s,!0);for(var u=[],c=a;c<s;c++)for(var h=c-a,d=0;d<i;d++){var f=r[d],p=vu.arrayRows.call(this,e[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}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=we(o,function(e){return e.property}),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=Du()),Tu(i,u,c.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var h=[],d=e;d<t;d++){h=r.getItem(d,h);for(var f=0;f<a;f++){var p=i[f],g=this._dimValueGetter(h,l[f],d,f);p[d]=g;var m=s[f];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(null==t){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=0;if(this._chunks[e])for(var n=0,r=this.count();n<r;n++){var i=this.get(e,n);isNaN(i)||(t+=i)}return t},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)});var n=t.sort(function(e,t){return e-t}),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var o=(r+i)/2|0;if(t[o]<e)r=o+1;else{if(!(t[o]>e))return o;i=o-1}}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else for(e=new(n=Mu(this._rawCount))(this.count()),i=0;i<e.length;i++)e[i]=i;return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(Mu(n._rawCount))(r),o=[],a=e.length,s=0,l=e[0],u=n._chunks,c=0;c<r;c++){var h=void 0,d=n.getRawIndex(c);if(0===a)h=t(c);else if(1===a)h=t(u[l][d],c);else{for(var f=0;f<a;f++)o[f]=u[e[f]][d];o[f]=c,h=t.apply(null,o)}h&&(i[s++]=d)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=Me(e),i=r.length;if(!i)return this;var o=t.count(),a=new(Mu(t._rawCount))(o),s=0,l=r[0],u=e[l][0],c=e[l][1],h=t._chunks,d=!1;if(!t._indices){var f=0;if(1===i){for(var p=h[r[0]],g=0;g<n;g++)((_=p[g])>=u&&_<=c||isNaN(_))&&(a[s++]=f),f++;d=!0}else if(2===i){p=h[r[0]];var m=h[r[1]],v=e[r[1]][0],y=e[r[1]][1];for(g=0;g<n;g++){var _=p[g],x=m[g];(_>=u&&_<=c||isNaN(_))&&(x>=v&&x<=y||isNaN(x))&&(a[s++]=f),f++}d=!0}}if(!d)if(1===i)for(g=0;g<o;g++){var b=t.getRawIndex(g);((_=h[r[0]][b])>=u&&_<=c||isNaN(_))&&(a[s++]=b)}else for(g=0;g<o;g++){for(var w=!0,S=(b=t.getRawIndex(g),0);S<i;S++){var C=r[S];((_=h[C][b])<e[C][0]||_>e[C][1])&&(w=!1)}w&&(a[s++]=t.getRawIndex(g))}return s<o&&(t._indices=a),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],o=t.length,a=e.count(),s=[],l=e._rawExtent,u=0;u<t.length;u++)l[t[u]]=Du();for(var c=0;c<a;c++){for(var h=e.getRawIndex(c),d=0;d<o;d++)s[d]=r[t[d]][h];s[o]=c;var f=n&&n.apply(null,s);if(null!=f)for("object"!=typeof f&&(i[0]=f,f=i),u=0;u<f.length;u++){var p=t[u],g=f[u],m=l[p],v=r[p];v&&(v[h]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}},e.prototype.lttbDownSample=function(e,t){var n,r,i,o=this.clone([e],!0),a=o._chunks[e],s=this.count(),l=0,u=Math.floor(1/t),c=this.getRawIndex(0),h=new(Mu(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,m=0,v=f;v<p;v++){var y=a[M=this.getRawIndex(v)];isNaN(y)||(m+=y)}m/=p-f;var _=d,x=Math.min(d+u,s),b=d-1,w=a[c];n=-1,i=_;var S=-1,C=0;for(v=_;v<x;v++){var M;y=a[M=this.getRawIndex(v)],isNaN(y)?(C++,S<0&&(S=M)):(r=Math.abs((b-g)*(y-w)-(b-v)*(m-w)))>n&&(n=r,i=M)}C>0&&C<x-_&&(h[l++]=Math.min(S,i),i=Math.max(S,i)),h[l++]=i,c=i}return h[l++]=this.getRawIndex(s-1),o._count=l,o._indices=h,o.getRawIndex=this._getRawIdx,o},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),o=r[e],a=this.count(),s=new(Mu(this._rawCount))(2*Math.ceil(a/i)),l=0,u=0;u<a;u+=i){var c=u,h=o[this.getRawIndex(c)],d=u,f=o[this.getRawIndex(d)],p=i;u+i>a&&(p=a-u);for(var g=0;g<p;g++){var m=o[this.getRawIndex(u+g)];m<h&&(h=m,c=u+g),m>f&&(f=m,d=u+g)}var v=this.getRawIndex(c),y=this.getRawIndex(d);c<d?(s[l++]=v,s[l++]=y):(s[l++]=y,s[l++]=v)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),o=i._chunks,a=[],s=Math.floor(1/t),l=o[e],u=this.count(),c=i._rawExtent[e]=[1/0,-1/0],h=new(Mu(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 m=n(a),v=this.getRawIndex(Math.min(f+r(a,m)||0,u-1));l[v]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),h[d++]=v}return i._count=d,i._indices=h,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][a],i);break;case 2:t(r[e[0]][a],r[e[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[e[s]][a];l[s]=i,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=[1/0,-1/0];if(!t)return n;var r,i=this.count();if(!this._indices)return this._rawExtent[e].slice();if(r=this._extent[e])return r.slice();for(var o=(r=n)[0],a=r[1],s=0;s<i;s++){var l=t[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return r=[o,a],this._extent[e]=r,r},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,o=t&&Se(t,function(e,t){return e[t]=!0,e},{});if(o)for(var a=0;a<i.length;a++)r._chunks[a]=o[a]?ku(i[a]):i[a];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=pe(this._extent),e._rawExtent=pe(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return mu(e[r],this._dimensions[r])}vu={arrayRows:e,objectRows:function(e,t,n,r){return mu(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return mu(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}();const Pu=Iu;var Lu=$a(),Au={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Ru=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=Fu(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return Ve(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Wl(this.source),n=!zu(e),r="",i=[],o=0,a=0;o<e;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=t?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=t?h.name:null,l=h.type)}i.push({property:s,type:l,ordinalMeta:u}),!t||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=Au[l]||"f",u&&(r+=u.uid),r+="$"}var d=this.source;return{dimensions:i,hash:[d.seriesLayoutBy,d.startIndex,r].join("$$")}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(t);o&&(r=o.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function Ou(e){return e instanceof Ru}function Nu(e){for(var t=Qe(),n=0;n<(e||[]).length;n++){var r=e[n],i=Re(r)?r.name:r;null!=i&&null==t.get(i)&&t.set(i,n)}return t}function Fu(e){var t=Lu(e);return t.dimNameMap||(t.dimNameMap=Nu(e.dimensionsDefine))}function zu(e){return e>30}var Eu,Bu,Vu,Hu,Gu,Wu,Yu,ju=Re,$u=we,Uu="undefined"==typeof Int32Array?Array:Int32Array,Xu=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],qu=["_approximateExtent"],Zu=function(){function e(e,t){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 r=!1;Ou(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=Pe(c)?new gu({name:c}):c instanceof gu?c:new gu(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),i[d]=h,null!=l[d]&&(s=!0),h.createInvertedIndices&&(a[d]=[]);var p=u;Ae(h.storeDimIndex)&&(p=h.storeDimIndex),0===f.itemName&&(this._nameDimIdx=p),0===f.itemId&&(this._idDimIdx=p),r&&(h.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=a,this._dimOmitted){var g=this._dimIdxToName=Qe();be(o,function(e){g.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var r=this._schema.getSourceDimension(t);return r?r.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(Ae(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r,i=this;if(e instanceof Pu&&(r=e),!r){var o=this.dimensions,a=zl(e)||xe(e)?new eu(e,o.length):e;r=new Pu;var s=$u(o,function(e){return{type:i._dimInfos[e].type,property:e}});r.initData(a,s,n)}this._store=r,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(e,t){var n={},r=n.encode={},i=Qe(),o=[],a=[],s={};be(e.dimensions,function(t){var n,l=e.getDimensionInfo(t),u=l.coordDim;if(u){var c=l.coordDimIndex;pu(r,u)[c]=t,l.isExtraCoord||(i.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=t),pu(s,u)[c]=e.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(t)}Sl.each(function(e,t){var n=pu(r,t),i=l.otherDims[t];null!=i&&!1!==i&&(n[i]=l.name)})});var l=[],u={};i.each(function(e,t){var n=r[t];u[t]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=we(l,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var h=r.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new fu(s,t),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=t[s],o&&Yu(this,a)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==Tl&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===Cl&&!n.pure)for(var o=[],a=e;a<t;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&Ba(s)&&(this.hasItemOption=!0),s){var l=s.name;null==r[a]&&null!=l&&(r[a]=Ga(l,null));var u=s.id;null==i[a]&&null!=u&&(i[a]=Ga(u,null))}}if(this._shouldMakeIdFromName())for(a=e;a<t;a++)Yu(this,a);Eu(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){ju(e)?me(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=Vu(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return Bu(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return Te(e)?r.getValues($u(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],r=n&&n[t];return null==r||isNaN(r)?-1:r},e.prototype.each=function(e,t,n){Ie(e)&&(n=t,t=e,e=[]);var r=n||this,i=$u(Hu(e),this._getStoreDimIndex,this);this._store.each(i,r?De(t,r):t)},e.prototype.filterSelf=function(e,t,n){Ie(e)&&(n=t,t=e,e=[]);var r=n||this,i=$u(Hu(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?De(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=Me(e),i=[];return be(r,function(r){var o=t._getStoreDimIndex(r);n[o]=e[r],i.push(o)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){Ie(e)&&(n=t,t=e,e=[]),n=n||this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,o=$u(Hu(e),this._getStoreDimIndex,this),a=Wu(this);return a._store=this._store.map(o,i?De(t,i):t),a},e.prototype.modify=function(e,t,n,r){var i=n||r||this,o=$u(Hu(e),this._getStoreDimIndex,this);this._store.modify(o,i?De(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=Wu(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=Wu(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=Wu(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new yl(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new wl(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return Bu(e,t)},function(e){return Bu(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},ju(e)?me(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return null==r?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(Te(i=this.getVisual(t))?i=i.slice():ju(i)&&(i=me({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,ju(t)?me(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){ju(e)?me(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?me(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){!function(e,t,n,r){if(r){var i=Ja(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType="chart","group"===r.type&&r.traverse(function(r){var i=Ja(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType="chart"})}}(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){be(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:$u(this.dimensions,this._getDimInfo,this),this.hostModel)),Gu(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];Ie(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(Ge(arguments)))})},e.internalField=(Eu=function(e){var t=e._invertedIndicesMap;be(t,function(n,r){var i=e._dimInfos[r],o=i.ordinalMeta,a=e._store;if(o){n=t[r]=new Uu(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}})},Vu=function(e,t,n){return Ga(e._getCategory(t,n),null)},Bu=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=Vu(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n},Hu=function(e){return Te(e)||(e=null!=e?[e]:[]),e},Wu=function(t){var n=new e(t._schema?t._schema:$u(t.dimensions,t._getDimInfo,t),t.hostModel);return Gu(n,t),n},Gu=function(e,t){be(Xu.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,be(qu,function(n){e[n]=pe(t[n])}),e._calculationInfo=me({},t._calculationInfo)},void(Yu=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,o=e._idDimIdx,a=n[t],s=r[t];if(null==a&&null!=i&&(n[t]=a=Vu(e,i,t)),null==s&&null!=o&&(r[t]=s=Vu(e,o,t)),null==s&&null!=a){var l=e._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[t]=s}})),e}();const Ku=Zu;function Qu(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var Ju={},ec={},tc=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){function n(n,r){var i=[];return be(n,function(n,r){var o=n.create(e,t);i=i.concat(o||[])}),i}this._nonSeriesBoxMasterList=n(Ju),this._normalMasterList=n(ec)},e.prototype.update=function(e,t){be(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){"matrix"!==e&&"calendar"!==e?ec[e]=t:Ju[e]=t},e.get=function(e){return ec[e]||Ju[e]},e}(),nc=Qe();const rc=tc;var ic=function(e){this.coordSysDims=[],this.axisMap=Qe(),this.categoryAxisMap=Qe(),this.coordSysName=e},oc={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",Za).models[0],o=e.getReferringComponents("yAxis",Za).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),ac(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),ac(o)&&(r.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",Za).models[0];t.coordSysDims=["single"],n.set("single",i),ac(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",Za).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),ac(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),ac(a)&&(r.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,o=i.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();be(o.parallelAxisIndex,function(e,o){var s=i.getComponent("parallelAxis",e),l=a[o];n.set(l,s),ac(s)&&(r.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=o))})},matrix:function(e,t,n,r){var i=e.getReferringComponents("matrix",Za).models[0];t.coordSysDims=["x","y"];var o=i.getDimensionModel("x"),a=i.getDimensionModel("y");n.set("x",o),n.set("y",a),r.set("x",o),r.set("y",a)}};function ac(e){return"category"===e.get("type")}function sc(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}const lc=function(e,t,n){n=n||{};var r,i=t.getSourceManager(),o=!1;e?(o=!0,r=Bl(e)):o=(r=i.getSource()).sourceFormat===Cl;var a=function(e){var t=e.get("coordinateSystem"),n=new ic(t),r=oc[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}(t),s=function(e,t){var n,r=e.get("coordinateSystem"),i=rc.get(r);return t&&t.coordSysDims&&(n=we(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);if(r){var i=r.get("type");n.type=function(e){return"category"===e?"ordinal":"time"===e?"time":"float"}(i)}return n})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}(t,a),l=n.useEncodeDefaulter,u=Ie(l)?l:l?ke(Rl,s,t):null,c=function(e,t){zl(e)||(e=Bl(e));var n=(t=t||{}).coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Qe(),o=[],a=function(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return be(t,function(e){var t;Re(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&zu(a),l=r===e.dimensionsDefine,u=l?Fu(e):Nu(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var h=Qe(c),d=new wu(a),f=0;f<d.length;f++)d[f]=-1;function p(e){var t=d[e];if(t<0){var n=r[e],i=Re(n)?n:{name:n},a=new gu,s=i.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=o.length;return d[e]=l,a.storeDimIndex=e,o.push(a),a}return o[t]}if(!s)for(f=0;f<a;f++)p(f);h.each(function(e,t){var n=Na(e).slice();if(1===n.length&&!Pe(n[0])&&n[0]<0)h.set(t,!1);else{var r=h.set(t,[]);be(n,function(e,n){var i=Pe(e)?u.get(e):e;null!=i&&i<a&&(r[n]=i,m(p(i),t,n))})}});var g=0;function m(e,t,n){null!=Sl.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0))}be(n,function(e){var t,n,r,i;if(Pe(e))t=e,i={};else{t=(i=e).name;var o=i.ordinalMeta;i.ordinalMeta=null,(i=me({},i)).ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=h.get(t);if(!1!==s){if(!(s=Na(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++)}be(s,function(e,o){var a=p(e);if(l&&null!=i.type&&(a.type=i.type),m(ve(a,i),t,o),null==a.name&&n){var s=n[o];!Re(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}r&&ve(a.otherDims,r)})}});var v=t.generateCoord,y=t.generateCoordCount,_=null!=y;y=v?y||1:0;var x=v||"value";function b(e){null==e.name&&(e.name=e.coordDim)}if(s)be(o,function(e){b(e)}),o.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var w=0;w<a;w++){var S=p(w);null==S.coordDim&&(S.coordDim=Qu(x,i,_),S.coordDimIndex=0,(!v||y<=0)&&(S.isExtraCoord=!0),y--),b(S),null!=S.type||1!==Nl(e,w)&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(e){for(var t=Qe(),n=0;n<e.length;n++){var r=e[n],i=r.name,o=t.get(i)||0;o>0&&(r.name=i+(o-1)),o++,t.set(i,o)}}(o),new Ru({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}(r,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),h=function(e,t,n){var r,i;return n&&be(e,function(e,o){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(i=!0)}),i||null==r||(e[r].otherDims.itemName=0),r}(c.dimensions,n.createInvertedIndices,a),d=o?null:i.getSharedDataStore(c),f=function(e,t,n){var r,i,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(e){return!Ou(e.schema)}(t)?(i=t.schema,r=i.dimensions,o=t.store):r=t;var l,u,c,h,d=!(!e||!e.get("stack"));if(be(r,function(e,t){Pe(e)&&(r[t]=e={name:e}),d&&!e.isExtraCoord&&(a||l||!e.ordinalMeta||(l=e),u||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(u=e))}),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var f=u.coordDim,p=u.type,g=0;be(r,function(e){e.coordDim===f&&g++});var m={name:c,coordDim:f,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},v={name:h,coordDim:h,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(m.storeDimIndex=o.ensureCalculationDimension(h,p),v.storeDimIndex=o.ensureCalculationDimension(c,p)),i.appendCalculationDimension(m),i.appendCalculationDimension(v)):(r.push(m),r.push(v))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}(t,{schema:c,store:d}),p=new Ku(c,t);p.setCalculationInfo(f);var g=null!=h&&function(e){if(e.sourceFormat===Cl)return!Te(Ea(function(e){for(var t=0;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[])))}(r)?function(e,t,n,r){return r===h?n:this.defaultDimValueGetter(e,t,n,r)}:null;return p.hasItemOption=!1,p.initData(o?r:d,null,g),p};var uc=Math.round(10*Math.random());function cc(e){return[e||"",uc++].join("_")}var hc=Math.log(2);function dc(e,t,n,r,i,o){var a=r+"-"+i,s=e.length;if(o.hasOwnProperty(a))return o[a];if(1===t){var l=Math.round(Math.log((1<<s)-1&~i)/hc);return e[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var h=0,d=0,f=0;d<s;d++){var p=1<<d;p&i||(h+=(f%2?-1:1)*e[n][d]*dc(e,t-1,c,u,i|p,o),f++)}return o[a]=h,h}function fc(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=dc(n,8,0,0,0,r);if(0!==i){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)*dc(n,7,0===a?1:0,1<<a,1<<s,r)/i*t[a];return function(e,t,n){var r=t*o[6]+n*o[7]+1;e[0]=(t*o[0]+n*o[1]+o[2])/r,e[1]=(t*o[3]+n*o[4]+o[5])/r}}}var pc="___zrEVENTSAVED",gc=[];function mc(e,t,n,r,i){if(t.getBoundingClientRect&&at.domSupported&&!vc(t)){var o=t[pc]||(t[pc]={}),a=function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["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",r[s]+":0",i[l]+":0",r[1-s]+":auto",i[1-l]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return t.clearMarkers=function(){be(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}(t,o),s=function(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],o=t.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=e[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(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=a,t[r]=n?fc(s,a):fc(a,s))}(a,o,i);if(s)return s(e,n,r),!0}return!1}function vc(e){return"CANVAS"===e.nodeName.toUpperCase()}var yc=/([&<>"'])/g,_c={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function xc(e){return null==e?"":(e+"").replace(yc,function(e,t){return _c[t]})}var bc="ZH",wc="EN",Sc=wc,Cc={},Mc={},Dc=at.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||Sc).toUpperCase().indexOf(bc)>-1?bc:Sc;function kc(e,t){e=e.toUpperCase(),Mc[e]=new yl(t),Cc[e]=t}kc(wc,{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:". "}}}}),kc(bc,{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 Tc(){return null}var Ic=36e5,Pc=864e5,Lc=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})/},Rc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},Oc="{yyyy}-{MM}-{dd}",Nc={year:"{yyyy}",month:"{yyyy}-{MM}",day:Oc,hour:Oc+" "+Rc.hour,minute:Oc+" "+Rc.minute,second:Oc+" "+Rc.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Fc=["year","month","day","hour","minute","second","millisecond"],zc=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ec(e,t){return"0000".substr(0,t-(e+="").length)+e}function Bc(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function Vc(e){return e===Bc(e)}function Hc(e,t,n,r){var i=Da(e),o=i[Yc(n)](),a=i[jc(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[$c(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Uc(n)](),h=(c-1)%12+1,d=i[Xc(n)](),f=i[qc(n)](),p=i[Zc(n)](),g=c>=12?"pm":"am",m=g.toUpperCase(),v=r instanceof yl?r:function(e){return Mc[e]}(r||Dc)||Mc[Sc],y=v.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),b=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,Ec(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,Ec(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Ec(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ec(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ec(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Ec(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Ec(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,Ec(p,3)).replace(/{S}/g,p+"")}function Gc(e,t){var n=Da(e),r=n[jc(t)]()+1,i=n[$c(t)](),o=n[Uc(t)](),a=n[Xc(t)](),s=n[qc(t)](),l=0===n[Zc(t)](),u=l&&0===s,c=u&&0===a,h=c&&0===o,d=h&&1===i;return d&&1===r?"year":d?"month":h?"day":c?"hour":u?"minute":l?"second":"millisecond"}function Wc(e,t,n){switch(t){case"year":e[Qc(n)](0);case"month":e[Jc(n)](1);case"day":e[eh(n)](0);case"hour":e[th(n)](0);case"minute":e[nh(n)](0);case"second":e[rh(n)](0)}return e}function Yc(e){return e?"getUTCFullYear":"getFullYear"}function jc(e){return e?"getUTCMonth":"getMonth"}function $c(e){return e?"getUTCDate":"getDate"}function Uc(e){return e?"getUTCHours":"getHours"}function Xc(e){return e?"getUTCMinutes":"getMinutes"}function qc(e){return e?"getUTCSeconds":"getSeconds"}function Zc(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Kc(e){return e?"setUTCFullYear":"setFullYear"}function Qc(e){return e?"setUTCMonth":"setMonth"}function Jc(e){return e?"setUTCDate":"setDate"}function eh(e){return e?"setUTCHours":"setHours"}function th(e){return e?"setUTCMinutes":"setMinutes"}function nh(e){return e?"setUTCSeconds":"setSeconds"}function rh(e){return e?"setUTCMilliseconds":"setMilliseconds"}function ih(e){if(isNaN(Ia(e)))return Pe(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function oh(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var ah=We;function sh(e,t,n){function r(e){return e&&je(e)?e:"-"}function i(e){return!(null==e||isNaN(e)||!isFinite(e))}var o="time"===t,a=e instanceof Date;if(o||a){var s=o?Da(e):e;if(!isNaN(+s))return Hc(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===t)return Le(e)?r(e):Ae(e)&&i(e)?e+"":"-";var l=Ia(e);return i(l)?ih(l):Le(e)?r(e):"boolean"==typeof e?e+"":"-"}var lh=["a","b","c","d","e","f","g"],uh=function(e,t){return"{"+e+(null==t?"":t)+"}"};function ch(e,t,n){Te(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],o=0;o<i.length;o++){var a=lh[o];e=e.replace(uh(a),uh(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(uh(lh[l],s),n?xc(u):u)}return e}function hh(e,t){return t=t||"transparent",Pe(e)?e:Re(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function dh(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var fh=be,ph=["left","right","top","bottom","width","height"],gh=[["width","left","right"],["height","top","bottom"]];function mh(e,t,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild(function(l,u){var c,h,d=l.getBoundingRect(),f=t.childAt(u+1),p=f&&f.getBoundingRect();if("horizontal"===e){var g=d.width+(p?-p.x+d.x:0);(c=o+g)>r||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(p?-p.y+d.y:0);(h=a+m)>i||l.newline?(o+=s+n,a=0,h=m,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===e?o=c+n:a=h+n)})}function vh(e,t,n){n=ah(n||0);var r=t.width,i=t.height,o=ya(e.left,r),a=ya(e.top,i),s=ya(e.right,r),l=ya(e.bottom,i),u=ya(e.width,r),c=ya(e.height,i),h=n[2]+n[0],d=n[1]+n[3],f=e.aspect;switch(isNaN(u)&&(u=r-s-d-o),isNaN(c)&&(c=i-l-h-a),null!=f&&(isNaN(u)&&isNaN(c)&&(f>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(o)&&(o=r-s-u-d),isNaN(a)&&(a=i-l-c-h),e.left||e.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-d}switch(e.top||e.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-h}o=o||0,a=a||0,isNaN(u)&&(u=r-d-o-(s||0)),isNaN(c)&&(c=i-h-a-(l||0));var p=new nn((t.x||0)+o+n[3],(t.y||0)+a+n[0],u,c);return p.margin=n,p}ke(mh,"vertical"),ke(mh,"horizontal");var yh=1,_h=2;function xh(e,t,n){var r,i,o,a,s=e.boxCoordinateSystem;if(s){var l=function(e){var t=e.getShallow("coord",!0),n=1;if(null==t){var r=nc.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}(e),u=l.coord,c=l.from;if(s.dataToLayout){o=yh,a=c;var h=s.dataToLayout(u);r=h.contentRect||h.rect}else n&&n.enableLayoutOnlyByCenter&&s.dataToPoint&&(o=_h,a=c,i=s.dataToPoint(u))}return null==o&&(o=yh),o===yh&&(r||(r={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),i=[r.x+r.width/2,r.y+r.height/2]),{type:o,refContainer:r,refPoint:i,boxCoordFrom:a}}function bh(e){var t=e.layoutMode||e.constructor.layoutMode;return Re(t)?t:t?{type:t}:null}function wh(e,t,n){var r=n&&n.ignoreSize;!Te(r)&&(r=[r,r]);var i=a(gh[0],0),o=a(gh[1],1);function a(n,i){var o={},a=0,l={},u=0;if(fh(n,function(t){l[t]=e[t]}),fh(n,function(e){tt(t,e)&&(o[e]=l[e]=t[e]),s(o,e)&&a++,s(l,e)&&u++}),r[i])return s(t,n[1])?l[n[2]]=null:s(t,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(!tt(o,h)&&tt(e,h)){o[h]=e[h];break}}return o}return l}function s(e,t){return null!=e[t]&&"auto"!==e[t]}function l(e,t,n){fh(e,function(e){t[e]=n[e]})}l(gh[0],e,i),l(gh[1],e,o)}function Sh(e){return function(e,t){return t&&e&&fh(ph,function(n){tt(t,n)&&(e[n]=t[n])}),e}({},e)}var Ch=$a(),Mh=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=cc("ec_cpt_model"),i}var n;return X(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=bh(this),r=n?Sh(e):{};ge(e,t.getTheme().get(this.mainType)),ge(e,this.getDefaultOption()),n&&wh(e,r,n)},t.prototype.mergeOption=function(e,t){ge(this.option,e,!0);var n=bh(this);n&&wh(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!function(e){return!(!e||!e[lt])}(e))return e.defaultOption;var t=Ch(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=ge(o,n[a],!0);t.defaultOption=o}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",r=e+"Id";return Ka(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return t=!1,{left:(e=this).getShallow("left",t),top:e.getShallow("top",t),right:e.getShallow("right",t),bottom:e.getShallow("bottom",t),width:e.getShallow("width",t),height:e.getShallow("height",t)};var e,t},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=((n=t.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),t}(yl);ht(Mh,yl),gt(Mh),function(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=ut(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var o=ut(n).main;e.hasSubTypes(n)&&t[o]&&(i=t[o](r))}return i}}(Mh),function(){function e(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}Mh.topologicalTravel=function(t,n,r,i){if(t.length){var o=function(t){var n={},r=[];return be(t,function(i){var o,a,s=e(n,i),l=function(e,t){var n=[];return be(e,function(e){ye(t,e)>=0&&n.push(e)}),n}(s.originalDeps=(o=i,a=[],be(Mh.getClassesByMainType(o),function(e){a=a.concat(e.dependencies||e.prototype.dependencies||[])}),a=we(a,function(e){return ut(e).main}),"dataset"!==o&&ye(a,"dataset")<=0&&a.unshift("dataset"),a),t);s.entryCount=l.length,0===s.entryCount&&r.push(i),be(l,function(t){ye(s.predecessor,t)<0&&s.predecessor.push(t);var r=e(n,t);ye(r.successor,t)<0&&r.successor.push(i)})}),{graph:n,noEntryList:r}}(n),a=o.graph,s=o.noEntryList,l={};for(be(t,function(e){l[e]=!0});s.length;){var u=s.pop(),c=a[u],h=!!l[u];h&&(r.call(i,u,c.originalDeps.slice()),delete l[u]),be(c.successor,h?f:d)}be(l,function(){throw new Error("")})}function d(e){a[e].entryCount--,0===a[e].entryCount&&s.push(e)}function f(e){l[e]=!0,d(e)}}}();const Dh=Mh;var kh=$a(),Th=($a(),function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=Na(this.get("color",!0)),i=this.get("colorLayer",!0);return function(e,t,n,r,i,o,a){var s=t(o=o||e),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?function(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}(r,a):n;if((c=c||n)&&c.length){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}(this,kh,r,i,e,t,n)},e.prototype.clearColorPalette=function(){!function(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}(this,kh)},e}());var Ih=/\{@(.+?)\}/g,Ph=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),o=n.getName(e),a=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"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:i,data:a,dataType:t,value:r,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,o){t=t||"normal";var a=this.getData(n),s=this.getDataParams(e,n);return o&&(s.value=o.interpolatedValue),null!=r&&Te(s.value)&&(s.value=s.value[r]),i||(i=a.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"])),Ie(i)?(s.status=t,s.dimensionIndex=r,i(s)):Pe(i)?ch(i,s).replace(Ih,function(t,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=du(a,e,i);if(o&&Te(o.interpolatedValue)){var l=a.getDimensionIndex(i);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}):void 0},e.prototype.getRawValue=function(e,t){return du(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function Lh(e){var t,n;return Re(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Ah(e){return new Rh(e)}var Rh=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(t=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;function c(e){return!(e>=1)&&(e=1),e}a===l&&s===u||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=u;var h=e&&e.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(!r&&(o||d<f)){var p=this._progress;if(Te(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 m=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){Oh.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:Oh.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),Te(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),Oh=function(){var e,t,n,r,i,o={reset:function(l,u,c,h){t=l,e=u,n=c,r=h,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var o=t%i*n+Math.ceil(t/i),a=t>=e?null:o<r?o:t;return t++,a}}(),Nh=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return mu(e,t)},e}();function Fh(e){return Gh(e.sourceFormat)||Jl(""),e.data}function zh(e){var t=e.sourceFormat,n=e.data;if(Gh(t)||Jl(""),t===Ml){for(var r=[],i=0,o=n.length;i<o;i++)r.push(n[i].slice());return r}if(t===Dl){for(r=[],i=0,o=n.length;i<o;i++)r.push(me({},n[i]));return r}}function Eh(e,t,n){if(null!=n)return Ae(n)||!isNaN(n)&&!tt(t,n)?e[n]:tt(t,n)?t[n]:void 0}function Bh(e){return pe(e)}var Vh=Qe();function Hh(e,t,n,r){t.length||Jl(""),Re(e)||Jl("");var i=e.type,o=Vh.get(i);o||Jl("");var a=we(t,function(e){return function(e,t){var n=new Nh,r=e.data,i=n.sourceFormat=e.sourceFormat,o=e.startIndex;e.seriesLayoutBy!==Pl&&Jl("");var a=[],s={},l=e.dimensionsDefine;if(l)be(l,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};a.push(r),null!=n&&(tt(s,n)&&Jl(""),s[n]=r)});else for(var u=0;u<e.dimensionsDetectedCount;u++)a.push({index:u});var c=iu(i,Pl);t.__isBuiltIn&&(n.getRawDataItem=function(e){return c(r,o,a,e)},n.getRawData=De(Fh,null,e)),n.cloneRawData=De(zh,null,e);var h=su(i,Pl);n.count=De(h,null,r,o,a);var d=cu(i);n.retrieveValue=function(e,t){var n=c(r,o,a,e);return f(n,t)};var f=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=a[t];return n?d(e,t,n.name):void 0}};return n.getDimensionInfo=De(Eh,null,a,s),n.cloneAllDimensionInfo=De(Bh,null,a),n}(e,o)});return we(Na(o.transform({upstream:a[0],upstreamList:a,config:pe(e.config)})),function(e,n){var r;Re(e)||Jl(""),e.data||Jl(""),Gh(Vl(e.data))||Jl("");var i=t[0];if(i&&0===n&&!e.dimensions){var o=i.startIndex;o&&(e.data=i.data.slice(0,o).concat(e.data)),r={seriesLayoutBy:Pl,sourceHeader:o,dimensions:i.metaRawOption.dimensions}}else r={seriesLayoutBy:Pl,sourceHeader:0,dimensions:e.dimensions};return El(e.data,r,null)})}function Gh(e){return e===Ml||e===Dl}var Wh=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(Yh(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,t=[u._getVersionSign()]}else s=Ne(a=o.get("data",!0))?Tl:Cl,t=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},d=Ve(c.seriesLayoutBy,h.seriesLayoutBy)||null,f=Ve(c.sourceHeader,h.sourceHeader),p=Ve(c.dimensions,h.dimensions);e=d!==h.seriesLayoutBy||!!f!=!!h.sourceHeader||p?[El(a,{seriesLayoutBy:d,sourceHeader:f,dimensions:p},s)]:[]}else{var g=n;if(i){var m=this._applyTransform(r);e=m.sourceList,t=m.upstreamSignList}else e=[El(g.get("source",!0),this._getSourceMetaRawOption(),null)],t=[]}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);null!=i&&1!==e.length&&jh("");var o,a=[],s=[];return be(e,function(e){e.prepareSource();var t=e.getSource(i||0);null==i||t||jh(""),a.push(t),s.push(e._getVersionSign())}),r?t=function(e,t){var n=Na(e),r=n.length;r||Jl("");for(var i=0,o=r;i<o;i++)t=Hh(n[i],t),i!==o-1&&(t.length=Math.max(t.length,1));return t}(r,a,n.componentIndex):null!=i&&(t=[(o=a[0],new Fl({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:pe(o.dimensionsDefine),startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount}))]),{sourceList:t,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=this._storeList,i=r[0];i||(i=r[0]={});var o=i[n];if(!o){var a=this._getUpstreamSourceManagers()[0];Yh(this._sourceHost)&&a?o=a._innerGetDataStore(e,t,n):(o=new Pu).initData(new eu(t,e.length),e),i[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Yh(e)){var t=Ol(e);return t?[t.getSourceManager()]:[]}return we(function(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?Ka(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Za).models:[]}(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;if(Yh(r))e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function Yh(e){return"series"===e.mainType}function jh(e){throw new Error(e)}var $h={color:{},darkColor:{},size:{}},Uh=$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 Xh in me(Uh,{primary:Uh.neutral80,secondary:Uh.neutral70,tertiary:Uh.neutral60,quaternary:Uh.neutral50,disabled:Uh.neutral20,border:Uh.neutral30,borderTint:Uh.neutral20,borderShade:Uh.neutral40,background:Uh.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Uh.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Uh.neutral70,axisLineTint:Uh.neutral40,axisTick:Uh.neutral70,axisTickMinor:Uh.neutral60,axisLabel:Uh.neutral70,axisSplitLine:Uh.neutral15,axisMinorSplitLine:Uh.neutral05}),Uh)if(Uh.hasOwnProperty(Xh)){var qh=Uh[Xh];"theme"===Xh?$h.darkColor.theme=Uh.theme.slice():"highlight"===Xh?$h.darkColor.highlight="rgba(255,231,130,0.4)":0===Xh.indexOf("accent")?$h.darkColor[Xh]=Wr(qh,null,function(e){return.5*e},function(e){return Math.min(1,1.3-e)}):$h.darkColor[Xh]=Wr(qh,null,function(e){return.9*e},function(e){return 1-Math.pow(e,1.5)})}$h.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const Zh=$h;function Kh(e){var t=e.lineHeight;return null==t?"line-height:1":"line-height:"+xc(t+"")+"px"}function Qh(e,t){var n=e.color||Zh.color.tertiary,r=e.fontSize||12,i=e.fontWeight||"400",o=e.color||Zh.color.secondary,a=e.fontSize||14,s=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+xc(r+"")+"px;color:"+xc(n)+";font-weight:"+xc(i+""),valueStyle:"font-size:"+xc(a+"")+"px;color:"+xc(o)+";font-weight:"+xc(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var Jh=[0,10,20,30],ed=["","\n","\n\n","\n\n\n"];function td(e,t){return t.type=e,t}function nd(e){return"section"===e.type}function rd(e){return nd(e)?od:ad}function id(e){if(nd(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return be(e.blocks,function(e){var n=id(e);n>=t&&(t=n+ +(r&&(!n||nd(e)&&!e.noHeader)))}),t}return 0}function od(e,t,n,r){var i,o=t.noHeader,a=(i=id(t),{html:Jh[i],richText:ed[i]}),s=[],l=t.blocks||[];Ye(!l||Te(l)),l=l||[];var u=e.orderMode;if(t.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(tt(c,u)){var h=new yu(c[u],null);l.sort(function(e,t){return h.evaluate(e.sortParam,t.sortParam)})}else"seriesDesc"===u&&l.reverse()}be(l,function(n,i){var o=t.valueFormatter,l=rd(n)(o?me(me({},e),{valueFormatter:o}):e,n,i>0?a.html:0,r);null!=l&&s.push(l)});var d="richText"===e.renderMode?s.join(a.richText):ld(r,s.join(""),o?n:a.html);if(o)return d;var f=sh(t.header,"ordinal",e.useUTC),p=Qh(r,e.renderMode).nameStyle,g=Kh(r);return"richText"===e.renderMode?ud(e,f,p)+a.richText+d:ld(r,'<div style="'+p+";"+g+';">'+xc(f)+"</div>"+d,n)}function ad(e,t,n,r){var i=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(e){return we(e=Te(e)?e:[e],function(e,t){return sh(e,Te(f)?f[t]:f,u)})};if(!o||!a){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Zh.color.secondary,i),d=o?"":sh(l,"ordinal",u),f=t.valueType,p=a?[]:c(t.value,t.dataIndex),g=!s||!o,m=!s&&o,v=Qh(r,i),y=v.nameStyle,_=v.valueStyle;return"richText"===i?(s?"":h)+(o?"":ud(e,d,y))+(a?"":function(e,t,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Te(t)?t.join(" "):t,o)}(e,p,g,m,_)):ld(r,(s?"":h)+(o?"":function(e,t,n){return'<span style="'+n+";"+(t?"margin-left:2px":"")+'">'+xc(e)+"</span>"}(d,!s,y))+(a?"":function(e,t,n,r){return'<span style="'+(t?"float:right;margin-left:"+(n?"10px":"20px"):"")+";"+r+'">'+we(e=Te(e)?e:[e],function(e){return xc(e)}).join("&nbsp;&nbsp;")+"</span>"}(p,g,m,_)),n)}}function sd(e,t,n,r,i,o){if(e)return rd(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,o)}function ld(e,t,n){return'<div style="margin: '+n+"px 0 0;"+Kh(e)+';">'+t+'<div style="clear:both"></div></div>'}function ud(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function cd(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var hd=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Pa()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r="richText"===n?this._generateStyleName():null,i=function(e,t){var n=Pe(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var o=n.renderMode||"html";return r?"html"===o?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+xc(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+xc(r)+";"+(t||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""}({color:t,type:e,renderMode:n,markerId:r});return Pe(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};Te(t)?be(t,function(e){return me(n,e)}):me(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}();var dd=$a();function fd(e,t){return e.getName(t)||e.getId(t)}var pd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}var n;return X(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=Ah({count:md,reset:vd}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(dd(this).sourceManager=new Wh(this)).prepareSource();var r=this.getInitialData(e,n);_d(r,this),this.dataTask.context.data=r,dd(this).dataBeforeProcessed=r,gd(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=bh(this),r=n?Sh(e):{},i=this.subType;Dh.hasClass(i)&&(i+="Series"),ge(e,t.getTheme().get(this.subType)),ge(e,this.getDefaultOption()),Fa(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&wh(e,r,n)},t.prototype.mergeOption=function(e,t){e=ge(this.option,e,!0),this.fillDataTextStyle(e.data);var n=bh(this);n&&wh(this.option,e,n);var r=dd(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);_d(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,dd(this).dataBeforeProcessed=i,gd(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!Ne(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Fa(e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=bd(this);if(t){var n=t.context.data;return null!=e&&n.getLinkedData?n.getLinkedData(e):n}return dd(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=bd(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}dd(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Qe(e)},t.prototype.getSourceManager=function(){return dd(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return dd(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get("colorBy")||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,t,n,r){var i=this.getData(),o=this.coordinateSystem,a=o&&o.getAxis(e);if(!o||!a)return[];var s=a.dataToCoord(n);null==r&&(r=1/0);var l=[],u=1/0,c=-1,h=0;return i.each(t,function(e,t){var n=a.dataToCoord(e),i=s-n,o=Math.abs(i);o<=r&&((o<u||o===u&&i>=0&&c<0)&&(u=o,c=i,h=0),i===c&&(l[h++]=t))}),l.length=h,l},t.prototype.formatTooltip=function(e,t,n){return function(e){var t,n,r,i,o=e.series,a=e.dataIndex,s=e.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),d=Te(h),f=function(e,t){return hh(e.getData().getItemVisual(t,"style")[e.visualDrawType])}(o,a);if(c>1||d&&!c){var p=function(e,t,n,r,i){var o=t.getData(),a=Se(e,function(e,t,n){var r=o.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName},!1),s=[],l=[],u=[];function c(e,t){var n=o.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(a?u.push(td("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),l.push(n.type)))}return r.length?be(r,function(e){c(du(o,n,e),e)}):be(e,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(h,o,a,u,f);t=p.inlineValues,n=p.inlineValueTypes,r=p.blocks,i=p.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=t=du(l,a,u[0]),n=g.type}else i=t=d?h[0]:h;var m=Wa(o),v=m&&o.name||"",y=l.getName(a),_=s?v:y;return td("section",{header:v,noHeader:s||!m,sortParam:i,blocks:[td("nameValue",{markerType:"item",markerColor:f,name:_,noName:!je(_),value:t,valueType:n,dataIndex:a})].concat(r||[])})}({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(at.node&&(!e||!e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=Th.prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<e.length;o++){var a=fd(i,e[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=Me(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return("all"===n||n[fd(r,e)])&&!r.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,o=i.selectedMode,a=t.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){Re(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<a;l++){var u=t[l];s[h=fd(e,u)]=!0,this._selectedDataIndicesMap[h]=e.getRawIndex(u)}}else if("single"===o||!0===o){var c=t[a-1],h=fd(e,c);i.selectedMap=((n={})[h]=!0,n),this._selectedDataIndicesMap=((r={})[h]=e.getRawIndex(c),r)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return Dh.registerClass(e)},t.protoInitialize=((n=t.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),t}(Dh);function gd(e){var t=e.name;Wa(e)||(e.name=function(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return be(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(" ")}(e)||t)}function md(e){return e.model.getRawData().count()}function vd(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),yd}function yd(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function _d(e,t){be(function(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];var i=e.length;for(r=0;r<t.length;r++)n[r+i]=t[r];return n}(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,ke(xd,t))})}function xd(e,t){var n=bd(e);return n&&n.setOutputEnd((t||this).count()),t}function bd(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}_e(pd,Ph),_e(pd,Th),ht(pd,Dh);const wd=pd;var Sd={},Cd=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Md=function(e){function t(t){return e.call(this,t)||this}return xt(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Cd},t.prototype.buildPath=function(e,t){var n,r,i,o;if(this.subPixelOptimize){var a=$o(Sd,t,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=t.x1,r=t.y1,i=t.x2,o=t.y2;var s=t.percent;0!==s&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),e.lineTo(i,o))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(zo);Md.prototype.type="line";const Dd=Md;var kd=function(){this.cx=0,this.cy=0,this.r=0},Td=function(e){function t(t){return e.call(this,t)||this}return xt(t,e),t.prototype.getDefaultShape=function(){return new kd},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(zo);Td.prototype.type="circle";const Id=Td;var Pd=go.CMD,Ld=[[],[],[]],Ad=Math.sqrt,Rd=Math.atan2,Od=Math.sqrt,Nd=Math.sin,Fd=Math.cos,zd=Math.PI;function Ed(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Bd(e,t){return(e[0]*t[0]+e[1]*t[1])/(Ed(e)*Ed(t))}function Vd(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Bd(e,t))}function Hd(e,t,n,r,i,o,a,s,l,u,c){var h=l*(zd/180),d=Fd(h)*(e-n)/2+Nd(h)*(t-r)/2,f=-1*Nd(h)*(e-n)/2+Fd(h)*(t-r)/2,p=d*d/(a*a)+f*f/(s*s);p>1&&(a*=Od(p),s*=Od(p));var g=(i===o?-1:1)*Od((a*a*(s*s)-a*a*(f*f)-s*s*(d*d))/(a*a*(f*f)+s*s*(d*d)))||0,m=g*a*f/s,v=g*-s*d/a,y=(e+n)/2+Fd(h)*m-Nd(h)*v,_=(t+r)/2+Nd(h)*m+Fd(h)*v,x=Vd([1,0],[(d-m)/a,(f-v)/s]),b=[(d-m)/a,(f-v)/s],w=[(-1*d-m)/a,(-1*f-v)/s],S=Vd(b,w);if(Bd(b,w)<=-1&&(S=zd),Bd(b,w)>=1&&(S=0),S<0){var C=Math.round(S/zd*1e6)/1e6;S=2*zd+C%2*zd}c.addData(u,y,_,a,s,x,S,h,o)}var Gd=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Wd=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Yd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xt(t,e),t.prototype.applyTransform=function(e){},t}(zo);function jd(e){return null!=e.setData}function $d(e,t){var n=function(e){var t=new go;if(!e)return t;var n,r=0,i=0,o=r,a=i,s=go.CMD,l=e.match(Gd);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),d=void 0,f=c.match(Wd)||[],p=f.length,g=0;g<p;g++)f[g]=parseFloat(f[g]);for(var m=0;m<p;){var v=void 0,y=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,C=r,M=i,D=void 0,k=void 0;switch(h){case"l":r+=f[m++],i+=f[m++],d=s.L,t.addData(d,r,i);break;case"L":r=f[m++],i=f[m++],d=s.L,t.addData(d,r,i);break;case"m":r+=f[m++],i+=f[m++],d=s.M,t.addData(d,r,i),o=r,a=i,h="l";break;case"M":r=f[m++],i=f[m++],d=s.M,t.addData(d,r,i),o=r,a=i,h="L";break;case"h":r+=f[m++],d=s.L,t.addData(d,r,i);break;case"H":r=f[m++],d=s.L,t.addData(d,r,i);break;case"v":i+=f[m++],d=s.L,t.addData(d,r,i);break;case"V":i=f[m++],d=s.L,t.addData(d,r,i);break;case"C":d=s.C,t.addData(d,f[m++],f[m++],f[m++],f[m++],f[m++],f[m++]),r=f[m-2],i=f[m-1];break;case"c":d=s.C,t.addData(d,f[m++]+r,f[m++]+i,f[m++]+r,f[m++]+i,f[m++]+r,f[m++]+i),r+=f[m-2],i+=f[m-1];break;case"S":v=r,y=i,D=t.len(),k=t.data,n===s.C&&(v+=r-k[D-4],y+=i-k[D-3]),d=s.C,C=f[m++],M=f[m++],r=f[m++],i=f[m++],t.addData(d,v,y,C,M,r,i);break;case"s":v=r,y=i,D=t.len(),k=t.data,n===s.C&&(v+=r-k[D-4],y+=i-k[D-3]),d=s.C,C=r+f[m++],M=i+f[m++],r+=f[m++],i+=f[m++],t.addData(d,v,y,C,M,r,i);break;case"Q":C=f[m++],M=f[m++],r=f[m++],i=f[m++],d=s.Q,t.addData(d,C,M,r,i);break;case"q":C=f[m++]+r,M=f[m++]+i,r+=f[m++],i+=f[m++],d=s.Q,t.addData(d,C,M,r,i);break;case"T":v=r,y=i,D=t.len(),k=t.data,n===s.Q&&(v+=r-k[D-4],y+=i-k[D-3]),r=f[m++],i=f[m++],d=s.Q,t.addData(d,v,y,r,i);break;case"t":v=r,y=i,D=t.len(),k=t.data,n===s.Q&&(v+=r-k[D-4],y+=i-k[D-3]),r+=f[m++],i+=f[m++],d=s.Q,t.addData(d,v,y,r,i);break;case"A":_=f[m++],x=f[m++],b=f[m++],w=f[m++],S=f[m++],Hd(C=r,M=i,r=f[m++],i=f[m++],w,S,_,x,b,d=s.A,t);break;case"a":_=f[m++],x=f[m++],b=f[m++],w=f[m++],S=f[m++],Hd(C=r,M=i,r+=f[m++],i+=f[m++],w,S,_,x,b,d=s.A,t)}}"z"!==h&&"Z"!==h||(d=s.Z,t.addData(d),r=o,i=a),n=d}return t.toStatic(),t}(e),r=me({},t);return r.buildPath=function(e){var t,r=jd(e);r&&e.canSave()?(e.appendPath(n),(t=e.getContext())&&e.rebuildPath(t,1)):(t=r?e.getContext():e)&&n.rebuildPath(t,1)},r.applyTransform=function(e){!function(e,t){if(t){var n,r,i,o,a,s,l=e.data,u=e.len(),c=Pd.M,h=Pd.C,d=Pd.L,f=Pd.R,p=Pd.A,g=Pd.Q;for(i=0,o=0;i<u;){switch(n=l[i++],o=i,r=0,n){case c:case d:r=1;break;case h:r=3;break;case g:r=2;break;case p:var m=t[4],v=t[5],y=Ad(t[0]*t[0]+t[1]*t[1]),_=Ad(t[2]*t[2]+t[3]*t[3]),x=Rd(-t[1]/_,t[0]/y);l[i]*=y,l[i++]+=m,l[i]*=_,l[i++]+=v,l[i++]*=y,l[i++]*=_,l[i++]+=x,l[i++]+=x,o=i+=2;break;case f:s[0]=l[i++],s[1]=l[i++],Gn(s,s,t),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],Gn(s,s,t),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<r;a++){var b=Ld[a];b[0]=l[i++],b[1]=l[i++],Gn(b,b,t),l[o++]=b[0],l[o++]=b[1]}}e.increaseVersion()}}(n,e),this.dirtyShape()},r}var Ud=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return xt(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=ye(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=ye(n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new nn(0,0,0,0),n=e||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(nn.applyTransform(t,s,l),(i=i||t.clone()).union(t)):(i=i||s.clone()).union(s)}}return i||t},t}(Di);Ud.prototype.type="group";const Xd=Ud;var qd=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Zd=function(e){function t(t){return e.call(this,t)||this}return xt(t,e),t.prototype.getDefaultShape=function(){return new qd},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,o=t.rx,a=t.ry,s=o*n,l=a*n;e.moveTo(r-o,i),e.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),e.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),e.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),e.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),e.closePath()},t}(zo);Zd.prototype.type="ellipse";const Kd=Zd;var Qd=Math.PI,Jd=2*Qd,ef=Math.sin,tf=Math.cos,nf=Math.acos,rf=Math.atan2,of=Math.abs,af=Math.sqrt,sf=Math.max,lf=Math.min,uf=1e-4;function cf(e,t,n,r,i,o,a){var s=e-n,l=t-r,u=(a?o:-o)/af(s*s+l*l),c=u*l,h=-u*s,d=e+c,f=t+h,p=n+c,g=r+h,m=(d+p)/2,v=(f+g)/2,y=p-d,_=g-f,x=y*y+_*_,b=i-o,w=d*g-p*f,S=(_<0?-1:1)*af(sf(0,b*b*x-w*w)),C=(w*_-y*S)/x,M=(-w*y-_*S)/x,D=(w*_+y*S)/x,k=(-w*y+_*S)/x,T=C-m,I=M-v,P=D-m,L=k-v;return T*T+I*I>P*P+L*L&&(C=D,M=k),{cx:C,cy:M,x0:-c,y0:-h,x1:C*(i/b-1),y1:M*(i/b-1)}}var hf=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},df=function(e){function t(t){return e.call(this,t)||this}return xt(t,e),t.prototype.getDefaultShape=function(){return new hf},t.prototype.buildPath=function(e,t){!function(e,t){var n,r=sf(t.r,0),i=sf(t.r0||0,0),o=r>0;if(o||i>0){if(o||(r=i,i=0),i>r){var a=r;r=i,i=a}var s=t.startAngle,l=t.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=t.cx,c=t.cy,h=!!t.clockwise,d=of(l-s),f=d>Jd&&d%Jd;if(f>uf&&(d=f),r>uf)if(d>Jd-uf)e.moveTo(u+r*tf(s),c+r*ef(s)),e.arc(u,c,r,s,l,!h),i>uf&&(e.moveTo(u+i*tf(l),c+i*ef(l)),e.arc(u,c,i,l,s,h));else{var p=void 0,g=void 0,m=void 0,v=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,D=void 0,k=void 0,T=void 0,I=void 0,P=r*tf(s),L=r*ef(s),A=i*tf(l),R=i*ef(l),O=d>uf;if(O){var N=t.cornerRadius;N&&(n=function(e){var t;if(Te(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}(N),p=n[0],g=n[1],m=n[2],v=n[3]);var F=of(r-i)/2;if(y=lf(F,m),_=lf(F,v),x=lf(F,p),b=lf(F,g),C=w=sf(y,_),M=S=sf(x,b),(w>uf||S>uf)&&(D=r*tf(l),k=r*ef(l),T=i*tf(s),I=i*ef(s),d<Qd)){var z=function(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,h=s-o,d=h*l-c*u;if(!(d*d<uf))return[e+(d=(c*(t-o)-h*(e-i))/d)*l,t+d*u]}(P,L,T,I,D,k,A,R);if(z){var E=P-z[0],B=L-z[1],V=D-z[0],H=k-z[1],G=1/ef(nf((E*V+B*H)/(af(E*E+B*B)*af(V*V+H*H)))/2),W=af(z[0]*z[0]+z[1]*z[1]);C=lf(w,(r-W)/(G+1)),M=lf(S,(i-W)/(G-1))}}}if(O)if(C>uf){var Y=lf(m,C),j=lf(v,C),$=cf(T,I,P,L,r,Y,h),U=cf(D,k,A,R,r,j,h);e.moveTo(u+$.cx+$.x0,c+$.cy+$.y0),C<w&&Y===j?e.arc(u+$.cx,c+$.cy,C,rf($.y0,$.x0),rf(U.y0,U.x0),!h):(Y>0&&e.arc(u+$.cx,c+$.cy,Y,rf($.y0,$.x0),rf($.y1,$.x1),!h),e.arc(u,c,r,rf($.cy+$.y1,$.cx+$.x1),rf(U.cy+U.y1,U.cx+U.x1),!h),j>0&&e.arc(u+U.cx,c+U.cy,j,rf(U.y1,U.x1),rf(U.y0,U.x0),!h))}else e.moveTo(u+P,c+L),e.arc(u,c,r,s,l,!h);else e.moveTo(u+P,c+L);i>uf&&O?M>uf?(Y=lf(p,M),$=cf(A,R,D,k,i,-(j=lf(g,M)),h),U=cf(P,L,T,I,i,-Y,h),e.lineTo(u+$.cx+$.x0,c+$.cy+$.y0),M<S&&Y===j?e.arc(u+$.cx,c+$.cy,M,rf($.y0,$.x0),rf(U.y0,U.x0),!h):(j>0&&e.arc(u+$.cx,c+$.cy,j,rf($.y0,$.x0),rf($.y1,$.x1),!h),e.arc(u,c,i,rf($.cy+$.y1,$.cx+$.x1),rf(U.cy+U.y1,U.cx+U.x1),h),Y>0&&e.arc(u+U.cx,c+U.cy,Y,rf(U.y1,U.x1),rf(U.y0,U.x0),!h))):(e.lineTo(u+A,c+R),e.arc(u,c,i,l,s,h)):e.lineTo(u+A,c+R)}else e.moveTo(u,c);e.closePath()}}}(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(zo);df.prototype.type="sector";const ff=df;var pf=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},gf=function(e){function t(t){return e.call(this,t)||this}return xt(t,e),t.prototype.getDefaultShape=function(){return new pf},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(zo);gf.prototype.type="ring";const mf=gf;function vf(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var o=function(e,t,n,r){var i,o,a,s,l=[],u=[],c=[],h=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=e.length;d<f;d++)Wn(a,a,e[d]),Yn(s,s,e[d]);Wn(a,a,r[0]),Yn(s,s,r[1])}for(d=0,f=e.length;d<f;d++){var p=e[d];if(n)i=e[d?d-1:f-1],o=e[(d+1)%f];else{if(0===d||d===f-1){l.push(Nn(e[d]));continue}i=e[d-1],o=e[d+1]}zn(u,o,i),En(u,u,t);var g=Bn(p,i),m=Bn(p,o),v=g+m;0!==v&&(g/=v,m/=v),En(c,u,-g),En(h,u,m);var y=Fn([],p,c),_=Fn([],p,h);r&&(Yn(y,y,a),Wn(y,y,s),Yn(_,_,a),Wn(_,_,s)),l.push(y),l.push(_)}return n&&l.push(l.shift()),l}(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]),s=1;for(var h=i.length;s<h;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var yf=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},_f=function(e){function t(t){return e.call(this,t)||this}return xt(t,e),t.prototype.getDefaultShape=function(){return new yf},t.prototype.buildPath=function(e,t){vf(e,t,!0)},t}(zo);_f.prototype.type="polygon";const xf=_f;var bf=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},wf=function(e){function t(t){return e.call(this,t)||this}return xt(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new bf},t.prototype.buildPath=function(e,t){vf(e,t,!1)},t}(zo);wf.prototype.type="polyline";const Sf=wf;var Cf=[],Mf=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Df(e,t,n){var r=e.cpx2,i=e.cpy2;return null!=r||null!=i?[(n?pr:fr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?pr:fr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?xr:_r)(e.x1,e.cpx1,e.x2,t),(n?xr:_r)(e.y1,e.cpy1,e.y2,t)]}var kf=function(e){function t(t){return e.call(this,t)||this}return xt(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Mf},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2,a=t.cpx1,s=t.cpy1,l=t.cpx2,u=t.cpy2,c=t.percent;0!==c&&(e.moveTo(n,r),null==l||null==u?(c<1&&(wr(n,a,i,c,Cf),a=Cf[1],i=Cf[2],wr(r,s,o,c,Cf),s=Cf[1],o=Cf[2]),e.quadraticCurveTo(a,s,i,o)):(c<1&&(vr(n,a,l,i,c,Cf),a=Cf[1],l=Cf[2],i=Cf[3],vr(r,s,u,o,c,Cf),s=Cf[1],u=Cf[2],o=Cf[3]),e.bezierCurveTo(a,s,l,u,i,o)))},t.prototype.pointAt=function(e){return Df(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Df(this.shape,e,!0);return function(e,t){var n=function(e){return Math.sqrt(function(e){return e[0]*e[0]+e[1]*e[1]}(e))}(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}(t,t)},t}(zo);kf.prototype.type="bezier-curve";const Tf=kf;var If=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Pf=function(e){function t(t){return e.call(this,t)||this}return xt(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new If},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),o=t.startAngle,a=t.endAngle,s=t.clockwise,l=Math.cos(o),u=Math.sin(o);e.moveTo(l*i+n,u*i+r),e.arc(n,r,i,o,a,!s)},t}(zo);Pf.prototype.type="arc";const Lf=Pf;const Af=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return xt(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),zo.prototype.getBoundingRect.call(this)},t}(zo);var Rf=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}();const Of=Rf,Nf=function(e){function t(t,n,r,i,o,a){var s=e.call(this,o)||this;return s.x=null==t?0:t,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return xt(t,e),t}(Of);var Ff=function(e){function t(t,n,r,i,o){var a=e.call(this,i)||this;return a.x=null==t?.5:t,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return xt(t,e),t}(Of);const zf=Ff;var Ef=Math.min,Bf=Math.max,Vf=Math.abs,Hf=[0,0],Gf=[0,0],Wf=tn(),Yf=Wf.minTv,jf=Wf.maxTv,$f=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new zt;for(n=0;n<2;n++)this._axes[n]=new zt;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,o=e.y,a=i+e.width,s=o+e.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),t)for(var l=0;l<4;l++)n[l].transform(t);for(zt.sub(r[0],n[1],n[0]),zt.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize(),l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},e.prototype.intersect=function(e,t,n){var r=!0,i=!t;return t&&zt.set(t,0,0),Wf.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||i||Wf.negativeSize||zt.copy(t,r?Wf.useDir?Wf.dirMinTv:Yf:jf),r},e.prototype._intersectCheckOneSide=function(e,t,n,r){for(var i=!0,o=0;o<2;o++){var a=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,Hf),e._getProjMinMaxOnAxis(o,t._corners,Gf),Wf.negativeSize||Hf[1]<Gf[0]||Hf[0]>Gf[1]){if(i=!1,Wf.negativeSize||n)return i;var s=Vf(Gf[0]-Hf[1]),l=Vf(Hf[0]-Gf[1]);Ef(s,l)>jf.len()&&(s<l?zt.scale(jf,a,-s*r):zt.scale(jf,a,l*r))}else n||(s=Vf(Gf[0]-Hf[1]),l=Vf(Hf[0]-Gf[1]),(Wf.useDir||Ef(s,l)<Yf.len())&&((s<l||!Wf.bidirectional)&&(zt.scale(Yf,a,s*r),Wf.useDir&&Wf.calcDirMTV()),(s>=l||!Wf.bidirectional)&&(zt.scale(Yf,a,-l*r),Wf.useDir&&Wf.calcDirMTV())))}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,o=t[0].dot(r)+i[e],a=o,s=o,l=1;l<t.length;l++){var u=t[l].dot(r)+i[e];a=Ef(u,a),s=Bf(u,s)}n[0]=a+Wf.touchThreshold,n[1]=s-Wf.touchThreshold,Wf.negativeSize=n[1]<n[0]},e}();const Uf=$f;var Xf=[];const qf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return xt(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++)(t=this._displayables[e]).parent=this,t.update(),t.parent=null;for(e=0;e<this._temporaryDisplayables.length;e++){var t;(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new nn(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(Xf)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0;return!1},t}(Ni);var Zf=$a();function Kf(e,t,n,r,i,o,a){var s,l=!1;Ie(i)?(a=o,o=i,i=null):Re(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===e;u||t.stopAnimation("leave");var c=function(e,t,n,r,i){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===e;if(t&&t.isAnimationEnabled()){var l=void 0,u=void 0,c=void 0;return r?(l=Ve(r.duration,200),u=Ve(r.easing,"cubicOut"),c=0):(l=t.getShallow(s?"animationDurationUpdate":"animationDuration"),u=t.getShallow(s?"animationEasingUpdate":"animationEasing"),c=t.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(c=o.delay)),Ie(c)&&(c=c(n,i)),Ie(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}(e,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):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:e,during:a};l?t.animateFrom(n,h):t.animateTo(n,h)}else t.stopAnimation(),!l&&t.attr(n),a&&a(1),o&&o()}function Qf(e,t,n,r,i,o){Kf("update",e,t,n,r,i,o)}function Jf(e,t,n,r,i,o){Kf("enter",e,t,n,r,i,o)}function ep(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if("leave"===e.animators[t].scope)return!0;return!1}function tp(e,t,n,r,i,o){ep(e)||Kf("leave",e,t,n,r,i,o)}function np(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),tp(e,{style:{opacity:0}},t,n,r)}function rp(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||np(e,t,n,r)}):np(e,t,n,r)}var ip={},op=["x","y"],ap=["width","height"];function sp(e){return zo.extend(e)}var lp=function(e,t){var n=$d(e,t);return function(e){function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return xt(t,e),t}(Yd)};function up(e,t){return lp(e,t)}function cp(e,t){ip[e]=t}function hp(e){if(ip.hasOwnProperty(e))return ip[e]}function dp(e,t,n,r){var i=function(e,t){return new Yd($d(e,t))}(e,t);return n&&("center"===r&&(n=pp(n,i.getBoundingRect())),mp(i,n)),i}function fp(e,t,n){var r=new Yo({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var i={width:e.width,height:e.height};r.setStyle(pp(t,i))}}});return r}function pp(e,t){var n,r=t.width/t.height,i=e.height*r;return n=i<=e.width?e.height:(i=e.width)/r,{x:e.x+e.width/2-i/2,y:e.y+e.height/2-n/2,width:i,height:n}}var gp=function(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var o=e[i];n.push(o.getUpdatedPathProxy(!0))}var a=new zo(t);return a.createPathProxy(),a.buildPath=function(e){if(jd(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},a};function mp(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function vp(e,t){return $o(e,e,{lineWidth:t}),e}function yp(e,t){return Uo(e,e,t),e}var _p=Xo;function xp(e,t){for(var n=Pt([]);e&&e!==t;)At(n,e.getLocalTransform(),n),e=e.parent;return n}function bp(e,t,n){return t&&!xe(t)&&(t=er.getLocalTransform(t)),n&&(t=Nt([],t)),Gn([],e,t)}function wp(e,t,n){var r=0===t[4]||0===t[5]||0===t[0]?1:ma(2*t[4]/t[0]),i=0===t[4]||0===t[5]||0===t[2]?1:ma(2*t[4]/t[2]),o=["left"===e?-r:"right"===e?r:0,"top"===e?-i:"bottom"===e?i:0];return o=bp(o,t,n),ma(o[0])>ma(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Sp(e){return!e.isGroup}function Cp(e,t,n){if(e&&t){var r,i=(r={},e.traverse(function(e){Sp(e)&&e.anid&&(r[e.anid]=e)}),r);t.traverse(function(e){if(Sp(e)&&e.anid){var t=i[e.anid];if(t){var r=o(e);e.attr(o(t)),Qf(e,r,n,Ja(e).dataIndex)}}})}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return null!=e.shape}(e)&&(t.shape=pe(e.shape)),t}}function Mp(e,t){return we(e,function(e){var n=e[0];n=ga(n,t.x),n=pa(n,t.x+t.width);var r=e[1];return r=ga(r,t.y),[n,r=pa(r,t.y+t.height)]})}function Dp(e,t){var n=ga(e.x,t.x),r=pa(e.x+e.width,t.x+t.width),i=ga(e.y,t.y),o=pa(e.y+e.height,t.y+t.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function kp(e,t,n){var r=me({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),ve(i,n),new Yo(r)):dp(e.replace("path://",""),r,n,"center")}function Tp(e,t,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(Ip(e,t,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function Ip(e,t,n,r,i,o,a,s){var l,u=n-e,c=r-t,h=a-i,d=s-o,f=Pp(h,d,u,c);if((l=f)<=1e-6&&l>=-1e-6)return!1;var p=e-i,g=t-o,m=Pp(p,g,u,c)/f;if(m<0||m>1)return!1;var v=Pp(p,g,h,d)/f;return!(v<0||v>1)}function Pp(e,t,n,r){return e*r-n*t}function Lp(e,t,n,r,i){return null==t||(Ae(t)?Ap[0]=Ap[1]=Ap[2]=Ap[3]=t:(Ap[0]=t[0],Ap[1]=t[1],Ap[2]=t[2],Ap[3]=t[3]),r&&(Ap[0]=ga(0,Ap[0]),Ap[1]=ga(0,Ap[1]),Ap[2]=ga(0,Ap[2]),Ap[3]=ga(0,Ap[3])),n&&(Ap[0]=-Ap[0],Ap[1]=-Ap[1],Ap[2]=-Ap[2],Ap[3]=-Ap[3]),Rp(e,Ap,"x","width",3,1,i&&i[0]||0),Rp(e,Ap,"y","height",0,2,i&&i[1]||0)),e}var Ap=[0,0,0,0];function Rp(e,t,n,r,i,o,a){var s=t[o]+t[i],l=e[r];e[r]+=s,a=ga(0,pa(a,l)),e[r]<a?(e[r]=a,e[n]+=t[i]>=0?-t[i]:t[o]>=0?l+t[o]:ma(s)>1e-8?(l-a)*t[i]/s:0):e[n]-=t[i]}function Op(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=Pe(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&be(Me(l),function(e){tt(s,e)||(s[e]=l[e],s.$vars.push(e))});var u=Ja(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:ve({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Np(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Fp(e,t){if(e)if(Te(e))for(var n=0;n<e.length;n++)Np(e[n],t);else Np(e,t)}function zp(e){return!e||ma(e[1])<Ep&&ma(e[2])<Ep||ma(e[0])<Ep&&ma(e[3])<Ep}var Ep=1e-5;function Bp(e,t){return e?nn.copy(e,t):t.clone()}function Vp(e,t){return t?Lt(e||[1,0,0,1,0,0],t):void 0}function Hp(e){return{z:e.get("z")||0,zlevel:e.get("zlevel")||0}}function Gp(e){var t=-1/0,n=1/0;function r(e){if(e&&!e.isGroup){var t=e.currentStates;if(t.length)for(var n=0;n<t.length;n++)i(e.states[t[n]]);i(e)}}function i(e){if(e){var r=e.z2;r>t&&(t=r),r<n&&(n=r)}}return Np(e,function(e){r(e),r(e.getTextContent()),r(e.getTextGuideLine())}),n>t&&(n=t=0),{min:n,max:t}}function Wp(e,t,n){Yp(e,t,n,-1/0)}function Yp(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),o=e.getTextGuideLine();if(e.isGroup)for(var a=e.childrenRef(),s=0;s<a.length;s++)r=ga(Yp(a[s],t,n,r),r);else e.z=t,e.zlevel=n,r=ga(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),o){var l=e.textGuideLineConfig;o.z=t,o.zlevel=n,isFinite(r)&&(o.z2=r+(l&&l.showAbove?1:-1))}return r}cp("circle",Id),cp("ellipse",Kd),cp("sector",ff),cp("ring",mf),cp("polygon",xf),cp("polyline",Sf),cp("rect",Qo),cp("line",Dd),cp("bezierCurve",Tf),cp("arc",Lf);var jp=zo.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r+o),e.lineTo(n-i,r+o),e.closePath()}}),$p=zo.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r),e.lineTo(n,r+o),e.lineTo(n-i,r),e.closePath()}}),Up=zo.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,o=Math.max(i,t.height),a=i/2,s=a*a/(o-a),l=r-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;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-h*f,l+s+d*f,n,r-p,n,r),e.bezierCurveTo(n,r-p,n-c+h*f,l+s+d*f,n-c,l+s),e.closePath()}}),Xp=zo.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,o=t.y,a=r/3*2;e.moveTo(i,o),e.lineTo(i+a,o+n),e.lineTo(i,o+n/4*3),e.lineTo(i-a,o+n),e.lineTo(i,o),e.closePath()}}),qp={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var o=Math.min(n,r);i.x=e,i.y=t,i.width=o,i.height=o},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},Zp={};be({line:Dd,rect:Qo,roundRect:Qo,square:Qo,circle:Id,diamond:$p,pin:Up,arrow:Xp,triangle:jp},function(e,t){Zp[t]=new e});var Kp=zo.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=gn(e,t,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===t.position&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var i=Zp[r];i||(i=Zp[r="rect"]),qp[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function Qp(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||Zh.color.neutral00,n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function Jp(e,t,n,r,i,o,a){var s,l=0===e.indexOf("empty");return l&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(s=0===e.indexOf("image://")?fp(e.slice(8),new nn(t,n,r,i),a?"center":"cover"):0===e.indexOf("path://")?dp(e.slice(7),{},new nn(t,n,r,i),a?"center":"cover"):new Kp({shape:{symbolType:e,x:t,y:n,width:r,height:i}})).__isEmptyBrush=l,s.setColor=Qp,o&&s.setColor(o),s}function eg(e,t){if(null!=e)return Te(e)||(e=[e,e]),[ya(e[0],t[0])||0,ya(Ve(e[1],e[0]),t[1])||0]}const tg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return X(t,e),t.prototype.getInitialData=function(e){return lc(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new Xd,n=Jp("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*e.itemHeight,s=Jp(o,(e.itemWidth-a)/2,(e.itemHeight-a)/2,a,a,e.itemStyle.fill);t.add(s),s.setStyle(e.itemStyle);var l="inherit"===e.iconRotate?i:e.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill=Zh.color.neutral00,s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.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},t}(wd);function ng(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=du(e,t,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push(du(e,t,n[a]));return o.join(" ")}}var rg=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.updateData(t,n,r,i),o}return X(t,e),t.prototype._createSymbol=function(e,t,n,r,i,o){this.removeAll();var a=Jp(e,-1,-1,2,2,null,o);a.attr({z2:Ve(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),a.drift=ig,this._symbolType=e,this.add(a)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){ks(this.childAt(0))},t.prototype.downplay=function(){Ts(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var o,a=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=t.getSymbolZ2(e,n),c=a!==this._symbolType,h=i&&i.disableAnimation;if(c){var d=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,e,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):Qf(p,f,s,n),Zf(o=p).oldStyle=o.style}if(this._updateCommon(e,n,l,r,i),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,Jf(p,f,s,n))}h&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,r,i){var o,a,s,l,u,c,h,d,f,p=this.childAt(0),g=e.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,h=r.labelStatesModels,d=r.hoverScale,f=r.cursorStyle,c=r.emphasisDisabled),!r||e.hasItemOption){var m=r&&r.itemModel?r.itemModel:e.getItemModel(t),v=m.getModel("emphasis");o=v.getModel("itemStyle").getItemStyle(),s=m.getModel(["select","itemStyle"]).getItemStyle(),a=m.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),u=v.get("blurScope"),c=v.get("disabled"),h=Zs(m),d=v.getShallow("scale"),f=m.getShallow("cursor")}var y=e.getItemVisual(t,"symbolRotate");p.attr("rotation",(y||0)*Math.PI/180||0);var _=eg(e.getItemVisual(t,"symbolOffset"),n);_&&(p.x=_[0],p.y=_[1]),f&&p.attr("cursor",f);var x=e.getItemVisual(t,"style"),b=x.fill;if(p instanceof Yo){var w=p.style;p.useStyle(me({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},x))}else p.__isEmptyBrush?p.useStyle(me({},x)):p.useStyle(x),p.style.decal=null,p.setColor(b,i&&i.symbolInnerColor),p.style.strokeNoScale=!0;var S=e.getItemVisual(t,"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=i&&i.useNameLabel;qs(p,h,{labelFetcher:g,labelDataIndex:t,defaultText:function(t){return M?e.getName(t):ng(e,t)},inheritColor:b,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=p.ensureState("emphasis");D.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;D.scaleX=this._sizeX*k,D.scaleY=this._sizeY*k,this.setSymbolScale(1),Bs(this,l,u,c)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=Ja(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&tp(a,{style:{opacity:0}},t,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();tp(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return Te(n=e.getItemVisual(t,"symbolSize"))||(n=[+n,+n]),[n[0]||0,n[1]||0];var n},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,"z2")},t}(Xd);function ig(e,t){this.parent.drift(e,t)}const og=rg;function ag(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function sg(e){return null==e||Re(e)||(e={isIgnore:e}),e||{}}function lg(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Zs(t),cursorStyle:t.get("cursor")}}var ug=function(){function e(e){this.group=new Xd,this._SymbolCtor=e||og}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=sg(t);var n=this.group,r=e.hostModel,i=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=lg(e),l={disableAnimation:a},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=u(r);if(ag(e,i,r,t)){var a=new o(e,r,s,l);a.setPosition(i),e.setItemGraphicEl(r,a),n.add(a)}}).update(function(c,h){var d=i.getItemGraphicEl(h),f=u(c);if(ag(e,f,c,t)){var p=e.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==p)n.remove(d),(d=new o(e,c,s,l)).setPosition(f);else{d.updateData(e,c,s,l);var m={x:f[0],y:f[1]};a?d.attr(m):Qf(d,m,r)}n.add(d),e.setItemGraphicEl(c,d)}else n.remove(d)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=lg(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function r(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=sg(n);for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(ag(t,o,i,n)){var a=new this._SymbolCtor(t,i,this._seriesScope);a.traverse(r),a.setPosition(o),this.group.add(a),t.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},e.prototype.eachRendered=function(e){Fp(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}();const cg=ug;function hg(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),o=function(e,t){var n=0,r=e.scale.getExtent();return"start"===t?n=r[0]:"end"===t?n=r[1]:Ae(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}(i,n),a=r.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(a),c="x"===s||"radius"===s?1:0,h=we(e.dimensions,function(e){return t.mapDimension(e)}),d=!1,f=t.getCalculationInfo("stackResultDimension");return sc(t,h[0])&&(d=!0,h[0]=f),sc(t,h[1])&&(d=!0,h[1]=f),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function dg(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,r),a[1-o]=i,t.dataToPoint(a)}var fg="undefined"!=typeof Float32Array,pg=fg?Float32Array:Array;function gg(e){return Te(e)?fg?new Float32Array(e):e:new pg(e)}var mg=Math.min,vg=Math.max;function yg(e,t){return isNaN(e)||isNaN(t)}function _g(e,t,n,r,i,o,a,s,l){for(var u,c,h,d,f,p,g=n,m=0;m<r;m++){var v=t[2*g],y=t[2*g+1];if(g>=i||g<0)break;if(yg(v,y)){if(l){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](v,y),h=v,d=y;else{var _=v-u,x=y-c;if(_*_+x*x<.5){g+=o;continue}if(a>0){for(var b=g+o,w=t[2*b],S=t[2*b+1];w===v&&S===y&&m<r;)m++,g+=o,w=t[2*(b+=o)],S=t[2*b+1],_=(v=t[2*g])-u,x=(y=t[2*g+1])-c;var C=m+1;if(l)for(;yg(w,S)&&C<r;)C++,w=t[2*(b+=o)],S=t[2*b+1];var M=.5,D=0,k=0,T=void 0,I=void 0;if(C>=r||yg(w,S))f=v,p=y;else{D=w-u,k=S-c;var P=v-u,L=w-v,A=y-c,R=S-y,O=void 0,N=void 0;if("x"===s){var F=D>0?1:-1;f=v-F*(O=Math.abs(P))*a,p=y,T=v+F*(N=Math.abs(L))*a,I=y}else if("y"===s){var z=k>0?1:-1;f=v,p=y-z*(O=Math.abs(A))*a,T=v,I=y+z*(N=Math.abs(R))*a}else O=Math.sqrt(P*P+A*A),f=v-D*a*(1-(M=(N=Math.sqrt(L*L+R*R))/(N+O))),p=y-k*a*(1-M),I=y+k*a*M,T=mg(T=v+D*a*M,vg(w,v)),I=mg(I,vg(S,y)),T=vg(T,mg(w,v)),p=y-(k=(I=vg(I,mg(S,y)))-y)*O/N,f=mg(f=v-(D=T-v)*O/N,vg(u,v)),p=mg(p,vg(c,y)),T=v+(D=v-(f=vg(f,mg(u,v))))*N/O,I=y+(k=y-(p=vg(p,mg(c,y))))*N/O}e.bezierCurveTo(h,d,f,p,v,y),h=T,d=I}else e.lineTo(v,y)}u=v,c=y,g+=o}return m}var xg=function(){this.smooth=0,this.smoothConstraint=!0},bg=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return X(t,e),t.prototype.getDefaultStyle=function(){return{stroke:Zh.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new xg},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&yg(n[2*i-2],n[2*i-1]);i--);for(;r<i&&yg(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=_g(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path.data,o=go.CMD,a="x"===t,s=[],l=0;l<i.length;){var u=void 0,c=void 0,h=void 0,d=void 0,f=void 0,p=void 0,g=void 0;switch(i[l++]){case o.M:n=i[l++],r=i[l++];break;case o.L:if(u=i[l++],c=i[l++],(g=a?(e-n)/(u-n):(e-r)/(c-r))<=1&&g>=0){var m=a?(c-r)*g+r:(u-n)*g+n;return a?[e,m]:[m,e]}n=u,r=c;break;case o.C:u=i[l++],c=i[l++],h=i[l++],d=i[l++],f=i[l++],p=i[l++];var v=a?gr(n,u,h,f,e,s):gr(r,c,d,p,e,s);if(v>0)for(var y=0;y<v;y++){var _=s[y];if(_<=1&&_>=0)return m=a?fr(r,c,d,p,_):fr(n,u,h,f,_),a?[e,m]:[m,e]}n=f,r=p}}},t}(zo),wg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return X(t,e),t}(xg),Sg=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return X(t,e),t.prototype.getDefaultShape=function(){return new wg},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0&&yg(n[2*o-2],n[2*o-1]);o--);for(;i<o&&yg(n[2*i],n[2*i+1]);i++);}for(;i<o;){var s=_g(e,n,i,o,o,1,t.smooth,a,t.connectNulls);_g(e,r,i+s-1,s,o,-1,t.stackedOnSmooth,a,t.connectNulls),i+=s+1,e.closePath()}},t}(zo);function Cg(){var e=$a();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var Mg=$a(),Dg=Cg(),kg=function(){function e(){this.group=new Xd,this.uid=cc("viewChart"),this.renderTask=Ah({plan:Pg,reset:Lg}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&Ig(i,r,"emphasis")},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&Ig(i,r,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Fp(this.group,e)},e.markUpdateMethod=function(e,t){Mg(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function Tg(e,t,n){e&&Ys(e)&&("emphasis"===t?ks:Ts)(e,n)}function Ig(e,t,n){var r=ja(e,t),i=t&&null!=t.highlightKey?function(e){var t=ts[e];return null==t&&es<=32&&(t=ts[e]=es++),t}(t.highlightKey):null;null!=r?be(Na(r),function(t){Tg(e.getItemGraphicEl(t),n,i)}):e.eachItemGraphicEl(function(e){Tg(e,n,i)})}function Pg(e){return Dg(e.model)}function Lg(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=i&&Mg(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](t,n,r,i),Ag[l]}ct(kg),gt(kg);var Ag={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Rg=kg;function Og(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function Ng(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function Fg(e,t){var n=Ng(e),r=n[0],i=n[1],o=Ng(t),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function zg(e){return Ae(e)?e:e?.5:0}function Eg(e,t,n,r,i){var o=n.getBaseAxis(),a="x"===o.dim||"radius"===o.dim?0:1,s=[],l=0,u=[],c=[],h=[],d=[];if(i){for(l=0;l<e.length;l+=2){var f=t||e;isNaN(f[l])||isNaN(f[l+1])||d.push(e[l],e[l+1])}e=d}for(l=0;l<e.length-2;l+=2)switch(h[0]=e[l+2],h[1]=e[l+3],c[0]=e[l],c[1]=e[l+1],s.push(c[0],c[1]),r){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(e[l++],e[l++]),s}function Bg(e,t){return isNaN(e)||isNaN(t)}function Vg(e,t){return[e[2*t],e[2*t+1]]}function Hg(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<is.length;t++)if(e.get([is[t],"endLabel","show"]))return!0;return!1}function Gg(e,t,n,r){if(function(e){return"cartesian2d"===e.type}(t)){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=Hg(r)?function(n,r){e._endLabelOnDuring(n,r,a,s,o,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=function(e,t,n,r,i){var o=e.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 Qo({shape:{x:a,y:s,width:l,height:u}});if(t){var d=e.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=Ie(i)?function(e){i(e,h)}:null;Jf(h,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return h}(t,n,r,function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})},l);if(!r.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(e,t,n){var r=e.getArea(),i=xa(r.r0,1),o=xa(r.r,1),a=new ff({shape:{cx:xa(e.cx,1),cy:xa(e.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&("angle"===e.getBaseAxis().dim?a.shape.endAngle=r.startAngle:a.shape.r=i,Jf(a,{shape:{endAngle:r.endAngle,r:o}},n)),a}(t,n,r)}var Wg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return X(t,e),t.prototype.init=function(){var e=new Xd,t=new cg;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=De(this._changePolyState,this)},t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,o=e.getData(),a=e.getModel("lineStyle"),s=e.getModel("areaStyle"),l=o.getLayout("points")||[],u="polar"===r.type,c=this._coordSys,h=this._symbolDraw,d=this._polyline,f=this._polygon,p=this._lineGroup,g=!t.ssr&&e.get("animation"),m=!s.isEmpty(),v=s.get("origin"),y=hg(r,o,v),_=m&&function(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=gg(2*r),o=0;o<r;o++){var a=dg(n,e,t,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}(r,o,y),x=e.get("showSymbol"),b=e.get("connectNulls"),w=x&&!u&&function(e,t,n){var r=e.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!function(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*og.getSymbolSize(t,a)[e.isHorizontal()?1:0]>r)return!1;return!0}(o,t))){var a=t.mapDimension(o.dim),s={};return be(o.getViewLabels(),function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);s[t]=1}),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}(e,o,r),S=this._data;S&&S.eachItemGraphicEl(function(e,t){e.__temp&&(i.remove(e),S.setItemGraphicEl(t,null))}),x||h.remove(),i.add(p);var C,M=!u&&e.get("step");r&&r.getArea&&e.get("clip",!0)&&(null!=(C=r.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 D=function(e,t,n){var r=e.getVisual("visualMeta");if(r&&r.length&&e.count()&&"cartesian2d"===t.type){for(var i,o,a=r.length-1;a>=0;a--){var s=e.getDimensionInfo(r[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){o=r[a];break}}if(o){var l=t.getAxis(i),u=we(o.stops,function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}}),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=function(e,t){var n,r,i=[],o=e.length;function a(e,t,n){var r=e.coord;return{coord:n,color:Gr((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<o;s++){var l=e[s],u=l.coord;if(u<0)n=l;else{if(u>t){r?i.push(a(r,l,t)):n&&i.push(a(n,l,0),a(n,l,t));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}(u,"x"===i?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,m=g-p;if(m<.001)return"transparent";be(d,function(e){e.offset=(e.coord-p)/m}),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 v=new Nf(0,0,0,0,d,!0);return v[i]=p,v[i+"2"]=g,v}}}(o,r,n)||o.getVisual("style")[o.getVisual("drawType")];if(d&&c.type===r.type&&M===this._step){m&&!f?f=this._newPolygon(l,_):f&&!m&&(p.remove(f),f=this._polygon=null),u||this._initOrUpdateEndLabel(e,r,hh(D));var k=p.getClipPath();k?Jf(k,{shape:Gg(this,r,!1,e).shape},e):p.setClipPath(Gg(this,r,!0,e)),x&&h.updateData(o,{isIgnore:w,clipShape:C,disableAnimation:!0,getSymbolPoint:function(e){return[l[2*e],l[2*e+1]]}}),Og(this._stackedOnPoints,_)&&Og(this._points,l)||(g?this._doUpdateAnimation(o,_,r,n,M,v,b):(M&&(_&&(_=Eg(_,l,r,M,b)),l=Eg(l,null,r,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(e){return[l[2*e],l[2*e+1]]}}),g&&this._initSymbolLabelAnimation(o,r,C),M&&(_&&(_=Eg(_,l,r,M,b)),l=Eg(l,null,r,M,b)),d=this._newPolyline(l),m?f=this._newPolygon(l,_):f&&(p.remove(f),f=this._polygon=null),u||this._initOrUpdateEndLabel(e,r,hh(D)),p.setClipPath(Gg(this,r,!0,e));var T=e.getModel("emphasis"),I=T.get("focus"),P=T.get("blurScope"),L=T.get("disabled");d.useStyle(ve(a.getLineStyle(),{fill:"none",stroke:D,lineJoin:"bevel"})),Gs(d,e,"lineStyle"),d.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1),Ja(d).seriesIndex=e.seriesIndex,Bs(d,I,P,L);var A=zg(e.get("smooth")),R=e.get("smoothMonotone");if(d.setShape({smooth:A,smoothMonotone:R,connectNulls:b}),f){var O=o.getCalculationInfo("stackedOnSeries"),N=0;f.useStyle(ve(s.getAreaStyle(),{fill:D,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),O&&(N=zg(O.get("smooth"))),f.setShape({smooth:A,stackedOnSmooth:N,smoothMonotone:R,connectNulls:b}),Gs(f,e,"areaStyle"),Ja(f).seriesIndex=e.seriesIndex,Bs(f,I,P,L)}var F=this._changePolyState;o.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=F)}),this._polyline.onHoverStateChange=F,this._data=o,this._coordSys=r,this._stackedOnPoints=_,this._points=l,this._step=M,this._valueOrigin=v,e.get("triggerLineEvent")&&(this.packEventData(e,d),f&&this.packEventData(e,f))},t.prototype.packEventData=function(e,t){Ja(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),o=ja(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.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=e.get("zlevel")||0,h=e.get("z")||0;(s=new og(i,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,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Rg.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),o=ja(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else Rg.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;ws(this._polyline,e),t&&ws(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new bg({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Sg({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(r=o.isHorizontal(),i=!1):"polar"===t.type&&(r="angle"===o.dim,i=!0);var s=e.hostModel,l=s.get("animationDuration");Ie(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=Ie(u)?u(null):u;e.eachItemGraphicEl(function(e,o){var s=e;if(s){var h=[e.x,e.y],d=void 0,f=void 0,p=void 0;if(n)if(i){var g=n,m=t.pointToCoord(h);r?(d=g.startAngle,f=g.endAngle,p=-m[1]/180*Math.PI):(d=g.r0,f=g.r,p=m[0])}else{var v=n;r?(d=v.x,f=v.x+v.width,p=e.x):(d=v.y+v.height,f=v.y,p=e.y)}var y=f===d?0:(p-d)/(f-d);a&&(y=1-y);var _=Ie(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}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel("endLabel");if(Hg(e)){var i=e.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new fa({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(e){for(var t=e.length/2;t>0&&Bg(e[2*t-2],e[2*t-1]);t--);return t-1}(a);l>=0&&(qs(o,Zs(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?function(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!Te(t))return t+"";for(var r=[],i=0;i<n.length;i++){var o=e.getDimensionIndex(n[i]);o>=0&&r.push(t[o])}return r.join(" ")}(i,n):ng(i,e)},enableTextSetter:!0},function(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}(r,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==r.originalX&&(r.originalX=s.x,r.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(),m=p.inverse,v=t.shape,y=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,_=(g?f:0)*(m?-1:1),x=(g?0:-f)*(m?-1:1),b=g?"x":"y",w=function(e,t,n){for(var r,i,o=e.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(i=e[2*u+a],!isNaN(i)&&!isNaN(e[2*u+1-a]))if(0!==u){if(r<=t&&i>=t||r>=t&&i<=t){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(t-r)/(i-r)}}(u,y,b),S=w.range,C=S[1]-S[0],M=void 0;if(C>=1){if(C>1&&!h){var D=Vg(u,S[0]);s.attr({x:D[0]+_,y:D[1]+x}),i&&(M=c.getRawValue(S[0]))}else{(D=l.getPointOn(y,b))&&s.attr({x:D[0]+_,y:D[1]+x});var k=c.getRawValue(S[0]),T=c.getRawValue(S[1]);i&&(M=function(e,t,n,r,i){var o=null==t||"auto"===t;if(null==r)return r;if(Ae(r))return xa(p=Ra(n||0,r,i),o?Math.max(ba(n||0),ba(r)):t);if(Pe(r))return i<1?n:r;for(var a=[],s=n,l=r,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var h=e.getDimensionInfo(c);if(h&&"ordinal"===h.type)a[c]=(i<1&&s?s:l)[c];else{var d=s&&s[c]?s[c]:0,f=l[c],p=Ra(d,f,i);a[c]=xa(p,o?Math.max(ba(d),ba(f)):t)}}return a}(n,d,k,T,w.t))}r.lastFrameIndex=S[0]}else{var I=1===e||r.lastFrameIndex>0?S[0]:0;D=Vg(u,I),i&&(M=c.getRawValue(I)),s.attr({x:D[0]+_,y:D[1]+x})}if(i){var P=rl(s);"function"==typeof P.setLabelText&&P.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=e.hostModel,c=function(e,t,n,r,i,o,a){for(var s=function(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:"+",idx:e})}).update(function(e,t){n.push({cmd:"=",idx:t,idx1:e})}).remove(function(e){n.push({cmd:"-",idx:e})}).execute(),n}(e,t),l=[],u=[],c=[],h=[],d=[],f=[],p=[],g=hg(i,t,a),m=e.getLayout("points")||[],v=t.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=m[b],C=m[b+1],M=v[w],D=v[w+1];(isNaN(S)||isNaN(C))&&(S=M,C=D),l.push(S,C),u.push(M,D),c.push(n[b],n[b+1]),h.push(r[w],r[w+1]),p.push(t.getRawIndex(_.idx1));break;case"+":var k=_.idx,T=g.dataDimsForPoint,I=i.dataToPoint([t.get(T[0],k),t.get(T[1],k)]);w=2*k,l.push(I[0],I[1]),u.push(v[w],v[w+1]);var P=dg(g,i,t,k);c.push(P[0],P[1]),h.push(r[w],r[w+1]),p.push(t.getRawIndex(k));break;case"-":x=!1}x&&(d.push(_),f.push(f.length))}f.sort(function(e,t){return p[e]-p[t]});var L=l.length,A=gg(L),R=gg(L),O=gg(L),N=gg(L),F=[];for(y=0;y<f.length;y++){var z=f[y],E=2*y,B=2*z;A[E]=l[B],A[E+1]=l[B+1],R[E]=u[B],R[E+1]=u[B+1],O[E]=c[B],O[E+1]=c[B+1],N[E]=h[B],N[E+1]=h[B+1],F[y]=d[z]}return{current:A,next:R,stackedOnCurrent:O,stackedOnNext:N,status:F}}(this._data,e,this._stackedOnPoints,t,this._coordSys,0,this._valueOrigin),h=c.current,d=c.stackedOnCurrent,f=c.next,p=c.stackedOnNext;if(i&&(d=Eg(c.stackedOnCurrent,c.current,n,i,a),h=Eg(c.current,null,n,i,a),p=Eg(c.stackedOnNext,c.next,n,i,a),f=Eg(c.next,null,n,i,a)),Fg(h,f)>3e3||l&&Fg(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(),Qf(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),Qf(l,{shape:{stackedOnPoints:p}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],v=c.status,y=0;y<v.length;y++)if("="===v[y].cmd){var _=e.getItemGraphicEl(v[y].idx1);_&&m.push({el:_,ptIdx:y})}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var e=s.shape.__points,t=0;t<m.length;t++){var n=m[t].el,r=2*m[t].ptIdx;n.x=e[r],n.y=e[r+1],n.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Rg);const Yg=Wg;var jg={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},$g=function(e){return Math.round(e.length/2)},Ug=function(){function e(){this.group=new Xd,this.uid=cc("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();ct(Ug),gt(Ug);const Xg=Ug;var qg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return X(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:Zh.size.m,backgroundColor:Zh.color.transparent,borderColor:Zh.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:Zh.color.primary},subtextStyle:{fontSize:12,color:Zh.color.quaternary}},t}(Dh),Zg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return X(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,i=e.getModel("textStyle"),o=e.getModel("subtextStyle"),a=e.get("textAlign"),s=Ve(e.get("textBaseline"),e.get("textVerticalAlign")),l=new fa({style:Ks(i,{text:e.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=e.get("subtext"),h=new fa({style:Ks(o,{text:c,fill:o.getTextColor(),y:u.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),f=e.get("sublink"),p=e.get("triggerEvent",!0);l.silent=!d&&!p,h.silent=!f&&!p,d&&l.on("click",function(){dh(d,"_"+e.get("target"))}),f&&h.on("click",function(){dh(f,"_"+e.get("subtarget"))}),Ja(l).eventData=Ja(h).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(l),c&&r.add(h);var g=r.getBoundingRect(),m=e.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=vh(m,xh(e,n).refContainer,e.get("padding"));a||("middle"===(a=e.get("left")||e.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=e.get("top")||e.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),r.x=v.x,r.y=v.y,r.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),h.setStyle(y),g=r.getBoundingRect();var _=v.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var b=new Qo({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});r.add(b)}},t.type="title",t}(Xg),Kg={left:0,right:0,top:0,bottom:0},Qg=["25%","25%"];const Jg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return X(t,e),t.prototype.mergeDefaultAndTheme=function(t,n){var r=Sh(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&wh(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&wh(this.option.outerBounds,t.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:Kg,outerBoundsContain:"all",outerBoundsClampWidth:Qg[0],outerBoundsClampHeight:Qg[1],backgroundColor:Zh.color.transparent,borderWidth:1,borderColor:Zh.color.neutral30},t}(Dh);var em=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),tm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return X(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Za).models[0]},t.type="cartesian2dAxis",t}(Dh);_e(tm,em);var nm={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:Zh.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:Zh.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Zh.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[Zh.color.backgroundTint,Zh.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Zh.color.neutral00,borderColor:Zh.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},rm=ge({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},nm),im=ge({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Zh.color.axisMinorSplitLine,width:1}}},nm);const om={category:rm,value:im,time:ge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},im),log:ve({logBase:10},im)};var am=0;function sm(e){return Re(e)&&null!=e.value?e.value:e+""}const lm=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++am,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&we(r,sm);return new e({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!Pe(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var r=this._getOrCreateMap();return null==(t=r.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Qe(this.categories))},e}();var um={value:1,category:1,time:1,log:1};function cm(e,t,n,r){be(um,function(i,o){var a=ge(ge({},om[o],!0),r,!0),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+o,n}return X(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=bh(this),r=n?Sh(e):{};ge(e,t.getTheme().get(o+"Axis")),ge(e,this.getDefaultOption()),e.type=hm(e),n&&wh(e,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=lm.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=null;return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+"Axis."+o,n.defaultOption=a,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",hm)}function hm(e){return e.type||(e.data?"category":"value")}function dm(e){return"interval"===e.type||"log"===e.type}function fm(e){var t=Math.pow(10,ka(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,xa(n*t)}function pm(e){return ba(e)+2}function gm(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function mm(e,t){return e>=t[0]&&e<=t[1]}var vm=function(){function e(){this.normalize=ym,this.scale=_m}return e.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=De(e.normalize,e),this.scale=De(e.scale,e)):(this.normalize=ym,this.scale=_m)},e}();function ym(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function _m(e,t){return e*(t[1]-t[0])+t[0]}function xm(e,t,n){var r=Math.log(e);return[Math.log(n?t[0]:Math.max(0,t[0]))/r,Math.log(n?t[1]:Math.max(0,t[1]))/r]}var bm=function(){function e(e){this._calculator=new vm,this._setting=e||{},this._extent=[1/0,-1/0];var t=null;t&&(this._brkCtx=t.createScaleBreakContext(),this._brkCtx.update(this._extent))}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype._innerUnionExtent=function(e){var t=this._extent;this._innerSetExtent(e[0]<t[0]?e[0]:t[0],e[1]>t[1]?e[1]:t[1])},e.prototype.unionExtentFromData=function(e,t){this._innerUnionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){this._innerSetExtent(e,t)},e.prototype._innerSetExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t),this._brkCtx&&this._brkCtx.update(n)},e.prototype.setBreaksFromOption=function(e){var t=null;t&&this._innerSetBreak(t.parseAxisBreakOption(e,De(this.parse,this)))},e.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},e.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.hasBreaks=function(){return!!this._brkCtx&&this._brkCtx.hasBreaks()},e.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();gt(bm);const wm=bm;var Sm=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new lm({})),Te(r)&&(r=new lm({categories:we(r,function(e){return Re(e)?e.value:e})})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return X(t,e),t.prototype.parse=function(e){return null==e?NaN:Pe(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return mm(e,this._extent)&&e>=0&&e<this._ordinalMeta.categories.length},t.prototype.normalize=function(e){return e=this._getTickNumber(e),this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(this._calculator.scale(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);i<a;++i){var s=t[i];n[i]=s,r[s]=i}for(var l=0;i<o;++i){for(;null!=r[l];)l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(wm);wm.registerClass(Sm);const Cm=Sm;var Mm=xa,Dm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return X(t,e),t.prototype.parse=function(e){return null==e||""===e?NaN:Number(e)},t.prototype.contain=function(e){return mm(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=pm(e)},t.prototype.getTicks=function(e){e=e||{};var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=null,a=[];if(!t)return a;if("only_break"===e.breakTicks&&o)return o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent),a;n[0]<r[0]&&(e.expandToNicedExtent?a.push({value:Mm(r[0]-t,i)}):a.push({value:n[0]}));for(var s=function(e,n){return Math.round((n-e)/t)},l=r[0];l<=r[1];){if(a.push({value:l}),l=Mm(l+t,i),this._brkCtx){var u=this._brkCtx.calcNiceTickMultiple(l,s);u>=0&&(l=Mm(l+u*t,i))}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:r[1];return n[1]>c&&(e.expandToNicedExtent?a.push({value:Mm(c+t,i)}):a.push({value:n[1]})),o&&o.pruneTicksByBreak(e.pruneByBreak,a,this._brkCtx.breaks,function(e){return e.value},this._interval,this._extent),"none"!==e.breakTicks&&o&&o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent),a},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks({expandToNicedExtent:!0}),n=[],r=this.getExtent(),i=1;i<t.length;i++){var o=t[i],a=t[i-1];if(!a.break&&!o.break){for(var s=0,l=[],u=(o.value-a.value)/e,c=pm(u);s<e-1;){var h=Mm(a.value+(s+1)*u,c);h>r[0]&&h<r[1]&&l.push(h),s++}var d=Tc();d&&d.pruneTicksByBreak("auto",l,this._getNonTransBreaks(),function(e){return e},this._interval,r),n.push(l)}}return n},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;return null==n?n=ba(e.value)||0:"auto"===n&&(n=this._intervalPrecision),ih(Mm(e.value,n,!0))},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var r=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(isFinite(i)){i<0&&(i=-i,r.reverse(),this._innerSetExtent(r[0],r[1]),r=this._extent.slice());var o=function(e,t,n,r,i){var o={},a=o.interval=Ta(t/n,!0);null!=r&&a<r&&(a=o.interval=r),null!=i&&a>i&&(a=o.interval=i);var s=o.intervalPrecision=pm(a);return function(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),gm(e,0,t),gm(e,1,t),e[0]>e[1]&&(e[0]=e[1])}(o.niceTickExtent=[xa(Math.ceil(e[0]/a)*a,s),xa(Math.floor(e[1]/a)*a,s)],e),o}(r,i,e,t,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent.slice();if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this._innerSetExtent(t[0],t[1]),t=this._extent.slice(),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval,o=this._intervalPrecision;e.fixMin||(t[0]=Mm(Math.floor(t[0]/i)*i,o)),e.fixMax||(t[1]=Mm(Math.ceil(t[1]/i)*i,o)),this._innerSetExtent(t[0],t[1])},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(wm);wm.registerClass(Dm);const km=Dm;function Tm(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function Im(e){return e.dim+e.index}function Pm(e){var t=function(e){var t={};be(e,function(e){var n=e.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=e.getData(),i=n.dim+"_"+n.index,o=r.getDimensionIndex(r.mapDimension(n.dim)),a=r.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);t[i]?t[i].push(u):t[i]=[u]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort(function(e,t){return e-t});for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}(e),n=[];return be(e,function(e){var r,i=e.coordinateSystem.getBaseAxis(),o=i.getExtent();if("category"===i.type)r=i.getBandWidth();else if("value"===i.type||"time"===i.type){var a=i.dim+"_"+i.index,s=t[a],l=Math.abs(o[1]-o[0]),u=i.scale.getExtent(),c=Math.abs(u[1]-u[0]);r=s?l/c*s:l}else{var h=e.getData();r=Math.abs(o[1]-o[0])/h.count()}var d=ya(e.get("barWidth"),r),f=ya(e.get("barMaxWidth"),r),p=ya(e.get("barMinWidth")||(function(e){return e.pipelineContext&&e.pipelineContext.large}(e)?.5:1),r),g=e.get("barGap"),m=e.get("barCategoryGap"),v=e.get("defaultBarGap");n.push({bandWidth:r,barWidth:d,barMaxWidth:f,barMinWidth:p,barGap:g,barCategoryGap:m,defaultBarGap:v,axisKey:Im(i),stackId:Tm(e)})}),function(e){var t={};be(e,function(e,n){var r=e.axisKey,i=e.bandWidth,o=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:e.defaultBarGap||0,stacks:{}},a=o.stacks;t[r]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=e.barMaxWidth;u&&(a[s].maxWidth=u);var c=e.barMinWidth;c&&(a[s].minWidth=c);var h=e.barGap;null!=h&&(o.gap=h);var d=e.barCategoryGap;null!=d&&(o.categoryGap=d)});var n={};return be(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,o=e.categoryGap;if(null==o){var a=Me(r).length;o=Math.max(35-4*a,15)+"%"}var s=ya(o,i),l=ya(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),be(r,function(e){var t=e.maxWidth,n=e.minWidth;if(e.width)r=e.width,t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,u-=r+l*r,c--;else{var r=h;t&&t<r&&(r=Math.min(t,u)),n&&n>r&&(r=n),r!==h&&(e.width=r,u-=r+l*r,c--)}}),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,f=0;be(r,function(e,t){e.width||(e.width=h),d=e,f+=e.width*(1+l)}),d&&(f-=d.width*l);var p=-f/2;be(r,function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:p,width:e.width},p+=e.width*(1+l)})}),n}(n)}var Lm=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return X(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return Hc(e.value,Nc[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Bc(this._minLevelUnit))]||Nc.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC");return function(e,t,n,r,i){var o=null;if(Pe(n))o=n;else if(Ie(n)){var a={time:e.time,level:e.time.level},s=null;s&&s.makeAxisLabelFormatterParamBreak(a,e.break),o=n(e.value,t,a)}else{var l=e.time;if(l){var u=n[l.lowerTimeUnit][l.upperTimeUnit];o=u[Math.min(l.level,u.length-1)]||""}else{var c=Gc(e.value,i);o=n[c][c][0]}}return Hc(new Date(e.value),o,i,r)}(e,t,n,this.getSetting("locale"),r)},t.prototype.getTicks=function(e){e=e||{};var t=this._interval,n=this._extent,r=null,i=[];if(!t)return i;var o=this.getSetting("useUTC");var a=Gc(n[1],o);i.push({value:n[0],time:{level:0,upperTimeUnit:a,lowerTimeUnit:a}});var s=function(e,t,n,r,i,o){var a=zc,s=0;function l(e,t,n,i,a,l,u){for(var c=function(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}(a,e),h=t,d=new Date(h);h<n&&h<=r[1]&&(u.push({value:h}),!(s++>1e4));)if(d[a](d[i]()+e),h=d.getTime(),o){var f=o.calcNiceTickMultiple(h,c);f>0&&(d[a](d[i]()+f*e),h=d.getTime())}u.push({value:h,notAdd:!0})}function u(e,i,o){var a=[],s=!i.length;if(!Rm(Bc(e),r[0],r[1],n)){s&&(i=[{value:Bm(r[0],e,n)},{value:r[1]}]);for(var u=0;u<i.length-1;u++){var c=i[u].value,h=i[u+1].value;if(c!==h){var d=void 0,f=void 0,p=void 0;switch(e){case"year":d=Math.max(1,Math.round(t/Pc/365)),f=Yc(n),p=Kc(n);break;case"half-year":case"quarter":case"month":d=Nm(t),f=jc(n),p=Qc(n);break;case"week":case"half-week":case"day":d=Om(t),f=$c(n),p=Jc(n);break;case"half-day":case"quarter-day":case"hour":d=Fm(t),f=Uc(n),p=eh(n);break;case"minute":d=zm(t,!0),f=Xc(n),p=th(n);break;case"second":d=zm(t,!1),f=qc(n),p=nh(n);break;case"millisecond":d=Em(t),f=Zc(n),p=rh(n)}h>=r[0]&&c<=r[1]&&l(d,c,h,f,p,0,a),"year"===e&&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=Bc(a[p]);if(Vc(a[p])&&(u(a[p],c[c.length-1]||[],h),g!==(a[p+1]?Bc(a[p+1]):null))){if(h.length){f=d,h.sort(function(e,t){return e.value-t.value});for(var m=[],v=0;v<h.length;++v){var y=h[v].value;0!==v&&h[v-1].value===y||(m.push(h[v]),y>=r[0]&&y<=r[1]&&d++)}var _=i/t;if(d>1.5*_&&f>_/1.5)break;if(c.push(m),d>_||e===a[p])break}h=[]}}var x=Ce(we(c,function(e){return Ce(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.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(e,t){return e.value-t.value});var D=[];for(p=0;p<b.length;++p)0!==p&&b[p].value===b[p-1].value||D.push(b[p]);return D}(this._minLevelUnit,this._approxInterval,o,n,this._getExtentSpanWithBreaks(),this._brkCtx);i=i.concat(s);var l=Gc(n[1],o);i.push({value:n[1],time:{level:0,upperTimeUnit:l,lowerTimeUnit:l}});this.getSetting("useUTC");var u=Fc.length-1,c=0;return be(i,function(e){u=Math.min(u,ye(Fc,e.time.upperTimeUnit)),c=Math.max(c,e.time.level)}),i},t.prototype.calcNiceExtent=function(e){var t=this.getExtent();if(t[0]===t[1]&&(t[0]-=Pc,t[1]+=Pc),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-Pc}this._innerSetExtent(t[0],t[1]),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var r=this._getExtentSpanWithBreaks();this._approxInterval=r/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var i=Am.length,o=Math.min(function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n}(Am,this._approxInterval,0,i),i-1);this._interval=Am[o][1],this._intervalPrecision=pm(this._interval),this._minLevelUnit=Am[Math.max(o-1,0)][0]},t.prototype.parse=function(e){return Ae(e)?e:+Da(e)},t.prototype.contain=function(e){return mm(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.type="time",t}(km),Am=[["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",Lc/2],["year",Lc]];function Rm(e,t,n,r){return Wc(new Date(t),e,r).getTime()===Wc(new Date(n),e,r).getTime()}function Om(e,t){return(e/=Pc)>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Nm(e){return(e/=2592e6)>6?6:e>3?3:e>2?2:1}function Fm(e){return(e/=Ic)>12?12:e>6?6:e>3.5?4:e>2?2:1}function zm(e,t){return(e/=t?6e4:1e3)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Em(e){return Ta(e,!0)}function Bm(e,t,n){var r=Math.max(0,ye(Fc,t)-1);return Wc(new Date(e),Fc[r],n).getTime()}wm.registerClass(Lm);const Vm=Lm;var Hm=xa,Gm=Math.floor,Wm=Math.ceil,Ym=Math.pow,jm=Math.log,$m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new km,t}return X(t,e),t.prototype.getTicks=function(t){t=t||{};var n=this._extent.slice(),r=this._originalScale.getExtent(),i=e.prototype.getTicks.call(this,t),o=this.base,a=this._originalScale._innerGetBreaks(),s=null;return we(i,function(e){var t,i=e.value,l=null,u=Ym(o,i);if(i===n[0]&&this._fixMin?l=r[0]:i===n[1]&&this._fixMax&&(l=r[1]),s){var c=s.getTicksLogTransformBreak(e,o,a,Um);t=c.vBreak,null==l&&(l=c.brkRoundingCriterion)}return null!=l&&(u=Um(u,l)),{value:u,break:t}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(t,n){this._originalScale.setExtent(t,n);var r=xm(this.base,[t,n]);e.prototype.setExtent.call(this,r[0],r[1])},t.prototype.getExtent=function(){var t=this.base,n=e.prototype.getExtent.call(this);n[0]=Ym(t,n[0]),n[1]=Ym(t,n[1]);var r=this._originalScale.getExtent();return this._fixMin&&(n[0]=Um(n[0],r[0])),this._fixMax&&(n[1]=Um(n[1],r[1])),n},t.prototype.unionExtentFromData=function(e,t){this._originalScale.unionExtentFromData(e,t);var n=xm(this.base,e.getApproximateExtent(t),!0);this._innerUnionExtent(n)},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(isFinite(n)&&!(n<=0)){var r,i=(r=n,Math.pow(10,ka(r)));for(e/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[Hm(Wm(t[0]/i)*i),Hm(Gm(t[1]/i)*i)];this._interval=i,this._intervalPrecision=pm(i),this._niceExtent=o}},t.prototype.calcNiceExtent=function(t){e.prototype.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},t.prototype.contain=function(t){return t=jm(t)/jm(this.base),e.prototype.contain.call(this,t)},t.prototype.normalize=function(t){return t=jm(t)/jm(this.base),e.prototype.normalize.call(this,t)},t.prototype.scale=function(t){return t=e.prototype.scale.call(this,t),Ym(this.base,t)},t.prototype.setBreaksFromOption=function(e){var t=null;if(t){var n=t.logarithmicParseBreaksFromOption(e,this.base,De(this.parse,this)),r=n.parsedOriginal,i=n.parsedLogged;this._originalScale._innerSetBreak(r),this._innerSetBreak(i)}},t.type="log",t}(km);function Um(e,t){return Hm(e,ba(t))}wm.registerClass($m);const Xm=$m;var qm=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get("min",!0);null==i&&(i=t.get("startValue",!0));var o=this._modelMinRaw=i;Ie(o)?this._modelMinNum=Qm(e,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=Qm(e,o));var a=this._modelMaxRaw=t.get("max",!0);if(Ie(a)?this._modelMaxNum=Qm(e,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=Qm(e,a)),r)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=Te(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[pn(l[0],1),pn(l[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),a="dataMin"===this._modelMinRaw?t:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=e?r?0:NaN:t-i[0]*o),null==s&&(s=e?r?r-1:NaN:n+i[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=Ee(a)||Ee(s)||e&&!r;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}},e.prototype.modifyDataMinMax=function(e,t){this[Km[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){this[Zm[e]]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),Zm={min:"_determinedMin",max:"_determinedMax"},Km={min:"_dataMin",max:"_dataMax"};function Qm(e,t){return null==t?null:Ee(t)?NaN:e.parse(t)}function Jm(e,t){var n=e.type,r=function(e,t,n){var r=e.rawExtentInfo;return r||(r=new qm(e,t,n),e.rawExtentInfo=r,r)}(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,o=r.max,a=t.ecModel;if(a&&"time"===n){var s=function(e,t){var n=[];return t.eachSeriesByType(e,function(e){(function(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type})(e)&&n.push(e)}),n}("bar",a),l=!1;if(be(s,function(e){l=l||e.getBaseAxis()===t.axis}),l){var u=Pm(s),c=function(e,t,n,r){var i=n.axis.getExtent(),o=Math.abs(i[1]-i[0]),a=function(e,t){if(e&&t){var n=e[Im(t)];return n}}(r,n.axis);if(void 0===a)return{min:e,max:t};var s=1/0;be(a,function(e){s=Math.min(e.offset,s)});var l=-1/0;be(a,function(e){l=Math.max(e.offset+e.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,h=c/(1-(s+l)/o)-c;return{min:e-=h*(s/u),max:t+=h*(l/u)}}(i,o,t,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function ev(e,t){var n=t,r=Jm(e,n),i=r.extent,o=n.get("splitNumber");e instanceof Xm&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setBreaksFromOption(sv(n)),e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function tv(e){var t,n=e.getLabelModel().get("formatter");if("time"===e.type){var r=Pe(t=n)||Ie(t)?t:function(e){e=e||{};var t={},n=!0;return be(Fc,function(t){n&&(n=null==e[t])}),be(Fc,function(r,i){var o=e[r];t[r]={};for(var a=null,s=i;s>=0;s--){var l=Fc[s],u=Re(o)&&!Te(o)?o[l]:o,c=void 0;Te(u)?a=(c=u.slice())[0]||"":Pe(u)?c=[a=u]:(null==a?a=Rc[r]:Ac[l].test(a)||(a=t[l][l][0]+" "+a),c=[a],n&&(c[1]="{primary|"+a+"}")),t[r][l]=c}}),t}(t);return function(t,n){return e.scale.getFormattedLabel(t,n,r)}}if(Pe(n))return function(t){var r=e.scale.getLabel(t);return n.replace("{value}",null!=r?r:"")};if(Ie(n)){if("category"===e.type)return function(t,r){return n(nv(e,t),t.value-e.scale.getExtent()[0],null)};var i=null;return function(t,r){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,t.break)),n(nv(e,t),r,o)}}return function(t){return e.scale.getLabel(t)}}function nv(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function rv(e){var t=e.get("interval");return null==t?"auto":t}function iv(e){return"category"===e.type&&0===rv(e.getLabelModel())}function ov(e){return"middle"===e||"center"===e}function av(e){return e.getShallow("show")}function sv(e){e.get("breaks",!0)}var lv=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return we(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ce(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),uv=["x","y"];function cv(e){return("interval"===e.type||"time"===e.type)&&!e.hasBreaks()}var hv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=uv,t}return X(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(cv(e)&&cv(t)){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,h=i[1]-r[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=Nt([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),o=new nn(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var r=e[0],i=e[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return Gn(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,t)),n[1]=a.toGlobalCoord(a.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(e[0]),s=r.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t,n){if(n=n||[],this._invTransform)return Gn(n,e,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(e){e=e||0;var t=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e,o=Math.max(t[0],t[1])-r+e,a=Math.max(n[0],n[1])-i+e;return new nn(r,i,o,a)},t}(lv);const dv=hv;var fv=$a(),pv=$a();function gv(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function mv(e,t){var n=we(t,function(t){return e.scale.parse(t)});return"time"===e.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function vv(e,t,n){var r,i,o=_v(e),a=rv(t),s=1===n.kind;if(!s){var l=bv(o,a);if(l)return l}Ie(a)?r=Dv(e,a):(i="auto"===a?function(e,t){if(1===t.kind){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return pv(e).autoInterval=n,!0}),n}var r=pv(e).autoInterval;return null!=r?r:pv(e).autoInterval=e.calculateCategoryInterval(t)}(e,n):a,r=Mv(e,i));var u={labels:r,labelCategoryInterval:i};return s?n.out.noPxChangeTryDetermine.push(function(){return wv(o,a,u),!0}):wv(o,a,u),u}var yv=xv("axisTick"),_v=xv("axisLabel");function xv(e){return function(t){return pv(t)[e]||(pv(t)[e]={list:[]})}}function bv(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function wv(e,t,n){return e.list.push({key:t,value:n}),n}function Sv(e,t,n){return null==Cv(e,t,n)}function Cv(e,t,n){var r=fv(e.model),i=e.getExtent(),o=r.lastAutoInterval,a=r.lastTickCount;if(null!=o&&null!=a&&Math.abs(o-t)<=1&&Math.abs(a-n)<=1&&o>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return o;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function Mv(e,t,n){var r=tv(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=iv(e),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(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e,time:void 0,break:void 0})}return f&&p-l!==o[1]&&g(o[1]),s}function Dv(e,t,n){var r=e.scale,i=tv(e),o=[];return be(r.getTicks(),function(e){var a=r.getLabel(e),s=e.value;t(e.value,a)&&o.push(n?s:{formattedLabel:i(e),rawLabel:a,tickValue:s,time:void 0,break:void 0})}),o}var kv=[0,1],Tv=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return function(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(ma(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(r.parse(e)),this.onBand&&"ordinal"===r.type&&Iv(n=n.slice(),r.count()),va(e,kv,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&Iv(n=n.slice(),r.count());var i=va(e,n,kv,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=we(function(e,t,n){var r=e.getTickModel().get("customValues");if(r){var i=e.scale.getExtent();return{ticks:Ce(mv(e,r),function(e){return e>=i[0]&&e<=i[1]})}}return"category"===e.type?function(e,t){var n,r,i=yv(e),o=rv(t),a=bv(i,o);if(a)return a;if(t.get("show")&&!e.scale.isBlank()||(n=[]),Ie(o))n=Dv(e,o,!0);else if("auto"===o){var s=vv(e,e.getLabelModel(),gv(2));r=s.labelCategoryInterval,n=we(s.labels,function(e){return e.tickValue})}else n=Mv(e,r=o,!0);return wv(i,o,{ticks:n,tickCategoryInterval:r})}(e,t):{ticks:we(e.scale.getTicks(n),function(e){return e.value})}}(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}},this);return function(e,t,n,r){var i=t.length;if(e.onBand&&!n&&i){var o,a,s=e.getExtent();if(1===i)t[0].coord=s[0],t[0].onBand=!0,o=t[1]={coord:s[1],tickValue:t[0].tickValue,onBand:!0};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;be(t,function(e){e.coord-=u/2,e.onBand=!0});var c=e.scale.getExtent();a=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*a,tickValue:c[1]+1,onBand:!0},t.push(o)}var h=s[0]>s[1];d(t[0].coord,s[0])&&(r?t[0].coord=s[0]:t.shift()),r&&d(s[0],t[0].coord)&&t.unshift({coord:s[0],onBand:!0}),d(s[1],o.coord)&&(r?o.coord=s[1]:t.pop()),r&&d(o.coord,s[1])&&t.push({coord:s[1],onBand:!0})}function d(e,t){return e=xa(e),t=xa(t),h?e>t:e<t}}(this,n,t.get("alignWithLabel"),e.clamp),n},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick").get("splitNumber");return e>0&&e<100||(e=5),we(this.scale.getMinorTicks(e),function(e){return we(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return function(e,t){var n=e.getLabelModel().get("customValues");if(n){var r=tv(e),i=e.scale.getExtent();return{labels:we(Ce(mv(e,n),function(e){return e>=i[0]&&e<=i[1]}),function(t){var n={value:t};return{formattedLabel:r(n),rawLabel:e.scale.getLabel(n),tickValue:t,time:void 0,break:void 0}})}}return"category"===e.type?function(e,t){var n=e.getLabelModel(),r=vv(e,n,t);return!n.get("show")||e.scale.isBlank()?{labels:[]}:r}(e,t):function(e){var t=e.scale.getTicks(),n=tv(e);return{labels:we(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value,time:t.time,break:t.break}})}}(e)}(this,e=e||gv(2)).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(e){return function(e,t){var n=t.kind,r=function(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}(e),i=tv(e),o=(r.axisRotate-r.labelRotate)/180*Math.PI,a=e.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=e.dataToCoord(c+1)-e.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 m,v,y=cn(i({value:c}),r.font,"center","top");m=1.3*y.width,v=1.3*y.height,p=Math.max(p,m,7),g=Math.max(g,v,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 t.out.noPxChangeTryDetermine.push(De(Sv,null,e,b,l)),b;var w=Cv(e,b,l);return null!=w?w:b}(this,e=e||gv(2))},e}();function Iv(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}var Pv=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return X(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Tv);const Lv=Pv;var Av=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"];function Rv(e,t,n){n=n||3,t?e.dirty|=n:e.dirty&=~n}function Ov(e,t){return t=t||3,null==e.dirty||!!(e.dirty&t)}function Nv(e){if(e)return Ov(e)&&function(e,t,n){var r=t.getComputedTransform();e.transform=Vp(e.transform,r);var i=e.localRect=Bp(e.localRect,t.getBoundingRect()),o=t.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=il.textMargin);for(var h=0;h<4;h++)Fv[h]=c===il.minMargin&&l&&null!=l[h]?l[h]:s&&null!=s[h]?s[h]:a?a[h]:0;c===il.textMargin&&Lp(i,Fv,!1,!1);var d=e.rect=Bp(e.rect,i);r&&d.applyTransform(r),c===il.minMargin&&Lp(d,Fv,!1,!1),e.axisAligned=zp(r),(e.label=e.label||{}).ignore=t.ignore,Rv(e,!1),Rv(e,!0,2)}(e,e.label,e),e}var Fv=[0,0,0,0];function zv(e,t){for(var n=0;n<Av.length;n++){var r=Av[n];null==e[r]&&(e[r]=t[r])}return Nv(e)}function Ev(e){var t=e.obb;return t&&!Ov(e,2)||(e.obb=t=t||new Uf,t.fromBoundingRect(e.localRect,e.transform),Rv(e,!1,2)),t}function Bv(e,t,n,r){return!(!e||!t)&&!(e.label&&e.label.ignore||t.label&&t.label.ignore)&&!!e.rect.intersect(t.rect,n,r)&&(!(!e.axisAligned||!t.axisAligned)||Ev(e).intersect(Ev(t),n,r))}var Vv=Math.PI,Hv=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],Gv=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Wv=$a(),Yv=$a(),jv=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}(),$v=[1,0,0,1,0,0],Uv=new nn(0,0,0,0),Xv=function(e,t,n,r,i,o){if(ov(e.nameLocation)){var a=o.stOccupiedRect;a&&qv(function(e,t,n){return e.transform=Vp(e.transform,n),e.localRect=Bp(e.localRect,t),e.rect=Bp(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=zp(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}({},a,o.transGroup.transform),r,i)}else Zv(o.labelInfoList,o.dirVec,r,i)};function qv(e,t,n){var r=new zt;Bv(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&function(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}(t,r)}function Zv(e,t,n,r){for(var i=zt.dot(r,t)>=0,o=0,a=e.length;o<a;o++){var s=e[i?o:a-1-o];s.label.ignore||qv(s,n,r)}}var Kv=function(){function e(e,t,n,r){this.group=new Xd,this._axisModel=e,this._api=t,this._local={},this._shared=r||new jv(Xv),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},r=Ve(e.axisName,t.get("name")),i=t.get("nameMoveOverlap");null!=i&&"auto"!==i||(i=Ve(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Ve(e.nameDirection,1),tickDirection:Ve(e.tickDirection,1),labelDirection:Ve(e.labelDirection,1),labelOffset:Ve(e.labelOffset,0),silent:Ve(e.silent,!0),axisName:r,nameLocation:He(t.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:ly(r)&&i,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};this._cfg=o;var a=new Xd({x:o.position[0],y:o.position[1],rotation:o.rotation});a.updateTransform(),this._transformGroup=a;var s=this._shared.ensureRecord(t);s.transGroup=this._transformGroup,s.dirVec=new zt(Math.cos(-o.rotation),Math.sin(-o.rotation))},e.prototype.build=function(e,t){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),be(Qv,function(r){e[r]&&Jv[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},e.innerTextLayout=function(e,t,n){var r,i,o=Sa(t-e);return Ca(o)?(i=n>0?"top":"bottom",r="center"):Ca(o-Vv)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<Vv?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),Qv=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],Jv={axisLine:function(e,t,n,r,i,o,a){var s=r.get(["axisLine","show"]);if("auto"===s&&(s=!0,null!=e.raw.axisLineAutoShow&&(s=!!e.raw.axisLineAutoShow)),s){var l=r.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=me({lineCap:"round"},r.getModel(["axisLine","lineStyle"]).getLineStyle()),p={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:f};if(r.get(["axisLine","breakLine"])&&r.axis.scale.hasBreaks())null.buildAxisBreakLine(r,i,o,p);else{var g=new Dd(me({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]}},p));vp(g.shape,g.style.lineWidth),g.anid="line",i.add(g)}var m=r.get(["axisLine","symbol"]);if(null!=m){var v=r.get(["axisLine","symbolSize"]);Pe(m)&&(m=[m,m]),(Pe(v)||Ae(v))&&(v=[v,v]);var y=eg(r.get(["axisLine","symbolOffset"])||0,v),_=v[0],x=v[1];be([{rotate:e.rotation+Math.PI/2,offset:y[0],r:0},{rotate:e.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(t,n){if("none"!==m[n]&&null!=m[n]){var r=Jp(m[n],-_/2,-x/2,_,x,f.stroke,!0),o=t.r+t.offset,a=d?h:c;r.attr({rotation:t.rotate,x:a[0]+o*Math.cos(e.rotation),y:a[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,o,a,s){ry(t,i,s)&&ey(e,t,n,r,i,o,a,1)},axisTickLabelDetermine:function(e,t,n,r,i,o,a,s){ry(t,i,s)&&ey(e,t,n,r,i,o,a,2);var l=function(e,t,n,r){var i=r.axis,o=r.getModel("axisTick"),a=o.get("show");if("auto"===a&&(a=!0,null!=e.raw.axisTickAutoShow&&(a=!!e.raw.axisTickAutoShow)),!a||i.scale.isBlank())return[];for(var s=o.getModel("lineStyle"),l=e.tickDirection*o.get("length"),u=ny(i.getTicksCoords(),n.transform,l,ve(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)t.add(u[c]);return u}(e,i,o,r);!function(e,t,n){e.showMinorTicks||be(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=Yv(r),o=Wv(e.label);if(null!=i.tickValue&&!i.onBand&&i.tickValue===o.tickValue)return void ty(r)}})}(e,t.labelLayoutList,l),function(e,t,n,r,i){var o=r.axis,a=r.getModel("minorTick");if(e.showMinorTicks&&!o.scale.isBlank()){var s=o.getMinorTicksCoords();if(s.length)for(var l=a.getModel("lineStyle"),u=i*a.get("length"),c=ve(l.getLineStyle(),ve(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var d=ny(s[h],n.transform,u,c,"minorticks_"+h),f=0;f<d.length;f++)t.add(d[f])}}(e,i,o,r,e.tickDirection)},axisName:function(e,t,n,r,i,o,a,s){var l=n.ensureRecord(r);t.nameEl&&(i.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=e.axisName;if(ly(u)){var c=e.nameLocation,h=e.nameDirection,d=r.getModel("nameTextStyle"),f=r.get("nameGap")||0,p=r.axis.getExtent(),g=r.axis.inverse?-1:1,m=new zt(0,0),v=new zt(0,0);"start"===c?(m.x=p[0]-g*f,v.x=-g):"end"===c?(m.x=p[1]+g*f,v.x=g):(m.x=(p[0]+p[1])/2,m.y=e.labelOffset+h*f,v.y=h);var y=[1,0,0,1,0,0];v.transform(Ot(y,y,e.rotation));var _,x,b=r.get("nameRotate");null!=b&&(b=b*Vv/180),ov(c)?_=Kv.innerTextLayout(e.rotation,null!=b?b:e.rotation,h):(_=function(e,t,n,r){var i,o,a=Sa(n-e),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;return Ca(a-Vv/2)?(o=l?"bottom":"top",i="center"):Ca(a-1.5*Vv)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*Vv&&a>Vv/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}(e.rotation,c,b||0,p),null!=(x=e.raw.axisNameAvailableWidth)&&(x=Math.abs(x/Math.sin(_.rotation)),!isFinite(x)&&(x=null)));var w=d.getFont(),S=r.get("nameTruncate",!0)||{},C=S.ellipsis,M=Be(e.raw.nameTruncateMaxWidth,S.maxWidth,x),D=s.nameMarginLevel||0,k=new fa({x:m.x,y:m.y,rotation:_.rotation,silent:Kv.isLabelSilent(r),style:Ks(d,{text:u,font:w,overflow:"truncate",width:M,ellipsis:C,fill:d.getTextColor()||r.get(["axisLine","lineStyle","color"]),align:d.get("align")||_.textAlign,verticalAlign:d.get("verticalAlign")||_.textVerticalAlign}),z2:1});if(Op({el:k,componentModel:r,itemName:u}),k.__fullText=u,k.anid="name",r.get("triggerEvent")){var T=Kv.makeAxisEventDataBase(r);T.targetType="axisName",T.name=u,Ja(k).eventData=T}o.add(k),k.updateTransform(),t.nameEl=k;var I=l.nameLayout=Nv({label:k,priority:k.z2,defaultAttr:{ignore:k.ignore},marginDefault:ov(c)?Hv[D]:Gv[D]});if(l.nameLocation=c,i.add(k),k.decomposeTransform(),e.shouldNameMoveOverlap&&I){var P=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,I,v,P)}}}};function ey(e,t,n,r,i,o,a,s){iy(t)||function(e,t,n,r,i,o){var a=i.axis,s=Be(e.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new Xd;n.add(l);var u=gv(r);if(s&&!a.scale.isBlank()){var c=i.getModel("axisLabel"),h=a.getViewLabels(u),d=(Be(e.raw.labelRotate,c.get("rotate"))||0)*Vv/180,f=Kv.innerTextLayout(e.rotation,d,e.labelDirection),p=i.getCategories&&i.getCategories(!0),g=[],m=i.get("triggerEvent"),v=1/0,y=-1/0;be(h,function(e,t){var n,r="ordinal"===a.scale.type?a.scale.getRawOrdinalNumber(e.tickValue):e.tickValue,s=e.formattedLabel,u=e.rawLabel,d=c;if(p&&p[r]){var _=p[r];Re(_)&&_.textStyle&&(d=new yl(_.textStyle,c,i.ecModel))}var x=d.getTextColor()||i.get(["axisLine","lineStyle","color"]),b=d.getShallow("align",!0)||f.textAlign,w=Ve(d.getShallow("alignMinLabel",!0),b),S=Ve(d.getShallow("alignMaxLabel",!0),b),C=d.getShallow("verticalAlign",!0)||d.getShallow("baseline",!0)||f.textVerticalAlign,M=Ve(d.getShallow("verticalAlignMinLabel",!0),C),D=Ve(d.getShallow("verticalAlignMaxLabel",!0),C),k=10+((null===(n=e.time)||void 0===n?void 0:n.level)||0);v=Math.min(v,k),y=Math.max(y,k);var T=new fa({x:0,y:0,rotation:0,silent:Kv.isLabelSilent(i),z2:k,style:Ks(d,{text:s,align:0===t?w:t===h.length-1?S:b,verticalAlign:0===t?M:t===h.length-1?D:C,fill:Ie(x)?x("category"===a.type?u:"value"===a.type?r+"":r,t):x})});T.anid="label_"+r;var I=Wv(T);if(I.break=e.break,I.tickValue=r,I.layoutRotation=f.rotation,Op({el:T,componentModel:i,itemName:s,formatterParamsExtra:{isTruncated:function(){return T.isTruncated},value:u,tickIndex:t}}),m){var P=Kv.makeAxisEventDataBase(i);P.targetType="axisLabel",P.value=u,P.tickIndex=t,e.break&&(P.break={start:e.break.parsedBreak.vmin,end:e.break.parsedBreak.vmax}),"category"===a.type&&(P.dataIndex=r),Ja(T).eventData=P,e.break&&function(e,t,n,r){n.on("click",function(n){var i={type:"expandAxisBreak",breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+"AxisIndex"]=e.componentIndex,t.dispatchAction(i)})}(i,o,T,e.break)}g.push(T),l.add(T)}),oy(t,we(g,function(e){return{label:e,priority:Wv(e).break?e.z2+(y-v+1):e.z2,defaultAttr:{ignore:e.ignore}}}),l,u)}else oy(t,[],l,u)}(e,t,i,s,r,a);var l=t.labelLayoutList;!function(e,t,n,r){var i=t.get(["axisLabel","margin"]);be(n,function(n,o){var a=Nv(n);if(a){var s=a.label,l=Wv(s);a.suggestIgnore=s.ignore,s.ignore=!1,Jn(ay,sy),ay.x=t.axis.dataToCoord(l.tickValue),ay.y=e.labelOffset+e.labelDirection*i,ay.rotation=l.layoutRotation,r.add(ay),ay.updateTransform(),r.remove(ay),ay.decomposeTransform(),Jn(s,ay),s.markRedraw(),Rv(a,!0),Nv(a)}})}(e,r,l,o),function(e,t,n){var r=null;if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&Wv(e.label).break},!0),o=e.get(["breakLabelLayout","moveOverlap"],!0);!0!==o&&"auto"!==o||be(i,function(r){null.adjustBreakLabelPair(e.axis.inverse,t,[Nv(n[r[0]]),Nv(n[r[1]])])})}}(r,e.rotation,l);var u=e.optionHideOverlap;!function(e,t,n){if(!iv(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]),o=t.length;a(r,0,1),a(i,o-1,o-2)}function a(e,r,i){var o=Nv(t[r]),a=Nv(t[i]);if(o&&a)if(!1===e||o.suggestIgnore)ty(o.label);else if(a.suggestIgnore)ty(a.label);else{if(!n){var s=[0,0,0,0];o=zv({marginForce:s},o),a=zv({marginForce:s},a)}Bv(o,a,null,{touchThreshold:.1})&&ty(e?a.label:o.label)}}}(r,l,u),u&&function(e){var t=[];function n(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}e.sort(function(e,t){return(t.suggestIgnore?1:0)-(e.suggestIgnore?1:0)||t.priority-e.priority});for(var r=0;r<e.length;r++){var i=Nv(e[r]);if(!i.label.ignore){for(var o=i.label,a=i.labelLine,s=!1,l=0;l<t.length;l++)if(Bv(i,t[l],null,{touchThreshold:.05})){s=!0;break}s?(n(o),a&&n(a)):t.push(i)}}}(Ce(l,function(e){return e&&!e.label.ignore})),function(e,t,n,r){var i,o=n.axis,a=t.ensureRecord(n),s=[],l=ly(e.axisName)&&ov(e.nameLocation);be(r,function(e){var t=Nv(e);if(t&&!t.label.ignore){s.push(t);var n=a.transGroup;l&&(n.transform?Nt($v,n.transform):Pt($v),t.transform&&At($v,$v,t.transform),nn.copy(Uv,t.localRect),Uv.applyTransform($v),i?i.union(Uv):nn.copy(i=new nn(0,0,0,0),Uv))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",c=a.transGroup[u];if(s.sort(function(e,t){return Math.abs(e.label[u]-c)-Math.abs(t.label[u]-c)}),l&&i){var h=o.getExtent(),d=Math.min(h[0],h[1]),f=Math.max(h[0],h[1])-d;i.union(new nn(d,0,f,1))}a.stOccupiedRect=i,a.labelInfoList=s}(e,n,r,l)}function ty(e){e&&(e.ignore=!0)}function ny(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,t&&(Gn(a,a,t),Gn(s,s,t));var c=new Dd({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});vp(c.shape,c.style.lineWidth),c.anid=i+"_"+e[l].tickValue,o.push(c);var h=Yv(c);h.onBand=!!e[l].onBand,h.tickValue=e[l].tickValue}return o}function ry(e,t,n){if(iy(e)){var r=e.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var i=!0,o=0;o<r.length;o++)i=i&&r[o]();if(i)return!1}r.length&&(t.remove(e.labelGroup),oy(e,null,null,null))}return!0}function iy(e){return!!e.labelLayoutList}function oy(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}var ay=new Qo,sy=new Qo;function ly(e){return!!e}const uy=Kv;function cy(e,t,n){n=n||{};var r=t.axis,i={},o=r.getAxesOnZeroOf()[0],a=r.position,s=o?"onZero":a,l=r.dim,u=[e.x,e.x+e.width,e.y,e.y+e.height],c={left:0,right:1,top:0,bottom:1,onZero:2},h=t.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])}i.position=["y"===l?d[c[s]]:u[0],"x"===l?d[c[s]]:u[3]],i.rotation=Math.PI/2*("x"===l?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],i.labelOffset=o?d[c[a]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Be(n.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var p=t.get(["axisLabel","rotate"]);return i.labelRotate="top"===s?-p:p,i.z2=1,i}function hy(e){var t={xAxisModel:null,yAxisModel:null};return be(t,function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,Za).models[0];t[r]=o}),t}var dy=[[3,1],[0,2]],fy=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=uv,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function r(e){var t,n=Me(e),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=e[+n[o]],s=a.model,l=a.scale;dm(l)&&s.get("alignTicks")&&null==s.get("interval")?i.push(a):(ev(l,s),dm(l)&&(t=a))}i.length&&(t||ev((t=i.pop()).scale,t.model),be(i,function(e){!function(e,t,n){var r=km.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,{expandToNicedExtent:!0}),a=i.length-1,s=r.getInterval.call(n),l=Jm(e,t),u=l.extent,c=l.fixMin,h=l.fixMax;"log"===e.type&&(u=xm(e.base,u,!0)),e.setBreaksFromOption(sv(t)),e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var d=r.getExtent.call(e);c&&(u[0]=d[0]),h&&(u[1]=d[1]);var f=r.getInterval.call(e),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=fm(f),g=u[0]+f*a;else if(h)for(p=u[1]-f*a;p>u[0]&&isFinite(p)&&isFinite(u[0]);)f=fm(f),p=u[1]-f*a;else{e.getTicks().length-1>a&&(f=fm(f));var m=f*a;(p=xa((g=Math.ceil(u[1]/f)*f)-m))<0&&u[0]>=0?(p=0,g=xa(m)):g>0&&u[1]<=0&&(g=0,p=-xa(m))}var v=(i[0].value-o[0].value)/s,y=(i[a].value-o[a].value)/s;r.setExtent.call(e,p+f*v,g+f*y),r.setInterval.call(e,f),(v||y)&&r.setNiceExtent.call(e,p+f,g-f)}(e.scale,e.model,t.scale)}))}}this._updateScale(e,this.model),r(n.x),r(n.y);var i={};be(n.x,function(e){gy(n,"y",e,i)}),be(n.y,function(e){gy(n,"x",e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=xh(e,t),i=this._rect=vh(e.getBoxLayoutParams(),r.refContainer),o=this._axesMap,a=this._coordsList,s=e.get("containLabel");if(vy(o,i),!n){var l=function(e,t,n,r,i){var o=new jv(by);return be(n,function(n){return be(n,function(n){if(av(n.model)){var a=!r;n.axisBuilder=function(e,t,n,r,i,o){for(var a=cy(e,n),s=!1,l=!1,u=0;u<t.length;u++)dm(t[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 uy(n,r,a,i)}(e,t,n.model,i,o,a)}})}),o}(i,a,o,s,t),u=void 0;if(s)u=_y(i.clone(),"axisLabel",null,i,o,l,r);else{var c=function(e,t,n){var r,i=e.get("outerBoundsMode",!0);"same"===i?r=t.clone():null!=i&&"auto"!==i||(r=vh(e.get("outerBounds",!0)||Kg,n.refContainer));var o=e.get("outerBoundsContain",!0);return{outerBoundsRect:r,parsedOuterBoundsContain:null==o||"auto"===o||ye(["all","axisLabel"],o)<0?"all":o,outerBoundsClamp:[_a(Ve(e.get("outerBoundsClampWidth",!0),Qg[0]),t.width),_a(Ve(e.get("outerBoundsClampHeight",!0),Qg[1]),t.height)]}}(e,i,r),h=c.outerBoundsRect,d=c.parsedOuterBoundsContain,f=c.outerBoundsClamp;h&&(u=_y(h,d,f,i,o,l,r))}xy(i,o,2,null,u,r)}be(this._coordsList,function(e){e.calcAffineTransform()})},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}Re(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===e||i[r].getAxis("y").index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",Za).models[0],o=e.yAxisModel||r&&r.getReferringComponents("yAxis",Za).models[0],a=e.gridModel,s=this._coordsList;return r?ye(s,t=r.coordinateSystem)<0&&(t=null):i&&o?t=this.getCartesian(i.componentIndex,o.componentIndex):i?n=this.getAxis("x",i.componentIndex):o?n=this.getAxis("y",o.componentIndex):a&&a.coordinateSystem===this&&(t=this._coordsList[0]),{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(t){return function(n,r){if(py(n,e)){var l=n.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new Lv(t,function(e,t){if(t=t||e.get("type"))switch(t){case"category":return new Cm({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new Vm({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(wm.getClass(t)||km)}}(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=i,u.index=r,i._axesList.push(u),a[t][r]=u,s[t]++}}}this._axesMap=a,be(a.x,function(t,n){be(a.y,function(i,o){var a="x"+n+"y"+o,s=new dv(a);s.master=r,s.model=e,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})})},e.prototype._updateScale=function(e,t){function n(e,t){be(function(e,t){var n={};return be(e.mapDimensionsAll(t),function(t){n[function(e,t){return sc(e,t)?e.getCalculationInfo("stackResultDimension"):t}(e,t)]=!0}),Me(n)}(e,t.dim),function(n){t.scale.unionExtentFromData(e,n)})}be(this._axesList,function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}}),e.eachSeries(function(e){if(function(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}(e)){var r=hy(e),i=r.xAxisModel,o=r.yAxisModel;if(!py(i,t)||!py(o,t))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=e.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}},this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return be(this.getCartesians(),function(r){var i=null!=e&&"auto"!==e?r.getAxis(e):r.getBaseAxis(),o=r.getOtherAxis(i);ye(t,i)<0&&t.push(i),ye(n,o)<0&&n.push(o)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent("grid",function(i,o){var a=new e(i,t,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)}),t.eachSeries(function(e){!function(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys,o=function(e){var t=e.getShallow("coordinateSystem"),n=e.getShallow("coordinateSystemUsage",!0),r=0;if(t){var i="series"===e.mainType;null==n&&(n=i?"data":"box"),"data"===n?(r=1,i||(r=0)):"box"===n&&(r=2,i||function(e){return!!Ju[e]}(t)||(r=0))}return{coordSysType:t,kind:r}}(t),a=o.kind,s=o.coordSysType;if(i&&1!==a&&(a=1,s=n),0===a||s!==n)return!1;var l=r(n,t);l&&(1===a?t.coordinateSystem=l:t.boxCoordinateSystem=l)}({targetModel:e,coordSysType:"cartesian2d",coordSysProvider:function(){var t=hy(e),n=t.xAxisModel,r=t.yAxisModel;return n.getCoordSysModel().coordinateSystem.getCartesian(n.componentIndex,r.componentIndex)}})}),r},e.dimensions=uv,e}();function py(e,t){return e.getCoordSysModel()===t}function gy(e,t,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=e[t],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)my(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&my(o[u])&&!r[c(o[u])]){i=o[u];break}i&&(r[c(i)]=!0)}function c(e){return e.dim+"_"+e.index}}function my(e){return e&&"category"!==e.type&&"time"!==e.type&&function(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}(e)}function vy(e,t){be(e.x,function(e){return yy(e,t.x,t.width)}),be(e.y,function(e){return yy(e,t.y,t.height)})}function yy(e,t,n){var r=[0,n],i=e.inverse?1:0;e.setExtent(r[i],r[1-i]),function(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return r-e+t}}(e,t)}function _y(e,t,n,r,i,o,a){xy(r,i,1,t,!1,a);var s=[0,0,0,0];u(0),u(1),c(r,0,NaN),c(r,1,NaN);var l=null==function(e,t){if(e&&t)for(var n=0,r=e.length;n<r;n++)if(t.call(undefined,e[n],n,e))return e[n]}(s,function(e){return e>0});return Lp(r,s,!0,!0,n),vy(i,r),l;function u(e){be(i[op[e]],function(t){if(av(t.model)){var n=o.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var a=r[i],s=t.scale.normalize(Wv(a.label).tickValue);s=1===e?1-s:s,c(a.rect,e,s),c(a.rect,1-e,NaN)}var l=n.nameLayout;l&&(s=ov(n.nameLocation)?.5:NaN,c(l.rect,e,s),c(l.rect,1-e,NaN))}})}function c(t,n,r){var i=e[op[n]]-t[op[n]],o=t[ap[n]]+t[op[n]]-(e[ap[n]]+e[op[n]]);i=h(i,1-r),o=h(o,r);var a=dy[n][0],l=dy[n][1];s[a]=ga(s[a],i),s[l]=ga(s[l],o)}function h(e,t){return e>0&&!Ee(t)&&t>1e-4&&(e/=t),e}}function xy(e,t,n,r,i,o){var a=2===n;be(t,function(t){return be(t,function(t){av(t.model)&&(function(e,t,n){var r=cy(t,n);e.updateCfg(r)}(t.axisBuilder,e,t.model),t.axisBuilder.build(a?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};function l(t){s[op[1-t]]=e[ap[t]]<=.5*o.refContainer[ap[t]]?0:1-t==1?2:1}l(0),l(1),be(t,function(e,t){return be(e,function(e){av(e.model)&&(("all"===r||a)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),a&&e.axisBuilder.build({axisLine:!0}))})})}var by=function(e,t,n,r,i,o){var a="x"===n.axis.dim?"y":"x";Xv(e,0,0,r,i,o),ov(e.nameLocation)||be(t.recordMap[a],function(e){e&&e.labelInfoList&&e.dirVec&&Zv(e.labelInfoList,e.dirVec,r,i)})};const wy=fy;function Sy(e,t){return"all"===e||Te(e)&&ye(e,t)>=0||e===t}function Cy(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Dy(e)]}function My(e){return!!e.get(["handle","show"])}function Dy(e){return e.type+"||"+e.id}var ky={};const Ty=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return X(t,e),t.prototype.render=function(t,n,r,i){this.axisPointerClass&&function(e){var t=Cy(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=My(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=function(e){var t=Cy(e);return t&&t.axisPointerModel}(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){ky[e]=t},t.getAxisPointerClass=function(e){return e&&ky[e]},t.type="axis",t}(Xg);var Iy=$a(),Py=["splitArea","splitLine","minorSplitLine","breakArea"],Ly=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return X(t,e),t.prototype.render=function(t,n,r,i){this.group.removeAll();var o=this._axisGroup;this._axisGroup=new Xd,this.group.add(this._axisGroup),av(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),be(Py,function(e){t.get([e,"show"])&&Ay[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&"changeAxisOrder"===i.type&&i.isInitSort||Cp(o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){Iy(this).splitAreaColors=null},t.type="cartesianAxis",t}(Ty),Ay={splitLine:function(e,t,n,r,i){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=Te(l)?l:[l];for(var h=r.coordinateSystem.getRect(),d=o.isHorizontal(),f=0,p=o.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],m=[],v=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,m[0]=_,m[1]=h.y+h.height):(g[0]=h.x,g[1]=_,m[0]=h.x+h.width,m[1]=_);var b=f++%l.length,w=new Dd({anid:null!=x?"line_"+x:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:m[0],y2:m[1]},style:ve({stroke:l[b]},v),silent:!0});vp(w.shape,v.lineWidth),t.add(w)}}}},minorSplitLine:function(e,t,n,r,i){var o=n.axis,a=n.getModel("minorSplitLine").getModel("lineStyle"),s=r.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 m=new Dd({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});vp(m.shape,d.lineWidth),t.add(m)}},splitArea:function(e,t,n,r,i){!function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var c=s.length,h=Iy(e).splitAreaColors,d=Qe(),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 m=i.toGlobalCoord(u[0].coord),v=a.getAreaStyle();for(s=Te(s)?s:[s],p=1;p<u.length;p++){var y=i.toGlobalCoord(u[p].coord),_=void 0,x=void 0,b=void 0,w=void 0;i.isHorizontal()?(_=m,x=l.y,b=y-_,w=l.height,m=_+b):(_=l.x,x=m,b=l.width,m=x+(w=y-x));var S=u[p-1].tickValue;null!=S&&d.set(S,f),t.add(new Qo({anid:null!=S?"area_"+S:null,shape:{x:_,y:x,width:b,height:w},style:ve({fill:s[f]},v),autoBatch:!0,silent:!0})),f=(f+1)%c}Iy(e).splitAreaColors=d}}}(e,t,n,r)},breakArea:function(e,t,n,r,i){var o=null,a=n.axis.scale;o&&"ordinal"!==a.type&&o.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},Ry=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return X(t,e),t.type="xAxis",t}(Ly),Oy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=Ry.type,t}return X(t,e),t.type="yAxis",t}(Ly),Ny=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return X(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new Qo({shape:e.coordinateSystem.getRect(),style:ve({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Xg),Fy={offset:0};function zy(e){e.registerComponentView(Ny),e.registerComponentModel(Jg),e.registerCoordinateSystem("cartesian2d",wy),cm(e,"x",tm,Fy),cm(e,"y",tm,Fy),e.registerComponentView(Ry),e.registerComponentView(Oy),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var Ey=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,By=[],Vy=at.browser.firefox&&+at.browser.version.split(".")[0]<39;function Hy(e,t,n,r){return n=n||{},r?Gy(e,t,n):Vy&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):Gy(e,t,n),n}function Gy(e,t,n){if(at.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(vc(e)){var o=e.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(mc(By,e,r,i))return n.zrX=By[0],void(n.zrY=By[1])}n.zrX=n.zrY=0}function Wy(e){return e||window.event}function Yy(e,t,n){if(null!=(t=Wy(t)).zrX)return t;var r=t.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];i&&Hy(e,i,t,n)}else{Hy(e,t,t,n);var o=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;return null==n||null==r?t:3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var a=t.button;return null==t.which&&void 0!==a&&Ey.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function jy(e,t,n,r){e.removeEventListener(t,n,r)}var $y=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Uy="\0__throttleOriginMethod",Xy="\0__throttleRate",qy="\0__throttleType";function Zy(e,t,n){var r,i,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,e.apply(o,a||[])}t=t||0;var d=function(){for(var e=[],d=0;d<arguments.length;d++)e[d]=arguments[d];r=(new Date).getTime(),o=this,a=e;var f=s||t,p=s||n;s=null,i=r-(p?l:u)-f,clearTimeout(c),p?c=setTimeout(h,f):i>=0?h():c=setTimeout(h,-i),l=r};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(e){s=e},d}function Ky(e,t,n,r){var i=e[t];if(i){var o=i[Uy]||i,a=i[qy];if(i[Xy]!==n||a!==r){if(null==n||!r)return e[t]=o;(i=e[t]=Zy(o,n,"debounce"===r))[Uy]=o,i[qy]=r,i[Xy]=n}return i}}function Qy(e,t){var n=e[t];n&&n[Uy]&&(n.clear&&n.clear(),e[t]=n[Uy])}var Jy=$a(),e_=pe,t_=De,n_=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,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,i,e,t,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(e,t);if(a){var h=ke(r_,t,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,t)}else a=this._group=new Xd,this.createPointerEl(a,l,e,t),this.createLabelEl(a,l,e,t),n.getZr().add(a);s_(a,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),r=e.axis,i="category"===r.type,o=t.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=Cy(e).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var o=Jy(e).pointerEl=new j[i.type](e_(t.pointer));e.add(o)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=Jy(e).labelEl=new fa(e_(t.label));e.add(i),o_(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=Jy(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=Jy(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),o_(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(t=!0,i=this._handle=kp(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){$y(e.event)},onmousedown:t_(this._onHandleDragMove,this,0,0),drift:t_(this._onHandleDragMove,this),ondragend:t_(this._onHandleDragEnd,this)}),r.add(i)),s_(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");Te(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,Ky(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){r_(this._axisPointerModel,!t&&this._moveAnimation,this._handle,a_(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(a_(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(a_(r)),Jy(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),Qy(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}},e}();function r_(e,t,n,r){i_(Jy(n).lastProp,r)||(Jy(n).lastProp=r,t?Qf(n,r,e):(n.stopAnimation(),n.attr(r)))}function i_(e,t){if(Re(e)&&Re(t)){var n=!0;return be(t,function(t,r){n=n&&i_(e[r],t)}),!!n}return e===t}function o_(e,t){e[t.get(["label","show"])?"show":"hide"]()}function a_(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function s_(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=i&&(e.zlevel=i),e.silent=n)})}function l_(e,t,n,r,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:nv(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};be(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),Pe(a)?o=a.replace("{value}",o):Ie(a)&&(o=a(s))}return o}function u_(e,t,n){var r=[1,0,0,1,0,0];return Ot(r,r,n.rotation),Rt(r,r,n.position),bp([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}var c_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return X(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=h_(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var c=function(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle()).fill=null:"shadow"===n&&((t=r.getAreaStyle()).stroke=null),t}(r),h=d_[s](o,u,l);h.style=c,e.graphicKey=h.type,e.pointer=h}!function(e,t,n,r,i,o){var a=uy.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),function(e,t,n,r,i){var o=l_(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=ah(a.get("padding")||0),l=a.getFont(),u=cn(o,l),c=i.position,h=u.width+s[1]+s[3],d=u.height+s[0]+s[2],f=i.align;"right"===f&&(c[0]-=h),"center"===f&&(c[0]-=h/2);var p=i.verticalAlign;"bottom"===p&&(c[1]-=d),"middle"===p&&(c[1]-=d/2),function(e,t,n,r){var i=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(c,h,d,r);var g=a.get("backgroundColor");g&&"auto"!==g||(g=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:Ks(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}(t,r,i,o,{position:u_(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}(t,e,cy(a.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=cy(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=u_(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=h_(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[e.x,e.y];u[l]+=t[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:e.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},t}(n_);function h_(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var d_={line:function(e,t,n){var r,i,o;return{type:"Line",subPixelOptimize:!0,shape:(r=[t,n[0]],i=[t,n[1]],o=f_(e),{x1:r[o=o||0],y1:r[1-o],x2:i[o],y2:i[1-o]})}},shadow:function(e,t,n){var r,i,o,a=Math.max(1,e.getBandWidth()),s=n[1]-n[0];return{type:"Rect",shape:(r=[t-a/2,n[0]],i=[a,s],o=f_(e),{x:r[o=o||0],y:r[1-o],width:i[o],height:i[1-o]})}}};function f_(e){return"x"===e.dim?0:1}const p_=c_,g_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return X(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Zh.color.border,width:1,type:"dashed"},shadowStyle:{color:Zh.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:Zh.color.neutral00,padding:[5,7,5,7],backgroundColor:Zh.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:Zh.color.accent40,throttle:40}},t}(Dh);var m_=$a(),v_=be;function y_(e,t,n){if(!at.node){var r=t.getZr();m_(r).records||(m_(r).records={}),function(e,t){function n(n,r){e.on(n,function(n){var i=function(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}(t);v_(m_(e).records,function(e){e&&r(e,n,i.dispatchAction)}),function(e,t){var n,r=e.showTip.length,i=e.hideTip.length;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}(i.pendings,t)})}m_(e).initialized||(m_(e).initialized=!0,n("click",ke(x_,"click")),n("mousemove",ke(x_,"mousemove")),n("globalout",__))}(r,t),(m_(r).records[e]||(m_(r).records[e]={})).handler=n}}function __(e,t,n){e.handler("leave",null,n)}function x_(e,t,n,r){t.handler(e,n,r)}function b_(e,t){if(!at.node){var n=t.getZr();(m_(n).records||{})[e]&&(m_(n).records[e]=null)}}var w_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return X(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent("tooltip"),i=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";y_("axisPointer",n,function(e,t,n){"none"!==i&&("leave"===e||i.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){b_("axisPointer",t)},t.prototype.dispose=function(e,t){b_("axisPointer",t)},t.type="axisPointer",t}(Xg);const S_=w_;function C_(e,t){var n,r=[],i=e.seriesIndex;if(null==i||!(n=t.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=ja(o,e);if(null==a||a<0||Te(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.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),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(o.getValues(we(l.dimensions,function(e){return o.mapDimension(e)}),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var M_=$a();function D_(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||De(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){L_(i)&&(i=C_({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=L_(i),u=o.axesInfo,c=s.axesInfo,h="leave"===r||L_(i),d={},f={},p={list:[],map:{}},g={showPointer:ke(T_,f),showTooltip:ke(I_,p)};be(s.coordSysMap,function(e,t){var n=l||e.containPoint(i);be(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,o=function(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}(u,e);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&k_(e,a,g,!1,d)}})});var m={};return be(c,function(e,t){var n=e.linkGroup;n&&!f[t]&&be(n.axesInfo,function(t,r){var i=f[r];if(t!==e&&i){var o=i.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,P_(t),P_(e)))),m[e.key]=o}})}),be(m,function(e,t){k_(c[t],e,g,!0,d)}),function(e,t,n){var r=n.axesInfo=[];be(t,function(t,n){var i=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}(f,c,d),function(e,t,n,r){if(!L_(t)&&e.list.length){var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}else r({type:"hideTip"})}(p,i,e,a),function(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=M_(r)[i]||{},a=M_(r)[i]={};be(e,function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&e.triggerEmphasis&&be(n.seriesDataIndices,function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e})});var s=[],l=[];be(o,function(e,t){!a[t]&&l.push(e)}),be(a,function(e,t){!o[t]&&s.push(e)}),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 k_(e,t,n,r,i){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=function(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return be(t.seriesModels,function(t,l){var u,c,h=t.getData().mapDimensionsAll(r);if(t.getAxisTooltipData){var d=t.getAxisTooltipData(h,e,n);c=d.dataIndices,u=d.nestestValue}else{if(!(c=t.indicesOfNearest(r,h[0],e,"category"===n.type?.5:null)).length)return;u=t.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var f=e-u,p=Math.abs(f);p<=a&&((p<a||f>=0&&s<0)&&(a=p,s=f,i=u,o.length=0),be(c,function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:o,snapToValue:i}}(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&me(i,s[0]),!r&&e.snap&&o.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}else n.showPointer(e,t)}function T_(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function I_(e,t,n,r){var i=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var l=t.coordSys.model,u=Dy(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function P_(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function L_(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function A_(e){Ty.registerAxisPointerClass("CartesianAxisPointer",p_),e.registerComponentModel(g_),e.registerComponentView(S_),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!Te(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=function(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];be(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var s=Dy(n.model),l=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var u=n.model.getModel("tooltip",r);if(be(n.getAxes(),ke(f,!1,null)),n.getTooltipAxes&&r&&u.get("show")){var c="axis"===u.get("trigger"),h="cross"===u.get(["axisPointer","type"]),d=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||h)&&be(d.baseAxes,ke(f,!h||"cross",c)),h&&be(d.otherAxes,ke(f,"cross",!1))}}function f(r,s,c){var h=c.model.getModel("axisPointer",i),d=h.get("show");if(d&&("auto"!==d||r||My(h))){null==s&&(s=h.get("triggerTooltip")),h=r?function(e,t,n,r,i,o){var a=t.getModel("axisPointer"),s={};be(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(e){s[e]=pe(a.get(e))}),s.snap="category"!==e.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===i){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&ve(l,c.textStyle)}}return e.model.getModel("axisPointer",new yl(s,n,r))}(c,u,i,t,r,s):h;var f=h.get("snap"),p=h.get("triggerEmphasis"),g=Dy(c.model),m=s||f||"category"===c.type,v=e.axesInfo[g]={key:g,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,triggerEmphasis:p,involveSeries:m,snap:f,useHandle:My(h),seriesModels:[],linkGroup:null};l[g]=v,e.seriesInvolved=e.seriesInvolved||m;var y=function(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(Sy(o[r+"AxisId"],n.id)||Sy(o[r+"AxisIndex"],n.componentIndex)||Sy(o[r+"AxisName"],n.name))return i}}(o,c);if(null!=y){var _=a[y]||(a[y]={axesInfo:{}});_.axesInfo[g]=v,_.mapper=o[y].mapper,v.linkGroup=_}}}})}(n,e,t),n.seriesInvolved&&function(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);n&&n.model&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&be(e.coordSysAxesInfo[Dy(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())})})}(n,e),n}(e,t)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},D_)}var R_=function(e,t){this.target=e,this.topTarget=t&&t.topTarget},O_=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new R_(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,t.drift(i,o,e),this.handler.dispatchToElement(new R_(t,e),"drag",e.event);var a=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=a,t!==a&&(s&&a!==s&&this.handler.dispatchToElement(new R_(s,e),"dragleave",e.event),a&&a!==s&&this.handler.dispatchToElement(new R_(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new R_(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new R_(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}();const N_=O_;var F_=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},o=0,a=r.length;o<a;o++){var s=r[o],l=Hy(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in E_)if(E_.hasOwnProperty(t)){var n=E_[t](this._track,e);if(n)return n}},e}();function z_(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var E_={pinch:function(e,t){var n=e.length;if(n){var r,i=(e[n-1]||{}).points,o=(e[n-2]||{}).points||i;if(o&&o.length>1&&i&&i.length>1){var a=z_(i)/z_(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}},B_="silent";function V_(){$y(this.event)}var H_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return xt(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(ci),G_=function(e,t){this.x=e,this.y=t},W_=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Y_=new nn(0,0,0,0),j_=function(e){function t(t,n,r,i,o){var a=e.call(this)||this;return a._hovered=new G_(0,0),a.storage=t,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new H_,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new N_(a),a}return xt(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(be(W_,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=X_(this,t,n),i=this._hovered,o=i.target;o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target);var a=this._hovered=r?new G_(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new G_(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){var r=(e=e||{}).target;if(!r||!r.silent){for(var i="on"+t,o=function(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.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:V_}}(t,e,n);r&&(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(t,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){"function"==typeof e[i]&&e[i].call(e,o),e.trigger&&e.trigger(t,o)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new G_(e,t);if(U_(r,i,e,t,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new nn(e-s,t-s,a,a),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(Y_.copy(c.getBoundingRect()),c.transform&&Y_.applyTransform(c.transform),Y_.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(U_(o,i,e+f*Math.cos(p),t+f*Math.sin(p),n),i.target)return i}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new F_);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var i=r.type;e.gestureEvent=i;var o=new G_;o.target=r.target,this.dispatchToElement(o,i,r.event)}},t}(ci);function $_(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||B_}return!1}function U_(e,t,n,r,i){for(var o=e.length-1;o>=0;o--){var a=e[o],s=void 0;if(a!==i&&!a.ignore&&(s=$_(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==B_)){t.target=a;break}}}function X_(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}be(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){j_.prototype[e]=function(t){var n,r,i=t.zrX,o=t.zrY,a=X_(this,i,o);if("mouseup"===e&&a||(r=(n=this.findHover(i,o)).target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||Vn(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}});const q_=j_;function Z_(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;!function(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function K_(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var o,a=e[r],s=t,l=r;s<l;)i(a,e[o=s+l>>>1])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;u>0;)e[s+u]=e[s+u-1],u--}e[s]=a}}function Q_(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){for(s=r-i;l<s&&o(e,t[n+i+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(e,t[n+i-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function J_(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){for(s=i+1;l<s&&o(e,t[n+i-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l<s&&o(e,t[n+i+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function ex(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var o=0;if(i<32)K_(e,n,r,n+(o=Z_(e,n,r,t)),t);else{var a=function(e,t){var n,r,i=7,o=0,a=[];function s(s){var l=n[s],u=r[s],c=n[s+1],h=r[s+1];r[s]=u+h,s===o-3&&(n[s+1]=n[s+2],r[s+1]=r[s+2]),o--;var d=J_(e[c],e,l,u,0,t);l+=d,0!==(u-=d)&&0!==(h=Q_(e[l+u-1],e,c,h,h-1,t))&&(u<=h?function(n,r,o,s){var l=0;for(l=0;l<r;l++)a[l]=e[n+l];var u=0,c=o,h=n;if(e[h++]=e[c++],0!==--s)if(1!==r){for(var d,f,p,g=i;;){d=0,f=0,p=!1;do{if(t(e[c],a[u])<0){if(e[h++]=e[c++],f++,d=0,0===--s){p=!0;break}}else if(e[h++]=a[u++],d++,f=0,1===--r){p=!0;break}}while((d|f)<g);if(p)break;do{if(0!==(d=J_(e[c],a,u,r,0,t))){for(l=0;l<d;l++)e[h+l]=a[u+l];if(h+=d,u+=d,(r-=d)<=1){p=!0;break}}if(e[h++]=e[c++],0===--s){p=!0;break}if(0!==(f=Q_(a[u],e,c,s,0,t))){for(l=0;l<f;l++)e[h+l]=e[c+l];if(h+=f,c+=f,0===(s-=f)){p=!0;break}}if(e[h++]=a[u++],1===--r){p=!0;break}g--}while(d>=7||f>=7);if(p)break;g<0&&(g=0),g+=2}if((i=g)<1&&(i=1),1===r){for(l=0;l<s;l++)e[h+l]=e[c+l];e[h+s]=a[u]}else{if(0===r)throw new Error;for(l=0;l<r;l++)e[h+l]=a[u+l]}}else{for(l=0;l<s;l++)e[h+l]=e[c+l];e[h+s]=a[u]}else for(l=0;l<r;l++)e[h+l]=a[u+l]}(l,u,c,h):function(n,r,o,s){var l=0;for(l=0;l<s;l++)a[l]=e[o+l];var u=n+r-1,c=s-1,h=o+s-1,d=0,f=0;if(e[h--]=e[u--],0!==--r)if(1!==s){for(var p=i;;){var g=0,m=0,v=!1;do{if(t(a[c],e[u])<0){if(e[h--]=e[u--],g++,m=0,0===--r){v=!0;break}}else if(e[h--]=a[c--],m++,g=0,1===--s){v=!0;break}}while((g|m)<p);if(v)break;do{if(0!==(g=r-J_(a[c],e,n,r,r-1,t))){for(r-=g,f=1+(h-=g),d=1+(u-=g),l=g-1;l>=0;l--)e[f+l]=e[d+l];if(0===r){v=!0;break}}if(e[h--]=a[c--],1===--s){v=!0;break}if(0!==(m=s-Q_(e[u],a,0,s,s-1,t))){for(s-=m,f=1+(h-=m),d=1+(c-=m),l=0;l<m;l++)e[f+l]=a[d+l];if(s<=1){v=!0;break}}if(e[h--]=e[u--],0===--r){v=!0;break}p--}while(g>=7||m>=7);if(v)break;p<0&&(p=0),p+=2}if((i=p)<1&&(i=1),1===s){for(f=1+(h-=r),d=1+(u-=r),l=r-1;l>=0;l--)e[f+l]=e[d+l];e[h]=a[c]}else{if(0===s)throw new Error;for(d=h-(s-1),l=0;l<s;l++)e[d+l]=a[l]}}else{for(f=1+(h-=r),d=1+(u-=r),l=r-1;l>=0;l--)e[f+l]=e[d+l];e[h]=a[c]}else for(d=h-(s-1),l=0;l<s;l++)e[d+l]=a[l]}(l,u,c,h))}return n=[],r=[],{mergeRuns:function(){for(;o>1;){var e=o-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]<r[e+1]&&e--;else if(r[e]>r[e+1])break;s(e)}},forceMergeRuns:function(){for(;o>1;){var e=o-2;e>0&&r[e-1]<r[e+1]&&e--,s(e)}},pushRun:function(e,t){n[o]=e,r[o]=t,o+=1}}}(e,t),s=function(e){for(var t=0;e>=32;)t|=1&e,e>>=1;return e+t}(i);do{if((o=Z_(e,n,r,t))<s){var l=i;l>s&&(l=s),K_(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}}var tx=!1;function nx(){tx||(tx=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function rx(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var ix=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=rx}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,ex(n,rx)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath(),i=t&&t.length,o=0,a=e.__clipPaths;if(!e.ignoreClip&&(i||r)){if(a||(a=e.__clipPaths=[]),i)for(var s=0;s<t.length;s++)a[o++]=t[s];for(var l=r,u=e;l;)l.parent=u,l.updateTransform(),a[o++]=l,u=l,l=l.getClipPath()}if(a&&(a.length=o),e.childrenRef){for(var c=e.childrenRef(),h=0;h<c.length;h++){var d=c[h];e.__dirty&&(d.__dirty|=1),this._updateAndAddDisplayable(d,a,n)}e.__dirty=0}else{var f=e;isNaN(f.z)&&(nx(),f.z=0),isNaN(f.z2)&&(nx(),f.z2=0),isNaN(f.zlevel)&&(nx(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var p=e.getDecalElement&&e.getDecalElement();p&&this._updateAndAddDisplayable(p,a,n);var g=e.getTextGuideLine();g&&this._updateAndAddDisplayable(g,a,n);var m=e.getTextContent();m&&this._updateAndAddDisplayable(m,a,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var r=ye(this._roots,e);r>=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const ox=ix,ax=at.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function sx(){return(new Date).getTime()}var lx=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return xt(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=sx()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,ax(function t(){e._running&&(ax(t),!e._paused&&e.update())})},t.prototype.start=function(){this._running||(this._time=sx(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=sx(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=sx()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new li(e,t.loop);return this.addAnimator(n),n},t}(ci);const ux=lx;var cx,hx,dx=at.domSupported,fx=(hx={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:cx=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:we(cx,function(e){var t=e.replace("mouse","pointer");return hx.hasOwnProperty(t)?t:e})}),px=["mousemove","mouseup"],gx=["pointermove","pointerup"],mx=!1;function vx(e){var t=e.pointerType;return"pen"===t||"touch"===t}function yx(e){e&&(e.zrByTouch=!0)}function _x(e,t){for(var n=t,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var xx=function(e,t){this.stopPropagation=nt,this.stopImmediatePropagation=nt,this.preventDefault=nt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},bx={mousedown:function(e){e=Yy(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Yy(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Yy(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){_x(this,(e=Yy(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){mx=!0,e=Yy(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){mx||(e=Yy(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){yx(e=Yy(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),bx.mousemove.call(this,e),bx.mousedown.call(this,e)},touchmove:function(e){yx(e=Yy(this.dom,e)),this.handler.processGesture(e,"change"),bx.mousemove.call(this,e)},touchend:function(e){yx(e=Yy(this.dom,e)),this.handler.processGesture(e,"end"),bx.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<300&&bx.click.call(this,e)},pointerdown:function(e){bx.mousedown.call(this,e)},pointermove:function(e){vx(e)||bx.mousemove.call(this,e)},pointerup:function(e){bx.mouseup.call(this,e)},pointerout:function(e){vx(e)||bx.mouseout.call(this,e)}};be(["click","dblclick","contextmenu"],function(e){bx[e]=function(t){t=Yy(this.dom,t),this.trigger(e,t)}});var Sx={pointermove:function(e){vx(e)||Sx.mousemove.call(this,e)},pointerup:function(e){Sx.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function Cx(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,function(e,t,n,r){e.addEventListener(t,n,r)}(e.domTarget,t,n,r)}function Mx(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&jy(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var Dx=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t};const kx=function(e){function t(t,n){var r,i,o,a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=t,a.painterRoot=n,a._localHandlerScope=new Dx(t,bx),dx&&(a._globalHandlerScope=new Dx(document,Sx)),r=a,i=a._localHandlerScope,o=i.domHandlers,at.pointerEventsSupported?be(fx.pointer,function(e){Cx(i,e,function(t){o[e].call(r,t)})}):(at.touchEventsSupported&&be(fx.touch,function(e){Cx(i,e,function(t){o[e].call(r,t),function(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}(i)})}),be(fx.mouse,function(e){Cx(i,e,function(t){t=Wy(t),i.touching||o[e].call(r,t)})})),a}return xt(t,e),t.prototype.dispose=function(){Mx(this._localHandlerScope),dx&&Mx(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,dx&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?function(e,t){function n(n){Cx(t,n,function(r){r=Wy(r),_x(e,r.target)||(r=function(e,t){return Yy(e.dom,new xx(e,t),!0)}(e,r),t.domHandlers[n].call(e,r))},{capture:!0})}at.pointerEventsSupported?be(gx,n):at.touchEventsSupported||be(px,n)}(this,t):Mx(t)}},t}(ci);var Tx={},Ix={},Px=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var i=new ox,o=n.renderer||"canvas";Tx[o]||(o=Me(Tx)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new Tx[o](t,i,n,e),s=n.ssr||a.ssrOnly;this.storage=i,this.painter=a;var l,u=at.node||at.worker||s?null:new kx(a.getViewportRoot(),a.root),c=n.useCoarsePointer;(null==c||"auto"===c?at.touchEventsSupported:!!c)&&(l=Ve(n.pointerSize,44)),this.handler=new q_(i,a,u,a.root,l),this.animation=new ux({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if("string"==typeof e)return jr(e,1)<.4;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=jr(t[i].color,1);return(n/=r)<.4}return!1}(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=sx();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=sx();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Xd&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){var e;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,e=this.id,delete Ix[e])},e}();function Lx(e,t){var n=new Px(de(),e,t);return Ix[n.id]=n,n}var Ax="";"undefined"!=typeof navigator&&(Ax=navigator.platform||"");var Rx="rgba(0, 0, 0, 0.2)",Ox=Zh.color.theme[0],Nx=Wr(Ox,null,null,.9);const Fx={darkMode:"auto",colorBy:"series",color:Zh.color.theme,gradientColor:[Nx,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:Ax.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 zx,Ex,Bx,Vx=Qe(),Hx="\0_ec_inner",Gx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return X(t,e),t.prototype.init=function(e,t,n,r,i,o){r=r||{},this.option=null,this._theme=new yl(r),this._locale=new yl(i),this._optionManager=o},t.prototype.setOption=function(e,t,n){var r=jx(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,jx(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):Bx(this,i),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,t))}if(!e||"recreate"===e||"media"===e){var a=r.getMediaOption(this);a.length&&be(a,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=Qe(),s=t&&t.replaceMergeMainTypeMap;Al(this).datasetMap=Qe(),be(e,function(e,t){null!=e&&(Dh.hasClass(t)?t&&(o.push(t),a.set(t,!0)):n[t]=null==n[t]?pe(e):ge(n[t],e,!0))}),s&&s.each(function(e,t){Dh.hasClass(t)&&!a.get(t)&&(o.push(t),a.set(t,!0))}),Dh.topologicalTravel(o,Dh.getAllClassMainTypes(),function(t){var o=function(e,t,n){var r=Vx.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}(this,t,Na(e[t])),a=r.get(t),l=function(e,t,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;e=e||[],t=(t||[]).slice();var a=Qe();be(t,function(e,n){Re(e)||(t[n]=null)});var s,l,u=function(e,t,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<e.length;i++){var o=e[i];o&&null!=o.id&&t.set(o.id,i),r.push({existing:"replaceMerge"===n||Ya(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}(e,a,n);return(r||i)&&function(e,t,n,r){be(r,function(i,o){if(i&&null!=i.id){var a=Ha(i.id),s=n.get(a);if(null!=s){var l=e[s];Ye(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=t[s],r[o]=null}}})}(u,e,a,t),r&&function(e,t){be(t,function(n,r){if(n&&null!=n.name)for(var i=0;i<e.length;i++){var o=e[i].existing;if(!e[i].newOption&&o&&(null==o.id||null==n.id)&&!Ya(n)&&!Ya(o)&&Va("name",o,n))return e[i].newOption=n,void(t[r]=null)}})}(u,t),r||i?function(e,t,n){be(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||Ya(r.existing)||r.existing&&null!=t.id&&!Va("id",t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}(u,t,i):o&&function(e,t){be(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}(u,t),s=u,l=Qe(),be(s,function(e){var t=e.existing;t&&l.set(t.id,e)}),be(s,function(e){var t=e.newOption;Ye(!t||null==t.id||!l.get(t.id)||l.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&l.set(t.id,e),!e.keyInfo&&(e.keyInfo={})}),be(s,function(e,t){var n=e.existing,r=e.newOption,i=e.keyInfo;if(Re(r)){if(i.name=null!=r.name?Ha(r.name):n?n.name:Oa+t,n)i.id=Ha(n.id);else if(null!=r.id)i.id=Ha(r.id);else{var o=0;do{i.id="\0"+i.name+"\0"+o++}while(l.get(i.id))}l.set(i.id,e)}}),u}(a,o,a?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll");(function(e,t,n){be(e,function(e){var r=e.newOption;Re(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=function(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}(t,r,e.existing,n))})})(l,t,Dh),n[t]=null,r.set(t,null),i.set(t,0);var u,c=[],h=[],d=0;be(l,function(e,n){var r=e.existing,i=e.newOption;if(i){var o="series"===t,a=Dh.getClass(t,e.keyInfo.subType,!o);if(!a)return;if("tooltip"===t){if(u)return;u=!0}if(r&&r.constructor===a)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=me({componentIndex:n},e.keyInfo);me(r=new a(i,this,this,s),s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(c.push(r.option),h.push(r),d++):(c.push(void 0),h.push(void 0))},this),n[t]=c,r.set(t,h),i.set(t,d),"series"===t&&zx(this)},this),this._seriesIndices||zx(this)},t.prototype.getOption=function(){var e=pe(this.option);return be(e,function(t,n){if(Dh.hasClass(n)){for(var r=Na(t),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!Ya(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,e[n]=r}}),delete e[Hx],e},t.prototype.setTheme=function(e){this._theme=new yl(e),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(null==t)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,r=e.index,i=e.id,o=e.name,a=this._componentsMap.get(t);return a&&a.length?(null!=r?(n=[],be(Na(r),function(e){a[e]&&n.push(a[e])})):n=null!=i?Wx("id",i,a):null!=o?Wx("name",o,a):Ce(a,function(e){return!!e}),Yx(n,e)):[]},t.prototype.findComponents=function(e){var t,n,r,i,o,a=e.query,s=e.mainType,l=(n=s+"Index",r=s+"Id",i=s+"Name",!(t=a)||null==t[n]&&null==t[r]&&null==t[i]?null:{mainType:s,index:t[n],id:t[r],name:t[i]});return o=Yx(l?this.queryComponents(l):Ce(this._componentsMap.get(s),function(e){return!!e}),e),e.filter?Ce(o,e.filter):o},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(Ie(e)){var i=t,o=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&o.call(i,t,r,r.componentIndex)}})}else for(var a=Pe(e)?r.get(e):Re(e)?this.findComponents(e):null,s=0;a&&s<a.length;s++){var l=a[s];l&&t.call(n,l,l.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=Ga(e,null);return Ce(this._componentsMap.get("series"),function(e){return!!e&&null!=t&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Ce(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return Ce(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){Ex(this),be(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){be(this._componentsMap.get("series"),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){Ex(this),be(this._seriesIndices,function(r){var i=this._componentsMap.get("series")[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return be(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return Ex(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){Ex(this);var n=[];be(this._seriesIndices,function(r){var i=this._componentsMap.get("series")[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=Qe(n)},t.prototype.restoreData=function(e){zx(this);var t=this._componentsMap,n=[];t.each(function(e,t){Dh.hasClass(t)&&n.push(t)}),Dh.topologicalTravel(n,Dh.getAllClassMainTypes(),function(n){be(t.get(n),function(t){!t||"series"===n&&function(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=i&&e.name!==i}}(t,e)||t.restoreData()})})},t.internalField=(zx=function(e){var t=e._seriesIndices=[];be(e._componentsMap.get("series"),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=Qe(t)},Ex=function(e){},void(Bx=function(e,t){e.option={},e.option[Hx]=1,e._componentsMap=Qe({series:[]}),e._componentsCount=Qe();var n=t.aria;Re(n)&&null==n.enabled&&(n.enabled=!0),function(e,t){var n=e.color&&!e.colorLayer;be(t,function(t,r){"colorLayer"===r&&n||"color"===r&&e.color||Dh.hasClass(r)||("object"==typeof t?e[r]=e[r]?ge(e[r],t,!1):pe(t):null==e[r]&&(e[r]=t))})}(t,e._theme.option),ge(t,Fx,!1),e._mergeOption(t,null)})),t}(yl);function Wx(e,t,n){if(Te(t)){var r=Qe();return be(t,function(e){null!=e&&null!=Ga(e,null)&&r.set(e,!0)}),Ce(n,function(t){return t&&r.get(t[e])})}var i=Ga(t,null);return Ce(n,function(t){return t&&null!=i&&t[e]===i})}function Yx(e,t){return t.hasOwnProperty("subType")?Ce(e,function(e){return e&&e.subType===t.subType}):e}function jx(e){var t=Qe();return e&&be(Na(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}_e(Gx,Th);const $x=Gx;var Ux=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];const Xx=function(e){be(Ux,function(t){this[t]=De(e[t],e)},this)};var qx=/^(min|max)?(.+)$/,Zx=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(be(Na(e.series),function(e){e&&e.data&&Ne(e.data)&&Ue(e.data)}),be(Na(e.dataset),function(e){e&&e.source&&Ne(e.source)&&Ue(e.source)})),e=pe(e);var r=this._optionBackup,i=function(e,t,n){var r,i,o=[],a=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,h=!!(l||s||a&&a.timeline);function d(e){be(t,function(t){t(e,n)})}return a?(i=a).timeline||(i.timeline=s):((h||c)&&(e.options=e.media=null),i=e),c&&Te(u)&&be(u,function(e){e&&e.option&&(e.query?o.push(e):r||(r=e))}),d(i),be(l,function(e){return d(e)}),be(o,function(e){return d(e.option)}),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:o}}(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],pe(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent("timeline");r&&(t=pe(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,r=this._api.getWidth(),i=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++)Kx(o[u].query,r,i)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(t=s,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(l=we(s,function(e){return pe(-1===e?a.option:o[e].option)})),this._currentMediaIndices=s,l},e}();function Kx(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return be(e,function(e,t){var n=t.match(qx);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t})(r[a],e,o)||(i=!1)}}),i}const Qx=Zx;var Jx=be,eb=Re,tb=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function nb(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=tb.length;n<r;n++){var i=tb[n],o=t.normal,a=t.emphasis;o&&o[i]&&(e[i]=e[i]||{},e[i].normal?ge(e[i].normal,o[i]):e[i].normal=o[i],o[i]=null),a&&a[i]&&(e[i]=e[i]||{},e[i].emphasis?ge(e[i].emphasis,a[i]):e[i].emphasis=a[i],a[i]=null)}}function rb(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,ve(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function ib(e){rb(e,"itemStyle"),rb(e,"lineStyle"),rb(e,"areaStyle"),rb(e,"label"),rb(e,"labelLine"),rb(e,"upperLabel"),rb(e,"edgeLabel")}function ob(e,t){var n=eb(e)&&e[t],r=eb(n)&&n.textStyle;if(r)for(var i=0,o=za.length;i<o;i++){var a=za[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}function ab(e){e&&(ib(e),ob(e,"label"),e.emphasis&&ob(e.emphasis,"label"))}function sb(e){return Te(e)?e:e?[e]:[]}function lb(e){return(Te(e)?e[0]:e)||{}}function ub(e){e&&be(cb,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var cb=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],hb=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],db=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function fb(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<db.length;n++){var r=db[n][1],i=db[n][0];null!=t[r]&&(t[i]=t[r])}}function pb(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function gb(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function mb(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&mb(e[n].children,t)}function vb(e,t){(function(e,t){Jx(sb(e.series),function(e){eb(e)&&function(e){if(eb(e)){nb(e),ib(e),ob(e,"label"),ob(e,"upperLabel"),ob(e,"edgeLabel"),e.emphasis&&(ob(e.emphasis,"label"),ob(e.emphasis,"upperLabel"),ob(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(nb(t),ab(t));var n=e.markLine;n&&(nb(n),ab(n));var r=e.markArea;r&&ab(r);var i=e.data;if("graph"===e.type){i=i||e.nodes;var o=e.links||e.edges;if(o&&!Ne(o))for(var a=0;a<o.length;a++)ab(o[a]);be(e.categories,function(e){ib(e)})}if(i&&!Ne(i))for(a=0;a<i.length;a++)ab(i[a]);if((t=e.markPoint)&&t.data){var s=t.data;for(a=0;a<s.length;a++)ab(s[a])}if((n=e.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)Te(l[a])?(ab(l[a][0]),ab(l[a][1])):ab(l[a])}"gauge"===e.type?(ob(e,"axisLabel"),ob(e,"title"),ob(e,"detail")):"treemap"===e.type?(rb(e.breadcrumb,"itemStyle"),be(e.levels,function(e){ib(e)})):"tree"===e.type&&ib(e.leaves)}}(e)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Jx(n,function(t){Jx(sb(e[t]),function(e){e&&(ob(e,"axisLabel"),ob(e.axisPointer,"label"))})}),Jx(sb(e.parallel),function(e){var t=e&&e.parallelAxisDefault;ob(t,"axisLabel"),ob(t&&t.axisPointer,"label")}),Jx(sb(e.calendar),function(e){rb(e,"itemStyle"),ob(e,"dayLabel"),ob(e,"monthLabel"),ob(e,"yearLabel")}),Jx(sb(e.radar),function(e){ob(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),Jx(sb(e.geo),function(e){eb(e)&&(ab(e),Jx(sb(e.regions),function(e){ab(e)}))}),Jx(sb(e.timeline),function(e){ab(e),rb(e,"label"),rb(e,"itemStyle"),rb(e,"controlStyle",!0);var t=e.data;Te(t)&&be(t,function(e){Re(e)&&(rb(e,"label"),rb(e,"itemStyle"))})}),Jx(sb(e.toolbox),function(e){rb(e,"iconStyle"),Jx(e.feature,function(e){rb(e,"iconStyle")})}),ob(lb(e.axisPointer),"label"),ob(lb(e.tooltip).axisPointer,"label")})(e,t),e.series=Na(e.series),be(e.series,function(e){if(Re(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){if(null!=e.clockWise&&(e.clockwise=e.clockWise),pb(e.label),(i=e.data)&&!Ne(i))for(var n=0;n<i.length;n++)pb(i[n]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var r=function(e){for(var t="pointer.color".split(","),n=e,r=0;r<t.length&&null!=(n=n&&n[t[r]]);r++);return n}(e);null!=r&&function(e,t,n){for(var r,i="itemStyle.color".split(","),o=e,a=0;a<i.length-1;a++)null==o[r=i[a]]&&(o[r]={}),o=o[r];null==o[i[a]]&&(o[i[a]]=n)}(e,0,r)}else if("bar"===t){var i;if(fb(e),fb(e.backgroundStyle),fb(e.emphasis),(i=e.data)&&!Ne(i))for(n=0;n<i.length;n++)"object"==typeof i[n]&&(fb(i[n]),fb(i[n]&&i[n].emphasis))}else if("sunburst"===t){var o=e.highlightPolicy;o&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=o)),gb(e),mb(e.data,gb)}else"graph"===t||"sankey"===t?function(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency"))}(e):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&ve(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),ub(e)}}),e.dataRange&&(e.visualMap=e.dataRange),be(hb,function(t){var n=e[t];n&&(Te(n)||(n=[n]),be(n,function(e){ub(e)}))})}var yb=$a(),_b={itemStyle:mt(pl,!0),lineStyle:mt(hl,!0)},xb={lineStyle:"stroke",itemStyle:"fill"};function bb(e,t){return e.visualStyleMapper||_b[t]||(console.warn("Unknown style type '"+t+"'."),_b.itemStyle)}function wb(e,t){return e.visualDrawType||xb[t]||(console.warn("Unknown style type '"+t+"'."),"fill")}var Sb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=bb(e,r)(i),a=i.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=wb(e,r),l=o[s],u=Ie(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[s]||(o[s]=h,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||Ie(o.fill)?h:o.fill,o.stroke="auto"===o.stroke||Ie(o.stroke)?h:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!t.isSeriesFiltered(e)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=me({},o);i[s]=u(r),t.setItemVisual(n,"style",i)}}}},Cb=new yl,Mb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=bb(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){Cb.option=n[r];var a=i(Cb);me(e.ensureUniqueItemVisual(t,"style"),a),Cb.option.decal&&(e.setItemVisual(t,"decal",Cb.option.decal),Cb.option.decal.dirty=!0),o in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},Db={performRawSeries:!0,overallReset:function(e){var t=Qe();e.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+n,i=t.get(r);i||(i={},t.set(r,i)),yb(e).scope=i}}),e.eachSeries(function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),r={},i=t.getData(),o=yb(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=wb(t,a);i.each(function(e){var t=i.getRawIndex(e);r[t]=e}),n.each(function(e){var a=r[e];if(i.getItemVisual(a,"colorFromPalette")){var l=i.ensureUniqueItemVisual(a,"style"),u=n.getName(e)||e+"",c=n.count();l[s]=t.getColorFromPalette(u,o,c)}})}})}},kb=Math.PI,Tb=function(){function e(e,t,n,r){this._stageTaskMap=Qe(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,o=r&&r.modDataCount;return{step:i,modBy:null!=o?Math.ceil(o/i):null,modDataCount:o}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,o=e.get("large")&&r>=e.get("largeThreshold"),a="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:i,modDataCount:a,large:o}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Qe();e.eachSeries(function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;be(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});Ye(!(r.reset&&r.overallReset),""),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r=r||{};var i=!1,o=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}be(e,function(e,s){if(!r.visualType||r.visualType===e.visualType){var l=o._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each(function(e){a(r,e)&&(e.dirty(),h=!0)}),h&&c.dirty(),o.updatePayload(c,n);var f=o.getPerformArgs(c,r.block);d.each(function(e){e.perform(f)}),c.perform(f)&&(i=!0)}else u&&u.each(function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)})}}),this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,o=t.seriesTaskMap,a=t.seriesTaskMap=Qe(),s=e.seriesType,l=e.getTargetSeries;function u(t){var s=t.uid,l=a.set(s,o&&o.get(s)||Ah({plan:Rb,reset:Ob,count:zb}));l.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,o=t.overallTask=t.overallTask||Ah({reset:Ib});o.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=Qe(),l=e.seriesType,u=e.getTargetSeries,c=!0,h=!1;function d(e){var t=e.uid,n=s.set(t,a&&a.get(t)||(h=!0,Ah({reset:Pb,onDirty:Ab})));n.context={model:e,overallProgress:c},n.agent=o,n.__block=c,i._pipe(e,n)}Ye(!e.createOnAllSeries,""),l?n.eachRawSeriesByType(l,d):u?u(n,r).each(d):(c=!1,be(n.getSeries(),d)),h&&o.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return Ie(e)&&(e={overallReset:e,seriesType:Eb(e)}),e.uid=cc("stageHandler"),t&&(e.visualType=t),e},e}();function Ib(e){e.overallReset(e.ecModel,e.api,e.payload)}function Pb(e){return e.overallProgress&&Lb}function Lb(){this.agent.dirty(),this.getDownstream().dirty()}function Ab(){this.agent&&this.agent.dirty()}function Rb(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Ob(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Na(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?we(t,function(e,t){return Fb(t)}):Nb}var Nb=Fb(0);function Fb(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(t,r)}}function zb(e){return e.data.count()}function Eb(e){Bb=null;try{e(Vb,Hb)}catch(e){}return Bb}var Bb,Vb={},Hb={};function Gb(e,t){for(var n in t.prototype)e[n]=nt}Gb(Vb,$x),Gb(Hb,Xx),Vb.eachSeriesByType=Vb.eachRawSeriesByType=function(e){Bb=e},Vb.eachComponent=function(e){"series"===e.mainType&&e.subType&&(Bb=e.subType)};const Wb=Tb;var Yb,jb=Zh.darkColor,$b=jb.background,Ub=function(){return{axisLine:{lineStyle:{color:jb.axisLine}},splitLine:{lineStyle:{color:jb.axisSplitLine}},splitArea:{areaStyle:{color:[jb.backgroundTint,jb.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:jb.axisMinorSplitLine}},axisLabel:{color:jb.axisLabel},axisName:{}}},Xb={label:{color:jb.secondary},itemStyle:{borderColor:jb.borderTint},dividerLineStyle:{color:jb.border}},qb={darkMode:!0,color:jb.theme,backgroundColor:$b,axisPointer:{lineStyle:{color:jb.border},crossStyle:{color:jb.borderShade},label:{color:jb.tertiary}},legend:{textStyle:{color:jb.secondary},pageTextStyle:{color:jb.tertiary}},textStyle:{color:jb.secondary},title:{textStyle:{color:jb.primary},subtextStyle:{color:jb.quaternary}},toolbox:{iconStyle:{borderColor:jb.accent50}},tooltip:{backgroundColor:jb.neutral20,defaultBorderColor:jb.border,textStyle:{color:jb.tertiary}},dataZoom:{borderColor:jb.accent10,textStyle:{color:jb.tertiary},brushStyle:{color:jb.backgroundTint},handleStyle:{color:jb.neutral00,borderColor:jb.accent20},moveHandleStyle:{color:jb.accent40},emphasis:{handleStyle:{borderColor:jb.accent50}},dataBackground:{lineStyle:{color:jb.accent30},areaStyle:{color:jb.accent20}},selectedDataBackground:{lineStyle:{color:jb.accent50},areaStyle:{color:jb.accent30}}},visualMap:{textStyle:{color:jb.secondary},handleStyle:{borderColor:jb.neutral30}},timeline:{lineStyle:{color:jb.accent10},label:{color:jb.tertiary},controlStyle:{color:jb.accent30,borderColor:jb.accent30}},calendar:{itemStyle:{color:jb.neutral00,borderColor:jb.neutral20},dayLabel:{color:jb.tertiary},monthLabel:{color:jb.secondary},yearLabel:{color:jb.secondary}},matrix:{x:Xb,y:Xb,backgroundColor:{borderColor:jb.axisLine},body:{itemStyle:{borderColor:jb.borderTint}}},timeAxis:Ub(),logAxis:Ub(),valueAxis:Ub(),categoryAxis:Ub(),line:{symbol:"circle"},graph:{color:jb.theme},gauge:{title:{color:jb.secondary},axisLine:{lineStyle:{color:[[1,jb.neutral05]]}},axisLabel:{color:jb.axisLabel},detail:{color:jb.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:jb.background}},radar:(Yb=Ub(),Yb.axisName={color:jb.axisLabel},Yb.axisLine.lineStyle.color=jb.neutral20,Yb),treemap:{breadcrumb:{itemStyle:{color:jb.neutral20,textStyle:{color:jb.secondary}},emphasis:{itemStyle:{color:jb.neutral30}}}},sunburst:{itemStyle:{borderColor:jb.background}},map:{itemStyle:{borderColor:jb.border,areaColor:jb.neutral10},label:{color:jb.tertiary},emphasis:{label:{color:jb.primary},itemStyle:{areaColor:jb.highlight}},select:{label:{color:jb.primary},itemStyle:{areaColor:jb.highlight}}},geo:{itemStyle:{borderColor:jb.border,areaColor:jb.neutral10},emphasis:{label:{color:jb.primary},itemStyle:{areaColor:jb.highlight}},select:{label:{color:jb.primary},itemStyle:{color:jb.highlight}}}};qb.categoryAxis.splitLine.show=!1;const Zb=qb;var Kb=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(Pe(e)){var i=ut(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};be(e,function(e,i){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var h=i.slice(0,c);"data"!==h&&(t.mainType=h,t[u.toLowerCase()]=e,s=!0)}}a.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=t.cptQuery,l=t.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,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,r,i));function u(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Qb=["symbol","symbolSize","symbolRotate","symbolOffset"],Jb=Qb.concat(["symbolKeepAspect"]),ew={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a<Qb.length;a++){var s=Qb[a],l=e.get(s);Ie(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(me({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),!t.isSeriesFiltered(e)){var u=Me(i);return{dataEach:o?function(t,n){for(var r=e.getRawValue(n),o=e.getDataParams(n),a=0;a<u.length;a++){var s=u[a];t.setItemVisual(n,s,i[s](r,o))}}:null}}}}},tw={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),r=0;r<Jb.length;r++){var i=Jb[r],o=n.getShallow(i,!0);null!=o&&e.setItemVisual(t,i,o)}}:null}}};function nw(e,t,n,r,i){var o=e+t;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,a=i.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===t){var l=e.getData(),u=ja(l,i.fromActionPayload);n.trigger(o,{type:o,seriesId:e.id,name:Te(u)?l.getName(u[0]):l.getName(u),selected:Pe(r)?r:me({},r)})}})}function rw(e,t,n){for(var r;e&&(!t(e)||(r=e,!n));)e=e.__hostTarget||e.parent;return r}var iw=Math.round(9*Math.random()),ow="function"==typeof Object.defineProperty,aw=function(){function e(){this._id="__ec_inner_"+iw++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return ow?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}();const sw=aw;function lw(e){return isFinite(e)}function uw(e,t,n){for(var r="radial"===t.type?function(e,t,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;return t.global||(a=a*r+n.x,s=s*i+n.y,l*=o),a=lw(a)?a:.5,s=lw(s)?s:.5,l=l>=0&&lw(l)?l:.5,e.createRadialGradient(a,s,0,a,s,l)}(e,t,n):function(e,t,n){var r=null==t.x?0:t.x,i=null==t.x2?1:t.x2,o=null==t.y?0:t.y,a=null==t.y2?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=lw(r)?r:0,i=lw(i)?i:1,o=lw(o)?o:0,a=lw(a)?a:0,e.createLinearGradient(r,o,i,a)}(e,t,n),i=t.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function cw(e){return parseInt(e,10)}function hw(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||cw(s[r])||cw(e.style[r]))-(cw(s[o])||0)-(cw(s[a])||0)|0}function dw(e){var t,n,r=e.style,i=r.lineDash&&r.lineWidth>0&&(t=r.lineDash,n=r.lineWidth,t&&"solid"!==t&&n>0?"dashed"===t?[4*n,2*n]:"dotted"===t?[n]:Ae(t)?[t]:Te(t)?t:null:null),o=r.lineDashOffset;if(i){var a=r.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&1!==a&&(i=we(i,function(e){return e/a}),o/=a)}return[i,o]}var fw=new go(!0);function pw(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function gw(e){return"string"==typeof e&&"none"!==e}function mw(e){var t=e.fill;return null!=t&&"none"!==t}function vw(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function yw(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function _w(e,t,n){var r=kt(t.image,t.__image,n);if(It(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*rt),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}var xw=["shadowBlur","shadowOffsetX","shadowOffsetY"],bw=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function ww(e,t,n,r,i){var o=!1;if(!r&&t===(n=n||{}))return!1;if(r||t.opacity!==n.opacity){Mw(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?Ti.opacity:a}(r||t.blend!==n.blend)&&(o||(Mw(e,i),o=!0),e.globalCompositeOperation=t.blend||Ti.blend);for(var s=0;s<xw.length;s++){var l=xw[s];(r||t[l]!==n[l])&&(o||(Mw(e,i),o=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(o||(Mw(e,i),o=!0),e.shadowColor=t.shadowColor||Ti.shadowColor),o}function Sw(e,t,n,r,i){var o=Dw(t,i.inHover),a=r?null:n&&Dw(n,i.inHover)||{};if(o===a)return!1;var s=ww(e,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(Mw(e,i),s=!0),gw(o.fill)&&(e.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(Mw(e,i),s=!0),gw(o.stroke)&&(e.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(Mw(e,i),s=!0),e.globalAlpha=null==o.opacity?1:o.opacity),t.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(Mw(e,i),s=!0),e.lineWidth=l)}for(var u=0;u<bw.length;u++){var c=bw[u],h=c[0];(r||o[h]!==a[h])&&(s||(Mw(e,i),s=!0),e[h]=o[h]||c[1])}return s}function Cw(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function Mw(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Dw(e,t){return t&&e.__hoverStyle||e.style}function kw(e,t){Tw(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Tw(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=-2,void(t.__isRendered=!1);var o=t.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!function(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}(o,a)||(a&&a.length&&(Mw(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Mw(e,n),e.save(),function(e,t,n){for(var r=!1,i=0;i<e.length;i++){var o=e[i];r=r||o.isZeroArea(),Cw(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=r}(o,e,n),s=!0),n.prevElClipPaths=o),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c,h,d=t instanceof zo&&t.autoBatch&&function(e){var t=mw(e),n=pw(e);return!(e.lineDash||!(+t^+n)||t&&"string"!=typeof e.fill||n&&"string"!=typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}(t.style);s||(c=i,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)?(Mw(e,n),Cw(e,t)):d||Mw(e,n);var f=Dw(t,n.inHover);t instanceof zo?(1!==n.lastDrawType&&(l=!0,n.lastDrawType=1),Sw(e,t,u,l,n),d&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,r){var i,o=pw(n),a=mw(n),s=n.strokePercent,l=s<1,u=!t.path;t.silent&&!l||!u||t.createPathProxy();var c=t.path||fw,h=t.__dirty;if(!r){var d=n.fill,f=n.stroke,p=a&&!!d.colorStops,g=o&&!!f.colorStops,m=a&&!!d.image,v=o&&!!f.image,y=void 0,_=void 0,x=void 0,b=void 0,w=void 0;(p||g)&&(w=t.getBoundingRect()),p&&(y=h?uw(e,d,w):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(_=h?uw(e,f,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),m&&(x=h||!t.__canvasFillPattern?_w(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(b=h||!t.__canvasStrokePattern?_w(e,f,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),p?e.fillStyle=y:m&&(x?e.fillStyle=x:a=!1),g?e.strokeStyle=_:v&&(b?e.strokeStyle=b:o=!1)}var S,C,M=t.getGlobalScale();c.setScale(M[0],M[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(S=(i=dw(t))[0],C=i[1]);var D=!0;(u||4&h)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),D=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),D&&c.rebuildPath(e,l?s:1),S&&(e.setLineDash(S),e.lineDashOffset=C),r||(n.strokeFirst?(o&&yw(e,n),a&&vw(e,n)):(a&&vw(e,n),o&&yw(e,n))),S&&e.setLineDash([])}(e,t,f,d),d&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):t instanceof Vo?(3!==n.lastDrawType&&(l=!0,n.lastDrawType=3),Sw(e,t,u,l,n),function(e,t,n){var r,i=n.text;if(null!=i&&(i+=""),i){e.font=n.font||K,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(o=(r=dw(t))[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(pw(n)&&e.strokeText(i,n.x,n.y),mw(n)&&e.fillText(i,n.x,n.y)):(mw(n)&&e.fillText(i,n.x,n.y),pw(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}(e,t,f)):t instanceof Yo?(2!==n.lastDrawType&&(l=!0,n.lastDrawType=2),function(e,t,n,r,i){ww(e,Dw(t,i.inHover),n&&Dw(n,i.inHover),r,i)}(e,t,u,l,n),function(e,t,n){var r=t.__image=kt(n.image,t.__image,t,t.onload);if(r&&It(r)){var i=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var h=a-(u=n.sx),d=s-(c=n.sy);e.drawImage(r,u,c,h,d,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}(e,t,f)):t.getTemporalDisplayables&&(4!==n.lastDrawType&&(l=!0,n.lastDrawType=4),function(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=t.getCursor(),a=r.length;o<a;o++)(c=r[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Tw(e,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c;for(var l=0,u=i.length;l<u;l++){var c;(c=i[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Tw(e,c,s,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n)),d&&r&&Mw(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}var Iw=new sw,Pw=new Ct(100),Lw=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Aw(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i="svg"===r.painter.type;e.dirty&&Iw.delete(e);var o=Iw.get(e);if(o)return o;var a=ve(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(e){for(var t,o=[n],s=!0,l=0;l<Lw.length;++l){var u=a[Lw[l]];if(null!=u&&!Te(u)&&!Pe(u)&&!Ae(u)&&"boolean"!=typeof u){s=!1;break}o.push(u)}if(s){t=o.join(",")+(i?"-svg":"");var c=Pw.get(t);c&&(i?e.svgElement=c:e.image=c)}var h,d=Ow(a.dashArrayX),f=function(e){if(!e||"object"==typeof e&&0===e.length)return[0,0];if(Ae(e)){var t=Math.ceil(e);return[t,t]}var n=we(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}(a.dashArrayY),p=Rw(a.symbol),g=we(d,function(e){return Nw(e)}),m=Nw(f),v=!i&&J.createCanvas(),y=i&&{tag:"g",attrs:{},key:"dcl",children:[]},_=function(){for(var e=1,t=0,n=g.length;t<n;++t)e=Aa(e,g[t]);var r=1;for(t=0,n=p.length;t<n;++t)r=Aa(r,p[t].length);e*=r;var i=m*g.length*p.length;return{width:Math.max(1,Math.min(e,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}();v&&(v.width=_.width*n,v.height=_.height*n,h=v.getContext("2d")),function(){h&&(h.clearRect(0,0,v.width,v.height),a.backgroundColor&&(h.fillStyle=a.backgroundColor,h.fillRect(0,0,v.width,v.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(!(e<=0))for(var o=-m,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(t=0;t<d[u].length;++t)w+=d[u][t];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,D=d[u][x]*a.symbolSize,k=f[s]*a.symbolSize,T=b/2%p[c].length;I(C,M,D,k,p[c][T])}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 I(e,t,o,s,l){var u=i?1:n,c=Jp(l,e*u,t*u,o*u,s*u,a.color,a.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(c);d&&y.children.push(d)}else kw(h,c)}}(),s&&Pw.put(t,v||y),e.image=v,e.svgElement=y,e.svgWidth=_.width,e.svgHeight=_.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,Iw.set(e,s),e.dirty=!1,s}function Rw(e){if(!e||0===e.length)return[["rect"]];if(Pe(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!Pe(e[n])){t=!1;break}if(t)return Rw([e]);var r=[];for(n=0;n<e.length;++n)Pe(e[n])?r.push([e[n]]):r.push(e[n]);return r}function Ow(e){if(!e||0===e.length)return[[0,0]];if(Ae(e))return[[i=Math.ceil(e),i]];for(var t=!0,n=0;n<e.length;++n)if(!Ae(e[n])){t=!1;break}if(t)return Ow([e]);var r=[];for(n=0;n<e.length;++n)if(Ae(e[n])){var i=Math.ceil(e[n]);r.push([i,i])}else(i=we(e[n],function(e){return Math.ceil(e)})).length%2==1?r.push(i.concat(i)):r.push(i);return r}function Nw(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}const Fw=new ci;var zw={},Ew=2e3,Bw=4500,Vw={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:Ew,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:Bw,ARIA:6e3,DECAL:7e3}},Hw="__flagInMainProcess",Gw="__mainProcessVersion",Ww="__pendingUpdate",Yw="__needsUpdateStatus",jw=/^[a-zA-Z0-9_]+$/,$w="__connectUpdateStatus";function Uw(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return qw(this,e,t);xS(this.id)}}function Xw(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return qw(this,e,t)}}function qw(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),ci.prototype[t].apply(e,n)}var Zw,Kw,Qw,Jw,eS,tS,nS,rS,iS,oS,aS,sS,lS,uS,cS,hS,dS,fS,pS,gS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return X(t,e),t}(ci),mS=gS.prototype;mS.on=Xw("on"),mS.off=Xw("off");var vS=function(e){function t(t,n,r){var i=e.call(this,new Kb)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},i._dom=t,i[Gw]=1,r.ssr;var o=i._zr=Lx(t,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:Ve(r.useDirtyRect,!1),useCoarsePointer:Ve(r.useCoarsePointer,"auto"),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=Zy(De(o.flush,o),17),i._updateTheme(n),i._locale=function(e){if(Pe(e)){var t=Cc[e.toUpperCase()]||{};return e===bc||e===wc?pe(t):ge(pe(t),pe(Cc[Sc]),!1)}return ge(pe(e),pe(Cc[Sc]),!1)}(r.locale||Dc),i._coordSysMgr=new rc;var a=i._api=cS(i);function s(e,t){return e.__prio-t.__prio}return ex(DS,s),ex(CS,s),i._scheduler=new Wb(i,a,CS,DS),i._messageCenter=new gS,i._initEvents(),i.resize=De(i.resize,i),o.animation.on("frame",i._onframe,i),oS(o,i),aS(o,i),Ue(i),i}return X(t,e),t.prototype._onframe=function(){if(!this._disposed){fS(this);var e=this._scheduler;if(this[Ww]){var t=this[Ww].silent;this[Hw]=!0,pS(this);try{Zw(this),Jw.update.call(this,null,this[Ww].updateParams)}catch(e){throw this[Hw]=!1,this[Ww]=null,e}this._zr.flush(),this[Hw]=!1,this[Ww]=null,rS.call(this,t),iS.call(this,t)}else if(e.unfinished){var n=1,r=this._model,i=this._api;e.unfinished=!1;do{var o=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),tS(this,r),e.performVisualTasks(r),uS(this,this._model,i,"remain",{}),n-=+new Date-o}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[Hw])if(this._disposed)xS(this.id);else{var r,i,o;if(Re(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,o=t.transition,t=t.notMerge),this[Hw]=!0,pS(this),!this._model||t){var a=new Qx(this._api),s=this._theme,l=this._model=new $x;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(e,{replaceMerge:i},MS);var u={seriesTransition:o,optionChanged:!0};if(n)this[Ww]={silent:r,updateParams:u},this[Hw]=!1,this.getZr().wakeUp();else{try{Zw(this),Jw.update.call(this,null,u)}catch(e){throw this[Ww]=null,this[Hw]=!1,e}this._ssr||this._zr.flush(),this[Ww]=null,this[Hw]=!1,rS.call(this,r),iS.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[Hw])if(this._disposed)xS(this.id);else{var n=this._model;if(n){var r=t&&t.silent,i=null;this[Ww]&&(null==r&&(r=this[Ww].silent),i=this[Ww].updateParams,this[Ww]=null),this[Hw]=!0,pS(this);try{this._updateTheme(e),n.setTheme(this._theme),Zw(this),Jw.update.call(this,{type:"setTheme"},i)}catch(e){throw this[Hw]=!1,e}this[Hw]=!1,rS.call(this,r),iS.call(this,r)}}},t.prototype._updateTheme=function(e){Pe(e)&&(e=kS[e]),e&&((e=pe(e))&&vb(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||at.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e=e||{},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return be(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,r=[],i=this;be(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return be(r,function(e){e.group.ignore=!1}),o}xS(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(PS[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();be(IS,function(o,h){if(o.group===n){var d=t?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(pe(e)),f=o.getDom().getBoundingClientRect();a=r(f.left,a),s=r(f.top,s),l=i(f.right,l),u=i(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=J.createCanvas(),g=Lx(p,{renderer:t?"svg":"canvas"});if(g.resize({width:d,height:f}),t){var m="";return be(c,function(e){var t=e.left-a,n=e.top-s;m+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new Qo({shape:{x:0,y:0,width:d,height:f},style:{fill:e.connectedBackgroundColor}})),be(c,function(e){var t=new Yo({style:{x:e.left*h-a,y:e.top*h-s,image:e.dom}});g.add(t)}),g.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}xS(this.id)},t.prototype.convertToPixel=function(e,t,n){return eS(this,"convertToPixel",e,t,n)},t.prototype.convertToLayout=function(e,t,n){return eS(this,"convertToLayout",e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return eS(this,"convertFromPixel",e,t,n)},t.prototype.containPixel=function(e,t){var n;if(!this._disposed)return be(Xa(this._model,e),function(e,r){r.indexOf("Models")>=0&&be(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}},this)},this),!!n;xS(this.id)},t.prototype.getVisual=function(e,t){var n=Xa(this._model,e,{defaultMainType:"series"}),r=n.seriesModel.getData(),i=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?r.indexOfRawIndex(n.dataIndex):null;return null!=i?function(e,t,n){switch(n){case"color":return e.getItemVisual(t,"style")[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n)}}(r,i,t):function(e,t){switch(t){case"color":return e.getVisual("style")[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}(r,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;be(_S,function(t){var n=function(n){var r,i=e.getModel(),o=n.target;if("globalout"===t?r={}:o&&rw(o,function(e){var t=Ja(e);if(t&&null!=t.dataIndex){var n=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return r=n&&n.getDataParams(t.dataIndex,t.dataType,o)||{},!0}if(t.eventData)return r=me({},t.eventData),!0},!0),r){var a=r.componentType,s=r.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=r.seriesIndex);var l=a&&null!=s&&i.getComponent(a,s),u=l&&e["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];r.event=n,r.type=t,e._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:l,view:u},e.trigger(t,r)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;be(SS,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),function(e,t,n){e.on("selectchanged",function(e){var r=n.getModel();e.isFromClick?(nw("map","selectchanged",t,r,e),nw("pie","selectchanged",t,r,e)):"select"===e.fromAction?(nw("map","selected",t,r,e),nw("pie","selected",t,r,e)):"unselect"===e.fromAction&&(nw("map","unselected",t,r,e),nw("pie","unselected",t,r,e))})}(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?xS(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)xS(this.id);else{this._disposed=!0,this.getDom()&&Qa(this.getDom(),AS,"");var e=this,t=e._api,n=e._model;be(e._componentsViews,function(e){e.dispose(n,t)}),be(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete IS[e.id]}},t.prototype.resize=function(e){if(!this[Hw])if(this._disposed)xS(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;this[Ww]&&(null==r&&(r=this[Ww].silent),n=!0,this[Ww]=null),this[Hw]=!0,pS(this);try{n&&Zw(this),Jw.update.call(this,{type:"resize",animation:me({duration:0},e&&e.animation)})}catch(e){throw this[Hw]=!1,e}this[Hw]=!1,rS.call(this,r),iS.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)xS(this.id);else if(Re(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),TS[e]){var n=TS[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?xS(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=me({},e);return t.type=wS[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)xS(this.id);else if(Re(t)||(t={silent:!!t}),bS[e.type]&&this._model)if(this[Hw])this._pendingActions.push(e);else{var n=t.silent;nS.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&at.browser.weChat&&this._throttledZrFlush(),rS.call(this,n),iS.call(this,n)}},t.prototype.updateLabelLayout=function(){Fw.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)xS(this.id);else{var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function t(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&t.push(i)}e.selected&&e.states.select&&t.push("select"),2===e.hoverState&&e.states.emphasis?t.push("emphasis"):1===e.hoverState&&e.states.blur&&t.push("blur"),e.useStates(t)}function n(e,t){if(!e.preventAutoZ){var n=Hp(e);t.eachRendered(function(e){return Wp(e,n.z,n.zlevel),!0})}}function r(e,t){t.eachRendered(function(e){if(!ep(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}})}function i(e,n){var r=e.getModel("stateAnimation"),i=e.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered(function(e){if(e.states&&e.states.emphasis){if(ep(e))return;if(e instanceof zo&&function(e){var t=ns(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(i){e.stateTransition=a;var r=e.getTextContent(),o=e.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&t(e)}})}Zw=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),Kw(e,!0),Kw(e,!1),t.plan()},Kw=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(e){var l=e.__requireNewView;e.__requireNewView=!1;var u="_ec_"+e.id+"_"+e.type,c=!l&&o[u];if(!c){var h=ut(e.type);(c=new(t?Xg.getClass(h.main,h.sub):Rg.getClass(h.sub))).init(n,s),o[u]=c,i.push(c),a.add(c.group)}e.__viewId=c.__id=u,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(c,e,n,s)}for(t?n.eachComponent(function(e,t){"series"!==e&&u(t)}):n.eachSeries(u),l=0;l<i.length;){var c=i[l];c.__alive?l++:(!t&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},Qw=function(e,t,n,r,i){var o=e._model;if(o.setUpdatePayload(n),r){var a={};a[r+"Id"]=n[r+"Id"],a[r+"Index"]=n[r+"Index"],a[r+"Name"]=n[r+"Name"];var s={mainType:r,query:a};i&&(s.subType=i);var l,u=n.excludeSeriesId;null!=u&&(l=Qe(),be(Na(u),function(e){var t=Ga(e,null);null!=t&&l.set(t,!0)})),o&&o.eachComponent(s,function(t){if(!l||null==l.get(t.id))if($s(n))if(t instanceof wd)n.type!==as||n.notBlur||t.get(["emphasis","disabled"])||function(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var o=ja(i,t);o=(Te(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var u=Ja(a);Os(r,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),h=e.get(["emphasis","blurScope"]);null!=c&&Os(r,c,h,n)}}}(t,n,e._api);else{var r=Fs(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,o=r.dispatchers;n.type===as&&i&&!n.notBlur&&Ns(t.mainType,t.componentIndex,e._api),o&&be(o,function(e){n.type===as?ks(e):Ts(e)})}else js(n)&&t instanceof wd&&(function(e,t){if(js(t)){var n=t.dataType,r=ja(e.getData(n),t);Te(r)||(r=[r]),e[t.type===cs?"toggleSelect":t.type===ls?"select":"unselect"](r,n)}}(t,n,e._api),zs(t),dS(e))},e),o&&o.eachComponent(s,function(t){l&&null!=l.get(t.id)||c(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])},e)}else be([].concat(e._componentsViews).concat(e._chartsViews),c);function c(r){r&&r.__alive&&r[t]&&r[t](r.__model,o,e._api,n)}},Jw={prepareAndUpdate:function(e){Zw(this),Jw.update.call(this,e,e&&{optionChanged:null!=e.newOption})},update:function(t,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(t),s.restoreData(r,t),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,t),tS(this,r),a.update(r,i),e(r),s.performVisualTasks(r,t);var l=r.get("backgroundColor")||"transparent";o.setBackgroundColor(l);var u=r.get("darkMode");null!=u&&"auto"!==u&&o.setDarkMode(u),sS(this,r,i,t,n),Fw.trigger("afterupdate",r,i)}},updateTransform:function(t){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(t);var o=[];r.eachComponent(function(e,a){if("series"!==e){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,r,i,t);l&&l.update&&o.push(s)}else o.push(s)}});var a=Qe();r.eachSeries(function(e){var o=n._chartsMap[e.__viewId];if(o.updateTransform){var s=o.updateTransform(e,r,i,t);s&&s.update&&a.set(e.uid,1)}else a.set(e.uid,1)}),e(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:a}),uS(this,r,i,t,{},a),Fw.trigger("afterupdate",r,i)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),Rg.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),sS(this,n,this._api,t,{}),Fw.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,r=this._model;r&&(r.setUpdatePayload(t),r.eachSeries(function(e){e.getData().clearAllVisual()}),Rg.markUpdateMethod(t,"updateVisual"),e(r),this._scheduler.performVisualTasks(r,t,{visualType:"visual",setDirty:!0}),r.eachComponent(function(e,i){if("series"!==e){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,t)}}),r.eachSeries(function(e){n._chartsMap[e.__viewId].updateVisual(e,r,n._api,t)}),Fw.trigger("afterupdate",r,this._api))},updateLayout:function(e){Jw.update.call(this,e)}},eS=function(e,t,n,r,i){if(e._disposed)xS(e.id);else for(var o,a=e._model,s=e._coordSysMgr.getCoordinateSystems(),l=Xa(a,n),u=0;u<s.length;u++){var c=s[u];if(c[t]&&null!=(o=c[t](a,l,r,i)))return o}},tS=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},nS=function(e,t){var n=this,r=this.getModel(),i=e.type,o=e.escapeConnect,a=bS[i],s=(a.update||"update").split(":"),l=s.pop(),u=null!=s[0]&&ut(s[0]);this[Hw]=!0,pS(this);var c=[e],h=!1;e.batch&&(h=!0,c=we(e.batch,function(t){return(t=ve(me({},t),e)).batch=null,t}));var d,f=[],p=[],g=a.nonRefinedEventType,m=js(e),v=$s(e);if(v&&Rs(this._api),be(c,function(t){var i=a.action(t,r,n._api);if(a.refineEvent?p.push(i):d=i,(d=d||me({},t)).type=g,f.push(d),v){var o=qa(e),s=o.queryOptionMap,c=o.mainTypeSpecified?s.keys()[0]:"series";Qw(n,l,t,c),dS(n)}else m?(Qw(n,l,t,"series"),dS(n)):u&&Qw(n,l,t,u.main,u.sub)}),"none"!==l&&!v&&!m&&!u)try{this[Ww]?(Zw(this),Jw.update.call(this,e),this[Ww]=null):Jw[l].call(this,e)}catch(e){throw this[Hw]=!1,e}if(d=h?{type:g,escapeConnect:o,batch:f}:f[0],this[Hw]=!1,!t){var y=void 0;if(a.refineEvent){var _=a.refineEvent(p,e,r,this._api).eventContent;Ye(Re(_)),(y=ve({type:a.refinedEventType},_)).fromAction=e.type,y.fromActionPayload=e,y.escapeConnect=!0}var x=this._messageCenter;x.trigger(d.type,d),y&&x.trigger(y.type,y)}},rS=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();nS.call(this,n,e)}},iS=function(e){!e&&this.trigger("updated")},oS=function(e,t){e.on("rendered",function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[Ww]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")})},aS=function(e,t){e.on("mouseover",function(e){var n=rw(e.target,Ys);n&&(function(e,t,n){var r=Ja(e),i=Fs(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&Ns(r.componentMainType,r.componentIndex,n),be(o,function(e){return Ms(e,t)})):(Os(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&Ns(r.componentMainType,r.componentIndex,n),Ms(e,t))}(n,e,t._api),dS(t))}).on("mouseout",function(e){var n=rw(e.target,Ys);n&&(function(e,t,n){Rs(n);var r=Ja(e),i=Fs(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?be(i,function(e){return Ds(e,t)}):Ds(e,t)}(n,e,t._api),dS(t))}).on("click",function(e){var n=rw(e.target,function(e){return null!=Ja(e).dataIndex},!0);if(n){var r=n.selected?"unselect":"select",i=Ja(n);t._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}})},sS=function(e,t,n,r,i){!function(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===e?n:t).push({zlevel:o,z:a,idx:i.componentIndex,type:e,key:s})}),r){var i,o,a=t.concat(n);ex(a,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),be(a,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,a=t.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)})}}(t),lS(e,t,n,r,i),be(e._chartsViews,function(e){e.__alive=!1}),uS(e,t,n,r,i),be(e._chartsViews,function(e){e.__alive||e.remove(t,n)})},lS=function(e,t,o,a,s,l){be(l||e._componentsViews,function(e){var s=e.__model;r(0,e),e.render(s,t,o,a),n(s,e),i(s,e)})},uS=function(e,t,o,a,s,l){var u=e._scheduler;s=me(s||{},{updatedSeries:t.getSeries()}),Fw.trigger("series:beforeupdate",t,o,s);var c=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;u.updatePayload(i,a),r(0,n),l&&l.get(t.uid)&&i.dirty(),i.perform(u.getPerformArgs(i))&&(c=!0),n.group.silent=!!t.get("silent"),function(e,t){var n=e.get("blendMode")||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}(t,n),zs(t)}),u.unfinished=c||u.unfinished,Fw.trigger("series:layoutlabels",t,o,s),Fw.trigger("series:transition",t,o,s),t.eachSeries(function(t){var r=e._chartsMap[t.__viewId];n(t,r),i(t,r)}),function(e,t){var n=e._zr.storage,r=0;n.traverse(function(e){e.isGroup||r++}),r>t.get("hoverLayerThreshold")&&!at.node&&!at.worker&&t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}})}(e,t),Fw.trigger("series:afterupdate",t,o,s)},dS=function(e){e[Yw]=!0,e.getZr().wakeUp()},pS=function(e){e[Gw]=(e[Gw]+1)%1e3},fS=function(e){e[Yw]&&(e.getZr().storage.traverse(function(e){ep(e)||t(e)}),e[Yw]=!1)},cS=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return X(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){ks(t,n),dS(e)},n.prototype.leaveEmphasis=function(t,n){Ts(t,n),dS(e)},n.prototype.enterBlur=function(t){!function(e){bs(e,ms)}(t),dS(e)},n.prototype.leaveBlur=function(t){Is(t),dS(e)},n.prototype.enterSelect=function(t){Ps(t),dS(e)},n.prototype.leaveSelect=function(t){Ls(t),dS(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getMainProcessVersion=function(){return e[Gw]},n}(Xx))(e)},hS=function(e){function t(e,t){for(var n=0;n<e.length;n++)e[n][$w]=t}be(wS,function(n,r){e._messageCenter.on(r,function(n){if(PS[e.group]&&0!==e[$w]){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];be(IS,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,0),be(i,function(e){1!==e[$w]&&e.dispatchAction(r)}),t(i,2)}})})}}(),t}(ci),yS=vS.prototype;yS.on=Uw("on"),yS.off=Uw("off"),yS.one=function(e,t,n){var r=this;this.on.call(this,e,function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),r.off(e,n)},n)};var _S=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function xS(e){}var bS={},wS={},SS={},CS=[],MS=[],DS=[],kS={},TS={},IS={},PS={},LS=+new Date-0,AS=(new Date,"_echarts_instance_");function RS(e){return IS[function(e,t){return e.getAttribute?e.getAttribute(t):e[t]}(e,AS)]}function OS(e,t){kS[e]=t}function NS(e){ye(MS,e)<0&&MS.push(e)}function FS(e,t){HS(CS,e,t,2e3)}function zS(e,t){Fw.on(e,t)}function ES(e,t,n){var r,i,o,a,s;function l(e){return e.toLowerCase()}Ie(t)&&(n=t,t=""),Re(e)?(r=e.type,i=e.event,a=e.update,s=e.publishNonRefinedEvent,n||(n=e.action),o=e.refineEvent):(r=e,i=t),i=l(i||r);var u=o?l(r):i;bS[r]||(Ye(jw.test(r)&&jw.test(i)),o&&Ye(i!==r),bS[r]={actionType:r,refinedEventType:i,nonRefinedEventType:u,update:a,action:n,refineEvent:o},SS[i]=1,o&&s&&(SS[u]=1),wS[u]=r)}function BS(e,t){HS(DS,e,t,3e3,"visual")}var VS=[];function HS(e,t,n,r,i){if((Ie(t)||Re(t))&&(n=t,t=r),!(ye(VS,n)>=0)){VS.push(n);var o=Wb.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function GS(e,t){TS[e]=t}function WS(e,t,n,r){return{eventContent:{selected:Es(n),isFromClick:t.isFromClick||!1}}}BS(Ew,Sb),BS(Bw,Mb),BS(Bw,Db),BS(Ew,ew),BS(Bw,tw),BS(7e3,function(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,"decal");n&&(r.ensureUniqueItemVisual(e,"style").decal=Aw(n,t))});var i=r.getVisual("decal");i&&(r.getVisual("style").decal=Aw(i,t))}})}),NS(vb),FS(900,function(e){var t=Qe();e.eachSeries(function(e){var n=e.get("stack");if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.push(o)}}),t.each(function(e){0!==e.length&&("seriesDesc"===(e[0].seriesModel.get("stackOrder")||"seriesAsc")&&e.reverse(),be(e,function(t,n){t.data.setCalculationInfo("stackedOnSeries",n>0?e[n-1].seriesModel:null)}),function(e){be(e,function(t,n){var r=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,c){var h,d,f=a.get(t.stackedDimension,c);if(isNaN(f))return i;s?d=a.getRawIndex(c):h=a.get(t.stackedByDimension,c);for(var p=NaN,g=n-1;g>=0;g--){var m=e[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,h)),d>=0){var v=m.data.getByRawIndex(m.stackResultDimension,d);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&f>=0&&v>0||"samesign"===l&&f<=0&&v<0){f=wa(f,v),p=v;break}}}return r[0]=f,r[1]=p,r})})}(e))})}),GS("default",function(e,t){ve(t=t||{},{text:"loading",textColor:Zh.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Zh.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Xd,r=new Qo({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i,o=new fa({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Qo({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&((i=new Lf({shape:{startAngle:-kb/2,endAngle:-kb/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*kb/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*kb/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),u=e.getHeight()/2;t.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}),ES({type:as,event:as,update:as},nt),ES({type:ss,event:ss,update:ss},nt),ES({type:ls,event:hs,update:ls,action:nt,refineEvent:WS,publishNonRefinedEvent:!0}),ES({type:us,event:hs,update:us,action:nt,refineEvent:WS,publishNonRefinedEvent:!0}),ES({type:cs,event:hs,update:cs,action:nt,refineEvent:WS,publishNonRefinedEvent:!0}),OS("default",{}),OS("dark",Zb);var YS={},jS=[],$S={registerPreprocessor:NS,registerProcessor:FS,registerPostInit:function(e){zS("afterinit",e)},registerPostUpdate:function(e){zS("afterupdate",e)},registerUpdateLifecycle:zS,registerAction:ES,registerCoordinateSystem:function(e,t){rc.register(e,t)},registerLayout:function(e,t){HS(DS,e,t,1e3,"layout")},registerVisual:BS,registerTransform:function(e){var t=(e=pe(e)).type;t||Jl("");var n=t.split(":");2!==n.length&&Jl("");var r=!1;"echarts"===n[0]&&(t=n[1],r=!0),e.__isBuiltIn=r,Vh.set(t,e)},registerLoading:GS,registerMap:function(e,t,n){var r=zw.registerMap;r&&r(e,t,n)},registerImpl:function(e,t){zw[e]=t},PRIORITY:Vw,ComponentModel:Dh,ComponentView:Xg,SeriesModel:wd,ChartView:Rg,registerComponentModel:function(e){Dh.registerClass(e)},registerComponentView:function(e){Xg.registerClass(e)},registerSeriesModel:function(e){wd.registerClass(e)},registerChartView:function(e){Rg.registerClass(e)},registerCustomSeries:function(e,t){!function(e,t){YS[e]=t}(e,t)},registerSubTypeDefaulter:function(e,t){Dh.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){var n;n=t,Tx[e]=n}};function US(e){Te(e)?be(e,function(e){US(e)}):ye(jS,e)>=0||(jS.push(e),Ie(e)&&(e={install:e}),e.install($S))}const XS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return X(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.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:Zh.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Zh.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:Zh.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:Zh.color.tertiary,fontSize:14}},t}(Dh);function qS(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function ZS(e){if(at.domSupported)for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}var KS=ZS(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function QS(e,t){if(!e)return t;t=oh(t,!0);var n=e.indexOf(t);return(e=-1===n?t:"-"+e.slice(0,n)+"-"+t).toLowerCase()}var JS=QS(ZS(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),eC=QS(KS,"transform"),tC="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(at.transform3dSupported?"will-change:transform;":"");function nC(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!at.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=at.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+eC+":"+a+";":[["top",0],["left",0],[KS,a]]}function rC(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&function(e,t,n,r,i){mc(gc,t,r,i,!0)&&mc(e,n,gc[0],gc[1])}(e,a,n,r,i)}else{e[0]=r,e[1]=i;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var iC=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,at.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,o=i&&(Pe(i)?document.querySelector(i):Fe(i)?i:Ie(i)&&i(e.getDom()));rC(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=r.handler;Yy(r.painter.getViewportRoot(),e,!0),t.dispatch("mousemove",e)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=(o="position",(a=(i=t).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(i))?o?a[o]:a:null),r=t.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative")}var i,o,a,s=e.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=tC+function(e,t,n,r){var i=[],o=e.get("transitionDuration"),a=e.get("backgroundColor"),s=e.get("shadowBlur"),l=e.get("shadowColor"),u=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),h=e.getModel("textStyle"),d=cd(e,"html"),f=u+"px "+c+"px "+s+"px "+l;return i.push("box-shadow:"+f),t&&o>0&&i.push(function(e,t,n){var r="cubic-bezier(0.23,1,0.32,1)",i="",o="";return n&&(o="opacity"+(i=" "+e/2+"s "+r)+",visibility"+i),t||(i=" "+e+"s "+r,o+=(o.length?",":"")+(at.transformSupported?""+eC+i:",left"+i+",top"+i)),JS+":"+o}(o,n,r)),a&&i.push("background-color:"+a),be(["width","color","radius"],function(t){var n="border-"+t,r=oh(n),o=e.get(r);null!=o&&i.push(n+":"+o+("color"===t?"":"px"))}),i.push(function(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var i=Ve(e.get("lineHeight"),Math.round(3*n/2));n&&t.push("line-height:"+i+"px");var o=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return o&&a&&t.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),be(["decoration","align"],function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)}),t.join(";")}(h)),null!=d&&i.push("padding:"+ah(d).join("px ")+"px"),i.join(";")+";"}(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+nC(i[0],i[1],!0)+"border-color:"+hh(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var o=this.el;if(null!=e){var a="";if(Pe(i)&&"item"===n.get("trigger")&&!qS(n)&&(a=function(e,t,n){if(!Pe(n)||"inside"===n)return"";var r=e.get("backgroundColor"),i=e.get("borderWidth");t=hh(t);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(i),6),u="",c=eC+":";ye(["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+i,f=d*Math.abs(Math.cos(h))+d*Math.abs(Math.sin(h)),p=t+" solid "+i+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(u+=";"+s+":-"+Math.round(100*((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2))/100+"px")+";"+c+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"].join("")+'"></div>'}(n,r,i)),Pe(e))o.innerHTML=e+a;else if(e){o.innerHTML="",Te(e)||(e=[e]);for(var s=0;s<e.length;s++)Fe(e[s])&&e[s].parentNode!==o&&o.appendChild(e[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(rC(n,this._zr,this._container,e,t),null!=n[0]&&null!=n[1]){var r=this.el.style;be(nC(n[0],n[1]),function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility="hidden",t.opacity="0"):t.display="none",at.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(De(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;!function(e,t){function n(e){var t=e[pc];t&&(t.clearMarkers&&t.clearMarkers(),delete e[pc])}e&&n(e),t&&n(t)}(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},e}();const oC=iC;function aC(e){return Math.max(0,e)}function sC(e){var t=aC(e.shadowBlur||0),n=aC(e.shadowOffsetX||0),r=aC(e.shadowOffsetY||0);return{left:aC(t-n),right:aC(t+n),top:aC(t-r),bottom:aC(t+r)}}function lC(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const uC=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),lC(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var o=this;Re(e)&&Jl(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new fa({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:cd(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),be(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(e){o.el.style[e]=n.get(e)}),be(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(e){o.el.style[e]=a.get(e)||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})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=sC(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;lC(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,o=aC(i.borderWidth||0),a=sC(i);n.x=e+o+a.left,n.y=t+o+a.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(De(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();var cC=new Qo({shape:{x:-1,y:-1,width:2,height:2}}),hC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return X(t,e),t.prototype.init=function(e,t){if(!at.node&&t.getDom()){var n,r=e.getComponent("tooltip"),i=this._renderMode="auto"===(n=r.get("renderMode"))?at.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===i?new uC(t):new oC(t,{appendTo:r.get("appendToBody",!0)?"body":r.get("appendTo",!0)})}},t.prototype.render=function(e,t,n){if(!at.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?Ky(this,"_updatePosition",50,"fixRate"):Qy(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");y_("itemTooltip",this._api,De(function(t,n,r){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,r):"leave"===t&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!at.node&&n.getDom()){var i=fC(r,n);this._ticket="";var o=r.dataByCoordSys,a=function(e,t,n){var r=qa(e).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var o,a=Ka(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a)return n.getViewOfComponentModel(a).group.traverse(function(t){var n=Ja(t).tooltipConfig;if(n&&n.name===e.name)return o=t,!0}),o?{componentMainType:i,componentIndex:a.componentIndex,el:o}:void 0}}(r,t,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:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=cC;l.x=r.x,l.y=r.y,l.update(),Ja(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var u=C_(r,t),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(fC(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,o=r.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=t.getSeriesByIndex(i);if(s&&"axis"===dC([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){var i,o;if("legend"===Ja(n).ssrType)return;this._lastDataByCoordSys=null,rw(n,function(e){if(e.tooltipDisabled)return i=o=null,!0;i||o||(null!=Ja(e).dataIndex?i=e:null!=Ja(e).tooltipConfig&&(o=e))},!0),i?this._showSeriesItemTooltip(e,i,t):o?this._showComponentItemTooltip(e,o,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=De(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],o=dC([t.tooltipOption],r),a=this._renderMode,s=[],l=td("section",{blocks:[],noHeader:!0}),u=[],c=new hd;be(e,function(e){be(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),i=e.value;if(t&&null!=i){var o=l_(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),h=td("section",{header:o,noHeader:!je(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),be(e.seriesDataIndices,function(l){var d=n.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,p=d.getDataParams(f);if(!(p.dataIndex<0)){p.axisDim=e.axisDim,p.axisIndex=e.axisIndex,p.axisType=e.axisType,p.axisId=e.axisId,p.axisValue=nv(t.axis,{value:i}),p.axisValueLabel=o,p.marker=c.makeTooltipMarker("item",hh(p.color),a);var g=Lh(d.formatTooltip(f,!0,null)),m=g.frag;if(m){var v=dC([d],r).get("valueFormatter");h.blocks.push(v?me({valueFormatter:v},m):m)}g.text&&u.push(g.text),s.push(p)}})}})}),l.blocks.reverse(),u.reverse();var h=t.position,d=o.get("order"),f=sd(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(e,s)?this._updatePosition(o,h,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],h,null,c)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Ja(t),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),h=this._renderMode,d=e.positionDefault,f=dC([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),m=new hd;g.marker=m.makeTooltipMarker("item",hh(g.color),h);var v=Lh(s.formatTooltip(l,!1,u)),y=f.get("order"),_=f.get("valueFormatter"),x=v.frag,b=x?sd(_?me({valueFormatter:_},x):x,m,h,y,r.get("useUTC"),f.get("textStyle")):v.text,w="item_"+s.name+"_"+l;this._showOrMove(f,function(){this._showTooltipContent(f,b,g,w,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r="html"===this._renderMode,i=Ja(t),o=i.tooltipConfig.option||{},a=o.encodeHTMLContent;Pe(o)&&(o={content:o,formatter:o},a=!0),a&&r&&o.content&&((o=pe(o)).content=xc(o.content));var s=[o],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=e.positionDefault,c=dC(s,this._tooltipModel,u?{position:u}:null),h=c.get("content"),d=Math.random()+"",f=new hd;this._showOrMove(c,function(){var n=pe(c.get("formatterParams")||{});this._showTooltipContent(c,h,n,d,e.offsetX,e.offsetY,e.position,t,f)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,o,a,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent;u.setEnterable(e.get("enterable"));var c=e.get("formatter");a=a||e.get("position");var h=t,d=this._getNearestPoint([i,o],n,e.get("trigger"),e.get("borderColor"),e.get("defaultBorderColor",!0)).color;if(c)if(Pe(c)){var f=e.ecModel.get("useUTC"),p=Te(n)?n[0]:n;h=c,p&&p.axisType&&p.axisType.indexOf("time")>=0&&(h=Hc(p.axisValue,h,f)),h=ch(h,n,!0)}else if(Ie(c)){var g=De(function(t,r){t===this._ticket&&(u.setContent(r,l,e,d,a),this._updatePosition(e,a,i,o,u,n,s))},this);this._ticket=r,h=c(n,r,g)}else h=c;u.setContent(h,l,e,d,a),u.show(e,d),this._updatePosition(e,a,i,o,u,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){return"axis"===n||Te(t)?{color:r||i}:Te(t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var u=i.getSize(),c=e.get("align"),h=e.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),Ie(t)&&(t=t([n,r],o,i.el,d,{viewSize:[s,l],contentSize:u.slice()})),Te(t))n=ya(t[0],s),r=ya(t[1],l);else if(Re(t)){var f=t;f.width=u[0],f.height=u[1];var p=vh(f,{width:s,height:l});n=p.x,r=p.y,c=null,h=null}else if(Pe(t)&&a){var g=function(e,t,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-i/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+a;break;case"left":s=t.x-i-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}(t,d,u,e.get("borderWidth"));n=g[0],r=g[1]}else g=function(e,t,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(e+l+o+2>r?e-=l+o:e+=o),null!=a&&(t+u+a>i?t-=u+a:t+=a),[e,t]}(n,r,i,s,l,c?null:20,h?null:20),n=g[0],r=g[1];c&&(n-=pC(c)?u[0]/2:"right"===c?u[0]:0),h&&(r-=pC(h)?u[1]/2:"bottom"===h?u[1]:0),qS(e)&&(g=function(e,t,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,r)-a,t=Math.min(t+s,i)-s,[e=Math.max(e,0),t=Math.max(t,0)]}(n,r,i,s,l),n=g[0],r=g[1]),i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&be(n,function(n,o){var a=n.dataByAxis||[],s=(e[o]||{}).dataByAxis||[];(i=i&&a.length===s.length)&&be(a,function(e,n){var o=s[n]||{},a=e.seriesDataIndices||[],l=o.seriesDataIndices||[];(i=i&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&a.length===l.length)&&be(a,function(e,t){var n=l[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&be(e.seriesDataIndices,function(e){var n=e.seriesIndex,o=t[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!at.node&&t.getDom()&&(Qy(this,"_updatePosition"),this._tooltipContent.dispose(),b_("itemTooltip",t))},t.type="tooltip",t}(Xg);function dC(e,t,n){var r,i=t.ecModel;n?(r=new yl(n,i,i),r=new yl(t.option,r,i)):r=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof yl&&(a=a.get("tooltip",!0)),Pe(a)&&(a={formatter:a}),a&&(r=new yl(a,r,i)))}return r}function fC(e,t){return e.dispatchAction||De(t.dispatchAction,t)}function pC(e){return"center"===e||"middle"===e}const gC=hC;function mC(e,t,n){var r=J.createCanvas(),i=t.getWidth(),o=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=o*n,r}var vC=function(e){function t(t,n,r){var i,o=e.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,r=r||di,"string"==typeof t?i=mC(t,n,r):Re(t)&&(t=(i=t).id),o.id=t,o.dom=i;var a=i.style;return a&&(et(i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return xt(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=mC("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new nn(0,0,0,0);function u(e){if(e.isFinite()&&!e.isZero())if(0===o.length)(t=new nn(0,0,0,0)).copy(e),o.push(t);else{for(var t,n=!1,r=1/0,i=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(e)){var h=new nn(0,0,0,0);h.copy(c),h.union(e),o[u]=h,n=!0;break}if(s){l.copy(e),l.union(c);var d=e.width*e.height,f=c.width*c.height,p=l.width*l.height-d-f;p<r&&(r=p,i=u)}}s&&(o[i].union(e),n=!0),n||((t=new nn(0,0,0,0)).copy(e),o.push(t)),s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c)if(f=e[c]){var h=f.shouldBePainted(n,r,!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=t[c])&&f.shouldBePainted(n,r,!0,!0),!f||h&&f.__zr||!f.__isRendered||(p=f.getPrevPaintRect())&&u(p)}do{for(i=!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])?(i=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(i);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=e+"px",i.height=t+"px"),r.width=e*n,r.height=t*n,o&&(o.width=e*n,o.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,o=r.width,a=r.height;t=t||this.clearColor;var s=this.motionBlur&&!e,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/u,a/u));var h=this.domBack;function d(e,n,r,o){if(i.clearRect(e,n,r,o),t&&"transparent"!==t){var a=void 0;ze(t)?(a=(t.global||t.__width===r&&t.__height===o)&&t.__canvasGradient||uw(i,t,{x:0,y:0,width:r,height:o}),t.__canvasGradient=a,t.__width=r,t.__height=o):null!=t.image&&(t.scaleX=t.scaleX||u,t.scaleY=t.scaleY||u,a=_w(i,t,{dirty:function(){c.setUnpainted(),c.painter.refresh()}})),i.save(),i.fillStyle=a||t,i.fillRect(e,n,r,o),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(h,e,n,r,o),i.restore())}!n||s?d(0,0,o,a):n.length&&be(n,function(e){d(e.x*u,e.y*u,e.width*u,e.height*u)})},t}(ci);const yC=vC;var _C=1e5,xC=314159,bC=.01,wC=function(){function e(e,t,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=me({},n||{}),this.dpr=n.devicePixelRatio||di,this._singleCanvas=i,this.root=e,e.style&&(et(e),e.innerHTML=""),this.storage=t;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(i){var s=e,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 yC(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[314159]=c,c.zlevel=xC,o.push(xC),this._domRoot=e}else{this._width=hw(e,0,n),this._height=hw(e,1,n);var h=this._domRoot=function(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);e.appendChild(h)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<t;o++){var a=e[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(_C)),r||(r=n.ctx).save(),Tw(r,a,i,o===t-1))}r&&r.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(_C)},e.prototype.paintOne=function(e,t){kw(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(e),o)this.eachLayer(function(e){e.afterBrush&&e.afterBrush()});else{var s=this;ax(function(){s._paintList(e,t,n,r)})}}},e.prototype._compositeManually=function(){var e=this.getLayer(xC).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)})},e.prototype._doPaintList=function(e,t,n){for(var r=this,i=[],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)&&i.push(l)}for(var u=!0,c=!1,h=function(a){var s,l=i[a],h=l.ctx,f=o&&l.createRepaintRects(e,t,d._width,d._height),p=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,m=g&&Date.now(),v=l.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,v,f);else if(p===l.__startIndex){var y=e[p];y.incremental&&y.notClear&&!n||l.clear(!1,v,f)}-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=l.__startIndex);var _=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=p;s<l.__endIndex;s++){var i=e[s];if(i.__inHover&&(c=!0),r._doPaintEl(i,l,o,t,n,s===l.__endIndex-1),g&&Date.now()-m>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<i.length;f++)h(f);return at.wxa&&be(this._layers,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),{finished:u,needsRefreshHover:c}},e.prototype._doPaintEl=function(e,t,n,r,i,o){var a=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(Tw(a,e,i,o),e.setPrevPaintRect(s))}else Tw(a,e,i,o)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=xC);var n=this._layers[e];return n||((n=new yC("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?ge(n,this._layerConfig[e],!0):this._layerConfig[e-bC]&&ge(n,this._layerConfig[e-bC],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(!n[e]&&function(e){return!!e&&(!!e.__builtin__||"function"==typeof e.resize&&"function"==typeof e.refresh)}(t)){if(i>0&&e>r[0]){for(s=0;s<i-1&&!(r[s]<e&&r[s+1]>e);s++);a=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(t.dom,l.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){o&&(o.__endIndex!==e&&(o.__dirty=!0),o.__endIndex=e)}if(this.eachBuiltinLayer(function(e,t){e.__dirty=e.__used=!1}),this._singleCanvas)for(var n=1;n<e.length;n++)if((s=e[n]).zlevel!==e[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}var r,i,o=null,a=0;for(i=0;i<e.length;i++){var s,l=(s=e[i]).zlevel,u=void 0;r!==l&&(r=l,a=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(a>0?bC:0),this._needsManuallyCompositing),u.__builtin__||fe("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==i&&(u.__dirty=!0),u.__startIndex=i,u.incremental?u.__drawIndex=-1:u.__drawIndex=i,t(i),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=i))}t(i),this.eachBuiltinLayer(function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,be(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?ge(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];i!==e&&i!==e+bC||ge(this._layers[i],n[e],!0)}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(ye(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=hw(i,0,r),t=hw(i,1,r),n.style.display="",this._width!==e||t!==this._height){for(var o in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(xC).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new yC("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;this.eachLayer(function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.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 t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const SC=wC;function CC({theme:e,data:t}){const n=c(null),r=u(()=>{const e=t.flatMap(e=>{const t=new Date(e.start).getTime(),n=new Date(e.end).getTime(),r=(t+n)/2;return[{type:"line",name:e.event,data:[[t,0],[n,0]],lineStyle:{width:4,color:e.color},symbol:"none"},{type:"line",name:e.event,data:[[r,0]],symbol:e.icon,symbolSize:32,symbolOffset:[0,-25],tooltip:{formatter:()=>{const t=new Date(e.start).toLocaleString(void 0,{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit"}),n=new Date(e.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>${xc(e.event.toUpperCase())}</b><br/>\n Start: ${xc(t)}<br/>\n End: ${xc(n)}<br/>\n </div>\n `}}}]});return e},[t]);return a(()=>{let t,r;return null!==n.current&&(t=function(e,t,n){var r=RS(e);if(r)return r;var i=new vS(e,t,n);return i.id="ec_"+LS++,IS[i.id]=i,Qa(e,AS,i.id),hS(i),Fw.trigger("afterinit",i),i}(n.current,e),r=new ResizeObserver(()=>{t?.resize()}),r.observe(n.current)),()=>{t?.dispose(),r?.disconnect()}},[e]),a(()=>{if(null!==n.current){const e=RS(n.current),t={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:e=>{const t=new Date(e);return`${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}`},margin:10}},yAxis:{type:"value",min:0,max:0,show:!1},tooltip:{trigger:"item"},series:r};e?.setOption(t,!0)}},[e,r]),(0,$.jsx)("div",{ref:n,style:{height:"100%",width:"100%"}})}US([function(e){e.registerComponentModel(qg),e.registerComponentView(Zg)},function(e){US(zy),US(A_)},function(e){e.registerChartView(Yg),e.registerSeriesModel(tg),e.registerLayout({seriesType:"line",plan:Cg(),reset:function(e){var t=e.getData(),n=e.coordinateSystem;if(e.pipelineContext,n){var r=we(n.dimensions,function(e){return t.mapDimension(e)}).slice(0,2),i=r.length,o=t.getCalculationInfo("stackResultDimension");sc(t,r[0])&&(r[0]=o),sc(t,r[1])&&(r[1]=o);var a=t.getStore(),s=t.getDimensionIndex(r[0]),l=t.getDimensionIndex(r[1]);return i&&{progress:function(e,t){for(var r=gg((e.end-e.start)*i),o=[],u=[],c=e.start,h=0;c<e.end;c++){var d=void 0;if(1===i){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);r[h++]=d[0],r[h++]=d[1]}t.setLayout("points",r)}}}}}),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{seriesType:"line",reset:function(e,t,n){var r=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,a=r.count();if(a>10&&"cartesian2d"===o.type&&i){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"===i?e.setData(r.lttbDownSample(r.mapDimension(l.dim),1/d)):"minmax"===i&&e.setData(r.minmaxDownSample(r.mapDimension(l.dim),1/d));var f=void 0;Pe(i)?f=jg[i]:Ie(i)&&(f=i),f&&e.setData(r.downSample(r.mapDimension(l.dim),1/d,f,$g))}}}})},function(e){e.registerPainter("canvas",SC)},function(e){US(A_),e.registerComponentModel(XS),e.registerComponentView(gC),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},nt),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},nt)}]);var MC={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 DC=(e,n,i,o)=>{const a=r(({color:r="currentColor",size:i=24,stroke:a=2,title:s,className:l,children:u,...c},h)=>t("svg",{ref:h,...MC[e],width:i,height:i,className:["tabler-icon",`tabler-icon-${n}`,l].join(" "),..."filled"===e?{fill:r}:{strokeWidth:a,stroke:r},...c},[s&&t("title",{key:"svg-title"},s),...o.map(([e,n])=>t(e,n)),...Array.isArray(u)?u:[u]]));return a.displayName=`${i}`,a},kC=DC("outline","chevron-up","ChevronUp",[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]]),TC=DC("outline","chevron-down","ChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]),IC=DC("outline","selector","Selector",[["path",{d:"M8 9l4 -4l4 4",key:"svg-0"}],["path",{d:"M16 15l-4 4l-4 -4",key:"svg-1"}]]),PC={À:"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"},LC=Object.keys(PC).join("|"),AC=new RegExp(LC,"g");function RC(e,t,n){return e=OC(e,n),(t=OC(t,n)).length>e.length?0:e===t?7:(e=e.toLowerCase())===(t=t.toLowerCase())?6:e.startsWith(t)?5:e.includes(` ${t}`)?4:e.includes(t)?3:1===t.length?0:function(e){let t="";return e.split(" ").forEach(e=>{e.split("-").forEach(e=>{t+=e.substr(0,1)})}),t}(e).includes(t)?2:function(e,t){let n=0,r=0;function i(e,t,r){for(let i=r,o=t.length;i<o;i++)if(t[i]===e)return n+=1,i+1;return-1}const o=i(t[0],e,0);if(o<0)return 0;r=o;for(let n=1,o=t.length;n<o;n++)if(r=i(t[n],e,r),!(r>-1))return 0;return function(e){const r=1/e;return 1+n/t.length*r}(r-o)}(e,t)}function OC(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(AC,e=>PC[e])),e}function NC(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const r=n(e);return null==r?[]:Array.isArray(r)?r:[String(r)]}const FC={maxRanking:1/0,minRanking:-1/0};function zC(e){return"function"==typeof e?FC:{...FC,...e}}function EC(e,t){return"function"==typeof e?e(t):e}function BC(e,t){return n=>{t.setState(t=>({...t,[e]:EC(n,t[e])}))}}function VC(e){return e instanceof Function}function HC(e,t,n){let r,i=[];return o=>{let a;n.key&&n.debug&&(a=Date.now());const s=e(o);if(s.length===i.length&&!s.some((e,t)=>i[t]!==e))return r;let l;if(i=s,n.key&&n.debug&&(l=Date.now()),r=t(...s),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-a))/100,t=Math.round(100*(Date.now()-l))/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function GC(e,t,n,r){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:r}}const WC="debugHeaders";function YC(e,t,n){var r;let i={id:null!=(r=n.id)?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(i),e},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(i,e)}),i}const jC={createTable:e=>{e.getHeaderGroups=HC(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{var o,a;const s=null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],l=null!=(a=null==i?void 0:i.map(e=>n.find(t=>t.id===e)).filter(Boolean))?a:[];return $C(t,[...s,...n.filter(e=>!(null!=r&&r.includes(e.id)||null!=i&&i.includes(e.id))),...l],e)},GC(e.options,WC)),e.getCenterHeaderGroups=HC(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>$C(t,n=n.filter(e=>!(null!=r&&r.includes(e.id)||null!=i&&i.includes(e.id))),e,"center"),GC(e.options,WC)),e.getLeftHeaderGroups=HC(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var i;return $C(t,null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],e,"left")},GC(e.options,WC)),e.getRightHeaderGroups=HC(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var i;return $C(t,null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],e,"right")},GC(e.options,WC)),e.getFooterGroups=HC(()=>[e.getHeaderGroups()],e=>[...e].reverse(),GC(e.options,WC)),e.getLeftFooterGroups=HC(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),GC(e.options,WC)),e.getCenterFooterGroups=HC(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),GC(e.options,WC)),e.getRightFooterGroups=HC(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),GC(e.options,WC)),e.getFlatHeaders=HC(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),GC(e.options,WC)),e.getLeftFlatHeaders=HC(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),GC(e.options,WC)),e.getCenterFlatHeaders=HC(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),GC(e.options,WC)),e.getRightFlatHeaders=HC(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),GC(e.options,WC)),e.getCenterLeafHeaders=HC(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),GC(e.options,WC)),e.getLeftLeafHeaders=HC(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),GC(e.options,WC)),e.getRightLeafHeaders=HC(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),GC(e.options,WC)),e.getLeafHeaders=HC(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,i,o,a,s,l;return[...null!=(r=null==(i=e[0])?void 0:i.headers)?r:[],...null!=(o=null==(a=t[0])?void 0:a.headers)?o:[],...null!=(s=null==(l=n[0])?void 0:l.headers)?s:[]].map(e=>e.getLeafHeaders()).flat()},GC(e.options,WC))}};function $C(e,t,n,r){var i,o;let a=0;const s=function(e,t){void 0===t&&(t=1),a=Math.max(a,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&s(e.columns,t+1)},0)};s(e);let l=[];const u=(e,t)=>{const i={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},o=[];e.forEach(e=>{const a=[...o].reverse()[0];let s,l=!1;if(e.column.depth===i.depth&&e.column.parent?s=e.column.parent:(s=e.column,l=!0),a&&(null==a?void 0:a.column)===s)a.subHeaders.push(e);else{const i=YC(n,s,{id:[r,t,s.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${o.filter(e=>e.column===s).length}`:void 0,depth:t,index:o.length});i.subHeaders.push(e),o.push(i)}i.headers.push(e),e.headerGroup=i}),l.push(i),t>0&&u(o,t-1)},c=t.map((e,t)=>YC(n,e,{depth:a,index:t}));u(c,a-1),l.reverse();const h=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];return e.subHeaders&&e.subHeaders.length?(r=[],h(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:i}=e;t+=n,r.push(i)})):t=1,n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return h(null!=(i=null==(o=l[0])?void 0:o.headers)?i:[]),l}const UC=(e,t,n,r,i,o,a)=>{let s={id:t,index:r,original:n,depth:i,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]):void 0},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=s.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=o?o:[],getLeafRows:()=>function(e,t){const n=[],r=e=>{e.forEach(e=>{n.push(e);const i=t(e);null!=i&&i.length&&r(i)})};return r(e),n}(s.subRows,e=>e.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:HC(()=>[e.getAllLeafColumns()],t=>t.map(t=>function(e,t,n,r){const i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=i.getValue())?t:e.options.renderFallbackValue},getContext:HC(()=>[e,n,t,i],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),GC(e.options,"debugCells"))};return e._features.forEach(r=>{null==r.createCell||r.createCell(i,n,t,e)},{}),i}(e,s,t,t.id)),GC(e.options,"debugRows")),_getAllCellsByColumnId:HC(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),GC(e.options,"debugRows"))};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(s,e)}return s},XC={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},qC=(e,t,n)=>{var r,i;const o=null==n||null==(r=n.toString())?void 0:r.toLowerCase();return Boolean(null==(i=e.getValue(t))||null==(i=i.toString())||null==(i=i.toLowerCase())?void 0:i.includes(o))};qC.autoRemove=e=>oM(e);const ZC=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};ZC.autoRemove=e=>oM(e);const KC=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};KC.autoRemove=e=>oM(e);const QC=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};QC.autoRemove=e=>oM(e);const JC=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});JC.autoRemove=e=>oM(e)||!(null!=e&&e.length);const eM=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});eM.autoRemove=e=>oM(e)||!(null!=e&&e.length);const tM=(e,t,n)=>e.getValue(t)===n;tM.autoRemove=e=>oM(e);const nM=(e,t,n)=>e.getValue(t)==n;nM.autoRemove=e=>oM(e);const rM=(e,t,n)=>{let[r,i]=n;const o=e.getValue(t);return o>=r&&o<=i};rM.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,i="number"!=typeof n?parseFloat(n):n,o=null===t||Number.isNaN(r)?-1/0:r,a=null===n||Number.isNaN(i)?1/0:i;if(o>a){const e=o;o=a,a=e}return[o,a]},rM.autoRemove=e=>oM(e)||oM(e[0])&&oM(e[1]);const iM={includesString:qC,includesStringSensitive:ZC,equalsString:KC,arrIncludes:QC,arrIncludesAll:JC,arrIncludesSome:eM,equals:tM,weakEquals:nM,inNumberRange:rM};function oM(e){return null==e||""===e}const aM={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:BC("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?iM.includesString:"number"==typeof r?iM.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?iM.equals:Array.isArray(r)?iM.arrIncludes:iM.weakEquals},e.getFilterFn=()=>{var n,r;return VC(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:iM[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,i;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(i=t.options.enableFilters)||i)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find(t=>t.id===e.id))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.setFilterValue=n=>{t.setColumnFilters(t=>{const r=e.getFilterFn(),i=null==t?void 0:t.find(t=>t.id===e.id),o=EC(n,i?i.value:void 0);var a;if(sM(r,o,e))return null!=(a=null==t?void 0:t.filter(t=>t.id!==e.id))?a:[];const s={id:e.id,value:o};var l;return i?null!=(l=null==t?void 0:t.map(t=>t.id===e.id?s:t))?l:[]:null!=t&&t.length?[...t,s]:[s]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var r;return null==(r=EC(t,e))?void 0:r.filter(e=>{const t=n.find(t=>t.id===e.id);return!t||!sM(t.getFilterFn(),e.value,t)})})},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function sM(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const lM={sum:(e,t,n)=>n.reduce((t,n)=>{const r=n.getValue(e);return t+("number"==typeof r?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,i;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=i=n):(r>n&&(r=n),i<n&&(i=n)))}),[r,i]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(t=>{let i=t.getValue(e);null!=i&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map(t=>t.getValue(e));if(r=n,!Array.isArray(r)||!r.every(e=>"number"==typeof e))return;var r;if(1===n.length)return n[0];const i=Math.floor(n.length/2),o=n.sort((e,t)=>e-t);return n.length%2!=0?o[i]:(o[i-1]+o[i])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},uM={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:BC("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var n,r;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(r=t.options.enableGrouping)||r)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?lM.sum:"[object Date]"===Object.prototype.toString.call(r)?lM.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return VC(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:lM[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}},cM={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:BC("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=HC(e=>[vM(t,e)],t=>t.findIndex(t=>t.id===e.id),GC(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return(null==(r=vM(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=vM(t,n);return(null==(r=i[i.length-1])?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=HC(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let i=[];if(null!=e&&e.length){const t=[...e],n=[...r];for(;n.length&&t.length;){const e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&i.push(n.splice(r,1)[0])}i=[...i,...n]}else i=r;return function(e,t,n){if(null==t||!t.length||!n)return e;const r=e.filter(e=>!t.includes(e.id));return"remove"===n?r:[...t.map(t=>e.find(e=>e.id===t)).filter(Boolean),...r]}(i,t,n)},GC(e.options,"debugTable"))}},hM={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:BC("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,i,o,a,s,l;return"right"===n?{left:(null!=(o=null==e?void 0:e.left)?o:[]).filter(e=>!(null!=r&&r.includes(e))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter(e=>!(null!=r&&r.includes(e))),...r]}:"left"===n?{left:[...(null!=(s=null==e?void 0:e.left)?s:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(l=null==e?void 0:e.right)?l:[]).filter(e=>!(null!=r&&r.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=r&&r.includes(e))),right:(null!=(i=null==e?void 0:e.right)?i:[]).filter(e=>!(null!=r&&r.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var n,r,i;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(i=t.options.enableColumnPinning)?i:t.options.enablePinning)||r)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(e=>e.id),{left:r,right:i}=t.getState().columnPinning,o=n.some(e=>null==r?void 0:r.includes(e)),a=n.some(e=>null==i?void 0:i.includes(e));return o?"left":!!a&&"right"},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();return i?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[i])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=HC(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.column.id))},GC(t.options,"debugRows")),e.getLeftVisibleCells=HC(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"})),GC(t.options,"debugRows")),e.getRightVisibleCells=HC(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"})),GC(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;var i,o;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(i=r.left)?void 0:i.length)||(null==(o=r.right)?void 0:o.length))},e.getLeftLeafColumns=HC(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),GC(e.options,"debugColumns")),e.getRightLeafColumns=HC(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),GC(e.options,"debugColumns")),e.getCenterLeafColumns=HC(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.id))},GC(e.options,"debugColumns"))}},dM={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},fM={getDefaultColumnDef:()=>dM,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:BC("columnSizing",e),onColumnSizingInfoChange:BC("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,i;const o=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:dM.minSize,null!=(r=null!=o?o:e.columnDef.size)?r:dM.size),null!=(i=e.columnDef.maxSize)?i:dM.maxSize)},e.getStart=HC(e=>[e,vM(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),GC(t.options,"debugColumns")),e.getAfter=HC(e=>[e,vM(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),GC(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(r=e.column.getSize())?r:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),i=null==r?void 0:r.getCanResize();return o=>{if(!r||!i)return;if(null==o.persist||o.persist(),gM(o)&&o.touches&&o.touches.length>1)return;const a=e.getSize(),s=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],l=gM(o)?Math.round(o.touches[0].clientX):o.clientX,u={},c=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo(e=>{var r,i;const o="rtl"===t.options.columnResizeDirection?-1:1,a=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*o,s=Math.max(a/(null!=(i=null==e?void 0:e.startSize)?i:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;u[t]=Math.round(100*Math.max(n+n*s,0))/100}),{...e,deltaOffset:a,deltaPercentage:s}}),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing(e=>({...e,...u})))},h=e=>c("move",e),d=e=>{c("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=n||("undefined"!=typeof document?document:null),p={moveHandler:e=>h(e.clientX),upHandler:e=>{null==f||f.removeEventListener("mousemove",p.moveHandler),null==f||f.removeEventListener("mouseup",p.upHandler),d(e.clientX)}},g={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),h(e.touches[0].clientX),!1),upHandler:e=>{var t;null==f||f.removeEventListener("touchmove",g.moveHandler),null==f||f.removeEventListener("touchend",g.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(null==(t=e.touches[0])?void 0:t.clientX)}},m=!!function(){if("boolean"==typeof pM)return pM;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return pM=e,pM}()&&{passive:!1};gM(o)?(null==f||f.addEventListener("touchmove",g.moveHandler,m),null==f||f.addEventListener("touchend",g.upHandler,m)):(null==f||f.addEventListener("mousemove",p.moveHandler,m),null==f||f.addEventListener("mouseup",p.upHandler,m)),t.setColumnSizingInfo(e=>({...e,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}};let pM=null;function gM(e){return"touchstart"===e.type}const mM={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:BC("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const i=e.columns;return null==(n=i.length?i.some(e=>e.getIsVisible()):null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=HC(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),GC(t.options,"debugRows")),e.getVisibleCells=HC(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],GC(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>HC(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),GC(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t(0,()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t(0,()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t(0,()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t(0,()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}};function vM(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const yM={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:BC("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,i;if(t){if(null!=(r=null!=(i=e.options.autoResetAll)?i:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}}else e._queue(()=>{t=!0})},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some(e=>!e.getIsExpanded())},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{const n=e.split(".");t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var i;const o=!0===r||!(null==r||!r[e.id]);let a={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach(e=>{a[e]=!0}):a=r,n=null!=(i=n)?i:!o,!o&&n)return{...a,[e.id]:!0};if(o&&!n){const{[e.id]:t,...n}=a;return n}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,i;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!(null==(i=e.subRows)||!i.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},_M={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:BC("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):i.forEach(e=>{delete r[e.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=void 0!==t?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach(t=>{xM(i,t.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=HC(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?bM(e,n):{rows:[],flatRows:[],rowsById:{}},GC(e.options,"debugTable")),e.getFilteredSelectedRowModel=HC(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?bM(e,n):{rows:[],flatRows:[],rowsById:{}},GC(e.options,"debugTable")),e.getGroupedSelectedRowModel=HC(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?bM(e,n):{rows:[],flatRows:[],rowsById:{}},GC(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=Boolean(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const i=e.getIsSelected();t.setRowSelection(o=>{var a;if(n=void 0!==n?n:!i,e.getCanSelect()&&i===n)return o;const s={...o};return xM(s,e.id,n,null==(a=null==r?void 0:r.selectChildren)||a,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return wM(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===SM(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===SM(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},xM=(e,t,n,r,i)=>{var o;const a=i.getRow(t,!0);n?(a.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),a.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(o=a.subRows)&&o.length&&a.getCanSelectSubRows()&&a.subRows.forEach(t=>xM(e,t.id,n,r,i))};function bM(e,t){const n=e.getState().rowSelection,r=[],i={},o=function(e,t){return e.map(e=>{var t;const a=wM(e,n);if(a&&(r.push(e),i[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:o(e.subRows)}),a)return e}).filter(Boolean)};return{rows:o(t.rows),flatRows:r,rowsById:i}}function wM(e,t){var n;return null!=(n=t[e.id])&&n}function SM(e,t,n){var r;if(null==(r=e.subRows)||!r.length)return!1;let i=!0,o=!1;return e.subRows.forEach(e=>{if((!o||i)&&(e.getCanSelect()&&(wM(e,t)?o=!0:i=!1),e.subRows&&e.subRows.length)){const n=SM(e,t);"all"===n?o=!0:"some"===n?(o=!0,i=!1):i=!1}}),i?"all":!!o&&"some"}const CM=/([0-9]+)/gm;function MM(e,t){return e===t?0:e>t?1:-1}function DM(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function kM(e,t){const n=e.split(CM).filter(Boolean),r=t.split(CM).filter(Boolean);for(;n.length&&r.length;){const e=n.shift(),t=r.shift(),i=parseInt(e,10),o=parseInt(t,10),a=[i,o].sort();if(isNaN(a[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(a[1]))return isNaN(i)?-1:1;if(i>o)return 1;if(o>i)return-1}}return n.length-r.length}const TM={alphanumeric:(e,t,n)=>kM(DM(e.getValue(n)).toLowerCase(),DM(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>kM(DM(e.getValue(n)),DM(t.getValue(n))),text:(e,t,n)=>MM(DM(e.getValue(n)).toLowerCase(),DM(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>MM(DM(e.getValue(n)),DM(t.getValue(n))),datetime:(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},basic:(e,t,n)=>MM(e.getValue(n),t.getValue(n))},IM={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:BC("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return TM.datetime;if("string"==typeof n&&(r=!0,n.split(CM).length>1))return TM.alphanumeric}return r?TM.text:TM.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return VC(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:TM[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const i=e.getNextSortingOrder(),o=null!=n;t.setSorting(a=>{const s=null==a?void 0:a.find(t=>t.id===e.id),l=null==a?void 0:a.findIndex(t=>t.id===e.id);let u,c=[],h=o?n:"desc"===i;var d;return u=null!=a&&a.length&&e.getCanMultiSort()&&r?s?"toggle":"add":null!=a&&a.length&&l!==a.length-1?"replace":s?"toggle":"replace","toggle"===u&&(o||i||(u="remove")),"add"===u?(c=[...a,{id:e.id,desc:h}],c.splice(0,c.length-(null!=(d=t.options.maxMultiSortColCount)?d:Number.MAX_SAFE_INTEGER))):c="toggle"===u?a.map(t=>t.id===e.id?{...t,desc:h}:t):"remove"===u?a.filter(t=>t.id!==e.id):[{id:e.id,desc:h}],c})},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,i;const o=e.getFirstSortDir(),a=e.getIsSorted();return a?!!(a===o||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(i=t.options.enableMultiRemove)&&!i)&&("desc"===a?"asc":"desc"):o},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},PM=[jC,mM,cM,hM,XC,aM,{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:BC("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,i,o;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(i=t.options.enableFilters)||i)&&(null==(o=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||o)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>iM.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return VC(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:iM[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},IM,uM,yM,{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:BC("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,i;if(t){if(null!=(r=null!=(i=e.options.autoResetAll)?i:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}}else e._queue(()=>{t=!0})},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>EC(t,e)),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination(n=>{let r=EC(t,n.pageIndex);const i=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,i)),{...n,pageIndex:r}})},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination(e=>{const n=Math.max(1,EC(t,e.pageSize)),r=e.pageSize*e.pageIndex,i=Math.floor(r/n);return{...e,pageIndex:i,pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{var r;let i=EC(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof i&&(i=Math.max(-1,i)),{...n,pageCount:i}}),e.getPageOptions=HC(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map((e,t)=>t)),t},GC(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:BC("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{const o=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],a=i?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],s=new Set([...a,e.id,...o]);t.setRowPinning(e=>{var t,r,i,o,a,l;return"bottom"===n?{top:(null!=(i=null==e?void 0:e.top)?i:[]).filter(e=>!(null!=s&&s.has(e))),bottom:[...(null!=(o=null==e?void 0:e.bottom)?o:[]).filter(e=>!(null!=s&&s.has(e))),...Array.from(s)]}:"top"===n?{top:[...(null!=(a=null==e?void 0:e.top)?a:[]).filter(e=>!(null!=s&&s.has(e))),...Array.from(s)],bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter(e=>!(null!=s&&s.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=s&&s.has(e))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=s&&s.has(e)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:i}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?r:i)||n},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,o=n.some(e=>null==r?void 0:r.includes(e)),a=n.some(e=>null==i?void 0:i.includes(e));return o?"top":!!a&&"bottom"},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();if(!i)return-1;const o=null==(n="top"===i?t.getTopRows():t.getBottomRows())?void 0:n.map(e=>{let{id:t}=e;return t});return null!=(r=null==o?void 0:o.indexOf(e.id))?r:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;var i,o;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(i=r.top)?void 0:i.length)||(null==(o=r.bottom)?void 0:o.length))},e._getPinnedRows=(t,n,r)=>{var i;return(null==(i=e.options.keepPinnedRows)||i?(null!=n?n:[]).map(t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=n?n:[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:r}))},e.getTopRows=HC(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),GC(e.options,"debugRows")),e.getBottomRows=HC(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),GC(e.options,"debugRows")),e.getCenterRows=HC(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{const r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter(e=>!r.has(e.id))},GC(e.options,"debugRows"))}},_M,fM];function LM(e){var t,n;const r=[...PM,...null!=(t=e._features)?t:[]];let i={_features:r};const o=i._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(i)),{});let a={...null!=(n=e.initialState)?n:{}};i._features.forEach(e=>{var t;a=null!=(t=null==e.getInitialState?void 0:e.getInitialState(a))?t:a});const s=[];let l=!1;const u={_features:r,options:{...o,...e},initialState:a,_queue:e=>{s.push(e),l||(l=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();l=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{i.setState(i.initialState)},setOptions:e=>{const t=EC(e,i.options);i.options=(e=>i.options.mergeOptions?i.options.mergeOptions(o,e):{...o,...e})(t)},getState:()=>i.options.state,setState:e=>{null==i.options.onStateChange||i.options.onStateChange(e)},_getRowId:(e,t,n)=>{var r;return null!=(r=null==i.options.getRowId?void 0:i.options.getRowId(e,t,n))?r:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?i.getPrePaginationRowModel():i.getRowModel()).rowsById[e];if(!n&&(n=i.getCoreRowModel().rowsById[e],!n))throw new Error;return n},_getDefaultColumnDef:HC(()=>[i.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...i._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},GC(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:HC(()=>[i._getColumnDefs()],e=>{const t=function(e,n,r){return void 0===r&&(r=0),e.map(e=>{const o=function(e,t,n,r){var i,o;const a={...e._getDefaultColumnDef(),...t},s=a.accessorKey;let l,u=null!=(i=null!=(o=a.id)?o:s?"function"==typeof String.prototype.replaceAll?s.replaceAll(".","_"):s.replace(/\./g,"_"):void 0)?i:"string"==typeof a.header?a.header:void 0;if(a.accessorFn?l=a.accessorFn:s&&(l=s.includes(".")?e=>{let t=e;for(const e of s.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[a.accessorKey]),!u)throw new Error;let c={id:`${String(u)}`,accessorFn:l,parent:r,depth:n,columnDef:a,columns:[],getFlatColumns:HC(()=>[!0],()=>{var e;return[c,...null==(e=c.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},GC(e.options,"debugColumns")),getLeafColumns:HC(()=>[e._getOrderColumnsFn()],e=>{var t;if(null!=(t=c.columns)&&t.length){let t=c.columns.flatMap(e=>e.getLeafColumns());return e(t)}return[c]},GC(e.options,"debugColumns"))};for(const t of e._features)null==t.createColumn||t.createColumn(c,e);return c}(i,e,r,n),a=e;return o.columns=a.columns?t(a.columns,o,r+1):[],o})};return t(e)},GC(e,"debugColumns")),getAllFlatColumns:HC(()=>[i.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),GC(e,"debugColumns")),_getAllFlatColumnsById:HC(()=>[i.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),GC(e,"debugColumns")),getAllLeafColumns:HC(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),GC(e,"debugColumns")),getColumn:e=>i._getAllFlatColumnsById()[e]};Object.assign(i,u);for(let e=0;e<i._features.length;e++){const t=i._features[e];null==t||null==t.createTable||t.createTable(i)}return i}function AM(e,n){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(r=e)||"function"==typeof r||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(r)?t(e,n):e:null;var r}const RM="asc",OM="desc",NM="default",FM={[RM]:(0,$.jsx)(kC,{}),[OM]:(0,$.jsx)(TC,{}),[NM]:(0,$.jsx)(IC,{})};function zM({isLoading:e,error:t,tableRows:n,columnCount:r}){let i;return i=!0===e?Array.from({length:5}).map((e,t)=>(0,$.jsx)(k.Tr,{children:Array.from({length:r}).map((e,t)=>(0,$.jsx)(k.Td,{children:(0,$.jsx)(D,{height:16,width:"100%"})},t))},t)):t instanceof Error?(0,$.jsx)(k.Tr,{children:(0,$.jsx)(k.Td,{colSpan:r,align:"center",children:(0,$.jsx)(p,{color:"red",children:t.message})})}):0===n.length?(0,$.jsx)(k.Tr,{children:(0,$.jsx)(k.Td,{colSpan:r,align:"center",children:"No data available."})}):n.map(e=>(0,$.jsx)(k.Tr,{children:e.getVisibleCells().map(e=>(0,$.jsx)(k.Td,{children:AM(e.column.columnDef.cell,e.getContext())},e.id))},e.id)),i}const EM=(e,t,n,r)=>{const i=function(e,t,n){var r;if((n=n||{}).threshold=null!=(r=n.threshold)?r:1,!n.accessors){const r=RC(e,t,n);return{rankedValue:e,rank:r,accessorIndex:-1,accessorThreshold:n.threshold,passed:r>=n.threshold}}const i=function(e,t){const n=[];for(let r=0,i=t.length;r<i;r++){const i=t[r],o=zC(i),a=NC(e,i);for(let e=0,t=a.length;e<t;e++)n.push({itemValue:a[e],attributes:o})}return n}(e,n.accessors),o={rankedValue:e,rank:0,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<i.length;e++){const r=i[e];let a=RC(r.itemValue,t,n);const{minRanking:s,maxRanking:l,threshold:u=n.threshold}=r.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=e,o.accessorThreshold=u,o.rankedValue=r.itemValue)}return o}(e.getValue(t),n??"");return r({itemRank:i}),i.passed};function BM({data:e,isLoading:t,error:n,columns:r}){const[i,o]=h([]),[a,s]=h([]),l=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=h(()=>({current:LM(t)})),[r,i]=h(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{i(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}({data:e,columns:r,getCoreRowModel:e=>HC(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,i,o){void 0===i&&(i=0);const a=[];for(let l=0;l<t.length;l++){const u=UC(e,e._getRowId(t[l],l,o),t[l],l,i,void 0,null==o?void 0:o.id);var s;n.flatRows.push(u),n.rowsById[u.id]=u,a.push(u),e.options.getSubRows&&(u.originalSubRows=e.options.getSubRows(t[l],l),null!=(s=u.originalSubRows)&&s.length&&(u.subRows=r(u.originalSubRows,i+1,u)))}return a};return n.rows=r(t),n},GC(e.options,"debugTable",0,()=>e._autoResetPageIndex())),getSortedRowModel:e=>HC(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const r=e.getState().sorting,i=[],o=r.filter(t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()}),a={};o.forEach(t=>{const n=e.getColumn(t.id);n&&(a[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})});const s=e=>{const t=e.map(e=>({...e}));return t.sort((e,t)=>{for(let r=0;r<o.length;r+=1){var n;const i=o[r],s=a[i.id],l=s.sortUndefined,u=null!=(n=null==i?void 0:i.desc)&&n;let c=0;if(l){const n=void 0===e.getValue(i.id),r=void 0===t.getValue(i.id);if(n||r){if("first"===l)return n?-1:1;if("last"===l)return n?1:-1;c=n&&r?0:n?l:-l}}if(0===c&&(c=s.sortingFn(e,t,i.id)),0!==c)return u&&(c*=-1),s.invertSorting&&(c*=-1),c}return e.index-t.index}),t.forEach(e=>{var t;i.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=s(e.subRows))}),t};return{rows:s(n.rows),flatRows:i,rowsById:n.rowsById}},GC(e.options,"debugTable",0,()=>e._autoResetPageIndex())),getFilteredRowModel:e=>HC(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||(null==n||!n.length)&&!r){for(let e=0;e<t.flatRows.length;e++)t.flatRows[e].columnFilters={},t.flatRows[e].columnFiltersMeta={};return t}const i=[],o=[];(null!=n?n:[]).forEach(t=>{var n;const r=e.getColumn(t.id);if(!r)return;const o=r.getFilterFn();o&&i.push({id:t.id,filterFn:o,resolvedValue:null!=(n=null==o.resolveFilterValue?void 0:o.resolveFilterValue(t.value))?n:t.value})});const a=(null!=n?n:[]).map(e=>e.id),s=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(e=>e.getCanGlobalFilter());let u,c;r&&s&&l.length&&(a.push("__global__"),l.forEach(e=>{var t;o.push({id:e.id,filterFn:s,resolvedValue:null!=(t=null==s.resolveFilterValue?void 0:s.resolveFilterValue(r))?t:r})}));for(let e=0;e<t.flatRows.length;e++){const n=t.flatRows[e];if(n.columnFilters={},i.length)for(let e=0;e<i.length;e++){u=i[e];const t=u.id;n.columnFilters[t]=u.filterFn(n,t,u.resolvedValue,e=>{n.columnFiltersMeta[t]=e})}if(o.length){for(let e=0;e<o.length;e++){c=o[e];const t=c.id;if(c.filterFn(n,t,c.resolvedValue,e=>{n.columnFiltersMeta[t]=e})){n.columnFilters.__global__=!0;break}}!0!==n.columnFilters.__global__&&(n.columnFilters.__global__=!1)}}return function(e,t,n){return n.options.filterFromLeafRows?function(e,t,n){var r;const i=[],o={},a=null!=(r=n.options.maxLeafRowFilterDepth)?r:100,s=function(e,r){void 0===r&&(r=0);const l=[];for(let c=0;c<e.length;c++){var u;let h=e[c];const d=UC(n,h.id,h.original,h.index,h.depth,void 0,h.parentId);if(d.columnFilters=h.columnFilters,null!=(u=h.subRows)&&u.length&&r<a){if(d.subRows=s(h.subRows,r+1),h=d,t(h)&&!d.subRows.length){l.push(h),o[h.id]=h,i.push(h);continue}if(t(h)||d.subRows.length){l.push(h),o[h.id]=h,i.push(h);continue}}else h=d,t(h)&&(l.push(h),o[h.id]=h,i.push(h))}return l};return{rows:s(e),flatRows:i,rowsById:o}}(e,t,n):function(e,t,n){var r;const i=[],o={},a=null!=(r=n.options.maxLeafRowFilterDepth)?r:100,s=function(e,r){void 0===r&&(r=0);const l=[];for(let c=0;c<e.length;c++){let h=e[c];if(t(h)){var u;if(null!=(u=h.subRows)&&u.length&&r<a){const e=UC(n,h.id,h.original,h.index,h.depth,void 0,h.parentId);e.subRows=s(h.subRows,r+1),h=e}l.push(h),i.push(h),o[h.id]=h}}return l};return{rows:s(e),flatRows:i,rowsById:o}}(e,t,n)}(t.rows,e=>{for(let t=0;t<a.length;t++)if(!1===e.columnFilters[a[t]])return!1;return!0},e)},GC(e.options,"debugTable",0,()=>e._autoResetPageIndex())),onSortingChange:o,onColumnFiltersChange:s,state:{sorting:i,columnFilters:a},filterFns:{fuzzyFilter:EM}});return(0,$.jsx)(S,{children:(0,$.jsxs)(k,{highlightOnHover:!0,withTableBorder:!0,withColumnBorders:!0,children:[(0,$.jsxs)(k.Thead,{children:[l.getHeaderGroups().map(e=>(0,$.jsx)(k.Tr,{children:e.headers.map(e=>(0,$.jsx)(k.Th,{onClick:e.column.getToggleSortingHandler(),children:(0,$.jsxs)(v,{gap:"xs",wrap:"nowrap",children:[AM(e.column.columnDef.header,e.getContext()),(0,$.jsx)(f,{variant:"subtle",size:"sm",children:(()=>{const t=e.column.getIsSorted();return function(e,t){let n;return!0===t&&(n=FM[e]),n}(!1===t?NM:t,e.column.getCanSort())})()})]})},e.id))},e.id)),l.getHeaderGroups().map(e=>(0,$.jsx)(k.Tr,{children:e.headers.map(e=>{return(0,$.jsx)(k.Th,{children:(t=e.column,t.getCanFilter()?(0,$.jsx)(I,{placeholder:"string"==typeof t.columnDef.header?`Filter ${t.columnDef.header}`:"Filter",value:t.getFilterValue()??"",onChange:e=>{t.setFilterValue(e.target.value)}}):null)},e.id);var t})},e.id))]}),(0,$.jsx)(k.Tbody,{children:zM({isLoading:t,error:n,tableRows:l.getRowModel().rows,columnCount:r.length})})]})})}function VM(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n}const HM=VM("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),GM=VM("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),WM=VM("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),YM=VM("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),jM=VM("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),$M=VM("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),UM=VM("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),XM=VM("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function qM(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ZM(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function KM(){}var QM=.7,JM=1/QM,eD="\\s*([+-]?\\d+)\\s*",tD="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",nD="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rD=/^#([0-9a-f]{3,8})$/,iD=new RegExp(`^rgb\\(${eD},${eD},${eD}\\)$`),oD=new RegExp(`^rgb\\(${nD},${nD},${nD}\\)$`),aD=new RegExp(`^rgba\\(${eD},${eD},${eD},${tD}\\)$`),sD=new RegExp(`^rgba\\(${nD},${nD},${nD},${tD}\\)$`),lD=new RegExp(`^hsl\\(${tD},${nD},${nD}\\)$`),uD=new RegExp(`^hsla\\(${tD},${nD},${nD},${tD}\\)$`),cD={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 hD(){return this.rgb().formatHex()}function dD(){return this.rgb().formatRgb()}function fD(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=rD.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?pD(t):3===n?new vD(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?gD(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?gD(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=iD.exec(e))?new vD(t[1],t[2],t[3],1):(t=oD.exec(e))?new vD(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=aD.exec(e))?gD(t[1],t[2],t[3],t[4]):(t=sD.exec(e))?gD(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=lD.exec(e))?SD(t[1],t[2]/100,t[3]/100,1):(t=uD.exec(e))?SD(t[1],t[2]/100,t[3]/100,t[4]):cD.hasOwnProperty(e)?pD(cD[e]):"transparent"===e?new vD(NaN,NaN,NaN,0):null}function pD(e){return new vD(e>>16&255,e>>8&255,255&e,1)}function gD(e,t,n,r){return r<=0&&(e=t=n=NaN),new vD(e,t,n,r)}function mD(e,t,n,r){return 1===arguments.length?((i=e)instanceof KM||(i=fD(i)),i?new vD((i=i.rgb()).r,i.g,i.b,i.opacity):new vD):new vD(e,t,n,null==r?1:r);var i}function vD(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function yD(){return`#${wD(this.r)}${wD(this.g)}${wD(this.b)}`}function _D(){const e=xD(this.opacity);return`${1===e?"rgb(":"rgba("}${bD(this.r)}, ${bD(this.g)}, ${bD(this.b)}${1===e?")":`, ${e})`}`}function xD(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function bD(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function wD(e){return((e=bD(e))<16?"0":"")+e.toString(16)}function SD(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new MD(e,t,n,r)}function CD(e){if(e instanceof MD)return new MD(e.h,e.s,e.l,e.opacity);if(e instanceof KM||(e=fD(e)),!e)return new MD;if(e instanceof MD)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new MD(a,s,l,e.opacity)}function MD(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function DD(e){return(e=(e||0)%360)<0?e+360:e}function kD(e){return Math.max(0,Math.min(1,e||0))}function TD(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function ID(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}qM(KM,fD,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:hD,formatHex:hD,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return CD(this).formatHsl()},formatRgb:dD,toString:dD}),qM(vD,mD,ZM(KM,{brighter(e){return e=null==e?JM:Math.pow(JM,e),new vD(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?QM:Math.pow(QM,e),new vD(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new vD(bD(this.r),bD(this.g),bD(this.b),xD(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:yD,formatHex:yD,formatHex8:function(){return`#${wD(this.r)}${wD(this.g)}${wD(this.b)}${wD(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:_D,toString:_D})),qM(MD,function(e,t,n,r){return 1===arguments.length?CD(e):new MD(e,t,n,null==r?1:r)},ZM(KM,{brighter(e){return e=null==e?JM:Math.pow(JM,e),new MD(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?QM:Math.pow(QM,e),new MD(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new vD(TD(e>=240?e-240:e+120,i,r),TD(e,i,r),TD(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new MD(DD(this.h),kD(this.s),kD(this.l),xD(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 e=xD(this.opacity);return`${1===e?"hsl(":"hsla("}${DD(this.h)}, ${100*kD(this.s)}%, ${100*kD(this.l)}%${1===e?")":`, ${e})`}`}}));const PD=e=>()=>e;function LD(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):PD(isNaN(e)?t:e)}function AD(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=mD(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}!function e(t){var n=function(e){return 1===(e=+e)?LD:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):PD(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=mD(e)).r,(t=mD(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=LD(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var RD=AD(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return ID((n-r/t)*t,a,i,o,s)}});AD(function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return ID((n-r/t)*t,i,o,a,s)}});const OD=e=>RD(e[e.length-1]);var ND=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(VM);OD(ND);var FD=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(VM);OD(FD);var zD=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(VM);OD(zD);var ED=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(VM);OD(ED);var BD=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(VM);OD(BD);var VD=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(VM);OD(VD);var HD=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(VM);OD(HD);var GD=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(VM);OD(GD);var WD=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(VM);OD(WD);var YD=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(VM);OD(YD);var jD=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(VM);OD(jD);var $D=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(VM);OD($D);var UD=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(VM);OD(UD);var XD=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(VM);OD(XD);var qD=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(VM);OD(qD);var ZD=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(VM);OD(ZD);var KD=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(VM);OD(KD);var QD=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(VM);OD(QD);var JD=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(VM);OD(JD);var ek=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(VM);OD(ek);const tk={Categorical:{"color-scheme-category-10":HM,"color-scheme-accent":GM,"color-scheme-dark-2":WM,"color-scheme-observable-10":YM,"color-scheme-paired":jM,"color-scheme-set-1":$M,"color-scheme-set-2":UM,"color-scheme-tableau-10":XM},SequentialSingleHue:{"color-scheme-blues":ND[9],"color-scheme-greens":FD[9],"color-scheme-greys":zD[9],"color-scheme-oranges":ED[9],"color-scheme-purples":BD[9],"color-scheme-reds":VD[9]},SequentialMultiHue:{"color-scheme-yellow-orange-brown":HD[9],"color-scheme-yellow-orange-red":GD[9],"color-scheme-orange-red":WD[9],"color-scheme-purple-blue-green":YD[9],"color-scheme-blue-purple":jD[9]},Diverging:{"color-scheme-brown-blue-green":$D[11],"color-scheme-purple-green":UD[11],"color-scheme-pink-yellow-green":XD[11],"color-scheme-purple-orange":qD[11],"color-scheme-red-blue":ZD[11],"color-scheme-red-grey":KD[11],"color-scheme-red-yellow-blue":QD[11],"color-scheme-red-yellow-green":JD[11],"color-scheme-spectral":ek[11]}},nk={"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"},rk=Object.entries(tk).map(([e,t])=>({group:e,items:Object.keys(t).map(t=>({value:t,label:nk[t],groupName:e}))}));function ik({option:e}){const t=tk[e.groupName][e.value];return(0,$.jsxs)(v,{justify:"space-between",w:"100%",wrap:"nowrap",children:[(0,$.jsx)(T,{children:e.label}),(0,$.jsx)(v,{p:"xs",children:t.map(e=>(0,$.jsx)(P,{bg:e,size:"xs"},e))})]})}function ok(e){return(0,$.jsx)(C,{placeholder:"Select color palette for chart",renderOption:ik,data:rk,...e})}const ak=({date:e})=>{let t="Invalid date";return(e instanceof Date||"string"==typeof e)&&(t=(e instanceof Date?e:new Date(e)).toLocaleString(void 0,{month:"short",day:"2-digit",year:"numeric"})),t};var sk=Y(464),lk=Y.n(sk);function uk(e){return null==e||""===e?e:sk(e).format("YYYY-MM-DD")}function ck(e){return null==e||""===e?e:sk(e).format("YYYY-MM-DD HH:mm:ss")}function hk({minDate:e,maxDate:t}){const n=sk();return e||t?e&&sk(n).isBefore(e)?uk(e):t&&sk(n).isAfter(t)?uk(t):uk(n):uk(n)}const dk=e({locale:"en",firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1});function fk(){const e=o(dk),t=i(t=>t||e.locale,[e.locale]),n=i(t=>"number"==typeof t?t:e.firstDayOfWeek,[e.firstDayOfWeek]),r=i(t=>Array.isArray(t)?t:e.weekendDays,[e.weekendDays]),a=i(t=>"string"==typeof t?t:e.labelSeparator,[e.labelSeparator]);return{...e,getLocale:t,getFirstDayOfWeek:n,getWeekendDays:r,getLabelSeparator:a}}function pk({type:e,date:t,locale:n,format:r,labelSeparator:i}){const o=e=>sk(e).locale(n).format(r);return"default"===e?null===t?"":o(t):"multiple"===e?t.map(o).join(", "):"range"===e&&Array.isArray(t)?t[0]&&t[1]?`${o(t[0])} ${i} ${o(t[1])}`:t[0]?`${o(t[0])} ${i} `:"":""}function gk({formatter:e,...t}){return(e||pk)(t)}function mk({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){const[i,o]=h(void 0!==t?t:n);return void 0!==e?[e,r,!0]:[i,(e,...t)=>{o(e),r?.(e,...t)},!1]}const vk=e=>"range"===e?[null,null]:"multiple"===e?[]:null,yk=(e,t)=>{const n=t?ck:uk;return Array.isArray(e)?e.map(n):n(e)};function _k({type:e,value:t,defaultValue:n,onChange:r,withTime:i=!1}){const o=c(e),[a,s,l]=mk({value:yk(t,i),defaultValue:yk(n,i),finalValue:vk(e),onChange:r});let u=a;return o.current!==e&&(o.current=e,void 0===t&&(u=void 0!==n?n:vk(e),s(u))),[u,s,l]}function xk(e){const{maxLevel:t,minLevel:n,defaultLevel:r,level:i,onLevelChange:o,nextIcon:a,previousIcon:s,date:l,defaultDate:u,onDateChange:c,numberOfColumns:h,columnsToScroll:d,ariaLabels:f,nextLabel:p,previousLabel:g,onYearSelect:m,onMonthSelect:v,onYearMouseEnter:y,onMonthMouseEnter:_,onNextMonth:x,onPreviousMonth:b,onNextYear:w,onPreviousYear:S,onNextDecade:C,onPreviousDecade:M,withCellSpacing:D,highlightToday:k,__updateDateOnYearSelect:T,__updateDateOnMonthSelect:I,__setDateRef:P,__setLevelRef:L,withWeekNumbers:A,headerControlsOrder:R,firstDayOfWeek:O,weekdayFormat:N,weekendDays:F,getDayProps:z,excludeDate:E,renderDay:B,hideOutsideDates:V,hideWeekdays:H,getDayAriaLabel:G,monthLabelFormat:W,monthsListFormat:Y,getMonthControlProps:j,yearLabelFormat:$,yearsListFormat:U,getYearControlProps:X,decadeLabelFormat:q,allowSingleDateInRange:Z,allowDeselect:K,minDate:Q,maxDate:J,locale:ee,...te}=e;return{calendarProps:{maxLevel:t,minLevel:n,defaultLevel:r,level:i,onLevelChange:o,nextIcon:a,previousIcon:s,date:l,defaultDate:u,onDateChange:c,numberOfColumns:h,columnsToScroll:d,ariaLabels:f,nextLabel:p,previousLabel:g,onYearSelect:m,onMonthSelect:v,onYearMouseEnter:y,onMonthMouseEnter:_,onNextMonth:x,onPreviousMonth:b,onNextYear:w,onPreviousYear:S,onNextDecade:C,onPreviousDecade:M,withCellSpacing:D,highlightToday:k,__updateDateOnYearSelect:T,__updateDateOnMonthSelect:I,__setDateRef:P,withWeekNumbers:A,headerControlsOrder:R,firstDayOfWeek:O,weekdayFormat:N,weekendDays:F,getDayProps:z,excludeDate:E,renderDay:B,hideOutsideDates:V,hideWeekdays:H,getDayAriaLabel:G,monthLabelFormat:W,monthsListFormat:Y,getMonthControlProps:j,yearLabelFormat:$,yearsListFormat:U,getYearControlProps:X,decadeLabelFormat:q,allowSingleDateInRange:Z,allowDeselect:K,minDate:Q,maxDate:J,locale:ee},others:te}}function bk(e,t){const n=[...t].sort((e,t)=>sk(e).isAfter(sk(t))?1:-1);return sk(n[0]).startOf("day").subtract(1,"ms").isBefore(e)&&sk(n[1]).endOf("day").add(1,"ms").isAfter(e)}function wk({controlsRef:e,direction:t,levelIndex:n,rowIndex:r,cellIndex:i,size:o}){const a=function({direction:e,levelIndex:t,rowIndex:n,cellIndex:r,size:i}){switch(e){case"up":return 0===t&&0===n?null:0===n?{levelIndex:t-1,rowIndex:r<=i[t-1][i[t-1].length-1]-1?i[t-1].length-1:i[t-1].length-2,cellIndex:r}:{levelIndex:t,rowIndex:n-1,cellIndex:r};case"down":return n===i[t].length-1||n===i[t].length-2&&r>=i[t][i[t].length-1]?{levelIndex:t+1,rowIndex:0,cellIndex:r}:{levelIndex:t,rowIndex:n+1,cellIndex:r};case"left":return 0===t&&0===n&&0===r?null:0===n&&0===r?{levelIndex:t-1,rowIndex:i[t-1].length-1,cellIndex:i[t-1][i[t-1].length-1]-1}:0===r?{levelIndex:t,rowIndex:n-1,cellIndex:i[t][n-1]-1}:{levelIndex:t,rowIndex:n,cellIndex:r-1};case"right":return n===i[t].length-1&&r===i[t][n]-1?{levelIndex:t+1,rowIndex:0,cellIndex:0}:r===i[t][n]-1?{levelIndex:t,rowIndex:n+1,cellIndex:0}:{levelIndex:t,rowIndex:n,cellIndex:r+1};default:return{levelIndex:t,rowIndex:n,cellIndex:r}}}({direction:t,size:o,rowIndex:r,cellIndex:i,levelIndex:n});if(!a)return;const s=e.current?.[a.levelIndex]?.[a.rowIndex]?.[a.cellIndex];s&&(s.disabled||s.getAttribute("data-hidden")||s.getAttribute("data-outside")?wk({controlsRef:e,direction:t,levelIndex:a.levelIndex,cellIndex:a.cellIndex,rowIndex:a.rowIndex,size:o}):s.focus())}function Sk({controlsRef:e,levelIndex:t,rowIndex:n,cellIndex:r,event:i}){const o=function(e){switch(e){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}(i.key);if(o){i.preventDefault();const a=function(e){return e.current?.map(e=>e.map(e=>e.length))}(e);wk({controlsRef:e,direction:o,levelIndex:t,rowIndex:n,cellIndex:r,size:a})}}var Ck={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const Mk={hasNextLevel:!0,withNext:!0,withPrevious:!0,headerControlsOrder:["previous","level","next"]},Dk=R((e,{size:t})=>({calendarHeader:{"--dch-control-size":F(t,"dch-control-size"),"--dch-fz":N(t)}})),kk=O((e,n)=>{const r=B("CalendarHeader",Mk,e),{classNames:i,className:o,style:a,styles:s,unstyled:l,vars:u,nextIcon:c,previousIcon:h,nextLabel:f,previousLabel:p,onNext:m,onPrevious:v,onLevelClick:y,label:_,nextDisabled:x,previousDisabled:b,hasNextLevel:w,levelControlAriaLabel:S,withNext:C,withPrevious:M,headerControlsOrder:D,__staticSelector:k,__preventFocus:T,__stopPropagation:I,attributes:P,...A}=r,R=H({name:k||"CalendarHeader",classes:Ck,props:r,className:o,style:a,classNames:i,styles:s,unstyled:l,attributes:P,vars:u,varsResolver:Dk,rootSelector:"calendarHeader"}),O=T?e=>e.preventDefault():void 0,N=M&&t(L,{...R("calendarHeaderControl"),key:"previous","data-direction":"previous","aria-label":p,onClick:v,unstyled:l,onMouseDown:O,disabled:b,"data-disabled":b||void 0,tabIndex:T||b?-1:0,"data-mantine-stop-propagation":I||void 0},h||(0,$.jsx)(d,{...R("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})),F=t(L,{component:w?"button":"div",...R("calendarHeaderLevel"),key:"level",onClick:w?y:void 0,unstyled:l,onMouseDown:w?O:void 0,disabled:!w,"data-static":!w||void 0,"aria-label":S,tabIndex:T||!w?-1:0,"data-mantine-stop-propagation":I||void 0},_),z=C&&t(L,{...R("calendarHeaderControl"),key:"next","data-direction":"next","aria-label":f,onClick:m,unstyled:l,onMouseDown:O,disabled:x,"data-disabled":x||void 0,tabIndex:T||x?-1:0,"data-mantine-stop-propagation":I||void 0},c||(0,$.jsx)(d,{...R("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})),E=D.map(e=>"previous"===e?N:"level"===e?F:"next"===e?z:null);return(0,$.jsx)(g,{...R("calendarHeader"),ref:n,...A,children:E})});kk.classes=Ck,kk.displayName="@mantine/dates/CalendarHeader";var Tk={pickerControl:"m_dc6a3c71"};const Ik=R((e,{size:t})=>({pickerControl:{"--dpc-fz":N(t),"--dpc-size":F(t,"dpc-size")}})),Pk=O((e,t)=>{const n=B("PickerControl",null,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,firstInRange:u,lastInRange:c,inRange:h,__staticSelector:d,selected:f,disabled:p,attributes:g,...m}=n,v=H({name:d||"PickerControl",classes:Tk,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,attributes:g,vars:l,varsResolver:Ik,rootSelector:"pickerControl"});return(0,$.jsx)(L,{...v("pickerControl"),ref:t,unstyled:s,"data-picker-control":!0,"data-selected":f&&!p||void 0,"data-disabled":p||void 0,"data-in-range":h&&!p&&!f||void 0,"data-first-in-range":u&&!p||void 0,"data-last-in-range":c&&!p||void 0,disabled:p,...m})});function Lk({year:e,minDate:t,maxDate:n}){return!!((t||n)&&(t&&sk(e).isBefore(t,"year")||n&&sk(e).isAfter(n,"year")))}function Ak(e){const t=sk(e).year(),n=t-t%10;let r=0;const i=[[],[],[],[]];for(let e=0;e<4;e+=1){const t=3===e?1:3;for(let o=0;o<t;o+=1)i[e].push(sk(new Date(n+r,0)).format("YYYY-MM-DD")),r+=1}return i}Pk.classes=Tk,Pk.displayName="@mantine/dates/PickerControl";var Rk={yearsList:"m_9206547b",yearsListCell:"m_c5a19c7d"};const Ok={yearsListFormat:"YYYY",withCellSpacing:!0},Nk=O((e,t)=>{const n=B("YearsList",Ok,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,decade:u,yearsListFormat:c,locale:h,minDate:d,maxDate:f,getYearControlProps:p,__staticSelector:m,__getControlRef:v,__onControlKeyDown:y,__onControlClick:_,__onControlMouseEnter:x,__preventFocus:b,__stopPropagation:w,withCellSpacing:S,size:C,attributes:M,...D}=n,k=H({name:m||"YearsList",classes:Rk,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,attributes:M,vars:l,rootSelector:"yearsList"}),T=fk(),I=Ak(u),P=function({years:e,minDate:t,maxDate:n,getYearControlProps:r}){const i=e.flat().filter(e=>!Lk({year:e,minDate:t,maxDate:n})&&!r?.(e)?.disabled),o=i.find(e=>r?.(e)?.selected);return o||(i.find(e=>sk().isSame(e,"year"))||i[0])}({years:I,minDate:d,maxDate:f,getYearControlProps:p}),L=I.map((e,t)=>{const n=e.map((e,n)=>{const r=p?.(e),i=sk(e).isSame(P,"year");return(0,$.jsx)("td",{...k("yearsListCell"),"data-with-spacing":S||void 0,children:(0,$.jsx)(Pk,{...k("yearsListControl"),size:C,unstyled:s,"data-mantine-stop-propagation":w||void 0,disabled:Lk({year:e,minDate:d,maxDate:f}),ref:e=>{e&&v?.(t,n,e)},...r,onKeyDown:i=>{r?.onKeyDown?.(i),y?.(i,{rowIndex:t,cellIndex:n,date:e})},onClick:t=>{r?.onClick?.(t),_?.(t,e)},onMouseEnter:t=>{r?.onMouseEnter?.(t),x?.(t,e)},onMouseDown:e=>{r?.onMouseDown?.(e),b&&e.preventDefault()},tabIndex:b||!i?-1:0,children:r?.children??sk(e).locale(T.getLocale(h)).format(c)})},n)});return(0,$.jsx)("tr",{...k("yearsListRow"),children:n},t)});return(0,$.jsx)(g,{component:"table",ref:t,size:C,...k("yearsList"),...D,children:(0,$.jsx)("tbody",{children:L})})});Nk.classes=Rk,Nk.displayName="@mantine/dates/YearsList";const Fk={decadeLabelFormat:"YYYY"},zk=O((e,t)=>{const n=B("DecadeLevel",Fk,e),{decade:r,locale:i,minDate:o,maxDate:a,yearsListFormat:s,getYearControlProps:l,__getControlRef:u,__onControlKeyDown:c,__onControlClick:h,__onControlMouseEnter:d,withCellSpacing:f,__preventFocus:p,nextIcon:m,previousIcon:v,nextLabel:y,previousLabel:_,onNext:x,onPrevious:b,nextDisabled:w,previousDisabled:S,levelControlAriaLabel:C,withNext:M,withPrevious:D,headerControlsOrder:k,decadeLabelFormat:T,classNames:I,styles:P,unstyled:L,__staticSelector:A,__stopPropagation:R,size:O,attributes:N,...F}=n,z=fk(),[E,V]=function(e){const t=Ak(e);return[t[0][0],t[3][0]]}(r),H={__staticSelector:A||"DecadeLevel",classNames:I,styles:P,unstyled:L,size:O,attributes:N},G="boolean"==typeof w?w:!!a&&!sk(V).endOf("year").isBefore(a),W="boolean"==typeof S?S:!!o&&!sk(E).startOf("year").isAfter(o),Y=(e,t)=>sk(e).locale(i||z.locale).format(t);return(0,$.jsxs)(g,{"data-decade-level":!0,size:O,ref:t,...F,children:[(0,$.jsx)(kk,{label:"function"==typeof T?T(E,V):`${Y(E,T)} – ${Y(V,T)}`,__preventFocus:p,__stopPropagation:R,nextIcon:m,previousIcon:v,nextLabel:y,previousLabel:_,onNext:x,onPrevious:b,nextDisabled:G,previousDisabled:W,hasNextLevel:!1,levelControlAriaLabel:C,withNext:M,withPrevious:D,headerControlsOrder:k,...H}),(0,$.jsx)(Nk,{decade:r,locale:i,minDate:o,maxDate:a,yearsListFormat:s,getYearControlProps:l,__getControlRef:u,__onControlKeyDown:c,__onControlClick:h,__onControlMouseEnter:d,__preventFocus:p,__stopPropagation:R,withCellSpacing:f,...H})]})});zk.classes={...Nk.classes,...kk.classes},zk.displayName="@mantine/dates/DecadeLevel";var Ek={levelsGroup:"m_30b26e33"};const Bk=O((e,t)=>{const n=B("LevelsGroup",null,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,__staticSelector:u,attributes:c,...h}=n,d=H({name:u||"LevelsGroup",classes:Ek,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,attributes:c,vars:l,rootSelector:"levelsGroup"});return(0,$.jsx)(g,{ref:t,...d("levelsGroup"),...h})});Bk.classes=Ek,Bk.displayName="@mantine/dates/LevelsGroup";const Vk={numberOfColumns:1},Hk=O((e,t)=>{const n=B("DecadeLevelGroup",Vk,e),{decade:r,locale:i,minDate:o,maxDate:a,yearsListFormat:s,getYearControlProps:l,__onControlClick:u,__onControlMouseEnter:h,withCellSpacing:d,__preventFocus:f,nextIcon:p,previousIcon:g,nextLabel:m,previousLabel:v,onNext:y,onPrevious:_,nextDisabled:x,previousDisabled:b,headerControlsOrder:w,classNames:S,styles:C,unstyled:M,__staticSelector:D,__stopPropagation:k,numberOfColumns:T,levelControlAriaLabel:I,decadeLabelFormat:P,size:L,vars:A,attributes:R,...O}=n,N=c([]),F=Array(T).fill(0).map((e,t)=>{const n=sk(r).add(10*t,"years").format("YYYY-MM-DD");return(0,$.jsx)(zk,{size:L,yearsListFormat:s,decade:n,withNext:t===T-1,withPrevious:0===t,decadeLabelFormat:P,__onControlClick:u,__onControlMouseEnter:h,__onControlKeyDown:(e,n)=>Sk({levelIndex:t,rowIndex:n.rowIndex,cellIndex:n.cellIndex,event:e,controlsRef:N}),__getControlRef:(e,n,r)=>{Array.isArray(N.current[t])||(N.current[t]=[]),Array.isArray(N.current[t][e])||(N.current[t][e]=[]),N.current[t][e][n]=r},levelControlAriaLabel:"function"==typeof I?I(n):I,locale:i,minDate:o,maxDate:a,__preventFocus:f,__stopPropagation:k,nextIcon:p,previousIcon:g,nextLabel:m,previousLabel:v,onNext:y,onPrevious:_,nextDisabled:x,previousDisabled:b,getYearControlProps:l,__staticSelector:D||"DecadeLevelGroup",classNames:S,styles:C,unstyled:M,withCellSpacing:d,headerControlsOrder:w,attributes:R},t)});return(0,$.jsx)(Bk,{classNames:S,styles:C,__staticSelector:D||"DecadeLevelGroup",ref:t,size:L,unstyled:M,attributes:R,...O,children:F})});Hk.classes={...Bk.classes,...zk.classes},Hk.displayName="@mantine/dates/DecadeLevelGroup";var Gk={day:"m_396ce5cb"};const Wk=R((e,{size:t})=>({day:{"--day-size":F(t,"day-size")}})),Yk=O((e,t)=>{const n=B("Day",null,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,date:u,disabled:c,__staticSelector:h,weekend:d,outside:f,selected:p,renderDay:g,inRange:m,firstInRange:v,lastInRange:y,hidden:_,static:x,highlightToday:b,attributes:w,...S}=n,C=H({name:h||"Day",classes:Gk,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,attributes:w,vars:l,varsResolver:Wk,rootSelector:"day"});return(0,$.jsx)(L,{...C("day",{style:_?{display:"none"}:void 0}),component:x?"div":"button",ref:t,disabled:c,"data-today":sk(u).isSame(new Date,"day")||void 0,"data-hidden":_||void 0,"data-highlight-today":b||void 0,"data-disabled":c||void 0,"data-weekend":!c&&!f&&d||void 0,"data-outside":!c&&f||void 0,"data-selected":!c&&p||void 0,"data-in-range":m&&!c||void 0,"data-first-in-range":v&&!c||void 0,"data-last-in-range":y&&!c||void 0,"data-static":x||void 0,unstyled:s,...S,children:g?.(u)||sk(u).date()})});Yk.classes=Gk,Yk.displayName="@mantine/dates/Day";var jk={weekday:"m_18a3eca"};const $k=R((e,{size:t})=>({weekdaysRow:{"--wr-fz":N(t),"--wr-spacing":z(t)}})),Uk=O((e,t)=>{const n=B("WeekdaysRow",null,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,locale:u,firstDayOfWeek:c,weekdayFormat:h,cellComponent:d="th",__staticSelector:f,withWeekNumbers:p,attributes:m,...v}=n,y=H({name:f||"WeekdaysRow",classes:jk,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,attributes:m,vars:l,varsResolver:$k,rootSelector:"weekdaysRow"}),_=fk(),x=function({locale:e,format:t="dd",firstDayOfWeek:n=1}){const r=sk().day(n),i=[];for(let n=0;n<7;n+=1)"string"==typeof t?i.push(sk(r).add(n,"days").locale(e).format(t)):i.push(t(sk(r).add(n,"days").format("YYYY-MM-DD")));return i}({locale:_.getLocale(u),format:h,firstDayOfWeek:_.getFirstDayOfWeek(c)}).map((e,t)=>(0,$.jsx)(d,{...y("weekday"),children:e},t));return(0,$.jsxs)(g,{component:"tr",ref:t,...y("weekdaysRow"),...v,children:[p&&(0,$.jsx)(d,{...y("weekday"),children:"#"}),x]})});function Xk(e,t){return!t||sk(e).isAfter(sk(t).subtract(1,"day"),"day")}function qk(e,t){return!t||sk(e).isBefore(sk(t).add(1,"day"),"day")}function Zk(e,t){return sk(e).format("YYYY-MM")===sk(t).format("YYYY-MM")}Uk.classes=jk,Uk.displayName="@mantine/dates/WeekdaysRow";var Kk=Y(390);function Qk(e){const t=e.find(e=>1===sk(e).day());return sk(t).isoWeek()}sk.extend(Kk);var Jk={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const eT={withCellSpacing:!0},tT=R((e,{size:t})=>({weekNumber:{"--wn-fz":N(t),"--wn-size":F(t,"wn-size")}})),nT=O((e,t)=>{const n=B("Month",eT,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,__staticSelector:u,locale:c,firstDayOfWeek:h,weekdayFormat:d,month:f,weekendDays:p,getDayProps:m,excludeDate:v,minDate:y,maxDate:_,renderDay:x,hideOutsideDates:b,hideWeekdays:w,getDayAriaLabel:S,static:C,__getDayRef:M,__onDayKeyDown:D,__onDayClick:k,__onDayMouseEnter:T,__preventFocus:I,__stopPropagation:P,withCellSpacing:L,size:A,highlightToday:R,withWeekNumbers:O,attributes:N,...F}=n,z=H({name:u||"Month",classes:Jk,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,attributes:N,vars:l,varsResolver:tT,rootSelector:"month"}),E=fk(),G=function({month:e,firstDayOfWeek:t=1,consistentWeeks:n}){const r=sk(e).subtract(sk(e).date()-1,"day"),i=sk(r.format("YYYY-M-D")),o=i.format("YYYY-MM-DD"),a=function(e,t=1){let n=sk(e);if(!n.isValid())return n;const r=0===t?6:t-1;for(;n.day()!==r;)n=n.add(1,"day");return n.format("YYYY-MM-DD")}(i.add(+i.daysInMonth()-1,"day").format("YYYY-MM-DD"),t),s=[];let l=sk(function(e,t=1){let n=sk(e);for(;n.day()!==t;)n=n.subtract(1,"day");return n.format("YYYY-MM-DD")}(o,t));for(;sk(l).isBefore(a,"day");){const e=[];for(let t=0;t<7;t+=1)e.push(l.format("YYYY-MM-DD")),l=l.add(1,"day");s.push(e)}if(n&&s.length<6){const e=s[s.length-1],t=e[e.length-1];let n=sk(t).add(1,"day");for(;s.length<6;){const e=[];for(let t=0;t<7;t+=1)e.push(n.format("YYYY-MM-DD")),n=n.add(1,"day");s.push(e)}}return s}({month:f,firstDayOfWeek:E.getFirstDayOfWeek(h),consistentWeeks:E.consistentWeeks}),W=function({dates:e,minDate:t,maxDate:n,getDayProps:r,excludeDate:i,hideOutsideDates:o,month:a}){const s=e.flat().filter(e=>qk(e,n)&&Xk(e,t)&&!i?.(e)&&!r?.(e)?.disabled&&(!o||Zk(e,a))),l=s.find(e=>r?.(e)?.selected);return l||(s.find(e=>sk().isSame(e,"date"))||s[0])}({dates:G,minDate:uk(y),maxDate:uk(_),getDayProps:m,excludeDate:v,hideOutsideDates:b,month:f}),{resolvedClassNames:Y,resolvedStyles:j}=V({classNames:r,styles:a,props:n}),U=G.map((e,t)=>{const n=e.map((e,n)=>{const r=!Zk(e,f),i=S?.(e)||sk(e).locale(c||E.locale).format("D MMMM YYYY"),o=m?.(e),a=sk(e).isSame(W,"date");return(0,$.jsx)("td",{...z("monthCell"),"data-with-spacing":L||void 0,children:(0,$.jsx)(Yk,{__staticSelector:u||"Month",classNames:Y,styles:j,unstyled:s,"data-mantine-stop-propagation":P||void 0,highlightToday:R,renderDay:x,date:e,size:A,weekend:E.getWeekendDays(p).includes(sk(e).get("day")),outside:r,hidden:!!b&&r,"aria-label":i,static:C,disabled:v?.(e)||!qk(e,uk(_))||!Xk(e,uk(y)),ref:e=>{e&&M?.(t,n,e)},...o,onKeyDown:r=>{o?.onKeyDown?.(r),D?.(r,{rowIndex:t,cellIndex:n,date:e})},onMouseEnter:t=>{o?.onMouseEnter?.(t),T?.(t,e)},onClick:t=>{o?.onClick?.(t),k?.(t,e)},onMouseDown:e=>{o?.onMouseDown?.(e),I&&e.preventDefault()},tabIndex:I||!a?-1:0})},e.toString())});return(0,$.jsxs)("tr",{...z("monthRow"),children:[O&&(0,$.jsx)("td",{...z("weekNumber"),children:Qk(e)}),n]},t)});return(0,$.jsxs)(g,{component:"table",...z("month"),size:A,ref:t,...F,children:[!w&&(0,$.jsx)("thead",{...z("monthThead"),children:(0,$.jsx)(Uk,{__staticSelector:u||"Month",locale:c,firstDayOfWeek:h,weekdayFormat:d,size:A,classNames:Y,styles:j,unstyled:s,withWeekNumbers:O})}),(0,$.jsx)("tbody",{...z("monthTbody"),children:U})]})});nT.classes=Jk,nT.displayName="@mantine/dates/Month";const rT={monthLabelFormat:"MMMM YYYY"},iT=O((e,t)=>{const n=B("MonthLevel",rT,e),{month:r,locale:i,firstDayOfWeek:o,weekdayFormat:a,weekendDays:s,getDayProps:l,excludeDate:u,minDate:c,maxDate:h,renderDay:d,hideOutsideDates:f,hideWeekdays:p,getDayAriaLabel:m,__getDayRef:v,__onDayKeyDown:y,__onDayClick:_,__onDayMouseEnter:x,withCellSpacing:b,highlightToday:w,withWeekNumbers:S,__preventFocus:C,__stopPropagation:M,nextIcon:D,previousIcon:k,nextLabel:T,previousLabel:I,onNext:P,onPrevious:L,onLevelClick:A,nextDisabled:R,previousDisabled:O,hasNextLevel:N,levelControlAriaLabel:F,withNext:z,withPrevious:E,headerControlsOrder:V,monthLabelFormat:H,classNames:G,styles:W,unstyled:Y,__staticSelector:j,size:U,static:X,attributes:q,...Z}=n,K=fk(),Q={__staticSelector:j||"MonthLevel",classNames:G,styles:W,unstyled:Y,size:U,attributes:q},J="boolean"==typeof R?R:!!h&&!sk(r).endOf("month").isBefore(h),ee="boolean"==typeof O?O:!!c&&!sk(r).startOf("month").isAfter(c);return(0,$.jsxs)(g,{"data-month-level":!0,size:U,ref:t,...Z,children:[(0,$.jsx)(kk,{label:"function"==typeof H?H(r):sk(r).locale(i||K.locale).format(H),__preventFocus:C,__stopPropagation:M,nextIcon:D,previousIcon:k,nextLabel:T,previousLabel:I,onNext:P,onPrevious:L,onLevelClick:A,nextDisabled:J,previousDisabled:ee,hasNextLevel:N,levelControlAriaLabel:F,withNext:z,withPrevious:E,headerControlsOrder:V,...Q}),(0,$.jsx)(nT,{month:r,locale:i,firstDayOfWeek:o,weekdayFormat:a,weekendDays:s,getDayProps:l,excludeDate:u,minDate:c,maxDate:h,renderDay:d,hideOutsideDates:f,hideWeekdays:p,getDayAriaLabel:m,__getDayRef:v,__onDayKeyDown:y,__onDayClick:_,__onDayMouseEnter:x,__preventFocus:C,__stopPropagation:M,static:X,withCellSpacing:b,highlightToday:w,withWeekNumbers:S,...Q})]})});iT.classes={...nT.classes,...kk.classes},iT.displayName="@mantine/dates/MonthLevel";const oT={numberOfColumns:1},aT=O((e,t)=>{const n=B("MonthLevelGroup",oT,e),{month:r,locale:i,firstDayOfWeek:o,weekdayFormat:a,weekendDays:s,getDayProps:l,excludeDate:u,minDate:h,maxDate:d,renderDay:f,hideOutsideDates:p,hideWeekdays:g,getDayAriaLabel:m,__onDayClick:v,__onDayMouseEnter:y,withCellSpacing:_,highlightToday:x,withWeekNumbers:b,__preventFocus:w,nextIcon:S,previousIcon:C,nextLabel:M,previousLabel:D,onNext:k,onPrevious:T,onLevelClick:I,nextDisabled:P,previousDisabled:L,hasNextLevel:A,headerControlsOrder:R,classNames:O,styles:N,unstyled:F,numberOfColumns:z,levelControlAriaLabel:E,monthLabelFormat:V,__staticSelector:H,__stopPropagation:G,size:W,static:Y,vars:j,attributes:U,...X}=n,q=c([]),Z=Array(z).fill(0).map((e,t)=>{const n=sk(r).add(t,"months").format("YYYY-MM-DD");return(0,$.jsx)(iT,{month:n,withNext:t===z-1,withPrevious:0===t,monthLabelFormat:V,__stopPropagation:G,__onDayClick:v,__onDayMouseEnter:y,__onDayKeyDown:(e,n)=>Sk({levelIndex:t,rowIndex:n.rowIndex,cellIndex:n.cellIndex,event:e,controlsRef:q}),__getDayRef:(e,n,r)=>{Array.isArray(q.current[t])||(q.current[t]=[]),Array.isArray(q.current[t][e])||(q.current[t][e]=[]),q.current[t][e][n]=r},levelControlAriaLabel:"function"==typeof E?E(n):E,locale:i,firstDayOfWeek:o,weekdayFormat:a,weekendDays:s,getDayProps:l,excludeDate:u,minDate:h,maxDate:d,renderDay:f,hideOutsideDates:p,hideWeekdays:g,getDayAriaLabel:m,__preventFocus:w,nextIcon:S,previousIcon:C,nextLabel:M,previousLabel:D,onNext:k,onPrevious:T,onLevelClick:I,nextDisabled:P,previousDisabled:L,hasNextLevel:A,classNames:O,styles:N,unstyled:F,__staticSelector:H||"MonthLevelGroup",size:W,static:Y,withCellSpacing:_,highlightToday:x,withWeekNumbers:b,headerControlsOrder:R,attributes:U},t)});return(0,$.jsx)(Bk,{classNames:O,styles:N,__staticSelector:H||"MonthLevelGroup",ref:t,size:W,attributes:U,...X,children:Z})});function sT({month:e,minDate:t,maxDate:n}){return!!((t||n)&&(t&&sk(e).isBefore(t,"month")||n&&sk(e).isAfter(n,"month")))}aT.classes={...Bk.classes,...iT.classes},aT.displayName="@mantine/dates/MonthLevelGroup";var lT={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const uT={monthsListFormat:"MMM",withCellSpacing:!0},cT=O((e,t)=>{const n=B("MonthsList",uT,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,__staticSelector:u,year:c,monthsListFormat:h,locale:d,minDate:f,maxDate:p,getMonthControlProps:m,__getControlRef:v,__onControlKeyDown:y,__onControlClick:_,__onControlMouseEnter:x,__preventFocus:b,__stopPropagation:w,withCellSpacing:S,size:C,attributes:M,...D}=n,k=H({name:u||"MonthsList",classes:lT,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,attributes:M,vars:l,rootSelector:"monthsList"}),T=fk(),I=function(e){const t=sk(e).startOf("year").toDate(),n=[[],[],[],[]];let r=0;for(let e=0;e<4;e+=1)for(let i=0;i<3;i+=1)n[e].push(sk(t).add(r,"months").format("YYYY-MM-DD")),r+=1;return n}(c),P=function({months:e,minDate:t,maxDate:n,getMonthControlProps:r}){const i=e.flat().filter(e=>!sT({month:e,minDate:t,maxDate:n})&&!r?.(e)?.disabled),o=i.find(e=>r?.(e)?.selected);return o||(i.find(e=>sk().isSame(e,"month"))||i[0])}({months:I,minDate:uk(f),maxDate:uk(p),getMonthControlProps:m}),L=I.map((e,t)=>{const n=e.map((e,n)=>{const r=m?.(e),i=sk(e).isSame(P,"month");return(0,$.jsx)("td",{...k("monthsListCell"),"data-with-spacing":S||void 0,children:(0,$.jsx)(Pk,{...k("monthsListControl"),size:C,unstyled:s,__staticSelector:u||"MonthsList","data-mantine-stop-propagation":w||void 0,disabled:sT({month:e,minDate:uk(f),maxDate:uk(p)}),ref:e=>{e&&v?.(t,n,e)},...r,onKeyDown:i=>{r?.onKeyDown?.(i),y?.(i,{rowIndex:t,cellIndex:n,date:e})},onClick:t=>{r?.onClick?.(t),_?.(t,e)},onMouseEnter:t=>{r?.onMouseEnter?.(t),x?.(t,e)},onMouseDown:e=>{r?.onMouseDown?.(e),b&&e.preventDefault()},tabIndex:b||!i?-1:0,children:r?.children??sk(e).locale(T.getLocale(d)).format(h)})},n)});return(0,$.jsx)("tr",{...k("monthsListRow"),children:n},t)});return(0,$.jsx)(g,{component:"table",ref:t,size:C,...k("monthsList"),...D,children:(0,$.jsx)("tbody",{children:L})})});cT.classes=lT,cT.displayName="@mantine/dates/MonthsList";const hT={yearLabelFormat:"YYYY"},dT=O((e,t)=>{const n=B("YearLevel",hT,e),{year:r,locale:i,minDate:o,maxDate:a,monthsListFormat:s,getMonthControlProps:l,__getControlRef:u,__onControlKeyDown:c,__onControlClick:h,__onControlMouseEnter:d,withCellSpacing:f,__preventFocus:p,nextIcon:m,previousIcon:v,nextLabel:y,previousLabel:_,onNext:x,onPrevious:b,onLevelClick:w,nextDisabled:S,previousDisabled:C,hasNextLevel:M,levelControlAriaLabel:D,withNext:k,withPrevious:T,headerControlsOrder:I,yearLabelFormat:P,__staticSelector:L,__stopPropagation:A,size:R,classNames:O,styles:N,unstyled:F,attributes:z,...E}=n,V=fk(),H={__staticSelector:L||"YearLevel",classNames:O,styles:N,unstyled:F,size:R,attributes:z},G="boolean"==typeof S?S:!!a&&!sk(r).endOf("year").isBefore(a),W="boolean"==typeof C?C:!!o&&!sk(r).startOf("year").isAfter(o);return(0,$.jsxs)(g,{"data-year-level":!0,size:R,ref:t,...E,children:[(0,$.jsx)(kk,{label:"function"==typeof P?P(r):sk(r).locale(i||V.locale).format(P),__preventFocus:p,__stopPropagation:A,nextIcon:m,previousIcon:v,nextLabel:y,previousLabel:_,onNext:x,onPrevious:b,onLevelClick:w,nextDisabled:G,previousDisabled:W,hasNextLevel:M,levelControlAriaLabel:D,withNext:k,withPrevious:T,headerControlsOrder:I,...H}),(0,$.jsx)(cT,{year:r,locale:i,minDate:o,maxDate:a,monthsListFormat:s,getMonthControlProps:l,__getControlRef:u,__onControlKeyDown:c,__onControlClick:h,__onControlMouseEnter:d,__preventFocus:p,__stopPropagation:A,withCellSpacing:f,...H})]})});dT.classes={...kk.classes,...cT.classes},dT.displayName="@mantine/dates/YearLevel";const fT={numberOfColumns:1},pT=O((e,t)=>{const n=B("YearLevelGroup",fT,e),{year:r,locale:i,minDate:o,maxDate:a,monthsListFormat:s,getMonthControlProps:l,__onControlClick:u,__onControlMouseEnter:h,withCellSpacing:d,__preventFocus:f,nextIcon:p,previousIcon:g,nextLabel:m,previousLabel:v,onNext:y,onPrevious:_,onLevelClick:x,nextDisabled:b,previousDisabled:w,hasNextLevel:S,headerControlsOrder:C,classNames:M,styles:D,unstyled:k,__staticSelector:T,__stopPropagation:I,numberOfColumns:P,levelControlAriaLabel:L,yearLabelFormat:A,size:R,vars:O,attributes:N,...F}=n,z=c([]),E=Array(P).fill(0).map((e,t)=>{const n=sk(r).add(t,"years").format("YYYY-MM-DD");return(0,$.jsx)(dT,{size:R,monthsListFormat:s,year:n,withNext:t===P-1,withPrevious:0===t,yearLabelFormat:A,__stopPropagation:I,__onControlClick:u,__onControlMouseEnter:h,__onControlKeyDown:(e,n)=>Sk({levelIndex:t,rowIndex:n.rowIndex,cellIndex:n.cellIndex,event:e,controlsRef:z}),__getControlRef:(e,n,r)=>{Array.isArray(z.current[t])||(z.current[t]=[]),Array.isArray(z.current[t][e])||(z.current[t][e]=[]),z.current[t][e][n]=r},levelControlAriaLabel:"function"==typeof L?L(n):L,locale:i,minDate:o,maxDate:a,__preventFocus:f,nextIcon:p,previousIcon:g,nextLabel:m,previousLabel:v,onNext:y,onPrevious:_,onLevelClick:x,nextDisabled:b,previousDisabled:w,hasNextLevel:S,getMonthControlProps:l,classNames:M,styles:D,unstyled:k,__staticSelector:T||"YearLevelGroup",withCellSpacing:d,headerControlsOrder:C,attributes:N},t)});return(0,$.jsx)(Bk,{classNames:M,styles:D,__staticSelector:T||"YearLevelGroup",ref:t,size:R,unstyled:k,attributes:N,...F,children:E})});function gT(e,t,n){return void 0===t&&void 0===n?e:void 0!==t&&void 0===n?Math.max(e,t):void 0===t&&void 0!==n?Math.min(e,n):Math.min(Math.max(e,t),n)}function mT(e,t){return e?"month"===e?0:"year"===e?1:2:t||0}function vT(e,t,n){return 0===(r=gT(mT(e,0),mT(t,0),mT(n,2)))?"month":1===r?"year":"decade";var r}pT.classes={...dT.classes,...Bk.classes},pT.displayName="@mantine/dates/YearLevelGroup";const yT={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0,enableKeyboardNavigation:!0},_T=O((e,t)=>{const n=B("Calendar",yT,e),{vars:r,maxLevel:i,minLevel:o,defaultLevel:l,level:u,onLevelChange:h,date:d,defaultDate:f,onDateChange:p,numberOfColumns:m,columnsToScroll:v,ariaLabels:y,nextLabel:_,previousLabel:x,onYearSelect:b,onMonthSelect:w,onYearMouseEnter:S,onMonthMouseEnter:C,headerControlsOrder:M,__updateDateOnYearSelect:D,__updateDateOnMonthSelect:k,__setDateRef:T,__setLevelRef:I,firstDayOfWeek:P,weekdayFormat:L,weekendDays:A,getDayProps:R,excludeDate:O,renderDay:N,hideOutsideDates:F,hideWeekdays:z,getDayAriaLabel:E,monthLabelFormat:H,nextIcon:G,previousIcon:W,__onDayClick:Y,__onDayMouseEnter:j,withCellSpacing:U,highlightToday:X,withWeekNumbers:q,monthsListFormat:Z,getMonthControlProps:K,yearLabelFormat:Q,yearsListFormat:J,getYearControlProps:ee,decadeLabelFormat:te,classNames:ne,styles:re,unstyled:ie,minDate:oe,maxDate:ae,locale:se,__staticSelector:le,size:ue,__preventFocus:ce,__stopPropagation:he,onNextDecade:de,onPreviousDecade:fe,onNextYear:pe,onPreviousYear:ge,onNextMonth:me,onPreviousMonth:ve,static:ye,enableKeyboardNavigation:_e,attributes:xe,...be}=n,{resolvedClassNames:we,resolvedStyles:Se}=V({classNames:ne,styles:re,props:n}),[Ce,Me]=mk({value:u?vT(u,o,i):void 0,defaultValue:l?vT(l,o,i):void 0,finalValue:vT(void 0,o,i),onChange:h}),[De,ke]=_k({type:"default",value:uk(d),defaultValue:uk(f),onChange:p});s(T,()=>e=>{ke(e)}),s(I,()=>e=>{Me(e)});const Te={__staticSelector:le||"Calendar",styles:Se,classNames:we,unstyled:ie,size:ue,attributes:xe},Ie=v||m||1,Pe=new Date,Le=oe&&sk(Pe).isAfter(oe)?oe:sk(Pe).format("YYYY-MM-DD"),Ae=De||Le,Re=()=>{const e=sk(Ae).add(Ie,"year").format("YYYY-MM-DD");pe?.(e),ke(e)},Oe=()=>{const e=sk(Ae).subtract(Ie,"year").format("YYYY-MM-DD");ge?.(e),ke(e)},Ne=()=>{const e=sk(Ae).add(10*Ie,"year").format("YYYY-MM-DD");de?.(e),ke(e)},Fe=()=>{const e=sk(Ae).subtract(10*Ie,"year").format("YYYY-MM-DD");fe?.(e),ke(e)},ze=c(null);return a(()=>{if(!_e||ye)return;const e=e=>{if(!ze.current?.contains(document.activeElement))return;const t=e.ctrlKey||e.metaKey,n=e.shiftKey;switch(e.key){case"ArrowUp":t&&n?(e.preventDefault(),Fe()):t&&(e.preventDefault(),Oe());break;case"ArrowDown":t&&n?(e.preventDefault(),Ne()):t&&(e.preventDefault(),Re());break;case"y":case"Y":"month"===Ce&&(e.preventDefault(),Me("year"))}};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[_e,ye,Ce,Re,Oe,Ne,Fe]),(0,$.jsxs)(g,{ref:e=>{ze.current=e,"function"==typeof t?t(e):t&&(t.current=e)},size:ue,"data-calendar":!0,...be,children:["month"===Ce&&(0,$.jsx)(aT,{month:Ae,minDate:oe,maxDate:ae,firstDayOfWeek:P,weekdayFormat:L,weekendDays:A,getDayProps:R,excludeDate:O,renderDay:N,hideOutsideDates:F,hideWeekdays:z,getDayAriaLabel:E,onNext:()=>{const e=sk(Ae).add(Ie,"month").format("YYYY-MM-DD");me?.(e),ke(e)},onPrevious:()=>{const e=sk(Ae).subtract(Ie,"month").format("YYYY-MM-DD");ve?.(e),ke(e)},hasNextLevel:"month"!==i,onLevelClick:()=>Me("year"),numberOfColumns:m,locale:se,levelControlAriaLabel:y?.monthLevelControl,nextLabel:y?.nextMonth??_,nextIcon:G,previousLabel:y?.previousMonth??x,previousIcon:W,monthLabelFormat:H,__onDayClick:Y,__onDayMouseEnter:j,__preventFocus:ce,__stopPropagation:he,static:ye,withCellSpacing:U,highlightToday:X,withWeekNumbers:q,headerControlsOrder:M,...Te}),"year"===Ce&&(0,$.jsx)(pT,{year:Ae,numberOfColumns:m,minDate:oe,maxDate:ae,monthsListFormat:Z,getMonthControlProps:K,locale:se,onNext:Re,onPrevious:Oe,hasNextLevel:"month"!==i&&"year"!==i,onLevelClick:()=>Me("decade"),levelControlAriaLabel:y?.yearLevelControl,nextLabel:y?.nextYear??_,nextIcon:G,previousLabel:y?.previousYear??x,previousIcon:W,yearLabelFormat:Q,__onControlMouseEnter:C,__onControlClick:(e,t)=>{k&&ke(t),Me(vT("month",o,i)),w?.(t)},__preventFocus:ce,__stopPropagation:he,withCellSpacing:U,headerControlsOrder:M,...Te}),"decade"===Ce&&(0,$.jsx)(Hk,{decade:Ae,minDate:oe,maxDate:ae,yearsListFormat:J,getYearControlProps:ee,locale:se,onNext:Ne,onPrevious:Fe,numberOfColumns:m,nextLabel:y?.nextDecade??_,nextIcon:G,previousLabel:y?.previousDecade??x,previousIcon:W,decadeLabelFormat:te,__onControlMouseEnter:S,__onControlClick:(e,t)=>{D&&ke(t),Me(vT("year",o,i)),b?.(t)},__preventFocus:ce,__stopPropagation:he,withCellSpacing:U,headerControlsOrder:M,...Te})]})});_T.classes={...Hk.classes,...pT.classes,...aT.classes},_T.displayName="@mantine/dates/Calendar";var xT={datePickerRoot:"m_765a40cf",presetsList:"m_d6a681e1",presetButton:"m_acd30b22"};const bT=R((e,{size:t})=>({datePickerRoot:{"--preset-font-size":N(t)}})),wT={type:"default",defaultLevel:"month",numberOfColumns:1,size:"sm"},ST=O((e,t)=>{const n=B("DatePicker",wT,e),{allowDeselect:r,allowSingleDateInRange:i,value:o,defaultValue:s,onChange:l,onMouseLeave:u,classNames:d,styles:f,__staticSelector:p,__onDayClick:m,__onDayMouseEnter:v,__onPresetSelect:y,__stopPropagation:_,presets:x,className:b,style:w,unstyled:S,size:C,vars:M,attributes:D,...k}=n,{calendarProps:T,others:I}=xk(k),P=c(null),A=c(null),R=H({name:p||"DatePicker",classes:xT,props:n,className:b,style:w,classNames:d,styles:f,unstyled:S,attributes:D,rootSelector:x?"datePickerRoot":void 0,varsResolver:bT,vars:M}),{onDateChange:O,onRootMouseLeave:N,onHoveredDateChange:F,getControlProps:z,_value:E,setValue:G}=function({type:e,level:t,value:n,defaultValue:r,onChange:i,allowSingleDateInRange:o,allowDeselect:s,onMouseLeave:l}){const[u,c]=_k({type:e,value:n,defaultValue:r,onChange:i}),[d,f]=h("range"===e&&u[0]&&!u[1]?u[0]:null),[p,g]=h(null),m=e=>d&&p?bk(e,[p,d]):!(!u[0]||!u[1])&&bk(e,u),v="range"===e?e=>{l?.(e),g(null)}:l,y=e=>!(!u[0]||!sk(e).isSame(u[0],t)||p&&sk(p).isBefore(u[0])),_=e=>u[1]?sk(e).isSame(u[1],t):!(!u[0]||!p)&&sk(p).isBefore(u[0])&&sk(e).isSame(u[0],t),x="range"===e&&d?g:()=>{};return a(()=>{if("range"===e)if(u[0]&&!u[1])f(u[0]);else{const e=null==u[0]&&null==u[1],t=null!=u[0]&&null!=u[1];(e||t)&&(f(null),g(null))}},[u]),{onDateChange:n=>{if("range"===e){if(d&&!u[1]){if(sk(n).isSame(d,t)&&!o)return f(null),g(null),void c([null,null]);const e=[n,d];return e.sort((e,t)=>sk(e).isAfter(sk(t))?1:-1),c(e),g(null),void f(null)}return u[0]&&!u[1]&&sk(n).isSame(u[0],t)&&!o?(f(null),g(null),void c([null,null])):(c([n,null]),g(null),void f(n))}"multiple"!==e?u&&s&&sk(n).isSame(u,t)?c(null):c(n):u.some(e=>sk(e).isSame(n,t))?c(u.filter(e=>!sk(e).isSame(n,t))):c([...u,n])},onRootMouseLeave:v,onHoveredDateChange:x,getControlProps:n=>{if("range"===e)return{selected:u.some(e=>e&&sk(e).isSame(n,t)),inRange:m(n),firstInRange:y(n),lastInRange:_(n),"data-autofocus":!!u[0]&&sk(u[0]).isSame(n,t)||void 0};if("multiple"===e)return{selected:u.some(e=>e&&sk(e).isSame(n,t)),"data-autofocus":!!u[0]&&sk(u[0]).isSame(n,t)||void 0};const r=sk(u).isSame(n,t);return{selected:r,"data-autofocus":r||void 0}},_value:u,setValue:c}}({type:I.type,level:"day",allowDeselect:r,allowSingleDateInRange:i,value:o,defaultValue:s,onChange:l,onMouseLeave:u}),{resolvedClassNames:W,resolvedStyles:Y}=V({classNames:d,styles:f,props:n}),j=(0,$.jsx)(_T,{ref:t,classNames:W,styles:Y,__staticSelector:p||"DatePicker",onMouseLeave:N,size:C,...T,...x?{}:I,__stopPropagation:_,__setDateRef:P,__setLevelRef:A,minLevel:T.minLevel||"month",__onDayMouseEnter:(e,t)=>{F(t),v?.(e,t)},__onDayClick:(e,t)=>{O(t),m?.(e,t)},getDayProps:e=>({...z(e),...T.getDayProps?.(e)}),getMonthControlProps:e=>({selected:"string"==typeof E&&Zk(e,E),...T.getMonthControlProps?.(e)}),getYearControlProps:e=>({selected:"string"==typeof E&&sk(e).isSame(E,"year"),...T.getYearControlProps?.(e)}),hideOutsideDates:T.hideOutsideDates??1!==T.numberOfColumns,...x?{}:{className:b,style:w,attributes:D}});if(!x)return j;const U=x.map((e,t)=>(0,$.jsx)(L,{...R("presetButton"),onClick:()=>(e=>{const t=Array.isArray(e)?e[0]:e;void 0!==t&&(P.current?.(t),A.current?.("month"),y?y(t):G(e))})(e.value),onMouseDown:e=>e.preventDefault(),"data-mantine-stop-propagation":_||void 0,children:e.label},t));return(0,$.jsxs)(g,{...R("datePickerRoot"),size:C,...I,children:[(0,$.jsx)("div",{...R("presetsList"),children:U}),j]})});function CT(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=CT(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}ST.classes=_T.classes,ST.displayName="@mantine/dates/DatePicker";const MT=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=CT(e))&&(r&&(r+=" "),r+=t);return r};function DT({value:e,type:t,withTime:n}){const r=n?ck:uk;if("range"===t&&Array.isArray(e)){const t=r(e[0]),n=r(e[1]);return t?n?`${t} – ${n}`:`${t} –`:""}return"multiple"===t&&Array.isArray(e)?e.filter(Boolean).join(", "):!Array.isArray(e)&&e?r(e):""}function kT({value:e,type:t,name:n,form:r,withTime:i=!1}){return(0,$.jsx)("input",{type:"hidden",value:DT({value:e,type:t,withTime:i}),name:n,form:r})}kT.displayName="@mantine/dates/HiddenDatesInput";var TT={input:"m_6fa5e2aa"};const IT=O((e,t)=>{const{inputProps:n,wrapperProps:r,placeholder:i,classNames:o,styles:a,unstyled:s,popoverProps:l,modalProps:u,dropdownType:c,children:h,formattedValue:d,dropdownHandlers:f,dropdownOpened:p,onClick:g,clearable:m,onClear:v,clearButtonProps:_,rightSection:x,shouldClear:S,readOnly:C,disabled:M,value:D,name:k,form:T,type:I,onDropdownClose:P,withTime:L,...A}=E("PickerInputBase",{size:"sm"},e),R=(0,$.jsx)(y.ClearButton,{onClick:v,unstyled:s,..._}),O=()=>{"range"===I&&Array.isArray(D)&&D[0]&&!D[1]&&v(),f.close()};return(0,$.jsxs)($.Fragment,{children:["modal"===c&&!C&&(0,$.jsx)(b,{opened:p,onClose:O,withCloseButton:!1,size:"auto","data-dates-modal":!0,unstyled:s,...u,children:h}),(0,$.jsx)(y.Wrapper,{...r,children:(0,$.jsxs)(w,{position:"bottom-start",opened:p,trapFocus:!0,returnFocus:!1,unstyled:s,onClose:P,...l,disabled:l?.disabled||"modal"===c||C,onChange:e=>{e||(l?.onClose?.(),O())},children:[(0,$.jsx)(w.Target,{children:(0,$.jsx)(y,{"data-dates-input":!0,"data-read-only":C||void 0,disabled:M,component:"button",type:"button",multiline:!0,onClick:e=>{g?.(e),f.toggle()},__clearSection:R,__clearable:m&&S&&!C&&!M,rightSection:x,...n,ref:t,classNames:{...o,input:MT(TT.input,o?.input)},...A,children:d||(0,$.jsx)(y.Placeholder,{error:n.error,unstyled:s,classNames:o,styles:a,__staticSelector:n.__staticSelector,children:i})})}),(0,$.jsx)(w.Dropdown,{"data-dates-dropdown":!0,children:h})]})}),(0,$.jsx)(kT,{value:D,name:k,form:T,type:I,withTime:L})]})});IT.classes=TT,IT.displayName="@mantine/dates/PickerInputBase";const PT={type:"default",valueFormat:"MMMM D, YYYY",closeOnChange:!0,sortDates:!0,dropdownType:"popover"},LT=O((e,t)=>{const n=B("DatePickerInput",PT,e),{type:r,value:o,defaultValue:a,onChange:s,valueFormat:l,labelSeparator:u,locale:c,classNames:d,styles:f,unstyled:p,closeOnChange:g,size:m,variant:v,dropdownType:y,sortDates:_,minDate:x,maxDate:b,vars:w,defaultDate:S,valueFormatter:C,presets:M,attributes:D,...k}=n,{resolvedClassNames:T,resolvedStyles:I}=V({classNames:d,styles:f,props:n}),{calendarProps:P,others:L}=xk(k),{_value:A,setValue:R,formattedValue:O,dropdownHandlers:N,dropdownOpened:F,onClear:z,shouldClear:E}=function({type:e,value:t,defaultValue:n,onChange:r,locale:o,format:a,closeOnChange:s,sortDates:l,labelSeparator:u,valueFormatter:c}){const d=fk(),[f,p]=function(e=!1,t={}){const[n,r]=h(e),o=i(()=>{r(e=>e||(t.onOpen?.(),!0))},[t.onOpen]),a=i(()=>{r(e=>e?(t.onClose?.(),!1):e)},[t.onClose]),s=i(()=>{n?a():o()},[a,o,n]);return[n,{open:o,close:a,toggle:s}]}(!1),[g,m]=_k({type:e,value:t,defaultValue:n,onChange:r}),v=gk({type:e,date:g,locale:d.getLocale(o),format:a,labelSeparator:d.getLabelSeparator(u),formatter:c}),y=t=>{s&&("default"===e&&p.close(),"range"===e&&t[0]&&t[1]&&p.close()),m(l&&"multiple"===e?[...t].sort((e,t)=>sk(e).isAfter(sk(t))?1:-1):t)},_="range"===e?!!g[0]:"multiple"===e?g.length>0:null!==g;return{_value:g,setValue:y,onClear:()=>y("range"===e?[null,null]:"multiple"===e?[]:null),shouldClear:_,formattedValue:v,dropdownOpened:f,dropdownHandlers:p}}({type:r,value:o,defaultValue:a,onChange:s,locale:c,format:l,labelSeparator:u,closeOnChange:g,sortDates:_,valueFormatter:C}),H=Array.isArray(A)?A[0]||S:A||S;return(0,$.jsx)(IT,{formattedValue:O,dropdownOpened:F,dropdownHandlers:N,classNames:T,styles:I,unstyled:p,ref:t,onClear:z,shouldClear:E,value:A,size:m,variant:v,dropdownType:y,...L,type:r,__staticSelector:"DatePickerInput",attributes:D,children:(0,$.jsx)(ST,{...P,size:m,variant:v,type:r,value:A,defaultDate:H||hk({maxDate:b,minDate:x}),onChange:R,locale:c,classNames:T,styles:I,unstyled:p,__staticSelector:"DatePickerInput",__stopPropagation:"popover"===y,minDate:x,maxDate:b,presets:M,attributes:D})})});function AT(e,t){if("function"==typeof e)return e(t);"object"==typeof e&&null!==e&&"current"in e&&(e.current=t)}function RT(...e){return i(function(...e){const t=new Map;return n=>{if(e.forEach(e=>{const r=AT(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{const n=t.get(e);n&&"function"==typeof n?n():AT(e,null)}),t.clear()}}}(...e),e)}LT.classes={...IT.classes,...ST.classes},LT.displayName="@mantine/dates/DatePickerInput";const OT="undefined"!=typeof document?l:a,NT=n["useId".toString()]||(()=>{});function FT(e){return e<10?`0${e}`:`${e}`}const zT=r(({value:e,min:t,max:n,onChange:r,focusable:i,step:o,onNextInput:a,onPreviousInput:s,onFocus:l,readOnly:u,allowTemporaryZero:c=!1,placeholder:h="--",...d},f)=>{const p=(e=>Number(e.toFixed(0)[0]))(n),g=n+1-o;return(0,$.jsx)("input",{ref:f,type:"text",role:"spinbutton","aria-valuemin":t,"aria-valuemax":n,"aria-valuenow":null===e?0:e,"data-empty":null===e||void 0,inputMode:"numeric",placeholder:h,value:null===e?"":FT(e),onChange:e=>(e=>{if(u)return;const i=e.replace(/\D/g,"");if(""!==i){const o=parseInt(i,10),s=c&&0===o&&t>0?0:gT(o,t,n);r(s),(s>p||e.startsWith("00"))&&a?.()}})(e.currentTarget.value),onKeyDown:i=>{if(!u){if("0"!==i.key&&"Num0"!==i.key||0===e&&(i.preventDefault(),a?.()),"Home"===i.key&&(i.preventDefault(),r(t)),"End"===i.key&&(i.preventDefault(),r(n)),"Backspace"!==i.key&&"Delete"!==i.key||(i.preventDefault(),null!==e?r(null):s?.()),"ArrowRight"===i.key&&(i.preventDefault(),a?.()),"ArrowLeft"===i.key&&(i.preventDefault(),s?.()),"ArrowUp"===i.key){i.preventDefault();const n=null===e?t:gT(e+o,t,g);r(n)}if("ArrowDown"===i.key){i.preventDefault();const n=null===e?g:gT(e-o,t,g);r(n)}}},onFocus:e=>{e.currentTarget.select(),l?.(e)},onClick:e=>{e.stopPropagation(),e.currentTarget.select()},onMouseDown:e=>e.stopPropagation(),...d})});zT.displayName="@mantine/dates/SpinInput";const[ET,BT]=A("TimeInput component was not found in the component tree"),VT=r(({labels:e,value:t,onChange:n,className:r,style:i,onPreviousInput:o,readOnly:a,onMouseDown:s,onTouchStart:l,inputType:u,...c},h)=>{const d=BT(),f=r=>{a||("Home"===r.key&&(r.preventDefault(),n(e.am)),"End"===r.key&&(r.preventDefault(),n(e.pm)),"Backspace"!==r.key&&"Delete"!==r.key||(r.preventDefault(),null===t?o?.():n(null)),"ArrowLeft"===r.key&&(r.preventDefault(),o?.()),"ArrowUp"!==r.key&&"ArrowDown"!==r.key||(r.preventDefault(),n(t===e.am?e.pm:e.am)),"KeyA"===r.code&&(r.preventDefault(),n(e.am)),"KeyP"===r.code&&(r.preventDefault(),n(e.pm)))};if("input"===u){const e=t||"--",o=e.length+1;return(0,$.jsx)("input",{...d.getStyles("field",{className:r,style:i}),ref:h,value:e,size:o,onChange:e=>!a&&n(e.target.value||null),onClick:e=>e.stopPropagation(),onKeyDown:f,onMouseDown:e=>{e.stopPropagation(),s?.(e)},"data-am-pm":!0,...c})}return(0,$.jsxs)("select",{...d.getStyles("field",{className:r,style:i}),ref:h,value:t||"",onChange:e=>!a&&n(e.target.value||null),onClick:e=>e.stopPropagation(),onKeyDown:f,onMouseDown:e=>{e.stopPropagation(),s?.(e)},"data-am-pm":!0,...c,children:[(0,$.jsx)("option",{value:"",children:"--"}),(0,$.jsx)("option",{value:e.am,children:e.am}),(0,$.jsx)("option",{value:e.pm,children:e.pm})]})});function HT({value:e,active:t,onSelect:n}){const r=BT();return(0,$.jsx)(L,{mod:{active:t},onClick:()=>n(e),onMouseDown:e=>e.preventDefault(),"data-value":e,tabIndex:-1,...r.getStyles("control"),children:"number"==typeof e?FT(e):e})}function GT({labels:e,value:t,onSelect:n}){const r=BT(),i=[e.am,e.pm].map(e=>(0,$.jsx)(HT,{value:e,active:t===e,onSelect:n},e));return(0,$.jsx)("div",{...r.getStyles("controlsList"),children:i})}function WT({min:e,max:t,step:n,value:r,onSelect:i,reversed:o}){const s=BT(),l=c(null),u=function(e,t,n){const r=[];for(let i=e;i<=t;i+=n)r.push(i);return r}(e,t,n),h=(o?u.reverse():u).map(e=>(0,$.jsx)(HT,{value:e,active:r===e,onSelect:i},e));return a(()=>{if(null!==r){const e=()=>{const e=l.current?.querySelector(`[data-value="${r}"]`);(function(e,t){if(!e||!t)return!1;const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.top>=r.top&&n.bottom<=r.bottom&&n.left>=r.left&&n.right<=r.right})(e,l.current)||e?.scrollIntoView({block:"nearest"})};requestAnimationFrame(e)}},[r]),(0,$.jsx)(S,{h:s.maxDropdownContentHeight,type:"never",viewportRef:l,...s.getStyles("scrollarea"),...s.scrollAreaProps,children:(0,$.jsx)("div",{...s.getStyles("controlsList"),children:h})})}function YT(e){const[t=null,n=null,r=null]=e.split(":").map(Number);return{hours:t,minutes:n,seconds:r}}function jT({time:e,compare:t,withSeconds:n}){const r=YT(e),i=YT(t);return n?r.hours===i.hours&&r.minutes===i.minutes&&r.seconds===i.seconds:r.hours===i.hours&&r.minutes===i.minutes}function $T({value:e,format:t,amPmLabels:n,withSeconds:r}){const i=YT("string"==typeof e?e:function(e,t){return`${e.getHours()}:${e.getMinutes()}${t?`:${e.getSeconds()}`:""}`}(e,r));if(null===i.hours||null===i.minutes)return null;if("24h"===t)return`${FT(i.hours)}:${FT(i.minutes)}${r?`:${FT(i.seconds||0)}`:""}`;const o=i.hours>=12;return`${i.hours%12==0?12:i.hours%12}:${FT(i.minutes)}${r?`:${FT(i.seconds||0)}`:""} ${o?n.pm:n.am}`}function UT({value:e,format:t="24h",amPmLabels:n={am:"AM",pm:"PM"},withSeconds:r=!1}){return(0,$.jsx)($.Fragment,{children:$T({value:e,format:t,amPmLabels:n,withSeconds:r})})}function XT({value:e,active:t,onChange:n,format:r,amPmLabels:i,withSeconds:o}){const a=BT();return(0,$.jsx)(L,{mod:{active:t},onClick:()=>n(e),...a.getStyles("presetControl"),children:(0,$.jsx)(UT,{withSeconds:o,value:e,format:r,amPmLabels:i})})}function qT({value:e,data:t,onChange:n,format:r,amPmLabels:i,withSeconds:o}){const a=BT(),s=t.values.map(t=>(0,$.jsx)(XT,{value:t,format:r,amPmLabels:i,withSeconds:o,active:jT({time:t,compare:e,withSeconds:o}),onChange:n},t));return(0,$.jsxs)("div",{...a.getStyles("presetsGroup"),children:[(0,$.jsx)("div",{...a.getStyles("presetsGroupLabel"),children:t.label}),(0,$.jsx)(M,{cols:o?2:3,spacing:4,children:s})]})}function ZT({presets:e,format:t,amPmLabels:n,withSeconds:r,value:i,onChange:o}){const a=BT();if(0===e.length)return null;if("string"==typeof e[0]){const s=e.map(e=>(0,$.jsx)(XT,{value:e,format:t,amPmLabels:n,withSeconds:r,active:jT({time:e,compare:i,withSeconds:r}),onChange:o},e));return(0,$.jsx)(S.Autosize,{mah:a.maxDropdownContentHeight,type:"never",...a.getStyles("scrollarea"),...a.scrollAreaProps,children:(0,$.jsx)("div",{...a.getStyles("presetsRoot"),children:(0,$.jsx)(M,{cols:r?2:3,spacing:4,children:s})})})}const s=e.map((e,a)=>(0,$.jsx)(qT,{data:e,value:i,format:t,amPmLabels:n,withSeconds:r,onChange:o},a));return(0,$.jsx)(S.Autosize,{mah:a.maxDropdownContentHeight,type:"never",...a.getStyles("scrollarea"),...a.scrollAreaProps,children:(0,$.jsx)("div",{...a.getStyles("presetsRoot"),children:s})})}function KT(e){const[t=0,n=0,r=0]=e.split(":").map(Number);return 3600*t+60*n+r}function QT(e,t,n){const r=KT(e),i=t?KT(t):-1/0,o=n?KT(n):1/0;return function(e){const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=e%60;return{timeString:`${FT(t)}:${FT(n)}:${FT(r)}`,hours:t,minutes:n,seconds:r}}(Math.max(i,Math.min(r,o)))}function JT({time:e,format:t,amPmLabels:n}){if(""===e)return{hours:null,minutes:null,seconds:null,amPm:null};const{hours:r,minutes:i,seconds:o}=YT(e),a={hours:r,minutes:i,seconds:o};return"12h"===t?function({hours:e,minutes:t,seconds:n,amPmLabels:r}){return null===e?{hours:null,minutes:null,seconds:null,amPm:null}:{hours:e%12==0?12:e%12,minutes:"number"==typeof t?t:null,seconds:"number"==typeof n?n:null,amPm:e>=12?r.pm:r.am}}({...a,amPmLabels:n}):{...a,amPm:null}}function eI({hours:e,minutes:t,seconds:n,amPm:r,amPmLabels:i,withSeconds:o}){let a=e;return r===i.pm&&12!==e?a+=12:r===i.am&&12===e&&(a=0),`${FT(a)}:${FT(t)}${o?`:${FT(n||0)}`:""}`}function tI({hours:e,minutes:t,seconds:n,format:r,withSeconds:i,amPm:o,amPmLabels:a}){return null===e||null===t||i&&null===n?{valid:!1,value:""}:"24h"===r?{valid:!0,value:`${FT(e)}:${FT(t)}${i?`:${FT(n)}`:""}`}:null===o?{valid:!1,value:""}:{valid:!0,value:eI({hours:e,minutes:t,seconds:n,amPm:o,amPmLabels:a,withSeconds:i})}}function nI({value:e,defaultValue:t,onChange:n,format:r,amPmLabels:i,withSeconds:o=!1,min:s,max:l,clearable:u,readOnly:d,disabled:f,pasteSplit:p}){const g=JT({time:e||t||"",amPmLabels:i,format:r}),m=c(!0),[v,y]=h(g.hours),[_,x]=h(g.minutes),[b,w]=h(g.seconds),[S,C]=h(g.amPm),M=u&&!d&&!f&&(null!==v||null!==_||null!==b||null!==S),D=c(null),k=c(null),T=c(null),I=c(null),P=e=>{"hours"===e&&D.current?.focus(),"minutes"===e&&k.current?.focus(),"seconds"===e&&T.current?.focus(),"amPm"===e&&I.current?.focus()},L=(t,a)=>{const s=tI({hours:v,minutes:_,seconds:b,amPm:S,[t]:a,format:r,withSeconds:o,amPmLabels:i});s.valid?(m.current=!1,"hours"===t&&y(a),"minutes"===t&&x(a),"seconds"===t&&w(a),"amPm"===t&&C(a),n?.(s.value)):(m.current=!1,"string"==typeof e&&""!==e&&n?.(""))},A=tI({hours:v,minutes:_,seconds:b,format:r,withSeconds:o,amPm:S,amPmLabels:i});return function(t,n){const o=c(!1);a(()=>()=>{o.current=!1},[]),a(()=>{if(o.current)return(()=>{if(""===e)return m.current=!1,y(null),x(null),w(null),C(null),void(m.current=!0);if(m.current&&"string"==typeof e){const t=JT({time:e||"",amPmLabels:i,format:r});y(t.hours),x(t.minutes),w(t.seconds),C(t.amPm)}m.current=!0})();o.current=!0},n)}(0,[e]),{refs:{hours:D,minutes:k,seconds:T,amPm:I},values:{hours:v,minutes:_,seconds:b,amPm:S},setHours:e=>{let t=e;"12h"===r&&"number"==typeof e&&e>12&&(t=(e-1)%12+1),y(t),L("hours",t),P("hours")},setMinutes:e=>{x(e),L("minutes",e),P("minutes")},setSeconds:e=>{w(e),L("seconds",e),P("seconds")},setAmPm:e=>{C(e),L("amPm",e),P("amPm")},focus:P,clear:()=>{m.current=!1,y(null),x(null),w(null),C(null),n?.(""),P("hours")},onPaste:e=>{e.preventDefault();const t=e.clipboardData.getData("text"),a=(p||JT)({time:t,format:r,amPmLabels:i}),u=tI({...a,format:r,withSeconds:o,amPmLabels:i});if(u.valid){m.current=!1;const e=QT(u.value,s||"00:00:00",l||"23:59:59");n?.(e.timeString),y(a.hours),x(a.minutes),w(a.seconds),C(a.amPm)}},setTimeString:e=>{m.current=!1;const t=JT({time:e,amPmLabels:i,format:r});y(t.hours),x(t.minutes),w(t.seconds),C(t.amPm),n?.(e)},isClearable:M,hiddenInputValue:A.value}}VT.displayName="@mantine/dates/AmPmInput",HT.displayName="@mantine/dates/TimeControl",GT.displayName="@mantine/dates/AmPmControlsList",WT.displayName="@mantine/dates/TimeControlsList",UT.displayName="@mantine/dates/TimeValue",XT.displayName="@mantine/dates/TimePresetControl",qT.displayName="@mantine/dates/TimePresetGroup",ZT.displayName="@mantine/dates/TimePresets";var rI={fieldsRoot:"m_7a8f1e6d",fieldsGroup:"m_d6bb0a54",controlsList:"m_b97ecb26",controlsListGroup:"m_31fe42f9",dropdown:"m_9c4817c3",control:"m_154c536b",presetControl:"m_7be09d0c",presetsGroup:"m_7d00001d",presetsGroupLabel:"m_d8d918d7",field:"m_6b43ba88"};const iI={hoursStep:1,minutesStep:1,secondsStep:1,format:"24h",amPmLabels:{am:"AM",pm:"PM"},pasteSplit:JT,maxDropdownContentHeight:200,hoursPlaceholder:"--",minutesPlaceholder:"--",secondsPlaceholder:"--"},oI=R((e,{size:t})=>({dropdown:{"--control-font-size":N(t)}})),aI=O((e,t)=>{const n=B("TimePicker",iI,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,onClick:u,format:d,value:f,defaultValue:p,onChange:g,hoursStep:v,minutesStep:y,secondsStep:x,withSeconds:b,hoursInputLabel:S,minutesInputLabel:C,secondsInputLabel:M,amPmInputLabel:D,amPmLabels:k,clearable:T,onMouseDown:I,onFocusCapture:P,onBlurCapture:L,min:A,max:R,popoverProps:O,withDropdown:N,rightSection:F,onFocus:z,onBlur:E,clearButtonProps:G,hoursInputProps:W,minutesInputProps:Y,secondsInputProps:j,amPmSelectProps:U,readOnly:X,disabled:q,size:Z,name:K,form:Q,hiddenInputProps:J,labelProps:ee,pasteSplit:te,hoursRef:ne,minutesRef:re,secondsRef:ie,amPmRef:oe,presets:ae,maxDropdownContentHeight:se,scrollAreaProps:le,attributes:ue,reverseTimeControlsList:ce,hoursPlaceholder:he,minutesPlaceholder:de,secondsPlaceholder:fe,...pe}=n,{resolvedClassNames:ge,resolvedStyles:me}=V({classNames:r,styles:a,props:n}),ve=H({name:"TimePicker",classes:rI,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,attributes:ue,vars:l,varsResolver:oI}),ye=nI({value:f,defaultValue:p,onChange:g,format:d,amPmLabels:k,withSeconds:b,min:A,max:R,clearable:T,disabled:q,readOnly:X,pasteSplit:te}),_e=RT(ye.refs.hours,ne),xe=RT(ye.refs.minutes,re),be=RT(ye.refs.seconds,ie),we=RT(ye.refs.amPm,oe),Se=function(e){const t=function(){const e=NT();return e?`mantine-${e.replace(/:/g,"")}`:""}(),[n,r]=h(t);return OT(()=>{r(function(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}())},[]),"string"==typeof e?e:"undefined"==typeof window?t:n}(),Ce=c(!1),[Me,De]=h(!1),ke=e=>{Ce.current||(Ce.current=!0,z?.(e))};return(0,$.jsx)(ET,{value:{getStyles:ve,scrollAreaProps:le,maxDropdownContentHeight:se},children:(0,$.jsxs)(w,{opened:Me,transitionProps:{duration:0},position:"bottom-start",withRoles:!1,disabled:q||X||!N,...O,children:[(0,$.jsx)(w.Target,{children:(0,$.jsxs)(_,{component:"div",size:Z,disabled:q,ref:t,onClick:e=>{u?.(e),ye.focus("hours")},onMouseDown:e=>{e.preventDefault(),I?.(e)},onFocusCapture:e=>{De(!0),P?.(e)},onBlurCapture:e=>{De(!1),L?.(e)},rightSection:F||ye.isClearable&&(0,$.jsx)(m,{...G,size:Z,onClick:e=>{ye.clear(),G?.onClick?.(e)},onMouseDown:e=>{e.preventDefault(),G?.onMouseDown?.(e)}}),labelProps:{htmlFor:Se,...ee},style:o,className:i,classNames:ge,styles:me,__staticSelector:"TimePicker",...pe,children:[(0,$.jsx)("div",{...ve("fieldsRoot"),dir:"ltr",children:(0,$.jsxs)("div",{...ve("fieldsGroup"),onBlur:e=>{if(!e.currentTarget.contains(e.relatedTarget)){const t=tI({...ye.values,format:d,amPmLabels:k,withSeconds:!!b});if(t.valid&&(A||R)){const e=QT(t.value,A,R);e.timeString!==t.value&&ye.setTimeString(e.timeString)}Ce.current=!1,E?.(e)}},children:[(0,$.jsx)(zT,{id:Se,...W,...ve("field",{className:W?.className,style:W?.style}),value:ye.values.hours,onChange:ye.setHours,onNextInput:()=>ye.focus("minutes"),min:"12h"===d?1:0,max:"12h"===d?12:23,allowTemporaryZero:"12h"===d,focusable:!0,step:v,ref:_e,"aria-label":S,readOnly:X,disabled:q,onPaste:ye.onPaste,onFocus:e=>{ke(e),W?.onFocus?.(e)},onBlur:e=>{const t=e.currentTarget.value,n=t?parseInt(t,10):null;"12h"===d&&0===n&&ye.setHours(12),W?.onBlur?.(e)},placeholder:he}),(0,$.jsx)("span",{children:":"}),(0,$.jsx)(zT,{...Y,...ve("field",{className:Y?.className,style:Y?.style}),value:ye.values.minutes,onChange:ye.setMinutes,min:0,max:59,focusable:!0,step:y,ref:xe,onPreviousInput:()=>ye.focus("hours"),onNextInput:()=>b?ye.focus("seconds"):ye.focus("amPm"),"aria-label":C,tabIndex:-1,readOnly:X,disabled:q,onPaste:ye.onPaste,onFocus:e=>{ke(e),Y?.onFocus?.(e)},placeholder:de}),b&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)("span",{children:":"}),(0,$.jsx)(zT,{...j,...ve("field",{className:j?.className,style:j?.style}),value:ye.values.seconds,onChange:ye.setSeconds,min:0,max:59,focusable:!0,step:x,ref:be,onPreviousInput:()=>ye.focus("minutes"),onNextInput:()=>ye.focus("amPm"),"aria-label":M,tabIndex:-1,readOnly:X,disabled:q,onPaste:ye.onPaste,onFocus:e=>{ke(e),j?.onFocus?.(e)},placeholder:fe})]}),"12h"===d&&(0,$.jsx)(VT,{...U,inputType:N?"input":"select",labels:k,value:ye.values.amPm,onChange:ye.setAmPm,ref:we,"aria-label":D,onPreviousInput:()=>b?ye.focus("seconds"):ye.focus("minutes"),readOnly:X,disabled:q,tabIndex:-1,onPaste:ye.onPaste,onFocus:e=>{ke(e),U?.onFocus?.(e)}})]})}),(0,$.jsx)("input",{type:"hidden",name:K,form:Q,value:ye.hiddenInputValue,...J})]})}),(0,$.jsx)(w.Dropdown,{...ve("dropdown"),onMouseDown:e=>e.preventDefault(),children:ae?(0,$.jsx)(ZT,{value:ye.hiddenInputValue,onChange:ye.setTimeString,format:d,presets:ae,amPmLabels:k,withSeconds:b||!1}):(0,$.jsxs)("div",{...ve("controlsListGroup"),children:[(0,$.jsx)(WT,{min:"12h"===d?1:0,max:"12h"===d?12:23,step:v,value:ye.values.hours,onSelect:ye.setHours,reversed:ce}),(0,$.jsx)(WT,{min:0,max:59,step:y,value:ye.values.minutes,onSelect:ye.setMinutes,reversed:ce}),b&&(0,$.jsx)(WT,{min:0,max:59,step:x,value:ye.values.seconds,onSelect:ye.setSeconds,reversed:ce}),"12h"===d&&(0,$.jsx)(GT,{labels:k,value:ye.values.amPm,onSelect:ye.setAmPm})]})})]})})});function sI({wrapperProps:e,datePickerInputProps:t,timePickerInputProps:n,onChange:r,value:i}){return(0,$.jsx)(x,{...e,children:(0,$.jsx)(LT,{...t,value:new Date(i),onChange:e=>{if("string"==typeof e){const t=i.getHours(),n=i.getMinutes();r(lk()(e).hour(t).minute(n).toDate())}},valueFormatter:ak,rightSection:(0,$.jsx)(aI,{...n,value:lk()(i).format("HH:mm"),onChange:e=>{const t=e.split(":"),n=Number.parseInt(t[0],10),o=Number.parseInt(t[1],10);!0===Number.isFinite(n)&&!0===Number.isFinite(o)&&r(lk()(i).hour(n).minute(o).toDate())},w:"100%",withDropdown:!0,format:"12h",styles:{input:{borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px",borderRight:"none"}}}),rightSectionProps:{style:{width:"110px"}}})})}aI.displayName="@mantine/dates/TimePicker",aI.classes=rI;export{ok as CustomColorSelect,sI as CustomDateTimePicker,BM as CustomTable,CC as EventTimelineChart};