szld-libs 0.0.21 → 0.0.23

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.
@@ -1,4 +1,4 @@
1
- (function(en,st){typeof exports=="object"&&typeof module<"u"?st(exports,require("react"),require("antd"),require("react-router-dom"),require("lodash"),require("ahooks"),require("react-window")):typeof define=="function"&&define.amd?define(["exports","react","antd","react-router-dom","lodash","ahooks","react-window"],st):(en=typeof globalThis<"u"?globalThis:en||self,st(en.ReactComponents={},en.React,en.antd,en["react-router-dom"],en.lodash,en.ahooks,en["react-window"]))})(this,function(en,st,dt,fU,Op,cU,dU){"use strict";var Lne=Object.defineProperty;var One=(en,st,dt)=>st in en?Lne(en,st,{enumerable:!0,configurable:!0,writable:!0,value:dt}):en[st]=dt;var sU=(en,st,dt)=>(One(en,typeof st!="symbol"?st+"":st,dt),dt);function vU(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const Nt=vU(st);function hU(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var v0={exports:{}},kp={};var lA;function pU(){if(lA)return kp;lA=1;var t=st,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(f,d,h){var p,m={},S=null,_=null;h!==void 0&&(S=""+h),d.key!==void 0&&(S=""+d.key),d.ref!==void 0&&(_=d.ref);for(p in d)r.call(d,p)&&!l.hasOwnProperty(p)&&(m[p]=d[p]);if(f&&f.defaultProps)for(p in d=f.defaultProps,d)m[p]===void 0&&(m[p]=d[p]);return{$$typeof:e,type:f,key:S,ref:_,props:m,_owner:a.current}}return kp.Fragment=n,kp.jsx=u,kp.jsxs=u,kp}var Np={};var uA;function gU(){return uA||(uA=1,process.env.NODE_ENV!=="production"&&function(){var t=st,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),x=Symbol.iterator,E="@@iterator";function b(Y){if(Y===null||typeof Y!="object")return null;var Ce=x&&Y[x]||Y[E];return typeof Ce=="function"?Ce:null}var D=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function A(Y){{for(var Ce=arguments.length,Me=new Array(Ce>1?Ce-1:0),Ke=1;Ke<Ce;Ke++)Me[Ke-1]=arguments[Ke];O("error",Y,Me)}}function O(Y,Ce,Me){{var Ke=D.ReactDebugCurrentFrame,mt=Ke.getStackAddendum();mt!==""&&(Ce+="%s",Me=Me.concat([mt]));var Bt=Me.map(function(yt){return String(yt)});Bt.unshift("Warning: "+Ce),Function.prototype.apply.call(console[Y],console,Bt)}}var P=!1,I=!1,F=!1,U=!1,H=!1,j;j=Symbol.for("react.module.reference");function X(Y){return!!(typeof Y=="string"||typeof Y=="function"||Y===r||Y===l||H||Y===a||Y===h||Y===p||U||Y===_||P||I||F||typeof Y=="object"&&Y!==null&&(Y.$$typeof===S||Y.$$typeof===m||Y.$$typeof===u||Y.$$typeof===f||Y.$$typeof===d||Y.$$typeof===j||Y.getModuleId!==void 0))}function G(Y,Ce,Me){var Ke=Y.displayName;if(Ke)return Ke;var mt=Ce.displayName||Ce.name||"";return mt!==""?Me+"("+mt+")":Me}function ee(Y){return Y.displayName||"Context"}function J(Y){if(Y==null)return null;if(typeof Y.tag=="number"&&A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof Y=="function")return Y.displayName||Y.name||null;if(typeof Y=="string")return Y;switch(Y){case r:return"Fragment";case n:return"Portal";case l:return"Profiler";case a:return"StrictMode";case h:return"Suspense";case p:return"SuspenseList"}if(typeof Y=="object")switch(Y.$$typeof){case f:var Ce=Y;return ee(Ce)+".Consumer";case u:var Me=Y;return ee(Me._context)+".Provider";case d:return G(Y,Y.render,"ForwardRef");case m:var Ke=Y.displayName||null;return Ke!==null?Ke:J(Y.type)||"Memo";case S:{var mt=Y,Bt=mt._payload,yt=mt._init;try{return J(yt(Bt))}catch{return null}}}return null}var ie=Object.assign,ce=0,fe,Ne,ae,ge,pe,Le,Ge;function St(){}St.__reactDisabledLog=!0;function It(){{if(ce===0){fe=console.log,Ne=console.info,ae=console.warn,ge=console.error,pe=console.group,Le=console.groupCollapsed,Ge=console.groupEnd;var Y={configurable:!0,enumerable:!0,value:St,writable:!0};Object.defineProperties(console,{info:Y,log:Y,warn:Y,error:Y,group:Y,groupCollapsed:Y,groupEnd:Y})}ce++}}function Dn(){{if(ce--,ce===0){var Y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ie({},Y,{value:fe}),info:ie({},Y,{value:Ne}),warn:ie({},Y,{value:ae}),error:ie({},Y,{value:ge}),group:ie({},Y,{value:pe}),groupCollapsed:ie({},Y,{value:Le}),groupEnd:ie({},Y,{value:Ge})})}ce<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Xt=D.ReactCurrentDispatcher,Mn;function ln(Y,Ce,Me){{if(Mn===void 0)try{throw Error()}catch(mt){var Ke=mt.stack.trim().match(/\n( *(at )?)/);Mn=Ke&&Ke[1]||""}return`
1
+ (function(en,st){typeof exports=="object"&&typeof module<"u"?st(exports,require("react"),require("antd"),require("react-router-dom"),require("lodash"),require("react-window"),require("ahooks")):typeof define=="function"&&define.amd?define(["exports","react","antd","react-router-dom","lodash","react-window","ahooks"],st):(en=typeof globalThis<"u"?globalThis:en||self,st(en.ReactComponents={},en.React,en.antd,en["react-router-dom"],en.lodash,en["react-window"],en.ahooks))})(this,function(en,st,dt,fU,Op,cU,dU){"use strict";var Lne=Object.defineProperty;var One=(en,st,dt)=>st in en?Lne(en,st,{enumerable:!0,configurable:!0,writable:!0,value:dt}):en[st]=dt;var sU=(en,st,dt)=>(One(en,typeof st!="symbol"?st+"":st,dt),dt);function vU(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const Nt=vU(st);function hU(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var v0={exports:{}},kp={};var lA;function pU(){if(lA)return kp;lA=1;var t=st,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(f,d,h){var p,m={},S=null,_=null;h!==void 0&&(S=""+h),d.key!==void 0&&(S=""+d.key),d.ref!==void 0&&(_=d.ref);for(p in d)r.call(d,p)&&!l.hasOwnProperty(p)&&(m[p]=d[p]);if(f&&f.defaultProps)for(p in d=f.defaultProps,d)m[p]===void 0&&(m[p]=d[p]);return{$$typeof:e,type:f,key:S,ref:_,props:m,_owner:a.current}}return kp.Fragment=n,kp.jsx=u,kp.jsxs=u,kp}var Np={};var uA;function gU(){return uA||(uA=1,process.env.NODE_ENV!=="production"&&function(){var t=st,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),x=Symbol.iterator,E="@@iterator";function b(Y){if(Y===null||typeof Y!="object")return null;var Ce=x&&Y[x]||Y[E];return typeof Ce=="function"?Ce:null}var D=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function A(Y){{for(var Ce=arguments.length,Me=new Array(Ce>1?Ce-1:0),Ke=1;Ke<Ce;Ke++)Me[Ke-1]=arguments[Ke];O("error",Y,Me)}}function O(Y,Ce,Me){{var Ke=D.ReactDebugCurrentFrame,mt=Ke.getStackAddendum();mt!==""&&(Ce+="%s",Me=Me.concat([mt]));var Bt=Me.map(function(yt){return String(yt)});Bt.unshift("Warning: "+Ce),Function.prototype.apply.call(console[Y],console,Bt)}}var P=!1,I=!1,F=!1,U=!1,H=!1,j;j=Symbol.for("react.module.reference");function X(Y){return!!(typeof Y=="string"||typeof Y=="function"||Y===r||Y===l||H||Y===a||Y===h||Y===p||U||Y===_||P||I||F||typeof Y=="object"&&Y!==null&&(Y.$$typeof===S||Y.$$typeof===m||Y.$$typeof===u||Y.$$typeof===f||Y.$$typeof===d||Y.$$typeof===j||Y.getModuleId!==void 0))}function G(Y,Ce,Me){var Ke=Y.displayName;if(Ke)return Ke;var mt=Ce.displayName||Ce.name||"";return mt!==""?Me+"("+mt+")":Me}function ee(Y){return Y.displayName||"Context"}function J(Y){if(Y==null)return null;if(typeof Y.tag=="number"&&A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof Y=="function")return Y.displayName||Y.name||null;if(typeof Y=="string")return Y;switch(Y){case r:return"Fragment";case n:return"Portal";case l:return"Profiler";case a:return"StrictMode";case h:return"Suspense";case p:return"SuspenseList"}if(typeof Y=="object")switch(Y.$$typeof){case f:var Ce=Y;return ee(Ce)+".Consumer";case u:var Me=Y;return ee(Me._context)+".Provider";case d:return G(Y,Y.render,"ForwardRef");case m:var Ke=Y.displayName||null;return Ke!==null?Ke:J(Y.type)||"Memo";case S:{var mt=Y,Bt=mt._payload,yt=mt._init;try{return J(yt(Bt))}catch{return null}}}return null}var ie=Object.assign,ce=0,fe,Ne,ae,ge,pe,Le,Ge;function St(){}St.__reactDisabledLog=!0;function It(){{if(ce===0){fe=console.log,Ne=console.info,ae=console.warn,ge=console.error,pe=console.group,Le=console.groupCollapsed,Ge=console.groupEnd;var Y={configurable:!0,enumerable:!0,value:St,writable:!0};Object.defineProperties(console,{info:Y,log:Y,warn:Y,error:Y,group:Y,groupCollapsed:Y,groupEnd:Y})}ce++}}function Dn(){{if(ce--,ce===0){var Y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ie({},Y,{value:fe}),info:ie({},Y,{value:Ne}),warn:ie({},Y,{value:ae}),error:ie({},Y,{value:ge}),group:ie({},Y,{value:pe}),groupCollapsed:ie({},Y,{value:Le}),groupEnd:ie({},Y,{value:Ge})})}ce<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Xt=D.ReactCurrentDispatcher,Mn;function ln(Y,Ce,Me){{if(Mn===void 0)try{throw Error()}catch(mt){var Ke=mt.stack.trim().match(/\n( *(at )?)/);Mn=Ke&&Ke[1]||""}return`
2
2
  `+Mn+Y}}var zt=!1,Ft;{var $e=typeof WeakMap=="function"?WeakMap:Map;Ft=new $e}function Se(Y,Ce){if(!Y||zt)return"";{var Me=Ft.get(Y);if(Me!==void 0)return Me}var Ke;zt=!0;var mt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Bt;Bt=Xt.current,Xt.current=null,It();try{if(Ce){var yt=function(){throw Error()};if(Object.defineProperty(yt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(yt,[])}catch($t){Ke=$t}Reflect.construct(Y,[],yt)}else{try{yt.call()}catch($t){Ke=$t}Y.call(yt.prototype)}}else{try{throw Error()}catch($t){Ke=$t}Y()}}catch($t){if($t&&Ke&&typeof $t.stack=="string"){for(var tt=$t.stack.split(`
3
3
  `),pr=Ke.stack.split(`
4
4
  `),Rn=tt.length-1,An=pr.length-1;Rn>=1&&An>=0&&tt[Rn]!==pr[An];)An--;for(;Rn>=1&&An>=0;Rn--,An--)if(tt[Rn]!==pr[An]){if(Rn!==1||An!==1)do if(Rn--,An--,An<0||tt[Rn]!==pr[An]){var Jr=`
@@ -188,33 +188,33 @@ Check the render method of %s.`,vt(Kn)||"Unknown"));var N=gs(T,R);N.payload={ele
188
188
 
189
189
  let root = createRoot(domContainer);
190
190
  root.render(<App />);`),o.unstable_strictMode===!0&&(v=!0),o.identifierPrefix!==void 0&&(C=o.identifierPrefix),o.onRecoverableError!==void 0&&(T=o.onRecoverableError),o.transitionCallbacks!==void 0&&o.transitionCallbacks);var R=z3(i,vC,null,v,g,C,T);oC(R.current,i);var k=i.nodeType===Jn?i.parentNode:i;return yy(k),new iA(R)}function yw(i){this._internalRoot=i}function vne(i){i&&NS(i)}yw.prototype.unstable_scheduleHydration=vne;function hne(i,o,v){if(!_w(i))throw new Error("hydrateRoot(...): Target container is not a DOM element.");aU(i),o===void 0&&u("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var g=v??null,C=v!=null&&v.hydratedSources||null,T=!1,R=!1,k="",N=iU;v!=null&&(v.unstable_strictMode===!0&&(T=!0),v.identifierPrefix!==void 0&&(k=v.identifierPrefix),v.onRecoverableError!==void 0&&(N=v.onRecoverableError));var B=F3(o,null,i,vC,g,T,R,k,N);if(oC(B.current,i),yy(i),C)for(var V=0;V<C.length;V++){var K=C[V];wJ(B,K)}return new yw(B)}function _w(i){return!!(i&&(i.nodeType===gi||i.nodeType===ja||i.nodeType===zu||!Ge))}function c0(i){return!!(i&&(i.nodeType===gi||i.nodeType===ja||i.nodeType===zu||i.nodeType===Jn&&i.nodeValue===" react-mount-point-unstable "))}function aU(i){i.nodeType===gi&&i.tagName&&i.tagName.toUpperCase()==="BODY"&&u("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),Ry(i)&&(i._reactRootContainer?u("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):u("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var pne=n.ReactCurrentOwner,oU;oU=function(i){if(i._reactRootContainer&&i.nodeType!==Jn){var o=U3(i._reactRootContainer.current);o&&o.parentNode!==i&&u("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var v=!!i._reactRootContainer,g=aA(i),C=!!(g&&Ef(g));C&&!v&&u("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),i.nodeType===gi&&i.tagName&&i.tagName.toUpperCase()==="BODY"&&u("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function aA(i){return i?i.nodeType===ja?i.documentElement:i.firstChild:null}function lU(){}function gne(i,o,v,g,C){if(C){if(typeof g=="function"){var T=g;g=function(){var Q=mw(R);T.call(Q)}}var R=F3(o,g,i,Mf,null,!1,!1,"",lU);i._reactRootContainer=R,oC(R.current,i);var k=i.nodeType===Jn?i.parentNode:i;return yy(k),Ss(),R}else{for(var N;N=i.lastChild;)i.removeChild(N);if(typeof g=="function"){var B=g;g=function(){var Q=mw(V);B.call(Q)}}var V=z3(i,Mf,null,!1,!1,"",lU);i._reactRootContainer=V,oC(V.current,i);var K=i.nodeType===Jn?i.parentNode:i;return yy(K),Ss(function(){f0(o,V,v,g)}),V}}function mne(i,o){i!==null&&typeof i!="function"&&u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",o,i)}function Sw(i,o,v,g,C){oU(v),mne(C===void 0?null:C,"render");var T=v._reactRootContainer,R;if(!T)R=gne(v,o,i,C,g);else{if(R=T,typeof C=="function"){var k=C;C=function(){var N=mw(R);k.call(N)}}f0(o,R,i,C)}return mw(R)}function yne(i){{var o=pne.current;if(o!==null&&o.stateNode!==null){var v=o.stateNode._warnedAboutRefsInRender;v||u("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",hn(o.type)||"A component"),o.stateNode._warnedAboutRefsInRender=!0}}return i==null?null:i.nodeType===gi?i:nne(i,"findDOMNode")}function _ne(i,o,v){if(u("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!c0(o))throw new Error("Target container is not a DOM element.");{var g=Ry(o)&&o._reactRootContainer===void 0;g&&u("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return Sw(null,i,o,!0,v)}function Sne(i,o,v){if(u("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!c0(o))throw new Error("Target container is not a DOM element.");{var g=Ry(o)&&o._reactRootContainer===void 0;g&&u("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return Sw(null,i,o,!1,v)}function Cne(i,o,v,g){if(u("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!c0(v))throw new Error("Target container is not a DOM element.");if(i==null||!td(i))throw new Error("parentComponent must be a valid React Component");return Sw(i,o,v,!1,g)}function wne(i){if(!c0(i))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var o=Ry(i)&&i._reactRootContainer===void 0;o&&u("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(i._reactRootContainer){{var v=aA(i),g=v&&!Ef(v);g&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Ss(function(){Sw(null,null,i,!1,function(){i._reactRootContainer=null,r5(i)})}),!0}else{{var C=aA(i),T=!!(C&&Ef(C)),R=i.nodeType===gi&&c0(i.parentNode)&&!!i.parentNode._reactRootContainer;T&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",R?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}Fe(rne),MS(ine),gd(ane),ey(Sa),AS(vd),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&u("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),uS(bZ),ah(IR,hte,Ss);function xne(i,o){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!_w(o))throw new Error("Target container is not a DOM element.");return tne(i,o,null,v)}function Tne(i,o,v,g){return Cne(i,o,v,g)}var oA={usingClientEntryPoint:!1,Events:[Ef,lp,lC,ih,Kc,IR]};function bne(i,o){return oA.usingClientEntryPoint||u('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),dne(i,o)}function Ene(i,o,v){return oA.usingClientEntryPoint||u('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),hne(i,o,v)}function Dne(i){return g3()&&u("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Ss(i)}var Mne=cne({findFiberByHostInstance:Ed,bundleType:1,version:JR,rendererPackageName:"react-dom"});if(!Mne&&Zt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var uU=window.location.protocol;/^(https?|file):$/.test(uU)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(uU==="file:"?`
191
- You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Ji.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oA,Ji.createPortal=xne,Ji.createRoot=bne,Ji.findDOMNode=yne,Ji.flushSync=Dne,Ji.hydrate=_ne,Ji.hydrateRoot=Ene,Ji.render=Sne,Ji.unmountComponentAtNode=wne,Ji.unstable_batchedUpdates=IR,Ji.unstable_renderSubtreeIntoContainer=Tne,Ji.version=JR,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ji}(function(t){function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}}process.env.NODE_ENV==="production"?(e(),t.exports=zV()):t.exports=FV()})(HA);const qA=hU(HA.exports),QA=[$d.jpeg,$d.jpg,$d.png],ZA=t=>{const{maxCount:e=1,listType:n="picture-card",fileList:r=[],maxSize:a=2,accept:l=QA.join(","),uploadBtnName:u="上传",uploadHint:f=null}=t,[d,h]=st.useState(!1),[p,m]=st.useState(""),S=()=>n!=="text"?Tr("div",{children:[ze(hV,{}),ze("div",{style:{marginTop:8},children:u})]}):Tr(h0,{children:[ze(dt.Button,{icon:ze(SV,{}),children:u}),f]}),_=b=>{const D=l.split(","),A=S0(b.name)||"";return D.includes(A)?b.size/1024/1024<a?!0:(dt.message.error(`文件必须小于${a}MB`),dt.Upload.LIST_IGNORE):(dt.message.error(`只允许上传 ${l} 文件`),dt.Upload.LIST_IGNORE)},x=b=>{t.onChange&&t.onChange(b)},E=async b=>{let D=S0(b.name)||"";if(D||(D=S0(b.name||b.url)||""),D===$d.pdf)return dt.Modal.info({title:"PDF",width:"60%",content:ze("iframe",{title:"PDF预览",src:b.url||b.response.url,frameBorder:"0",style:{width:"100%",height:"70vh"}}),okText:"关闭"});QA.includes(D)&&(!b.url&&!b.thumbUrl&&!b.preview&&(b.preview=await VA(b.originFileObj)),m(b.url||b.thumbUrl||b.preview),h(!0))};return Tr(h0,{children:[ze(dt.Upload,{...t,onPreview:E,beforeUpload:_,onChange:x,listType:n,children:r.length>=e?null:S()}),ze(BV,{visible:d,src:p,onVisibleChange:()=>{h(!1),m("")}})]})},BV=t=>{const{visible:e,src:n,onVisibleChange:r}=t;return qA.createPortal(ze(dt.Image,{style:{display:"none"},src:n,preview:{visible:e,src:n,onVisibleChange:r}}),document.body)},C0={fieldModal:"szld-fieldModal",content:"szld-content",suffix:"szld-suffix",placeholder:"szld-placeholder"},UV={labelCol:{span:4},wrapperCol:{span:20}},VV=t=>{switch(t){case"upload":return"fileList";case"switch":return"checked";default:return"value"}},KA=t=>{const{items:e,rowProps:n,formProps:r,readonly:a=!1,hiddenTitle:l=!1}=t,u=(d,h)=>{var p,m;if(h.btnType==="submit"){(p=r==null?void 0:r.form)==null||p.validateFields().then(S=>{h.onClick&&h.onClick(S)});return}if(h.btnType==="reset"){(m=r==null?void 0:r.form)==null||m.resetFields(),h.onClick&&h.onClick(d);return}h.btnType==="cancel"&&h.onClick&&h.onClick(d)},f=d=>Array.isArray(d)?d:d&&d.fileList;return ze(dt.Form,{layout:"horizontal",form:r==null?void 0:r.form,...UV,...r||{},children:ze(dt.Row,{gutter:16,...n,children:e.filter(d=>!d.hidden).map(d=>{var h,p;return ze(dt.Col,{...d.colProps||{span:24},children:ze(dt.Form.Item,{...d.valueType==="upload"?{getValueFromEvent:f}:{},label:l?"":d.title,name:d.valueType==="btns"?void 0:d.dataIndex,...d.formItemProps,children:d.readonly?ze("div",{children:d.value||((h=r==null?void 0:r.initialValues)==null?void 0:h[d.dataIndex])}):d.readonly===void 0&&a?ze("div",{children:d.value||((p=r==null?void 0:r.initialValues)==null?void 0:p[d.dataIndex])}):ze(JA,{onChange:m=>{var S;return(S=d==null?void 0:d.onChange)==null?void 0:S.call(d,m)},valueType:d.valueType,onBtnClick:u,valueProps:d.valueProps})})},d.dataIndex)})})})},JA=t=>{const{valueType:e,valueProps:n,value:r,onChange:a,onBtnClick:l,inputRef:u}=t,f=st.useMemo(()=>{let d=ze(dt.Input,{placeholder:"请输入",...n,allowClear:!0});switch(e){case"password":d=ze(dt.Input.Password,{...n});break;case"modal":d=ze(HV,{...n});break;case"checkbox":d=ze(dt.Checkbox.Group,{...n});break;case"select":d=ze(dt.Select,{placeholder:"请选择",...n,allowClear:!0});break;case"inputNumber":d=ze(dt.InputNumber,{style:{width:"100%"},placeholder:"请输入",...n});break;case"textarea":d=ze(dt.Input.TextArea,{placeholder:"请输入",...n,allowClear:!0});break;case"radio":d=ze(dt.Radio.Group,{...n});break;case"switch":d=ze(dt.Switch,{...n});break;case"datePicker":d=ze(dt.DatePicker,{style:{width:"100%"},...n,allowClear:!0});break;case"rangePicker":d=ze(dt.DatePicker.RangePicker,{style:{width:"100%"},...n,allowClear:!0});break;case"timePicker":d=ze(dt.TimePicker,{style:{width:"100%"},...n,allowClear:!0});break;case"cascader":d=ze(dt.Cascader,{...n,allowClear:!0});break;case"upload":d=ze(ZA,{...n});break;case"btns":d=ze(dt.Space,{children:n==null?void 0:n.map(h=>st.createElement(dt.Button,{type:h.btnType==="submit"?"primary":"default",...Op.omit(h,["btnType"]),key:h.btnType,onClick:p=>{l==null||l(p,h)}},h.title))});break}return d},[e,n,a,r]);return st.cloneElement(f,{[VV(e||"input")]:r,onChange:a,ref:u})},HV=t=>{const{placeholder:e,labelKey:n,onToggle:r,value:a,onClear:l}=t;return Tr("div",{className:C0.fieldModal,children:[ze("div",{className:C0.content,onClick:()=>r(!0),children:a?ze("span",{children:a[n]}):ze("span",{className:C0.placeholder,children:e})}),ze("span",{className:C0.suffix,onClick:l,children:a&&ze(uV,{})})]})},GV={search:"szld-search"};function $V(t){const{tableProps:e={},searchProps:n}=t,{columns:r=[],...a}=e;return Tr(h0,{children:[n&&ze(KA,{hiddenTitle:!0,...n,items:n.items}),ze(dt.Table,{columns:r.filter(l=>!l.hidden),...a,className:Hd(GV.table,e==null?void 0:e.className),pagination:typeof(e==null?void 0:e.pagination)=="boolean"?e.pagination:{hideOnSinglePage:!0,showPrevNextJumpers:!0,showQuickJumper:!0,showSizeChanger:!0,showTotal:l=>`共 ${l} 条`,...e==null?void 0:e.pagination}})]})}var Hw=function(t,e){return Hw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},Hw(t,e)};function Pt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Hw(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var jV=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),YV=function(){function t(){this.browser=new jV,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t}(),Hf=new YV;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Hf.wxa=!0,Hf.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Hf.worker=!0:typeof navigator>"u"?(Hf.node=!0,Hf.svgSupported=!0):WV(navigator.userAgent,Hf);function WV(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),l=t.match(/Edge?\/([\d.]+)/),u=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),a&&(n.ie=!0,n.version=a[1]),l&&(n.edge=!0,n.version=l[1],n.newEdge=+l[1].split(".")[0]>18),u&&(n.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported=typeof document<"u";var f=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in f||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in f)&&!("OTransition"in f),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}const Tt=Hf;var Gw=12,XV="sans-serif",Gf=Gw+"px "+XV,qV=20,QV=100,ZV="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function KV(t){var e={};if(typeof JSON>"u")return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),a=(t.charCodeAt(n)-qV)/QV;e[r]=a}return e}var JV=KV(ZV),$f={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,r){if(!t){var a=$f.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==r&&(e=t.font=r||Gf),t.measureText(n);n=n||"",r=r||Gf;var l=/(\d+)px/.exec(r),u=l&&+l[1]||Gw,f=0;if(r.indexOf("mono")>=0)f=u*n.length;else for(var d=0;d<n.length;d++){var h=JV[n[d]];f+=h==null?u:h*u}return{width:f}}}(),loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}},eL=Yd(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),tL=Yd(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),jd=Object.prototype.toString,w0=Array.prototype,eH=w0.forEach,tH=w0.filter,$w=w0.slice,nH=w0.map,nL=function(){}.constructor,x0=nL?nL.prototype:null,jw="__proto__",rH=2311;function rL(){return rH++}function jf(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function Qt(t){if(t==null||typeof t!="object")return t;var e=t,n=jd.call(t);if(n==="[object Array]"){if(!Bp(t)){e=[];for(var r=0,a=t.length;r<a;r++)e[r]=Qt(t[r])}}else if(tL[n]){if(!Bp(t)){var l=t.constructor;if(l.from)e=l.from(t);else{e=new l(t.length);for(var r=0,a=t.length;r<a;r++)e[r]=t[r]}}}else if(!eL[n]&&!Bp(t)&&!zp(t)){e={};for(var u in t)t.hasOwnProperty(u)&&u!==jw&&(e[u]=Qt(t[u]))}return e}function cn(t,e,n){if(!it(e)||!it(t))return n?Qt(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==jw){var a=t[r],l=e[r];it(l)&&it(a)&&!Be(l)&&!Be(a)&&!zp(l)&&!zp(a)&&!iL(l)&&!iL(a)&&!Bp(l)&&!Bp(a)?cn(a,l,n):(n||!(r in t))&&(t[r]=Qt(e[r]))}return t}function Re(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==jw&&(t[n]=e[n]);return t}function Vt(t,e,n){for(var r=kn(e),a=0;a<r.length;a++){var l=r[a];(n?e[l]!=null:t[l]==null)&&(t[l]=e[l])}return t}$f.createCanvas;function dn(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1}function iH(t,e){var n=t.prototype;function r(){}r.prototype=e.prototype,t.prototype=new r;for(var a in n)n.hasOwnProperty(a)&&(t.prototype[a]=n[a]);t.prototype.constructor=t,t.superClass=e}function ml(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),a=0;a<r.length;a++){var l=r[a];l!=="constructor"&&(n?e[l]!=null:t[l]==null)&&(t[l]=e[l])}else Vt(t,e,n)}function Ai(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function W(t,e,n){if(t&&e)if(t.forEach&&t.forEach===eH)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,a=t.length;r<a;r++)e.call(n,t[r],r,t);else for(var l in t)t.hasOwnProperty(l)&&e.call(n,t[l],l,t)}function ot(t,e,n){if(!t)return[];if(!e)return Yw(t);if(t.map&&t.map===nH)return t.map(e,n);for(var r=[],a=0,l=t.length;a<l;a++)r.push(e.call(n,t[a],a,t));return r}function Yd(t,e,n,r){if(t&&e){for(var a=0,l=t.length;a<l;a++)n=e.call(r,n,t[a],a,t);return n}}function br(t,e,n){if(!t)return[];if(!e)return Yw(t);if(t.filter&&t.filter===tH)return t.filter(e,n);for(var r=[],a=0,l=t.length;a<l;a++)e.call(n,t[a],a,t)&&r.push(t[a]);return r}function kn(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}function aH(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat($w.call(arguments)))}}var Qn=x0&&_t(x0.bind)?x0.call.bind(x0.bind):aH;function Aa(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat($w.call(arguments)))}}function Be(t){return Array.isArray?Array.isArray(t):jd.call(t)==="[object Array]"}function _t(t){return typeof t=="function"}function et(t){return typeof t=="string"}function T0(t){return jd.call(t)==="[object String]"}function Nn(t){return typeof t=="number"}function it(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function iL(t){return!!eL[jd.call(t)]}function ea(t){return!!tL[jd.call(t)]}function zp(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function b0(t){return t.colorStops!=null}function oH(t){return t.image!=null}function aL(t){return jd.call(t)==="[object RegExp]"}function Fp(t){return t!==t}function Yf(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(t[n]!=null)return t[n]}function kt(t,e){return t??e}function Wd(t,e,n){return t??e??n}function Yw(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return $w.apply(t,e)}function oL(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function bt(t,e){if(!t)throw new Error(e)}function yl(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var lL="__ec_primitive__";function E0(t){t[lL]=!0}function Bp(t){return t[lL]}var lH=function(){function t(){this.data={}}return t.prototype.delete=function(e){var n=this.has(e);return n&&delete this.data[e],n},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,n){return this.data[e]=n,this},t.prototype.keys=function(){return kn(this.data)},t.prototype.forEach=function(e){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&e(n[r],r)},t}(),uL=typeof Map=="function";function uH(){return uL?new Map:new lH}var sH=function(){function t(e){var n=Be(e);this.data=uH();var r=this;e instanceof t?e.each(a):e&&W(e,a);function a(l,u){n?r.set(l,u):r.set(u,l)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,n){return this.data.set(e,n),n},t.prototype.each=function(e,n){this.data.forEach(function(r,a){e.call(n,r,a)})},t.prototype.keys=function(){var e=this.data.keys();return uL?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function xt(t){return new sH(t)}function fH(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];for(var a=t.length,r=0;r<e.length;r++)n[r+a]=e[r];return n}function D0(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&Re(n,e),n}function sL(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function yu(t,e){return t.hasOwnProperty(e)}function ta(){}var cH=180/Math.PI;var Ww=function(t,e){return Ww=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},Ww(t,e)};function mn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ww(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function Xd(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function dH(t){return[t[0],t[1]]}function fL(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function vH(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function hH(t){return Math.sqrt(pH(t))}function pH(t){return t[0]*t[0]+t[1]*t[1]}function Xw(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function gH(t,e){var n=hH(e);return n===0?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function qw(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Qw=qw;function mH(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var qd=mH;function M0(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function eo(t,e,n){var r=e[0],a=e[1];return t[0]=n[0]*r+n[2]*a+n[4],t[1]=n[1]*r+n[3]*a+n[5],t}function Qd(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function Zd(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var Kd=function(){function t(e,n){this.target=e,this.topTarget=n&&n.topTarget}return t}(),yH=function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var n=e.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Kd(n,e),"dragstart",e.event))},t.prototype._drag=function(e){var n=this._draggingTarget;if(n){var r=e.offsetX,a=e.offsetY,l=r-this._x,u=a-this._y;this._x=r,this._y=a,n.drift(l,u,e),this.handler.dispatchToElement(new Kd(n,e),"drag",e.event);var f=this.handler.findHover(r,a,n).target,d=this._dropTarget;this._dropTarget=f,n!==f&&(d&&f!==d&&this.handler.dispatchToElement(new Kd(d,e),"dragleave",e.event),f&&f!==d&&this.handler.dispatchToElement(new Kd(f,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new Kd(n,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Kd(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}();const _H=yH;var SH=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,n,r,a){this._$handlers||(this._$handlers={});var l=this._$handlers;if(typeof n=="function"&&(a=r,r=n,n=null),!r||!e)return this;var u=this._$eventProcessor;n!=null&&u&&u.normalizeQuery&&(n=u.normalizeQuery(n)),l[e]||(l[e]=[]);for(var f=0;f<l[e].length;f++)if(l[e][f].h===r)return this;var d={h:r,query:n,ctx:a||this,callAtLast:r.zrEventfulCallAtLast},h=l[e].length-1,p=l[e][h];return p&&p.callAtLast?l[e].splice(h,0,d):l[e].push(d),this},t.prototype.isSilent=function(e){var n=this._$handlers;return!n||!n[e]||!n[e].length},t.prototype.off=function(e,n){var r=this._$handlers;if(!r)return this;if(!e)return this._$handlers={},this;if(n){if(r[e]){for(var a=[],l=0,u=r[e].length;l<u;l++)r[e][l].h!==n&&a.push(r[e][l]);r[e]=a}r[e]&&r[e].length===0&&delete r[e]}else delete r[e];return this},t.prototype.trigger=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[e],l=this._$eventProcessor;if(a)for(var u=n.length,f=a.length,d=0;d<f;d++){var h=a[d];if(!(l&&l.filter&&h.query!=null&&!l.filter(e,h.query)))switch(u){case 0:h.h.call(h.ctx);break;case 1:h.h.call(h.ctx,n[0]);break;case 2:h.h.call(h.ctx,n[0],n[1]);break;default:h.h.apply(h.ctx,n);break}}return l&&l.afterTrigger&&l.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[e],l=this._$eventProcessor;if(a)for(var u=n.length,f=n[u-1],d=a.length,h=0;h<d;h++){var p=a[h];if(!(l&&l.filter&&p.query!=null&&!l.filter(e,p.query)))switch(u){case 0:p.h.call(f);break;case 1:p.h.call(f,n[0]);break;case 2:p.h.call(f,n[0],n[1]);break;default:p.h.apply(f,n.slice(1,u-1));break}}return l&&l.afterTrigger&&l.afterTrigger(e),this},t}();const _l=SH;var CH=Math.log(2);function Zw(t,e,n,r,a,l){var u=r+"-"+a,f=t.length;if(l.hasOwnProperty(u))return l[u];if(e===1){var d=Math.round(Math.log((1<<f)-1&~a)/CH);return t[n][d]}for(var h=r|1<<n,p=n+1;r&1<<p;)p++;for(var m=0,S=0,_=0;S<f;S++){var x=1<<S;x&a||(m+=(_%2?-1:1)*t[n][S]*Zw(t,e-1,p,h,a|x,l),_++)}return l[u]=m,m}function cL(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]]],r={},a=Zw(n,8,0,0,0,r);if(a!==0){for(var l=[],u=0;u<8;u++)for(var f=0;f<8;f++)l[f]==null&&(l[f]=0),l[f]+=((u+f)%2?-1:1)*Zw(n,7,u===0?1:0,1<<u,1<<f,r)/a*e[u];return function(d,h,p){var m=h*l[6]+p*l[7]+1;d[0]=(h*l[0]+p*l[1]+l[2])/m,d[1]=(h*l[3]+p*l[4]+l[5])/m}}}var dL="___zrEVENTSAVED",Kw=[];function wH(t,e,n,r,a){return Jw(Kw,e,r,a,!0)&&Jw(t,n,Kw[0],Kw[1])}function Jw(t,e,n,r,a){if(e.getBoundingClientRect&&Tt.domSupported&&!vL(e)){var l=e[dL]||(e[dL]={}),u=xH(e,l),f=TH(u,l,a);if(f)return f(t,n,r),!0}return!1}function xH(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],a=["top","bottom"],l=0;l<4;l++){var u=document.createElement("div"),f=u.style,d=l%2,h=(l>>1)%2;f.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[d]+":0",a[h]+":0",r[1-d]+":auto",a[1-h]+":auto",""].join("!important;"),t.appendChild(u),n.push(u)}return n}function TH(t,e,n){for(var r=n?"invTrans":"trans",a=e[r],l=e.srcCoords,u=[],f=[],d=!0,h=0;h<4;h++){var p=t[h].getBoundingClientRect(),m=2*h,S=p.left,_=p.top;u.push(S,_),d=d&&l&&S===l[m]&&_===l[m+1],f.push(t[h].offsetLeft,t[h].offsetTop)}return d&&a?a:(e.srcCoords=u,e[r]=n?cL(f,u):cL(u,f))}function vL(t){return t.nodeName.toUpperCase()==="CANVAS"}var bH=/([&<>"'])/g,EH={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function to(t){return t==null?"":(t+"").replace(bH,function(e,n){return EH[n]})}var DH=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ex=[],MH=Tt.browser.firefox&&+Tt.browser.version.split(".")[0]<39;function tx(t,e,n,r){return n=n||{},r?hL(t,e,n):MH&&e.layerX!=null&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):e.offsetX!=null?(n.zrX=e.offsetX,n.zrY=e.offsetY):hL(t,e,n),n}function hL(t,e,n){if(Tt.domSupported&&t.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(vL(t)){var l=t.getBoundingClientRect();n.zrX=r-l.left,n.zrY=a-l.top;return}else if(Jw(ex,t,r,a)){n.zrX=ex[0],n.zrY=ex[1];return}}n.zrX=n.zrY=0}function nx(t){return t||window.event}function no(t,e,n){if(e=nx(e),e.zrX!=null)return e;var r=e.type,a=r&&r.indexOf("touch")>=0;if(a){var u=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];u&&tx(t,u,e,n)}else{tx(t,e,e,n);var l=RH(e);e.zrDelta=l?l/120:-(e.detail||0)/3}var f=e.button;return e.which==null&&f!==void 0&&DH.test(e.type)&&(e.which=f&1?1:f&2?3:f&4?2:0),e}function RH(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(n==null||r==null)return e;var a=Math.abs(r!==0?r:n),l=r>0?-1:r<0?1:n>0?-1:1;return 3*a*l}function AH(t,e,n,r){t.addEventListener(e,n,r)}function LH(t,e,n,r){t.removeEventListener(e,n,r)}var pL=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},OH=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,n,r){return this._doTrack(e,n,r),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,n,r){var a=e.touches;if(a){for(var l={points:[],touches:[],target:n,event:e},u=0,f=a.length;u<f;u++){var d=a[u],h=tx(r,d,{});l.points.push([h.zrX,h.zrY]),l.touches.push(d)}this._track.push(l)}},t.prototype._recognize=function(e){for(var n in rx)if(rx.hasOwnProperty(n)){var r=rx[n](this._track,e);if(r)return r}},t}();function gL(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function kH(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var rx={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,a=(t[n-2]||{}).points||r;if(a&&a.length>1&&r&&r.length>1){var l=gL(r)/gL(a);!isFinite(l)&&(l=1),e.pinchScale=l;var u=kH(r);return e.pinchX=u[0],e.pinchY=u[1],{type:"pinch",target:t[0].target,event:e}}}}};function Up(){return[1,0,0,1,0,0]}function ix(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function NH(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 Jd(t,e,n){var r=e[0]*n[0]+e[2]*n[1],a=e[1]*n[0]+e[3]*n[1],l=e[0]*n[2]+e[2]*n[3],u=e[1]*n[2]+e[3]*n[3],f=e[0]*n[4]+e[2]*n[5]+e[4],d=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=a,t[2]=l,t[3]=u,t[4]=f,t[5]=d,t}function ax(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 ox(t,e,n){var r=e[0],a=e[2],l=e[4],u=e[1],f=e[3],d=e[5],h=Math.sin(n),p=Math.cos(n);return t[0]=r*p+u*h,t[1]=-r*h+u*p,t[2]=a*p+f*h,t[3]=-a*h+p*f,t[4]=p*l+h*d,t[5]=p*d-h*l,t}function PH(t,e,n){var r=n[0],a=n[1];return t[0]=e[0]*r,t[1]=e[1]*a,t[2]=e[2]*r,t[3]=e[3]*a,t[4]=e[4]*r,t[5]=e[5]*a,t}function R0(t,e){var n=e[0],r=e[2],a=e[4],l=e[1],u=e[3],f=e[5],d=n*u-l*r;return d?(d=1/d,t[0]=u*d,t[1]=-l*d,t[2]=-r*d,t[3]=n*d,t[4]=(r*f-u*a)*d,t[5]=(l*a-n*f)*d,t):null}var IH=function(){function t(e,n){this.x=e||0,this.y=n||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,n){return this.x=e,this.y=n,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,n){this.x+=e.x*n,this.y+=e.y*n},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var n=this.x-e.x,r=this.y-e.y;return Math.sqrt(n*n+r*r)},t.prototype.distanceSquare=function(e){var n=this.x-e.x,r=this.y-e.y;return n*n+r*r},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var n=this.x,r=this.y;return this.x=e[0]*n+e[2]*r+e[4],this.y=e[1]*n+e[3]*r+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,n,r){e.x=n,e.y=r},t.copy=function(e,n){e.x=n.x,e.y=n.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,n){return e.x*n.x+e.y*n.y},t.add=function(e,n,r){e.x=n.x+r.x,e.y=n.y+r.y},t.sub=function(e,n,r){e.x=n.x-r.x,e.y=n.y-r.y},t.scale=function(e,n,r){e.x=n.x*r,e.y=n.y*r},t.scaleAndAdd=function(e,n,r,a){e.x=n.x+r.x*a,e.y=n.y+r.y*a},t.lerp=function(e,n,r,a){var l=1-a;e.x=l*n.x+a*r.x,e.y=l*n.y+a*r.y},t}();const ht=IH;var A0=Math.min,L0=Math.max,Wf=new ht,Xf=new ht,qf=new ht,Qf=new ht,Vp=new ht,Hp=new ht,zH=function(){function t(e,n,r,a){r<0&&(e=e+r,r=-r),a<0&&(n=n+a,a=-a),this.x=e,this.y=n,this.width=r,this.height=a}return t.prototype.union=function(e){var n=A0(e.x,this.x),r=A0(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=L0(e.x+e.width,this.x+this.width)-n:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=L0(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=n,this.y=r},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var n=this,r=e.width/n.width,a=e.height/n.height,l=Up();return ax(l,l,[-n.x,-n.y]),PH(l,l,[r,a]),ax(l,l,[e.x,e.y]),l},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,a=r.x,l=r.x+r.width,u=r.y,f=r.y+r.height,d=e.x,h=e.x+e.width,p=e.y,m=e.y+e.height,S=!(l<d||h<a||f<p||m<u);if(n){var _=1/0,x=0,E=Math.abs(l-d),b=Math.abs(h-a),D=Math.abs(f-p),A=Math.abs(m-u),O=Math.min(E,b),P=Math.min(D,A);l<d||h<a?O>x&&(x=O,E<b?ht.set(Hp,-E,0):ht.set(Hp,b,0)):O<_&&(_=O,E<b?ht.set(Vp,E,0):ht.set(Vp,-b,0)),f<p||m<u?P>x&&(x=P,D<A?ht.set(Hp,0,-D):ht.set(Hp,0,A)):O<_&&(_=O,D<A?ht.set(Vp,0,D):ht.set(Vp,0,-A))}return n&&ht.copy(n,S?Vp:Hp),S},t.prototype.contain=function(e,n){var r=this;return e>=r.x&&e<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},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 this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,n){e.x=n.x,e.y=n.y,e.width=n.width,e.height=n.height},t.applyTransform=function(e,n,r){if(!r){e!==n&&t.copy(e,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],l=r[3],u=r[4],f=r[5];e.x=n.x*a+u,e.y=n.y*l+f,e.width=n.width*a,e.height=n.height*l,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Wf.x=qf.x=n.x,Wf.y=Qf.y=n.y,Xf.x=Qf.x=n.x+n.width,Xf.y=qf.y=n.y+n.height,Wf.transform(r),Qf.transform(r),Xf.transform(r),qf.transform(r),e.x=A0(Wf.x,Xf.x,qf.x,Qf.x),e.y=A0(Wf.y,Xf.y,qf.y,Qf.y);var d=L0(Wf.x,Xf.x,qf.x,Qf.x),h=L0(Wf.y,Xf.y,qf.y,Qf.y);e.width=d-e.x,e.height=h-e.y},t}();const Wt=zH;var mL="silent";function FH(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:BH}}function BH(){pL(this.event)}var UH=function(t){mn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.handler=null,n}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(_l),Gp=function(){function t(e,n){this.x=e,this.y=n}return t}(),VH=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],lx=new Wt(0,0,0,0),yL=function(t){mn(e,t);function e(n,r,a,l,u){var f=t.call(this)||this;return f._hovered=new Gp(0,0),f.storage=n,f.painter=r,f.painterRoot=l,f._pointerSize=u,a=a||new UH,f.proxy=null,f.setHandlerProxy(a),f._draggingMgr=new _H(f),f}return e.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(W(VH,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},e.prototype.mousemove=function(n){var r=n.zrX,a=n.zrY,l=SL(this,r,a),u=this._hovered,f=u.target;f&&!f.__zr&&(u=this.findHover(u.x,u.y),f=u.target);var d=this._hovered=l?new Gp(r,a):this.findHover(r,a),h=d.target,p=this.proxy;p.setCursor&&p.setCursor(h?h.cursor:"default"),f&&h!==f&&this.dispatchToElement(u,"mouseout",n),this.dispatchToElement(d,"mousemove",n),h&&h!==f&&this.dispatchToElement(d,"mouseover",n)},e.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},e.prototype.resize=function(){this._hovered=new Gp(0,0)},e.prototype.dispatch=function(n,r){var a=this[n];a&&a.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},e.prototype.dispatchToElement=function(n,r,a){n=n||{};var l=n.target;if(!(l&&l.silent)){for(var u="on"+r,f=FH(r,n,a);l&&(l[u]&&(f.cancelBubble=!!l[u].call(l,f)),l.trigger(r,f),l=l.__hostTarget?l.__hostTarget:l.parent,!f.cancelBubble););f.cancelBubble||(this.trigger(r,f),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(d){typeof d[u]=="function"&&d[u].call(d,f),d.trigger&&d.trigger(r,f)}))}},e.prototype.findHover=function(n,r,a){var l=this.storage.getDisplayList(),u=new Gp(n,r);if(_L(l,u,n,r,a),this._pointerSize&&!u.target){for(var f=[],d=this._pointerSize,h=d/2,p=new Wt(n-h,r-h,d,d),m=l.length-1;m>=0;m--){var S=l[m];S!==a&&!S.ignore&&!S.ignoreCoarsePointer&&(!S.parent||!S.parent.ignoreCoarsePointer)&&(lx.copy(S.getBoundingRect()),S.transform&&lx.applyTransform(S.transform),lx.intersect(p)&&f.push(S))}if(f.length)for(var _=4,x=Math.PI/12,E=Math.PI*2,b=0;b<h;b+=_)for(var D=0;D<E;D+=x){var A=n+b*Math.cos(D),O=r+b*Math.sin(D);if(_L(f,u,A,O,a),u.target)return u}}return u},e.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new OH);var a=this._gestureMgr;r==="start"&&a.clear();var l=a.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&a.clear(),l){var u=l.type;n.gestureEvent=u;var f=new Gp;f.target=l.target,this.dispatchToElement(f,u,l.event)}},e}(_l);W(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){yL.prototype[t]=function(e){var n=e.zrX,r=e.zrY,a=SL(this,n,r),l,u;if((t!=="mouseup"||!a)&&(l=this.findHover(n,r),u=l.target),t==="mousedown")this._downEl=u,this._downPoint=[e.zrX,e.zrY],this._upEl=u;else if(t==="mouseup")this._upEl=u;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||Qw(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(l,t,e)}});function HH(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,a=void 0,l=!1;r;){if(r.ignoreClip&&(l=!0),!l){var u=r.getClipPath();if(u&&!u.contain(e,n))return!1;r.silent&&(a=!0)}var f=r.__hostTarget;r=f||r.parent}return a?mL:!0}return!1}function _L(t,e,n,r,a){for(var l=t.length-1;l>=0;l--){var u=t[l],f=void 0;if(u!==a&&!u.ignore&&(f=HH(u,n,r))&&(!e.topTarget&&(e.topTarget=u),f!==mL)){e.target=u;break}}}function SL(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}const GH=yL;var CL=32,$p=7;function $H(t){for(var e=0;t>=CL;)e|=t&1,t>>=1;return t+e}function wL(t,e,n,r){var a=e+1;if(a===n)return 1;if(r(t[a++],t[e])<0){for(;a<n&&r(t[a],t[a-1])<0;)a++;jH(t,e,a)}else for(;a<n&&r(t[a],t[a-1])>=0;)a++;return a-e}function jH(t,e,n){for(n--;e<n;){var r=t[e];t[e++]=t[n],t[n--]=r}}function xL(t,e,n,r,a){for(r===e&&r++;r<n;r++){for(var l=t[r],u=e,f=r,d;u<f;)d=u+f>>>1,a(l,t[d])<0?f=d:u=d+1;var h=r-u;switch(h){case 3:t[u+3]=t[u+2];case 2:t[u+2]=t[u+1];case 1:t[u+1]=t[u];break;default:for(;h>0;)t[u+h]=t[u+h-1],h--}t[u]=l}}function ux(t,e,n,r,a,l){var u=0,f=0,d=1;if(l(t,e[n+a])>0){for(f=r-a;d<f&&l(t,e[n+a+d])>0;)u=d,d=(d<<1)+1,d<=0&&(d=f);d>f&&(d=f),u+=a,d+=a}else{for(f=a+1;d<f&&l(t,e[n+a-d])<=0;)u=d,d=(d<<1)+1,d<=0&&(d=f);d>f&&(d=f);var h=u;u=a-d,d=a-h}for(u++;u<d;){var p=u+(d-u>>>1);l(t,e[n+p])>0?u=p+1:d=p}return d}function sx(t,e,n,r,a,l){var u=0,f=0,d=1;if(l(t,e[n+a])<0){for(f=a+1;d<f&&l(t,e[n+a-d])<0;)u=d,d=(d<<1)+1,d<=0&&(d=f);d>f&&(d=f);var h=u;u=a-d,d=a-h}else{for(f=r-a;d<f&&l(t,e[n+a+d])>=0;)u=d,d=(d<<1)+1,d<=0&&(d=f);d>f&&(d=f),u+=a,d+=a}for(u++;u<d;){var p=u+(d-u>>>1);l(t,e[n+p])<0?d=p:u=p+1}return d}function YH(t,e){var n=$p,r,a,l=0;t.length;var u=[];r=[],a=[];function f(_,x){r[l]=_,a[l]=x,l+=1}function d(){for(;l>1;){var _=l-2;if(_>=1&&a[_-1]<=a[_]+a[_+1]||_>=2&&a[_-2]<=a[_]+a[_-1])a[_-1]<a[_+1]&&_--;else if(a[_]>a[_+1])break;p(_)}}function h(){for(;l>1;){var _=l-2;_>0&&a[_-1]<a[_+1]&&_--,p(_)}}function p(_){var x=r[_],E=a[_],b=r[_+1],D=a[_+1];a[_]=E+D,_===l-3&&(r[_+1]=r[_+2],a[_+1]=a[_+2]),l--;var A=sx(t[b],t,x,E,0,e);x+=A,E-=A,E!==0&&(D=ux(t[x+E-1],t,b,D,D-1,e),D!==0&&(E<=D?m(x,E,b,D):S(x,E,b,D)))}function m(_,x,E,b){var D=0;for(D=0;D<x;D++)u[D]=t[_+D];var A=0,O=E,P=_;if(t[P++]=t[O++],--b===0){for(D=0;D<x;D++)t[P+D]=u[A+D];return}if(x===1){for(D=0;D<b;D++)t[P+D]=t[O+D];t[P+b]=u[A];return}for(var I=n,F,U,H;;){F=0,U=0,H=!1;do if(e(t[O],u[A])<0){if(t[P++]=t[O++],U++,F=0,--b===0){H=!0;break}}else if(t[P++]=u[A++],F++,U=0,--x===1){H=!0;break}while((F|U)<I);if(H)break;do{if(F=sx(t[O],u,A,x,0,e),F!==0){for(D=0;D<F;D++)t[P+D]=u[A+D];if(P+=F,A+=F,x-=F,x<=1){H=!0;break}}if(t[P++]=t[O++],--b===0){H=!0;break}if(U=ux(u[A],t,O,b,0,e),U!==0){for(D=0;D<U;D++)t[P+D]=t[O+D];if(P+=U,O+=U,b-=U,b===0){H=!0;break}}if(t[P++]=u[A++],--x===1){H=!0;break}I--}while(F>=$p||U>=$p);if(H)break;I<0&&(I=0),I+=2}if(n=I,n<1&&(n=1),x===1){for(D=0;D<b;D++)t[P+D]=t[O+D];t[P+b]=u[A]}else{if(x===0)throw new Error;for(D=0;D<x;D++)t[P+D]=u[A+D]}}function S(_,x,E,b){var D=0;for(D=0;D<b;D++)u[D]=t[E+D];var A=_+x-1,O=b-1,P=E+b-1,I=0,F=0;if(t[P--]=t[A--],--x===0){for(I=P-(b-1),D=0;D<b;D++)t[I+D]=u[D];return}if(b===1){for(P-=x,A-=x,F=P+1,I=A+1,D=x-1;D>=0;D--)t[F+D]=t[I+D];t[P]=u[O];return}for(var U=n;;){var H=0,j=0,X=!1;do if(e(u[O],t[A])<0){if(t[P--]=t[A--],H++,j=0,--x===0){X=!0;break}}else if(t[P--]=u[O--],j++,H=0,--b===1){X=!0;break}while((H|j)<U);if(X)break;do{if(H=x-sx(u[O],t,_,x,x-1,e),H!==0){for(P-=H,A-=H,x-=H,F=P+1,I=A+1,D=H-1;D>=0;D--)t[F+D]=t[I+D];if(x===0){X=!0;break}}if(t[P--]=u[O--],--b===1){X=!0;break}if(j=b-ux(t[A],u,0,b,b-1,e),j!==0){for(P-=j,O-=j,b-=j,F=P+1,I=O+1,D=0;D<j;D++)t[F+D]=u[I+D];if(b<=1){X=!0;break}}if(t[P--]=t[A--],--x===0){X=!0;break}U--}while(H>=$p||j>=$p);if(X)break;U<0&&(U=0),U+=2}if(n=U,n<1&&(n=1),b===1){for(P-=x,A-=x,F=P+1,I=A+1,D=x-1;D>=0;D--)t[F+D]=t[I+D];t[P]=u[O]}else{if(b===0)throw new Error;for(I=P-(b-1),D=0;D<b;D++)t[I+D]=u[D]}}return{mergeRuns:d,forceMergeRuns:h,pushRun:f}}function O0(t,e,n,r){n||(n=0),r||(r=t.length);var a=r-n;if(!(a<2)){var l=0;if(a<CL){l=wL(t,n,r,e),xL(t,n,r,n+l,e);return}var u=YH(t,e),f=$H(a);do{if(l=wL(t,n,r,e),l<f){var d=a;d>f&&(d=f),xL(t,n,n+d,n+l,e),l=d}u.pushRun(n,l),u.mergeRuns(),a-=l,n+=l}while(a!==0);u.forceMergeRuns()}}var La=1,jp=2,ev=4,TL=!1;function fx(){TL||(TL=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function bL(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var WH=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=bL}return t.prototype.traverse=function(e,n){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(e,n)},t.prototype.getDisplayList=function(e,n){n=n||!1;var r=this._displayList;return(e||!r.length)&&this.updateDisplayList(n),r},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var n=this._roots,r=this._displayList,a=0,l=n.length;a<l;a++)this._updateAndAddDisplayable(n[a],null,e);r.length=this._displayListLen,O0(r,bL)},t.prototype._updateAndAddDisplayable=function(e,n,r){if(!(e.ignore&&!r)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath();if(e.ignoreClip)n=null;else if(a){n?n=n.slice():n=[];for(var l=a,u=e;l;)l.parent=u,l.updateTransform(),n.push(l),u=l,l=l.getClipPath()}if(e.childrenRef){for(var f=e.childrenRef(),d=0;d<f.length;d++){var h=f[d];e.__dirty&&(h.__dirty|=La),this._updateAndAddDisplayable(h,n,r)}e.__dirty=0}else{var p=e;n&&n.length?p.__clipPaths=n:p.__clipPaths&&p.__clipPaths.length>0&&(p.__clipPaths=[]),isNaN(p.z)&&(fx(),p.z=0),isNaN(p.z2)&&(fx(),p.z2=0),isNaN(p.zlevel)&&(fx(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,n,r);var S=e.getTextGuideLine();S&&this._updateAndAddDisplayable(S,n,r);var _=e.getTextContent();_&&this._updateAndAddDisplayable(_,n,r)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var n=0,r=e.length;n<r;n++)this.delRoot(e[n]);return}var a=dn(this._roots,e);a>=0&&this._roots.splice(a,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 XH=WH;var EL;EL=Tt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};const cx=EL;var k0={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)))},elasticOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)):n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-k0.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?k0.bounceIn(t*2)*.5:k0.bounceOut(t*2-1)*.5+.5}};const DL=k0;var N0=Math.pow,Ts=Math.sqrt,P0=1e-8,ML=1e-4,RL=Ts(3),I0=1/3,Sl=Xd(),ro=Xd(),tv=Xd();function bs(t){return t>-P0&&t<P0}function AL(t){return t>P0||t<-P0}function Qr(t,e,n,r,a){var l=1-a;return l*l*(l*t+3*a*e)+a*a*(a*r+3*l*n)}function LL(t,e,n,r,a){var l=1-a;return 3*(((e-t)*l+2*(n-e)*a)*l+(r-n)*a*a)}function OL(t,e,n,r,a,l){var u=r+3*(e-n)-t,f=3*(n-e*2+t),d=3*(e-t),h=t-a,p=f*f-3*u*d,m=f*d-9*u*h,S=d*d-3*f*h,_=0;if(bs(p)&&bs(m))if(bs(f))l[0]=0;else{var x=-d/f;x>=0&&x<=1&&(l[_++]=x)}else{var E=m*m-4*p*S;if(bs(E)){var b=m/p,x=-f/u+b,D=-b/2;x>=0&&x<=1&&(l[_++]=x),D>=0&&D<=1&&(l[_++]=D)}else if(E>0){var A=Ts(E),O=p*f+1.5*u*(-m+A),P=p*f+1.5*u*(-m-A);O<0?O=-N0(-O,I0):O=N0(O,I0),P<0?P=-N0(-P,I0):P=N0(P,I0);var x=(-f-(O+P))/(3*u);x>=0&&x<=1&&(l[_++]=x)}else{var I=(2*p*f-3*u*m)/(2*Ts(p*p*p)),F=Math.acos(I)/3,U=Ts(p),H=Math.cos(F),x=(-f-2*U*H)/(3*u),D=(-f+U*(H+RL*Math.sin(F)))/(3*u),j=(-f+U*(H-RL*Math.sin(F)))/(3*u);x>=0&&x<=1&&(l[_++]=x),D>=0&&D<=1&&(l[_++]=D),j>=0&&j<=1&&(l[_++]=j)}}return _}function kL(t,e,n,r,a){var l=6*n-12*e+6*t,u=9*e+3*r-3*t-9*n,f=3*e-3*t,d=0;if(bs(u)){if(AL(l)){var h=-f/l;h>=0&&h<=1&&(a[d++]=h)}}else{var p=l*l-4*u*f;if(bs(p))a[0]=-l/(2*u);else if(p>0){var m=Ts(p),h=(-l+m)/(2*u),S=(-l-m)/(2*u);h>=0&&h<=1&&(a[d++]=h),S>=0&&S<=1&&(a[d++]=S)}}return d}function Es(t,e,n,r,a,l){var u=(e-t)*a+t,f=(n-e)*a+e,d=(r-n)*a+n,h=(f-u)*a+u,p=(d-f)*a+f,m=(p-h)*a+h;l[0]=t,l[1]=u,l[2]=h,l[3]=m,l[4]=m,l[5]=p,l[6]=d,l[7]=r}function NL(t,e,n,r,a,l,u,f,d,h,p){var m,S=.005,_=1/0,x,E,b,D;Sl[0]=d,Sl[1]=h;for(var A=0;A<1;A+=.05)ro[0]=Qr(t,n,a,u,A),ro[1]=Qr(e,r,l,f,A),b=qd(Sl,ro),b<_&&(m=A,_=b);_=1/0;for(var O=0;O<32&&!(S<ML);O++)x=m-S,E=m+S,ro[0]=Qr(t,n,a,u,x),ro[1]=Qr(e,r,l,f,x),b=qd(ro,Sl),x>=0&&b<_?(m=x,_=b):(tv[0]=Qr(t,n,a,u,E),tv[1]=Qr(e,r,l,f,E),D=qd(tv,Sl),E<=1&&D<_?(m=E,_=D):S*=.5);return p&&(p[0]=Qr(t,n,a,u,m),p[1]=Qr(e,r,l,f,m)),Ts(_)}function qH(t,e,n,r,a,l,u,f,d){for(var h=t,p=e,m=0,S=1/d,_=1;_<=d;_++){var x=_*S,E=Qr(t,n,a,u,x),b=Qr(e,r,l,f,x),D=E-h,A=b-p;m+=Math.sqrt(D*D+A*A),h=E,p=b}return m}function fi(t,e,n,r){var a=1-r;return a*(a*t+2*r*e)+r*r*n}function PL(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function QH(t,e,n,r,a){var l=t-2*e+n,u=2*(e-t),f=t-r,d=0;if(bs(l)){if(AL(u)){var h=-f/u;h>=0&&h<=1&&(a[d++]=h)}}else{var p=u*u-4*l*f;if(bs(p)){var h=-u/(2*l);h>=0&&h<=1&&(a[d++]=h)}else if(p>0){var m=Ts(p),h=(-u+m)/(2*l),S=(-u-m)/(2*l);h>=0&&h<=1&&(a[d++]=h),S>=0&&S<=1&&(a[d++]=S)}}return d}function IL(t,e,n){var r=t+n-2*e;return r===0?.5:(t-e)/r}function z0(t,e,n,r,a){var l=(e-t)*r+t,u=(n-e)*r+e,f=(u-l)*r+l;a[0]=t,a[1]=l,a[2]=f,a[3]=f,a[4]=u,a[5]=n}function zL(t,e,n,r,a,l,u,f,d){var h,p=.005,m=1/0;Sl[0]=u,Sl[1]=f;for(var S=0;S<1;S+=.05){ro[0]=fi(t,n,a,S),ro[1]=fi(e,r,l,S);var _=qd(Sl,ro);_<m&&(h=S,m=_)}m=1/0;for(var x=0;x<32&&!(p<ML);x++){var E=h-p,b=h+p;ro[0]=fi(t,n,a,E),ro[1]=fi(e,r,l,E);var _=qd(ro,Sl);if(E>=0&&_<m)h=E,m=_;else{tv[0]=fi(t,n,a,b),tv[1]=fi(e,r,l,b);var D=qd(tv,Sl);b<=1&&D<m?(h=b,m=D):p*=.5}}return d&&(d[0]=fi(t,n,a,h),d[1]=fi(e,r,l,h)),Ts(m)}function ZH(t,e,n,r,a,l,u){for(var f=t,d=e,h=0,p=1/u,m=1;m<=u;m++){var S=m*p,_=fi(t,n,a,S),x=fi(e,r,l,S),E=_-f,b=x-d;h+=Math.sqrt(E*E+b*b),f=_,d=x}return h}var KH=/cubic-bezier\(([0-9,\.e ]+)\)/;function FL(t){var e=t&&KH.exec(t);if(e){var n=e[1].split(","),r=+yl(n[0]),a=+yl(n[1]),l=+yl(n[2]),u=+yl(n[3]);if(isNaN(r+a+l+u))return;var f=[];return function(d){return d<=0?0:d>=1?1:OL(0,r,l,1,d,f)&&Qr(0,a,u,1,f[0])}}}var JH=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||ta,this.ondestroy=e.ondestroy||ta,this.onrestart=e.onrestart||ta,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,n){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,a=e-this._startTime-this._pausedTime,l=a/r;l<0&&(l=0),l=Math.min(l,1);var u=this.easingFunc,f=u?u(l):l;if(this.onframe(f),l===1)if(this.loop){var d=a%r;this._startTime=e-d,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=_t(e)?e:DL[e]||FL(e)},t}();const e4=JH;var BL=function(){function t(e){this.value=e}return t}(),t4=function(){function t(){this._len=0}return t.prototype.insert=function(e){var n=new BL(e);return this.insertEntry(n),n},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var n=e.prev,r=e.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),n4=function(){function t(e){this._list=new t4,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,n){var r=this._list,a=this._map,l=null;if(a[e]==null){var u=r.len(),f=this._lastRemovedEntry;if(u>=this._maxSize&&u>0){var d=r.head;r.remove(d),delete a[d.key],l=d.value,this._lastRemovedEntry=d}f?f.value=n:f=new BL(n),f.key=e,r.insertEntry(f),a[e]=f}return l},t.prototype.get=function(e){var n=this._map[e],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const Yp=n4;var UL={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 Wp(t){return t=Math.round(t),t<0?0:t>255?255:t}function VL(t){return t<0?0:t>1?1:t}function dx(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Wp(parseFloat(e)/100*255):Wp(parseInt(e,10))}function Xp(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?VL(parseFloat(e)/100):VL(parseFloat(e))}function vx(t,e,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?t+(e-t)*n*6:n*2<1?e:n*3<2?t+(e-t)*(2/3-n)*6:t}function io(t,e,n,r,a){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,t}function hx(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var HL=new Yp(20),F0=null;function nv(t,e){F0&&hx(F0,e),F0=HL.put(t,F0||e.slice())}function rv(t,e){if(t){e=e||[];var n=HL.get(t);if(n)return hx(e,n);t=t+"";var r=t.replace(/ /g,"").toLowerCase();if(r in UL)return hx(e,UL[r]),nv(t,e),e;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var l=parseInt(r.slice(1,4),16);if(!(l>=0&&l<=4095)){io(e,0,0,0,1);return}return io(e,(l&3840)>>4|(l&3840)>>8,l&240|(l&240)>>4,l&15|(l&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),nv(t,e),e}else if(a===7||a===9){var l=parseInt(r.slice(1,7),16);if(!(l>=0&&l<=16777215)){io(e,0,0,0,1);return}return io(e,(l&16711680)>>16,(l&65280)>>8,l&255,a===9?parseInt(r.slice(7),16)/255:1),nv(t,e),e}return}var u=r.indexOf("("),f=r.indexOf(")");if(u!==-1&&f+1===a){var d=r.substr(0,u),h=r.substr(u+1,f-(u+1)).split(","),p=1;switch(d){case"rgba":if(h.length!==4)return h.length===3?io(e,+h[0],+h[1],+h[2],1):io(e,0,0,0,1);p=Xp(h.pop());case"rgb":if(h.length>=3)return io(e,dx(h[0]),dx(h[1]),dx(h[2]),h.length===3?p:Xp(h[3])),nv(t,e),e;io(e,0,0,0,1);return;case"hsla":if(h.length!==4){io(e,0,0,0,1);return}return h[3]=Xp(h[3]),GL(h,e),nv(t,e),e;case"hsl":if(h.length!==3){io(e,0,0,0,1);return}return GL(h,e),nv(t,e),e;default:return}}io(e,0,0,0,1)}}function GL(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=Xp(t[1]),a=Xp(t[2]),l=a<=.5?a*(r+1):a+r-a*r,u=a*2-l;return e=e||[],io(e,Wp(vx(u,l,n+1/3)*255),Wp(vx(u,l,n)*255),Wp(vx(u,l,n-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function $L(t,e){var n=rv(t);if(n){for(var r=0;r<3;r++)e<0?n[r]=n[r]*(1-e)|0:n[r]=(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return jL(n,n.length===4?"rgba":"rgb")}}function jL(t,e){if(!(!t||!t.length)){var n=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(n+=","+t[3]),e+"("+n+")"}}function B0(t,e){var n=rv(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function r4(t){return t.type==="linear"}function i4(t){return t.type==="radial"}(function(){return Tt.hasGlobalWindow&&_t(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return process.env.NODE_ENV!=="production"&&jf("Base64 isn't natively supported in the current environment."),null}})();var px=Array.prototype.slice;function _u(t,e,n){return(e-t)*n+t}function gx(t,e,n,r){for(var a=e.length,l=0;l<a;l++)t[l]=_u(e[l],n[l],r);return t}function a4(t,e,n,r){for(var a=e.length,l=a&&e[0].length,u=0;u<a;u++){t[u]||(t[u]=[]);for(var f=0;f<l;f++)t[u][f]=_u(e[u][f],n[u][f],r)}return t}function U0(t,e,n,r){for(var a=e.length,l=0;l<a;l++)t[l]=e[l]+n[l]*r;return t}function YL(t,e,n,r){for(var a=e.length,l=a&&e[0].length,u=0;u<a;u++){t[u]||(t[u]=[]);for(var f=0;f<l;f++)t[u][f]=e[u][f]+n[u][f]*r}return t}function o4(t,e){for(var n=t.length,r=e.length,a=n>r?e:t,l=Math.min(n,r),u=a[l-1]||{color:[0,0,0,0],offset:0},f=l;f<Math.max(n,r);f++)a.push({offset:u.offset,color:u.color.slice()})}function l4(t,e,n){var r=t,a=e;if(!(!r.push||!a.push)){var l=r.length,u=a.length;if(l!==u){var f=l>u;if(f)r.length=u;else for(var d=l;d<u;d++)r.push(n===1?a[d]:px.call(a[d]))}for(var h=r[0]&&r[0].length,d=0;d<r.length;d++)if(n===1)isNaN(r[d])&&(r[d]=a[d]);else for(var p=0;p<h;p++)isNaN(r[d][p])&&(r[d][p]=a[d][p])}}function V0(t){if(Ai(t)){var e=t.length;if(Ai(t[0])){for(var n=[],r=0;r<e;r++)n.push(px.call(t[r]));return n}return px.call(t)}return t}function H0(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function u4(t){return Ai(t&&t[0])?2:1}var G0=0,$0=1,WL=2,qp=3,mx=4,yx=5,XL=6;function qL(t){return t===mx||t===yx}function j0(t){return t===$0||t===WL}var Qp=[0,0,0,0],s4=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,n,r){this._needsSort=!0;var a=this.keyframes,l=a.length,u=!1,f=XL,d=n;if(Ai(n)){var h=u4(n);f=h,(h===1&&!Nn(n[0])||h===2&&!Nn(n[0][0]))&&(u=!0)}else if(Nn(n)&&!Fp(n))f=G0;else if(et(n))if(!isNaN(+n))f=G0;else{var p=rv(n);p&&(d=p,f=qp)}else if(b0(n)){var m=Re({},d);m.colorStops=ot(n.colorStops,function(_){return{offset:_.offset,color:rv(_.color)}}),r4(n)?f=mx:i4(n)&&(f=yx),d=m}l===0?this.valType=f:(f!==this.valType||f===XL)&&(u=!0),this.discrete=this.discrete||u;var S={time:e,value:d,rawValue:n,percent:0};return r&&(S.easing=r,S.easingFunc=_t(r)?r:DL[r]||FL(r)),a.push(S),S},t.prototype.prepare=function(e,n){var r=this.keyframes;this._needsSort&&r.sort(function(E,b){return E.time-b.time});for(var a=this.valType,l=r.length,u=r[l-1],f=this.discrete,d=j0(a),h=qL(a),p=0;p<l;p++){var m=r[p],S=m.value,_=u.value;m.percent=m.time/e,f||(d&&p!==l-1?l4(S,_,a):h&&o4(S.colorStops,_.colorStops))}if(!f&&a!==yx&&n&&this.needsAnimate()&&n.needsAnimate()&&a===n.valType&&!n._finished){this._additiveTrack=n;for(var x=r[0].value,p=0;p<l;p++)a===G0?r[p].additiveValue=r[p].value-x:a===qp?r[p].additiveValue=U0([],r[p].value,x,-1):j0(a)&&(r[p].additiveValue=a===$0?U0([],r[p].value,x,-1):YL([],r[p].value,x,-1))}},t.prototype.step=function(e,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,a=r?"additiveValue":"value",l=this.valType,u=this.keyframes,f=u.length,d=this.propName,h=l===qp,p,m=this._lastFr,S=Math.min,_,x;if(f===1)_=x=u[0];else{if(n<0)p=0;else if(n<this._lastFrP){var E=S(m+1,f-1);for(p=E;p>=0&&!(u[p].percent<=n);p--);p=S(p,f-2)}else{for(p=m;p<f&&!(u[p].percent>n);p++);p=S(p-1,f-2)}x=u[p+1],_=u[p]}if(_&&x){this._lastFr=p,this._lastFrP=n;var b=x.percent-_.percent,D=b===0?1:S((n-_.percent)/b,1);x.easingFunc&&(D=x.easingFunc(D));var A=r?this._additiveValue:h?Qp:e[d];if((j0(l)||h)&&!A&&(A=this._additiveValue=[]),this.discrete)e[d]=D<1?_.rawValue:x.rawValue;else if(j0(l))l===$0?gx(A,_[a],x[a],D):a4(A,_[a],x[a],D);else if(qL(l)){var O=_[a],P=x[a],I=l===mx;e[d]={type:I?"linear":"radial",x:_u(O.x,P.x,D),y:_u(O.y,P.y,D),colorStops:ot(O.colorStops,function(U,H){var j=P.colorStops[H];return{offset:_u(U.offset,j.offset,D),color:H0(gx([],U.color,j.color,D))}}),global:P.global},I?(e[d].x2=_u(O.x2,P.x2,D),e[d].y2=_u(O.y2,P.y2,D)):e[d].r=_u(O.r,P.r,D)}else if(h)gx(A,_[a],x[a],D),r||(e[d]=H0(A));else{var F=_u(_[a],x[a],D);r?this._additiveValue=F:e[d]=F}r&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var n=this.valType,r=this.propName,a=this._additiveValue;n===G0?e[r]=e[r]+a:n===qp?(rv(e[r],Qp),U0(Qp,Qp,a,1),e[r]=H0(Qp)):n===$0?U0(e[r],e[r],a,1):n===WL&&YL(e[r],e[r],a,1)},t}(),f4=function(){function t(e,n,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=n,n&&a){jf("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,n,r){return this.whenWithKeys(e,n,kn(n),r)},t.prototype.whenWithKeys=function(e,n,r,a){for(var l=this._tracks,u=0;u<r.length;u++){var f=r[u],d=l[f];if(!d){d=l[f]=new s4(f);var h=void 0,p=this._getAdditiveTrack(f);if(p){var m=p.keyframes,S=m[m.length-1];h=S&&S.value,p.valType===qp&&h&&(h=H0(h))}else h=this._target[f];if(h==null)continue;e>0&&d.addKeyframe(0,V0(h),a),this._trackKeys.push(f)}d.addKeyframe(e,V0(n[f]),a)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var n=e.length,r=0;r<n;r++)e[r].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,n=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,n)for(var r=0;r<n.length;r++)n[r].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,n=this._trackKeys,r=0;r<n.length;r++)e[n[r]].setFinished()},t.prototype._getAdditiveTrack=function(e){var n,r=this._additiveAnimators;if(r)for(var a=0;a<r.length;a++){var l=r[a].getTrack(e);l&&(n=l)}return n},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var n=this,r=[],a=this._maxTime||0,l=0;l<this._trackKeys.length;l++){var u=this._trackKeys[l],f=this._tracks[u],d=this._getAdditiveTrack(u),h=f.keyframes,p=h.length;if(f.prepare(a,d),f.needsAnimate())if(!this._allowDiscrete&&f.discrete){var m=h[p-1];m&&(n._target[f.propName]=m.rawValue),f.setFinished()}else r.push(f)}if(r.length||this._force){var S=new e4({life:a,loop:this._loop,delay:this._delay||0,onframe:function(_){n._started=2;var x=n._additiveAnimators;if(x){for(var E=!1,b=0;b<x.length;b++)if(x[b]._clip){E=!0;break}E||(n._additiveAnimators=null)}for(var b=0;b<r.length;b++)r[b].step(n._target,_);var D=n._onframeCbs;if(D)for(var b=0;b<D.length;b++)D[b](n._target,_)},ondestroy:function(){n._doneCallback()}});this._clip=S,this.animation&&this.animation.addClip(S),e&&S.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var n=this._clip;e&&n.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return ot(this._trackKeys,function(n){return e._tracks[n]})},t.prototype.stopTracks=function(e,n){if(!e.length||!this._clip)return!0;for(var r=this._tracks,a=this._trackKeys,l=0;l<e.length;l++){var u=r[e[l]];u&&!u.isFinished()&&(n?u.step(this._target,1):this._started===1&&u.step(this._target,0),u.setFinished())}for(var f=!0,l=0;l<a.length;l++)if(!r[a[l]].isFinished()){f=!1;break}return f&&this._abortedCallback(),f},t.prototype.saveTo=function(e,n,r){if(e){n=n||this._trackKeys;for(var a=0;a<n.length;a++){var l=n[a],u=this._tracks[l];if(!(!u||u.isFinished())){var f=u.keyframes,d=f[r?0:f.length-1];d&&(e[l]=V0(d.rawValue))}}}},t.prototype.__changeFinalValue=function(e,n){n=n||kn(e);for(var r=0;r<n.length;r++){var a=n[r],l=this._tracks[a];if(l){var u=l.keyframes;if(u.length>1){var f=u.pop();l.addKeyframe(f.time,e[a]),l.prepare(this._maxTime,l.getAdditiveTrack())}}}},t}();const _x=f4;function iv(){return new Date().getTime()}var c4=function(t){mn(e,t);function e(n){var r=t.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return e.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},e.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(n){if(n.animation){var r=n.prev,a=n.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},e.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},e.prototype.update=function(n){for(var r=iv()-this._pausedTime,a=r-this._time,l=this._head;l;){var u=l.next,f=l.step(r,a);f&&(l.ondestroy(),this.removeClip(l)),l=u}this._time=r,n||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(cx(r),!n._paused&&n.update())}cx(r)},e.prototype.start=function(){this._running||(this._time=iv(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=iv(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=iv()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(n,r){r=r||{},this.start();var a=new _x(n,r.loop);return this.addAnimator(a),a},e}(_l);const d4=c4;var v4=300,Sx=Tt.domSupported,Cx=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=ot(t,function(a){var l=a.replace("mouse","pointer");return n.hasOwnProperty(l)?l:a});return{mouse:t,touch:e,pointer:r}}(),QL={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ZL=!1;function xx(t){var e=t.pointerType;return e==="pen"||e==="touch"}function h4(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Tx(t){t&&(t.zrByTouch=!0)}function p4(t,e){return no(t.dom,new g4(t,e),!0)}function KL(t,e){for(var n=e,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var g4=function(){function t(e,n){this.stopPropagation=ta,this.stopImmediatePropagation=ta,this.preventDefault=ta,this.type=n.type,this.target=this.currentTarget=e.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return t}(),Lo={mousedown:function(t){t=no(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=no(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=no(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=no(this.dom,t);var e=t.toElement||t.relatedTarget;KL(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){ZL=!0,t=no(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){ZL||(t=no(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=no(this.dom,t),Tx(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Lo.mousemove.call(this,t),Lo.mousedown.call(this,t)},touchmove:function(t){t=no(this.dom,t),Tx(t),this.handler.processGesture(t,"change"),Lo.mousemove.call(this,t)},touchend:function(t){t=no(this.dom,t),Tx(t),this.handler.processGesture(t,"end"),Lo.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<v4&&Lo.click.call(this,t)},pointerdown:function(t){Lo.mousedown.call(this,t)},pointermove:function(t){xx(t)||Lo.mousemove.call(this,t)},pointerup:function(t){Lo.mouseup.call(this,t)},pointerout:function(t){xx(t)||Lo.mouseout.call(this,t)}};W(["click","dblclick","contextmenu"],function(t){Lo[t]=function(e){e=no(this.dom,e),this.trigger(t,e)}});var bx={pointermove:function(t){xx(t)||bx.mousemove.call(this,t)},pointerup:function(t){bx.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 m4(t,e){var n=e.domHandlers;Tt.pointerEventsSupported?W(Cx.pointer,function(r){Y0(e,r,function(a){n[r].call(t,a)})}):(Tt.touchEventsSupported&&W(Cx.touch,function(r){Y0(e,r,function(a){n[r].call(t,a),h4(e)})}),W(Cx.mouse,function(r){Y0(e,r,function(a){a=nx(a),e.touching||n[r].call(t,a)})}))}function y4(t,e){Tt.pointerEventsSupported?W(QL.pointer,n):Tt.touchEventsSupported||W(QL.mouse,n);function n(r){function a(l){l=nx(l),KL(t,l.target)||(l=p4(t,l),e.domHandlers[r].call(t,l))}Y0(e,r,a,{capture:!0})}}function Y0(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,AH(t.domTarget,e,n,r)}function Ex(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&LH(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var JL=function(){function t(e,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=n}return t}(),_4=function(t){mn(e,t);function e(n,r){var a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=n,a.painterRoot=r,a._localHandlerScope=new JL(n,Lo),Sx&&(a._globalHandlerScope=new JL(document,bx)),m4(a,a._localHandlerScope),a}return e.prototype.dispose=function(){Ex(this._localHandlerScope),Sx&&Ex(this._globalHandlerScope)},e.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},e.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,Sx&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?y4(this,r):Ex(r)}},e}(_l);const S4=_4;var eO=1;Tt.hasGlobalWindow&&(eO=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var W0=eO,Dx=.4,Mx="#333",Rx="#ccc",C4="#eee",tO=ix,nO=5e-5;function Zf(t){return t>nO||t<-nO}var Kf=[],av=[],Ax=Up(),Lx=Math.abs,w4=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Zf(this.rotation)||Zf(this.x)||Zf(this.y)||Zf(this.scaleX-1)||Zf(this.scaleY-1)||Zf(this.skewX)||Zf(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||e)){r&&tO(r);return}r=r||Up(),n?this.getLocalTransform(r):tO(r),e&&(n?Jd(r,e,r):NH(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},t.prototype._resolveGlobalScaleRatio=function(e){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(Kf);var r=Kf[0]<0?-1:1,a=Kf[1]<0?-1:1,l=((Kf[0]-r)*n+r)/Kf[0]||0,u=((Kf[1]-a)*n+a)/Kf[1]||0;e[0]*=l,e[1]*=l,e[2]*=u,e[3]*=u}this.invTransform=this.invTransform||Up(),R0(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,n=[];e;)n.push(e),e=e.parent;for(;e=n.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var n=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),l=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(l),n=Math.sqrt(n),this.skewX=l,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,n=this.transform;e&&e.transform&&(Jd(av,e.invTransform,n),n=av);var r=this.originX,a=this.originY;(r||a)&&(Ax[4]=r,Ax[5]=a,Jd(av,n,Ax),av[4]-=r,av[5]-=a,n=av),this.setLocalTransform(n)}},t.prototype.getGlobalScale=function(e){var n=this.transform;return e=e||[],n?(e[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),e[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(e[0]=-e[0]),n[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,n){var r=[e,n],a=this.invTransform;return a&&eo(r,r,a),r},t.prototype.transformCoordToGlobal=function(e,n){var r=[e,n],a=this.transform;return a&&eo(r,r,a),r},t.prototype.getLineScale=function(){var e=this.transform;return e&&Lx(e[0]-1)>1e-10&&Lx(e[3]-1)>1e-10?Math.sqrt(Lx(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){x4(this,e)},t.getLocalTransform=function(e,n){n=n||[];var r=e.originX||0,a=e.originY||0,l=e.scaleX,u=e.scaleY,f=e.anchorX,d=e.anchorY,h=e.rotation||0,p=e.x,m=e.y,S=e.skewX?Math.tan(e.skewX):0,_=e.skewY?Math.tan(-e.skewY):0;if(r||a||f||d){var x=r+f,E=a+d;n[4]=-x*l-S*E*u,n[5]=-E*u-_*x*l}else n[4]=n[5]=0;return n[0]=l,n[3]=u,n[1]=_*l,n[2]=S*u,h&&ox(n,n,h),n[4]+=r+p,n[5]+=a+m,n},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Zp=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function x4(t,e){for(var n=0;n<Zp.length;n++){var r=Zp[n];t[r]=e[r]}}const Kp=w4;var rO={};function Oa(t,e){e=e||Gf;var n=rO[e];n||(n=rO[e]=new Yp(500));var r=n.get(t);return r==null&&(r=$f.measureText(t,e).width,n.put(t,r)),r}function iO(t,e,n,r){var a=Oa(t,e),l=kx(e),u=Jp(0,a,n),f=ov(0,l,r),d=new Wt(u,f,a,l);return d}function Ox(t,e,n,r){var a=((t||"")+"").split(`
192
- `),l=a.length;if(l===1)return iO(a[0],e,n,r);for(var u=new Wt(0,0,0,0),f=0;f<a.length;f++){var d=iO(a[f],e,n,r);f===0?u.copy(d):u.union(d)}return u}function Jp(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function ov(t,e,n){return n==="middle"?t-=e/2:n==="bottom"&&(t-=e),t}function kx(t){return Oa("国",t)}function Jf(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function X0(t,e,n){var r=e.position||"inside",a=e.distance!=null?e.distance:5,l=n.height,u=n.width,f=l/2,d=n.x,h=n.y,p="left",m="top";if(r instanceof Array)d+=Jf(r[0],n.width),h+=Jf(r[1],n.height),p=null,m=null;else switch(r){case"left":d-=a,h+=f,p="right",m="middle";break;case"right":d+=a+u,h+=f,m="middle";break;case"top":d+=u/2,h-=a,p="center",m="bottom";break;case"bottom":d+=u/2,h+=l+a,p="center";break;case"inside":d+=u/2,h+=f,p="center",m="middle";break;case"insideLeft":d+=a,h+=f,m="middle";break;case"insideRight":d+=u-a,h+=f,p="right",m="middle";break;case"insideTop":d+=u/2,h+=a,p="center";break;case"insideBottom":d+=u/2,h+=l-a,p="center",m="bottom";break;case"insideTopLeft":d+=a,h+=a;break;case"insideTopRight":d+=u-a,h+=a,p="right";break;case"insideBottomLeft":d+=a,h+=l-a,m="bottom";break;case"insideBottomRight":d+=u-a,h+=l-a,p="right",m="bottom";break}return t=t||{},t.x=d,t.y=h,t.align=p,t.verticalAlign=m,t}var Nx="__zr_normal__",Px=Zp.concat(["ignore"]),T4=Yd(Zp,function(t,e){return t[e]=!0,t},{ignore:!1}),lv={},b4=new Wt(0,0,0,0),Ix=function(){function t(e){this.id=rL(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=n,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var n=this._textContent;if(n&&(!n.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,l=n.innerTransformable,u=void 0,f=void 0,d=!1;l.parent=a?this:null;var h=!1;if(l.copyTransform(n),r.position!=null){var p=b4;r.layoutRect?p.copy(r.layoutRect):p.copy(this.getBoundingRect()),a||p.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(lv,r,p):X0(lv,r,p),l.x=lv.x,l.y=lv.y,u=lv.align,f=lv.verticalAlign;var m=r.origin;if(m&&r.rotation!=null){var S=void 0,_=void 0;m==="center"?(S=p.width*.5,_=p.height*.5):(S=Jf(m[0],p.width),_=Jf(m[1],p.height)),h=!0,l.originX=-l.x+S+(a?0:p.x),l.originY=-l.y+_+(a?0:p.y)}}r.rotation!=null&&(l.rotation=r.rotation);var x=r.offset;x&&(l.x+=x[0],l.y+=x[1],h||(l.originX=-x[0],l.originY=-x[1]));var E=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,b=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),D=void 0,A=void 0,O=void 0;E&&this.canBeInsideText()?(D=r.insideFill,A=r.insideStroke,(D==null||D==="auto")&&(D=this.getInsideTextFill()),(A==null||A==="auto")&&(A=this.getInsideTextStroke(D),O=!0)):(D=r.outsideFill,A=r.outsideStroke,(D==null||D==="auto")&&(D=this.getOutsideFill()),(A==null||A==="auto")&&(A=this.getOutsideStroke(D),O=!0)),D=D||"#000",(D!==b.fill||A!==b.stroke||O!==b.autoStroke||u!==b.align||f!==b.verticalAlign)&&(d=!0,b.fill=D,b.stroke=A,b.autoStroke=O,b.align=u,b.verticalAlign=f,n.setDefaultTextStyle(b)),n.__dirty|=La,d&&n.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Rx:Mx},t.prototype.getOutsideStroke=function(e){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&rv(n);r||(r=[255,255,255,1]);for(var a=r[3],l=this.__zr.isDarkMode(),u=0;u<3;u++)r[u]=r[u]*a+(l?0:255)*(1-a);return r[3]=1,jL(r,"rgba")},t.prototype.traverse=function(e,n){},t.prototype.attrKV=function(e,n){e==="textConfig"?this.setTextConfig(n):e==="textContent"?this.setTextContent(n):e==="clipPath"?this.setClipPath(n):e==="extra"?(this.extra=this.extra||{},Re(this.extra,n)):this[e]=n},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,n){if(typeof e=="string")this.attrKV(e,n);else if(it(e))for(var r=e,a=kn(r),l=0;l<a.length;l++){var u=a[l];this.attrKV(u,e[u])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var n=this._normalState,r=0;r<this.animators.length;r++){var a=this.animators[r],l=a.__fromStateTransition;if(!(a.getLoop()||l&&l!==Nx)){var u=a.targetName,f=u?n[u]:n;a.saveTo(f)}}},t.prototype._innerSaveToNormal=function(e){var n=this._normalState;n||(n=this._normalState={}),e.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(e,n,Px)},t.prototype._savePrimaryToNormal=function(e,n,r){for(var a=0;a<r.length;a++){var l=r[a];e[l]!=null&&!(l in n)&&(n[l]=this[l])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var n=this.states;return n[e]||(n[e]={}),n[e]},t.prototype.clearStates=function(e){this.useState(Nx,!1,e)},t.prototype.useState=function(e,n,r,a){var l=e===Nx,u=this.hasState();if(!(!u&&l)){var f=this.currentStates,d=this.stateTransition;if(!(dn(f,e)>=0&&(n||f.length===1))){var h;if(this.stateProxy&&!l&&(h=this.stateProxy(e)),h||(h=this.states&&this.states[e]),!h&&!l){jf("State "+e+" not exists.");return}l||this.saveCurrentToNormalState(h);var p=!!(h&&h.hoverLayer||a);p&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,h,this._normalState,n,!r&&!this.__inHover&&d&&d.duration>0,d);var m=this._textContent,S=this._textGuide;return m&&m.useState(e,n,r,p),S&&S.useState(e,n,r,p),l?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~La),h}}},t.prototype.useStates=function(e,n,r){if(!e.length)this.clearStates();else{var a=[],l=this.currentStates,u=e.length,f=u===l.length;if(f){for(var d=0;d<u;d++)if(e[d]!==l[d]){f=!1;break}}if(f)return;for(var d=0;d<u;d++){var h=e[d],p=void 0;this.stateProxy&&(p=this.stateProxy(h,e)),p||(p=this.states[h]),p&&a.push(p)}var m=a[u-1],S=!!(m&&m.hoverLayer||r);S&&this._toggleHoverLayerFlag(!0);var _=this._mergeStates(a),x=this.stateTransition;this.saveCurrentToNormalState(_),this._applyStateObj(e.join(","),_,this._normalState,!1,!n&&!this.__inHover&&x&&x.duration>0,x);var E=this._textContent,b=this._textGuide;E&&E.useStates(e,n,S),b&&b.useStates(e,n,S),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!S&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~La)}},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var n=this.animators[e];n.targetName&&n.changeTarget(this[n.targetName])}},t.prototype.removeState=function(e){var n=dn(this.currentStates,e);if(n>=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},t.prototype.replaceState=function(e,n,r){var a=this.currentStates.slice(),l=dn(a,e),u=dn(a,n)>=0;l>=0?u?a.splice(l,1):a[l]=n:r&&!u&&a.push(n),this.useStates(a)},t.prototype.toggleState=function(e,n){n?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var n={},r,a=0;a<e.length;a++){var l=e[a];Re(n,l),l.textConfig&&(r=r||{},Re(r,l.textConfig))}return r&&(n.textConfig=r),n},t.prototype._applyStateObj=function(e,n,r,a,l,u){var f=!(n&&a);n&&n.textConfig?(this.textConfig=Re({},a?this.textConfig:r.textConfig),Re(this.textConfig,n.textConfig)):f&&r.textConfig&&(this.textConfig=r.textConfig);for(var d={},h=!1,p=0;p<Px.length;p++){var m=Px[p],S=l&&T4[m];n&&n[m]!=null?S?(h=!0,d[m]=n[m]):this[m]=n[m]:f&&r[m]!=null&&(S?(h=!0,d[m]=r[m]):this[m]=r[m])}if(!l)for(var p=0;p<this.animators.length;p++){var _=this.animators[p],x=_.targetName;_.getLoop()||_.__changeFinalValue(x?(n||r)[x]:n||r)}h&&this._transitionState(e,d,u)},t.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(e===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var n=this.__zr;n&&e.addSelfToZr(n),e.__zr=n,e.__hostTarget=this},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var n=this._textContent;if(n!==e){if(n&&n!==e&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new Kp,this._attachComponent(e),this._textContent=e,this.markRedraw()}},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Re(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=La;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var n=this._textContent,r=this._textGuide;n&&(n.__inHover=e),r&&(r.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var n=this.animators;if(n)for(var r=0;r<n.length;r++)e.animation.addAnimator(n[r]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var n=this.animators;if(n)for(var r=0;r<n.length;r++)e.animation.removeAnimator(n[r]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,n,r){var a=e?this[e]:this;if(process.env.NODE_ENV!=="production"&&!a){jf('Property "'+e+'" is not existed in element '+this.id);return}var l=new _x(a,n,r);return e&&(l.targetName=e),this.addAnimator(l,e),l},t.prototype.addAnimator=function(e,n){var r=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(n)}).done(function(){var l=a.animators,u=dn(l,e);u>=0&&l.splice(u,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,n){for(var r=this.animators,a=r.length,l=[],u=0;u<a;u++){var f=r[u];!e||e===f.scope?f.stop(n):l.push(f)}return this.animators=l,this},t.prototype.animateTo=function(e,n,r){zx(this,e,n,r)},t.prototype.animateFrom=function(e,n,r){zx(this,e,n,r,!0)},t.prototype._transitionState=function(e,n,r,a){for(var l=zx(this,n,r,a),u=0;u<l.length;u++)l[u].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=La;var n={};function r(l,u,f){n[l+u+f]||(console.warn("DEPRECATED: '"+l+"' has been deprecated. use '"+u+"', '"+f+"' instead"),n[l+u+f]=!0)}function a(l,u,f,d){Object.defineProperty(e,l,{get:function(){if(process.env.NODE_ENV!=="production"&&r(l,f,d),!this[u]){var p=this[u]=[];h(this,p)}return this[u]},set:function(p){process.env.NODE_ENV!=="production"&&r(l,f,d),this[f]=p[0],this[d]=p[1],this[u]=p,h(this,p)}});function h(p,m){Object.defineProperty(m,0,{get:function(){return p[f]},set:function(S){p[f]=S}}),Object.defineProperty(m,1,{get:function(){return p[d]},set:function(S){p[d]=S}})}}Object.defineProperty&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))}(),t}();ml(Ix,_l),ml(Ix,Kp);function zx(t,e,n,r,a){n=n||{};var l=[];aO(t,"",t,e,n,r,l,a);var u=l.length,f=!1,d=n.done,h=n.aborted,p=function(){f=!0,u--,u<=0&&(f?d&&d():h&&h())},m=function(){u--,u<=0&&(f?d&&d():h&&h())};u||d&&d(),l.length>0&&n.during&&l[0].during(function(x,E){n.during(E)});for(var S=0;S<l.length;S++){var _=l[S];p&&_.done(p),m&&_.aborted(m),n.force&&_.duration(n.duration),_.start(n.easing)}return l}function Fx(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function E4(t){return Ai(t[0])}function D4(t,e,n){if(Ai(e[n]))if(Ai(t[n])||(t[n]=[]),ea(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),Fx(t[n],e[n],r))}else{var a=e[n],l=t[n],u=a.length;if(E4(a))for(var f=a[0].length,d=0;d<u;d++)l[d]?Fx(l[d],a[d],f):l[d]=Array.prototype.slice.call(a[d]);else Fx(l,a,u);l.length=a.length}else t[n]=e[n]}function M4(t,e){return t===e||Ai(t)&&Ai(e)&&R4(t,e)}function R4(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function aO(t,e,n,r,a,l,u,f){for(var d=kn(r),h=a.duration,p=a.delay,m=a.additive,S=a.setToFinal,_=!it(l),x=t.animators,E=[],b=0;b<d.length;b++){var D=d[b],A=r[D];if(A!=null&&n[D]!=null&&(_||l[D]))if(it(A)&&!Ai(A)&&!b0(A)){if(e){f||(n[D]=A,t.updateDuringAnimation(e));continue}aO(t,D,n[D],A,a,l&&l[D],u,f)}else E.push(D);else f||(n[D]=A,t.updateDuringAnimation(e),E.push(D))}var O=E.length;if(!m&&O)for(var P=0;P<x.length;P++){var I=x[P];if(I.targetName===e){var F=I.stopTracks(E);if(F){var U=dn(x,I);x.splice(U,1)}}}if(a.force||(E=br(E,function(G){return!M4(r[G],n[G])}),O=E.length),O>0||a.force&&!u.length){var H=void 0,j=void 0,X=void 0;if(f){j={},S&&(H={});for(var P=0;P<O;P++){var D=E[P];j[D]=n[D],S?H[D]=r[D]:n[D]=r[D]}}else if(S){X={};for(var P=0;P<O;P++){var D=E[P];X[D]=V0(n[D]),D4(n,r,D)}}var I=new _x(n,!1,!1,m?br(x,function(ee){return ee.targetName===e}):null);I.targetName=e,a.scope&&(I.scope=a.scope),S&&H&&I.whenWithKeys(0,H,E),X&&I.whenWithKeys(0,X,E),I.whenWithKeys(h??500,f?j:r,E).delay(p||0),t.addAnimator(I,e),u.push(I)}}const oO=Ix;var lO=function(t){mn(e,t);function e(n){var r=t.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(n){return this._children[n]},e.prototype.childOfName=function(n){for(var r=this._children,a=0;a<r.length;a++)if(r[a].name===n)return r[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(n){if(n&&(n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),process.env.NODE_ENV!=="production"&&n.__hostTarget))throw"This elemenet has been used as an attachment";return this},e.prototype.addBefore=function(n,r){if(n&&n!==this&&n.parent!==this&&r&&r.parent===this){var a=this._children,l=a.indexOf(r);l>=0&&(a.splice(l,0,n),this._doAdd(n))}return this},e.prototype.replace=function(n,r){var a=dn(this._children,n);return a>=0&&this.replaceAt(r,a),this},e.prototype.replaceAt=function(n,r){var a=this._children,l=a[r];if(n&&n!==this&&n.parent!==this&&n!==l){a[r]=n,l.parent=null;var u=this.__zr;u&&l.removeSelfFromZr(u),this._doAdd(n)}return this},e.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(n){var r=this.__zr,a=this._children,l=dn(a,n);return l<0?this:(a.splice(l,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,a=0;a<n.length;a++){var l=n[a];r&&l.removeSelfFromZr(r),l.parent=null}return n.length=0,this},e.prototype.eachChild=function(n,r){for(var a=this._children,l=0;l<a.length;l++){var u=a[l];n.call(r,u,l)}return this},e.prototype.traverse=function(n,r){for(var a=0;a<this._children.length;a++){var l=this._children[a],u=n.call(r,l);l.isGroup&&!u&&l.traverse(n,r)}return this},e.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.addSelfToZr(n)}},e.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.removeSelfFromZr(n)}},e.prototype.getBoundingRect=function(n){for(var r=new Wt(0,0,0,0),a=n||this._children,l=[],u=null,f=0;f<a.length;f++){var d=a[f];if(!(d.ignore||d.invisible)){var h=d.getBoundingRect(),p=d.getLocalTransform(l);p?(Wt.applyTransform(r,h,p),u=u||r.clone(),u.union(r)):(u=u||h.clone(),u.union(h))}}return u||r},e}(oO);lO.prototype.type="group";const Cl=lO;var eg={},uO={};function A4(t){delete uO[t]}function L4(t){if(!t)return!1;if(typeof t=="string")return B0(t,1)<Dx;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,a=0;a<r;a++)n+=B0(e[a].color,1);return n/=r,n<Dx}return!1}var O4=function(){function t(e,n,r){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=n,this.id=e;var l=new XH,u=r.renderer||"canvas";if(eg[u]||(u=kn(eg)[0]),process.env.NODE_ENV!=="production"&&!eg[u])throw new Error("Renderer '"+u+"' is not imported. Please import it first.");r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var f=new eg[u](n,l,r,e),d=r.ssr||f.ssrOnly;this.storage=l,this.painter=f;var h=!Tt.node&&!Tt.worker&&!d?new S4(f.getViewportRoot(),f.root):null,p=r.useCoarsePointer,m=p==null||p==="auto"?Tt.touchEventsSupported:!!p,S=44,_;m&&(_=kt(r.pointerSize,S)),this.handler=new GH(l,f,h,f.root,_),this.animation=new d4({stage:{update:d?null:function(){return a._flush(!0)}}}),d||this.animation.start()}return t.prototype.add=function(e){e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,n){this.painter.configLayer&&this.painter.configLayer(e,n),this.refresh()},t.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=L4(e)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(e){var n,r=iv();this._needsRefresh&&(n=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var a=iv();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},t.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,n){return this.handler.findHover(e,n)},t.prototype.on=function(e,n,r){return this.handler.on(e,n,r),this},t.prototype.off=function(e,n){this.handler.off(e,n)},t.prototype.trigger=function(e,n){this.handler.trigger(e,n)},t.prototype.clear=function(){for(var e=this.storage.getRoots(),n=0;n<e.length;n++)e[n]instanceof Cl&&e[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,A4(this.id)},t}();function sO(t,e){var n=new O4(rL(),t,e);return uO[n.id]=n,n}function k4(t,e){eg[t]=e}var fO=1e-4,cO=20;function N4(t){return t.replace(/^\s+|\s+$/g,"")}function dO(t,e,n,r){var a=e[0],l=e[1],u=n[0],f=n[1],d=l-a,h=f-u;if(d===0)return h===0?u:(u+f)/2;if(r)if(d>0){if(t<=a)return u;if(t>=l)return f}else{if(t>=a)return u;if(t<=l)return f}else{if(t===a)return u;if(t===l)return f}return(t-a)/d*h+u}function Zr(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return et(t)?N4(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function vr(t,e,n){return e==null&&(e=10),e=Math.min(Math.max(0,e),cO),t=(+t).toFixed(e),n?t:+t}function Su(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 Bx(t)}function Bx(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,a=n>0?n:e.length,l=e.indexOf("."),u=l<0?0:a-1-l;return Math.max(0,u-r)}function P4(t,e){var n=Math.log,r=Math.LN10,a=Math.floor(n(t[1]-t[0])/r),l=Math.round(n(Math.abs(e[1]-e[0]))/r),u=Math.min(Math.max(-a+l,0),20);return isFinite(u)?u:20}function I4(t,e){var n=Math.max(Su(t),Su(e)),r=t+e;return n>cO?r:vr(r,n)}function vO(t){var e=Math.PI*2;return(t%e+e)%e}function q0(t){return t>-fO&&t<fO}var z4=/^(?:(\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 Cu(t){if(t instanceof Date)return t;if(et(t)){var e=z4.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(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))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function F4(t){return Math.pow(10,Q0(t))}function Q0(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function hO(t,e){var n=Q0(t),r=Math.pow(10,n),a=t/r,l;return e?a<1.5?l=1:a<2.5?l=2:a<4?l=3:a<7?l=5:l=10:a<1?l=1:a<2?l=2:a<3?l=3:a<5?l=5:l=10,t=l*r,n>=-20?+t.toFixed(n<0?-n:0):t}function Ds(t){var e=parseFloat(t);return e==t&&(e!==0||!et(t)||t.indexOf("x")<=0)?e:NaN}function pO(t){return!isNaN(Ds(t))}function gO(){return Math.round(Math.random()*9)}function mO(t,e){return e===0?t:mO(e,t%e)}function yO(t,e){return t==null?e:e==null?t:t*e/mO(t,e)}var B4="[ECharts] ",_O={},U4=typeof console<"u"&&console.warn&&console.log;function Z0(t,e,n){if(U4){if(n){if(_O[e])return;_O[e]=!0}console[t](B4+e)}}function V4(t,e){Z0("log",t,e)}function Fr(t,e){Z0("warn",t,e)}function ci(t,e){Z0("error",t,e)}function wl(t){process.env.NODE_ENV!=="production"&&Z0("warn","DEPRECATED: "+t,!0)}function Br(t,e,n){process.env.NODE_ENV!=="production"&&wl((n?"["+n+"]":"")+(t+" is deprecated, use "+e+" instead."))}function na(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n="";if(process.env.NODE_ENV!=="production"){var r=function(a){return a===void 0?"undefined":a===1/0?"Infinity":a===-1/0?"-Infinity":Fp(a)?"NaN":a instanceof Date?"Date("+a.toISOString()+")":_t(a)?"function () { ... }":aL(a)?a+"":null};n=ot(t,function(a){if(et(a))return a;var l=r(a);if(l!=null)return l;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(a,function(u,f){var d=r(f);return d??f})}catch{return"?"}else return"?"}).join(" ")}return n}function Ht(t){throw new Error(t)}function SO(t,e,n){return(e-t)*n+t}var CO="series\0",H4="\0_ec_\0";function rr(t){return t instanceof Array?t:t==null?[]:[t]}function wO(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,a=n.length;r<a;r++){var l=n[r];!t.emphasis[e].hasOwnProperty(l)&&t[e].hasOwnProperty(l)&&(t.emphasis[e][l]=t[e][l])}}}var xO=["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 tg(t){return it(t)&&!Be(t)&&!(t instanceof Date)?t.value:t}function G4(t){return it(t)&&!(t instanceof Array)}function $4(t,e,n){var r=n==="normalMerge",a=n==="replaceMerge",l=n==="replaceAll";t=t||[],e=(e||[]).slice();var u=xt();W(e,function(d,h){if(!it(d)){e[h]=null;return}process.env.NODE_ENV!=="production"&&(d.id!=null&&!EO(d.id)&&bO(d.id),d.name!=null&&!EO(d.name)&&bO(d.name))});var f=j4(t,u,n);return(r||a)&&Y4(f,t,u,e),r&&W4(f,e),r||a?X4(f,e,a):l&&q4(f,e),Q4(f),f}function j4(t,e,n){var r=[];if(n==="replaceAll")return r;for(var a=0;a<t.length;a++){var l=t[a];l&&l.id!=null&&e.set(l.id,a),r.push({existing:n==="replaceMerge"||uv(l)?null:l,newOption:null,keyInfo:null,brandNew:null})}return r}function Y4(t,e,n,r){W(r,function(a,l){if(!(!a||a.id==null)){var u=ng(a.id),f=n.get(u);if(f!=null){var d=t[f];bt(!d.newOption,'Duplicated option on id "'+u+'".'),d.newOption=a,d.existing=e[f],r[l]=null}}})}function W4(t,e){W(e,function(n,r){if(!(!n||n.name==null))for(var a=0;a<t.length;a++){var l=t[a].existing;if(!t[a].newOption&&l&&(l.id==null||n.id==null)&&!uv(n)&&!uv(l)&&TO("name",l,n)){t[a].newOption=n,e[r]=null;return}}})}function X4(t,e,n){W(e,function(r){if(r){for(var a,l=0;(a=t[l])&&(a.newOption||uv(a.existing)||a.existing&&r.id!=null&&!TO("id",r,a.existing));)l++;a?(a.newOption=r,a.brandNew=n):t.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),l++}})}function q4(t,e){W(e,function(n){t.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function Q4(t){var e=xt();W(t,function(n){var r=n.existing;r&&e.set(r.id,n)}),W(t,function(n){var r=n.newOption;bt(!r||r.id==null||!e.get(r.id)||e.get(r.id)===n,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&e.set(r.id,n),!n.keyInfo&&(n.keyInfo={})}),W(t,function(n,r){var a=n.existing,l=n.newOption,u=n.keyInfo;if(it(l)){if(u.name=l.name!=null?ng(l.name):a?a.name:CO+r,a)u.id=ng(a.id);else if(l.id!=null)u.id=ng(l.id);else{var f=0;do u.id="\0"+u.name+"\0"+f++;while(e.get(u.id))}e.set(u.id,n)}})}function TO(t,e,n){var r=xl(e[t],null),a=xl(n[t],null);return r!=null&&a!=null&&r===a}function ng(t){if(process.env.NODE_ENV!=="production"&&t==null)throw new Error;return xl(t,"")}function xl(t,e){return t==null?e:et(t)?t:Nn(t)||T0(t)?t+"":e}function bO(t){process.env.NODE_ENV!=="production"&&Fr("`"+t+"` is invalid id or name. Must be a string or number.")}function EO(t){return T0(t)||pO(t)}function DO(t){var e=t.name;return!!(e&&e.indexOf(CO))}function uv(t){return t&&t.id!=null&&ng(t.id).indexOf(H4)===0}function Z4(t,e,n){W(t,function(r){var a=r.newOption;it(a)&&(r.keyInfo.mainType=e,r.keyInfo.subType=K4(e,a,r.existing,n))})}function K4(t,e,n,r){var a=e.type?e.type:n?n.subType:r.determineSubType(t,e);return a}function rg(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return Be(e.dataIndex)?ot(e.dataIndex,function(n){return t.indexOfRawIndex(n)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return Be(e.name)?ot(e.name,function(n){return t.indexOfName(n)}):t.indexOfName(e.name)}function jn(){var t="__ec_inner_"+J4++;return function(e){return e[t]||(e[t]={})}}var J4=gO();function Ux(t,e,n){var r=Vx(e,n),a=r.mainTypeSpecified,l=r.queryOptionMap,u=r.others,f=u,d=n?n.defaultMainType:null;return!a&&d&&l.set(d,{}),l.each(function(h,p){var m=ig(t,p,h,{useDefault:d===p,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});f[p+"Models"]=m.models,f[p+"Model"]=m.models[0]}),f}function Vx(t,e){var n;if(et(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var a=xt(),l={},u=!1;return W(n,function(f,d){if(d==="dataIndex"||d==="dataIndexInside"){l[d]=f;return}var h=d.match(/^(\w+)(Index|Id|Name)$/)||[],p=h[1],m=(h[2]||"").toLowerCase();if(!(!p||!m||e&&e.includeMainTypes&&dn(e.includeMainTypes,p)<0)){u=u||!!p;var S=a.get(p)||a.set(p,{});S[m]=f}}),{mainTypeSpecified:u,queryOptionMap:a,others:l}}var Oo={useDefault:!0,enableAll:!1,enableNone:!1};function ig(t,e,n,r){r=r||Oo;var a=n.index,l=n.id,u=n.name,f={models:null,specified:a!=null||l!=null||u!=null};if(!f.specified){var d=void 0;return f.models=r.useDefault&&(d=t.getComponent(e))?[d]:[],f}return a==="none"||a===!1?(bt(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),f.models=[],f):(a==="all"&&(bt(r.enableAll,'`"all"` is not a valid value on index option.'),a=l=u=null),f.models=t.queryComponents({mainType:e,index:a,id:l,name:u}),f)}function MO(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function e6(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function t6(t){return t==="auto"?Tt.domSupported?"html":"richText":t||"html"}function n6(t,e,n,r,a){var l=e==null||e==="auto";if(r==null)return r;if(Nn(r)){var u=SO(n||0,r,a);return vr(u,l?Math.max(Su(n||0),Su(r)):e)}else{if(et(r))return a<1?n:r;for(var f=[],d=n,h=r,p=Math.max(d?d.length:0,h.length),m=0;m<p;++m){var S=t.getDimensionInfo(m);if(S&&S.type==="ordinal")f[m]=(a<1&&d?d:h)[m];else{var _=d&&d[m]?d[m]:0,x=h[m],u=SO(_,x,a);f[m]=vr(u,l?Math.max(Su(_),Su(x)):e)}}return f}}var r6=".",ec="___EC__COMPONENT__CONTAINER___",RO="___EC__EXTENDED_CLASS___";function Tl(t){var e={main:"",sub:""};if(t){var n=t.split(r6);e.main=n[0]||"",e.sub=n[1]||""}return e}function i6(t){bt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function a6(t){return!!(t&&t[RO])}function Hx(t,e){t.$constructor=t,t.extend=function(n){process.env.NODE_ENV!=="production"&&W(e,function(l){n[l]||console.warn("Method `"+l+"` should be implemented"+(n.type?" in "+n.type:"")+".")});var r=this,a;return o6(r)?a=function(l){Pt(u,l);function u(){return l.apply(this,arguments)||this}return u}(r):(a=function(){(n.$constructor||r).apply(this,arguments)},iH(a,this)),Re(a.prototype,n),a[RO]=!0,a.extend=this.extend,a.superCall=s6,a.superApply=f6,a.superClass=r,a}}function o6(t){return _t(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function AO(t,e){t.extend=e.extend}var l6=Math.round(Math.random()*10);function u6(t){var e=["__\0is_clz",l6++].join("_");t.prototype[e]=!0,process.env.NODE_ENV!=="production"&&bt(!t.isInstance,'The method "is" can not be defined.'),t.isInstance=function(n){return!!(n&&n[e])}}function s6(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function f6(t,e,n){return this.superClass.prototype[e].apply(t,n)}function K0(t){var e={};t.registerClass=function(r){var a=r.type||r.prototype.type;if(a){i6(a),r.prototype.type=a;var l=Tl(a);if(!l.sub)process.env.NODE_ENV!=="production"&&e[l.main]&&console.warn(l.main+" exists."),e[l.main]=r;else if(l.sub!==ec){var u=n(l);u[l.sub]=r}}return r},t.getClass=function(r,a,l){var u=e[r];if(u&&u[ec]&&(u=a?u[a]:null),l&&!u)throw new Error(a?"Component "+r+"."+(a||"")+" is used but not imported.":r+".type should be specified.");return u},t.getClassesByMainType=function(r){var a=Tl(r),l=[],u=e[a.main];return u&&u[ec]?W(u,function(f,d){d!==ec&&l.push(f)}):l.push(u),l},t.hasClass=function(r){var a=Tl(r);return!!e[a.main]},t.getAllClassMainTypes=function(){var r=[];return W(e,function(a,l){r.push(l)}),r},t.hasSubTypes=function(r){var a=Tl(r),l=e[a.main];return l&&l[ec]};function n(r){var a=e[r.main];return(!a||!a[ec])&&(a=e[r.main]={},a[ec]=!0),a}}function ag(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(r,a,l){for(var u={},f=0;f<t.length;f++){var d=t[f][1];if(!(a&&dn(a,d)>=0||l&&dn(l,d)<0)){var h=r.getShallow(d,e);h!=null&&(u[t[f][0]]=h)}}return u}}var c6=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],d6=ag(c6),v6=function(){function t(){}return t.prototype.getAreaStyle=function(e,n){return d6(this,e,n)},t}(),Gx=new Yp(50);function h6(t){if(typeof t=="string"){var e=Gx.get(t);return e&&e.image}else return t}function LO(t,e,n,r,a){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!n)return e;var l=Gx.get(t),u={hostEl:n,cb:r,cbPayload:a};return l?(e=l.image,!J0(e)&&l.pending.push(u)):(e=$f.loadImage(t,OO,OO),e.__zrImageSrc=t,Gx.put(t,e.__cachedImgObj={image:e,pending:[u]})),e}else return t;else return e}function OO(){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],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function J0(t){return t&&t.width&&t.height}var $x=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function p6(t,e,n,r,a){if(!e)return"";var l=(t+"").split(`
193
- `);a=kO(e,n,r,a);for(var u=0,f=l.length;u<f;u++)l[u]=NO(l[u],a);return l.join(`
194
- `)}function kO(t,e,n,r){r=r||{};var a=Re({},r);a.font=e,n=kt(n,"..."),a.maxIterations=kt(r.maxIterations,2);var l=a.minChar=kt(r.minChar,0);a.cnCharWidth=Oa("国",e);var u=a.ascCharWidth=Oa("a",e);a.placeholder=kt(r.placeholder,"");for(var f=t=Math.max(0,t-1),d=0;d<l&&f>=u;d++)f-=u;var h=Oa(n,e);return h>f&&(n="",h=0),f=t-h,a.ellipsis=n,a.ellipsisWidth=h,a.contentWidth=f,a.containerWidth=t,a}function NO(t,e){var n=e.containerWidth,r=e.font,a=e.contentWidth;if(!n)return"";var l=Oa(t,r);if(l<=n)return t;for(var u=0;;u++){if(l<=a||u>=e.maxIterations){t+=e.ellipsis;break}var f=u===0?g6(t,a,e.ascCharWidth,e.cnCharWidth):l>0?Math.floor(t.length*a/l):0;t=t.substr(0,f),l=Oa(t,r)}return t===""&&(t=e.placeholder),t}function g6(t,e,n,r){for(var a=0,l=0,u=t.length;l<u&&a<e;l++){var f=t.charCodeAt(l);a+=0<=f&&f<=127?n:r}return l}function m6(t,e){t!=null&&(t+="");var n=e.overflow,r=e.padding,a=e.font,l=n==="truncate",u=kx(a),f=kt(e.lineHeight,u),d=!!e.backgroundColor,h=e.lineOverflow==="truncate",p=e.width,m;p!=null&&(n==="break"||n==="breakAll")?m=t?IO(t,e.font,p,n==="breakAll",0).lines:[]:m=t?t.split(`
195
- `):[];var S=m.length*f,_=kt(e.height,S);if(S>_&&h){var x=Math.floor(_/f);m=m.slice(0,x)}if(t&&l&&p!=null)for(var E=kO(p,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b=0;b<m.length;b++)m[b]=NO(m[b],E);for(var D=_,A=0,b=0;b<m.length;b++)A=Math.max(Oa(m[b],a),A);p==null&&(p=A);var O=A;return r&&(D+=r[0]+r[2],O+=r[1]+r[3],p+=r[1]+r[3]),d&&(O=p),{lines:m,height:_,outerWidth:O,outerHeight:D,lineHeight:f,calculatedLineHeight:u,contentWidth:A,contentHeight:S,width:p}}var y6=function(){function t(){}return t}(),PO=function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t}(),_6=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}();function S6(t,e){var n=new _6;if(t!=null&&(t+=""),!t)return n;for(var r=e.width,a=e.height,l=e.overflow,u=(l==="break"||l==="breakAll")&&r!=null?{width:r,accumWidth:0,breakAll:l==="breakAll"}:null,f=$x.lastIndex=0,d;(d=$x.exec(t))!=null;){var h=d.index;h>f&&jx(n,t.substring(f,h),e,u),jx(n,d[2],e,u,d[1]),f=$x.lastIndex}f<t.length&&jx(n,t.substring(f,t.length),e,u);var p=[],m=0,S=0,_=e.padding,x=l==="truncate",E=e.lineOverflow==="truncate";function b(ae,ge,pe){ae.width=ge,ae.lineHeight=pe,m+=pe,S=Math.max(S,ge)}e:for(var D=0;D<n.lines.length;D++){for(var A=n.lines[D],O=0,P=0,I=0;I<A.tokens.length;I++){var F=A.tokens[I],U=F.styleName&&e.rich[F.styleName]||{},H=F.textPadding=U.padding,j=H?H[1]+H[3]:0,X=F.font=U.font||e.font;F.contentHeight=kx(X);var G=kt(U.height,F.contentHeight);if(F.innerHeight=G,H&&(G+=H[0]+H[2]),F.height=G,F.lineHeight=Wd(U.lineHeight,e.lineHeight,G),F.align=U&&U.align||e.align,F.verticalAlign=U&&U.verticalAlign||"middle",E&&a!=null&&m+F.lineHeight>a){I>0?(A.tokens=A.tokens.slice(0,I),b(A,P,O),n.lines=n.lines.slice(0,D+1)):n.lines=n.lines.slice(0,D);break e}var ee=U.width,J=ee==null||ee==="auto";if(typeof ee=="string"&&ee.charAt(ee.length-1)==="%")F.percentWidth=ee,p.push(F),F.contentWidth=Oa(F.text,X);else{if(J){var ie=U.backgroundColor,ce=ie&&ie.image;ce&&(ce=h6(ce),J0(ce)&&(F.width=Math.max(F.width,ce.width*G/ce.height)))}var fe=x&&r!=null?r-P:null;fe!=null&&fe<F.width?!J||fe<j?(F.text="",F.width=F.contentWidth=0):(F.text=p6(F.text,fe-j,X,e.ellipsis,{minChar:e.truncateMinChar}),F.width=F.contentWidth=Oa(F.text,X)):F.contentWidth=Oa(F.text,X)}F.width+=j,P+=F.width,U&&(O=Math.max(O,F.lineHeight))}b(A,P,O)}n.outerWidth=n.width=kt(r,S),n.outerHeight=n.height=kt(a,m),n.contentHeight=m,n.contentWidth=S,_&&(n.outerWidth+=_[1]+_[3],n.outerHeight+=_[0]+_[2]);for(var D=0;D<p.length;D++){var F=p[D],Ne=F.percentWidth;F.width=parseInt(Ne,10)/100*n.width}return n}function jx(t,e,n,r,a){var l=e==="",u=a&&n.rich[a]||{},f=t.lines,d=u.font||n.font,h=!1,p,m;if(r){var S=u.padding,_=S?S[1]+S[3]:0;if(u.width!=null&&u.width!=="auto"){var x=Jf(u.width,r.width)+_;f.length>0&&x+r.accumWidth>r.width&&(p=e.split(`
196
- `),h=!0),r.accumWidth=x}else{var E=IO(e,d,r.width,r.breakAll,r.accumWidth);r.accumWidth=E.accumWidth+_,m=E.linesWidths,p=E.lines}}else p=e.split(`
197
- `);for(var b=0;b<p.length;b++){var D=p[b],A=new y6;if(A.styleName=a,A.text=D,A.isLineHolder=!D&&!l,typeof u.width=="number"?A.width=u.width:A.width=m?m[b]:Oa(D,d),!b&&!h){var O=(f[f.length-1]||(f[0]=new PO)).tokens,P=O.length;P===1&&O[0].isLineHolder?O[0]=A:(D||!P||l)&&O.push(A)}else f.push(new PO([A]))}}function C6(t){var e=t.charCodeAt(0);return e>=33&&e<=383}var w6=Yd(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function x6(t){return C6(t)?!!w6[t]:!0}function IO(t,e,n,r,a){for(var l=[],u=[],f="",d="",h=0,p=0,m=0;m<t.length;m++){var S=t.charAt(m);if(S===`
198
- `){d&&(f+=d,p+=h),l.push(f),u.push(p),f="",d="",h=0,p=0;continue}var _=Oa(S,e),x=r?!1:!x6(S);if(l.length?p+_>n:a+p+_>n){p?(f||d)&&(x?(f||(f=d,d="",h=0,p=h),l.push(f),u.push(p-h),d+=S,h+=_,f="",p=h):(d&&(f+=d,d="",h=0),l.push(f),u.push(p),f=S,p=_)):x?(l.push(d),u.push(h),d=S,h=_):(l.push(S),u.push(_));continue}p+=_,x?(d+=S,h+=_):(d&&(f+=d,d="",h=0),f+=S)}return!l.length&&!f&&(f=t,d="",h=0),d&&(f+=d),f&&(l.push(f),u.push(p)),l.length===1&&(p+=a),{accumWidth:p,lines:l,linesWidths:u}}var Yx="__zr_style_"+Math.round(Math.random()*10),tc={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},e_={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};tc[Yx]=!0;var zO=["z","z2","invisible"],T6=["invisible"],b6=function(t){mn(e,t);function e(n){return t.call(this,n)||this}return e.prototype._init=function(n){for(var r=kn(n),a=0;a<r.length;a++){var l=r[a];l==="style"?this.useStyle(n[l]):t.prototype.attrKV.call(this,l,n[l])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(n,r,a,l){var u=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&E6(this,n,r)||u&&!u[0]&&!u[3])return!1;if(a&&this.__clipPaths){for(var f=0;f<this.__clipPaths.length;++f)if(this.__clipPaths[f].isZeroArea())return!1}if(l&&this.parent)for(var d=this.parent;d;){if(d.ignore)return!1;d=d.parent}return!0},e.prototype.contain=function(n,r){return this.rectContain(n,r)},e.prototype.traverse=function(n,r){n.call(r,this)},e.prototype.rectContain=function(n,r){var a=this.transformCoordToLocal(n,r),l=this.getBoundingRect();return l.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,a=this.getBoundingRect(),l=this.style,u=l.shadowBlur||0,f=l.shadowOffsetX||0,d=l.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new Wt(0,0,0,0)),r?Wt.applyTransform(n,a,r):n.copy(a),(u||f||d)&&(n.width+=u*2+Math.abs(f),n.height+=u*2+Math.abs(d),n.x=Math.min(n.x,n.x+f-u),n.y=Math.min(n.y,n.y+d-u));var h=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-h),n.y=Math.floor(n.y-h),n.width=Math.ceil(n.width+1+h*2),n.height=Math.ceil(n.height+1+h*2))}return n},e.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new Wt(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(n){return this.animate("style",n)},e.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(n,r){n!=="style"?t.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},e.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:Re(this.style,n),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=jp,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&jp)},e.prototype.styleUpdated=function(){this.__dirty&=~jp},e.prototype.createStyle=function(n){return D0(tc,n)},e.prototype.useStyle=function(n){n[Yx]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},e.prototype.isStyleObject=function(n){return n[Yx]},e.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,r,zO)},e.prototype._applyStateObj=function(n,r,a,l,u,f){t.prototype._applyStateObj.call(this,n,r,a,l,u,f);var d=!(r&&l),h;if(r&&r.style?u?l?h=r.style:(h=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(h,r.style)):(h=this._mergeStyle(this.createStyle(),l?this.style:a.style),this._mergeStyle(h,r.style)):d&&(h=a.style),h)if(u){var p=this.style;if(this.style=this.createStyle(d?{}:p),d)for(var m=kn(p),S=0;S<m.length;S++){var _=m[S];_ in h&&(h[_]=h[_],this.style[_]=p[_])}for(var x=kn(h),S=0;S<x.length;S++){var _=x[S];this.style[_]=this.style[_]}this._transitionState(n,{style:h},f,this.getAnimationStyleProps())}else this.useStyle(h);for(var E=this.__inHover?T6:zO,S=0;S<E.length;S++){var _=E[S];r&&r[_]!=null?this[_]=r[_]:d&&a[_]!=null&&(this[_]=a[_])}},e.prototype._mergeStates=function(n){for(var r=t.prototype._mergeStates.call(this,n),a,l=0;l<n.length;l++){var u=n[l];u.style&&(a=a||{},this._mergeStyle(a,u.style))}return a&&(r.style=a),r},e.prototype._mergeStyle=function(n,r){return Re(n,r),n},e.prototype.getAnimationStyleProps=function(){return e_},e.initDefaultProps=function(){var n=e.prototype;n.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,n.__dirty=La|jp}(),e}(oO),Wx=new Wt(0,0,0,0),Xx=new Wt(0,0,0,0);function E6(t,e,n){return Wx.copy(t.getBoundingRect()),t.transform&&Wx.applyTransform(t.transform),Xx.width=e,Xx.height=n,!Wx.intersect(Xx)}const sv=b6;var ra=Math.min,ia=Math.max,qx=Math.sin,Qx=Math.cos,nc=Math.PI*2,t_=Xd(),n_=Xd(),r_=Xd();function FO(t,e,n){if(t.length!==0){for(var r=t[0],a=r[0],l=r[0],u=r[1],f=r[1],d=1;d<t.length;d++)r=t[d],a=ra(a,r[0]),l=ia(l,r[0]),u=ra(u,r[1]),f=ia(f,r[1]);e[0]=a,e[1]=u,n[0]=l,n[1]=f}}function BO(t,e,n,r,a,l){a[0]=ra(t,n),a[1]=ra(e,r),l[0]=ia(t,n),l[1]=ia(e,r)}var UO=[],VO=[];function D6(t,e,n,r,a,l,u,f,d,h){var p=kL,m=Qr,S=p(t,n,a,u,UO);d[0]=1/0,d[1]=1/0,h[0]=-1/0,h[1]=-1/0;for(var _=0;_<S;_++){var x=m(t,n,a,u,UO[_]);d[0]=ra(x,d[0]),h[0]=ia(x,h[0])}S=p(e,r,l,f,VO);for(var _=0;_<S;_++){var E=m(e,r,l,f,VO[_]);d[1]=ra(E,d[1]),h[1]=ia(E,h[1])}d[0]=ra(t,d[0]),h[0]=ia(t,h[0]),d[0]=ra(u,d[0]),h[0]=ia(u,h[0]),d[1]=ra(e,d[1]),h[1]=ia(e,h[1]),d[1]=ra(f,d[1]),h[1]=ia(f,h[1])}function M6(t,e,n,r,a,l,u,f){var d=IL,h=fi,p=ia(ra(d(t,n,a),1),0),m=ia(ra(d(e,r,l),1),0),S=h(t,n,a,p),_=h(e,r,l,m);u[0]=ra(t,a,S),u[1]=ra(e,l,_),f[0]=ia(t,a,S),f[1]=ia(e,l,_)}function R6(t,e,n,r,a,l,u,f,d){var h=Qd,p=Zd,m=Math.abs(a-l);if(m%nc<1e-4&&m>1e-4){f[0]=t-n,f[1]=e-r,d[0]=t+n,d[1]=e+r;return}if(t_[0]=Qx(a)*n+t,t_[1]=qx(a)*r+e,n_[0]=Qx(l)*n+t,n_[1]=qx(l)*r+e,h(f,t_,n_),p(d,t_,n_),a=a%nc,a<0&&(a=a+nc),l=l%nc,l<0&&(l=l+nc),a>l&&!u?l+=nc:a<l&&u&&(a+=nc),u){var S=l;l=a,a=S}for(var _=0;_<l;_+=Math.PI/2)_>a&&(r_[0]=Qx(_)*n+t,r_[1]=qx(_)*r+e,h(f,r_,f),p(d,r_,d))}var rn={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},rc=[],ic=[],bl=[],Ms=[],El=[],Dl=[],Zx=Math.min,Kx=Math.max,ac=Math.cos,oc=Math.sin,wu=Math.abs,Jx=Math.PI,Rs=Jx*2,eT=typeof Float32Array<"u",og=[];function tT(t){var e=Math.round(t/Jx*1e8)/1e8;return e%2*Jx}function A6(t,e){var n=tT(t[0]);n<0&&(n+=Rs);var r=n-t[0],a=t[1];a+=r,!e&&a-n>=Rs?a=n+Rs:e&&n-a>=Rs?a=n-Rs:!e&&n>a?a=n+(Rs-tT(n-a)):e&&n<a&&(a=n-(Rs-tT(a-n))),t[0]=n,t[1]=a}var L6=function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,n,r){r=r||0,r>0&&(this._ux=wu(r/W0/e)||0,this._uy=wu(r/W0/n)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,n){return this._drawPendingPt(),this.addData(rn.M,e,n),this._ctx&&this._ctx.moveTo(e,n),this._x0=e,this._y0=n,this._xi=e,this._yi=n,this},t.prototype.lineTo=function(e,n){var r=wu(e-this._xi),a=wu(n-this._yi),l=r>this._ux||a>this._uy;if(this.addData(rn.L,e,n),this._ctx&&l&&this._ctx.lineTo(e,n),l)this._xi=e,this._yi=n,this._pendingPtDist=0;else{var u=r*r+a*a;u>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=n,this._pendingPtDist=u)}return this},t.prototype.bezierCurveTo=function(e,n,r,a,l,u){return this._drawPendingPt(),this.addData(rn.C,e,n,r,a,l,u),this._ctx&&this._ctx.bezierCurveTo(e,n,r,a,l,u),this._xi=l,this._yi=u,this},t.prototype.quadraticCurveTo=function(e,n,r,a){return this._drawPendingPt(),this.addData(rn.Q,e,n,r,a),this._ctx&&this._ctx.quadraticCurveTo(e,n,r,a),this._xi=r,this._yi=a,this},t.prototype.arc=function(e,n,r,a,l,u){this._drawPendingPt(),og[0]=a,og[1]=l,A6(og,u),a=og[0],l=og[1];var f=l-a;return this.addData(rn.A,e,n,r,r,a,f,0,u?0:1),this._ctx&&this._ctx.arc(e,n,r,a,l,u),this._xi=ac(l)*r+e,this._yi=oc(l)*r+n,this},t.prototype.arcTo=function(e,n,r,a,l){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,n,r,a,l),this},t.prototype.rect=function(e,n,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,n,r,a),this.addData(rn.R,e,n,r,a),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(rn.Z);var e=this._ctx,n=this._x0,r=this._y0;return e&&e.closePath(),this._xi=n,this._yi=r,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var n=e.length;!(this.data&&this.data.length===n)&&eT&&(this.data=new Float32Array(n));for(var r=0;r<n;r++)this.data[r]=e[r];this._len=n},t.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var n=e.length,r=0,a=this._len,l=0;l<n;l++)r+=e[l].len();eT&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+r));for(var l=0;l<n;l++)for(var u=e[l].data,f=0;f<u.length;f++)this.data[a++]=u[f];this._len=a},t.prototype.addData=function(e,n,r,a,l,u,f,d,h){if(this._saveData){var p=this.data;this._len+arguments.length>p.length&&(this._expandData(),p=this.data);for(var m=0;m<arguments.length;m++)p[this._len++]=arguments[m]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],n=0;n<this._len;n++)e[n]=this.data[n];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,eT&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){bl[0]=bl[1]=El[0]=El[1]=Number.MAX_VALUE,Ms[0]=Ms[1]=Dl[0]=Dl[1]=-Number.MAX_VALUE;var e=this.data,n=0,r=0,a=0,l=0,u;for(u=0;u<this._len;){var f=e[u++],d=u===1;switch(d&&(n=e[u],r=e[u+1],a=n,l=r),f){case rn.M:n=a=e[u++],r=l=e[u++],El[0]=a,El[1]=l,Dl[0]=a,Dl[1]=l;break;case rn.L:BO(n,r,e[u],e[u+1],El,Dl),n=e[u++],r=e[u++];break;case rn.C:D6(n,r,e[u++],e[u++],e[u++],e[u++],e[u],e[u+1],El,Dl),n=e[u++],r=e[u++];break;case rn.Q:M6(n,r,e[u++],e[u++],e[u],e[u+1],El,Dl),n=e[u++],r=e[u++];break;case rn.A:var h=e[u++],p=e[u++],m=e[u++],S=e[u++],_=e[u++],x=e[u++]+_;u+=1;var E=!e[u++];d&&(a=ac(_)*m+h,l=oc(_)*S+p),R6(h,p,m,S,_,x,E,El,Dl),n=ac(x)*m+h,r=oc(x)*S+p;break;case rn.R:a=n=e[u++],l=r=e[u++];var b=e[u++],D=e[u++];BO(a,l,a+b,l+D,El,Dl);break;case rn.Z:n=a,r=l;break}Qd(bl,bl,El),Zd(Ms,Ms,Dl)}return u===0&&(bl[0]=bl[1]=Ms[0]=Ms[1]=0),new Wt(bl[0],bl[1],Ms[0]-bl[0],Ms[1]-bl[1])},t.prototype._calculateLength=function(){var e=this.data,n=this._len,r=this._ux,a=this._uy,l=0,u=0,f=0,d=0;this._pathSegLen||(this._pathSegLen=[]);for(var h=this._pathSegLen,p=0,m=0,S=0;S<n;){var _=e[S++],x=S===1;x&&(l=e[S],u=e[S+1],f=l,d=u);var E=-1;switch(_){case rn.M:l=f=e[S++],u=d=e[S++];break;case rn.L:{var b=e[S++],D=e[S++],A=b-l,O=D-u;(wu(A)>r||wu(O)>a||S===n-1)&&(E=Math.sqrt(A*A+O*O),l=b,u=D);break}case rn.C:{var P=e[S++],I=e[S++],b=e[S++],D=e[S++],F=e[S++],U=e[S++];E=qH(l,u,P,I,b,D,F,U,10),l=F,u=U;break}case rn.Q:{var P=e[S++],I=e[S++],b=e[S++],D=e[S++];E=ZH(l,u,P,I,b,D,10),l=b,u=D;break}case rn.A:var H=e[S++],j=e[S++],X=e[S++],G=e[S++],ee=e[S++],J=e[S++],ie=J+ee;S+=1,e[S++],x&&(f=ac(ee)*X+H,d=oc(ee)*G+j),E=Kx(X,G)*Zx(Rs,Math.abs(J)),l=ac(ie)*X+H,u=oc(ie)*G+j;break;case rn.R:{f=l=e[S++],d=u=e[S++];var ce=e[S++],fe=e[S++];E=ce*2+fe*2;break}case rn.Z:{var A=f-l,O=d-u;E=Math.sqrt(A*A+O*O),l=f,u=d;break}}E>=0&&(h[m++]=E,p+=E)}return this._pathLen=p,p},t.prototype.rebuildPath=function(e,n){var r=this.data,a=this._ux,l=this._uy,u=this._len,f,d,h,p,m,S,_=n<1,x,E,b=0,D=0,A,O=0,P,I;if(_&&(this._pathSegLen||this._calculateLength(),x=this._pathSegLen,E=this._pathLen,A=n*E,!A))return;e:for(var F=0;F<u;){var U=r[F++],H=F===1;switch(H&&(h=r[F],p=r[F+1],f=h,d=p),U!==rn.L&&O>0&&(e.lineTo(P,I),O=0),U){case rn.M:f=h=r[F++],d=p=r[F++],e.moveTo(h,p);break;case rn.L:{m=r[F++],S=r[F++];var j=wu(m-h),X=wu(S-p);if(j>a||X>l){if(_){var G=x[D++];if(b+G>A){var ee=(A-b)/G;e.lineTo(h*(1-ee)+m*ee,p*(1-ee)+S*ee);break e}b+=G}e.lineTo(m,S),h=m,p=S,O=0}else{var J=j*j+X*X;J>O&&(P=m,I=S,O=J)}break}case rn.C:{var ie=r[F++],ce=r[F++],fe=r[F++],Ne=r[F++],ae=r[F++],ge=r[F++];if(_){var G=x[D++];if(b+G>A){var ee=(A-b)/G;Es(h,ie,fe,ae,ee,rc),Es(p,ce,Ne,ge,ee,ic),e.bezierCurveTo(rc[1],ic[1],rc[2],ic[2],rc[3],ic[3]);break e}b+=G}e.bezierCurveTo(ie,ce,fe,Ne,ae,ge),h=ae,p=ge;break}case rn.Q:{var ie=r[F++],ce=r[F++],fe=r[F++],Ne=r[F++];if(_){var G=x[D++];if(b+G>A){var ee=(A-b)/G;z0(h,ie,fe,ee,rc),z0(p,ce,Ne,ee,ic),e.quadraticCurveTo(rc[1],ic[1],rc[2],ic[2]);break e}b+=G}e.quadraticCurveTo(ie,ce,fe,Ne),h=fe,p=Ne;break}case rn.A:var pe=r[F++],Le=r[F++],Ge=r[F++],St=r[F++],It=r[F++],Dn=r[F++],Xt=r[F++],Mn=!r[F++],ln=Ge>St?Ge:St,zt=wu(Ge-St)>.001,Ft=It+Dn,$e=!1;if(_){var G=x[D++];b+G>A&&(Ft=It+Dn*(A-b)/G,$e=!0),b+=G}if(zt&&e.ellipse?e.ellipse(pe,Le,Ge,St,Xt,It,Ft,Mn):e.arc(pe,Le,ln,It,Ft,Mn),$e)break e;H&&(f=ac(It)*Ge+pe,d=oc(It)*St+Le),h=ac(Ft)*Ge+pe,p=oc(Ft)*St+Le;break;case rn.R:f=h=r[F],d=p=r[F+1],m=r[F++],S=r[F++];var Se=r[F++],Zt=r[F++];if(_){var G=x[D++];if(b+G>A){var Et=A-b;e.moveTo(m,S),e.lineTo(m+Zx(Et,Se),S),Et-=Se,Et>0&&e.lineTo(m+Se,S+Zx(Et,Zt)),Et-=Zt,Et>0&&e.lineTo(m+Kx(Se-Et,0),S+Zt),Et-=Se,Et>0&&e.lineTo(m,S+Kx(Zt-Et,0));break e}b+=G}e.rect(m,S,Se,Zt);break;case rn.Z:if(_){var G=x[D++];if(b+G>A){var ee=(A-b)/G;e.lineTo(h*(1-ee)+f*ee,p*(1-ee)+d*ee);break e}b+=G}e.closePath(),h=f,p=d}}},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.CMD=rn,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();const As=L6;function fv(t,e,n,r,a,l,u){if(a===0)return!1;var f=a,d=0,h=t;if(u>e+f&&u>r+f||u<e-f&&u<r-f||l>t+f&&l>n+f||l<t-f&&l<n-f)return!1;if(t!==n)d=(e-r)/(t-n),h=(t*r-n*e)/(t-n);else return Math.abs(l-t)<=f/2;var p=d*l-u+h,m=p*p/(d*d+1);return m<=f/2*f/2}function O6(t,e,n,r,a,l,u,f,d,h,p){if(d===0)return!1;var m=d;if(p>e+m&&p>r+m&&p>l+m&&p>f+m||p<e-m&&p<r-m&&p<l-m&&p<f-m||h>t+m&&h>n+m&&h>a+m&&h>u+m||h<t-m&&h<n-m&&h<a-m&&h<u-m)return!1;var S=NL(t,e,n,r,a,l,u,f,h,p,null);return S<=m/2}function k6(t,e,n,r,a,l,u,f,d){if(u===0)return!1;var h=u;if(d>e+h&&d>r+h&&d>l+h||d<e-h&&d<r-h&&d<l-h||f>t+h&&f>n+h&&f>a+h||f<t-h&&f<n-h&&f<a-h)return!1;var p=zL(t,e,n,r,a,l,f,d,null);return p<=h/2}var HO=Math.PI*2;function Ls(t){return t%=HO,t<0&&(t+=HO),t}var lg=Math.PI*2;function N6(t,e,n,r,a,l,u,f,d){if(u===0)return!1;var h=u;f-=t,d-=e;var p=Math.sqrt(f*f+d*d);if(p-h>n||p+h<n)return!1;if(Math.abs(r-a)%lg<1e-4)return!0;if(l){var m=r;r=Ls(a),a=Ls(m)}else r=Ls(r),a=Ls(a);r>a&&(a+=lg);var S=Math.atan2(d,f);return S<0&&(S+=lg),S>=r&&S<=a||S+lg>=r&&S+lg<=a}function lc(t,e,n,r,a,l){if(l>e&&l>r||l<e&&l<r||r===e)return 0;var u=(l-e)/(r-e),f=r<e?1:-1;(u===1||u===0)&&(f=r<e?.5:-.5);var d=u*(n-t)+t;return d===a?1/0:d>a?f:0}var Os=As.CMD,uc=Math.PI*2,P6=1e-4;function I6(t,e){return Math.abs(t-e)<P6}var Li=[-1,-1,-1],ao=[-1,-1];function z6(){var t=ao[0];ao[0]=ao[1],ao[1]=t}function F6(t,e,n,r,a,l,u,f,d,h){if(h>e&&h>r&&h>l&&h>f||h<e&&h<r&&h<l&&h<f)return 0;var p=OL(e,r,l,f,h,Li);if(p===0)return 0;for(var m=0,S=-1,_=void 0,x=void 0,E=0;E<p;E++){var b=Li[E],D=b===0||b===1?.5:1,A=Qr(t,n,a,u,b);A<d||(S<0&&(S=kL(e,r,l,f,ao),ao[1]<ao[0]&&S>1&&z6(),_=Qr(e,r,l,f,ao[0]),S>1&&(x=Qr(e,r,l,f,ao[1]))),S===2?b<ao[0]?m+=_<e?D:-D:b<ao[1]?m+=x<_?D:-D:m+=f<x?D:-D:b<ao[0]?m+=_<e?D:-D:m+=f<_?D:-D)}return m}function B6(t,e,n,r,a,l,u,f){if(f>e&&f>r&&f>l||f<e&&f<r&&f<l)return 0;var d=QH(e,r,l,f,Li);if(d===0)return 0;var h=IL(e,r,l);if(h>=0&&h<=1){for(var p=0,m=fi(e,r,l,h),S=0;S<d;S++){var _=Li[S]===0||Li[S]===1?.5:1,x=fi(t,n,a,Li[S]);x<u||(Li[S]<h?p+=m<e?_:-_:p+=l<m?_:-_)}return p}else{var _=Li[0]===0||Li[0]===1?.5:1,x=fi(t,n,a,Li[0]);return x<u?0:l<e?_:-_}}function U6(t,e,n,r,a,l,u,f){if(f-=e,f>n||f<-n)return 0;var d=Math.sqrt(n*n-f*f);Li[0]=-d,Li[1]=d;var h=Math.abs(r-a);if(h<1e-4)return 0;if(h>=uc-1e-4){r=0,a=uc;var p=l?1:-1;return u>=Li[0]+t&&u<=Li[1]+t?p:0}if(r>a){var m=r;r=a,a=m}r<0&&(r+=uc,a+=uc);for(var S=0,_=0;_<2;_++){var x=Li[_];if(x+t>u){var E=Math.atan2(f,x),p=l?1:-1;E<0&&(E=uc+E),(E>=r&&E<=a||E+uc>=r&&E+uc<=a)&&(E>Math.PI/2&&E<Math.PI*1.5&&(p=-p),S+=p)}}return S}function GO(t,e,n,r,a){for(var l=t.data,u=t.len(),f=0,d=0,h=0,p=0,m=0,S,_,x=0;x<u;){var E=l[x++],b=x===1;switch(E===Os.M&&x>1&&(n||(f+=lc(d,h,p,m,r,a))),b&&(d=l[x],h=l[x+1],p=d,m=h),E){case Os.M:p=l[x++],m=l[x++],d=p,h=m;break;case Os.L:if(n){if(fv(d,h,l[x],l[x+1],e,r,a))return!0}else f+=lc(d,h,l[x],l[x+1],r,a)||0;d=l[x++],h=l[x++];break;case Os.C:if(n){if(O6(d,h,l[x++],l[x++],l[x++],l[x++],l[x],l[x+1],e,r,a))return!0}else f+=F6(d,h,l[x++],l[x++],l[x++],l[x++],l[x],l[x+1],r,a)||0;d=l[x++],h=l[x++];break;case Os.Q:if(n){if(k6(d,h,l[x++],l[x++],l[x],l[x+1],e,r,a))return!0}else f+=B6(d,h,l[x++],l[x++],l[x],l[x+1],r,a)||0;d=l[x++],h=l[x++];break;case Os.A:var D=l[x++],A=l[x++],O=l[x++],P=l[x++],I=l[x++],F=l[x++];x+=1;var U=!!(1-l[x++]);S=Math.cos(I)*O+D,_=Math.sin(I)*P+A,b?(p=S,m=_):f+=lc(d,h,S,_,r,a);var H=(r-D)*P/O+D;if(n){if(N6(D,A,P,I,I+F,U,e,H,a))return!0}else f+=U6(D,A,P,I,I+F,U,H,a);d=Math.cos(I+F)*O+D,h=Math.sin(I+F)*P+A;break;case Os.R:p=d=l[x++],m=h=l[x++];var j=l[x++],X=l[x++];if(S=p+j,_=m+X,n){if(fv(p,m,S,m,e,r,a)||fv(S,m,S,_,e,r,a)||fv(S,_,p,_,e,r,a)||fv(p,_,p,m,e,r,a))return!0}else f+=lc(S,m,S,_,r,a),f+=lc(p,_,p,m,r,a);break;case Os.Z:if(n){if(fv(d,h,p,m,e,r,a))return!0}else f+=lc(d,h,p,m,r,a);d=p,h=m;break}}return!n&&!I6(h,m)&&(f+=lc(d,h,p,m,r,a)||0),f!==0}function V6(t,e,n){return GO(t,0,!1,e,n)}function H6(t,e,n,r){return GO(t,e,!0,n,r)}var $O=Vt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},tc),G6={style:Vt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},e_.style)},nT=Zp.concat(["invisible","culling","z","z2","zlevel","parent"]),$6=function(t){mn(e,t);function e(n){return t.call(this,n)||this}return e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(d){n.buildPath(d,n.shape)}),a.silent=!0;var l=a.style;for(var u in r)l[u]!==r[u]&&(l[u]=r[u]);l.fill=r.fill?r.decal:null,l.decal=null,l.shadowColor=null,r.strokeFirst&&(l.stroke=null);for(var f=0;f<nT.length;++f)a[nT[f]]=this[nT[f]];a.__dirty|=La}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(n){var r=kn(n);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var l=0;l<r.length;l++){var u=r[l],f=n[u];u==="style"?this.style?Re(this.style,f):this.useStyle(f):u==="shape"?Re(this.shape,f):t.prototype.attrKV.call(this,u,f)}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 n=this.style.fill;if(n!=="none"){if(et(n)){var r=B0(n,0);return r>.5?Mx:r>.2?C4:Rx}else if(n)return Rx}return Mx},e.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(et(r)){var a=this.__zr,l=!!(a&&a.isDarkMode()),u=B0(n,0)<Dx;if(l===u)return r}},e.prototype.buildPath=function(n,r,a){},e.prototype.pathUpdated=function(){this.__dirty&=~ev},e.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},e.prototype.createPathProxy=function(){this.path=new As(!1)},e.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return!(r==null||r==="none"||!(n.lineWidth>0))},e.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,a=!n;if(a){var l=!1;this.path||(l=!0,this.createPathProxy());var u=this.path;(l||this.__dirty&ev)&&(u.beginPath(),this.buildPath(u,this.shape,!1),this.pathUpdated()),n=u.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var f=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||a){f.copy(n);var d=r.strokeNoScale?this.getLineScale():1,h=r.lineWidth;if(!this.hasFill()){var p=this.strokeContainThreshold;h=Math.max(h,p??4)}d>1e-10&&(f.width+=h/d,f.height+=h/d,f.x-=h/d/2,f.y-=h/d/2)}return f}return n},e.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),l=this.getBoundingRect(),u=this.style;if(n=a[0],r=a[1],l.contain(n,r)){var f=this.path;if(this.hasStroke()){var d=u.lineWidth,h=u.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(this.hasFill()||(d=Math.max(d,this.strokeContainThreshold)),H6(f,d/h,n,r)))return!0}if(this.hasFill())return V6(f,n,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=ev,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(n){return this.animate("shape",n)},e.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):t.prototype.attrKV.call(this,n,r)},e.prototype.setShape=function(n,r){var a=this.shape;return a||(a=this.shape={}),typeof n=="string"?a[n]=r:Re(a,n),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&ev)},e.prototype.createStyle=function(n){return D0($O,n)},e.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=Re({},this.shape))},e.prototype._applyStateObj=function(n,r,a,l,u,f){t.prototype._applyStateObj.call(this,n,r,a,l,u,f);var d=!(r&&l),h;if(r&&r.shape?u?l?h=r.shape:(h=Re({},a.shape),Re(h,r.shape)):(h=Re({},l?this.shape:a.shape),Re(h,r.shape)):d&&(h=a.shape),h)if(u){this.shape=Re({},this.shape);for(var p={},m=kn(h),S=0;S<m.length;S++){var _=m[S];typeof h[_]=="object"?this.shape[_]=h[_]:p[_]=h[_]}this._transitionState(n,{shape:p},f)}else this.shape=h,this.dirtyShape()},e.prototype._mergeStates=function(n){for(var r=t.prototype._mergeStates.call(this,n),a,l=0;l<n.length;l++){var u=n[l];u.shape&&(a=a||{},this._mergeStyle(a,u.shape))}return a&&(r.shape=a),r},e.prototype.getAnimationStyleProps=function(){return G6},e.prototype.isZeroArea=function(){return!1},e.extend=function(n){var r=function(l){mn(u,l);function u(f){var d=l.call(this,f)||this;return n.init&&n.init.call(d,f),d}return u.prototype.getDefaultStyle=function(){return Qt(n.style)},u.prototype.getDefaultShape=function(){return Qt(n.shape)},u}(e);for(var a in n)typeof n[a]=="function"&&(r.prototype[a]=n[a]);return r},e.initDefaultProps=function(){var n=e.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=La|jp|ev}(),e}(sv);const Gt=$6;var j6=Vt({strokeFirst:!0,font:Gf,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},$O),jO=function(t){mn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return r!=null&&r!=="none"&&n.lineWidth>0},e.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(n){return D0(j6,n)},e.prototype.setBoundingRect=function(n){this._rect=n},e.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var a=Ox(r,n.font,n.textAlign,n.textBaseline);if(a.x+=n.x||0,a.y+=n.y||0,this.hasStroke()){var l=n.lineWidth;a.x-=l/2,a.y-=l/2,a.width+=l,a.height+=l}this._rect=a}return this._rect},e.initDefaultProps=function(){var n=e.prototype;n.dirtyRectTolerance=10}(),e}(sv);jO.prototype.type="tspan";const rT=jO;var Y6=Vt({x:0,y:0},tc),W6={style:Vt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},e_.style)};function X6(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var YO=function(t){mn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(n){return D0(Y6,n)},e.prototype._getSize=function(n){var r=this.style,a=r[n];if(a!=null)return a;var l=X6(r.image)?r.image:this.__image;if(!l)return 0;var u=n==="width"?"height":"width",f=r[u];return f==null?l[n]:l[n]/l[u]*f},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return W6},e.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Wt(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},e}(sv);YO.prototype.type="image";const cv=YO;function q6(t,e){var n=e.x,r=e.y,a=e.width,l=e.height,u=e.r,f,d,h,p;a<0&&(n=n+a,a=-a),l<0&&(r=r+l,l=-l),typeof u=="number"?f=d=h=p=u:u instanceof Array?u.length===1?f=d=h=p=u[0]:u.length===2?(f=h=u[0],d=p=u[1]):u.length===3?(f=u[0],d=p=u[1],h=u[2]):(f=u[0],d=u[1],h=u[2],p=u[3]):f=d=h=p=0;var m;f+d>a&&(m=f+d,f*=a/m,d*=a/m),h+p>a&&(m=h+p,h*=a/m,p*=a/m),d+h>l&&(m=d+h,d*=l/m,h*=l/m),f+p>l&&(m=f+p,f*=l/m,p*=l/m),t.moveTo(n+f,r),t.lineTo(n+a-d,r),d!==0&&t.arc(n+a-d,r+d,d,-Math.PI/2,0),t.lineTo(n+a,r+l-h),h!==0&&t.arc(n+a-h,r+l-h,h,0,Math.PI/2),t.lineTo(n+p,r+l),p!==0&&t.arc(n+p,r+l-p,p,Math.PI/2,Math.PI),t.lineTo(n,r+f),f!==0&&t.arc(n+f,r+f,f,Math.PI,Math.PI*1.5)}var dv=Math.round;function WO(t,e,n){if(e){var r=e.x1,a=e.x2,l=e.y1,u=e.y2;t.x1=r,t.x2=a,t.y1=l,t.y2=u;var f=n&&n.lineWidth;return f&&(dv(r*2)===dv(a*2)&&(t.x1=t.x2=sc(r,f,!0)),dv(l*2)===dv(u*2)&&(t.y1=t.y2=sc(l,f,!0))),t}}function XO(t,e,n){if(e){var r=e.x,a=e.y,l=e.width,u=e.height;t.x=r,t.y=a,t.width=l,t.height=u;var f=n&&n.lineWidth;return f&&(t.x=sc(r,f,!0),t.y=sc(a,f,!0),t.width=Math.max(sc(r+l,f,!1)-t.x,l===0?0:1),t.height=Math.max(sc(a+u,f,!1)-t.y,u===0?0:1)),t}}function sc(t,e,n){if(!e)return t;var r=dv(t*2);return(r+dv(e))%2===0?r/2:(r+(n?1:-1))/2}var Q6=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),Z6={},qO=function(t){mn(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Q6},e.prototype.buildPath=function(n,r){var a,l,u,f;if(this.subPixelOptimize){var d=XO(Z6,r,this.style);a=d.x,l=d.y,u=d.width,f=d.height,d.r=r.r,r=d}else a=r.x,l=r.y,u=r.width,f=r.height;r.r?q6(n,r):n.rect(a,l,u,f)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Gt);qO.prototype.type="rect";const Kr=qO;var QO={fill:"#000"},ZO=2,K6={style:Vt({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},e_.style)},KO=function(t){mn(e,t);function e(n){var r=t.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=QO,r.attr(n),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n<this._children.length;n++){var r=this._children[n];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},e.prototype.updateTransform=function(){var n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(n){var r=this.innerTransformable;return r?r.getLocalTransform(n):t.prototype.getLocalTransform.call(this,n)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,r8(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=n},e.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new Wt(0,0,0,0),r=this._children,a=[],l=null,u=0;u<r.length;u++){var f=r[u],d=f.getBoundingRect(),h=f.getLocalTransform(a);h?(n.copy(d),n.applyTransform(h),l=l||n.clone(),l.union(n)):(l=l||d.clone(),l.union(d))}this._rect=l||n}return this._rect},e.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||QO},e.prototype.setTextContent=function(n){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(n,r){if(!r)return n;var a=r.rich,l=n.rich||a&&{};return Re(n,r),a&&l?(this._mergeRich(l,a),n.rich=l):l&&(n.rich=l),n},e.prototype._mergeRich=function(n,r){for(var a=kn(r),l=0;l<a.length;l++){var u=a[l];n[u]=n[u]||{},Re(n[u],r[u])}},e.prototype.getAnimationStyleProps=function(){return K6},e.prototype._getOrCreateChild=function(n){var r=this._children[this._childCursor];return(!r||!(r instanceof n))&&(r=new n),this._children[this._childCursor++]=r,r.__zr=this.__zr,r.parent=this,r},e.prototype._updatePlainTexts=function(){var n=this.style,r=n.font||Gf,a=n.padding,l=a2(n),u=m6(l,n),f=iT(n),d=!!n.backgroundColor,h=u.outerHeight,p=u.outerWidth,m=u.contentWidth,S=u.lines,_=u.lineHeight,x=this._defaultStyle,E=n.x||0,b=n.y||0,D=n.align||x.align||"left",A=n.verticalAlign||x.verticalAlign||"top",O=E,P=ov(b,u.contentHeight,A);if(f||a){var I=Jp(E,p,D),F=ov(b,h,A);f&&this._renderBackground(n,n,I,F,p,h)}P+=_/2,a&&(O=i2(E,D,a),A==="top"?P+=a[0]:A==="bottom"&&(P-=a[2]));for(var U=0,H=!1,j=r2("fill"in n?n.fill:(H=!0,x.fill)),X=n2("stroke"in n?n.stroke:!d&&(!x.autoStroke||H)?(U=ZO,x.stroke):null),G=n.textShadowBlur>0,ee=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),J=u.calculatedLineHeight,ie=0;ie<S.length;ie++){var ce=this._getOrCreateChild(rT),fe=ce.createStyle();ce.useStyle(fe),fe.text=S[ie],fe.x=O,fe.y=P,D&&(fe.textAlign=D),fe.textBaseline="middle",fe.opacity=n.opacity,fe.strokeFirst=!0,G&&(fe.shadowBlur=n.textShadowBlur||0,fe.shadowColor=n.textShadowColor||"transparent",fe.shadowOffsetX=n.textShadowOffsetX||0,fe.shadowOffsetY=n.textShadowOffsetY||0),fe.stroke=X,fe.fill=j,X&&(fe.lineWidth=n.lineWidth||U,fe.lineDash=n.lineDash,fe.lineDashOffset=n.lineDashOffset||0),fe.font=r,e2(fe,n),P+=_,ee&&ce.setBoundingRect(new Wt(Jp(fe.x,n.width,fe.textAlign),ov(fe.y,J,fe.textBaseline),m,J))}},e.prototype._updateRichTexts=function(){var n=this.style,r=a2(n),a=S6(r,n),l=a.width,u=a.outerWidth,f=a.outerHeight,d=n.padding,h=n.x||0,p=n.y||0,m=this._defaultStyle,S=n.align||m.align,_=n.verticalAlign||m.verticalAlign,x=Jp(h,u,S),E=ov(p,f,_),b=x,D=E;d&&(b+=d[3],D+=d[0]);var A=b+l;iT(n)&&this._renderBackground(n,n,x,E,u,f);for(var O=!!n.backgroundColor,P=0;P<a.lines.length;P++){for(var I=a.lines[P],F=I.tokens,U=F.length,H=I.lineHeight,j=I.width,X=0,G=b,ee=A,J=U-1,ie=void 0;X<U&&(ie=F[X],!ie.align||ie.align==="left");)this._placeToken(ie,n,H,D,G,"left",O),j-=ie.width,G+=ie.width,X++;for(;J>=0&&(ie=F[J],ie.align==="right");)this._placeToken(ie,n,H,D,ee,"right",O),j-=ie.width,ee-=ie.width,J--;for(G+=(l-(G-b)-(A-ee)-j)/2;X<=J;)ie=F[X],this._placeToken(ie,n,H,D,G+ie.width/2,"center",O),G+=ie.width,X++;D+=H}},e.prototype._placeToken=function(n,r,a,l,u,f,d){var h=r.rich[n.styleName]||{};h.text=n.text;var p=n.verticalAlign,m=l+a/2;p==="top"?m=l+n.height/2:p==="bottom"&&(m=l+a-n.height/2);var S=!n.isLineHolder&&iT(h);S&&this._renderBackground(h,r,f==="right"?u-n.width:f==="center"?u-n.width/2:u,m-n.height/2,n.width,n.height);var _=!!h.backgroundColor,x=n.textPadding;x&&(u=i2(u,f,x),m-=n.height/2-x[0]-n.innerHeight/2);var E=this._getOrCreateChild(rT),b=E.createStyle();E.useStyle(b);var D=this._defaultStyle,A=!1,O=0,P=r2("fill"in h?h.fill:"fill"in r?r.fill:(A=!0,D.fill)),I=n2("stroke"in h?h.stroke:"stroke"in r?r.stroke:!_&&!d&&(!D.autoStroke||A)?(O=ZO,D.stroke):null),F=h.textShadowBlur>0||r.textShadowBlur>0;b.text=n.text,b.x=u,b.y=m,F&&(b.shadowBlur=h.textShadowBlur||r.textShadowBlur||0,b.shadowColor=h.textShadowColor||r.textShadowColor||"transparent",b.shadowOffsetX=h.textShadowOffsetX||r.textShadowOffsetX||0,b.shadowOffsetY=h.textShadowOffsetY||r.textShadowOffsetY||0),b.textAlign=f,b.textBaseline="middle",b.font=n.font||Gf,b.opacity=Wd(h.opacity,r.opacity,1),e2(b,h),I&&(b.lineWidth=Wd(h.lineWidth,r.lineWidth,O),b.lineDash=kt(h.lineDash,r.lineDash),b.lineDashOffset=r.lineDashOffset||0,b.stroke=I),P&&(b.fill=P);var U=n.contentWidth,H=n.contentHeight;E.setBoundingRect(new Wt(Jp(b.x,U,b.textAlign),ov(b.y,H,b.textBaseline),U,H))},e.prototype._renderBackground=function(n,r,a,l,u,f){var d=n.backgroundColor,h=n.borderWidth,p=n.borderColor,m=d&&d.image,S=d&&!m,_=n.borderRadius,x=this,E,b;if(S||n.lineHeight||h&&p){E=this._getOrCreateChild(Kr),E.useStyle(E.createStyle()),E.style.fill=null;var D=E.shape;D.x=a,D.y=l,D.width=u,D.height=f,D.r=_,E.dirtyShape()}if(S){var A=E.style;A.fill=d||null,A.fillOpacity=kt(n.fillOpacity,1)}else if(m){b=this._getOrCreateChild(cv),b.onload=function(){x.dirtyStyle()};var O=b.style;O.image=d.image,O.x=a,O.y=l,O.width=u,O.height=f}if(h&&p){var A=E.style;A.lineWidth=h,A.stroke=p,A.strokeOpacity=kt(n.strokeOpacity,1),A.lineDash=n.borderDash,A.lineDashOffset=n.borderDashOffset||0,E.strokeContainThreshold=0,E.hasFill()&&E.hasStroke()&&(A.strokeFirst=!0,A.lineWidth*=2)}var P=(E||b).style;P.shadowBlur=n.shadowBlur||0,P.shadowColor=n.shadowColor||"transparent",P.shadowOffsetX=n.shadowOffsetX||0,P.shadowOffsetY=n.shadowOffsetY||0,P.opacity=Wd(n.opacity,r.opacity,1)},e.makeFont=function(n){var r="";return n8(n)&&(r=[n.fontStyle,n.fontWeight,t8(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&yl(r)||n.textFont||n.font},e}(sv),J6={left:!0,right:1,center:1},e8={top:1,bottom:1,middle:1},JO=["fontStyle","fontWeight","fontSize","fontFamily"];function t8(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?Gw+"px":t+"px"}function e2(t,e){for(var n=0;n<JO.length;n++){var r=JO[n],a=e[r];a!=null&&(t[r]=a)}}function n8(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function r8(t){return t2(t),W(t.rich,t2),t}function t2(t){if(t){t.font=KO.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||J6[e]?e:"left";var n=t.verticalAlign;n==="center"&&(n="middle"),t.verticalAlign=n==null||e8[n]?n:"top";var r=t.padding;r&&(t.padding=oL(t.padding))}}function n2(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function r2(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function i2(t,e,n){return e==="right"?t-n[1]:e==="center"?t+n[3]/2-n[1]/2:t+n[3]}function a2(t){var e=t.text;return e!=null&&(e+=""),e}function iT(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const ko=KO;var yn=jn(),i8=function(t,e,n,r){if(r){var a=yn(r);a.dataIndex=n,a.dataType=e,a.seriesIndex=t,r.type==="group"&&r.traverse(function(l){var u=yn(l);u.seriesIndex=t,u.dataIndex=n,u.dataType=e})}},o2=1,l2={},u2=jn(),aT=jn(),s2=0,oT=1,lT=2,Ml=["emphasis","blur","select"],i_=["normal","emphasis","blur","select"],a8=10,o8=9,fc="highlight",a_="downplay",ug="select",o_="unselect",sg="toggleSelect";function vv(t){return t!=null&&t!=="none"}var f2=new Yp(100);function c2(t){if(et(t)){var e=f2.get(t);return e||(e=$L(t,-.1),f2.put(t,e)),e}else if(b0(t)){var n=Re({},t);return n.colorStops=ot(t.colorStops,function(r){return{offset:r.offset,color:$L(r.color,-.1)}}),n}return t}function l_(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function d2(t){l_(t,"emphasis",lT)}function v2(t){t.hoverState===lT&&l_(t,"normal",s2)}function uT(t){l_(t,"blur",oT)}function h2(t){t.hoverState===oT&&l_(t,"normal",s2)}function l8(t){t.selected=!0}function u8(t){t.selected=!1}function p2(t,e,n){e(t,n)}function xu(t,e,n){p2(t,e,n),t.isGroup&&t.traverse(function(r){p2(r,e,n)})}function s8(t,e,n,r){for(var a=t.style,l={},u=0;u<e.length;u++){var f=e[u],d=a[f];l[f]=d??(r&&r[f])}for(var u=0;u<t.animators.length;u++){var h=t.animators[u];h.__fromStateTransition&&h.__fromStateTransition.indexOf(n)<0&&h.targetName==="style"&&h.saveTo(l,e)}return l}function f8(t,e,n,r){var a=n&&dn(n,"select")>=0,l=!1;if(t instanceof Gt){var u=u2(t),f=a&&u.selectFill||u.normalFill,d=a&&u.selectStroke||u.normalStroke;if(vv(f)||vv(d)){r=r||{};var h=r.style||{};h.fill==="inherit"?(l=!0,r=Re({},r),h=Re({},h),h.fill=f):!vv(h.fill)&&vv(f)?(l=!0,r=Re({},r),h=Re({},h),h.fill=c2(f)):!vv(h.stroke)&&vv(d)&&(l||(r=Re({},r),h=Re({},h)),h.stroke=c2(d)),r.style=h}}if(r&&r.z2==null){l||(r=Re({},r));var p=t.z2EmphasisLift;r.z2=t.z2+(p??a8)}return r}function c8(t,e,n){if(n&&n.z2==null){n=Re({},n);var r=t.z2SelectLift;n.z2=t.z2+(r??o8)}return n}function d8(t,e,n){var r=dn(t.currentStates,e)>=0,a=t.style.opacity,l=r?null:s8(t,["opacity"],e,{opacity:1});n=n||{};var u=n.style||{};return u.opacity==null&&(n=Re({},n),u=Re({opacity:r?a:l.opacity*.1},u),n.style=u),n}function sT(t,e){var n=this.states[t];if(this.style){if(t==="emphasis")return f8(this,t,e,n);if(t==="blur")return d8(this,t,n);if(t==="select")return c8(this,t,n)}return n}function v8(t){t.stateProxy=sT;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=sT),n&&(n.stateProxy=sT)}function g2(t,e){!C2(t,e)&&!t.__highByOuter&&xu(t,d2)}function m2(t,e){!C2(t,e)&&!t.__highByOuter&&xu(t,v2)}function fT(t,e){t.__highByOuter|=1<<(e||0),xu(t,d2)}function cT(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&xu(t,v2)}function h8(t){xu(t,uT)}function y2(t){xu(t,h2)}function _2(t){xu(t,l8)}function S2(t){xu(t,u8)}function C2(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function w2(t){var e=t.getModel(),n=[],r=[];e.eachComponent(function(a,l){var u=aT(l),f=a==="series",d=f?t.getViewOfSeriesModel(l):t.getViewOfComponentModel(l);!f&&r.push(d),u.isBlured&&(d.group.traverse(function(h){h2(h)}),f&&n.push(l)),u.isBlured=!1}),W(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(n,!1,e)})}function dT(t,e,n,r){var a=r.getModel();n=n||"coordinateSystem";function l(h,p){for(var m=0;m<p.length;m++){var S=h.getItemGraphicEl(p[m]);S&&y2(S)}}if(t!=null&&!(!e||e==="none")){var u=a.getSeriesByIndex(t),f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=[];a.eachSeries(function(h){var p=u===h,m=h.coordinateSystem;m&&m.master&&(m=m.master);var S=m&&f?m===f:p;if(!(n==="series"&&!p||n==="coordinateSystem"&&!S||e==="series"&&p)){var _=r.getViewOfSeriesModel(h);if(_.group.traverse(function(b){uT(b)}),Ai(e))l(h.getData(),e);else if(it(e))for(var x=kn(e),E=0;E<x.length;E++)l(h.getData(x[E]),e[x[E]]);d.push(h),aT(h).isBlured=!0}}),a.eachComponent(function(h,p){if(h!=="series"){var m=r.getViewOfComponentModel(p);m&&m.toggleBlurSeries&&m.toggleBlurSeries(d,!0,a)}})}}function vT(t,e,n){if(!(t==null||e==null)){var r=n.getModel().getComponent(t,e);if(r){aT(r).isBlured=!0;var a=n.getViewOfComponentModel(r);!a||!a.focusBlurEnabled||a.group.traverse(function(l){uT(l)})}}}function p8(t,e,n){var r=t.seriesIndex,a=t.getData(e.dataType);if(!a){process.env.NODE_ENV!=="production"&&ci("Unknown dataType "+e.dataType);return}var l=rg(a,e);l=(Be(l)?l[0]:l)||0;var u=a.getItemGraphicEl(l);if(!u)for(var f=a.count(),d=0;!u&&d<f;)u=a.getItemGraphicEl(d++);if(u){var h=yn(u);dT(r,h.focus,h.blurScope,n)}else{var p=t.get(["emphasis","focus"]),m=t.get(["emphasis","blurScope"]);p!=null&&dT(r,p,m,n)}}function hT(t,e,n,r){var a={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||n==null)return a;var l=r.getModel().getComponent(t,e);if(!l)return a;var u=r.getViewOfComponentModel(l);if(!u||!u.findHighDownDispatchers)return a;for(var f=u.findHighDownDispatchers(n),d,h=0;h<f.length;h++)if(process.env.NODE_ENV!=="production"&&!hv(f[h])&&ci("param should be highDownDispatcher"),yn(f[h]).focus==="self"){d=!0;break}return{focusSelf:d,dispatchers:f}}function g8(t,e,n){process.env.NODE_ENV!=="production"&&!hv(t)&&ci("param should be highDownDispatcher");var r=yn(t),a=hT(r.componentMainType,r.componentIndex,r.componentHighDownName,n),l=a.dispatchers,u=a.focusSelf;l?(u&&vT(r.componentMainType,r.componentIndex,n),W(l,function(f){return g2(f,e)})):(dT(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&vT(r.componentMainType,r.componentIndex,n),g2(t,e))}function m8(t,e,n){process.env.NODE_ENV!=="production"&&!hv(t)&&ci("param should be highDownDispatcher"),w2(n);var r=yn(t),a=hT(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;a?W(a,function(l){return m2(l,e)}):m2(t,e)}function y8(t,e,n){if(pT(e)){var r=e.dataType,a=t.getData(r),l=rg(a,e);Be(l)||(l=[l]),t[e.type===sg?"toggleSelect":e.type===ug?"select":"unselect"](l,r)}}function x2(t){var e=t.getAllData();W(e,function(n){var r=n.data,a=n.type;r.eachItemGraphicEl(function(l,u){t.isSelected(u,a)?_2(l):S2(l)})})}function _8(t){var e=[];return t.eachSeries(function(n){var r=n.getAllData();W(r,function(a){a.data;var l=a.type,u=n.getSelectedDataIndices();if(u.length>0){var f={dataIndex:u,seriesIndex:n.seriesIndex};l!=null&&(f.dataType=l),e.push(f)}})}),e}function S8(t,e,n){b2(t,!0),xu(t,v8),x8(t,e,n)}function C8(t){b2(t,!1)}function w8(t,e,n,r){r?C8(t):S8(t,e,n)}function x8(t,e,n){var r=yn(t);e!=null?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var T2=["emphasis","blur","select"],T8={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function b8(t,e,n,r){n=n||"itemStyle";for(var a=0;a<T2.length;a++){var l=T2[a],u=e.getModel([l,n]),f=t.ensureState(l);f.style=r?r(u):u[T8[n]]()}}function b2(t,e){var n=e===!1,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function hv(t){return!!(t&&t.__highDownDispatcher)}function E8(t){var e=l2[t];return e==null&&o2<=32&&(e=l2[t]=o2++),e}function pT(t){var e=t.type;return e===ug||e===o_||e===sg}function E2(t){var e=t.type;return e===fc||e===a_}function D8(t){var e=u2(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}var pv=As.CMD,M8=[[],[],[]],D2=Math.sqrt,R8=Math.atan2;function M2(t,e){if(e){var n=t.data,r=t.len(),a,l,u,f,d,h,p=pv.M,m=pv.C,S=pv.L,_=pv.R,x=pv.A,E=pv.Q;for(u=0,f=0;u<r;){switch(a=n[u++],f=u,l=0,a){case p:l=1;break;case S:l=1;break;case m:l=3;break;case E:l=2;break;case x:var b=e[4],D=e[5],A=D2(e[0]*e[0]+e[1]*e[1]),O=D2(e[2]*e[2]+e[3]*e[3]),P=R8(-e[1]/O,e[0]/A);n[u]*=A,n[u++]+=b,n[u]*=O,n[u++]+=D,n[u++]*=A,n[u++]*=O,n[u++]+=P,n[u++]+=P,u+=2,f=u;break;case _:h[0]=n[u++],h[1]=n[u++],eo(h,h,e),n[f++]=h[0],n[f++]=h[1],h[0]+=n[u++],h[1]+=n[u++],eo(h,h,e),n[f++]=h[0],n[f++]=h[1]}for(d=0;d<l;d++){var I=M8[d];I[0]=n[u++],I[1]=n[u++],eo(I,I,e),n[f++]=I[0],n[f++]=I[1]}}t.increaseVersion()}}var gT=Math.sqrt,u_=Math.sin,s_=Math.cos,fg=Math.PI;function R2(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function mT(t,e){return(t[0]*e[0]+t[1]*e[1])/(R2(t)*R2(e))}function A2(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(mT(t,e))}function L2(t,e,n,r,a,l,u,f,d,h,p){var m=d*(fg/180),S=s_(m)*(t-n)/2+u_(m)*(e-r)/2,_=-1*u_(m)*(t-n)/2+s_(m)*(e-r)/2,x=S*S/(u*u)+_*_/(f*f);x>1&&(u*=gT(x),f*=gT(x));var E=(a===l?-1:1)*gT((u*u*(f*f)-u*u*(_*_)-f*f*(S*S))/(u*u*(_*_)+f*f*(S*S)))||0,b=E*u*_/f,D=E*-f*S/u,A=(t+n)/2+s_(m)*b-u_(m)*D,O=(e+r)/2+u_(m)*b+s_(m)*D,P=A2([1,0],[(S-b)/u,(_-D)/f]),I=[(S-b)/u,(_-D)/f],F=[(-1*S-b)/u,(-1*_-D)/f],U=A2(I,F);if(mT(I,F)<=-1&&(U=fg),mT(I,F)>=1&&(U=0),U<0){var H=Math.round(U/fg*1e6)/1e6;U=fg*2+H%2*fg}p.addData(h,A,O,u,f,P,U,m,l)}var A8=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,L8=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function O8(t){var e=new As;if(!t)return e;var n=0,r=0,a=n,l=r,u,f=As.CMD,d=t.match(A8);if(!d)return e;for(var h=0;h<d.length;h++){for(var p=d[h],m=p.charAt(0),S=void 0,_=p.match(L8)||[],x=_.length,E=0;E<x;E++)_[E]=parseFloat(_[E]);for(var b=0;b<x;){var D=void 0,A=void 0,O=void 0,P=void 0,I=void 0,F=void 0,U=void 0,H=n,j=r,X=void 0,G=void 0;switch(m){case"l":n+=_[b++],r+=_[b++],S=f.L,e.addData(S,n,r);break;case"L":n=_[b++],r=_[b++],S=f.L,e.addData(S,n,r);break;case"m":n+=_[b++],r+=_[b++],S=f.M,e.addData(S,n,r),a=n,l=r,m="l";break;case"M":n=_[b++],r=_[b++],S=f.M,e.addData(S,n,r),a=n,l=r,m="L";break;case"h":n+=_[b++],S=f.L,e.addData(S,n,r);break;case"H":n=_[b++],S=f.L,e.addData(S,n,r);break;case"v":r+=_[b++],S=f.L,e.addData(S,n,r);break;case"V":r=_[b++],S=f.L,e.addData(S,n,r);break;case"C":S=f.C,e.addData(S,_[b++],_[b++],_[b++],_[b++],_[b++],_[b++]),n=_[b-2],r=_[b-1];break;case"c":S=f.C,e.addData(S,_[b++]+n,_[b++]+r,_[b++]+n,_[b++]+r,_[b++]+n,_[b++]+r),n+=_[b-2],r+=_[b-1];break;case"S":D=n,A=r,X=e.len(),G=e.data,u===f.C&&(D+=n-G[X-4],A+=r-G[X-3]),S=f.C,H=_[b++],j=_[b++],n=_[b++],r=_[b++],e.addData(S,D,A,H,j,n,r);break;case"s":D=n,A=r,X=e.len(),G=e.data,u===f.C&&(D+=n-G[X-4],A+=r-G[X-3]),S=f.C,H=n+_[b++],j=r+_[b++],n+=_[b++],r+=_[b++],e.addData(S,D,A,H,j,n,r);break;case"Q":H=_[b++],j=_[b++],n=_[b++],r=_[b++],S=f.Q,e.addData(S,H,j,n,r);break;case"q":H=_[b++]+n,j=_[b++]+r,n+=_[b++],r+=_[b++],S=f.Q,e.addData(S,H,j,n,r);break;case"T":D=n,A=r,X=e.len(),G=e.data,u===f.Q&&(D+=n-G[X-4],A+=r-G[X-3]),n=_[b++],r=_[b++],S=f.Q,e.addData(S,D,A,n,r);break;case"t":D=n,A=r,X=e.len(),G=e.data,u===f.Q&&(D+=n-G[X-4],A+=r-G[X-3]),n+=_[b++],r+=_[b++],S=f.Q,e.addData(S,D,A,n,r);break;case"A":O=_[b++],P=_[b++],I=_[b++],F=_[b++],U=_[b++],H=n,j=r,n=_[b++],r=_[b++],S=f.A,L2(H,j,n,r,F,U,O,P,I,S,e);break;case"a":O=_[b++],P=_[b++],I=_[b++],F=_[b++],U=_[b++],H=n,j=r,n+=_[b++],r+=_[b++],S=f.A,L2(H,j,n,r,F,U,O,P,I,S,e);break}}(m==="z"||m==="Z")&&(S=f.Z,e.addData(S),n=a,r=l),u=S}return e.toStatic(),e}var O2=function(t){mn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(n){},e}(Gt);function k2(t){return t.setData!=null}function N2(t,e){var n=O8(t),r=Re({},e);return r.buildPath=function(a){if(k2(a)){a.setData(n.data);var l=a.getContext();l&&a.rebuildPath(l,1)}else{var l=a;n.rebuildPath(l,1)}},r.applyTransform=function(a){M2(n,a),this.dirtyShape()},r}function k8(t,e){return new O2(N2(t,e))}function N8(t,e){var n=N2(t,e),r=function(a){mn(l,a);function l(u){var f=a.call(this,u)||this;return f.applyTransform=n.applyTransform,f.buildPath=n.buildPath,f}return l}(O2);return r}function P8(t,e){for(var n=[],r=t.length,a=0;a<r;a++){var l=t[a];n.push(l.getUpdatedPathProxy(!0))}var u=new Gt(e);return u.createPathProxy(),u.buildPath=function(f){if(k2(f)){f.appendPath(n);var d=f.getContext();d&&f.rebuildPath(d,1)}},u}function yT(t,e){e=e||{};var n=new Gt;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?M2(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}var I8=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),P2=function(t){mn(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new I8},e.prototype.buildPath=function(n,r){n.moveTo(r.cx+r.r,r.cy),n.arc(r.cx,r.cy,r.r,0,Math.PI*2)},e}(Gt);P2.prototype.type="circle";const _T=P2;var z8=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),I2=function(t){mn(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new z8},e.prototype.buildPath=function(n,r){var a=.5522848,l=r.cx,u=r.cy,f=r.rx,d=r.ry,h=f*a,p=d*a;n.moveTo(l-f,u),n.bezierCurveTo(l-f,u-p,l-h,u-d,l,u-d),n.bezierCurveTo(l+h,u-d,l+f,u-p,l+f,u),n.bezierCurveTo(l+f,u+p,l+h,u+d,l,u+d),n.bezierCurveTo(l-h,u+d,l-f,u+p,l-f,u),n.closePath()},e}(Gt);I2.prototype.type="ellipse";const z2=I2;var F2=Math.PI,ST=F2*2,cc=Math.sin,gv=Math.cos,F8=Math.acos,di=Math.atan2,B2=Math.abs,cg=Math.sqrt,dg=Math.max,Rl=Math.min,No=1e-4;function B8(t,e,n,r,a,l,u,f){var d=n-t,h=r-e,p=u-a,m=f-l,S=m*d-p*h;if(!(S*S<No))return S=(p*(e-l)-m*(t-a))/S,[t+S*d,e+S*h]}function f_(t,e,n,r,a,l,u){var f=t-n,d=e-r,h=(u?l:-l)/cg(f*f+d*d),p=h*d,m=-h*f,S=t+p,_=e+m,x=n+p,E=r+m,b=(S+x)/2,D=(_+E)/2,A=x-S,O=E-_,P=A*A+O*O,I=a-l,F=S*E-x*_,U=(O<0?-1:1)*cg(dg(0,I*I*P-F*F)),H=(F*O-A*U)/P,j=(-F*A-O*U)/P,X=(F*O+A*U)/P,G=(-F*A+O*U)/P,ee=H-b,J=j-D,ie=X-b,ce=G-D;return ee*ee+J*J>ie*ie+ce*ce&&(H=X,j=G),{cx:H,cy:j,x0:-p,y0:-m,x1:H*(a/I-1),y1:j*(a/I-1)}}function U8(t){var e;if(Be(t)){var n=t.length;if(!n)return t;n===1?e=[t[0],t[0],0,0]:n===2?e=[t[0],t[0],t[1],t[1]]:n===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function V8(t,e){var n,r=dg(e.r,0),a=dg(e.r0||0,0),l=r>0,u=a>0;if(!(!l&&!u)){if(l||(r=a,a=0),a>r){var f=r;r=a,a=f}var d=e.startAngle,h=e.endAngle;if(!(isNaN(d)||isNaN(h))){var p=e.cx,m=e.cy,S=!!e.clockwise,_=B2(h-d),x=_>ST&&_%ST;if(x>No&&(_=x),!(r>No))t.moveTo(p,m);else if(_>ST-No)t.moveTo(p+r*gv(d),m+r*cc(d)),t.arc(p,m,r,d,h,!S),a>No&&(t.moveTo(p+a*gv(h),m+a*cc(h)),t.arc(p,m,a,h,d,S));else{var E=void 0,b=void 0,D=void 0,A=void 0,O=void 0,P=void 0,I=void 0,F=void 0,U=void 0,H=void 0,j=void 0,X=void 0,G=void 0,ee=void 0,J=void 0,ie=void 0,ce=r*gv(d),fe=r*cc(d),Ne=a*gv(h),ae=a*cc(h),ge=_>No;if(ge){var pe=e.cornerRadius;pe&&(n=U8(pe),E=n[0],b=n[1],D=n[2],A=n[3]);var Le=B2(r-a)/2;if(O=Rl(Le,D),P=Rl(Le,A),I=Rl(Le,E),F=Rl(Le,b),j=U=dg(O,P),X=H=dg(I,F),(U>No||H>No)&&(G=r*gv(h),ee=r*cc(h),J=a*gv(d),ie=a*cc(d),_<F2)){var Ge=B8(ce,fe,J,ie,G,ee,Ne,ae);if(Ge){var St=ce-Ge[0],It=fe-Ge[1],Dn=G-Ge[0],Xt=ee-Ge[1],Mn=1/cc(F8((St*Dn+It*Xt)/(cg(St*St+It*It)*cg(Dn*Dn+Xt*Xt)))/2),ln=cg(Ge[0]*Ge[0]+Ge[1]*Ge[1]);j=Rl(U,(r-ln)/(Mn+1)),X=Rl(H,(a-ln)/(Mn-1))}}}if(!ge)t.moveTo(p+ce,m+fe);else if(j>No){var zt=Rl(D,j),Ft=Rl(A,j),$e=f_(J,ie,ce,fe,r,zt,S),Se=f_(G,ee,Ne,ae,r,Ft,S);t.moveTo(p+$e.cx+$e.x0,m+$e.cy+$e.y0),j<U&&zt===Ft?t.arc(p+$e.cx,m+$e.cy,j,di($e.y0,$e.x0),di(Se.y0,Se.x0),!S):(zt>0&&t.arc(p+$e.cx,m+$e.cy,zt,di($e.y0,$e.x0),di($e.y1,$e.x1),!S),t.arc(p,m,r,di($e.cy+$e.y1,$e.cx+$e.x1),di(Se.cy+Se.y1,Se.cx+Se.x1),!S),Ft>0&&t.arc(p+Se.cx,m+Se.cy,Ft,di(Se.y1,Se.x1),di(Se.y0,Se.x0),!S))}else t.moveTo(p+ce,m+fe),t.arc(p,m,r,d,h,!S);if(!(a>No)||!ge)t.lineTo(p+Ne,m+ae);else if(X>No){var zt=Rl(E,X),Ft=Rl(b,X),$e=f_(Ne,ae,G,ee,a,-Ft,S),Se=f_(ce,fe,J,ie,a,-zt,S);t.lineTo(p+$e.cx+$e.x0,m+$e.cy+$e.y0),X<H&&zt===Ft?t.arc(p+$e.cx,m+$e.cy,X,di($e.y0,$e.x0),di(Se.y0,Se.x0),!S):(Ft>0&&t.arc(p+$e.cx,m+$e.cy,Ft,di($e.y0,$e.x0),di($e.y1,$e.x1),!S),t.arc(p,m,a,di($e.cy+$e.y1,$e.cx+$e.x1),di(Se.cy+Se.y1,Se.cx+Se.x1),S),zt>0&&t.arc(p+Se.cx,m+Se.cy,zt,di(Se.y1,Se.x1),di(Se.y0,Se.x0),!S))}else t.lineTo(p+Ne,m+ae),t.arc(p,m,a,h,d,S)}t.closePath()}}}var H8=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t}(),U2=function(t){mn(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new H8},e.prototype.buildPath=function(n,r){V8(n,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Gt);U2.prototype.type="sector";const dc=U2;var G8=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),V2=function(t){mn(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new G8},e.prototype.buildPath=function(n,r){var a=r.cx,l=r.cy,u=Math.PI*2;n.moveTo(a+r.r,l),n.arc(a,l,r.r,0,u,!1),n.moveTo(a+r.r0,l),n.arc(a,l,r.r0,0,u,!0)},e}(Gt);V2.prototype.type="ring";const H2=V2;function $8(t,e,n,r){var a=[],l=[],u=[],f=[],d,h,p,m;if(r){p=[1/0,1/0],m=[-1/0,-1/0];for(var S=0,_=t.length;S<_;S++)Qd(p,p,t[S]),Zd(m,m,t[S]);Qd(p,p,r[0]),Zd(m,m,r[1])}for(var S=0,_=t.length;S<_;S++){var x=t[S];if(n)d=t[S?S-1:_-1],h=t[(S+1)%_];else if(S===0||S===_-1){a.push(dH(t[S]));continue}else d=t[S-1],h=t[S+1];vH(l,h,d),Xw(l,l,e);var E=qw(x,d),b=qw(x,h),D=E+b;D!==0&&(E/=D,b/=D),Xw(u,l,-E),Xw(f,l,b);var A=fL([],x,u),O=fL([],x,f);r&&(Zd(A,A,p),Qd(A,A,m),Zd(O,O,p),Qd(O,O,m)),a.push(A),a.push(O)}return n&&a.push(a.shift()),a}function G2(t,e,n){var r=e.smooth,a=e.points;if(a&&a.length>=2){if(r){var l=$8(a,r,n,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var u=a.length,f=0;f<(n?u:u-1);f++){var d=l[f*2],h=l[f*2+1],p=a[(f+1)%u];t.bezierCurveTo(d[0],d[1],h[0],h[1],p[0],p[1])}}else{t.moveTo(a[0][0],a[0][1]);for(var f=1,m=a.length;f<m;f++)t.lineTo(a[f][0],a[f][1])}n&&t.closePath()}}var j8=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),$2=function(t){mn(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new j8},e.prototype.buildPath=function(n,r){G2(n,r,!0)},e}(Gt);$2.prototype.type="polygon";const CT=$2;var Y8=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),j2=function(t){mn(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Y8},e.prototype.buildPath=function(n,r){G2(n,r,!1)},e}(Gt);j2.prototype.type="polyline";const wT=j2;var W8={},X8=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Y2=function(t){mn(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new X8},e.prototype.buildPath=function(n,r){var a,l,u,f;if(this.subPixelOptimize){var d=WO(W8,r,this.style);a=d.x1,l=d.y1,u=d.x2,f=d.y2}else a=r.x1,l=r.y1,u=r.x2,f=r.y2;var h=r.percent;h!==0&&(n.moveTo(a,l),h<1&&(u=a*(1-h)+u*h,f=l*(1-h)+f*h),n.lineTo(u,f))},e.prototype.pointAt=function(n){var r=this.shape;return[r.x1*(1-n)+r.x2*n,r.y1*(1-n)+r.y2*n]},e}(Gt);Y2.prototype.type="line";const vc=Y2;var aa=[],q8=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function W2(t,e,n){var r=t.cpx2,a=t.cpy2;return r!=null||a!=null?[(n?LL:Qr)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?LL:Qr)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?PL:fi)(t.x1,t.cpx1,t.x2,e),(n?PL:fi)(t.y1,t.cpy1,t.y2,e)]}var X2=function(t){mn(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new q8},e.prototype.buildPath=function(n,r){var a=r.x1,l=r.y1,u=r.x2,f=r.y2,d=r.cpx1,h=r.cpy1,p=r.cpx2,m=r.cpy2,S=r.percent;S!==0&&(n.moveTo(a,l),p==null||m==null?(S<1&&(z0(a,d,u,S,aa),d=aa[1],u=aa[2],z0(l,h,f,S,aa),h=aa[1],f=aa[2]),n.quadraticCurveTo(d,h,u,f)):(S<1&&(Es(a,d,p,u,S,aa),d=aa[1],p=aa[2],u=aa[3],Es(l,h,m,f,S,aa),h=aa[1],m=aa[2],f=aa[3]),n.bezierCurveTo(d,h,p,m,u,f)))},e.prototype.pointAt=function(n){return W2(this.shape,n,!1)},e.prototype.tangentAt=function(n){var r=W2(this.shape,n,!0);return gH(r,r)},e}(Gt);X2.prototype.type="bezier-curve";const q2=X2;var Q8=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),Q2=function(t){mn(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Q8},e.prototype.buildPath=function(n,r){var a=r.cx,l=r.cy,u=Math.max(r.r,0),f=r.startAngle,d=r.endAngle,h=r.clockwise,p=Math.cos(f),m=Math.sin(f);n.moveTo(p*u+a,m*u+l),n.arc(a,l,u,f,d,!h)},e}(Gt);Q2.prototype.type="arc";const xT=Q2;var Z8=function(t){mn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="compound",n}return e.prototype._updatePathDirty=function(){for(var n=this.shape.paths,r=this.shapeChanged(),a=0;a<n.length;a++)r=r||n[a].shapeChanged();r&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],r=this.getGlobalScale(),a=0;a<n.length;a++)n[a].path||n[a].createPathProxy(),n[a].path.setScale(r[0],r[1],n[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(n,r){for(var a=r.paths||[],l=0;l<a.length;l++)a[l].buildPath(n,a[l].shape,!0)},e.prototype.afterBrush=function(){for(var n=this.shape.paths||[],r=0;r<n.length;r++)n[r].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Gt.prototype.getBoundingRect.call(this)},e}(Gt);const K8=Z8;var J8=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,n){this.colorStops.push({offset:e,color:n})},t}();const Z2=J8;var eG=function(t){mn(e,t);function e(n,r,a,l,u,f){var d=t.call(this,u)||this;return d.x=n??0,d.y=r??0,d.x2=a??1,d.y2=l??0,d.type="linear",d.global=f||!1,d}return e}(Z2);const tG=eG;var nG=function(t){mn(e,t);function e(n,r,a,l,u){var f=t.call(this,l)||this;return f.x=n??.5,f.y=r??.5,f.r=a??.5,f.type="radial",f.global=u||!1,f}return e}(Z2);const rG=nG;var hc=[0,0],pc=[0,0],c_=new ht,d_=new ht,iG=function(){function t(e,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new ht;for(var r=0;r<2;r++)this._axes[r]=new ht;e&&this.fromBoundingRect(e,n)}return t.prototype.fromBoundingRect=function(e,n){var r=this._corners,a=this._axes,l=e.x,u=e.y,f=l+e.width,d=u+e.height;if(r[0].set(l,u),r[1].set(f,u),r[2].set(f,d),r[3].set(l,d),n)for(var h=0;h<4;h++)r[h].transform(n);ht.sub(a[0],r[1],r[0]),ht.sub(a[1],r[3],r[0]),a[0].normalize(),a[1].normalize();for(var h=0;h<2;h++)this._origin[h]=a[h].dot(r[0])},t.prototype.intersect=function(e,n){var r=!0,a=!n;return c_.set(1/0,1/0),d_.set(0,0),!this._intersectCheckOneSide(this,e,c_,d_,a,1)&&(r=!1,a)||!this._intersectCheckOneSide(e,this,c_,d_,a,-1)&&(r=!1,a)||a||ht.copy(n,r?c_:d_),r},t.prototype._intersectCheckOneSide=function(e,n,r,a,l,u){for(var f=!0,d=0;d<2;d++){var h=this._axes[d];if(this._getProjMinMaxOnAxis(d,e._corners,hc),this._getProjMinMaxOnAxis(d,n._corners,pc),hc[1]<pc[0]||hc[0]>pc[1]){if(f=!1,l)return f;var p=Math.abs(pc[0]-hc[1]),m=Math.abs(hc[0]-pc[1]);Math.min(p,m)>a.len()&&(p<m?ht.scale(a,h,-p*u):ht.scale(a,h,m*u))}else if(r){var p=Math.abs(pc[0]-hc[1]),m=Math.abs(hc[0]-pc[1]);Math.min(p,m)<r.len()&&(p<m?ht.scale(r,h,p*u):ht.scale(r,h,-m*u))}}return f},t.prototype._getProjMinMaxOnAxis=function(e,n,r){for(var a=this._axes[e],l=this._origin,u=n[0].dot(a)+l[e],f=u,d=u,h=1;h<n.length;h++){var p=n[h].dot(a)+l[e];f=Math.min(p,f),d=Math.max(p,d)}r[0]=f,r[1]=d},t}();const v_=iG;var aG=[],oG=function(t){mn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return e.prototype.traverse=function(n,r){n.call(r,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(n,r){r?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},e.prototype.addDisplayables=function(n,r){r=r||!1;for(var a=0;a<n.length;a++)this.addDisplayable(n[a],r)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(n){for(var r=this._cursor;r<this._displayables.length;r++)n&&n(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)n&&n(this._temporaryDisplayables[r])},e.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var r=this._displayables[n];r.parent=this,r.update(),r.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var r=this._temporaryDisplayables[n];r.parent=this,r.update(),r.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new Wt(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var a=this._displayables[r],l=a.getBoundingRect().clone();a.needLocalTransform()&&l.applyTransform(a.getLocalTransform(aG)),n.union(l)}this._rect=n}return this._rect},e.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),l=this.getBoundingRect();if(l.contain(a[0],a[1]))for(var u=0;u<this._displayables.length;u++){var f=this._displayables[u];if(f.contain(n,r))return!0}return!1},e}(sv);const lG=oG;var K2=jn();function h_(t,e,n,r,a){var l;if(e&&e.ecModel){var u=e.ecModel.getUpdatePayload();l=u&&u.animation}var f=e&&e.isAnimationEnabled(),d=t==="update";if(f){var h=void 0,p=void 0,m=void 0;r?(h=kt(r.duration,200),p=kt(r.easing,"cubicOut"),m=0):(h=e.getShallow(d?"animationDurationUpdate":"animationDuration"),p=e.getShallow(d?"animationEasingUpdate":"animationEasing"),m=e.getShallow(d?"animationDelayUpdate":"animationDelay")),l&&(l.duration!=null&&(h=l.duration),l.easing!=null&&(p=l.easing),l.delay!=null&&(m=l.delay)),_t(m)&&(m=m(n,a)),_t(h)&&(h=h(n));var S={duration:h||0,delay:m,easing:p};return S}else return null}function TT(t,e,n,r,a,l,u){var f=!1,d;_t(a)?(u=l,l=a,a=null):it(a)&&(l=a.cb,u=a.during,f=a.isFrom,d=a.removeOpt,a=a.dataIndex);var h=t==="leave";h||e.stopAnimation("leave");var p=h_(t,r,a,h?d||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,a):null);if(p&&p.duration>0){var m=p.duration,S=p.delay,_=p.easing,x={duration:m,delay:S||0,easing:_,done:l,force:!!l||!!u,setToFinal:!h,scope:t,during:u};f?e.animateFrom(n,x):e.animateTo(n,x)}else e.stopAnimation(),!f&&e.attr(n),u&&u(1),l&&l()}function Po(t,e,n,r,a,l){TT("update",t,e,n,r,a,l)}function Io(t,e,n,r,a,l){TT("enter",t,e,n,r,a,l)}function mv(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if(n.scope==="leave")return!0}return!1}function J2(t,e,n,r,a,l){mv(t)||TT("leave",t,e,n,r,a,l)}function ek(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),J2(t,{style:{opacity:0}},e,n,r)}function bT(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(a){a.isGroup||ek(a,e,n,r)}):ek(t,e,n,r)}function uG(t){K2(t).oldStyle=t.style}function sG(t){return K2(t).oldStyle}var p_=Math.max,g_=Math.min,ET={};function fG(t){return Gt.extend(t)}var cG=N8;function dG(t,e){return cG(t,e)}function zo(t,e){ET[t]=e}function vG(t){if(ET.hasOwnProperty(t))return ET[t]}function DT(t,e,n,r){var a=k8(t,e);return n&&(r==="center"&&(n=nk(n,a.getBoundingRect())),rk(a,n)),a}function tk(t,e,n){var r=new cv({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(n==="center"){var l={width:a.width,height:a.height};r.setStyle(nk(e,l))}}});return r}function nk(t,e){var n=e.width/e.height,r=t.height*n,a;r<=t.width?a=t.height:(r=t.width,a=r/n);var l=t.x+t.width/2,u=t.y+t.height/2;return{x:l-r/2,y:u-a/2,width:r,height:a}}var hG=P8;function rk(t,e){if(t.applyTransform){var n=t.getBoundingRect(),r=n.calculateTransform(e);t.applyTransform(r)}}function vg(t,e){return WO(t,t,{lineWidth:e}),t}function pG(t){return XO(t.shape,t.shape,t.style),t}var gG=sc;function mG(t,e){for(var n=ix([]);t&&t!==e;)Jd(n,t.getLocalTransform(),n),t=t.parent;return n}function MT(t,e,n){return e&&!Ai(e)&&(e=Kp.getLocalTransform(e)),n&&(e=R0([],e)),eo([],t,e)}function yG(t,e,n){var r=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),l=[t==="left"?-r:t==="right"?r:0,t==="top"?-a:t==="bottom"?a:0];return l=MT(l,e,n),Math.abs(l[0])>Math.abs(l[1])?l[0]>0?"right":"left":l[1]>0?"bottom":"top"}function ik(t){return!t.isGroup}function _G(t){return t.shape!=null}function ak(t,e,n){if(!t||!e)return;function r(u){var f={};return u.traverse(function(d){ik(d)&&d.anid&&(f[d.anid]=d)}),f}function a(u){var f={x:u.x,y:u.y,rotation:u.rotation};return _G(u)&&(f.shape=Re({},u.shape)),f}var l=r(t);e.traverse(function(u){if(ik(u)&&u.anid){var f=l[u.anid];if(f){var d=a(u);u.attr(a(f)),Po(u,d,n,yn(u).dataIndex)}}})}function SG(t,e){return ot(t,function(n){var r=n[0];r=p_(r,e.x),r=g_(r,e.x+e.width);var a=n[1];return a=p_(a,e.y),a=g_(a,e.y+e.height),[r,a]})}function CG(t,e){var n=p_(t.x,e.x),r=g_(t.x+t.width,e.x+e.width),a=p_(t.y,e.y),l=g_(t.y+t.height,e.y+e.height);if(r>=n&&l>=a)return{x:n,y:a,width:r-n,height:l-a}}function ok(t,e,n){var r=Re({rectHover:!0},e),a=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(a.image=t.slice(8),Vt(a,n),new cv(r)):DT(t.replace("path://",""),r,n,"center")}function wG(t,e,n,r,a){for(var l=0,u=a[a.length-1];l<a.length;l++){var f=a[l];if(lk(t,e,n,r,f[0],f[1],u[0],u[1]))return!0;u=f}}function lk(t,e,n,r,a,l,u,f){var d=n-t,h=r-e,p=u-a,m=f-l,S=RT(p,m,d,h);if(xG(S))return!1;var _=t-a,x=e-l,E=RT(_,x,d,h)/S;if(E<0||E>1)return!1;var b=RT(_,x,p,m)/S;return!(b<0||b>1)}function RT(t,e,n,r){return t*r-n*e}function xG(t){return t<=1e-6&&t>=-1e-6}function uk(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,a=et(e)?{formatter:e}:e,l=n.mainType,u=n.componentIndex,f={componentType:l,name:r,$vars:["name"]};f[l+"Index"]=u;var d=t.formatterParamsExtra;d&&W(kn(d),function(p){yu(f,p)||(f[p]=d[p],f.$vars.push(p))});var h=yn(t.el);h.componentMainType=l,h.componentIndex=u,h.tooltipConfig={name:r,option:Vt({content:r,formatterParams:f},a)}}function sk(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function AT(t,e){if(t)if(Be(t))for(var n=0;n<t.length;n++)sk(t[n],e);else sk(t,e)}zo("circle",_T),zo("ellipse",z2),zo("sector",dc),zo("ring",H2),zo("polygon",CT),zo("polyline",wT),zo("rect",Kr),zo("line",vc),zo("bezierCurve",q2),zo("arc",xT);const TG=Object.freeze(Object.defineProperty({__proto__:null,updateProps:Po,initProps:Io,removeElement:J2,removeElementWithFadeOut:bT,isElementRemoved:mv,extendShape:fG,extendPath:dG,registerShape:zo,getShapeClass:vG,makePath:DT,makeImage:tk,mergePath:hG,resizePath:rk,subPixelOptimizeLine:vg,subPixelOptimizeRect:pG,subPixelOptimize:gG,getTransform:mG,applyTransform:MT,transformDirection:yG,groupTransition:ak,clipPointsByRect:SG,clipRectByRect:CG,createIcon:ok,linePolygonIntersect:wG,lineLineIntersect:lk,setTooltipConfig:uk,traverseElements:AT,Group:Cl,Image:cv,Text:ko,Circle:_T,Ellipse:z2,Sector:dc,Ring:H2,Polygon:CT,Polyline:wT,Rect:Kr,Line:vc,BezierCurve:q2,Arc:xT,IncrementalDisplayable:lG,CompoundPath:K8,LinearGradient:tG,RadialGradient:rG,BoundingRect:Wt,OrientedBoundingRect:v_,Point:ht,Path:Gt},Symbol.toStringTag,{value:"Module"}));var m_={};function fk(t,e){for(var n=0;n<Ml.length;n++){var r=Ml[n],a=e[r],l=t.ensureState(r);l.style=l.style||{},l.style.text=a}var u=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(u,!0)}function LT(t,e,n){var r=t.labelFetcher,a=t.labelDataIndex,l=t.labelDimIndex,u=e.normal,f;r&&(f=r.getFormattedLabel(a,"normal",null,l,u&&u.get("formatter"),n!=null?{interpolatedValue:n}:null)),f==null&&(f=_t(t.defaultText)?t.defaultText(a,t,n):t.defaultText);for(var d={normal:f},h=0;h<Ml.length;h++){var p=Ml[h],m=e[p];d[p]=kt(r?r.getFormattedLabel(a,p,null,l,m&&m.get("formatter")):null,f)}return d}function bG(t,e,n,r){n=n||m_;for(var a=t instanceof ko,l=!1,u=0;u<i_.length;u++){var f=e[i_[u]];if(f&&f.getShallow("show")){l=!0;break}}var d=a?t:t.getTextContent();if(l){a||(d||(d=new ko,t.setTextContent(d)),t.stateProxy&&(d.stateProxy=t.stateProxy));var h=LT(n,e),p=e.normal,m=!!p.getShallow("show"),S=gc(p,r&&r.normal,n,!1,!a);S.text=h.normal,a||t.setTextConfig(ck(p,n,!1));for(var u=0;u<Ml.length;u++){var _=Ml[u],f=e[_];if(f){var x=d.ensureState(_),E=!!kt(f.getShallow("show"),m);if(E!==m&&(x.ignore=!E),x.style=gc(f,r&&r[_],n,!0,!a),x.style.text=h[_],!a){var b=t.ensureState(_);b.textConfig=ck(f,n,!0)}}}d.silent=!!p.getShallow("silent"),d.style.x!=null&&(S.x=d.style.x),d.style.y!=null&&(S.y=d.style.y),d.ignore=!m,d.useStyle(S),d.dirty(),n.enableTextSetter&&(hg(d).setLabelText=function(D){var A=LT(n,e,D);fk(d,A)})}else d&&(d.ignore=!0);t.dirty()}function EG(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<Ml.length;r++){var a=Ml[r];n[a]=t.getModel([a,e])}return n}function gc(t,e,n,r,a){var l={};return DG(l,t,n,r,a),e&&Re(l,e),l}function ck(t,e,n){e=e||{};var r={},a,l=t.getShallow("rotate"),u=kt(t.getShallow("distance"),n?null:5),f=t.getShallow("offset");return a=t.getShallow("position")||(n?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(r.position=a),f!=null&&(r.offset=f),l!=null&&(l*=Math.PI/180,r.rotation=l),u!=null&&(r.distance=u),r.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",r}function DG(t,e,n,r,a){n=n||m_;var l=e.ecModel,u=l&&l.option.textStyle,f=MG(e),d;if(f){d={};for(var h in f)if(f.hasOwnProperty(h)){var p=e.getModel(["rich",h]);pk(d[h]={},p,u,n,r,a,!1,!0)}}d&&(t.rich=d);var m=e.get("overflow");m&&(t.overflow=m);var S=e.get("minMargin");S!=null&&(t.margin=S),pk(t,e,u,n,r,a,!0,!1)}function MG(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||m_).rich;if(n){e=e||{};for(var r=kn(n),a=0;a<r.length;a++){var l=r[a];e[l]=1}}t=t.parentModel}return e}var dk=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],vk=["align","lineHeight","width","height","tag","verticalAlign"],hk=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function pk(t,e,n,r,a,l,u,f){n=!a&&n||m_;var d=r&&r.inheritColor,h=e.getShallow("color"),p=e.getShallow("textBorderColor"),m=kt(e.getShallow("opacity"),n.opacity);(h==="inherit"||h==="auto")&&(process.env.NODE_ENV!=="production"&&h==="auto"&&Br("color: 'auto'","color: 'inherit'"),d?h=d:h=null),(p==="inherit"||p==="auto")&&(process.env.NODE_ENV!=="production"&&p==="auto"&&Br("color: 'auto'","color: 'inherit'"),d?p=d:p=null),l||(h=h||n.color,p=p||n.textBorderColor),h!=null&&(t.fill=h),p!=null&&(t.stroke=p);var S=kt(e.getShallow("textBorderWidth"),n.textBorderWidth);S!=null&&(t.lineWidth=S);var _=kt(e.getShallow("textBorderType"),n.textBorderType);_!=null&&(t.lineDash=_);var x=kt(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);x!=null&&(t.lineDashOffset=x),!a&&m==null&&!f&&(m=r&&r.defaultOpacity),m!=null&&(t.opacity=m),!a&&!l&&t.fill==null&&r.inheritColor&&(t.fill=r.inheritColor);for(var E=0;E<dk.length;E++){var b=dk[E],D=kt(e.getShallow(b),n[b]);D!=null&&(t[b]=D)}for(var E=0;E<vk.length;E++){var b=vk[E],D=e.getShallow(b);D!=null&&(t[b]=D)}if(t.verticalAlign==null){var A=e.getShallow("baseline");A!=null&&(t.verticalAlign=A)}if(!u||!r.disableBox){for(var E=0;E<hk.length;E++){var b=hk[E],D=e.getShallow(b);D!=null&&(t[b]=D)}var O=e.getShallow("borderType");O!=null&&(t.borderDash=O),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&d&&(process.env.NODE_ENV!=="production"&&t.backgroundColor==="auto"&&Br("backgroundColor: 'auto'","backgroundColor: 'inherit'"),t.backgroundColor=d),(t.borderColor==="auto"||t.borderColor==="inherit")&&d&&(process.env.NODE_ENV!=="production"&&t.borderColor==="auto"&&Br("borderColor: 'auto'","borderColor: 'inherit'"),t.borderColor=d)}}function RG(t,e){var n=e&&e.getModel("textStyle");return yl([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 hg=jn();function AG(t,e,n,r){if(t){var a=hg(t);a.prevValue=a.value,a.value=n;var l=e.normal;a.valueAnimation=l.get("valueAnimation"),a.valueAnimation&&(a.precision=l.get("precision"),a.defaultInterpolatedText=r,a.statesModels=e)}}function LG(t,e,n,r,a){var l=hg(t);if(!l.valueAnimation||l.prevValue===l.value)return;var u=l.defaultInterpolatedText,f=kt(l.interpolatedValue,l.prevValue),d=l.value;function h(p){var m=n6(n,l.precision,f,d,p);l.interpolatedValue=p===1?null:m;var S=LT({labelDataIndex:e,labelFetcher:a,defaultText:u?u(m):m+""},l.statesModels,m);fk(t,S)}t.percent=0,(l.prevValue==null?Io:Po)(t,{percent:1},r,e,null,h)}var OG=["textStyle","color"],OT=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],kT=new ko,kG=function(){function t(){}return t.prototype.getTextColor=function(e){var n=this.ecModel;return this.getShallow("color")||(!e&&n?n.get(OG):null)},t.prototype.getFont=function(){return RG({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var n={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<OT.length;r++)n[OT[r]]=this.getShallow(OT[r]);return kT.useStyle(n),kT.update(),kT.getBoundingRect()},t}();const NG=kG;var gk=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],PG=ag(gk),IG=function(){function t(){}return t.prototype.getLineStyle=function(e){return PG(this,e)},t}(),mk=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],zG=ag(mk),FG=function(){function t(){}return t.prototype.getItemStyle=function(e,n){return zG(this,e,n)},t}(),mc=function(){function t(e,n,r){this.parentModel=n,this.ecModel=r,this.option=e}return t.prototype.init=function(e,n,r){},t.prototype.mergeOption=function(e,n){cn(this.option,e,!0)},t.prototype.get=function(e,n){return e==null?this.option:this._doGet(this.parsePath(e),!n&&this.parentModel)},t.prototype.getShallow=function(e,n){var r=this.option,a=r==null?r:r[e];if(a==null&&!n){var l=this.parentModel;l&&(a=l.getShallow(e))}return a},t.prototype.getModel=function(e,n){var r=e!=null,a=r?this.parsePath(e):null,l=r?this._doGet(a):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new t(l,n,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(Qt(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!Tt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,n){var r=this.option;if(!e)return r;for(var a=0;a<e.length&&!(e[a]&&(r=r&&typeof r=="object"?r[e[a]]:null,r==null));a++);return r==null&&n&&(r=n._doGet(this.resolveParentPath(e),n.parentModel)),r},t}();Hx(mc),u6(mc),ml(mc,IG),ml(mc,FG),ml(mc,v6),ml(mc,NG);const Oi=mc;var BG=Math.round(Math.random()*10);function y_(t){return[t||"",BG++].join("_")}function UG(t){var e={};t.registerSubTypeDefaulter=function(n,r){var a=Tl(n);e[a.main]=r},t.determineSubType=function(n,r){var a=r.type;if(!a){var l=Tl(n).main;t.hasSubTypes(n)&&e[l]&&(a=e[l](r))}return a}}function VG(t,e){t.topologicalTravel=function(l,u,f,d){if(!l.length)return;var h=n(u),p=h.graph,m=h.noEntryList,S={};for(W(l,function(A){S[A]=!0});m.length;){var _=m.pop(),x=p[_],E=!!S[_];E&&(f.call(d,_,x.originalDeps.slice()),delete S[_]),W(x.successor,E?D:b)}W(S,function(){var A="";throw process.env.NODE_ENV!=="production"&&(A=na("Circular dependency may exists: ",S,l,u)),new Error(A)});function b(A){p[A].entryCount--,p[A].entryCount===0&&m.push(A)}function D(A){S[A]=!0,b(A)}};function n(l){var u={},f=[];return W(l,function(d){var h=r(u,d),p=h.originalDeps=e(d),m=a(p,l);h.entryCount=m.length,h.entryCount===0&&f.push(d),W(m,function(S){dn(h.predecessor,S)<0&&h.predecessor.push(S);var _=r(u,S);dn(_.successor,S)<0&&_.successor.push(d)})}),{graph:u,noEntryList:f}}function r(l,u){return l[u]||(l[u]={predecessor:[],successor:[]}),l[u]}function a(l,u){var f=[];return W(l,function(d){dn(u,d)>=0&&f.push(d)}),f}}function HG(t,e){return cn(cn({},t,!0),e,!0)}const GG={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},$G={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var __="ZH",NT="EN",pg=NT,S_={},PT={},yk=Tt.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(__)>-1?__:pg}():pg;function _k(t,e){t=t.toUpperCase(),PT[t]=new Oi(e),S_[t]=e}function jG(t){if(et(t)){var e=S_[t.toUpperCase()]||{};return t===__||t===NT?Qt(e):cn(Qt(e),Qt(S_[pg]),!1)}else return cn(Qt(t),Qt(S_[pg]),!1)}function YG(t){return PT[t]}function WG(){return PT[pg]}_k(NT,GG),_k(__,$G);var IT=1e3,zT=IT*60,gg=zT*60,oo=gg*24,Sk=oo*365,mg={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},C_="{yyyy}-{MM}-{dd}",Ck={year:"{yyyy}",month:"{yyyy}-{MM}",day:C_,hour:C_+" "+mg.hour,minute:C_+" "+mg.minute,second:C_+" "+mg.second,millisecond:mg.none},FT=["year","month","day","hour","minute","second","millisecond"],wk=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function yc(t,e){return t+="","0000".substr(0,e-t.length)+t}function yv(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 XG(t){return t===yv(t)}function qG(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function w_(t,e,n,r){var a=Cu(t),l=a[BT(n)](),u=a[_v(n)]()+1,f=Math.floor((u-1)/3)+1,d=a[x_(n)](),h=a["get"+(n?"UTC":"")+"Day"](),p=a[yg(n)](),m=(p-1)%12+1,S=a[T_(n)](),_=a[b_(n)](),x=a[E_(n)](),E=r instanceof Oi?r:YG(r||yk)||WG(),b=E.getModel("time"),D=b.get("month"),A=b.get("monthAbbr"),O=b.get("dayOfWeek"),P=b.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,l+"").replace(/{yy}/g,l%100+"").replace(/{Q}/g,f+"").replace(/{MMMM}/g,D[u-1]).replace(/{MMM}/g,A[u-1]).replace(/{MM}/g,yc(u,2)).replace(/{M}/g,u+"").replace(/{dd}/g,yc(d,2)).replace(/{d}/g,d+"").replace(/{eeee}/g,O[h]).replace(/{ee}/g,P[h]).replace(/{e}/g,h+"").replace(/{HH}/g,yc(p,2)).replace(/{H}/g,p+"").replace(/{hh}/g,yc(m+"",2)).replace(/{h}/g,m+"").replace(/{mm}/g,yc(S,2)).replace(/{m}/g,S+"").replace(/{ss}/g,yc(_,2)).replace(/{s}/g,_+"").replace(/{SSS}/g,yc(x,3)).replace(/{S}/g,x+"")}function QG(t,e,n,r,a){var l=null;if(et(n))l=n;else if(_t(n))l=n(t.value,e,{level:t.level});else{var u=Re({},mg);if(t.level>0)for(var f=0;f<FT.length;++f)u[FT[f]]="{primary|"+u[FT[f]]+"}";var d=n?n.inherit===!1?n:Vt(n,u):u,h=xk(t.value,a);if(d[h])l=d[h];else if(d.inherit){for(var p=wk.indexOf(h),f=p-1;f>=0;--f)if(d[h]){l=d[h];break}l=l||u.none}if(Be(l)){var m=t.level==null?0:t.level>=0?t.level:l.length+t.level;m=Math.min(m,l.length-1),l=l[m]}}return w_(new Date(t.value),l,a,r)}function xk(t,e){var n=Cu(t),r=n[_v(e)]()+1,a=n[x_(e)](),l=n[yg(e)](),u=n[T_(e)](),f=n[b_(e)](),d=n[E_(e)](),h=d===0,p=h&&f===0,m=p&&u===0,S=m&&l===0,_=S&&a===1,x=_&&r===1;return x?"year":_?"month":S?"day":m?"hour":p?"minute":h?"second":"millisecond"}function Tk(t,e,n){var r=Nn(t)?Cu(t):t;switch(e=e||xk(t,n),e){case"year":return r[BT(n)]();case"half-year":return r[_v(n)]()>=6?1:0;case"quarter":return Math.floor((r[_v(n)]()+1)/4);case"month":return r[_v(n)]();case"day":return r[x_(n)]();case"half-day":return r[yg(n)]()/24;case"hour":return r[yg(n)]();case"minute":return r[T_(n)]();case"second":return r[b_(n)]();case"millisecond":return r[E_(n)]()}}function BT(t){return t?"getUTCFullYear":"getFullYear"}function _v(t){return t?"getUTCMonth":"getMonth"}function x_(t){return t?"getUTCDate":"getDate"}function yg(t){return t?"getUTCHours":"getHours"}function T_(t){return t?"getUTCMinutes":"getMinutes"}function b_(t){return t?"getUTCSeconds":"getSeconds"}function E_(t){return t?"getUTCMilliseconds":"getMilliseconds"}function ZG(t){return t?"setUTCFullYear":"setFullYear"}function bk(t){return t?"setUTCMonth":"setMonth"}function Ek(t){return t?"setUTCDate":"setDate"}function Dk(t){return t?"setUTCHours":"setHours"}function Mk(t){return t?"setUTCMinutes":"setMinutes"}function Rk(t){return t?"setUTCSeconds":"setSeconds"}function Ak(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Lk(t){if(!pO(t))return et(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Ok(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var UT=oL;function VT(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(p){return p&&yl(p)?p:"-"}function l(p){return!!(p!=null&&!isNaN(p)&&isFinite(p))}var u=e==="time",f=t instanceof Date;if(u||f){var d=u?Cu(t):t;if(isNaN(+d)){if(f)return"-"}else return w_(d,r,n)}if(e==="ordinal")return T0(t)?a(t):Nn(t)&&l(t)?t+"":"-";var h=Ds(t);return l(h)?Lk(h):T0(t)?a(t):typeof t=="boolean"?t+"":"-"}var kk=["a","b","c","d","e","f","g"],HT=function(t,e){return"{"+t+(e??"")+"}"};function Nk(t,e,n){Be(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],l=0;l<a.length;l++){var u=kk[l];t=t.replace(HT(u),HT(u,0))}for(var f=0;f<r;f++)for(var d=0;d<a.length;d++){var h=e[f][a[d]];t=t.replace(HT(kk[d],f),n?to(h):h)}return t}function KG(t,e){var n=et(t)?{color:t,extraCssText:e}:t||{},r=n.color,a=n.type;e=n.extraCssText;var l=n.renderMode||"html";if(!r)return"";if(l==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+to(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+to(r)+";"+(e||"")+'"></span>';var u=n.markerId||"markerX";return{renderMode:l,content:"{"+u+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function _g(t,e){return e=e||"transparent",et(t)?t:it(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Pk(t,e){if(e==="_blank"||e==="blank"){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var D_=W,JG=["left","right","top","bottom","width","height"],M_=[["width","left","right"],["height","top","bottom"]];function Ik(t,e,n,r,a){var l=0,u=0;r==null&&(r=1/0),a==null&&(a=1/0);var f=0;e.eachChild(function(d,h){var p=d.getBoundingRect(),m=e.childAt(h+1),S=m&&m.getBoundingRect(),_,x;if(t==="horizontal"){var E=p.width+(S?-S.x+p.x:0);_=l+E,_>r||d.newline?(l=0,_=E,u+=f+n,f=p.height):f=Math.max(f,p.height)}else{var b=p.height+(S?-S.y+p.y:0);x=u+b,x>a||d.newline?(l+=f+n,u=0,x=b,f=p.width):f=Math.max(f,p.width)}d.newline||(d.x=l,d.y=u,d.markRedraw(),t==="horizontal"?l=_+n:u=x+n)})}Aa(Ik,"vertical"),Aa(Ik,"horizontal");function GT(t,e,n){n=UT(n||0);var r=e.width,a=e.height,l=Zr(t.left,r),u=Zr(t.top,a),f=Zr(t.right,r),d=Zr(t.bottom,a),h=Zr(t.width,r),p=Zr(t.height,a),m=n[2]+n[0],S=n[1]+n[3],_=t.aspect;switch(isNaN(h)&&(h=r-f-S-l),isNaN(p)&&(p=a-d-m-u),_!=null&&(isNaN(h)&&isNaN(p)&&(_>r/a?h=r*.8:p=a*.8),isNaN(h)&&(h=_*p),isNaN(p)&&(p=h/_)),isNaN(l)&&(l=r-f-h-S),isNaN(u)&&(u=a-d-p-m),t.left||t.right){case"center":l=r/2-h/2-n[3];break;case"right":l=r-h-S;break}switch(t.top||t.bottom){case"middle":case"center":u=a/2-p/2-n[0];break;case"bottom":u=a-p-m;break}l=l||0,u=u||0,isNaN(h)&&(h=r-S-l-(f||0)),isNaN(p)&&(p=a-m-u-(d||0));var x=new Wt(l+n[3],u+n[0],h,p);return x.margin=n,x}function Sg(t){var e=t.layoutMode||t.constructor.layoutMode;return it(e)?e:e?{type:e}:null}function Cg(t,e,n){var r=n&&n.ignoreSize;!Be(r)&&(r=[r,r]);var a=u(M_[0],0),l=u(M_[1],1);h(M_[0],t,a),h(M_[1],t,l);function u(p,m){var S={},_=0,x={},E=0,b=2;if(D_(p,function(O){x[O]=t[O]}),D_(p,function(O){f(e,O)&&(S[O]=x[O]=e[O]),d(S,O)&&_++,d(x,O)&&E++}),r[m])return d(e,p[1])?x[p[2]]=null:d(e,p[2])&&(x[p[1]]=null),x;if(E===b||!_)return x;if(_>=b)return S;for(var D=0;D<p.length;D++){var A=p[D];if(!f(S,A)&&f(t,A)){S[A]=t[A];break}}return S}function f(p,m){return p.hasOwnProperty(m)}function d(p,m){return p[m]!=null&&p[m]!=="auto"}function h(p,m,S){D_(p,function(_){m[_]=S[_]})}}function $T(t){return e$({},t)}function e$(t,e){return e&&t&&D_(JG,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var t$=jn(),Sv=function(t){Pt(e,t);function e(n,r,a){var l=t.call(this,n,r,a)||this;return l.uid=y_("ec_cpt_model"),l}return e.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},e.prototype.mergeDefaultAndTheme=function(n,r){var a=Sg(this),l=a?$T(n):{},u=r.getTheme();cn(n,u.get(this.mainType)),cn(n,this.getDefaultOption()),a&&Cg(n,l,a)},e.prototype.mergeOption=function(n,r){cn(this.option,n,!0);var a=Sg(this);a&&Cg(this.option,n,a)},e.prototype.optionUpdated=function(n,r){},e.prototype.getDefaultOption=function(){var n=this.constructor;if(!a6(n))return n.defaultOption;var r=t$(this);if(!r.defaultOption){for(var a=[],l=n;l;){var u=l.prototype.defaultOption;u&&a.push(u),l=l.superClass}for(var f={},d=a.length-1;d>=0;d--)f=cn(f,a[d],!0);r.defaultOption=f}return r.defaultOption},e.prototype.getReferringComponents=function(n,r){var a=n+"Index",l=n+"Id";return ig(this.ecModel,n,{index:this.get(a,!0),id:this.get(l,!0)},r)},e.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(n){this.option.zlevel=n},e.protoInitialize=function(){var n=e.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),e}(Oi);AO(Sv,Oi),K0(Sv),UG(Sv),VG(Sv,n$);function n$(t){var e=[];return W(Sv.getClassesByMainType(t),function(n){e=e.concat(n.dependencies||n.prototype.dependencies||[])}),e=ot(e,function(n){return Tl(n).main}),t!=="dataset"&&dn(e,"dataset")<=0&&e.unshift("dataset"),e}const En=Sv;var zk="";typeof navigator<"u"&&(zk=navigator.platform||"");var Cv="rgba(0, 0, 0, 0.2)";const r$={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Cv,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Cv,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Cv,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Cv,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Cv,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Cv,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:zk.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 jT=xt(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),lo="original",ki="arrayRows",Fo="objectRows",Tu="keyedColumns",bu="typedArray",Fk="unknown",Al="column",wv="row",ka={Must:1,Might:2,Not:3},Bk=jn();function i$(t){Bk(t).datasetMap=xt()}function a$(t,e,n){var r={},a=Uk(e);if(!a||!t)return r;var l=[],u=[],f=e.ecModel,d=Bk(f).datasetMap,h=a.uid+"_"+n.seriesLayoutBy,p,m;t=t.slice(),W(t,function(E,b){var D=it(E)?E:t[b]={name:E};D.type==="ordinal"&&p==null&&(p=b,m=x(D)),r[D.name]=[]});var S=d.get(h)||d.set(h,{categoryWayDim:m,valueWayDim:0});W(t,function(E,b){var D=E.name,A=x(E);if(p==null){var O=S.valueWayDim;_(r[D],O,A),_(u,O,A),S.valueWayDim+=A}else if(p===b)_(r[D],0,A),_(l,0,A);else{var O=S.categoryWayDim;_(r[D],O,A),_(u,O,A),S.categoryWayDim+=A}});function _(E,b,D){for(var A=0;A<D;A++)E.push(b+A)}function x(E){var b=E.dimsDef;return b?b.length:1}return l.length&&(r.itemName=l),u.length&&(r.seriesName=u),r}function Uk(t){var e=t.get("data",!0);if(!e)return ig(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Oo).models[0]}function o$(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:ig(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Oo).models}function Vk(t,e){return l$(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function l$(t,e,n,r,a,l){var u,f=5;if(ea(t))return ka.Not;var d,h;if(r){var p=r[l];it(p)?(d=p.name,h=p.type):et(p)&&(d=p)}if(h!=null)return h==="ordinal"?ka.Must:ka.Not;if(e===ki){var m=t;if(n===wv){for(var S=m[l],_=0;_<(S||[]).length&&_<f;_++)if((u=P(S[a+_]))!=null)return u}else for(var _=0;_<m.length&&_<f;_++){var x=m[a+_];if(x&&(u=P(x[l]))!=null)return u}}else if(e===Fo){var E=t;if(!d)return ka.Not;for(var _=0;_<E.length&&_<f;_++){var b=E[_];if(b&&(u=P(b[d]))!=null)return u}}else if(e===Tu){var D=t;if(!d)return ka.Not;var S=D[d];if(!S||ea(S))return ka.Not;for(var _=0;_<S.length&&_<f;_++)if((u=P(S[_]))!=null)return u}else if(e===lo)for(var A=t,_=0;_<A.length&&_<f;_++){var b=A[_],O=tg(b);if(!Be(O))return ka.Not;if((u=P(O[l]))!=null)return u}function P(I){var F=et(I);if(I!=null&&isFinite(I)&&I!=="")return F?ka.Might:ka.Not;if(F&&I!=="-")return ka.Must}return ka.Not}var u$=xt();function s$(t,e,n){var r=u$.get(e);if(!r)return n;var a=r(t);if(!a)return n;if(process.env.NODE_ENV!=="production")for(var l=0;l<a.length;l++)bt(uv(a[l]));return n.concat(a)}var Hk=jn();jn();var YT=function(){function t(){}return t.prototype.getColorFromPalette=function(e,n,r){var a=rr(this.get("color",!0)),l=this.get("colorLayer",!0);return c$(this,Hk,a,l,e,n,r)},t.prototype.clearColorPalette=function(){d$(this,Hk)},t}();function f$(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}function c$(t,e,n,r,a,l,u){l=l||t;var f=e(l),d=f.paletteIdx||0,h=f.paletteNameMap=f.paletteNameMap||{};if(h.hasOwnProperty(a))return h[a];var p=u==null||!r?n:f$(r,u);if(p=p||n,!(!p||!p.length)){var m=p[d];return a&&(h[a]=m),f.paletteIdx=(d+1)%p.length,m}}function d$(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var R_,wg,Gk,WT="\0_ec_inner",$k=1,v$={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},h$={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},A_={};function p$(t){W(t,function(e,n){if(!En.hasClass(n)){var r=v$[n];r&&!A_[r]&&(ci("Component "+n+` is used but not imported.
191
+ You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Ji.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oA,Ji.createPortal=xne,Ji.createRoot=bne,Ji.findDOMNode=yne,Ji.flushSync=Dne,Ji.hydrate=_ne,Ji.hydrateRoot=Ene,Ji.render=Sne,Ji.unmountComponentAtNode=wne,Ji.unstable_batchedUpdates=IR,Ji.unstable_renderSubtreeIntoContainer=Tne,Ji.version=JR,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ji}(function(t){function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}}process.env.NODE_ENV==="production"?(e(),t.exports=zV()):t.exports=FV()})(HA);const qA=hU(HA.exports),QA=[$d.jpeg,$d.jpg,$d.png],ZA=t=>{const{maxCount:e=1,listType:n="picture-card",fileList:r=[],maxSize:a=2,accept:l=QA.join(","),uploadBtnName:u="上传",uploadHint:f=null}=t,[d,h]=st.useState(!1),[p,m]=st.useState(""),S=()=>n!=="text"?Tr("div",{children:[ze(hV,{}),ze("div",{style:{marginTop:8},children:u})]}):Tr(h0,{children:[ze(dt.Button,{icon:ze(SV,{}),children:u}),f]}),_=b=>{const D=l.split(","),A=S0(b.name)||"";return D.includes(A)?b.size/1024/1024<a?!0:(dt.message.error(`文件必须小于${a}MB`),dt.Upload.LIST_IGNORE):(dt.message.error(`只允许上传 ${l} 文件`),dt.Upload.LIST_IGNORE)},x=b=>{t.onChange&&t.onChange(b)},E=async b=>{let D=S0(b.name)||"";if(D||(D=S0(b.name||b.url)||""),D===$d.pdf)return dt.Modal.info({title:"PDF",width:"60%",content:ze("iframe",{title:"PDF预览",src:b.url||b.response.url,frameBorder:"0",style:{width:"100%",height:"70vh"}}),okText:"关闭"});QA.includes(D)&&(!b.url&&!b.thumbUrl&&!b.preview&&(b.preview=await VA(b.originFileObj)),m(b.url||b.thumbUrl||b.preview),h(!0))};return Tr(h0,{children:[ze(dt.Upload,{...t,onPreview:E,beforeUpload:_,onChange:x,listType:n,children:r.length>=e?null:S()}),ze(BV,{visible:d,src:p,onVisibleChange:()=>{h(!1),m("")}})]})},BV=t=>{const{visible:e,src:n,onVisibleChange:r}=t;return qA.createPortal(ze(dt.Image,{style:{display:"none"},src:n,preview:{visible:e,src:n,onVisibleChange:r}}),document.body)},C0={fieldModal:"szld-fieldModal",content:"szld-content",suffix:"szld-suffix",placeholder:"szld-placeholder"},UV={labelCol:{span:4},wrapperCol:{span:20}},VV=t=>{switch(t){case"upload":return"fileList";case"switch":return"checked";default:return"value"}},KA=t=>{const{items:e,rowProps:n,formProps:r,readonly:a=!1,hiddenTitle:l=!1}=t,u=(d,h)=>{var p,m;if(h.btnType==="submit"){(p=r==null?void 0:r.form)==null||p.validateFields().then(S=>{h.onClick&&h.onClick(S)});return}if(h.btnType==="reset"){(m=r==null?void 0:r.form)==null||m.resetFields(),h.onClick&&h.onClick(d);return}h.btnType==="cancel"&&h.onClick&&h.onClick(d)},f=d=>Array.isArray(d)?d:d&&d.fileList;return ze(dt.Form,{layout:"horizontal",form:r==null?void 0:r.form,...UV,...r||{},children:ze(dt.Row,{gutter:16,...n,children:e.filter(d=>!d.hidden).map(d=>{var h,p;return ze(dt.Col,{...d.colProps||{span:24},children:ze(dt.Form.Item,{...d.valueType==="upload"?{getValueFromEvent:f}:{},label:l?"":d.title,name:d.valueType==="btns"?void 0:d.dataIndex,...d.formItemProps,children:d.readonly?ze("div",{children:d.value||((h=r==null?void 0:r.initialValues)==null?void 0:h[d.dataIndex])}):d.readonly===void 0&&a?ze("div",{children:d.value||((p=r==null?void 0:r.initialValues)==null?void 0:p[d.dataIndex])}):ze(JA,{onChange:m=>{var S;return(S=d==null?void 0:d.onChange)==null?void 0:S.call(d,m)},valueType:d.valueType,onBtnClick:u,valueProps:d.valueProps})})},d.dataIndex)})})})},JA=t=>{const{valueType:e,valueProps:n,value:r,onChange:a,onBtnClick:l,inputRef:u}=t,f=st.useMemo(()=>{let d=ze(dt.Input,{placeholder:"请输入",...n,allowClear:!0});switch(e){case"password":d=ze(dt.Input.Password,{...n});break;case"modal":d=ze(HV,{...n});break;case"checkbox":d=ze(dt.Checkbox.Group,{...n});break;case"select":d=ze(dt.Select,{placeholder:"请选择",...n,allowClear:!0});break;case"inputNumber":d=ze(dt.InputNumber,{style:{width:"100%"},placeholder:"请输入",...n});break;case"textarea":d=ze(dt.Input.TextArea,{placeholder:"请输入",...n,allowClear:!0});break;case"radio":d=ze(dt.Radio.Group,{...n});break;case"switch":d=ze(dt.Switch,{...n});break;case"datePicker":d=ze(dt.DatePicker,{style:{width:"100%"},...n,allowClear:!0});break;case"rangePicker":d=ze(dt.DatePicker.RangePicker,{style:{width:"100%"},...n,allowClear:!0});break;case"timePicker":d=ze(dt.TimePicker,{style:{width:"100%"},...n,allowClear:!0});break;case"cascader":d=ze(dt.Cascader,{...n,allowClear:!0});break;case"upload":d=ze(ZA,{...n});break;case"btns":d=ze(dt.Space,{children:n==null?void 0:n.map(h=>st.createElement(dt.Button,{type:h.btnType==="submit"?"primary":"default",...Op.omit(h,["btnType"]),key:h.btnType,onClick:p=>{l==null||l(p,h)}},h.title))});break}return d},[e,n,a,r]);return st.cloneElement(f,{[VV(e||"input")]:r,onChange:a,ref:u})},HV=t=>{const{placeholder:e,labelKey:n,onToggle:r,value:a,onClear:l}=t;return Tr("div",{className:C0.fieldModal,children:[ze("div",{className:C0.content,onClick:()=>r(!0),children:a?ze("span",{children:a[n]}):ze("span",{className:C0.placeholder,children:e})}),ze("span",{className:C0.suffix,onClick:l,children:a&&ze(uV,{})})]})},GV={search:"szld-search"};function $V(t){const{tableProps:e={},searchProps:n}=t,{columns:r=[],...a}=e;return Tr(h0,{children:[n&&ze(KA,{hiddenTitle:!0,...n,items:n.items}),ze(dt.Table,{columns:r.filter(l=>!l.hidden),...a,className:Hd(GV.table,e==null?void 0:e.className),pagination:typeof(e==null?void 0:e.pagination)=="boolean"?e.pagination:{hideOnSinglePage:!0,showPrevNextJumpers:!0,showQuickJumper:!0,showSizeChanger:!0,showTotal:l=>`共 ${l} 条`,...e==null?void 0:e.pagination}})]})}const jV={editableCellValueWrap:"szld-editableCellValueWrap"},eL=st.createContext(null),YV=({index:t,...e})=>{const[n]=dt.Form.useForm();return ze(dt.Form,{form:n,component:!1,children:ze(eL.Provider,{value:n,children:ze("tr",{...e})})})};function WV(t){const{title:e,editable:n,children:r,dataIndex:a,record:l,rules:u,onChange:f,type:d="input",valueProps:h,...p}=t,m=st.useRef(null),S=st.useContext(eL),_=async()=>{try{const b=await S.validateFields();f({...l,...b})}catch(b){console.log("Save failed:",b)}},x=()=>ze(JA,{valueType:d,valueProps:{...h,onBlur:_,onPressEnter:_},inputRef:m});let E=r;return n&&(E=ze(dt.Form.Item,{style:{margin:0},initialValue:l[a],name:a,rules:u,children:x()})),ze("td",{children:E})}function XV(t){const{columns:e,onChange:n,...r}=t,a={body:{row:YV,cell:WV}},l=e==null?void 0:e.map(u=>u.editable?{...u,onCell:f=>({...u,record:f,onChange:n})}:u);return ze(dt.Table,{...r,components:a,rowClassName:()=>jV.editableRow,columns:l})}function Hw(){return Hw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Hw.apply(this,arguments)}var Gw={exports:{}},rn={};var tL;function qV(){if(tL)return rn;tL=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,u=t?Symbol.for("react.provider"):60109,f=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,h=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,S=t?Symbol.for("react.suspense_list"):60120,_=t?Symbol.for("react.memo"):60115,x=t?Symbol.for("react.lazy"):60116,E=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,D=t?Symbol.for("react.responder"):60118,A=t?Symbol.for("react.scope"):60119;function O(I){if(typeof I=="object"&&I!==null){var F=I.$$typeof;switch(F){case e:switch(I=I.type,I){case d:case h:case r:case l:case a:case m:return I;default:switch(I=I&&I.$$typeof,I){case f:case p:case x:case _:case u:return I;default:return F}}case n:return F}}}function P(I){return O(I)===h}return rn.AsyncMode=d,rn.ConcurrentMode=h,rn.ContextConsumer=f,rn.ContextProvider=u,rn.Element=e,rn.ForwardRef=p,rn.Fragment=r,rn.Lazy=x,rn.Memo=_,rn.Portal=n,rn.Profiler=l,rn.StrictMode=a,rn.Suspense=m,rn.isAsyncMode=function(I){return P(I)||O(I)===d},rn.isConcurrentMode=P,rn.isContextConsumer=function(I){return O(I)===f},rn.isContextProvider=function(I){return O(I)===u},rn.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===e},rn.isForwardRef=function(I){return O(I)===p},rn.isFragment=function(I){return O(I)===r},rn.isLazy=function(I){return O(I)===x},rn.isMemo=function(I){return O(I)===_},rn.isPortal=function(I){return O(I)===n},rn.isProfiler=function(I){return O(I)===l},rn.isStrictMode=function(I){return O(I)===a},rn.isSuspense=function(I){return O(I)===m},rn.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===r||I===h||I===l||I===a||I===m||I===S||typeof I=="object"&&I!==null&&(I.$$typeof===x||I.$$typeof===_||I.$$typeof===u||I.$$typeof===f||I.$$typeof===p||I.$$typeof===b||I.$$typeof===D||I.$$typeof===A||I.$$typeof===E)},rn.typeOf=O,rn}var an={};var nL;function QV(){return nL||(nL=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,u=t?Symbol.for("react.provider"):60109,f=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,h=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,S=t?Symbol.for("react.suspense_list"):60120,_=t?Symbol.for("react.memo"):60115,x=t?Symbol.for("react.lazy"):60116,E=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,D=t?Symbol.for("react.responder"):60118,A=t?Symbol.for("react.scope"):60119;function O(Se){return typeof Se=="string"||typeof Se=="function"||Se===r||Se===h||Se===l||Se===a||Se===m||Se===S||typeof Se=="object"&&Se!==null&&(Se.$$typeof===x||Se.$$typeof===_||Se.$$typeof===u||Se.$$typeof===f||Se.$$typeof===p||Se.$$typeof===b||Se.$$typeof===D||Se.$$typeof===A||Se.$$typeof===E)}function P(Se){if(typeof Se=="object"&&Se!==null){var Zt=Se.$$typeof;switch(Zt){case e:var Et=Se.type;switch(Et){case d:case h:case r:case l:case a:case m:return Et;default:var Pn=Et&&Et.$$typeof;switch(Pn){case f:case p:case x:case _:case u:return Pn;default:return Zt}}case n:return Zt}}}var I=d,F=h,U=f,H=u,j=e,X=p,G=r,ee=x,J=_,ie=n,ce=l,fe=a,Ne=m,ae=!1;function ge(Se){return ae||(ae=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),pe(Se)||P(Se)===d}function pe(Se){return P(Se)===h}function Le(Se){return P(Se)===f}function Ge(Se){return P(Se)===u}function St(Se){return typeof Se=="object"&&Se!==null&&Se.$$typeof===e}function It(Se){return P(Se)===p}function Dn(Se){return P(Se)===r}function Xt(Se){return P(Se)===x}function Mn(Se){return P(Se)===_}function ln(Se){return P(Se)===n}function zt(Se){return P(Se)===l}function Ft(Se){return P(Se)===a}function $e(Se){return P(Se)===m}an.AsyncMode=I,an.ConcurrentMode=F,an.ContextConsumer=U,an.ContextProvider=H,an.Element=j,an.ForwardRef=X,an.Fragment=G,an.Lazy=ee,an.Memo=J,an.Portal=ie,an.Profiler=ce,an.StrictMode=fe,an.Suspense=Ne,an.isAsyncMode=ge,an.isConcurrentMode=pe,an.isContextConsumer=Le,an.isContextProvider=Ge,an.isElement=St,an.isForwardRef=It,an.isFragment=Dn,an.isLazy=Xt,an.isMemo=Mn,an.isPortal=ln,an.isProfiler=zt,an.isStrictMode=Ft,an.isSuspense=$e,an.isValidElementType=O,an.typeOf=P}()),an}(function(t){process.env.NODE_ENV==="production"?t.exports=qV():t.exports=QV()})(Gw);function $w(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return st.Children.forEach(t,function(r){r==null&&!e.keepEmpty||(Array.isArray(r)?n=n.concat($w(r)):Gw.exports.isFragment(r)&&r.props?n=n.concat($w(r.props.children,e)):n.push(r))}),n}function ZV(t,e){typeof t=="function"?t(e):gu(t)==="object"&&t&&"current"in t&&(t.current=e)}function KV(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.filter(function(a){return a});return r.length<=1?r[0]:function(a){e.forEach(function(l){ZV(l,a)})}}function JV(t){var e,n,r=Gw.exports.isMemo(t)?t.type.type:t.type;return!(typeof r=="function"&&!(!((e=r.prototype)===null||e===void 0)&&e.render)||typeof t=="function"&&!(!((n=t.prototype)===null||n===void 0)&&n.render))}function rL(t){return t instanceof HTMLElement?t:qA.findDOMNode(t)}var iL=function(){if(typeof Map<"u")return Map;function t(e,n){var r=-1;return e.some(function(a,l){return a[0]===n?(r=l,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(n){var r=t(this.__entries__,n),a=this.__entries__[r];return a&&a[1]},e.prototype.set=function(n,r){var a=t(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},e.prototype.delete=function(n){var r=this.__entries__,a=t(r,n);~a&&r.splice(a,1)},e.prototype.has=function(n){return!!~t(this.__entries__,n)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var a=0,l=this.__entries__;a<l.length;a++){var u=l[a];n.call(r,u[1],u[0])}},e}()}(),jw=typeof window<"u"&&typeof document<"u"&&window.document===document,w0=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),eH=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(w0):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),tH=2;function nH(t,e){var n=!1,r=!1,a=0;function l(){n&&(n=!1,t()),r&&f()}function u(){eH(l)}function f(){var d=Date.now();if(n){if(d-a<tH)return;r=!0}else n=!0,r=!1,setTimeout(u,e);a=d}return f}var rH=20,iH=["top","right","bottom","left","width","height","size","weight"],aH=typeof MutationObserver<"u",oH=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=nH(this.refresh.bind(this),rH)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var n=this.observers_,r=n.indexOf(e);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return e.forEach(function(n){return n.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!jw||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),aH?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!jw||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var n=e.propertyName,r=n===void 0?"":n,a=iH.some(function(l){return!!~r.indexOf(l)});a&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),aL=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var a=r[n];Object.defineProperty(t,a,{value:e[a],enumerable:!1,writable:!1,configurable:!0})}return t},jd=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||w0},oL=T0(0,0,0,0);function x0(t){return parseFloat(t)||0}function lL(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(r,a){var l=t["border-"+a+"-width"];return r+x0(l)},0)}function lH(t){for(var e=["top","right","bottom","left"],n={},r=0,a=e;r<a.length;r++){var l=a[r],u=t["padding-"+l];n[l]=x0(u)}return n}function uH(t){var e=t.getBBox();return T0(0,0,e.width,e.height)}function sH(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return oL;var r=jd(t).getComputedStyle(t),a=lH(r),l=a.left+a.right,u=a.top+a.bottom,f=x0(r.width),d=x0(r.height);if(r.boxSizing==="border-box"&&(Math.round(f+l)!==e&&(f-=lL(r,"left","right")+l),Math.round(d+u)!==n&&(d-=lL(r,"top","bottom")+u)),!cH(t)){var h=Math.round(f+l)-e,p=Math.round(d+u)-n;Math.abs(h)!==1&&(f-=h),Math.abs(p)!==1&&(d-=p)}return T0(a.left,a.top,f,d)}var fH=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof jd(t).SVGGraphicsElement}:function(t){return t instanceof jd(t).SVGElement&&typeof t.getBBox=="function"}}();function cH(t){return t===jd(t).document.documentElement}function dH(t){return jw?fH(t)?uH(t):sH(t):oL}function vH(t){var e=t.x,n=t.y,r=t.width,a=t.height,l=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,u=Object.create(l.prototype);return aL(u,{x:e,y:n,width:r,height:a,top:n,right:e+r,bottom:a+n,left:e}),u}function T0(t,e,n,r){return{x:t,y:e,width:n,height:r}}var hH=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=T0(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=dH(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t}(),pH=function(){function t(e,n){var r=vH(n);aL(this,{target:e,contentRect:r})}return t}(),gH=function(){function t(e,n,r){if(this.activeObservations_=[],this.observations_=new iL,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=r}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof jd(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new hH(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof jd(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new pH(r.target,r.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),uL=typeof WeakMap<"u"?new WeakMap:new iL,sL=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=oH.getInstance(),r=new gH(e,n,this);uL.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach(function(t){sL.prototype[t]=function(){var e;return(e=uL.get(this))[t].apply(e,arguments)}});var mH=function(){return typeof w0.ResizeObserver<"u"?w0.ResizeObserver:sL}(),yu=new Map;function fL(t){t.forEach(function(e){var n,r=e.target;(n=yu.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var cL=new mH(fL);process.env.NODE_ENV,process.env.NODE_ENV;function yH(t,e){yu.has(t)||(yu.set(t,new Set),cL.observe(t)),yu.get(t).add(e)}function _H(t,e){yu.has(t)&&(yu.get(t).delete(e),yu.get(t).size||(cL.unobserve(t),yu.delete(t)))}function SH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dL(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,fA(r.key),r)}}function CH(t,e,n){return e&&dL(t.prototype,e),n&&dL(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Yw(t,e){return Yw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Yw(t,e)}function wH(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Yw(t,e)}function b0(t){return b0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},b0(t)}function xH(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function TH(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bH(t,e){if(e&&(gu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TH(t)}function EH(t){var e=xH();return function(){var r=b0(t),a;if(e){var l=b0(this).constructor;a=Reflect.construct(r,arguments,l)}else a=r.apply(this,arguments);return bH(this,a)}}var DH=function(t){wH(n,t);var e=EH(n);function n(){return SH(this,n),e.apply(this,arguments)}return CH(n,[{key:"render",value:function(){return this.props.children}}]),n}(Nt.Component),Ww=Nt.createContext(null);function MH(t){var e=t.children,n=t.onBatchResize,r=Nt.useRef(0),a=Nt.useRef([]),l=Nt.useContext(Ww),u=Nt.useCallback(function(f,d,h){r.current+=1;var p=r.current;a.current.push({size:f,element:d,data:h}),Promise.resolve().then(function(){p===r.current&&(n==null||n(a.current),a.current=[])}),l==null||l(f,d,h)},[n,l]);return Nt.createElement(Ww.Provider,{value:u},e)}function RH(t){var e=t.children,n=t.disabled,r=Nt.useRef(null),a=Nt.useRef(null),l=Nt.useContext(Ww),u=typeof e=="function",f=u?e(r):e,d=Nt.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),h=!u&&Nt.isValidElement(f)&&JV(f),p=h?f.ref:null,m=Nt.useMemo(function(){return KV(p,r)},[p,r]),S=Nt.useRef(t);S.current=t;var _=Nt.useCallback(function(x){var E=S.current,b=E.onResize,D=E.data,A=x.getBoundingClientRect(),O=A.width,P=A.height,I=x.offsetWidth,F=x.offsetHeight,U=Math.floor(O),H=Math.floor(P);if(d.current.width!==U||d.current.height!==H||d.current.offsetWidth!==I||d.current.offsetHeight!==F){var j={width:U,height:H,offsetWidth:I,offsetHeight:F};d.current=j;var X=I===Math.round(O)?O:I,G=F===Math.round(P)?P:F,ee=$n($n({},j),{},{offsetWidth:X,offsetHeight:G});l==null||l(ee,x,D),b&&Promise.resolve().then(function(){b(ee,x)})}},[]);return Nt.useEffect(function(){var x=rL(r.current)||rL(a.current);return x&&!n&&yH(x,_),function(){return _H(x,_)}},[r.current,n]),Nt.createElement(DH,{ref:a},h?Nt.cloneElement(f,{ref:m}):f)}var AH="rc-observer-key";function vL(t){var e=t.children,n=typeof e=="function"?[e]:$w(e);return process.env.NODE_ENV!=="production"&&(n.length>1?Aw(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&Aw(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(r,a){var l=(r==null?void 0:r.key)||"".concat(AH,"-").concat(a);return Nt.createElement(RH,Hw({},t,{key:l}),r)})}vL.Collection=MH;const Yd={grid:"szld-grid",cell:"szld-cell",editBox:"szld-editBox",editForm:"szld-editForm"};function LH(t){const{columns:e,scroll:n,onChange:r,...a}=t,[l,u]=st.useState(0),f=e.filter(({width:_})=>!_).length,d=e.map(_=>_.width?_:{..._,width:Math.floor(l/f)}),h=st.useRef(),[p]=st.useState(()=>{const _={};return Object.defineProperty(_,"scrollLeft",{get:()=>{var x,E;return h.current?(E=(x=h.current)==null?void 0:x.state)==null?void 0:E.scrollLeft:null},set:x=>{h.current&&h.current.scrollTo({scrollLeft:x})}}),_}),m=()=>{var _;(_=h.current)==null||_.resetAfterIndices({columnIndex:0,shouldForceUpdate:!0})};st.useEffect(()=>m,[l]);const S=(_,{scrollbarSize:x,ref:E,onScroll:b})=>{E.current=p;const D=_.length*54;return ze(cU.VariableSizeGrid,{ref:h,className:Yd.grid,columnCount:d.length,columnWidth:A=>{const{width:O}=d[A];return D>n.y&&A===d.length-1?O-x-1:O},height:n.y,rowCount:_.length,rowHeight:()=>54,width:l,onScroll:({scrollLeft:A})=>{b({scrollLeft:A})},children:({columnIndex:A,rowIndex:O,style:P})=>ze("div",{className:Hd(Yd.cell,{[Yd.cellLast]:A===d.length-1}),style:P,children:ze(OH,{data:_[O],onChange:r,column:d[A]})})})};return ze(vL,{onResize:({width:_})=>{u(_)},children:ze(dt.Table,{...a,className:Yd.table,columns:d,scroll:n,pagination:!1,components:{body:S}})})}function OH(t){const{column:e,data:n,onChange:r}=t,[a,l]=st.useState(!1),u=st.useRef(null),[f]=dt.Form.useForm();st.useEffect(()=>{a&&u.current.focus()},[a]);const d=async()=>{try{const m=await f.validateFields();h(),r&&r({...n,...m})}catch(m){console.log("Save failed:",m)}},h=()=>{l(!a),e.dataIndex&&f.setFieldsValue({[e.dataIndex]:n[e.dataIndex]})};let p=n[e.dataIndex];return e.editable&&(p=a?ze(dt.Form,{form:f,className:Yd.editForm,children:ze(dt.Form.Item,{style:{margin:0},name:e.dataIndex,rules:e.rules,children:ze(dt.Input,{ref:u,onPressEnter:d,onBlur:d,...e.inputProps})})}):ze("div",{className:Yd.editBox,onClick:h,children:n[e.dataIndex]})),ze(h0,{children:p})}const hL=t=>{const{auth:e=!0,...n}=t;return e?ze(dt.Button,{...n}):null},kH=t=>{const{PId:e,auths:n,...r}=t,a=st.useMemo(()=>!!(n&&n.find(l=>l.PId===e)),[e,n]);return ze(hL,{...r,auth:a})},br={main:"szld-main",item:"szld-item",tail:"szld-tail",node:"szld-node",content:"szld-content",collpase:"szld-collpase",btn:"szld-btn",title:"szld-title",dateWrapper:"szld-dateWrapper",remark:"szld-remark",itemActive:"szld-itemActive",itemDone:"szld-itemDone",itemUnDo:"szld-itemUnDo"},NH=t=>{const{data:e,current:n}=t,[r,a]=st.useState(!1),l=st.useMemo(()=>!n||e.length===0?0:e.findIndex(h=>h.PNId===n),[n,e]),u=st.useMemo(()=>l>1?r?0:l-1:0,[l,r]),f=()=>{a(!0)};return Tr("ul",{className:br.main,children:[l>1&&!r&&Tr("li",{className:Hd(br.item,br.itemDone),children:[ze("div",{className:br.tail}),ze("div",{className:br.node}),ze("div",{className:br.content,children:Tr("div",{className:br.collpase,children:[Tr("div",{children:["已收起",ze("span",{children:l-1}),"个节点"]}),Tr("a",{className:br.btn,onClick:f,children:["展开节点",ze(cV,{})]})]})})]}),e.slice(u).map((d,h)=>Tr("li",{className:Hd(br.item,l===h+u?br.itemActive:l>h+u?br.itemDone:br.itemUnDo),children:[ze("div",{className:br.tail}),ze("div",{className:br.node}),Tr("div",{className:br.content,children:[ze("div",{className:br.title,children:d.PNName}),Tr("div",{className:br.dateWrapper,children:[d.PlanFinishDate&&Tr("span",{children:["预计完成时间: ",d.PlanFinishDate]}),d.UpdateTime&&Tr("span",{style:{color:"#333",fontWeight:"bold"},children:["实际完成时间: ",d.UpdateTime]}),r&&l-1===h&&Tr("a",{className:br.btn,onClick:()=>a(!1),children:["收起节点 ",ze(mV,{})]})]}),d.Remark&&ze("div",{className:br.remark,children:d.Remark})]})]},d.PNId))]})},PH=t=>{const{current:e,data:n,...r}=t;return(()=>{dt.Modal.info({icon:null,title:"流程节点",width:700,content:ze(NH,{current:e,data:n}),closable:!0,footer:null,maskClosable:!0,...r})})(),null},IH=(t,e)=>{const n=new URL(t),r=new URL(e);return n.protocol===r.protocol&&n.host===r.host&&n.port===r.port},zH=t=>{const e=new URL(t).href.split("/");return e[e.length-1]},FH=t=>{var n;return(n=t.headers.get("content-disposition"))==null?void 0:n.split(";")[1].split("=")[1]},BH=(t,e)=>{const n=e||zH(t);if(IH(t,window.location.href)){Xw(t,n);return}let r=e;fetch(t,{method:"get"}).then(a=>(r||(r=FH(a)),a.blob())).then(a=>{pL(a,r||n)}).catch(()=>{Xw(t,"")})},pL=(t,e)=>{let n=window.URL.createObjectURL(t);const r=window.navigator;if(r.msSaveOrOpenBlob){r.msSaveOrOpenBlob(t,e);return}Xw(n,e),window.URL.revokeObjectURL(n)},Xw=(t,e)=>{let n=document.createElement("a");n.style.display="none",n.href=t,n.target="_blank",n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)},UH=Object.freeze(Object.defineProperty({__proto__:null,downloadUrl:BH,downloadBlob:pL},Symbol.toStringTag,{value:"Module"}));class VH{constructor(e){sU(this,"options",{id:"",canvasId:"verifyCanvas",width:100,height:30,type:"blend",code:""});this.options=e}GVerify(){this.options.numArr="0,1,2,3,4,5,6,7,8,9".split(","),this.options.letterArr=this.getAllLetter(),this._init(),this.refresh()}_init(){const e=document.getElementById(this.options.id),n=document.createElement("canvas");n.id=this.options.canvasId,n.width=Number(this.options.width),n.height=Number(this.options.height),n.style.cursor="pointer",n.innerHTML="您的浏览器版本不支持canvas",e&&e.appendChild(n),n.onclick=()=>{this.refresh()}}refresh(){this.options.code="";const e=document.getElementById(this.options.canvasId);let n,r=[];if(e.getContext)n=e.getContext("2d");else return;n.textBaseline="middle",n.fillStyle=this.randomColor(180,240),n.fillRect(0,0,this.options.width,this.options.height),this.options.type=="blend"?r=this.options.numArr.concat(this.options.letterArr):this.options.type=="number"?r=this.options.numArr:r=this.options.letterArr;for(let a=1;a<=4;a++){const l=r[this.randomNum(0,r.length)];this.options.code+=l,n.font="20px SimHei",n.fillStyle=this.randomColor(50,160),n.shadowBlur=this.randomNum(-3,3),n.shadowColor="rgba(0, 0, 0, 0.3)";const u=Number(this.options.width)/5*a,f=Number(this.options.height)/2,d=this.randomNum(-30,30);n.translate(u,f),n.rotate(d*Math.PI/180),n.fillText(l,0,0),n.rotate(-d*Math.PI/180),n.translate(-u,-f)}for(let a=0;a<2;a++)n.strokeStyle=this.randomColor(40,180),n.beginPath(),n.moveTo(this.randomNum(0,Number(this.options.width)/2),this.randomNum(0,Number(this.options.height)/2)),n.lineTo(this.randomNum(0,Number(this.options.width)/2),this.randomNum(0,Number(this.options.height))),n.stroke();for(let a=0;a<Number(this.options.width)/10;a++)n.fillStyle=this.randomColor(0,255),n.beginPath(),n.arc(this.randomNum(0,this.options.width),this.randomNum(0,this.options.height),1,0,2*Math.PI),n.fill()}validate(e){const n=e.toLowerCase(),r=this.options.code.toLowerCase();return n==r}getAllLetter(){return"a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z".split(",")}randomNum(e,n){return Math.floor(Math.random()*(n-e)+e)}randomColor(e,n){const r=this.randomNum(e,n),a=this.randomNum(e,n),l=this.randomNum(e,n);return"rgb("+r+","+a+","+l+")"}}const HH=Object.freeze(Object.defineProperty({__proto__:null,getGVerify:VH},Symbol.toStringTag,{value:"Module"}));var qw=function(t,e){return qw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},qw(t,e)};function Pt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");qw(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var GH=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),$H=function(){function t(){this.browser=new GH,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t}(),Hf=new $H;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Hf.wxa=!0,Hf.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Hf.worker=!0:typeof navigator>"u"?(Hf.node=!0,Hf.svgSupported=!0):jH(navigator.userAgent,Hf);function jH(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),l=t.match(/Edge?\/([\d.]+)/),u=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),a&&(n.ie=!0,n.version=a[1]),l&&(n.edge=!0,n.version=l[1],n.newEdge=+l[1].split(".")[0]>18),u&&(n.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported=typeof document<"u";var f=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in f||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in f)&&!("OTransition"in f),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}const Tt=Hf;var Qw=12,YH="sans-serif",Gf=Qw+"px "+YH,WH=20,XH=100,qH="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function QH(t){var e={};if(typeof JSON>"u")return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),a=(t.charCodeAt(n)-WH)/XH;e[r]=a}return e}var ZH=QH(qH),$f={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,r){if(!t){var a=$f.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==r&&(e=t.font=r||Gf),t.measureText(n);n=n||"",r=r||Gf;var l=/(\d+)px/.exec(r),u=l&&+l[1]||Qw,f=0;if(r.indexOf("mono")>=0)f=u*n.length;else for(var d=0;d<n.length;d++){var h=ZH[n[d]];f+=h==null?u:h*u}return{width:f}}}(),loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}},gL=Xd(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),mL=Xd(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Wd=Object.prototype.toString,E0=Array.prototype,KH=E0.forEach,JH=E0.filter,Zw=E0.slice,e4=E0.map,yL=function(){}.constructor,D0=yL?yL.prototype:null,Kw="__proto__",t4=2311;function _L(){return t4++}function jf(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function Qt(t){if(t==null||typeof t!="object")return t;var e=t,n=Wd.call(t);if(n==="[object Array]"){if(!Bp(t)){e=[];for(var r=0,a=t.length;r<a;r++)e[r]=Qt(t[r])}}else if(mL[n]){if(!Bp(t)){var l=t.constructor;if(l.from)e=l.from(t);else{e=new l(t.length);for(var r=0,a=t.length;r<a;r++)e[r]=t[r]}}}else if(!gL[n]&&!Bp(t)&&!zp(t)){e={};for(var u in t)t.hasOwnProperty(u)&&u!==Kw&&(e[u]=Qt(t[u]))}return e}function cn(t,e,n){if(!it(e)||!it(t))return n?Qt(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==Kw){var a=t[r],l=e[r];it(l)&&it(a)&&!Be(l)&&!Be(a)&&!zp(l)&&!zp(a)&&!SL(l)&&!SL(a)&&!Bp(l)&&!Bp(a)?cn(a,l,n):(n||!(r in t))&&(t[r]=Qt(e[r]))}return t}function Re(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==Kw&&(t[n]=e[n]);return t}function Vt(t,e,n){for(var r=kn(e),a=0;a<r.length;a++){var l=r[a];(n?e[l]!=null:t[l]==null)&&(t[l]=e[l])}return t}$f.createCanvas;function dn(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1}function n4(t,e){var n=t.prototype;function r(){}r.prototype=e.prototype,t.prototype=new r;for(var a in n)n.hasOwnProperty(a)&&(t.prototype[a]=n[a]);t.prototype.constructor=t,t.superClass=e}function ml(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),a=0;a<r.length;a++){var l=r[a];l!=="constructor"&&(n?e[l]!=null:t[l]==null)&&(t[l]=e[l])}else Vt(t,e,n)}function Ai(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function W(t,e,n){if(t&&e)if(t.forEach&&t.forEach===KH)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,a=t.length;r<a;r++)e.call(n,t[r],r,t);else for(var l in t)t.hasOwnProperty(l)&&e.call(n,t[l],l,t)}function ot(t,e,n){if(!t)return[];if(!e)return Jw(t);if(t.map&&t.map===e4)return t.map(e,n);for(var r=[],a=0,l=t.length;a<l;a++)r.push(e.call(n,t[a],a,t));return r}function Xd(t,e,n,r){if(t&&e){for(var a=0,l=t.length;a<l;a++)n=e.call(r,n,t[a],a,t);return n}}function Er(t,e,n){if(!t)return[];if(!e)return Jw(t);if(t.filter&&t.filter===JH)return t.filter(e,n);for(var r=[],a=0,l=t.length;a<l;a++)e.call(n,t[a],a,t)&&r.push(t[a]);return r}function kn(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}function r4(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(Zw.call(arguments)))}}var Qn=D0&&_t(D0.bind)?D0.call.bind(D0.bind):r4;function Aa(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(Zw.call(arguments)))}}function Be(t){return Array.isArray?Array.isArray(t):Wd.call(t)==="[object Array]"}function _t(t){return typeof t=="function"}function et(t){return typeof t=="string"}function M0(t){return Wd.call(t)==="[object String]"}function Nn(t){return typeof t=="number"}function it(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function SL(t){return!!gL[Wd.call(t)]}function ea(t){return!!mL[Wd.call(t)]}function zp(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function R0(t){return t.colorStops!=null}function i4(t){return t.image!=null}function CL(t){return Wd.call(t)==="[object RegExp]"}function Fp(t){return t!==t}function Yf(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(t[n]!=null)return t[n]}function kt(t,e){return t??e}function qd(t,e,n){return t??e??n}function Jw(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Zw.apply(t,e)}function wL(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function bt(t,e){if(!t)throw new Error(e)}function yl(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var xL="__ec_primitive__";function A0(t){t[xL]=!0}function Bp(t){return t[xL]}var a4=function(){function t(){this.data={}}return t.prototype.delete=function(e){var n=this.has(e);return n&&delete this.data[e],n},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,n){return this.data[e]=n,this},t.prototype.keys=function(){return kn(this.data)},t.prototype.forEach=function(e){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&e(n[r],r)},t}(),TL=typeof Map=="function";function o4(){return TL?new Map:new a4}var l4=function(){function t(e){var n=Be(e);this.data=o4();var r=this;e instanceof t?e.each(a):e&&W(e,a);function a(l,u){n?r.set(l,u):r.set(u,l)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,n){return this.data.set(e,n),n},t.prototype.each=function(e,n){this.data.forEach(function(r,a){e.call(n,r,a)})},t.prototype.keys=function(){var e=this.data.keys();return TL?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function xt(t){return new l4(t)}function u4(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];for(var a=t.length,r=0;r<e.length;r++)n[r+a]=e[r];return n}function L0(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&Re(n,e),n}function bL(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function _u(t,e){return t.hasOwnProperty(e)}function ta(){}var s4=180/Math.PI;var ex=function(t,e){return ex=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},ex(t,e)};function mn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ex(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function Qd(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function f4(t){return[t[0],t[1]]}function EL(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function c4(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function d4(t){return Math.sqrt(v4(t))}function v4(t){return t[0]*t[0]+t[1]*t[1]}function tx(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function h4(t,e){var n=d4(e);return n===0?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function nx(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var rx=nx;function p4(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Zd=p4;function O0(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function eo(t,e,n){var r=e[0],a=e[1];return t[0]=n[0]*r+n[2]*a+n[4],t[1]=n[1]*r+n[3]*a+n[5],t}function Kd(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function Jd(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var ev=function(){function t(e,n){this.target=e,this.topTarget=n&&n.topTarget}return t}(),g4=function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var n=e.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new ev(n,e),"dragstart",e.event))},t.prototype._drag=function(e){var n=this._draggingTarget;if(n){var r=e.offsetX,a=e.offsetY,l=r-this._x,u=a-this._y;this._x=r,this._y=a,n.drift(l,u,e),this.handler.dispatchToElement(new ev(n,e),"drag",e.event);var f=this.handler.findHover(r,a,n).target,d=this._dropTarget;this._dropTarget=f,n!==f&&(d&&f!==d&&this.handler.dispatchToElement(new ev(d,e),"dragleave",e.event),f&&f!==d&&this.handler.dispatchToElement(new ev(f,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new ev(n,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new ev(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}();const m4=g4;var y4=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,n,r,a){this._$handlers||(this._$handlers={});var l=this._$handlers;if(typeof n=="function"&&(a=r,r=n,n=null),!r||!e)return this;var u=this._$eventProcessor;n!=null&&u&&u.normalizeQuery&&(n=u.normalizeQuery(n)),l[e]||(l[e]=[]);for(var f=0;f<l[e].length;f++)if(l[e][f].h===r)return this;var d={h:r,query:n,ctx:a||this,callAtLast:r.zrEventfulCallAtLast},h=l[e].length-1,p=l[e][h];return p&&p.callAtLast?l[e].splice(h,0,d):l[e].push(d),this},t.prototype.isSilent=function(e){var n=this._$handlers;return!n||!n[e]||!n[e].length},t.prototype.off=function(e,n){var r=this._$handlers;if(!r)return this;if(!e)return this._$handlers={},this;if(n){if(r[e]){for(var a=[],l=0,u=r[e].length;l<u;l++)r[e][l].h!==n&&a.push(r[e][l]);r[e]=a}r[e]&&r[e].length===0&&delete r[e]}else delete r[e];return this},t.prototype.trigger=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[e],l=this._$eventProcessor;if(a)for(var u=n.length,f=a.length,d=0;d<f;d++){var h=a[d];if(!(l&&l.filter&&h.query!=null&&!l.filter(e,h.query)))switch(u){case 0:h.h.call(h.ctx);break;case 1:h.h.call(h.ctx,n[0]);break;case 2:h.h.call(h.ctx,n[0],n[1]);break;default:h.h.apply(h.ctx,n);break}}return l&&l.afterTrigger&&l.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[e],l=this._$eventProcessor;if(a)for(var u=n.length,f=n[u-1],d=a.length,h=0;h<d;h++){var p=a[h];if(!(l&&l.filter&&p.query!=null&&!l.filter(e,p.query)))switch(u){case 0:p.h.call(f);break;case 1:p.h.call(f,n[0]);break;case 2:p.h.call(f,n[0],n[1]);break;default:p.h.apply(f,n.slice(1,u-1));break}}return l&&l.afterTrigger&&l.afterTrigger(e),this},t}();const _l=y4;var _4=Math.log(2);function ix(t,e,n,r,a,l){var u=r+"-"+a,f=t.length;if(l.hasOwnProperty(u))return l[u];if(e===1){var d=Math.round(Math.log((1<<f)-1&~a)/_4);return t[n][d]}for(var h=r|1<<n,p=n+1;r&1<<p;)p++;for(var m=0,S=0,_=0;S<f;S++){var x=1<<S;x&a||(m+=(_%2?-1:1)*t[n][S]*ix(t,e-1,p,h,a|x,l),_++)}return l[u]=m,m}function DL(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]]],r={},a=ix(n,8,0,0,0,r);if(a!==0){for(var l=[],u=0;u<8;u++)for(var f=0;f<8;f++)l[f]==null&&(l[f]=0),l[f]+=((u+f)%2?-1:1)*ix(n,7,u===0?1:0,1<<u,1<<f,r)/a*e[u];return function(d,h,p){var m=h*l[6]+p*l[7]+1;d[0]=(h*l[0]+p*l[1]+l[2])/m,d[1]=(h*l[3]+p*l[4]+l[5])/m}}}var ML="___zrEVENTSAVED",ax=[];function S4(t,e,n,r,a){return ox(ax,e,r,a,!0)&&ox(t,n,ax[0],ax[1])}function ox(t,e,n,r,a){if(e.getBoundingClientRect&&Tt.domSupported&&!RL(e)){var l=e[ML]||(e[ML]={}),u=C4(e,l),f=w4(u,l,a);if(f)return f(t,n,r),!0}return!1}function C4(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],a=["top","bottom"],l=0;l<4;l++){var u=document.createElement("div"),f=u.style,d=l%2,h=(l>>1)%2;f.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[d]+":0",a[h]+":0",r[1-d]+":auto",a[1-h]+":auto",""].join("!important;"),t.appendChild(u),n.push(u)}return n}function w4(t,e,n){for(var r=n?"invTrans":"trans",a=e[r],l=e.srcCoords,u=[],f=[],d=!0,h=0;h<4;h++){var p=t[h].getBoundingClientRect(),m=2*h,S=p.left,_=p.top;u.push(S,_),d=d&&l&&S===l[m]&&_===l[m+1],f.push(t[h].offsetLeft,t[h].offsetTop)}return d&&a?a:(e.srcCoords=u,e[r]=n?DL(f,u):DL(u,f))}function RL(t){return t.nodeName.toUpperCase()==="CANVAS"}var x4=/([&<>"'])/g,T4={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function to(t){return t==null?"":(t+"").replace(x4,function(e,n){return T4[n]})}var b4=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,lx=[],E4=Tt.browser.firefox&&+Tt.browser.version.split(".")[0]<39;function ux(t,e,n,r){return n=n||{},r?AL(t,e,n):E4&&e.layerX!=null&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):e.offsetX!=null?(n.zrX=e.offsetX,n.zrY=e.offsetY):AL(t,e,n),n}function AL(t,e,n){if(Tt.domSupported&&t.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(RL(t)){var l=t.getBoundingClientRect();n.zrX=r-l.left,n.zrY=a-l.top;return}else if(ox(lx,t,r,a)){n.zrX=lx[0],n.zrY=lx[1];return}}n.zrX=n.zrY=0}function sx(t){return t||window.event}function no(t,e,n){if(e=sx(e),e.zrX!=null)return e;var r=e.type,a=r&&r.indexOf("touch")>=0;if(a){var u=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];u&&ux(t,u,e,n)}else{ux(t,e,e,n);var l=D4(e);e.zrDelta=l?l/120:-(e.detail||0)/3}var f=e.button;return e.which==null&&f!==void 0&&b4.test(e.type)&&(e.which=f&1?1:f&2?3:f&4?2:0),e}function D4(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(n==null||r==null)return e;var a=Math.abs(r!==0?r:n),l=r>0?-1:r<0?1:n>0?-1:1;return 3*a*l}function M4(t,e,n,r){t.addEventListener(e,n,r)}function R4(t,e,n,r){t.removeEventListener(e,n,r)}var LL=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},A4=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,n,r){return this._doTrack(e,n,r),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,n,r){var a=e.touches;if(a){for(var l={points:[],touches:[],target:n,event:e},u=0,f=a.length;u<f;u++){var d=a[u],h=ux(r,d,{});l.points.push([h.zrX,h.zrY]),l.touches.push(d)}this._track.push(l)}},t.prototype._recognize=function(e){for(var n in fx)if(fx.hasOwnProperty(n)){var r=fx[n](this._track,e);if(r)return r}},t}();function OL(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function L4(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var fx={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,a=(t[n-2]||{}).points||r;if(a&&a.length>1&&r&&r.length>1){var l=OL(r)/OL(a);!isFinite(l)&&(l=1),e.pinchScale=l;var u=L4(r);return e.pinchX=u[0],e.pinchY=u[1],{type:"pinch",target:t[0].target,event:e}}}}};function Up(){return[1,0,0,1,0,0]}function cx(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function O4(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 tv(t,e,n){var r=e[0]*n[0]+e[2]*n[1],a=e[1]*n[0]+e[3]*n[1],l=e[0]*n[2]+e[2]*n[3],u=e[1]*n[2]+e[3]*n[3],f=e[0]*n[4]+e[2]*n[5]+e[4],d=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=a,t[2]=l,t[3]=u,t[4]=f,t[5]=d,t}function dx(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 vx(t,e,n){var r=e[0],a=e[2],l=e[4],u=e[1],f=e[3],d=e[5],h=Math.sin(n),p=Math.cos(n);return t[0]=r*p+u*h,t[1]=-r*h+u*p,t[2]=a*p+f*h,t[3]=-a*h+p*f,t[4]=p*l+h*d,t[5]=p*d-h*l,t}function k4(t,e,n){var r=n[0],a=n[1];return t[0]=e[0]*r,t[1]=e[1]*a,t[2]=e[2]*r,t[3]=e[3]*a,t[4]=e[4]*r,t[5]=e[5]*a,t}function k0(t,e){var n=e[0],r=e[2],a=e[4],l=e[1],u=e[3],f=e[5],d=n*u-l*r;return d?(d=1/d,t[0]=u*d,t[1]=-l*d,t[2]=-r*d,t[3]=n*d,t[4]=(r*f-u*a)*d,t[5]=(l*a-n*f)*d,t):null}var N4=function(){function t(e,n){this.x=e||0,this.y=n||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,n){return this.x=e,this.y=n,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,n){this.x+=e.x*n,this.y+=e.y*n},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var n=this.x-e.x,r=this.y-e.y;return Math.sqrt(n*n+r*r)},t.prototype.distanceSquare=function(e){var n=this.x-e.x,r=this.y-e.y;return n*n+r*r},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var n=this.x,r=this.y;return this.x=e[0]*n+e[2]*r+e[4],this.y=e[1]*n+e[3]*r+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,n,r){e.x=n,e.y=r},t.copy=function(e,n){e.x=n.x,e.y=n.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,n){return e.x*n.x+e.y*n.y},t.add=function(e,n,r){e.x=n.x+r.x,e.y=n.y+r.y},t.sub=function(e,n,r){e.x=n.x-r.x,e.y=n.y-r.y},t.scale=function(e,n,r){e.x=n.x*r,e.y=n.y*r},t.scaleAndAdd=function(e,n,r,a){e.x=n.x+r.x*a,e.y=n.y+r.y*a},t.lerp=function(e,n,r,a){var l=1-a;e.x=l*n.x+a*r.x,e.y=l*n.y+a*r.y},t}();const ht=N4;var N0=Math.min,P0=Math.max,Wf=new ht,Xf=new ht,qf=new ht,Qf=new ht,Vp=new ht,Hp=new ht,P4=function(){function t(e,n,r,a){r<0&&(e=e+r,r=-r),a<0&&(n=n+a,a=-a),this.x=e,this.y=n,this.width=r,this.height=a}return t.prototype.union=function(e){var n=N0(e.x,this.x),r=N0(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=P0(e.x+e.width,this.x+this.width)-n:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=P0(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=n,this.y=r},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var n=this,r=e.width/n.width,a=e.height/n.height,l=Up();return dx(l,l,[-n.x,-n.y]),k4(l,l,[r,a]),dx(l,l,[e.x,e.y]),l},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,a=r.x,l=r.x+r.width,u=r.y,f=r.y+r.height,d=e.x,h=e.x+e.width,p=e.y,m=e.y+e.height,S=!(l<d||h<a||f<p||m<u);if(n){var _=1/0,x=0,E=Math.abs(l-d),b=Math.abs(h-a),D=Math.abs(f-p),A=Math.abs(m-u),O=Math.min(E,b),P=Math.min(D,A);l<d||h<a?O>x&&(x=O,E<b?ht.set(Hp,-E,0):ht.set(Hp,b,0)):O<_&&(_=O,E<b?ht.set(Vp,E,0):ht.set(Vp,-b,0)),f<p||m<u?P>x&&(x=P,D<A?ht.set(Hp,0,-D):ht.set(Hp,0,A)):O<_&&(_=O,D<A?ht.set(Vp,0,D):ht.set(Vp,0,-A))}return n&&ht.copy(n,S?Vp:Hp),S},t.prototype.contain=function(e,n){var r=this;return e>=r.x&&e<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},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 this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,n){e.x=n.x,e.y=n.y,e.width=n.width,e.height=n.height},t.applyTransform=function(e,n,r){if(!r){e!==n&&t.copy(e,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],l=r[3],u=r[4],f=r[5];e.x=n.x*a+u,e.y=n.y*l+f,e.width=n.width*a,e.height=n.height*l,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Wf.x=qf.x=n.x,Wf.y=Qf.y=n.y,Xf.x=Qf.x=n.x+n.width,Xf.y=qf.y=n.y+n.height,Wf.transform(r),Qf.transform(r),Xf.transform(r),qf.transform(r),e.x=N0(Wf.x,Xf.x,qf.x,Qf.x),e.y=N0(Wf.y,Xf.y,qf.y,Qf.y);var d=P0(Wf.x,Xf.x,qf.x,Qf.x),h=P0(Wf.y,Xf.y,qf.y,Qf.y);e.width=d-e.x,e.height=h-e.y},t}();const Wt=P4;var kL="silent";function I4(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:z4}}function z4(){LL(this.event)}var F4=function(t){mn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.handler=null,n}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(_l),Gp=function(){function t(e,n){this.x=e,this.y=n}return t}(),B4=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],hx=new Wt(0,0,0,0),NL=function(t){mn(e,t);function e(n,r,a,l,u){var f=t.call(this)||this;return f._hovered=new Gp(0,0),f.storage=n,f.painter=r,f.painterRoot=l,f._pointerSize=u,a=a||new F4,f.proxy=null,f.setHandlerProxy(a),f._draggingMgr=new m4(f),f}return e.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(W(B4,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},e.prototype.mousemove=function(n){var r=n.zrX,a=n.zrY,l=IL(this,r,a),u=this._hovered,f=u.target;f&&!f.__zr&&(u=this.findHover(u.x,u.y),f=u.target);var d=this._hovered=l?new Gp(r,a):this.findHover(r,a),h=d.target,p=this.proxy;p.setCursor&&p.setCursor(h?h.cursor:"default"),f&&h!==f&&this.dispatchToElement(u,"mouseout",n),this.dispatchToElement(d,"mousemove",n),h&&h!==f&&this.dispatchToElement(d,"mouseover",n)},e.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},e.prototype.resize=function(){this._hovered=new Gp(0,0)},e.prototype.dispatch=function(n,r){var a=this[n];a&&a.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},e.prototype.dispatchToElement=function(n,r,a){n=n||{};var l=n.target;if(!(l&&l.silent)){for(var u="on"+r,f=I4(r,n,a);l&&(l[u]&&(f.cancelBubble=!!l[u].call(l,f)),l.trigger(r,f),l=l.__hostTarget?l.__hostTarget:l.parent,!f.cancelBubble););f.cancelBubble||(this.trigger(r,f),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(d){typeof d[u]=="function"&&d[u].call(d,f),d.trigger&&d.trigger(r,f)}))}},e.prototype.findHover=function(n,r,a){var l=this.storage.getDisplayList(),u=new Gp(n,r);if(PL(l,u,n,r,a),this._pointerSize&&!u.target){for(var f=[],d=this._pointerSize,h=d/2,p=new Wt(n-h,r-h,d,d),m=l.length-1;m>=0;m--){var S=l[m];S!==a&&!S.ignore&&!S.ignoreCoarsePointer&&(!S.parent||!S.parent.ignoreCoarsePointer)&&(hx.copy(S.getBoundingRect()),S.transform&&hx.applyTransform(S.transform),hx.intersect(p)&&f.push(S))}if(f.length)for(var _=4,x=Math.PI/12,E=Math.PI*2,b=0;b<h;b+=_)for(var D=0;D<E;D+=x){var A=n+b*Math.cos(D),O=r+b*Math.sin(D);if(PL(f,u,A,O,a),u.target)return u}}return u},e.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new A4);var a=this._gestureMgr;r==="start"&&a.clear();var l=a.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&a.clear(),l){var u=l.type;n.gestureEvent=u;var f=new Gp;f.target=l.target,this.dispatchToElement(f,u,l.event)}},e}(_l);W(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){NL.prototype[t]=function(e){var n=e.zrX,r=e.zrY,a=IL(this,n,r),l,u;if((t!=="mouseup"||!a)&&(l=this.findHover(n,r),u=l.target),t==="mousedown")this._downEl=u,this._downPoint=[e.zrX,e.zrY],this._upEl=u;else if(t==="mouseup")this._upEl=u;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||rx(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(l,t,e)}});function U4(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,a=void 0,l=!1;r;){if(r.ignoreClip&&(l=!0),!l){var u=r.getClipPath();if(u&&!u.contain(e,n))return!1;r.silent&&(a=!0)}var f=r.__hostTarget;r=f||r.parent}return a?kL:!0}return!1}function PL(t,e,n,r,a){for(var l=t.length-1;l>=0;l--){var u=t[l],f=void 0;if(u!==a&&!u.ignore&&(f=U4(u,n,r))&&(!e.topTarget&&(e.topTarget=u),f!==kL)){e.target=u;break}}}function IL(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}const V4=NL;var zL=32,$p=7;function H4(t){for(var e=0;t>=zL;)e|=t&1,t>>=1;return t+e}function FL(t,e,n,r){var a=e+1;if(a===n)return 1;if(r(t[a++],t[e])<0){for(;a<n&&r(t[a],t[a-1])<0;)a++;G4(t,e,a)}else for(;a<n&&r(t[a],t[a-1])>=0;)a++;return a-e}function G4(t,e,n){for(n--;e<n;){var r=t[e];t[e++]=t[n],t[n--]=r}}function BL(t,e,n,r,a){for(r===e&&r++;r<n;r++){for(var l=t[r],u=e,f=r,d;u<f;)d=u+f>>>1,a(l,t[d])<0?f=d:u=d+1;var h=r-u;switch(h){case 3:t[u+3]=t[u+2];case 2:t[u+2]=t[u+1];case 1:t[u+1]=t[u];break;default:for(;h>0;)t[u+h]=t[u+h-1],h--}t[u]=l}}function px(t,e,n,r,a,l){var u=0,f=0,d=1;if(l(t,e[n+a])>0){for(f=r-a;d<f&&l(t,e[n+a+d])>0;)u=d,d=(d<<1)+1,d<=0&&(d=f);d>f&&(d=f),u+=a,d+=a}else{for(f=a+1;d<f&&l(t,e[n+a-d])<=0;)u=d,d=(d<<1)+1,d<=0&&(d=f);d>f&&(d=f);var h=u;u=a-d,d=a-h}for(u++;u<d;){var p=u+(d-u>>>1);l(t,e[n+p])>0?u=p+1:d=p}return d}function gx(t,e,n,r,a,l){var u=0,f=0,d=1;if(l(t,e[n+a])<0){for(f=a+1;d<f&&l(t,e[n+a-d])<0;)u=d,d=(d<<1)+1,d<=0&&(d=f);d>f&&(d=f);var h=u;u=a-d,d=a-h}else{for(f=r-a;d<f&&l(t,e[n+a+d])>=0;)u=d,d=(d<<1)+1,d<=0&&(d=f);d>f&&(d=f),u+=a,d+=a}for(u++;u<d;){var p=u+(d-u>>>1);l(t,e[n+p])<0?d=p:u=p+1}return d}function $4(t,e){var n=$p,r,a,l=0;t.length;var u=[];r=[],a=[];function f(_,x){r[l]=_,a[l]=x,l+=1}function d(){for(;l>1;){var _=l-2;if(_>=1&&a[_-1]<=a[_]+a[_+1]||_>=2&&a[_-2]<=a[_]+a[_-1])a[_-1]<a[_+1]&&_--;else if(a[_]>a[_+1])break;p(_)}}function h(){for(;l>1;){var _=l-2;_>0&&a[_-1]<a[_+1]&&_--,p(_)}}function p(_){var x=r[_],E=a[_],b=r[_+1],D=a[_+1];a[_]=E+D,_===l-3&&(r[_+1]=r[_+2],a[_+1]=a[_+2]),l--;var A=gx(t[b],t,x,E,0,e);x+=A,E-=A,E!==0&&(D=px(t[x+E-1],t,b,D,D-1,e),D!==0&&(E<=D?m(x,E,b,D):S(x,E,b,D)))}function m(_,x,E,b){var D=0;for(D=0;D<x;D++)u[D]=t[_+D];var A=0,O=E,P=_;if(t[P++]=t[O++],--b===0){for(D=0;D<x;D++)t[P+D]=u[A+D];return}if(x===1){for(D=0;D<b;D++)t[P+D]=t[O+D];t[P+b]=u[A];return}for(var I=n,F,U,H;;){F=0,U=0,H=!1;do if(e(t[O],u[A])<0){if(t[P++]=t[O++],U++,F=0,--b===0){H=!0;break}}else if(t[P++]=u[A++],F++,U=0,--x===1){H=!0;break}while((F|U)<I);if(H)break;do{if(F=gx(t[O],u,A,x,0,e),F!==0){for(D=0;D<F;D++)t[P+D]=u[A+D];if(P+=F,A+=F,x-=F,x<=1){H=!0;break}}if(t[P++]=t[O++],--b===0){H=!0;break}if(U=px(u[A],t,O,b,0,e),U!==0){for(D=0;D<U;D++)t[P+D]=t[O+D];if(P+=U,O+=U,b-=U,b===0){H=!0;break}}if(t[P++]=u[A++],--x===1){H=!0;break}I--}while(F>=$p||U>=$p);if(H)break;I<0&&(I=0),I+=2}if(n=I,n<1&&(n=1),x===1){for(D=0;D<b;D++)t[P+D]=t[O+D];t[P+b]=u[A]}else{if(x===0)throw new Error;for(D=0;D<x;D++)t[P+D]=u[A+D]}}function S(_,x,E,b){var D=0;for(D=0;D<b;D++)u[D]=t[E+D];var A=_+x-1,O=b-1,P=E+b-1,I=0,F=0;if(t[P--]=t[A--],--x===0){for(I=P-(b-1),D=0;D<b;D++)t[I+D]=u[D];return}if(b===1){for(P-=x,A-=x,F=P+1,I=A+1,D=x-1;D>=0;D--)t[F+D]=t[I+D];t[P]=u[O];return}for(var U=n;;){var H=0,j=0,X=!1;do if(e(u[O],t[A])<0){if(t[P--]=t[A--],H++,j=0,--x===0){X=!0;break}}else if(t[P--]=u[O--],j++,H=0,--b===1){X=!0;break}while((H|j)<U);if(X)break;do{if(H=x-gx(u[O],t,_,x,x-1,e),H!==0){for(P-=H,A-=H,x-=H,F=P+1,I=A+1,D=H-1;D>=0;D--)t[F+D]=t[I+D];if(x===0){X=!0;break}}if(t[P--]=u[O--],--b===1){X=!0;break}if(j=b-px(t[A],u,0,b,b-1,e),j!==0){for(P-=j,O-=j,b-=j,F=P+1,I=O+1,D=0;D<j;D++)t[F+D]=u[I+D];if(b<=1){X=!0;break}}if(t[P--]=t[A--],--x===0){X=!0;break}U--}while(H>=$p||j>=$p);if(X)break;U<0&&(U=0),U+=2}if(n=U,n<1&&(n=1),b===1){for(P-=x,A-=x,F=P+1,I=A+1,D=x-1;D>=0;D--)t[F+D]=t[I+D];t[P]=u[O]}else{if(b===0)throw new Error;for(I=P-(b-1),D=0;D<b;D++)t[I+D]=u[D]}}return{mergeRuns:d,forceMergeRuns:h,pushRun:f}}function I0(t,e,n,r){n||(n=0),r||(r=t.length);var a=r-n;if(!(a<2)){var l=0;if(a<zL){l=FL(t,n,r,e),BL(t,n,r,n+l,e);return}var u=$4(t,e),f=H4(a);do{if(l=FL(t,n,r,e),l<f){var d=a;d>f&&(d=f),BL(t,n,n+d,n+l,e),l=d}u.pushRun(n,l),u.mergeRuns(),a-=l,n+=l}while(a!==0);u.forceMergeRuns()}}var La=1,jp=2,nv=4,UL=!1;function mx(){UL||(UL=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function VL(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var j4=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=VL}return t.prototype.traverse=function(e,n){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(e,n)},t.prototype.getDisplayList=function(e,n){n=n||!1;var r=this._displayList;return(e||!r.length)&&this.updateDisplayList(n),r},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var n=this._roots,r=this._displayList,a=0,l=n.length;a<l;a++)this._updateAndAddDisplayable(n[a],null,e);r.length=this._displayListLen,I0(r,VL)},t.prototype._updateAndAddDisplayable=function(e,n,r){if(!(e.ignore&&!r)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath();if(e.ignoreClip)n=null;else if(a){n?n=n.slice():n=[];for(var l=a,u=e;l;)l.parent=u,l.updateTransform(),n.push(l),u=l,l=l.getClipPath()}if(e.childrenRef){for(var f=e.childrenRef(),d=0;d<f.length;d++){var h=f[d];e.__dirty&&(h.__dirty|=La),this._updateAndAddDisplayable(h,n,r)}e.__dirty=0}else{var p=e;n&&n.length?p.__clipPaths=n:p.__clipPaths&&p.__clipPaths.length>0&&(p.__clipPaths=[]),isNaN(p.z)&&(mx(),p.z=0),isNaN(p.z2)&&(mx(),p.z2=0),isNaN(p.zlevel)&&(mx(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,n,r);var S=e.getTextGuideLine();S&&this._updateAndAddDisplayable(S,n,r);var _=e.getTextContent();_&&this._updateAndAddDisplayable(_,n,r)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var n=0,r=e.length;n<r;n++)this.delRoot(e[n]);return}var a=dn(this._roots,e);a>=0&&this._roots.splice(a,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 Y4=j4;var HL;HL=Tt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};const yx=HL;var z0={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)))},elasticOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)):n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-z0.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?z0.bounceIn(t*2)*.5:z0.bounceOut(t*2-1)*.5+.5}};const GL=z0;var F0=Math.pow,Ts=Math.sqrt,B0=1e-8,$L=1e-4,jL=Ts(3),U0=1/3,Sl=Qd(),ro=Qd(),rv=Qd();function bs(t){return t>-B0&&t<B0}function YL(t){return t>B0||t<-B0}function Qr(t,e,n,r,a){var l=1-a;return l*l*(l*t+3*a*e)+a*a*(a*r+3*l*n)}function WL(t,e,n,r,a){var l=1-a;return 3*(((e-t)*l+2*(n-e)*a)*l+(r-n)*a*a)}function XL(t,e,n,r,a,l){var u=r+3*(e-n)-t,f=3*(n-e*2+t),d=3*(e-t),h=t-a,p=f*f-3*u*d,m=f*d-9*u*h,S=d*d-3*f*h,_=0;if(bs(p)&&bs(m))if(bs(f))l[0]=0;else{var x=-d/f;x>=0&&x<=1&&(l[_++]=x)}else{var E=m*m-4*p*S;if(bs(E)){var b=m/p,x=-f/u+b,D=-b/2;x>=0&&x<=1&&(l[_++]=x),D>=0&&D<=1&&(l[_++]=D)}else if(E>0){var A=Ts(E),O=p*f+1.5*u*(-m+A),P=p*f+1.5*u*(-m-A);O<0?O=-F0(-O,U0):O=F0(O,U0),P<0?P=-F0(-P,U0):P=F0(P,U0);var x=(-f-(O+P))/(3*u);x>=0&&x<=1&&(l[_++]=x)}else{var I=(2*p*f-3*u*m)/(2*Ts(p*p*p)),F=Math.acos(I)/3,U=Ts(p),H=Math.cos(F),x=(-f-2*U*H)/(3*u),D=(-f+U*(H+jL*Math.sin(F)))/(3*u),j=(-f+U*(H-jL*Math.sin(F)))/(3*u);x>=0&&x<=1&&(l[_++]=x),D>=0&&D<=1&&(l[_++]=D),j>=0&&j<=1&&(l[_++]=j)}}return _}function qL(t,e,n,r,a){var l=6*n-12*e+6*t,u=9*e+3*r-3*t-9*n,f=3*e-3*t,d=0;if(bs(u)){if(YL(l)){var h=-f/l;h>=0&&h<=1&&(a[d++]=h)}}else{var p=l*l-4*u*f;if(bs(p))a[0]=-l/(2*u);else if(p>0){var m=Ts(p),h=(-l+m)/(2*u),S=(-l-m)/(2*u);h>=0&&h<=1&&(a[d++]=h),S>=0&&S<=1&&(a[d++]=S)}}return d}function Es(t,e,n,r,a,l){var u=(e-t)*a+t,f=(n-e)*a+e,d=(r-n)*a+n,h=(f-u)*a+u,p=(d-f)*a+f,m=(p-h)*a+h;l[0]=t,l[1]=u,l[2]=h,l[3]=m,l[4]=m,l[5]=p,l[6]=d,l[7]=r}function QL(t,e,n,r,a,l,u,f,d,h,p){var m,S=.005,_=1/0,x,E,b,D;Sl[0]=d,Sl[1]=h;for(var A=0;A<1;A+=.05)ro[0]=Qr(t,n,a,u,A),ro[1]=Qr(e,r,l,f,A),b=Zd(Sl,ro),b<_&&(m=A,_=b);_=1/0;for(var O=0;O<32&&!(S<$L);O++)x=m-S,E=m+S,ro[0]=Qr(t,n,a,u,x),ro[1]=Qr(e,r,l,f,x),b=Zd(ro,Sl),x>=0&&b<_?(m=x,_=b):(rv[0]=Qr(t,n,a,u,E),rv[1]=Qr(e,r,l,f,E),D=Zd(rv,Sl),E<=1&&D<_?(m=E,_=D):S*=.5);return p&&(p[0]=Qr(t,n,a,u,m),p[1]=Qr(e,r,l,f,m)),Ts(_)}function W4(t,e,n,r,a,l,u,f,d){for(var h=t,p=e,m=0,S=1/d,_=1;_<=d;_++){var x=_*S,E=Qr(t,n,a,u,x),b=Qr(e,r,l,f,x),D=E-h,A=b-p;m+=Math.sqrt(D*D+A*A),h=E,p=b}return m}function fi(t,e,n,r){var a=1-r;return a*(a*t+2*r*e)+r*r*n}function ZL(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function X4(t,e,n,r,a){var l=t-2*e+n,u=2*(e-t),f=t-r,d=0;if(bs(l)){if(YL(u)){var h=-f/u;h>=0&&h<=1&&(a[d++]=h)}}else{var p=u*u-4*l*f;if(bs(p)){var h=-u/(2*l);h>=0&&h<=1&&(a[d++]=h)}else if(p>0){var m=Ts(p),h=(-u+m)/(2*l),S=(-u-m)/(2*l);h>=0&&h<=1&&(a[d++]=h),S>=0&&S<=1&&(a[d++]=S)}}return d}function KL(t,e,n){var r=t+n-2*e;return r===0?.5:(t-e)/r}function V0(t,e,n,r,a){var l=(e-t)*r+t,u=(n-e)*r+e,f=(u-l)*r+l;a[0]=t,a[1]=l,a[2]=f,a[3]=f,a[4]=u,a[5]=n}function JL(t,e,n,r,a,l,u,f,d){var h,p=.005,m=1/0;Sl[0]=u,Sl[1]=f;for(var S=0;S<1;S+=.05){ro[0]=fi(t,n,a,S),ro[1]=fi(e,r,l,S);var _=Zd(Sl,ro);_<m&&(h=S,m=_)}m=1/0;for(var x=0;x<32&&!(p<$L);x++){var E=h-p,b=h+p;ro[0]=fi(t,n,a,E),ro[1]=fi(e,r,l,E);var _=Zd(ro,Sl);if(E>=0&&_<m)h=E,m=_;else{rv[0]=fi(t,n,a,b),rv[1]=fi(e,r,l,b);var D=Zd(rv,Sl);b<=1&&D<m?(h=b,m=D):p*=.5}}return d&&(d[0]=fi(t,n,a,h),d[1]=fi(e,r,l,h)),Ts(m)}function q4(t,e,n,r,a,l,u){for(var f=t,d=e,h=0,p=1/u,m=1;m<=u;m++){var S=m*p,_=fi(t,n,a,S),x=fi(e,r,l,S),E=_-f,b=x-d;h+=Math.sqrt(E*E+b*b),f=_,d=x}return h}var Q4=/cubic-bezier\(([0-9,\.e ]+)\)/;function eO(t){var e=t&&Q4.exec(t);if(e){var n=e[1].split(","),r=+yl(n[0]),a=+yl(n[1]),l=+yl(n[2]),u=+yl(n[3]);if(isNaN(r+a+l+u))return;var f=[];return function(d){return d<=0?0:d>=1?1:XL(0,r,l,1,d,f)&&Qr(0,a,u,1,f[0])}}}var Z4=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||ta,this.ondestroy=e.ondestroy||ta,this.onrestart=e.onrestart||ta,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,n){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,a=e-this._startTime-this._pausedTime,l=a/r;l<0&&(l=0),l=Math.min(l,1);var u=this.easingFunc,f=u?u(l):l;if(this.onframe(f),l===1)if(this.loop){var d=a%r;this._startTime=e-d,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=_t(e)?e:GL[e]||eO(e)},t}();const K4=Z4;var tO=function(){function t(e){this.value=e}return t}(),J4=function(){function t(){this._len=0}return t.prototype.insert=function(e){var n=new tO(e);return this.insertEntry(n),n},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var n=e.prev,r=e.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),e6=function(){function t(e){this._list=new J4,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,n){var r=this._list,a=this._map,l=null;if(a[e]==null){var u=r.len(),f=this._lastRemovedEntry;if(u>=this._maxSize&&u>0){var d=r.head;r.remove(d),delete a[d.key],l=d.value,this._lastRemovedEntry=d}f?f.value=n:f=new tO(n),f.key=e,r.insertEntry(f),a[e]=f}return l},t.prototype.get=function(e){var n=this._map[e],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const Yp=e6;var nO={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 Wp(t){return t=Math.round(t),t<0?0:t>255?255:t}function rO(t){return t<0?0:t>1?1:t}function _x(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Wp(parseFloat(e)/100*255):Wp(parseInt(e,10))}function Xp(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?rO(parseFloat(e)/100):rO(parseFloat(e))}function Sx(t,e,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?t+(e-t)*n*6:n*2<1?e:n*3<2?t+(e-t)*(2/3-n)*6:t}function io(t,e,n,r,a){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,t}function Cx(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var iO=new Yp(20),H0=null;function iv(t,e){H0&&Cx(H0,e),H0=iO.put(t,H0||e.slice())}function av(t,e){if(t){e=e||[];var n=iO.get(t);if(n)return Cx(e,n);t=t+"";var r=t.replace(/ /g,"").toLowerCase();if(r in nO)return Cx(e,nO[r]),iv(t,e),e;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var l=parseInt(r.slice(1,4),16);if(!(l>=0&&l<=4095)){io(e,0,0,0,1);return}return io(e,(l&3840)>>4|(l&3840)>>8,l&240|(l&240)>>4,l&15|(l&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),iv(t,e),e}else if(a===7||a===9){var l=parseInt(r.slice(1,7),16);if(!(l>=0&&l<=16777215)){io(e,0,0,0,1);return}return io(e,(l&16711680)>>16,(l&65280)>>8,l&255,a===9?parseInt(r.slice(7),16)/255:1),iv(t,e),e}return}var u=r.indexOf("("),f=r.indexOf(")");if(u!==-1&&f+1===a){var d=r.substr(0,u),h=r.substr(u+1,f-(u+1)).split(","),p=1;switch(d){case"rgba":if(h.length!==4)return h.length===3?io(e,+h[0],+h[1],+h[2],1):io(e,0,0,0,1);p=Xp(h.pop());case"rgb":if(h.length>=3)return io(e,_x(h[0]),_x(h[1]),_x(h[2]),h.length===3?p:Xp(h[3])),iv(t,e),e;io(e,0,0,0,1);return;case"hsla":if(h.length!==4){io(e,0,0,0,1);return}return h[3]=Xp(h[3]),aO(h,e),iv(t,e),e;case"hsl":if(h.length!==3){io(e,0,0,0,1);return}return aO(h,e),iv(t,e),e;default:return}}io(e,0,0,0,1)}}function aO(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=Xp(t[1]),a=Xp(t[2]),l=a<=.5?a*(r+1):a+r-a*r,u=a*2-l;return e=e||[],io(e,Wp(Sx(u,l,n+1/3)*255),Wp(Sx(u,l,n)*255),Wp(Sx(u,l,n-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function oO(t,e){var n=av(t);if(n){for(var r=0;r<3;r++)e<0?n[r]=n[r]*(1-e)|0:n[r]=(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return lO(n,n.length===4?"rgba":"rgb")}}function lO(t,e){if(!(!t||!t.length)){var n=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(n+=","+t[3]),e+"("+n+")"}}function G0(t,e){var n=av(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function t6(t){return t.type==="linear"}function n6(t){return t.type==="radial"}(function(){return Tt.hasGlobalWindow&&_t(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return process.env.NODE_ENV!=="production"&&jf("Base64 isn't natively supported in the current environment."),null}})();var xx=Array.prototype.slice;function Su(t,e,n){return(e-t)*n+t}function Tx(t,e,n,r){for(var a=e.length,l=0;l<a;l++)t[l]=Su(e[l],n[l],r);return t}function r6(t,e,n,r){for(var a=e.length,l=a&&e[0].length,u=0;u<a;u++){t[u]||(t[u]=[]);for(var f=0;f<l;f++)t[u][f]=Su(e[u][f],n[u][f],r)}return t}function $0(t,e,n,r){for(var a=e.length,l=0;l<a;l++)t[l]=e[l]+n[l]*r;return t}function uO(t,e,n,r){for(var a=e.length,l=a&&e[0].length,u=0;u<a;u++){t[u]||(t[u]=[]);for(var f=0;f<l;f++)t[u][f]=e[u][f]+n[u][f]*r}return t}function i6(t,e){for(var n=t.length,r=e.length,a=n>r?e:t,l=Math.min(n,r),u=a[l-1]||{color:[0,0,0,0],offset:0},f=l;f<Math.max(n,r);f++)a.push({offset:u.offset,color:u.color.slice()})}function a6(t,e,n){var r=t,a=e;if(!(!r.push||!a.push)){var l=r.length,u=a.length;if(l!==u){var f=l>u;if(f)r.length=u;else for(var d=l;d<u;d++)r.push(n===1?a[d]:xx.call(a[d]))}for(var h=r[0]&&r[0].length,d=0;d<r.length;d++)if(n===1)isNaN(r[d])&&(r[d]=a[d]);else for(var p=0;p<h;p++)isNaN(r[d][p])&&(r[d][p]=a[d][p])}}function j0(t){if(Ai(t)){var e=t.length;if(Ai(t[0])){for(var n=[],r=0;r<e;r++)n.push(xx.call(t[r]));return n}return xx.call(t)}return t}function Y0(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function o6(t){return Ai(t&&t[0])?2:1}var W0=0,X0=1,sO=2,qp=3,bx=4,Ex=5,fO=6;function cO(t){return t===bx||t===Ex}function q0(t){return t===X0||t===sO}var Qp=[0,0,0,0],l6=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,n,r){this._needsSort=!0;var a=this.keyframes,l=a.length,u=!1,f=fO,d=n;if(Ai(n)){var h=o6(n);f=h,(h===1&&!Nn(n[0])||h===2&&!Nn(n[0][0]))&&(u=!0)}else if(Nn(n)&&!Fp(n))f=W0;else if(et(n))if(!isNaN(+n))f=W0;else{var p=av(n);p&&(d=p,f=qp)}else if(R0(n)){var m=Re({},d);m.colorStops=ot(n.colorStops,function(_){return{offset:_.offset,color:av(_.color)}}),t6(n)?f=bx:n6(n)&&(f=Ex),d=m}l===0?this.valType=f:(f!==this.valType||f===fO)&&(u=!0),this.discrete=this.discrete||u;var S={time:e,value:d,rawValue:n,percent:0};return r&&(S.easing=r,S.easingFunc=_t(r)?r:GL[r]||eO(r)),a.push(S),S},t.prototype.prepare=function(e,n){var r=this.keyframes;this._needsSort&&r.sort(function(E,b){return E.time-b.time});for(var a=this.valType,l=r.length,u=r[l-1],f=this.discrete,d=q0(a),h=cO(a),p=0;p<l;p++){var m=r[p],S=m.value,_=u.value;m.percent=m.time/e,f||(d&&p!==l-1?a6(S,_,a):h&&i6(S.colorStops,_.colorStops))}if(!f&&a!==Ex&&n&&this.needsAnimate()&&n.needsAnimate()&&a===n.valType&&!n._finished){this._additiveTrack=n;for(var x=r[0].value,p=0;p<l;p++)a===W0?r[p].additiveValue=r[p].value-x:a===qp?r[p].additiveValue=$0([],r[p].value,x,-1):q0(a)&&(r[p].additiveValue=a===X0?$0([],r[p].value,x,-1):uO([],r[p].value,x,-1))}},t.prototype.step=function(e,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,a=r?"additiveValue":"value",l=this.valType,u=this.keyframes,f=u.length,d=this.propName,h=l===qp,p,m=this._lastFr,S=Math.min,_,x;if(f===1)_=x=u[0];else{if(n<0)p=0;else if(n<this._lastFrP){var E=S(m+1,f-1);for(p=E;p>=0&&!(u[p].percent<=n);p--);p=S(p,f-2)}else{for(p=m;p<f&&!(u[p].percent>n);p++);p=S(p-1,f-2)}x=u[p+1],_=u[p]}if(_&&x){this._lastFr=p,this._lastFrP=n;var b=x.percent-_.percent,D=b===0?1:S((n-_.percent)/b,1);x.easingFunc&&(D=x.easingFunc(D));var A=r?this._additiveValue:h?Qp:e[d];if((q0(l)||h)&&!A&&(A=this._additiveValue=[]),this.discrete)e[d]=D<1?_.rawValue:x.rawValue;else if(q0(l))l===X0?Tx(A,_[a],x[a],D):r6(A,_[a],x[a],D);else if(cO(l)){var O=_[a],P=x[a],I=l===bx;e[d]={type:I?"linear":"radial",x:Su(O.x,P.x,D),y:Su(O.y,P.y,D),colorStops:ot(O.colorStops,function(U,H){var j=P.colorStops[H];return{offset:Su(U.offset,j.offset,D),color:Y0(Tx([],U.color,j.color,D))}}),global:P.global},I?(e[d].x2=Su(O.x2,P.x2,D),e[d].y2=Su(O.y2,P.y2,D)):e[d].r=Su(O.r,P.r,D)}else if(h)Tx(A,_[a],x[a],D),r||(e[d]=Y0(A));else{var F=Su(_[a],x[a],D);r?this._additiveValue=F:e[d]=F}r&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var n=this.valType,r=this.propName,a=this._additiveValue;n===W0?e[r]=e[r]+a:n===qp?(av(e[r],Qp),$0(Qp,Qp,a,1),e[r]=Y0(Qp)):n===X0?$0(e[r],e[r],a,1):n===sO&&uO(e[r],e[r],a,1)},t}(),u6=function(){function t(e,n,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=n,n&&a){jf("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,n,r){return this.whenWithKeys(e,n,kn(n),r)},t.prototype.whenWithKeys=function(e,n,r,a){for(var l=this._tracks,u=0;u<r.length;u++){var f=r[u],d=l[f];if(!d){d=l[f]=new l6(f);var h=void 0,p=this._getAdditiveTrack(f);if(p){var m=p.keyframes,S=m[m.length-1];h=S&&S.value,p.valType===qp&&h&&(h=Y0(h))}else h=this._target[f];if(h==null)continue;e>0&&d.addKeyframe(0,j0(h),a),this._trackKeys.push(f)}d.addKeyframe(e,j0(n[f]),a)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var n=e.length,r=0;r<n;r++)e[r].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,n=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,n)for(var r=0;r<n.length;r++)n[r].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,n=this._trackKeys,r=0;r<n.length;r++)e[n[r]].setFinished()},t.prototype._getAdditiveTrack=function(e){var n,r=this._additiveAnimators;if(r)for(var a=0;a<r.length;a++){var l=r[a].getTrack(e);l&&(n=l)}return n},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var n=this,r=[],a=this._maxTime||0,l=0;l<this._trackKeys.length;l++){var u=this._trackKeys[l],f=this._tracks[u],d=this._getAdditiveTrack(u),h=f.keyframes,p=h.length;if(f.prepare(a,d),f.needsAnimate())if(!this._allowDiscrete&&f.discrete){var m=h[p-1];m&&(n._target[f.propName]=m.rawValue),f.setFinished()}else r.push(f)}if(r.length||this._force){var S=new K4({life:a,loop:this._loop,delay:this._delay||0,onframe:function(_){n._started=2;var x=n._additiveAnimators;if(x){for(var E=!1,b=0;b<x.length;b++)if(x[b]._clip){E=!0;break}E||(n._additiveAnimators=null)}for(var b=0;b<r.length;b++)r[b].step(n._target,_);var D=n._onframeCbs;if(D)for(var b=0;b<D.length;b++)D[b](n._target,_)},ondestroy:function(){n._doneCallback()}});this._clip=S,this.animation&&this.animation.addClip(S),e&&S.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var n=this._clip;e&&n.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return ot(this._trackKeys,function(n){return e._tracks[n]})},t.prototype.stopTracks=function(e,n){if(!e.length||!this._clip)return!0;for(var r=this._tracks,a=this._trackKeys,l=0;l<e.length;l++){var u=r[e[l]];u&&!u.isFinished()&&(n?u.step(this._target,1):this._started===1&&u.step(this._target,0),u.setFinished())}for(var f=!0,l=0;l<a.length;l++)if(!r[a[l]].isFinished()){f=!1;break}return f&&this._abortedCallback(),f},t.prototype.saveTo=function(e,n,r){if(e){n=n||this._trackKeys;for(var a=0;a<n.length;a++){var l=n[a],u=this._tracks[l];if(!(!u||u.isFinished())){var f=u.keyframes,d=f[r?0:f.length-1];d&&(e[l]=j0(d.rawValue))}}}},t.prototype.__changeFinalValue=function(e,n){n=n||kn(e);for(var r=0;r<n.length;r++){var a=n[r],l=this._tracks[a];if(l){var u=l.keyframes;if(u.length>1){var f=u.pop();l.addKeyframe(f.time,e[a]),l.prepare(this._maxTime,l.getAdditiveTrack())}}}},t}();const Dx=u6;function ov(){return new Date().getTime()}var s6=function(t){mn(e,t);function e(n){var r=t.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return e.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},e.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(n){if(n.animation){var r=n.prev,a=n.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},e.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},e.prototype.update=function(n){for(var r=ov()-this._pausedTime,a=r-this._time,l=this._head;l;){var u=l.next,f=l.step(r,a);f&&(l.ondestroy(),this.removeClip(l)),l=u}this._time=r,n||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(yx(r),!n._paused&&n.update())}yx(r)},e.prototype.start=function(){this._running||(this._time=ov(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ov(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ov()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(n,r){r=r||{},this.start();var a=new Dx(n,r.loop);return this.addAnimator(a),a},e}(_l);const f6=s6;var c6=300,Mx=Tt.domSupported,Rx=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=ot(t,function(a){var l=a.replace("mouse","pointer");return n.hasOwnProperty(l)?l:a});return{mouse:t,touch:e,pointer:r}}(),dO={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},vO=!1;function Ax(t){var e=t.pointerType;return e==="pen"||e==="touch"}function d6(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Lx(t){t&&(t.zrByTouch=!0)}function v6(t,e){return no(t.dom,new h6(t,e),!0)}function hO(t,e){for(var n=e,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var h6=function(){function t(e,n){this.stopPropagation=ta,this.stopImmediatePropagation=ta,this.preventDefault=ta,this.type=n.type,this.target=this.currentTarget=e.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return t}(),Lo={mousedown:function(t){t=no(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=no(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=no(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=no(this.dom,t);var e=t.toElement||t.relatedTarget;hO(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){vO=!0,t=no(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){vO||(t=no(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=no(this.dom,t),Lx(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Lo.mousemove.call(this,t),Lo.mousedown.call(this,t)},touchmove:function(t){t=no(this.dom,t),Lx(t),this.handler.processGesture(t,"change"),Lo.mousemove.call(this,t)},touchend:function(t){t=no(this.dom,t),Lx(t),this.handler.processGesture(t,"end"),Lo.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<c6&&Lo.click.call(this,t)},pointerdown:function(t){Lo.mousedown.call(this,t)},pointermove:function(t){Ax(t)||Lo.mousemove.call(this,t)},pointerup:function(t){Lo.mouseup.call(this,t)},pointerout:function(t){Ax(t)||Lo.mouseout.call(this,t)}};W(["click","dblclick","contextmenu"],function(t){Lo[t]=function(e){e=no(this.dom,e),this.trigger(t,e)}});var Ox={pointermove:function(t){Ax(t)||Ox.mousemove.call(this,t)},pointerup:function(t){Ox.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 p6(t,e){var n=e.domHandlers;Tt.pointerEventsSupported?W(Rx.pointer,function(r){Q0(e,r,function(a){n[r].call(t,a)})}):(Tt.touchEventsSupported&&W(Rx.touch,function(r){Q0(e,r,function(a){n[r].call(t,a),d6(e)})}),W(Rx.mouse,function(r){Q0(e,r,function(a){a=sx(a),e.touching||n[r].call(t,a)})}))}function g6(t,e){Tt.pointerEventsSupported?W(dO.pointer,n):Tt.touchEventsSupported||W(dO.mouse,n);function n(r){function a(l){l=sx(l),hO(t,l.target)||(l=v6(t,l),e.domHandlers[r].call(t,l))}Q0(e,r,a,{capture:!0})}}function Q0(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,M4(t.domTarget,e,n,r)}function kx(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&R4(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var pO=function(){function t(e,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=n}return t}(),m6=function(t){mn(e,t);function e(n,r){var a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=n,a.painterRoot=r,a._localHandlerScope=new pO(n,Lo),Mx&&(a._globalHandlerScope=new pO(document,Ox)),p6(a,a._localHandlerScope),a}return e.prototype.dispose=function(){kx(this._localHandlerScope),Mx&&kx(this._globalHandlerScope)},e.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},e.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,Mx&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?g6(this,r):kx(r)}},e}(_l);const y6=m6;var gO=1;Tt.hasGlobalWindow&&(gO=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Z0=gO,Nx=.4,Px="#333",Ix="#ccc",_6="#eee",mO=cx,yO=5e-5;function Zf(t){return t>yO||t<-yO}var Kf=[],lv=[],zx=Up(),Fx=Math.abs,S6=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Zf(this.rotation)||Zf(this.x)||Zf(this.y)||Zf(this.scaleX-1)||Zf(this.scaleY-1)||Zf(this.skewX)||Zf(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||e)){r&&mO(r);return}r=r||Up(),n?this.getLocalTransform(r):mO(r),e&&(n?tv(r,e,r):O4(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},t.prototype._resolveGlobalScaleRatio=function(e){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(Kf);var r=Kf[0]<0?-1:1,a=Kf[1]<0?-1:1,l=((Kf[0]-r)*n+r)/Kf[0]||0,u=((Kf[1]-a)*n+a)/Kf[1]||0;e[0]*=l,e[1]*=l,e[2]*=u,e[3]*=u}this.invTransform=this.invTransform||Up(),k0(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,n=[];e;)n.push(e),e=e.parent;for(;e=n.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var n=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),l=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(l),n=Math.sqrt(n),this.skewX=l,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,n=this.transform;e&&e.transform&&(tv(lv,e.invTransform,n),n=lv);var r=this.originX,a=this.originY;(r||a)&&(zx[4]=r,zx[5]=a,tv(lv,n,zx),lv[4]-=r,lv[5]-=a,n=lv),this.setLocalTransform(n)}},t.prototype.getGlobalScale=function(e){var n=this.transform;return e=e||[],n?(e[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),e[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(e[0]=-e[0]),n[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,n){var r=[e,n],a=this.invTransform;return a&&eo(r,r,a),r},t.prototype.transformCoordToGlobal=function(e,n){var r=[e,n],a=this.transform;return a&&eo(r,r,a),r},t.prototype.getLineScale=function(){var e=this.transform;return e&&Fx(e[0]-1)>1e-10&&Fx(e[3]-1)>1e-10?Math.sqrt(Fx(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){C6(this,e)},t.getLocalTransform=function(e,n){n=n||[];var r=e.originX||0,a=e.originY||0,l=e.scaleX,u=e.scaleY,f=e.anchorX,d=e.anchorY,h=e.rotation||0,p=e.x,m=e.y,S=e.skewX?Math.tan(e.skewX):0,_=e.skewY?Math.tan(-e.skewY):0;if(r||a||f||d){var x=r+f,E=a+d;n[4]=-x*l-S*E*u,n[5]=-E*u-_*x*l}else n[4]=n[5]=0;return n[0]=l,n[3]=u,n[1]=_*l,n[2]=S*u,h&&vx(n,n,h),n[4]+=r+p,n[5]+=a+m,n},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Zp=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function C6(t,e){for(var n=0;n<Zp.length;n++){var r=Zp[n];t[r]=e[r]}}const Kp=S6;var _O={};function Oa(t,e){e=e||Gf;var n=_O[e];n||(n=_O[e]=new Yp(500));var r=n.get(t);return r==null&&(r=$f.measureText(t,e).width,n.put(t,r)),r}function SO(t,e,n,r){var a=Oa(t,e),l=Ux(e),u=Jp(0,a,n),f=uv(0,l,r),d=new Wt(u,f,a,l);return d}function Bx(t,e,n,r){var a=((t||"")+"").split(`
192
+ `),l=a.length;if(l===1)return SO(a[0],e,n,r);for(var u=new Wt(0,0,0,0),f=0;f<a.length;f++){var d=SO(a[f],e,n,r);f===0?u.copy(d):u.union(d)}return u}function Jp(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function uv(t,e,n){return n==="middle"?t-=e/2:n==="bottom"&&(t-=e),t}function Ux(t){return Oa("国",t)}function Jf(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function K0(t,e,n){var r=e.position||"inside",a=e.distance!=null?e.distance:5,l=n.height,u=n.width,f=l/2,d=n.x,h=n.y,p="left",m="top";if(r instanceof Array)d+=Jf(r[0],n.width),h+=Jf(r[1],n.height),p=null,m=null;else switch(r){case"left":d-=a,h+=f,p="right",m="middle";break;case"right":d+=a+u,h+=f,m="middle";break;case"top":d+=u/2,h-=a,p="center",m="bottom";break;case"bottom":d+=u/2,h+=l+a,p="center";break;case"inside":d+=u/2,h+=f,p="center",m="middle";break;case"insideLeft":d+=a,h+=f,m="middle";break;case"insideRight":d+=u-a,h+=f,p="right",m="middle";break;case"insideTop":d+=u/2,h+=a,p="center";break;case"insideBottom":d+=u/2,h+=l-a,p="center",m="bottom";break;case"insideTopLeft":d+=a,h+=a;break;case"insideTopRight":d+=u-a,h+=a,p="right";break;case"insideBottomLeft":d+=a,h+=l-a,m="bottom";break;case"insideBottomRight":d+=u-a,h+=l-a,p="right",m="bottom";break}return t=t||{},t.x=d,t.y=h,t.align=p,t.verticalAlign=m,t}var Vx="__zr_normal__",Hx=Zp.concat(["ignore"]),w6=Xd(Zp,function(t,e){return t[e]=!0,t},{ignore:!1}),sv={},x6=new Wt(0,0,0,0),Gx=function(){function t(e){this.id=_L(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=n,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var n=this._textContent;if(n&&(!n.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,l=n.innerTransformable,u=void 0,f=void 0,d=!1;l.parent=a?this:null;var h=!1;if(l.copyTransform(n),r.position!=null){var p=x6;r.layoutRect?p.copy(r.layoutRect):p.copy(this.getBoundingRect()),a||p.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(sv,r,p):K0(sv,r,p),l.x=sv.x,l.y=sv.y,u=sv.align,f=sv.verticalAlign;var m=r.origin;if(m&&r.rotation!=null){var S=void 0,_=void 0;m==="center"?(S=p.width*.5,_=p.height*.5):(S=Jf(m[0],p.width),_=Jf(m[1],p.height)),h=!0,l.originX=-l.x+S+(a?0:p.x),l.originY=-l.y+_+(a?0:p.y)}}r.rotation!=null&&(l.rotation=r.rotation);var x=r.offset;x&&(l.x+=x[0],l.y+=x[1],h||(l.originX=-x[0],l.originY=-x[1]));var E=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,b=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),D=void 0,A=void 0,O=void 0;E&&this.canBeInsideText()?(D=r.insideFill,A=r.insideStroke,(D==null||D==="auto")&&(D=this.getInsideTextFill()),(A==null||A==="auto")&&(A=this.getInsideTextStroke(D),O=!0)):(D=r.outsideFill,A=r.outsideStroke,(D==null||D==="auto")&&(D=this.getOutsideFill()),(A==null||A==="auto")&&(A=this.getOutsideStroke(D),O=!0)),D=D||"#000",(D!==b.fill||A!==b.stroke||O!==b.autoStroke||u!==b.align||f!==b.verticalAlign)&&(d=!0,b.fill=D,b.stroke=A,b.autoStroke=O,b.align=u,b.verticalAlign=f,n.setDefaultTextStyle(b)),n.__dirty|=La,d&&n.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ix:Px},t.prototype.getOutsideStroke=function(e){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&av(n);r||(r=[255,255,255,1]);for(var a=r[3],l=this.__zr.isDarkMode(),u=0;u<3;u++)r[u]=r[u]*a+(l?0:255)*(1-a);return r[3]=1,lO(r,"rgba")},t.prototype.traverse=function(e,n){},t.prototype.attrKV=function(e,n){e==="textConfig"?this.setTextConfig(n):e==="textContent"?this.setTextContent(n):e==="clipPath"?this.setClipPath(n):e==="extra"?(this.extra=this.extra||{},Re(this.extra,n)):this[e]=n},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,n){if(typeof e=="string")this.attrKV(e,n);else if(it(e))for(var r=e,a=kn(r),l=0;l<a.length;l++){var u=a[l];this.attrKV(u,e[u])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var n=this._normalState,r=0;r<this.animators.length;r++){var a=this.animators[r],l=a.__fromStateTransition;if(!(a.getLoop()||l&&l!==Vx)){var u=a.targetName,f=u?n[u]:n;a.saveTo(f)}}},t.prototype._innerSaveToNormal=function(e){var n=this._normalState;n||(n=this._normalState={}),e.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(e,n,Hx)},t.prototype._savePrimaryToNormal=function(e,n,r){for(var a=0;a<r.length;a++){var l=r[a];e[l]!=null&&!(l in n)&&(n[l]=this[l])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var n=this.states;return n[e]||(n[e]={}),n[e]},t.prototype.clearStates=function(e){this.useState(Vx,!1,e)},t.prototype.useState=function(e,n,r,a){var l=e===Vx,u=this.hasState();if(!(!u&&l)){var f=this.currentStates,d=this.stateTransition;if(!(dn(f,e)>=0&&(n||f.length===1))){var h;if(this.stateProxy&&!l&&(h=this.stateProxy(e)),h||(h=this.states&&this.states[e]),!h&&!l){jf("State "+e+" not exists.");return}l||this.saveCurrentToNormalState(h);var p=!!(h&&h.hoverLayer||a);p&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,h,this._normalState,n,!r&&!this.__inHover&&d&&d.duration>0,d);var m=this._textContent,S=this._textGuide;return m&&m.useState(e,n,r,p),S&&S.useState(e,n,r,p),l?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~La),h}}},t.prototype.useStates=function(e,n,r){if(!e.length)this.clearStates();else{var a=[],l=this.currentStates,u=e.length,f=u===l.length;if(f){for(var d=0;d<u;d++)if(e[d]!==l[d]){f=!1;break}}if(f)return;for(var d=0;d<u;d++){var h=e[d],p=void 0;this.stateProxy&&(p=this.stateProxy(h,e)),p||(p=this.states[h]),p&&a.push(p)}var m=a[u-1],S=!!(m&&m.hoverLayer||r);S&&this._toggleHoverLayerFlag(!0);var _=this._mergeStates(a),x=this.stateTransition;this.saveCurrentToNormalState(_),this._applyStateObj(e.join(","),_,this._normalState,!1,!n&&!this.__inHover&&x&&x.duration>0,x);var E=this._textContent,b=this._textGuide;E&&E.useStates(e,n,S),b&&b.useStates(e,n,S),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!S&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~La)}},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var n=this.animators[e];n.targetName&&n.changeTarget(this[n.targetName])}},t.prototype.removeState=function(e){var n=dn(this.currentStates,e);if(n>=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},t.prototype.replaceState=function(e,n,r){var a=this.currentStates.slice(),l=dn(a,e),u=dn(a,n)>=0;l>=0?u?a.splice(l,1):a[l]=n:r&&!u&&a.push(n),this.useStates(a)},t.prototype.toggleState=function(e,n){n?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var n={},r,a=0;a<e.length;a++){var l=e[a];Re(n,l),l.textConfig&&(r=r||{},Re(r,l.textConfig))}return r&&(n.textConfig=r),n},t.prototype._applyStateObj=function(e,n,r,a,l,u){var f=!(n&&a);n&&n.textConfig?(this.textConfig=Re({},a?this.textConfig:r.textConfig),Re(this.textConfig,n.textConfig)):f&&r.textConfig&&(this.textConfig=r.textConfig);for(var d={},h=!1,p=0;p<Hx.length;p++){var m=Hx[p],S=l&&w6[m];n&&n[m]!=null?S?(h=!0,d[m]=n[m]):this[m]=n[m]:f&&r[m]!=null&&(S?(h=!0,d[m]=r[m]):this[m]=r[m])}if(!l)for(var p=0;p<this.animators.length;p++){var _=this.animators[p],x=_.targetName;_.getLoop()||_.__changeFinalValue(x?(n||r)[x]:n||r)}h&&this._transitionState(e,d,u)},t.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(e===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var n=this.__zr;n&&e.addSelfToZr(n),e.__zr=n,e.__hostTarget=this},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var n=this._textContent;if(n!==e){if(n&&n!==e&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new Kp,this._attachComponent(e),this._textContent=e,this.markRedraw()}},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Re(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=La;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var n=this._textContent,r=this._textGuide;n&&(n.__inHover=e),r&&(r.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var n=this.animators;if(n)for(var r=0;r<n.length;r++)e.animation.addAnimator(n[r]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var n=this.animators;if(n)for(var r=0;r<n.length;r++)e.animation.removeAnimator(n[r]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,n,r){var a=e?this[e]:this;if(process.env.NODE_ENV!=="production"&&!a){jf('Property "'+e+'" is not existed in element '+this.id);return}var l=new Dx(a,n,r);return e&&(l.targetName=e),this.addAnimator(l,e),l},t.prototype.addAnimator=function(e,n){var r=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(n)}).done(function(){var l=a.animators,u=dn(l,e);u>=0&&l.splice(u,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,n){for(var r=this.animators,a=r.length,l=[],u=0;u<a;u++){var f=r[u];!e||e===f.scope?f.stop(n):l.push(f)}return this.animators=l,this},t.prototype.animateTo=function(e,n,r){$x(this,e,n,r)},t.prototype.animateFrom=function(e,n,r){$x(this,e,n,r,!0)},t.prototype._transitionState=function(e,n,r,a){for(var l=$x(this,n,r,a),u=0;u<l.length;u++)l[u].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=La;var n={};function r(l,u,f){n[l+u+f]||(console.warn("DEPRECATED: '"+l+"' has been deprecated. use '"+u+"', '"+f+"' instead"),n[l+u+f]=!0)}function a(l,u,f,d){Object.defineProperty(e,l,{get:function(){if(process.env.NODE_ENV!=="production"&&r(l,f,d),!this[u]){var p=this[u]=[];h(this,p)}return this[u]},set:function(p){process.env.NODE_ENV!=="production"&&r(l,f,d),this[f]=p[0],this[d]=p[1],this[u]=p,h(this,p)}});function h(p,m){Object.defineProperty(m,0,{get:function(){return p[f]},set:function(S){p[f]=S}}),Object.defineProperty(m,1,{get:function(){return p[d]},set:function(S){p[d]=S}})}}Object.defineProperty&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))}(),t}();ml(Gx,_l),ml(Gx,Kp);function $x(t,e,n,r,a){n=n||{};var l=[];CO(t,"",t,e,n,r,l,a);var u=l.length,f=!1,d=n.done,h=n.aborted,p=function(){f=!0,u--,u<=0&&(f?d&&d():h&&h())},m=function(){u--,u<=0&&(f?d&&d():h&&h())};u||d&&d(),l.length>0&&n.during&&l[0].during(function(x,E){n.during(E)});for(var S=0;S<l.length;S++){var _=l[S];p&&_.done(p),m&&_.aborted(m),n.force&&_.duration(n.duration),_.start(n.easing)}return l}function jx(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function T6(t){return Ai(t[0])}function b6(t,e,n){if(Ai(e[n]))if(Ai(t[n])||(t[n]=[]),ea(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),jx(t[n],e[n],r))}else{var a=e[n],l=t[n],u=a.length;if(T6(a))for(var f=a[0].length,d=0;d<u;d++)l[d]?jx(l[d],a[d],f):l[d]=Array.prototype.slice.call(a[d]);else jx(l,a,u);l.length=a.length}else t[n]=e[n]}function E6(t,e){return t===e||Ai(t)&&Ai(e)&&D6(t,e)}function D6(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function CO(t,e,n,r,a,l,u,f){for(var d=kn(r),h=a.duration,p=a.delay,m=a.additive,S=a.setToFinal,_=!it(l),x=t.animators,E=[],b=0;b<d.length;b++){var D=d[b],A=r[D];if(A!=null&&n[D]!=null&&(_||l[D]))if(it(A)&&!Ai(A)&&!R0(A)){if(e){f||(n[D]=A,t.updateDuringAnimation(e));continue}CO(t,D,n[D],A,a,l&&l[D],u,f)}else E.push(D);else f||(n[D]=A,t.updateDuringAnimation(e),E.push(D))}var O=E.length;if(!m&&O)for(var P=0;P<x.length;P++){var I=x[P];if(I.targetName===e){var F=I.stopTracks(E);if(F){var U=dn(x,I);x.splice(U,1)}}}if(a.force||(E=Er(E,function(G){return!E6(r[G],n[G])}),O=E.length),O>0||a.force&&!u.length){var H=void 0,j=void 0,X=void 0;if(f){j={},S&&(H={});for(var P=0;P<O;P++){var D=E[P];j[D]=n[D],S?H[D]=r[D]:n[D]=r[D]}}else if(S){X={};for(var P=0;P<O;P++){var D=E[P];X[D]=j0(n[D]),b6(n,r,D)}}var I=new Dx(n,!1,!1,m?Er(x,function(ee){return ee.targetName===e}):null);I.targetName=e,a.scope&&(I.scope=a.scope),S&&H&&I.whenWithKeys(0,H,E),X&&I.whenWithKeys(0,X,E),I.whenWithKeys(h??500,f?j:r,E).delay(p||0),t.addAnimator(I,e),u.push(I)}}const wO=Gx;var xO=function(t){mn(e,t);function e(n){var r=t.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(n){return this._children[n]},e.prototype.childOfName=function(n){for(var r=this._children,a=0;a<r.length;a++)if(r[a].name===n)return r[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(n){if(n&&(n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),process.env.NODE_ENV!=="production"&&n.__hostTarget))throw"This elemenet has been used as an attachment";return this},e.prototype.addBefore=function(n,r){if(n&&n!==this&&n.parent!==this&&r&&r.parent===this){var a=this._children,l=a.indexOf(r);l>=0&&(a.splice(l,0,n),this._doAdd(n))}return this},e.prototype.replace=function(n,r){var a=dn(this._children,n);return a>=0&&this.replaceAt(r,a),this},e.prototype.replaceAt=function(n,r){var a=this._children,l=a[r];if(n&&n!==this&&n.parent!==this&&n!==l){a[r]=n,l.parent=null;var u=this.__zr;u&&l.removeSelfFromZr(u),this._doAdd(n)}return this},e.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(n){var r=this.__zr,a=this._children,l=dn(a,n);return l<0?this:(a.splice(l,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,a=0;a<n.length;a++){var l=n[a];r&&l.removeSelfFromZr(r),l.parent=null}return n.length=0,this},e.prototype.eachChild=function(n,r){for(var a=this._children,l=0;l<a.length;l++){var u=a[l];n.call(r,u,l)}return this},e.prototype.traverse=function(n,r){for(var a=0;a<this._children.length;a++){var l=this._children[a],u=n.call(r,l);l.isGroup&&!u&&l.traverse(n,r)}return this},e.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.addSelfToZr(n)}},e.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.removeSelfFromZr(n)}},e.prototype.getBoundingRect=function(n){for(var r=new Wt(0,0,0,0),a=n||this._children,l=[],u=null,f=0;f<a.length;f++){var d=a[f];if(!(d.ignore||d.invisible)){var h=d.getBoundingRect(),p=d.getLocalTransform(l);p?(Wt.applyTransform(r,h,p),u=u||r.clone(),u.union(r)):(u=u||h.clone(),u.union(h))}}return u||r},e}(wO);xO.prototype.type="group";const Cl=xO;var eg={},TO={};function M6(t){delete TO[t]}function R6(t){if(!t)return!1;if(typeof t=="string")return G0(t,1)<Nx;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,a=0;a<r;a++)n+=G0(e[a].color,1);return n/=r,n<Nx}return!1}var A6=function(){function t(e,n,r){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=n,this.id=e;var l=new Y4,u=r.renderer||"canvas";if(eg[u]||(u=kn(eg)[0]),process.env.NODE_ENV!=="production"&&!eg[u])throw new Error("Renderer '"+u+"' is not imported. Please import it first.");r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var f=new eg[u](n,l,r,e),d=r.ssr||f.ssrOnly;this.storage=l,this.painter=f;var h=!Tt.node&&!Tt.worker&&!d?new y6(f.getViewportRoot(),f.root):null,p=r.useCoarsePointer,m=p==null||p==="auto"?Tt.touchEventsSupported:!!p,S=44,_;m&&(_=kt(r.pointerSize,S)),this.handler=new V4(l,f,h,f.root,_),this.animation=new f6({stage:{update:d?null:function(){return a._flush(!0)}}}),d||this.animation.start()}return t.prototype.add=function(e){e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,n){this.painter.configLayer&&this.painter.configLayer(e,n),this.refresh()},t.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=R6(e)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(e){var n,r=ov();this._needsRefresh&&(n=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var a=ov();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},t.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,n){return this.handler.findHover(e,n)},t.prototype.on=function(e,n,r){return this.handler.on(e,n,r),this},t.prototype.off=function(e,n){this.handler.off(e,n)},t.prototype.trigger=function(e,n){this.handler.trigger(e,n)},t.prototype.clear=function(){for(var e=this.storage.getRoots(),n=0;n<e.length;n++)e[n]instanceof Cl&&e[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,M6(this.id)},t}();function bO(t,e){var n=new A6(_L(),t,e);return TO[n.id]=n,n}function L6(t,e){eg[t]=e}var EO=1e-4,DO=20;function O6(t){return t.replace(/^\s+|\s+$/g,"")}function MO(t,e,n,r){var a=e[0],l=e[1],u=n[0],f=n[1],d=l-a,h=f-u;if(d===0)return h===0?u:(u+f)/2;if(r)if(d>0){if(t<=a)return u;if(t>=l)return f}else{if(t>=a)return u;if(t<=l)return f}else{if(t===a)return u;if(t===l)return f}return(t-a)/d*h+u}function Zr(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return et(t)?O6(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function vr(t,e,n){return e==null&&(e=10),e=Math.min(Math.max(0,e),DO),t=(+t).toFixed(e),n?t:+t}function Cu(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 Yx(t)}function Yx(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,a=n>0?n:e.length,l=e.indexOf("."),u=l<0?0:a-1-l;return Math.max(0,u-r)}function k6(t,e){var n=Math.log,r=Math.LN10,a=Math.floor(n(t[1]-t[0])/r),l=Math.round(n(Math.abs(e[1]-e[0]))/r),u=Math.min(Math.max(-a+l,0),20);return isFinite(u)?u:20}function N6(t,e){var n=Math.max(Cu(t),Cu(e)),r=t+e;return n>DO?r:vr(r,n)}function RO(t){var e=Math.PI*2;return(t%e+e)%e}function J0(t){return t>-EO&&t<EO}var P6=/^(?:(\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 wu(t){if(t instanceof Date)return t;if(et(t)){var e=P6.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(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))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function I6(t){return Math.pow(10,e_(t))}function e_(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function AO(t,e){var n=e_(t),r=Math.pow(10,n),a=t/r,l;return e?a<1.5?l=1:a<2.5?l=2:a<4?l=3:a<7?l=5:l=10:a<1?l=1:a<2?l=2:a<3?l=3:a<5?l=5:l=10,t=l*r,n>=-20?+t.toFixed(n<0?-n:0):t}function Ds(t){var e=parseFloat(t);return e==t&&(e!==0||!et(t)||t.indexOf("x")<=0)?e:NaN}function LO(t){return!isNaN(Ds(t))}function OO(){return Math.round(Math.random()*9)}function kO(t,e){return e===0?t:kO(e,t%e)}function NO(t,e){return t==null?e:e==null?t:t*e/kO(t,e)}var z6="[ECharts] ",PO={},F6=typeof console<"u"&&console.warn&&console.log;function t_(t,e,n){if(F6){if(n){if(PO[e])return;PO[e]=!0}console[t](z6+e)}}function B6(t,e){t_("log",t,e)}function Fr(t,e){t_("warn",t,e)}function ci(t,e){t_("error",t,e)}function wl(t){process.env.NODE_ENV!=="production"&&t_("warn","DEPRECATED: "+t,!0)}function Br(t,e,n){process.env.NODE_ENV!=="production"&&wl((n?"["+n+"]":"")+(t+" is deprecated, use "+e+" instead."))}function na(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n="";if(process.env.NODE_ENV!=="production"){var r=function(a){return a===void 0?"undefined":a===1/0?"Infinity":a===-1/0?"-Infinity":Fp(a)?"NaN":a instanceof Date?"Date("+a.toISOString()+")":_t(a)?"function () { ... }":CL(a)?a+"":null};n=ot(t,function(a){if(et(a))return a;var l=r(a);if(l!=null)return l;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(a,function(u,f){var d=r(f);return d??f})}catch{return"?"}else return"?"}).join(" ")}return n}function Ht(t){throw new Error(t)}function IO(t,e,n){return(e-t)*n+t}var zO="series\0",U6="\0_ec_\0";function rr(t){return t instanceof Array?t:t==null?[]:[t]}function FO(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,a=n.length;r<a;r++){var l=n[r];!t.emphasis[e].hasOwnProperty(l)&&t[e].hasOwnProperty(l)&&(t.emphasis[e][l]=t[e][l])}}}var BO=["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 tg(t){return it(t)&&!Be(t)&&!(t instanceof Date)?t.value:t}function V6(t){return it(t)&&!(t instanceof Array)}function H6(t,e,n){var r=n==="normalMerge",a=n==="replaceMerge",l=n==="replaceAll";t=t||[],e=(e||[]).slice();var u=xt();W(e,function(d,h){if(!it(d)){e[h]=null;return}process.env.NODE_ENV!=="production"&&(d.id!=null&&!HO(d.id)&&VO(d.id),d.name!=null&&!HO(d.name)&&VO(d.name))});var f=G6(t,u,n);return(r||a)&&$6(f,t,u,e),r&&j6(f,e),r||a?Y6(f,e,a):l&&W6(f,e),X6(f),f}function G6(t,e,n){var r=[];if(n==="replaceAll")return r;for(var a=0;a<t.length;a++){var l=t[a];l&&l.id!=null&&e.set(l.id,a),r.push({existing:n==="replaceMerge"||fv(l)?null:l,newOption:null,keyInfo:null,brandNew:null})}return r}function $6(t,e,n,r){W(r,function(a,l){if(!(!a||a.id==null)){var u=ng(a.id),f=n.get(u);if(f!=null){var d=t[f];bt(!d.newOption,'Duplicated option on id "'+u+'".'),d.newOption=a,d.existing=e[f],r[l]=null}}})}function j6(t,e){W(e,function(n,r){if(!(!n||n.name==null))for(var a=0;a<t.length;a++){var l=t[a].existing;if(!t[a].newOption&&l&&(l.id==null||n.id==null)&&!fv(n)&&!fv(l)&&UO("name",l,n)){t[a].newOption=n,e[r]=null;return}}})}function Y6(t,e,n){W(e,function(r){if(r){for(var a,l=0;(a=t[l])&&(a.newOption||fv(a.existing)||a.existing&&r.id!=null&&!UO("id",r,a.existing));)l++;a?(a.newOption=r,a.brandNew=n):t.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),l++}})}function W6(t,e){W(e,function(n){t.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function X6(t){var e=xt();W(t,function(n){var r=n.existing;r&&e.set(r.id,n)}),W(t,function(n){var r=n.newOption;bt(!r||r.id==null||!e.get(r.id)||e.get(r.id)===n,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&e.set(r.id,n),!n.keyInfo&&(n.keyInfo={})}),W(t,function(n,r){var a=n.existing,l=n.newOption,u=n.keyInfo;if(it(l)){if(u.name=l.name!=null?ng(l.name):a?a.name:zO+r,a)u.id=ng(a.id);else if(l.id!=null)u.id=ng(l.id);else{var f=0;do u.id="\0"+u.name+"\0"+f++;while(e.get(u.id))}e.set(u.id,n)}})}function UO(t,e,n){var r=xl(e[t],null),a=xl(n[t],null);return r!=null&&a!=null&&r===a}function ng(t){if(process.env.NODE_ENV!=="production"&&t==null)throw new Error;return xl(t,"")}function xl(t,e){return t==null?e:et(t)?t:Nn(t)||M0(t)?t+"":e}function VO(t){process.env.NODE_ENV!=="production"&&Fr("`"+t+"` is invalid id or name. Must be a string or number.")}function HO(t){return M0(t)||LO(t)}function GO(t){var e=t.name;return!!(e&&e.indexOf(zO))}function fv(t){return t&&t.id!=null&&ng(t.id).indexOf(U6)===0}function q6(t,e,n){W(t,function(r){var a=r.newOption;it(a)&&(r.keyInfo.mainType=e,r.keyInfo.subType=Q6(e,a,r.existing,n))})}function Q6(t,e,n,r){var a=e.type?e.type:n?n.subType:r.determineSubType(t,e);return a}function rg(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return Be(e.dataIndex)?ot(e.dataIndex,function(n){return t.indexOfRawIndex(n)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return Be(e.name)?ot(e.name,function(n){return t.indexOfName(n)}):t.indexOfName(e.name)}function jn(){var t="__ec_inner_"+Z6++;return function(e){return e[t]||(e[t]={})}}var Z6=OO();function Wx(t,e,n){var r=Xx(e,n),a=r.mainTypeSpecified,l=r.queryOptionMap,u=r.others,f=u,d=n?n.defaultMainType:null;return!a&&d&&l.set(d,{}),l.each(function(h,p){var m=ig(t,p,h,{useDefault:d===p,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});f[p+"Models"]=m.models,f[p+"Model"]=m.models[0]}),f}function Xx(t,e){var n;if(et(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var a=xt(),l={},u=!1;return W(n,function(f,d){if(d==="dataIndex"||d==="dataIndexInside"){l[d]=f;return}var h=d.match(/^(\w+)(Index|Id|Name)$/)||[],p=h[1],m=(h[2]||"").toLowerCase();if(!(!p||!m||e&&e.includeMainTypes&&dn(e.includeMainTypes,p)<0)){u=u||!!p;var S=a.get(p)||a.set(p,{});S[m]=f}}),{mainTypeSpecified:u,queryOptionMap:a,others:l}}var Oo={useDefault:!0,enableAll:!1,enableNone:!1};function ig(t,e,n,r){r=r||Oo;var a=n.index,l=n.id,u=n.name,f={models:null,specified:a!=null||l!=null||u!=null};if(!f.specified){var d=void 0;return f.models=r.useDefault&&(d=t.getComponent(e))?[d]:[],f}return a==="none"||a===!1?(bt(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),f.models=[],f):(a==="all"&&(bt(r.enableAll,'`"all"` is not a valid value on index option.'),a=l=u=null),f.models=t.queryComponents({mainType:e,index:a,id:l,name:u}),f)}function $O(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function K6(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function J6(t){return t==="auto"?Tt.domSupported?"html":"richText":t||"html"}function e8(t,e,n,r,a){var l=e==null||e==="auto";if(r==null)return r;if(Nn(r)){var u=IO(n||0,r,a);return vr(u,l?Math.max(Cu(n||0),Cu(r)):e)}else{if(et(r))return a<1?n:r;for(var f=[],d=n,h=r,p=Math.max(d?d.length:0,h.length),m=0;m<p;++m){var S=t.getDimensionInfo(m);if(S&&S.type==="ordinal")f[m]=(a<1&&d?d:h)[m];else{var _=d&&d[m]?d[m]:0,x=h[m],u=IO(_,x,a);f[m]=vr(u,l?Math.max(Cu(_),Cu(x)):e)}}return f}}var t8=".",ec="___EC__COMPONENT__CONTAINER___",jO="___EC__EXTENDED_CLASS___";function Tl(t){var e={main:"",sub:""};if(t){var n=t.split(t8);e.main=n[0]||"",e.sub=n[1]||""}return e}function n8(t){bt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function r8(t){return!!(t&&t[jO])}function qx(t,e){t.$constructor=t,t.extend=function(n){process.env.NODE_ENV!=="production"&&W(e,function(l){n[l]||console.warn("Method `"+l+"` should be implemented"+(n.type?" in "+n.type:"")+".")});var r=this,a;return i8(r)?a=function(l){Pt(u,l);function u(){return l.apply(this,arguments)||this}return u}(r):(a=function(){(n.$constructor||r).apply(this,arguments)},n4(a,this)),Re(a.prototype,n),a[jO]=!0,a.extend=this.extend,a.superCall=l8,a.superApply=u8,a.superClass=r,a}}function i8(t){return _t(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function YO(t,e){t.extend=e.extend}var a8=Math.round(Math.random()*10);function o8(t){var e=["__\0is_clz",a8++].join("_");t.prototype[e]=!0,process.env.NODE_ENV!=="production"&&bt(!t.isInstance,'The method "is" can not be defined.'),t.isInstance=function(n){return!!(n&&n[e])}}function l8(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function u8(t,e,n){return this.superClass.prototype[e].apply(t,n)}function n_(t){var e={};t.registerClass=function(r){var a=r.type||r.prototype.type;if(a){n8(a),r.prototype.type=a;var l=Tl(a);if(!l.sub)process.env.NODE_ENV!=="production"&&e[l.main]&&console.warn(l.main+" exists."),e[l.main]=r;else if(l.sub!==ec){var u=n(l);u[l.sub]=r}}return r},t.getClass=function(r,a,l){var u=e[r];if(u&&u[ec]&&(u=a?u[a]:null),l&&!u)throw new Error(a?"Component "+r+"."+(a||"")+" is used but not imported.":r+".type should be specified.");return u},t.getClassesByMainType=function(r){var a=Tl(r),l=[],u=e[a.main];return u&&u[ec]?W(u,function(f,d){d!==ec&&l.push(f)}):l.push(u),l},t.hasClass=function(r){var a=Tl(r);return!!e[a.main]},t.getAllClassMainTypes=function(){var r=[];return W(e,function(a,l){r.push(l)}),r},t.hasSubTypes=function(r){var a=Tl(r),l=e[a.main];return l&&l[ec]};function n(r){var a=e[r.main];return(!a||!a[ec])&&(a=e[r.main]={},a[ec]=!0),a}}function ag(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(r,a,l){for(var u={},f=0;f<t.length;f++){var d=t[f][1];if(!(a&&dn(a,d)>=0||l&&dn(l,d)<0)){var h=r.getShallow(d,e);h!=null&&(u[t[f][0]]=h)}}return u}}var s8=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],f8=ag(s8),c8=function(){function t(){}return t.prototype.getAreaStyle=function(e,n){return f8(this,e,n)},t}(),Qx=new Yp(50);function d8(t){if(typeof t=="string"){var e=Qx.get(t);return e&&e.image}else return t}function WO(t,e,n,r,a){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!n)return e;var l=Qx.get(t),u={hostEl:n,cb:r,cbPayload:a};return l?(e=l.image,!r_(e)&&l.pending.push(u)):(e=$f.loadImage(t,XO,XO),e.__zrImageSrc=t,Qx.put(t,e.__cachedImgObj={image:e,pending:[u]})),e}else return t;else return e}function XO(){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],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function r_(t){return t&&t.width&&t.height}var Zx=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function v8(t,e,n,r,a){if(!e)return"";var l=(t+"").split(`
193
+ `);a=qO(e,n,r,a);for(var u=0,f=l.length;u<f;u++)l[u]=QO(l[u],a);return l.join(`
194
+ `)}function qO(t,e,n,r){r=r||{};var a=Re({},r);a.font=e,n=kt(n,"..."),a.maxIterations=kt(r.maxIterations,2);var l=a.minChar=kt(r.minChar,0);a.cnCharWidth=Oa("国",e);var u=a.ascCharWidth=Oa("a",e);a.placeholder=kt(r.placeholder,"");for(var f=t=Math.max(0,t-1),d=0;d<l&&f>=u;d++)f-=u;var h=Oa(n,e);return h>f&&(n="",h=0),f=t-h,a.ellipsis=n,a.ellipsisWidth=h,a.contentWidth=f,a.containerWidth=t,a}function QO(t,e){var n=e.containerWidth,r=e.font,a=e.contentWidth;if(!n)return"";var l=Oa(t,r);if(l<=n)return t;for(var u=0;;u++){if(l<=a||u>=e.maxIterations){t+=e.ellipsis;break}var f=u===0?h8(t,a,e.ascCharWidth,e.cnCharWidth):l>0?Math.floor(t.length*a/l):0;t=t.substr(0,f),l=Oa(t,r)}return t===""&&(t=e.placeholder),t}function h8(t,e,n,r){for(var a=0,l=0,u=t.length;l<u&&a<e;l++){var f=t.charCodeAt(l);a+=0<=f&&f<=127?n:r}return l}function p8(t,e){t!=null&&(t+="");var n=e.overflow,r=e.padding,a=e.font,l=n==="truncate",u=Ux(a),f=kt(e.lineHeight,u),d=!!e.backgroundColor,h=e.lineOverflow==="truncate",p=e.width,m;p!=null&&(n==="break"||n==="breakAll")?m=t?KO(t,e.font,p,n==="breakAll",0).lines:[]:m=t?t.split(`
195
+ `):[];var S=m.length*f,_=kt(e.height,S);if(S>_&&h){var x=Math.floor(_/f);m=m.slice(0,x)}if(t&&l&&p!=null)for(var E=qO(p,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b=0;b<m.length;b++)m[b]=QO(m[b],E);for(var D=_,A=0,b=0;b<m.length;b++)A=Math.max(Oa(m[b],a),A);p==null&&(p=A);var O=A;return r&&(D+=r[0]+r[2],O+=r[1]+r[3],p+=r[1]+r[3]),d&&(O=p),{lines:m,height:_,outerWidth:O,outerHeight:D,lineHeight:f,calculatedLineHeight:u,contentWidth:A,contentHeight:S,width:p}}var g8=function(){function t(){}return t}(),ZO=function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t}(),m8=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}();function y8(t,e){var n=new m8;if(t!=null&&(t+=""),!t)return n;for(var r=e.width,a=e.height,l=e.overflow,u=(l==="break"||l==="breakAll")&&r!=null?{width:r,accumWidth:0,breakAll:l==="breakAll"}:null,f=Zx.lastIndex=0,d;(d=Zx.exec(t))!=null;){var h=d.index;h>f&&Kx(n,t.substring(f,h),e,u),Kx(n,d[2],e,u,d[1]),f=Zx.lastIndex}f<t.length&&Kx(n,t.substring(f,t.length),e,u);var p=[],m=0,S=0,_=e.padding,x=l==="truncate",E=e.lineOverflow==="truncate";function b(ae,ge,pe){ae.width=ge,ae.lineHeight=pe,m+=pe,S=Math.max(S,ge)}e:for(var D=0;D<n.lines.length;D++){for(var A=n.lines[D],O=0,P=0,I=0;I<A.tokens.length;I++){var F=A.tokens[I],U=F.styleName&&e.rich[F.styleName]||{},H=F.textPadding=U.padding,j=H?H[1]+H[3]:0,X=F.font=U.font||e.font;F.contentHeight=Ux(X);var G=kt(U.height,F.contentHeight);if(F.innerHeight=G,H&&(G+=H[0]+H[2]),F.height=G,F.lineHeight=qd(U.lineHeight,e.lineHeight,G),F.align=U&&U.align||e.align,F.verticalAlign=U&&U.verticalAlign||"middle",E&&a!=null&&m+F.lineHeight>a){I>0?(A.tokens=A.tokens.slice(0,I),b(A,P,O),n.lines=n.lines.slice(0,D+1)):n.lines=n.lines.slice(0,D);break e}var ee=U.width,J=ee==null||ee==="auto";if(typeof ee=="string"&&ee.charAt(ee.length-1)==="%")F.percentWidth=ee,p.push(F),F.contentWidth=Oa(F.text,X);else{if(J){var ie=U.backgroundColor,ce=ie&&ie.image;ce&&(ce=d8(ce),r_(ce)&&(F.width=Math.max(F.width,ce.width*G/ce.height)))}var fe=x&&r!=null?r-P:null;fe!=null&&fe<F.width?!J||fe<j?(F.text="",F.width=F.contentWidth=0):(F.text=v8(F.text,fe-j,X,e.ellipsis,{minChar:e.truncateMinChar}),F.width=F.contentWidth=Oa(F.text,X)):F.contentWidth=Oa(F.text,X)}F.width+=j,P+=F.width,U&&(O=Math.max(O,F.lineHeight))}b(A,P,O)}n.outerWidth=n.width=kt(r,S),n.outerHeight=n.height=kt(a,m),n.contentHeight=m,n.contentWidth=S,_&&(n.outerWidth+=_[1]+_[3],n.outerHeight+=_[0]+_[2]);for(var D=0;D<p.length;D++){var F=p[D],Ne=F.percentWidth;F.width=parseInt(Ne,10)/100*n.width}return n}function Kx(t,e,n,r,a){var l=e==="",u=a&&n.rich[a]||{},f=t.lines,d=u.font||n.font,h=!1,p,m;if(r){var S=u.padding,_=S?S[1]+S[3]:0;if(u.width!=null&&u.width!=="auto"){var x=Jf(u.width,r.width)+_;f.length>0&&x+r.accumWidth>r.width&&(p=e.split(`
196
+ `),h=!0),r.accumWidth=x}else{var E=KO(e,d,r.width,r.breakAll,r.accumWidth);r.accumWidth=E.accumWidth+_,m=E.linesWidths,p=E.lines}}else p=e.split(`
197
+ `);for(var b=0;b<p.length;b++){var D=p[b],A=new g8;if(A.styleName=a,A.text=D,A.isLineHolder=!D&&!l,typeof u.width=="number"?A.width=u.width:A.width=m?m[b]:Oa(D,d),!b&&!h){var O=(f[f.length-1]||(f[0]=new ZO)).tokens,P=O.length;P===1&&O[0].isLineHolder?O[0]=A:(D||!P||l)&&O.push(A)}else f.push(new ZO([A]))}}function _8(t){var e=t.charCodeAt(0);return e>=33&&e<=383}var S8=Xd(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function C8(t){return _8(t)?!!S8[t]:!0}function KO(t,e,n,r,a){for(var l=[],u=[],f="",d="",h=0,p=0,m=0;m<t.length;m++){var S=t.charAt(m);if(S===`
198
+ `){d&&(f+=d,p+=h),l.push(f),u.push(p),f="",d="",h=0,p=0;continue}var _=Oa(S,e),x=r?!1:!C8(S);if(l.length?p+_>n:a+p+_>n){p?(f||d)&&(x?(f||(f=d,d="",h=0,p=h),l.push(f),u.push(p-h),d+=S,h+=_,f="",p=h):(d&&(f+=d,d="",h=0),l.push(f),u.push(p),f=S,p=_)):x?(l.push(d),u.push(h),d=S,h=_):(l.push(S),u.push(_));continue}p+=_,x?(d+=S,h+=_):(d&&(f+=d,d="",h=0),f+=S)}return!l.length&&!f&&(f=t,d="",h=0),d&&(f+=d),f&&(l.push(f),u.push(p)),l.length===1&&(p+=a),{accumWidth:p,lines:l,linesWidths:u}}var Jx="__zr_style_"+Math.round(Math.random()*10),tc={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},i_={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};tc[Jx]=!0;var JO=["z","z2","invisible"],w8=["invisible"],x8=function(t){mn(e,t);function e(n){return t.call(this,n)||this}return e.prototype._init=function(n){for(var r=kn(n),a=0;a<r.length;a++){var l=r[a];l==="style"?this.useStyle(n[l]):t.prototype.attrKV.call(this,l,n[l])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(n,r,a,l){var u=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&T8(this,n,r)||u&&!u[0]&&!u[3])return!1;if(a&&this.__clipPaths){for(var f=0;f<this.__clipPaths.length;++f)if(this.__clipPaths[f].isZeroArea())return!1}if(l&&this.parent)for(var d=this.parent;d;){if(d.ignore)return!1;d=d.parent}return!0},e.prototype.contain=function(n,r){return this.rectContain(n,r)},e.prototype.traverse=function(n,r){n.call(r,this)},e.prototype.rectContain=function(n,r){var a=this.transformCoordToLocal(n,r),l=this.getBoundingRect();return l.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,a=this.getBoundingRect(),l=this.style,u=l.shadowBlur||0,f=l.shadowOffsetX||0,d=l.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new Wt(0,0,0,0)),r?Wt.applyTransform(n,a,r):n.copy(a),(u||f||d)&&(n.width+=u*2+Math.abs(f),n.height+=u*2+Math.abs(d),n.x=Math.min(n.x,n.x+f-u),n.y=Math.min(n.y,n.y+d-u));var h=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-h),n.y=Math.floor(n.y-h),n.width=Math.ceil(n.width+1+h*2),n.height=Math.ceil(n.height+1+h*2))}return n},e.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new Wt(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(n){return this.animate("style",n)},e.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(n,r){n!=="style"?t.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},e.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:Re(this.style,n),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=jp,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&jp)},e.prototype.styleUpdated=function(){this.__dirty&=~jp},e.prototype.createStyle=function(n){return L0(tc,n)},e.prototype.useStyle=function(n){n[Jx]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},e.prototype.isStyleObject=function(n){return n[Jx]},e.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,r,JO)},e.prototype._applyStateObj=function(n,r,a,l,u,f){t.prototype._applyStateObj.call(this,n,r,a,l,u,f);var d=!(r&&l),h;if(r&&r.style?u?l?h=r.style:(h=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(h,r.style)):(h=this._mergeStyle(this.createStyle(),l?this.style:a.style),this._mergeStyle(h,r.style)):d&&(h=a.style),h)if(u){var p=this.style;if(this.style=this.createStyle(d?{}:p),d)for(var m=kn(p),S=0;S<m.length;S++){var _=m[S];_ in h&&(h[_]=h[_],this.style[_]=p[_])}for(var x=kn(h),S=0;S<x.length;S++){var _=x[S];this.style[_]=this.style[_]}this._transitionState(n,{style:h},f,this.getAnimationStyleProps())}else this.useStyle(h);for(var E=this.__inHover?w8:JO,S=0;S<E.length;S++){var _=E[S];r&&r[_]!=null?this[_]=r[_]:d&&a[_]!=null&&(this[_]=a[_])}},e.prototype._mergeStates=function(n){for(var r=t.prototype._mergeStates.call(this,n),a,l=0;l<n.length;l++){var u=n[l];u.style&&(a=a||{},this._mergeStyle(a,u.style))}return a&&(r.style=a),r},e.prototype._mergeStyle=function(n,r){return Re(n,r),n},e.prototype.getAnimationStyleProps=function(){return i_},e.initDefaultProps=function(){var n=e.prototype;n.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,n.__dirty=La|jp}(),e}(wO),eT=new Wt(0,0,0,0),tT=new Wt(0,0,0,0);function T8(t,e,n){return eT.copy(t.getBoundingRect()),t.transform&&eT.applyTransform(t.transform),tT.width=e,tT.height=n,!eT.intersect(tT)}const cv=x8;var ra=Math.min,ia=Math.max,nT=Math.sin,rT=Math.cos,nc=Math.PI*2,a_=Qd(),o_=Qd(),l_=Qd();function e2(t,e,n){if(t.length!==0){for(var r=t[0],a=r[0],l=r[0],u=r[1],f=r[1],d=1;d<t.length;d++)r=t[d],a=ra(a,r[0]),l=ia(l,r[0]),u=ra(u,r[1]),f=ia(f,r[1]);e[0]=a,e[1]=u,n[0]=l,n[1]=f}}function t2(t,e,n,r,a,l){a[0]=ra(t,n),a[1]=ra(e,r),l[0]=ia(t,n),l[1]=ia(e,r)}var n2=[],r2=[];function b8(t,e,n,r,a,l,u,f,d,h){var p=qL,m=Qr,S=p(t,n,a,u,n2);d[0]=1/0,d[1]=1/0,h[0]=-1/0,h[1]=-1/0;for(var _=0;_<S;_++){var x=m(t,n,a,u,n2[_]);d[0]=ra(x,d[0]),h[0]=ia(x,h[0])}S=p(e,r,l,f,r2);for(var _=0;_<S;_++){var E=m(e,r,l,f,r2[_]);d[1]=ra(E,d[1]),h[1]=ia(E,h[1])}d[0]=ra(t,d[0]),h[0]=ia(t,h[0]),d[0]=ra(u,d[0]),h[0]=ia(u,h[0]),d[1]=ra(e,d[1]),h[1]=ia(e,h[1]),d[1]=ra(f,d[1]),h[1]=ia(f,h[1])}function E8(t,e,n,r,a,l,u,f){var d=KL,h=fi,p=ia(ra(d(t,n,a),1),0),m=ia(ra(d(e,r,l),1),0),S=h(t,n,a,p),_=h(e,r,l,m);u[0]=ra(t,a,S),u[1]=ra(e,l,_),f[0]=ia(t,a,S),f[1]=ia(e,l,_)}function D8(t,e,n,r,a,l,u,f,d){var h=Kd,p=Jd,m=Math.abs(a-l);if(m%nc<1e-4&&m>1e-4){f[0]=t-n,f[1]=e-r,d[0]=t+n,d[1]=e+r;return}if(a_[0]=rT(a)*n+t,a_[1]=nT(a)*r+e,o_[0]=rT(l)*n+t,o_[1]=nT(l)*r+e,h(f,a_,o_),p(d,a_,o_),a=a%nc,a<0&&(a=a+nc),l=l%nc,l<0&&(l=l+nc),a>l&&!u?l+=nc:a<l&&u&&(a+=nc),u){var S=l;l=a,a=S}for(var _=0;_<l;_+=Math.PI/2)_>a&&(l_[0]=rT(_)*n+t,l_[1]=nT(_)*r+e,h(f,l_,f),p(d,l_,d))}var on={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},rc=[],ic=[],bl=[],Ms=[],El=[],Dl=[],iT=Math.min,aT=Math.max,ac=Math.cos,oc=Math.sin,xu=Math.abs,oT=Math.PI,Rs=oT*2,lT=typeof Float32Array<"u",og=[];function uT(t){var e=Math.round(t/oT*1e8)/1e8;return e%2*oT}function M8(t,e){var n=uT(t[0]);n<0&&(n+=Rs);var r=n-t[0],a=t[1];a+=r,!e&&a-n>=Rs?a=n+Rs:e&&n-a>=Rs?a=n-Rs:!e&&n>a?a=n+(Rs-uT(n-a)):e&&n<a&&(a=n-(Rs-uT(a-n))),t[0]=n,t[1]=a}var R8=function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,n,r){r=r||0,r>0&&(this._ux=xu(r/Z0/e)||0,this._uy=xu(r/Z0/n)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,n){return this._drawPendingPt(),this.addData(on.M,e,n),this._ctx&&this._ctx.moveTo(e,n),this._x0=e,this._y0=n,this._xi=e,this._yi=n,this},t.prototype.lineTo=function(e,n){var r=xu(e-this._xi),a=xu(n-this._yi),l=r>this._ux||a>this._uy;if(this.addData(on.L,e,n),this._ctx&&l&&this._ctx.lineTo(e,n),l)this._xi=e,this._yi=n,this._pendingPtDist=0;else{var u=r*r+a*a;u>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=n,this._pendingPtDist=u)}return this},t.prototype.bezierCurveTo=function(e,n,r,a,l,u){return this._drawPendingPt(),this.addData(on.C,e,n,r,a,l,u),this._ctx&&this._ctx.bezierCurveTo(e,n,r,a,l,u),this._xi=l,this._yi=u,this},t.prototype.quadraticCurveTo=function(e,n,r,a){return this._drawPendingPt(),this.addData(on.Q,e,n,r,a),this._ctx&&this._ctx.quadraticCurveTo(e,n,r,a),this._xi=r,this._yi=a,this},t.prototype.arc=function(e,n,r,a,l,u){this._drawPendingPt(),og[0]=a,og[1]=l,M8(og,u),a=og[0],l=og[1];var f=l-a;return this.addData(on.A,e,n,r,r,a,f,0,u?0:1),this._ctx&&this._ctx.arc(e,n,r,a,l,u),this._xi=ac(l)*r+e,this._yi=oc(l)*r+n,this},t.prototype.arcTo=function(e,n,r,a,l){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,n,r,a,l),this},t.prototype.rect=function(e,n,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,n,r,a),this.addData(on.R,e,n,r,a),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(on.Z);var e=this._ctx,n=this._x0,r=this._y0;return e&&e.closePath(),this._xi=n,this._yi=r,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var n=e.length;!(this.data&&this.data.length===n)&&lT&&(this.data=new Float32Array(n));for(var r=0;r<n;r++)this.data[r]=e[r];this._len=n},t.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var n=e.length,r=0,a=this._len,l=0;l<n;l++)r+=e[l].len();lT&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+r));for(var l=0;l<n;l++)for(var u=e[l].data,f=0;f<u.length;f++)this.data[a++]=u[f];this._len=a},t.prototype.addData=function(e,n,r,a,l,u,f,d,h){if(this._saveData){var p=this.data;this._len+arguments.length>p.length&&(this._expandData(),p=this.data);for(var m=0;m<arguments.length;m++)p[this._len++]=arguments[m]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],n=0;n<this._len;n++)e[n]=this.data[n];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,lT&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){bl[0]=bl[1]=El[0]=El[1]=Number.MAX_VALUE,Ms[0]=Ms[1]=Dl[0]=Dl[1]=-Number.MAX_VALUE;var e=this.data,n=0,r=0,a=0,l=0,u;for(u=0;u<this._len;){var f=e[u++],d=u===1;switch(d&&(n=e[u],r=e[u+1],a=n,l=r),f){case on.M:n=a=e[u++],r=l=e[u++],El[0]=a,El[1]=l,Dl[0]=a,Dl[1]=l;break;case on.L:t2(n,r,e[u],e[u+1],El,Dl),n=e[u++],r=e[u++];break;case on.C:b8(n,r,e[u++],e[u++],e[u++],e[u++],e[u],e[u+1],El,Dl),n=e[u++],r=e[u++];break;case on.Q:E8(n,r,e[u++],e[u++],e[u],e[u+1],El,Dl),n=e[u++],r=e[u++];break;case on.A:var h=e[u++],p=e[u++],m=e[u++],S=e[u++],_=e[u++],x=e[u++]+_;u+=1;var E=!e[u++];d&&(a=ac(_)*m+h,l=oc(_)*S+p),D8(h,p,m,S,_,x,E,El,Dl),n=ac(x)*m+h,r=oc(x)*S+p;break;case on.R:a=n=e[u++],l=r=e[u++];var b=e[u++],D=e[u++];t2(a,l,a+b,l+D,El,Dl);break;case on.Z:n=a,r=l;break}Kd(bl,bl,El),Jd(Ms,Ms,Dl)}return u===0&&(bl[0]=bl[1]=Ms[0]=Ms[1]=0),new Wt(bl[0],bl[1],Ms[0]-bl[0],Ms[1]-bl[1])},t.prototype._calculateLength=function(){var e=this.data,n=this._len,r=this._ux,a=this._uy,l=0,u=0,f=0,d=0;this._pathSegLen||(this._pathSegLen=[]);for(var h=this._pathSegLen,p=0,m=0,S=0;S<n;){var _=e[S++],x=S===1;x&&(l=e[S],u=e[S+1],f=l,d=u);var E=-1;switch(_){case on.M:l=f=e[S++],u=d=e[S++];break;case on.L:{var b=e[S++],D=e[S++],A=b-l,O=D-u;(xu(A)>r||xu(O)>a||S===n-1)&&(E=Math.sqrt(A*A+O*O),l=b,u=D);break}case on.C:{var P=e[S++],I=e[S++],b=e[S++],D=e[S++],F=e[S++],U=e[S++];E=W4(l,u,P,I,b,D,F,U,10),l=F,u=U;break}case on.Q:{var P=e[S++],I=e[S++],b=e[S++],D=e[S++];E=q4(l,u,P,I,b,D,10),l=b,u=D;break}case on.A:var H=e[S++],j=e[S++],X=e[S++],G=e[S++],ee=e[S++],J=e[S++],ie=J+ee;S+=1,e[S++],x&&(f=ac(ee)*X+H,d=oc(ee)*G+j),E=aT(X,G)*iT(Rs,Math.abs(J)),l=ac(ie)*X+H,u=oc(ie)*G+j;break;case on.R:{f=l=e[S++],d=u=e[S++];var ce=e[S++],fe=e[S++];E=ce*2+fe*2;break}case on.Z:{var A=f-l,O=d-u;E=Math.sqrt(A*A+O*O),l=f,u=d;break}}E>=0&&(h[m++]=E,p+=E)}return this._pathLen=p,p},t.prototype.rebuildPath=function(e,n){var r=this.data,a=this._ux,l=this._uy,u=this._len,f,d,h,p,m,S,_=n<1,x,E,b=0,D=0,A,O=0,P,I;if(_&&(this._pathSegLen||this._calculateLength(),x=this._pathSegLen,E=this._pathLen,A=n*E,!A))return;e:for(var F=0;F<u;){var U=r[F++],H=F===1;switch(H&&(h=r[F],p=r[F+1],f=h,d=p),U!==on.L&&O>0&&(e.lineTo(P,I),O=0),U){case on.M:f=h=r[F++],d=p=r[F++],e.moveTo(h,p);break;case on.L:{m=r[F++],S=r[F++];var j=xu(m-h),X=xu(S-p);if(j>a||X>l){if(_){var G=x[D++];if(b+G>A){var ee=(A-b)/G;e.lineTo(h*(1-ee)+m*ee,p*(1-ee)+S*ee);break e}b+=G}e.lineTo(m,S),h=m,p=S,O=0}else{var J=j*j+X*X;J>O&&(P=m,I=S,O=J)}break}case on.C:{var ie=r[F++],ce=r[F++],fe=r[F++],Ne=r[F++],ae=r[F++],ge=r[F++];if(_){var G=x[D++];if(b+G>A){var ee=(A-b)/G;Es(h,ie,fe,ae,ee,rc),Es(p,ce,Ne,ge,ee,ic),e.bezierCurveTo(rc[1],ic[1],rc[2],ic[2],rc[3],ic[3]);break e}b+=G}e.bezierCurveTo(ie,ce,fe,Ne,ae,ge),h=ae,p=ge;break}case on.Q:{var ie=r[F++],ce=r[F++],fe=r[F++],Ne=r[F++];if(_){var G=x[D++];if(b+G>A){var ee=(A-b)/G;V0(h,ie,fe,ee,rc),V0(p,ce,Ne,ee,ic),e.quadraticCurveTo(rc[1],ic[1],rc[2],ic[2]);break e}b+=G}e.quadraticCurveTo(ie,ce,fe,Ne),h=fe,p=Ne;break}case on.A:var pe=r[F++],Le=r[F++],Ge=r[F++],St=r[F++],It=r[F++],Dn=r[F++],Xt=r[F++],Mn=!r[F++],ln=Ge>St?Ge:St,zt=xu(Ge-St)>.001,Ft=It+Dn,$e=!1;if(_){var G=x[D++];b+G>A&&(Ft=It+Dn*(A-b)/G,$e=!0),b+=G}if(zt&&e.ellipse?e.ellipse(pe,Le,Ge,St,Xt,It,Ft,Mn):e.arc(pe,Le,ln,It,Ft,Mn),$e)break e;H&&(f=ac(It)*Ge+pe,d=oc(It)*St+Le),h=ac(Ft)*Ge+pe,p=oc(Ft)*St+Le;break;case on.R:f=h=r[F],d=p=r[F+1],m=r[F++],S=r[F++];var Se=r[F++],Zt=r[F++];if(_){var G=x[D++];if(b+G>A){var Et=A-b;e.moveTo(m,S),e.lineTo(m+iT(Et,Se),S),Et-=Se,Et>0&&e.lineTo(m+Se,S+iT(Et,Zt)),Et-=Zt,Et>0&&e.lineTo(m+aT(Se-Et,0),S+Zt),Et-=Se,Et>0&&e.lineTo(m,S+aT(Zt-Et,0));break e}b+=G}e.rect(m,S,Se,Zt);break;case on.Z:if(_){var G=x[D++];if(b+G>A){var ee=(A-b)/G;e.lineTo(h*(1-ee)+f*ee,p*(1-ee)+d*ee);break e}b+=G}e.closePath(),h=f,p=d}}},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.CMD=on,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();const As=R8;function dv(t,e,n,r,a,l,u){if(a===0)return!1;var f=a,d=0,h=t;if(u>e+f&&u>r+f||u<e-f&&u<r-f||l>t+f&&l>n+f||l<t-f&&l<n-f)return!1;if(t!==n)d=(e-r)/(t-n),h=(t*r-n*e)/(t-n);else return Math.abs(l-t)<=f/2;var p=d*l-u+h,m=p*p/(d*d+1);return m<=f/2*f/2}function A8(t,e,n,r,a,l,u,f,d,h,p){if(d===0)return!1;var m=d;if(p>e+m&&p>r+m&&p>l+m&&p>f+m||p<e-m&&p<r-m&&p<l-m&&p<f-m||h>t+m&&h>n+m&&h>a+m&&h>u+m||h<t-m&&h<n-m&&h<a-m&&h<u-m)return!1;var S=QL(t,e,n,r,a,l,u,f,h,p,null);return S<=m/2}function L8(t,e,n,r,a,l,u,f,d){if(u===0)return!1;var h=u;if(d>e+h&&d>r+h&&d>l+h||d<e-h&&d<r-h&&d<l-h||f>t+h&&f>n+h&&f>a+h||f<t-h&&f<n-h&&f<a-h)return!1;var p=JL(t,e,n,r,a,l,f,d,null);return p<=h/2}var i2=Math.PI*2;function Ls(t){return t%=i2,t<0&&(t+=i2),t}var lg=Math.PI*2;function O8(t,e,n,r,a,l,u,f,d){if(u===0)return!1;var h=u;f-=t,d-=e;var p=Math.sqrt(f*f+d*d);if(p-h>n||p+h<n)return!1;if(Math.abs(r-a)%lg<1e-4)return!0;if(l){var m=r;r=Ls(a),a=Ls(m)}else r=Ls(r),a=Ls(a);r>a&&(a+=lg);var S=Math.atan2(d,f);return S<0&&(S+=lg),S>=r&&S<=a||S+lg>=r&&S+lg<=a}function lc(t,e,n,r,a,l){if(l>e&&l>r||l<e&&l<r||r===e)return 0;var u=(l-e)/(r-e),f=r<e?1:-1;(u===1||u===0)&&(f=r<e?.5:-.5);var d=u*(n-t)+t;return d===a?1/0:d>a?f:0}var Os=As.CMD,uc=Math.PI*2,k8=1e-4;function N8(t,e){return Math.abs(t-e)<k8}var Li=[-1,-1,-1],ao=[-1,-1];function P8(){var t=ao[0];ao[0]=ao[1],ao[1]=t}function I8(t,e,n,r,a,l,u,f,d,h){if(h>e&&h>r&&h>l&&h>f||h<e&&h<r&&h<l&&h<f)return 0;var p=XL(e,r,l,f,h,Li);if(p===0)return 0;for(var m=0,S=-1,_=void 0,x=void 0,E=0;E<p;E++){var b=Li[E],D=b===0||b===1?.5:1,A=Qr(t,n,a,u,b);A<d||(S<0&&(S=qL(e,r,l,f,ao),ao[1]<ao[0]&&S>1&&P8(),_=Qr(e,r,l,f,ao[0]),S>1&&(x=Qr(e,r,l,f,ao[1]))),S===2?b<ao[0]?m+=_<e?D:-D:b<ao[1]?m+=x<_?D:-D:m+=f<x?D:-D:b<ao[0]?m+=_<e?D:-D:m+=f<_?D:-D)}return m}function z8(t,e,n,r,a,l,u,f){if(f>e&&f>r&&f>l||f<e&&f<r&&f<l)return 0;var d=X4(e,r,l,f,Li);if(d===0)return 0;var h=KL(e,r,l);if(h>=0&&h<=1){for(var p=0,m=fi(e,r,l,h),S=0;S<d;S++){var _=Li[S]===0||Li[S]===1?.5:1,x=fi(t,n,a,Li[S]);x<u||(Li[S]<h?p+=m<e?_:-_:p+=l<m?_:-_)}return p}else{var _=Li[0]===0||Li[0]===1?.5:1,x=fi(t,n,a,Li[0]);return x<u?0:l<e?_:-_}}function F8(t,e,n,r,a,l,u,f){if(f-=e,f>n||f<-n)return 0;var d=Math.sqrt(n*n-f*f);Li[0]=-d,Li[1]=d;var h=Math.abs(r-a);if(h<1e-4)return 0;if(h>=uc-1e-4){r=0,a=uc;var p=l?1:-1;return u>=Li[0]+t&&u<=Li[1]+t?p:0}if(r>a){var m=r;r=a,a=m}r<0&&(r+=uc,a+=uc);for(var S=0,_=0;_<2;_++){var x=Li[_];if(x+t>u){var E=Math.atan2(f,x),p=l?1:-1;E<0&&(E=uc+E),(E>=r&&E<=a||E+uc>=r&&E+uc<=a)&&(E>Math.PI/2&&E<Math.PI*1.5&&(p=-p),S+=p)}}return S}function a2(t,e,n,r,a){for(var l=t.data,u=t.len(),f=0,d=0,h=0,p=0,m=0,S,_,x=0;x<u;){var E=l[x++],b=x===1;switch(E===Os.M&&x>1&&(n||(f+=lc(d,h,p,m,r,a))),b&&(d=l[x],h=l[x+1],p=d,m=h),E){case Os.M:p=l[x++],m=l[x++],d=p,h=m;break;case Os.L:if(n){if(dv(d,h,l[x],l[x+1],e,r,a))return!0}else f+=lc(d,h,l[x],l[x+1],r,a)||0;d=l[x++],h=l[x++];break;case Os.C:if(n){if(A8(d,h,l[x++],l[x++],l[x++],l[x++],l[x],l[x+1],e,r,a))return!0}else f+=I8(d,h,l[x++],l[x++],l[x++],l[x++],l[x],l[x+1],r,a)||0;d=l[x++],h=l[x++];break;case Os.Q:if(n){if(L8(d,h,l[x++],l[x++],l[x],l[x+1],e,r,a))return!0}else f+=z8(d,h,l[x++],l[x++],l[x],l[x+1],r,a)||0;d=l[x++],h=l[x++];break;case Os.A:var D=l[x++],A=l[x++],O=l[x++],P=l[x++],I=l[x++],F=l[x++];x+=1;var U=!!(1-l[x++]);S=Math.cos(I)*O+D,_=Math.sin(I)*P+A,b?(p=S,m=_):f+=lc(d,h,S,_,r,a);var H=(r-D)*P/O+D;if(n){if(O8(D,A,P,I,I+F,U,e,H,a))return!0}else f+=F8(D,A,P,I,I+F,U,H,a);d=Math.cos(I+F)*O+D,h=Math.sin(I+F)*P+A;break;case Os.R:p=d=l[x++],m=h=l[x++];var j=l[x++],X=l[x++];if(S=p+j,_=m+X,n){if(dv(p,m,S,m,e,r,a)||dv(S,m,S,_,e,r,a)||dv(S,_,p,_,e,r,a)||dv(p,_,p,m,e,r,a))return!0}else f+=lc(S,m,S,_,r,a),f+=lc(p,_,p,m,r,a);break;case Os.Z:if(n){if(dv(d,h,p,m,e,r,a))return!0}else f+=lc(d,h,p,m,r,a);d=p,h=m;break}}return!n&&!N8(h,m)&&(f+=lc(d,h,p,m,r,a)||0),f!==0}function B8(t,e,n){return a2(t,0,!1,e,n)}function U8(t,e,n,r){return a2(t,e,!0,n,r)}var o2=Vt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},tc),V8={style:Vt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},i_.style)},sT=Zp.concat(["invisible","culling","z","z2","zlevel","parent"]),H8=function(t){mn(e,t);function e(n){return t.call(this,n)||this}return e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(d){n.buildPath(d,n.shape)}),a.silent=!0;var l=a.style;for(var u in r)l[u]!==r[u]&&(l[u]=r[u]);l.fill=r.fill?r.decal:null,l.decal=null,l.shadowColor=null,r.strokeFirst&&(l.stroke=null);for(var f=0;f<sT.length;++f)a[sT[f]]=this[sT[f]];a.__dirty|=La}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(n){var r=kn(n);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var l=0;l<r.length;l++){var u=r[l],f=n[u];u==="style"?this.style?Re(this.style,f):this.useStyle(f):u==="shape"?Re(this.shape,f):t.prototype.attrKV.call(this,u,f)}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 n=this.style.fill;if(n!=="none"){if(et(n)){var r=G0(n,0);return r>.5?Px:r>.2?_6:Ix}else if(n)return Ix}return Px},e.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(et(r)){var a=this.__zr,l=!!(a&&a.isDarkMode()),u=G0(n,0)<Nx;if(l===u)return r}},e.prototype.buildPath=function(n,r,a){},e.prototype.pathUpdated=function(){this.__dirty&=~nv},e.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},e.prototype.createPathProxy=function(){this.path=new As(!1)},e.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return!(r==null||r==="none"||!(n.lineWidth>0))},e.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,a=!n;if(a){var l=!1;this.path||(l=!0,this.createPathProxy());var u=this.path;(l||this.__dirty&nv)&&(u.beginPath(),this.buildPath(u,this.shape,!1),this.pathUpdated()),n=u.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var f=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||a){f.copy(n);var d=r.strokeNoScale?this.getLineScale():1,h=r.lineWidth;if(!this.hasFill()){var p=this.strokeContainThreshold;h=Math.max(h,p??4)}d>1e-10&&(f.width+=h/d,f.height+=h/d,f.x-=h/d/2,f.y-=h/d/2)}return f}return n},e.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),l=this.getBoundingRect(),u=this.style;if(n=a[0],r=a[1],l.contain(n,r)){var f=this.path;if(this.hasStroke()){var d=u.lineWidth,h=u.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(this.hasFill()||(d=Math.max(d,this.strokeContainThreshold)),U8(f,d/h,n,r)))return!0}if(this.hasFill())return B8(f,n,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=nv,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(n){return this.animate("shape",n)},e.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):t.prototype.attrKV.call(this,n,r)},e.prototype.setShape=function(n,r){var a=this.shape;return a||(a=this.shape={}),typeof n=="string"?a[n]=r:Re(a,n),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&nv)},e.prototype.createStyle=function(n){return L0(o2,n)},e.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=Re({},this.shape))},e.prototype._applyStateObj=function(n,r,a,l,u,f){t.prototype._applyStateObj.call(this,n,r,a,l,u,f);var d=!(r&&l),h;if(r&&r.shape?u?l?h=r.shape:(h=Re({},a.shape),Re(h,r.shape)):(h=Re({},l?this.shape:a.shape),Re(h,r.shape)):d&&(h=a.shape),h)if(u){this.shape=Re({},this.shape);for(var p={},m=kn(h),S=0;S<m.length;S++){var _=m[S];typeof h[_]=="object"?this.shape[_]=h[_]:p[_]=h[_]}this._transitionState(n,{shape:p},f)}else this.shape=h,this.dirtyShape()},e.prototype._mergeStates=function(n){for(var r=t.prototype._mergeStates.call(this,n),a,l=0;l<n.length;l++){var u=n[l];u.shape&&(a=a||{},this._mergeStyle(a,u.shape))}return a&&(r.shape=a),r},e.prototype.getAnimationStyleProps=function(){return V8},e.prototype.isZeroArea=function(){return!1},e.extend=function(n){var r=function(l){mn(u,l);function u(f){var d=l.call(this,f)||this;return n.init&&n.init.call(d,f),d}return u.prototype.getDefaultStyle=function(){return Qt(n.style)},u.prototype.getDefaultShape=function(){return Qt(n.shape)},u}(e);for(var a in n)typeof n[a]=="function"&&(r.prototype[a]=n[a]);return r},e.initDefaultProps=function(){var n=e.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=La|jp|nv}(),e}(cv);const Gt=H8;var G8=Vt({strokeFirst:!0,font:Gf,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},o2),l2=function(t){mn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return r!=null&&r!=="none"&&n.lineWidth>0},e.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(n){return L0(G8,n)},e.prototype.setBoundingRect=function(n){this._rect=n},e.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var a=Bx(r,n.font,n.textAlign,n.textBaseline);if(a.x+=n.x||0,a.y+=n.y||0,this.hasStroke()){var l=n.lineWidth;a.x-=l/2,a.y-=l/2,a.width+=l,a.height+=l}this._rect=a}return this._rect},e.initDefaultProps=function(){var n=e.prototype;n.dirtyRectTolerance=10}(),e}(cv);l2.prototype.type="tspan";const fT=l2;var $8=Vt({x:0,y:0},tc),j8={style:Vt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},i_.style)};function Y8(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var u2=function(t){mn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(n){return L0($8,n)},e.prototype._getSize=function(n){var r=this.style,a=r[n];if(a!=null)return a;var l=Y8(r.image)?r.image:this.__image;if(!l)return 0;var u=n==="width"?"height":"width",f=r[u];return f==null?l[n]:l[n]/l[u]*f},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return j8},e.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Wt(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},e}(cv);u2.prototype.type="image";const vv=u2;function W8(t,e){var n=e.x,r=e.y,a=e.width,l=e.height,u=e.r,f,d,h,p;a<0&&(n=n+a,a=-a),l<0&&(r=r+l,l=-l),typeof u=="number"?f=d=h=p=u:u instanceof Array?u.length===1?f=d=h=p=u[0]:u.length===2?(f=h=u[0],d=p=u[1]):u.length===3?(f=u[0],d=p=u[1],h=u[2]):(f=u[0],d=u[1],h=u[2],p=u[3]):f=d=h=p=0;var m;f+d>a&&(m=f+d,f*=a/m,d*=a/m),h+p>a&&(m=h+p,h*=a/m,p*=a/m),d+h>l&&(m=d+h,d*=l/m,h*=l/m),f+p>l&&(m=f+p,f*=l/m,p*=l/m),t.moveTo(n+f,r),t.lineTo(n+a-d,r),d!==0&&t.arc(n+a-d,r+d,d,-Math.PI/2,0),t.lineTo(n+a,r+l-h),h!==0&&t.arc(n+a-h,r+l-h,h,0,Math.PI/2),t.lineTo(n+p,r+l),p!==0&&t.arc(n+p,r+l-p,p,Math.PI/2,Math.PI),t.lineTo(n,r+f),f!==0&&t.arc(n+f,r+f,f,Math.PI,Math.PI*1.5)}var hv=Math.round;function s2(t,e,n){if(e){var r=e.x1,a=e.x2,l=e.y1,u=e.y2;t.x1=r,t.x2=a,t.y1=l,t.y2=u;var f=n&&n.lineWidth;return f&&(hv(r*2)===hv(a*2)&&(t.x1=t.x2=sc(r,f,!0)),hv(l*2)===hv(u*2)&&(t.y1=t.y2=sc(l,f,!0))),t}}function f2(t,e,n){if(e){var r=e.x,a=e.y,l=e.width,u=e.height;t.x=r,t.y=a,t.width=l,t.height=u;var f=n&&n.lineWidth;return f&&(t.x=sc(r,f,!0),t.y=sc(a,f,!0),t.width=Math.max(sc(r+l,f,!1)-t.x,l===0?0:1),t.height=Math.max(sc(a+u,f,!1)-t.y,u===0?0:1)),t}}function sc(t,e,n){if(!e)return t;var r=hv(t*2);return(r+hv(e))%2===0?r/2:(r+(n?1:-1))/2}var X8=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),q8={},c2=function(t){mn(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new X8},e.prototype.buildPath=function(n,r){var a,l,u,f;if(this.subPixelOptimize){var d=f2(q8,r,this.style);a=d.x,l=d.y,u=d.width,f=d.height,d.r=r.r,r=d}else a=r.x,l=r.y,u=r.width,f=r.height;r.r?W8(n,r):n.rect(a,l,u,f)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Gt);c2.prototype.type="rect";const Kr=c2;var d2={fill:"#000"},v2=2,Q8={style:Vt({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},i_.style)},h2=function(t){mn(e,t);function e(n){var r=t.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=d2,r.attr(n),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n<this._children.length;n++){var r=this._children[n];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},e.prototype.updateTransform=function(){var n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(n){var r=this.innerTransformable;return r?r.getLocalTransform(n):t.prototype.getLocalTransform.call(this,n)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,tG(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=n},e.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new Wt(0,0,0,0),r=this._children,a=[],l=null,u=0;u<r.length;u++){var f=r[u],d=f.getBoundingRect(),h=f.getLocalTransform(a);h?(n.copy(d),n.applyTransform(h),l=l||n.clone(),l.union(n)):(l=l||d.clone(),l.union(d))}this._rect=l||n}return this._rect},e.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||d2},e.prototype.setTextContent=function(n){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(n,r){if(!r)return n;var a=r.rich,l=n.rich||a&&{};return Re(n,r),a&&l?(this._mergeRich(l,a),n.rich=l):l&&(n.rich=l),n},e.prototype._mergeRich=function(n,r){for(var a=kn(r),l=0;l<a.length;l++){var u=a[l];n[u]=n[u]||{},Re(n[u],r[u])}},e.prototype.getAnimationStyleProps=function(){return Q8},e.prototype._getOrCreateChild=function(n){var r=this._children[this._childCursor];return(!r||!(r instanceof n))&&(r=new n),this._children[this._childCursor++]=r,r.__zr=this.__zr,r.parent=this,r},e.prototype._updatePlainTexts=function(){var n=this.style,r=n.font||Gf,a=n.padding,l=C2(n),u=p8(l,n),f=cT(n),d=!!n.backgroundColor,h=u.outerHeight,p=u.outerWidth,m=u.contentWidth,S=u.lines,_=u.lineHeight,x=this._defaultStyle,E=n.x||0,b=n.y||0,D=n.align||x.align||"left",A=n.verticalAlign||x.verticalAlign||"top",O=E,P=uv(b,u.contentHeight,A);if(f||a){var I=Jp(E,p,D),F=uv(b,h,A);f&&this._renderBackground(n,n,I,F,p,h)}P+=_/2,a&&(O=S2(E,D,a),A==="top"?P+=a[0]:A==="bottom"&&(P-=a[2]));for(var U=0,H=!1,j=_2("fill"in n?n.fill:(H=!0,x.fill)),X=y2("stroke"in n?n.stroke:!d&&(!x.autoStroke||H)?(U=v2,x.stroke):null),G=n.textShadowBlur>0,ee=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),J=u.calculatedLineHeight,ie=0;ie<S.length;ie++){var ce=this._getOrCreateChild(fT),fe=ce.createStyle();ce.useStyle(fe),fe.text=S[ie],fe.x=O,fe.y=P,D&&(fe.textAlign=D),fe.textBaseline="middle",fe.opacity=n.opacity,fe.strokeFirst=!0,G&&(fe.shadowBlur=n.textShadowBlur||0,fe.shadowColor=n.textShadowColor||"transparent",fe.shadowOffsetX=n.textShadowOffsetX||0,fe.shadowOffsetY=n.textShadowOffsetY||0),fe.stroke=X,fe.fill=j,X&&(fe.lineWidth=n.lineWidth||U,fe.lineDash=n.lineDash,fe.lineDashOffset=n.lineDashOffset||0),fe.font=r,g2(fe,n),P+=_,ee&&ce.setBoundingRect(new Wt(Jp(fe.x,n.width,fe.textAlign),uv(fe.y,J,fe.textBaseline),m,J))}},e.prototype._updateRichTexts=function(){var n=this.style,r=C2(n),a=y8(r,n),l=a.width,u=a.outerWidth,f=a.outerHeight,d=n.padding,h=n.x||0,p=n.y||0,m=this._defaultStyle,S=n.align||m.align,_=n.verticalAlign||m.verticalAlign,x=Jp(h,u,S),E=uv(p,f,_),b=x,D=E;d&&(b+=d[3],D+=d[0]);var A=b+l;cT(n)&&this._renderBackground(n,n,x,E,u,f);for(var O=!!n.backgroundColor,P=0;P<a.lines.length;P++){for(var I=a.lines[P],F=I.tokens,U=F.length,H=I.lineHeight,j=I.width,X=0,G=b,ee=A,J=U-1,ie=void 0;X<U&&(ie=F[X],!ie.align||ie.align==="left");)this._placeToken(ie,n,H,D,G,"left",O),j-=ie.width,G+=ie.width,X++;for(;J>=0&&(ie=F[J],ie.align==="right");)this._placeToken(ie,n,H,D,ee,"right",O),j-=ie.width,ee-=ie.width,J--;for(G+=(l-(G-b)-(A-ee)-j)/2;X<=J;)ie=F[X],this._placeToken(ie,n,H,D,G+ie.width/2,"center",O),G+=ie.width,X++;D+=H}},e.prototype._placeToken=function(n,r,a,l,u,f,d){var h=r.rich[n.styleName]||{};h.text=n.text;var p=n.verticalAlign,m=l+a/2;p==="top"?m=l+n.height/2:p==="bottom"&&(m=l+a-n.height/2);var S=!n.isLineHolder&&cT(h);S&&this._renderBackground(h,r,f==="right"?u-n.width:f==="center"?u-n.width/2:u,m-n.height/2,n.width,n.height);var _=!!h.backgroundColor,x=n.textPadding;x&&(u=S2(u,f,x),m-=n.height/2-x[0]-n.innerHeight/2);var E=this._getOrCreateChild(fT),b=E.createStyle();E.useStyle(b);var D=this._defaultStyle,A=!1,O=0,P=_2("fill"in h?h.fill:"fill"in r?r.fill:(A=!0,D.fill)),I=y2("stroke"in h?h.stroke:"stroke"in r?r.stroke:!_&&!d&&(!D.autoStroke||A)?(O=v2,D.stroke):null),F=h.textShadowBlur>0||r.textShadowBlur>0;b.text=n.text,b.x=u,b.y=m,F&&(b.shadowBlur=h.textShadowBlur||r.textShadowBlur||0,b.shadowColor=h.textShadowColor||r.textShadowColor||"transparent",b.shadowOffsetX=h.textShadowOffsetX||r.textShadowOffsetX||0,b.shadowOffsetY=h.textShadowOffsetY||r.textShadowOffsetY||0),b.textAlign=f,b.textBaseline="middle",b.font=n.font||Gf,b.opacity=qd(h.opacity,r.opacity,1),g2(b,h),I&&(b.lineWidth=qd(h.lineWidth,r.lineWidth,O),b.lineDash=kt(h.lineDash,r.lineDash),b.lineDashOffset=r.lineDashOffset||0,b.stroke=I),P&&(b.fill=P);var U=n.contentWidth,H=n.contentHeight;E.setBoundingRect(new Wt(Jp(b.x,U,b.textAlign),uv(b.y,H,b.textBaseline),U,H))},e.prototype._renderBackground=function(n,r,a,l,u,f){var d=n.backgroundColor,h=n.borderWidth,p=n.borderColor,m=d&&d.image,S=d&&!m,_=n.borderRadius,x=this,E,b;if(S||n.lineHeight||h&&p){E=this._getOrCreateChild(Kr),E.useStyle(E.createStyle()),E.style.fill=null;var D=E.shape;D.x=a,D.y=l,D.width=u,D.height=f,D.r=_,E.dirtyShape()}if(S){var A=E.style;A.fill=d||null,A.fillOpacity=kt(n.fillOpacity,1)}else if(m){b=this._getOrCreateChild(vv),b.onload=function(){x.dirtyStyle()};var O=b.style;O.image=d.image,O.x=a,O.y=l,O.width=u,O.height=f}if(h&&p){var A=E.style;A.lineWidth=h,A.stroke=p,A.strokeOpacity=kt(n.strokeOpacity,1),A.lineDash=n.borderDash,A.lineDashOffset=n.borderDashOffset||0,E.strokeContainThreshold=0,E.hasFill()&&E.hasStroke()&&(A.strokeFirst=!0,A.lineWidth*=2)}var P=(E||b).style;P.shadowBlur=n.shadowBlur||0,P.shadowColor=n.shadowColor||"transparent",P.shadowOffsetX=n.shadowOffsetX||0,P.shadowOffsetY=n.shadowOffsetY||0,P.opacity=qd(n.opacity,r.opacity,1)},e.makeFont=function(n){var r="";return eG(n)&&(r=[n.fontStyle,n.fontWeight,J8(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&yl(r)||n.textFont||n.font},e}(cv),Z8={left:!0,right:1,center:1},K8={top:1,bottom:1,middle:1},p2=["fontStyle","fontWeight","fontSize","fontFamily"];function J8(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?Qw+"px":t+"px"}function g2(t,e){for(var n=0;n<p2.length;n++){var r=p2[n],a=e[r];a!=null&&(t[r]=a)}}function eG(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function tG(t){return m2(t),W(t.rich,m2),t}function m2(t){if(t){t.font=h2.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||Z8[e]?e:"left";var n=t.verticalAlign;n==="center"&&(n="middle"),t.verticalAlign=n==null||K8[n]?n:"top";var r=t.padding;r&&(t.padding=wL(t.padding))}}function y2(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function _2(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function S2(t,e,n){return e==="right"?t-n[1]:e==="center"?t+n[3]/2-n[1]/2:t+n[3]}function C2(t){var e=t.text;return e!=null&&(e+=""),e}function cT(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const ko=h2;var yn=jn(),nG=function(t,e,n,r){if(r){var a=yn(r);a.dataIndex=n,a.dataType=e,a.seriesIndex=t,r.type==="group"&&r.traverse(function(l){var u=yn(l);u.seriesIndex=t,u.dataIndex=n,u.dataType=e})}},w2=1,x2={},T2=jn(),dT=jn(),b2=0,vT=1,hT=2,Ml=["emphasis","blur","select"],u_=["normal","emphasis","blur","select"],rG=10,iG=9,fc="highlight",s_="downplay",ug="select",f_="unselect",sg="toggleSelect";function pv(t){return t!=null&&t!=="none"}var E2=new Yp(100);function D2(t){if(et(t)){var e=E2.get(t);return e||(e=oO(t,-.1),E2.put(t,e)),e}else if(R0(t)){var n=Re({},t);return n.colorStops=ot(t.colorStops,function(r){return{offset:r.offset,color:oO(r.color,-.1)}}),n}return t}function c_(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function M2(t){c_(t,"emphasis",hT)}function R2(t){t.hoverState===hT&&c_(t,"normal",b2)}function pT(t){c_(t,"blur",vT)}function A2(t){t.hoverState===vT&&c_(t,"normal",b2)}function aG(t){t.selected=!0}function oG(t){t.selected=!1}function L2(t,e,n){e(t,n)}function Tu(t,e,n){L2(t,e,n),t.isGroup&&t.traverse(function(r){L2(r,e,n)})}function lG(t,e,n,r){for(var a=t.style,l={},u=0;u<e.length;u++){var f=e[u],d=a[f];l[f]=d??(r&&r[f])}for(var u=0;u<t.animators.length;u++){var h=t.animators[u];h.__fromStateTransition&&h.__fromStateTransition.indexOf(n)<0&&h.targetName==="style"&&h.saveTo(l,e)}return l}function uG(t,e,n,r){var a=n&&dn(n,"select")>=0,l=!1;if(t instanceof Gt){var u=T2(t),f=a&&u.selectFill||u.normalFill,d=a&&u.selectStroke||u.normalStroke;if(pv(f)||pv(d)){r=r||{};var h=r.style||{};h.fill==="inherit"?(l=!0,r=Re({},r),h=Re({},h),h.fill=f):!pv(h.fill)&&pv(f)?(l=!0,r=Re({},r),h=Re({},h),h.fill=D2(f)):!pv(h.stroke)&&pv(d)&&(l||(r=Re({},r),h=Re({},h)),h.stroke=D2(d)),r.style=h}}if(r&&r.z2==null){l||(r=Re({},r));var p=t.z2EmphasisLift;r.z2=t.z2+(p??rG)}return r}function sG(t,e,n){if(n&&n.z2==null){n=Re({},n);var r=t.z2SelectLift;n.z2=t.z2+(r??iG)}return n}function fG(t,e,n){var r=dn(t.currentStates,e)>=0,a=t.style.opacity,l=r?null:lG(t,["opacity"],e,{opacity:1});n=n||{};var u=n.style||{};return u.opacity==null&&(n=Re({},n),u=Re({opacity:r?a:l.opacity*.1},u),n.style=u),n}function gT(t,e){var n=this.states[t];if(this.style){if(t==="emphasis")return uG(this,t,e,n);if(t==="blur")return fG(this,t,n);if(t==="select")return sG(this,t,n)}return n}function cG(t){t.stateProxy=gT;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=gT),n&&(n.stateProxy=gT)}function O2(t,e){!z2(t,e)&&!t.__highByOuter&&Tu(t,M2)}function k2(t,e){!z2(t,e)&&!t.__highByOuter&&Tu(t,R2)}function mT(t,e){t.__highByOuter|=1<<(e||0),Tu(t,M2)}function yT(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Tu(t,R2)}function dG(t){Tu(t,pT)}function N2(t){Tu(t,A2)}function P2(t){Tu(t,aG)}function I2(t){Tu(t,oG)}function z2(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function F2(t){var e=t.getModel(),n=[],r=[];e.eachComponent(function(a,l){var u=dT(l),f=a==="series",d=f?t.getViewOfSeriesModel(l):t.getViewOfComponentModel(l);!f&&r.push(d),u.isBlured&&(d.group.traverse(function(h){A2(h)}),f&&n.push(l)),u.isBlured=!1}),W(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(n,!1,e)})}function _T(t,e,n,r){var a=r.getModel();n=n||"coordinateSystem";function l(h,p){for(var m=0;m<p.length;m++){var S=h.getItemGraphicEl(p[m]);S&&N2(S)}}if(t!=null&&!(!e||e==="none")){var u=a.getSeriesByIndex(t),f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=[];a.eachSeries(function(h){var p=u===h,m=h.coordinateSystem;m&&m.master&&(m=m.master);var S=m&&f?m===f:p;if(!(n==="series"&&!p||n==="coordinateSystem"&&!S||e==="series"&&p)){var _=r.getViewOfSeriesModel(h);if(_.group.traverse(function(b){pT(b)}),Ai(e))l(h.getData(),e);else if(it(e))for(var x=kn(e),E=0;E<x.length;E++)l(h.getData(x[E]),e[x[E]]);d.push(h),dT(h).isBlured=!0}}),a.eachComponent(function(h,p){if(h!=="series"){var m=r.getViewOfComponentModel(p);m&&m.toggleBlurSeries&&m.toggleBlurSeries(d,!0,a)}})}}function ST(t,e,n){if(!(t==null||e==null)){var r=n.getModel().getComponent(t,e);if(r){dT(r).isBlured=!0;var a=n.getViewOfComponentModel(r);!a||!a.focusBlurEnabled||a.group.traverse(function(l){pT(l)})}}}function vG(t,e,n){var r=t.seriesIndex,a=t.getData(e.dataType);if(!a){process.env.NODE_ENV!=="production"&&ci("Unknown dataType "+e.dataType);return}var l=rg(a,e);l=(Be(l)?l[0]:l)||0;var u=a.getItemGraphicEl(l);if(!u)for(var f=a.count(),d=0;!u&&d<f;)u=a.getItemGraphicEl(d++);if(u){var h=yn(u);_T(r,h.focus,h.blurScope,n)}else{var p=t.get(["emphasis","focus"]),m=t.get(["emphasis","blurScope"]);p!=null&&_T(r,p,m,n)}}function CT(t,e,n,r){var a={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||n==null)return a;var l=r.getModel().getComponent(t,e);if(!l)return a;var u=r.getViewOfComponentModel(l);if(!u||!u.findHighDownDispatchers)return a;for(var f=u.findHighDownDispatchers(n),d,h=0;h<f.length;h++)if(process.env.NODE_ENV!=="production"&&!gv(f[h])&&ci("param should be highDownDispatcher"),yn(f[h]).focus==="self"){d=!0;break}return{focusSelf:d,dispatchers:f}}function hG(t,e,n){process.env.NODE_ENV!=="production"&&!gv(t)&&ci("param should be highDownDispatcher");var r=yn(t),a=CT(r.componentMainType,r.componentIndex,r.componentHighDownName,n),l=a.dispatchers,u=a.focusSelf;l?(u&&ST(r.componentMainType,r.componentIndex,n),W(l,function(f){return O2(f,e)})):(_T(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&ST(r.componentMainType,r.componentIndex,n),O2(t,e))}function pG(t,e,n){process.env.NODE_ENV!=="production"&&!gv(t)&&ci("param should be highDownDispatcher"),F2(n);var r=yn(t),a=CT(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;a?W(a,function(l){return k2(l,e)}):k2(t,e)}function gG(t,e,n){if(wT(e)){var r=e.dataType,a=t.getData(r),l=rg(a,e);Be(l)||(l=[l]),t[e.type===sg?"toggleSelect":e.type===ug?"select":"unselect"](l,r)}}function B2(t){var e=t.getAllData();W(e,function(n){var r=n.data,a=n.type;r.eachItemGraphicEl(function(l,u){t.isSelected(u,a)?P2(l):I2(l)})})}function mG(t){var e=[];return t.eachSeries(function(n){var r=n.getAllData();W(r,function(a){a.data;var l=a.type,u=n.getSelectedDataIndices();if(u.length>0){var f={dataIndex:u,seriesIndex:n.seriesIndex};l!=null&&(f.dataType=l),e.push(f)}})}),e}function yG(t,e,n){V2(t,!0),Tu(t,cG),CG(t,e,n)}function _G(t){V2(t,!1)}function SG(t,e,n,r){r?_G(t):yG(t,e,n)}function CG(t,e,n){var r=yn(t);e!=null?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var U2=["emphasis","blur","select"],wG={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function xG(t,e,n,r){n=n||"itemStyle";for(var a=0;a<U2.length;a++){var l=U2[a],u=e.getModel([l,n]),f=t.ensureState(l);f.style=r?r(u):u[wG[n]]()}}function V2(t,e){var n=e===!1,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function gv(t){return!!(t&&t.__highDownDispatcher)}function TG(t){var e=x2[t];return e==null&&w2<=32&&(e=x2[t]=w2++),e}function wT(t){var e=t.type;return e===ug||e===f_||e===sg}function H2(t){var e=t.type;return e===fc||e===s_}function bG(t){var e=T2(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}var mv=As.CMD,EG=[[],[],[]],G2=Math.sqrt,DG=Math.atan2;function $2(t,e){if(e){var n=t.data,r=t.len(),a,l,u,f,d,h,p=mv.M,m=mv.C,S=mv.L,_=mv.R,x=mv.A,E=mv.Q;for(u=0,f=0;u<r;){switch(a=n[u++],f=u,l=0,a){case p:l=1;break;case S:l=1;break;case m:l=3;break;case E:l=2;break;case x:var b=e[4],D=e[5],A=G2(e[0]*e[0]+e[1]*e[1]),O=G2(e[2]*e[2]+e[3]*e[3]),P=DG(-e[1]/O,e[0]/A);n[u]*=A,n[u++]+=b,n[u]*=O,n[u++]+=D,n[u++]*=A,n[u++]*=O,n[u++]+=P,n[u++]+=P,u+=2,f=u;break;case _:h[0]=n[u++],h[1]=n[u++],eo(h,h,e),n[f++]=h[0],n[f++]=h[1],h[0]+=n[u++],h[1]+=n[u++],eo(h,h,e),n[f++]=h[0],n[f++]=h[1]}for(d=0;d<l;d++){var I=EG[d];I[0]=n[u++],I[1]=n[u++],eo(I,I,e),n[f++]=I[0],n[f++]=I[1]}}t.increaseVersion()}}var xT=Math.sqrt,d_=Math.sin,v_=Math.cos,fg=Math.PI;function j2(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function TT(t,e){return(t[0]*e[0]+t[1]*e[1])/(j2(t)*j2(e))}function Y2(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(TT(t,e))}function W2(t,e,n,r,a,l,u,f,d,h,p){var m=d*(fg/180),S=v_(m)*(t-n)/2+d_(m)*(e-r)/2,_=-1*d_(m)*(t-n)/2+v_(m)*(e-r)/2,x=S*S/(u*u)+_*_/(f*f);x>1&&(u*=xT(x),f*=xT(x));var E=(a===l?-1:1)*xT((u*u*(f*f)-u*u*(_*_)-f*f*(S*S))/(u*u*(_*_)+f*f*(S*S)))||0,b=E*u*_/f,D=E*-f*S/u,A=(t+n)/2+v_(m)*b-d_(m)*D,O=(e+r)/2+d_(m)*b+v_(m)*D,P=Y2([1,0],[(S-b)/u,(_-D)/f]),I=[(S-b)/u,(_-D)/f],F=[(-1*S-b)/u,(-1*_-D)/f],U=Y2(I,F);if(TT(I,F)<=-1&&(U=fg),TT(I,F)>=1&&(U=0),U<0){var H=Math.round(U/fg*1e6)/1e6;U=fg*2+H%2*fg}p.addData(h,A,O,u,f,P,U,m,l)}var MG=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,RG=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function AG(t){var e=new As;if(!t)return e;var n=0,r=0,a=n,l=r,u,f=As.CMD,d=t.match(MG);if(!d)return e;for(var h=0;h<d.length;h++){for(var p=d[h],m=p.charAt(0),S=void 0,_=p.match(RG)||[],x=_.length,E=0;E<x;E++)_[E]=parseFloat(_[E]);for(var b=0;b<x;){var D=void 0,A=void 0,O=void 0,P=void 0,I=void 0,F=void 0,U=void 0,H=n,j=r,X=void 0,G=void 0;switch(m){case"l":n+=_[b++],r+=_[b++],S=f.L,e.addData(S,n,r);break;case"L":n=_[b++],r=_[b++],S=f.L,e.addData(S,n,r);break;case"m":n+=_[b++],r+=_[b++],S=f.M,e.addData(S,n,r),a=n,l=r,m="l";break;case"M":n=_[b++],r=_[b++],S=f.M,e.addData(S,n,r),a=n,l=r,m="L";break;case"h":n+=_[b++],S=f.L,e.addData(S,n,r);break;case"H":n=_[b++],S=f.L,e.addData(S,n,r);break;case"v":r+=_[b++],S=f.L,e.addData(S,n,r);break;case"V":r=_[b++],S=f.L,e.addData(S,n,r);break;case"C":S=f.C,e.addData(S,_[b++],_[b++],_[b++],_[b++],_[b++],_[b++]),n=_[b-2],r=_[b-1];break;case"c":S=f.C,e.addData(S,_[b++]+n,_[b++]+r,_[b++]+n,_[b++]+r,_[b++]+n,_[b++]+r),n+=_[b-2],r+=_[b-1];break;case"S":D=n,A=r,X=e.len(),G=e.data,u===f.C&&(D+=n-G[X-4],A+=r-G[X-3]),S=f.C,H=_[b++],j=_[b++],n=_[b++],r=_[b++],e.addData(S,D,A,H,j,n,r);break;case"s":D=n,A=r,X=e.len(),G=e.data,u===f.C&&(D+=n-G[X-4],A+=r-G[X-3]),S=f.C,H=n+_[b++],j=r+_[b++],n+=_[b++],r+=_[b++],e.addData(S,D,A,H,j,n,r);break;case"Q":H=_[b++],j=_[b++],n=_[b++],r=_[b++],S=f.Q,e.addData(S,H,j,n,r);break;case"q":H=_[b++]+n,j=_[b++]+r,n+=_[b++],r+=_[b++],S=f.Q,e.addData(S,H,j,n,r);break;case"T":D=n,A=r,X=e.len(),G=e.data,u===f.Q&&(D+=n-G[X-4],A+=r-G[X-3]),n=_[b++],r=_[b++],S=f.Q,e.addData(S,D,A,n,r);break;case"t":D=n,A=r,X=e.len(),G=e.data,u===f.Q&&(D+=n-G[X-4],A+=r-G[X-3]),n+=_[b++],r+=_[b++],S=f.Q,e.addData(S,D,A,n,r);break;case"A":O=_[b++],P=_[b++],I=_[b++],F=_[b++],U=_[b++],H=n,j=r,n=_[b++],r=_[b++],S=f.A,W2(H,j,n,r,F,U,O,P,I,S,e);break;case"a":O=_[b++],P=_[b++],I=_[b++],F=_[b++],U=_[b++],H=n,j=r,n+=_[b++],r+=_[b++],S=f.A,W2(H,j,n,r,F,U,O,P,I,S,e);break}}(m==="z"||m==="Z")&&(S=f.Z,e.addData(S),n=a,r=l),u=S}return e.toStatic(),e}var X2=function(t){mn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(n){},e}(Gt);function q2(t){return t.setData!=null}function Q2(t,e){var n=AG(t),r=Re({},e);return r.buildPath=function(a){if(q2(a)){a.setData(n.data);var l=a.getContext();l&&a.rebuildPath(l,1)}else{var l=a;n.rebuildPath(l,1)}},r.applyTransform=function(a){$2(n,a),this.dirtyShape()},r}function LG(t,e){return new X2(Q2(t,e))}function OG(t,e){var n=Q2(t,e),r=function(a){mn(l,a);function l(u){var f=a.call(this,u)||this;return f.applyTransform=n.applyTransform,f.buildPath=n.buildPath,f}return l}(X2);return r}function kG(t,e){for(var n=[],r=t.length,a=0;a<r;a++){var l=t[a];n.push(l.getUpdatedPathProxy(!0))}var u=new Gt(e);return u.createPathProxy(),u.buildPath=function(f){if(q2(f)){f.appendPath(n);var d=f.getContext();d&&f.rebuildPath(d,1)}},u}function bT(t,e){e=e||{};var n=new Gt;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?$2(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}var NG=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),Z2=function(t){mn(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new NG},e.prototype.buildPath=function(n,r){n.moveTo(r.cx+r.r,r.cy),n.arc(r.cx,r.cy,r.r,0,Math.PI*2)},e}(Gt);Z2.prototype.type="circle";const ET=Z2;var PG=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),K2=function(t){mn(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new PG},e.prototype.buildPath=function(n,r){var a=.5522848,l=r.cx,u=r.cy,f=r.rx,d=r.ry,h=f*a,p=d*a;n.moveTo(l-f,u),n.bezierCurveTo(l-f,u-p,l-h,u-d,l,u-d),n.bezierCurveTo(l+h,u-d,l+f,u-p,l+f,u),n.bezierCurveTo(l+f,u+p,l+h,u+d,l,u+d),n.bezierCurveTo(l-h,u+d,l-f,u+p,l-f,u),n.closePath()},e}(Gt);K2.prototype.type="ellipse";const J2=K2;var ek=Math.PI,DT=ek*2,cc=Math.sin,yv=Math.cos,IG=Math.acos,di=Math.atan2,tk=Math.abs,cg=Math.sqrt,dg=Math.max,Rl=Math.min,No=1e-4;function zG(t,e,n,r,a,l,u,f){var d=n-t,h=r-e,p=u-a,m=f-l,S=m*d-p*h;if(!(S*S<No))return S=(p*(e-l)-m*(t-a))/S,[t+S*d,e+S*h]}function h_(t,e,n,r,a,l,u){var f=t-n,d=e-r,h=(u?l:-l)/cg(f*f+d*d),p=h*d,m=-h*f,S=t+p,_=e+m,x=n+p,E=r+m,b=(S+x)/2,D=(_+E)/2,A=x-S,O=E-_,P=A*A+O*O,I=a-l,F=S*E-x*_,U=(O<0?-1:1)*cg(dg(0,I*I*P-F*F)),H=(F*O-A*U)/P,j=(-F*A-O*U)/P,X=(F*O+A*U)/P,G=(-F*A+O*U)/P,ee=H-b,J=j-D,ie=X-b,ce=G-D;return ee*ee+J*J>ie*ie+ce*ce&&(H=X,j=G),{cx:H,cy:j,x0:-p,y0:-m,x1:H*(a/I-1),y1:j*(a/I-1)}}function FG(t){var e;if(Be(t)){var n=t.length;if(!n)return t;n===1?e=[t[0],t[0],0,0]:n===2?e=[t[0],t[0],t[1],t[1]]:n===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function BG(t,e){var n,r=dg(e.r,0),a=dg(e.r0||0,0),l=r>0,u=a>0;if(!(!l&&!u)){if(l||(r=a,a=0),a>r){var f=r;r=a,a=f}var d=e.startAngle,h=e.endAngle;if(!(isNaN(d)||isNaN(h))){var p=e.cx,m=e.cy,S=!!e.clockwise,_=tk(h-d),x=_>DT&&_%DT;if(x>No&&(_=x),!(r>No))t.moveTo(p,m);else if(_>DT-No)t.moveTo(p+r*yv(d),m+r*cc(d)),t.arc(p,m,r,d,h,!S),a>No&&(t.moveTo(p+a*yv(h),m+a*cc(h)),t.arc(p,m,a,h,d,S));else{var E=void 0,b=void 0,D=void 0,A=void 0,O=void 0,P=void 0,I=void 0,F=void 0,U=void 0,H=void 0,j=void 0,X=void 0,G=void 0,ee=void 0,J=void 0,ie=void 0,ce=r*yv(d),fe=r*cc(d),Ne=a*yv(h),ae=a*cc(h),ge=_>No;if(ge){var pe=e.cornerRadius;pe&&(n=FG(pe),E=n[0],b=n[1],D=n[2],A=n[3]);var Le=tk(r-a)/2;if(O=Rl(Le,D),P=Rl(Le,A),I=Rl(Le,E),F=Rl(Le,b),j=U=dg(O,P),X=H=dg(I,F),(U>No||H>No)&&(G=r*yv(h),ee=r*cc(h),J=a*yv(d),ie=a*cc(d),_<ek)){var Ge=zG(ce,fe,J,ie,G,ee,Ne,ae);if(Ge){var St=ce-Ge[0],It=fe-Ge[1],Dn=G-Ge[0],Xt=ee-Ge[1],Mn=1/cc(IG((St*Dn+It*Xt)/(cg(St*St+It*It)*cg(Dn*Dn+Xt*Xt)))/2),ln=cg(Ge[0]*Ge[0]+Ge[1]*Ge[1]);j=Rl(U,(r-ln)/(Mn+1)),X=Rl(H,(a-ln)/(Mn-1))}}}if(!ge)t.moveTo(p+ce,m+fe);else if(j>No){var zt=Rl(D,j),Ft=Rl(A,j),$e=h_(J,ie,ce,fe,r,zt,S),Se=h_(G,ee,Ne,ae,r,Ft,S);t.moveTo(p+$e.cx+$e.x0,m+$e.cy+$e.y0),j<U&&zt===Ft?t.arc(p+$e.cx,m+$e.cy,j,di($e.y0,$e.x0),di(Se.y0,Se.x0),!S):(zt>0&&t.arc(p+$e.cx,m+$e.cy,zt,di($e.y0,$e.x0),di($e.y1,$e.x1),!S),t.arc(p,m,r,di($e.cy+$e.y1,$e.cx+$e.x1),di(Se.cy+Se.y1,Se.cx+Se.x1),!S),Ft>0&&t.arc(p+Se.cx,m+Se.cy,Ft,di(Se.y1,Se.x1),di(Se.y0,Se.x0),!S))}else t.moveTo(p+ce,m+fe),t.arc(p,m,r,d,h,!S);if(!(a>No)||!ge)t.lineTo(p+Ne,m+ae);else if(X>No){var zt=Rl(E,X),Ft=Rl(b,X),$e=h_(Ne,ae,G,ee,a,-Ft,S),Se=h_(ce,fe,J,ie,a,-zt,S);t.lineTo(p+$e.cx+$e.x0,m+$e.cy+$e.y0),X<H&&zt===Ft?t.arc(p+$e.cx,m+$e.cy,X,di($e.y0,$e.x0),di(Se.y0,Se.x0),!S):(Ft>0&&t.arc(p+$e.cx,m+$e.cy,Ft,di($e.y0,$e.x0),di($e.y1,$e.x1),!S),t.arc(p,m,a,di($e.cy+$e.y1,$e.cx+$e.x1),di(Se.cy+Se.y1,Se.cx+Se.x1),S),zt>0&&t.arc(p+Se.cx,m+Se.cy,zt,di(Se.y1,Se.x1),di(Se.y0,Se.x0),!S))}else t.lineTo(p+Ne,m+ae),t.arc(p,m,a,h,d,S)}t.closePath()}}}var UG=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t}(),nk=function(t){mn(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new UG},e.prototype.buildPath=function(n,r){BG(n,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Gt);nk.prototype.type="sector";const dc=nk;var VG=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),rk=function(t){mn(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new VG},e.prototype.buildPath=function(n,r){var a=r.cx,l=r.cy,u=Math.PI*2;n.moveTo(a+r.r,l),n.arc(a,l,r.r,0,u,!1),n.moveTo(a+r.r0,l),n.arc(a,l,r.r0,0,u,!0)},e}(Gt);rk.prototype.type="ring";const ik=rk;function HG(t,e,n,r){var a=[],l=[],u=[],f=[],d,h,p,m;if(r){p=[1/0,1/0],m=[-1/0,-1/0];for(var S=0,_=t.length;S<_;S++)Kd(p,p,t[S]),Jd(m,m,t[S]);Kd(p,p,r[0]),Jd(m,m,r[1])}for(var S=0,_=t.length;S<_;S++){var x=t[S];if(n)d=t[S?S-1:_-1],h=t[(S+1)%_];else if(S===0||S===_-1){a.push(f4(t[S]));continue}else d=t[S-1],h=t[S+1];c4(l,h,d),tx(l,l,e);var E=nx(x,d),b=nx(x,h),D=E+b;D!==0&&(E/=D,b/=D),tx(u,l,-E),tx(f,l,b);var A=EL([],x,u),O=EL([],x,f);r&&(Jd(A,A,p),Kd(A,A,m),Jd(O,O,p),Kd(O,O,m)),a.push(A),a.push(O)}return n&&a.push(a.shift()),a}function ak(t,e,n){var r=e.smooth,a=e.points;if(a&&a.length>=2){if(r){var l=HG(a,r,n,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var u=a.length,f=0;f<(n?u:u-1);f++){var d=l[f*2],h=l[f*2+1],p=a[(f+1)%u];t.bezierCurveTo(d[0],d[1],h[0],h[1],p[0],p[1])}}else{t.moveTo(a[0][0],a[0][1]);for(var f=1,m=a.length;f<m;f++)t.lineTo(a[f][0],a[f][1])}n&&t.closePath()}}var GG=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),ok=function(t){mn(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new GG},e.prototype.buildPath=function(n,r){ak(n,r,!0)},e}(Gt);ok.prototype.type="polygon";const MT=ok;var $G=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),lk=function(t){mn(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new $G},e.prototype.buildPath=function(n,r){ak(n,r,!1)},e}(Gt);lk.prototype.type="polyline";const RT=lk;var jG={},YG=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),uk=function(t){mn(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new YG},e.prototype.buildPath=function(n,r){var a,l,u,f;if(this.subPixelOptimize){var d=s2(jG,r,this.style);a=d.x1,l=d.y1,u=d.x2,f=d.y2}else a=r.x1,l=r.y1,u=r.x2,f=r.y2;var h=r.percent;h!==0&&(n.moveTo(a,l),h<1&&(u=a*(1-h)+u*h,f=l*(1-h)+f*h),n.lineTo(u,f))},e.prototype.pointAt=function(n){var r=this.shape;return[r.x1*(1-n)+r.x2*n,r.y1*(1-n)+r.y2*n]},e}(Gt);uk.prototype.type="line";const vc=uk;var aa=[],WG=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function sk(t,e,n){var r=t.cpx2,a=t.cpy2;return r!=null||a!=null?[(n?WL:Qr)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?WL:Qr)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?ZL:fi)(t.x1,t.cpx1,t.x2,e),(n?ZL:fi)(t.y1,t.cpy1,t.y2,e)]}var fk=function(t){mn(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new WG},e.prototype.buildPath=function(n,r){var a=r.x1,l=r.y1,u=r.x2,f=r.y2,d=r.cpx1,h=r.cpy1,p=r.cpx2,m=r.cpy2,S=r.percent;S!==0&&(n.moveTo(a,l),p==null||m==null?(S<1&&(V0(a,d,u,S,aa),d=aa[1],u=aa[2],V0(l,h,f,S,aa),h=aa[1],f=aa[2]),n.quadraticCurveTo(d,h,u,f)):(S<1&&(Es(a,d,p,u,S,aa),d=aa[1],p=aa[2],u=aa[3],Es(l,h,m,f,S,aa),h=aa[1],m=aa[2],f=aa[3]),n.bezierCurveTo(d,h,p,m,u,f)))},e.prototype.pointAt=function(n){return sk(this.shape,n,!1)},e.prototype.tangentAt=function(n){var r=sk(this.shape,n,!0);return h4(r,r)},e}(Gt);fk.prototype.type="bezier-curve";const ck=fk;var XG=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),dk=function(t){mn(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new XG},e.prototype.buildPath=function(n,r){var a=r.cx,l=r.cy,u=Math.max(r.r,0),f=r.startAngle,d=r.endAngle,h=r.clockwise,p=Math.cos(f),m=Math.sin(f);n.moveTo(p*u+a,m*u+l),n.arc(a,l,u,f,d,!h)},e}(Gt);dk.prototype.type="arc";const AT=dk;var qG=function(t){mn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="compound",n}return e.prototype._updatePathDirty=function(){for(var n=this.shape.paths,r=this.shapeChanged(),a=0;a<n.length;a++)r=r||n[a].shapeChanged();r&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],r=this.getGlobalScale(),a=0;a<n.length;a++)n[a].path||n[a].createPathProxy(),n[a].path.setScale(r[0],r[1],n[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(n,r){for(var a=r.paths||[],l=0;l<a.length;l++)a[l].buildPath(n,a[l].shape,!0)},e.prototype.afterBrush=function(){for(var n=this.shape.paths||[],r=0;r<n.length;r++)n[r].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Gt.prototype.getBoundingRect.call(this)},e}(Gt);const QG=qG;var ZG=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,n){this.colorStops.push({offset:e,color:n})},t}();const vk=ZG;var KG=function(t){mn(e,t);function e(n,r,a,l,u,f){var d=t.call(this,u)||this;return d.x=n??0,d.y=r??0,d.x2=a??1,d.y2=l??0,d.type="linear",d.global=f||!1,d}return e}(vk);const JG=KG;var e$=function(t){mn(e,t);function e(n,r,a,l,u){var f=t.call(this,l)||this;return f.x=n??.5,f.y=r??.5,f.r=a??.5,f.type="radial",f.global=u||!1,f}return e}(vk);const t$=e$;var hc=[0,0],pc=[0,0],p_=new ht,g_=new ht,n$=function(){function t(e,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new ht;for(var r=0;r<2;r++)this._axes[r]=new ht;e&&this.fromBoundingRect(e,n)}return t.prototype.fromBoundingRect=function(e,n){var r=this._corners,a=this._axes,l=e.x,u=e.y,f=l+e.width,d=u+e.height;if(r[0].set(l,u),r[1].set(f,u),r[2].set(f,d),r[3].set(l,d),n)for(var h=0;h<4;h++)r[h].transform(n);ht.sub(a[0],r[1],r[0]),ht.sub(a[1],r[3],r[0]),a[0].normalize(),a[1].normalize();for(var h=0;h<2;h++)this._origin[h]=a[h].dot(r[0])},t.prototype.intersect=function(e,n){var r=!0,a=!n;return p_.set(1/0,1/0),g_.set(0,0),!this._intersectCheckOneSide(this,e,p_,g_,a,1)&&(r=!1,a)||!this._intersectCheckOneSide(e,this,p_,g_,a,-1)&&(r=!1,a)||a||ht.copy(n,r?p_:g_),r},t.prototype._intersectCheckOneSide=function(e,n,r,a,l,u){for(var f=!0,d=0;d<2;d++){var h=this._axes[d];if(this._getProjMinMaxOnAxis(d,e._corners,hc),this._getProjMinMaxOnAxis(d,n._corners,pc),hc[1]<pc[0]||hc[0]>pc[1]){if(f=!1,l)return f;var p=Math.abs(pc[0]-hc[1]),m=Math.abs(hc[0]-pc[1]);Math.min(p,m)>a.len()&&(p<m?ht.scale(a,h,-p*u):ht.scale(a,h,m*u))}else if(r){var p=Math.abs(pc[0]-hc[1]),m=Math.abs(hc[0]-pc[1]);Math.min(p,m)<r.len()&&(p<m?ht.scale(r,h,p*u):ht.scale(r,h,-m*u))}}return f},t.prototype._getProjMinMaxOnAxis=function(e,n,r){for(var a=this._axes[e],l=this._origin,u=n[0].dot(a)+l[e],f=u,d=u,h=1;h<n.length;h++){var p=n[h].dot(a)+l[e];f=Math.min(p,f),d=Math.max(p,d)}r[0]=f,r[1]=d},t}();const m_=n$;var r$=[],i$=function(t){mn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return e.prototype.traverse=function(n,r){n.call(r,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(n,r){r?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},e.prototype.addDisplayables=function(n,r){r=r||!1;for(var a=0;a<n.length;a++)this.addDisplayable(n[a],r)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(n){for(var r=this._cursor;r<this._displayables.length;r++)n&&n(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)n&&n(this._temporaryDisplayables[r])},e.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var r=this._displayables[n];r.parent=this,r.update(),r.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var r=this._temporaryDisplayables[n];r.parent=this,r.update(),r.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new Wt(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var a=this._displayables[r],l=a.getBoundingRect().clone();a.needLocalTransform()&&l.applyTransform(a.getLocalTransform(r$)),n.union(l)}this._rect=n}return this._rect},e.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),l=this.getBoundingRect();if(l.contain(a[0],a[1]))for(var u=0;u<this._displayables.length;u++){var f=this._displayables[u];if(f.contain(n,r))return!0}return!1},e}(cv);const a$=i$;var hk=jn();function y_(t,e,n,r,a){var l;if(e&&e.ecModel){var u=e.ecModel.getUpdatePayload();l=u&&u.animation}var f=e&&e.isAnimationEnabled(),d=t==="update";if(f){var h=void 0,p=void 0,m=void 0;r?(h=kt(r.duration,200),p=kt(r.easing,"cubicOut"),m=0):(h=e.getShallow(d?"animationDurationUpdate":"animationDuration"),p=e.getShallow(d?"animationEasingUpdate":"animationEasing"),m=e.getShallow(d?"animationDelayUpdate":"animationDelay")),l&&(l.duration!=null&&(h=l.duration),l.easing!=null&&(p=l.easing),l.delay!=null&&(m=l.delay)),_t(m)&&(m=m(n,a)),_t(h)&&(h=h(n));var S={duration:h||0,delay:m,easing:p};return S}else return null}function LT(t,e,n,r,a,l,u){var f=!1,d;_t(a)?(u=l,l=a,a=null):it(a)&&(l=a.cb,u=a.during,f=a.isFrom,d=a.removeOpt,a=a.dataIndex);var h=t==="leave";h||e.stopAnimation("leave");var p=y_(t,r,a,h?d||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,a):null);if(p&&p.duration>0){var m=p.duration,S=p.delay,_=p.easing,x={duration:m,delay:S||0,easing:_,done:l,force:!!l||!!u,setToFinal:!h,scope:t,during:u};f?e.animateFrom(n,x):e.animateTo(n,x)}else e.stopAnimation(),!f&&e.attr(n),u&&u(1),l&&l()}function Po(t,e,n,r,a,l){LT("update",t,e,n,r,a,l)}function Io(t,e,n,r,a,l){LT("enter",t,e,n,r,a,l)}function _v(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if(n.scope==="leave")return!0}return!1}function pk(t,e,n,r,a,l){_v(t)||LT("leave",t,e,n,r,a,l)}function gk(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),pk(t,{style:{opacity:0}},e,n,r)}function OT(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(a){a.isGroup||gk(a,e,n,r)}):gk(t,e,n,r)}function o$(t){hk(t).oldStyle=t.style}function l$(t){return hk(t).oldStyle}var __=Math.max,S_=Math.min,kT={};function u$(t){return Gt.extend(t)}var s$=OG;function f$(t,e){return s$(t,e)}function zo(t,e){kT[t]=e}function c$(t){if(kT.hasOwnProperty(t))return kT[t]}function NT(t,e,n,r){var a=LG(t,e);return n&&(r==="center"&&(n=yk(n,a.getBoundingRect())),_k(a,n)),a}function mk(t,e,n){var r=new vv({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(n==="center"){var l={width:a.width,height:a.height};r.setStyle(yk(e,l))}}});return r}function yk(t,e){var n=e.width/e.height,r=t.height*n,a;r<=t.width?a=t.height:(r=t.width,a=r/n);var l=t.x+t.width/2,u=t.y+t.height/2;return{x:l-r/2,y:u-a/2,width:r,height:a}}var d$=kG;function _k(t,e){if(t.applyTransform){var n=t.getBoundingRect(),r=n.calculateTransform(e);t.applyTransform(r)}}function vg(t,e){return s2(t,t,{lineWidth:e}),t}function v$(t){return f2(t.shape,t.shape,t.style),t}var h$=sc;function p$(t,e){for(var n=cx([]);t&&t!==e;)tv(n,t.getLocalTransform(),n),t=t.parent;return n}function PT(t,e,n){return e&&!Ai(e)&&(e=Kp.getLocalTransform(e)),n&&(e=k0([],e)),eo([],t,e)}function g$(t,e,n){var r=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),l=[t==="left"?-r:t==="right"?r:0,t==="top"?-a:t==="bottom"?a:0];return l=PT(l,e,n),Math.abs(l[0])>Math.abs(l[1])?l[0]>0?"right":"left":l[1]>0?"bottom":"top"}function Sk(t){return!t.isGroup}function m$(t){return t.shape!=null}function Ck(t,e,n){if(!t||!e)return;function r(u){var f={};return u.traverse(function(d){Sk(d)&&d.anid&&(f[d.anid]=d)}),f}function a(u){var f={x:u.x,y:u.y,rotation:u.rotation};return m$(u)&&(f.shape=Re({},u.shape)),f}var l=r(t);e.traverse(function(u){if(Sk(u)&&u.anid){var f=l[u.anid];if(f){var d=a(u);u.attr(a(f)),Po(u,d,n,yn(u).dataIndex)}}})}function y$(t,e){return ot(t,function(n){var r=n[0];r=__(r,e.x),r=S_(r,e.x+e.width);var a=n[1];return a=__(a,e.y),a=S_(a,e.y+e.height),[r,a]})}function _$(t,e){var n=__(t.x,e.x),r=S_(t.x+t.width,e.x+e.width),a=__(t.y,e.y),l=S_(t.y+t.height,e.y+e.height);if(r>=n&&l>=a)return{x:n,y:a,width:r-n,height:l-a}}function wk(t,e,n){var r=Re({rectHover:!0},e),a=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(a.image=t.slice(8),Vt(a,n),new vv(r)):NT(t.replace("path://",""),r,n,"center")}function S$(t,e,n,r,a){for(var l=0,u=a[a.length-1];l<a.length;l++){var f=a[l];if(xk(t,e,n,r,f[0],f[1],u[0],u[1]))return!0;u=f}}function xk(t,e,n,r,a,l,u,f){var d=n-t,h=r-e,p=u-a,m=f-l,S=IT(p,m,d,h);if(C$(S))return!1;var _=t-a,x=e-l,E=IT(_,x,d,h)/S;if(E<0||E>1)return!1;var b=IT(_,x,p,m)/S;return!(b<0||b>1)}function IT(t,e,n,r){return t*r-n*e}function C$(t){return t<=1e-6&&t>=-1e-6}function Tk(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,a=et(e)?{formatter:e}:e,l=n.mainType,u=n.componentIndex,f={componentType:l,name:r,$vars:["name"]};f[l+"Index"]=u;var d=t.formatterParamsExtra;d&&W(kn(d),function(p){_u(f,p)||(f[p]=d[p],f.$vars.push(p))});var h=yn(t.el);h.componentMainType=l,h.componentIndex=u,h.tooltipConfig={name:r,option:Vt({content:r,formatterParams:f},a)}}function bk(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function zT(t,e){if(t)if(Be(t))for(var n=0;n<t.length;n++)bk(t[n],e);else bk(t,e)}zo("circle",ET),zo("ellipse",J2),zo("sector",dc),zo("ring",ik),zo("polygon",MT),zo("polyline",RT),zo("rect",Kr),zo("line",vc),zo("bezierCurve",ck),zo("arc",AT);const w$=Object.freeze(Object.defineProperty({__proto__:null,updateProps:Po,initProps:Io,removeElement:pk,removeElementWithFadeOut:OT,isElementRemoved:_v,extendShape:u$,extendPath:f$,registerShape:zo,getShapeClass:c$,makePath:NT,makeImage:mk,mergePath:d$,resizePath:_k,subPixelOptimizeLine:vg,subPixelOptimizeRect:v$,subPixelOptimize:h$,getTransform:p$,applyTransform:PT,transformDirection:g$,groupTransition:Ck,clipPointsByRect:y$,clipRectByRect:_$,createIcon:wk,linePolygonIntersect:S$,lineLineIntersect:xk,setTooltipConfig:Tk,traverseElements:zT,Group:Cl,Image:vv,Text:ko,Circle:ET,Ellipse:J2,Sector:dc,Ring:ik,Polygon:MT,Polyline:RT,Rect:Kr,Line:vc,BezierCurve:ck,Arc:AT,IncrementalDisplayable:a$,CompoundPath:QG,LinearGradient:JG,RadialGradient:t$,BoundingRect:Wt,OrientedBoundingRect:m_,Point:ht,Path:Gt},Symbol.toStringTag,{value:"Module"}));var C_={};function Ek(t,e){for(var n=0;n<Ml.length;n++){var r=Ml[n],a=e[r],l=t.ensureState(r);l.style=l.style||{},l.style.text=a}var u=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(u,!0)}function FT(t,e,n){var r=t.labelFetcher,a=t.labelDataIndex,l=t.labelDimIndex,u=e.normal,f;r&&(f=r.getFormattedLabel(a,"normal",null,l,u&&u.get("formatter"),n!=null?{interpolatedValue:n}:null)),f==null&&(f=_t(t.defaultText)?t.defaultText(a,t,n):t.defaultText);for(var d={normal:f},h=0;h<Ml.length;h++){var p=Ml[h],m=e[p];d[p]=kt(r?r.getFormattedLabel(a,p,null,l,m&&m.get("formatter")):null,f)}return d}function x$(t,e,n,r){n=n||C_;for(var a=t instanceof ko,l=!1,u=0;u<u_.length;u++){var f=e[u_[u]];if(f&&f.getShallow("show")){l=!0;break}}var d=a?t:t.getTextContent();if(l){a||(d||(d=new ko,t.setTextContent(d)),t.stateProxy&&(d.stateProxy=t.stateProxy));var h=FT(n,e),p=e.normal,m=!!p.getShallow("show"),S=gc(p,r&&r.normal,n,!1,!a);S.text=h.normal,a||t.setTextConfig(Dk(p,n,!1));for(var u=0;u<Ml.length;u++){var _=Ml[u],f=e[_];if(f){var x=d.ensureState(_),E=!!kt(f.getShallow("show"),m);if(E!==m&&(x.ignore=!E),x.style=gc(f,r&&r[_],n,!0,!a),x.style.text=h[_],!a){var b=t.ensureState(_);b.textConfig=Dk(f,n,!0)}}}d.silent=!!p.getShallow("silent"),d.style.x!=null&&(S.x=d.style.x),d.style.y!=null&&(S.y=d.style.y),d.ignore=!m,d.useStyle(S),d.dirty(),n.enableTextSetter&&(hg(d).setLabelText=function(D){var A=FT(n,e,D);Ek(d,A)})}else d&&(d.ignore=!0);t.dirty()}function T$(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<Ml.length;r++){var a=Ml[r];n[a]=t.getModel([a,e])}return n}function gc(t,e,n,r,a){var l={};return b$(l,t,n,r,a),e&&Re(l,e),l}function Dk(t,e,n){e=e||{};var r={},a,l=t.getShallow("rotate"),u=kt(t.getShallow("distance"),n?null:5),f=t.getShallow("offset");return a=t.getShallow("position")||(n?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(r.position=a),f!=null&&(r.offset=f),l!=null&&(l*=Math.PI/180,r.rotation=l),u!=null&&(r.distance=u),r.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",r}function b$(t,e,n,r,a){n=n||C_;var l=e.ecModel,u=l&&l.option.textStyle,f=E$(e),d;if(f){d={};for(var h in f)if(f.hasOwnProperty(h)){var p=e.getModel(["rich",h]);Lk(d[h]={},p,u,n,r,a,!1,!0)}}d&&(t.rich=d);var m=e.get("overflow");m&&(t.overflow=m);var S=e.get("minMargin");S!=null&&(t.margin=S),Lk(t,e,u,n,r,a,!0,!1)}function E$(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||C_).rich;if(n){e=e||{};for(var r=kn(n),a=0;a<r.length;a++){var l=r[a];e[l]=1}}t=t.parentModel}return e}var Mk=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Rk=["align","lineHeight","width","height","tag","verticalAlign"],Ak=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Lk(t,e,n,r,a,l,u,f){n=!a&&n||C_;var d=r&&r.inheritColor,h=e.getShallow("color"),p=e.getShallow("textBorderColor"),m=kt(e.getShallow("opacity"),n.opacity);(h==="inherit"||h==="auto")&&(process.env.NODE_ENV!=="production"&&h==="auto"&&Br("color: 'auto'","color: 'inherit'"),d?h=d:h=null),(p==="inherit"||p==="auto")&&(process.env.NODE_ENV!=="production"&&p==="auto"&&Br("color: 'auto'","color: 'inherit'"),d?p=d:p=null),l||(h=h||n.color,p=p||n.textBorderColor),h!=null&&(t.fill=h),p!=null&&(t.stroke=p);var S=kt(e.getShallow("textBorderWidth"),n.textBorderWidth);S!=null&&(t.lineWidth=S);var _=kt(e.getShallow("textBorderType"),n.textBorderType);_!=null&&(t.lineDash=_);var x=kt(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);x!=null&&(t.lineDashOffset=x),!a&&m==null&&!f&&(m=r&&r.defaultOpacity),m!=null&&(t.opacity=m),!a&&!l&&t.fill==null&&r.inheritColor&&(t.fill=r.inheritColor);for(var E=0;E<Mk.length;E++){var b=Mk[E],D=kt(e.getShallow(b),n[b]);D!=null&&(t[b]=D)}for(var E=0;E<Rk.length;E++){var b=Rk[E],D=e.getShallow(b);D!=null&&(t[b]=D)}if(t.verticalAlign==null){var A=e.getShallow("baseline");A!=null&&(t.verticalAlign=A)}if(!u||!r.disableBox){for(var E=0;E<Ak.length;E++){var b=Ak[E],D=e.getShallow(b);D!=null&&(t[b]=D)}var O=e.getShallow("borderType");O!=null&&(t.borderDash=O),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&d&&(process.env.NODE_ENV!=="production"&&t.backgroundColor==="auto"&&Br("backgroundColor: 'auto'","backgroundColor: 'inherit'"),t.backgroundColor=d),(t.borderColor==="auto"||t.borderColor==="inherit")&&d&&(process.env.NODE_ENV!=="production"&&t.borderColor==="auto"&&Br("borderColor: 'auto'","borderColor: 'inherit'"),t.borderColor=d)}}function D$(t,e){var n=e&&e.getModel("textStyle");return yl([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 hg=jn();function M$(t,e,n,r){if(t){var a=hg(t);a.prevValue=a.value,a.value=n;var l=e.normal;a.valueAnimation=l.get("valueAnimation"),a.valueAnimation&&(a.precision=l.get("precision"),a.defaultInterpolatedText=r,a.statesModels=e)}}function R$(t,e,n,r,a){var l=hg(t);if(!l.valueAnimation||l.prevValue===l.value)return;var u=l.defaultInterpolatedText,f=kt(l.interpolatedValue,l.prevValue),d=l.value;function h(p){var m=e8(n,l.precision,f,d,p);l.interpolatedValue=p===1?null:m;var S=FT({labelDataIndex:e,labelFetcher:a,defaultText:u?u(m):m+""},l.statesModels,m);Ek(t,S)}t.percent=0,(l.prevValue==null?Io:Po)(t,{percent:1},r,e,null,h)}var A$=["textStyle","color"],BT=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],UT=new ko,L$=function(){function t(){}return t.prototype.getTextColor=function(e){var n=this.ecModel;return this.getShallow("color")||(!e&&n?n.get(A$):null)},t.prototype.getFont=function(){return D$({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var n={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<BT.length;r++)n[BT[r]]=this.getShallow(BT[r]);return UT.useStyle(n),UT.update(),UT.getBoundingRect()},t}();const O$=L$;var Ok=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],k$=ag(Ok),N$=function(){function t(){}return t.prototype.getLineStyle=function(e){return k$(this,e)},t}(),kk=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],P$=ag(kk),I$=function(){function t(){}return t.prototype.getItemStyle=function(e,n){return P$(this,e,n)},t}(),mc=function(){function t(e,n,r){this.parentModel=n,this.ecModel=r,this.option=e}return t.prototype.init=function(e,n,r){},t.prototype.mergeOption=function(e,n){cn(this.option,e,!0)},t.prototype.get=function(e,n){return e==null?this.option:this._doGet(this.parsePath(e),!n&&this.parentModel)},t.prototype.getShallow=function(e,n){var r=this.option,a=r==null?r:r[e];if(a==null&&!n){var l=this.parentModel;l&&(a=l.getShallow(e))}return a},t.prototype.getModel=function(e,n){var r=e!=null,a=r?this.parsePath(e):null,l=r?this._doGet(a):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new t(l,n,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(Qt(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!Tt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,n){var r=this.option;if(!e)return r;for(var a=0;a<e.length&&!(e[a]&&(r=r&&typeof r=="object"?r[e[a]]:null,r==null));a++);return r==null&&n&&(r=n._doGet(this.resolveParentPath(e),n.parentModel)),r},t}();qx(mc),o8(mc),ml(mc,N$),ml(mc,I$),ml(mc,c8),ml(mc,O$);const Oi=mc;var z$=Math.round(Math.random()*10);function w_(t){return[t||"",z$++].join("_")}function F$(t){var e={};t.registerSubTypeDefaulter=function(n,r){var a=Tl(n);e[a.main]=r},t.determineSubType=function(n,r){var a=r.type;if(!a){var l=Tl(n).main;t.hasSubTypes(n)&&e[l]&&(a=e[l](r))}return a}}function B$(t,e){t.topologicalTravel=function(l,u,f,d){if(!l.length)return;var h=n(u),p=h.graph,m=h.noEntryList,S={};for(W(l,function(A){S[A]=!0});m.length;){var _=m.pop(),x=p[_],E=!!S[_];E&&(f.call(d,_,x.originalDeps.slice()),delete S[_]),W(x.successor,E?D:b)}W(S,function(){var A="";throw process.env.NODE_ENV!=="production"&&(A=na("Circular dependency may exists: ",S,l,u)),new Error(A)});function b(A){p[A].entryCount--,p[A].entryCount===0&&m.push(A)}function D(A){S[A]=!0,b(A)}};function n(l){var u={},f=[];return W(l,function(d){var h=r(u,d),p=h.originalDeps=e(d),m=a(p,l);h.entryCount=m.length,h.entryCount===0&&f.push(d),W(m,function(S){dn(h.predecessor,S)<0&&h.predecessor.push(S);var _=r(u,S);dn(_.successor,S)<0&&_.successor.push(d)})}),{graph:u,noEntryList:f}}function r(l,u){return l[u]||(l[u]={predecessor:[],successor:[]}),l[u]}function a(l,u){var f=[];return W(l,function(d){dn(u,d)>=0&&f.push(d)}),f}}function U$(t,e){return cn(cn({},t,!0),e,!0)}const V$={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},H$={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var x_="ZH",VT="EN",pg=VT,T_={},HT={},Nk=Tt.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(x_)>-1?x_:pg}():pg;function Pk(t,e){t=t.toUpperCase(),HT[t]=new Oi(e),T_[t]=e}function G$(t){if(et(t)){var e=T_[t.toUpperCase()]||{};return t===x_||t===VT?Qt(e):cn(Qt(e),Qt(T_[pg]),!1)}else return cn(Qt(t),Qt(T_[pg]),!1)}function $$(t){return HT[t]}function j$(){return HT[pg]}Pk(VT,V$),Pk(x_,H$);var GT=1e3,$T=GT*60,gg=$T*60,oo=gg*24,Ik=oo*365,mg={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},b_="{yyyy}-{MM}-{dd}",zk={year:"{yyyy}",month:"{yyyy}-{MM}",day:b_,hour:b_+" "+mg.hour,minute:b_+" "+mg.minute,second:b_+" "+mg.second,millisecond:mg.none},jT=["year","month","day","hour","minute","second","millisecond"],Fk=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function yc(t,e){return t+="","0000".substr(0,e-t.length)+t}function Sv(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 Y$(t){return t===Sv(t)}function W$(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function E_(t,e,n,r){var a=wu(t),l=a[YT(n)](),u=a[Cv(n)]()+1,f=Math.floor((u-1)/3)+1,d=a[D_(n)](),h=a["get"+(n?"UTC":"")+"Day"](),p=a[yg(n)](),m=(p-1)%12+1,S=a[M_(n)](),_=a[R_(n)](),x=a[A_(n)](),E=r instanceof Oi?r:$$(r||Nk)||j$(),b=E.getModel("time"),D=b.get("month"),A=b.get("monthAbbr"),O=b.get("dayOfWeek"),P=b.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,l+"").replace(/{yy}/g,l%100+"").replace(/{Q}/g,f+"").replace(/{MMMM}/g,D[u-1]).replace(/{MMM}/g,A[u-1]).replace(/{MM}/g,yc(u,2)).replace(/{M}/g,u+"").replace(/{dd}/g,yc(d,2)).replace(/{d}/g,d+"").replace(/{eeee}/g,O[h]).replace(/{ee}/g,P[h]).replace(/{e}/g,h+"").replace(/{HH}/g,yc(p,2)).replace(/{H}/g,p+"").replace(/{hh}/g,yc(m+"",2)).replace(/{h}/g,m+"").replace(/{mm}/g,yc(S,2)).replace(/{m}/g,S+"").replace(/{ss}/g,yc(_,2)).replace(/{s}/g,_+"").replace(/{SSS}/g,yc(x,3)).replace(/{S}/g,x+"")}function X$(t,e,n,r,a){var l=null;if(et(n))l=n;else if(_t(n))l=n(t.value,e,{level:t.level});else{var u=Re({},mg);if(t.level>0)for(var f=0;f<jT.length;++f)u[jT[f]]="{primary|"+u[jT[f]]+"}";var d=n?n.inherit===!1?n:Vt(n,u):u,h=Bk(t.value,a);if(d[h])l=d[h];else if(d.inherit){for(var p=Fk.indexOf(h),f=p-1;f>=0;--f)if(d[h]){l=d[h];break}l=l||u.none}if(Be(l)){var m=t.level==null?0:t.level>=0?t.level:l.length+t.level;m=Math.min(m,l.length-1),l=l[m]}}return E_(new Date(t.value),l,a,r)}function Bk(t,e){var n=wu(t),r=n[Cv(e)]()+1,a=n[D_(e)](),l=n[yg(e)](),u=n[M_(e)](),f=n[R_(e)](),d=n[A_(e)](),h=d===0,p=h&&f===0,m=p&&u===0,S=m&&l===0,_=S&&a===1,x=_&&r===1;return x?"year":_?"month":S?"day":m?"hour":p?"minute":h?"second":"millisecond"}function Uk(t,e,n){var r=Nn(t)?wu(t):t;switch(e=e||Bk(t,n),e){case"year":return r[YT(n)]();case"half-year":return r[Cv(n)]()>=6?1:0;case"quarter":return Math.floor((r[Cv(n)]()+1)/4);case"month":return r[Cv(n)]();case"day":return r[D_(n)]();case"half-day":return r[yg(n)]()/24;case"hour":return r[yg(n)]();case"minute":return r[M_(n)]();case"second":return r[R_(n)]();case"millisecond":return r[A_(n)]()}}function YT(t){return t?"getUTCFullYear":"getFullYear"}function Cv(t){return t?"getUTCMonth":"getMonth"}function D_(t){return t?"getUTCDate":"getDate"}function yg(t){return t?"getUTCHours":"getHours"}function M_(t){return t?"getUTCMinutes":"getMinutes"}function R_(t){return t?"getUTCSeconds":"getSeconds"}function A_(t){return t?"getUTCMilliseconds":"getMilliseconds"}function q$(t){return t?"setUTCFullYear":"setFullYear"}function Vk(t){return t?"setUTCMonth":"setMonth"}function Hk(t){return t?"setUTCDate":"setDate"}function Gk(t){return t?"setUTCHours":"setHours"}function $k(t){return t?"setUTCMinutes":"setMinutes"}function jk(t){return t?"setUTCSeconds":"setSeconds"}function Yk(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Wk(t){if(!LO(t))return et(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Xk(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var WT=wL;function XT(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(p){return p&&yl(p)?p:"-"}function l(p){return!!(p!=null&&!isNaN(p)&&isFinite(p))}var u=e==="time",f=t instanceof Date;if(u||f){var d=u?wu(t):t;if(isNaN(+d)){if(f)return"-"}else return E_(d,r,n)}if(e==="ordinal")return M0(t)?a(t):Nn(t)&&l(t)?t+"":"-";var h=Ds(t);return l(h)?Wk(h):M0(t)?a(t):typeof t=="boolean"?t+"":"-"}var qk=["a","b","c","d","e","f","g"],qT=function(t,e){return"{"+t+(e??"")+"}"};function Qk(t,e,n){Be(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],l=0;l<a.length;l++){var u=qk[l];t=t.replace(qT(u),qT(u,0))}for(var f=0;f<r;f++)for(var d=0;d<a.length;d++){var h=e[f][a[d]];t=t.replace(qT(qk[d],f),n?to(h):h)}return t}function Q$(t,e){var n=et(t)?{color:t,extraCssText:e}:t||{},r=n.color,a=n.type;e=n.extraCssText;var l=n.renderMode||"html";if(!r)return"";if(l==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+to(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+to(r)+";"+(e||"")+'"></span>';var u=n.markerId||"markerX";return{renderMode:l,content:"{"+u+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function _g(t,e){return e=e||"transparent",et(t)?t:it(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Zk(t,e){if(e==="_blank"||e==="blank"){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var L_=W,Z$=["left","right","top","bottom","width","height"],O_=[["width","left","right"],["height","top","bottom"]];function Kk(t,e,n,r,a){var l=0,u=0;r==null&&(r=1/0),a==null&&(a=1/0);var f=0;e.eachChild(function(d,h){var p=d.getBoundingRect(),m=e.childAt(h+1),S=m&&m.getBoundingRect(),_,x;if(t==="horizontal"){var E=p.width+(S?-S.x+p.x:0);_=l+E,_>r||d.newline?(l=0,_=E,u+=f+n,f=p.height):f=Math.max(f,p.height)}else{var b=p.height+(S?-S.y+p.y:0);x=u+b,x>a||d.newline?(l+=f+n,u=0,x=b,f=p.width):f=Math.max(f,p.width)}d.newline||(d.x=l,d.y=u,d.markRedraw(),t==="horizontal"?l=_+n:u=x+n)})}Aa(Kk,"vertical"),Aa(Kk,"horizontal");function QT(t,e,n){n=WT(n||0);var r=e.width,a=e.height,l=Zr(t.left,r),u=Zr(t.top,a),f=Zr(t.right,r),d=Zr(t.bottom,a),h=Zr(t.width,r),p=Zr(t.height,a),m=n[2]+n[0],S=n[1]+n[3],_=t.aspect;switch(isNaN(h)&&(h=r-f-S-l),isNaN(p)&&(p=a-d-m-u),_!=null&&(isNaN(h)&&isNaN(p)&&(_>r/a?h=r*.8:p=a*.8),isNaN(h)&&(h=_*p),isNaN(p)&&(p=h/_)),isNaN(l)&&(l=r-f-h-S),isNaN(u)&&(u=a-d-p-m),t.left||t.right){case"center":l=r/2-h/2-n[3];break;case"right":l=r-h-S;break}switch(t.top||t.bottom){case"middle":case"center":u=a/2-p/2-n[0];break;case"bottom":u=a-p-m;break}l=l||0,u=u||0,isNaN(h)&&(h=r-S-l-(f||0)),isNaN(p)&&(p=a-m-u-(d||0));var x=new Wt(l+n[3],u+n[0],h,p);return x.margin=n,x}function Sg(t){var e=t.layoutMode||t.constructor.layoutMode;return it(e)?e:e?{type:e}:null}function Cg(t,e,n){var r=n&&n.ignoreSize;!Be(r)&&(r=[r,r]);var a=u(O_[0],0),l=u(O_[1],1);h(O_[0],t,a),h(O_[1],t,l);function u(p,m){var S={},_=0,x={},E=0,b=2;if(L_(p,function(O){x[O]=t[O]}),L_(p,function(O){f(e,O)&&(S[O]=x[O]=e[O]),d(S,O)&&_++,d(x,O)&&E++}),r[m])return d(e,p[1])?x[p[2]]=null:d(e,p[2])&&(x[p[1]]=null),x;if(E===b||!_)return x;if(_>=b)return S;for(var D=0;D<p.length;D++){var A=p[D];if(!f(S,A)&&f(t,A)){S[A]=t[A];break}}return S}function f(p,m){return p.hasOwnProperty(m)}function d(p,m){return p[m]!=null&&p[m]!=="auto"}function h(p,m,S){L_(p,function(_){m[_]=S[_]})}}function ZT(t){return K$({},t)}function K$(t,e){return e&&t&&L_(Z$,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var J$=jn(),wv=function(t){Pt(e,t);function e(n,r,a){var l=t.call(this,n,r,a)||this;return l.uid=w_("ec_cpt_model"),l}return e.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},e.prototype.mergeDefaultAndTheme=function(n,r){var a=Sg(this),l=a?ZT(n):{},u=r.getTheme();cn(n,u.get(this.mainType)),cn(n,this.getDefaultOption()),a&&Cg(n,l,a)},e.prototype.mergeOption=function(n,r){cn(this.option,n,!0);var a=Sg(this);a&&Cg(this.option,n,a)},e.prototype.optionUpdated=function(n,r){},e.prototype.getDefaultOption=function(){var n=this.constructor;if(!r8(n))return n.defaultOption;var r=J$(this);if(!r.defaultOption){for(var a=[],l=n;l;){var u=l.prototype.defaultOption;u&&a.push(u),l=l.superClass}for(var f={},d=a.length-1;d>=0;d--)f=cn(f,a[d],!0);r.defaultOption=f}return r.defaultOption},e.prototype.getReferringComponents=function(n,r){var a=n+"Index",l=n+"Id";return ig(this.ecModel,n,{index:this.get(a,!0),id:this.get(l,!0)},r)},e.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(n){this.option.zlevel=n},e.protoInitialize=function(){var n=e.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),e}(Oi);YO(wv,Oi),n_(wv),F$(wv),B$(wv,e9);function e9(t){var e=[];return W(wv.getClassesByMainType(t),function(n){e=e.concat(n.dependencies||n.prototype.dependencies||[])}),e=ot(e,function(n){return Tl(n).main}),t!=="dataset"&&dn(e,"dataset")<=0&&e.unshift("dataset"),e}const En=wv;var Jk="";typeof navigator<"u"&&(Jk=navigator.platform||"");var xv="rgba(0, 0, 0, 0.2)";const t9={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:xv,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:xv,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:xv,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:xv,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:xv,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:xv,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Jk.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 KT=xt(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),lo="original",ki="arrayRows",Fo="objectRows",bu="keyedColumns",Eu="typedArray",eN="unknown",Al="column",Tv="row",ka={Must:1,Might:2,Not:3},tN=jn();function n9(t){tN(t).datasetMap=xt()}function r9(t,e,n){var r={},a=nN(e);if(!a||!t)return r;var l=[],u=[],f=e.ecModel,d=tN(f).datasetMap,h=a.uid+"_"+n.seriesLayoutBy,p,m;t=t.slice(),W(t,function(E,b){var D=it(E)?E:t[b]={name:E};D.type==="ordinal"&&p==null&&(p=b,m=x(D)),r[D.name]=[]});var S=d.get(h)||d.set(h,{categoryWayDim:m,valueWayDim:0});W(t,function(E,b){var D=E.name,A=x(E);if(p==null){var O=S.valueWayDim;_(r[D],O,A),_(u,O,A),S.valueWayDim+=A}else if(p===b)_(r[D],0,A),_(l,0,A);else{var O=S.categoryWayDim;_(r[D],O,A),_(u,O,A),S.categoryWayDim+=A}});function _(E,b,D){for(var A=0;A<D;A++)E.push(b+A)}function x(E){var b=E.dimsDef;return b?b.length:1}return l.length&&(r.itemName=l),u.length&&(r.seriesName=u),r}function nN(t){var e=t.get("data",!0);if(!e)return ig(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Oo).models[0]}function i9(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:ig(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Oo).models}function rN(t,e){return a9(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function a9(t,e,n,r,a,l){var u,f=5;if(ea(t))return ka.Not;var d,h;if(r){var p=r[l];it(p)?(d=p.name,h=p.type):et(p)&&(d=p)}if(h!=null)return h==="ordinal"?ka.Must:ka.Not;if(e===ki){var m=t;if(n===Tv){for(var S=m[l],_=0;_<(S||[]).length&&_<f;_++)if((u=P(S[a+_]))!=null)return u}else for(var _=0;_<m.length&&_<f;_++){var x=m[a+_];if(x&&(u=P(x[l]))!=null)return u}}else if(e===Fo){var E=t;if(!d)return ka.Not;for(var _=0;_<E.length&&_<f;_++){var b=E[_];if(b&&(u=P(b[d]))!=null)return u}}else if(e===bu){var D=t;if(!d)return ka.Not;var S=D[d];if(!S||ea(S))return ka.Not;for(var _=0;_<S.length&&_<f;_++)if((u=P(S[_]))!=null)return u}else if(e===lo)for(var A=t,_=0;_<A.length&&_<f;_++){var b=A[_],O=tg(b);if(!Be(O))return ka.Not;if((u=P(O[l]))!=null)return u}function P(I){var F=et(I);if(I!=null&&isFinite(I)&&I!=="")return F?ka.Might:ka.Not;if(F&&I!=="-")return ka.Must}return ka.Not}var o9=xt();function l9(t,e,n){var r=o9.get(e);if(!r)return n;var a=r(t);if(!a)return n;if(process.env.NODE_ENV!=="production")for(var l=0;l<a.length;l++)bt(fv(a[l]));return n.concat(a)}var iN=jn();jn();var JT=function(){function t(){}return t.prototype.getColorFromPalette=function(e,n,r){var a=rr(this.get("color",!0)),l=this.get("colorLayer",!0);return s9(this,iN,a,l,e,n,r)},t.prototype.clearColorPalette=function(){f9(this,iN)},t}();function u9(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}function s9(t,e,n,r,a,l,u){l=l||t;var f=e(l),d=f.paletteIdx||0,h=f.paletteNameMap=f.paletteNameMap||{};if(h.hasOwnProperty(a))return h[a];var p=u==null||!r?n:u9(r,u);if(p=p||n,!(!p||!p.length)){var m=p[d];return a&&(h[a]=m),f.paletteIdx=(d+1)%p.length,m}}function f9(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var k_,wg,aN,eb="\0_ec_inner",oN=1,c9={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},d9={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},N_={};function v9(t){W(t,function(e,n){if(!En.hasClass(n)){var r=c9[n];r&&!N_[r]&&(ci("Component "+n+` is used but not imported.
199
199
  import { `+r+` } from 'echarts/components';
200
- echarts.use([`+r+"]);"),A_[r]=!0)}})}var jk=function(t){Pt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(n,r,a,l,u,f){l=l||{},this.option=null,this._theme=new Oi(l),this._locale=new Oi(u),this._optionManager=f},e.prototype.setOption=function(n,r,a){process.env.NODE_ENV!=="production"&&(bt(n!=null,"option is null/undefined"),bt(n[WT]!==$k,"please use chart.getOption()"));var l=Xk(r);this._optionManager.setOption(n,a,l),this._resetOption(null,l)},e.prototype.resetOption=function(n,r){return this._resetOption(n,Xk(r))},e.prototype._resetOption=function(n,r){var a=!1,l=this._optionManager;if(!n||n==="recreate"){var u=l.mountOption(n==="recreate");process.env.NODE_ENV!=="production"&&p$(u),!this.option||n==="recreate"?Gk(this,u):(this.restoreData(),this._mergeOption(u,r)),a=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var f=l.getTimelineOption(this);f&&(a=!0,this._mergeOption(f,r))}if(!n||n==="recreate"||n==="media"){var d=l.getMediaOption(this);d.length&&W(d,function(h){a=!0,this._mergeOption(h,r)},this)}return a},e.prototype.mergeOption=function(n){this._mergeOption(n,null)},e.prototype._mergeOption=function(n,r){var a=this.option,l=this._componentsMap,u=this._componentsCount,f=[],d=xt(),h=r&&r.replaceMergeMainTypeMap;i$(this),W(n,function(m,S){m!=null&&(En.hasClass(S)?S&&(f.push(S),d.set(S,!0)):a[S]=a[S]==null?Qt(m):cn(a[S],m,!0))}),h&&h.each(function(m,S){En.hasClass(S)&&!d.get(S)&&(f.push(S),d.set(S,!0))}),En.topologicalTravel(f,En.getAllClassMainTypes(),p,this);function p(m){var S=s$(this,m,rr(n[m])),_=l.get(m),x=_?h&&h.get(m)?"replaceMerge":"normalMerge":"replaceAll",E=$4(_,S,x);Z4(E,m,En),a[m]=null,l.set(m,null),u.set(m,0);var b=[],D=[],A=0,O,P;W(E,function(I,F){var U=I.existing,H=I.newOption;if(!H)U&&(U.mergeOption({},this),U.optionUpdated({},!1));else{var j=m==="series",X=En.getClass(m,I.keyInfo.subType,!j);if(!X){if(process.env.NODE_ENV!=="production"){var G=I.keyInfo.subType,ee=h$[G];A_[G]||(A_[G]=!0,ci(ee?"Series "+G+` is used but not imported.
200
+ echarts.use([`+r+"]);"),N_[r]=!0)}})}var lN=function(t){Pt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(n,r,a,l,u,f){l=l||{},this.option=null,this._theme=new Oi(l),this._locale=new Oi(u),this._optionManager=f},e.prototype.setOption=function(n,r,a){process.env.NODE_ENV!=="production"&&(bt(n!=null,"option is null/undefined"),bt(n[eb]!==oN,"please use chart.getOption()"));var l=fN(r);this._optionManager.setOption(n,a,l),this._resetOption(null,l)},e.prototype.resetOption=function(n,r){return this._resetOption(n,fN(r))},e.prototype._resetOption=function(n,r){var a=!1,l=this._optionManager;if(!n||n==="recreate"){var u=l.mountOption(n==="recreate");process.env.NODE_ENV!=="production"&&v9(u),!this.option||n==="recreate"?aN(this,u):(this.restoreData(),this._mergeOption(u,r)),a=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var f=l.getTimelineOption(this);f&&(a=!0,this._mergeOption(f,r))}if(!n||n==="recreate"||n==="media"){var d=l.getMediaOption(this);d.length&&W(d,function(h){a=!0,this._mergeOption(h,r)},this)}return a},e.prototype.mergeOption=function(n){this._mergeOption(n,null)},e.prototype._mergeOption=function(n,r){var a=this.option,l=this._componentsMap,u=this._componentsCount,f=[],d=xt(),h=r&&r.replaceMergeMainTypeMap;n9(this),W(n,function(m,S){m!=null&&(En.hasClass(S)?S&&(f.push(S),d.set(S,!0)):a[S]=a[S]==null?Qt(m):cn(a[S],m,!0))}),h&&h.each(function(m,S){En.hasClass(S)&&!d.get(S)&&(f.push(S),d.set(S,!0))}),En.topologicalTravel(f,En.getAllClassMainTypes(),p,this);function p(m){var S=l9(this,m,rr(n[m])),_=l.get(m),x=_?h&&h.get(m)?"replaceMerge":"normalMerge":"replaceAll",E=H6(_,S,x);q6(E,m,En),a[m]=null,l.set(m,null),u.set(m,0);var b=[],D=[],A=0,O,P;W(E,function(I,F){var U=I.existing,H=I.newOption;if(!H)U&&(U.mergeOption({},this),U.optionUpdated({},!1));else{var j=m==="series",X=En.getClass(m,I.keyInfo.subType,!j);if(!X){if(process.env.NODE_ENV!=="production"){var G=I.keyInfo.subType,ee=d9[G];N_[G]||(N_[G]=!0,ci(ee?"Series "+G+` is used but not imported.
201
201
  import { `+ee+` } from 'echarts/charts';
202
- echarts.use([`+ee+"]);":"Unknown series "+G))}return}if(m==="tooltip"){if(O){process.env.NODE_ENV!=="production"&&(P||(Fr("Currently only one tooltip component is allowed."),P=!0));return}O=!0}if(U&&U.constructor===X)U.name=I.keyInfo.name,U.mergeOption(H,this),U.optionUpdated(H,!1);else{var J=Re({componentIndex:F},I.keyInfo);U=new X(H,this,this,J),Re(U,J),I.brandNew&&(U.__requireNewView=!0),U.init(H,this,this),U.optionUpdated(null,!0)}}U?(b.push(U.option),D.push(U),A++):(b.push(void 0),D.push(void 0))},this),a[m]=b,l.set(m,D),u.set(m,A),m==="series"&&R_(this)}this._seriesIndices||R_(this)},e.prototype.getOption=function(){var n=Qt(this.option);return W(n,function(r,a){if(En.hasClass(a)){for(var l=rr(r),u=l.length,f=!1,d=u-1;d>=0;d--)l[d]&&!uv(l[d])?f=!0:(l[d]=null,!f&&u--);l.length=u,n[a]=l}}),delete n[WT],n},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(n){this._payload=n},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(n,r){var a=this._componentsMap.get(n);if(a){var l=a[r||0];if(l)return l;if(r==null){for(var u=0;u<a.length;u++)if(a[u])return a[u]}}},e.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var a=n.index,l=n.id,u=n.name,f=this._componentsMap.get(r);if(!f||!f.length)return[];var d;return a!=null?(d=[],W(rr(a),function(h){f[h]&&d.push(f[h])})):l!=null?d=Yk("id",l,f):u!=null?d=Yk("name",u,f):d=br(f,function(h){return!!h}),Wk(d,n)},e.prototype.findComponents=function(n){var r=n.query,a=n.mainType,l=f(r),u=l?this.queryComponents(l):br(this._componentsMap.get(a),function(h){return!!h});return d(Wk(u,n));function f(h){var p=a+"Index",m=a+"Id",S=a+"Name";return h&&(h[p]!=null||h[m]!=null||h[S]!=null)?{mainType:a,index:h[p],id:h[m],name:h[S]}:null}function d(h){return n.filter?br(h,n.filter):h}},e.prototype.eachComponent=function(n,r,a){var l=this._componentsMap;if(_t(n)){var u=r,f=n;l.each(function(m,S){for(var _=0;m&&_<m.length;_++){var x=m[_];x&&f.call(u,S,x,x.componentIndex)}})}else for(var d=et(n)?l.get(n):it(n)?this.findComponents(n):null,h=0;d&&h<d.length;h++){var p=d[h];p&&r.call(a,p,p.componentIndex)}},e.prototype.getSeriesByName=function(n){var r=xl(n,null);return br(this._componentsMap.get("series"),function(a){return!!a&&r!=null&&a.name===r})},e.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},e.prototype.getSeriesByType=function(n){return br(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},e.prototype.getSeries=function(){return br(this._componentsMap.get("series"),function(n){return!!n})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(n,r){wg(this),W(this._seriesIndices,function(a){var l=this._componentsMap.get("series")[a];n.call(r,l,a)},this)},e.prototype.eachRawSeries=function(n,r){W(this._componentsMap.get("series"),function(a){a&&n.call(r,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(n,r,a){wg(this),W(this._seriesIndices,function(l){var u=this._componentsMap.get("series")[l];u.subType===n&&r.call(a,u,l)},this)},e.prototype.eachRawSeriesByType=function(n,r,a){return W(this.getSeriesByType(n),r,a)},e.prototype.isSeriesFiltered=function(n){return wg(this),this._seriesIndicesMap.get(n.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(n,r){wg(this);var a=[];W(this._seriesIndices,function(l){var u=this._componentsMap.get("series")[l];n.call(r,u,l)&&a.push(l)},this),this._seriesIndices=a,this._seriesIndicesMap=xt(a)},e.prototype.restoreData=function(n){R_(this);var r=this._componentsMap,a=[];r.each(function(l,u){En.hasClass(u)&&a.push(u)}),En.topologicalTravel(a,En.getAllClassMainTypes(),function(l){W(r.get(l),function(u){u&&(l!=="series"||!g$(u,n))&&u.restoreData()})})},e.internalField=function(){R_=function(n){var r=n._seriesIndices=[];W(n._componentsMap.get("series"),function(a){a&&r.push(a.componentIndex)}),n._seriesIndicesMap=xt(r)},wg=function(n){if(process.env.NODE_ENV!=="production"&&!n._seriesIndices)throw new Error("Option should contains series.")},Gk=function(n,r){n.option={},n.option[WT]=$k,n._componentsMap=xt({series:[]}),n._componentsCount=xt();var a=r.aria;it(a)&&a.enabled==null&&(a.enabled=!0),m$(r,n._theme.option),cn(r,r$,!1),n._mergeOption(r,null)}}(),e}(Oi);function g$(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,a=e.seriesName;return n!=null&&t.componentIndex!==n||r!=null&&t.id!==r||a!=null&&t.name!==a}}function m$(t,e){var n=t.color&&!t.colorLayer;W(e,function(r,a){a==="colorLayer"&&n||En.hasClass(a)||(typeof r=="object"?t[a]=t[a]?cn(t[a],r,!1):Qt(r):t[a]==null&&(t[a]=r))})}function Yk(t,e,n){if(Be(e)){var r=xt();return W(e,function(l){if(l!=null){var u=xl(l,null);u!=null&&r.set(l,!0)}}),br(n,function(l){return l&&r.get(l[t])})}else{var a=xl(e,null);return br(n,function(l){return l&&a!=null&&l[t]===a})}}function Wk(t,e){return e.hasOwnProperty("subType")?br(t,function(n){return n&&n.subType===e.subType}):t}function Xk(t){var e=xt();return t&&W(rr(t.replaceMerge),function(n){process.env.NODE_ENV!=="production"&&bt(En.hasClass(n),'"'+n+'" is not valid component main type in "replaceMerge"'),e.set(n,!0)}),{replaceMergeMainTypeMap:e}}ml(jk,YT);const qk=jk;var y$=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],_$=function(){function t(e){W(y$,function(n){this[n]=Qn(e[n],e)},this)}return t}();const Qk=_$;var XT={},S$=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,n){var r=[];W(XT,function(a,l){var u=a.create(e,n);r=r.concat(u||[])}),this._coordinateSystems=r},t.prototype.update=function(e,n){W(this._coordinateSystems,function(r){r.update&&r.update(e,n)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(e,n){XT[e]=n},t.get=function(e){return XT[e]},t}();const qT=S$;var C$=/^(min|max)?(.+)$/,w$=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,n,r){e&&(W(rr(e.series),function(u){u&&u.data&&ea(u.data)&&E0(u.data)}),W(rr(e.dataset),function(u){u&&u.source&&ea(u.source)&&E0(u.source)})),e=Qt(e);var a=this._optionBackup,l=x$(e,n,!a);this._newBaseOption=l.baseOption,a?(l.timelineOptions.length&&(a.timelineOptions=l.timelineOptions),l.mediaList.length&&(a.mediaList=l.mediaList),l.mediaDefault&&(a.mediaDefault=l.mediaDefault)):this._optionBackup=l},t.prototype.mountOption=function(e){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],Qt(e?n.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var n,r=this._timelineOptions;if(r.length){var a=e.getComponent("timeline");a&&(n=Qt(r[a.getCurrentIndex()]))}return n},t.prototype.getMediaOption=function(e){var n=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,l=this._mediaDefault,u=[],f=[];if(!a.length&&!l)return f;for(var d=0,h=a.length;d<h;d++)T$(a[d].query,n,r)&&u.push(d);return!u.length&&l&&(u=[-1]),u.length&&!E$(u,this._currentMediaIndices)&&(f=ot(u,function(p){return Qt(p===-1?l.option:a[p].option)})),this._currentMediaIndices=u,f},t}();function x$(t,e,n){var r=[],a,l,u=t.baseOption,f=t.timeline,d=t.options,h=t.media,p=!!t.media,m=!!(d||f||u&&u.timeline);u?(l=u,l.timeline||(l.timeline=f)):((m||p)&&(t.options=t.media=null),l=t),p&&(Be(h)?W(h,function(_){process.env.NODE_ENV!=="production"&&_&&!_.option&&it(_.query)&&it(_.query.option)&&ci("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),_&&_.option&&(_.query?r.push(_):a||(a=_))}):process.env.NODE_ENV!=="production"&&ci("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),S(l),W(d,function(_){return S(_)}),W(r,function(_){return S(_.option)});function S(_){W(e,function(x){x(_,n)})}return{baseOption:l,timelineOptions:d||[],mediaDefault:a,mediaList:r}}function T$(t,e,n){var r={width:e,height:n,aspectratio:e/n},a=!0;return W(t,function(l,u){var f=u.match(C$);if(!(!f||!f[1]||!f[2])){var d=f[1],h=f[2].toLowerCase();b$(r[h],l,d)||(a=!1)}}),a}function b$(t,e,n){return n==="min"?t>=e:n==="max"?t<=e:t===e}function E$(t,e){return t.join(",")===e.join(",")}const D$=w$;var uo=W,xg=it,Zk=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function QT(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=Zk.length;n<r;n++){var a=Zk[n],l=e.normal,u=e.emphasis;l&&l[a]&&(process.env.NODE_ENV!=="production"&&Br("itemStyle.normal."+a,a),t[a]=t[a]||{},t[a].normal?cn(t[a].normal,l[a]):t[a].normal=l[a],l[a]=null),u&&u[a]&&(process.env.NODE_ENV!=="production"&&Br("itemStyle.emphasis."+a,"emphasis."+a),t[a]=t[a]||{},t[a].emphasis?cn(t[a].emphasis,u[a]):t[a].emphasis=u[a],u[a]=null)}}function vi(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,a=t[e].emphasis;r&&(process.env.NODE_ENV!=="production"&&wl("'normal' hierarchy in "+e+" has been removed since 4.0. All style properties are configured in "+e+" directly now."),n?(t[e].normal=t[e].emphasis=null,Vt(t[e],r)):t[e]=r),a&&(process.env.NODE_ENV!=="production"&&wl(e+".emphasis has been changed to emphasis."+e+" since 4.0"),t.emphasis=t.emphasis||{},t.emphasis[e]=a,a.focus&&(t.emphasis.focus=a.focus),a.blurScope&&(t.emphasis.blurScope=a.blurScope))}}function Tg(t){vi(t,"itemStyle"),vi(t,"lineStyle"),vi(t,"areaStyle"),vi(t,"label"),vi(t,"labelLine"),vi(t,"upperLabel"),vi(t,"edgeLabel")}function ir(t,e){var n=xg(t)&&t[e],r=xg(n)&&n.textStyle;if(r){process.env.NODE_ENV!=="production"&&wl("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var a=0,l=xO.length;a<l;a++){var u=xO[a];r.hasOwnProperty(u)&&(n[u]=r[u])}}}function so(t){t&&(Tg(t),ir(t,"label"),t.emphasis&&ir(t.emphasis,"label"))}function M$(t){if(xg(t)){QT(t),Tg(t),ir(t,"label"),ir(t,"upperLabel"),ir(t,"edgeLabel"),t.emphasis&&(ir(t.emphasis,"label"),ir(t.emphasis,"upperLabel"),ir(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(QT(e),so(e));var n=t.markLine;n&&(QT(n),so(n));var r=t.markArea;r&&so(r);var a=t.data;if(t.type==="graph"){a=a||t.nodes;var l=t.links||t.edges;if(l&&!ea(l))for(var u=0;u<l.length;u++)so(l[u]);W(t.categories,function(h){Tg(h)})}if(a&&!ea(a))for(var u=0;u<a.length;u++)so(a[u]);if(e=t.markPoint,e&&e.data)for(var f=e.data,u=0;u<f.length;u++)so(f[u]);if(n=t.markLine,n&&n.data)for(var d=n.data,u=0;u<d.length;u++)Be(d[u])?(so(d[u][0]),so(d[u][1])):so(d[u]);t.type==="gauge"?(ir(t,"axisLabel"),ir(t,"title"),ir(t,"detail")):t.type==="treemap"?(vi(t.breadcrumb,"itemStyle"),W(t.levels,function(h){Tg(h)})):t.type==="tree"&&Tg(t.leaves)}}function Eu(t){return Be(t)?t:t?[t]:[]}function Kk(t){return(Be(t)?t[0]:t)||{}}function R$(t,e){uo(Eu(t.series),function(r){xg(r)&&M$(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),uo(n,function(r){uo(Eu(t[r]),function(a){a&&(ir(a,"axisLabel"),ir(a.axisPointer,"label"))})}),uo(Eu(t.parallel),function(r){var a=r&&r.parallelAxisDefault;ir(a,"axisLabel"),ir(a&&a.axisPointer,"label")}),uo(Eu(t.calendar),function(r){vi(r,"itemStyle"),ir(r,"dayLabel"),ir(r,"monthLabel"),ir(r,"yearLabel")}),uo(Eu(t.radar),function(r){ir(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name,process.env.NODE_ENV!=="production"&&wl("name property in radar component has been changed to axisName")),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap,process.env.NODE_ENV!=="production"&&wl("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&uo(r.indicator,function(a){a.text&&Br("text","name","radar.indicator")})}),uo(Eu(t.geo),function(r){xg(r)&&(so(r),uo(Eu(r.regions),function(a){so(a)}))}),uo(Eu(t.timeline),function(r){so(r),vi(r,"label"),vi(r,"itemStyle"),vi(r,"controlStyle",!0);var a=r.data;Be(a)&&W(a,function(l){it(l)&&(vi(l,"label"),vi(l,"itemStyle"))})}),uo(Eu(t.toolbox),function(r){vi(r,"iconStyle"),uo(r.feature,function(a){vi(a,"iconStyle")})}),ir(Kk(t.axisPointer),"label"),ir(Kk(t.tooltip).axisPointer,"label")}function A$(t,e){for(var n=e.split(","),r=t,a=0;a<n.length&&(r=r&&r[n[a]],r!=null);a++);return r}function L$(t,e,n,r){for(var a=e.split(","),l=t,u,f=0;f<a.length-1;f++)u=a[f],l[u]==null&&(l[u]={}),l=l[u];(r||l[a[f]]==null)&&(l[a[f]]=n)}function Jk(t){t&&W(O$,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var O$=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],k$=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],ZT=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function bg(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<ZT.length;n++){var r=ZT[n][1],a=ZT[n][0];e[r]!=null&&(e[a]=e[r],process.env.NODE_ENV!=="production"&&Br(r,a))}}function eN(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&Br("label.margin","label.edgeDistance","pie"),t.edgeDistance=t.margin)}function tN(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay,process.env.NODE_ENV!=="production"&&Br("downplay","blur","sunburst"))}function N$(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&Br("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),t.emphasis.focus="adjacency"))}function nN(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&nN(t[n].children,e)}function rN(t,e){R$(t,e),t.series=rr(t.series),W(t.series,function(n){if(it(n)){var r=n.type;if(r==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow,process.env.NODE_ENV!=="production"&&Br("clipOverflow","clip","line"));else if(r==="pie"||r==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise,process.env.NODE_ENV!=="production"&&Br("clockWise","clockwise")),eN(n.label);var a=n.data;if(a&&!ea(a))for(var l=0;l<a.length;l++)eN(a[l]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&Br("hoverOffset","emphasis.scaleSize"),n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var u=A$(n,"pointer.color");u!=null&&L$(n,"itemStyle.color",u)}else if(r==="bar"){bg(n),bg(n.backgroundStyle),bg(n.emphasis);var a=n.data;if(a&&!ea(a))for(var l=0;l<a.length;l++)typeof a[l]=="object"&&(bg(a[l]),bg(a[l]&&a[l].emphasis))}else if(r==="sunburst"){var f=n.highlightPolicy;f&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=f,process.env.NODE_ENV!=="production"&&Br("highlightPolicy","emphasis.focus","sunburst"))),tN(n),nN(n.data,tN)}else r==="graph"||r==="sankey"?N$(n):r==="map"&&(n.mapType&&!n.map&&(process.env.NODE_ENV!=="production"&&Br("mapType","map","map"),n.map=n.mapType),n.mapLocation&&(process.env.NODE_ENV!=="production"&&wl("`mapLocation` is not used anymore."),Vt(n,n.mapLocation)));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&Br("hoverAnimation","emphasis.scale"),n.emphasis.scale=n.hoverAnimation)),Jk(n)}}),t.dataRange&&(t.visualMap=t.dataRange),W(k$,function(n){var r=t[n];r&&(Be(r)||(r=[r]),W(r,function(a){Jk(a)}))})}function P$(t){var e=xt();t.eachSeries(function(n){var r=n.get("stack");if(r){var a=e.get(r)||e.set(r,[]),l=n.getData(),u={stackResultDimension:l.getCalculationInfo("stackResultDimension"),stackedOverDimension:l.getCalculationInfo("stackedOverDimension"),stackedDimension:l.getCalculationInfo("stackedDimension"),stackedByDimension:l.getCalculationInfo("stackedByDimension"),isStackedByIndex:l.getCalculationInfo("isStackedByIndex"),data:l,seriesModel:n};if(!u.stackedDimension||!(u.isStackedByIndex||u.stackedByDimension))return;a.length&&l.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(u)}}),e.each(I$)}function I$(t){W(t,function(e,n){var r=[],a=[NaN,NaN],l=[e.stackResultDimension,e.stackedOverDimension],u=e.data,f=e.isStackedByIndex,d=e.seriesModel.get("stackStrategy")||"samesign";u.modify(l,function(h,p,m){var S=u.get(e.stackedDimension,m);if(isNaN(S))return a;var _,x;f?x=u.getRawIndex(m):_=u.get(e.stackedByDimension,m);for(var E=NaN,b=n-1;b>=0;b--){var D=t[b];if(f||(x=D.data.rawIndexOf(D.stackedByDimension,_)),x>=0){var A=D.data.getByRawIndex(D.stackResultDimension,x);if(d==="all"||d==="positive"&&A>0||d==="negative"&&A<0||d==="samesign"&&S>=0&&A>0||d==="samesign"&&S<=0&&A<0){S=I4(S,A),E=A;break}}}return r[0]=S,r[1]=E,r})})}var L_=function(){function t(e){this.data=e.data||(e.sourceFormat===Tu?{}:[]),this.sourceFormat=e.sourceFormat||Fk,this.seriesLayoutBy=e.seriesLayoutBy||Al,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var n=this.dimensionsDefine=e.dimensionsDefine;if(n)for(var r=0;r<n.length;r++){var a=n[r];a.type==null&&Vk(this,r)===ka.Must&&(a.type="ordinal")}}return t}();function KT(t){return t instanceof L_}function JT(t,e,n){n=n||iN(t);var r=e.seriesLayoutBy,a=F$(t,n,r,e.sourceHeader,e.dimensions),l=new L_({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:Qt(e)});return l}function eb(t){return new L_({data:t,sourceFormat:ea(t)?bu:lo})}function z$(t){return new L_({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Qt(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function iN(t){var e=Fk;if(ea(t))e=bu;else if(Be(t)){t.length===0&&(e=ki);for(var n=0,r=t.length;n<r;n++){var a=t[n];if(a!=null){if(Be(a)){e=ki;break}else if(it(a)){e=Fo;break}}}}else if(it(t)){for(var l in t)if(yu(t,l)&&Ai(t[l])){e=Tu;break}}return e}function F$(t,e,n,r,a){var l,u;if(!t)return{dimensionsDefine:aN(a),startIndex:u,dimensionsDetectedCount:l};if(e===ki){var f=t;r==="auto"||r==null?oN(function(h){h!=null&&h!=="-"&&(et(h)?u==null&&(u=1):u=0)},n,f,10):u=Nn(r)?r:r?1:0,!a&&u===1&&(a=[],oN(function(h,p){a[p]=h!=null?h+"":""},n,f,1/0)),l=a?a.length:n===wv?f.length:f[0]?f[0].length:null}else if(e===Fo)a||(a=B$(t));else if(e===Tu)a||(a=[],W(t,function(h,p){a.push(p)}));else if(e===lo){var d=tg(t[0]);l=Be(d)&&d.length||1}else e===bu&&process.env.NODE_ENV!=="production"&&bt(!!a,"dimensions must be given if data is TypedArray.");return{startIndex:u,dimensionsDefine:aN(a),dimensionsDetectedCount:l}}function B$(t){for(var e=0,n;e<t.length&&!(n=t[e++]););if(n){var r=[];return W(n,function(a,l){r.push(l)}),r}}function aN(t){if(t){var e=xt();return ot(t,function(n,r){n=it(n)?n:{name:n};var a={name:n.name,displayName:n.displayName,type:n.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var l=e.get(a.name);return l?a.name+="-"+l.count++:e.set(a.name,{count:1}),a})}}function oN(t,e,n,r){if(e===wv)for(var a=0;a<n.length&&a<r;a++)t(n[a]?n[a][0]:null,a);else for(var l=n[0]||[],a=0;a<l.length&&a<r;a++)t(l[a],a)}function lN(t){var e=t.sourceFormat;return e===Fo||e===Tu}var _c,Sc,Cc,uN,sN,fN=function(){function t(e,n){var r=KT(e)?e:eb(e);this._source=r;var a=this._data=r.data;if(r.sourceFormat===bu){if(process.env.NODE_ENV!=="production"&&n==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=n,this._data=a}sN(this,a,r)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,n){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var e;sN=function(u,f,d){var h=d.sourceFormat,p=d.seriesLayoutBy,m=d.startIndex,S=d.dimensionsDefine,_=uN[nb(h,p)];if(process.env.NODE_ENV!=="production"&&bt(_,"Invalide sourceFormat: "+h),Re(u,_),h===bu)u.getItem=n,u.count=a,u.fillStorage=r;else{var x=dN(h,p);u.getItem=Qn(x,null,f,m,S);var E=hN(h,p);u.count=Qn(E,null,f,m,S)}};var n=function(u,f){u=u-this._offset,f=f||[];for(var d=this._data,h=this._dimSize,p=h*u,m=0;m<h;m++)f[m]=d[p+m];return f},r=function(u,f,d,h){for(var p=this._data,m=this._dimSize,S=0;S<m;S++){for(var _=h[S],x=_[0]==null?1/0:_[0],E=_[1]==null?-1/0:_[1],b=f-u,D=d[S],A=0;A<b;A++){var O=p[A*m+S];D[u+A]=O,O<x&&(x=O),O>E&&(E=O)}_[0]=x,_[1]=E}},a=function(){return this._data?this._data.length/this._dimSize:0};uN=(e={},e[ki+"_"+Al]={pure:!0,appendData:l},e[ki+"_"+wv]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Fo]={pure:!0,appendData:l},e[Tu]={pure:!0,appendData:function(u){var f=this._data;W(u,function(d,h){for(var p=f[h]||(f[h]=[]),m=0;m<(d||[]).length;m++)p.push(d[m])})}},e[lo]={appendData:l},e[bu]={persistent:!1,pure:!0,appendData:function(u){process.env.NODE_ENV!=="production"&&bt(ea(u),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=u},clean:function(){this._offset+=this.count(),this._data=null}},e);function l(u){for(var f=0;f<u.length;f++)this._data.push(u[f])}}(),t}(),cN=function(t,e,n,r){return t[r]},U$=(_c={},_c[ki+"_"+Al]=function(t,e,n,r){return t[r+e]},_c[ki+"_"+wv]=function(t,e,n,r,a){r+=e;for(var l=a||[],u=t,f=0;f<u.length;f++){var d=u[f];l[f]=d?d[r]:null}return l},_c[Fo]=cN,_c[Tu]=function(t,e,n,r,a){for(var l=a||[],u=0;u<n.length;u++){var f=n[u].name;if(process.env.NODE_ENV!=="production"&&f==null)throw new Error;var d=t[f];l[u]=d?d[r]:null}return l},_c[lo]=cN,_c);function dN(t,e){var n=U$[nb(t,e)];return process.env.NODE_ENV!=="production"&&bt(n,'Do not support get item on "'+t+'", "'+e+'".'),n}var vN=function(t,e,n){return t.length},V$=(Sc={},Sc[ki+"_"+Al]=function(t,e,n){return Math.max(0,t.length-e)},Sc[ki+"_"+wv]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},Sc[Fo]=vN,Sc[Tu]=function(t,e,n){var r=n[0].name;if(process.env.NODE_ENV!=="production"&&r==null)throw new Error;var a=t[r];return a?a.length:0},Sc[lo]=vN,Sc);function hN(t,e){var n=V$[nb(t,e)];return process.env.NODE_ENV!=="production"&&bt(n,'Do not support count on "'+t+'", "'+e+'".'),n}var tb=function(t,e,n){return t[e]},H$=(Cc={},Cc[ki]=tb,Cc[Fo]=function(t,e,n){return t[n]},Cc[Tu]=tb,Cc[lo]=function(t,e,n){var r=tg(t);return r instanceof Array?r[e]:r},Cc[bu]=tb,Cc);function pN(t){var e=H$[t];return process.env.NODE_ENV!=="production"&&bt(e,'Do not support get value on "'+t+'".'),e}function nb(t,e){return t===ki?t+"_"+e:t}function xv(t,e,n){if(t){var r=t.getRawDataItem(e);if(r!=null){var a=t.getStore(),l=a.getSource().sourceFormat;if(n!=null){var u=t.getDimensionIndex(n),f=a.getDimensionProperty(u);return pN(l)(r,u,f)}else{var d=r;return l===lo&&(d=tg(r)),d}}}}var G$=/\{@(.+?)\}/g,$$=function(){function t(){}return t.prototype.getDataParams=function(e,n){var r=this.getData(n),a=this.getRawValue(e,n),l=r.getRawIndex(e),u=r.getName(e),f=r.getRawDataItem(e),d=r.getItemVisual(e,"style"),h=d&&d[r.getItemVisual(e,"drawType")||"fill"],p=d&&d.stroke,m=this.mainType,S=m==="series",_=r.userOutput&&r.userOutput.get();return{componentType:m,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:S?this.subType:null,seriesIndex:this.seriesIndex,seriesId:S?this.id:null,seriesName:S?this.name:null,name:u,dataIndex:l,data:f,dataType:n,value:a,color:h,borderColor:p,dimensionNames:_?_.fullDimensions:null,encode:_?_.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,n,r,a,l,u){n=n||"normal";var f=this.getData(r),d=this.getDataParams(e,r);if(u&&(d.value=u.interpolatedValue),a!=null&&Be(d.value)&&(d.value=d.value[a]),!l){var h=f.getItemModel(e);l=h.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(_t(l))return d.status=n,d.dimensionIndex=a,l(d);if(et(l)){var p=Nk(l,d);return p.replace(G$,function(m,S){var _=S.length,x=S;x.charAt(0)==="["&&x.charAt(_-1)==="]"&&(x=+x.slice(1,_-1),process.env.NODE_ENV!=="production"&&isNaN(x)&&ci("Invalide label formatter: @"+S+", only support @[0], @[1], @[2], ..."));var E=xv(f,e,x);if(u&&Be(u.interpolatedValue)){var b=f.getDimensionIndex(x);b>=0&&(E=u.interpolatedValue[b])}return E!=null?E+"":""})}},t.prototype.getRawValue=function(e,n){return xv(this.getData(n),e)},t.prototype.formatTooltip=function(e,n,r){},t}();function gN(t){var e,n;return it(t)?t.type?n=t:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+na(t)):e=t,{text:e,frag:n}}function Eg(t){return new j$(t)}var j$=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var l;this._plan&&!r&&(l=this._plan(this.context));var u=p(this._modBy),f=this._modDataCount||0,d=p(e&&e.modBy),h=e&&e.modDataCount||0;(u!==d||f!==h)&&(l="reset");function p(A){return!(A>=1)&&(A=1),A}var m;(this._dirty||l==="reset")&&(this._dirty=!1,m=this._doReset(r)),this._modBy=d,this._modDataCount=h;var S=e&&e.step;if(n?(process.env.NODE_ENV!=="production"&&bt(n._outputDueEnd!=null),this._dueEnd=n._outputDueEnd):(process.env.NODE_ENV!=="production"&&bt(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var _=this._dueIndex,x=Math.min(S!=null?this._dueIndex+S:1/0,this._dueEnd);if(!r&&(m||_<x)){var E=this._progress;if(Be(E))for(var b=0;b<E.length;b++)this._doProgress(E[b],_,x,d,h);else this._doProgress(E,_,x,d,h)}this._dueIndex=x;var D=this._settedOutputEnd!=null?this._settedOutputEnd:x;process.env.NODE_ENV!=="production"&&bt(D>=this._outputDueEnd),this._outputDueEnd=D}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,n,r,a,l){mN.reset(n,r,a,l),this._callingProgress=e,this._callingProgress({start:n,end:r,count:r-n,next:mN.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,r;!e&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),Be(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),r},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){process.env.NODE_ENV!=="production"&&bt(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),mN=function(){var t,e,n,r,a,l={reset:function(d,h,p,m){e=d,t=h,n=p,r=m,a=Math.ceil(r/n),l.next=n>1&&r>0?f:u}};return l;function u(){return e<t?e++:null}function f(){var d=e%a*n+Math.ceil(e/a),h=e>=t?null:d<r?d:e;return e++,h}}();function O_(t,e){var n=e&&e.type;return n==="ordinal"?t:(n==="time"&&!Nn(t)&&t!=null&&t!=="-"&&(t=+Cu(t)),t==null||t===""?NaN:+t)}var Y$=xt({number:function(t){return parseFloat(t)},time:function(t){return+Cu(t)},trim:function(t){return et(t)?yl(t):t}});function yN(t){return Y$.get(t)}var _N={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},W$=function(){function t(e,n){if(!Nn(n)){var r="";process.env.NODE_ENV!=="production"&&(r='rvalue of "<", ">", "<=", ">=" can only be number in filter.'),Ht(r)}this._opFn=_N[e],this._rvalFloat=Ds(n)}return t.prototype.evaluate=function(e){return Nn(e)?this._opFn(e,this._rvalFloat):this._opFn(Ds(e),this._rvalFloat)},t}(),SN=function(){function t(e,n){var r=e==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,n){var r=Nn(e)?e:Ds(e),a=Nn(n)?n:Ds(n),l=isNaN(r),u=isNaN(a);if(l&&(r=this._incomparable),u&&(a=this._incomparable),l&&u){var f=et(e),d=et(n);f&&(r=d?e:0),d&&(a=f?n:0)}return r<a?this._resultLT:r>a?-this._resultLT:0},t}(),X$=function(){function t(e,n){this._rval=n,this._isEQ=e,this._rvalTypeof=typeof n,this._rvalFloat=Ds(n)}return t.prototype.evaluate=function(e){var n=e===this._rval;if(!n){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(n=Ds(e)===this._rvalFloat)}return this._isEQ?n:!n},t}();function q$(t,e){return t==="eq"||t==="ne"?new X$(t==="eq",e):yu(_N,t)?new W$(t,e):null}var Q$=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,n){},t.prototype.retrieveValueFromItem=function(e,n){},t.prototype.convertValue=function(e,n){return O_(e,n)},t}();function Z$(t,e){var n=new Q$,r=t.data,a=n.sourceFormat=t.sourceFormat,l=t.startIndex,u="";t.seriesLayoutBy!==Al&&(process.env.NODE_ENV!=="production"&&(u='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),Ht(u));var f=[],d={},h=t.dimensionsDefine;if(h)W(h,function(E,b){var D=E.name,A={index:b,name:D,displayName:E.displayName};if(f.push(A),D!=null){var O="";yu(d,D)&&(process.env.NODE_ENV!=="production"&&(O='dimension name "'+D+'" duplicated.'),Ht(O)),d[D]=A}});else for(var p=0;p<t.dimensionsDetectedCount;p++)f.push({index:p});var m=dN(a,Al);e.__isBuiltIn&&(n.getRawDataItem=function(E){return m(r,l,f,E)},n.getRawData=Qn(K$,null,t)),n.cloneRawData=Qn(J$,null,t);var S=hN(a,Al);n.count=Qn(S,null,r,l,f);var _=pN(a);n.retrieveValue=function(E,b){var D=m(r,l,f,E);return x(D,b)};var x=n.retrieveValueFromItem=function(E,b){if(E!=null){var D=f[b];if(D)return _(E,b,D.name)}};return n.getDimensionInfo=Qn(e9,null,f,d),n.cloneAllDimensionInfo=Qn(t9,null,f),n}function K$(t){var e=t.sourceFormat;if(!rb(e)){var n="";process.env.NODE_ENV!=="production"&&(n="`getRawData` is not supported in source format "+e),Ht(n)}return t.data}function J$(t){var e=t.sourceFormat,n=t.data;if(!rb(e)){var r="";process.env.NODE_ENV!=="production"&&(r="`cloneRawData` is not supported in source format "+e),Ht(r)}if(e===ki){for(var a=[],l=0,u=n.length;l<u;l++)a.push(n[l].slice());return a}else if(e===Fo){for(var a=[],l=0,u=n.length;l<u;l++)a.push(Re({},n[l]));return a}}function e9(t,e,n){if(n!=null){if(Nn(n)||!isNaN(n)&&!yu(e,n))return t[n];if(yu(e,n))return e[n]}}function t9(t){return Qt(t)}var CN=xt();function n9(t){t=Qt(t);var e=t.type,n="";e||(process.env.NODE_ENV!=="production"&&(n="Must have a `type` when `registerTransform`."),Ht(n));var r=e.split(":");r.length!==2&&(process.env.NODE_ENV!=="production"&&(n='Name must include namespace like "ns:regression".'),Ht(n));var a=!1;r[0]==="echarts"&&(e=r[1],a=!0),t.__isBuiltIn=a,CN.set(e,t)}function r9(t,e,n){var r=rr(t),a=r.length,l="";a||(process.env.NODE_ENV!=="production"&&(l="If `transform` declared, it should at least contain one transform."),Ht(l));for(var u=0,f=a;u<f;u++){var d=r[u];e=i9(d,e,n,a===1?null:u),u!==f-1&&(e.length=Math.max(e.length,1))}return e}function i9(t,e,n,r){var a="";e.length||(process.env.NODE_ENV!=="production"&&(a="Must have at least one upstream dataset."),Ht(a)),it(t)||(process.env.NODE_ENV!=="production"&&(a="transform declaration must be an object rather than "+typeof t+"."),Ht(a));var l=t.type,u=CN.get(l);u||(process.env.NODE_ENV!=="production"&&(a='Can not find transform on type "'+l+'".'),Ht(a));var f=ot(e,function(p){return Z$(p,u)}),d=rr(u.transform({upstream:f[0],upstreamList:f,config:Qt(t.config)}));if(process.env.NODE_ENV!=="production"&&t.print){var h=ot(d,function(p){var m=r!=null?" === pipe index: "+r:"";return["=== dataset index: "+n.datasetIndex+m+" ===","- transform result data:",na(p.data),"- transform result dimensions:",na(p.dimensions)].join(`
202
+ echarts.use([`+ee+"]);":"Unknown series "+G))}return}if(m==="tooltip"){if(O){process.env.NODE_ENV!=="production"&&(P||(Fr("Currently only one tooltip component is allowed."),P=!0));return}O=!0}if(U&&U.constructor===X)U.name=I.keyInfo.name,U.mergeOption(H,this),U.optionUpdated(H,!1);else{var J=Re({componentIndex:F},I.keyInfo);U=new X(H,this,this,J),Re(U,J),I.brandNew&&(U.__requireNewView=!0),U.init(H,this,this),U.optionUpdated(null,!0)}}U?(b.push(U.option),D.push(U),A++):(b.push(void 0),D.push(void 0))},this),a[m]=b,l.set(m,D),u.set(m,A),m==="series"&&k_(this)}this._seriesIndices||k_(this)},e.prototype.getOption=function(){var n=Qt(this.option);return W(n,function(r,a){if(En.hasClass(a)){for(var l=rr(r),u=l.length,f=!1,d=u-1;d>=0;d--)l[d]&&!fv(l[d])?f=!0:(l[d]=null,!f&&u--);l.length=u,n[a]=l}}),delete n[eb],n},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(n){this._payload=n},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(n,r){var a=this._componentsMap.get(n);if(a){var l=a[r||0];if(l)return l;if(r==null){for(var u=0;u<a.length;u++)if(a[u])return a[u]}}},e.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var a=n.index,l=n.id,u=n.name,f=this._componentsMap.get(r);if(!f||!f.length)return[];var d;return a!=null?(d=[],W(rr(a),function(h){f[h]&&d.push(f[h])})):l!=null?d=uN("id",l,f):u!=null?d=uN("name",u,f):d=Er(f,function(h){return!!h}),sN(d,n)},e.prototype.findComponents=function(n){var r=n.query,a=n.mainType,l=f(r),u=l?this.queryComponents(l):Er(this._componentsMap.get(a),function(h){return!!h});return d(sN(u,n));function f(h){var p=a+"Index",m=a+"Id",S=a+"Name";return h&&(h[p]!=null||h[m]!=null||h[S]!=null)?{mainType:a,index:h[p],id:h[m],name:h[S]}:null}function d(h){return n.filter?Er(h,n.filter):h}},e.prototype.eachComponent=function(n,r,a){var l=this._componentsMap;if(_t(n)){var u=r,f=n;l.each(function(m,S){for(var _=0;m&&_<m.length;_++){var x=m[_];x&&f.call(u,S,x,x.componentIndex)}})}else for(var d=et(n)?l.get(n):it(n)?this.findComponents(n):null,h=0;d&&h<d.length;h++){var p=d[h];p&&r.call(a,p,p.componentIndex)}},e.prototype.getSeriesByName=function(n){var r=xl(n,null);return Er(this._componentsMap.get("series"),function(a){return!!a&&r!=null&&a.name===r})},e.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},e.prototype.getSeriesByType=function(n){return Er(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},e.prototype.getSeries=function(){return Er(this._componentsMap.get("series"),function(n){return!!n})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(n,r){wg(this),W(this._seriesIndices,function(a){var l=this._componentsMap.get("series")[a];n.call(r,l,a)},this)},e.prototype.eachRawSeries=function(n,r){W(this._componentsMap.get("series"),function(a){a&&n.call(r,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(n,r,a){wg(this),W(this._seriesIndices,function(l){var u=this._componentsMap.get("series")[l];u.subType===n&&r.call(a,u,l)},this)},e.prototype.eachRawSeriesByType=function(n,r,a){return W(this.getSeriesByType(n),r,a)},e.prototype.isSeriesFiltered=function(n){return wg(this),this._seriesIndicesMap.get(n.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(n,r){wg(this);var a=[];W(this._seriesIndices,function(l){var u=this._componentsMap.get("series")[l];n.call(r,u,l)&&a.push(l)},this),this._seriesIndices=a,this._seriesIndicesMap=xt(a)},e.prototype.restoreData=function(n){k_(this);var r=this._componentsMap,a=[];r.each(function(l,u){En.hasClass(u)&&a.push(u)}),En.topologicalTravel(a,En.getAllClassMainTypes(),function(l){W(r.get(l),function(u){u&&(l!=="series"||!h9(u,n))&&u.restoreData()})})},e.internalField=function(){k_=function(n){var r=n._seriesIndices=[];W(n._componentsMap.get("series"),function(a){a&&r.push(a.componentIndex)}),n._seriesIndicesMap=xt(r)},wg=function(n){if(process.env.NODE_ENV!=="production"&&!n._seriesIndices)throw new Error("Option should contains series.")},aN=function(n,r){n.option={},n.option[eb]=oN,n._componentsMap=xt({series:[]}),n._componentsCount=xt();var a=r.aria;it(a)&&a.enabled==null&&(a.enabled=!0),p9(r,n._theme.option),cn(r,t9,!1),n._mergeOption(r,null)}}(),e}(Oi);function h9(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,a=e.seriesName;return n!=null&&t.componentIndex!==n||r!=null&&t.id!==r||a!=null&&t.name!==a}}function p9(t,e){var n=t.color&&!t.colorLayer;W(e,function(r,a){a==="colorLayer"&&n||En.hasClass(a)||(typeof r=="object"?t[a]=t[a]?cn(t[a],r,!1):Qt(r):t[a]==null&&(t[a]=r))})}function uN(t,e,n){if(Be(e)){var r=xt();return W(e,function(l){if(l!=null){var u=xl(l,null);u!=null&&r.set(l,!0)}}),Er(n,function(l){return l&&r.get(l[t])})}else{var a=xl(e,null);return Er(n,function(l){return l&&a!=null&&l[t]===a})}}function sN(t,e){return e.hasOwnProperty("subType")?Er(t,function(n){return n&&n.subType===e.subType}):t}function fN(t){var e=xt();return t&&W(rr(t.replaceMerge),function(n){process.env.NODE_ENV!=="production"&&bt(En.hasClass(n),'"'+n+'" is not valid component main type in "replaceMerge"'),e.set(n,!0)}),{replaceMergeMainTypeMap:e}}ml(lN,JT);const cN=lN;var g9=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],m9=function(){function t(e){W(g9,function(n){this[n]=Qn(e[n],e)},this)}return t}();const dN=m9;var tb={},y9=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,n){var r=[];W(tb,function(a,l){var u=a.create(e,n);r=r.concat(u||[])}),this._coordinateSystems=r},t.prototype.update=function(e,n){W(this._coordinateSystems,function(r){r.update&&r.update(e,n)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(e,n){tb[e]=n},t.get=function(e){return tb[e]},t}();const nb=y9;var _9=/^(min|max)?(.+)$/,S9=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,n,r){e&&(W(rr(e.series),function(u){u&&u.data&&ea(u.data)&&A0(u.data)}),W(rr(e.dataset),function(u){u&&u.source&&ea(u.source)&&A0(u.source)})),e=Qt(e);var a=this._optionBackup,l=C9(e,n,!a);this._newBaseOption=l.baseOption,a?(l.timelineOptions.length&&(a.timelineOptions=l.timelineOptions),l.mediaList.length&&(a.mediaList=l.mediaList),l.mediaDefault&&(a.mediaDefault=l.mediaDefault)):this._optionBackup=l},t.prototype.mountOption=function(e){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],Qt(e?n.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var n,r=this._timelineOptions;if(r.length){var a=e.getComponent("timeline");a&&(n=Qt(r[a.getCurrentIndex()]))}return n},t.prototype.getMediaOption=function(e){var n=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,l=this._mediaDefault,u=[],f=[];if(!a.length&&!l)return f;for(var d=0,h=a.length;d<h;d++)w9(a[d].query,n,r)&&u.push(d);return!u.length&&l&&(u=[-1]),u.length&&!T9(u,this._currentMediaIndices)&&(f=ot(u,function(p){return Qt(p===-1?l.option:a[p].option)})),this._currentMediaIndices=u,f},t}();function C9(t,e,n){var r=[],a,l,u=t.baseOption,f=t.timeline,d=t.options,h=t.media,p=!!t.media,m=!!(d||f||u&&u.timeline);u?(l=u,l.timeline||(l.timeline=f)):((m||p)&&(t.options=t.media=null),l=t),p&&(Be(h)?W(h,function(_){process.env.NODE_ENV!=="production"&&_&&!_.option&&it(_.query)&&it(_.query.option)&&ci("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),_&&_.option&&(_.query?r.push(_):a||(a=_))}):process.env.NODE_ENV!=="production"&&ci("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),S(l),W(d,function(_){return S(_)}),W(r,function(_){return S(_.option)});function S(_){W(e,function(x){x(_,n)})}return{baseOption:l,timelineOptions:d||[],mediaDefault:a,mediaList:r}}function w9(t,e,n){var r={width:e,height:n,aspectratio:e/n},a=!0;return W(t,function(l,u){var f=u.match(_9);if(!(!f||!f[1]||!f[2])){var d=f[1],h=f[2].toLowerCase();x9(r[h],l,d)||(a=!1)}}),a}function x9(t,e,n){return n==="min"?t>=e:n==="max"?t<=e:t===e}function T9(t,e){return t.join(",")===e.join(",")}const b9=S9;var uo=W,xg=it,vN=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function rb(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=vN.length;n<r;n++){var a=vN[n],l=e.normal,u=e.emphasis;l&&l[a]&&(process.env.NODE_ENV!=="production"&&Br("itemStyle.normal."+a,a),t[a]=t[a]||{},t[a].normal?cn(t[a].normal,l[a]):t[a].normal=l[a],l[a]=null),u&&u[a]&&(process.env.NODE_ENV!=="production"&&Br("itemStyle.emphasis."+a,"emphasis."+a),t[a]=t[a]||{},t[a].emphasis?cn(t[a].emphasis,u[a]):t[a].emphasis=u[a],u[a]=null)}}function vi(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,a=t[e].emphasis;r&&(process.env.NODE_ENV!=="production"&&wl("'normal' hierarchy in "+e+" has been removed since 4.0. All style properties are configured in "+e+" directly now."),n?(t[e].normal=t[e].emphasis=null,Vt(t[e],r)):t[e]=r),a&&(process.env.NODE_ENV!=="production"&&wl(e+".emphasis has been changed to emphasis."+e+" since 4.0"),t.emphasis=t.emphasis||{},t.emphasis[e]=a,a.focus&&(t.emphasis.focus=a.focus),a.blurScope&&(t.emphasis.blurScope=a.blurScope))}}function Tg(t){vi(t,"itemStyle"),vi(t,"lineStyle"),vi(t,"areaStyle"),vi(t,"label"),vi(t,"labelLine"),vi(t,"upperLabel"),vi(t,"edgeLabel")}function ir(t,e){var n=xg(t)&&t[e],r=xg(n)&&n.textStyle;if(r){process.env.NODE_ENV!=="production"&&wl("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var a=0,l=BO.length;a<l;a++){var u=BO[a];r.hasOwnProperty(u)&&(n[u]=r[u])}}}function so(t){t&&(Tg(t),ir(t,"label"),t.emphasis&&ir(t.emphasis,"label"))}function E9(t){if(xg(t)){rb(t),Tg(t),ir(t,"label"),ir(t,"upperLabel"),ir(t,"edgeLabel"),t.emphasis&&(ir(t.emphasis,"label"),ir(t.emphasis,"upperLabel"),ir(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(rb(e),so(e));var n=t.markLine;n&&(rb(n),so(n));var r=t.markArea;r&&so(r);var a=t.data;if(t.type==="graph"){a=a||t.nodes;var l=t.links||t.edges;if(l&&!ea(l))for(var u=0;u<l.length;u++)so(l[u]);W(t.categories,function(h){Tg(h)})}if(a&&!ea(a))for(var u=0;u<a.length;u++)so(a[u]);if(e=t.markPoint,e&&e.data)for(var f=e.data,u=0;u<f.length;u++)so(f[u]);if(n=t.markLine,n&&n.data)for(var d=n.data,u=0;u<d.length;u++)Be(d[u])?(so(d[u][0]),so(d[u][1])):so(d[u]);t.type==="gauge"?(ir(t,"axisLabel"),ir(t,"title"),ir(t,"detail")):t.type==="treemap"?(vi(t.breadcrumb,"itemStyle"),W(t.levels,function(h){Tg(h)})):t.type==="tree"&&Tg(t.leaves)}}function Du(t){return Be(t)?t:t?[t]:[]}function hN(t){return(Be(t)?t[0]:t)||{}}function D9(t,e){uo(Du(t.series),function(r){xg(r)&&E9(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),uo(n,function(r){uo(Du(t[r]),function(a){a&&(ir(a,"axisLabel"),ir(a.axisPointer,"label"))})}),uo(Du(t.parallel),function(r){var a=r&&r.parallelAxisDefault;ir(a,"axisLabel"),ir(a&&a.axisPointer,"label")}),uo(Du(t.calendar),function(r){vi(r,"itemStyle"),ir(r,"dayLabel"),ir(r,"monthLabel"),ir(r,"yearLabel")}),uo(Du(t.radar),function(r){ir(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name,process.env.NODE_ENV!=="production"&&wl("name property in radar component has been changed to axisName")),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap,process.env.NODE_ENV!=="production"&&wl("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&uo(r.indicator,function(a){a.text&&Br("text","name","radar.indicator")})}),uo(Du(t.geo),function(r){xg(r)&&(so(r),uo(Du(r.regions),function(a){so(a)}))}),uo(Du(t.timeline),function(r){so(r),vi(r,"label"),vi(r,"itemStyle"),vi(r,"controlStyle",!0);var a=r.data;Be(a)&&W(a,function(l){it(l)&&(vi(l,"label"),vi(l,"itemStyle"))})}),uo(Du(t.toolbox),function(r){vi(r,"iconStyle"),uo(r.feature,function(a){vi(a,"iconStyle")})}),ir(hN(t.axisPointer),"label"),ir(hN(t.tooltip).axisPointer,"label")}function M9(t,e){for(var n=e.split(","),r=t,a=0;a<n.length&&(r=r&&r[n[a]],r!=null);a++);return r}function R9(t,e,n,r){for(var a=e.split(","),l=t,u,f=0;f<a.length-1;f++)u=a[f],l[u]==null&&(l[u]={}),l=l[u];(r||l[a[f]]==null)&&(l[a[f]]=n)}function pN(t){t&&W(A9,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var A9=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],L9=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],ib=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function bg(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<ib.length;n++){var r=ib[n][1],a=ib[n][0];e[r]!=null&&(e[a]=e[r],process.env.NODE_ENV!=="production"&&Br(r,a))}}function gN(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&Br("label.margin","label.edgeDistance","pie"),t.edgeDistance=t.margin)}function mN(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay,process.env.NODE_ENV!=="production"&&Br("downplay","blur","sunburst"))}function O9(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&Br("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),t.emphasis.focus="adjacency"))}function yN(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&yN(t[n].children,e)}function _N(t,e){D9(t,e),t.series=rr(t.series),W(t.series,function(n){if(it(n)){var r=n.type;if(r==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow,process.env.NODE_ENV!=="production"&&Br("clipOverflow","clip","line"));else if(r==="pie"||r==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise,process.env.NODE_ENV!=="production"&&Br("clockWise","clockwise")),gN(n.label);var a=n.data;if(a&&!ea(a))for(var l=0;l<a.length;l++)gN(a[l]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&Br("hoverOffset","emphasis.scaleSize"),n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var u=M9(n,"pointer.color");u!=null&&R9(n,"itemStyle.color",u)}else if(r==="bar"){bg(n),bg(n.backgroundStyle),bg(n.emphasis);var a=n.data;if(a&&!ea(a))for(var l=0;l<a.length;l++)typeof a[l]=="object"&&(bg(a[l]),bg(a[l]&&a[l].emphasis))}else if(r==="sunburst"){var f=n.highlightPolicy;f&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=f,process.env.NODE_ENV!=="production"&&Br("highlightPolicy","emphasis.focus","sunburst"))),mN(n),yN(n.data,mN)}else r==="graph"||r==="sankey"?O9(n):r==="map"&&(n.mapType&&!n.map&&(process.env.NODE_ENV!=="production"&&Br("mapType","map","map"),n.map=n.mapType),n.mapLocation&&(process.env.NODE_ENV!=="production"&&wl("`mapLocation` is not used anymore."),Vt(n,n.mapLocation)));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&Br("hoverAnimation","emphasis.scale"),n.emphasis.scale=n.hoverAnimation)),pN(n)}}),t.dataRange&&(t.visualMap=t.dataRange),W(L9,function(n){var r=t[n];r&&(Be(r)||(r=[r]),W(r,function(a){pN(a)}))})}function k9(t){var e=xt();t.eachSeries(function(n){var r=n.get("stack");if(r){var a=e.get(r)||e.set(r,[]),l=n.getData(),u={stackResultDimension:l.getCalculationInfo("stackResultDimension"),stackedOverDimension:l.getCalculationInfo("stackedOverDimension"),stackedDimension:l.getCalculationInfo("stackedDimension"),stackedByDimension:l.getCalculationInfo("stackedByDimension"),isStackedByIndex:l.getCalculationInfo("isStackedByIndex"),data:l,seriesModel:n};if(!u.stackedDimension||!(u.isStackedByIndex||u.stackedByDimension))return;a.length&&l.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(u)}}),e.each(N9)}function N9(t){W(t,function(e,n){var r=[],a=[NaN,NaN],l=[e.stackResultDimension,e.stackedOverDimension],u=e.data,f=e.isStackedByIndex,d=e.seriesModel.get("stackStrategy")||"samesign";u.modify(l,function(h,p,m){var S=u.get(e.stackedDimension,m);if(isNaN(S))return a;var _,x;f?x=u.getRawIndex(m):_=u.get(e.stackedByDimension,m);for(var E=NaN,b=n-1;b>=0;b--){var D=t[b];if(f||(x=D.data.rawIndexOf(D.stackedByDimension,_)),x>=0){var A=D.data.getByRawIndex(D.stackResultDimension,x);if(d==="all"||d==="positive"&&A>0||d==="negative"&&A<0||d==="samesign"&&S>=0&&A>0||d==="samesign"&&S<=0&&A<0){S=N6(S,A),E=A;break}}}return r[0]=S,r[1]=E,r})})}var P_=function(){function t(e){this.data=e.data||(e.sourceFormat===bu?{}:[]),this.sourceFormat=e.sourceFormat||eN,this.seriesLayoutBy=e.seriesLayoutBy||Al,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var n=this.dimensionsDefine=e.dimensionsDefine;if(n)for(var r=0;r<n.length;r++){var a=n[r];a.type==null&&rN(this,r)===ka.Must&&(a.type="ordinal")}}return t}();function ab(t){return t instanceof P_}function ob(t,e,n){n=n||SN(t);var r=e.seriesLayoutBy,a=I9(t,n,r,e.sourceHeader,e.dimensions),l=new P_({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:Qt(e)});return l}function lb(t){return new P_({data:t,sourceFormat:ea(t)?Eu:lo})}function P9(t){return new P_({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Qt(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function SN(t){var e=eN;if(ea(t))e=Eu;else if(Be(t)){t.length===0&&(e=ki);for(var n=0,r=t.length;n<r;n++){var a=t[n];if(a!=null){if(Be(a)){e=ki;break}else if(it(a)){e=Fo;break}}}}else if(it(t)){for(var l in t)if(_u(t,l)&&Ai(t[l])){e=bu;break}}return e}function I9(t,e,n,r,a){var l,u;if(!t)return{dimensionsDefine:CN(a),startIndex:u,dimensionsDetectedCount:l};if(e===ki){var f=t;r==="auto"||r==null?wN(function(h){h!=null&&h!=="-"&&(et(h)?u==null&&(u=1):u=0)},n,f,10):u=Nn(r)?r:r?1:0,!a&&u===1&&(a=[],wN(function(h,p){a[p]=h!=null?h+"":""},n,f,1/0)),l=a?a.length:n===Tv?f.length:f[0]?f[0].length:null}else if(e===Fo)a||(a=z9(t));else if(e===bu)a||(a=[],W(t,function(h,p){a.push(p)}));else if(e===lo){var d=tg(t[0]);l=Be(d)&&d.length||1}else e===Eu&&process.env.NODE_ENV!=="production"&&bt(!!a,"dimensions must be given if data is TypedArray.");return{startIndex:u,dimensionsDefine:CN(a),dimensionsDetectedCount:l}}function z9(t){for(var e=0,n;e<t.length&&!(n=t[e++]););if(n){var r=[];return W(n,function(a,l){r.push(l)}),r}}function CN(t){if(t){var e=xt();return ot(t,function(n,r){n=it(n)?n:{name:n};var a={name:n.name,displayName:n.displayName,type:n.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var l=e.get(a.name);return l?a.name+="-"+l.count++:e.set(a.name,{count:1}),a})}}function wN(t,e,n,r){if(e===Tv)for(var a=0;a<n.length&&a<r;a++)t(n[a]?n[a][0]:null,a);else for(var l=n[0]||[],a=0;a<l.length&&a<r;a++)t(l[a],a)}function xN(t){var e=t.sourceFormat;return e===Fo||e===bu}var _c,Sc,Cc,TN,bN,EN=function(){function t(e,n){var r=ab(e)?e:lb(e);this._source=r;var a=this._data=r.data;if(r.sourceFormat===Eu){if(process.env.NODE_ENV!=="production"&&n==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=n,this._data=a}bN(this,a,r)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,n){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var e;bN=function(u,f,d){var h=d.sourceFormat,p=d.seriesLayoutBy,m=d.startIndex,S=d.dimensionsDefine,_=TN[sb(h,p)];if(process.env.NODE_ENV!=="production"&&bt(_,"Invalide sourceFormat: "+h),Re(u,_),h===Eu)u.getItem=n,u.count=a,u.fillStorage=r;else{var x=MN(h,p);u.getItem=Qn(x,null,f,m,S);var E=AN(h,p);u.count=Qn(E,null,f,m,S)}};var n=function(u,f){u=u-this._offset,f=f||[];for(var d=this._data,h=this._dimSize,p=h*u,m=0;m<h;m++)f[m]=d[p+m];return f},r=function(u,f,d,h){for(var p=this._data,m=this._dimSize,S=0;S<m;S++){for(var _=h[S],x=_[0]==null?1/0:_[0],E=_[1]==null?-1/0:_[1],b=f-u,D=d[S],A=0;A<b;A++){var O=p[A*m+S];D[u+A]=O,O<x&&(x=O),O>E&&(E=O)}_[0]=x,_[1]=E}},a=function(){return this._data?this._data.length/this._dimSize:0};TN=(e={},e[ki+"_"+Al]={pure:!0,appendData:l},e[ki+"_"+Tv]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Fo]={pure:!0,appendData:l},e[bu]={pure:!0,appendData:function(u){var f=this._data;W(u,function(d,h){for(var p=f[h]||(f[h]=[]),m=0;m<(d||[]).length;m++)p.push(d[m])})}},e[lo]={appendData:l},e[Eu]={persistent:!1,pure:!0,appendData:function(u){process.env.NODE_ENV!=="production"&&bt(ea(u),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=u},clean:function(){this._offset+=this.count(),this._data=null}},e);function l(u){for(var f=0;f<u.length;f++)this._data.push(u[f])}}(),t}(),DN=function(t,e,n,r){return t[r]},F9=(_c={},_c[ki+"_"+Al]=function(t,e,n,r){return t[r+e]},_c[ki+"_"+Tv]=function(t,e,n,r,a){r+=e;for(var l=a||[],u=t,f=0;f<u.length;f++){var d=u[f];l[f]=d?d[r]:null}return l},_c[Fo]=DN,_c[bu]=function(t,e,n,r,a){for(var l=a||[],u=0;u<n.length;u++){var f=n[u].name;if(process.env.NODE_ENV!=="production"&&f==null)throw new Error;var d=t[f];l[u]=d?d[r]:null}return l},_c[lo]=DN,_c);function MN(t,e){var n=F9[sb(t,e)];return process.env.NODE_ENV!=="production"&&bt(n,'Do not support get item on "'+t+'", "'+e+'".'),n}var RN=function(t,e,n){return t.length},B9=(Sc={},Sc[ki+"_"+Al]=function(t,e,n){return Math.max(0,t.length-e)},Sc[ki+"_"+Tv]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},Sc[Fo]=RN,Sc[bu]=function(t,e,n){var r=n[0].name;if(process.env.NODE_ENV!=="production"&&r==null)throw new Error;var a=t[r];return a?a.length:0},Sc[lo]=RN,Sc);function AN(t,e){var n=B9[sb(t,e)];return process.env.NODE_ENV!=="production"&&bt(n,'Do not support count on "'+t+'", "'+e+'".'),n}var ub=function(t,e,n){return t[e]},U9=(Cc={},Cc[ki]=ub,Cc[Fo]=function(t,e,n){return t[n]},Cc[bu]=ub,Cc[lo]=function(t,e,n){var r=tg(t);return r instanceof Array?r[e]:r},Cc[Eu]=ub,Cc);function LN(t){var e=U9[t];return process.env.NODE_ENV!=="production"&&bt(e,'Do not support get value on "'+t+'".'),e}function sb(t,e){return t===ki?t+"_"+e:t}function bv(t,e,n){if(t){var r=t.getRawDataItem(e);if(r!=null){var a=t.getStore(),l=a.getSource().sourceFormat;if(n!=null){var u=t.getDimensionIndex(n),f=a.getDimensionProperty(u);return LN(l)(r,u,f)}else{var d=r;return l===lo&&(d=tg(r)),d}}}}var V9=/\{@(.+?)\}/g,H9=function(){function t(){}return t.prototype.getDataParams=function(e,n){var r=this.getData(n),a=this.getRawValue(e,n),l=r.getRawIndex(e),u=r.getName(e),f=r.getRawDataItem(e),d=r.getItemVisual(e,"style"),h=d&&d[r.getItemVisual(e,"drawType")||"fill"],p=d&&d.stroke,m=this.mainType,S=m==="series",_=r.userOutput&&r.userOutput.get();return{componentType:m,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:S?this.subType:null,seriesIndex:this.seriesIndex,seriesId:S?this.id:null,seriesName:S?this.name:null,name:u,dataIndex:l,data:f,dataType:n,value:a,color:h,borderColor:p,dimensionNames:_?_.fullDimensions:null,encode:_?_.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,n,r,a,l,u){n=n||"normal";var f=this.getData(r),d=this.getDataParams(e,r);if(u&&(d.value=u.interpolatedValue),a!=null&&Be(d.value)&&(d.value=d.value[a]),!l){var h=f.getItemModel(e);l=h.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(_t(l))return d.status=n,d.dimensionIndex=a,l(d);if(et(l)){var p=Qk(l,d);return p.replace(V9,function(m,S){var _=S.length,x=S;x.charAt(0)==="["&&x.charAt(_-1)==="]"&&(x=+x.slice(1,_-1),process.env.NODE_ENV!=="production"&&isNaN(x)&&ci("Invalide label formatter: @"+S+", only support @[0], @[1], @[2], ..."));var E=bv(f,e,x);if(u&&Be(u.interpolatedValue)){var b=f.getDimensionIndex(x);b>=0&&(E=u.interpolatedValue[b])}return E!=null?E+"":""})}},t.prototype.getRawValue=function(e,n){return bv(this.getData(n),e)},t.prototype.formatTooltip=function(e,n,r){},t}();function ON(t){var e,n;return it(t)?t.type?n=t:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+na(t)):e=t,{text:e,frag:n}}function Eg(t){return new G9(t)}var G9=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var l;this._plan&&!r&&(l=this._plan(this.context));var u=p(this._modBy),f=this._modDataCount||0,d=p(e&&e.modBy),h=e&&e.modDataCount||0;(u!==d||f!==h)&&(l="reset");function p(A){return!(A>=1)&&(A=1),A}var m;(this._dirty||l==="reset")&&(this._dirty=!1,m=this._doReset(r)),this._modBy=d,this._modDataCount=h;var S=e&&e.step;if(n?(process.env.NODE_ENV!=="production"&&bt(n._outputDueEnd!=null),this._dueEnd=n._outputDueEnd):(process.env.NODE_ENV!=="production"&&bt(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var _=this._dueIndex,x=Math.min(S!=null?this._dueIndex+S:1/0,this._dueEnd);if(!r&&(m||_<x)){var E=this._progress;if(Be(E))for(var b=0;b<E.length;b++)this._doProgress(E[b],_,x,d,h);else this._doProgress(E,_,x,d,h)}this._dueIndex=x;var D=this._settedOutputEnd!=null?this._settedOutputEnd:x;process.env.NODE_ENV!=="production"&&bt(D>=this._outputDueEnd),this._outputDueEnd=D}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,n,r,a,l){kN.reset(n,r,a,l),this._callingProgress=e,this._callingProgress({start:n,end:r,count:r-n,next:kN.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,r;!e&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),Be(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),r},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){process.env.NODE_ENV!=="production"&&bt(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),kN=function(){var t,e,n,r,a,l={reset:function(d,h,p,m){e=d,t=h,n=p,r=m,a=Math.ceil(r/n),l.next=n>1&&r>0?f:u}};return l;function u(){return e<t?e++:null}function f(){var d=e%a*n+Math.ceil(e/a),h=e>=t?null:d<r?d:e;return e++,h}}();function I_(t,e){var n=e&&e.type;return n==="ordinal"?t:(n==="time"&&!Nn(t)&&t!=null&&t!=="-"&&(t=+wu(t)),t==null||t===""?NaN:+t)}var $9=xt({number:function(t){return parseFloat(t)},time:function(t){return+wu(t)},trim:function(t){return et(t)?yl(t):t}});function NN(t){return $9.get(t)}var PN={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},j9=function(){function t(e,n){if(!Nn(n)){var r="";process.env.NODE_ENV!=="production"&&(r='rvalue of "<", ">", "<=", ">=" can only be number in filter.'),Ht(r)}this._opFn=PN[e],this._rvalFloat=Ds(n)}return t.prototype.evaluate=function(e){return Nn(e)?this._opFn(e,this._rvalFloat):this._opFn(Ds(e),this._rvalFloat)},t}(),IN=function(){function t(e,n){var r=e==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,n){var r=Nn(e)?e:Ds(e),a=Nn(n)?n:Ds(n),l=isNaN(r),u=isNaN(a);if(l&&(r=this._incomparable),u&&(a=this._incomparable),l&&u){var f=et(e),d=et(n);f&&(r=d?e:0),d&&(a=f?n:0)}return r<a?this._resultLT:r>a?-this._resultLT:0},t}(),Y9=function(){function t(e,n){this._rval=n,this._isEQ=e,this._rvalTypeof=typeof n,this._rvalFloat=Ds(n)}return t.prototype.evaluate=function(e){var n=e===this._rval;if(!n){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(n=Ds(e)===this._rvalFloat)}return this._isEQ?n:!n},t}();function W9(t,e){return t==="eq"||t==="ne"?new Y9(t==="eq",e):_u(PN,t)?new j9(t,e):null}var X9=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,n){},t.prototype.retrieveValueFromItem=function(e,n){},t.prototype.convertValue=function(e,n){return I_(e,n)},t}();function q9(t,e){var n=new X9,r=t.data,a=n.sourceFormat=t.sourceFormat,l=t.startIndex,u="";t.seriesLayoutBy!==Al&&(process.env.NODE_ENV!=="production"&&(u='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),Ht(u));var f=[],d={},h=t.dimensionsDefine;if(h)W(h,function(E,b){var D=E.name,A={index:b,name:D,displayName:E.displayName};if(f.push(A),D!=null){var O="";_u(d,D)&&(process.env.NODE_ENV!=="production"&&(O='dimension name "'+D+'" duplicated.'),Ht(O)),d[D]=A}});else for(var p=0;p<t.dimensionsDetectedCount;p++)f.push({index:p});var m=MN(a,Al);e.__isBuiltIn&&(n.getRawDataItem=function(E){return m(r,l,f,E)},n.getRawData=Qn(Q9,null,t)),n.cloneRawData=Qn(Z9,null,t);var S=AN(a,Al);n.count=Qn(S,null,r,l,f);var _=LN(a);n.retrieveValue=function(E,b){var D=m(r,l,f,E);return x(D,b)};var x=n.retrieveValueFromItem=function(E,b){if(E!=null){var D=f[b];if(D)return _(E,b,D.name)}};return n.getDimensionInfo=Qn(K9,null,f,d),n.cloneAllDimensionInfo=Qn(J9,null,f),n}function Q9(t){var e=t.sourceFormat;if(!fb(e)){var n="";process.env.NODE_ENV!=="production"&&(n="`getRawData` is not supported in source format "+e),Ht(n)}return t.data}function Z9(t){var e=t.sourceFormat,n=t.data;if(!fb(e)){var r="";process.env.NODE_ENV!=="production"&&(r="`cloneRawData` is not supported in source format "+e),Ht(r)}if(e===ki){for(var a=[],l=0,u=n.length;l<u;l++)a.push(n[l].slice());return a}else if(e===Fo){for(var a=[],l=0,u=n.length;l<u;l++)a.push(Re({},n[l]));return a}}function K9(t,e,n){if(n!=null){if(Nn(n)||!isNaN(n)&&!_u(e,n))return t[n];if(_u(e,n))return e[n]}}function J9(t){return Qt(t)}var zN=xt();function ej(t){t=Qt(t);var e=t.type,n="";e||(process.env.NODE_ENV!=="production"&&(n="Must have a `type` when `registerTransform`."),Ht(n));var r=e.split(":");r.length!==2&&(process.env.NODE_ENV!=="production"&&(n='Name must include namespace like "ns:regression".'),Ht(n));var a=!1;r[0]==="echarts"&&(e=r[1],a=!0),t.__isBuiltIn=a,zN.set(e,t)}function tj(t,e,n){var r=rr(t),a=r.length,l="";a||(process.env.NODE_ENV!=="production"&&(l="If `transform` declared, it should at least contain one transform."),Ht(l));for(var u=0,f=a;u<f;u++){var d=r[u];e=nj(d,e,n,a===1?null:u),u!==f-1&&(e.length=Math.max(e.length,1))}return e}function nj(t,e,n,r){var a="";e.length||(process.env.NODE_ENV!=="production"&&(a="Must have at least one upstream dataset."),Ht(a)),it(t)||(process.env.NODE_ENV!=="production"&&(a="transform declaration must be an object rather than "+typeof t+"."),Ht(a));var l=t.type,u=zN.get(l);u||(process.env.NODE_ENV!=="production"&&(a='Can not find transform on type "'+l+'".'),Ht(a));var f=ot(e,function(p){return q9(p,u)}),d=rr(u.transform({upstream:f[0],upstreamList:f,config:Qt(t.config)}));if(process.env.NODE_ENV!=="production"&&t.print){var h=ot(d,function(p){var m=r!=null?" === pipe index: "+r:"";return["=== dataset index: "+n.datasetIndex+m+" ===","- transform result data:",na(p.data),"- transform result dimensions:",na(p.dimensions)].join(`
203
203
  `)}).join(`
204
- `);V4(h)}return ot(d,function(p,m){var S="";it(p)||(process.env.NODE_ENV!=="production"&&(S="A transform should not return some empty results."),Ht(S)),p.data||(process.env.NODE_ENV!=="production"&&(S="Transform result data should be not be null or undefined"),Ht(S));var _=iN(p.data);rb(_)||(process.env.NODE_ENV!=="production"&&(S="Transform result data should be array rows or object rows."),Ht(S));var x,E=e[0];if(E&&m===0&&!p.dimensions){var b=E.startIndex;b&&(p.data=E.data.slice(0,b).concat(p.data)),x={seriesLayoutBy:Al,sourceHeader:b,dimensions:E.metaRawOption.dimensions}}else x={seriesLayoutBy:Al,sourceHeader:0,dimensions:p.dimensions};return JT(p.data,x,null)})}function rb(t){return t===ki||t===Fo}var k_="undefined",a9=typeof Uint32Array===k_?Array:Uint32Array,o9=typeof Uint16Array===k_?Array:Uint16Array,wN=typeof Int32Array===k_?Array:Int32Array,xN=typeof Float64Array===k_?Array:Float64Array,TN={float:xN,int:wN,ordinal:Array,number:Array,time:xN},ib;function Dg(t){return t>65535?a9:o9}function Tv(){return[1/0,-1/0]}function l9(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function bN(t,e,n,r,a){var l=TN[n||"float"];if(a){var u=t[e],f=u&&u.length;if(f!==r){for(var d=new l(r),h=0;h<f;h++)d[h]=u[h];t[e]=d}}else t[e]=new l(r)}var u9=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=xt()}return t.prototype.initData=function(e,n,r){process.env.NODE_ENV!=="production"&&bt(_t(e.getItem)&&_t(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),l=this.defaultDimValueGetter=ib[a.sourceFormat];this._dimValueGetter=r||l,this._rawExtent=[];var u=lN(a);this._dimensions=ot(n,function(f){return process.env.NODE_ENV!=="production"&&u&&bt(f.property!=null),{type:f.type,property:f.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,n){var r=this._calcDimNameToIdx,a=this._dimensions,l=r.get(e);if(l!=null){if(a[l].type===n)return l}else l=a.length;return a[l]={type:n},r.set(e,l),this._chunks[l]=new TN[n||"float"](this._rawCount),this._rawExtent[l]=Tv(),l},t.prototype.collectOrdinalMeta=function(e,n){var r=this._chunks[e],a=this._dimensions[e],l=this._rawExtent,u=a.ordinalOffset||0,f=r.length;u===0&&(l[e]=Tv());for(var d=l[e],h=u;h<f;h++){var p=r[h]=n.parseAndCollect(r[h]);isNaN(p)||(d[0]=Math.min(p,d[0]),d[1]=Math.max(p,d[1]))}a.ordinalMeta=n,a.ordinalOffset=f,a.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var n=this._dimensions[e],r=n.ordinalMeta;return r},t.prototype.getDimensionProperty=function(e){var n=this._dimensions[e];return n&&n.property},t.prototype.appendData=function(e){process.env.NODE_ENV!=="production"&&bt(!this._indices,"appendData can only be called on raw data.");var n=this._provider,r=this.count();n.appendData(e);var a=n.count();return n.persistent||(a+=r),r<a&&this._initDataFromProvider(r,a,!0),[r,a]},t.prototype.appendValues=function(e,n){for(var r=this._chunks,a=this._dimensions,l=a.length,u=this._rawExtent,f=this.count(),d=f+Math.max(e.length,n||0),h=0;h<l;h++){var p=a[h];bN(r,h,p.type,d,!0)}for(var m=[],S=f;S<d;S++)for(var _=S-f,x=0;x<l;x++){var p=a[x],E=ib.arrayRows.call(this,e[_]||m,p.property,_,x);r[x][S]=E;var b=u[x];E<b[0]&&(b[0]=E),E>b[1]&&(b[1]=E)}return this._rawCount=this._count=d,{start:f,end:d}},t.prototype._initDataFromProvider=function(e,n,r){for(var a=this._provider,l=this._chunks,u=this._dimensions,f=u.length,d=this._rawExtent,h=ot(u,function(A){return A.property}),p=0;p<f;p++){var m=u[p];d[p]||(d[p]=Tv()),bN(l,p,m.type,n,r)}if(a.fillStorage)a.fillStorage(e,n,l,d);else for(var S=[],_=e;_<n;_++){S=a.getItem(_,S);for(var x=0;x<f;x++){var E=l[x],b=this._dimValueGetter(S,h[x],_,x);E[_]=b;var D=d[x];b<D[0]&&(D[0]=b),b>D[1]&&(D[1]=b)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=n,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,n){if(!(n>=0&&n<this._count))return NaN;var r=this._chunks[e];return r?r[this.getRawIndex(n)]:NaN},t.prototype.getValues=function(e,n){var r=[],a=[];if(n==null){n=e,e=[];for(var l=0;l<this._dimensions.length;l++)a.push(l)}else a=e;for(var l=0,u=a.length;l<u;l++)r.push(this.get(a[l],n));return r},t.prototype.getByRawIndex=function(e,n){if(!(n>=0&&n<this._rawCount))return NaN;var r=this._chunks[e];return r?r[n]:NaN},t.prototype.getSum=function(e){var n=this._chunks[e],r=0;if(n)for(var a=0,l=this.count();a<l;a++){var u=this.get(e,a);isNaN(u)||(r+=u)}return r},t.prototype.getMedian=function(e){var n=[];this.each([e],function(l){isNaN(l)||n.push(l)});var r=n.sort(function(l,u){return l-u}),a=this.count();return a===0?0:a%2===1?r[(a-1)/2]:(r[a/2]+r[a/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var n=this._indices,r=n[e];if(r!=null&&r<this._count&&r===e)return e;for(var a=0,l=this._count-1;a<=l;){var u=(a+l)/2|0;if(n[u]<e)a=u+1;else if(n[u]>e)l=u-1;else return u}return-1},t.prototype.indicesOfNearest=function(e,n,r){var a=this._chunks,l=a[e],u=[];if(!l)return u;r==null&&(r=1/0);for(var f=1/0,d=-1,h=0,p=0,m=this.count();p<m;p++){var S=this.getRawIndex(p),_=n-l[S],x=Math.abs(_);x<=r&&((x<f||x===f&&_>=0&&d<0)&&(f=x,d=_,h=0),_===d&&(u[h++]=p))}return u.length=h,u},t.prototype.getIndices=function(){var e,n=this._indices;if(n){var r=n.constructor,a=this._count;if(r===Array){e=new r(a);for(var l=0;l<a;l++)e[l]=n[l]}else e=new r(n.buffer,0,a)}else{var r=Dg(this._rawCount);e=new r(this.count());for(var l=0;l<e.length;l++)e[l]=l}return e},t.prototype.filter=function(e,n){if(!this._count)return this;for(var r=this.clone(),a=r.count(),l=Dg(r._rawCount),u=new l(a),f=[],d=e.length,h=0,p=e[0],m=r._chunks,S=0;S<a;S++){var _=void 0,x=r.getRawIndex(S);if(d===0)_=n(S);else if(d===1){var E=m[p][x];_=n(E,S)}else{for(var b=0;b<d;b++)f[b]=m[e[b]][x];f[b]=S,_=n.apply(null,f)}_&&(u[h++]=x)}return h<a&&(r._indices=u),r._count=h,r._extent=[],r._updateGetRawIdx(),r},t.prototype.selectRange=function(e){var n=this.clone(),r=n._count;if(!r)return this;var a=kn(e),l=a.length;if(!l)return this;var u=n.count(),f=Dg(n._rawCount),d=new f(u),h=0,p=a[0],m=e[p][0],S=e[p][1],_=n._chunks,x=!1;if(!n._indices){var E=0;if(l===1){for(var b=_[a[0]],D=0;D<r;D++){var A=b[D];(A>=m&&A<=S||isNaN(A))&&(d[h++]=E),E++}x=!0}else if(l===2){for(var b=_[a[0]],O=_[a[1]],P=e[a[1]][0],I=e[a[1]][1],D=0;D<r;D++){var A=b[D],F=O[D];(A>=m&&A<=S||isNaN(A))&&(F>=P&&F<=I||isNaN(F))&&(d[h++]=E),E++}x=!0}}if(!x)if(l===1)for(var D=0;D<u;D++){var U=n.getRawIndex(D),A=_[a[0]][U];(A>=m&&A<=S||isNaN(A))&&(d[h++]=U)}else for(var D=0;D<u;D++){for(var H=!0,U=n.getRawIndex(D),j=0;j<l;j++){var X=a[j],A=_[X][U];(A<e[X][0]||A>e[X][1])&&(H=!1)}H&&(d[h++]=n.getRawIndex(D))}return h<u&&(n._indices=d),n._count=h,n._extent=[],n._updateGetRawIdx(),n},t.prototype.map=function(e,n){var r=this.clone(e);return this._updateDims(r,e,n),r},t.prototype.modify=function(e,n){this._updateDims(this,e,n)},t.prototype._updateDims=function(e,n,r){for(var a=e._chunks,l=[],u=n.length,f=e.count(),d=[],h=e._rawExtent,p=0;p<n.length;p++)h[n[p]]=Tv();for(var m=0;m<f;m++){for(var S=e.getRawIndex(m),_=0;_<u;_++)d[_]=a[n[_]][S];d[u]=m;var x=r&&r.apply(null,d);if(x!=null){typeof x!="object"&&(l[0]=x,x=l);for(var p=0;p<x.length;p++){var E=n[p],b=x[p],D=h[E],A=a[E];A&&(A[S]=b),b<D[0]&&(D[0]=b),b>D[1]&&(D[1]=b)}}}},t.prototype.lttbDownSample=function(e,n){var r=this.clone([e],!0),a=r._chunks,l=a[e],u=this.count(),f=0,d=Math.floor(1/n),h=this.getRawIndex(0),p,m,S,_=new(Dg(this._rawCount))(Math.min((Math.ceil(u/d)+2)*2,u));_[f++]=h;for(var x=1;x<u-1;x+=d){for(var E=Math.min(x+d,u-1),b=Math.min(x+d*2,u),D=(b+E)/2,A=0,O=E;O<b;O++){var P=this.getRawIndex(O),I=l[P];isNaN(I)||(A+=I)}A/=b-E;var F=x,U=Math.min(x+d,u),H=x-1,j=l[h];p=-1,S=F;for(var X=-1,G=0,O=F;O<U;O++){var P=this.getRawIndex(O),I=l[P];if(isNaN(I)){G++,X<0&&(X=P);continue}m=Math.abs((H-D)*(I-j)-(H-O)*(A-j)),m>p&&(p=m,S=P)}G>0&&G<U-F&&(_[f++]=Math.min(X,S),S=Math.max(X,S)),_[f++]=S,h=S}return _[f++]=this.getRawIndex(u-1),r._count=f,r._indices=_,r.getRawIndex=this._getRawIdx,r},t.prototype.downSample=function(e,n,r,a){for(var l=this.clone([e],!0),u=l._chunks,f=[],d=Math.floor(1/n),h=u[e],p=this.count(),m=l._rawExtent[e]=Tv(),S=new(Dg(this._rawCount))(Math.ceil(p/d)),_=0,x=0;x<p;x+=d){d>p-x&&(d=p-x,f.length=d);for(var E=0;E<d;E++){var b=this.getRawIndex(x+E);f[E]=h[b]}var D=r(f),A=this.getRawIndex(Math.min(x+a(f,D)||0,p-1));h[A]=D,D<m[0]&&(m[0]=D),D>m[1]&&(m[1]=D),S[_++]=A}return l._count=_,l._indices=S,l._updateGetRawIdx(),l},t.prototype.each=function(e,n){if(this._count)for(var r=e.length,a=this._chunks,l=0,u=this.count();l<u;l++){var f=this.getRawIndex(l);switch(r){case 0:n(l);break;case 1:n(a[e[0]][f],l);break;case 2:n(a[e[0]][f],a[e[1]][f],l);break;default:for(var d=0,h=[];d<r;d++)h[d]=a[e[d]][f];h[d]=l,n.apply(null,h)}}},t.prototype.getDataExtent=function(e){var n=this._chunks[e],r=Tv();if(!n)return r;var a=this.count(),l=!this._indices,u;if(l)return this._rawExtent[e].slice();if(u=this._extent[e],u)return u.slice();u=r;for(var f=u[0],d=u[1],h=0;h<a;h++){var p=this.getRawIndex(h),m=n[p];m<f&&(f=m),m>d&&(d=m)}return u=[f,d],this._extent[e]=u,u},t.prototype.getRawDataItem=function(e){var n=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],a=this._chunks,l=0;l<a.length;l++)r.push(a[l][n]);return r},t.prototype.clone=function(e,n){var r=new t,a=this._chunks,l=e&&Yd(e,function(f,d){return f[d]=!0,f},{});if(l)for(var u=0;u<a.length;u++)r._chunks[u]=l[u]?l9(a[u]):a[u];else r._chunks=a;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Qt(this._extent),e._rawExtent=Qt(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,n=void 0;if(e===Array){var r=this._indices.length;n=new e(r);for(var a=0;a<r;a++)n[a]=this._indices[a]}else n=new e(this._indices);return n}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(n,r,a,l){return O_(n[l],this._dimensions[l])}ib={arrayRows:e,objectRows:function(n,r,a,l){return O_(n[r],this._dimensions[l])},keyedColumns:e,original:function(n,r,a,l){var u=n&&(n.value==null?n:n.value);return O_(u instanceof Array?u[l]:u,this._dimensions[l])},typedArray:function(n,r,a,l){return n[l]}}}(),t}();const ab=u9;var EN=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,n){this._sourceList=e,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,a,l;if(Mg(e)){var u=e,f=void 0,d=void 0,h=void 0;if(r){var p=n[0];p.prepareSource(),h=p.getSource(),f=h.data,d=h.sourceFormat,l=[p._getVersionSign()]}else f=u.get("data",!0),d=ea(f)?bu:lo,l=[];var m=this._getSourceMetaRawOption()||{},S=h&&h.metaRawOption||{},_=kt(m.seriesLayoutBy,S.seriesLayoutBy)||null,x=kt(m.sourceHeader,S.sourceHeader),E=kt(m.dimensions,S.dimensions),b=_!==S.seriesLayoutBy||!!x!=!!S.sourceHeader||E;a=b?[JT(f,{seriesLayoutBy:_,sourceHeader:x,dimensions:E},d)]:[]}else{var D=e;if(r){var A=this._applyTransform(n);a=A.sourceList,l=A.upstreamSignList}else{var O=D.get("source",!0);a=[JT(O,this._getSourceMetaRawOption(),null)],l=[]}}process.env.NODE_ENV!=="production"&&bt(a&&l),this._setLocalSource(a,l)},t.prototype._applyTransform=function(e){var n=this._sourceHost,r=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&bt(a!=null||r!=null),a!=null){var l="";e.length!==1&&(process.env.NODE_ENV!=="production"&&(l="When using `fromTransformResult`, there should be only one upstream dataset"),MN(l))}var u,f=[],d=[];return W(e,function(h){h.prepareSource();var p=h.getSource(a||0),m="";a!=null&&!p&&(process.env.NODE_ENV!=="production"&&(m="Can not retrieve result by `fromTransformResult`: "+a),MN(m)),f.push(p),d.push(h._getVersionSign())}),r?u=r9(r,f,{datasetIndex:n.componentIndex}):a!=null&&(u=[z$(f[0])]),{sourceList:u,upstreamSignList:d}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),n=0;n<e.length;n++){var r=e[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var n=this._sourceList[e];if(!n){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(e)}return n},t.prototype.getSharedDataStore=function(e){process.env.NODE_ENV!=="production"&&bt(Mg(this._sourceHost),"Can only call getDataStore on series source manager.");var n=e.makeStoreSchema();return this._innerGetDataStore(n.dimensions,e.source,n.hash)},t.prototype._innerGetDataStore=function(e,n,r){var a=0,l=this._storeList,u=l[a];u||(u=l[a]={});var f=u[r];if(!f){var d=this._getUpstreamSourceManagers()[0];Mg(this._sourceHost)&&d?f=d._innerGetDataStore(e,n,r):(f=new ab,f.initData(new fN(n,e.length),e)),u[r]=f}return f},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Mg(e)){var n=Uk(e);return n?[n.getSourceManager()]:[]}else return ot(o$(e),function(r){return r.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,n,r,a;if(Mg(e))n=e.get("seriesLayoutBy",!0),r=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var l=e;n=l.get("seriesLayoutBy",!0),r=l.get("sourceHeader",!0),a=l.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:r,dimensions:a}},t}();function DN(t){var e=t.option.transform;e&&E0(t.option.transform)}function Mg(t){return t.mainType==="series"}function MN(t){throw new Error(t)}var RN="line-height:1";function AN(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,a=t.fontWeight||"400",l=t.color||"#464646",u=t.fontSize||14,f=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+to(r+"")+"px;color:"+to(n)+";font-weight:"+to(a+""),valueStyle:"font-size:"+to(u+"")+"px;color:"+to(l)+";font-weight:"+to(f+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:a},valueStyle:{fontSize:u,fill:l,fontWeight:f}}}var s9=[0,10,20,30],f9=["",`
204
+ `);B6(h)}return ot(d,function(p,m){var S="";it(p)||(process.env.NODE_ENV!=="production"&&(S="A transform should not return some empty results."),Ht(S)),p.data||(process.env.NODE_ENV!=="production"&&(S="Transform result data should be not be null or undefined"),Ht(S));var _=SN(p.data);fb(_)||(process.env.NODE_ENV!=="production"&&(S="Transform result data should be array rows or object rows."),Ht(S));var x,E=e[0];if(E&&m===0&&!p.dimensions){var b=E.startIndex;b&&(p.data=E.data.slice(0,b).concat(p.data)),x={seriesLayoutBy:Al,sourceHeader:b,dimensions:E.metaRawOption.dimensions}}else x={seriesLayoutBy:Al,sourceHeader:0,dimensions:p.dimensions};return ob(p.data,x,null)})}function fb(t){return t===ki||t===Fo}var z_="undefined",rj=typeof Uint32Array===z_?Array:Uint32Array,ij=typeof Uint16Array===z_?Array:Uint16Array,FN=typeof Int32Array===z_?Array:Int32Array,BN=typeof Float64Array===z_?Array:Float64Array,UN={float:BN,int:FN,ordinal:Array,number:Array,time:BN},cb;function Dg(t){return t>65535?rj:ij}function Ev(){return[1/0,-1/0]}function aj(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function VN(t,e,n,r,a){var l=UN[n||"float"];if(a){var u=t[e],f=u&&u.length;if(f!==r){for(var d=new l(r),h=0;h<f;h++)d[h]=u[h];t[e]=d}}else t[e]=new l(r)}var oj=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=xt()}return t.prototype.initData=function(e,n,r){process.env.NODE_ENV!=="production"&&bt(_t(e.getItem)&&_t(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),l=this.defaultDimValueGetter=cb[a.sourceFormat];this._dimValueGetter=r||l,this._rawExtent=[];var u=xN(a);this._dimensions=ot(n,function(f){return process.env.NODE_ENV!=="production"&&u&&bt(f.property!=null),{type:f.type,property:f.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,n){var r=this._calcDimNameToIdx,a=this._dimensions,l=r.get(e);if(l!=null){if(a[l].type===n)return l}else l=a.length;return a[l]={type:n},r.set(e,l),this._chunks[l]=new UN[n||"float"](this._rawCount),this._rawExtent[l]=Ev(),l},t.prototype.collectOrdinalMeta=function(e,n){var r=this._chunks[e],a=this._dimensions[e],l=this._rawExtent,u=a.ordinalOffset||0,f=r.length;u===0&&(l[e]=Ev());for(var d=l[e],h=u;h<f;h++){var p=r[h]=n.parseAndCollect(r[h]);isNaN(p)||(d[0]=Math.min(p,d[0]),d[1]=Math.max(p,d[1]))}a.ordinalMeta=n,a.ordinalOffset=f,a.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var n=this._dimensions[e],r=n.ordinalMeta;return r},t.prototype.getDimensionProperty=function(e){var n=this._dimensions[e];return n&&n.property},t.prototype.appendData=function(e){process.env.NODE_ENV!=="production"&&bt(!this._indices,"appendData can only be called on raw data.");var n=this._provider,r=this.count();n.appendData(e);var a=n.count();return n.persistent||(a+=r),r<a&&this._initDataFromProvider(r,a,!0),[r,a]},t.prototype.appendValues=function(e,n){for(var r=this._chunks,a=this._dimensions,l=a.length,u=this._rawExtent,f=this.count(),d=f+Math.max(e.length,n||0),h=0;h<l;h++){var p=a[h];VN(r,h,p.type,d,!0)}for(var m=[],S=f;S<d;S++)for(var _=S-f,x=0;x<l;x++){var p=a[x],E=cb.arrayRows.call(this,e[_]||m,p.property,_,x);r[x][S]=E;var b=u[x];E<b[0]&&(b[0]=E),E>b[1]&&(b[1]=E)}return this._rawCount=this._count=d,{start:f,end:d}},t.prototype._initDataFromProvider=function(e,n,r){for(var a=this._provider,l=this._chunks,u=this._dimensions,f=u.length,d=this._rawExtent,h=ot(u,function(A){return A.property}),p=0;p<f;p++){var m=u[p];d[p]||(d[p]=Ev()),VN(l,p,m.type,n,r)}if(a.fillStorage)a.fillStorage(e,n,l,d);else for(var S=[],_=e;_<n;_++){S=a.getItem(_,S);for(var x=0;x<f;x++){var E=l[x],b=this._dimValueGetter(S,h[x],_,x);E[_]=b;var D=d[x];b<D[0]&&(D[0]=b),b>D[1]&&(D[1]=b)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=n,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,n){if(!(n>=0&&n<this._count))return NaN;var r=this._chunks[e];return r?r[this.getRawIndex(n)]:NaN},t.prototype.getValues=function(e,n){var r=[],a=[];if(n==null){n=e,e=[];for(var l=0;l<this._dimensions.length;l++)a.push(l)}else a=e;for(var l=0,u=a.length;l<u;l++)r.push(this.get(a[l],n));return r},t.prototype.getByRawIndex=function(e,n){if(!(n>=0&&n<this._rawCount))return NaN;var r=this._chunks[e];return r?r[n]:NaN},t.prototype.getSum=function(e){var n=this._chunks[e],r=0;if(n)for(var a=0,l=this.count();a<l;a++){var u=this.get(e,a);isNaN(u)||(r+=u)}return r},t.prototype.getMedian=function(e){var n=[];this.each([e],function(l){isNaN(l)||n.push(l)});var r=n.sort(function(l,u){return l-u}),a=this.count();return a===0?0:a%2===1?r[(a-1)/2]:(r[a/2]+r[a/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var n=this._indices,r=n[e];if(r!=null&&r<this._count&&r===e)return e;for(var a=0,l=this._count-1;a<=l;){var u=(a+l)/2|0;if(n[u]<e)a=u+1;else if(n[u]>e)l=u-1;else return u}return-1},t.prototype.indicesOfNearest=function(e,n,r){var a=this._chunks,l=a[e],u=[];if(!l)return u;r==null&&(r=1/0);for(var f=1/0,d=-1,h=0,p=0,m=this.count();p<m;p++){var S=this.getRawIndex(p),_=n-l[S],x=Math.abs(_);x<=r&&((x<f||x===f&&_>=0&&d<0)&&(f=x,d=_,h=0),_===d&&(u[h++]=p))}return u.length=h,u},t.prototype.getIndices=function(){var e,n=this._indices;if(n){var r=n.constructor,a=this._count;if(r===Array){e=new r(a);for(var l=0;l<a;l++)e[l]=n[l]}else e=new r(n.buffer,0,a)}else{var r=Dg(this._rawCount);e=new r(this.count());for(var l=0;l<e.length;l++)e[l]=l}return e},t.prototype.filter=function(e,n){if(!this._count)return this;for(var r=this.clone(),a=r.count(),l=Dg(r._rawCount),u=new l(a),f=[],d=e.length,h=0,p=e[0],m=r._chunks,S=0;S<a;S++){var _=void 0,x=r.getRawIndex(S);if(d===0)_=n(S);else if(d===1){var E=m[p][x];_=n(E,S)}else{for(var b=0;b<d;b++)f[b]=m[e[b]][x];f[b]=S,_=n.apply(null,f)}_&&(u[h++]=x)}return h<a&&(r._indices=u),r._count=h,r._extent=[],r._updateGetRawIdx(),r},t.prototype.selectRange=function(e){var n=this.clone(),r=n._count;if(!r)return this;var a=kn(e),l=a.length;if(!l)return this;var u=n.count(),f=Dg(n._rawCount),d=new f(u),h=0,p=a[0],m=e[p][0],S=e[p][1],_=n._chunks,x=!1;if(!n._indices){var E=0;if(l===1){for(var b=_[a[0]],D=0;D<r;D++){var A=b[D];(A>=m&&A<=S||isNaN(A))&&(d[h++]=E),E++}x=!0}else if(l===2){for(var b=_[a[0]],O=_[a[1]],P=e[a[1]][0],I=e[a[1]][1],D=0;D<r;D++){var A=b[D],F=O[D];(A>=m&&A<=S||isNaN(A))&&(F>=P&&F<=I||isNaN(F))&&(d[h++]=E),E++}x=!0}}if(!x)if(l===1)for(var D=0;D<u;D++){var U=n.getRawIndex(D),A=_[a[0]][U];(A>=m&&A<=S||isNaN(A))&&(d[h++]=U)}else for(var D=0;D<u;D++){for(var H=!0,U=n.getRawIndex(D),j=0;j<l;j++){var X=a[j],A=_[X][U];(A<e[X][0]||A>e[X][1])&&(H=!1)}H&&(d[h++]=n.getRawIndex(D))}return h<u&&(n._indices=d),n._count=h,n._extent=[],n._updateGetRawIdx(),n},t.prototype.map=function(e,n){var r=this.clone(e);return this._updateDims(r,e,n),r},t.prototype.modify=function(e,n){this._updateDims(this,e,n)},t.prototype._updateDims=function(e,n,r){for(var a=e._chunks,l=[],u=n.length,f=e.count(),d=[],h=e._rawExtent,p=0;p<n.length;p++)h[n[p]]=Ev();for(var m=0;m<f;m++){for(var S=e.getRawIndex(m),_=0;_<u;_++)d[_]=a[n[_]][S];d[u]=m;var x=r&&r.apply(null,d);if(x!=null){typeof x!="object"&&(l[0]=x,x=l);for(var p=0;p<x.length;p++){var E=n[p],b=x[p],D=h[E],A=a[E];A&&(A[S]=b),b<D[0]&&(D[0]=b),b>D[1]&&(D[1]=b)}}}},t.prototype.lttbDownSample=function(e,n){var r=this.clone([e],!0),a=r._chunks,l=a[e],u=this.count(),f=0,d=Math.floor(1/n),h=this.getRawIndex(0),p,m,S,_=new(Dg(this._rawCount))(Math.min((Math.ceil(u/d)+2)*2,u));_[f++]=h;for(var x=1;x<u-1;x+=d){for(var E=Math.min(x+d,u-1),b=Math.min(x+d*2,u),D=(b+E)/2,A=0,O=E;O<b;O++){var P=this.getRawIndex(O),I=l[P];isNaN(I)||(A+=I)}A/=b-E;var F=x,U=Math.min(x+d,u),H=x-1,j=l[h];p=-1,S=F;for(var X=-1,G=0,O=F;O<U;O++){var P=this.getRawIndex(O),I=l[P];if(isNaN(I)){G++,X<0&&(X=P);continue}m=Math.abs((H-D)*(I-j)-(H-O)*(A-j)),m>p&&(p=m,S=P)}G>0&&G<U-F&&(_[f++]=Math.min(X,S),S=Math.max(X,S)),_[f++]=S,h=S}return _[f++]=this.getRawIndex(u-1),r._count=f,r._indices=_,r.getRawIndex=this._getRawIdx,r},t.prototype.downSample=function(e,n,r,a){for(var l=this.clone([e],!0),u=l._chunks,f=[],d=Math.floor(1/n),h=u[e],p=this.count(),m=l._rawExtent[e]=Ev(),S=new(Dg(this._rawCount))(Math.ceil(p/d)),_=0,x=0;x<p;x+=d){d>p-x&&(d=p-x,f.length=d);for(var E=0;E<d;E++){var b=this.getRawIndex(x+E);f[E]=h[b]}var D=r(f),A=this.getRawIndex(Math.min(x+a(f,D)||0,p-1));h[A]=D,D<m[0]&&(m[0]=D),D>m[1]&&(m[1]=D),S[_++]=A}return l._count=_,l._indices=S,l._updateGetRawIdx(),l},t.prototype.each=function(e,n){if(this._count)for(var r=e.length,a=this._chunks,l=0,u=this.count();l<u;l++){var f=this.getRawIndex(l);switch(r){case 0:n(l);break;case 1:n(a[e[0]][f],l);break;case 2:n(a[e[0]][f],a[e[1]][f],l);break;default:for(var d=0,h=[];d<r;d++)h[d]=a[e[d]][f];h[d]=l,n.apply(null,h)}}},t.prototype.getDataExtent=function(e){var n=this._chunks[e],r=Ev();if(!n)return r;var a=this.count(),l=!this._indices,u;if(l)return this._rawExtent[e].slice();if(u=this._extent[e],u)return u.slice();u=r;for(var f=u[0],d=u[1],h=0;h<a;h++){var p=this.getRawIndex(h),m=n[p];m<f&&(f=m),m>d&&(d=m)}return u=[f,d],this._extent[e]=u,u},t.prototype.getRawDataItem=function(e){var n=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],a=this._chunks,l=0;l<a.length;l++)r.push(a[l][n]);return r},t.prototype.clone=function(e,n){var r=new t,a=this._chunks,l=e&&Xd(e,function(f,d){return f[d]=!0,f},{});if(l)for(var u=0;u<a.length;u++)r._chunks[u]=l[u]?aj(a[u]):a[u];else r._chunks=a;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Qt(this._extent),e._rawExtent=Qt(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,n=void 0;if(e===Array){var r=this._indices.length;n=new e(r);for(var a=0;a<r;a++)n[a]=this._indices[a]}else n=new e(this._indices);return n}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(n,r,a,l){return I_(n[l],this._dimensions[l])}cb={arrayRows:e,objectRows:function(n,r,a,l){return I_(n[r],this._dimensions[l])},keyedColumns:e,original:function(n,r,a,l){var u=n&&(n.value==null?n:n.value);return I_(u instanceof Array?u[l]:u,this._dimensions[l])},typedArray:function(n,r,a,l){return n[l]}}}(),t}();const db=oj;var HN=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,n){this._sourceList=e,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,a,l;if(Mg(e)){var u=e,f=void 0,d=void 0,h=void 0;if(r){var p=n[0];p.prepareSource(),h=p.getSource(),f=h.data,d=h.sourceFormat,l=[p._getVersionSign()]}else f=u.get("data",!0),d=ea(f)?Eu:lo,l=[];var m=this._getSourceMetaRawOption()||{},S=h&&h.metaRawOption||{},_=kt(m.seriesLayoutBy,S.seriesLayoutBy)||null,x=kt(m.sourceHeader,S.sourceHeader),E=kt(m.dimensions,S.dimensions),b=_!==S.seriesLayoutBy||!!x!=!!S.sourceHeader||E;a=b?[ob(f,{seriesLayoutBy:_,sourceHeader:x,dimensions:E},d)]:[]}else{var D=e;if(r){var A=this._applyTransform(n);a=A.sourceList,l=A.upstreamSignList}else{var O=D.get("source",!0);a=[ob(O,this._getSourceMetaRawOption(),null)],l=[]}}process.env.NODE_ENV!=="production"&&bt(a&&l),this._setLocalSource(a,l)},t.prototype._applyTransform=function(e){var n=this._sourceHost,r=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&bt(a!=null||r!=null),a!=null){var l="";e.length!==1&&(process.env.NODE_ENV!=="production"&&(l="When using `fromTransformResult`, there should be only one upstream dataset"),$N(l))}var u,f=[],d=[];return W(e,function(h){h.prepareSource();var p=h.getSource(a||0),m="";a!=null&&!p&&(process.env.NODE_ENV!=="production"&&(m="Can not retrieve result by `fromTransformResult`: "+a),$N(m)),f.push(p),d.push(h._getVersionSign())}),r?u=tj(r,f,{datasetIndex:n.componentIndex}):a!=null&&(u=[P9(f[0])]),{sourceList:u,upstreamSignList:d}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),n=0;n<e.length;n++){var r=e[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var n=this._sourceList[e];if(!n){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(e)}return n},t.prototype.getSharedDataStore=function(e){process.env.NODE_ENV!=="production"&&bt(Mg(this._sourceHost),"Can only call getDataStore on series source manager.");var n=e.makeStoreSchema();return this._innerGetDataStore(n.dimensions,e.source,n.hash)},t.prototype._innerGetDataStore=function(e,n,r){var a=0,l=this._storeList,u=l[a];u||(u=l[a]={});var f=u[r];if(!f){var d=this._getUpstreamSourceManagers()[0];Mg(this._sourceHost)&&d?f=d._innerGetDataStore(e,n,r):(f=new db,f.initData(new EN(n,e.length),e)),u[r]=f}return f},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Mg(e)){var n=nN(e);return n?[n.getSourceManager()]:[]}else return ot(i9(e),function(r){return r.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,n,r,a;if(Mg(e))n=e.get("seriesLayoutBy",!0),r=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var l=e;n=l.get("seriesLayoutBy",!0),r=l.get("sourceHeader",!0),a=l.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:r,dimensions:a}},t}();function GN(t){var e=t.option.transform;e&&A0(t.option.transform)}function Mg(t){return t.mainType==="series"}function $N(t){throw new Error(t)}var jN="line-height:1";function YN(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,a=t.fontWeight||"400",l=t.color||"#464646",u=t.fontSize||14,f=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+to(r+"")+"px;color:"+to(n)+";font-weight:"+to(a+""),valueStyle:"font-size:"+to(u+"")+"px;color:"+to(l)+";font-weight:"+to(f+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:a},valueStyle:{fontSize:u,fill:l,fontWeight:f}}}var lj=[0,10,20,30],uj=["",`
205
205
  `,`
206
206
 
207
207
  `,`
208
208
 
209
209
 
210
- `];function Rg(t,e){return e.type=t,e}function ob(t){return t.type==="section"}function LN(t){return ob(t)?c9:d9}function ON(t){if(ob(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return W(t.blocks,function(a){var l=ON(a);l>=e&&(e=l+ +(r&&(!l||ob(a)&&!a.noHeader)))}),e}return 0}function c9(t,e,n,r){var a=e.noHeader,l=v9(ON(e)),u=[],f=e.blocks||[];bt(!f||Be(f)),f=f||[];var d=t.orderMode;if(e.sortBlocks&&d){f=f.slice();var h={valueAsc:"asc",valueDesc:"desc"};if(yu(h,d)){var p=new SN(h[d],null);f.sort(function(x,E){return p.evaluate(x.sortParam,E.sortParam)})}else d==="seriesDesc"&&f.reverse()}W(f,function(x,E){var b=e.valueFormatter,D=LN(x)(b?Re(Re({},t),{valueFormatter:b}):t,x,E>0?l.html:0,r);D!=null&&u.push(D)});var m=t.renderMode==="richText"?u.join(l.richText):lb(u.join(""),a?n:l.html);if(a)return m;var S=VT(e.header,"ordinal",t.useUTC),_=AN(r,t.renderMode).nameStyle;return t.renderMode==="richText"?NN(t,S,_)+l.richText+m:lb('<div style="'+_+";"+RN+';">'+to(S)+"</div>"+m,n)}function d9(t,e,n,r){var a=t.renderMode,l=e.noName,u=e.noValue,f=!e.markerType,d=e.name,h=t.useUTC,p=e.valueFormatter||t.valueFormatter||function(P){return P=Be(P)?P:[P],ot(P,function(I,F){return VT(I,Be(_)?_[F]:_,h)})};if(!(l&&u)){var m=f?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),S=l?"":VT(d,"ordinal",h),_=e.valueType,x=u?[]:p(e.value),E=!f||!l,b=!f&&l,D=AN(r,a),A=D.nameStyle,O=D.valueStyle;return a==="richText"?(f?"":m)+(l?"":NN(t,S,A))+(u?"":g9(t,x,E,b,O)):lb((f?"":m)+(l?"":h9(S,!f,A))+(u?"":p9(x,E,b,O)),n)}}function kN(t,e,n,r,a,l){if(t){var u=LN(t),f={useUTC:a,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return u(f,t,0,l)}}function v9(t){return{html:s9[t],richText:f9[t]}}function lb(t,e){var n='<div style="clear:both"></div>',r="margin: "+e+"px 0 0";return'<div style="'+r+";"+RN+';">'+t+n+"</div>"}function h9(t,e,n){var r=e?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+to(t)+"</span>"}function p9(t,e,n,r){var a=n?"10px":"20px",l=e?"float:right;margin-left:"+a:"";return t=Be(t)?t:[t],'<span style="'+l+";"+r+'">'+ot(t,function(u){return to(u)}).join("&nbsp;&nbsp;")+"</span>"}function NN(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function g9(t,e,n,r,a){var l=[a],u=r?10:20;return n&&l.push({padding:[0,0,0,u],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Be(e)?e.join(" "):e,l)}function m9(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return _g(r)}function PN(t,e){var n=t.get("padding");return n??(e==="richText"?[8,10]:10)}var ub=function(){function t(){this.richTextStyles={},this._nextStyleNameId=gO()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,n,r){var a=r==="richText"?this._generateStyleName():null,l=KG({color:n,type:e,renderMode:r,markerId:a});return et(l)?l:(process.env.NODE_ENV!=="production"&&bt(a),this.richTextStyles[a]=l.style,l.content)},t.prototype.wrapRichTextStyle=function(e,n){var r={};Be(n)?W(n,function(l){return Re(r,l)}):Re(r,n);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+e+"}"},t}();function y9(t){var e=t.series,n=t.dataIndex,r=t.multipleSeries,a=e.getData(),l=a.mapDimensionsAll("defaultedTooltip"),u=l.length,f=e.getRawValue(n),d=Be(f),h=m9(e,n),p,m,S,_;if(u>1||d&&!u){var x=_9(f,e,n,l,h);p=x.inlineValues,m=x.inlineValueTypes,S=x.blocks,_=x.inlineValues[0]}else if(u){var E=a.getDimensionInfo(l[0]);_=p=xv(a,n,l[0]),m=E.type}else _=p=d?f[0]:f;var b=DO(e),D=b&&e.name||"",A=a.getName(n),O=r?D:A;return Rg("section",{header:D,noHeader:r||!b,sortParam:_,blocks:[Rg("nameValue",{markerType:"item",markerColor:h,name:O,noName:!yl(O),value:p,valueType:m})].concat(S||[])})}function _9(t,e,n,r,a){var l=e.getData(),u=Yd(t,function(m,S,_){var x=l.getDimensionInfo(_);return m=m||x&&x.tooltip!==!1&&x.displayName!=null},!1),f=[],d=[],h=[];r.length?W(r,function(m){p(xv(l,n,m),m)}):W(t,p);function p(m,S){var _=l.getDimensionInfo(S);!_||_.otherDims.tooltip===!1||(u?h.push(Rg("nameValue",{markerType:"subItem",markerColor:a,name:_.displayName,value:m,valueType:_.type})):(f.push(m),d.push(_.type)))}return{inlineValues:f,inlineValueTypes:d,blocks:h}}var ks=jn();function N_(t,e){return t.getName(e)||t.getId(e)}var P_="__universalTransitionEnabled",I_=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return e.prototype.init=function(n,r,a){this.seriesIndex=this.componentIndex,this.dataTask=Eg({count:C9,reset:w9}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,a);var l=ks(this).sourceManager=new EN(this);l.prepareSource();var u=this.getInitialData(n,a);zN(u,this),this.dataTask.context.data=u,process.env.NODE_ENV!=="production"&&bt(u,"getInitialData returned invalid data."),ks(this).dataBeforeProcessed=u,IN(this),this._initSelectedMapFromData(u)},e.prototype.mergeDefaultAndTheme=function(n,r){var a=Sg(this),l=a?$T(n):{},u=this.subType;En.hasClass(u)&&(u+="Series"),cn(n,r.getTheme().get(this.subType)),cn(n,this.getDefaultOption()),wO(n,"label",["show"]),this.fillDataTextStyle(n.data),a&&Cg(n,l,a)},e.prototype.mergeOption=function(n,r){n=cn(this.option,n,!0),this.fillDataTextStyle(n.data);var a=Sg(this);a&&Cg(this.option,n,a);var l=ks(this).sourceManager;l.dirty(),l.prepareSource();var u=this.getInitialData(n,r);zN(u,this),this.dataTask.dirty(),this.dataTask.context.data=u,ks(this).dataBeforeProcessed=u,IN(this),this._initSelectedMapFromData(u)},e.prototype.fillDataTextStyle=function(n){if(n&&!ea(n))for(var r=["show"],a=0;a<n.length;a++)n[a]&&n[a].label&&wO(n[a],"label",r)},e.prototype.getInitialData=function(n,r){},e.prototype.appendData=function(n){var r=this.getRawData();r.appendData(n.data)},e.prototype.getData=function(n){var r=sb(this);if(r){var a=r.context.data;return n==null?a:a.getLinkedData(n)}else return ks(this).data},e.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},e.prototype.setData=function(n){var r=sb(this);if(r){var a=r.context;a.outputData=n,r!==this.dataTask&&(a.data=n)}ks(this).data=n},e.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return xt(n)},e.prototype.getSourceManager=function(){return ks(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return ks(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},e.prototype.formatTooltip=function(n,r,a){return y9({series:this,dataIndex:n,multipleSeries:r})},e.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(Tt.node&&!(n&&n.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(n,r,a){var l=this.ecModel,u=YT.prototype.getColorFromPalette.call(this,n,r,a);return u||(u=l.getColorFromPalette(n,r,a)),u},e.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},e.prototype.unselect=function(n,r){var a=this.option.selectedMap;if(a){var l=this.option.selectedMode,u=this.getData(r);if(l==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var f=0;f<n.length;f++){var d=n[f],h=N_(u,d);a[h]=!1,this._selectedDataIndicesMap[h]=-1}}},e.prototype.toggleSelect=function(n,r){for(var a=[],l=0;l<n.length;l++)a[0]=n[l],this.isSelected(n[l],r)?this.unselect(a,r):this.select(a,r)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,r=kn(n),a=[],l=0;l<r.length;l++){var u=n[r[l]];u>=0&&a.push(u)}return a},e.prototype.isSelected=function(n,r){var a=this.option.selectedMap;if(!a)return!1;var l=this.getData(r);return(a==="all"||a[N_(l,n)])&&!l.getItemModel(n).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[P_])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},e.prototype._innerSelect=function(n,r){var a,l,u=this.option,f=u.selectedMode,d=r.length;if(!(!f||!d)){if(f==="series")u.selectedMap="all";else if(f==="multiple"){it(u.selectedMap)||(u.selectedMap={});for(var h=u.selectedMap,p=0;p<d;p++){var m=r[p],S=N_(n,m);h[S]=!0,this._selectedDataIndicesMap[S]=n.getRawIndex(m)}}else if(f==="single"||f===!0){var _=r[d-1],S=N_(n,_);u.selectedMap=(a={},a[S]=!0,a),this._selectedDataIndicesMap=(l={},l[S]=n.getRawIndex(_),l)}}},e.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var r=[];n.hasItemOption&&n.each(function(a){var l=n.getRawDataItem(a);l&&l.selected&&r.push(a)}),r.length>0&&this._innerSelect(n,r)}},e.registerClass=function(n){return En.registerClass(n)},e.protoInitialize=function(){var n=e.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),e}(En);ml(I_,$$),ml(I_,YT),AO(I_,En);function IN(t){var e=t.name;DO(t)||(t.name=S9(t)||e)}function S9(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return W(n,function(a){var l=e.getDimensionInfo(a);l.displayName&&r.push(l.displayName)}),r.join(" ")}function C9(t){return t.model.getRawData().count()}function w9(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),x9}function x9(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function zN(t,e){W(fH(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,Aa(T9,e))})}function T9(t,e){var n=sb(t);return n&&n.setOutputEnd((e||this).count()),e}function sb(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(t.uid))}return r}}const bv=I_;var fb=function(){function t(){this.group=new Cl,this.uid=y_("viewComponent")}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,a){},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,a){},t.prototype.updateLayout=function(e,n,r,a){},t.prototype.updateVisual=function(e,n,r,a){},t.prototype.toggleBlurSeries=function(e,n,r){},t.prototype.eachRendered=function(e){var n=this.group;n&&n.traverse(e)},t}();Hx(fb),K0(fb);const Du=fb;function FN(){var t=jn();return function(e){var n=t(e),r=e.pipelineContext,a=!!n.large,l=!!n.progressiveRender,u=n.large=!!(r&&r.large),f=n.progressiveRender=!!(r&&r.progressiveRender);return(a!==u||l!==f)&&"reset"}}var BN=jn(),b9=FN(),cb=function(){function t(){this.group=new Cl,this.uid=y_("viewChart"),this.renderTask=Eg({plan:E9,reset:D9}),this.renderTask.context={view:this}}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,a){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},t.prototype.highlight=function(e,n,r,a){var l=e.getData(a&&a.dataType);if(!l){process.env.NODE_ENV!=="production"&&ci("Unknown dataType "+a.dataType);return}VN(l,a,"emphasis")},t.prototype.downplay=function(e,n,r,a){var l=e.getData(a&&a.dataType);if(!l){process.env.NODE_ENV!=="production"&&ci("Unknown dataType "+a.dataType);return}VN(l,a,"normal")},t.prototype.remove=function(e,n){this.group.removeAll()},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,a){this.render(e,n,r,a)},t.prototype.updateLayout=function(e,n,r,a){this.render(e,n,r,a)},t.prototype.updateVisual=function(e,n,r,a){this.render(e,n,r,a)},t.prototype.eachRendered=function(e){AT(this.group,e)},t.markUpdateMethod=function(e,n){BN(e).updateMethod=n},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function UN(t,e,n){t&&hv(t)&&(e==="emphasis"?fT:cT)(t,n)}function VN(t,e,n){var r=rg(t,e),a=e&&e.highlightKey!=null?E8(e.highlightKey):null;r!=null?W(rr(r),function(l){UN(t.getItemGraphicEl(l),n,a)}):t.eachItemGraphicEl(function(l){UN(l,n,a)})}Hx(cb,["dispose"]),K0(cb);function E9(t){return b9(t.model)}function D9(t){var e=t.model,n=t.ecModel,r=t.api,a=t.payload,l=e.pipelineContext.progressiveRender,u=t.view,f=a&&BN(a).updateMethod,d=l?"incrementalPrepareRender":f&&u[f]?f:"render";return d!=="render"&&u[d](e,n,r,a),M9[d]}var M9={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 Ev=cb;var z_="\0__throttleOriginMethod",HN="\0__throttleRate",GN="\0__throttleType";function db(t,e,n){var r,a=0,l=0,u=null,f,d,h,p;e=e||0;function m(){l=new Date().getTime(),u=null,t.apply(d,h||[])}var S=function(){for(var _=[],x=0;x<arguments.length;x++)_[x]=arguments[x];r=new Date().getTime(),d=this,h=_;var E=p||e,b=p||n;p=null,f=r-(b?a:l)-E,clearTimeout(u),b?u=setTimeout(m,E):f>=0?m():u=setTimeout(m,-f),a=r};return S.clear=function(){u&&(clearTimeout(u),u=null)},S.debounceNextCall=function(_){p=_},S}function $N(t,e,n,r){var a=t[e];if(a){var l=a[z_]||a,u=a[GN],f=a[HN];if(f!==n||u!==r){if(n==null||!r)return t[e]=l;a=t[e]=db(l,n,r==="debounce"),a[z_]=l,a[GN]=r,a[HN]=n}return a}}function vb(t,e){var n=t[e];n&&n[z_]&&(n.clear&&n.clear(),t[e]=n[z_])}var jN=jn(),YN={itemStyle:ag(mk,!0),lineStyle:ag(gk,!0)},R9={lineStyle:"stroke",itemStyle:"fill"};function WN(t,e){var n=t.visualStyleMapper||YN[e];return n||(console.warn("Unknown style type '"+e+"'."),YN.itemStyle)}function XN(t,e){var n=t.visualDrawType||R9[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var A9={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",a=t.getModel(r),l=WN(t,r),u=l(a),f=a.getShallow("decal");f&&(n.setVisual("decal",f),f.dirty=!0);var d=XN(t,r),h=u[d],p=_t(h)?h:null,m=u.fill==="auto"||u.stroke==="auto";if(!u[d]||p||m){var S=t.getColorFromPalette(t.name,null,e.getSeriesCount());u[d]||(u[d]=S,n.setVisual("colorFromPalette",!0)),u.fill=u.fill==="auto"||_t(u.fill)?S:u.fill,u.stroke=u.stroke==="auto"||_t(u.stroke)?S:u.stroke}if(n.setVisual("style",u),n.setVisual("drawType",d),!e.isSeriesFiltered(t)&&p)return n.setVisual("colorFromPalette",!1),{dataEach:function(_,x){var E=t.getDataParams(x),b=Re({},u);b[d]=p(E),_.setItemVisual(x,"style",b)}}}},Ag=new Oi,L9={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",a=WN(t,r),l=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(u,f){var d=u.getRawDataItem(f);if(d&&d[r]){Ag.option=d[r];var h=a(Ag),p=u.ensureUniqueItemVisual(f,"style");Re(p,h),Ag.option.decal&&(u.setItemVisual(f,"decal",Ag.option.decal),Ag.option.decal.dirty=!0),l in h&&u.setItemVisual(f,"colorFromPalette",!1)}}:null}}}},O9={performRawSeries:!0,overallReset:function(t){var e=xt();t.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var a=n.type+"-"+r,l=e.get(a);l||(l={},e.set(a,l)),jN(n).scope=l}}),t.eachSeries(function(n){if(!(n.isColorBySeries()||t.isSeriesFiltered(n))){var r=n.getRawData(),a={},l=n.getData(),u=jN(n).scope,f=n.visualStyleAccessPath||"itemStyle",d=XN(n,f);l.each(function(h){var p=l.getRawIndex(h);a[p]=h}),r.each(function(h){var p=a[h],m=l.getItemVisual(p,"colorFromPalette");if(m){var S=l.ensureUniqueItemVisual(p,"style"),_=r.getName(h)||h+"",x=r.count();S[d]=n.getColorFromPalette(_,u,x)}})}})}},F_=Math.PI;function k9(t,e){e=e||{},Vt(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Cl,r=new Kr({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var a=new ko({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),l=new Kr({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});n.add(l);var u;return e.showSpinner&&(u=new xT({shape:{startAngle:-F_/2,endAngle:-F_/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),u.animateShape(!0).when(1e3,{endAngle:F_*3/2}).start("circularInOut"),u.animateShape(!0).when(1e3,{startAngle:F_*3/2}).delay(300).start("circularInOut"),n.add(u)),n.resize=function(){var f=a.getBoundingRect().width,d=e.showSpinner?e.spinnerRadius:0,h=(t.getWidth()-d*2-(e.showSpinner&&f?10:0)-f)/2-(e.showSpinner&&f?0:5+f/2)+(e.showSpinner?0:f/2)+(f?0:d),p=t.getHeight()/2;e.showSpinner&&u.setShape({cx:h,cy:p}),l.setShape({x:h-d,y:p-d,width:d*2,height:d*2}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var N9=function(){function t(e,n,r,a){this._stageTaskMap=xt(),this.ecInstance=e,this.api=n,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return t.prototype.restoreData=function(e,n){e.restoreData(n),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},t.prototype.getPerformArgs=function(e,n){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),a=r.context,l=!n&&r.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>r.blockIndex,u=l?r.step:null,f=a&&a.modDataCount,d=f!=null?Math.ceil(f/u):null;return{step:u,modBy:d,modDataCount:f}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,n){var r=this._pipelineMap.get(e.uid),a=e.getData(),l=a.count(),u=r.progressiveEnabled&&n.incrementalPrepareRender&&l>=r.threshold,f=e.get("large")&&l>=e.get("largeThreshold"),d=e.get("progressiveChunkMode")==="mod"?l:null;e.pipelineContext=r.context={progressiveRender:u,modDataCount:d,large:f}},t.prototype.restorePipelines=function(e){var n=this,r=n._pipelineMap=xt();e.eachSeries(function(a){var l=a.getProgressive(),u=a.uid;r.set(u,{id:u,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:l&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(l||700),count:0}),n._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,n=this.api.getModel(),r=this.api;W(this._allHandlers,function(a){var l=e.get(a.uid)||e.set(a.uid,{}),u="";process.env.NODE_ENV!=="production"&&(u='"reset" and "overallReset" must not be both specified.'),bt(!(a.reset&&a.overallReset),u),a.reset&&this._createSeriesStageTask(a,l,n,r),a.overallReset&&this._createOverallStageTask(a,l,n,r)},this)},t.prototype.prepareView=function(e,n,r,a){var l=e.renderTask,u=l.context;u.model=n,u.ecModel=r,u.api=a,l.__block=!e.incrementalPrepareRender,this._pipe(n,l)},t.prototype.performDataProcessorTasks=function(e,n){this._performStageTasks(this._dataProcessorHandlers,e,n,{block:!0})},t.prototype.performVisualTasks=function(e,n,r){this._performStageTasks(this._visualHandlers,e,n,r)},t.prototype._performStageTasks=function(e,n,r,a){a=a||{};var l=!1,u=this;W(e,function(d,h){if(!(a.visualType&&a.visualType!==d.visualType)){var p=u._stageTaskMap.get(d.uid),m=p.seriesTaskMap,S=p.overallTask;if(S){var _,x=S.agentStubMap;x.each(function(b){f(a,b)&&(b.dirty(),_=!0)}),_&&S.dirty(),u.updatePayload(S,r);var E=u.getPerformArgs(S,a.block);x.each(function(b){b.perform(E)}),S.perform(E)&&(l=!0)}else m&&m.each(function(b,D){f(a,b)&&b.dirty();var A=u.getPerformArgs(b,a.block);A.skip=!d.performRawSeries&&n.isSeriesFiltered(b.context.model),u.updatePayload(b,r),b.perform(A)&&(l=!0)})}});function f(d,h){return d.setDirty&&(!d.dirtyMap||d.dirtyMap.get(h.__pipeline.id))}this.unfinished=l||this.unfinished},t.prototype.performSeriesTasks=function(e){var n;e.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var n=e.tail;do{if(n.__block){e.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},t.prototype.updatePayload=function(e,n){n!=="remain"&&(e.context.payload=n)},t.prototype._createSeriesStageTask=function(e,n,r,a){var l=this,u=n.seriesTaskMap,f=n.seriesTaskMap=xt(),d=e.seriesType,h=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(p):d?r.eachRawSeriesByType(d,p):h&&h(r,a).each(p);function p(m){var S=m.uid,_=f.set(S,u&&u.get(S)||Eg({plan:B9,reset:U9,count:H9}));_.context={model:m,ecModel:r,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:l},l._pipe(m,_)}},t.prototype._createOverallStageTask=function(e,n,r,a){var l=this,u=n.overallTask=n.overallTask||Eg({reset:P9});u.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:l};var f=u.agentStubMap,d=u.agentStubMap=xt(),h=e.seriesType,p=e.getTargetSeries,m=!0,S=!1,_="";process.env.NODE_ENV!=="production"&&(_='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),bt(!e.createOnAllSeries,_),h?r.eachRawSeriesByType(h,x):p?p(r,a).each(x):(m=!1,W(r.getSeries(),x));function x(E){var b=E.uid,D=d.set(b,f&&f.get(b)||(S=!0,Eg({reset:I9,onDirty:F9})));D.context={model:E,overallProgress:m},D.agent=u,D.__block=m,l._pipe(E,D)}S&&u.dirty()},t.prototype._pipe=function(e,n){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=n),a.tail&&a.tail.pipe(n),a.tail=n,n.__idxInPipeline=a.count++,n.__pipeline=a},t.wrapStageHandler=function(e,n){return _t(e)&&(e={overallReset:e,seriesType:G9(e)}),e.uid=y_("stageHandler"),n&&(e.visualType=n),e},t}();function P9(t){t.overallReset(t.ecModel,t.api,t.payload)}function I9(t){return t.overallProgress&&z9}function z9(){this.agent.dirty(),this.getDownstream().dirty()}function F9(){this.agent&&this.agent.dirty()}function B9(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function U9(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=rr(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?ot(e,function(n,r){return qN(r)}):V9}var V9=qN(0);function qN(t){return function(e,n){var r=n.data,a=n.resetDefines[t];if(a&&a.dataEach)for(var l=e.start;l<e.end;l++)a.dataEach(r,l);else a&&a.progress&&a.progress(e,r)}}function H9(t){return t.data.count()}function G9(t){B_=null;try{t(Lg,QN)}catch{}return B_}var Lg={},QN={},B_;ZN(Lg,qk),ZN(QN,Qk),Lg.eachSeriesByType=Lg.eachRawSeriesByType=function(t){B_=t},Lg.eachComponent=function(t){t.mainType==="series"&&t.subType&&(B_=t.subType)};function ZN(t,e){for(var n in e.prototype)t[n]=ta}const KN=N9;var JN=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const $9={color:JN,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],JN]};var Ni="#B9B8CE",eP="#100C2A",U_=function(){return{axisLine:{lineStyle:{color:Ni}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},tP=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],nP={darkMode:!0,color:tP,backgroundColor:eP,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Ni}},textStyle:{color:Ni},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Ni}},dataZoom:{borderColor:"#71708A",textStyle:{color:Ni},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Ni}},timeline:{lineStyle:{color:Ni},label:{color:Ni},controlStyle:{color:Ni,borderColor:Ni}},calendar:{itemStyle:{color:eP},dayLabel:{color:Ni},monthLabel:{color:Ni},yearLabel:{color:Ni}},timeAxis:U_(),logAxis:U_(),valueAxis:U_(),categoryAxis:U_(),line:{symbol:"circle"},graph:{color:tP},gauge:{title:{color:Ni},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Ni},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};nP.categoryAxis.splitLine.show=!1;const j9=nP;var Y9=function(){function t(){}return t.prototype.normalizeQuery=function(e){var n={},r={},a={};if(et(e)){var l=Tl(e);n.mainType=l.main||null,n.subType=l.sub||null}else{var u=["Index","Name","Id"],f={name:1,dataIndex:1,dataType:1};W(e,function(d,h){for(var p=!1,m=0;m<u.length;m++){var S=u[m],_=h.lastIndexOf(S);if(_>0&&_===h.length-S.length){var x=h.slice(0,_);x!=="data"&&(n.mainType=x,n[S.toLowerCase()]=d,p=!0)}}f.hasOwnProperty(h)&&(r[h]=d,p=!0),p||(a[h]=d)})}return{cptQuery:n,dataQuery:r,otherQuery:a}},t.prototype.filter=function(e,n){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,l=r.packedEvent,u=r.model,f=r.view;if(!u||!f)return!0;var d=n.cptQuery,h=n.dataQuery;return p(d,u,"mainType")&&p(d,u,"subType")&&p(d,u,"index","componentIndex")&&p(d,u,"name")&&p(d,u,"id")&&p(h,l,"name")&&p(h,l,"dataIndex")&&p(h,l,"dataType")&&(!f.filterForExposedEvent||f.filterForExposedEvent(e,n.otherQuery,a,l));function p(m,S,_,x){return m[_]==null||S[x||_]===m[_]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),hb=["symbol","symbolSize","symbolRotate","symbolOffset"],rP=hb.concat(["symbolKeepAspect"]),W9={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var r={},a={},l=!1,u=0;u<hb.length;u++){var f=hb[u],d=t.get(f);_t(d)?(l=!0,a[f]=d):r[f]=d}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(Re({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),e.isSeriesFiltered(t))return;var h=kn(a);function p(m,S){for(var _=t.getRawValue(S),x=t.getDataParams(S),E=0;E<h.length;E++){var b=h[E];m.setItemVisual(S,b,a[b](_,x))}}return{dataEach:l?p:null}}},X9={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var n=t.getData();function r(a,l){for(var u=a.getItemModel(l),f=0;f<rP.length;f++){var d=rP[f],h=u.getShallow(d,!0);h!=null&&a.setItemVisual(l,d,h)}}return{dataEach:n.hasItemOption?r:null}}};function q9(t,e,n){switch(n){case"color":var r=t.getItemVisual(e,"style");return r[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+n)}}function Q9(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+e)}}function Dv(t,e,n,r,a){var l=t+e;n.isSilent(l)||(process.env.NODE_ENV!=="production"&&wl("event "+l+" is deprecated."),r.eachComponent({mainType:"series",subType:"pie"},function(u){for(var f=u.seriesIndex,d=u.option.selectedMap,h=a.selected,p=0;p<h.length;p++)if(h[p].seriesIndex===f){var m=u.getData(),S=rg(m,a.fromActionPayload);n.trigger(l,{type:l,seriesId:u.id,name:Be(S)?m.getName(S[0]):m.getName(S),selected:et(d)?d:Re({},d)})}}))}function Z9(t,e,n){t.on("selectchanged",function(r){var a=n.getModel();r.isFromClick?(Dv("map","selectchanged",e,a,r),Dv("pie","selectchanged",e,a,r)):r.fromAction==="select"?(Dv("map","selected",e,a,r),Dv("pie","selected",e,a,r)):r.fromAction==="unselect"&&(Dv("map","unselected",e,a,r),Dv("pie","unselected",e,a,r))})}function Og(t,e,n){for(var r;t&&!(e(t)&&(r=t,n));)t=t.__hostTarget||t.parent;return r}var K9=Math.round(Math.random()*9),J9=typeof Object.defineProperty=="function",ej=function(){function t(){this._id="__ec_inner_"+K9++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,n){var r=this._guard(e);return J9?Object.defineProperty(r,this._id,{value:n,enumerable:!1,configurable:!0}):r[this._id]=n,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t}();const tj=ej;var nj=Gt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,a=e.width/2,l=e.height/2;t.moveTo(n,r-l),t.lineTo(n+a,r+l),t.lineTo(n-a,r+l),t.closePath()}}),rj=Gt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,a=e.width/2,l=e.height/2;t.moveTo(n,r-l),t.lineTo(n+a,r),t.lineTo(n,r+l),t.lineTo(n-a,r),t.closePath()}}),ij=Gt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,a=e.width/5*3,l=Math.max(a,e.height),u=a/2,f=u*u/(l-u),d=r-l+u+f,h=Math.asin(f/u),p=Math.cos(h)*u,m=Math.sin(h),S=Math.cos(h),_=u*.6,x=u*.7;t.moveTo(n-p,d+f),t.arc(n,d,u,Math.PI-h,Math.PI*2+h),t.bezierCurveTo(n+p-m*_,d+f+S*_,n,r-x,n,r),t.bezierCurveTo(n,r-x,n-p+m*_,d+f+S*_,n-p,d+f),t.closePath()}}),aj=Gt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,a=e.x,l=e.y,u=r/3*2;t.moveTo(a,l),t.lineTo(a+u,l+n),t.lineTo(a,l+n/4*3),t.lineTo(a-u,l+n),t.lineTo(a,l),t.closePath()}}),oj={line:vc,rect:Kr,roundRect:Kr,square:Kr,circle:_T,diamond:rj,pin:ij,arrow:aj,triangle:nj},lj={line:function(t,e,n,r,a){a.x1=t,a.y1=e+r/2,a.x2=t+n,a.y2=e+r/2},rect:function(t,e,n,r,a){a.x=t,a.y=e,a.width=n,a.height=r},roundRect:function(t,e,n,r,a){a.x=t,a.y=e,a.width=n,a.height=r,a.r=Math.min(n,r)/4},square:function(t,e,n,r,a){var l=Math.min(n,r);a.x=t,a.y=e,a.width=l,a.height=l},circle:function(t,e,n,r,a){a.cx=t+n/2,a.cy=e+r/2,a.r=Math.min(n,r)/2},diamond:function(t,e,n,r,a){a.cx=t+n/2,a.cy=e+r/2,a.width=n,a.height=r},pin:function(t,e,n,r,a){a.x=t+n/2,a.y=e+r/2,a.width=n,a.height=r},arrow:function(t,e,n,r,a){a.x=t+n/2,a.y=e+r/2,a.width=n,a.height=r},triangle:function(t,e,n,r,a){a.cx=t+n/2,a.cy=e+r/2,a.width=n,a.height=r}},pb={};W(oj,function(t,e){pb[e]=new t});var uj=Gt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=X0(t,e,n),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(r.y=n.y+n.height*.4),r},buildPath:function(t,e,n){var r=e.symbolType;if(r!=="none"){var a=pb[r];a||(r="rect",a=pb[r]),lj[r](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,n)}}});function sj(t,e){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=t:n.fill=t,this.markRedraw()}}function iP(t,e,n,r,a,l,u){var f=t.indexOf("empty")===0;f&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var d;return t.indexOf("image://")===0?d=tk(t.slice(8),new Wt(e,n,r,a),u?"center":"cover"):t.indexOf("path://")===0?d=DT(t.slice(7),{},new Wt(e,n,r,a),u?"center":"cover"):d=new uj({shape:{symbolType:t,x:e,y:n,width:r,height:a}}),d.__isEmptyBrush=f,d.setColor=sj,l&&d.setColor(l),d}function fj(t,e){if(t!=null)return Be(t)||(t=[t,t]),[Zr(t[0],e[0])||0,Zr(kt(t[1],t[0]),e[1])||0]}function wc(t){return isFinite(t)}function cj(t,e,n){var r=e.x==null?0:e.x,a=e.x2==null?1:e.x2,l=e.y==null?0:e.y,u=e.y2==null?0:e.y2;e.global||(r=r*n.width+n.x,a=a*n.width+n.x,l=l*n.height+n.y,u=u*n.height+n.y),r=wc(r)?r:0,a=wc(a)?a:1,l=wc(l)?l:0,u=wc(u)?u:0;var f=t.createLinearGradient(r,l,a,u);return f}function dj(t,e,n){var r=n.width,a=n.height,l=Math.min(r,a),u=e.x==null?.5:e.x,f=e.y==null?.5:e.y,d=e.r==null?.5:e.r;e.global||(u=u*r+n.x,f=f*a+n.y,d=d*l),u=wc(u)?u:.5,f=wc(f)?f:.5,d=d>=0&&wc(d)?d:.5;var h=t.createRadialGradient(u,f,0,u,f,d);return h}function gb(t,e,n){for(var r=e.type==="radial"?dj(t,e,n):cj(t,e,n),a=e.colorStops,l=0;l<a.length;l++)r.addColorStop(a[l].offset,a[l].color);return r}function vj(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}function V_(t){return parseInt(t,10)}function H_(t,e,n){var r=["width","height"][e],a=["clientWidth","clientHeight"][e],l=["paddingLeft","paddingTop"][e],u=["paddingRight","paddingBottom"][e];if(n[r]!=null&&n[r]!=="auto")return parseFloat(n[r]);var f=document.defaultView.getComputedStyle(t);return(t[a]||V_(f[r])||V_(t.style[r]))-(V_(f[l])||0)-(V_(f[u])||0)|0}function hj(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Nn(t)?[t]:Be(t)?t:null}function aP(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&hj(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&a!==1&&(n=ot(n,function(l){return l/a}),r/=a)}return[n,r]}var pj=new As(!0);function G_(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function oP(t){return typeof t=="string"&&t!=="none"}function $_(t){var e=t.fill;return e!=null&&e!=="none"}function lP(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function uP(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function mb(t,e,n){var r=LO(e.image,e.__image,n);if(J0(r)){var a=t.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var l=new DOMMatrix;l.translateSelf(e.x||0,e.y||0),l.rotateSelf(0,0,(e.rotation||0)*cH),l.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(l)}return a}}function gj(t,e,n,r){var a,l=G_(n),u=$_(n),f=n.strokePercent,d=f<1,h=!e.path;(!e.silent||d)&&h&&e.createPathProxy();var p=e.path||pj,m=e.__dirty;if(!r){var S=n.fill,_=n.stroke,x=u&&!!S.colorStops,E=l&&!!_.colorStops,b=u&&!!S.image,D=l&&!!_.image,A=void 0,O=void 0,P=void 0,I=void 0,F=void 0;(x||E)&&(F=e.getBoundingRect()),x&&(A=m?gb(t,S,F):e.__canvasFillGradient,e.__canvasFillGradient=A),E&&(O=m?gb(t,_,F):e.__canvasStrokeGradient,e.__canvasStrokeGradient=O),b&&(P=m||!e.__canvasFillPattern?mb(t,S,e):e.__canvasFillPattern,e.__canvasFillPattern=P),D&&(I=m||!e.__canvasStrokePattern?mb(t,_,e):e.__canvasStrokePattern,e.__canvasStrokePattern=P),x?t.fillStyle=A:b&&(P?t.fillStyle=P:u=!1),E?t.strokeStyle=O:D&&(I?t.strokeStyle=I:l=!1)}var U=e.getGlobalScale();p.setScale(U[0],U[1],e.segmentIgnoreThreshold);var H,j;t.setLineDash&&n.lineDash&&(a=aP(e),H=a[0],j=a[1]);var X=!0;(h||m&ev)&&(p.setDPR(t.dpr),d?p.setContext(null):(p.setContext(t),X=!1),p.reset(),e.buildPath(p,e.shape,r),p.toStatic(),e.pathUpdated()),X&&p.rebuildPath(t,d?f:1),H&&(t.setLineDash(H),t.lineDashOffset=j),r||(n.strokeFirst?(l&&uP(t,n),u&&lP(t,n)):(u&&lP(t,n),l&&uP(t,n))),H&&t.setLineDash([])}function mj(t,e,n){var r=e.__image=LO(n.image,e.__image,e,e.onload);if(!(!r||!J0(r))){var a=n.x||0,l=n.y||0,u=e.getWidth(),f=e.getHeight(),d=r.width/r.height;if(u==null&&f!=null?u=f*d:f==null&&u!=null?f=u/d:u==null&&f==null&&(u=r.width,f=r.height),n.sWidth&&n.sHeight){var h=n.sx||0,p=n.sy||0;t.drawImage(r,h,p,n.sWidth,n.sHeight,a,l,u,f)}else if(n.sx&&n.sy){var h=n.sx,p=n.sy,m=u-h,S=f-p;t.drawImage(r,h,p,m,S,a,l,u,f)}else t.drawImage(r,a,l,u,f)}}function yj(t,e,n){var r,a=n.text;if(a!=null&&(a+=""),a){t.font=n.font||Gf,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var l=void 0,u=void 0;t.setLineDash&&n.lineDash&&(r=aP(e),l=r[0],u=r[1]),l&&(t.setLineDash(l),t.lineDashOffset=u),n.strokeFirst?(G_(n)&&t.strokeText(a,n.x,n.y),$_(n)&&t.fillText(a,n.x,n.y)):($_(n)&&t.fillText(a,n.x,n.y),G_(n)&&t.strokeText(a,n.x,n.y)),l&&t.setLineDash([])}}var sP=["shadowBlur","shadowOffsetX","shadowOffsetY"],fP=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function cP(t,e,n,r,a){var l=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){oa(t,a),l=!0;var u=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(u)?tc.opacity:u}(r||e.blend!==n.blend)&&(l||(oa(t,a),l=!0),t.globalCompositeOperation=e.blend||tc.blend);for(var f=0;f<sP.length;f++){var d=sP[f];(r||e[d]!==n[d])&&(l||(oa(t,a),l=!0),t[d]=t.dpr*(e[d]||0))}return(r||e.shadowColor!==n.shadowColor)&&(l||(oa(t,a),l=!0),t.shadowColor=e.shadowColor||tc.shadowColor),l}function dP(t,e,n,r,a){var l=kg(e,a.inHover),u=r?null:n&&kg(n,a.inHover)||{};if(l===u)return!1;var f=cP(t,l,u,r,a);if((r||l.fill!==u.fill)&&(f||(oa(t,a),f=!0),oP(l.fill)&&(t.fillStyle=l.fill)),(r||l.stroke!==u.stroke)&&(f||(oa(t,a),f=!0),oP(l.stroke)&&(t.strokeStyle=l.stroke)),(r||l.opacity!==u.opacity)&&(f||(oa(t,a),f=!0),t.globalAlpha=l.opacity==null?1:l.opacity),e.hasStroke()){var d=l.lineWidth,h=d/(l.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==h&&(f||(oa(t,a),f=!0),t.lineWidth=h)}for(var p=0;p<fP.length;p++){var m=fP[p],S=m[0];(r||l[S]!==u[S])&&(f||(oa(t,a),f=!0),t[S]=l[S]||m[1])}return f}function _j(t,e,n,r,a){return cP(t,kg(e,a.inHover),n&&kg(n,a.inHover),r,a)}function vP(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function Sj(t,e,n){for(var r=!1,a=0;a<t.length;a++){var l=t[a];r=r||l.isZeroArea(),vP(e,l),e.beginPath(),l.buildPath(e,l.shape),e.clip()}n.allClipped=r}function Cj(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var hP=1,pP=2,gP=3,mP=4;function wj(t){var e=$_(t),n=G_(t);return!(t.lineDash||!(+e^+n)||e&&typeof t.fill!="string"||n&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function oa(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function kg(t,e){return e&&t.__hoverStyle||t.style}function yP(t,e){xc(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function xc(t,e,n,r){var a=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){e.__dirty&=~La,e.__isRendered=!1;return}var l=e.__clipPaths,u=n.prevElClipPaths,f=!1,d=!1;if((!u||vj(l,u))&&(u&&u.length&&(oa(t,n),t.restore(),d=f=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),l&&l.length&&(oa(t,n),t.save(),Sj(l,t,n),f=!0),n.prevElClipPaths=l),n.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var h=n.prevEl;h||(d=f=!0);var p=e instanceof Gt&&e.autoBatch&&wj(e.style);f||Cj(a,h.transform)?(oa(t,n),vP(t,e)):p||oa(t,n);var m=kg(e,n.inHover);e instanceof Gt?(n.lastDrawType!==hP&&(d=!0,n.lastDrawType=hP),dP(t,e,h,d,n),(!p||!n.batchFill&&!n.batchStroke)&&t.beginPath(),gj(t,e,m,p),p&&(n.batchFill=m.fill||"",n.batchStroke=m.stroke||"")):e instanceof rT?(n.lastDrawType!==gP&&(d=!0,n.lastDrawType=gP),dP(t,e,h,d,n),yj(t,e,m)):e instanceof cv?(n.lastDrawType!==pP&&(d=!0,n.lastDrawType=pP),_j(t,e,h,d,n),mj(t,e,m)):e.getTemporalDisplayables&&(n.lastDrawType!==mP&&(d=!0,n.lastDrawType=mP),xj(t,e,n)),p&&r&&oa(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}function xj(t,e,n){var r=e.getDisplayables(),a=e.getTemporalDisplayables();t.save();var l={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},u,f;for(u=e.getCursor(),f=r.length;u<f;u++){var d=r[u];d.beforeBrush&&d.beforeBrush(),d.innerBeforeBrush(),xc(t,d,l,u===f-1),d.innerAfterBrush(),d.afterBrush&&d.afterBrush(),l.prevEl=d}for(var h=0,p=a.length;h<p;h++){var d=a[h];d.beforeBrush&&d.beforeBrush(),d.innerBeforeBrush(),xc(t,d,l,h===p-1),d.innerAfterBrush(),d.afterBrush&&d.afterBrush(),l.prevEl=d}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var yb=new tj,_P=new Yp(100),SP=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function CP(t,e){if(t==="none")return null;var n=e.getDevicePixelRatio(),r=e.getZr(),a=r.painter.type==="svg";t.dirty&&yb.delete(t);var l=yb.get(t);if(l)return l;var u=Vt(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});u.backgroundColor==="none"&&(u.backgroundColor=null);var f={repeat:"repeat"};return d(f),f.rotation=u.rotation,f.scaleX=f.scaleY=a?1:1/n,yb.set(t,f),t.dirty=!1,f;function d(h){for(var p=[n],m=!0,S=0;S<SP.length;++S){var _=u[SP[S]];if(_!=null&&!Be(_)&&!et(_)&&!Nn(_)&&typeof _!="boolean"){m=!1;break}p.push(_)}var x;if(m){x=p.join(",")+(a?"-svg":"");var E=_P.get(x);E&&(a?h.svgElement=E:h.image=E)}var b=xP(u.dashArrayX),D=Tj(u.dashArrayY),A=wP(u.symbol),O=bj(b),P=TP(D),I=!a&&$f.createCanvas(),F=a&&{tag:"g",attrs:{},key:"dcl",children:[]},U=j(),H;I&&(I.width=U.width*n,I.height=U.height*n,H=I.getContext("2d")),X(),m&&_P.put(x,I||F),h.image=I,h.svgElement=F,h.svgWidth=U.width,h.svgHeight=U.height;function j(){for(var G=1,ee=0,J=O.length;ee<J;++ee)G=yO(G,O[ee]);for(var ie=1,ee=0,J=A.length;ee<J;++ee)ie=yO(ie,A[ee].length);G*=ie;var ce=P*O.length*A.length;if(process.env.NODE_ENV!=="production"){var fe=function(Ne){console.warn("Calculated decal size is greater than "+Ne+" due to decal option settings so "+Ne+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+Ne+" to be larger to avoid incontinuity.")};G>u.maxTileWidth&&fe("maxTileWidth"),ce>u.maxTileHeight&&fe("maxTileHeight")}return{width:Math.max(1,Math.min(G,u.maxTileWidth)),height:Math.max(1,Math.min(ce,u.maxTileHeight))}}function X(){H&&(H.clearRect(0,0,I.width,I.height),u.backgroundColor&&(H.fillStyle=u.backgroundColor,H.fillRect(0,0,I.width,I.height)));for(var G=0,ee=0;ee<D.length;++ee)G+=D[ee];if(G<=0)return;for(var J=-P,ie=0,ce=0,fe=0;J<U.height;){if(ie%2===0){for(var Ne=ce/2%A.length,ae=0,ge=0,pe=0;ae<U.width*2;){for(var Le=0,ee=0;ee<b[fe].length;++ee)Le+=b[fe][ee];if(Le<=0)break;if(ge%2===0){var Ge=(1-u.symbolSize)*.5,St=ae+b[fe][ge]*Ge,It=J+D[ie]*Ge,Dn=b[fe][ge]*u.symbolSize,Xt=D[ie]*u.symbolSize,Mn=pe/2%A[Ne].length;ln(St,It,Dn,Xt,A[Ne][Mn])}ae+=b[fe][ge],++pe,++ge,ge===b[fe].length&&(ge=0)}++fe,fe===b.length&&(fe=0)}J+=D[ie],++ce,++ie,ie===D.length&&(ie=0)}function ln(zt,Ft,$e,Se,Zt){var Et=a?1:n,Pn=iP(Zt,zt*Et,Ft*Et,$e*Et,Se*Et,u.color,u.symbolKeepAspect);if(a){var ar=r.painter.renderOneToVNode(Pn);ar&&F.children.push(ar)}else yP(H,Pn)}}}}function wP(t){if(!t||t.length===0)return[["rect"]];if(et(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!et(t[n])){e=!1;break}if(e)return wP([t]);for(var r=[],n=0;n<t.length;++n)et(t[n])?r.push([t[n]]):r.push(t[n]);return r}function xP(t){if(!t||t.length===0)return[[0,0]];if(Nn(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,r=0;r<t.length;++r)if(!Nn(t[r])){n=!1;break}if(n)return xP([t]);for(var a=[],r=0;r<t.length;++r)if(Nn(t[r])){var e=Math.ceil(t[r]);a.push([e,e])}else{var e=ot(t[r],function(f){return Math.ceil(f)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function Tj(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(Nn(t)){var e=Math.ceil(t);return[e,e]}var n=ot(t,function(r){return Math.ceil(r)});return t.length%2?n.concat(n):n}function bj(t){return ot(t,function(e){return TP(e)})}function TP(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?e*2:e}function Ej(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(u){var f=r.getItemVisual(u,"decal");if(f){var d=r.ensureUniqueItemVisual(u,"style");d.decal=CP(f,e)}});var a=r.getVisual("decal");if(a){var l=r.getVisual("style");l.decal=CP(a,e)}}})}var Dj=new _l;const Bo=Dj;var j_={};function Mj(t,e){process.env.NODE_ENV!=="production"&&j_[t]&&ci("Already has an implementation of "+t+"."),j_[t]=e}function Rj(t){return process.env.NODE_ENV!=="production"&&(j_[t]||ci("Implementation of "+t+" doesn't exists.")),j_[t]}var Aj=1,Lj=800,Oj=900,kj=1e3,Nj=2e3,Pj=5e3,bP=1e3,Ij=1100,_b=2e3,EP=3e3,zj=4e3,Y_=4500,Fj=4600,Bj=5e3,Uj=6e3,DP=7e3,Vj={PROCESSOR:{FILTER:kj,SERIES_FILTER:Lj,STATISTIC:Pj},VISUAL:{LAYOUT:bP,PROGRESSIVE_LAYOUT:Ij,GLOBAL:_b,CHART:EP,POST_CHART_LAYOUT:Fj,COMPONENT:zj,BRUSH:Bj,CHART_ITEM:Y_,ARIA:Uj,DECAL:DP}},hi="__flagInMainProcess",la="__pendingUpdate",Sb="__needsUpdateStatus",MP=/^[a-zA-Z0-9_]+$/,Cb="__connectUpdateStatus",RP=0,Hj=1,Gj=2;function AP(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this.isDisposed()){Na(this.id);return}return OP(this,t,e)}}function LP(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return OP(this,t,e)}}function OP(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),_l.prototype[e].apply(t,n)}var kP=function(t){Pt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(_l),NP=kP.prototype;NP.on=LP("on"),NP.off=LP("off");var Mv,wb,W_,Ns,xb,Tb,bb,Ng,Pg,PP,IP,Eb,zP,X_,FP,BP,fo,UP,VP=function(t){Pt(e,t);function e(n,r,a){var l=t.call(this,new Y9)||this;l._chartsViews=[],l._chartsMap={},l._componentsViews=[],l._componentsMap={},l._pendingActions=[],a=a||{},et(r)&&(r=HP[r]),l._dom=n;var u="canvas",f="auto",d=!1;if(process.env.NODE_ENV!=="production"){var h=Tt.hasGlobalWindow?window:global;u=h.__ECHARTS__DEFAULT__RENDERER__||u,f=kt(h.__ECHARTS__DEFAULT__COARSE_POINTER,f);var p=h.__ECHARTS__DEFAULT__USE_DIRTY_RECT__;d=p??d}var m=l._zr=sO(n,{renderer:a.renderer||u,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:kt(a.useDirtyRect,d),useCoarsePointer:kt(a.useCoarsePointer,f),pointerSize:a.pointerSize});l._ssr=a.ssr,l._throttledZrFlush=db(Qn(m.flush,m),17),r=Qt(r),r&&rN(r,!0),l._theme=r,l._locale=jG(a.locale||yk),l._coordSysMgr=new qT;var S=l._api=FP(l);function _(x,E){return x.__prio-E.__prio}return O0(Q_,_),O0(Mb,_),l._scheduler=new KN(l,S,Mb,Q_),l._messageCenter=new kP,l._initEvents(),l.resize=Qn(l.resize,l),m.animation.on("frame",l._onframe,l),PP(m,l),IP(m,l),E0(l),l}return e.prototype._onframe=function(){if(!this._disposed){UP(this);var n=this._scheduler;if(this[la]){var r=this[la].silent;this[hi]=!0;try{Mv(this),Ns.update.call(this,null,this[la].updateParams)}catch(d){throw this[hi]=!1,this[la]=null,d}this._zr.flush(),this[hi]=!1,this[la]=null,Ng.call(this,r),Pg.call(this,r)}else if(n.unfinished){var a=Aj,l=this._model,u=this._api;n.unfinished=!1;do{var f=+new Date;n.performSeriesTasks(l),n.performDataProcessorTasks(l),Tb(this,l),n.performVisualTasks(l),X_(this,this._model,u,"remain",{}),a-=+new Date-f}while(a>0&&n.unfinished);n.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(n,r,a){if(this[hi]){process.env.NODE_ENV!=="production"&&ci("`setOption` should not be called during main process.");return}if(this._disposed){Na(this.id);return}var l,u,f;if(it(r)&&(a=r.lazyUpdate,l=r.silent,u=r.replaceMerge,f=r.transition,r=r.notMerge),this[hi]=!0,!this._model||r){var d=new D$(this._api),h=this._theme,p=this._model=new qk;p.scheduler=this._scheduler,p.ssr=this._ssr,p.init(null,null,null,h,this._locale,d)}this._model.setOption(n,{replaceMerge:u},Rb);var m={seriesTransition:f,optionChanged:!0};if(a)this[la]={silent:l,updateParams:m},this[hi]=!1,this.getZr().wakeUp();else{try{Mv(this),Ns.update.call(this,null,m)}catch(S){throw this[la]=null,this[hi]=!1,S}this._ssr||this._zr.flush(),this[la]=null,this[hi]=!1,Ng.call(this,l),Pg.call(this,l)}},e.prototype.setTheme=function(){wl("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},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||Tt.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(n){return process.env.NODE_ENV!=="production"&&Br("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(n)},e.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;if(process.env.NODE_ENV!=="production"&&r.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;if(process.env.NODE_ENV!=="production"&&r.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return r.renderToString({useViewBox:n.useViewBox})},e.prototype.getSvgDataURL=function(){if(Tt.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return W(r,function(a){a.stopAnimation(null,!0)}),n.painter.toDataURL()}},e.prototype.getDataURL=function(n){if(this._disposed){Na(this.id);return}n=n||{};var r=n.excludeComponents,a=this._model,l=[],u=this;W(r,function(d){a.eachComponent({mainType:d},function(h){var p=u._componentsMap[h.__viewId];p.group.ignore||(l.push(p),p.group.ignore=!0)})});var f=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return W(l,function(d){d.group.ignore=!1}),f},e.prototype.getConnectedDataURL=function(n){if(this._disposed){Na(this.id);return}var r=n.type==="svg",a=this.group,l=Math.min,u=Math.max,f=1/0;if(GP[a]){var d=f,h=f,p=-f,m=-f,S=[],_=n&&n.pixelRatio||this.getDevicePixelRatio();W(zg,function(O,P){if(O.group===a){var I=r?O.getZr().painter.getSvgDom().innerHTML:O.renderToCanvas(Qt(n)),F=O.getDom().getBoundingClientRect();d=l(F.left,d),h=l(F.top,h),p=u(F.right,p),m=u(F.bottom,m),S.push({dom:I,left:F.left,top:F.top})}}),d*=_,h*=_,p*=_,m*=_;var x=p-d,E=m-h,b=$f.createCanvas(),D=sO(b,{renderer:r?"svg":"canvas"});if(D.resize({width:x,height:E}),r){var A="";return W(S,function(O){var P=O.left-d,I=O.top-h;A+='<g transform="translate('+P+","+I+')">'+O.dom+"</g>"}),D.painter.getSvgRoot().innerHTML=A,n.connectedBackgroundColor&&D.painter.setBackgroundColor(n.connectedBackgroundColor),D.refreshImmediately(),D.painter.toDataURL()}else return n.connectedBackgroundColor&&D.add(new Kr({shape:{x:0,y:0,width:x,height:E},style:{fill:n.connectedBackgroundColor}})),W(S,function(O){var P=new cv({style:{x:O.left*_-d,y:O.top*_-h,image:O.dom}});D.add(P)}),D.refreshImmediately(),b.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},e.prototype.convertToPixel=function(n,r){return xb(this,"convertToPixel",n,r)},e.prototype.convertFromPixel=function(n,r){return xb(this,"convertFromPixel",n,r)},e.prototype.containPixel=function(n,r){if(this._disposed){Na(this.id);return}var a=this._model,l,u=Ux(a,n);return W(u,function(f,d){d.indexOf("Models")>=0&&W(f,function(h){var p=h.coordinateSystem;if(p&&p.containPoint)l=l||!!p.containPoint(r);else if(d==="seriesModels"){var m=this._chartsMap[h.__viewId];m&&m.containPoint?l=l||m.containPoint(r,h):process.env.NODE_ENV!=="production"&&Fr(d+": "+(m?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&Fr(d+": containPoint is not supported")},this)},this),!!l},e.prototype.getVisual=function(n,r){var a=this._model,l=Ux(a,n,{defaultMainType:"series"}),u=l.seriesModel;process.env.NODE_ENV!=="production"&&(u||Fr("There is no specified series model"));var f=u.getData(),d=l.hasOwnProperty("dataIndexInside")?l.dataIndexInside:l.hasOwnProperty("dataIndex")?f.indexOfRawIndex(l.dataIndex):null;return d!=null?q9(f,d,r):Q9(f,r)},e.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},e.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},e.prototype._initEvents=function(){var n=this;W($j,function(r){var a=function(l){var u=n.getModel(),f=l.target,d,h=r==="globalout";if(h?d={}:f&&Og(f,function(x){var E=yn(x);if(E&&E.dataIndex!=null){var b=E.dataModel||u.getSeriesByIndex(E.seriesIndex);return d=b&&b.getDataParams(E.dataIndex,E.dataType)||{},!0}else if(E.eventData)return d=Re({},E.eventData),!0},!0),d){var p=d.componentType,m=d.componentIndex;(p==="markLine"||p==="markPoint"||p==="markArea")&&(p="series",m=d.seriesIndex);var S=p&&m!=null&&u.getComponent(p,m),_=S&&n[S.mainType==="series"?"_chartsMap":"_componentsMap"][S.__viewId];process.env.NODE_ENV!=="production"&&!h&&!(S&&_)&&Fr("model or view can not be found by params"),d.event=l,d.type=r,n._$eventProcessor.eventInfo={targetEl:f,packedEvent:d,model:S,view:_},n.trigger(r,d)}};a.zrEventfulCallAtLast=!0,n._zr.on(r,a,n)}),W(Ig,function(r,a){n._messageCenter.on(a,function(l){this.trigger(a,l)},n)}),W(["selectchanged"],function(r){n._messageCenter.on(r,function(a){this.trigger(r,a)},n)}),Z9(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){Na(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){Na(this.id);return}this._disposed=!0;var n=this.getDom();n&&MO(this.getDom(),Lb,"");var r=this,a=r._api,l=r._model;W(r._componentsViews,function(u){u.dispose(l,a)}),W(r._chartsViews,function(u){u.dispose(l,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete zg[r.id]},e.prototype.resize=function(n){if(this[hi]){process.env.NODE_ENV!=="production"&&ci("`resize` should not be called during main process.");return}if(this._disposed){Na(this.id);return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),l=n&&n.silent;this[la]&&(l==null&&(l=this[la].silent),a=!0,this[la]=null),this[hi]=!0;try{a&&Mv(this),Ns.update.call(this,{type:"resize",animation:Re({duration:0},n&&n.animation)})}catch(u){throw this[hi]=!1,u}this[hi]=!1,Ng.call(this,l),Pg.call(this,l)}},e.prototype.showLoading=function(n,r){if(this._disposed){Na(this.id);return}if(it(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!Ab[n]){process.env.NODE_ENV!=="production"&&Fr("Loading effects "+n+" not exists.");return}var a=Ab[n](this._api,r),l=this._zr;this._loadingFX=a,l.add(a)},e.prototype.hideLoading=function(){if(this._disposed){Na(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(n){var r=Re({},n);return r.type=Ig[n.type],r},e.prototype.dispatchAction=function(n,r){if(this._disposed){Na(this.id);return}if(it(r)||(r={silent:!!r}),!!q_[n.type]&&this._model){if(this[hi]){this._pendingActions.push(n);return}var a=r.silent;bb.call(this,n,a);var l=r.flush;l?this._zr.flush():l!==!1&&Tt.browser.weChat&&this._throttledZrFlush(),Ng.call(this,a),Pg.call(this,a)}},e.prototype.updateLabelLayout=function(){Bo.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(n){if(this._disposed){Na(this.id);return}var r=n.seriesIndex,a=this.getModel(),l=a.getSeriesByIndex(r);process.env.NODE_ENV!=="production"&&bt(n.data&&l),l.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Mv=function(m){var S=m._scheduler;S.restorePipelines(m._model),S.prepareStageTasks(),wb(m,!0),wb(m,!1),S.plan()},wb=function(m,S){for(var _=m._model,x=m._scheduler,E=S?m._componentsViews:m._chartsViews,b=S?m._componentsMap:m._chartsMap,D=m._zr,A=m._api,O=0;O<E.length;O++)E[O].__alive=!1;S?_.eachComponent(function(F,U){F!=="series"&&P(U)}):_.eachSeries(P);function P(F){var U=F.__requireNewView;F.__requireNewView=!1;var H="_ec_"+F.id+"_"+F.type,j=!U&&b[H];if(!j){var X=Tl(F.type),G=S?Du.getClass(X.main,X.sub):Ev.getClass(X.sub);process.env.NODE_ENV!=="production"&&bt(G,X.sub+" does not exist."),j=new G,j.init(_,A),b[H]=j,E.push(j),D.add(j.group)}F.__viewId=j.__id=H,j.__alive=!0,j.__model=F,j.group.__ecComponentInfo={mainType:F.mainType,index:F.componentIndex},!S&&x.prepareView(j,F,_,A)}for(var O=0;O<E.length;){var I=E[O];I.__alive?O++:(!S&&I.renderTask.dispose(),D.remove(I.group),I.dispose(_,A),E.splice(O,1),b[I.__id]===I&&delete b[I.__id],I.__id=I.group.__ecComponentInfo=null)}},W_=function(m,S,_,x,E){var b=m._model;if(b.setUpdatePayload(_),!x){W([].concat(m._componentsViews).concat(m._chartsViews),I);return}var D={};D[x+"Id"]=_[x+"Id"],D[x+"Index"]=_[x+"Index"],D[x+"Name"]=_[x+"Name"];var A={mainType:x,query:D};E&&(A.subType=E);var O=_.excludeSeriesId,P;O!=null&&(P=xt(),W(rr(O),function(F){var U=xl(F,null);U!=null&&P.set(U,!0)})),b&&b.eachComponent(A,function(F){var U=P&&P.get(F.id)!=null;if(!U)if(E2(_))if(F instanceof bv)_.type===fc&&!_.notBlur&&!F.get(["emphasis","disabled"])&&p8(F,_,m._api);else{var H=hT(F.mainType,F.componentIndex,_.name,m._api),j=H.focusSelf,X=H.dispatchers;_.type===fc&&j&&!_.notBlur&&vT(F.mainType,F.componentIndex,m._api),X&&W(X,function(G){_.type===fc?fT(G):cT(G)})}else pT(_)&&F instanceof bv&&(y8(F,_,m._api),x2(F),fo(m))},m),b&&b.eachComponent(A,function(F){var U=P&&P.get(F.id)!=null;U||I(m[x==="series"?"_chartsMap":"_componentsMap"][F.__viewId])},m);function I(F){F&&F.__alive&&F[S]&&F[S](F.__model,b,m._api,_)}},Ns={prepareAndUpdate:function(m){Mv(this),Ns.update.call(this,m,{optionChanged:m.newOption!=null})},update:function(m,S){var _=this._model,x=this._api,E=this._zr,b=this._coordSysMgr,D=this._scheduler;if(_){_.setUpdatePayload(m),D.restoreData(_,m),D.performSeriesTasks(_),b.create(_,x),D.performDataProcessorTasks(_,m),Tb(this,_),b.update(_,x),n(_),D.performVisualTasks(_,m),Eb(this,_,x,m,S);var A=_.get("backgroundColor")||"transparent",O=_.get("darkMode");E.setBackgroundColor(A),O!=null&&O!=="auto"&&E.setDarkMode(O),Bo.trigger("afterupdate",_,x)}},updateTransform:function(m){var S=this,_=this._model,x=this._api;if(_){_.setUpdatePayload(m);var E=[];_.eachComponent(function(D,A){if(D!=="series"){var O=S.getViewOfComponentModel(A);if(O&&O.__alive)if(O.updateTransform){var P=O.updateTransform(A,_,x,m);P&&P.update&&E.push(O)}else E.push(O)}});var b=xt();_.eachSeries(function(D){var A=S._chartsMap[D.__viewId];if(A.updateTransform){var O=A.updateTransform(D,_,x,m);O&&O.update&&b.set(D.uid,1)}else b.set(D.uid,1)}),n(_),this._scheduler.performVisualTasks(_,m,{setDirty:!0,dirtyMap:b}),X_(this,_,x,m,{},b),Bo.trigger("afterupdate",_,x)}},updateView:function(m){var S=this._model;S&&(S.setUpdatePayload(m),Ev.markUpdateMethod(m,"updateView"),n(S),this._scheduler.performVisualTasks(S,m,{setDirty:!0}),Eb(this,S,this._api,m,{}),Bo.trigger("afterupdate",S,this._api))},updateVisual:function(m){var S=this,_=this._model;_&&(_.setUpdatePayload(m),_.eachSeries(function(x){x.getData().clearAllVisual()}),Ev.markUpdateMethod(m,"updateVisual"),n(_),this._scheduler.performVisualTasks(_,m,{visualType:"visual",setDirty:!0}),_.eachComponent(function(x,E){if(x!=="series"){var b=S.getViewOfComponentModel(E);b&&b.__alive&&b.updateVisual(E,_,S._api,m)}}),_.eachSeries(function(x){var E=S._chartsMap[x.__viewId];E.updateVisual(x,_,S._api,m)}),Bo.trigger("afterupdate",_,this._api))},updateLayout:function(m){Ns.update.call(this,m)}},xb=function(m,S,_,x){if(m._disposed){Na(m.id);return}for(var E=m._model,b=m._coordSysMgr.getCoordinateSystems(),D,A=Ux(E,_),O=0;O<b.length;O++){var P=b[O];if(P[S]&&(D=P[S](E,A,x))!=null)return D}process.env.NODE_ENV!=="production"&&Fr("No coordinate system that supports "+S+" found by the given finder.")},Tb=function(m,S){var _=m._chartsMap,x=m._scheduler;S.eachSeries(function(E){x.updateStreamModes(E,_[E.__viewId])})},bb=function(m,S){var _=this,x=this.getModel(),E=m.type,b=m.escapeConnect,D=q_[E],A=D.actionInfo,O=(A.update||"update").split(":"),P=O.pop(),I=O[0]!=null&&Tl(O[0]);this[hi]=!0;var F=[m],U=!1;m.batch&&(U=!0,F=ot(m.batch,function(ie){return ie=Vt(Re({},ie),m),ie.batch=null,ie}));var H=[],j,X=pT(m),G=E2(m);if(G&&w2(this._api),W(F,function(ie){if(j=D.action(ie,_._model,_._api),j=j||Re({},ie),j.type=A.event||j.type,H.push(j),G){var ce=Vx(m),fe=ce.queryOptionMap,Ne=ce.mainTypeSpecified,ae=Ne?fe.keys()[0]:"series";W_(_,P,ie,ae),fo(_)}else X?(W_(_,P,ie,"series"),fo(_)):I&&W_(_,P,ie,I.main,I.sub)}),P!=="none"&&!G&&!X&&!I)try{this[la]?(Mv(this),Ns.update.call(this,m),this[la]=null):Ns[P].call(this,m)}catch(ie){throw this[hi]=!1,ie}if(U?j={type:A.event||E,escapeConnect:b,batch:H}:j=H[0],this[hi]=!1,!S){var ee=this._messageCenter;if(ee.trigger(j.type,j),X){var J={type:"selectchanged",escapeConnect:b,selected:_8(x),isFromClick:m.isFromClick||!1,fromAction:m.type,fromActionPayload:m};ee.trigger(J.type,J)}}},Ng=function(m){for(var S=this._pendingActions;S.length;){var _=S.shift();bb.call(this,_,m)}},Pg=function(m){!m&&this.trigger("updated")},PP=function(m,S){m.on("rendered",function(_){S.trigger("rendered",_),m.animation.isFinished()&&!S[la]&&!S._scheduler.unfinished&&!S._pendingActions.length&&S.trigger("finished")})},IP=function(m,S){m.on("mouseover",function(_){var x=_.target,E=Og(x,hv);E&&(g8(E,_,S._api),fo(S))}).on("mouseout",function(_){var x=_.target,E=Og(x,hv);E&&(m8(E,_,S._api),fo(S))}).on("click",function(_){var x=_.target,E=Og(x,function(A){return yn(A).dataIndex!=null},!0);if(E){var b=E.selected?"unselect":"select",D=yn(E);S._api.dispatchAction({type:b,dataType:D.dataType,dataIndexInside:D.dataIndex,seriesIndex:D.seriesIndex,isFromClick:!0})}})};function n(m){m.clearColorPalette(),m.eachSeries(function(S){S.clearColorPalette()})}function r(m){var S=[],_=[],x=!1;if(m.eachComponent(function(A,O){var P=O.get("zlevel")||0,I=O.get("z")||0,F=O.getZLevelKey();x=x||!!F,(A==="series"?_:S).push({zlevel:P,z:I,idx:O.componentIndex,type:A,key:F})}),x){var E=S.concat(_),b,D;O0(E,function(A,O){return A.zlevel===O.zlevel?A.z-O.z:A.zlevel-O.zlevel}),W(E,function(A){var O=m.getComponent(A.type,A.idx),P=A.zlevel,I=A.key;b!=null&&(P=Math.max(b,P)),I?(P===b&&I!==D&&P++,D=I):D&&(P===b&&P++,D=""),b=P,O.setZLevel(P)})}}Eb=function(m,S,_,x,E){r(S),zP(m,S,_,x,E),W(m._chartsViews,function(b){b.__alive=!1}),X_(m,S,_,x,E),W(m._chartsViews,function(b){b.__alive||b.remove(S,_)})},zP=function(m,S,_,x,E,b){W(b||m._componentsViews,function(D){var A=D.__model;h(A,D),D.render(A,S,_,x),f(A,D),p(A,D)})},X_=function(m,S,_,x,E,b){var D=m._scheduler;E=Re(E||{},{updatedSeries:S.getSeries()}),Bo.trigger("series:beforeupdate",S,_,E);var A=!1;S.eachSeries(function(O){var P=m._chartsMap[O.__viewId];P.__alive=!0;var I=P.renderTask;D.updatePayload(I,x),h(O,P),b&&b.get(O.uid)&&I.dirty(),I.perform(D.getPerformArgs(I))&&(A=!0),P.group.silent=!!O.get("silent"),u(O,P),x2(O)}),D.unfinished=A||D.unfinished,Bo.trigger("series:layoutlabels",S,_,E),Bo.trigger("series:transition",S,_,E),S.eachSeries(function(O){var P=m._chartsMap[O.__viewId];f(O,P),p(O,P)}),l(m,S),Bo.trigger("series:afterupdate",S,_,E)},fo=function(m){m[Sb]=!0,m.getZr().wakeUp()},UP=function(m){m[Sb]&&(m.getZr().storage.traverse(function(S){mv(S)||a(S)}),m[Sb]=!1)};function a(m){for(var S=[],_=m.currentStates,x=0;x<_.length;x++){var E=_[x];E==="emphasis"||E==="blur"||E==="select"||S.push(E)}m.selected&&m.states.select&&S.push("select"),m.hoverState===lT&&m.states.emphasis?S.push("emphasis"):m.hoverState===oT&&m.states.blur&&S.push("blur"),m.useStates(S)}function l(m,S){var _=m._zr,x=_.storage,E=0;x.traverse(function(b){b.isGroup||E++}),E>S.get("hoverLayerThreshold")&&!Tt.node&&!Tt.worker&&S.eachSeries(function(b){if(!b.preventUsingHoverLayer){var D=m._chartsMap[b.__viewId];D.__alive&&D.eachRendered(function(A){A.states.emphasis&&(A.states.emphasis.hoverLayer=!0)})}})}function u(m,S){var _=m.get("blendMode")||null;S.eachRendered(function(x){x.isGroup||(x.style.blend=_)})}function f(m,S){if(!m.preventAutoZ){var _=m.get("z")||0,x=m.get("zlevel")||0;S.eachRendered(function(E){return d(E,_,x,-1/0),!0})}}function d(m,S,_,x){var E=m.getTextContent(),b=m.getTextGuideLine(),D=m.isGroup;if(D)for(var A=m.childrenRef(),O=0;O<A.length;O++)x=Math.max(d(A[O],S,_,x),x);else m.z=S,m.zlevel=_,x=Math.max(m.z2,x);if(E&&(E.z=S,E.zlevel=_,isFinite(x)&&(E.z2=x+2)),b){var P=m.textGuideLineConfig;b.z=S,b.zlevel=_,isFinite(x)&&(b.z2=x+(P&&P.showAbove?1:-1))}return x}function h(m,S){S.eachRendered(function(_){if(!mv(_)){var x=_.getTextContent(),E=_.getTextGuideLine();_.stateTransition&&(_.stateTransition=null),x&&x.stateTransition&&(x.stateTransition=null),E&&E.stateTransition&&(E.stateTransition=null),_.hasState()?(_.prevStates=_.currentStates,_.clearStates()):_.prevStates&&(_.prevStates=null)}})}function p(m,S){var _=m.getModel("stateAnimation"),x=m.isAnimationEnabled(),E=_.get("duration"),b=E>0?{duration:E,delay:_.get("delay"),easing:_.get("easing")}:null;S.eachRendered(function(D){if(D.states&&D.states.emphasis){if(mv(D))return;if(D instanceof Gt&&D8(D),D.__dirty){var A=D.prevStates;A&&D.useStates(A)}if(x){D.stateTransition=b;var O=D.getTextContent(),P=D.getTextGuideLine();O&&(O.stateTransition=b),P&&(P.stateTransition=b)}D.__dirty&&a(D)}})}FP=function(m){return new(function(S){Pt(_,S);function _(){return S!==null&&S.apply(this,arguments)||this}return _.prototype.getCoordinateSystems=function(){return m._coordSysMgr.getCoordinateSystems()},_.prototype.getComponentByElement=function(x){for(;x;){var E=x.__ecComponentInfo;if(E!=null)return m._model.getComponent(E.mainType,E.index);x=x.parent}},_.prototype.enterEmphasis=function(x,E){fT(x,E),fo(m)},_.prototype.leaveEmphasis=function(x,E){cT(x,E),fo(m)},_.prototype.enterBlur=function(x){h8(x),fo(m)},_.prototype.leaveBlur=function(x){y2(x),fo(m)},_.prototype.enterSelect=function(x){_2(x),fo(m)},_.prototype.leaveSelect=function(x){S2(x),fo(m)},_.prototype.getModel=function(){return m.getModel()},_.prototype.getViewOfComponentModel=function(x){return m.getViewOfComponentModel(x)},_.prototype.getViewOfSeriesModel=function(x){return m.getViewOfSeriesModel(x)},_}(Qk))(m)},BP=function(m){function S(_,x){for(var E=0;E<_.length;E++){var b=_[E];b[Cb]=x}}W(Ig,function(_,x){m._messageCenter.on(x,function(E){if(GP[m.group]&&m[Cb]!==RP){if(E&&E.escapeConnect)return;var b=m.makeActionFromEvent(E),D=[];W(zg,function(A){A!==m&&A.group===m.group&&D.push(A)}),S(D,RP),W(D,function(A){A[Cb]!==Hj&&A.dispatchAction(b)}),S(D,Gj)}})})}}(),e}(_l),Db=VP.prototype;Db.on=AP("on"),Db.off=AP("off"),Db.one=function(t,e,n){var r=this;wl("ECharts#one is deprecated.");function a(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];e&&e.apply&&e.apply(this,l),r.off(t,a)}this.on.call(this,t,a,n)};var $j=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Na(t){process.env.NODE_ENV!=="production"&&Fr("Instance "+t+" has been disposed")}var q_={},Ig={},Mb=[],Rb=[],Q_=[],HP={},Ab={},zg={},GP={},jj=+new Date-0,Lb="_echarts_instance_";function Yj(t,e,n){var r=!(n&&n.ssr);if(r){if(process.env.NODE_ENV!=="production"&&!t)throw new Error("Initialize failed: invalid dom.");var a=Wj(t);if(a)return process.env.NODE_ENV!=="production"&&Fr("There is a chart instance already initialized on the dom."),a;process.env.NODE_ENV!=="production"&&zp(t)&&t.nodeName.toUpperCase()!=="CANVAS"&&(!t.clientWidth&&(!n||n.width==null)||!t.clientHeight&&(!n||n.height==null))&&Fr("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var l=new VP(t,e,n);return l.id="ec_"+jj++,zg[l.id]=l,r&&MO(t,Lb,l.id),BP(l),Bo.trigger("afterinit",l),l}function Wj(t){return zg[e6(t,Lb)]}function $P(t,e){HP[t]=e}function jP(t){dn(Rb,t)<0&&Rb.push(t)}function YP(t,e){kb(Mb,t,e,Nj)}function Xj(t){Ob("afterinit",t)}function qj(t){Ob("afterupdate",t)}function Ob(t,e){Bo.on(t,e)}function Rv(t,e,n){_t(e)&&(n=e,e="");var r=it(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,!Ig[e]&&(bt(MP.test(r)&&MP.test(e)),q_[r]||(q_[r]={action:n,actionInfo:t}),Ig[e]=r)}function Qj(t,e){qT.register(t,e)}function Zj(t,e){kb(Q_,t,e,bP,"layout")}function Tc(t,e){kb(Q_,t,e,EP,"visual")}var WP=[];function kb(t,e,n,r,a){if((_t(e)||it(e))&&(n=e,e=r),process.env.NODE_ENV!=="production"){if(isNaN(e)||e==null)throw new Error("Illegal priority");W(t,function(u){bt(u.__raw!==n)})}if(!(dn(WP,n)>=0)){WP.push(n);var l=KN.wrapStageHandler(n,a);l.__prio=e,l.__raw=n,t.push(l)}}function XP(t,e){Ab[t]=e}function Kj(t,e,n){var r=Rj("registerMap");r&&r(t,e,n)}var Jj=n9;Tc(_b,A9),Tc(Y_,L9),Tc(Y_,O9),Tc(_b,W9),Tc(Y_,X9),Tc(DP,Ej),jP(rN),YP(Oj,P$),XP("default",k9),Rv({type:fc,event:fc,update:fc},ta),Rv({type:a_,event:a_,update:a_},ta),Rv({type:ug,event:ug,update:ug},ta),Rv({type:o_,event:o_,update:o_},ta),Rv({type:sg,event:sg,update:sg},ta),$P("light",$9),$P("dark",j9);function Fg(t){return t==null?0:t.length||1}function qP(t){return t}var eY=function(){function t(e,n,r,a,l,u){this._old=e,this._new=n,this._oldKeyGetter=r||qP,this._newKeyGetter=a||qP,this.context=l,this._diffModeMultiple=u==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,n=this._new,r={},a=new Array(e.length),l=new Array(n.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(n,r,l,"_newKeyGetter");for(var u=0;u<e.length;u++){var f=a[u],d=r[f],h=Fg(d);if(h>1){var p=d.shift();d.length===1&&(r[f]=d[0]),this._update&&this._update(p,u)}else h===1?(r[f]=null,this._update&&this._update(d,u)):this._remove&&this._remove(u)}this._performRestAdd(l,r)},t.prototype._executeMultiple=function(){var e=this._old,n=this._new,r={},a={},l=[],u=[];this._initIndexMap(e,r,l,"_oldKeyGetter"),this._initIndexMap(n,a,u,"_newKeyGetter");for(var f=0;f<l.length;f++){var d=l[f],h=r[d],p=a[d],m=Fg(h),S=Fg(p);if(m>1&&S===1)this._updateManyToOne&&this._updateManyToOne(p,h),a[d]=null;else if(m===1&&S>1)this._updateOneToMany&&this._updateOneToMany(p,h),a[d]=null;else if(m===1&&S===1)this._update&&this._update(p,h),a[d]=null;else if(m>1&&S>1)this._updateManyToMany&&this._updateManyToMany(p,h),a[d]=null;else if(m>1)for(var _=0;_<m;_++)this._remove&&this._remove(h[_]);else this._remove&&this._remove(h)}this._performRestAdd(u,a)},t.prototype._performRestAdd=function(e,n){for(var r=0;r<e.length;r++){var a=e[r],l=n[a],u=Fg(l);if(u>1)for(var f=0;f<u;f++)this._add&&this._add(l[f]);else u===1&&this._add&&this._add(l);n[a]=null}},t.prototype._initIndexMap=function(e,n,r,a){for(var l=this._diffModeMultiple,u=0;u<e.length;u++){var f="_ec_"+this[a](e[u],u);if(l||(r[u]=f),!!n){var d=n[f],h=Fg(d);h===0?(n[f]=u,l&&r.push(f)):h===1?n[f]=[d,u]:d.push(u)}}},t}();const Nb=eY;var tY=function(){function t(e,n){this._encode=e,this._schema=n}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 nY(t,e){var n={},r=n.encode={},a=xt(),l=[],u=[],f={};W(t.dimensions,function(S){var _=t.getDimensionInfo(S),x=_.coordDim;if(x){process.env.NODE_ENV!=="production"&&bt(jT.get(x)==null);var E=_.coordDimIndex;Pb(r,x)[E]=S,_.isExtraCoord||(a.set(x,1),iY(_.type)&&(l[0]=S),Pb(f,x)[E]=t.getDimensionIndex(_.name)),_.defaultTooltip&&u.push(S)}jT.each(function(b,D){var A=Pb(r,D),O=_.otherDims[D];O!=null&&O!==!1&&(A[O]=_.name)})});var d=[],h={};a.each(function(S,_){var x=r[_];h[_]=x[0],d=d.concat(x)}),n.dataDimsOnCoord=d,n.dataDimIndicesOnCoord=ot(d,function(S){return t.getDimensionInfo(S).storeDimIndex}),n.encodeFirstDimNotExtra=h;var p=r.label;p&&p.length&&(l=p.slice());var m=r.tooltip;return m&&m.length?u=m.slice():u.length||(u=l.slice()),r.defaultedLabel=l,r.defaultedTooltip=u,n.userOutput=new tY(f,e),n}function Pb(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function rY(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function iY(t){return!(t==="ordinal"||t==="time")}var aY=function(){function t(e){this.otherDims={},e!=null&&Re(this,e)}return t}();const Z_=aY;var oY=jn(),lY={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},QP=function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=JP(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return kt(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var n=this.source.dimensionsDefine;if(n)return n[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,n=lN(this.source),r=!eI(e),a="",l=[],u=0,f=0;u<e;u++){var d=void 0,h=void 0,p=void 0,m=this.dimensions[f];if(m&&m.storeDimIndex===u)d=n?m.name:null,h=m.type,p=m.ordinalMeta,f++;else{var S=this.getSourceDimension(u);S&&(d=n?S.name:null,h=S.type)}l.push({property:d,type:h,ordinalMeta:p}),n&&d!=null&&(!m||!m.isCalculationCoord)&&(a+=r?d.replace(/\`/g,"`1").replace(/\$/g,"`2"):d),a+="$",a+=lY[h]||"f",p&&(a+=p.uid),a+="$"}var _=this.source,x=[_.seriesLayoutBy,_.startIndex,a].join("$$");return{dimensions:l,hash:x}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],n=0,r=0;n<this._fullDimCount;n++){var a=void 0,l=this.dimensions[r];if(l&&l.storeDimIndex===n)l.isCalculationCoord||(a=l.name),r++;else{var u=this.getSourceDimension(n);u&&(a=u.name)}e.push(a)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function ZP(t){return t instanceof QP}function KP(t){for(var e=xt(),n=0;n<(t||[]).length;n++){var r=t[n],a=it(r)?r.name:r;a!=null&&e.get(a)==null&&e.set(a,n)}return e}function JP(t){var e=oY(t);return e.dimNameMap||(e.dimNameMap=KP(t.dimensionsDefine))}function eI(t){return t>30}var Bg=it,Ps=ot,uY=typeof Int32Array>"u"?Array:Int32Array,sY="e\0\0",tI=-1,fY=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],cY=["_approximateExtent"],nI,K_,Ug,Av,Ib,J_,zb,dY=function(){function t(e,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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,a=!1;ZP(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,r=e),r=r||["x","y"];for(var l={},u=[],f={},d=!1,h={},p=0;p<r.length;p++){var m=r[p],S=et(m)?new Z_({name:m}):m instanceof Z_?m:new Z_(m),_=S.name;S.type=S.type||"float",S.coordDim||(S.coordDim=_,S.coordDimIndex=0);var x=S.otherDims=S.otherDims||{};u.push(_),l[_]=S,h[_]!=null&&(d=!0),S.createInvertedIndices&&(f[_]=[]),x.itemName===0&&(this._nameDimIdx=p),x.itemId===0&&(this._idDimIdx=p),process.env.NODE_ENV!=="production"&&bt(a||S.storeDimIndex>=0),a&&(S.storeDimIndex=p)}if(this.dimensions=u,this._dimInfos=l,this._initGetDimensionInfo(d),this.hostModel=n,this._invertedIndicesMap=f,this._dimOmitted){var E=this._dimIdxToName=xt();W(u,function(b){E.set(l[b].storeDimIndex,b)})}}return t.prototype.getDimension=function(e){var n=this._recognizeDimIndex(e);if(n==null)return e;if(n=e,!this._dimOmitted)return this.dimensions[n];var r=this._dimIdxToName.get(n);if(r!=null)return r;var a=this._schema.getSourceDimension(n);if(a)return a.name},t.prototype.getDimensionIndex=function(e){var n=this._recognizeDimIndex(e);if(n!=null)return n;if(e==null)return-1;var r=this._getDimInfo(e);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(Nn(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var n=this.getDimensionIndex(e);if(process.env.NODE_ENV!=="production"&&n==null)throw new Error("Unknown dimension "+e);return n},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var n=this._dimInfos;this._getDimInfo=e?function(r){return n.hasOwnProperty(r)?n[r]:void 0}:function(r){return n[r]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,n){var r=this._dimSummary;if(n==null)return r.encodeFirstDimNotExtra[e];var a=r.encode[e];return a?a[n]:null},t.prototype.mapDimensionsAll=function(e){var n=this._dimSummary,r=n.encode[e];return(r||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,n,r){var a=this,l;if(e instanceof ab&&(l=e),!l){var u=this.dimensions,f=KT(e)||Ai(e)?new fN(e,u.length):e;l=new ab;var d=Ps(u,function(h){return{type:a._dimInfos[h].type,property:h}});l.initData(f,d,r)}this._store=l,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,l.count()),this._dimSummary=nY(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var n=this._store.appendData(e);this._doInit(n[0],n[1])},t.prototype.appendValues=function(e,n){var r=this._store.appendValues(e,n.length),a=r.start,l=r.end,u=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var f=a;f<l;f++){var d=f-a;this._nameList[f]=n[d],u&&zb(this,f)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,n=this.dimensions,r=0;r<n.length;r++){var a=this._dimInfos[n[r]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==bu&&!e.fillStorage},t.prototype._doInit=function(e,n){if(!(e>=n)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var l=this._nameList,u=this._idList,f=a.getSource().sourceFormat,d=f===lo;if(d&&!a.pure)for(var h=[],p=e;p<n;p++){var m=a.getItem(p,h);if(!this.hasItemOption&&G4(m)&&(this.hasItemOption=!0),m){var S=m.name;l[p]==null&&S!=null&&(l[p]=xl(S,null));var _=m.id;u[p]==null&&_!=null&&(u[p]=xl(_,null))}}if(this._shouldMakeIdFromName())for(var p=e;p<n;p++)zb(this,p);nI(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,n){n=this.getDimension(n),this._approximateExtent[n]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,n){Bg(e)?Re(this._calculationInfo,e):this._calculationInfo[e]=n},t.prototype.getName=function(e){var n=this.getRawIndex(e),r=this._nameList[n];return r==null&&this._nameDimIdx!=null&&(r=Ug(this,this._nameDimIdx,n)),r==null&&(r=""),r},t.prototype._getCategory=function(e,n){var r=this._store.get(e,n),a=this._store.getOrdinalMeta(e);return a?a.categories[r]:r},t.prototype.getId=function(e){return K_(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,n){var r=this._store,a=this._dimInfos[e];if(a)return r.get(a.storeDimIndex,n)},t.prototype.getByRawIndex=function(e,n){var r=this._store,a=this._dimInfos[e];if(a)return r.getByRawIndex(a.storeDimIndex,n)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,n){var r=this,a=this._store;return Be(e)?a.getValues(Ps(e,function(l){return r._getStoreDimIndex(l)}),n):a.getValues(e)},t.prototype.hasValue=function(e){for(var n=this._dimSummary.dataDimIndicesOnCoord,r=0,a=n.length;r<a;r++)if(isNaN(this._store.get(n[r],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var n=0,r=this._store.count();n<r;n++)if(this.getName(n)===e)return n;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,n){var r=e&&this._invertedIndicesMap[e];if(process.env.NODE_ENV!=="production"&&!r)throw new Error("Do not supported yet");var a=r[n];return a==null||isNaN(a)?tI:a},t.prototype.indicesOfNearest=function(e,n,r){return this._store.indicesOfNearest(this._getStoreDimIndex(e),n,r)},t.prototype.each=function(e,n,r){_t(e)&&(r=n,n=e,e=[]);var a=r||this,l=Ps(Av(e),this._getStoreDimIndex,this);this._store.each(l,a?Qn(n,a):n)},t.prototype.filterSelf=function(e,n,r){_t(e)&&(r=n,n=e,e=[]);var a=r||this,l=Ps(Av(e),this._getStoreDimIndex,this);return this._store=this._store.filter(l,a?Qn(n,a):n),this},t.prototype.selectRange=function(e){var n=this,r={},a=kn(e);return W(a,function(l){var u=n._getStoreDimIndex(l);r[u]=e[l]}),this._store=this._store.selectRange(r),this},t.prototype.mapArray=function(e,n,r){_t(e)&&(r=n,n=e,e=[]),r=r||this;var a=[];return this.each(e,function(){a.push(n&&n.apply(this,arguments))},r),a},t.prototype.map=function(e,n,r,a){var l=r||a||this,u=Ps(Av(e),this._getStoreDimIndex,this),f=J_(this);return f._store=this._store.map(u,l?Qn(n,l):n),f},t.prototype.modify=function(e,n,r,a){var l=this,u=r||a||this;process.env.NODE_ENV!=="production"&&W(Av(e),function(d){var h=l.getDimensionInfo(d);h.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var f=Ps(Av(e),this._getStoreDimIndex,this);this._store.modify(f,u?Qn(n,u):n)},t.prototype.downSample=function(e,n,r,a){var l=J_(this);return l._store=this._store.downSample(this._getStoreDimIndex(e),n,r,a),l},t.prototype.lttbDownSample=function(e,n){var r=J_(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(e),n),r},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var n=this.hostModel,r=this.getRawDataItem(e);return new Oi(r,n,n&&n.ecModel)},t.prototype.diff=function(e){var n=this;return new Nb(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(r){return K_(e,r)},function(r){return K_(n,r)})},t.prototype.getVisual=function(e){var n=this._visual;return n&&n[e]},t.prototype.setVisual=function(e,n){this._visual=this._visual||{},Bg(e)?Re(this._visual,e):this._visual[e]=n},t.prototype.getItemVisual=function(e,n){var r=this._itemVisuals[e],a=r&&r[n];return a??this.getVisual(n)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,n){var r=this._itemVisuals,a=r[e];a||(a=r[e]={});var l=a[n];return l==null&&(l=this.getVisual(n),Be(l)?l=l.slice():Bg(l)&&(l=Re({},l)),a[n]=l),l},t.prototype.setItemVisual=function(e,n,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Bg(n)?Re(a,n):a[n]=r},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,n){Bg(e)?Re(this._layout,e):this._layout[e]=n},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,n,r){this._itemLayouts[e]=r?Re(this._itemLayouts[e]||{},n):n},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,n){var r=this.hostModel&&this.hostModel.seriesIndex;i8(r,this.dataType,e,n),this._graphicEls[e]=n},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,n){W(this._graphicEls,function(r,a){r&&e&&e.call(n,r,a)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Ps(this.dimensions,this._getDimInfo,this),this.hostModel)),Ib(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,n){var r=this[e];_t(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=r.apply(this,arguments);return n.apply(this,[a].concat(Yw(arguments)))})},t.internalField=function(){nI=function(e){var n=e._invertedIndicesMap;W(n,function(r,a){var l=e._dimInfos[a],u=l.ordinalMeta,f=e._store;if(u){r=n[a]=new uY(u.categories.length);for(var d=0;d<r.length;d++)r[d]=tI;for(var d=0;d<f.count();d++)r[f.get(l.storeDimIndex,d)]=d}})},Ug=function(e,n,r){return xl(e._getCategory(n,r),null)},K_=function(e,n){var r=e._idList[n];return r==null&&e._idDimIdx!=null&&(r=Ug(e,e._idDimIdx,n)),r==null&&(r=sY+n),r},Av=function(e){return Be(e)||(e=e!=null?[e]:[]),e},J_=function(e){var n=new t(e._schema?e._schema:Ps(e.dimensions,e._getDimInfo,e),e.hostModel);return Ib(n,e),n},Ib=function(e,n){W(fY.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(e[r]=n[r])}),e.__wrappedMethods=n.__wrappedMethods,W(cY,function(r){e[r]=Qt(n[r])}),e._calculationInfo=Re({},n._calculationInfo)},zb=function(e,n){var r=e._nameList,a=e._idList,l=e._nameDimIdx,u=e._idDimIdx,f=r[n],d=a[n];if(f==null&&l!=null&&(r[n]=f=Ug(e,l,n)),d==null&&u!=null&&(a[n]=d=Ug(e,u,n)),d==null&&f!=null){var h=e._nameRepeatCount,p=h[f]=(h[f]||0)+1;d=f,p>1&&(d+="__ec__"+p),a[n]=d}}}(),t}();const vY=dY;function hY(t,e){KT(t)||(t=eb(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],a=xt(),l=[],u=gY(t,n,r,e.dimensionsCount),f=e.canOmitUnusedDimensions&&eI(u),d=r===t.dimensionsDefine,h=d?JP(t):KP(r),p=e.encodeDefine;!p&&e.encodeDefaulter&&(p=e.encodeDefaulter(t,u));for(var m=xt(p),S=new wN(u),_=0;_<S.length;_++)S[_]=-1;function x(j){var X=S[j];if(X<0){var G=r[j],ee=it(G)?G:{name:G},J=new Z_,ie=ee.name;ie!=null&&h.get(ie)!=null&&(J.name=J.displayName=ie),ee.type!=null&&(J.type=ee.type),ee.displayName!=null&&(J.displayName=ee.displayName);var ce=l.length;return S[j]=ce,J.storeDimIndex=j,l.push(J),J}return l[X]}if(!f)for(var _=0;_<u;_++)x(_);m.each(function(j,X){var G=rr(j).slice();if(G.length===1&&!et(G[0])&&G[0]<0){m.set(X,!1);return}var ee=m.set(X,[]);W(G,function(J,ie){var ce=et(J)?h.get(J):J;ce!=null&&ce<u&&(ee[ie]=ce,b(x(ce),X,ie))})});var E=0;W(n,function(j){var X,G,ee,J;if(et(j))X=j,J={};else{J=j,X=J.name;var ie=J.ordinalMeta;J.ordinalMeta=null,J=Re({},J),J.ordinalMeta=ie,G=J.dimsDef,ee=J.otherDims,J.name=J.coordDim=J.coordDimIndex=J.dimsDef=J.otherDims=null}var ce=m.get(X);if(ce!==!1){if(ce=rr(ce),!ce.length)for(var fe=0;fe<(G&&G.length||1);fe++){for(;E<u&&x(E).coordDim!=null;)E++;E<u&&ce.push(E++)}W(ce,function(Ne,ae){var ge=x(Ne);if(d&&J.type!=null&&(ge.type=J.type),b(Vt(ge,J),X,ae),ge.name==null&&G){var pe=G[ae];!it(pe)&&(pe={name:pe}),ge.name=ge.displayName=pe.name,ge.defaultTooltip=pe.defaultTooltip}ee&&Vt(ge.otherDims,ee)})}});function b(j,X,G){jT.get(X)!=null?j.otherDims[X]=G:(j.coordDim=X,j.coordDimIndex=G,a.set(X,!0))}var D=e.generateCoord,A=e.generateCoordCount,O=A!=null;A=D?A||1:0;var P=D||"value";function I(j){j.name==null&&(j.name=j.coordDim)}if(f)W(l,function(j){I(j)}),l.sort(function(j,X){return j.storeDimIndex-X.storeDimIndex});else for(var F=0;F<u;F++){var U=x(F),H=U.coordDim;H==null&&(U.coordDim=mY(P,a,O),U.coordDimIndex=0,(!D||A<=0)&&(U.isExtraCoord=!0),A--),I(U),U.type==null&&(Vk(t,F)===ka.Must||U.isExtraCoord&&(U.otherDims.itemName!=null||U.otherDims.seriesName!=null))&&(U.type="ordinal")}return pY(l),new QP({source:t,dimensions:l,fullDimensionCount:u,dimensionOmitted:f})}function pY(t){for(var e=xt(),n=0;n<t.length;n++){var r=t[n],a=r.name,l=e.get(a)||0;l>0&&(r.name=a+(l-1)),l++,e.set(a,l)}}function gY(t,e,n,r){var a=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return W(e,function(l){var u;it(l)&&(u=l.dimsDef)&&(a=Math.max(a,u.length))}),a}function mY(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}var yY=function(){function t(e){this.coordSysDims=[],this.axisMap=xt(),this.categoryAxisMap=xt(),this.coordSysName=e}return t}();function _Y(t){var e=t.get("coordinateSystem"),n=new yY(e),r=SY[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var SY={cartesian2d:function(t,e,n,r){var a=t.getReferringComponents("xAxis",Oo).models[0],l=t.getReferringComponents("yAxis",Oo).models[0];if(process.env.NODE_ENV!=="production"){if(!a)throw new Error('xAxis "'+Yf(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!l)throw new Error('yAxis "'+Yf(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],n.set("x",a),n.set("y",l),Lv(a)&&(r.set("x",a),e.firstCategoryDimIndex=0),Lv(l)&&(r.set("y",l),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var a=t.getReferringComponents("singleAxis",Oo).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],n.set("single",a),Lv(a)&&(r.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var a=t.getReferringComponents("polar",Oo).models[0],l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!u)throw new Error("angleAxis option not found");if(!l)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],n.set("radius",l),n.set("angle",u),Lv(l)&&(r.set("radius",l),e.firstCategoryDimIndex=0),Lv(u)&&(r.set("angle",u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var a=t.ecModel,l=a.getComponent("parallel",t.get("parallelIndex")),u=e.coordSysDims=l.dimensions.slice();W(l.parallelAxisIndex,function(f,d){var h=a.getComponent("parallelAxis",f),p=u[d];n.set(p,h),Lv(h)&&(r.set(p,h),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=d))})}};function Lv(t){return t.get("type")==="category"}function CY(t,e,n){n=n||{};var r=n.byIndex,a=n.stackedCoordDimension,l,u,f;wY(e)?l=e:(u=e.schema,l=u.dimensions,f=e.store);var d=!!(t&&t.get("stack")),h,p,m,S;if(W(l,function(A,O){et(A)&&(l[O]=A={name:A}),d&&!A.isExtraCoord&&(!r&&!h&&A.ordinalMeta&&(h=A),!p&&A.type!=="ordinal"&&A.type!=="time"&&(!a||a===A.coordDim)&&(p=A))}),p&&!r&&!h&&(r=!0),p){m="__\0ecstackresult_"+t.id,S="__\0ecstackedover_"+t.id,h&&(h.createInvertedIndices=!0);var _=p.coordDim,x=p.type,E=0;W(l,function(A){A.coordDim===_&&E++});var b={name:m,coordDim:_,coordDimIndex:E,type:x,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:l.length},D={name:S,coordDim:S,coordDimIndex:E+1,type:x,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:l.length+1};u?(f&&(b.storeDimIndex=f.ensureCalculationDimension(S,x),D.storeDimIndex=f.ensureCalculationDimension(m,x)),u.appendCalculationDimension(b),u.appendCalculationDimension(D)):(l.push(b),l.push(D))}return{stackedDimension:p&&p.name,stackedByDimension:h&&h.name,isStackedByIndex:r,stackedOverDimension:S,stackResultDimension:m}}function wY(t){return!ZP(t.schema)}function rI(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function xY(t,e){return rI(t,e)?t.getCalculationInfo("stackResultDimension"):e}function TY(t,e){var n=t.get("coordinateSystem"),r=qT.get(n),a;return e&&e.coordSysDims&&(a=ot(e.coordSysDims,function(l){var u={name:l},f=e.axisMap.get(l);if(f){var d=f.get("type");u.type=rY(d)}return u})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function bY(t,e,n){var r,a;return n&&W(t,function(l,u){var f=l.coordDim,d=n.categoryAxisMap.get(f);d&&(r==null&&(r=u),l.ordinalMeta=d.getOrdinalMeta(),e&&(l.createInvertedIndices=!0)),l.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(t[r].otherDims.itemName=0),r}function iI(t,e,n){n=n||{};var r=e.getSourceManager(),a,l=!1;t?(l=!0,a=eb(t)):(a=r.getSource(),l=a.sourceFormat===lo);var u=_Y(e),f=TY(e,u),d=n.useEncodeDefaulter,h=_t(d)?d:d?Aa(a$,f,e):null,p={coordDimensions:f,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:h,canOmitUnusedDimensions:!l},m=hY(a,p),S=bY(m.dimensions,n.createInvertedIndices,u),_=l?null:r.getSharedDataStore(m),x=CY(e,{schema:m,store:_}),E=new vY(m,e);E.setCalculationInfo(x);var b=S!=null&&EY(a)?function(D,A,O,P){return P===S?O:this.defaultDimValueGetter(D,A,O,P)}:null;return E.hasItemOption=!1,E.initData(l?a:_,null,b),E}function EY(t){if(t.sourceFormat===lo){var e=DY(t.data||[]);return!Be(tg(e))}}function DY(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var aI=function(){function t(e){this._setting=e||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype.unionExtent=function(e){var n=this._extent;e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1])},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,n){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(n)||(r[1]=n)},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();K0(aI);const Mu=aI;var MY=0,RY=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++MY}return t.createByAxisModel=function(e){var n=e.option,r=n.data,a=r&&ot(r,AY);return new t({categories:a,needCollect:!a,deduplication:n.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var n,r=this._needCollect;if(!et(e)&&!r)return e;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=e,n;var a=this._getOrCreateMap();return n=a.get(e),n==null&&(r?(n=this.categories.length,this.categories[n]=e,a.set(e,n)):n=NaN),n},t.prototype._getOrCreateMap=function(){return this._map||(this._map=xt(this.categories))},t}();function AY(t){return it(t)&&t.value!=null?t.value:t+""}const Fb=RY;function LY(t){var e=Math.pow(10,Q0(Math.abs(t))),n=Math.abs(t/e);return n===0||n===1||n===2||n===3||n===5}function Bb(t){return t.type==="interval"||t.type==="log"}function OY(t,e,n,r){var a={},l=t[1]-t[0],u=a.interval=hO(l/e,!0);n!=null&&u<n&&(u=a.interval=n),r!=null&&u>r&&(u=a.interval=r);var f=a.intervalPrecision=oI(u),d=a.niceTickExtent=[vr(Math.ceil(t[0]/u)*u,f),vr(Math.floor(t[1]/u)*u,f)];return kY(d,t),a}function Ub(t){var e=Math.pow(10,Q0(t)),n=t/e;return n?n===2?n=3:n===3?n=5:n*=2:n=1,vr(n*e)}function oI(t){return Su(t)+2}function lI(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function kY(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),lI(t,0,e),lI(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function e1(t,e){return t>=e[0]&&t<=e[1]}function t1(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function n1(t,e){return t*(e[1]-e[0])+e[0]}var uI=function(t){Pt(e,t);function e(n){var r=t.call(this,n)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new Fb({})),Be(a)&&(a=new Fb({categories:ot(a,function(l){return it(l)?l.value:l})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return e.prototype.parse=function(n){return n==null?NaN:et(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},e.prototype.contain=function(n){return n=this.parse(n),e1(n,this._extent)&&this._ordinalMeta.categories[n]!=null},e.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),t1(n,this._extent)},e.prototype.scale=function(n){return n=Math.round(n1(n,this._extent)),this.getRawOrdinalNumber(n)},e.prototype.getTicks=function(){for(var n=[],r=this._extent,a=r[0];a<=r[1];)n.push({value:a}),a++;return n},e.prototype.getMinorTicks=function(n){},e.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,a=this._ordinalNumbersByTick=[],l=this._ticksByOrdinalNumber=[],u=0,f=this._ordinalMeta.categories.length,d=Math.min(f,r.length);u<d;++u){var h=r[u];a[u]=h,l[h]=u}for(var p=0;u<f;++u){for(;l[p]!=null;)p++;a.push(p),l[p]=u}},e.prototype._getTickNumber=function(n){var r=this._ticksByOrdinalNumber;return r&&n>=0&&n<r.length?r[n]:n},e.prototype.getRawOrdinalNumber=function(n){var r=this._ordinalNumbersByTick;return r&&n>=0&&n<r.length?r[n]:n},e.prototype.getLabel=function(n){if(!this.isBlank()){var r=this.getRawOrdinalNumber(n.value),a=this._ordinalMeta.categories[r];return a==null?"":a+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},e.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Mu);Mu.registerClass(uI);const sI=uI;var bc=vr,fI=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return e.prototype.parse=function(n){return n},e.prototype.contain=function(n){return e1(n,this._extent)},e.prototype.normalize=function(n){return t1(n,this._extent)},e.prototype.scale=function(n){return n1(n,this._extent)},e.prototype.setExtent=function(n,r){var a=this._extent;isNaN(n)||(a[0]=parseFloat(n)),isNaN(r)||(a[1]=parseFloat(r))},e.prototype.unionExtent=function(n){var r=this._extent;n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=oI(n)},e.prototype.getTicks=function(n){var r=this._interval,a=this._extent,l=this._niceExtent,u=this._intervalPrecision,f=[];if(!r)return f;var d=1e4;a[0]<l[0]&&(n?f.push({value:bc(l[0]-r,u)}):f.push({value:a[0]}));for(var h=l[0];h<=l[1]&&(f.push({value:h}),h=bc(h+r,u),h!==f[f.length-1].value);)if(f.length>d)return[];var p=f.length?f[f.length-1].value:l[1];return a[1]>p&&(n?f.push({value:bc(p+r,u)}):f.push({value:a[1]})),f},e.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),a=[],l=this.getExtent(),u=1;u<r.length;u++){for(var f=r[u],d=r[u-1],h=0,p=[],m=f.value-d.value,S=m/n;h<n-1;){var _=bc(d.value+(h+1)*S);_>l[0]&&_<l[1]&&p.push(_),h++}a.push(p)}return a},e.prototype.getLabel=function(n,r){if(n==null)return"";var a=r&&r.precision;a==null?a=Su(n.value)||0:a==="auto"&&(a=this._intervalPrecision);var l=bc(n.value,a,!0);return Lk(l)},e.prototype.calcNiceTicks=function(n,r,a){n=n||5;var l=this._extent,u=l[1]-l[0];if(isFinite(u)){u<0&&(u=-u,l.reverse());var f=OY(l,n,r,a);this._intervalPrecision=f.intervalPrecision,this._interval=f.interval,this._niceExtent=f.niceTickExtent}},e.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1])if(r[0]!==0){var a=Math.abs(r[0]);n.fixMax||(r[1]+=a/2),r[0]-=a/2}else r[1]=1;var l=r[1]-r[0];isFinite(l)||(r[0]=0,r[1]=1),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var u=this._interval;n.fixMin||(r[0]=bc(Math.floor(r[0]/u)*u)),n.fixMax||(r[1]=bc(Math.ceil(r[1]/u)*u))},e.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},e.type="interval",e}(Mu);Mu.registerClass(fI);const Vg=fI;var cI=typeof Float32Array<"u",NY=cI?Float32Array:Array;function Vb(t){return Be(t)?cI?new Float32Array(t):t:new NY(t)}var PY="__ec_stack_";function Hb(t){return t.get("stack")||PY+t.seriesIndex}function Gb(t){return t.dim+t.index}function dI(t,e){var n=[];return e.eachSeriesByType(t,function(r){hI(r)&&n.push(r)}),n}function IY(t){var e={};W(t,function(d){var h=d.coordinateSystem,p=h.getBaseAxis();if(!(p.type!=="time"&&p.type!=="value"))for(var m=d.getData(),S=p.dim+"_"+p.index,_=m.getDimensionIndex(m.mapDimension(p.dim)),x=m.getStore(),E=0,b=x.count();E<b;++E){var D=x.get(_,E);e[S]?e[S].push(D):e[S]=[D]}});var n={};for(var r in e)if(e.hasOwnProperty(r)){var a=e[r];if(a){a.sort(function(d,h){return d-h});for(var l=null,u=1;u<a.length;++u){var f=a[u]-a[u-1];f>0&&(l=l===null?f:Math.min(l,f))}n[r]=l}}return n}function vI(t){var e=IY(t),n=[];return W(t,function(r){var a=r.coordinateSystem,l=a.getBaseAxis(),u=l.getExtent(),f;if(l.type==="category")f=l.getBandWidth();else if(l.type==="value"||l.type==="time"){var d=l.dim+"_"+l.index,h=e[d],p=Math.abs(u[1]-u[0]),m=l.scale.getExtent(),S=Math.abs(m[1]-m[0]);f=h?p/S*h:p}else{var _=r.getData();f=Math.abs(u[1]-u[0])/_.count()}var x=Zr(r.get("barWidth"),f),E=Zr(r.get("barMaxWidth"),f),b=Zr(r.get("barMinWidth")||(pI(r)?.5:1),f),D=r.get("barGap"),A=r.get("barCategoryGap");n.push({bandWidth:f,barWidth:x,barMaxWidth:E,barMinWidth:b,barGap:D,barCategoryGap:A,axisKey:Gb(l),stackId:Hb(r)})}),zY(n)}function zY(t){var e={};W(t,function(r,a){var l=r.axisKey,u=r.bandWidth,f=e[l]||{bandWidth:u,remainedWidth:u,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},d=f.stacks;e[l]=f;var h=r.stackId;d[h]||f.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var p=r.barWidth;p&&!d[h].width&&(d[h].width=p,p=Math.min(f.remainedWidth,p),f.remainedWidth-=p);var m=r.barMaxWidth;m&&(d[h].maxWidth=m);var S=r.barMinWidth;S&&(d[h].minWidth=S);var _=r.barGap;_!=null&&(f.gap=_);var x=r.barCategoryGap;x!=null&&(f.categoryGap=x)});var n={};return W(e,function(r,a){n[a]={};var l=r.stacks,u=r.bandWidth,f=r.categoryGap;if(f==null){var d=kn(l).length;f=Math.max(35-d*4,15)+"%"}var h=Zr(f,u),p=Zr(r.gap,1),m=r.remainedWidth,S=r.autoWidthCount,_=(m-h)/(S+(S-1)*p);_=Math.max(_,0),W(l,function(D){var A=D.maxWidth,O=D.minWidth;if(D.width){var P=D.width;A&&(P=Math.min(P,A)),O&&(P=Math.max(P,O)),D.width=P,m-=P+p*P,S--}else{var P=_;A&&A<P&&(P=Math.min(A,m)),O&&O>P&&(P=O),P!==_&&(D.width=P,m-=P+p*P,S--)}}),_=(m-h)/(S+(S-1)*p),_=Math.max(_,0);var x=0,E;W(l,function(D,A){D.width||(D.width=_),E=D,x+=D.width*(1+p)}),E&&(x-=E.width*p);var b=-x/2;W(l,function(D,A){n[a][A]=n[a][A]||{bandWidth:u,offset:b,width:D.width},b+=D.width*(1+p)})}),n}function FY(t,e,n){if(t&&e){var r=t[Gb(e)];return r!=null&&n!=null?r[Hb(n)]:r}}function BY(t,e){var n=dI(t,e),r=vI(n);W(n,function(a){var l=a.getData(),u=a.coordinateSystem,f=u.getBaseAxis(),d=Hb(a),h=r[Gb(f)][d],p=h.offset,m=h.width;l.setLayout({bandWidth:h.bandWidth,offset:p,size:m})})}function UY(t){return{seriesType:t,plan:FN(),reset:function(e){if(hI(e)){var n=e.getData(),r=e.coordinateSystem,a=r.getBaseAxis(),l=r.getOtherAxis(a),u=n.getDimensionIndex(n.mapDimension(l.dim)),f=n.getDimensionIndex(n.mapDimension(a.dim)),d=e.get("showBackground",!0),h=n.mapDimension(l.dim),p=n.getCalculationInfo("stackResultDimension"),m=rI(n,h)&&!!n.getCalculationInfo("stackedOnSeries"),S=l.isHorizontal(),_=VY(a,l),x=pI(e),E=e.get("barMinHeight")||0,b=p&&n.getDimensionIndex(p),D=n.getLayout("size"),A=n.getLayout("offset");return{progress:function(O,P){for(var I=O.count,F=x&&Vb(I*3),U=x&&d&&Vb(I*3),H=x&&Vb(I),j=r.master.getRect(),X=S?j.width:j.height,G,ee=P.getStore(),J=0;(G=O.next())!=null;){var ie=ee.get(m?b:u,G),ce=ee.get(f,G),fe=_,Ne=void 0;m&&(Ne=+ie-ee.get(u,G));var ae=void 0,ge=void 0,pe=void 0,Le=void 0;if(S){var Ge=r.dataToPoint([ie,ce]);if(m){var St=r.dataToPoint([Ne,ce]);fe=St[0]}ae=fe,ge=Ge[1]+A,pe=Ge[0]-fe,Le=D,Math.abs(pe)<E&&(pe=(pe<0?-1:1)*E)}else{var Ge=r.dataToPoint([ce,ie]);if(m){var St=r.dataToPoint([ce,Ne]);fe=St[1]}ae=Ge[0]+A,ge=fe,pe=D,Le=Ge[1]-fe,Math.abs(Le)<E&&(Le=(Le<=0?-1:1)*E)}x?(F[J]=ae,F[J+1]=ge,F[J+2]=S?pe:Le,U&&(U[J]=S?j.x:ae,U[J+1]=S?ge:j.y,U[J+2]=X),H[G]=G):P.setItemLayout(G,{x:ae,y:ge,width:pe,height:Le}),J+=3}x&&P.setLayout({largePoints:F,largeDataIndices:H,largeBackgroundPoints:U,valueAxisHorizontal:S})}}}}}}function hI(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function pI(t){return t.pipelineContext&&t.pipelineContext.large}function VY(t,e){return e.toGlobalCoord(e.dataToCoord(e.type==="log"?1:0))}var HY=function(t,e,n,r){for(;n<r;){var a=n+r>>>1;t[a][1]<e?n=a+1:r=a}return n},gI=function(t){Pt(e,t);function e(n){var r=t.call(this,n)||this;return r.type="time",r}return e.prototype.getLabel=function(n){var r=this.getSetting("useUTC");return w_(n.value,Ck[qG(yv(this._minLevelUnit))]||Ck.second,r,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(n,r,a){var l=this.getSetting("useUTC"),u=this.getSetting("locale");return QG(n,r,a,u,l)},e.prototype.getTicks=function(){var n=this._interval,r=this._extent,a=[];if(!n)return a;a.push({value:r[0],level:0});var l=this.getSetting("useUTC"),u=qY(this._minLevelUnit,this._approxInterval,l,r);return a=a.concat(u),a.push({value:r[1],level:0}),a},e.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=oo,r[1]+=oo),r[1]===-1/0&&r[0]===1/0){var a=new Date;r[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),r[0]=r[1]-oo}this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},e.prototype.calcNiceTicks=function(n,r,a){n=n||10;var l=this._extent,u=l[1]-l[0];this._approxInterval=u/n,r!=null&&this._approxInterval<r&&(this._approxInterval=r),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var f=r1.length,d=Math.min(HY(r1,this._approxInterval,0,f),f-1);this._interval=r1[d][1],this._minLevelUnit=r1[Math.max(d-1,0)][0]},e.prototype.parse=function(n){return Nn(n)?n:+Cu(n)},e.prototype.contain=function(n){return e1(this.parse(n),this._extent)},e.prototype.normalize=function(n){return t1(this.parse(n),this._extent)},e.prototype.scale=function(n){return n1(n,this._extent)},e.type="time",e}(Vg),r1=[["second",IT],["minute",zT],["hour",gg],["quarter-day",gg*6],["half-day",gg*12],["day",oo*1.2],["half-week",oo*3.5],["week",oo*7],["month",oo*31],["quarter",oo*95],["half-year",Sk/2],["year",Sk]];function GY(t,e,n,r){var a=Cu(e),l=Cu(n),u=function(x){return Tk(a,x,r)===Tk(l,x,r)},f=function(){return u("year")},d=function(){return f()&&u("month")},h=function(){return d()&&u("day")},p=function(){return h()&&u("hour")},m=function(){return p()&&u("minute")},S=function(){return m()&&u("second")},_=function(){return S()&&u("millisecond")};switch(t){case"year":return f();case"month":return d();case"day":return h();case"hour":return p();case"minute":return m();case"second":return S();case"millisecond":return _()}}function $Y(t,e){return t/=oo,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function jY(t){var e=30*oo;return t/=e,t>6?6:t>3?3:t>2?2:1}function YY(t){return t/=gg,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function mI(t,e){return t/=e?zT:IT,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function WY(t){return hO(t,!0)}function XY(t,e,n){var r=new Date(t);switch(yv(e)){case"year":case"month":r[bk(n)](0);case"day":r[Ek(n)](1);case"hour":r[Dk(n)](0);case"minute":r[Mk(n)](0);case"second":r[Rk(n)](0),r[Ak(n)](0)}return r.getTime()}function qY(t,e,n,r){var a=1e4,l=wk,u=0;function f(X,G,ee,J,ie,ce,fe){for(var Ne=new Date(G),ae=G,ge=Ne[J]();ae<ee&&ae<=r[1];)fe.push({value:ae}),ge+=X,Ne[ie](ge),ae=Ne.getTime();fe.push({value:ae,notAdd:!0})}function d(X,G,ee){var J=[],ie=!G.length;if(!GY(yv(X),r[0],r[1],n)){ie&&(G=[{value:XY(new Date(r[0]),X,n)},{value:r[1]}]);for(var ce=0;ce<G.length-1;ce++){var fe=G[ce].value,Ne=G[ce+1].value;if(fe!==Ne){var ae=void 0,ge=void 0,pe=void 0,Le=!1;switch(X){case"year":ae=Math.max(1,Math.round(e/oo/365)),ge=BT(n),pe=ZG(n);break;case"half-year":case"quarter":case"month":ae=jY(e),ge=_v(n),pe=bk(n);break;case"week":case"half-week":case"day":ae=$Y(e),ge=x_(n),pe=Ek(n),Le=!0;break;case"half-day":case"quarter-day":case"hour":ae=YY(e),ge=yg(n),pe=Dk(n);break;case"minute":ae=mI(e,!0),ge=T_(n),pe=Mk(n);break;case"second":ae=mI(e,!1),ge=b_(n),pe=Rk(n);break;case"millisecond":ae=WY(e),ge=E_(n),pe=Ak(n);break}f(ae,fe,Ne,ge,pe,Le,J),X==="year"&&ee.length>1&&ce===0&&ee.unshift({value:ee[0].value-ae})}}for(var ce=0;ce<J.length;ce++)ee.push(J[ce]);return J}}for(var h=[],p=[],m=0,S=0,_=0;_<l.length&&u++<a;++_){var x=yv(l[_]);if(XG(l[_])){d(l[_],h[h.length-1]||[],p);var E=l[_+1]?yv(l[_+1]):null;if(x!==E){if(p.length){S=m,p.sort(function(X,G){return X.value-G.value});for(var b=[],D=0;D<p.length;++D){var A=p[D].value;(D===0||p[D-1].value!==A)&&(b.push(p[D]),A>=r[0]&&A<=r[1]&&m++)}var O=(r[1]-r[0])/e;if(m>O*1.5&&S>O/1.5||(h.push(b),m>O||t===l[_]))break}p=[]}}}process.env.NODE_ENV!=="production"&&u>=a&&Fr("Exceed safe limit.");for(var P=br(ot(h,function(X){return br(X,function(G){return G.value>=r[0]&&G.value<=r[1]&&!G.notAdd})}),function(X){return X.length>0}),I=[],F=P.length-1,_=0;_<P.length;++_)for(var U=P[_],H=0;H<U.length;++H)I.push({value:U[H].value,level:F-_});I.sort(function(X,G){return X.value-G.value});for(var j=[],_=0;_<I.length;++_)(_===0||I[_].value!==I[_-1].value)&&j.push(I[_]);return j}Mu.registerClass(gI);const QY=gI;var yI=Mu.prototype,Hg=Vg.prototype,ZY=vr,KY=Math.floor,JY=Math.ceil,i1=Math.pow,Uo=Math.log,$b=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new Vg,n._interval=0,n}return e.prototype.getTicks=function(n){var r=this._originalScale,a=this._extent,l=r.getExtent(),u=Hg.getTicks.call(this,n);return ot(u,function(f){var d=f.value,h=vr(i1(this.base,d));return h=d===a[0]&&this._fixMin?a1(h,l[0]):h,h=d===a[1]&&this._fixMax?a1(h,l[1]):h,{value:h}},this)},e.prototype.setExtent=function(n,r){var a=Uo(this.base);n=Uo(Math.max(0,n))/a,r=Uo(Math.max(0,r))/a,Hg.setExtent.call(this,n,r)},e.prototype.getExtent=function(){var n=this.base,r=yI.getExtent.call(this);r[0]=i1(n,r[0]),r[1]=i1(n,r[1]);var a=this._originalScale,l=a.getExtent();return this._fixMin&&(r[0]=a1(r[0],l[0])),this._fixMax&&(r[1]=a1(r[1],l[1])),r},e.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var r=this.base;n[0]=Uo(n[0])/Uo(r),n[1]=Uo(n[1])/Uo(r),yI.unionExtent.call(this,n)},e.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},e.prototype.calcNiceTicks=function(n){n=n||10;var r=this._extent,a=r[1]-r[0];if(!(a===1/0||a<=0)){var l=F4(a),u=n/a*l;for(u<=.5&&(l*=10);!isNaN(l)&&Math.abs(l)<1&&Math.abs(l)>0;)l*=10;var f=[vr(JY(r[0]/l)*l),vr(KY(r[1]/l)*l)];this._interval=l,this._niceExtent=f}},e.prototype.calcNiceExtent=function(n){Hg.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},e.prototype.parse=function(n){return n},e.prototype.contain=function(n){return n=Uo(n)/Uo(this.base),e1(n,this._extent)},e.prototype.normalize=function(n){return n=Uo(n)/Uo(this.base),t1(n,this._extent)},e.prototype.scale=function(n){return n=n1(n,this._extent),i1(this.base,n)},e.type="log",e}(Mu),_I=$b.prototype;_I.getMinorTicks=Hg.getMinorTicks,_I.getLabel=Hg.getLabel;function a1(t,e){return ZY(t,Su(e))}Mu.registerClass($b);const eW=$b;var tW=function(){function t(e,n,r){this._prepareParams(e,n,r)}return t.prototype._prepareParams=function(e,n,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var a=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var l=this._modelMinRaw=n.get("min",!0);_t(l)?this._modelMinNum=o1(e,l({min:r[0],max:r[1]})):l!=="dataMin"&&(this._modelMinNum=o1(e,l));var u=this._modelMaxRaw=n.get("max",!0);if(_t(u)?this._modelMaxNum=o1(e,u({min:r[0],max:r[1]})):u!=="dataMax"&&(this._modelMaxNum=o1(e,u)),a)this._axisDataLen=n.getCategories().length;else{var f=n.get("boundaryGap"),d=Be(f)?f:[f||0,f||0];typeof d[0]=="boolean"||typeof d[1]=="boolean"?(process.env.NODE_ENV!=="production"&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[Jf(d[0],1),Jf(d[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,n=this._dataMin,r=this._dataMax,a=this._axisDataLen,l=this._boundaryGapInner,u=e?null:r-n||Math.abs(n),f=this._modelMinRaw==="dataMin"?n:this._modelMinNum,d=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,h=f!=null,p=d!=null;f==null&&(f=e?a?0:NaN:n-l[0]*u),d==null&&(d=e?a?a-1:NaN:r+l[1]*u),(f==null||!isFinite(f))&&(f=NaN),(d==null||!isFinite(d))&&(d=NaN);var m=Fp(f)||Fp(d)||e&&!a;this._needCrossZero&&(f>0&&d>0&&!h&&(f=0),f<0&&d<0&&!p&&(d=0));var S=this._determinedMin,_=this._determinedMax;return S!=null&&(f=S,h=!0),_!=null&&(d=_,p=!0),{min:f,max:d,minFixed:h,maxFixed:p,isBlank:m}},t.prototype.modifyDataMinMax=function(e,n){process.env.NODE_ENV!=="production"&&bt(!this.frozen),this[rW[e]]=n},t.prototype.setDeterminedMinMax=function(e,n){var r=nW[e];process.env.NODE_ENV!=="production"&&bt(!this.frozen&&this[r]==null),this[r]=n},t.prototype.freeze=function(){this.frozen=!0},t}(),nW={min:"_determinedMin",max:"_determinedMax"},rW={min:"_dataMin",max:"_dataMax"};function iW(t,e,n){var r=t.rawExtentInfo;return r||(r=new tW(t,e,n),t.rawExtentInfo=r,r)}function o1(t,e){return e==null?null:Fp(e)?NaN:t.parse(e)}function SI(t,e){var n=t.type,r=iW(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var a=r.min,l=r.max,u=e.ecModel;if(u&&n==="time"){var f=dI("bar",u),d=!1;if(W(f,function(m){d=d||m.getBaseAxis()===e.axis}),d){var h=vI(f),p=aW(a,l,e,h);a=p.min,l=p.max}}return{extent:[a,l],fixMin:r.minFixed,fixMax:r.maxFixed}}function aW(t,e,n,r){var a=n.axis.getExtent(),l=a[1]-a[0],u=FY(r,n.axis);if(u===void 0)return{min:t,max:e};var f=1/0;W(u,function(_){f=Math.min(_.offset,f)});var d=-1/0;W(u,function(_){d=Math.max(_.offset+_.width,d)}),f=Math.abs(f),d=Math.abs(d);var h=f+d,p=e-t,m=1-(f+d)/l,S=p/m-p;return e+=S*(d/h),t-=S*(f/h),{min:t,max:e}}function CI(t,e){var n=e,r=SI(t,n),a=r.extent,l=n.get("splitNumber");t instanceof eW&&(t.base=n.get("logBase"));var u=t.type,f=n.get("interval"),d=u==="interval"||u==="time";t.setExtent(a[0],a[1]),t.calcNiceExtent({splitNumber:l,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:d?n.get("minInterval"):null,maxInterval:d?n.get("maxInterval"):null}),f!=null&&t.setInterval&&t.setInterval(f)}function oW(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new sI({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new QY({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Mu.getClass(e)||Vg)}}function lW(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function Gg(t){var e=t.getLabelModel().get("formatter"),n=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?function(r){return function(a,l){return t.scale.getFormattedLabel(a,l,r)}}(e):et(e)?function(r){return function(a){var l=t.scale.getLabel(a),u=r.replace("{value}",l??"");return u}}(e):_t(e)?function(r){return function(a,l){return n!=null&&(l=a.value-n),r(jb(t,a),l,a.level!=null?{level:a.level}:null)}}(e):function(r){return t.scale.getLabel(r)}}function jb(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function uW(t){var e=t.model,n=t.scale;if(!(!e.get(["axisLabel","show"])||n.isBlank())){var r,a,l=n.getExtent();n instanceof sI?a=n.count():(r=n.getTicks(),a=r.length);var u=t.getLabelModel(),f=Gg(t),d,h=1;a>40&&(h=Math.ceil(a/40));for(var p=0;p<a;p+=h){var m=r?r[p]:{value:l[0]+p},S=f(m,p),_=u.getTextRect(S),x=sW(_,u.get("rotate")||0);d?d.union(x):d=x}return d}}function sW(t,e){var n=e*Math.PI/180,r=t.width,a=t.height,l=r*Math.abs(Math.cos(n))+Math.abs(a*Math.sin(n)),u=r*Math.abs(Math.sin(n))+Math.abs(a*Math.cos(n)),f=new Wt(t.x,t.y,l,u);return f}function Yb(t){var e=t.get("interval");return e??"auto"}function wI(t){return t.type==="category"&&Yb(t.getLabelModel())===0}function fW(t,e){var n={};return W(t.mapDimensionsAll(e),function(r){n[xY(t,r)]=!0}),kn(n)}var cW=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}(),xI=[],dW={registerPreprocessor:jP,registerProcessor:YP,registerPostInit:Xj,registerPostUpdate:qj,registerUpdateLifecycle:Ob,registerAction:Rv,registerCoordinateSystem:Qj,registerLayout:Zj,registerVisual:Tc,registerTransform:Jj,registerLoading:XP,registerMap:Kj,registerImpl:Mj,PRIORITY:Vj,ComponentModel:En,ComponentView:Du,SeriesModel:bv,ChartView:Ev,registerComponentModel:function(t){En.registerClass(t)},registerComponentView:function(t){Du.registerClass(t)},registerSeriesModel:function(t){bv.registerClass(t)},registerChartView:function(t){Ev.registerClass(t)},registerSubTypeDefaulter:function(t,e){En.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){k4(t,e)}};function $g(t){if(Be(t)){W(t,function(e){$g(e)});return}dn(xI,t)>=0||(xI.push(t),_t(t)&&(t={install:t}),t.install(dW))}var jg=jn();function vW(t){return t.type==="category"?pW(t):mW(t)}function hW(t,e){return t.type==="category"?gW(t,e):{ticks:ot(t.scale.getTicks(),function(n){return n.value})}}function pW(t){var e=t.getLabelModel(),n=TI(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function TI(t,e){var n=bI(t,"labels"),r=Yb(e),a=EI(n,r);if(a)return a;var l,u;return _t(r)?l=RI(t,r):(u=r==="auto"?yW(t):r,l=MI(t,u)),DI(n,r,{labels:l,labelCategoryInterval:u})}function gW(t,e){var n=bI(t,"ticks"),r=Yb(e),a=EI(n,r);if(a)return a;var l,u;if((!e.get("show")||t.scale.isBlank())&&(l=[]),_t(r))l=RI(t,r,!0);else if(r==="auto"){var f=TI(t,t.getLabelModel());u=f.labelCategoryInterval,l=ot(f.labels,function(d){return d.tickValue})}else u=r,l=MI(t,u,!0);return DI(n,r,{ticks:l,tickCategoryInterval:u})}function mW(t){var e=t.scale.getTicks(),n=Gg(t);return{labels:ot(e,function(r,a){return{level:r.level,formattedLabel:n(r,a),rawLabel:t.scale.getLabel(r),tickValue:r.value}})}}function bI(t,e){return jg(t)[e]||(jg(t)[e]=[])}function EI(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function DI(t,e,n){return t.push({key:e,value:n}),n}function yW(t){var e=jg(t).autoInterval;return e??(jg(t).autoInterval=t.calculateCategoryInterval())}function _W(t){var e=SW(t),n=Gg(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,a=t.scale,l=a.getExtent(),u=a.count();if(l[1]-l[0]<1)return 0;var f=1;u>40&&(f=Math.max(1,Math.floor(u/40)));for(var d=l[0],h=t.dataToCoord(d+1)-t.dataToCoord(d),p=Math.abs(h*Math.cos(r)),m=Math.abs(h*Math.sin(r)),S=0,_=0;d<=l[1];d+=f){var x=0,E=0,b=Ox(n({value:d}),e.font,"center","top");x=b.width*1.3,E=b.height*1.3,S=Math.max(S,x,7),_=Math.max(_,E,7)}var D=S/p,A=_/m;isNaN(D)&&(D=1/0),isNaN(A)&&(A=1/0);var O=Math.max(0,Math.floor(Math.min(D,A))),P=jg(t.model),I=t.getExtent(),F=P.lastAutoInterval,U=P.lastTickCount;return F!=null&&U!=null&&Math.abs(F-O)<=1&&Math.abs(U-u)<=1&&F>O&&P.axisExtent0===I[0]&&P.axisExtent1===I[1]?O=F:(P.lastTickCount=u,P.lastAutoInterval=O,P.axisExtent0=I[0],P.axisExtent1=I[1]),O}function SW(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function MI(t,e,n){var r=Gg(t),a=t.scale,l=a.getExtent(),u=t.getLabelModel(),f=[],d=Math.max((e||0)+1,1),h=l[0],p=a.count();h!==0&&d>1&&p/d>2&&(h=Math.round(Math.ceil(h/d)*d));var m=wI(t),S=u.get("showMinLabel")||m,_=u.get("showMaxLabel")||m;S&&h!==l[0]&&E(l[0]);for(var x=h;x<=l[1];x+=d)E(x);_&&x-d!==l[1]&&E(l[1]);function E(b){var D={value:b};f.push(n?b:{formattedLabel:r(D),rawLabel:a.getLabel(D),tickValue:b})}return f}function RI(t,e,n){var r=t.scale,a=Gg(t),l=[];return W(r.getTicks(),function(u){var f=r.getLabel(u),d=u.value;e(u.value,f)&&l.push(n?d:{formattedLabel:a(u),rawLabel:f,tickValue:d})}),l}var AI=[0,1],CW=function(){function t(e,n,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=n,this._extent=r||[0,0]}return t.prototype.contain=function(e){var n=this._extent,r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return e>=r&&e<=a},t.prototype.containData=function(e){return this.scale.contain(e)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return P4(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,n){var r=this._extent;r[0]=e,r[1]=n},t.prototype.dataToCoord=function(e,n){var r=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(r=r.slice(),LI(r,a.count())),dO(e,AI,r,n)},t.prototype.coordToData=function(e,n){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),LI(r,a.count()));var l=dO(e,r,AI,n);return this.scale.scale(l)},t.prototype.pointToData=function(e,n){},t.prototype.getTicksCoords=function(e){e=e||{};var n=e.tickModel||this.getTickModel(),r=hW(this,n),a=r.ticks,l=ot(a,function(f){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(f):f),tickValue:f}},this),u=n.get("alignWithLabel");return wW(this,l,u,e.clamp),l},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),n=e.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),a=ot(r,function(l){return ot(l,function(u){return{coord:this.dataToCoord(u),tickValue:u}},this)},this);return a},t.prototype.getViewLabels=function(){return vW(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/r},t.prototype.calculateCategoryInterval=function(){return _W(this)},t}();function LI(t,e){var n=t[1]-t[0],r=e,a=n/r/2;t[0]+=a,t[1]-=a}function wW(t,e,n,r){var a=e.length;if(!t.onBand||n||!a)return;var l=t.getExtent(),u,f;if(a===1)e[0].coord=l[0],u=e[1]={coord:l[0]};else{var d=e[a-1].tickValue-e[0].tickValue,h=(e[a-1].coord-e[0].coord)/d;W(e,function(_){_.coord-=h/2});var p=t.scale.getExtent();f=1+p[1]-e[a-1].tickValue,u={coord:e[a-1].coord+h*f},e.push(u)}var m=l[0]>l[1];S(e[0].coord,l[0])&&(r?e[0].coord=l[0]:e.shift()),r&&S(l[0],e[0].coord)&&e.unshift({coord:l[0]}),S(l[1],u.coord)&&(r?u.coord=l[1]:e.pop()),r&&S(u.coord,l[1])&&e.push({coord:l[1]});function S(_,x){return _=vr(_),x=vr(x),m?_>x:_<x}}const xW=CW;var Yg=Math.PI*2,Ec=As.CMD,TW=["top","right","bottom","left"];function bW(t,e,n,r,a){var l=n.width,u=n.height;switch(t){case"top":r.set(n.x+l/2,n.y-e),a.set(0,-1);break;case"bottom":r.set(n.x+l/2,n.y+u+e),a.set(0,1);break;case"left":r.set(n.x-e,n.y+u/2),a.set(-1,0);break;case"right":r.set(n.x+l+e,n.y+u/2),a.set(1,0);break}}function EW(t,e,n,r,a,l,u,f,d){u-=t,f-=e;var h=Math.sqrt(u*u+f*f);u/=h,f/=h;var p=u*n+t,m=f*n+e;if(Math.abs(r-a)%Yg<1e-4)return d[0]=p,d[1]=m,h-n;if(l){var S=r;r=Ls(a),a=Ls(S)}else r=Ls(r),a=Ls(a);r>a&&(a+=Yg);var _=Math.atan2(f,u);if(_<0&&(_+=Yg),_>=r&&_<=a||_+Yg>=r&&_+Yg<=a)return d[0]=p,d[1]=m,h-n;var x=n*Math.cos(r)+t,E=n*Math.sin(r)+e,b=n*Math.cos(a)+t,D=n*Math.sin(a)+e,A=(x-u)*(x-u)+(E-f)*(E-f),O=(b-u)*(b-u)+(D-f)*(D-f);return A<O?(d[0]=x,d[1]=E,Math.sqrt(A)):(d[0]=b,d[1]=D,Math.sqrt(O))}function Wb(t,e,n,r,a,l,u,f){var d=a-t,h=l-e,p=n-t,m=r-e,S=Math.sqrt(p*p+m*m);p/=S,m/=S;var _=d*p+h*m,x=_/S;f&&(x=Math.min(Math.max(x,0),1)),x*=S;var E=u[0]=t+x*p,b=u[1]=e+x*m;return Math.sqrt((E-a)*(E-a)+(b-l)*(b-l))}function OI(t,e,n,r,a,l,u){n<0&&(t=t+n,n=-n),r<0&&(e=e+r,r=-r);var f=t+n,d=e+r,h=u[0]=Math.min(Math.max(a,t),f),p=u[1]=Math.min(Math.max(l,e),d);return Math.sqrt((h-a)*(h-a)+(p-l)*(p-l))}var Vo=[];function DW(t,e,n){var r=OI(e.x,e.y,e.width,e.height,t.x,t.y,Vo);return n.set(Vo[0],Vo[1]),r}function MW(t,e,n){for(var r=0,a=0,l=0,u=0,f,d,h=1/0,p=e.data,m=t.x,S=t.y,_=0;_<p.length;){var x=p[_++];_===1&&(r=p[_],a=p[_+1],l=r,u=a);var E=h;switch(x){case Ec.M:l=p[_++],u=p[_++],r=l,a=u;break;case Ec.L:E=Wb(r,a,p[_],p[_+1],m,S,Vo,!0),r=p[_++],a=p[_++];break;case Ec.C:E=NL(r,a,p[_++],p[_++],p[_++],p[_++],p[_],p[_+1],m,S,Vo),r=p[_++],a=p[_++];break;case Ec.Q:E=zL(r,a,p[_++],p[_++],p[_],p[_+1],m,S,Vo),r=p[_++],a=p[_++];break;case Ec.A:var b=p[_++],D=p[_++],A=p[_++],O=p[_++],P=p[_++],I=p[_++];_+=1;var F=!!(1-p[_++]);f=Math.cos(P)*A+b,d=Math.sin(P)*O+D,_<=1&&(l=f,u=d);var U=(m-b)*O/A+b;E=EW(b,D,O,P,P+I,F,U,S,Vo),r=Math.cos(P+I)*A+b,a=Math.sin(P+I)*O+D;break;case Ec.R:l=r=p[_++],u=a=p[_++];var H=p[_++],j=p[_++];E=OI(l,u,H,j,m,S,Vo);break;case Ec.Z:E=Wb(r,a,l,u,m,S,Vo,!0),r=l,a=u;break}E<h&&(h=E,n.set(Vo[0],Vo[1]))}return h}var Dc=new ht,Ur=new ht,Pa=new ht,Ov=new ht,Wg=new ht;function kI(t,e){if(t){var n=t.getTextGuideLine(),r=t.getTextContent();if(r&&n){var a=t.textGuideLineConfig||{},l=[[0,0],[0,0],[0,0]],u=a.candidates||TW,f=r.getBoundingRect().clone();f.applyTransform(r.getComputedTransform());var d=1/0,h=a.anchor,p=t.getComputedTransform(),m=p&&R0([],p),S=e.get("length2")||0;h&&Pa.copy(h);for(var _=0;_<u.length;_++){var x=u[_];bW(x,0,f,Dc,Ov),ht.scaleAndAdd(Ur,Dc,Ov,S),Ur.transform(m);var E=t.getBoundingRect(),b=h?h.distance(Ur):t instanceof Gt?MW(Ur,t.path,Pa):DW(Ur,E,Pa);b<d&&(d=b,Ur.transform(p),Pa.transform(p),Pa.toArray(l[0]),Ur.toArray(l[1]),Dc.toArray(l[2]))}RW(l,e.get("minTurnAngle")),n.setShape({points:l})}}}var NI=[],Mc=new ht;function RW(t,e){if(e<=180&&e>0){e=e/180*Math.PI,Dc.fromArray(t[0]),Ur.fromArray(t[1]),Pa.fromArray(t[2]),ht.sub(Ov,Dc,Ur),ht.sub(Wg,Pa,Ur);var n=Ov.len(),r=Wg.len();if(!(n<.001||r<.001)){Ov.scale(1/n),Wg.scale(1/r);var a=Ov.dot(Wg),l=Math.cos(e);if(l<a){var u=Wb(Ur.x,Ur.y,Pa.x,Pa.y,Dc.x,Dc.y,NI,!1);Mc.fromArray(NI),Mc.scaleAndAdd(Wg,u/Math.tan(Math.PI-e));var f=Pa.x!==Ur.x?(Mc.x-Ur.x)/(Pa.x-Ur.x):(Mc.y-Ur.y)/(Pa.y-Ur.y);if(isNaN(f))return;f<0?ht.copy(Mc,Ur):f>1&&ht.copy(Mc,Pa),Mc.toArray(t[1])}}}}function PI(t,e,n,r){var a=n==="normal",l=a?t:t.ensureState(n);l.ignore=e;var u=r.get("smooth");u&&u===!0&&(u=.3),l.shape=l.shape||{},u>0&&(l.shape.smooth=u);var f=r.getModel("lineStyle").getLineStyle();a?t.useStyle(f):l.style=f}function AW(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var a=Qw(r[0],r[1]),l=Qw(r[1],r[2]);if(!a||!l){t.lineTo(r[1][0],r[1][1]),t.lineTo(r[2][0],r[2][1]);return}var u=Math.min(a,l)*n,f=M0([],r[1],r[0],u/a),d=M0([],r[1],r[2],u/l),h=M0([],f,d,.5);t.bezierCurveTo(f[0],f[1],f[0],f[1],h[0],h[1]),t.bezierCurveTo(d[0],d[1],d[0],d[1],r[2][0],r[2][1])}else for(var p=1;p<r.length;p++)t.lineTo(r[p][0],r[p][1])}function LW(t,e,n){var r=t.getTextGuideLine(),a=t.getTextContent();if(!a){r&&t.removeTextGuideLine();return}for(var l=e.normal,u=l.get("show"),f=a.ignore,d=0;d<i_.length;d++){var h=i_[d],p=e[h],m=h==="normal";if(p){var S=p.get("show"),_=m?f:kt(a.states[h]&&a.states[h].ignore,f);if(_||!kt(S,u)){var x=m?r:r&&r.states[h];x&&(x.ignore=!0);continue}r||(r=new wT,t.setTextGuideLine(r),!m&&(f||!u)&&PI(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),PI(r,!1,h,p)}}if(r){Vt(r.style,n),r.style.fill=null;var E=l.get("showAbove"),b=t.textGuideLineConfig=t.textGuideLineConfig||{};b.showAbove=E||!1,r.buildPath=AW}}function OW(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<Ml.length;r++){var a=Ml[r];n[a]=t.getModel([a,e])}return n}function II(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var a=r.label,l=a.getComputedTransform(),u=a.getBoundingRect(),f=!l||l[1]<1e-5&&l[2]<1e-5,d=a.style.margin||0,h=u.clone();h.applyTransform(l),h.x-=d/2,h.y-=d/2,h.width+=d,h.height+=d;var p=f?new v_(u,l):null;e.push({label:a,labelLine:r.labelLine,rect:h,localRect:u,obb:p,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:f,transform:l})}}return e}function zI(t,e,n,r,a,l){var u=t.length;if(u<2)return;t.sort(function(H,j){return H.rect[e]-j.rect[e]});for(var f=0,d,h=!1,p=0,m=0;m<u;m++){var S=t[m],_=S.rect;d=_[e]-f,d<0&&(_[e]-=d,S.label[e]-=d,h=!0);var x=Math.max(-d,0);p+=x,f=_[e]+_[n]}p>0&&l&&I(-p/u,0,u);var E=t[0],b=t[u-1],D,A;O(),D<0&&F(-D,.8),A<0&&F(A,.8),O(),P(D,A,1),P(A,D,-1),O(),D<0&&U(-D),A<0&&U(A);function O(){D=E.rect[e]-r,A=a-b.rect[e]-b.rect[n]}function P(H,j,X){if(H<0){var G=Math.min(j,-H);if(G>0){I(G*X,0,u);var ee=G+H;ee<0&&F(-ee*X,1)}else F(-H*X,1)}}function I(H,j,X){H!==0&&(h=!0);for(var G=j;G<X;G++){var ee=t[G],J=ee.rect;J[e]+=H,ee.label[e]+=H}}function F(H,j){for(var X=[],G=0,ee=1;ee<u;ee++){var J=t[ee-1].rect,ie=Math.max(t[ee].rect[e]-J[e]-J[n],0);X.push(ie),G+=ie}if(G){var ce=Math.min(Math.abs(H)/G,j);if(H>0)for(var ee=0;ee<u-1;ee++){var fe=X[ee]*ce;I(fe,0,ee+1)}else for(var ee=u-1;ee>0;ee--){var fe=X[ee-1]*ce;I(-fe,ee,u)}}}function U(H){var j=H<0?-1:1;H=Math.abs(H);for(var X=Math.ceil(H/(u-1)),G=0;G<u-1;G++)if(j>0?I(X,0,G+1):I(-X,u-G-1,u),H-=X,H<=0)return}return h}function kW(t,e,n,r){return zI(t,"x","width",e,n,r)}function NW(t,e,n,r){return zI(t,"y","height",e,n,r)}function FI(t){var e=[];t.sort(function(E,b){return b.priority-E.priority});var n=new Wt(0,0,0,0);function r(E){if(!E.ignore){var b=E.ensureState("emphasis");b.ignore==null&&(b.ignore=!1)}E.ignore=!0}for(var a=0;a<t.length;a++){var l=t[a],u=l.axisAligned,f=l.localRect,d=l.transform,h=l.label,p=l.labelLine;n.copy(l.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var m=l.obb,S=!1,_=0;_<e.length;_++){var x=e[_];if(n.intersect(x.rect)){if(u&&x.axisAligned){S=!0;break}if(x.obb||(x.obb=new v_(x.localRect,x.transform)),m||(m=new v_(f,d)),m.intersect(x.obb)){S=!0;break}}}S?(r(h),p&&r(p)):(h.attr("ignore",l.defaultAttr.ignore),p&&p.attr("ignore",l.defaultAttr.labelGuideIgnore),e.push(l))}}function PW(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function IW(t,e){var n=t.label,r=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:PW(r&&r.shape.points)}}var BI=["align","verticalAlign","width","height","fontSize"],Ia=new Kp,Xb=jn(),zW=jn();function l1(t,e,n){for(var r=0;r<n.length;r++){var a=n[r];e[a]!=null&&(t[a]=e[a])}}var u1=["x","y","rotation"],FW=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(e,n,r,a,l){var u=a.style,f=a.__hostTarget,d=f.textConfig||{},h=a.getComputedTransform(),p=a.getBoundingRect().plain();Wt.applyTransform(p,p,h),h?Ia.setLocalTransform(h):(Ia.x=Ia.y=Ia.rotation=Ia.originX=Ia.originY=0,Ia.scaleX=Ia.scaleY=1);var m=a.__hostTarget,S;if(m){S=m.getBoundingRect().plain();var _=m.getComputedTransform();Wt.applyTransform(S,S,_)}var x=S&&m.getTextGuideLine();this._labelList.push({label:a,labelLine:x,seriesModel:r,dataIndex:e,dataType:n,layoutOption:l,computedLayoutOption:null,rect:p,hostRect:S,priority:S?S.width*S.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:x&&x.ignore,x:Ia.x,y:Ia.y,scaleX:Ia.scaleX,scaleY:Ia.scaleY,rotation:Ia.rotation,style:{x:u.x,y:u.y,align:u.align,verticalAlign:u.verticalAlign,width:u.width,height:u.height,fontSize:u.fontSize},cursor:a.cursor,attachedPos:d.position,attachedRot:d.rotation}})},t.prototype.addLabelsOfSeries=function(e){var n=this;this._chartViewList.push(e);var r=e.__model,a=r.get("labelLayout");(_t(a)||kn(a).length)&&e.group.traverse(function(l){if(l.ignore)return!0;var u=l.getTextContent(),f=yn(l);u&&!u.disableLabelLayout&&n._addLabel(f.dataIndex,f.dataType,r,u,a)})},t.prototype.updateLayoutConfig=function(e){var n=e.getWidth(),r=e.getHeight();function a(O,P){return function(){kI(O,P)}}for(var l=0;l<this._labelList.length;l++){var u=this._labelList[l],f=u.label,d=f.__hostTarget,h=u.defaultAttr,p=void 0;_t(u.layoutOption)?p=u.layoutOption(IW(u,d)):p=u.layoutOption,p=p||{},u.computedLayoutOption=p;var m=Math.PI/180;d&&d.setTextConfig({local:!1,position:p.x!=null||p.y!=null?null:h.attachedPos,rotation:p.rotate!=null?p.rotate*m:h.attachedRot,offset:[p.dx||0,p.dy||0]});var S=!1;if(p.x!=null?(f.x=Zr(p.x,n),f.setStyle("x",0),S=!0):(f.x=h.x,f.setStyle("x",h.style.x)),p.y!=null?(f.y=Zr(p.y,r),f.setStyle("y",0),S=!0):(f.y=h.y,f.setStyle("y",h.style.y)),p.labelLinePoints){var _=d.getTextGuideLine();_&&(_.setShape({points:p.labelLinePoints}),S=!1)}var x=Xb(f);x.needsUpdateLabelLine=S,f.rotation=p.rotate!=null?p.rotate*m:h.rotation,f.scaleX=h.scaleX,f.scaleY=h.scaleY;for(var E=0;E<BI.length;E++){var b=BI[E];f.setStyle(b,p[b]!=null?p[b]:h.style[b])}if(p.draggable){if(f.draggable=!0,f.cursor="move",d){var D=u.seriesModel;if(u.dataIndex!=null){var A=u.seriesModel.getData(u.dataType);D=A.getItemModel(u.dataIndex)}f.on("drag",a(d,D.getModel("labelLine")))}}else f.off("drag"),f.cursor=h.cursor}},t.prototype.layout=function(e){var n=e.getWidth(),r=e.getHeight(),a=II(this._labelList),l=br(a,function(d){return d.layoutOption.moveOverlap==="shiftX"}),u=br(a,function(d){return d.layoutOption.moveOverlap==="shiftY"});kW(l,0,n),NW(u,0,r);var f=br(a,function(d){return d.layoutOption.hideOverlap});FI(f)},t.prototype.processLabelsOverall=function(){var e=this;W(this._chartViewList,function(n){var r=n.__model,a=n.ignoreLabelLineUpdate,l=r.isAnimationEnabled();n.group.traverse(function(u){if(u.ignore&&!u.forceLabelAnimation)return!0;var f=!a,d=u.getTextContent();!f&&d&&(f=Xb(d).needsUpdateLabelLine),f&&e._updateLabelLine(u,r),l&&e._animateLabels(u,r)})})},t.prototype._updateLabelLine=function(e,n){var r=e.getTextContent(),a=yn(e),l=a.dataIndex;if(r&&l!=null){var u=n.getData(a.dataType),f=u.getItemModel(l),d={},h=u.getItemVisual(l,"style"),p=u.getVisual("drawType");d.stroke=h[p];var m=f.getModel("labelLine");LW(e,OW(f),d),kI(e,m)}},t.prototype._animateLabels=function(e,n){var r=e.getTextContent(),a=e.getTextGuideLine();if(r&&(e.forceLabelAnimation||!r.ignore&&!r.invisible&&!e.disableLabelAnimation&&!mv(e))){var l=Xb(r),u=l.oldLayout,f=yn(e),d=f.dataIndex,h={x:r.x,y:r.y,rotation:r.rotation},p=n.getData(f.dataType);if(u){r.attr(u);var S=e.prevStates;S&&(dn(S,"select")>=0&&r.attr(l.oldLayoutSelect),dn(S,"emphasis")>=0&&r.attr(l.oldLayoutEmphasis)),Po(r,h,n,d)}else if(r.attr(h),!hg(r).valueAnimation){var m=kt(r.style.opacity,1);r.style.opacity=0,Io(r,{style:{opacity:m}},n,d)}if(l.oldLayout=h,r.states.select){var _=l.oldLayoutSelect={};l1(_,h,u1),l1(_,r.states.select,u1)}if(r.states.emphasis){var x=l.oldLayoutEmphasis={};l1(x,h,u1),l1(x,r.states.emphasis,u1)}LG(r,d,p,n,n)}if(a&&!a.ignore&&!a.invisible){var l=zW(a),u=l.oldLayout,E={points:a.shape.points};u?(a.attr({shape:u}),Po(a,{shape:E},n)):(a.setShape(E),a.style.strokePercent=0,Io(a,{style:{strokePercent:1}},n)),l.oldLayout=E}},t}();const BW=FW;var qb=jn();function UW(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,n,r){var a=qb(n).labelManager;a||(a=qb(n).labelManager=new BW),a.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,n,r){var a=qb(n).labelManager;r.updatedSeries.forEach(function(l){a.addLabelsOfSeries(n.getViewOfSeriesModel(l))}),a.updateLayoutConfig(n),a.layout(n),a.processLabelsOverall()})}function VW(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var a=xv(t,e,n[0]);return a!=null?a+"":null}else if(r){for(var l=[],u=0;u<n.length;u++)l.push(xv(t,e,n[u]));return l.join(" ")}}function HW(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!Be(e))return e+"";for(var r=[],a=0;a<n.length;a++){var l=t.getDimensionIndex(n[a]);l>=0&&r.push(e[l])}return r.join(" ")}function GW(t,e,n,r,a){var l=t.getArea(),u=l.x,f=l.y,d=l.width,h=l.height,p=n.get(["lineStyle","width"])||2;u-=p/2,f-=p/2,d+=p,h+=p,u=Math.floor(u),d=Math.round(d);var m=new Kr({shape:{x:u,y:f,width:d,height:h}});if(e){var S=t.getBaseAxis(),_=S.isHorizontal(),x=S.inverse;_?(x&&(m.shape.x+=d),m.shape.width=0):(x||(m.shape.y+=h),m.shape.height=0);var E=_t(a)?function(b){a(b,m)}:null;Io(m,{shape:{width:d,height:h,x:u,y:f}},n,null,r,E)}return m}function $W(t,e,n){var r=t.getArea(),a=vr(r.r0,1),l=vr(r.r,1),u=new dc({shape:{cx:vr(t.cx,1),cy:vr(t.cy,1),r0:a,r:l,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(e){var f=t.getBaseAxis().dim==="angle";f?u.shape.endAngle=r.startAngle:u.shape.r=a,Io(u,{shape:{endAngle:r.endAngle,r:l}},n)}return u}function jW(t,e,n,r,a){if(t){if(t.type==="polar")return $W(t,e,n);if(t.type==="cartesian2d")return GW(t,e,n,r,a)}else return null;return null}function UI(t,e){return t.type===e}var YW={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],n++);return n===0?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]}},WW=function(t){return Math.round(t.length/2)};function XW(t){return{seriesType:t,reset:function(e,n,r){var a=e.getData(),l=e.get("sampling"),u=e.coordinateSystem,f=a.count();if(f>10&&u.type==="cartesian2d"&&l){var d=u.getBaseAxis(),h=u.getOtherAxis(d),p=d.getExtent(),m=r.getDevicePixelRatio(),S=Math.abs(p[1]-p[0])*(m||1),_=Math.round(f/S);if(isFinite(_)&&_>1){l==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(h.dim),1/_));var x=void 0;et(l)?x=YW[l]:_t(l)&&(x=l),x&&e.setData(a.downSample(a.mapDimension(h.dim),1/_,x,WW))}}}}}var VI=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){return iI(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(n,r,a){var l=this.coordinateSystem;if(l&&l.clampData){var u=l.dataToPoint(l.clampData(n));if(a)W(l.getAxes(),function(m,S){if(m.type==="category"){var _=m.getTicksCoords(),x=l.clampData(n)[S];r&&(r[S]==="x1"||r[S]==="y1")&&(x+=1),x>_.length-1&&(x=_.length-1),x<0&&(x=0),_[x]&&(u[S]=m.toGlobalCoord(_[x].coord))}});else{var f=this.getData(),d=f.getLayout("offset"),h=f.getLayout("size"),p=l.getBaseAxis().isHorizontal()?0:1;u[p]+=d+h/2}return u}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(bv);bv.registerClass(VI);const HI=VI;var qW=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(){return iI(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},e.prototype.brushSelector=function(n,r,a){return a.rect(r.getItemLayout(n))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=HG(HI.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(HI);const QW=qW;var ZW=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),KW=function(t){Pt(e,t);function e(n){var r=t.call(this,n)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new ZW},e.prototype.buildPath=function(n,r){var a=r.cx,l=r.cy,u=Math.max(r.r0||0,0),f=Math.max(r.r,0),d=(f-u)*.5,h=u+d,p=r.startAngle,m=r.endAngle,S=r.clockwise,_=Math.PI*2,x=S?m-p<_:p-m<_;x||(p=m-(S?_:-_));var E=Math.cos(p),b=Math.sin(p),D=Math.cos(m),A=Math.sin(m);x?(n.moveTo(E*u+a,b*u+l),n.arc(E*h+a,b*h+l,d,-Math.PI+p,p,!S)):n.moveTo(E*f+a,b*f+l),n.arc(a,l,f,p,m,!S),n.arc(D*h+a,A*h+l,d,m-Math.PI*2,m-Math.PI,!S),u!==0&&n.arc(a,l,u,m,p,S)},e}(Gt);const GI=KW;function JW(t,e){e=e||{};var n=e.isRoundCap;return function(r,a,l){var u=a.position;if(!u||u instanceof Array)return X0(r,a,l);var f=t(u),d=a.distance!=null?a.distance:5,h=this.shape,p=h.cx,m=h.cy,S=h.r,_=h.r0,x=(S+_)/2,E=h.startAngle,b=h.endAngle,D=(E+b)/2,A=n?Math.abs(S-_)/2:0,O=Math.cos,P=Math.sin,I=p+S*O(E),F=m+S*P(E),U="left",H="top";switch(f){case"startArc":I=p+(_-d)*O(D),F=m+(_-d)*P(D),U="center",H="top";break;case"insideStartArc":I=p+(_+d)*O(D),F=m+(_+d)*P(D),U="center",H="bottom";break;case"startAngle":I=p+x*O(E)+s1(E,d+A,!1),F=m+x*P(E)+f1(E,d+A,!1),U="right",H="middle";break;case"insideStartAngle":I=p+x*O(E)+s1(E,-d+A,!1),F=m+x*P(E)+f1(E,-d+A,!1),U="left",H="middle";break;case"middle":I=p+x*O(D),F=m+x*P(D),U="center",H="middle";break;case"endArc":I=p+(S+d)*O(D),F=m+(S+d)*P(D),U="center",H="bottom";break;case"insideEndArc":I=p+(S-d)*O(D),F=m+(S-d)*P(D),U="center",H="top";break;case"endAngle":I=p+x*O(b)+s1(b,d+A,!0),F=m+x*P(b)+f1(b,d+A,!0),U="left",H="middle";break;case"insideEndAngle":I=p+x*O(b)+s1(b,-d+A,!0),F=m+x*P(b)+f1(b,-d+A,!0),U="right",H="middle";break;default:return X0(r,a,l)}return r=r||{},r.x=I,r.y=F,r.align=U,r.verticalAlign=H,r}}function e7(t,e,n,r){if(Nn(r)){t.setTextConfig({rotation:r});return}else if(Be(e)){t.setTextConfig({rotation:0});return}var a=t.shape,l=a.clockwise?a.startAngle:a.endAngle,u=a.clockwise?a.endAngle:a.startAngle,f=(l+u)/2,d,h=n(e);switch(h){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":d=f;break;case"startAngle":case"insideStartAngle":d=l;break;case"endAngle":case"insideEndAngle":d=u;break;default:t.setTextConfig({rotation:0});return}var p=Math.PI*1.5-d;h==="middle"&&p>Math.PI/2&&p<Math.PI*1.5&&(p-=Math.PI),t.setTextConfig({rotation:p})}function s1(t,e,n){return e*Math.sin(t)*(n?-1:1)}function f1(t,e,n){return e*Math.cos(t)*(n?1:-1)}var Qb=Math.max,Zb=Math.min;function t7(t,e){var n=t.getArea&&t.getArea();if(UI(t,"cartesian2d")){var r=t.getBaseAxis();if(r.type!=="category"||!r.onBand){var a=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=a,n.width+=a*2):(n.y-=a,n.height+=a*2)}}return n}var n7=function(t){Pt(e,t);function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return e.prototype.render=function(n,r,a,l){this._model=n,this._removeOnRenderedListener(a),this._updateDrawMode(n);var u=n.get("coordinateSystem");u==="cartesian2d"||u==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(n,r,a):this._renderNormal(n,r,a,l)):process.env.NODE_ENV!=="production"&&Fr("Only cartesian2d and polar supported for bar.")},e.prototype.incrementalPrepareRender=function(n){this._clear(),this._updateDrawMode(n),this._updateLargeClip(n)},e.prototype.incrementalRender=function(n,r){this._progressiveEls=[],this._incrementalRenderLarge(n,r)},e.prototype.eachRendered=function(n){AT(this._progressiveEls||this.group,n)},e.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(n,r,a,l){var u=this.group,f=n.getData(),d=this._data,h=n.coordinateSystem,p=h.getBaseAxis(),m;h.type==="cartesian2d"?m=p.isHorizontal():h.type==="polar"&&(m=p.dim==="angle");var S=n.isAnimationEnabled()?n:null,_=r7(n,h);_&&this._enableRealtimeSort(_,f,a);var x=n.get("clip",!0)||_,E=t7(h,f);u.removeClipPath();var b=n.get("roundCap",!0),D=n.get("showBackground",!0),A=n.getModel("backgroundStyle"),O=A.get("borderRadius")||0,P=[],I=this._backgroundEls,F=l&&l.isInitSort,U=l&&l.type==="changeAxisOrder";function H(G){var ee=c1[h.type](f,G),J=f7(h,m,ee);return J.useStyle(A.getItemStyle()),h.type==="cartesian2d"&&J.setShape("r",O),P[G]=J,J}f.diff(d).add(function(G){var ee=f.getItemModel(G),J=c1[h.type](f,G,ee);if(D&&H(G),!(!f.hasValue(G)||!XI[h.type](J))){var ie=!1;x&&(ie=$I[h.type](E,J));var ce=jI[h.type](n,f,G,J,m,S,p.model,!1,b);_&&(ce.forceLabelAnimation=!0),QI(ce,f,G,ee,J,n,m,h.type==="polar"),F?ce.attr({shape:J}):_?YI(_,S,ce,J,G,m,!1,!1):Io(ce,{shape:J},n,G),f.setItemGraphicEl(G,ce),u.add(ce),ce.ignore=ie}}).update(function(G,ee){var J=f.getItemModel(G),ie=c1[h.type](f,G,J);if(D){var ce=void 0;I.length===0?ce=H(ee):(ce=I[ee],ce.useStyle(A.getItemStyle()),h.type==="cartesian2d"&&ce.setShape("r",O),P[G]=ce);var fe=c1[h.type](f,G),Ne=ez(m,fe,h);Po(ce,{shape:Ne},S,G)}var ae=d.getItemGraphicEl(ee);if(!f.hasValue(G)||!XI[h.type](ie)){u.remove(ae);return}var ge=!1;if(x&&(ge=$I[h.type](E,ie),ge&&u.remove(ae)),ae?uG(ae):ae=jI[h.type](n,f,G,ie,m,S,p.model,!!ae,b),_&&(ae.forceLabelAnimation=!0),U){var pe=ae.getTextContent();if(pe){var Le=hg(pe);Le.prevValue!=null&&(Le.prevValue=Le.value)}}else QI(ae,f,G,J,ie,n,m,h.type==="polar");F?ae.attr({shape:ie}):_?YI(_,S,ae,ie,G,m,!0,U):Po(ae,{shape:ie},n,G,null),f.setItemGraphicEl(G,ae),ae.ignore=ge,u.add(ae)}).remove(function(G){var ee=d.getItemGraphicEl(G);ee&&bT(ee,n,G)}).execute();var j=this._backgroundGroup||(this._backgroundGroup=new Cl);j.removeAll();for(var X=0;X<P.length;++X)j.add(P[X]);u.add(j),this._backgroundEls=P,this._data=f},e.prototype._renderLarge=function(n,r,a){this._clear(),KI(n,this.group),this._updateLargeClip(n)},e.prototype._incrementalRenderLarge=function(n,r){this._removeBackground(),KI(r,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(n){var r=n.get("clip",!0)&&jW(n.coordinateSystem,!1,n),a=this.group;r?a.setClipPath(r):a.removeClipPath()},e.prototype._enableRealtimeSort=function(n,r,a){var l=this;if(r.count()){var u=n.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,n,a),this._isFirstFrame=!1;else{var f=function(d){var h=r.getItemGraphicEl(d),p=h&&h.shape;return p&&Math.abs(u.isHorizontal()?p.height:p.width)||0};this._onRendered=function(){l._updateSortWithinSameData(r,f,u,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(n,r,a){var l=[];return n.each(n.mapDimension(r.dim),function(u,f){var d=a(f);d=d??NaN,l.push({dataIndex:f,mappedValue:d,ordinalNumber:u})}),l.sort(function(u,f){return f.mappedValue-u.mappedValue}),{ordinalNumbers:ot(l,function(u){return u.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(n,r,a){for(var l=a.scale,u=n.mapDimension(a.dim),f=Number.MAX_VALUE,d=0,h=l.getOrdinalMeta().categories.length;d<h;++d){var p=n.rawIndexOf(u,l.getRawOrdinalNumber(d)),m=p<0?Number.MIN_VALUE:r(n.indexOfRawIndex(p));if(m>f)return!0;f=m}return!1},e.prototype._isOrderDifferentInView=function(n,r){for(var a=r.scale,l=a.getExtent(),u=Math.max(0,l[0]),f=Math.min(l[1],a.getOrdinalMeta().categories.length-1);u<=f;++u)if(n.ordinalNumbers[u]!==a.getRawOrdinalNumber(u))return!0},e.prototype._updateSortWithinSameData=function(n,r,a,l){if(this._isOrderChangedWithinSameData(n,r,a)){var u=this._dataSort(n,a,r);this._isOrderDifferentInView(u,a)&&(this._removeOnRenderedListener(l),l.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:u}))}},e.prototype._dispatchInitSort=function(n,r,a){var l=r.baseAxis,u=this._dataSort(n,l,function(f){return n.get(n.mapDimension(r.otherAxis.dim),f)});a.dispatchAction({type:"changeAxisOrder",componentType:l.dim+"Axis",isInitSort:!0,axisId:l.index,sortInfo:u})},e.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(n){var r=this.group,a=this._data;n&&n.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(l){bT(l,n,yn(l).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Ev),$I={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var a=t.x+t.width,l=t.y+t.height,u=Qb(e.x,t.x),f=Zb(e.x+e.width,a),d=Qb(e.y,t.y),h=Zb(e.y+e.height,l),p=f<u,m=h<d;return e.x=p&&u>a?f:u,e.y=m&&d>l?h:d,e.width=p?0:f-u,e.height=m?0:h-d,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),p||m},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var a=Zb(e.r,t.r),l=Qb(e.r0,t.r0);e.r=a,e.r0=l;var u=a-l<0;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}return u}},jI={cartesian2d:function(t,e,n,r,a,l,u,f,d){var h=new Kr({shape:Re({},r),z2:1});if(h.__dataIndex=n,h.name="item",l){var p=h.shape,m=a?"height":"width";p[m]=0}return h},polar:function(t,e,n,r,a,l,u,f,d){var h=!a&&d?GI:dc,p=new h({shape:r,z2:1});p.name="item";var m=qI(a);if(p.calculateTextPosition=JW(m,{isRoundCap:h===GI}),l){var S=p.shape,_=a?"r":"endAngle",x={};S[_]=a?0:r.startAngle,x[_]=r[_],(f?Po:Io)(p,{shape:x},l)}return p}};function r7(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();if(process.env.NODE_ENV!=="production"&&n&&(r.type!=="category"&&Fr("`realtimeSort` will not work because this bar series is not based on a category axis."),e.type!=="cartesian2d"&&Fr("`realtimeSort` will not work because this bar series is not on cartesian2d.")),n&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function YI(t,e,n,r,a,l,u,f){var d,h;l?(h={x:r.x,width:r.width},d={y:r.y,height:r.height}):(h={y:r.y,height:r.height},d={x:r.x,width:r.width}),f||(u?Po:Io)(n,{shape:d},e,a,null);var p=e?t.baseAxis.model:null;(u?Po:Io)(n,{shape:h},p,a)}function WI(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var i7=["x","y","width","height"],a7=["cx","cy","r","startAngle","endAngle"],XI={cartesian2d:function(t){return!WI(t,i7)},polar:function(t){return!WI(t,a7)}},c1={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),a=n?l7(n,r):0,l=r.width>0?1:-1,u=r.height>0?1:-1;return{x:r.x+l*a/2,y:r.y+u*a/2,width:r.width-l*a,height:r.height-u*a}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function o7(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function qI(t){return function(e){var n=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}}(t)}function QI(t,e,n,r,a,l,u,f){var d=e.getItemVisual(n,"style");f||t.setShape("r",r.get(["itemStyle","borderRadius"])||0),t.useStyle(d);var h=r.getShallow("cursor");h&&t.attr("cursor",h);var p=f?u?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":u?a.height>=0?"bottom":"top":a.width>=0?"right":"left",m=EG(r);bG(t,m,{labelFetcher:l,labelDataIndex:n,defaultText:VW(l.getData(),n),inheritColor:d.fill,defaultOpacity:d.opacity,defaultOutsidePosition:p});var S=t.getTextContent();if(f&&S){var _=r.get(["label","position"]);t.textConfig.inside=_==="middle"?!0:null,e7(t,_==="outside"?p:_,qI(u),r.get(["label","rotate"]))}AG(S,m,l.getRawValue(n),function(E){return HW(e,E)});var x=r.getModel(["emphasis"]);w8(t,x.get("focus"),x.get("blurScope"),x.get("disabled")),b8(t,r),o7(a)&&(t.style.fill="none",t.style.stroke="none",W(t.states,function(E){E.style&&(E.style.fill=E.style.stroke="none")}))}function l7(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=t.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),l=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,a,l)}var u7=function(){function t(){}return t}(),ZI=function(t){Pt(e,t);function e(n){var r=t.call(this,n)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new u7},e.prototype.buildPath=function(n,r){for(var a=r.points,l=this.baseDimIdx,u=1-this.baseDimIdx,f=[],d=[],h=this.barWidth,p=0;p<a.length;p+=3)d[l]=h,d[u]=a[p+2],f[l]=a[p+l],f[u]=a[p+u],n.rect(f[0],f[1],d[0],d[1])},e}(Gt);function KI(t,e,n,r){var a=t.getData(),l=a.getLayout("valueAxisHorizontal")?1:0,u=a.getLayout("largeDataIndices"),f=a.getLayout("size"),d=t.getModel("backgroundStyle"),h=a.getLayout("largeBackgroundPoints");if(h){var p=new ZI({shape:{points:h},incremental:!!r,silent:!0,z2:0});p.baseDimIdx=l,p.largeDataIndices=u,p.barWidth=f,p.useStyle(d.getItemStyle()),e.add(p),n&&n.push(p)}var m=new ZI({shape:{points:a.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});m.baseDimIdx=l,m.largeDataIndices=u,m.barWidth=f,e.add(m),m.useStyle(a.getVisual("style")),yn(m).seriesIndex=t.seriesIndex,t.get("silent")||(m.on("mousedown",JI),m.on("mousemove",JI)),n&&n.push(m)}var JI=db(function(t){var e=this,n=s7(e,t.offsetX,t.offsetY);yn(e).dataIndex=n>=0?n:null},30,!1);function s7(t,e,n){for(var r=t.baseDimIdx,a=1-r,l=t.shape.points,u=t.largeDataIndices,f=[],d=[],h=t.barWidth,p=0,m=l.length/3;p<m;p++){var S=p*3;if(d[r]=h,d[a]=l[S+2],f[r]=l[S+r],f[a]=l[S+a],d[a]<0&&(f[a]+=d[a],d[a]=-d[a]),e>=f[0]&&e<=f[0]+d[0]&&n>=f[1]&&n<=f[1]+d[1])return u[p]}return-1}function ez(t,e,n){if(UI(n,"cartesian2d")){var r=e,a=n.getArea();return{x:t?r.x:a.x,y:t?a.y:r.y,width:t?r.width:a.width,height:t?a.height:r.height}}else{var a=n.getArea(),l=e;return{cx:a.cx,cy:a.cy,r0:t?a.r0:l.r0,r:t?a.r:l.r,startAngle:t?l.startAngle:0,endAngle:t?l.endAngle:Math.PI*2}}}function f7(t,e,n){var r=t.type==="polar"?dc:Kr;return new r({shape:ez(e,n,t),silent:!0,z2:0})}const c7=n7;function d7(t){t.registerChartView(c7),t.registerSeriesModel(QW),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Aa(BY,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,UY("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,XW("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,n){var r=e.componentType||"series";n.eachComponent({mainType:r,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var v7=function(t){Pt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(En);const h7=v7;var Kb=function(t){Pt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Oo).models[0]},e.type="cartesian2dAxis",e}(En);ml(Kb,cW);var tz={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:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},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},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},p7=cn({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},tz),Jb=cn({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},tz),g7=cn({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Jb),m7=Vt({logBase:10},Jb);const y7={category:p7,value:Jb,time:g7,log:m7};var _7={value:1,category:1,time:1,log:1};function nz(t,e,n,r){W(_7,function(a,l){var u=cn(cn({},y7[l],!0),r,!0),f=function(d){Pt(h,d);function h(){var p=d!==null&&d.apply(this,arguments)||this;return p.type=e+"Axis."+l,p}return h.prototype.mergeDefaultAndTheme=function(p,m){var S=Sg(this),_=S?$T(p):{},x=m.getTheme();cn(p,x.get(l+"Axis")),cn(p,this.getDefaultOption()),p.type=rz(p),S&&Cg(p,_,S)},h.prototype.optionUpdated=function(){var p=this.option;p.type==="category"&&(this.__ordinalMeta=Fb.createByAxisModel(this))},h.prototype.getCategories=function(p){var m=this.option;if(m.type==="category")return p?m.data:this.__ordinalMeta.categories},h.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},h.type=e+"Axis."+l,h.defaultOption=u,h}(n);t.registerComponentModel(f)}),t.registerSubTypeDefaulter(e+"Axis",rz)}function rz(t){return t.type||(t.data?"category":"value")}var S7=function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return ot(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),br(this.getAxes(),function(n){return n.scale.type===e})},t.prototype.addAxis=function(e){var n=e.dim;this._axes[n]=e,this._dimList.push(n)},t}();const C7=S7;var eE=["x","y"];function iz(t){return t.type==="interval"||t.type==="time"}var w7=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=eE,n}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!iz(n)||!iz(r))){var a=n.getExtent(),l=r.getExtent(),u=this.dataToPoint([a[0],l[0]]),f=this.dataToPoint([a[1],l[1]]),d=a[1]-a[0],h=l[1]-l[0];if(!(!d||!h)){var p=(f[0]-u[0])/d,m=(f[1]-u[1])/h,S=u[0]-a[0]*p,_=u[1]-l[0]*m,x=this._transform=[p,0,0,m,S,_];this._invTransform=R0([],x)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(n){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&a.contain(a.toLocalCoord(n[1]))},e.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},e.prototype.containZone=function(n,r){var a=this.dataToPoint(n),l=this.dataToPoint(r),u=this.getArea(),f=new Wt(a[0],a[1],l[0]-a[0],l[1]-a[1]);return u.intersect(f)},e.prototype.dataToPoint=function(n,r,a){a=a||[];var l=n[0],u=n[1];if(this._transform&&l!=null&&isFinite(l)&&u!=null&&isFinite(u))return eo(a,n,this._transform);var f=this.getAxis("x"),d=this.getAxis("y");return a[0]=f.toGlobalCoord(f.dataToCoord(l,r)),a[1]=d.toGlobalCoord(d.dataToCoord(u,r)),a},e.prototype.clampData=function(n,r){var a=this.getAxis("x").scale,l=this.getAxis("y").scale,u=a.getExtent(),f=l.getExtent(),d=a.parse(n[0]),h=l.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(u[0],u[1]),d),Math.max(u[0],u[1])),r[1]=Math.min(Math.max(Math.min(f[0],f[1]),h),Math.max(f[0],f[1])),r},e.prototype.pointToData=function(n,r){var a=[];if(this._invTransform)return eo(a,n,this._invTransform);var l=this.getAxis("x"),u=this.getAxis("y");return a[0]=l.coordToData(l.toLocalCoord(n[0]),r),a[1]=u.coordToData(u.toLocalCoord(n[1]),r),a},e.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},e.prototype.getArea=function(){var n=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1]),l=Math.min(r[0],r[1]),u=Math.max(n[0],n[1])-a,f=Math.max(r[0],r[1])-l;return new Wt(a,l,u,f)},e}(C7),x7=function(t){Pt(e,t);function e(n,r,a,l,u){var f=t.call(this,n,r,a)||this;return f.index=0,f.type=l||"value",f.position=u||"bottom",f}return e.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},e.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},e}(xW);const T7=x7;function tE(t,e,n){n=n||{};var r=t.coordinateSystem,a=e.axis,l={},u=a.getAxesOnZeroOf()[0],f=a.position,d=u?"onZero":f,h=a.dim,p=r.getRect(),m=[p.x,p.x+p.width,p.y,p.y+p.height],S={left:0,right:1,top:0,bottom:1,onZero:2},_=e.get("offset")||0,x=h==="x"?[m[2]-_,m[3]+_]:[m[0]-_,m[1]+_];if(u){var E=u.toGlobalCoord(u.dataToCoord(0));x[S.onZero]=Math.max(Math.min(E,x[1]),x[0])}l.position=[h==="y"?x[S[d]]:m[0],h==="x"?x[S[d]]:m[3]],l.rotation=Math.PI/2*(h==="x"?0:1);var b={top:-1,bottom:1,left:-1,right:1};l.labelDirection=l.tickDirection=l.nameDirection=b[f],l.labelOffset=u?x[S[f]]-x[S.onZero]:0,e.get(["axisTick","inside"])&&(l.tickDirection=-l.tickDirection),Yf(n.labelInside,e.get(["axisLabel","inside"]))&&(l.labelDirection=-l.labelDirection);var D=e.get(["axisLabel","rotate"]);return l.labelRotate=d==="top"?-D:D,l.z2=1,l}function az(t){return t.get("coordinateSystem")==="cartesian2d"}function oz(t){var e={xAxisModel:null,yAxisModel:null};return W(e,function(n,r){var a=r.replace(/Model$/,""),l=t.getReferringComponents(a,Oo).models[0];if(process.env.NODE_ENV!=="production"&&!l)throw new Error(a+' "'+Wd(t.get(a+"Index"),t.get(a+"Id"),0)+'" not found');e[r]=l}),e}var nE=Math.log;function b7(t,e,n){var r=Vg.prototype,a=r.getTicks.call(n),l=r.getTicks.call(n,!0),u=a.length-1,f=r.getInterval.call(n),d=SI(t,e),h=d.extent,p=d.fixMin,m=d.fixMax;if(t.type==="log"){var S=nE(t.base);h=[nE(h[0])/S,nE(h[1])/S]}t.setExtent(h[0],h[1]),t.calcNiceExtent({splitNumber:u,fixMin:p,fixMax:m});var _=r.getExtent.call(t);p&&(h[0]=_[0]),m&&(h[1]=_[1]);var x=r.getInterval.call(t),E=h[0],b=h[1];if(p&&m)x=(b-E)/u;else if(p)for(b=h[0]+x*u;b<h[1]&&isFinite(b)&&isFinite(h[1]);)x=Ub(x),b=h[0]+x*u;else if(m)for(E=h[1]-x*u;E>h[0]&&isFinite(E)&&isFinite(h[0]);)x=Ub(x),E=h[1]-x*u;else{var D=t.getTicks().length-1;D>u&&(x=Ub(x));var A=x*u;b=Math.ceil(h[1]/x)*x,E=vr(b-A),E<0&&h[0]>=0?(E=0,b=vr(A)):b>0&&h[1]<=0&&(b=0,E=-vr(A))}var O=(a[0].value-l[0].value)/f,P=(a[u].value-l[u].value)/f;if(r.setExtent.call(t,E+x*O,b+x*P),r.setInterval.call(t,x),(O||P)&&r.setNiceExtent.call(t,E+x,b-x),process.env.NODE_ENV!=="production"){var I=r.getTicks.call(t);I[1]&&(!LY(x)||Bx(I[1].value)>Bx(x))&&Fr("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+" and alignTicks: true")}}var E7=function(){function t(e,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=eE,this._initCartesian(e,n,r),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,n){var r=this._axesMap;this._updateScale(e,this.model);function a(u){var f,d=kn(u),h=d.length;if(h){for(var p=[],m=h-1;m>=0;m--){var S=+d[m],_=u[S],x=_.model,E=_.scale;Bb(E)&&x.get("alignTicks")&&x.get("interval")==null?p.push(_):(CI(E,x),Bb(E)&&(f=_))}p.length&&(f||(f=p.pop(),CI(f.scale,f.model)),W(p,function(b){b7(b.scale,b.model,f.scale)}))}}a(r.x),a(r.y);var l={};W(r.x,function(u){lz(r,"y",u,l)}),W(r.y,function(u){lz(r,"x",u,l)}),this.resize(this.model,n)},t.prototype.resize=function(e,n,r){var a=e.getBoxLayoutParams(),l=!r&&e.get("containLabel"),u=GT(a,{width:n.getWidth(),height:n.getHeight()});this._rect=u;var f=this._axesList;d(),l&&(W(f,function(h){if(!h.model.get(["axisLabel","inside"])){var p=uW(h);if(p){var m=h.isHorizontal()?"height":"width",S=h.model.get(["axisLabel","margin"]);u[m]-=p[m]+S,h.position==="top"?u.y+=p.height+S:h.position==="left"&&(u.x+=p.width+S)}}}),d()),W(this._coordsList,function(h){h.calcAffineTransform()});function d(){W(f,function(h){var p=h.isHorizontal(),m=p?[0,u.width]:[0,u.height],S=h.inverse?1:0;h.setExtent(m[S],m[1-S]),D7(h,p?u.x:u.y)})}},t.prototype.getAxis=function(e,n){var r=this._axesMap[e];if(r!=null)return r[n||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,n){if(e!=null&&n!=null){var r="x"+e+"y"+n;return this._coordsMap[r]}it(e)&&(n=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,l=this._coordsList;a<l.length;a++)if(l[a].getAxis("x").index===e||l[a].getAxis("y").index===n)return l[a]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,n,r){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.dataToPoint(r):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(r)):null},t.prototype.convertFromPixel=function(e,n,r){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.pointToData(r):a.axis?a.axis.coordToData(a.axis.toLocalCoord(r)):null},t.prototype._findConvertTarget=function(e){var n=e.seriesModel,r=e.xAxisModel||n&&n.getReferringComponents("xAxis",Oo).models[0],a=e.yAxisModel||n&&n.getReferringComponents("yAxis",Oo).models[0],l=e.gridModel,u=this._coordsList,f,d;if(n)f=n.coordinateSystem,dn(u,f)<0&&(f=null);else if(r&&a)f=this.getCartesian(r.componentIndex,a.componentIndex);else if(r)d=this.getAxis("x",r.componentIndex);else if(a)d=this.getAxis("y",a.componentIndex);else if(l){var h=l.coordinateSystem;h===this&&(f=this._coordsList[0])}return{cartesian:f,axis:d}},t.prototype.containPoint=function(e){var n=this._coordsList[0];if(n)return n.containPoint(e)},t.prototype._initCartesian=function(e,n,r){var a=this,l=this,u={left:!1,right:!1,top:!1,bottom:!1},f={x:{},y:{}},d={x:0,y:0};if(n.eachComponent("xAxis",h("x"),this),n.eachComponent("yAxis",h("y"),this),!d.x||!d.y){this._axesMap={},this._axesList=[];return}this._axesMap=f,W(f.x,function(p,m){W(f.y,function(S,_){var x="x"+m+"y"+_,E=new w7(x);E.master=a,E.model=e,a._coordsMap[x]=E,a._coordsList.push(E),E.addAxis(p),E.addAxis(S)})});function h(p){return function(m,S){if(rE(m,e)){var _=m.get("position");p==="x"?_!=="top"&&_!=="bottom"&&(_=u.bottom?"top":"bottom"):_!=="left"&&_!=="right"&&(_=u.left?"right":"left"),u[_]=!0;var x=new T7(p,oW(m),[0,0],m.get("type"),_),E=x.type==="category";x.onBand=E&&m.get("boundaryGap"),x.inverse=m.get("inverse"),m.axis=x,x.model=m,x.grid=l,x.index=S,l._axesList.push(x),f[p][S]=x,d[p]++}}}},t.prototype._updateScale=function(e,n){W(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var l=a.model.get("categorySortInfo");a.scale.setSortInfo(l)}}),e.eachSeries(function(a){if(az(a)){var l=oz(a),u=l.xAxisModel,f=l.yAxisModel;if(!rE(u,n)||!rE(f,n))return;var d=this.getCartesian(u.componentIndex,f.componentIndex),h=a.getData(),p=d.getAxis("x"),m=d.getAxis("y");r(h,p),r(h,m)}},this);function r(a,l){W(fW(a,l.dim),function(u){l.scale.unionExtentFromData(a,u)})}},t.prototype.getTooltipAxes=function(e){var n=[],r=[];return W(this.getCartesians(),function(a){var l=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),u=a.getOtherAxis(l);dn(n,l)<0&&n.push(l),dn(r,u)<0&&r.push(u)}),{baseAxes:n,otherAxes:r}},t.create=function(e,n){var r=[];return e.eachComponent("grid",function(a,l){var u=new t(a,e,n);u.name="grid_"+l,u.resize(a,n,!0),a.coordinateSystem=u,r.push(u)}),e.eachSeries(function(a){if(az(a)){var l=oz(a),u=l.xAxisModel,f=l.yAxisModel,d=u.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!d)throw new Error('Grid "'+Wd(u.get("gridIndex"),u.get("gridId"),0)+'" not found');if(u.getCoordSysModel()!==f.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var h=d.coordinateSystem;a.coordinateSystem=h.getCartesian(u.componentIndex,f.componentIndex)}}),r},t.dimensions=eE,t}();function rE(t,e){return t.getCoordSysModel()===e}function lz(t,e,n,r){n.getAxesOnZeroOf=function(){return l?[l]:[]};var a=t[e],l,u=n.model,f=u.get(["axisLine","onZero"]),d=u.get(["axisLine","onZeroAxisIndex"]);if(!f)return;if(d!=null)uz(a[d])&&(l=a[d]);else for(var h in a)if(a.hasOwnProperty(h)&&uz(a[h])&&!r[p(a[h])]){l=a[h];break}l&&(r[p(l)]=!0);function p(m){return m.dim+"_"+m.index}}function uz(t){return t&&t.type!=="category"&&t.type!=="time"&&lW(t)}function D7(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord=t.dim==="x"?function(a){return a+e}:function(a){return r-a+e},t.toLocalCoord=t.dim==="x"?function(a){return a-e}:function(a){return r-a+e}}const M7=E7;var Is=Math.PI,Rc=function(){function t(e,n){this.group=new Cl,this.opt=n,this.axisModel=e,Vt(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new Cl({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return t.prototype.hasBuilder=function(e){return!!sz[e]},t.prototype.add=function(e){sz[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,n,r){var a=vO(n-e),l,u;return q0(a)?(u=r>0?"top":"bottom",l="center"):q0(a-Is)?(u=r>0?"bottom":"top",l="center"):(u="middle",a>0&&a<Is?l=r>0?"right":"left":l=r>0?"left":"right"),{rotation:a,textAlign:l,textVerticalAlign:u}},t.makeAxisEventDataBase=function(e){var n={componentType:e.mainType,componentIndex:e.componentIndex};return n[e.mainType+"Index"]=e.componentIndex,n},t.isLabelSilent=function(e){var n=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||n&&n.show)},t}(),sz={axisLine:function(t,e,n,r){var a=e.get(["axisLine","show"]);if(a==="auto"&&t.handleAutoShown&&(a=t.handleAutoShown("axisLine")),!!a){var l=e.axis.getExtent(),u=r.transform,f=[l[0],0],d=[l[1],0],h=f[0]>d[0];u&&(eo(f,f,u),eo(d,d,u));var p=Re({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),m=new vc({shape:{x1:f[0],y1:f[1],x2:d[0],y2:d[1]},style:p,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});vg(m.shape,m.style.lineWidth),m.anid="line",n.add(m);var S=e.get(["axisLine","symbol"]);if(S!=null){var _=e.get(["axisLine","symbolSize"]);et(S)&&(S=[S,S]),(et(_)||Nn(_))&&(_=[_,_]);var x=fj(e.get(["axisLine","symbolOffset"])||0,_),E=_[0],b=_[1];W([{rotate:t.rotation+Math.PI/2,offset:x[0],r:0},{rotate:t.rotation-Math.PI/2,offset:x[1],r:Math.sqrt((f[0]-d[0])*(f[0]-d[0])+(f[1]-d[1])*(f[1]-d[1]))}],function(D,A){if(S[A]!=="none"&&S[A]!=null){var O=iP(S[A],-E/2,-b/2,E,b,p.stroke,!0),P=D.r+D.offset,I=h?d:f;O.attr({rotation:D.rotate,x:I[0]+P*Math.cos(t.rotation),y:I[1]-P*Math.sin(t.rotation),silent:!0,z2:11}),n.add(O)}})}}},axisTickLabel:function(t,e,n,r){var a=L7(n,r,e,t),l=k7(n,r,e,t);if(A7(e,l,a),O7(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var u=II(ot(l,function(f){return{label:f,priority:f.z2,defaultAttr:{ignore:f.ignore}}}));FI(u)}},axisName:function(t,e,n,r){var a=Yf(t.axisName,e.get("name"));if(a){var l=e.get("nameLocation"),u=t.nameDirection,f=e.getModel("nameTextStyle"),d=e.get("nameGap")||0,h=e.axis.getExtent(),p=h[0]>h[1]?-1:1,m=[l==="start"?h[0]-p*d:l==="end"?h[1]+p*d:(h[0]+h[1])/2,cz(l)?t.labelOffset+u*d:0],S,_=e.get("nameRotate");_!=null&&(_=_*Is/180);var x;cz(l)?S=Rc.innerTextLayout(t.rotation,_??t.rotation,u):(S=R7(t.rotation,l,_||0,h),x=t.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(S.rotation)),!isFinite(x)&&(x=null)));var E=f.getFont(),b=e.get("nameTruncate",!0)||{},D=b.ellipsis,A=Yf(t.nameTruncateMaxWidth,b.maxWidth,x),O=new ko({x:m[0],y:m[1],rotation:S.rotation,silent:Rc.isLabelSilent(e),style:gc(f,{text:a,font:E,overflow:"truncate",width:A,ellipsis:D,fill:f.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:f.get("align")||S.textAlign,verticalAlign:f.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(uk({el:O,componentModel:e,itemName:a}),O.__fullText=a,O.anid="name",e.get("triggerEvent")){var P=Rc.makeAxisEventDataBase(e);P.targetType="axisName",P.name=a,yn(O).eventData=P}r.add(O),O.updateTransform(),n.add(O),O.decomposeTransform()}}};function R7(t,e,n,r){var a=vO(n-t),l,u,f=r[0]>r[1],d=e==="start"&&!f||e!=="start"&&f;return q0(a-Is/2)?(u=d?"bottom":"top",l="center"):q0(a-Is*1.5)?(u=d?"top":"bottom",l="center"):(u="middle",a<Is*1.5&&a>Is/2?l=d?"left":"right":l=d?"right":"left"),{rotation:a,textAlign:l,textVerticalAlign:u}}function A7(t,e,n){if(!wI(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var l=e[0],u=e[1],f=e[e.length-1],d=e[e.length-2],h=n[0],p=n[1],m=n[n.length-1],S=n[n.length-2];r===!1?(co(l),co(h)):fz(l,u)&&(r?(co(u),co(p)):(co(l),co(h))),a===!1?(co(f),co(m)):fz(d,f)&&(a?(co(d),co(S)):(co(f),co(m)))}}function co(t){t&&(t.ignore=!0)}function fz(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!n||!r)){var a=ix([]);return ox(a,a,-t.rotation),n.applyTransform(Jd([],a,t.getLocalTransform())),r.applyTransform(Jd([],a,e.getLocalTransform())),n.intersect(r)}}function cz(t){return t==="middle"||t==="center"}function dz(t,e,n,r,a){for(var l=[],u=[],f=[],d=0;d<t.length;d++){var h=t[d].coord;u[0]=h,u[1]=0,f[0]=h,f[1]=n,e&&(eo(u,u,e),eo(f,f,e));var p=new vc({shape:{x1:u[0],y1:u[1],x2:f[0],y2:f[1]},style:r,z2:2,autoBatch:!0,silent:!0});vg(p.shape,p.style.lineWidth),p.anid=a+"_"+t[d].tickValue,l.push(p)}return l}function L7(t,e,n,r){var a=n.axis,l=n.getModel("axisTick"),u=l.get("show");if(u==="auto"&&r.handleAutoShown&&(u=r.handleAutoShown("axisTick")),!(!u||a.scale.isBlank())){for(var f=l.getModel("lineStyle"),d=r.tickDirection*l.get("length"),h=a.getTicksCoords(),p=dz(h,e.transform,d,Vt(f.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),m=0;m<p.length;m++)t.add(p[m]);return p}}function O7(t,e,n,r){var a=n.axis,l=n.getModel("minorTick");if(!(!l.get("show")||a.scale.isBlank())){var u=a.getMinorTicksCoords();if(u.length)for(var f=l.getModel("lineStyle"),d=r*l.get("length"),h=Vt(f.getLineStyle(),Vt(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),p=0;p<u.length;p++)for(var m=dz(u[p],e.transform,d,h,"minorticks_"+p),S=0;S<m.length;S++)t.add(m[S])}}function k7(t,e,n,r){var a=n.axis,l=Yf(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!l||a.scale.isBlank())){var u=n.getModel("axisLabel"),f=u.get("margin"),d=a.getViewLabels(),h=(Yf(r.labelRotate,u.get("rotate"))||0)*Is/180,p=Rc.innerTextLayout(r.rotation,h,r.labelDirection),m=n.getCategories&&n.getCategories(!0),S=[],_=Rc.isLabelSilent(n),x=n.get("triggerEvent");return W(d,function(E,b){var D=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(E.tickValue):E.tickValue,A=E.formattedLabel,O=E.rawLabel,P=u;if(m&&m[D]){var I=m[D];it(I)&&I.textStyle&&(P=new Oi(I.textStyle,u,n.ecModel))}var F=P.getTextColor()||n.get(["axisLine","lineStyle","color"]),U=a.dataToCoord(D),H=new ko({x:U,y:r.labelOffset+r.labelDirection*f,rotation:p.rotation,silent:_,z2:10+(E.level||0),style:gc(P,{text:A,align:P.getShallow("align",!0)||p.textAlign,verticalAlign:P.getShallow("verticalAlign",!0)||P.getShallow("baseline",!0)||p.textVerticalAlign,fill:_t(F)?F(a.type==="category"?O:a.type==="value"?D+"":D,b):F})});if(H.anid="label_"+D,x){var j=Rc.makeAxisEventDataBase(n);j.targetType="axisLabel",j.value=O,j.tickIndex=b,a.type==="category"&&(j.dataIndex=D),yn(H).eventData=j}e.add(H),H.updateTransform(),S.push(H),t.add(H),H.decomposeTransform()}),S}}const vz=Rc;function N7(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return P7(n,t,e),n.seriesInvolved&&z7(n,t),n}function P7(t,e,n){var r=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),l=a.get("link",!0)||[],u=[];W(n.getCoordinateSystems(),function(f){if(!f.axisPointerEnabled)return;var d=Xg(f.model),h=t.coordSysAxesInfo[d]={};t.coordSysMap[d]=f;var p=f.model,m=p.getModel("tooltip",r);if(W(f.getAxes(),Aa(E,!1,null)),f.getTooltipAxes&&r&&m.get("show")){var S=m.get("trigger")==="axis",_=m.get(["axisPointer","type"])==="cross",x=f.getTooltipAxes(m.get(["axisPointer","axis"]));(S||_)&&W(x.baseAxes,Aa(E,_?"cross":!0,S)),_&&W(x.otherAxes,Aa(E,"cross",!1))}function E(b,D,A){var O=A.model.getModel("axisPointer",a),P=O.get("show");if(!(!P||P==="auto"&&!b&&!oE(O))){D==null&&(D=O.get("triggerTooltip")),O=b?I7(A,m,a,e,b,D):O;var I=O.get("snap"),F=Xg(A.model),U=D||I||A.type==="category",H=t.axesInfo[F]={key:F,axis:A,coordSys:f,axisPointerModel:O,triggerTooltip:D,involveSeries:U,snap:I,useHandle:oE(O),seriesModels:[],linkGroup:null};h[F]=H,t.seriesInvolved=t.seriesInvolved||U;var j=F7(l,A);if(j!=null){var X=u[j]||(u[j]={axesInfo:{}});X.axesInfo[F]=H,X.mapper=l[j].mapper,H.linkGroup=X}}}})}function I7(t,e,n,r,a,l){var u=e.getModel("axisPointer"),f=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],d={};W(f,function(S){d[S]=Qt(u.get(S))}),d.snap=t.type!=="category"&&!!l,u.get("type")==="cross"&&(d.type="line");var h=d.label||(d.label={});if(h.show==null&&(h.show=!1),a==="cross"){var p=u.get(["label","show"]);if(h.show=p??!0,!l){var m=d.lineStyle=u.get("crossStyle");m&&Vt(h,m.textStyle)}}return t.model.getModel("axisPointer",new Oi(d,n,r))}function z7(t,e){e.eachSeries(function(n){var r=n.coordinateSystem,a=n.get(["tooltip","trigger"],!0),l=n.get(["tooltip","show"],!0);!r||a==="none"||a===!1||a==="item"||l===!1||n.get(["axisPointer","show"],!0)===!1||W(t.coordSysAxesInfo[Xg(r.model)],function(u){var f=u.axis;r.getAxis(f.dim)===f&&(u.seriesModels.push(n),u.seriesDataCount==null&&(u.seriesDataCount=0),u.seriesDataCount+=n.getData().count())})})}function F7(t,e){for(var n=e.model,r=e.dim,a=0;a<t.length;a++){var l=t[a]||{};if(iE(l[r+"AxisId"],n.id)||iE(l[r+"AxisIndex"],n.componentIndex)||iE(l[r+"AxisName"],n.name))return a}}function iE(t,e){return t==="all"||Be(t)&&dn(t,e)>=0||t===e}function B7(t){var e=aE(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,a=n.option,l=n.get("status"),u=n.get("value");u!=null&&(u=r.parse(u));var f=oE(n);l==null&&(a.status=f?"show":"hide");var d=r.getExtent().slice();d[0]>d[1]&&d.reverse(),(u==null||u>d[1])&&(u=d[1]),u<d[0]&&(u=d[0]),a.value=u,f&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function aE(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Xg(t)]}function U7(t){var e=aE(t);return e&&e.axisPointerModel}function oE(t){return!!t.get(["handle","show"])}function Xg(t){return t.type+"||"+t.id}var lE={},V7=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a,l){this.axisPointerClass&&B7(n),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,a,!0)},e.prototype.updateAxisPointer=function(n,r,a,l){this._doUpdateAxisPointerClass(n,a,!1)},e.prototype.remove=function(n,r){var a=this._axisPointer;a&&a.remove(r)},e.prototype.dispose=function(n,r){this._disposeAxisPointer(r),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(n,r,a){var l=e.getAxisPointerClass(this.axisPointerClass);if(l){var u=U7(n);u?(this._axisPointer||(this._axisPointer=new l)).render(n,u,r,a):this._disposeAxisPointer(r)}},e.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},e.registerAxisPointerClass=function(n,r){if(process.env.NODE_ENV!=="production"&&lE[n])throw new Error("axisPointer "+n+" exists");lE[n]=r},e.getAxisPointerClass=function(n){return n&&lE[n]},e.type="axis",e}(Du);const hz=V7;var uE=jn();function H7(t,e,n,r){var a=n.axis;if(!a.scale.isBlank()){var l=n.getModel("splitArea"),u=l.getModel("areaStyle"),f=u.get("color"),d=r.coordinateSystem.getRect(),h=a.getTicksCoords({tickModel:l,clamp:!0});if(h.length){var p=f.length,m=uE(t).splitAreaColors,S=xt(),_=0;if(m)for(var x=0;x<h.length;x++){var E=m.get(h[x].tickValue);if(E!=null){_=(E+(p-1)*x)%p;break}}var b=a.toGlobalCoord(h[0].coord),D=u.getAreaStyle();f=Be(f)?f:[f];for(var x=1;x<h.length;x++){var A=a.toGlobalCoord(h[x].coord),O=void 0,P=void 0,I=void 0,F=void 0;a.isHorizontal()?(O=b,P=d.y,I=A-O,F=d.height,b=O+I):(O=d.x,P=b,I=d.width,F=A-P,b=P+F);var U=h[x-1].tickValue;U!=null&&S.set(U,_),e.add(new Kr({anid:U!=null?"area_"+U:null,shape:{x:O,y:P,width:I,height:F},style:Vt({fill:f[_]},D),autoBatch:!0,silent:!0})),_=(_+1)%p}uE(t).splitAreaColors=S}}}function G7(t){uE(t).splitAreaColors=null}var $7=["axisLine","axisTickLabel","axisName"],j7=["splitArea","splitLine","minorSplitLine"],pz=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return e.prototype.render=function(n,r,a,l){this.group.removeAll();var u=this._axisGroup;if(this._axisGroup=new Cl,this.group.add(this._axisGroup),!!n.get("show")){var f=n.getCoordSysModel(),d=tE(f,n),h=new vz(n,Re({handleAutoShown:function(m){for(var S=f.coordinateSystem.getCartesians(),_=0;_<S.length;_++)if(Bb(S[_].getOtherAxis(n.axis).scale))return!0;return!1}},d));W($7,h.add,h),this._axisGroup.add(h.getGroup()),W(j7,function(m){n.get([m,"show"])&&Y7[m](this,this._axisGroup,n,f)},this);var p=l&&l.type==="changeAxisOrder"&&l.isInitSort;p||ak(u,this._axisGroup,n),t.prototype.render.call(this,n,r,a,l)}},e.prototype.remove=function(){G7(this)},e.type="cartesianAxis",e}(hz),Y7={splitLine:function(t,e,n,r){var a=n.axis;if(!a.scale.isBlank()){var l=n.getModel("splitLine"),u=l.getModel("lineStyle"),f=u.get("color");f=Be(f)?f:[f];for(var d=r.coordinateSystem.getRect(),h=a.isHorizontal(),p=0,m=a.getTicksCoords({tickModel:l}),S=[],_=[],x=u.getLineStyle(),E=0;E<m.length;E++){var b=a.toGlobalCoord(m[E].coord);h?(S[0]=b,S[1]=d.y,_[0]=b,_[1]=d.y+d.height):(S[0]=d.x,S[1]=b,_[0]=d.x+d.width,_[1]=b);var D=p++%f.length,A=m[E].tickValue,O=new vc({anid:A!=null?"line_"+m[E].tickValue:null,autoBatch:!0,shape:{x1:S[0],y1:S[1],x2:_[0],y2:_[1]},style:Vt({stroke:f[D]},x),silent:!0});vg(O.shape,x.lineWidth),e.add(O)}}},minorSplitLine:function(t,e,n,r){var a=n.axis,l=n.getModel("minorSplitLine"),u=l.getModel("lineStyle"),f=r.coordinateSystem.getRect(),d=a.isHorizontal(),h=a.getMinorTicksCoords();if(h.length)for(var p=[],m=[],S=u.getLineStyle(),_=0;_<h.length;_++)for(var x=0;x<h[_].length;x++){var E=a.toGlobalCoord(h[_][x].coord);d?(p[0]=E,p[1]=f.y,m[0]=E,m[1]=f.y+f.height):(p[0]=f.x,p[1]=E,m[0]=f.x+f.width,m[1]=E);var b=new vc({anid:"minor_line_"+h[_][x].tickValue,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:m[0],y2:m[1]},style:S,silent:!0});vg(b.shape,S.lineWidth),e.add(b)}},splitArea:function(t,e,n,r){H7(t,e,n,r)}},gz=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="xAxis",e}(pz),W7=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=gz.type,n}return e.type="yAxis",e}(pz),X7=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="grid",n}return e.prototype.render=function(n,r){this.group.removeAll(),n.get("show")&&this.group.add(new Kr({shape:n.coordinateSystem.getRect(),style:Vt({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Du),mz={offset:0};function q7(t){t.registerComponentView(X7),t.registerComponentModel(h7),t.registerCoordinateSystem("cartesian2d",M7),nz(t,"x",Kb,mz),nz(t,"y",Kb,mz),t.registerComponentView(gz),t.registerComponentView(W7),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var Ac=jn(),yz=Qt,sE=Qn,Q7=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,n,r,a){var l=n.get("value"),u=n.get("status");if(this._axisModel=e,this._axisPointerModel=n,this._api=r,!(!a&&this._lastValue===l&&this._lastStatus===u)){this._lastValue=l,this._lastStatus=u;var f=this._group,d=this._handle;if(!u||u==="hide"){f&&f.hide(),d&&d.hide();return}f&&f.show(),d&&d.show();var h={};this.makeElOption(h,l,e,n,r);var p=h.graphicKey;p!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=p;var m=this._moveAnimation=this.determineAnimation(e,n);if(!f)f=this._group=new Cl,this.createPointerEl(f,h,e,n),this.createLabelEl(f,h,e,n),r.getZr().add(f);else{var S=Aa(_z,n,m);this.updatePointerEl(f,h,S),this.updateLabelEl(f,h,S,n)}wz(f,n,!0),this._renderHandle(l)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,n){var r=n.get("animation"),a=e.axis,l=a.type==="category",u=n.get("snap");if(!u&&!l)return!1;if(r==="auto"||r==null){var f=this.animationThreshold;if(l&&a.getBandWidth()>f)return!0;if(u){var d=aE(e).seriesDataCount,h=a.getExtent();return Math.abs(h[0]-h[1])/d>f}return!1}return r===!0},t.prototype.makeElOption=function(e,n,r,a,l){},t.prototype.createPointerEl=function(e,n,r,a){var l=n.pointer;if(l){var u=Ac(e).pointerEl=new TG[l.type](yz(n.pointer));e.add(u)}},t.prototype.createLabelEl=function(e,n,r,a){if(n.label){var l=Ac(e).labelEl=new ko(yz(n.label));e.add(l),Cz(l,a)}},t.prototype.updatePointerEl=function(e,n,r){var a=Ac(e).pointerEl;a&&n.pointer&&(a.setStyle(n.pointer.style),r(a,{shape:n.pointer.shape}))},t.prototype.updateLabelEl=function(e,n,r,a){var l=Ac(e).labelEl;l&&(l.setStyle(n.label.style),r(l,{x:n.label.x,y:n.label.y}),Cz(l,a))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),a=this._handle,l=n.getModel("handle"),u=n.get("status");if(!l.get("show")||!u||u==="hide"){a&&r.remove(a),this._handle=null;return}var f;this._handle||(f=!0,a=this._handle=ok(l.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(h){pL(h.event)},onmousedown:sE(this._onHandleDragMove,this,0,0),drift:sE(this._onHandleDragMove,this),ondragend:sE(this._onHandleDragEnd,this)}),r.add(a)),wz(a,n,!1),a.setStyle(l.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var d=l.get("size");Be(d)||(d=[d,d]),a.scaleX=d[0]/2,a.scaleY=d[1]/2,$N(this,"_doDispatchAxisPointer",l.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,f)}},t.prototype._moveHandleToValue=function(e,n){_z(this._axisPointerModel,!n&&this._moveAnimation,this._handle,fE(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,n){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(fE(r),[e,n],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(fE(a)),Ac(r).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var n=e.getZr(),r=this._group,a=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),a&&n.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),vb(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,n,r){return r=r||0,{x:e[r],y:e[1-r],width:n[r],height:n[1-r]}},t}();function _z(t,e,n,r){Sz(Ac(n).lastProp,r)||(Ac(n).lastProp=r,e?Po(n,r,t):(n.stopAnimation(),n.attr(r)))}function Sz(t,e){if(it(t)&&it(e)){var n=!0;return W(e,function(r,a){n=n&&Sz(t[a],r)}),!!n}else return t===e}function Cz(t,e){t[e.get(["label","show"])?"show":"hide"]()}function fE(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function wz(t,e,n){var r=e.get("z"),a=e.get("zlevel");t&&t.traverse(function(l){l.type!=="group"&&(r!=null&&(l.z=r),a!=null&&(l.zlevel=a),l.silent=n)})}const Z7=Q7;function K7(t){var e=t.get("type"),n=t.getModel(e+"Style"),r;return e==="line"?(r=n.getLineStyle(),r.fill=null):e==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function J7(t,e,n,r,a){var l=n.get("value"),u=xz(l,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),f=n.getModel("label"),d=UT(f.get("padding")||0),h=f.getFont(),p=Ox(u,h),m=a.position,S=p.width+d[1]+d[3],_=p.height+d[0]+d[2],x=a.align;x==="right"&&(m[0]-=S),x==="center"&&(m[0]-=S/2);var E=a.verticalAlign;E==="bottom"&&(m[1]-=_),E==="middle"&&(m[1]-=_/2),eX(m,S,_,r);var b=f.get("backgroundColor");(!b||b==="auto")&&(b=e.get(["axisLine","lineStyle","color"])),t.label={x:m[0],y:m[1],style:gc(f,{text:u,font:h,fill:f.getTextColor(),padding:d,backgroundColor:b}),z2:10}}function eX(t,e,n,r){var a=r.getWidth(),l=r.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+n,l)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function xz(t,e,n,r,a){t=e.scale.parse(t);var l=e.scale.getLabel({value:t},{precision:a.precision}),u=a.formatter;if(u){var f={value:jb(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};W(r,function(d){var h=n.getSeriesByIndex(d.seriesIndex),p=d.dataIndexInside,m=h&&h.getDataParams(p);m&&f.seriesData.push(m)}),et(u)?l=u.replace("{value}",l):_t(u)&&(l=u(f))}return l}function Tz(t,e,n){var r=Up();return ox(r,r,n.rotation),ax(r,r,n.position),MT([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function tX(t,e,n,r,a,l){var u=vz.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get(["label","margin"]),J7(e,r,a,l,{position:Tz(r.axis,t,n),align:u.textAlign,verticalAlign:u.textVerticalAlign})}function nX(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function rX(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}var iX=function(t){Pt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,a,l,u){var f=a.axis,d=f.grid,h=l.get("type"),p=bz(d,f).getOtherAxis(f).getGlobalExtent(),m=f.toGlobalCoord(f.dataToCoord(r,!0));if(h&&h!=="none"){var S=K7(l),_=aX[h](f,m,p);_.style=S,n.graphicKey=_.type,n.pointer=_}var x=tE(d.model,a);tX(r,n,x,a,l,u)},e.prototype.getHandleTransform=function(n,r,a){var l=tE(r.axis.grid.model,r,{labelInside:!1});l.labelMargin=a.get(["handle","margin"]);var u=Tz(r.axis,n,l);return{x:u[0],y:u[1],rotation:l.rotation+(l.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(n,r,a,l){var u=a.axis,f=u.grid,d=u.getGlobalExtent(!0),h=bz(f,u).getOtherAxis(u).getGlobalExtent(),p=u.dim==="x"?0:1,m=[n.x,n.y];m[p]+=r[p],m[p]=Math.min(d[1],m[p]),m[p]=Math.max(d[0],m[p]);var S=(h[1]+h[0])/2,_=[S,S];_[p]=m[p];var x=[{verticalAlign:"middle"},{align:"center"}];return{x:m[0],y:m[1],rotation:n.rotation,cursorPoint:_,tooltipOption:x[p]}},e}(Z7);function bz(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var aX={line:function(t,e,n){var r=nX([e,n[0]],[e,n[1]],Ez(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),a=n[1]-n[0];return{type:"Rect",shape:rX([e-r/2,n[0]],[r,a],Ez(t))}}};function Ez(t){return t.dim==="x"?0:1}const oX=iX;var lX=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",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:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(En);const uX=lX;var Ru=jn(),sX=W;function Dz(t,e,n){if(!Tt.node){var r=e.getZr();Ru(r).records||(Ru(r).records={}),fX(r,e);var a=Ru(r).records[t]||(Ru(r).records[t]={});a.handler=n}}function fX(t,e){if(Ru(t).initialized)return;Ru(t).initialized=!0,n("click",Aa(Mz,"click")),n("mousemove",Aa(Mz,"mousemove")),n("globalout",dX);function n(r,a){t.on(r,function(l){var u=vX(e);sX(Ru(t).records,function(f){f&&a(f,l,u.dispatchAction)}),cX(u.pendings,e)})}}function cX(t,e){var n=t.showTip.length,r=t.hideTip.length,a;n?a=t.showTip[n-1]:r&&(a=t.hideTip[r-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function dX(t,e,n){t.handler("leave",null,n)}function Mz(t,e,n,r){e.handler(t,n,r)}function vX(t){var e={showTip:[],hideTip:[]},n=function(r){var a=e[r.type];a?a.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}function cE(t,e){if(!Tt.node){var n=e.getZr(),r=(Ru(n).records||{})[t];r&&(Ru(n).records[t]=null)}}var hX=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var l=r.getComponent("tooltip"),u=n.get("triggerOn")||l&&l.get("triggerOn")||"mousemove|click";Dz("axisPointer",a,function(f,d,h){u!=="none"&&(f==="leave"||u.indexOf(f)>=0)&&h({type:"updateAxisPointer",currTrigger:f,x:d&&d.offsetX,y:d&&d.offsetY})})},e.prototype.remove=function(n,r){cE("axisPointer",r)},e.prototype.dispose=function(n,r){cE("axisPointer",r)},e.type="axisPointer",e}(Du);const pX=hX;function Rz(t,e){var n=[],r=t.seriesIndex,a;if(r==null||!(a=e.getSeriesByIndex(r)))return{point:[]};var l=a.getData(),u=rg(l,t);if(u==null||u<0||Be(u))return{point:[]};var f=l.getItemGraphicEl(u),d=a.coordinateSystem;if(a.getTooltipPosition)n=a.getTooltipPosition(u)||[];else if(d&&d.dataToPoint)if(t.isStacked){var h=d.getBaseAxis(),p=d.getOtherAxis(h),m=p.dim,S=h.dim,_=m==="x"||m==="radius"?1:0,x=l.mapDimension(S),E=[];E[_]=l.get(x,u),E[1-_]=l.get(l.getCalculationInfo("stackResultDimension"),u),n=d.dataToPoint(E)||[]}else n=d.dataToPoint(l.getValues(ot(d.dimensions,function(D){return l.mapDimension(D)}),u))||[];else if(f){var b=f.getBoundingRect().clone();b.applyTransform(f.transform),n=[b.x+b.width/2,b.y+b.height/2]}return{point:n,el:f}}var Az=jn();function gX(t,e,n){var r=t.currTrigger,a=[t.x,t.y],l=t,u=t.dispatchAction||Qn(n.dispatchAction,n),f=e.getComponent("axisPointer").coordSysAxesInfo;if(f){d1(a)&&(a=Rz({seriesIndex:l.seriesIndex,dataIndex:l.dataIndex},e).point);var d=d1(a),h=l.axesInfo,p=f.axesInfo,m=r==="leave"||d1(a),S={},_={},x={list:[],map:{}},E={showPointer:Aa(yX,_),showTooltip:Aa(_X,x)};W(f.coordSysMap,function(D,A){var O=d||D.containPoint(a);W(f.coordSysAxesInfo[A],function(P,I){var F=P.axis,U=xX(h,P);if(!m&&O&&(!h||U)){var H=U&&U.value;H==null&&!d&&(H=F.pointToData(a)),H!=null&&Lz(P,H,E,!1,S)}})});var b={};return W(p,function(D,A){var O=D.linkGroup;O&&!_[A]&&W(O.axesInfo,function(P,I){var F=_[I];if(P!==D&&F){var U=F.value;O.mapper&&(U=D.axis.scale.parse(O.mapper(U,Oz(P),Oz(D)))),b[D.key]=U}})}),W(b,function(D,A){Lz(p[A],D,E,!0,S)}),SX(_,p,S),CX(x,a,t,u),wX(p,u,n),S}}function Lz(t,e,n,r,a){var l=t.axis;if(!(l.scale.isBlank()||!l.containData(e))){if(!t.involveSeries){n.showPointer(t,e);return}var u=mX(e,t),f=u.payloadBatch,d=u.snapToValue;f[0]&&a.seriesIndex==null&&Re(a,f[0]),!r&&t.snap&&l.containData(d)&&d!=null&&(e=d),n.showPointer(t,e,f),n.showTooltip(t,u,d)}}function mX(t,e){var n=e.axis,r=n.dim,a=t,l=[],u=Number.MAX_VALUE,f=-1;return W(e.seriesModels,function(d,h){var p=d.getData().mapDimensionsAll(r),m,S;if(d.getAxisTooltipData){var _=d.getAxisTooltipData(p,t,n);S=_.dataIndices,m=_.nestestValue}else{if(S=d.getData().indicesOfNearest(p[0],t,n.type==="category"?.5:null),!S.length)return;m=d.getData().get(p[0],S[0])}if(!(m==null||!isFinite(m))){var x=t-m,E=Math.abs(x);E<=u&&((E<u||x>=0&&f<0)&&(u=E,f=x,a=m,l.length=0),W(S,function(b){l.push({seriesIndex:d.seriesIndex,dataIndexInside:b,dataIndex:d.getData().getRawIndex(b)})}))}}),{payloadBatch:l,snapToValue:a}}function yX(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function _X(t,e,n,r){var a=n.payloadBatch,l=e.axis,u=l.model,f=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var d=e.coordSys.model,h=Xg(d),p=t.map[h];p||(p=t.map[h]={coordSysId:d.id,coordSysIndex:d.componentIndex,coordSysType:d.type,coordSysMainType:d.mainType,dataByAxis:[]},t.list.push(p)),p.dataByAxis.push({axisDim:l.dim,axisIndex:u.componentIndex,axisType:u.type,axisId:u.id,value:r,valueLabelOpt:{precision:f.get(["label","precision"]),formatter:f.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function SX(t,e,n){var r=n.axesInfo=[];W(e,function(a,l){var u=a.axisPointerModel.option,f=t[l];f?(!a.useHandle&&(u.status="show"),u.value=f.value,u.seriesDataIndices=(f.payloadBatch||[]).slice()):!a.useHandle&&(u.status="hide"),u.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:u.value})})}function CX(t,e,n,r){if(d1(e)||!t.list.length){r({type:"hideTip"});return}var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}function wX(t,e,n){var r=n.getZr(),a="axisPointerLastHighlights",l=Az(r)[a]||{},u=Az(r)[a]={};W(t,function(h,p){var m=h.axisPointerModel.option;m.status==="show"&&W(m.seriesDataIndices,function(S){var _=S.seriesIndex+" | "+S.dataIndex;u[_]=S})});var f=[],d=[];W(l,function(h,p){!u[p]&&d.push(h)}),W(u,function(h,p){!l[p]&&f.push(h)}),d.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:d}),f.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:f})}function xX(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function Oz(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function d1(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function kz(t){hz.registerAxisPointerClass("CartesianAxisPointer",oX),t.registerComponentModel(uX),t.registerComponentView(pX),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var n=e.axisPointer.link;n&&!Be(n)&&(e.axisPointer.link=[n])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,n){e.getComponent("axisPointer").coordSysAxesInfo=N7(e,n)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},gX)}function TX(t){$g(q7),$g(kz)}var bX=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(En);const EX=bX;function Nz(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function Pz(t){if(Tt.domSupported){for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}}var Iz=Pz(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),DX=Pz(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function zz(t,e){if(!t)return e;e=Ok(e,!0);var n=t.indexOf(e);return t=n===-1?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function MX(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}var RX=zz(DX,"transition"),dE=zz(Iz,"transform"),AX="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Tt.transform3dSupported?"will-change:transform;":"");function LX(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function OX(t,e,n){if(!et(n)||n==="inside")return"";var r=t.get("backgroundColor"),a=t.get("borderWidth");e=_g(e);var l=LX(n),u=Math.max(Math.round(a)*1.5,6),f="",d=dE+":",h;dn(["left","right"],l)>-1?(f+="top:50%",d+="translateY(-50%) rotate("+(h=l==="left"?-225:-45)+"deg)"):(f+="left:50%",d+="translateX(-50%) rotate("+(h=l==="top"?225:45)+"deg)");var p=h*Math.PI/180,m=u+a,S=m*Math.abs(Math.cos(p))+m*Math.abs(Math.sin(p)),_=Math.round(((S-Math.SQRT2*a)/2+Math.SQRT2*a-(S-m)/2)*100)/100;f+=";"+l+":-"+_+"px";var x=e+" solid "+a+"px;",E=["position:absolute;width:"+u+"px;height:"+u+"px;z-index:-1;",f+";"+d+";","border-bottom:"+x,"border-right:"+x,"background-color:"+r+";"];return'<div style="'+E.join("")+'"></div>'}function kX(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,a="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,a+=Tt.transformSupported?","+dE+r:",left"+r+",top"+r),RX+":"+a}function Fz(t,e,n){var r=t.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!Tt.transformSupported)return n?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var l=Tt.transform3dSupported,u="translate"+(l?"3d":"")+"("+r+","+a+(l?",0":"")+")";return n?"top:0;left:0;"+dE+":"+u+";":[["top",0],["left",0],[Iz,u]]}function NX(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(n*3/2)+"px");var a=t.get("textShadowColor"),l=t.get("textShadowBlur")||0,u=t.get("textShadowOffsetX")||0,f=t.get("textShadowOffsetY")||0;return a&&l&&e.push("text-shadow:"+u+"px "+f+"px "+l+"px "+a),W(["decoration","align"],function(d){var h=t.get(d);h&&e.push("text-"+d+":"+h)}),e.join(";")}function PX(t,e,n){var r=[],a=t.get("transitionDuration"),l=t.get("backgroundColor"),u=t.get("shadowBlur"),f=t.get("shadowColor"),d=t.get("shadowOffsetX"),h=t.get("shadowOffsetY"),p=t.getModel("textStyle"),m=PN(t,"html"),S=d+"px "+h+"px "+u+"px "+f;return r.push("box-shadow:"+S),e&&a&&r.push(kX(a,n)),l&&r.push("background-color:"+l),W(["width","color","radius"],function(_){var x="border-"+_,E=Ok(x),b=t.get(E);b!=null&&r.push(x+":"+b+(_==="color"?"":"px"))}),r.push(NX(p)),m!=null&&r.push("padding:"+UT(m).join("px ")+"px"),r.join(";")+";"}function Bz(t,e,n,r,a){var l=e&&e.painter;if(n){var u=l&&l.getViewportRoot();u&&wH(t,u,document.body,r,a)}else{t[0]=r,t[1]=a;var f=l&&l.getViewportRootOffset();f&&(t[0]+=f.offsetLeft,t[1]+=f.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var IX=function(){function t(e,n,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,Tt.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var l=this._zr=n.getZr(),u=this._appendToBody=r&&r.appendToBody;Bz(this._styleCoord,l,u,n.getWidth()/2,n.getHeight()/2),u?document.body.appendChild(a):e.appendChild(a),this._container=e;var f=this;a.onmouseenter=function(){f._enterable&&(clearTimeout(f._hideTimeout),f._show=!0),f._inContent=!0},a.onmousemove=function(d){if(d=d||window.event,!f._enterable){var h=l.handler,p=l.painter.getViewportRoot();no(p,d,!0),h.dispatch("mousemove",d)}},a.onmouseleave=function(){f._inContent=!1,f._enterable&&f._show&&f.hideLater(f._hideDelay)}}return t.prototype.update=function(e){var n=this._container,r=MX(n,"position"),a=n.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative");var l=e.get("alwaysShowContent");l&&this._moveIfResized(),this.el.className=e.get("className")||""},t.prototype.show=function(e,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,l=this._styleCoord;r.innerHTML?a.cssText=AX+PX(e,!this._firstShow,this._longHide)+Fz(l[0],l[1],!0)+("border-color:"+_g(n)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,n,r,a,l){var u=this.el;if(e==null){u.innerHTML="";return}var f="";if(et(l)&&r.get("trigger")==="item"&&!Nz(r)&&(f=OX(r,a,l)),et(e))u.innerHTML=e+f;else if(e){u.innerHTML="",Be(e)||(e=[e]);for(var d=0;d<e.length;d++)zp(e[d])&&e[d].parentNode!==u&&u.appendChild(e[d]);if(f&&u.childNodes.length){var h=document.createElement("div");h.innerHTML=f,u.appendChild(h)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},t.prototype.moveTo=function(e,n){var r=this._styleCoord;if(Bz(r,this._zr,this._appendToBody,e,n),r[0]!=null&&r[1]!=null){var a=this.el.style,l=Fz(r[0],r[1]);W(l,function(u){a[u[0]]=u[1]})}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),n*this._zr.getHeight())},t.prototype.hide=function(){var e=this,n=this.el.style;n.visibility="hidden",n.opacity="0",Tt.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Qn(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}();const zX=IX;var FX=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=e.getZr(),Vz(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var n=e.get("alwaysShowContent");n&&this._moveIfResized()},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,n,r,a,l){var u=this;it(e)&&Ht(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var f=r.getModel("textStyle");this.el=new ko({style:{rich:n.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:f.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:PN(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),W(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(h){u.el.style[h]=r.get(h)}),W(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(h){u.el.style[h]=f.get(h)||0}),this._zr.add(this.el);var d=this;this.el.on("mouseover",function(){d._enterable&&(clearTimeout(d._hideTimeout),d._show=!0),d._inContent=!0}),this.el.on("mouseout",function(){d._enterable&&d._show&&d.hideLater(d._hideDelay),d._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,n=this.el.getBoundingRect(),r=Uz(e.style);return[n.width+r.left+r.right,n.height+r.top+r.bottom]},t.prototype.moveTo=function(e,n){var r=this.el;if(r){var a=this._styleCoord;Vz(a,this._zr,e,n),e=a[0],n=a[1];var l=r.style,u=zs(l.borderWidth||0),f=Uz(l);r.x=e+u+f.left,r.y=n+u+f.top,r.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),n*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Qn(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function zs(t){return Math.max(0,t)}function Uz(t){var e=zs(t.shadowBlur||0),n=zs(t.shadowOffsetX||0),r=zs(t.shadowOffsetY||0);return{left:zs(e-n),right:zs(e+n),top:zs(e-r),bottom:zs(e+r)}}function Vz(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const BX=FX;var UX=new Kr({shape:{x:-1,y:-1,width:2,height:2}}),VX=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){if(!(Tt.node||!r.getDom())){var a=n.getComponent("tooltip"),l=this._renderMode=t6(a.get("renderMode"));this._tooltipContent=l==="richText"?new BX(r):new zX(r.getDom(),r,{appendToBody:a.get("appendToBody",!0)})}},e.prototype.render=function(n,r,a){if(!(Tt.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=r,this._api=a,this._alwaysShowContent=n.get("alwaysShowContent");var l=this._tooltipContent;l.update(n),l.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?$N(this,"_updatePosition",50,"fixRate"):vb(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");Dz("itemTooltip",this._api,Qn(function(a,l,u){r!=="none"&&(r.indexOf(a)>=0?this._tryShow(l,u):a==="leave"&&this._hide(u))},this))},e.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,a=this._api,l=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&l!=="none"&&l!=="click"){var u=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&u.manuallyShowTip(n,r,a,{x:u._lastX,y:u._lastY,dataByCoordSys:u._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(n,r,a,l){if(!(l.from===this.uid||Tt.node||!a.getDom())){var u=Hz(l,a);this._ticket="";var f=l.dataByCoordSys,d=jX(l,r,a);if(d){var h=d.el.getBoundingRect().clone();h.applyTransform(d.el.transform),this._tryShow({offsetX:h.x+h.width/2,offsetY:h.y+h.height/2,target:d.el,position:l.position,positionDefault:"bottom"},u)}else if(l.tooltip&&l.x!=null&&l.y!=null){var p=UX;p.x=l.x,p.y=l.y,p.update(),yn(p).tooltipConfig={name:null,option:l.tooltip},this._tryShow({offsetX:l.x,offsetY:l.y,target:p},u)}else if(f)this._tryShow({offsetX:l.x,offsetY:l.y,position:l.position,dataByCoordSys:f,tooltipOption:l.tooltipOption},u);else if(l.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,a,l))return;var m=Rz(l,r),S=m.point[0],_=m.point[1];S!=null&&_!=null&&this._tryShow({offsetX:S,offsetY:_,target:m.el,position:l.position,positionDefault:"bottom"},u)}else l.x!=null&&l.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:l.x,y:l.y}),this._tryShow({offsetX:l.x,offsetY:l.y,position:l.position,target:a.getZr().findHover(l.x,l.y).target},u))}},e.prototype.manuallyHideTip=function(n,r,a,l){var u=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&u.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,l.from!==this.uid&&this._hide(Hz(l,a))},e.prototype._manuallyAxisShowTip=function(n,r,a,l){var u=l.seriesIndex,f=l.dataIndex,d=r.getComponent("axisPointer").coordSysAxesInfo;if(!(u==null||f==null||d==null)){var h=r.getSeriesByIndex(u);if(h){var p=h.getData(),m=qg([p.getItemModel(f),h,(h.coordinateSystem||{}).model],this._tooltipModel);if(m.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:u,dataIndex:f,position:l.position}),!0}}},e.prototype._tryShow=function(n,r){var a=n.target,l=this._tooltipModel;if(l){this._lastX=n.offsetX,this._lastY=n.offsetY;var u=n.dataByCoordSys;if(u&&u.length)this._showAxisTooltip(u,n);else if(a){this._lastDataByCoordSys=null;var f,d;Og(a,function(h){if(yn(h).dataIndex!=null)return f=h,!0;if(yn(h).tooltipConfig!=null)return d=h,!0},!0),f?this._showSeriesItemTooltip(n,f,r):d?this._showComponentItemTooltip(n,d,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(n,r){var a=n.get("showDelay");r=Qn(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},e.prototype._showAxisTooltip=function(n,r){var a=this._ecModel,l=this._tooltipModel,u=[r.offsetX,r.offsetY],f=qg([r.tooltipOption],l),d=this._renderMode,h=[],p=Rg("section",{blocks:[],noHeader:!0}),m=[],S=new ub;W(n,function(A){W(A.dataByAxis,function(O){var P=a.getComponent(O.axisDim+"Axis",O.axisIndex),I=O.value;if(!(!P||I==null)){var F=xz(I,P.axis,a,O.seriesDataIndices,O.valueLabelOpt),U=Rg("section",{header:F,noHeader:!yl(F),sortBlocks:!0,blocks:[]});p.blocks.push(U),W(O.seriesDataIndices,function(H){var j=a.getSeriesByIndex(H.seriesIndex),X=H.dataIndexInside,G=j.getDataParams(X);if(!(G.dataIndex<0)){G.axisDim=O.axisDim,G.axisIndex=O.axisIndex,G.axisType=O.axisType,G.axisId=O.axisId,G.axisValue=jb(P.axis,{value:I}),G.axisValueLabel=F,G.marker=S.makeTooltipMarker("item",_g(G.color),d);var ee=gN(j.formatTooltip(X,!0,null)),J=ee.frag;if(J){var ie=qg([j],l).get("valueFormatter");U.blocks.push(ie?Re({valueFormatter:ie},J):J)}ee.text&&m.push(ee.text),h.push(G)}})}})}),p.blocks.reverse(),m.reverse();var _=r.position,x=f.get("order"),E=kN(p,S,d,x,a.get("useUTC"),f.get("textStyle"));E&&m.unshift(E);var b=d==="richText"?`
210
+ `];function Rg(t,e){return e.type=t,e}function vb(t){return t.type==="section"}function WN(t){return vb(t)?sj:fj}function XN(t){if(vb(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return W(t.blocks,function(a){var l=XN(a);l>=e&&(e=l+ +(r&&(!l||vb(a)&&!a.noHeader)))}),e}return 0}function sj(t,e,n,r){var a=e.noHeader,l=cj(XN(e)),u=[],f=e.blocks||[];bt(!f||Be(f)),f=f||[];var d=t.orderMode;if(e.sortBlocks&&d){f=f.slice();var h={valueAsc:"asc",valueDesc:"desc"};if(_u(h,d)){var p=new IN(h[d],null);f.sort(function(x,E){return p.evaluate(x.sortParam,E.sortParam)})}else d==="seriesDesc"&&f.reverse()}W(f,function(x,E){var b=e.valueFormatter,D=WN(x)(b?Re(Re({},t),{valueFormatter:b}):t,x,E>0?l.html:0,r);D!=null&&u.push(D)});var m=t.renderMode==="richText"?u.join(l.richText):hb(u.join(""),a?n:l.html);if(a)return m;var S=XT(e.header,"ordinal",t.useUTC),_=YN(r,t.renderMode).nameStyle;return t.renderMode==="richText"?QN(t,S,_)+l.richText+m:hb('<div style="'+_+";"+jN+';">'+to(S)+"</div>"+m,n)}function fj(t,e,n,r){var a=t.renderMode,l=e.noName,u=e.noValue,f=!e.markerType,d=e.name,h=t.useUTC,p=e.valueFormatter||t.valueFormatter||function(P){return P=Be(P)?P:[P],ot(P,function(I,F){return XT(I,Be(_)?_[F]:_,h)})};if(!(l&&u)){var m=f?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),S=l?"":XT(d,"ordinal",h),_=e.valueType,x=u?[]:p(e.value),E=!f||!l,b=!f&&l,D=YN(r,a),A=D.nameStyle,O=D.valueStyle;return a==="richText"?(f?"":m)+(l?"":QN(t,S,A))+(u?"":hj(t,x,E,b,O)):hb((f?"":m)+(l?"":dj(S,!f,A))+(u?"":vj(x,E,b,O)),n)}}function qN(t,e,n,r,a,l){if(t){var u=WN(t),f={useUTC:a,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return u(f,t,0,l)}}function cj(t){return{html:lj[t],richText:uj[t]}}function hb(t,e){var n='<div style="clear:both"></div>',r="margin: "+e+"px 0 0";return'<div style="'+r+";"+jN+';">'+t+n+"</div>"}function dj(t,e,n){var r=e?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+to(t)+"</span>"}function vj(t,e,n,r){var a=n?"10px":"20px",l=e?"float:right;margin-left:"+a:"";return t=Be(t)?t:[t],'<span style="'+l+";"+r+'">'+ot(t,function(u){return to(u)}).join("&nbsp;&nbsp;")+"</span>"}function QN(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function hj(t,e,n,r,a){var l=[a],u=r?10:20;return n&&l.push({padding:[0,0,0,u],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Be(e)?e.join(" "):e,l)}function pj(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return _g(r)}function ZN(t,e){var n=t.get("padding");return n??(e==="richText"?[8,10]:10)}var pb=function(){function t(){this.richTextStyles={},this._nextStyleNameId=OO()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,n,r){var a=r==="richText"?this._generateStyleName():null,l=Q$({color:n,type:e,renderMode:r,markerId:a});return et(l)?l:(process.env.NODE_ENV!=="production"&&bt(a),this.richTextStyles[a]=l.style,l.content)},t.prototype.wrapRichTextStyle=function(e,n){var r={};Be(n)?W(n,function(l){return Re(r,l)}):Re(r,n);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+e+"}"},t}();function gj(t){var e=t.series,n=t.dataIndex,r=t.multipleSeries,a=e.getData(),l=a.mapDimensionsAll("defaultedTooltip"),u=l.length,f=e.getRawValue(n),d=Be(f),h=pj(e,n),p,m,S,_;if(u>1||d&&!u){var x=mj(f,e,n,l,h);p=x.inlineValues,m=x.inlineValueTypes,S=x.blocks,_=x.inlineValues[0]}else if(u){var E=a.getDimensionInfo(l[0]);_=p=bv(a,n,l[0]),m=E.type}else _=p=d?f[0]:f;var b=GO(e),D=b&&e.name||"",A=a.getName(n),O=r?D:A;return Rg("section",{header:D,noHeader:r||!b,sortParam:_,blocks:[Rg("nameValue",{markerType:"item",markerColor:h,name:O,noName:!yl(O),value:p,valueType:m})].concat(S||[])})}function mj(t,e,n,r,a){var l=e.getData(),u=Xd(t,function(m,S,_){var x=l.getDimensionInfo(_);return m=m||x&&x.tooltip!==!1&&x.displayName!=null},!1),f=[],d=[],h=[];r.length?W(r,function(m){p(bv(l,n,m),m)}):W(t,p);function p(m,S){var _=l.getDimensionInfo(S);!_||_.otherDims.tooltip===!1||(u?h.push(Rg("nameValue",{markerType:"subItem",markerColor:a,name:_.displayName,value:m,valueType:_.type})):(f.push(m),d.push(_.type)))}return{inlineValues:f,inlineValueTypes:d,blocks:h}}var ks=jn();function F_(t,e){return t.getName(e)||t.getId(e)}var B_="__universalTransitionEnabled",U_=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return e.prototype.init=function(n,r,a){this.seriesIndex=this.componentIndex,this.dataTask=Eg({count:_j,reset:Sj}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,a);var l=ks(this).sourceManager=new HN(this);l.prepareSource();var u=this.getInitialData(n,a);JN(u,this),this.dataTask.context.data=u,process.env.NODE_ENV!=="production"&&bt(u,"getInitialData returned invalid data."),ks(this).dataBeforeProcessed=u,KN(this),this._initSelectedMapFromData(u)},e.prototype.mergeDefaultAndTheme=function(n,r){var a=Sg(this),l=a?ZT(n):{},u=this.subType;En.hasClass(u)&&(u+="Series"),cn(n,r.getTheme().get(this.subType)),cn(n,this.getDefaultOption()),FO(n,"label",["show"]),this.fillDataTextStyle(n.data),a&&Cg(n,l,a)},e.prototype.mergeOption=function(n,r){n=cn(this.option,n,!0),this.fillDataTextStyle(n.data);var a=Sg(this);a&&Cg(this.option,n,a);var l=ks(this).sourceManager;l.dirty(),l.prepareSource();var u=this.getInitialData(n,r);JN(u,this),this.dataTask.dirty(),this.dataTask.context.data=u,ks(this).dataBeforeProcessed=u,KN(this),this._initSelectedMapFromData(u)},e.prototype.fillDataTextStyle=function(n){if(n&&!ea(n))for(var r=["show"],a=0;a<n.length;a++)n[a]&&n[a].label&&FO(n[a],"label",r)},e.prototype.getInitialData=function(n,r){},e.prototype.appendData=function(n){var r=this.getRawData();r.appendData(n.data)},e.prototype.getData=function(n){var r=gb(this);if(r){var a=r.context.data;return n==null?a:a.getLinkedData(n)}else return ks(this).data},e.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},e.prototype.setData=function(n){var r=gb(this);if(r){var a=r.context;a.outputData=n,r!==this.dataTask&&(a.data=n)}ks(this).data=n},e.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return xt(n)},e.prototype.getSourceManager=function(){return ks(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return ks(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},e.prototype.formatTooltip=function(n,r,a){return gj({series:this,dataIndex:n,multipleSeries:r})},e.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(Tt.node&&!(n&&n.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(n,r,a){var l=this.ecModel,u=JT.prototype.getColorFromPalette.call(this,n,r,a);return u||(u=l.getColorFromPalette(n,r,a)),u},e.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},e.prototype.unselect=function(n,r){var a=this.option.selectedMap;if(a){var l=this.option.selectedMode,u=this.getData(r);if(l==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var f=0;f<n.length;f++){var d=n[f],h=F_(u,d);a[h]=!1,this._selectedDataIndicesMap[h]=-1}}},e.prototype.toggleSelect=function(n,r){for(var a=[],l=0;l<n.length;l++)a[0]=n[l],this.isSelected(n[l],r)?this.unselect(a,r):this.select(a,r)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,r=kn(n),a=[],l=0;l<r.length;l++){var u=n[r[l]];u>=0&&a.push(u)}return a},e.prototype.isSelected=function(n,r){var a=this.option.selectedMap;if(!a)return!1;var l=this.getData(r);return(a==="all"||a[F_(l,n)])&&!l.getItemModel(n).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[B_])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},e.prototype._innerSelect=function(n,r){var a,l,u=this.option,f=u.selectedMode,d=r.length;if(!(!f||!d)){if(f==="series")u.selectedMap="all";else if(f==="multiple"){it(u.selectedMap)||(u.selectedMap={});for(var h=u.selectedMap,p=0;p<d;p++){var m=r[p],S=F_(n,m);h[S]=!0,this._selectedDataIndicesMap[S]=n.getRawIndex(m)}}else if(f==="single"||f===!0){var _=r[d-1],S=F_(n,_);u.selectedMap=(a={},a[S]=!0,a),this._selectedDataIndicesMap=(l={},l[S]=n.getRawIndex(_),l)}}},e.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var r=[];n.hasItemOption&&n.each(function(a){var l=n.getRawDataItem(a);l&&l.selected&&r.push(a)}),r.length>0&&this._innerSelect(n,r)}},e.registerClass=function(n){return En.registerClass(n)},e.protoInitialize=function(){var n=e.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),e}(En);ml(U_,H9),ml(U_,JT),YO(U_,En);function KN(t){var e=t.name;GO(t)||(t.name=yj(t)||e)}function yj(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return W(n,function(a){var l=e.getDimensionInfo(a);l.displayName&&r.push(l.displayName)}),r.join(" ")}function _j(t){return t.model.getRawData().count()}function Sj(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Cj}function Cj(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function JN(t,e){W(u4(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,Aa(wj,e))})}function wj(t,e){var n=gb(t);return n&&n.setOutputEnd((e||this).count()),e}function gb(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(t.uid))}return r}}const Dv=U_;var mb=function(){function t(){this.group=new Cl,this.uid=w_("viewComponent")}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,a){},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,a){},t.prototype.updateLayout=function(e,n,r,a){},t.prototype.updateVisual=function(e,n,r,a){},t.prototype.toggleBlurSeries=function(e,n,r){},t.prototype.eachRendered=function(e){var n=this.group;n&&n.traverse(e)},t}();qx(mb),n_(mb);const Mu=mb;function eP(){var t=jn();return function(e){var n=t(e),r=e.pipelineContext,a=!!n.large,l=!!n.progressiveRender,u=n.large=!!(r&&r.large),f=n.progressiveRender=!!(r&&r.progressiveRender);return(a!==u||l!==f)&&"reset"}}var tP=jn(),xj=eP(),yb=function(){function t(){this.group=new Cl,this.uid=w_("viewChart"),this.renderTask=Eg({plan:Tj,reset:bj}),this.renderTask.context={view:this}}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,a){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},t.prototype.highlight=function(e,n,r,a){var l=e.getData(a&&a.dataType);if(!l){process.env.NODE_ENV!=="production"&&ci("Unknown dataType "+a.dataType);return}rP(l,a,"emphasis")},t.prototype.downplay=function(e,n,r,a){var l=e.getData(a&&a.dataType);if(!l){process.env.NODE_ENV!=="production"&&ci("Unknown dataType "+a.dataType);return}rP(l,a,"normal")},t.prototype.remove=function(e,n){this.group.removeAll()},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,a){this.render(e,n,r,a)},t.prototype.updateLayout=function(e,n,r,a){this.render(e,n,r,a)},t.prototype.updateVisual=function(e,n,r,a){this.render(e,n,r,a)},t.prototype.eachRendered=function(e){zT(this.group,e)},t.markUpdateMethod=function(e,n){tP(e).updateMethod=n},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function nP(t,e,n){t&&gv(t)&&(e==="emphasis"?mT:yT)(t,n)}function rP(t,e,n){var r=rg(t,e),a=e&&e.highlightKey!=null?TG(e.highlightKey):null;r!=null?W(rr(r),function(l){nP(t.getItemGraphicEl(l),n,a)}):t.eachItemGraphicEl(function(l){nP(l,n,a)})}qx(yb,["dispose"]),n_(yb);function Tj(t){return xj(t.model)}function bj(t){var e=t.model,n=t.ecModel,r=t.api,a=t.payload,l=e.pipelineContext.progressiveRender,u=t.view,f=a&&tP(a).updateMethod,d=l?"incrementalPrepareRender":f&&u[f]?f:"render";return d!=="render"&&u[d](e,n,r,a),Ej[d]}var Ej={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 Mv=yb;var V_="\0__throttleOriginMethod",iP="\0__throttleRate",aP="\0__throttleType";function _b(t,e,n){var r,a=0,l=0,u=null,f,d,h,p;e=e||0;function m(){l=new Date().getTime(),u=null,t.apply(d,h||[])}var S=function(){for(var _=[],x=0;x<arguments.length;x++)_[x]=arguments[x];r=new Date().getTime(),d=this,h=_;var E=p||e,b=p||n;p=null,f=r-(b?a:l)-E,clearTimeout(u),b?u=setTimeout(m,E):f>=0?m():u=setTimeout(m,-f),a=r};return S.clear=function(){u&&(clearTimeout(u),u=null)},S.debounceNextCall=function(_){p=_},S}function oP(t,e,n,r){var a=t[e];if(a){var l=a[V_]||a,u=a[aP],f=a[iP];if(f!==n||u!==r){if(n==null||!r)return t[e]=l;a=t[e]=_b(l,n,r==="debounce"),a[V_]=l,a[aP]=r,a[iP]=n}return a}}function Sb(t,e){var n=t[e];n&&n[V_]&&(n.clear&&n.clear(),t[e]=n[V_])}var lP=jn(),uP={itemStyle:ag(kk,!0),lineStyle:ag(Ok,!0)},Dj={lineStyle:"stroke",itemStyle:"fill"};function sP(t,e){var n=t.visualStyleMapper||uP[e];return n||(console.warn("Unknown style type '"+e+"'."),uP.itemStyle)}function fP(t,e){var n=t.visualDrawType||Dj[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var Mj={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",a=t.getModel(r),l=sP(t,r),u=l(a),f=a.getShallow("decal");f&&(n.setVisual("decal",f),f.dirty=!0);var d=fP(t,r),h=u[d],p=_t(h)?h:null,m=u.fill==="auto"||u.stroke==="auto";if(!u[d]||p||m){var S=t.getColorFromPalette(t.name,null,e.getSeriesCount());u[d]||(u[d]=S,n.setVisual("colorFromPalette",!0)),u.fill=u.fill==="auto"||_t(u.fill)?S:u.fill,u.stroke=u.stroke==="auto"||_t(u.stroke)?S:u.stroke}if(n.setVisual("style",u),n.setVisual("drawType",d),!e.isSeriesFiltered(t)&&p)return n.setVisual("colorFromPalette",!1),{dataEach:function(_,x){var E=t.getDataParams(x),b=Re({},u);b[d]=p(E),_.setItemVisual(x,"style",b)}}}},Ag=new Oi,Rj={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",a=sP(t,r),l=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(u,f){var d=u.getRawDataItem(f);if(d&&d[r]){Ag.option=d[r];var h=a(Ag),p=u.ensureUniqueItemVisual(f,"style");Re(p,h),Ag.option.decal&&(u.setItemVisual(f,"decal",Ag.option.decal),Ag.option.decal.dirty=!0),l in h&&u.setItemVisual(f,"colorFromPalette",!1)}}:null}}}},Aj={performRawSeries:!0,overallReset:function(t){var e=xt();t.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var a=n.type+"-"+r,l=e.get(a);l||(l={},e.set(a,l)),lP(n).scope=l}}),t.eachSeries(function(n){if(!(n.isColorBySeries()||t.isSeriesFiltered(n))){var r=n.getRawData(),a={},l=n.getData(),u=lP(n).scope,f=n.visualStyleAccessPath||"itemStyle",d=fP(n,f);l.each(function(h){var p=l.getRawIndex(h);a[p]=h}),r.each(function(h){var p=a[h],m=l.getItemVisual(p,"colorFromPalette");if(m){var S=l.ensureUniqueItemVisual(p,"style"),_=r.getName(h)||h+"",x=r.count();S[d]=n.getColorFromPalette(_,u,x)}})}})}},H_=Math.PI;function Lj(t,e){e=e||{},Vt(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Cl,r=new Kr({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var a=new ko({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),l=new Kr({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});n.add(l);var u;return e.showSpinner&&(u=new AT({shape:{startAngle:-H_/2,endAngle:-H_/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),u.animateShape(!0).when(1e3,{endAngle:H_*3/2}).start("circularInOut"),u.animateShape(!0).when(1e3,{startAngle:H_*3/2}).delay(300).start("circularInOut"),n.add(u)),n.resize=function(){var f=a.getBoundingRect().width,d=e.showSpinner?e.spinnerRadius:0,h=(t.getWidth()-d*2-(e.showSpinner&&f?10:0)-f)/2-(e.showSpinner&&f?0:5+f/2)+(e.showSpinner?0:f/2)+(f?0:d),p=t.getHeight()/2;e.showSpinner&&u.setShape({cx:h,cy:p}),l.setShape({x:h-d,y:p-d,width:d*2,height:d*2}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var Oj=function(){function t(e,n,r,a){this._stageTaskMap=xt(),this.ecInstance=e,this.api=n,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return t.prototype.restoreData=function(e,n){e.restoreData(n),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},t.prototype.getPerformArgs=function(e,n){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),a=r.context,l=!n&&r.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>r.blockIndex,u=l?r.step:null,f=a&&a.modDataCount,d=f!=null?Math.ceil(f/u):null;return{step:u,modBy:d,modDataCount:f}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,n){var r=this._pipelineMap.get(e.uid),a=e.getData(),l=a.count(),u=r.progressiveEnabled&&n.incrementalPrepareRender&&l>=r.threshold,f=e.get("large")&&l>=e.get("largeThreshold"),d=e.get("progressiveChunkMode")==="mod"?l:null;e.pipelineContext=r.context={progressiveRender:u,modDataCount:d,large:f}},t.prototype.restorePipelines=function(e){var n=this,r=n._pipelineMap=xt();e.eachSeries(function(a){var l=a.getProgressive(),u=a.uid;r.set(u,{id:u,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:l&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(l||700),count:0}),n._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,n=this.api.getModel(),r=this.api;W(this._allHandlers,function(a){var l=e.get(a.uid)||e.set(a.uid,{}),u="";process.env.NODE_ENV!=="production"&&(u='"reset" and "overallReset" must not be both specified.'),bt(!(a.reset&&a.overallReset),u),a.reset&&this._createSeriesStageTask(a,l,n,r),a.overallReset&&this._createOverallStageTask(a,l,n,r)},this)},t.prototype.prepareView=function(e,n,r,a){var l=e.renderTask,u=l.context;u.model=n,u.ecModel=r,u.api=a,l.__block=!e.incrementalPrepareRender,this._pipe(n,l)},t.prototype.performDataProcessorTasks=function(e,n){this._performStageTasks(this._dataProcessorHandlers,e,n,{block:!0})},t.prototype.performVisualTasks=function(e,n,r){this._performStageTasks(this._visualHandlers,e,n,r)},t.prototype._performStageTasks=function(e,n,r,a){a=a||{};var l=!1,u=this;W(e,function(d,h){if(!(a.visualType&&a.visualType!==d.visualType)){var p=u._stageTaskMap.get(d.uid),m=p.seriesTaskMap,S=p.overallTask;if(S){var _,x=S.agentStubMap;x.each(function(b){f(a,b)&&(b.dirty(),_=!0)}),_&&S.dirty(),u.updatePayload(S,r);var E=u.getPerformArgs(S,a.block);x.each(function(b){b.perform(E)}),S.perform(E)&&(l=!0)}else m&&m.each(function(b,D){f(a,b)&&b.dirty();var A=u.getPerformArgs(b,a.block);A.skip=!d.performRawSeries&&n.isSeriesFiltered(b.context.model),u.updatePayload(b,r),b.perform(A)&&(l=!0)})}});function f(d,h){return d.setDirty&&(!d.dirtyMap||d.dirtyMap.get(h.__pipeline.id))}this.unfinished=l||this.unfinished},t.prototype.performSeriesTasks=function(e){var n;e.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var n=e.tail;do{if(n.__block){e.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},t.prototype.updatePayload=function(e,n){n!=="remain"&&(e.context.payload=n)},t.prototype._createSeriesStageTask=function(e,n,r,a){var l=this,u=n.seriesTaskMap,f=n.seriesTaskMap=xt(),d=e.seriesType,h=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(p):d?r.eachRawSeriesByType(d,p):h&&h(r,a).each(p);function p(m){var S=m.uid,_=f.set(S,u&&u.get(S)||Eg({plan:zj,reset:Fj,count:Uj}));_.context={model:m,ecModel:r,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:l},l._pipe(m,_)}},t.prototype._createOverallStageTask=function(e,n,r,a){var l=this,u=n.overallTask=n.overallTask||Eg({reset:kj});u.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:l};var f=u.agentStubMap,d=u.agentStubMap=xt(),h=e.seriesType,p=e.getTargetSeries,m=!0,S=!1,_="";process.env.NODE_ENV!=="production"&&(_='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),bt(!e.createOnAllSeries,_),h?r.eachRawSeriesByType(h,x):p?p(r,a).each(x):(m=!1,W(r.getSeries(),x));function x(E){var b=E.uid,D=d.set(b,f&&f.get(b)||(S=!0,Eg({reset:Nj,onDirty:Ij})));D.context={model:E,overallProgress:m},D.agent=u,D.__block=m,l._pipe(E,D)}S&&u.dirty()},t.prototype._pipe=function(e,n){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=n),a.tail&&a.tail.pipe(n),a.tail=n,n.__idxInPipeline=a.count++,n.__pipeline=a},t.wrapStageHandler=function(e,n){return _t(e)&&(e={overallReset:e,seriesType:Vj(e)}),e.uid=w_("stageHandler"),n&&(e.visualType=n),e},t}();function kj(t){t.overallReset(t.ecModel,t.api,t.payload)}function Nj(t){return t.overallProgress&&Pj}function Pj(){this.agent.dirty(),this.getDownstream().dirty()}function Ij(){this.agent&&this.agent.dirty()}function zj(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Fj(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=rr(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?ot(e,function(n,r){return cP(r)}):Bj}var Bj=cP(0);function cP(t){return function(e,n){var r=n.data,a=n.resetDefines[t];if(a&&a.dataEach)for(var l=e.start;l<e.end;l++)a.dataEach(r,l);else a&&a.progress&&a.progress(e,r)}}function Uj(t){return t.data.count()}function Vj(t){G_=null;try{t(Lg,dP)}catch{}return G_}var Lg={},dP={},G_;vP(Lg,cN),vP(dP,dN),Lg.eachSeriesByType=Lg.eachRawSeriesByType=function(t){G_=t},Lg.eachComponent=function(t){t.mainType==="series"&&t.subType&&(G_=t.subType)};function vP(t,e){for(var n in e.prototype)t[n]=ta}const hP=Oj;var pP=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const Hj={color:pP,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],pP]};var Ni="#B9B8CE",gP="#100C2A",$_=function(){return{axisLine:{lineStyle:{color:Ni}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},mP=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],yP={darkMode:!0,color:mP,backgroundColor:gP,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Ni}},textStyle:{color:Ni},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Ni}},dataZoom:{borderColor:"#71708A",textStyle:{color:Ni},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Ni}},timeline:{lineStyle:{color:Ni},label:{color:Ni},controlStyle:{color:Ni,borderColor:Ni}},calendar:{itemStyle:{color:gP},dayLabel:{color:Ni},monthLabel:{color:Ni},yearLabel:{color:Ni}},timeAxis:$_(),logAxis:$_(),valueAxis:$_(),categoryAxis:$_(),line:{symbol:"circle"},graph:{color:mP},gauge:{title:{color:Ni},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Ni},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};yP.categoryAxis.splitLine.show=!1;const Gj=yP;var $j=function(){function t(){}return t.prototype.normalizeQuery=function(e){var n={},r={},a={};if(et(e)){var l=Tl(e);n.mainType=l.main||null,n.subType=l.sub||null}else{var u=["Index","Name","Id"],f={name:1,dataIndex:1,dataType:1};W(e,function(d,h){for(var p=!1,m=0;m<u.length;m++){var S=u[m],_=h.lastIndexOf(S);if(_>0&&_===h.length-S.length){var x=h.slice(0,_);x!=="data"&&(n.mainType=x,n[S.toLowerCase()]=d,p=!0)}}f.hasOwnProperty(h)&&(r[h]=d,p=!0),p||(a[h]=d)})}return{cptQuery:n,dataQuery:r,otherQuery:a}},t.prototype.filter=function(e,n){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,l=r.packedEvent,u=r.model,f=r.view;if(!u||!f)return!0;var d=n.cptQuery,h=n.dataQuery;return p(d,u,"mainType")&&p(d,u,"subType")&&p(d,u,"index","componentIndex")&&p(d,u,"name")&&p(d,u,"id")&&p(h,l,"name")&&p(h,l,"dataIndex")&&p(h,l,"dataType")&&(!f.filterForExposedEvent||f.filterForExposedEvent(e,n.otherQuery,a,l));function p(m,S,_,x){return m[_]==null||S[x||_]===m[_]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Cb=["symbol","symbolSize","symbolRotate","symbolOffset"],_P=Cb.concat(["symbolKeepAspect"]),jj={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var r={},a={},l=!1,u=0;u<Cb.length;u++){var f=Cb[u],d=t.get(f);_t(d)?(l=!0,a[f]=d):r[f]=d}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(Re({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),e.isSeriesFiltered(t))return;var h=kn(a);function p(m,S){for(var _=t.getRawValue(S),x=t.getDataParams(S),E=0;E<h.length;E++){var b=h[E];m.setItemVisual(S,b,a[b](_,x))}}return{dataEach:l?p:null}}},Yj={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var n=t.getData();function r(a,l){for(var u=a.getItemModel(l),f=0;f<_P.length;f++){var d=_P[f],h=u.getShallow(d,!0);h!=null&&a.setItemVisual(l,d,h)}}return{dataEach:n.hasItemOption?r:null}}};function Wj(t,e,n){switch(n){case"color":var r=t.getItemVisual(e,"style");return r[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+n)}}function Xj(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+e)}}function Rv(t,e,n,r,a){var l=t+e;n.isSilent(l)||(process.env.NODE_ENV!=="production"&&wl("event "+l+" is deprecated."),r.eachComponent({mainType:"series",subType:"pie"},function(u){for(var f=u.seriesIndex,d=u.option.selectedMap,h=a.selected,p=0;p<h.length;p++)if(h[p].seriesIndex===f){var m=u.getData(),S=rg(m,a.fromActionPayload);n.trigger(l,{type:l,seriesId:u.id,name:Be(S)?m.getName(S[0]):m.getName(S),selected:et(d)?d:Re({},d)})}}))}function qj(t,e,n){t.on("selectchanged",function(r){var a=n.getModel();r.isFromClick?(Rv("map","selectchanged",e,a,r),Rv("pie","selectchanged",e,a,r)):r.fromAction==="select"?(Rv("map","selected",e,a,r),Rv("pie","selected",e,a,r)):r.fromAction==="unselect"&&(Rv("map","unselected",e,a,r),Rv("pie","unselected",e,a,r))})}function Og(t,e,n){for(var r;t&&!(e(t)&&(r=t,n));)t=t.__hostTarget||t.parent;return r}var Qj=Math.round(Math.random()*9),Zj=typeof Object.defineProperty=="function",Kj=function(){function t(){this._id="__ec_inner_"+Qj++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,n){var r=this._guard(e);return Zj?Object.defineProperty(r,this._id,{value:n,enumerable:!1,configurable:!0}):r[this._id]=n,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t}();const Jj=Kj;var eY=Gt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,a=e.width/2,l=e.height/2;t.moveTo(n,r-l),t.lineTo(n+a,r+l),t.lineTo(n-a,r+l),t.closePath()}}),tY=Gt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,a=e.width/2,l=e.height/2;t.moveTo(n,r-l),t.lineTo(n+a,r),t.lineTo(n,r+l),t.lineTo(n-a,r),t.closePath()}}),nY=Gt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,a=e.width/5*3,l=Math.max(a,e.height),u=a/2,f=u*u/(l-u),d=r-l+u+f,h=Math.asin(f/u),p=Math.cos(h)*u,m=Math.sin(h),S=Math.cos(h),_=u*.6,x=u*.7;t.moveTo(n-p,d+f),t.arc(n,d,u,Math.PI-h,Math.PI*2+h),t.bezierCurveTo(n+p-m*_,d+f+S*_,n,r-x,n,r),t.bezierCurveTo(n,r-x,n-p+m*_,d+f+S*_,n-p,d+f),t.closePath()}}),rY=Gt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,a=e.x,l=e.y,u=r/3*2;t.moveTo(a,l),t.lineTo(a+u,l+n),t.lineTo(a,l+n/4*3),t.lineTo(a-u,l+n),t.lineTo(a,l),t.closePath()}}),iY={line:vc,rect:Kr,roundRect:Kr,square:Kr,circle:ET,diamond:tY,pin:nY,arrow:rY,triangle:eY},aY={line:function(t,e,n,r,a){a.x1=t,a.y1=e+r/2,a.x2=t+n,a.y2=e+r/2},rect:function(t,e,n,r,a){a.x=t,a.y=e,a.width=n,a.height=r},roundRect:function(t,e,n,r,a){a.x=t,a.y=e,a.width=n,a.height=r,a.r=Math.min(n,r)/4},square:function(t,e,n,r,a){var l=Math.min(n,r);a.x=t,a.y=e,a.width=l,a.height=l},circle:function(t,e,n,r,a){a.cx=t+n/2,a.cy=e+r/2,a.r=Math.min(n,r)/2},diamond:function(t,e,n,r,a){a.cx=t+n/2,a.cy=e+r/2,a.width=n,a.height=r},pin:function(t,e,n,r,a){a.x=t+n/2,a.y=e+r/2,a.width=n,a.height=r},arrow:function(t,e,n,r,a){a.x=t+n/2,a.y=e+r/2,a.width=n,a.height=r},triangle:function(t,e,n,r,a){a.cx=t+n/2,a.cy=e+r/2,a.width=n,a.height=r}},wb={};W(iY,function(t,e){wb[e]=new t});var oY=Gt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=K0(t,e,n),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(r.y=n.y+n.height*.4),r},buildPath:function(t,e,n){var r=e.symbolType;if(r!=="none"){var a=wb[r];a||(r="rect",a=wb[r]),aY[r](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,n)}}});function lY(t,e){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=t:n.fill=t,this.markRedraw()}}function SP(t,e,n,r,a,l,u){var f=t.indexOf("empty")===0;f&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var d;return t.indexOf("image://")===0?d=mk(t.slice(8),new Wt(e,n,r,a),u?"center":"cover"):t.indexOf("path://")===0?d=NT(t.slice(7),{},new Wt(e,n,r,a),u?"center":"cover"):d=new oY({shape:{symbolType:t,x:e,y:n,width:r,height:a}}),d.__isEmptyBrush=f,d.setColor=lY,l&&d.setColor(l),d}function uY(t,e){if(t!=null)return Be(t)||(t=[t,t]),[Zr(t[0],e[0])||0,Zr(kt(t[1],t[0]),e[1])||0]}function wc(t){return isFinite(t)}function sY(t,e,n){var r=e.x==null?0:e.x,a=e.x2==null?1:e.x2,l=e.y==null?0:e.y,u=e.y2==null?0:e.y2;e.global||(r=r*n.width+n.x,a=a*n.width+n.x,l=l*n.height+n.y,u=u*n.height+n.y),r=wc(r)?r:0,a=wc(a)?a:1,l=wc(l)?l:0,u=wc(u)?u:0;var f=t.createLinearGradient(r,l,a,u);return f}function fY(t,e,n){var r=n.width,a=n.height,l=Math.min(r,a),u=e.x==null?.5:e.x,f=e.y==null?.5:e.y,d=e.r==null?.5:e.r;e.global||(u=u*r+n.x,f=f*a+n.y,d=d*l),u=wc(u)?u:.5,f=wc(f)?f:.5,d=d>=0&&wc(d)?d:.5;var h=t.createRadialGradient(u,f,0,u,f,d);return h}function xb(t,e,n){for(var r=e.type==="radial"?fY(t,e,n):sY(t,e,n),a=e.colorStops,l=0;l<a.length;l++)r.addColorStop(a[l].offset,a[l].color);return r}function cY(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}function j_(t){return parseInt(t,10)}function Y_(t,e,n){var r=["width","height"][e],a=["clientWidth","clientHeight"][e],l=["paddingLeft","paddingTop"][e],u=["paddingRight","paddingBottom"][e];if(n[r]!=null&&n[r]!=="auto")return parseFloat(n[r]);var f=document.defaultView.getComputedStyle(t);return(t[a]||j_(f[r])||j_(t.style[r]))-(j_(f[l])||0)-(j_(f[u])||0)|0}function dY(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Nn(t)?[t]:Be(t)?t:null}function CP(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&dY(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&a!==1&&(n=ot(n,function(l){return l/a}),r/=a)}return[n,r]}var vY=new As(!0);function W_(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function wP(t){return typeof t=="string"&&t!=="none"}function X_(t){var e=t.fill;return e!=null&&e!=="none"}function xP(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function TP(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function Tb(t,e,n){var r=WO(e.image,e.__image,n);if(r_(r)){var a=t.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var l=new DOMMatrix;l.translateSelf(e.x||0,e.y||0),l.rotateSelf(0,0,(e.rotation||0)*s4),l.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(l)}return a}}function hY(t,e,n,r){var a,l=W_(n),u=X_(n),f=n.strokePercent,d=f<1,h=!e.path;(!e.silent||d)&&h&&e.createPathProxy();var p=e.path||vY,m=e.__dirty;if(!r){var S=n.fill,_=n.stroke,x=u&&!!S.colorStops,E=l&&!!_.colorStops,b=u&&!!S.image,D=l&&!!_.image,A=void 0,O=void 0,P=void 0,I=void 0,F=void 0;(x||E)&&(F=e.getBoundingRect()),x&&(A=m?xb(t,S,F):e.__canvasFillGradient,e.__canvasFillGradient=A),E&&(O=m?xb(t,_,F):e.__canvasStrokeGradient,e.__canvasStrokeGradient=O),b&&(P=m||!e.__canvasFillPattern?Tb(t,S,e):e.__canvasFillPattern,e.__canvasFillPattern=P),D&&(I=m||!e.__canvasStrokePattern?Tb(t,_,e):e.__canvasStrokePattern,e.__canvasStrokePattern=P),x?t.fillStyle=A:b&&(P?t.fillStyle=P:u=!1),E?t.strokeStyle=O:D&&(I?t.strokeStyle=I:l=!1)}var U=e.getGlobalScale();p.setScale(U[0],U[1],e.segmentIgnoreThreshold);var H,j;t.setLineDash&&n.lineDash&&(a=CP(e),H=a[0],j=a[1]);var X=!0;(h||m&nv)&&(p.setDPR(t.dpr),d?p.setContext(null):(p.setContext(t),X=!1),p.reset(),e.buildPath(p,e.shape,r),p.toStatic(),e.pathUpdated()),X&&p.rebuildPath(t,d?f:1),H&&(t.setLineDash(H),t.lineDashOffset=j),r||(n.strokeFirst?(l&&TP(t,n),u&&xP(t,n)):(u&&xP(t,n),l&&TP(t,n))),H&&t.setLineDash([])}function pY(t,e,n){var r=e.__image=WO(n.image,e.__image,e,e.onload);if(!(!r||!r_(r))){var a=n.x||0,l=n.y||0,u=e.getWidth(),f=e.getHeight(),d=r.width/r.height;if(u==null&&f!=null?u=f*d:f==null&&u!=null?f=u/d:u==null&&f==null&&(u=r.width,f=r.height),n.sWidth&&n.sHeight){var h=n.sx||0,p=n.sy||0;t.drawImage(r,h,p,n.sWidth,n.sHeight,a,l,u,f)}else if(n.sx&&n.sy){var h=n.sx,p=n.sy,m=u-h,S=f-p;t.drawImage(r,h,p,m,S,a,l,u,f)}else t.drawImage(r,a,l,u,f)}}function gY(t,e,n){var r,a=n.text;if(a!=null&&(a+=""),a){t.font=n.font||Gf,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var l=void 0,u=void 0;t.setLineDash&&n.lineDash&&(r=CP(e),l=r[0],u=r[1]),l&&(t.setLineDash(l),t.lineDashOffset=u),n.strokeFirst?(W_(n)&&t.strokeText(a,n.x,n.y),X_(n)&&t.fillText(a,n.x,n.y)):(X_(n)&&t.fillText(a,n.x,n.y),W_(n)&&t.strokeText(a,n.x,n.y)),l&&t.setLineDash([])}}var bP=["shadowBlur","shadowOffsetX","shadowOffsetY"],EP=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function DP(t,e,n,r,a){var l=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){oa(t,a),l=!0;var u=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(u)?tc.opacity:u}(r||e.blend!==n.blend)&&(l||(oa(t,a),l=!0),t.globalCompositeOperation=e.blend||tc.blend);for(var f=0;f<bP.length;f++){var d=bP[f];(r||e[d]!==n[d])&&(l||(oa(t,a),l=!0),t[d]=t.dpr*(e[d]||0))}return(r||e.shadowColor!==n.shadowColor)&&(l||(oa(t,a),l=!0),t.shadowColor=e.shadowColor||tc.shadowColor),l}function MP(t,e,n,r,a){var l=kg(e,a.inHover),u=r?null:n&&kg(n,a.inHover)||{};if(l===u)return!1;var f=DP(t,l,u,r,a);if((r||l.fill!==u.fill)&&(f||(oa(t,a),f=!0),wP(l.fill)&&(t.fillStyle=l.fill)),(r||l.stroke!==u.stroke)&&(f||(oa(t,a),f=!0),wP(l.stroke)&&(t.strokeStyle=l.stroke)),(r||l.opacity!==u.opacity)&&(f||(oa(t,a),f=!0),t.globalAlpha=l.opacity==null?1:l.opacity),e.hasStroke()){var d=l.lineWidth,h=d/(l.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==h&&(f||(oa(t,a),f=!0),t.lineWidth=h)}for(var p=0;p<EP.length;p++){var m=EP[p],S=m[0];(r||l[S]!==u[S])&&(f||(oa(t,a),f=!0),t[S]=l[S]||m[1])}return f}function mY(t,e,n,r,a){return DP(t,kg(e,a.inHover),n&&kg(n,a.inHover),r,a)}function RP(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function yY(t,e,n){for(var r=!1,a=0;a<t.length;a++){var l=t[a];r=r||l.isZeroArea(),RP(e,l),e.beginPath(),l.buildPath(e,l.shape),e.clip()}n.allClipped=r}function _Y(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var AP=1,LP=2,OP=3,kP=4;function SY(t){var e=X_(t),n=W_(t);return!(t.lineDash||!(+e^+n)||e&&typeof t.fill!="string"||n&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function oa(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function kg(t,e){return e&&t.__hoverStyle||t.style}function NP(t,e){xc(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function xc(t,e,n,r){var a=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){e.__dirty&=~La,e.__isRendered=!1;return}var l=e.__clipPaths,u=n.prevElClipPaths,f=!1,d=!1;if((!u||cY(l,u))&&(u&&u.length&&(oa(t,n),t.restore(),d=f=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),l&&l.length&&(oa(t,n),t.save(),yY(l,t,n),f=!0),n.prevElClipPaths=l),n.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var h=n.prevEl;h||(d=f=!0);var p=e instanceof Gt&&e.autoBatch&&SY(e.style);f||_Y(a,h.transform)?(oa(t,n),RP(t,e)):p||oa(t,n);var m=kg(e,n.inHover);e instanceof Gt?(n.lastDrawType!==AP&&(d=!0,n.lastDrawType=AP),MP(t,e,h,d,n),(!p||!n.batchFill&&!n.batchStroke)&&t.beginPath(),hY(t,e,m,p),p&&(n.batchFill=m.fill||"",n.batchStroke=m.stroke||"")):e instanceof fT?(n.lastDrawType!==OP&&(d=!0,n.lastDrawType=OP),MP(t,e,h,d,n),gY(t,e,m)):e instanceof vv?(n.lastDrawType!==LP&&(d=!0,n.lastDrawType=LP),mY(t,e,h,d,n),pY(t,e,m)):e.getTemporalDisplayables&&(n.lastDrawType!==kP&&(d=!0,n.lastDrawType=kP),CY(t,e,n)),p&&r&&oa(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}function CY(t,e,n){var r=e.getDisplayables(),a=e.getTemporalDisplayables();t.save();var l={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},u,f;for(u=e.getCursor(),f=r.length;u<f;u++){var d=r[u];d.beforeBrush&&d.beforeBrush(),d.innerBeforeBrush(),xc(t,d,l,u===f-1),d.innerAfterBrush(),d.afterBrush&&d.afterBrush(),l.prevEl=d}for(var h=0,p=a.length;h<p;h++){var d=a[h];d.beforeBrush&&d.beforeBrush(),d.innerBeforeBrush(),xc(t,d,l,h===p-1),d.innerAfterBrush(),d.afterBrush&&d.afterBrush(),l.prevEl=d}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var bb=new Jj,PP=new Yp(100),IP=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function zP(t,e){if(t==="none")return null;var n=e.getDevicePixelRatio(),r=e.getZr(),a=r.painter.type==="svg";t.dirty&&bb.delete(t);var l=bb.get(t);if(l)return l;var u=Vt(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});u.backgroundColor==="none"&&(u.backgroundColor=null);var f={repeat:"repeat"};return d(f),f.rotation=u.rotation,f.scaleX=f.scaleY=a?1:1/n,bb.set(t,f),t.dirty=!1,f;function d(h){for(var p=[n],m=!0,S=0;S<IP.length;++S){var _=u[IP[S]];if(_!=null&&!Be(_)&&!et(_)&&!Nn(_)&&typeof _!="boolean"){m=!1;break}p.push(_)}var x;if(m){x=p.join(",")+(a?"-svg":"");var E=PP.get(x);E&&(a?h.svgElement=E:h.image=E)}var b=BP(u.dashArrayX),D=wY(u.dashArrayY),A=FP(u.symbol),O=xY(b),P=UP(D),I=!a&&$f.createCanvas(),F=a&&{tag:"g",attrs:{},key:"dcl",children:[]},U=j(),H;I&&(I.width=U.width*n,I.height=U.height*n,H=I.getContext("2d")),X(),m&&PP.put(x,I||F),h.image=I,h.svgElement=F,h.svgWidth=U.width,h.svgHeight=U.height;function j(){for(var G=1,ee=0,J=O.length;ee<J;++ee)G=NO(G,O[ee]);for(var ie=1,ee=0,J=A.length;ee<J;++ee)ie=NO(ie,A[ee].length);G*=ie;var ce=P*O.length*A.length;if(process.env.NODE_ENV!=="production"){var fe=function(Ne){console.warn("Calculated decal size is greater than "+Ne+" due to decal option settings so "+Ne+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+Ne+" to be larger to avoid incontinuity.")};G>u.maxTileWidth&&fe("maxTileWidth"),ce>u.maxTileHeight&&fe("maxTileHeight")}return{width:Math.max(1,Math.min(G,u.maxTileWidth)),height:Math.max(1,Math.min(ce,u.maxTileHeight))}}function X(){H&&(H.clearRect(0,0,I.width,I.height),u.backgroundColor&&(H.fillStyle=u.backgroundColor,H.fillRect(0,0,I.width,I.height)));for(var G=0,ee=0;ee<D.length;++ee)G+=D[ee];if(G<=0)return;for(var J=-P,ie=0,ce=0,fe=0;J<U.height;){if(ie%2===0){for(var Ne=ce/2%A.length,ae=0,ge=0,pe=0;ae<U.width*2;){for(var Le=0,ee=0;ee<b[fe].length;++ee)Le+=b[fe][ee];if(Le<=0)break;if(ge%2===0){var Ge=(1-u.symbolSize)*.5,St=ae+b[fe][ge]*Ge,It=J+D[ie]*Ge,Dn=b[fe][ge]*u.symbolSize,Xt=D[ie]*u.symbolSize,Mn=pe/2%A[Ne].length;ln(St,It,Dn,Xt,A[Ne][Mn])}ae+=b[fe][ge],++pe,++ge,ge===b[fe].length&&(ge=0)}++fe,fe===b.length&&(fe=0)}J+=D[ie],++ce,++ie,ie===D.length&&(ie=0)}function ln(zt,Ft,$e,Se,Zt){var Et=a?1:n,Pn=SP(Zt,zt*Et,Ft*Et,$e*Et,Se*Et,u.color,u.symbolKeepAspect);if(a){var ar=r.painter.renderOneToVNode(Pn);ar&&F.children.push(ar)}else NP(H,Pn)}}}}function FP(t){if(!t||t.length===0)return[["rect"]];if(et(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!et(t[n])){e=!1;break}if(e)return FP([t]);for(var r=[],n=0;n<t.length;++n)et(t[n])?r.push([t[n]]):r.push(t[n]);return r}function BP(t){if(!t||t.length===0)return[[0,0]];if(Nn(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,r=0;r<t.length;++r)if(!Nn(t[r])){n=!1;break}if(n)return BP([t]);for(var a=[],r=0;r<t.length;++r)if(Nn(t[r])){var e=Math.ceil(t[r]);a.push([e,e])}else{var e=ot(t[r],function(f){return Math.ceil(f)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function wY(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(Nn(t)){var e=Math.ceil(t);return[e,e]}var n=ot(t,function(r){return Math.ceil(r)});return t.length%2?n.concat(n):n}function xY(t){return ot(t,function(e){return UP(e)})}function UP(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?e*2:e}function TY(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(u){var f=r.getItemVisual(u,"decal");if(f){var d=r.ensureUniqueItemVisual(u,"style");d.decal=zP(f,e)}});var a=r.getVisual("decal");if(a){var l=r.getVisual("style");l.decal=zP(a,e)}}})}var bY=new _l;const Bo=bY;var q_={};function EY(t,e){process.env.NODE_ENV!=="production"&&q_[t]&&ci("Already has an implementation of "+t+"."),q_[t]=e}function DY(t){return process.env.NODE_ENV!=="production"&&(q_[t]||ci("Implementation of "+t+" doesn't exists.")),q_[t]}var MY=1,RY=800,AY=900,LY=1e3,OY=2e3,kY=5e3,VP=1e3,NY=1100,Eb=2e3,HP=3e3,PY=4e3,Q_=4500,IY=4600,zY=5e3,FY=6e3,GP=7e3,BY={PROCESSOR:{FILTER:LY,SERIES_FILTER:RY,STATISTIC:kY},VISUAL:{LAYOUT:VP,PROGRESSIVE_LAYOUT:NY,GLOBAL:Eb,CHART:HP,POST_CHART_LAYOUT:IY,COMPONENT:PY,BRUSH:zY,CHART_ITEM:Q_,ARIA:FY,DECAL:GP}},hi="__flagInMainProcess",la="__pendingUpdate",Db="__needsUpdateStatus",$P=/^[a-zA-Z0-9_]+$/,Mb="__connectUpdateStatus",jP=0,UY=1,VY=2;function YP(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this.isDisposed()){Na(this.id);return}return XP(this,t,e)}}function WP(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return XP(this,t,e)}}function XP(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),_l.prototype[e].apply(t,n)}var qP=function(t){Pt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(_l),QP=qP.prototype;QP.on=WP("on"),QP.off=WP("off");var Av,Rb,Z_,Ns,Ab,Lb,Ob,Ng,Pg,ZP,KP,kb,JP,K_,eI,tI,fo,nI,rI=function(t){Pt(e,t);function e(n,r,a){var l=t.call(this,new $j)||this;l._chartsViews=[],l._chartsMap={},l._componentsViews=[],l._componentsMap={},l._pendingActions=[],a=a||{},et(r)&&(r=iI[r]),l._dom=n;var u="canvas",f="auto",d=!1;if(process.env.NODE_ENV!=="production"){var h=Tt.hasGlobalWindow?window:global;u=h.__ECHARTS__DEFAULT__RENDERER__||u,f=kt(h.__ECHARTS__DEFAULT__COARSE_POINTER,f);var p=h.__ECHARTS__DEFAULT__USE_DIRTY_RECT__;d=p??d}var m=l._zr=bO(n,{renderer:a.renderer||u,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:kt(a.useDirtyRect,d),useCoarsePointer:kt(a.useCoarsePointer,f),pointerSize:a.pointerSize});l._ssr=a.ssr,l._throttledZrFlush=_b(Qn(m.flush,m),17),r=Qt(r),r&&_N(r,!0),l._theme=r,l._locale=G$(a.locale||Nk),l._coordSysMgr=new nb;var S=l._api=eI(l);function _(x,E){return x.__prio-E.__prio}return I0(e1,_),I0(Pb,_),l._scheduler=new hP(l,S,Pb,e1),l._messageCenter=new qP,l._initEvents(),l.resize=Qn(l.resize,l),m.animation.on("frame",l._onframe,l),ZP(m,l),KP(m,l),A0(l),l}return e.prototype._onframe=function(){if(!this._disposed){nI(this);var n=this._scheduler;if(this[la]){var r=this[la].silent;this[hi]=!0;try{Av(this),Ns.update.call(this,null,this[la].updateParams)}catch(d){throw this[hi]=!1,this[la]=null,d}this._zr.flush(),this[hi]=!1,this[la]=null,Ng.call(this,r),Pg.call(this,r)}else if(n.unfinished){var a=MY,l=this._model,u=this._api;n.unfinished=!1;do{var f=+new Date;n.performSeriesTasks(l),n.performDataProcessorTasks(l),Lb(this,l),n.performVisualTasks(l),K_(this,this._model,u,"remain",{}),a-=+new Date-f}while(a>0&&n.unfinished);n.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(n,r,a){if(this[hi]){process.env.NODE_ENV!=="production"&&ci("`setOption` should not be called during main process.");return}if(this._disposed){Na(this.id);return}var l,u,f;if(it(r)&&(a=r.lazyUpdate,l=r.silent,u=r.replaceMerge,f=r.transition,r=r.notMerge),this[hi]=!0,!this._model||r){var d=new b9(this._api),h=this._theme,p=this._model=new cN;p.scheduler=this._scheduler,p.ssr=this._ssr,p.init(null,null,null,h,this._locale,d)}this._model.setOption(n,{replaceMerge:u},Ib);var m={seriesTransition:f,optionChanged:!0};if(a)this[la]={silent:l,updateParams:m},this[hi]=!1,this.getZr().wakeUp();else{try{Av(this),Ns.update.call(this,null,m)}catch(S){throw this[la]=null,this[hi]=!1,S}this._ssr||this._zr.flush(),this[la]=null,this[hi]=!1,Ng.call(this,l),Pg.call(this,l)}},e.prototype.setTheme=function(){wl("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},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||Tt.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(n){return process.env.NODE_ENV!=="production"&&Br("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(n)},e.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;if(process.env.NODE_ENV!=="production"&&r.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;if(process.env.NODE_ENV!=="production"&&r.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return r.renderToString({useViewBox:n.useViewBox})},e.prototype.getSvgDataURL=function(){if(Tt.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return W(r,function(a){a.stopAnimation(null,!0)}),n.painter.toDataURL()}},e.prototype.getDataURL=function(n){if(this._disposed){Na(this.id);return}n=n||{};var r=n.excludeComponents,a=this._model,l=[],u=this;W(r,function(d){a.eachComponent({mainType:d},function(h){var p=u._componentsMap[h.__viewId];p.group.ignore||(l.push(p),p.group.ignore=!0)})});var f=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return W(l,function(d){d.group.ignore=!1}),f},e.prototype.getConnectedDataURL=function(n){if(this._disposed){Na(this.id);return}var r=n.type==="svg",a=this.group,l=Math.min,u=Math.max,f=1/0;if(aI[a]){var d=f,h=f,p=-f,m=-f,S=[],_=n&&n.pixelRatio||this.getDevicePixelRatio();W(zg,function(O,P){if(O.group===a){var I=r?O.getZr().painter.getSvgDom().innerHTML:O.renderToCanvas(Qt(n)),F=O.getDom().getBoundingClientRect();d=l(F.left,d),h=l(F.top,h),p=u(F.right,p),m=u(F.bottom,m),S.push({dom:I,left:F.left,top:F.top})}}),d*=_,h*=_,p*=_,m*=_;var x=p-d,E=m-h,b=$f.createCanvas(),D=bO(b,{renderer:r?"svg":"canvas"});if(D.resize({width:x,height:E}),r){var A="";return W(S,function(O){var P=O.left-d,I=O.top-h;A+='<g transform="translate('+P+","+I+')">'+O.dom+"</g>"}),D.painter.getSvgRoot().innerHTML=A,n.connectedBackgroundColor&&D.painter.setBackgroundColor(n.connectedBackgroundColor),D.refreshImmediately(),D.painter.toDataURL()}else return n.connectedBackgroundColor&&D.add(new Kr({shape:{x:0,y:0,width:x,height:E},style:{fill:n.connectedBackgroundColor}})),W(S,function(O){var P=new vv({style:{x:O.left*_-d,y:O.top*_-h,image:O.dom}});D.add(P)}),D.refreshImmediately(),b.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},e.prototype.convertToPixel=function(n,r){return Ab(this,"convertToPixel",n,r)},e.prototype.convertFromPixel=function(n,r){return Ab(this,"convertFromPixel",n,r)},e.prototype.containPixel=function(n,r){if(this._disposed){Na(this.id);return}var a=this._model,l,u=Wx(a,n);return W(u,function(f,d){d.indexOf("Models")>=0&&W(f,function(h){var p=h.coordinateSystem;if(p&&p.containPoint)l=l||!!p.containPoint(r);else if(d==="seriesModels"){var m=this._chartsMap[h.__viewId];m&&m.containPoint?l=l||m.containPoint(r,h):process.env.NODE_ENV!=="production"&&Fr(d+": "+(m?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&Fr(d+": containPoint is not supported")},this)},this),!!l},e.prototype.getVisual=function(n,r){var a=this._model,l=Wx(a,n,{defaultMainType:"series"}),u=l.seriesModel;process.env.NODE_ENV!=="production"&&(u||Fr("There is no specified series model"));var f=u.getData(),d=l.hasOwnProperty("dataIndexInside")?l.dataIndexInside:l.hasOwnProperty("dataIndex")?f.indexOfRawIndex(l.dataIndex):null;return d!=null?Wj(f,d,r):Xj(f,r)},e.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},e.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},e.prototype._initEvents=function(){var n=this;W(HY,function(r){var a=function(l){var u=n.getModel(),f=l.target,d,h=r==="globalout";if(h?d={}:f&&Og(f,function(x){var E=yn(x);if(E&&E.dataIndex!=null){var b=E.dataModel||u.getSeriesByIndex(E.seriesIndex);return d=b&&b.getDataParams(E.dataIndex,E.dataType)||{},!0}else if(E.eventData)return d=Re({},E.eventData),!0},!0),d){var p=d.componentType,m=d.componentIndex;(p==="markLine"||p==="markPoint"||p==="markArea")&&(p="series",m=d.seriesIndex);var S=p&&m!=null&&u.getComponent(p,m),_=S&&n[S.mainType==="series"?"_chartsMap":"_componentsMap"][S.__viewId];process.env.NODE_ENV!=="production"&&!h&&!(S&&_)&&Fr("model or view can not be found by params"),d.event=l,d.type=r,n._$eventProcessor.eventInfo={targetEl:f,packedEvent:d,model:S,view:_},n.trigger(r,d)}};a.zrEventfulCallAtLast=!0,n._zr.on(r,a,n)}),W(Ig,function(r,a){n._messageCenter.on(a,function(l){this.trigger(a,l)},n)}),W(["selectchanged"],function(r){n._messageCenter.on(r,function(a){this.trigger(r,a)},n)}),qj(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){Na(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){Na(this.id);return}this._disposed=!0;var n=this.getDom();n&&$O(this.getDom(),Fb,"");var r=this,a=r._api,l=r._model;W(r._componentsViews,function(u){u.dispose(l,a)}),W(r._chartsViews,function(u){u.dispose(l,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete zg[r.id]},e.prototype.resize=function(n){if(this[hi]){process.env.NODE_ENV!=="production"&&ci("`resize` should not be called during main process.");return}if(this._disposed){Na(this.id);return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),l=n&&n.silent;this[la]&&(l==null&&(l=this[la].silent),a=!0,this[la]=null),this[hi]=!0;try{a&&Av(this),Ns.update.call(this,{type:"resize",animation:Re({duration:0},n&&n.animation)})}catch(u){throw this[hi]=!1,u}this[hi]=!1,Ng.call(this,l),Pg.call(this,l)}},e.prototype.showLoading=function(n,r){if(this._disposed){Na(this.id);return}if(it(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!zb[n]){process.env.NODE_ENV!=="production"&&Fr("Loading effects "+n+" not exists.");return}var a=zb[n](this._api,r),l=this._zr;this._loadingFX=a,l.add(a)},e.prototype.hideLoading=function(){if(this._disposed){Na(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(n){var r=Re({},n);return r.type=Ig[n.type],r},e.prototype.dispatchAction=function(n,r){if(this._disposed){Na(this.id);return}if(it(r)||(r={silent:!!r}),!!J_[n.type]&&this._model){if(this[hi]){this._pendingActions.push(n);return}var a=r.silent;Ob.call(this,n,a);var l=r.flush;l?this._zr.flush():l!==!1&&Tt.browser.weChat&&this._throttledZrFlush(),Ng.call(this,a),Pg.call(this,a)}},e.prototype.updateLabelLayout=function(){Bo.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(n){if(this._disposed){Na(this.id);return}var r=n.seriesIndex,a=this.getModel(),l=a.getSeriesByIndex(r);process.env.NODE_ENV!=="production"&&bt(n.data&&l),l.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Av=function(m){var S=m._scheduler;S.restorePipelines(m._model),S.prepareStageTasks(),Rb(m,!0),Rb(m,!1),S.plan()},Rb=function(m,S){for(var _=m._model,x=m._scheduler,E=S?m._componentsViews:m._chartsViews,b=S?m._componentsMap:m._chartsMap,D=m._zr,A=m._api,O=0;O<E.length;O++)E[O].__alive=!1;S?_.eachComponent(function(F,U){F!=="series"&&P(U)}):_.eachSeries(P);function P(F){var U=F.__requireNewView;F.__requireNewView=!1;var H="_ec_"+F.id+"_"+F.type,j=!U&&b[H];if(!j){var X=Tl(F.type),G=S?Mu.getClass(X.main,X.sub):Mv.getClass(X.sub);process.env.NODE_ENV!=="production"&&bt(G,X.sub+" does not exist."),j=new G,j.init(_,A),b[H]=j,E.push(j),D.add(j.group)}F.__viewId=j.__id=H,j.__alive=!0,j.__model=F,j.group.__ecComponentInfo={mainType:F.mainType,index:F.componentIndex},!S&&x.prepareView(j,F,_,A)}for(var O=0;O<E.length;){var I=E[O];I.__alive?O++:(!S&&I.renderTask.dispose(),D.remove(I.group),I.dispose(_,A),E.splice(O,1),b[I.__id]===I&&delete b[I.__id],I.__id=I.group.__ecComponentInfo=null)}},Z_=function(m,S,_,x,E){var b=m._model;if(b.setUpdatePayload(_),!x){W([].concat(m._componentsViews).concat(m._chartsViews),I);return}var D={};D[x+"Id"]=_[x+"Id"],D[x+"Index"]=_[x+"Index"],D[x+"Name"]=_[x+"Name"];var A={mainType:x,query:D};E&&(A.subType=E);var O=_.excludeSeriesId,P;O!=null&&(P=xt(),W(rr(O),function(F){var U=xl(F,null);U!=null&&P.set(U,!0)})),b&&b.eachComponent(A,function(F){var U=P&&P.get(F.id)!=null;if(!U)if(H2(_))if(F instanceof Dv)_.type===fc&&!_.notBlur&&!F.get(["emphasis","disabled"])&&vG(F,_,m._api);else{var H=CT(F.mainType,F.componentIndex,_.name,m._api),j=H.focusSelf,X=H.dispatchers;_.type===fc&&j&&!_.notBlur&&ST(F.mainType,F.componentIndex,m._api),X&&W(X,function(G){_.type===fc?mT(G):yT(G)})}else wT(_)&&F instanceof Dv&&(gG(F,_,m._api),B2(F),fo(m))},m),b&&b.eachComponent(A,function(F){var U=P&&P.get(F.id)!=null;U||I(m[x==="series"?"_chartsMap":"_componentsMap"][F.__viewId])},m);function I(F){F&&F.__alive&&F[S]&&F[S](F.__model,b,m._api,_)}},Ns={prepareAndUpdate:function(m){Av(this),Ns.update.call(this,m,{optionChanged:m.newOption!=null})},update:function(m,S){var _=this._model,x=this._api,E=this._zr,b=this._coordSysMgr,D=this._scheduler;if(_){_.setUpdatePayload(m),D.restoreData(_,m),D.performSeriesTasks(_),b.create(_,x),D.performDataProcessorTasks(_,m),Lb(this,_),b.update(_,x),n(_),D.performVisualTasks(_,m),kb(this,_,x,m,S);var A=_.get("backgroundColor")||"transparent",O=_.get("darkMode");E.setBackgroundColor(A),O!=null&&O!=="auto"&&E.setDarkMode(O),Bo.trigger("afterupdate",_,x)}},updateTransform:function(m){var S=this,_=this._model,x=this._api;if(_){_.setUpdatePayload(m);var E=[];_.eachComponent(function(D,A){if(D!=="series"){var O=S.getViewOfComponentModel(A);if(O&&O.__alive)if(O.updateTransform){var P=O.updateTransform(A,_,x,m);P&&P.update&&E.push(O)}else E.push(O)}});var b=xt();_.eachSeries(function(D){var A=S._chartsMap[D.__viewId];if(A.updateTransform){var O=A.updateTransform(D,_,x,m);O&&O.update&&b.set(D.uid,1)}else b.set(D.uid,1)}),n(_),this._scheduler.performVisualTasks(_,m,{setDirty:!0,dirtyMap:b}),K_(this,_,x,m,{},b),Bo.trigger("afterupdate",_,x)}},updateView:function(m){var S=this._model;S&&(S.setUpdatePayload(m),Mv.markUpdateMethod(m,"updateView"),n(S),this._scheduler.performVisualTasks(S,m,{setDirty:!0}),kb(this,S,this._api,m,{}),Bo.trigger("afterupdate",S,this._api))},updateVisual:function(m){var S=this,_=this._model;_&&(_.setUpdatePayload(m),_.eachSeries(function(x){x.getData().clearAllVisual()}),Mv.markUpdateMethod(m,"updateVisual"),n(_),this._scheduler.performVisualTasks(_,m,{visualType:"visual",setDirty:!0}),_.eachComponent(function(x,E){if(x!=="series"){var b=S.getViewOfComponentModel(E);b&&b.__alive&&b.updateVisual(E,_,S._api,m)}}),_.eachSeries(function(x){var E=S._chartsMap[x.__viewId];E.updateVisual(x,_,S._api,m)}),Bo.trigger("afterupdate",_,this._api))},updateLayout:function(m){Ns.update.call(this,m)}},Ab=function(m,S,_,x){if(m._disposed){Na(m.id);return}for(var E=m._model,b=m._coordSysMgr.getCoordinateSystems(),D,A=Wx(E,_),O=0;O<b.length;O++){var P=b[O];if(P[S]&&(D=P[S](E,A,x))!=null)return D}process.env.NODE_ENV!=="production"&&Fr("No coordinate system that supports "+S+" found by the given finder.")},Lb=function(m,S){var _=m._chartsMap,x=m._scheduler;S.eachSeries(function(E){x.updateStreamModes(E,_[E.__viewId])})},Ob=function(m,S){var _=this,x=this.getModel(),E=m.type,b=m.escapeConnect,D=J_[E],A=D.actionInfo,O=(A.update||"update").split(":"),P=O.pop(),I=O[0]!=null&&Tl(O[0]);this[hi]=!0;var F=[m],U=!1;m.batch&&(U=!0,F=ot(m.batch,function(ie){return ie=Vt(Re({},ie),m),ie.batch=null,ie}));var H=[],j,X=wT(m),G=H2(m);if(G&&F2(this._api),W(F,function(ie){if(j=D.action(ie,_._model,_._api),j=j||Re({},ie),j.type=A.event||j.type,H.push(j),G){var ce=Xx(m),fe=ce.queryOptionMap,Ne=ce.mainTypeSpecified,ae=Ne?fe.keys()[0]:"series";Z_(_,P,ie,ae),fo(_)}else X?(Z_(_,P,ie,"series"),fo(_)):I&&Z_(_,P,ie,I.main,I.sub)}),P!=="none"&&!G&&!X&&!I)try{this[la]?(Av(this),Ns.update.call(this,m),this[la]=null):Ns[P].call(this,m)}catch(ie){throw this[hi]=!1,ie}if(U?j={type:A.event||E,escapeConnect:b,batch:H}:j=H[0],this[hi]=!1,!S){var ee=this._messageCenter;if(ee.trigger(j.type,j),X){var J={type:"selectchanged",escapeConnect:b,selected:mG(x),isFromClick:m.isFromClick||!1,fromAction:m.type,fromActionPayload:m};ee.trigger(J.type,J)}}},Ng=function(m){for(var S=this._pendingActions;S.length;){var _=S.shift();Ob.call(this,_,m)}},Pg=function(m){!m&&this.trigger("updated")},ZP=function(m,S){m.on("rendered",function(_){S.trigger("rendered",_),m.animation.isFinished()&&!S[la]&&!S._scheduler.unfinished&&!S._pendingActions.length&&S.trigger("finished")})},KP=function(m,S){m.on("mouseover",function(_){var x=_.target,E=Og(x,gv);E&&(hG(E,_,S._api),fo(S))}).on("mouseout",function(_){var x=_.target,E=Og(x,gv);E&&(pG(E,_,S._api),fo(S))}).on("click",function(_){var x=_.target,E=Og(x,function(A){return yn(A).dataIndex!=null},!0);if(E){var b=E.selected?"unselect":"select",D=yn(E);S._api.dispatchAction({type:b,dataType:D.dataType,dataIndexInside:D.dataIndex,seriesIndex:D.seriesIndex,isFromClick:!0})}})};function n(m){m.clearColorPalette(),m.eachSeries(function(S){S.clearColorPalette()})}function r(m){var S=[],_=[],x=!1;if(m.eachComponent(function(A,O){var P=O.get("zlevel")||0,I=O.get("z")||0,F=O.getZLevelKey();x=x||!!F,(A==="series"?_:S).push({zlevel:P,z:I,idx:O.componentIndex,type:A,key:F})}),x){var E=S.concat(_),b,D;I0(E,function(A,O){return A.zlevel===O.zlevel?A.z-O.z:A.zlevel-O.zlevel}),W(E,function(A){var O=m.getComponent(A.type,A.idx),P=A.zlevel,I=A.key;b!=null&&(P=Math.max(b,P)),I?(P===b&&I!==D&&P++,D=I):D&&(P===b&&P++,D=""),b=P,O.setZLevel(P)})}}kb=function(m,S,_,x,E){r(S),JP(m,S,_,x,E),W(m._chartsViews,function(b){b.__alive=!1}),K_(m,S,_,x,E),W(m._chartsViews,function(b){b.__alive||b.remove(S,_)})},JP=function(m,S,_,x,E,b){W(b||m._componentsViews,function(D){var A=D.__model;h(A,D),D.render(A,S,_,x),f(A,D),p(A,D)})},K_=function(m,S,_,x,E,b){var D=m._scheduler;E=Re(E||{},{updatedSeries:S.getSeries()}),Bo.trigger("series:beforeupdate",S,_,E);var A=!1;S.eachSeries(function(O){var P=m._chartsMap[O.__viewId];P.__alive=!0;var I=P.renderTask;D.updatePayload(I,x),h(O,P),b&&b.get(O.uid)&&I.dirty(),I.perform(D.getPerformArgs(I))&&(A=!0),P.group.silent=!!O.get("silent"),u(O,P),B2(O)}),D.unfinished=A||D.unfinished,Bo.trigger("series:layoutlabels",S,_,E),Bo.trigger("series:transition",S,_,E),S.eachSeries(function(O){var P=m._chartsMap[O.__viewId];f(O,P),p(O,P)}),l(m,S),Bo.trigger("series:afterupdate",S,_,E)},fo=function(m){m[Db]=!0,m.getZr().wakeUp()},nI=function(m){m[Db]&&(m.getZr().storage.traverse(function(S){_v(S)||a(S)}),m[Db]=!1)};function a(m){for(var S=[],_=m.currentStates,x=0;x<_.length;x++){var E=_[x];E==="emphasis"||E==="blur"||E==="select"||S.push(E)}m.selected&&m.states.select&&S.push("select"),m.hoverState===hT&&m.states.emphasis?S.push("emphasis"):m.hoverState===vT&&m.states.blur&&S.push("blur"),m.useStates(S)}function l(m,S){var _=m._zr,x=_.storage,E=0;x.traverse(function(b){b.isGroup||E++}),E>S.get("hoverLayerThreshold")&&!Tt.node&&!Tt.worker&&S.eachSeries(function(b){if(!b.preventUsingHoverLayer){var D=m._chartsMap[b.__viewId];D.__alive&&D.eachRendered(function(A){A.states.emphasis&&(A.states.emphasis.hoverLayer=!0)})}})}function u(m,S){var _=m.get("blendMode")||null;S.eachRendered(function(x){x.isGroup||(x.style.blend=_)})}function f(m,S){if(!m.preventAutoZ){var _=m.get("z")||0,x=m.get("zlevel")||0;S.eachRendered(function(E){return d(E,_,x,-1/0),!0})}}function d(m,S,_,x){var E=m.getTextContent(),b=m.getTextGuideLine(),D=m.isGroup;if(D)for(var A=m.childrenRef(),O=0;O<A.length;O++)x=Math.max(d(A[O],S,_,x),x);else m.z=S,m.zlevel=_,x=Math.max(m.z2,x);if(E&&(E.z=S,E.zlevel=_,isFinite(x)&&(E.z2=x+2)),b){var P=m.textGuideLineConfig;b.z=S,b.zlevel=_,isFinite(x)&&(b.z2=x+(P&&P.showAbove?1:-1))}return x}function h(m,S){S.eachRendered(function(_){if(!_v(_)){var x=_.getTextContent(),E=_.getTextGuideLine();_.stateTransition&&(_.stateTransition=null),x&&x.stateTransition&&(x.stateTransition=null),E&&E.stateTransition&&(E.stateTransition=null),_.hasState()?(_.prevStates=_.currentStates,_.clearStates()):_.prevStates&&(_.prevStates=null)}})}function p(m,S){var _=m.getModel("stateAnimation"),x=m.isAnimationEnabled(),E=_.get("duration"),b=E>0?{duration:E,delay:_.get("delay"),easing:_.get("easing")}:null;S.eachRendered(function(D){if(D.states&&D.states.emphasis){if(_v(D))return;if(D instanceof Gt&&bG(D),D.__dirty){var A=D.prevStates;A&&D.useStates(A)}if(x){D.stateTransition=b;var O=D.getTextContent(),P=D.getTextGuideLine();O&&(O.stateTransition=b),P&&(P.stateTransition=b)}D.__dirty&&a(D)}})}eI=function(m){return new(function(S){Pt(_,S);function _(){return S!==null&&S.apply(this,arguments)||this}return _.prototype.getCoordinateSystems=function(){return m._coordSysMgr.getCoordinateSystems()},_.prototype.getComponentByElement=function(x){for(;x;){var E=x.__ecComponentInfo;if(E!=null)return m._model.getComponent(E.mainType,E.index);x=x.parent}},_.prototype.enterEmphasis=function(x,E){mT(x,E),fo(m)},_.prototype.leaveEmphasis=function(x,E){yT(x,E),fo(m)},_.prototype.enterBlur=function(x){dG(x),fo(m)},_.prototype.leaveBlur=function(x){N2(x),fo(m)},_.prototype.enterSelect=function(x){P2(x),fo(m)},_.prototype.leaveSelect=function(x){I2(x),fo(m)},_.prototype.getModel=function(){return m.getModel()},_.prototype.getViewOfComponentModel=function(x){return m.getViewOfComponentModel(x)},_.prototype.getViewOfSeriesModel=function(x){return m.getViewOfSeriesModel(x)},_}(dN))(m)},tI=function(m){function S(_,x){for(var E=0;E<_.length;E++){var b=_[E];b[Mb]=x}}W(Ig,function(_,x){m._messageCenter.on(x,function(E){if(aI[m.group]&&m[Mb]!==jP){if(E&&E.escapeConnect)return;var b=m.makeActionFromEvent(E),D=[];W(zg,function(A){A!==m&&A.group===m.group&&D.push(A)}),S(D,jP),W(D,function(A){A[Mb]!==UY&&A.dispatchAction(b)}),S(D,VY)}})})}}(),e}(_l),Nb=rI.prototype;Nb.on=YP("on"),Nb.off=YP("off"),Nb.one=function(t,e,n){var r=this;wl("ECharts#one is deprecated.");function a(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];e&&e.apply&&e.apply(this,l),r.off(t,a)}this.on.call(this,t,a,n)};var HY=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Na(t){process.env.NODE_ENV!=="production"&&Fr("Instance "+t+" has been disposed")}var J_={},Ig={},Pb=[],Ib=[],e1=[],iI={},zb={},zg={},aI={},GY=+new Date-0,Fb="_echarts_instance_";function $Y(t,e,n){var r=!(n&&n.ssr);if(r){if(process.env.NODE_ENV!=="production"&&!t)throw new Error("Initialize failed: invalid dom.");var a=jY(t);if(a)return process.env.NODE_ENV!=="production"&&Fr("There is a chart instance already initialized on the dom."),a;process.env.NODE_ENV!=="production"&&zp(t)&&t.nodeName.toUpperCase()!=="CANVAS"&&(!t.clientWidth&&(!n||n.width==null)||!t.clientHeight&&(!n||n.height==null))&&Fr("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var l=new rI(t,e,n);return l.id="ec_"+GY++,zg[l.id]=l,r&&$O(t,Fb,l.id),tI(l),Bo.trigger("afterinit",l),l}function jY(t){return zg[K6(t,Fb)]}function oI(t,e){iI[t]=e}function lI(t){dn(Ib,t)<0&&Ib.push(t)}function uI(t,e){Ub(Pb,t,e,OY)}function YY(t){Bb("afterinit",t)}function WY(t){Bb("afterupdate",t)}function Bb(t,e){Bo.on(t,e)}function Lv(t,e,n){_t(e)&&(n=e,e="");var r=it(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,!Ig[e]&&(bt($P.test(r)&&$P.test(e)),J_[r]||(J_[r]={action:n,actionInfo:t}),Ig[e]=r)}function XY(t,e){nb.register(t,e)}function qY(t,e){Ub(e1,t,e,VP,"layout")}function Tc(t,e){Ub(e1,t,e,HP,"visual")}var sI=[];function Ub(t,e,n,r,a){if((_t(e)||it(e))&&(n=e,e=r),process.env.NODE_ENV!=="production"){if(isNaN(e)||e==null)throw new Error("Illegal priority");W(t,function(u){bt(u.__raw!==n)})}if(!(dn(sI,n)>=0)){sI.push(n);var l=hP.wrapStageHandler(n,a);l.__prio=e,l.__raw=n,t.push(l)}}function fI(t,e){zb[t]=e}function QY(t,e,n){var r=DY("registerMap");r&&r(t,e,n)}var ZY=ej;Tc(Eb,Mj),Tc(Q_,Rj),Tc(Q_,Aj),Tc(Eb,jj),Tc(Q_,Yj),Tc(GP,TY),lI(_N),uI(AY,k9),fI("default",Lj),Lv({type:fc,event:fc,update:fc},ta),Lv({type:s_,event:s_,update:s_},ta),Lv({type:ug,event:ug,update:ug},ta),Lv({type:f_,event:f_,update:f_},ta),Lv({type:sg,event:sg,update:sg},ta),oI("light",Hj),oI("dark",Gj);function Fg(t){return t==null?0:t.length||1}function cI(t){return t}var KY=function(){function t(e,n,r,a,l,u){this._old=e,this._new=n,this._oldKeyGetter=r||cI,this._newKeyGetter=a||cI,this.context=l,this._diffModeMultiple=u==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,n=this._new,r={},a=new Array(e.length),l=new Array(n.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(n,r,l,"_newKeyGetter");for(var u=0;u<e.length;u++){var f=a[u],d=r[f],h=Fg(d);if(h>1){var p=d.shift();d.length===1&&(r[f]=d[0]),this._update&&this._update(p,u)}else h===1?(r[f]=null,this._update&&this._update(d,u)):this._remove&&this._remove(u)}this._performRestAdd(l,r)},t.prototype._executeMultiple=function(){var e=this._old,n=this._new,r={},a={},l=[],u=[];this._initIndexMap(e,r,l,"_oldKeyGetter"),this._initIndexMap(n,a,u,"_newKeyGetter");for(var f=0;f<l.length;f++){var d=l[f],h=r[d],p=a[d],m=Fg(h),S=Fg(p);if(m>1&&S===1)this._updateManyToOne&&this._updateManyToOne(p,h),a[d]=null;else if(m===1&&S>1)this._updateOneToMany&&this._updateOneToMany(p,h),a[d]=null;else if(m===1&&S===1)this._update&&this._update(p,h),a[d]=null;else if(m>1&&S>1)this._updateManyToMany&&this._updateManyToMany(p,h),a[d]=null;else if(m>1)for(var _=0;_<m;_++)this._remove&&this._remove(h[_]);else this._remove&&this._remove(h)}this._performRestAdd(u,a)},t.prototype._performRestAdd=function(e,n){for(var r=0;r<e.length;r++){var a=e[r],l=n[a],u=Fg(l);if(u>1)for(var f=0;f<u;f++)this._add&&this._add(l[f]);else u===1&&this._add&&this._add(l);n[a]=null}},t.prototype._initIndexMap=function(e,n,r,a){for(var l=this._diffModeMultiple,u=0;u<e.length;u++){var f="_ec_"+this[a](e[u],u);if(l||(r[u]=f),!!n){var d=n[f],h=Fg(d);h===0?(n[f]=u,l&&r.push(f)):h===1?n[f]=[d,u]:d.push(u)}}},t}();const Vb=KY;var JY=function(){function t(e,n){this._encode=e,this._schema=n}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 eW(t,e){var n={},r=n.encode={},a=xt(),l=[],u=[],f={};W(t.dimensions,function(S){var _=t.getDimensionInfo(S),x=_.coordDim;if(x){process.env.NODE_ENV!=="production"&&bt(KT.get(x)==null);var E=_.coordDimIndex;Hb(r,x)[E]=S,_.isExtraCoord||(a.set(x,1),nW(_.type)&&(l[0]=S),Hb(f,x)[E]=t.getDimensionIndex(_.name)),_.defaultTooltip&&u.push(S)}KT.each(function(b,D){var A=Hb(r,D),O=_.otherDims[D];O!=null&&O!==!1&&(A[O]=_.name)})});var d=[],h={};a.each(function(S,_){var x=r[_];h[_]=x[0],d=d.concat(x)}),n.dataDimsOnCoord=d,n.dataDimIndicesOnCoord=ot(d,function(S){return t.getDimensionInfo(S).storeDimIndex}),n.encodeFirstDimNotExtra=h;var p=r.label;p&&p.length&&(l=p.slice());var m=r.tooltip;return m&&m.length?u=m.slice():u.length||(u=l.slice()),r.defaultedLabel=l,r.defaultedTooltip=u,n.userOutput=new JY(f,e),n}function Hb(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function tW(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function nW(t){return!(t==="ordinal"||t==="time")}var rW=function(){function t(e){this.otherDims={},e!=null&&Re(this,e)}return t}();const t1=rW;var iW=jn(),aW={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},dI=function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=pI(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return kt(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var n=this.source.dimensionsDefine;if(n)return n[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,n=xN(this.source),r=!gI(e),a="",l=[],u=0,f=0;u<e;u++){var d=void 0,h=void 0,p=void 0,m=this.dimensions[f];if(m&&m.storeDimIndex===u)d=n?m.name:null,h=m.type,p=m.ordinalMeta,f++;else{var S=this.getSourceDimension(u);S&&(d=n?S.name:null,h=S.type)}l.push({property:d,type:h,ordinalMeta:p}),n&&d!=null&&(!m||!m.isCalculationCoord)&&(a+=r?d.replace(/\`/g,"`1").replace(/\$/g,"`2"):d),a+="$",a+=aW[h]||"f",p&&(a+=p.uid),a+="$"}var _=this.source,x=[_.seriesLayoutBy,_.startIndex,a].join("$$");return{dimensions:l,hash:x}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],n=0,r=0;n<this._fullDimCount;n++){var a=void 0,l=this.dimensions[r];if(l&&l.storeDimIndex===n)l.isCalculationCoord||(a=l.name),r++;else{var u=this.getSourceDimension(n);u&&(a=u.name)}e.push(a)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function vI(t){return t instanceof dI}function hI(t){for(var e=xt(),n=0;n<(t||[]).length;n++){var r=t[n],a=it(r)?r.name:r;a!=null&&e.get(a)==null&&e.set(a,n)}return e}function pI(t){var e=iW(t);return e.dimNameMap||(e.dimNameMap=hI(t.dimensionsDefine))}function gI(t){return t>30}var Bg=it,Ps=ot,oW=typeof Int32Array>"u"?Array:Int32Array,lW="e\0\0",mI=-1,uW=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],sW=["_approximateExtent"],yI,n1,Ug,Ov,Gb,r1,$b,fW=function(){function t(e,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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,a=!1;vI(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,r=e),r=r||["x","y"];for(var l={},u=[],f={},d=!1,h={},p=0;p<r.length;p++){var m=r[p],S=et(m)?new t1({name:m}):m instanceof t1?m:new t1(m),_=S.name;S.type=S.type||"float",S.coordDim||(S.coordDim=_,S.coordDimIndex=0);var x=S.otherDims=S.otherDims||{};u.push(_),l[_]=S,h[_]!=null&&(d=!0),S.createInvertedIndices&&(f[_]=[]),x.itemName===0&&(this._nameDimIdx=p),x.itemId===0&&(this._idDimIdx=p),process.env.NODE_ENV!=="production"&&bt(a||S.storeDimIndex>=0),a&&(S.storeDimIndex=p)}if(this.dimensions=u,this._dimInfos=l,this._initGetDimensionInfo(d),this.hostModel=n,this._invertedIndicesMap=f,this._dimOmitted){var E=this._dimIdxToName=xt();W(u,function(b){E.set(l[b].storeDimIndex,b)})}}return t.prototype.getDimension=function(e){var n=this._recognizeDimIndex(e);if(n==null)return e;if(n=e,!this._dimOmitted)return this.dimensions[n];var r=this._dimIdxToName.get(n);if(r!=null)return r;var a=this._schema.getSourceDimension(n);if(a)return a.name},t.prototype.getDimensionIndex=function(e){var n=this._recognizeDimIndex(e);if(n!=null)return n;if(e==null)return-1;var r=this._getDimInfo(e);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(Nn(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var n=this.getDimensionIndex(e);if(process.env.NODE_ENV!=="production"&&n==null)throw new Error("Unknown dimension "+e);return n},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var n=this._dimInfos;this._getDimInfo=e?function(r){return n.hasOwnProperty(r)?n[r]:void 0}:function(r){return n[r]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,n){var r=this._dimSummary;if(n==null)return r.encodeFirstDimNotExtra[e];var a=r.encode[e];return a?a[n]:null},t.prototype.mapDimensionsAll=function(e){var n=this._dimSummary,r=n.encode[e];return(r||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,n,r){var a=this,l;if(e instanceof db&&(l=e),!l){var u=this.dimensions,f=ab(e)||Ai(e)?new EN(e,u.length):e;l=new db;var d=Ps(u,function(h){return{type:a._dimInfos[h].type,property:h}});l.initData(f,d,r)}this._store=l,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,l.count()),this._dimSummary=eW(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var n=this._store.appendData(e);this._doInit(n[0],n[1])},t.prototype.appendValues=function(e,n){var r=this._store.appendValues(e,n.length),a=r.start,l=r.end,u=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var f=a;f<l;f++){var d=f-a;this._nameList[f]=n[d],u&&$b(this,f)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,n=this.dimensions,r=0;r<n.length;r++){var a=this._dimInfos[n[r]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Eu&&!e.fillStorage},t.prototype._doInit=function(e,n){if(!(e>=n)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var l=this._nameList,u=this._idList,f=a.getSource().sourceFormat,d=f===lo;if(d&&!a.pure)for(var h=[],p=e;p<n;p++){var m=a.getItem(p,h);if(!this.hasItemOption&&V6(m)&&(this.hasItemOption=!0),m){var S=m.name;l[p]==null&&S!=null&&(l[p]=xl(S,null));var _=m.id;u[p]==null&&_!=null&&(u[p]=xl(_,null))}}if(this._shouldMakeIdFromName())for(var p=e;p<n;p++)$b(this,p);yI(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,n){n=this.getDimension(n),this._approximateExtent[n]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,n){Bg(e)?Re(this._calculationInfo,e):this._calculationInfo[e]=n},t.prototype.getName=function(e){var n=this.getRawIndex(e),r=this._nameList[n];return r==null&&this._nameDimIdx!=null&&(r=Ug(this,this._nameDimIdx,n)),r==null&&(r=""),r},t.prototype._getCategory=function(e,n){var r=this._store.get(e,n),a=this._store.getOrdinalMeta(e);return a?a.categories[r]:r},t.prototype.getId=function(e){return n1(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,n){var r=this._store,a=this._dimInfos[e];if(a)return r.get(a.storeDimIndex,n)},t.prototype.getByRawIndex=function(e,n){var r=this._store,a=this._dimInfos[e];if(a)return r.getByRawIndex(a.storeDimIndex,n)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,n){var r=this,a=this._store;return Be(e)?a.getValues(Ps(e,function(l){return r._getStoreDimIndex(l)}),n):a.getValues(e)},t.prototype.hasValue=function(e){for(var n=this._dimSummary.dataDimIndicesOnCoord,r=0,a=n.length;r<a;r++)if(isNaN(this._store.get(n[r],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var n=0,r=this._store.count();n<r;n++)if(this.getName(n)===e)return n;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,n){var r=e&&this._invertedIndicesMap[e];if(process.env.NODE_ENV!=="production"&&!r)throw new Error("Do not supported yet");var a=r[n];return a==null||isNaN(a)?mI:a},t.prototype.indicesOfNearest=function(e,n,r){return this._store.indicesOfNearest(this._getStoreDimIndex(e),n,r)},t.prototype.each=function(e,n,r){_t(e)&&(r=n,n=e,e=[]);var a=r||this,l=Ps(Ov(e),this._getStoreDimIndex,this);this._store.each(l,a?Qn(n,a):n)},t.prototype.filterSelf=function(e,n,r){_t(e)&&(r=n,n=e,e=[]);var a=r||this,l=Ps(Ov(e),this._getStoreDimIndex,this);return this._store=this._store.filter(l,a?Qn(n,a):n),this},t.prototype.selectRange=function(e){var n=this,r={},a=kn(e);return W(a,function(l){var u=n._getStoreDimIndex(l);r[u]=e[l]}),this._store=this._store.selectRange(r),this},t.prototype.mapArray=function(e,n,r){_t(e)&&(r=n,n=e,e=[]),r=r||this;var a=[];return this.each(e,function(){a.push(n&&n.apply(this,arguments))},r),a},t.prototype.map=function(e,n,r,a){var l=r||a||this,u=Ps(Ov(e),this._getStoreDimIndex,this),f=r1(this);return f._store=this._store.map(u,l?Qn(n,l):n),f},t.prototype.modify=function(e,n,r,a){var l=this,u=r||a||this;process.env.NODE_ENV!=="production"&&W(Ov(e),function(d){var h=l.getDimensionInfo(d);h.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var f=Ps(Ov(e),this._getStoreDimIndex,this);this._store.modify(f,u?Qn(n,u):n)},t.prototype.downSample=function(e,n,r,a){var l=r1(this);return l._store=this._store.downSample(this._getStoreDimIndex(e),n,r,a),l},t.prototype.lttbDownSample=function(e,n){var r=r1(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(e),n),r},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var n=this.hostModel,r=this.getRawDataItem(e);return new Oi(r,n,n&&n.ecModel)},t.prototype.diff=function(e){var n=this;return new Vb(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(r){return n1(e,r)},function(r){return n1(n,r)})},t.prototype.getVisual=function(e){var n=this._visual;return n&&n[e]},t.prototype.setVisual=function(e,n){this._visual=this._visual||{},Bg(e)?Re(this._visual,e):this._visual[e]=n},t.prototype.getItemVisual=function(e,n){var r=this._itemVisuals[e],a=r&&r[n];return a??this.getVisual(n)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,n){var r=this._itemVisuals,a=r[e];a||(a=r[e]={});var l=a[n];return l==null&&(l=this.getVisual(n),Be(l)?l=l.slice():Bg(l)&&(l=Re({},l)),a[n]=l),l},t.prototype.setItemVisual=function(e,n,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Bg(n)?Re(a,n):a[n]=r},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,n){Bg(e)?Re(this._layout,e):this._layout[e]=n},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,n,r){this._itemLayouts[e]=r?Re(this._itemLayouts[e]||{},n):n},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,n){var r=this.hostModel&&this.hostModel.seriesIndex;nG(r,this.dataType,e,n),this._graphicEls[e]=n},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,n){W(this._graphicEls,function(r,a){r&&e&&e.call(n,r,a)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Ps(this.dimensions,this._getDimInfo,this),this.hostModel)),Gb(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,n){var r=this[e];_t(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=r.apply(this,arguments);return n.apply(this,[a].concat(Jw(arguments)))})},t.internalField=function(){yI=function(e){var n=e._invertedIndicesMap;W(n,function(r,a){var l=e._dimInfos[a],u=l.ordinalMeta,f=e._store;if(u){r=n[a]=new oW(u.categories.length);for(var d=0;d<r.length;d++)r[d]=mI;for(var d=0;d<f.count();d++)r[f.get(l.storeDimIndex,d)]=d}})},Ug=function(e,n,r){return xl(e._getCategory(n,r),null)},n1=function(e,n){var r=e._idList[n];return r==null&&e._idDimIdx!=null&&(r=Ug(e,e._idDimIdx,n)),r==null&&(r=lW+n),r},Ov=function(e){return Be(e)||(e=e!=null?[e]:[]),e},r1=function(e){var n=new t(e._schema?e._schema:Ps(e.dimensions,e._getDimInfo,e),e.hostModel);return Gb(n,e),n},Gb=function(e,n){W(uW.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(e[r]=n[r])}),e.__wrappedMethods=n.__wrappedMethods,W(sW,function(r){e[r]=Qt(n[r])}),e._calculationInfo=Re({},n._calculationInfo)},$b=function(e,n){var r=e._nameList,a=e._idList,l=e._nameDimIdx,u=e._idDimIdx,f=r[n],d=a[n];if(f==null&&l!=null&&(r[n]=f=Ug(e,l,n)),d==null&&u!=null&&(a[n]=d=Ug(e,u,n)),d==null&&f!=null){var h=e._nameRepeatCount,p=h[f]=(h[f]||0)+1;d=f,p>1&&(d+="__ec__"+p),a[n]=d}}}(),t}();const cW=fW;function dW(t,e){ab(t)||(t=lb(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],a=xt(),l=[],u=hW(t,n,r,e.dimensionsCount),f=e.canOmitUnusedDimensions&&gI(u),d=r===t.dimensionsDefine,h=d?pI(t):hI(r),p=e.encodeDefine;!p&&e.encodeDefaulter&&(p=e.encodeDefaulter(t,u));for(var m=xt(p),S=new FN(u),_=0;_<S.length;_++)S[_]=-1;function x(j){var X=S[j];if(X<0){var G=r[j],ee=it(G)?G:{name:G},J=new t1,ie=ee.name;ie!=null&&h.get(ie)!=null&&(J.name=J.displayName=ie),ee.type!=null&&(J.type=ee.type),ee.displayName!=null&&(J.displayName=ee.displayName);var ce=l.length;return S[j]=ce,J.storeDimIndex=j,l.push(J),J}return l[X]}if(!f)for(var _=0;_<u;_++)x(_);m.each(function(j,X){var G=rr(j).slice();if(G.length===1&&!et(G[0])&&G[0]<0){m.set(X,!1);return}var ee=m.set(X,[]);W(G,function(J,ie){var ce=et(J)?h.get(J):J;ce!=null&&ce<u&&(ee[ie]=ce,b(x(ce),X,ie))})});var E=0;W(n,function(j){var X,G,ee,J;if(et(j))X=j,J={};else{J=j,X=J.name;var ie=J.ordinalMeta;J.ordinalMeta=null,J=Re({},J),J.ordinalMeta=ie,G=J.dimsDef,ee=J.otherDims,J.name=J.coordDim=J.coordDimIndex=J.dimsDef=J.otherDims=null}var ce=m.get(X);if(ce!==!1){if(ce=rr(ce),!ce.length)for(var fe=0;fe<(G&&G.length||1);fe++){for(;E<u&&x(E).coordDim!=null;)E++;E<u&&ce.push(E++)}W(ce,function(Ne,ae){var ge=x(Ne);if(d&&J.type!=null&&(ge.type=J.type),b(Vt(ge,J),X,ae),ge.name==null&&G){var pe=G[ae];!it(pe)&&(pe={name:pe}),ge.name=ge.displayName=pe.name,ge.defaultTooltip=pe.defaultTooltip}ee&&Vt(ge.otherDims,ee)})}});function b(j,X,G){KT.get(X)!=null?j.otherDims[X]=G:(j.coordDim=X,j.coordDimIndex=G,a.set(X,!0))}var D=e.generateCoord,A=e.generateCoordCount,O=A!=null;A=D?A||1:0;var P=D||"value";function I(j){j.name==null&&(j.name=j.coordDim)}if(f)W(l,function(j){I(j)}),l.sort(function(j,X){return j.storeDimIndex-X.storeDimIndex});else for(var F=0;F<u;F++){var U=x(F),H=U.coordDim;H==null&&(U.coordDim=pW(P,a,O),U.coordDimIndex=0,(!D||A<=0)&&(U.isExtraCoord=!0),A--),I(U),U.type==null&&(rN(t,F)===ka.Must||U.isExtraCoord&&(U.otherDims.itemName!=null||U.otherDims.seriesName!=null))&&(U.type="ordinal")}return vW(l),new dI({source:t,dimensions:l,fullDimensionCount:u,dimensionOmitted:f})}function vW(t){for(var e=xt(),n=0;n<t.length;n++){var r=t[n],a=r.name,l=e.get(a)||0;l>0&&(r.name=a+(l-1)),l++,e.set(a,l)}}function hW(t,e,n,r){var a=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return W(e,function(l){var u;it(l)&&(u=l.dimsDef)&&(a=Math.max(a,u.length))}),a}function pW(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}var gW=function(){function t(e){this.coordSysDims=[],this.axisMap=xt(),this.categoryAxisMap=xt(),this.coordSysName=e}return t}();function mW(t){var e=t.get("coordinateSystem"),n=new gW(e),r=yW[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var yW={cartesian2d:function(t,e,n,r){var a=t.getReferringComponents("xAxis",Oo).models[0],l=t.getReferringComponents("yAxis",Oo).models[0];if(process.env.NODE_ENV!=="production"){if(!a)throw new Error('xAxis "'+Yf(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!l)throw new Error('yAxis "'+Yf(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],n.set("x",a),n.set("y",l),kv(a)&&(r.set("x",a),e.firstCategoryDimIndex=0),kv(l)&&(r.set("y",l),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var a=t.getReferringComponents("singleAxis",Oo).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],n.set("single",a),kv(a)&&(r.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var a=t.getReferringComponents("polar",Oo).models[0],l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!u)throw new Error("angleAxis option not found");if(!l)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],n.set("radius",l),n.set("angle",u),kv(l)&&(r.set("radius",l),e.firstCategoryDimIndex=0),kv(u)&&(r.set("angle",u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var a=t.ecModel,l=a.getComponent("parallel",t.get("parallelIndex")),u=e.coordSysDims=l.dimensions.slice();W(l.parallelAxisIndex,function(f,d){var h=a.getComponent("parallelAxis",f),p=u[d];n.set(p,h),kv(h)&&(r.set(p,h),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=d))})}};function kv(t){return t.get("type")==="category"}function _W(t,e,n){n=n||{};var r=n.byIndex,a=n.stackedCoordDimension,l,u,f;SW(e)?l=e:(u=e.schema,l=u.dimensions,f=e.store);var d=!!(t&&t.get("stack")),h,p,m,S;if(W(l,function(A,O){et(A)&&(l[O]=A={name:A}),d&&!A.isExtraCoord&&(!r&&!h&&A.ordinalMeta&&(h=A),!p&&A.type!=="ordinal"&&A.type!=="time"&&(!a||a===A.coordDim)&&(p=A))}),p&&!r&&!h&&(r=!0),p){m="__\0ecstackresult_"+t.id,S="__\0ecstackedover_"+t.id,h&&(h.createInvertedIndices=!0);var _=p.coordDim,x=p.type,E=0;W(l,function(A){A.coordDim===_&&E++});var b={name:m,coordDim:_,coordDimIndex:E,type:x,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:l.length},D={name:S,coordDim:S,coordDimIndex:E+1,type:x,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:l.length+1};u?(f&&(b.storeDimIndex=f.ensureCalculationDimension(S,x),D.storeDimIndex=f.ensureCalculationDimension(m,x)),u.appendCalculationDimension(b),u.appendCalculationDimension(D)):(l.push(b),l.push(D))}return{stackedDimension:p&&p.name,stackedByDimension:h&&h.name,isStackedByIndex:r,stackedOverDimension:S,stackResultDimension:m}}function SW(t){return!vI(t.schema)}function _I(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function CW(t,e){return _I(t,e)?t.getCalculationInfo("stackResultDimension"):e}function wW(t,e){var n=t.get("coordinateSystem"),r=nb.get(n),a;return e&&e.coordSysDims&&(a=ot(e.coordSysDims,function(l){var u={name:l},f=e.axisMap.get(l);if(f){var d=f.get("type");u.type=tW(d)}return u})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function xW(t,e,n){var r,a;return n&&W(t,function(l,u){var f=l.coordDim,d=n.categoryAxisMap.get(f);d&&(r==null&&(r=u),l.ordinalMeta=d.getOrdinalMeta(),e&&(l.createInvertedIndices=!0)),l.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(t[r].otherDims.itemName=0),r}function SI(t,e,n){n=n||{};var r=e.getSourceManager(),a,l=!1;t?(l=!0,a=lb(t)):(a=r.getSource(),l=a.sourceFormat===lo);var u=mW(e),f=wW(e,u),d=n.useEncodeDefaulter,h=_t(d)?d:d?Aa(r9,f,e):null,p={coordDimensions:f,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:h,canOmitUnusedDimensions:!l},m=dW(a,p),S=xW(m.dimensions,n.createInvertedIndices,u),_=l?null:r.getSharedDataStore(m),x=_W(e,{schema:m,store:_}),E=new cW(m,e);E.setCalculationInfo(x);var b=S!=null&&TW(a)?function(D,A,O,P){return P===S?O:this.defaultDimValueGetter(D,A,O,P)}:null;return E.hasItemOption=!1,E.initData(l?a:_,null,b),E}function TW(t){if(t.sourceFormat===lo){var e=bW(t.data||[]);return!Be(tg(e))}}function bW(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var CI=function(){function t(e){this._setting=e||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype.unionExtent=function(e){var n=this._extent;e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1])},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,n){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(n)||(r[1]=n)},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();n_(CI);const Ru=CI;var EW=0,DW=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++EW}return t.createByAxisModel=function(e){var n=e.option,r=n.data,a=r&&ot(r,MW);return new t({categories:a,needCollect:!a,deduplication:n.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var n,r=this._needCollect;if(!et(e)&&!r)return e;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=e,n;var a=this._getOrCreateMap();return n=a.get(e),n==null&&(r?(n=this.categories.length,this.categories[n]=e,a.set(e,n)):n=NaN),n},t.prototype._getOrCreateMap=function(){return this._map||(this._map=xt(this.categories))},t}();function MW(t){return it(t)&&t.value!=null?t.value:t+""}const jb=DW;function RW(t){var e=Math.pow(10,e_(Math.abs(t))),n=Math.abs(t/e);return n===0||n===1||n===2||n===3||n===5}function Yb(t){return t.type==="interval"||t.type==="log"}function AW(t,e,n,r){var a={},l=t[1]-t[0],u=a.interval=AO(l/e,!0);n!=null&&u<n&&(u=a.interval=n),r!=null&&u>r&&(u=a.interval=r);var f=a.intervalPrecision=wI(u),d=a.niceTickExtent=[vr(Math.ceil(t[0]/u)*u,f),vr(Math.floor(t[1]/u)*u,f)];return LW(d,t),a}function Wb(t){var e=Math.pow(10,e_(t)),n=t/e;return n?n===2?n=3:n===3?n=5:n*=2:n=1,vr(n*e)}function wI(t){return Cu(t)+2}function xI(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function LW(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),xI(t,0,e),xI(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function i1(t,e){return t>=e[0]&&t<=e[1]}function a1(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function o1(t,e){return t*(e[1]-e[0])+e[0]}var TI=function(t){Pt(e,t);function e(n){var r=t.call(this,n)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new jb({})),Be(a)&&(a=new jb({categories:ot(a,function(l){return it(l)?l.value:l})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return e.prototype.parse=function(n){return n==null?NaN:et(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},e.prototype.contain=function(n){return n=this.parse(n),i1(n,this._extent)&&this._ordinalMeta.categories[n]!=null},e.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),a1(n,this._extent)},e.prototype.scale=function(n){return n=Math.round(o1(n,this._extent)),this.getRawOrdinalNumber(n)},e.prototype.getTicks=function(){for(var n=[],r=this._extent,a=r[0];a<=r[1];)n.push({value:a}),a++;return n},e.prototype.getMinorTicks=function(n){},e.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,a=this._ordinalNumbersByTick=[],l=this._ticksByOrdinalNumber=[],u=0,f=this._ordinalMeta.categories.length,d=Math.min(f,r.length);u<d;++u){var h=r[u];a[u]=h,l[h]=u}for(var p=0;u<f;++u){for(;l[p]!=null;)p++;a.push(p),l[p]=u}},e.prototype._getTickNumber=function(n){var r=this._ticksByOrdinalNumber;return r&&n>=0&&n<r.length?r[n]:n},e.prototype.getRawOrdinalNumber=function(n){var r=this._ordinalNumbersByTick;return r&&n>=0&&n<r.length?r[n]:n},e.prototype.getLabel=function(n){if(!this.isBlank()){var r=this.getRawOrdinalNumber(n.value),a=this._ordinalMeta.categories[r];return a==null?"":a+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},e.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Ru);Ru.registerClass(TI);const bI=TI;var bc=vr,EI=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return e.prototype.parse=function(n){return n},e.prototype.contain=function(n){return i1(n,this._extent)},e.prototype.normalize=function(n){return a1(n,this._extent)},e.prototype.scale=function(n){return o1(n,this._extent)},e.prototype.setExtent=function(n,r){var a=this._extent;isNaN(n)||(a[0]=parseFloat(n)),isNaN(r)||(a[1]=parseFloat(r))},e.prototype.unionExtent=function(n){var r=this._extent;n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=wI(n)},e.prototype.getTicks=function(n){var r=this._interval,a=this._extent,l=this._niceExtent,u=this._intervalPrecision,f=[];if(!r)return f;var d=1e4;a[0]<l[0]&&(n?f.push({value:bc(l[0]-r,u)}):f.push({value:a[0]}));for(var h=l[0];h<=l[1]&&(f.push({value:h}),h=bc(h+r,u),h!==f[f.length-1].value);)if(f.length>d)return[];var p=f.length?f[f.length-1].value:l[1];return a[1]>p&&(n?f.push({value:bc(p+r,u)}):f.push({value:a[1]})),f},e.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),a=[],l=this.getExtent(),u=1;u<r.length;u++){for(var f=r[u],d=r[u-1],h=0,p=[],m=f.value-d.value,S=m/n;h<n-1;){var _=bc(d.value+(h+1)*S);_>l[0]&&_<l[1]&&p.push(_),h++}a.push(p)}return a},e.prototype.getLabel=function(n,r){if(n==null)return"";var a=r&&r.precision;a==null?a=Cu(n.value)||0:a==="auto"&&(a=this._intervalPrecision);var l=bc(n.value,a,!0);return Wk(l)},e.prototype.calcNiceTicks=function(n,r,a){n=n||5;var l=this._extent,u=l[1]-l[0];if(isFinite(u)){u<0&&(u=-u,l.reverse());var f=AW(l,n,r,a);this._intervalPrecision=f.intervalPrecision,this._interval=f.interval,this._niceExtent=f.niceTickExtent}},e.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1])if(r[0]!==0){var a=Math.abs(r[0]);n.fixMax||(r[1]+=a/2),r[0]-=a/2}else r[1]=1;var l=r[1]-r[0];isFinite(l)||(r[0]=0,r[1]=1),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var u=this._interval;n.fixMin||(r[0]=bc(Math.floor(r[0]/u)*u)),n.fixMax||(r[1]=bc(Math.ceil(r[1]/u)*u))},e.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},e.type="interval",e}(Ru);Ru.registerClass(EI);const Vg=EI;var DI=typeof Float32Array<"u",OW=DI?Float32Array:Array;function Xb(t){return Be(t)?DI?new Float32Array(t):t:new OW(t)}var kW="__ec_stack_";function qb(t){return t.get("stack")||kW+t.seriesIndex}function Qb(t){return t.dim+t.index}function MI(t,e){var n=[];return e.eachSeriesByType(t,function(r){AI(r)&&n.push(r)}),n}function NW(t){var e={};W(t,function(d){var h=d.coordinateSystem,p=h.getBaseAxis();if(!(p.type!=="time"&&p.type!=="value"))for(var m=d.getData(),S=p.dim+"_"+p.index,_=m.getDimensionIndex(m.mapDimension(p.dim)),x=m.getStore(),E=0,b=x.count();E<b;++E){var D=x.get(_,E);e[S]?e[S].push(D):e[S]=[D]}});var n={};for(var r in e)if(e.hasOwnProperty(r)){var a=e[r];if(a){a.sort(function(d,h){return d-h});for(var l=null,u=1;u<a.length;++u){var f=a[u]-a[u-1];f>0&&(l=l===null?f:Math.min(l,f))}n[r]=l}}return n}function RI(t){var e=NW(t),n=[];return W(t,function(r){var a=r.coordinateSystem,l=a.getBaseAxis(),u=l.getExtent(),f;if(l.type==="category")f=l.getBandWidth();else if(l.type==="value"||l.type==="time"){var d=l.dim+"_"+l.index,h=e[d],p=Math.abs(u[1]-u[0]),m=l.scale.getExtent(),S=Math.abs(m[1]-m[0]);f=h?p/S*h:p}else{var _=r.getData();f=Math.abs(u[1]-u[0])/_.count()}var x=Zr(r.get("barWidth"),f),E=Zr(r.get("barMaxWidth"),f),b=Zr(r.get("barMinWidth")||(LI(r)?.5:1),f),D=r.get("barGap"),A=r.get("barCategoryGap");n.push({bandWidth:f,barWidth:x,barMaxWidth:E,barMinWidth:b,barGap:D,barCategoryGap:A,axisKey:Qb(l),stackId:qb(r)})}),PW(n)}function PW(t){var e={};W(t,function(r,a){var l=r.axisKey,u=r.bandWidth,f=e[l]||{bandWidth:u,remainedWidth:u,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},d=f.stacks;e[l]=f;var h=r.stackId;d[h]||f.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var p=r.barWidth;p&&!d[h].width&&(d[h].width=p,p=Math.min(f.remainedWidth,p),f.remainedWidth-=p);var m=r.barMaxWidth;m&&(d[h].maxWidth=m);var S=r.barMinWidth;S&&(d[h].minWidth=S);var _=r.barGap;_!=null&&(f.gap=_);var x=r.barCategoryGap;x!=null&&(f.categoryGap=x)});var n={};return W(e,function(r,a){n[a]={};var l=r.stacks,u=r.bandWidth,f=r.categoryGap;if(f==null){var d=kn(l).length;f=Math.max(35-d*4,15)+"%"}var h=Zr(f,u),p=Zr(r.gap,1),m=r.remainedWidth,S=r.autoWidthCount,_=(m-h)/(S+(S-1)*p);_=Math.max(_,0),W(l,function(D){var A=D.maxWidth,O=D.minWidth;if(D.width){var P=D.width;A&&(P=Math.min(P,A)),O&&(P=Math.max(P,O)),D.width=P,m-=P+p*P,S--}else{var P=_;A&&A<P&&(P=Math.min(A,m)),O&&O>P&&(P=O),P!==_&&(D.width=P,m-=P+p*P,S--)}}),_=(m-h)/(S+(S-1)*p),_=Math.max(_,0);var x=0,E;W(l,function(D,A){D.width||(D.width=_),E=D,x+=D.width*(1+p)}),E&&(x-=E.width*p);var b=-x/2;W(l,function(D,A){n[a][A]=n[a][A]||{bandWidth:u,offset:b,width:D.width},b+=D.width*(1+p)})}),n}function IW(t,e,n){if(t&&e){var r=t[Qb(e)];return r!=null&&n!=null?r[qb(n)]:r}}function zW(t,e){var n=MI(t,e),r=RI(n);W(n,function(a){var l=a.getData(),u=a.coordinateSystem,f=u.getBaseAxis(),d=qb(a),h=r[Qb(f)][d],p=h.offset,m=h.width;l.setLayout({bandWidth:h.bandWidth,offset:p,size:m})})}function FW(t){return{seriesType:t,plan:eP(),reset:function(e){if(AI(e)){var n=e.getData(),r=e.coordinateSystem,a=r.getBaseAxis(),l=r.getOtherAxis(a),u=n.getDimensionIndex(n.mapDimension(l.dim)),f=n.getDimensionIndex(n.mapDimension(a.dim)),d=e.get("showBackground",!0),h=n.mapDimension(l.dim),p=n.getCalculationInfo("stackResultDimension"),m=_I(n,h)&&!!n.getCalculationInfo("stackedOnSeries"),S=l.isHorizontal(),_=BW(a,l),x=LI(e),E=e.get("barMinHeight")||0,b=p&&n.getDimensionIndex(p),D=n.getLayout("size"),A=n.getLayout("offset");return{progress:function(O,P){for(var I=O.count,F=x&&Xb(I*3),U=x&&d&&Xb(I*3),H=x&&Xb(I),j=r.master.getRect(),X=S?j.width:j.height,G,ee=P.getStore(),J=0;(G=O.next())!=null;){var ie=ee.get(m?b:u,G),ce=ee.get(f,G),fe=_,Ne=void 0;m&&(Ne=+ie-ee.get(u,G));var ae=void 0,ge=void 0,pe=void 0,Le=void 0;if(S){var Ge=r.dataToPoint([ie,ce]);if(m){var St=r.dataToPoint([Ne,ce]);fe=St[0]}ae=fe,ge=Ge[1]+A,pe=Ge[0]-fe,Le=D,Math.abs(pe)<E&&(pe=(pe<0?-1:1)*E)}else{var Ge=r.dataToPoint([ce,ie]);if(m){var St=r.dataToPoint([ce,Ne]);fe=St[1]}ae=Ge[0]+A,ge=fe,pe=D,Le=Ge[1]-fe,Math.abs(Le)<E&&(Le=(Le<=0?-1:1)*E)}x?(F[J]=ae,F[J+1]=ge,F[J+2]=S?pe:Le,U&&(U[J]=S?j.x:ae,U[J+1]=S?ge:j.y,U[J+2]=X),H[G]=G):P.setItemLayout(G,{x:ae,y:ge,width:pe,height:Le}),J+=3}x&&P.setLayout({largePoints:F,largeDataIndices:H,largeBackgroundPoints:U,valueAxisHorizontal:S})}}}}}}function AI(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function LI(t){return t.pipelineContext&&t.pipelineContext.large}function BW(t,e){return e.toGlobalCoord(e.dataToCoord(e.type==="log"?1:0))}var UW=function(t,e,n,r){for(;n<r;){var a=n+r>>>1;t[a][1]<e?n=a+1:r=a}return n},OI=function(t){Pt(e,t);function e(n){var r=t.call(this,n)||this;return r.type="time",r}return e.prototype.getLabel=function(n){var r=this.getSetting("useUTC");return E_(n.value,zk[W$(Sv(this._minLevelUnit))]||zk.second,r,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(n,r,a){var l=this.getSetting("useUTC"),u=this.getSetting("locale");return X$(n,r,a,u,l)},e.prototype.getTicks=function(){var n=this._interval,r=this._extent,a=[];if(!n)return a;a.push({value:r[0],level:0});var l=this.getSetting("useUTC"),u=WW(this._minLevelUnit,this._approxInterval,l,r);return a=a.concat(u),a.push({value:r[1],level:0}),a},e.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=oo,r[1]+=oo),r[1]===-1/0&&r[0]===1/0){var a=new Date;r[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),r[0]=r[1]-oo}this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},e.prototype.calcNiceTicks=function(n,r,a){n=n||10;var l=this._extent,u=l[1]-l[0];this._approxInterval=u/n,r!=null&&this._approxInterval<r&&(this._approxInterval=r),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var f=l1.length,d=Math.min(UW(l1,this._approxInterval,0,f),f-1);this._interval=l1[d][1],this._minLevelUnit=l1[Math.max(d-1,0)][0]},e.prototype.parse=function(n){return Nn(n)?n:+wu(n)},e.prototype.contain=function(n){return i1(this.parse(n),this._extent)},e.prototype.normalize=function(n){return a1(this.parse(n),this._extent)},e.prototype.scale=function(n){return o1(n,this._extent)},e.type="time",e}(Vg),l1=[["second",GT],["minute",$T],["hour",gg],["quarter-day",gg*6],["half-day",gg*12],["day",oo*1.2],["half-week",oo*3.5],["week",oo*7],["month",oo*31],["quarter",oo*95],["half-year",Ik/2],["year",Ik]];function VW(t,e,n,r){var a=wu(e),l=wu(n),u=function(x){return Uk(a,x,r)===Uk(l,x,r)},f=function(){return u("year")},d=function(){return f()&&u("month")},h=function(){return d()&&u("day")},p=function(){return h()&&u("hour")},m=function(){return p()&&u("minute")},S=function(){return m()&&u("second")},_=function(){return S()&&u("millisecond")};switch(t){case"year":return f();case"month":return d();case"day":return h();case"hour":return p();case"minute":return m();case"second":return S();case"millisecond":return _()}}function HW(t,e){return t/=oo,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function GW(t){var e=30*oo;return t/=e,t>6?6:t>3?3:t>2?2:1}function $W(t){return t/=gg,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function kI(t,e){return t/=e?$T:GT,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function jW(t){return AO(t,!0)}function YW(t,e,n){var r=new Date(t);switch(Sv(e)){case"year":case"month":r[Vk(n)](0);case"day":r[Hk(n)](1);case"hour":r[Gk(n)](0);case"minute":r[$k(n)](0);case"second":r[jk(n)](0),r[Yk(n)](0)}return r.getTime()}function WW(t,e,n,r){var a=1e4,l=Fk,u=0;function f(X,G,ee,J,ie,ce,fe){for(var Ne=new Date(G),ae=G,ge=Ne[J]();ae<ee&&ae<=r[1];)fe.push({value:ae}),ge+=X,Ne[ie](ge),ae=Ne.getTime();fe.push({value:ae,notAdd:!0})}function d(X,G,ee){var J=[],ie=!G.length;if(!VW(Sv(X),r[0],r[1],n)){ie&&(G=[{value:YW(new Date(r[0]),X,n)},{value:r[1]}]);for(var ce=0;ce<G.length-1;ce++){var fe=G[ce].value,Ne=G[ce+1].value;if(fe!==Ne){var ae=void 0,ge=void 0,pe=void 0,Le=!1;switch(X){case"year":ae=Math.max(1,Math.round(e/oo/365)),ge=YT(n),pe=q$(n);break;case"half-year":case"quarter":case"month":ae=GW(e),ge=Cv(n),pe=Vk(n);break;case"week":case"half-week":case"day":ae=HW(e),ge=D_(n),pe=Hk(n),Le=!0;break;case"half-day":case"quarter-day":case"hour":ae=$W(e),ge=yg(n),pe=Gk(n);break;case"minute":ae=kI(e,!0),ge=M_(n),pe=$k(n);break;case"second":ae=kI(e,!1),ge=R_(n),pe=jk(n);break;case"millisecond":ae=jW(e),ge=A_(n),pe=Yk(n);break}f(ae,fe,Ne,ge,pe,Le,J),X==="year"&&ee.length>1&&ce===0&&ee.unshift({value:ee[0].value-ae})}}for(var ce=0;ce<J.length;ce++)ee.push(J[ce]);return J}}for(var h=[],p=[],m=0,S=0,_=0;_<l.length&&u++<a;++_){var x=Sv(l[_]);if(Y$(l[_])){d(l[_],h[h.length-1]||[],p);var E=l[_+1]?Sv(l[_+1]):null;if(x!==E){if(p.length){S=m,p.sort(function(X,G){return X.value-G.value});for(var b=[],D=0;D<p.length;++D){var A=p[D].value;(D===0||p[D-1].value!==A)&&(b.push(p[D]),A>=r[0]&&A<=r[1]&&m++)}var O=(r[1]-r[0])/e;if(m>O*1.5&&S>O/1.5||(h.push(b),m>O||t===l[_]))break}p=[]}}}process.env.NODE_ENV!=="production"&&u>=a&&Fr("Exceed safe limit.");for(var P=Er(ot(h,function(X){return Er(X,function(G){return G.value>=r[0]&&G.value<=r[1]&&!G.notAdd})}),function(X){return X.length>0}),I=[],F=P.length-1,_=0;_<P.length;++_)for(var U=P[_],H=0;H<U.length;++H)I.push({value:U[H].value,level:F-_});I.sort(function(X,G){return X.value-G.value});for(var j=[],_=0;_<I.length;++_)(_===0||I[_].value!==I[_-1].value)&&j.push(I[_]);return j}Ru.registerClass(OI);const XW=OI;var NI=Ru.prototype,Hg=Vg.prototype,qW=vr,QW=Math.floor,ZW=Math.ceil,u1=Math.pow,Uo=Math.log,Zb=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new Vg,n._interval=0,n}return e.prototype.getTicks=function(n){var r=this._originalScale,a=this._extent,l=r.getExtent(),u=Hg.getTicks.call(this,n);return ot(u,function(f){var d=f.value,h=vr(u1(this.base,d));return h=d===a[0]&&this._fixMin?s1(h,l[0]):h,h=d===a[1]&&this._fixMax?s1(h,l[1]):h,{value:h}},this)},e.prototype.setExtent=function(n,r){var a=Uo(this.base);n=Uo(Math.max(0,n))/a,r=Uo(Math.max(0,r))/a,Hg.setExtent.call(this,n,r)},e.prototype.getExtent=function(){var n=this.base,r=NI.getExtent.call(this);r[0]=u1(n,r[0]),r[1]=u1(n,r[1]);var a=this._originalScale,l=a.getExtent();return this._fixMin&&(r[0]=s1(r[0],l[0])),this._fixMax&&(r[1]=s1(r[1],l[1])),r},e.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var r=this.base;n[0]=Uo(n[0])/Uo(r),n[1]=Uo(n[1])/Uo(r),NI.unionExtent.call(this,n)},e.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},e.prototype.calcNiceTicks=function(n){n=n||10;var r=this._extent,a=r[1]-r[0];if(!(a===1/0||a<=0)){var l=I6(a),u=n/a*l;for(u<=.5&&(l*=10);!isNaN(l)&&Math.abs(l)<1&&Math.abs(l)>0;)l*=10;var f=[vr(ZW(r[0]/l)*l),vr(QW(r[1]/l)*l)];this._interval=l,this._niceExtent=f}},e.prototype.calcNiceExtent=function(n){Hg.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},e.prototype.parse=function(n){return n},e.prototype.contain=function(n){return n=Uo(n)/Uo(this.base),i1(n,this._extent)},e.prototype.normalize=function(n){return n=Uo(n)/Uo(this.base),a1(n,this._extent)},e.prototype.scale=function(n){return n=o1(n,this._extent),u1(this.base,n)},e.type="log",e}(Ru),PI=Zb.prototype;PI.getMinorTicks=Hg.getMinorTicks,PI.getLabel=Hg.getLabel;function s1(t,e){return qW(t,Cu(e))}Ru.registerClass(Zb);const KW=Zb;var JW=function(){function t(e,n,r){this._prepareParams(e,n,r)}return t.prototype._prepareParams=function(e,n,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var a=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var l=this._modelMinRaw=n.get("min",!0);_t(l)?this._modelMinNum=f1(e,l({min:r[0],max:r[1]})):l!=="dataMin"&&(this._modelMinNum=f1(e,l));var u=this._modelMaxRaw=n.get("max",!0);if(_t(u)?this._modelMaxNum=f1(e,u({min:r[0],max:r[1]})):u!=="dataMax"&&(this._modelMaxNum=f1(e,u)),a)this._axisDataLen=n.getCategories().length;else{var f=n.get("boundaryGap"),d=Be(f)?f:[f||0,f||0];typeof d[0]=="boolean"||typeof d[1]=="boolean"?(process.env.NODE_ENV!=="production"&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[Jf(d[0],1),Jf(d[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,n=this._dataMin,r=this._dataMax,a=this._axisDataLen,l=this._boundaryGapInner,u=e?null:r-n||Math.abs(n),f=this._modelMinRaw==="dataMin"?n:this._modelMinNum,d=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,h=f!=null,p=d!=null;f==null&&(f=e?a?0:NaN:n-l[0]*u),d==null&&(d=e?a?a-1:NaN:r+l[1]*u),(f==null||!isFinite(f))&&(f=NaN),(d==null||!isFinite(d))&&(d=NaN);var m=Fp(f)||Fp(d)||e&&!a;this._needCrossZero&&(f>0&&d>0&&!h&&(f=0),f<0&&d<0&&!p&&(d=0));var S=this._determinedMin,_=this._determinedMax;return S!=null&&(f=S,h=!0),_!=null&&(d=_,p=!0),{min:f,max:d,minFixed:h,maxFixed:p,isBlank:m}},t.prototype.modifyDataMinMax=function(e,n){process.env.NODE_ENV!=="production"&&bt(!this.frozen),this[t7[e]]=n},t.prototype.setDeterminedMinMax=function(e,n){var r=e7[e];process.env.NODE_ENV!=="production"&&bt(!this.frozen&&this[r]==null),this[r]=n},t.prototype.freeze=function(){this.frozen=!0},t}(),e7={min:"_determinedMin",max:"_determinedMax"},t7={min:"_dataMin",max:"_dataMax"};function n7(t,e,n){var r=t.rawExtentInfo;return r||(r=new JW(t,e,n),t.rawExtentInfo=r,r)}function f1(t,e){return e==null?null:Fp(e)?NaN:t.parse(e)}function II(t,e){var n=t.type,r=n7(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var a=r.min,l=r.max,u=e.ecModel;if(u&&n==="time"){var f=MI("bar",u),d=!1;if(W(f,function(m){d=d||m.getBaseAxis()===e.axis}),d){var h=RI(f),p=r7(a,l,e,h);a=p.min,l=p.max}}return{extent:[a,l],fixMin:r.minFixed,fixMax:r.maxFixed}}function r7(t,e,n,r){var a=n.axis.getExtent(),l=a[1]-a[0],u=IW(r,n.axis);if(u===void 0)return{min:t,max:e};var f=1/0;W(u,function(_){f=Math.min(_.offset,f)});var d=-1/0;W(u,function(_){d=Math.max(_.offset+_.width,d)}),f=Math.abs(f),d=Math.abs(d);var h=f+d,p=e-t,m=1-(f+d)/l,S=p/m-p;return e+=S*(d/h),t-=S*(f/h),{min:t,max:e}}function zI(t,e){var n=e,r=II(t,n),a=r.extent,l=n.get("splitNumber");t instanceof KW&&(t.base=n.get("logBase"));var u=t.type,f=n.get("interval"),d=u==="interval"||u==="time";t.setExtent(a[0],a[1]),t.calcNiceExtent({splitNumber:l,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:d?n.get("minInterval"):null,maxInterval:d?n.get("maxInterval"):null}),f!=null&&t.setInterval&&t.setInterval(f)}function i7(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new bI({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new XW({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Ru.getClass(e)||Vg)}}function a7(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function Gg(t){var e=t.getLabelModel().get("formatter"),n=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?function(r){return function(a,l){return t.scale.getFormattedLabel(a,l,r)}}(e):et(e)?function(r){return function(a){var l=t.scale.getLabel(a),u=r.replace("{value}",l??"");return u}}(e):_t(e)?function(r){return function(a,l){return n!=null&&(l=a.value-n),r(Kb(t,a),l,a.level!=null?{level:a.level}:null)}}(e):function(r){return t.scale.getLabel(r)}}function Kb(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function o7(t){var e=t.model,n=t.scale;if(!(!e.get(["axisLabel","show"])||n.isBlank())){var r,a,l=n.getExtent();n instanceof bI?a=n.count():(r=n.getTicks(),a=r.length);var u=t.getLabelModel(),f=Gg(t),d,h=1;a>40&&(h=Math.ceil(a/40));for(var p=0;p<a;p+=h){var m=r?r[p]:{value:l[0]+p},S=f(m,p),_=u.getTextRect(S),x=l7(_,u.get("rotate")||0);d?d.union(x):d=x}return d}}function l7(t,e){var n=e*Math.PI/180,r=t.width,a=t.height,l=r*Math.abs(Math.cos(n))+Math.abs(a*Math.sin(n)),u=r*Math.abs(Math.sin(n))+Math.abs(a*Math.cos(n)),f=new Wt(t.x,t.y,l,u);return f}function Jb(t){var e=t.get("interval");return e??"auto"}function FI(t){return t.type==="category"&&Jb(t.getLabelModel())===0}function u7(t,e){var n={};return W(t.mapDimensionsAll(e),function(r){n[CW(t,r)]=!0}),kn(n)}var s7=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}(),BI=[],f7={registerPreprocessor:lI,registerProcessor:uI,registerPostInit:YY,registerPostUpdate:WY,registerUpdateLifecycle:Bb,registerAction:Lv,registerCoordinateSystem:XY,registerLayout:qY,registerVisual:Tc,registerTransform:ZY,registerLoading:fI,registerMap:QY,registerImpl:EY,PRIORITY:BY,ComponentModel:En,ComponentView:Mu,SeriesModel:Dv,ChartView:Mv,registerComponentModel:function(t){En.registerClass(t)},registerComponentView:function(t){Mu.registerClass(t)},registerSeriesModel:function(t){Dv.registerClass(t)},registerChartView:function(t){Mv.registerClass(t)},registerSubTypeDefaulter:function(t,e){En.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){L6(t,e)}};function $g(t){if(Be(t)){W(t,function(e){$g(e)});return}dn(BI,t)>=0||(BI.push(t),_t(t)&&(t={install:t}),t.install(f7))}var jg=jn();function c7(t){return t.type==="category"?v7(t):p7(t)}function d7(t,e){return t.type==="category"?h7(t,e):{ticks:ot(t.scale.getTicks(),function(n){return n.value})}}function v7(t){var e=t.getLabelModel(),n=UI(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function UI(t,e){var n=VI(t,"labels"),r=Jb(e),a=HI(n,r);if(a)return a;var l,u;return _t(r)?l=jI(t,r):(u=r==="auto"?g7(t):r,l=$I(t,u)),GI(n,r,{labels:l,labelCategoryInterval:u})}function h7(t,e){var n=VI(t,"ticks"),r=Jb(e),a=HI(n,r);if(a)return a;var l,u;if((!e.get("show")||t.scale.isBlank())&&(l=[]),_t(r))l=jI(t,r,!0);else if(r==="auto"){var f=UI(t,t.getLabelModel());u=f.labelCategoryInterval,l=ot(f.labels,function(d){return d.tickValue})}else u=r,l=$I(t,u,!0);return GI(n,r,{ticks:l,tickCategoryInterval:u})}function p7(t){var e=t.scale.getTicks(),n=Gg(t);return{labels:ot(e,function(r,a){return{level:r.level,formattedLabel:n(r,a),rawLabel:t.scale.getLabel(r),tickValue:r.value}})}}function VI(t,e){return jg(t)[e]||(jg(t)[e]=[])}function HI(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function GI(t,e,n){return t.push({key:e,value:n}),n}function g7(t){var e=jg(t).autoInterval;return e??(jg(t).autoInterval=t.calculateCategoryInterval())}function m7(t){var e=y7(t),n=Gg(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,a=t.scale,l=a.getExtent(),u=a.count();if(l[1]-l[0]<1)return 0;var f=1;u>40&&(f=Math.max(1,Math.floor(u/40)));for(var d=l[0],h=t.dataToCoord(d+1)-t.dataToCoord(d),p=Math.abs(h*Math.cos(r)),m=Math.abs(h*Math.sin(r)),S=0,_=0;d<=l[1];d+=f){var x=0,E=0,b=Bx(n({value:d}),e.font,"center","top");x=b.width*1.3,E=b.height*1.3,S=Math.max(S,x,7),_=Math.max(_,E,7)}var D=S/p,A=_/m;isNaN(D)&&(D=1/0),isNaN(A)&&(A=1/0);var O=Math.max(0,Math.floor(Math.min(D,A))),P=jg(t.model),I=t.getExtent(),F=P.lastAutoInterval,U=P.lastTickCount;return F!=null&&U!=null&&Math.abs(F-O)<=1&&Math.abs(U-u)<=1&&F>O&&P.axisExtent0===I[0]&&P.axisExtent1===I[1]?O=F:(P.lastTickCount=u,P.lastAutoInterval=O,P.axisExtent0=I[0],P.axisExtent1=I[1]),O}function y7(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function $I(t,e,n){var r=Gg(t),a=t.scale,l=a.getExtent(),u=t.getLabelModel(),f=[],d=Math.max((e||0)+1,1),h=l[0],p=a.count();h!==0&&d>1&&p/d>2&&(h=Math.round(Math.ceil(h/d)*d));var m=FI(t),S=u.get("showMinLabel")||m,_=u.get("showMaxLabel")||m;S&&h!==l[0]&&E(l[0]);for(var x=h;x<=l[1];x+=d)E(x);_&&x-d!==l[1]&&E(l[1]);function E(b){var D={value:b};f.push(n?b:{formattedLabel:r(D),rawLabel:a.getLabel(D),tickValue:b})}return f}function jI(t,e,n){var r=t.scale,a=Gg(t),l=[];return W(r.getTicks(),function(u){var f=r.getLabel(u),d=u.value;e(u.value,f)&&l.push(n?d:{formattedLabel:a(u),rawLabel:f,tickValue:d})}),l}var YI=[0,1],_7=function(){function t(e,n,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=n,this._extent=r||[0,0]}return t.prototype.contain=function(e){var n=this._extent,r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return e>=r&&e<=a},t.prototype.containData=function(e){return this.scale.contain(e)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return k6(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,n){var r=this._extent;r[0]=e,r[1]=n},t.prototype.dataToCoord=function(e,n){var r=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(r=r.slice(),WI(r,a.count())),MO(e,YI,r,n)},t.prototype.coordToData=function(e,n){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),WI(r,a.count()));var l=MO(e,r,YI,n);return this.scale.scale(l)},t.prototype.pointToData=function(e,n){},t.prototype.getTicksCoords=function(e){e=e||{};var n=e.tickModel||this.getTickModel(),r=d7(this,n),a=r.ticks,l=ot(a,function(f){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(f):f),tickValue:f}},this),u=n.get("alignWithLabel");return S7(this,l,u,e.clamp),l},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),n=e.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),a=ot(r,function(l){return ot(l,function(u){return{coord:this.dataToCoord(u),tickValue:u}},this)},this);return a},t.prototype.getViewLabels=function(){return c7(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/r},t.prototype.calculateCategoryInterval=function(){return m7(this)},t}();function WI(t,e){var n=t[1]-t[0],r=e,a=n/r/2;t[0]+=a,t[1]-=a}function S7(t,e,n,r){var a=e.length;if(!t.onBand||n||!a)return;var l=t.getExtent(),u,f;if(a===1)e[0].coord=l[0],u=e[1]={coord:l[0]};else{var d=e[a-1].tickValue-e[0].tickValue,h=(e[a-1].coord-e[0].coord)/d;W(e,function(_){_.coord-=h/2});var p=t.scale.getExtent();f=1+p[1]-e[a-1].tickValue,u={coord:e[a-1].coord+h*f},e.push(u)}var m=l[0]>l[1];S(e[0].coord,l[0])&&(r?e[0].coord=l[0]:e.shift()),r&&S(l[0],e[0].coord)&&e.unshift({coord:l[0]}),S(l[1],u.coord)&&(r?u.coord=l[1]:e.pop()),r&&S(u.coord,l[1])&&e.push({coord:l[1]});function S(_,x){return _=vr(_),x=vr(x),m?_>x:_<x}}const C7=_7;var Yg=Math.PI*2,Ec=As.CMD,w7=["top","right","bottom","left"];function x7(t,e,n,r,a){var l=n.width,u=n.height;switch(t){case"top":r.set(n.x+l/2,n.y-e),a.set(0,-1);break;case"bottom":r.set(n.x+l/2,n.y+u+e),a.set(0,1);break;case"left":r.set(n.x-e,n.y+u/2),a.set(-1,0);break;case"right":r.set(n.x+l+e,n.y+u/2),a.set(1,0);break}}function T7(t,e,n,r,a,l,u,f,d){u-=t,f-=e;var h=Math.sqrt(u*u+f*f);u/=h,f/=h;var p=u*n+t,m=f*n+e;if(Math.abs(r-a)%Yg<1e-4)return d[0]=p,d[1]=m,h-n;if(l){var S=r;r=Ls(a),a=Ls(S)}else r=Ls(r),a=Ls(a);r>a&&(a+=Yg);var _=Math.atan2(f,u);if(_<0&&(_+=Yg),_>=r&&_<=a||_+Yg>=r&&_+Yg<=a)return d[0]=p,d[1]=m,h-n;var x=n*Math.cos(r)+t,E=n*Math.sin(r)+e,b=n*Math.cos(a)+t,D=n*Math.sin(a)+e,A=(x-u)*(x-u)+(E-f)*(E-f),O=(b-u)*(b-u)+(D-f)*(D-f);return A<O?(d[0]=x,d[1]=E,Math.sqrt(A)):(d[0]=b,d[1]=D,Math.sqrt(O))}function eE(t,e,n,r,a,l,u,f){var d=a-t,h=l-e,p=n-t,m=r-e,S=Math.sqrt(p*p+m*m);p/=S,m/=S;var _=d*p+h*m,x=_/S;f&&(x=Math.min(Math.max(x,0),1)),x*=S;var E=u[0]=t+x*p,b=u[1]=e+x*m;return Math.sqrt((E-a)*(E-a)+(b-l)*(b-l))}function XI(t,e,n,r,a,l,u){n<0&&(t=t+n,n=-n),r<0&&(e=e+r,r=-r);var f=t+n,d=e+r,h=u[0]=Math.min(Math.max(a,t),f),p=u[1]=Math.min(Math.max(l,e),d);return Math.sqrt((h-a)*(h-a)+(p-l)*(p-l))}var Vo=[];function b7(t,e,n){var r=XI(e.x,e.y,e.width,e.height,t.x,t.y,Vo);return n.set(Vo[0],Vo[1]),r}function E7(t,e,n){for(var r=0,a=0,l=0,u=0,f,d,h=1/0,p=e.data,m=t.x,S=t.y,_=0;_<p.length;){var x=p[_++];_===1&&(r=p[_],a=p[_+1],l=r,u=a);var E=h;switch(x){case Ec.M:l=p[_++],u=p[_++],r=l,a=u;break;case Ec.L:E=eE(r,a,p[_],p[_+1],m,S,Vo,!0),r=p[_++],a=p[_++];break;case Ec.C:E=QL(r,a,p[_++],p[_++],p[_++],p[_++],p[_],p[_+1],m,S,Vo),r=p[_++],a=p[_++];break;case Ec.Q:E=JL(r,a,p[_++],p[_++],p[_],p[_+1],m,S,Vo),r=p[_++],a=p[_++];break;case Ec.A:var b=p[_++],D=p[_++],A=p[_++],O=p[_++],P=p[_++],I=p[_++];_+=1;var F=!!(1-p[_++]);f=Math.cos(P)*A+b,d=Math.sin(P)*O+D,_<=1&&(l=f,u=d);var U=(m-b)*O/A+b;E=T7(b,D,O,P,P+I,F,U,S,Vo),r=Math.cos(P+I)*A+b,a=Math.sin(P+I)*O+D;break;case Ec.R:l=r=p[_++],u=a=p[_++];var H=p[_++],j=p[_++];E=XI(l,u,H,j,m,S,Vo);break;case Ec.Z:E=eE(r,a,l,u,m,S,Vo,!0),r=l,a=u;break}E<h&&(h=E,n.set(Vo[0],Vo[1]))}return h}var Dc=new ht,Ur=new ht,Pa=new ht,Nv=new ht,Wg=new ht;function qI(t,e){if(t){var n=t.getTextGuideLine(),r=t.getTextContent();if(r&&n){var a=t.textGuideLineConfig||{},l=[[0,0],[0,0],[0,0]],u=a.candidates||w7,f=r.getBoundingRect().clone();f.applyTransform(r.getComputedTransform());var d=1/0,h=a.anchor,p=t.getComputedTransform(),m=p&&k0([],p),S=e.get("length2")||0;h&&Pa.copy(h);for(var _=0;_<u.length;_++){var x=u[_];x7(x,0,f,Dc,Nv),ht.scaleAndAdd(Ur,Dc,Nv,S),Ur.transform(m);var E=t.getBoundingRect(),b=h?h.distance(Ur):t instanceof Gt?E7(Ur,t.path,Pa):b7(Ur,E,Pa);b<d&&(d=b,Ur.transform(p),Pa.transform(p),Pa.toArray(l[0]),Ur.toArray(l[1]),Dc.toArray(l[2]))}D7(l,e.get("minTurnAngle")),n.setShape({points:l})}}}var QI=[],Mc=new ht;function D7(t,e){if(e<=180&&e>0){e=e/180*Math.PI,Dc.fromArray(t[0]),Ur.fromArray(t[1]),Pa.fromArray(t[2]),ht.sub(Nv,Dc,Ur),ht.sub(Wg,Pa,Ur);var n=Nv.len(),r=Wg.len();if(!(n<.001||r<.001)){Nv.scale(1/n),Wg.scale(1/r);var a=Nv.dot(Wg),l=Math.cos(e);if(l<a){var u=eE(Ur.x,Ur.y,Pa.x,Pa.y,Dc.x,Dc.y,QI,!1);Mc.fromArray(QI),Mc.scaleAndAdd(Wg,u/Math.tan(Math.PI-e));var f=Pa.x!==Ur.x?(Mc.x-Ur.x)/(Pa.x-Ur.x):(Mc.y-Ur.y)/(Pa.y-Ur.y);if(isNaN(f))return;f<0?ht.copy(Mc,Ur):f>1&&ht.copy(Mc,Pa),Mc.toArray(t[1])}}}}function ZI(t,e,n,r){var a=n==="normal",l=a?t:t.ensureState(n);l.ignore=e;var u=r.get("smooth");u&&u===!0&&(u=.3),l.shape=l.shape||{},u>0&&(l.shape.smooth=u);var f=r.getModel("lineStyle").getLineStyle();a?t.useStyle(f):l.style=f}function M7(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var a=rx(r[0],r[1]),l=rx(r[1],r[2]);if(!a||!l){t.lineTo(r[1][0],r[1][1]),t.lineTo(r[2][0],r[2][1]);return}var u=Math.min(a,l)*n,f=O0([],r[1],r[0],u/a),d=O0([],r[1],r[2],u/l),h=O0([],f,d,.5);t.bezierCurveTo(f[0],f[1],f[0],f[1],h[0],h[1]),t.bezierCurveTo(d[0],d[1],d[0],d[1],r[2][0],r[2][1])}else for(var p=1;p<r.length;p++)t.lineTo(r[p][0],r[p][1])}function R7(t,e,n){var r=t.getTextGuideLine(),a=t.getTextContent();if(!a){r&&t.removeTextGuideLine();return}for(var l=e.normal,u=l.get("show"),f=a.ignore,d=0;d<u_.length;d++){var h=u_[d],p=e[h],m=h==="normal";if(p){var S=p.get("show"),_=m?f:kt(a.states[h]&&a.states[h].ignore,f);if(_||!kt(S,u)){var x=m?r:r&&r.states[h];x&&(x.ignore=!0);continue}r||(r=new RT,t.setTextGuideLine(r),!m&&(f||!u)&&ZI(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),ZI(r,!1,h,p)}}if(r){Vt(r.style,n),r.style.fill=null;var E=l.get("showAbove"),b=t.textGuideLineConfig=t.textGuideLineConfig||{};b.showAbove=E||!1,r.buildPath=M7}}function A7(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<Ml.length;r++){var a=Ml[r];n[a]=t.getModel([a,e])}return n}function KI(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var a=r.label,l=a.getComputedTransform(),u=a.getBoundingRect(),f=!l||l[1]<1e-5&&l[2]<1e-5,d=a.style.margin||0,h=u.clone();h.applyTransform(l),h.x-=d/2,h.y-=d/2,h.width+=d,h.height+=d;var p=f?new m_(u,l):null;e.push({label:a,labelLine:r.labelLine,rect:h,localRect:u,obb:p,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:f,transform:l})}}return e}function JI(t,e,n,r,a,l){var u=t.length;if(u<2)return;t.sort(function(H,j){return H.rect[e]-j.rect[e]});for(var f=0,d,h=!1,p=0,m=0;m<u;m++){var S=t[m],_=S.rect;d=_[e]-f,d<0&&(_[e]-=d,S.label[e]-=d,h=!0);var x=Math.max(-d,0);p+=x,f=_[e]+_[n]}p>0&&l&&I(-p/u,0,u);var E=t[0],b=t[u-1],D,A;O(),D<0&&F(-D,.8),A<0&&F(A,.8),O(),P(D,A,1),P(A,D,-1),O(),D<0&&U(-D),A<0&&U(A);function O(){D=E.rect[e]-r,A=a-b.rect[e]-b.rect[n]}function P(H,j,X){if(H<0){var G=Math.min(j,-H);if(G>0){I(G*X,0,u);var ee=G+H;ee<0&&F(-ee*X,1)}else F(-H*X,1)}}function I(H,j,X){H!==0&&(h=!0);for(var G=j;G<X;G++){var ee=t[G],J=ee.rect;J[e]+=H,ee.label[e]+=H}}function F(H,j){for(var X=[],G=0,ee=1;ee<u;ee++){var J=t[ee-1].rect,ie=Math.max(t[ee].rect[e]-J[e]-J[n],0);X.push(ie),G+=ie}if(G){var ce=Math.min(Math.abs(H)/G,j);if(H>0)for(var ee=0;ee<u-1;ee++){var fe=X[ee]*ce;I(fe,0,ee+1)}else for(var ee=u-1;ee>0;ee--){var fe=X[ee-1]*ce;I(-fe,ee,u)}}}function U(H){var j=H<0?-1:1;H=Math.abs(H);for(var X=Math.ceil(H/(u-1)),G=0;G<u-1;G++)if(j>0?I(X,0,G+1):I(-X,u-G-1,u),H-=X,H<=0)return}return h}function L7(t,e,n,r){return JI(t,"x","width",e,n,r)}function O7(t,e,n,r){return JI(t,"y","height",e,n,r)}function ez(t){var e=[];t.sort(function(E,b){return b.priority-E.priority});var n=new Wt(0,0,0,0);function r(E){if(!E.ignore){var b=E.ensureState("emphasis");b.ignore==null&&(b.ignore=!1)}E.ignore=!0}for(var a=0;a<t.length;a++){var l=t[a],u=l.axisAligned,f=l.localRect,d=l.transform,h=l.label,p=l.labelLine;n.copy(l.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var m=l.obb,S=!1,_=0;_<e.length;_++){var x=e[_];if(n.intersect(x.rect)){if(u&&x.axisAligned){S=!0;break}if(x.obb||(x.obb=new m_(x.localRect,x.transform)),m||(m=new m_(f,d)),m.intersect(x.obb)){S=!0;break}}}S?(r(h),p&&r(p)):(h.attr("ignore",l.defaultAttr.ignore),p&&p.attr("ignore",l.defaultAttr.labelGuideIgnore),e.push(l))}}function k7(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function N7(t,e){var n=t.label,r=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:k7(r&&r.shape.points)}}var tz=["align","verticalAlign","width","height","fontSize"],Ia=new Kp,tE=jn(),P7=jn();function c1(t,e,n){for(var r=0;r<n.length;r++){var a=n[r];e[a]!=null&&(t[a]=e[a])}}var d1=["x","y","rotation"],I7=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(e,n,r,a,l){var u=a.style,f=a.__hostTarget,d=f.textConfig||{},h=a.getComputedTransform(),p=a.getBoundingRect().plain();Wt.applyTransform(p,p,h),h?Ia.setLocalTransform(h):(Ia.x=Ia.y=Ia.rotation=Ia.originX=Ia.originY=0,Ia.scaleX=Ia.scaleY=1);var m=a.__hostTarget,S;if(m){S=m.getBoundingRect().plain();var _=m.getComputedTransform();Wt.applyTransform(S,S,_)}var x=S&&m.getTextGuideLine();this._labelList.push({label:a,labelLine:x,seriesModel:r,dataIndex:e,dataType:n,layoutOption:l,computedLayoutOption:null,rect:p,hostRect:S,priority:S?S.width*S.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:x&&x.ignore,x:Ia.x,y:Ia.y,scaleX:Ia.scaleX,scaleY:Ia.scaleY,rotation:Ia.rotation,style:{x:u.x,y:u.y,align:u.align,verticalAlign:u.verticalAlign,width:u.width,height:u.height,fontSize:u.fontSize},cursor:a.cursor,attachedPos:d.position,attachedRot:d.rotation}})},t.prototype.addLabelsOfSeries=function(e){var n=this;this._chartViewList.push(e);var r=e.__model,a=r.get("labelLayout");(_t(a)||kn(a).length)&&e.group.traverse(function(l){if(l.ignore)return!0;var u=l.getTextContent(),f=yn(l);u&&!u.disableLabelLayout&&n._addLabel(f.dataIndex,f.dataType,r,u,a)})},t.prototype.updateLayoutConfig=function(e){var n=e.getWidth(),r=e.getHeight();function a(O,P){return function(){qI(O,P)}}for(var l=0;l<this._labelList.length;l++){var u=this._labelList[l],f=u.label,d=f.__hostTarget,h=u.defaultAttr,p=void 0;_t(u.layoutOption)?p=u.layoutOption(N7(u,d)):p=u.layoutOption,p=p||{},u.computedLayoutOption=p;var m=Math.PI/180;d&&d.setTextConfig({local:!1,position:p.x!=null||p.y!=null?null:h.attachedPos,rotation:p.rotate!=null?p.rotate*m:h.attachedRot,offset:[p.dx||0,p.dy||0]});var S=!1;if(p.x!=null?(f.x=Zr(p.x,n),f.setStyle("x",0),S=!0):(f.x=h.x,f.setStyle("x",h.style.x)),p.y!=null?(f.y=Zr(p.y,r),f.setStyle("y",0),S=!0):(f.y=h.y,f.setStyle("y",h.style.y)),p.labelLinePoints){var _=d.getTextGuideLine();_&&(_.setShape({points:p.labelLinePoints}),S=!1)}var x=tE(f);x.needsUpdateLabelLine=S,f.rotation=p.rotate!=null?p.rotate*m:h.rotation,f.scaleX=h.scaleX,f.scaleY=h.scaleY;for(var E=0;E<tz.length;E++){var b=tz[E];f.setStyle(b,p[b]!=null?p[b]:h.style[b])}if(p.draggable){if(f.draggable=!0,f.cursor="move",d){var D=u.seriesModel;if(u.dataIndex!=null){var A=u.seriesModel.getData(u.dataType);D=A.getItemModel(u.dataIndex)}f.on("drag",a(d,D.getModel("labelLine")))}}else f.off("drag"),f.cursor=h.cursor}},t.prototype.layout=function(e){var n=e.getWidth(),r=e.getHeight(),a=KI(this._labelList),l=Er(a,function(d){return d.layoutOption.moveOverlap==="shiftX"}),u=Er(a,function(d){return d.layoutOption.moveOverlap==="shiftY"});L7(l,0,n),O7(u,0,r);var f=Er(a,function(d){return d.layoutOption.hideOverlap});ez(f)},t.prototype.processLabelsOverall=function(){var e=this;W(this._chartViewList,function(n){var r=n.__model,a=n.ignoreLabelLineUpdate,l=r.isAnimationEnabled();n.group.traverse(function(u){if(u.ignore&&!u.forceLabelAnimation)return!0;var f=!a,d=u.getTextContent();!f&&d&&(f=tE(d).needsUpdateLabelLine),f&&e._updateLabelLine(u,r),l&&e._animateLabels(u,r)})})},t.prototype._updateLabelLine=function(e,n){var r=e.getTextContent(),a=yn(e),l=a.dataIndex;if(r&&l!=null){var u=n.getData(a.dataType),f=u.getItemModel(l),d={},h=u.getItemVisual(l,"style"),p=u.getVisual("drawType");d.stroke=h[p];var m=f.getModel("labelLine");R7(e,A7(f),d),qI(e,m)}},t.prototype._animateLabels=function(e,n){var r=e.getTextContent(),a=e.getTextGuideLine();if(r&&(e.forceLabelAnimation||!r.ignore&&!r.invisible&&!e.disableLabelAnimation&&!_v(e))){var l=tE(r),u=l.oldLayout,f=yn(e),d=f.dataIndex,h={x:r.x,y:r.y,rotation:r.rotation},p=n.getData(f.dataType);if(u){r.attr(u);var S=e.prevStates;S&&(dn(S,"select")>=0&&r.attr(l.oldLayoutSelect),dn(S,"emphasis")>=0&&r.attr(l.oldLayoutEmphasis)),Po(r,h,n,d)}else if(r.attr(h),!hg(r).valueAnimation){var m=kt(r.style.opacity,1);r.style.opacity=0,Io(r,{style:{opacity:m}},n,d)}if(l.oldLayout=h,r.states.select){var _=l.oldLayoutSelect={};c1(_,h,d1),c1(_,r.states.select,d1)}if(r.states.emphasis){var x=l.oldLayoutEmphasis={};c1(x,h,d1),c1(x,r.states.emphasis,d1)}R$(r,d,p,n,n)}if(a&&!a.ignore&&!a.invisible){var l=P7(a),u=l.oldLayout,E={points:a.shape.points};u?(a.attr({shape:u}),Po(a,{shape:E},n)):(a.setShape(E),a.style.strokePercent=0,Io(a,{style:{strokePercent:1}},n)),l.oldLayout=E}},t}();const z7=I7;var nE=jn();function F7(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,n,r){var a=nE(n).labelManager;a||(a=nE(n).labelManager=new z7),a.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,n,r){var a=nE(n).labelManager;r.updatedSeries.forEach(function(l){a.addLabelsOfSeries(n.getViewOfSeriesModel(l))}),a.updateLayoutConfig(n),a.layout(n),a.processLabelsOverall()})}function B7(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var a=bv(t,e,n[0]);return a!=null?a+"":null}else if(r){for(var l=[],u=0;u<n.length;u++)l.push(bv(t,e,n[u]));return l.join(" ")}}function U7(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!Be(e))return e+"";for(var r=[],a=0;a<n.length;a++){var l=t.getDimensionIndex(n[a]);l>=0&&r.push(e[l])}return r.join(" ")}function V7(t,e,n,r,a){var l=t.getArea(),u=l.x,f=l.y,d=l.width,h=l.height,p=n.get(["lineStyle","width"])||2;u-=p/2,f-=p/2,d+=p,h+=p,u=Math.floor(u),d=Math.round(d);var m=new Kr({shape:{x:u,y:f,width:d,height:h}});if(e){var S=t.getBaseAxis(),_=S.isHorizontal(),x=S.inverse;_?(x&&(m.shape.x+=d),m.shape.width=0):(x||(m.shape.y+=h),m.shape.height=0);var E=_t(a)?function(b){a(b,m)}:null;Io(m,{shape:{width:d,height:h,x:u,y:f}},n,null,r,E)}return m}function H7(t,e,n){var r=t.getArea(),a=vr(r.r0,1),l=vr(r.r,1),u=new dc({shape:{cx:vr(t.cx,1),cy:vr(t.cy,1),r0:a,r:l,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(e){var f=t.getBaseAxis().dim==="angle";f?u.shape.endAngle=r.startAngle:u.shape.r=a,Io(u,{shape:{endAngle:r.endAngle,r:l}},n)}return u}function G7(t,e,n,r,a){if(t){if(t.type==="polar")return H7(t,e,n);if(t.type==="cartesian2d")return V7(t,e,n,r,a)}else return null;return null}function nz(t,e){return t.type===e}var $7={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],n++);return n===0?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]}},j7=function(t){return Math.round(t.length/2)};function Y7(t){return{seriesType:t,reset:function(e,n,r){var a=e.getData(),l=e.get("sampling"),u=e.coordinateSystem,f=a.count();if(f>10&&u.type==="cartesian2d"&&l){var d=u.getBaseAxis(),h=u.getOtherAxis(d),p=d.getExtent(),m=r.getDevicePixelRatio(),S=Math.abs(p[1]-p[0])*(m||1),_=Math.round(f/S);if(isFinite(_)&&_>1){l==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(h.dim),1/_));var x=void 0;et(l)?x=$7[l]:_t(l)&&(x=l),x&&e.setData(a.downSample(a.mapDimension(h.dim),1/_,x,j7))}}}}}var rz=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){return SI(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(n,r,a){var l=this.coordinateSystem;if(l&&l.clampData){var u=l.dataToPoint(l.clampData(n));if(a)W(l.getAxes(),function(m,S){if(m.type==="category"){var _=m.getTicksCoords(),x=l.clampData(n)[S];r&&(r[S]==="x1"||r[S]==="y1")&&(x+=1),x>_.length-1&&(x=_.length-1),x<0&&(x=0),_[x]&&(u[S]=m.toGlobalCoord(_[x].coord))}});else{var f=this.getData(),d=f.getLayout("offset"),h=f.getLayout("size"),p=l.getBaseAxis().isHorizontal()?0:1;u[p]+=d+h/2}return u}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Dv);Dv.registerClass(rz);const iz=rz;var W7=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(){return SI(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},e.prototype.brushSelector=function(n,r,a){return a.rect(r.getItemLayout(n))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=U$(iz.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(iz);const X7=W7;var q7=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),Q7=function(t){Pt(e,t);function e(n){var r=t.call(this,n)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new q7},e.prototype.buildPath=function(n,r){var a=r.cx,l=r.cy,u=Math.max(r.r0||0,0),f=Math.max(r.r,0),d=(f-u)*.5,h=u+d,p=r.startAngle,m=r.endAngle,S=r.clockwise,_=Math.PI*2,x=S?m-p<_:p-m<_;x||(p=m-(S?_:-_));var E=Math.cos(p),b=Math.sin(p),D=Math.cos(m),A=Math.sin(m);x?(n.moveTo(E*u+a,b*u+l),n.arc(E*h+a,b*h+l,d,-Math.PI+p,p,!S)):n.moveTo(E*f+a,b*f+l),n.arc(a,l,f,p,m,!S),n.arc(D*h+a,A*h+l,d,m-Math.PI*2,m-Math.PI,!S),u!==0&&n.arc(a,l,u,m,p,S)},e}(Gt);const az=Q7;function Z7(t,e){e=e||{};var n=e.isRoundCap;return function(r,a,l){var u=a.position;if(!u||u instanceof Array)return K0(r,a,l);var f=t(u),d=a.distance!=null?a.distance:5,h=this.shape,p=h.cx,m=h.cy,S=h.r,_=h.r0,x=(S+_)/2,E=h.startAngle,b=h.endAngle,D=(E+b)/2,A=n?Math.abs(S-_)/2:0,O=Math.cos,P=Math.sin,I=p+S*O(E),F=m+S*P(E),U="left",H="top";switch(f){case"startArc":I=p+(_-d)*O(D),F=m+(_-d)*P(D),U="center",H="top";break;case"insideStartArc":I=p+(_+d)*O(D),F=m+(_+d)*P(D),U="center",H="bottom";break;case"startAngle":I=p+x*O(E)+v1(E,d+A,!1),F=m+x*P(E)+h1(E,d+A,!1),U="right",H="middle";break;case"insideStartAngle":I=p+x*O(E)+v1(E,-d+A,!1),F=m+x*P(E)+h1(E,-d+A,!1),U="left",H="middle";break;case"middle":I=p+x*O(D),F=m+x*P(D),U="center",H="middle";break;case"endArc":I=p+(S+d)*O(D),F=m+(S+d)*P(D),U="center",H="bottom";break;case"insideEndArc":I=p+(S-d)*O(D),F=m+(S-d)*P(D),U="center",H="top";break;case"endAngle":I=p+x*O(b)+v1(b,d+A,!0),F=m+x*P(b)+h1(b,d+A,!0),U="left",H="middle";break;case"insideEndAngle":I=p+x*O(b)+v1(b,-d+A,!0),F=m+x*P(b)+h1(b,-d+A,!0),U="right",H="middle";break;default:return K0(r,a,l)}return r=r||{},r.x=I,r.y=F,r.align=U,r.verticalAlign=H,r}}function K7(t,e,n,r){if(Nn(r)){t.setTextConfig({rotation:r});return}else if(Be(e)){t.setTextConfig({rotation:0});return}var a=t.shape,l=a.clockwise?a.startAngle:a.endAngle,u=a.clockwise?a.endAngle:a.startAngle,f=(l+u)/2,d,h=n(e);switch(h){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":d=f;break;case"startAngle":case"insideStartAngle":d=l;break;case"endAngle":case"insideEndAngle":d=u;break;default:t.setTextConfig({rotation:0});return}var p=Math.PI*1.5-d;h==="middle"&&p>Math.PI/2&&p<Math.PI*1.5&&(p-=Math.PI),t.setTextConfig({rotation:p})}function v1(t,e,n){return e*Math.sin(t)*(n?-1:1)}function h1(t,e,n){return e*Math.cos(t)*(n?1:-1)}var rE=Math.max,iE=Math.min;function J7(t,e){var n=t.getArea&&t.getArea();if(nz(t,"cartesian2d")){var r=t.getBaseAxis();if(r.type!=="category"||!r.onBand){var a=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=a,n.width+=a*2):(n.y-=a,n.height+=a*2)}}return n}var eX=function(t){Pt(e,t);function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return e.prototype.render=function(n,r,a,l){this._model=n,this._removeOnRenderedListener(a),this._updateDrawMode(n);var u=n.get("coordinateSystem");u==="cartesian2d"||u==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(n,r,a):this._renderNormal(n,r,a,l)):process.env.NODE_ENV!=="production"&&Fr("Only cartesian2d and polar supported for bar.")},e.prototype.incrementalPrepareRender=function(n){this._clear(),this._updateDrawMode(n),this._updateLargeClip(n)},e.prototype.incrementalRender=function(n,r){this._progressiveEls=[],this._incrementalRenderLarge(n,r)},e.prototype.eachRendered=function(n){zT(this._progressiveEls||this.group,n)},e.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(n,r,a,l){var u=this.group,f=n.getData(),d=this._data,h=n.coordinateSystem,p=h.getBaseAxis(),m;h.type==="cartesian2d"?m=p.isHorizontal():h.type==="polar"&&(m=p.dim==="angle");var S=n.isAnimationEnabled()?n:null,_=tX(n,h);_&&this._enableRealtimeSort(_,f,a);var x=n.get("clip",!0)||_,E=J7(h,f);u.removeClipPath();var b=n.get("roundCap",!0),D=n.get("showBackground",!0),A=n.getModel("backgroundStyle"),O=A.get("borderRadius")||0,P=[],I=this._backgroundEls,F=l&&l.isInitSort,U=l&&l.type==="changeAxisOrder";function H(G){var ee=p1[h.type](f,G),J=uX(h,m,ee);return J.useStyle(A.getItemStyle()),h.type==="cartesian2d"&&J.setShape("r",O),P[G]=J,J}f.diff(d).add(function(G){var ee=f.getItemModel(G),J=p1[h.type](f,G,ee);if(D&&H(G),!(!f.hasValue(G)||!fz[h.type](J))){var ie=!1;x&&(ie=oz[h.type](E,J));var ce=lz[h.type](n,f,G,J,m,S,p.model,!1,b);_&&(ce.forceLabelAnimation=!0),dz(ce,f,G,ee,J,n,m,h.type==="polar"),F?ce.attr({shape:J}):_?uz(_,S,ce,J,G,m,!1,!1):Io(ce,{shape:J},n,G),f.setItemGraphicEl(G,ce),u.add(ce),ce.ignore=ie}}).update(function(G,ee){var J=f.getItemModel(G),ie=p1[h.type](f,G,J);if(D){var ce=void 0;I.length===0?ce=H(ee):(ce=I[ee],ce.useStyle(A.getItemStyle()),h.type==="cartesian2d"&&ce.setShape("r",O),P[G]=ce);var fe=p1[h.type](f,G),Ne=gz(m,fe,h);Po(ce,{shape:Ne},S,G)}var ae=d.getItemGraphicEl(ee);if(!f.hasValue(G)||!fz[h.type](ie)){u.remove(ae);return}var ge=!1;if(x&&(ge=oz[h.type](E,ie),ge&&u.remove(ae)),ae?o$(ae):ae=lz[h.type](n,f,G,ie,m,S,p.model,!!ae,b),_&&(ae.forceLabelAnimation=!0),U){var pe=ae.getTextContent();if(pe){var Le=hg(pe);Le.prevValue!=null&&(Le.prevValue=Le.value)}}else dz(ae,f,G,J,ie,n,m,h.type==="polar");F?ae.attr({shape:ie}):_?uz(_,S,ae,ie,G,m,!0,U):Po(ae,{shape:ie},n,G,null),f.setItemGraphicEl(G,ae),ae.ignore=ge,u.add(ae)}).remove(function(G){var ee=d.getItemGraphicEl(G);ee&&OT(ee,n,G)}).execute();var j=this._backgroundGroup||(this._backgroundGroup=new Cl);j.removeAll();for(var X=0;X<P.length;++X)j.add(P[X]);u.add(j),this._backgroundEls=P,this._data=f},e.prototype._renderLarge=function(n,r,a){this._clear(),hz(n,this.group),this._updateLargeClip(n)},e.prototype._incrementalRenderLarge=function(n,r){this._removeBackground(),hz(r,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(n){var r=n.get("clip",!0)&&G7(n.coordinateSystem,!1,n),a=this.group;r?a.setClipPath(r):a.removeClipPath()},e.prototype._enableRealtimeSort=function(n,r,a){var l=this;if(r.count()){var u=n.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,n,a),this._isFirstFrame=!1;else{var f=function(d){var h=r.getItemGraphicEl(d),p=h&&h.shape;return p&&Math.abs(u.isHorizontal()?p.height:p.width)||0};this._onRendered=function(){l._updateSortWithinSameData(r,f,u,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(n,r,a){var l=[];return n.each(n.mapDimension(r.dim),function(u,f){var d=a(f);d=d??NaN,l.push({dataIndex:f,mappedValue:d,ordinalNumber:u})}),l.sort(function(u,f){return f.mappedValue-u.mappedValue}),{ordinalNumbers:ot(l,function(u){return u.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(n,r,a){for(var l=a.scale,u=n.mapDimension(a.dim),f=Number.MAX_VALUE,d=0,h=l.getOrdinalMeta().categories.length;d<h;++d){var p=n.rawIndexOf(u,l.getRawOrdinalNumber(d)),m=p<0?Number.MIN_VALUE:r(n.indexOfRawIndex(p));if(m>f)return!0;f=m}return!1},e.prototype._isOrderDifferentInView=function(n,r){for(var a=r.scale,l=a.getExtent(),u=Math.max(0,l[0]),f=Math.min(l[1],a.getOrdinalMeta().categories.length-1);u<=f;++u)if(n.ordinalNumbers[u]!==a.getRawOrdinalNumber(u))return!0},e.prototype._updateSortWithinSameData=function(n,r,a,l){if(this._isOrderChangedWithinSameData(n,r,a)){var u=this._dataSort(n,a,r);this._isOrderDifferentInView(u,a)&&(this._removeOnRenderedListener(l),l.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:u}))}},e.prototype._dispatchInitSort=function(n,r,a){var l=r.baseAxis,u=this._dataSort(n,l,function(f){return n.get(n.mapDimension(r.otherAxis.dim),f)});a.dispatchAction({type:"changeAxisOrder",componentType:l.dim+"Axis",isInitSort:!0,axisId:l.index,sortInfo:u})},e.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(n){var r=this.group,a=this._data;n&&n.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(l){OT(l,n,yn(l).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Mv),oz={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var a=t.x+t.width,l=t.y+t.height,u=rE(e.x,t.x),f=iE(e.x+e.width,a),d=rE(e.y,t.y),h=iE(e.y+e.height,l),p=f<u,m=h<d;return e.x=p&&u>a?f:u,e.y=m&&d>l?h:d,e.width=p?0:f-u,e.height=m?0:h-d,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),p||m},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var a=iE(e.r,t.r),l=rE(e.r0,t.r0);e.r=a,e.r0=l;var u=a-l<0;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}return u}},lz={cartesian2d:function(t,e,n,r,a,l,u,f,d){var h=new Kr({shape:Re({},r),z2:1});if(h.__dataIndex=n,h.name="item",l){var p=h.shape,m=a?"height":"width";p[m]=0}return h},polar:function(t,e,n,r,a,l,u,f,d){var h=!a&&d?az:dc,p=new h({shape:r,z2:1});p.name="item";var m=cz(a);if(p.calculateTextPosition=Z7(m,{isRoundCap:h===az}),l){var S=p.shape,_=a?"r":"endAngle",x={};S[_]=a?0:r.startAngle,x[_]=r[_],(f?Po:Io)(p,{shape:x},l)}return p}};function tX(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();if(process.env.NODE_ENV!=="production"&&n&&(r.type!=="category"&&Fr("`realtimeSort` will not work because this bar series is not based on a category axis."),e.type!=="cartesian2d"&&Fr("`realtimeSort` will not work because this bar series is not on cartesian2d.")),n&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function uz(t,e,n,r,a,l,u,f){var d,h;l?(h={x:r.x,width:r.width},d={y:r.y,height:r.height}):(h={y:r.y,height:r.height},d={x:r.x,width:r.width}),f||(u?Po:Io)(n,{shape:d},e,a,null);var p=e?t.baseAxis.model:null;(u?Po:Io)(n,{shape:h},p,a)}function sz(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var nX=["x","y","width","height"],rX=["cx","cy","r","startAngle","endAngle"],fz={cartesian2d:function(t){return!sz(t,nX)},polar:function(t){return!sz(t,rX)}},p1={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),a=n?aX(n,r):0,l=r.width>0?1:-1,u=r.height>0?1:-1;return{x:r.x+l*a/2,y:r.y+u*a/2,width:r.width-l*a,height:r.height-u*a}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function iX(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function cz(t){return function(e){var n=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}}(t)}function dz(t,e,n,r,a,l,u,f){var d=e.getItemVisual(n,"style");f||t.setShape("r",r.get(["itemStyle","borderRadius"])||0),t.useStyle(d);var h=r.getShallow("cursor");h&&t.attr("cursor",h);var p=f?u?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":u?a.height>=0?"bottom":"top":a.width>=0?"right":"left",m=T$(r);x$(t,m,{labelFetcher:l,labelDataIndex:n,defaultText:B7(l.getData(),n),inheritColor:d.fill,defaultOpacity:d.opacity,defaultOutsidePosition:p});var S=t.getTextContent();if(f&&S){var _=r.get(["label","position"]);t.textConfig.inside=_==="middle"?!0:null,K7(t,_==="outside"?p:_,cz(u),r.get(["label","rotate"]))}M$(S,m,l.getRawValue(n),function(E){return U7(e,E)});var x=r.getModel(["emphasis"]);SG(t,x.get("focus"),x.get("blurScope"),x.get("disabled")),xG(t,r),iX(a)&&(t.style.fill="none",t.style.stroke="none",W(t.states,function(E){E.style&&(E.style.fill=E.style.stroke="none")}))}function aX(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=t.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),l=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,a,l)}var oX=function(){function t(){}return t}(),vz=function(t){Pt(e,t);function e(n){var r=t.call(this,n)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new oX},e.prototype.buildPath=function(n,r){for(var a=r.points,l=this.baseDimIdx,u=1-this.baseDimIdx,f=[],d=[],h=this.barWidth,p=0;p<a.length;p+=3)d[l]=h,d[u]=a[p+2],f[l]=a[p+l],f[u]=a[p+u],n.rect(f[0],f[1],d[0],d[1])},e}(Gt);function hz(t,e,n,r){var a=t.getData(),l=a.getLayout("valueAxisHorizontal")?1:0,u=a.getLayout("largeDataIndices"),f=a.getLayout("size"),d=t.getModel("backgroundStyle"),h=a.getLayout("largeBackgroundPoints");if(h){var p=new vz({shape:{points:h},incremental:!!r,silent:!0,z2:0});p.baseDimIdx=l,p.largeDataIndices=u,p.barWidth=f,p.useStyle(d.getItemStyle()),e.add(p),n&&n.push(p)}var m=new vz({shape:{points:a.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});m.baseDimIdx=l,m.largeDataIndices=u,m.barWidth=f,e.add(m),m.useStyle(a.getVisual("style")),yn(m).seriesIndex=t.seriesIndex,t.get("silent")||(m.on("mousedown",pz),m.on("mousemove",pz)),n&&n.push(m)}var pz=_b(function(t){var e=this,n=lX(e,t.offsetX,t.offsetY);yn(e).dataIndex=n>=0?n:null},30,!1);function lX(t,e,n){for(var r=t.baseDimIdx,a=1-r,l=t.shape.points,u=t.largeDataIndices,f=[],d=[],h=t.barWidth,p=0,m=l.length/3;p<m;p++){var S=p*3;if(d[r]=h,d[a]=l[S+2],f[r]=l[S+r],f[a]=l[S+a],d[a]<0&&(f[a]+=d[a],d[a]=-d[a]),e>=f[0]&&e<=f[0]+d[0]&&n>=f[1]&&n<=f[1]+d[1])return u[p]}return-1}function gz(t,e,n){if(nz(n,"cartesian2d")){var r=e,a=n.getArea();return{x:t?r.x:a.x,y:t?a.y:r.y,width:t?r.width:a.width,height:t?a.height:r.height}}else{var a=n.getArea(),l=e;return{cx:a.cx,cy:a.cy,r0:t?a.r0:l.r0,r:t?a.r:l.r,startAngle:t?l.startAngle:0,endAngle:t?l.endAngle:Math.PI*2}}}function uX(t,e,n){var r=t.type==="polar"?dc:Kr;return new r({shape:gz(e,n,t),silent:!0,z2:0})}const sX=eX;function fX(t){t.registerChartView(sX),t.registerSeriesModel(X7),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Aa(zW,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,FW("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Y7("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,n){var r=e.componentType||"series";n.eachComponent({mainType:r,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var cX=function(t){Pt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(En);const dX=cX;var aE=function(t){Pt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Oo).models[0]},e.type="cartesian2dAxis",e}(En);ml(aE,s7);var mz={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:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},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},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},vX=cn({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},mz),oE=cn({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},mz),hX=cn({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},oE),pX=Vt({logBase:10},oE);const gX={category:vX,value:oE,time:hX,log:pX};var mX={value:1,category:1,time:1,log:1};function yz(t,e,n,r){W(mX,function(a,l){var u=cn(cn({},gX[l],!0),r,!0),f=function(d){Pt(h,d);function h(){var p=d!==null&&d.apply(this,arguments)||this;return p.type=e+"Axis."+l,p}return h.prototype.mergeDefaultAndTheme=function(p,m){var S=Sg(this),_=S?ZT(p):{},x=m.getTheme();cn(p,x.get(l+"Axis")),cn(p,this.getDefaultOption()),p.type=_z(p),S&&Cg(p,_,S)},h.prototype.optionUpdated=function(){var p=this.option;p.type==="category"&&(this.__ordinalMeta=jb.createByAxisModel(this))},h.prototype.getCategories=function(p){var m=this.option;if(m.type==="category")return p?m.data:this.__ordinalMeta.categories},h.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},h.type=e+"Axis."+l,h.defaultOption=u,h}(n);t.registerComponentModel(f)}),t.registerSubTypeDefaulter(e+"Axis",_z)}function _z(t){return t.type||(t.data?"category":"value")}var yX=function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return ot(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Er(this.getAxes(),function(n){return n.scale.type===e})},t.prototype.addAxis=function(e){var n=e.dim;this._axes[n]=e,this._dimList.push(n)},t}();const _X=yX;var lE=["x","y"];function Sz(t){return t.type==="interval"||t.type==="time"}var SX=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=lE,n}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!Sz(n)||!Sz(r))){var a=n.getExtent(),l=r.getExtent(),u=this.dataToPoint([a[0],l[0]]),f=this.dataToPoint([a[1],l[1]]),d=a[1]-a[0],h=l[1]-l[0];if(!(!d||!h)){var p=(f[0]-u[0])/d,m=(f[1]-u[1])/h,S=u[0]-a[0]*p,_=u[1]-l[0]*m,x=this._transform=[p,0,0,m,S,_];this._invTransform=k0([],x)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(n){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&a.contain(a.toLocalCoord(n[1]))},e.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},e.prototype.containZone=function(n,r){var a=this.dataToPoint(n),l=this.dataToPoint(r),u=this.getArea(),f=new Wt(a[0],a[1],l[0]-a[0],l[1]-a[1]);return u.intersect(f)},e.prototype.dataToPoint=function(n,r,a){a=a||[];var l=n[0],u=n[1];if(this._transform&&l!=null&&isFinite(l)&&u!=null&&isFinite(u))return eo(a,n,this._transform);var f=this.getAxis("x"),d=this.getAxis("y");return a[0]=f.toGlobalCoord(f.dataToCoord(l,r)),a[1]=d.toGlobalCoord(d.dataToCoord(u,r)),a},e.prototype.clampData=function(n,r){var a=this.getAxis("x").scale,l=this.getAxis("y").scale,u=a.getExtent(),f=l.getExtent(),d=a.parse(n[0]),h=l.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(u[0],u[1]),d),Math.max(u[0],u[1])),r[1]=Math.min(Math.max(Math.min(f[0],f[1]),h),Math.max(f[0],f[1])),r},e.prototype.pointToData=function(n,r){var a=[];if(this._invTransform)return eo(a,n,this._invTransform);var l=this.getAxis("x"),u=this.getAxis("y");return a[0]=l.coordToData(l.toLocalCoord(n[0]),r),a[1]=u.coordToData(u.toLocalCoord(n[1]),r),a},e.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},e.prototype.getArea=function(){var n=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1]),l=Math.min(r[0],r[1]),u=Math.max(n[0],n[1])-a,f=Math.max(r[0],r[1])-l;return new Wt(a,l,u,f)},e}(_X),CX=function(t){Pt(e,t);function e(n,r,a,l,u){var f=t.call(this,n,r,a)||this;return f.index=0,f.type=l||"value",f.position=u||"bottom",f}return e.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},e.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},e}(C7);const wX=CX;function uE(t,e,n){n=n||{};var r=t.coordinateSystem,a=e.axis,l={},u=a.getAxesOnZeroOf()[0],f=a.position,d=u?"onZero":f,h=a.dim,p=r.getRect(),m=[p.x,p.x+p.width,p.y,p.y+p.height],S={left:0,right:1,top:0,bottom:1,onZero:2},_=e.get("offset")||0,x=h==="x"?[m[2]-_,m[3]+_]:[m[0]-_,m[1]+_];if(u){var E=u.toGlobalCoord(u.dataToCoord(0));x[S.onZero]=Math.max(Math.min(E,x[1]),x[0])}l.position=[h==="y"?x[S[d]]:m[0],h==="x"?x[S[d]]:m[3]],l.rotation=Math.PI/2*(h==="x"?0:1);var b={top:-1,bottom:1,left:-1,right:1};l.labelDirection=l.tickDirection=l.nameDirection=b[f],l.labelOffset=u?x[S[f]]-x[S.onZero]:0,e.get(["axisTick","inside"])&&(l.tickDirection=-l.tickDirection),Yf(n.labelInside,e.get(["axisLabel","inside"]))&&(l.labelDirection=-l.labelDirection);var D=e.get(["axisLabel","rotate"]);return l.labelRotate=d==="top"?-D:D,l.z2=1,l}function Cz(t){return t.get("coordinateSystem")==="cartesian2d"}function wz(t){var e={xAxisModel:null,yAxisModel:null};return W(e,function(n,r){var a=r.replace(/Model$/,""),l=t.getReferringComponents(a,Oo).models[0];if(process.env.NODE_ENV!=="production"&&!l)throw new Error(a+' "'+qd(t.get(a+"Index"),t.get(a+"Id"),0)+'" not found');e[r]=l}),e}var sE=Math.log;function xX(t,e,n){var r=Vg.prototype,a=r.getTicks.call(n),l=r.getTicks.call(n,!0),u=a.length-1,f=r.getInterval.call(n),d=II(t,e),h=d.extent,p=d.fixMin,m=d.fixMax;if(t.type==="log"){var S=sE(t.base);h=[sE(h[0])/S,sE(h[1])/S]}t.setExtent(h[0],h[1]),t.calcNiceExtent({splitNumber:u,fixMin:p,fixMax:m});var _=r.getExtent.call(t);p&&(h[0]=_[0]),m&&(h[1]=_[1]);var x=r.getInterval.call(t),E=h[0],b=h[1];if(p&&m)x=(b-E)/u;else if(p)for(b=h[0]+x*u;b<h[1]&&isFinite(b)&&isFinite(h[1]);)x=Wb(x),b=h[0]+x*u;else if(m)for(E=h[1]-x*u;E>h[0]&&isFinite(E)&&isFinite(h[0]);)x=Wb(x),E=h[1]-x*u;else{var D=t.getTicks().length-1;D>u&&(x=Wb(x));var A=x*u;b=Math.ceil(h[1]/x)*x,E=vr(b-A),E<0&&h[0]>=0?(E=0,b=vr(A)):b>0&&h[1]<=0&&(b=0,E=-vr(A))}var O=(a[0].value-l[0].value)/f,P=(a[u].value-l[u].value)/f;if(r.setExtent.call(t,E+x*O,b+x*P),r.setInterval.call(t,x),(O||P)&&r.setNiceExtent.call(t,E+x,b-x),process.env.NODE_ENV!=="production"){var I=r.getTicks.call(t);I[1]&&(!RW(x)||Yx(I[1].value)>Yx(x))&&Fr("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+" and alignTicks: true")}}var TX=function(){function t(e,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=lE,this._initCartesian(e,n,r),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,n){var r=this._axesMap;this._updateScale(e,this.model);function a(u){var f,d=kn(u),h=d.length;if(h){for(var p=[],m=h-1;m>=0;m--){var S=+d[m],_=u[S],x=_.model,E=_.scale;Yb(E)&&x.get("alignTicks")&&x.get("interval")==null?p.push(_):(zI(E,x),Yb(E)&&(f=_))}p.length&&(f||(f=p.pop(),zI(f.scale,f.model)),W(p,function(b){xX(b.scale,b.model,f.scale)}))}}a(r.x),a(r.y);var l={};W(r.x,function(u){xz(r,"y",u,l)}),W(r.y,function(u){xz(r,"x",u,l)}),this.resize(this.model,n)},t.prototype.resize=function(e,n,r){var a=e.getBoxLayoutParams(),l=!r&&e.get("containLabel"),u=QT(a,{width:n.getWidth(),height:n.getHeight()});this._rect=u;var f=this._axesList;d(),l&&(W(f,function(h){if(!h.model.get(["axisLabel","inside"])){var p=o7(h);if(p){var m=h.isHorizontal()?"height":"width",S=h.model.get(["axisLabel","margin"]);u[m]-=p[m]+S,h.position==="top"?u.y+=p.height+S:h.position==="left"&&(u.x+=p.width+S)}}}),d()),W(this._coordsList,function(h){h.calcAffineTransform()});function d(){W(f,function(h){var p=h.isHorizontal(),m=p?[0,u.width]:[0,u.height],S=h.inverse?1:0;h.setExtent(m[S],m[1-S]),bX(h,p?u.x:u.y)})}},t.prototype.getAxis=function(e,n){var r=this._axesMap[e];if(r!=null)return r[n||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,n){if(e!=null&&n!=null){var r="x"+e+"y"+n;return this._coordsMap[r]}it(e)&&(n=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,l=this._coordsList;a<l.length;a++)if(l[a].getAxis("x").index===e||l[a].getAxis("y").index===n)return l[a]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,n,r){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.dataToPoint(r):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(r)):null},t.prototype.convertFromPixel=function(e,n,r){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.pointToData(r):a.axis?a.axis.coordToData(a.axis.toLocalCoord(r)):null},t.prototype._findConvertTarget=function(e){var n=e.seriesModel,r=e.xAxisModel||n&&n.getReferringComponents("xAxis",Oo).models[0],a=e.yAxisModel||n&&n.getReferringComponents("yAxis",Oo).models[0],l=e.gridModel,u=this._coordsList,f,d;if(n)f=n.coordinateSystem,dn(u,f)<0&&(f=null);else if(r&&a)f=this.getCartesian(r.componentIndex,a.componentIndex);else if(r)d=this.getAxis("x",r.componentIndex);else if(a)d=this.getAxis("y",a.componentIndex);else if(l){var h=l.coordinateSystem;h===this&&(f=this._coordsList[0])}return{cartesian:f,axis:d}},t.prototype.containPoint=function(e){var n=this._coordsList[0];if(n)return n.containPoint(e)},t.prototype._initCartesian=function(e,n,r){var a=this,l=this,u={left:!1,right:!1,top:!1,bottom:!1},f={x:{},y:{}},d={x:0,y:0};if(n.eachComponent("xAxis",h("x"),this),n.eachComponent("yAxis",h("y"),this),!d.x||!d.y){this._axesMap={},this._axesList=[];return}this._axesMap=f,W(f.x,function(p,m){W(f.y,function(S,_){var x="x"+m+"y"+_,E=new SX(x);E.master=a,E.model=e,a._coordsMap[x]=E,a._coordsList.push(E),E.addAxis(p),E.addAxis(S)})});function h(p){return function(m,S){if(fE(m,e)){var _=m.get("position");p==="x"?_!=="top"&&_!=="bottom"&&(_=u.bottom?"top":"bottom"):_!=="left"&&_!=="right"&&(_=u.left?"right":"left"),u[_]=!0;var x=new wX(p,i7(m),[0,0],m.get("type"),_),E=x.type==="category";x.onBand=E&&m.get("boundaryGap"),x.inverse=m.get("inverse"),m.axis=x,x.model=m,x.grid=l,x.index=S,l._axesList.push(x),f[p][S]=x,d[p]++}}}},t.prototype._updateScale=function(e,n){W(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var l=a.model.get("categorySortInfo");a.scale.setSortInfo(l)}}),e.eachSeries(function(a){if(Cz(a)){var l=wz(a),u=l.xAxisModel,f=l.yAxisModel;if(!fE(u,n)||!fE(f,n))return;var d=this.getCartesian(u.componentIndex,f.componentIndex),h=a.getData(),p=d.getAxis("x"),m=d.getAxis("y");r(h,p),r(h,m)}},this);function r(a,l){W(u7(a,l.dim),function(u){l.scale.unionExtentFromData(a,u)})}},t.prototype.getTooltipAxes=function(e){var n=[],r=[];return W(this.getCartesians(),function(a){var l=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),u=a.getOtherAxis(l);dn(n,l)<0&&n.push(l),dn(r,u)<0&&r.push(u)}),{baseAxes:n,otherAxes:r}},t.create=function(e,n){var r=[];return e.eachComponent("grid",function(a,l){var u=new t(a,e,n);u.name="grid_"+l,u.resize(a,n,!0),a.coordinateSystem=u,r.push(u)}),e.eachSeries(function(a){if(Cz(a)){var l=wz(a),u=l.xAxisModel,f=l.yAxisModel,d=u.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!d)throw new Error('Grid "'+qd(u.get("gridIndex"),u.get("gridId"),0)+'" not found');if(u.getCoordSysModel()!==f.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var h=d.coordinateSystem;a.coordinateSystem=h.getCartesian(u.componentIndex,f.componentIndex)}}),r},t.dimensions=lE,t}();function fE(t,e){return t.getCoordSysModel()===e}function xz(t,e,n,r){n.getAxesOnZeroOf=function(){return l?[l]:[]};var a=t[e],l,u=n.model,f=u.get(["axisLine","onZero"]),d=u.get(["axisLine","onZeroAxisIndex"]);if(!f)return;if(d!=null)Tz(a[d])&&(l=a[d]);else for(var h in a)if(a.hasOwnProperty(h)&&Tz(a[h])&&!r[p(a[h])]){l=a[h];break}l&&(r[p(l)]=!0);function p(m){return m.dim+"_"+m.index}}function Tz(t){return t&&t.type!=="category"&&t.type!=="time"&&a7(t)}function bX(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord=t.dim==="x"?function(a){return a+e}:function(a){return r-a+e},t.toLocalCoord=t.dim==="x"?function(a){return a-e}:function(a){return r-a+e}}const EX=TX;var Is=Math.PI,Rc=function(){function t(e,n){this.group=new Cl,this.opt=n,this.axisModel=e,Vt(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new Cl({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return t.prototype.hasBuilder=function(e){return!!bz[e]},t.prototype.add=function(e){bz[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,n,r){var a=RO(n-e),l,u;return J0(a)?(u=r>0?"top":"bottom",l="center"):J0(a-Is)?(u=r>0?"bottom":"top",l="center"):(u="middle",a>0&&a<Is?l=r>0?"right":"left":l=r>0?"left":"right"),{rotation:a,textAlign:l,textVerticalAlign:u}},t.makeAxisEventDataBase=function(e){var n={componentType:e.mainType,componentIndex:e.componentIndex};return n[e.mainType+"Index"]=e.componentIndex,n},t.isLabelSilent=function(e){var n=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||n&&n.show)},t}(),bz={axisLine:function(t,e,n,r){var a=e.get(["axisLine","show"]);if(a==="auto"&&t.handleAutoShown&&(a=t.handleAutoShown("axisLine")),!!a){var l=e.axis.getExtent(),u=r.transform,f=[l[0],0],d=[l[1],0],h=f[0]>d[0];u&&(eo(f,f,u),eo(d,d,u));var p=Re({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),m=new vc({shape:{x1:f[0],y1:f[1],x2:d[0],y2:d[1]},style:p,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});vg(m.shape,m.style.lineWidth),m.anid="line",n.add(m);var S=e.get(["axisLine","symbol"]);if(S!=null){var _=e.get(["axisLine","symbolSize"]);et(S)&&(S=[S,S]),(et(_)||Nn(_))&&(_=[_,_]);var x=uY(e.get(["axisLine","symbolOffset"])||0,_),E=_[0],b=_[1];W([{rotate:t.rotation+Math.PI/2,offset:x[0],r:0},{rotate:t.rotation-Math.PI/2,offset:x[1],r:Math.sqrt((f[0]-d[0])*(f[0]-d[0])+(f[1]-d[1])*(f[1]-d[1]))}],function(D,A){if(S[A]!=="none"&&S[A]!=null){var O=SP(S[A],-E/2,-b/2,E,b,p.stroke,!0),P=D.r+D.offset,I=h?d:f;O.attr({rotation:D.rotate,x:I[0]+P*Math.cos(t.rotation),y:I[1]-P*Math.sin(t.rotation),silent:!0,z2:11}),n.add(O)}})}}},axisTickLabel:function(t,e,n,r){var a=RX(n,r,e,t),l=LX(n,r,e,t);if(MX(e,l,a),AX(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var u=KI(ot(l,function(f){return{label:f,priority:f.z2,defaultAttr:{ignore:f.ignore}}}));ez(u)}},axisName:function(t,e,n,r){var a=Yf(t.axisName,e.get("name"));if(a){var l=e.get("nameLocation"),u=t.nameDirection,f=e.getModel("nameTextStyle"),d=e.get("nameGap")||0,h=e.axis.getExtent(),p=h[0]>h[1]?-1:1,m=[l==="start"?h[0]-p*d:l==="end"?h[1]+p*d:(h[0]+h[1])/2,Dz(l)?t.labelOffset+u*d:0],S,_=e.get("nameRotate");_!=null&&(_=_*Is/180);var x;Dz(l)?S=Rc.innerTextLayout(t.rotation,_??t.rotation,u):(S=DX(t.rotation,l,_||0,h),x=t.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(S.rotation)),!isFinite(x)&&(x=null)));var E=f.getFont(),b=e.get("nameTruncate",!0)||{},D=b.ellipsis,A=Yf(t.nameTruncateMaxWidth,b.maxWidth,x),O=new ko({x:m[0],y:m[1],rotation:S.rotation,silent:Rc.isLabelSilent(e),style:gc(f,{text:a,font:E,overflow:"truncate",width:A,ellipsis:D,fill:f.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:f.get("align")||S.textAlign,verticalAlign:f.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(Tk({el:O,componentModel:e,itemName:a}),O.__fullText=a,O.anid="name",e.get("triggerEvent")){var P=Rc.makeAxisEventDataBase(e);P.targetType="axisName",P.name=a,yn(O).eventData=P}r.add(O),O.updateTransform(),n.add(O),O.decomposeTransform()}}};function DX(t,e,n,r){var a=RO(n-t),l,u,f=r[0]>r[1],d=e==="start"&&!f||e!=="start"&&f;return J0(a-Is/2)?(u=d?"bottom":"top",l="center"):J0(a-Is*1.5)?(u=d?"top":"bottom",l="center"):(u="middle",a<Is*1.5&&a>Is/2?l=d?"left":"right":l=d?"right":"left"),{rotation:a,textAlign:l,textVerticalAlign:u}}function MX(t,e,n){if(!FI(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var l=e[0],u=e[1],f=e[e.length-1],d=e[e.length-2],h=n[0],p=n[1],m=n[n.length-1],S=n[n.length-2];r===!1?(co(l),co(h)):Ez(l,u)&&(r?(co(u),co(p)):(co(l),co(h))),a===!1?(co(f),co(m)):Ez(d,f)&&(a?(co(d),co(S)):(co(f),co(m)))}}function co(t){t&&(t.ignore=!0)}function Ez(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!n||!r)){var a=cx([]);return vx(a,a,-t.rotation),n.applyTransform(tv([],a,t.getLocalTransform())),r.applyTransform(tv([],a,e.getLocalTransform())),n.intersect(r)}}function Dz(t){return t==="middle"||t==="center"}function Mz(t,e,n,r,a){for(var l=[],u=[],f=[],d=0;d<t.length;d++){var h=t[d].coord;u[0]=h,u[1]=0,f[0]=h,f[1]=n,e&&(eo(u,u,e),eo(f,f,e));var p=new vc({shape:{x1:u[0],y1:u[1],x2:f[0],y2:f[1]},style:r,z2:2,autoBatch:!0,silent:!0});vg(p.shape,p.style.lineWidth),p.anid=a+"_"+t[d].tickValue,l.push(p)}return l}function RX(t,e,n,r){var a=n.axis,l=n.getModel("axisTick"),u=l.get("show");if(u==="auto"&&r.handleAutoShown&&(u=r.handleAutoShown("axisTick")),!(!u||a.scale.isBlank())){for(var f=l.getModel("lineStyle"),d=r.tickDirection*l.get("length"),h=a.getTicksCoords(),p=Mz(h,e.transform,d,Vt(f.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),m=0;m<p.length;m++)t.add(p[m]);return p}}function AX(t,e,n,r){var a=n.axis,l=n.getModel("minorTick");if(!(!l.get("show")||a.scale.isBlank())){var u=a.getMinorTicksCoords();if(u.length)for(var f=l.getModel("lineStyle"),d=r*l.get("length"),h=Vt(f.getLineStyle(),Vt(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),p=0;p<u.length;p++)for(var m=Mz(u[p],e.transform,d,h,"minorticks_"+p),S=0;S<m.length;S++)t.add(m[S])}}function LX(t,e,n,r){var a=n.axis,l=Yf(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!l||a.scale.isBlank())){var u=n.getModel("axisLabel"),f=u.get("margin"),d=a.getViewLabels(),h=(Yf(r.labelRotate,u.get("rotate"))||0)*Is/180,p=Rc.innerTextLayout(r.rotation,h,r.labelDirection),m=n.getCategories&&n.getCategories(!0),S=[],_=Rc.isLabelSilent(n),x=n.get("triggerEvent");return W(d,function(E,b){var D=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(E.tickValue):E.tickValue,A=E.formattedLabel,O=E.rawLabel,P=u;if(m&&m[D]){var I=m[D];it(I)&&I.textStyle&&(P=new Oi(I.textStyle,u,n.ecModel))}var F=P.getTextColor()||n.get(["axisLine","lineStyle","color"]),U=a.dataToCoord(D),H=new ko({x:U,y:r.labelOffset+r.labelDirection*f,rotation:p.rotation,silent:_,z2:10+(E.level||0),style:gc(P,{text:A,align:P.getShallow("align",!0)||p.textAlign,verticalAlign:P.getShallow("verticalAlign",!0)||P.getShallow("baseline",!0)||p.textVerticalAlign,fill:_t(F)?F(a.type==="category"?O:a.type==="value"?D+"":D,b):F})});if(H.anid="label_"+D,x){var j=Rc.makeAxisEventDataBase(n);j.targetType="axisLabel",j.value=O,j.tickIndex=b,a.type==="category"&&(j.dataIndex=D),yn(H).eventData=j}e.add(H),H.updateTransform(),S.push(H),t.add(H),H.decomposeTransform()}),S}}const Rz=Rc;function OX(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return kX(n,t,e),n.seriesInvolved&&PX(n,t),n}function kX(t,e,n){var r=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),l=a.get("link",!0)||[],u=[];W(n.getCoordinateSystems(),function(f){if(!f.axisPointerEnabled)return;var d=Xg(f.model),h=t.coordSysAxesInfo[d]={};t.coordSysMap[d]=f;var p=f.model,m=p.getModel("tooltip",r);if(W(f.getAxes(),Aa(E,!1,null)),f.getTooltipAxes&&r&&m.get("show")){var S=m.get("trigger")==="axis",_=m.get(["axisPointer","type"])==="cross",x=f.getTooltipAxes(m.get(["axisPointer","axis"]));(S||_)&&W(x.baseAxes,Aa(E,_?"cross":!0,S)),_&&W(x.otherAxes,Aa(E,"cross",!1))}function E(b,D,A){var O=A.model.getModel("axisPointer",a),P=O.get("show");if(!(!P||P==="auto"&&!b&&!vE(O))){D==null&&(D=O.get("triggerTooltip")),O=b?NX(A,m,a,e,b,D):O;var I=O.get("snap"),F=Xg(A.model),U=D||I||A.type==="category",H=t.axesInfo[F]={key:F,axis:A,coordSys:f,axisPointerModel:O,triggerTooltip:D,involveSeries:U,snap:I,useHandle:vE(O),seriesModels:[],linkGroup:null};h[F]=H,t.seriesInvolved=t.seriesInvolved||U;var j=IX(l,A);if(j!=null){var X=u[j]||(u[j]={axesInfo:{}});X.axesInfo[F]=H,X.mapper=l[j].mapper,H.linkGroup=X}}}})}function NX(t,e,n,r,a,l){var u=e.getModel("axisPointer"),f=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],d={};W(f,function(S){d[S]=Qt(u.get(S))}),d.snap=t.type!=="category"&&!!l,u.get("type")==="cross"&&(d.type="line");var h=d.label||(d.label={});if(h.show==null&&(h.show=!1),a==="cross"){var p=u.get(["label","show"]);if(h.show=p??!0,!l){var m=d.lineStyle=u.get("crossStyle");m&&Vt(h,m.textStyle)}}return t.model.getModel("axisPointer",new Oi(d,n,r))}function PX(t,e){e.eachSeries(function(n){var r=n.coordinateSystem,a=n.get(["tooltip","trigger"],!0),l=n.get(["tooltip","show"],!0);!r||a==="none"||a===!1||a==="item"||l===!1||n.get(["axisPointer","show"],!0)===!1||W(t.coordSysAxesInfo[Xg(r.model)],function(u){var f=u.axis;r.getAxis(f.dim)===f&&(u.seriesModels.push(n),u.seriesDataCount==null&&(u.seriesDataCount=0),u.seriesDataCount+=n.getData().count())})})}function IX(t,e){for(var n=e.model,r=e.dim,a=0;a<t.length;a++){var l=t[a]||{};if(cE(l[r+"AxisId"],n.id)||cE(l[r+"AxisIndex"],n.componentIndex)||cE(l[r+"AxisName"],n.name))return a}}function cE(t,e){return t==="all"||Be(t)&&dn(t,e)>=0||t===e}function zX(t){var e=dE(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,a=n.option,l=n.get("status"),u=n.get("value");u!=null&&(u=r.parse(u));var f=vE(n);l==null&&(a.status=f?"show":"hide");var d=r.getExtent().slice();d[0]>d[1]&&d.reverse(),(u==null||u>d[1])&&(u=d[1]),u<d[0]&&(u=d[0]),a.value=u,f&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function dE(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Xg(t)]}function FX(t){var e=dE(t);return e&&e.axisPointerModel}function vE(t){return!!t.get(["handle","show"])}function Xg(t){return t.type+"||"+t.id}var hE={},BX=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a,l){this.axisPointerClass&&zX(n),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,a,!0)},e.prototype.updateAxisPointer=function(n,r,a,l){this._doUpdateAxisPointerClass(n,a,!1)},e.prototype.remove=function(n,r){var a=this._axisPointer;a&&a.remove(r)},e.prototype.dispose=function(n,r){this._disposeAxisPointer(r),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(n,r,a){var l=e.getAxisPointerClass(this.axisPointerClass);if(l){var u=FX(n);u?(this._axisPointer||(this._axisPointer=new l)).render(n,u,r,a):this._disposeAxisPointer(r)}},e.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},e.registerAxisPointerClass=function(n,r){if(process.env.NODE_ENV!=="production"&&hE[n])throw new Error("axisPointer "+n+" exists");hE[n]=r},e.getAxisPointerClass=function(n){return n&&hE[n]},e.type="axis",e}(Mu);const Az=BX;var pE=jn();function UX(t,e,n,r){var a=n.axis;if(!a.scale.isBlank()){var l=n.getModel("splitArea"),u=l.getModel("areaStyle"),f=u.get("color"),d=r.coordinateSystem.getRect(),h=a.getTicksCoords({tickModel:l,clamp:!0});if(h.length){var p=f.length,m=pE(t).splitAreaColors,S=xt(),_=0;if(m)for(var x=0;x<h.length;x++){var E=m.get(h[x].tickValue);if(E!=null){_=(E+(p-1)*x)%p;break}}var b=a.toGlobalCoord(h[0].coord),D=u.getAreaStyle();f=Be(f)?f:[f];for(var x=1;x<h.length;x++){var A=a.toGlobalCoord(h[x].coord),O=void 0,P=void 0,I=void 0,F=void 0;a.isHorizontal()?(O=b,P=d.y,I=A-O,F=d.height,b=O+I):(O=d.x,P=b,I=d.width,F=A-P,b=P+F);var U=h[x-1].tickValue;U!=null&&S.set(U,_),e.add(new Kr({anid:U!=null?"area_"+U:null,shape:{x:O,y:P,width:I,height:F},style:Vt({fill:f[_]},D),autoBatch:!0,silent:!0})),_=(_+1)%p}pE(t).splitAreaColors=S}}}function VX(t){pE(t).splitAreaColors=null}var HX=["axisLine","axisTickLabel","axisName"],GX=["splitArea","splitLine","minorSplitLine"],Lz=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return e.prototype.render=function(n,r,a,l){this.group.removeAll();var u=this._axisGroup;if(this._axisGroup=new Cl,this.group.add(this._axisGroup),!!n.get("show")){var f=n.getCoordSysModel(),d=uE(f,n),h=new Rz(n,Re({handleAutoShown:function(m){for(var S=f.coordinateSystem.getCartesians(),_=0;_<S.length;_++)if(Yb(S[_].getOtherAxis(n.axis).scale))return!0;return!1}},d));W(HX,h.add,h),this._axisGroup.add(h.getGroup()),W(GX,function(m){n.get([m,"show"])&&$X[m](this,this._axisGroup,n,f)},this);var p=l&&l.type==="changeAxisOrder"&&l.isInitSort;p||Ck(u,this._axisGroup,n),t.prototype.render.call(this,n,r,a,l)}},e.prototype.remove=function(){VX(this)},e.type="cartesianAxis",e}(Az),$X={splitLine:function(t,e,n,r){var a=n.axis;if(!a.scale.isBlank()){var l=n.getModel("splitLine"),u=l.getModel("lineStyle"),f=u.get("color");f=Be(f)?f:[f];for(var d=r.coordinateSystem.getRect(),h=a.isHorizontal(),p=0,m=a.getTicksCoords({tickModel:l}),S=[],_=[],x=u.getLineStyle(),E=0;E<m.length;E++){var b=a.toGlobalCoord(m[E].coord);h?(S[0]=b,S[1]=d.y,_[0]=b,_[1]=d.y+d.height):(S[0]=d.x,S[1]=b,_[0]=d.x+d.width,_[1]=b);var D=p++%f.length,A=m[E].tickValue,O=new vc({anid:A!=null?"line_"+m[E].tickValue:null,autoBatch:!0,shape:{x1:S[0],y1:S[1],x2:_[0],y2:_[1]},style:Vt({stroke:f[D]},x),silent:!0});vg(O.shape,x.lineWidth),e.add(O)}}},minorSplitLine:function(t,e,n,r){var a=n.axis,l=n.getModel("minorSplitLine"),u=l.getModel("lineStyle"),f=r.coordinateSystem.getRect(),d=a.isHorizontal(),h=a.getMinorTicksCoords();if(h.length)for(var p=[],m=[],S=u.getLineStyle(),_=0;_<h.length;_++)for(var x=0;x<h[_].length;x++){var E=a.toGlobalCoord(h[_][x].coord);d?(p[0]=E,p[1]=f.y,m[0]=E,m[1]=f.y+f.height):(p[0]=f.x,p[1]=E,m[0]=f.x+f.width,m[1]=E);var b=new vc({anid:"minor_line_"+h[_][x].tickValue,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:m[0],y2:m[1]},style:S,silent:!0});vg(b.shape,S.lineWidth),e.add(b)}},splitArea:function(t,e,n,r){UX(t,e,n,r)}},Oz=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="xAxis",e}(Lz),jX=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=Oz.type,n}return e.type="yAxis",e}(Lz),YX=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="grid",n}return e.prototype.render=function(n,r){this.group.removeAll(),n.get("show")&&this.group.add(new Kr({shape:n.coordinateSystem.getRect(),style:Vt({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Mu),kz={offset:0};function WX(t){t.registerComponentView(YX),t.registerComponentModel(dX),t.registerCoordinateSystem("cartesian2d",EX),yz(t,"x",aE,kz),yz(t,"y",aE,kz),t.registerComponentView(Oz),t.registerComponentView(jX),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var Ac=jn(),Nz=Qt,gE=Qn,XX=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,n,r,a){var l=n.get("value"),u=n.get("status");if(this._axisModel=e,this._axisPointerModel=n,this._api=r,!(!a&&this._lastValue===l&&this._lastStatus===u)){this._lastValue=l,this._lastStatus=u;var f=this._group,d=this._handle;if(!u||u==="hide"){f&&f.hide(),d&&d.hide();return}f&&f.show(),d&&d.show();var h={};this.makeElOption(h,l,e,n,r);var p=h.graphicKey;p!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=p;var m=this._moveAnimation=this.determineAnimation(e,n);if(!f)f=this._group=new Cl,this.createPointerEl(f,h,e,n),this.createLabelEl(f,h,e,n),r.getZr().add(f);else{var S=Aa(Pz,n,m);this.updatePointerEl(f,h,S),this.updateLabelEl(f,h,S,n)}Fz(f,n,!0),this._renderHandle(l)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,n){var r=n.get("animation"),a=e.axis,l=a.type==="category",u=n.get("snap");if(!u&&!l)return!1;if(r==="auto"||r==null){var f=this.animationThreshold;if(l&&a.getBandWidth()>f)return!0;if(u){var d=dE(e).seriesDataCount,h=a.getExtent();return Math.abs(h[0]-h[1])/d>f}return!1}return r===!0},t.prototype.makeElOption=function(e,n,r,a,l){},t.prototype.createPointerEl=function(e,n,r,a){var l=n.pointer;if(l){var u=Ac(e).pointerEl=new w$[l.type](Nz(n.pointer));e.add(u)}},t.prototype.createLabelEl=function(e,n,r,a){if(n.label){var l=Ac(e).labelEl=new ko(Nz(n.label));e.add(l),zz(l,a)}},t.prototype.updatePointerEl=function(e,n,r){var a=Ac(e).pointerEl;a&&n.pointer&&(a.setStyle(n.pointer.style),r(a,{shape:n.pointer.shape}))},t.prototype.updateLabelEl=function(e,n,r,a){var l=Ac(e).labelEl;l&&(l.setStyle(n.label.style),r(l,{x:n.label.x,y:n.label.y}),zz(l,a))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),a=this._handle,l=n.getModel("handle"),u=n.get("status");if(!l.get("show")||!u||u==="hide"){a&&r.remove(a),this._handle=null;return}var f;this._handle||(f=!0,a=this._handle=wk(l.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(h){LL(h.event)},onmousedown:gE(this._onHandleDragMove,this,0,0),drift:gE(this._onHandleDragMove,this),ondragend:gE(this._onHandleDragEnd,this)}),r.add(a)),Fz(a,n,!1),a.setStyle(l.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var d=l.get("size");Be(d)||(d=[d,d]),a.scaleX=d[0]/2,a.scaleY=d[1]/2,oP(this,"_doDispatchAxisPointer",l.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,f)}},t.prototype._moveHandleToValue=function(e,n){Pz(this._axisPointerModel,!n&&this._moveAnimation,this._handle,mE(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,n){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(mE(r),[e,n],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(mE(a)),Ac(r).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var n=e.getZr(),r=this._group,a=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),a&&n.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Sb(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,n,r){return r=r||0,{x:e[r],y:e[1-r],width:n[r],height:n[1-r]}},t}();function Pz(t,e,n,r){Iz(Ac(n).lastProp,r)||(Ac(n).lastProp=r,e?Po(n,r,t):(n.stopAnimation(),n.attr(r)))}function Iz(t,e){if(it(t)&&it(e)){var n=!0;return W(e,function(r,a){n=n&&Iz(t[a],r)}),!!n}else return t===e}function zz(t,e){t[e.get(["label","show"])?"show":"hide"]()}function mE(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Fz(t,e,n){var r=e.get("z"),a=e.get("zlevel");t&&t.traverse(function(l){l.type!=="group"&&(r!=null&&(l.z=r),a!=null&&(l.zlevel=a),l.silent=n)})}const qX=XX;function QX(t){var e=t.get("type"),n=t.getModel(e+"Style"),r;return e==="line"?(r=n.getLineStyle(),r.fill=null):e==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function ZX(t,e,n,r,a){var l=n.get("value"),u=Bz(l,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),f=n.getModel("label"),d=WT(f.get("padding")||0),h=f.getFont(),p=Bx(u,h),m=a.position,S=p.width+d[1]+d[3],_=p.height+d[0]+d[2],x=a.align;x==="right"&&(m[0]-=S),x==="center"&&(m[0]-=S/2);var E=a.verticalAlign;E==="bottom"&&(m[1]-=_),E==="middle"&&(m[1]-=_/2),KX(m,S,_,r);var b=f.get("backgroundColor");(!b||b==="auto")&&(b=e.get(["axisLine","lineStyle","color"])),t.label={x:m[0],y:m[1],style:gc(f,{text:u,font:h,fill:f.getTextColor(),padding:d,backgroundColor:b}),z2:10}}function KX(t,e,n,r){var a=r.getWidth(),l=r.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+n,l)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function Bz(t,e,n,r,a){t=e.scale.parse(t);var l=e.scale.getLabel({value:t},{precision:a.precision}),u=a.formatter;if(u){var f={value:Kb(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};W(r,function(d){var h=n.getSeriesByIndex(d.seriesIndex),p=d.dataIndexInside,m=h&&h.getDataParams(p);m&&f.seriesData.push(m)}),et(u)?l=u.replace("{value}",l):_t(u)&&(l=u(f))}return l}function Uz(t,e,n){var r=Up();return vx(r,r,n.rotation),dx(r,r,n.position),PT([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function JX(t,e,n,r,a,l){var u=Rz.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get(["label","margin"]),ZX(e,r,a,l,{position:Uz(r.axis,t,n),align:u.textAlign,verticalAlign:u.textVerticalAlign})}function eq(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function tq(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}var nq=function(t){Pt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,a,l,u){var f=a.axis,d=f.grid,h=l.get("type"),p=Vz(d,f).getOtherAxis(f).getGlobalExtent(),m=f.toGlobalCoord(f.dataToCoord(r,!0));if(h&&h!=="none"){var S=QX(l),_=rq[h](f,m,p);_.style=S,n.graphicKey=_.type,n.pointer=_}var x=uE(d.model,a);JX(r,n,x,a,l,u)},e.prototype.getHandleTransform=function(n,r,a){var l=uE(r.axis.grid.model,r,{labelInside:!1});l.labelMargin=a.get(["handle","margin"]);var u=Uz(r.axis,n,l);return{x:u[0],y:u[1],rotation:l.rotation+(l.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(n,r,a,l){var u=a.axis,f=u.grid,d=u.getGlobalExtent(!0),h=Vz(f,u).getOtherAxis(u).getGlobalExtent(),p=u.dim==="x"?0:1,m=[n.x,n.y];m[p]+=r[p],m[p]=Math.min(d[1],m[p]),m[p]=Math.max(d[0],m[p]);var S=(h[1]+h[0])/2,_=[S,S];_[p]=m[p];var x=[{verticalAlign:"middle"},{align:"center"}];return{x:m[0],y:m[1],rotation:n.rotation,cursorPoint:_,tooltipOption:x[p]}},e}(qX);function Vz(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var rq={line:function(t,e,n){var r=eq([e,n[0]],[e,n[1]],Hz(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),a=n[1]-n[0];return{type:"Rect",shape:tq([e-r/2,n[0]],[r,a],Hz(t))}}};function Hz(t){return t.dim==="x"?0:1}const iq=nq;var aq=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",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:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(En);const oq=aq;var Au=jn(),lq=W;function Gz(t,e,n){if(!Tt.node){var r=e.getZr();Au(r).records||(Au(r).records={}),uq(r,e);var a=Au(r).records[t]||(Au(r).records[t]={});a.handler=n}}function uq(t,e){if(Au(t).initialized)return;Au(t).initialized=!0,n("click",Aa($z,"click")),n("mousemove",Aa($z,"mousemove")),n("globalout",fq);function n(r,a){t.on(r,function(l){var u=cq(e);lq(Au(t).records,function(f){f&&a(f,l,u.dispatchAction)}),sq(u.pendings,e)})}}function sq(t,e){var n=t.showTip.length,r=t.hideTip.length,a;n?a=t.showTip[n-1]:r&&(a=t.hideTip[r-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function fq(t,e,n){t.handler("leave",null,n)}function $z(t,e,n,r){e.handler(t,n,r)}function cq(t){var e={showTip:[],hideTip:[]},n=function(r){var a=e[r.type];a?a.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}function yE(t,e){if(!Tt.node){var n=e.getZr(),r=(Au(n).records||{})[t];r&&(Au(n).records[t]=null)}}var dq=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var l=r.getComponent("tooltip"),u=n.get("triggerOn")||l&&l.get("triggerOn")||"mousemove|click";Gz("axisPointer",a,function(f,d,h){u!=="none"&&(f==="leave"||u.indexOf(f)>=0)&&h({type:"updateAxisPointer",currTrigger:f,x:d&&d.offsetX,y:d&&d.offsetY})})},e.prototype.remove=function(n,r){yE("axisPointer",r)},e.prototype.dispose=function(n,r){yE("axisPointer",r)},e.type="axisPointer",e}(Mu);const vq=dq;function jz(t,e){var n=[],r=t.seriesIndex,a;if(r==null||!(a=e.getSeriesByIndex(r)))return{point:[]};var l=a.getData(),u=rg(l,t);if(u==null||u<0||Be(u))return{point:[]};var f=l.getItemGraphicEl(u),d=a.coordinateSystem;if(a.getTooltipPosition)n=a.getTooltipPosition(u)||[];else if(d&&d.dataToPoint)if(t.isStacked){var h=d.getBaseAxis(),p=d.getOtherAxis(h),m=p.dim,S=h.dim,_=m==="x"||m==="radius"?1:0,x=l.mapDimension(S),E=[];E[_]=l.get(x,u),E[1-_]=l.get(l.getCalculationInfo("stackResultDimension"),u),n=d.dataToPoint(E)||[]}else n=d.dataToPoint(l.getValues(ot(d.dimensions,function(D){return l.mapDimension(D)}),u))||[];else if(f){var b=f.getBoundingRect().clone();b.applyTransform(f.transform),n=[b.x+b.width/2,b.y+b.height/2]}return{point:n,el:f}}var Yz=jn();function hq(t,e,n){var r=t.currTrigger,a=[t.x,t.y],l=t,u=t.dispatchAction||Qn(n.dispatchAction,n),f=e.getComponent("axisPointer").coordSysAxesInfo;if(f){g1(a)&&(a=jz({seriesIndex:l.seriesIndex,dataIndex:l.dataIndex},e).point);var d=g1(a),h=l.axesInfo,p=f.axesInfo,m=r==="leave"||g1(a),S={},_={},x={list:[],map:{}},E={showPointer:Aa(gq,_),showTooltip:Aa(mq,x)};W(f.coordSysMap,function(D,A){var O=d||D.containPoint(a);W(f.coordSysAxesInfo[A],function(P,I){var F=P.axis,U=Cq(h,P);if(!m&&O&&(!h||U)){var H=U&&U.value;H==null&&!d&&(H=F.pointToData(a)),H!=null&&Wz(P,H,E,!1,S)}})});var b={};return W(p,function(D,A){var O=D.linkGroup;O&&!_[A]&&W(O.axesInfo,function(P,I){var F=_[I];if(P!==D&&F){var U=F.value;O.mapper&&(U=D.axis.scale.parse(O.mapper(U,Xz(P),Xz(D)))),b[D.key]=U}})}),W(b,function(D,A){Wz(p[A],D,E,!0,S)}),yq(_,p,S),_q(x,a,t,u),Sq(p,u,n),S}}function Wz(t,e,n,r,a){var l=t.axis;if(!(l.scale.isBlank()||!l.containData(e))){if(!t.involveSeries){n.showPointer(t,e);return}var u=pq(e,t),f=u.payloadBatch,d=u.snapToValue;f[0]&&a.seriesIndex==null&&Re(a,f[0]),!r&&t.snap&&l.containData(d)&&d!=null&&(e=d),n.showPointer(t,e,f),n.showTooltip(t,u,d)}}function pq(t,e){var n=e.axis,r=n.dim,a=t,l=[],u=Number.MAX_VALUE,f=-1;return W(e.seriesModels,function(d,h){var p=d.getData().mapDimensionsAll(r),m,S;if(d.getAxisTooltipData){var _=d.getAxisTooltipData(p,t,n);S=_.dataIndices,m=_.nestestValue}else{if(S=d.getData().indicesOfNearest(p[0],t,n.type==="category"?.5:null),!S.length)return;m=d.getData().get(p[0],S[0])}if(!(m==null||!isFinite(m))){var x=t-m,E=Math.abs(x);E<=u&&((E<u||x>=0&&f<0)&&(u=E,f=x,a=m,l.length=0),W(S,function(b){l.push({seriesIndex:d.seriesIndex,dataIndexInside:b,dataIndex:d.getData().getRawIndex(b)})}))}}),{payloadBatch:l,snapToValue:a}}function gq(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function mq(t,e,n,r){var a=n.payloadBatch,l=e.axis,u=l.model,f=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var d=e.coordSys.model,h=Xg(d),p=t.map[h];p||(p=t.map[h]={coordSysId:d.id,coordSysIndex:d.componentIndex,coordSysType:d.type,coordSysMainType:d.mainType,dataByAxis:[]},t.list.push(p)),p.dataByAxis.push({axisDim:l.dim,axisIndex:u.componentIndex,axisType:u.type,axisId:u.id,value:r,valueLabelOpt:{precision:f.get(["label","precision"]),formatter:f.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function yq(t,e,n){var r=n.axesInfo=[];W(e,function(a,l){var u=a.axisPointerModel.option,f=t[l];f?(!a.useHandle&&(u.status="show"),u.value=f.value,u.seriesDataIndices=(f.payloadBatch||[]).slice()):!a.useHandle&&(u.status="hide"),u.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:u.value})})}function _q(t,e,n,r){if(g1(e)||!t.list.length){r({type:"hideTip"});return}var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}function Sq(t,e,n){var r=n.getZr(),a="axisPointerLastHighlights",l=Yz(r)[a]||{},u=Yz(r)[a]={};W(t,function(h,p){var m=h.axisPointerModel.option;m.status==="show"&&W(m.seriesDataIndices,function(S){var _=S.seriesIndex+" | "+S.dataIndex;u[_]=S})});var f=[],d=[];W(l,function(h,p){!u[p]&&d.push(h)}),W(u,function(h,p){!l[p]&&f.push(h)}),d.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:d}),f.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:f})}function Cq(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function Xz(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function g1(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function qz(t){Az.registerAxisPointerClass("CartesianAxisPointer",iq),t.registerComponentModel(oq),t.registerComponentView(vq),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var n=e.axisPointer.link;n&&!Be(n)&&(e.axisPointer.link=[n])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,n){e.getComponent("axisPointer").coordSysAxesInfo=OX(e,n)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},hq)}function wq(t){$g(WX),$g(qz)}var xq=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(En);const Tq=xq;function Qz(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function Zz(t){if(Tt.domSupported){for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}}var Kz=Zz(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),bq=Zz(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Jz(t,e){if(!t)return e;e=Xk(e,!0);var n=t.indexOf(e);return t=n===-1?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function Eq(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}var Dq=Jz(bq,"transition"),_E=Jz(Kz,"transform"),Mq="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Tt.transform3dSupported?"will-change:transform;":"");function Rq(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function Aq(t,e,n){if(!et(n)||n==="inside")return"";var r=t.get("backgroundColor"),a=t.get("borderWidth");e=_g(e);var l=Rq(n),u=Math.max(Math.round(a)*1.5,6),f="",d=_E+":",h;dn(["left","right"],l)>-1?(f+="top:50%",d+="translateY(-50%) rotate("+(h=l==="left"?-225:-45)+"deg)"):(f+="left:50%",d+="translateX(-50%) rotate("+(h=l==="top"?225:45)+"deg)");var p=h*Math.PI/180,m=u+a,S=m*Math.abs(Math.cos(p))+m*Math.abs(Math.sin(p)),_=Math.round(((S-Math.SQRT2*a)/2+Math.SQRT2*a-(S-m)/2)*100)/100;f+=";"+l+":-"+_+"px";var x=e+" solid "+a+"px;",E=["position:absolute;width:"+u+"px;height:"+u+"px;z-index:-1;",f+";"+d+";","border-bottom:"+x,"border-right:"+x,"background-color:"+r+";"];return'<div style="'+E.join("")+'"></div>'}function Lq(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,a="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,a+=Tt.transformSupported?","+_E+r:",left"+r+",top"+r),Dq+":"+a}function eF(t,e,n){var r=t.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!Tt.transformSupported)return n?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var l=Tt.transform3dSupported,u="translate"+(l?"3d":"")+"("+r+","+a+(l?",0":"")+")";return n?"top:0;left:0;"+_E+":"+u+";":[["top",0],["left",0],[Kz,u]]}function Oq(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(n*3/2)+"px");var a=t.get("textShadowColor"),l=t.get("textShadowBlur")||0,u=t.get("textShadowOffsetX")||0,f=t.get("textShadowOffsetY")||0;return a&&l&&e.push("text-shadow:"+u+"px "+f+"px "+l+"px "+a),W(["decoration","align"],function(d){var h=t.get(d);h&&e.push("text-"+d+":"+h)}),e.join(";")}function kq(t,e,n){var r=[],a=t.get("transitionDuration"),l=t.get("backgroundColor"),u=t.get("shadowBlur"),f=t.get("shadowColor"),d=t.get("shadowOffsetX"),h=t.get("shadowOffsetY"),p=t.getModel("textStyle"),m=ZN(t,"html"),S=d+"px "+h+"px "+u+"px "+f;return r.push("box-shadow:"+S),e&&a&&r.push(Lq(a,n)),l&&r.push("background-color:"+l),W(["width","color","radius"],function(_){var x="border-"+_,E=Xk(x),b=t.get(E);b!=null&&r.push(x+":"+b+(_==="color"?"":"px"))}),r.push(Oq(p)),m!=null&&r.push("padding:"+WT(m).join("px ")+"px"),r.join(";")+";"}function tF(t,e,n,r,a){var l=e&&e.painter;if(n){var u=l&&l.getViewportRoot();u&&S4(t,u,document.body,r,a)}else{t[0]=r,t[1]=a;var f=l&&l.getViewportRootOffset();f&&(t[0]+=f.offsetLeft,t[1]+=f.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var Nq=function(){function t(e,n,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,Tt.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var l=this._zr=n.getZr(),u=this._appendToBody=r&&r.appendToBody;tF(this._styleCoord,l,u,n.getWidth()/2,n.getHeight()/2),u?document.body.appendChild(a):e.appendChild(a),this._container=e;var f=this;a.onmouseenter=function(){f._enterable&&(clearTimeout(f._hideTimeout),f._show=!0),f._inContent=!0},a.onmousemove=function(d){if(d=d||window.event,!f._enterable){var h=l.handler,p=l.painter.getViewportRoot();no(p,d,!0),h.dispatch("mousemove",d)}},a.onmouseleave=function(){f._inContent=!1,f._enterable&&f._show&&f.hideLater(f._hideDelay)}}return t.prototype.update=function(e){var n=this._container,r=Eq(n,"position"),a=n.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative");var l=e.get("alwaysShowContent");l&&this._moveIfResized(),this.el.className=e.get("className")||""},t.prototype.show=function(e,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,l=this._styleCoord;r.innerHTML?a.cssText=Mq+kq(e,!this._firstShow,this._longHide)+eF(l[0],l[1],!0)+("border-color:"+_g(n)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,n,r,a,l){var u=this.el;if(e==null){u.innerHTML="";return}var f="";if(et(l)&&r.get("trigger")==="item"&&!Qz(r)&&(f=Aq(r,a,l)),et(e))u.innerHTML=e+f;else if(e){u.innerHTML="",Be(e)||(e=[e]);for(var d=0;d<e.length;d++)zp(e[d])&&e[d].parentNode!==u&&u.appendChild(e[d]);if(f&&u.childNodes.length){var h=document.createElement("div");h.innerHTML=f,u.appendChild(h)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},t.prototype.moveTo=function(e,n){var r=this._styleCoord;if(tF(r,this._zr,this._appendToBody,e,n),r[0]!=null&&r[1]!=null){var a=this.el.style,l=eF(r[0],r[1]);W(l,function(u){a[u[0]]=u[1]})}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),n*this._zr.getHeight())},t.prototype.hide=function(){var e=this,n=this.el.style;n.visibility="hidden",n.opacity="0",Tt.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Qn(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}();const Pq=Nq;var Iq=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=e.getZr(),rF(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var n=e.get("alwaysShowContent");n&&this._moveIfResized()},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,n,r,a,l){var u=this;it(e)&&Ht(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var f=r.getModel("textStyle");this.el=new ko({style:{rich:n.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:f.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:ZN(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),W(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(h){u.el.style[h]=r.get(h)}),W(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(h){u.el.style[h]=f.get(h)||0}),this._zr.add(this.el);var d=this;this.el.on("mouseover",function(){d._enterable&&(clearTimeout(d._hideTimeout),d._show=!0),d._inContent=!0}),this.el.on("mouseout",function(){d._enterable&&d._show&&d.hideLater(d._hideDelay),d._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,n=this.el.getBoundingRect(),r=nF(e.style);return[n.width+r.left+r.right,n.height+r.top+r.bottom]},t.prototype.moveTo=function(e,n){var r=this.el;if(r){var a=this._styleCoord;rF(a,this._zr,e,n),e=a[0],n=a[1];var l=r.style,u=zs(l.borderWidth||0),f=nF(l);r.x=e+u+f.left,r.y=n+u+f.top,r.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),n*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Qn(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function zs(t){return Math.max(0,t)}function nF(t){var e=zs(t.shadowBlur||0),n=zs(t.shadowOffsetX||0),r=zs(t.shadowOffsetY||0);return{left:zs(e-n),right:zs(e+n),top:zs(e-r),bottom:zs(e+r)}}function rF(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const zq=Iq;var Fq=new Kr({shape:{x:-1,y:-1,width:2,height:2}}),Bq=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){if(!(Tt.node||!r.getDom())){var a=n.getComponent("tooltip"),l=this._renderMode=J6(a.get("renderMode"));this._tooltipContent=l==="richText"?new zq(r):new Pq(r.getDom(),r,{appendToBody:a.get("appendToBody",!0)})}},e.prototype.render=function(n,r,a){if(!(Tt.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=r,this._api=a,this._alwaysShowContent=n.get("alwaysShowContent");var l=this._tooltipContent;l.update(n),l.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?oP(this,"_updatePosition",50,"fixRate"):Sb(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");Gz("itemTooltip",this._api,Qn(function(a,l,u){r!=="none"&&(r.indexOf(a)>=0?this._tryShow(l,u):a==="leave"&&this._hide(u))},this))},e.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,a=this._api,l=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&l!=="none"&&l!=="click"){var u=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&u.manuallyShowTip(n,r,a,{x:u._lastX,y:u._lastY,dataByCoordSys:u._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(n,r,a,l){if(!(l.from===this.uid||Tt.node||!a.getDom())){var u=iF(l,a);this._ticket="";var f=l.dataByCoordSys,d=Gq(l,r,a);if(d){var h=d.el.getBoundingRect().clone();h.applyTransform(d.el.transform),this._tryShow({offsetX:h.x+h.width/2,offsetY:h.y+h.height/2,target:d.el,position:l.position,positionDefault:"bottom"},u)}else if(l.tooltip&&l.x!=null&&l.y!=null){var p=Fq;p.x=l.x,p.y=l.y,p.update(),yn(p).tooltipConfig={name:null,option:l.tooltip},this._tryShow({offsetX:l.x,offsetY:l.y,target:p},u)}else if(f)this._tryShow({offsetX:l.x,offsetY:l.y,position:l.position,dataByCoordSys:f,tooltipOption:l.tooltipOption},u);else if(l.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,a,l))return;var m=jz(l,r),S=m.point[0],_=m.point[1];S!=null&&_!=null&&this._tryShow({offsetX:S,offsetY:_,target:m.el,position:l.position,positionDefault:"bottom"},u)}else l.x!=null&&l.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:l.x,y:l.y}),this._tryShow({offsetX:l.x,offsetY:l.y,position:l.position,target:a.getZr().findHover(l.x,l.y).target},u))}},e.prototype.manuallyHideTip=function(n,r,a,l){var u=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&u.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,l.from!==this.uid&&this._hide(iF(l,a))},e.prototype._manuallyAxisShowTip=function(n,r,a,l){var u=l.seriesIndex,f=l.dataIndex,d=r.getComponent("axisPointer").coordSysAxesInfo;if(!(u==null||f==null||d==null)){var h=r.getSeriesByIndex(u);if(h){var p=h.getData(),m=qg([p.getItemModel(f),h,(h.coordinateSystem||{}).model],this._tooltipModel);if(m.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:u,dataIndex:f,position:l.position}),!0}}},e.prototype._tryShow=function(n,r){var a=n.target,l=this._tooltipModel;if(l){this._lastX=n.offsetX,this._lastY=n.offsetY;var u=n.dataByCoordSys;if(u&&u.length)this._showAxisTooltip(u,n);else if(a){this._lastDataByCoordSys=null;var f,d;Og(a,function(h){if(yn(h).dataIndex!=null)return f=h,!0;if(yn(h).tooltipConfig!=null)return d=h,!0},!0),f?this._showSeriesItemTooltip(n,f,r):d?this._showComponentItemTooltip(n,d,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(n,r){var a=n.get("showDelay");r=Qn(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},e.prototype._showAxisTooltip=function(n,r){var a=this._ecModel,l=this._tooltipModel,u=[r.offsetX,r.offsetY],f=qg([r.tooltipOption],l),d=this._renderMode,h=[],p=Rg("section",{blocks:[],noHeader:!0}),m=[],S=new pb;W(n,function(A){W(A.dataByAxis,function(O){var P=a.getComponent(O.axisDim+"Axis",O.axisIndex),I=O.value;if(!(!P||I==null)){var F=Bz(I,P.axis,a,O.seriesDataIndices,O.valueLabelOpt),U=Rg("section",{header:F,noHeader:!yl(F),sortBlocks:!0,blocks:[]});p.blocks.push(U),W(O.seriesDataIndices,function(H){var j=a.getSeriesByIndex(H.seriesIndex),X=H.dataIndexInside,G=j.getDataParams(X);if(!(G.dataIndex<0)){G.axisDim=O.axisDim,G.axisIndex=O.axisIndex,G.axisType=O.axisType,G.axisId=O.axisId,G.axisValue=Kb(P.axis,{value:I}),G.axisValueLabel=F,G.marker=S.makeTooltipMarker("item",_g(G.color),d);var ee=ON(j.formatTooltip(X,!0,null)),J=ee.frag;if(J){var ie=qg([j],l).get("valueFormatter");U.blocks.push(ie?Re({valueFormatter:ie},J):J)}ee.text&&m.push(ee.text),h.push(G)}})}})}),p.blocks.reverse(),m.reverse();var _=r.position,x=f.get("order"),E=qN(p,S,d,x,a.get("useUTC"),f.get("textStyle"));E&&m.unshift(E);var b=d==="richText"?`
211
211
 
212
- `:"<br/>",D=m.join(b);this._showOrMove(f,function(){this._updateContentNotChangedOnAxis(n,h)?this._updatePosition(f,_,u[0],u[1],this._tooltipContent,h):this._showTooltipContent(f,D,h,Math.random()+"",u[0],u[1],_,null,S)})},e.prototype._showSeriesItemTooltip=function(n,r,a){var l=this._ecModel,u=yn(r),f=u.seriesIndex,d=l.getSeriesByIndex(f),h=u.dataModel||d,p=u.dataIndex,m=u.dataType,S=h.getData(m),_=this._renderMode,x=n.positionDefault,E=qg([S.getItemModel(p),h,d&&(d.coordinateSystem||{}).model],this._tooltipModel,x?{position:x}:null),b=E.get("trigger");if(!(b!=null&&b!=="item")){var D=h.getDataParams(p,m),A=new ub;D.marker=A.makeTooltipMarker("item",_g(D.color),_);var O=gN(h.formatTooltip(p,!1,m)),P=E.get("order"),I=E.get("valueFormatter"),F=O.frag,U=F?kN(I?Re({valueFormatter:I},F):F,A,_,P,l.get("useUTC"),E.get("textStyle")):O.text,H="item_"+h.name+"_"+p;this._showOrMove(E,function(){this._showTooltipContent(E,U,D,H,n.offsetX,n.offsetY,n.position,n.target,A)}),a({type:"showTip",dataIndexInside:p,dataIndex:S.getRawIndex(p),seriesIndex:f,from:this.uid})}},e.prototype._showComponentItemTooltip=function(n,r,a){var l=yn(r),u=l.tooltipConfig,f=u.option||{};if(et(f)){var d=f;f={content:d,formatter:d}}var h=[f],p=this._ecModel.getComponent(l.componentMainType,l.componentIndex);p&&h.push(p),h.push({formatter:f.content});var m=n.positionDefault,S=qg(h,this._tooltipModel,m?{position:m}:null),_=S.get("content"),x=Math.random()+"",E=new ub;this._showOrMove(S,function(){var b=Qt(S.get("formatterParams")||{});this._showTooltipContent(S,_,b,x,n.offsetX,n.offsetY,n.position,r,E)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(n,r,a,l,u,f,d,h,p){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var m=this._tooltipContent;m.setEnterable(n.get("enterable"));var S=n.get("formatter");d=d||n.get("position");var _=r,x=this._getNearestPoint([u,f],a,n.get("trigger"),n.get("borderColor")),E=x.color;if(S)if(et(S)){var b=n.ecModel.get("useUTC"),D=Be(a)?a[0]:a,A=D&&D.axisType&&D.axisType.indexOf("time")>=0;_=S,A&&(_=w_(D.axisValue,_,b)),_=Nk(_,a,!0)}else if(_t(S)){var O=Qn(function(P,I){P===this._ticket&&(m.setContent(I,p,n,E,d),this._updatePosition(n,d,u,f,m,a,h))},this);this._ticket=l,_=S(a,l,O)}else _=S;m.setContent(_,p,n,E,d),m.show(n,E),this._updatePosition(n,d,u,f,m,a,h)}},e.prototype._getNearestPoint=function(n,r,a,l){if(a==="axis"||Be(r))return{color:l||(this._renderMode==="html"?"#fff":"none")};if(!Be(r))return{color:l||r.color||r.borderColor}},e.prototype._updatePosition=function(n,r,a,l,u,f,d){var h=this._api.getWidth(),p=this._api.getHeight();r=r||n.get("position");var m=u.getSize(),S=n.get("align"),_=n.get("verticalAlign"),x=d&&d.getBoundingRect().clone();if(d&&x.applyTransform(d.transform),_t(r)&&(r=r([a,l],f,u.el,x,{viewSize:[h,p],contentSize:m.slice()})),Be(r))a=Zr(r[0],h),l=Zr(r[1],p);else if(it(r)){var E=r;E.width=m[0],E.height=m[1];var b=GT(E,{width:h,height:p});a=b.x,l=b.y,S=null,_=null}else if(et(r)&&d){var D=$X(r,x,m,n.get("borderWidth"));a=D[0],l=D[1]}else{var D=HX(a,l,u,h,p,S?null:20,_?null:20);a=D[0],l=D[1]}if(S&&(a-=Gz(S)?m[0]/2:S==="right"?m[0]:0),_&&(l-=Gz(_)?m[1]/2:_==="bottom"?m[1]:0),Nz(n)){var D=GX(a,l,u,h,p);a=D[0],l=D[1]}u.moveTo(a,l)},e.prototype._updateContentNotChangedOnAxis=function(n,r){var a=this._lastDataByCoordSys,l=this._cbParamsList,u=!!a&&a.length===n.length;return u&&W(a,function(f,d){var h=f.dataByAxis||[],p=n[d]||{},m=p.dataByAxis||[];u=u&&h.length===m.length,u&&W(h,function(S,_){var x=m[_]||{},E=S.seriesDataIndices||[],b=x.seriesDataIndices||[];u=u&&S.value===x.value&&S.axisType===x.axisType&&S.axisId===x.axisId&&E.length===b.length,u&&W(E,function(D,A){var O=b[A];u=u&&D.seriesIndex===O.seriesIndex&&D.dataIndex===O.dataIndex}),l&&W(S.seriesDataIndices,function(D){var A=D.seriesIndex,O=r[A],P=l[A];O&&P&&P.data!==O.data&&(u=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!u},e.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},e.prototype.dispose=function(n,r){Tt.node||!r.getDom()||(vb(this,"_updatePosition"),this._tooltipContent.dispose(),cE("itemTooltip",r))},e.type="tooltip",e}(Du);function qg(t,e,n){var r=e.ecModel,a;n?(a=new Oi(n,r,r),a=new Oi(e.option,a,r)):a=e;for(var l=t.length-1;l>=0;l--){var u=t[l];u&&(u instanceof Oi&&(u=u.get("tooltip",!0)),et(u)&&(u={formatter:u}),u&&(a=new Oi(u,a,r)))}return a}function Hz(t,e){return t.dispatchAction||Qn(e.dispatchAction,e)}function HX(t,e,n,r,a,l,u){var f=n.getSize(),d=f[0],h=f[1];return l!=null&&(t+d+l+2>r?t-=d+l:t+=l),u!=null&&(e+h+u>a?e-=h+u:e+=u),[t,e]}function GX(t,e,n,r,a){var l=n.getSize(),u=l[0],f=l[1];return t=Math.min(t+u,r)-u,e=Math.min(e+f,a)-f,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function $X(t,e,n,r){var a=n[0],l=n[1],u=Math.ceil(Math.SQRT2*r)+8,f=0,d=0,h=e.width,p=e.height;switch(t){case"inside":f=e.x+h/2-a/2,d=e.y+p/2-l/2;break;case"top":f=e.x+h/2-a/2,d=e.y-l-u;break;case"bottom":f=e.x+h/2-a/2,d=e.y+p+u;break;case"left":f=e.x-a-u,d=e.y+p/2-l/2;break;case"right":f=e.x+h+u,d=e.y+p/2-l/2}return[f,d]}function Gz(t){return t==="center"||t==="middle"}function jX(t,e,n){var r=Vx(t).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var l=ig(e,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),u=l.models[0];if(u){var f=n.getViewOfComponentModel(u),d;if(f.group.traverse(function(h){var p=yn(h).tooltipConfig;if(p&&p.name===t.name)return d=h,!0}),d)return{componentMainType:a,componentIndex:u.componentIndex,el:d}}}}const YX=VX;function WX(t){$g(kz),t.registerComponentModel(EX),t.registerComponentView(YX),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ta),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ta)}var XX=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(En),qX=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){if(this.group.removeAll(),!!n.get("show")){var l=this.group,u=n.getModel("textStyle"),f=n.getModel("subtextStyle"),d=n.get("textAlign"),h=kt(n.get("textBaseline"),n.get("textVerticalAlign")),p=new ko({style:gc(u,{text:n.get("text"),fill:u.getTextColor()},{disableBox:!0}),z2:10}),m=p.getBoundingRect(),S=n.get("subtext"),_=new ko({style:gc(f,{text:S,fill:f.getTextColor(),y:m.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),x=n.get("link"),E=n.get("sublink"),b=n.get("triggerEvent",!0);p.silent=!x&&!b,_.silent=!E&&!b,x&&p.on("click",function(){Pk(x,"_"+n.get("target"))}),E&&_.on("click",function(){Pk(E,"_"+n.get("subtarget"))}),yn(p).eventData=yn(_).eventData=b?{componentType:"title",componentIndex:n.componentIndex}:null,l.add(p),S&&l.add(_);var D=l.getBoundingRect(),A=n.getBoxLayoutParams();A.width=D.width,A.height=D.height;var O=GT(A,{width:a.getWidth(),height:a.getHeight()},n.get("padding"));d||(d=n.get("left")||n.get("right"),d==="middle"&&(d="center"),d==="right"?O.x+=O.width:d==="center"&&(O.x+=O.width/2)),h||(h=n.get("top")||n.get("bottom"),h==="center"&&(h="middle"),h==="bottom"?O.y+=O.height:h==="middle"&&(O.y+=O.height/2),h=h||"top"),l.x=O.x,l.y=O.y,l.markRedraw();var P={align:d,verticalAlign:h};p.setStyle(P),_.setStyle(P),D=l.getBoundingRect();var I=O.margin,F=n.getItemStyle(["color","opacity"]);F.fill=n.get("backgroundColor");var U=new Kr({shape:{x:D.x-I[3],y:D.y-I[0],width:D.width+I[1]+I[3],height:D.height+I[0]+I[2],r:n.get("borderRadius")},style:F,subPixelOptimize:!0,silent:!0});l.add(U)}},e.type="title",e}(Du);function QX(t){t.registerComponentModel(XX),t.registerComponentView(qX)}var $z={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},ZX=function(){function t(e){var n=this._condVal=et(e)?new RegExp(e):aL(e)?e:null;if(n==null){var r="";process.env.NODE_ENV!=="production"&&(r=na("Illegal regexp",e,"in")),Ht(r)}}return t.prototype.evaluate=function(e){var n=typeof e;return et(n)?this._condVal.test(e):Nn(n)?this._condVal.test(e+""):!1},t}(),KX=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),JX=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,n=0;n<e.length;n++)if(!e[n].evaluate())return!1;return!0},t}(),eq=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,n=0;n<e.length;n++)if(e[n].evaluate())return!0;return!1},t}(),tq=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),nq=function(){function t(){}return t.prototype.evaluate=function(){for(var e=!!this.valueParser,n=this.getValue,r=n(this.valueGetterParam),a=e?this.valueParser(r):null,l=0;l<this.subCondList.length;l++)if(!this.subCondList[l].evaluate(e?a:r))return!1;return!0},t}();function vE(t,e){if(t===!0||t===!1){var n=new KX;return n.value=t,n}var r="";return Yz(t)||(process.env.NODE_ENV!=="production"&&(r=na("Illegal config. Expect a plain object but actually",t)),Ht(r)),t.and?jz("and",t,e):t.or?jz("or",t,e):t.not?rq(t,e):iq(t,e)}function jz(t,e,n){var r=e[t],a="";process.env.NODE_ENV!=="production"&&(a=na('"and"/"or" condition should only be `'+t+": [...]` and must not be empty array.","Illegal condition:",e)),Be(r)||Ht(a),r.length||Ht(a);var l=t==="and"?new JX:new eq;return l.children=ot(r,function(u){return vE(u,n)}),l.children.length||Ht(a),l}function rq(t,e){var n=t.not,r="";process.env.NODE_ENV!=="production"&&(r=na('"not" condition should only be `not: {}`.',"Illegal condition:",t)),Yz(n)||Ht(r);var a=new tq;return a.child=vE(n,e),a.child||Ht(r),a}function iq(t,e){for(var n="",r=e.prepareGetValue(t),a=[],l=kn(t),u=t.parser,f=u?yN(u):null,d=0;d<l.length;d++){var h=l[d];if(!(h==="parser"||e.valueGetterAttrMap.get(h))){var p=yu($z,h)?$z[h]:h,m=t[h],S=f?f(m):m,_=q$(p,S)||p==="reg"&&new ZX(S);_||(process.env.NODE_ENV!=="production"&&(n=na('Illegal relational operation: "'+h+'" in condition:',t)),Ht(n)),a.push(_)}}a.length||(process.env.NODE_ENV!=="production"&&(n=na("Relational condition must have at least one operator.","Illegal condition:",t)),Ht(n));var x=new nq;return x.valueGetterParam=r,x.valueParser=f,x.getValue=e.getValue,x.subCondList=a,x}function Yz(t){return it(t)&&!Ai(t)}var aq=function(){function t(e,n){this._cond=vE(e,n)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function oq(t,e){return new aq(t,e)}var lq={type:"echarts:filter",transform:function(t){for(var e=t.upstream,n,r=oq(t.config,{valueGetterAttrMap:xt({dimension:!0}),prepareGetValue:function(f){var d="",h=f.dimension;yu(f,"dimension")||(process.env.NODE_ENV!=="production"&&(d=na('Relation condition must has prop "dimension" specified.',"Illegal condition:",f)),Ht(d));var p=e.getDimensionInfo(h);return p||(process.env.NODE_ENV!=="production"&&(d=na("Can not find dimension info via: "+h+`.
212
+ `:"<br/>",D=m.join(b);this._showOrMove(f,function(){this._updateContentNotChangedOnAxis(n,h)?this._updatePosition(f,_,u[0],u[1],this._tooltipContent,h):this._showTooltipContent(f,D,h,Math.random()+"",u[0],u[1],_,null,S)})},e.prototype._showSeriesItemTooltip=function(n,r,a){var l=this._ecModel,u=yn(r),f=u.seriesIndex,d=l.getSeriesByIndex(f),h=u.dataModel||d,p=u.dataIndex,m=u.dataType,S=h.getData(m),_=this._renderMode,x=n.positionDefault,E=qg([S.getItemModel(p),h,d&&(d.coordinateSystem||{}).model],this._tooltipModel,x?{position:x}:null),b=E.get("trigger");if(!(b!=null&&b!=="item")){var D=h.getDataParams(p,m),A=new pb;D.marker=A.makeTooltipMarker("item",_g(D.color),_);var O=ON(h.formatTooltip(p,!1,m)),P=E.get("order"),I=E.get("valueFormatter"),F=O.frag,U=F?qN(I?Re({valueFormatter:I},F):F,A,_,P,l.get("useUTC"),E.get("textStyle")):O.text,H="item_"+h.name+"_"+p;this._showOrMove(E,function(){this._showTooltipContent(E,U,D,H,n.offsetX,n.offsetY,n.position,n.target,A)}),a({type:"showTip",dataIndexInside:p,dataIndex:S.getRawIndex(p),seriesIndex:f,from:this.uid})}},e.prototype._showComponentItemTooltip=function(n,r,a){var l=yn(r),u=l.tooltipConfig,f=u.option||{};if(et(f)){var d=f;f={content:d,formatter:d}}var h=[f],p=this._ecModel.getComponent(l.componentMainType,l.componentIndex);p&&h.push(p),h.push({formatter:f.content});var m=n.positionDefault,S=qg(h,this._tooltipModel,m?{position:m}:null),_=S.get("content"),x=Math.random()+"",E=new pb;this._showOrMove(S,function(){var b=Qt(S.get("formatterParams")||{});this._showTooltipContent(S,_,b,x,n.offsetX,n.offsetY,n.position,r,E)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(n,r,a,l,u,f,d,h,p){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var m=this._tooltipContent;m.setEnterable(n.get("enterable"));var S=n.get("formatter");d=d||n.get("position");var _=r,x=this._getNearestPoint([u,f],a,n.get("trigger"),n.get("borderColor")),E=x.color;if(S)if(et(S)){var b=n.ecModel.get("useUTC"),D=Be(a)?a[0]:a,A=D&&D.axisType&&D.axisType.indexOf("time")>=0;_=S,A&&(_=E_(D.axisValue,_,b)),_=Qk(_,a,!0)}else if(_t(S)){var O=Qn(function(P,I){P===this._ticket&&(m.setContent(I,p,n,E,d),this._updatePosition(n,d,u,f,m,a,h))},this);this._ticket=l,_=S(a,l,O)}else _=S;m.setContent(_,p,n,E,d),m.show(n,E),this._updatePosition(n,d,u,f,m,a,h)}},e.prototype._getNearestPoint=function(n,r,a,l){if(a==="axis"||Be(r))return{color:l||(this._renderMode==="html"?"#fff":"none")};if(!Be(r))return{color:l||r.color||r.borderColor}},e.prototype._updatePosition=function(n,r,a,l,u,f,d){var h=this._api.getWidth(),p=this._api.getHeight();r=r||n.get("position");var m=u.getSize(),S=n.get("align"),_=n.get("verticalAlign"),x=d&&d.getBoundingRect().clone();if(d&&x.applyTransform(d.transform),_t(r)&&(r=r([a,l],f,u.el,x,{viewSize:[h,p],contentSize:m.slice()})),Be(r))a=Zr(r[0],h),l=Zr(r[1],p);else if(it(r)){var E=r;E.width=m[0],E.height=m[1];var b=QT(E,{width:h,height:p});a=b.x,l=b.y,S=null,_=null}else if(et(r)&&d){var D=Hq(r,x,m,n.get("borderWidth"));a=D[0],l=D[1]}else{var D=Uq(a,l,u,h,p,S?null:20,_?null:20);a=D[0],l=D[1]}if(S&&(a-=aF(S)?m[0]/2:S==="right"?m[0]:0),_&&(l-=aF(_)?m[1]/2:_==="bottom"?m[1]:0),Qz(n)){var D=Vq(a,l,u,h,p);a=D[0],l=D[1]}u.moveTo(a,l)},e.prototype._updateContentNotChangedOnAxis=function(n,r){var a=this._lastDataByCoordSys,l=this._cbParamsList,u=!!a&&a.length===n.length;return u&&W(a,function(f,d){var h=f.dataByAxis||[],p=n[d]||{},m=p.dataByAxis||[];u=u&&h.length===m.length,u&&W(h,function(S,_){var x=m[_]||{},E=S.seriesDataIndices||[],b=x.seriesDataIndices||[];u=u&&S.value===x.value&&S.axisType===x.axisType&&S.axisId===x.axisId&&E.length===b.length,u&&W(E,function(D,A){var O=b[A];u=u&&D.seriesIndex===O.seriesIndex&&D.dataIndex===O.dataIndex}),l&&W(S.seriesDataIndices,function(D){var A=D.seriesIndex,O=r[A],P=l[A];O&&P&&P.data!==O.data&&(u=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!u},e.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},e.prototype.dispose=function(n,r){Tt.node||!r.getDom()||(Sb(this,"_updatePosition"),this._tooltipContent.dispose(),yE("itemTooltip",r))},e.type="tooltip",e}(Mu);function qg(t,e,n){var r=e.ecModel,a;n?(a=new Oi(n,r,r),a=new Oi(e.option,a,r)):a=e;for(var l=t.length-1;l>=0;l--){var u=t[l];u&&(u instanceof Oi&&(u=u.get("tooltip",!0)),et(u)&&(u={formatter:u}),u&&(a=new Oi(u,a,r)))}return a}function iF(t,e){return t.dispatchAction||Qn(e.dispatchAction,e)}function Uq(t,e,n,r,a,l,u){var f=n.getSize(),d=f[0],h=f[1];return l!=null&&(t+d+l+2>r?t-=d+l:t+=l),u!=null&&(e+h+u>a?e-=h+u:e+=u),[t,e]}function Vq(t,e,n,r,a){var l=n.getSize(),u=l[0],f=l[1];return t=Math.min(t+u,r)-u,e=Math.min(e+f,a)-f,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function Hq(t,e,n,r){var a=n[0],l=n[1],u=Math.ceil(Math.SQRT2*r)+8,f=0,d=0,h=e.width,p=e.height;switch(t){case"inside":f=e.x+h/2-a/2,d=e.y+p/2-l/2;break;case"top":f=e.x+h/2-a/2,d=e.y-l-u;break;case"bottom":f=e.x+h/2-a/2,d=e.y+p+u;break;case"left":f=e.x-a-u,d=e.y+p/2-l/2;break;case"right":f=e.x+h+u,d=e.y+p/2-l/2}return[f,d]}function aF(t){return t==="center"||t==="middle"}function Gq(t,e,n){var r=Xx(t).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var l=ig(e,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),u=l.models[0];if(u){var f=n.getViewOfComponentModel(u),d;if(f.group.traverse(function(h){var p=yn(h).tooltipConfig;if(p&&p.name===t.name)return d=h,!0}),d)return{componentMainType:a,componentIndex:u.componentIndex,el:d}}}}const $q=Bq;function jq(t){$g(qz),t.registerComponentModel(Tq),t.registerComponentView($q),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ta),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ta)}var Yq=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(En),Wq=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){if(this.group.removeAll(),!!n.get("show")){var l=this.group,u=n.getModel("textStyle"),f=n.getModel("subtextStyle"),d=n.get("textAlign"),h=kt(n.get("textBaseline"),n.get("textVerticalAlign")),p=new ko({style:gc(u,{text:n.get("text"),fill:u.getTextColor()},{disableBox:!0}),z2:10}),m=p.getBoundingRect(),S=n.get("subtext"),_=new ko({style:gc(f,{text:S,fill:f.getTextColor(),y:m.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),x=n.get("link"),E=n.get("sublink"),b=n.get("triggerEvent",!0);p.silent=!x&&!b,_.silent=!E&&!b,x&&p.on("click",function(){Zk(x,"_"+n.get("target"))}),E&&_.on("click",function(){Zk(E,"_"+n.get("subtarget"))}),yn(p).eventData=yn(_).eventData=b?{componentType:"title",componentIndex:n.componentIndex}:null,l.add(p),S&&l.add(_);var D=l.getBoundingRect(),A=n.getBoxLayoutParams();A.width=D.width,A.height=D.height;var O=QT(A,{width:a.getWidth(),height:a.getHeight()},n.get("padding"));d||(d=n.get("left")||n.get("right"),d==="middle"&&(d="center"),d==="right"?O.x+=O.width:d==="center"&&(O.x+=O.width/2)),h||(h=n.get("top")||n.get("bottom"),h==="center"&&(h="middle"),h==="bottom"?O.y+=O.height:h==="middle"&&(O.y+=O.height/2),h=h||"top"),l.x=O.x,l.y=O.y,l.markRedraw();var P={align:d,verticalAlign:h};p.setStyle(P),_.setStyle(P),D=l.getBoundingRect();var I=O.margin,F=n.getItemStyle(["color","opacity"]);F.fill=n.get("backgroundColor");var U=new Kr({shape:{x:D.x-I[3],y:D.y-I[0],width:D.width+I[1]+I[3],height:D.height+I[0]+I[2],r:n.get("borderRadius")},style:F,subPixelOptimize:!0,silent:!0});l.add(U)}},e.type="title",e}(Mu);function Xq(t){t.registerComponentModel(Yq),t.registerComponentView(Wq)}var oF={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},qq=function(){function t(e){var n=this._condVal=et(e)?new RegExp(e):CL(e)?e:null;if(n==null){var r="";process.env.NODE_ENV!=="production"&&(r=na("Illegal regexp",e,"in")),Ht(r)}}return t.prototype.evaluate=function(e){var n=typeof e;return et(n)?this._condVal.test(e):Nn(n)?this._condVal.test(e+""):!1},t}(),Qq=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),Zq=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,n=0;n<e.length;n++)if(!e[n].evaluate())return!1;return!0},t}(),Kq=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,n=0;n<e.length;n++)if(e[n].evaluate())return!0;return!1},t}(),Jq=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),eQ=function(){function t(){}return t.prototype.evaluate=function(){for(var e=!!this.valueParser,n=this.getValue,r=n(this.valueGetterParam),a=e?this.valueParser(r):null,l=0;l<this.subCondList.length;l++)if(!this.subCondList[l].evaluate(e?a:r))return!1;return!0},t}();function SE(t,e){if(t===!0||t===!1){var n=new Qq;return n.value=t,n}var r="";return uF(t)||(process.env.NODE_ENV!=="production"&&(r=na("Illegal config. Expect a plain object but actually",t)),Ht(r)),t.and?lF("and",t,e):t.or?lF("or",t,e):t.not?tQ(t,e):nQ(t,e)}function lF(t,e,n){var r=e[t],a="";process.env.NODE_ENV!=="production"&&(a=na('"and"/"or" condition should only be `'+t+": [...]` and must not be empty array.","Illegal condition:",e)),Be(r)||Ht(a),r.length||Ht(a);var l=t==="and"?new Zq:new Kq;return l.children=ot(r,function(u){return SE(u,n)}),l.children.length||Ht(a),l}function tQ(t,e){var n=t.not,r="";process.env.NODE_ENV!=="production"&&(r=na('"not" condition should only be `not: {}`.',"Illegal condition:",t)),uF(n)||Ht(r);var a=new Jq;return a.child=SE(n,e),a.child||Ht(r),a}function nQ(t,e){for(var n="",r=e.prepareGetValue(t),a=[],l=kn(t),u=t.parser,f=u?NN(u):null,d=0;d<l.length;d++){var h=l[d];if(!(h==="parser"||e.valueGetterAttrMap.get(h))){var p=_u(oF,h)?oF[h]:h,m=t[h],S=f?f(m):m,_=W9(p,S)||p==="reg"&&new qq(S);_||(process.env.NODE_ENV!=="production"&&(n=na('Illegal relational operation: "'+h+'" in condition:',t)),Ht(n)),a.push(_)}}a.length||(process.env.NODE_ENV!=="production"&&(n=na("Relational condition must have at least one operator.","Illegal condition:",t)),Ht(n));var x=new eQ;return x.valueGetterParam=r,x.valueParser=f,x.getValue=e.getValue,x.subCondList=a,x}function uF(t){return it(t)&&!Ai(t)}var rQ=function(){function t(e,n){this._cond=SE(e,n)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function iQ(t,e){return new rQ(t,e)}var aQ={type:"echarts:filter",transform:function(t){for(var e=t.upstream,n,r=iQ(t.config,{valueGetterAttrMap:xt({dimension:!0}),prepareGetValue:function(f){var d="",h=f.dimension;_u(f,"dimension")||(process.env.NODE_ENV!=="production"&&(d=na('Relation condition must has prop "dimension" specified.',"Illegal condition:",f)),Ht(d));var p=e.getDimensionInfo(h);return p||(process.env.NODE_ENV!=="production"&&(d=na("Can not find dimension info via: "+h+`.
213
213
  `,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
214
214
  `,"Illegal condition:",f,`.
215
- `)),Ht(d)),{dimIdx:p.index}},getValue:function(f){return e.retrieveValueFromItem(n,f.dimIdx)}}),a=[],l=0,u=e.count();l<u;l++)n=e.getRawDataItem(l),r.evaluate()&&a.push(n);return{data:a}}},hE="";process.env.NODE_ENV!=="production"&&(hE=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" "));var uq={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,r="",a=rr(n);a.length||(process.env.NODE_ENV!=="production"&&(r="Empty `config` in sort transform."),Ht(r));var l=[];W(a,function(p){var m=p.dimension,S=p.order,_=p.parser,x=p.incomparable;if(m==null&&(process.env.NODE_ENV!=="production"&&(r='Sort transform config must has "dimension" specified.'+hE),Ht(r)),S!=="asc"&&S!=="desc"&&(process.env.NODE_ENV!=="production"&&(r='Sort transform config must has "order" specified.'+hE),Ht(r)),x&&x!=="min"&&x!=="max"){var E="";process.env.NODE_ENV!=="production"&&(E='incomparable must be "min" or "max" rather than "'+x+'".'),Ht(E)}if(S!=="asc"&&S!=="desc"){var b="";process.env.NODE_ENV!=="production"&&(b='order must be "asc" or "desc" rather than "'+S+'".'),Ht(b)}var D=e.getDimensionInfo(m);D||(process.env.NODE_ENV!=="production"&&(r=na("Can not find dimension info via: "+m+`.
215
+ `)),Ht(d)),{dimIdx:p.index}},getValue:function(f){return e.retrieveValueFromItem(n,f.dimIdx)}}),a=[],l=0,u=e.count();l<u;l++)n=e.getRawDataItem(l),r.evaluate()&&a.push(n);return{data:a}}},CE="";process.env.NODE_ENV!=="production"&&(CE=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" "));var oQ={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,r="",a=rr(n);a.length||(process.env.NODE_ENV!=="production"&&(r="Empty `config` in sort transform."),Ht(r));var l=[];W(a,function(p){var m=p.dimension,S=p.order,_=p.parser,x=p.incomparable;if(m==null&&(process.env.NODE_ENV!=="production"&&(r='Sort transform config must has "dimension" specified.'+CE),Ht(r)),S!=="asc"&&S!=="desc"&&(process.env.NODE_ENV!=="production"&&(r='Sort transform config must has "order" specified.'+CE),Ht(r)),x&&x!=="min"&&x!=="max"){var E="";process.env.NODE_ENV!=="production"&&(E='incomparable must be "min" or "max" rather than "'+x+'".'),Ht(E)}if(S!=="asc"&&S!=="desc"){var b="";process.env.NODE_ENV!=="production"&&(b='order must be "asc" or "desc" rather than "'+S+'".'),Ht(b)}var D=e.getDimensionInfo(m);D||(process.env.NODE_ENV!=="production"&&(r=na("Can not find dimension info via: "+m+`.
216
216
  `,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
217
217
  `,"Illegal config:",p,`.
218
- `)),Ht(r));var A=_?yN(_):null;_&&!A&&(process.env.NODE_ENV!=="production"&&(r=na("Invalid parser name "+_+`.
218
+ `)),Ht(r));var A=_?NN(_):null;_&&!A&&(process.env.NODE_ENV!=="production"&&(r=na("Invalid parser name "+_+`.
219
219
  `,"Illegal config:",p,`.
220
- `)),Ht(r)),l.push({dimIdx:D.index,parser:A,comparator:new SN(S,x)})});var u=e.sourceFormat;u!==ki&&u!==Fo&&(process.env.NODE_ENV!=="production"&&(r='sourceFormat "'+u+'" is not supported yet'),Ht(r));for(var f=[],d=0,h=e.count();d<h;d++)f.push(e.getRawDataItem(d));return f.sort(function(p,m){for(var S=0;S<l.length;S++){var _=l[S],x=e.retrieveValueFromItem(p,_.dimIdx),E=e.retrieveValueFromItem(m,_.dimIdx);_.parser&&(x=_.parser(x),E=_.parser(E));var b=_.comparator.evaluate(x,E);if(b!==0)return b}return 0}),{data:f}}};function sq(t){t.registerTransform(lq),t.registerTransform(uq)}var fq=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return e.prototype.init=function(n,r,a){t.prototype.init.call(this,n,r,a),this._sourceManager=new EN(this),DN(this)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),DN(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Al},e}(En),cq=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return e.type="dataset",e}(Du);function dq(t){t.registerComponentModel(fq),t.registerComponentView(cq)}var Ll=As.CMD;function kv(t,e){return Math.abs(t-e)<1e-5}function pE(t){var e=t.data,n=t.len(),r=[],a,l=0,u=0,f=0,d=0;function h(J,ie){a&&a.length>2&&r.push(a),a=[J,ie]}function p(J,ie,ce,fe){kv(J,ce)&&kv(ie,fe)||a.push(J,ie,ce,fe,ce,fe)}function m(J,ie,ce,fe,Ne,ae){var ge=Math.abs(ie-J),pe=Math.tan(ge/4)*4/3,Le=ie<J?-1:1,Ge=Math.cos(J),St=Math.sin(J),It=Math.cos(ie),Dn=Math.sin(ie),Xt=Ge*Ne+ce,Mn=St*ae+fe,ln=It*Ne+ce,zt=Dn*ae+fe,Ft=Ne*pe*Le,$e=ae*pe*Le;a.push(Xt-Ft*St,Mn+$e*Ge,ln+Ft*Dn,zt-$e*It,ln,zt)}for(var S,_,x,E,b=0;b<n;){var D=e[b++],A=b===1;switch(A&&(l=e[b],u=e[b+1],f=l,d=u,(D===Ll.L||D===Ll.C||D===Ll.Q)&&(a=[f,d])),D){case Ll.M:l=f=e[b++],u=d=e[b++],h(f,d);break;case Ll.L:S=e[b++],_=e[b++],p(l,u,S,_),l=S,u=_;break;case Ll.C:a.push(e[b++],e[b++],e[b++],e[b++],l=e[b++],u=e[b++]);break;case Ll.Q:S=e[b++],_=e[b++],x=e[b++],E=e[b++],a.push(l+2/3*(S-l),u+2/3*(_-u),x+2/3*(S-x),E+2/3*(_-E),x,E),l=x,u=E;break;case Ll.A:var O=e[b++],P=e[b++],I=e[b++],F=e[b++],U=e[b++],H=e[b++]+U;b+=1;var j=!e[b++];S=Math.cos(U)*I+O,_=Math.sin(U)*F+P,A?(f=S,d=_,h(f,d)):p(l,u,S,_),l=Math.cos(H)*I+O,u=Math.sin(H)*F+P;for(var X=(j?-1:1)*Math.PI/2,G=U;j?G>H:G<H;G+=X){var ee=j?Math.max(G+X,H):Math.min(G+X,H);m(G,ee,O,P,I,F)}break;case Ll.R:f=l=e[b++],d=u=e[b++],S=f+e[b++],_=d+e[b++],h(S,d),p(S,d,S,_),p(S,_,f,_),p(f,_,f,d),p(f,d,S,d);break;case Ll.Z:a&&p(l,u,f,d),l=f,u=d;break}}return a&&a.length>2&&r.push(a),r}function gE(t,e,n,r,a,l,u,f,d,h){if(kv(t,n)&&kv(e,r)&&kv(a,u)&&kv(l,f)){d.push(u,f);return}var p=2/h,m=p*p,S=u-t,_=f-e,x=Math.sqrt(S*S+_*_);S/=x,_/=x;var E=n-t,b=r-e,D=a-u,A=l-f,O=E*E+b*b,P=D*D+A*A;if(O<m&&P<m){d.push(u,f);return}var I=S*E+_*b,F=-S*D-_*A,U=O-I*I,H=P-F*F;if(U<m&&I>=0&&H<m&&F>=0){d.push(u,f);return}var j=[],X=[];Es(t,n,a,u,.5,j),Es(e,r,l,f,.5,X),gE(j[0],X[0],j[1],X[1],j[2],X[2],j[3],X[3],d,h),gE(j[4],X[4],j[5],X[5],j[6],X[6],j[7],X[7],d,h)}function vq(t,e){var n=pE(t),r=[];e=e||1;for(var a=0;a<n.length;a++){var l=n[a],u=[],f=l[0],d=l[1];u.push(f,d);for(var h=2;h<l.length;){var p=l[h++],m=l[h++],S=l[h++],_=l[h++],x=l[h++],E=l[h++];gE(f,d,p,m,S,_,x,E,u,e),f=x,d=E}r.push(u)}return r}function Wz(t,e,n){var r=t[e],a=t[1-e],l=Math.abs(r/a),u=Math.ceil(Math.sqrt(l*n)),f=Math.floor(n/u);f===0&&(f=1,u=n);for(var d=[],h=0;h<u;h++)d.push(f);var p=u*f,m=n-p;if(m>0)for(var h=0;h<m;h++)d[h%u]+=1;return d}function Xz(t,e,n){for(var r=t.r0,a=t.r,l=t.startAngle,u=t.endAngle,f=Math.abs(u-l),d=f*a,h=a-r,p=d>Math.abs(h),m=Wz([d,h],p?0:1,e),S=(p?f:h)/m.length,_=0;_<m.length;_++)for(var x=(p?h:f)/m[_],E=0;E<m[_];E++){var b={};p?(b.startAngle=l+S*_,b.endAngle=l+S*(_+1),b.r0=r+x*E,b.r=r+x*(E+1)):(b.startAngle=l+x*E,b.endAngle=l+x*(E+1),b.r0=r+S*_,b.r=r+S*(_+1)),b.clockwise=t.clockwise,b.cx=t.cx,b.cy=t.cy,n.push(b)}}function hq(t,e,n){for(var r=t.width,a=t.height,l=r>a,u=Wz([r,a],l?0:1,e),f=l?"width":"height",d=l?"height":"width",h=l?"x":"y",p=l?"y":"x",m=t[f]/u.length,S=0;S<u.length;S++)for(var _=t[d]/u[S],x=0;x<u[S];x++){var E={};E[h]=S*m,E[p]=x*_,E[f]=m,E[d]=_,E.x+=t.x,E.y+=t.y,n.push(E)}}function qz(t,e,n,r){return t*r-n*e}function pq(t,e,n,r,a,l,u,f){var d=n-t,h=r-e,p=u-a,m=f-l,S=qz(p,m,d,h);if(Math.abs(S)<1e-6)return null;var _=t-a,x=e-l,E=qz(_,x,p,m)/S;return E<0||E>1?null:new ht(E*d+t,E*h+e)}function gq(t,e,n){var r=new ht;ht.sub(r,n,e),r.normalize();var a=new ht;ht.sub(a,t,e);var l=a.dot(r);return l}function Nv(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function mq(t,e,n){for(var r=t.length,a=[],l=0;l<r;l++){var u=t[l],f=t[(l+1)%r],d=pq(u[0],u[1],f[0],f[1],e.x,e.y,n.x,n.y);d&&a.push({projPt:gq(d,e,n),pt:d,idx:l})}if(a.length<2)return[{points:t},{points:t}];a.sort(function(b,D){return b.projPt-D.projPt});var h=a[0],p=a[a.length-1];if(p.idx<h.idx){var m=h;h=p,p=m}for(var S=[h.pt.x,h.pt.y],_=[p.pt.x,p.pt.y],x=[S],E=[_],l=h.idx+1;l<=p.idx;l++)Nv(x,t[l].slice());Nv(x,_),Nv(x,S);for(var l=p.idx+1;l<=h.idx+r;l++)Nv(E,t[l%r].slice());return Nv(E,S),Nv(E,_),[{points:x},{points:E}]}function Qz(t){var e=t.points,n=[],r=[];FO(e,n,r);var a=new Wt(n[0],n[1],r[0]-n[0],r[1]-n[1]),l=a.width,u=a.height,f=a.x,d=a.y,h=new ht,p=new ht;return l>u?(h.x=p.x=f+l/2,h.y=d,p.y=d+u):(h.y=p.y=d+u/2,h.x=f,p.x=f+l),mq(e,h,p)}function v1(t,e,n,r){if(n===1)r.push(e);else{var a=Math.floor(n/2),l=t(e);v1(t,l[0],a,r),v1(t,l[1],n-a,r)}return r}function yq(t,e){for(var n=[],r=0;r<e;r++)n.push(yT(t));return n}function _q(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function Sq(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}function Cq(t,e){var n=[],r=t.shape,a;switch(t.type){case"rect":hq(r,e,n),a=Kr;break;case"sector":Xz(r,e,n),a=dc;break;case"circle":Xz({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},e,n),a=dc;break;default:var l=t.getComputedTransform(),u=l?Math.sqrt(Math.max(l[0]*l[0]+l[1]*l[1],l[2]*l[2]+l[3]*l[3])):1,f=ot(vq(t.getUpdatedPathProxy(),u),function(D){return Sq(D)}),d=f.length;if(d===0)v1(Qz,{points:f[0]},e,n);else if(d===e)for(var h=0;h<d;h++)n.push({points:f[h]});else{var p=0,m=ot(f,function(D){var A=[],O=[];FO(D,A,O);var P=(O[1]-A[1])*(O[0]-A[0]);return p+=P,{poly:D,area:P}});m.sort(function(D,A){return A.area-D.area});for(var S=e,h=0;h<d;h++){var _=m[h];if(S<=0)break;var x=h===d-1?S:Math.ceil(_.area/p*e);x<0||(v1(Qz,{points:_.poly},x,n),S-=x)}}a=CT;break}if(!a)return yq(t,e);for(var E=[],h=0;h<n.length;h++){var b=new a;b.setShape(n[h]),_q(t,b),E.push(b)}return E}function wq(t,e){var n=t.length,r=e.length;if(n===r)return[t,e];for(var a=[],l=[],u=n<r?t:e,f=Math.min(n,r),d=Math.abs(r-n)/6,h=(f-2)/6,p=Math.ceil(d/h)+1,m=[u[0],u[1]],S=d,_=2;_<f;){var x=u[_-2],E=u[_-1],b=u[_++],D=u[_++],A=u[_++],O=u[_++],P=u[_++],I=u[_++];if(S<=0){m.push(b,D,A,O,P,I);continue}for(var F=Math.min(S,p-1)+1,U=1;U<=F;U++){var H=U/F;Es(x,b,A,P,H,a),Es(E,D,O,I,H,l),x=a[3],E=l[3],m.push(a[1],l[1],a[2],l[2],x,E),b=a[5],D=l[5],A=a[6],O=l[6]}S-=F-1}return u===t?[m,e]:[t,m]}function Zz(t,e){for(var n=t.length,r=t[n-2],a=t[n-1],l=[],u=0;u<e.length;)l[u++]=r,l[u++]=a;return l}function xq(t,e){for(var n,r,a,l=[],u=[],f=0;f<Math.max(t.length,e.length);f++){var d=t[f],h=e[f],p=void 0,m=void 0;d?h?(n=wq(d,h),p=n[0],m=n[1],r=p,a=m):(m=Zz(a||d,d),p=d):(p=Zz(r||h,h),m=h),l.push(p),u.push(m)}return[l,u]}function Kz(t){for(var e=0,n=0,r=0,a=t.length,l=0,u=a-2;l<a;u=l,l+=2){var f=t[u],d=t[u+1],h=t[l],p=t[l+1],m=f*p-h*d;e+=m,n+=(f+h)*m,r+=(d+p)*m}return e===0?[t[0]||0,t[1]||0]:[n/e/3,r/e/3,e]}function Tq(t,e,n,r){for(var a=(t.length-2)/6,l=1/0,u=0,f=t.length,d=f-2,h=0;h<a;h++){for(var p=h*6,m=0,S=0;S<f;S+=2){var _=S===0?p:(p+S-2)%d+2,x=t[_]-n[0],E=t[_+1]-n[1],b=e[S]-r[0],D=e[S+1]-r[1],A=b-x,O=D-E;m+=A*A+O*O}m<l&&(l=m,u=h)}return u}function bq(t){for(var e=[],n=t.length,r=0;r<n;r+=2)e[r]=t[n-r-2],e[r+1]=t[n-r-1];return e}function Eq(t,e,n,r){for(var a=[],l,u=0;u<t.length;u++){var f=t[u],d=e[u],h=Kz(f),p=Kz(d);l==null&&(l=h[2]<0!=p[2]<0);var m=[],S=[],_=0,x=1/0,E=[],b=f.length;l&&(f=bq(f));for(var D=Tq(f,d,h,p)*6,A=b-2,O=0;O<A;O+=2){var P=(D+O)%A+2;m[O+2]=f[P]-h[0],m[O+3]=f[P+1]-h[1]}if(m[0]=f[D]-h[0],m[1]=f[D+1]-h[1],n>0)for(var I=r/n,F=-r/2;F<=r/2;F+=I){for(var U=Math.sin(F),H=Math.cos(F),j=0,O=0;O<f.length;O+=2){var X=m[O],G=m[O+1],ee=d[O]-p[0],J=d[O+1]-p[1],ie=ee*H-J*U,ce=ee*U+J*H;E[O]=ie,E[O+1]=ce;var fe=ie-X,Ne=ce-G;j+=fe*fe+Ne*Ne}if(j<x){x=j,_=F;for(var ae=0;ae<E.length;ae++)S[ae]=E[ae]}}else for(var ge=0;ge<b;ge+=2)S[ge]=d[ge]-p[0],S[ge+1]=d[ge+1]-p[1];a.push({from:m,to:S,fromCp:h,toCp:p,rotation:-_})}return a}function h1(t){return t.__isCombineMorphing}var Jz="__mOriginal_";function p1(t,e,n){var r=Jz+e,a=t[r]||t[e];t[r]||(t[r]=t[e]);var l=n.replace,u=n.after,f=n.before;t[e]=function(){var d=arguments,h;return f&&f.apply(this,d),l?h=l.apply(this,d):h=a.apply(this,d),u&&u.apply(this,d),h}}function Qg(t,e){var n=Jz+e;t[n]&&(t[e]=t[n],t[n]=null)}function eF(t,e){for(var n=0;n<t.length;n++)for(var r=t[n],a=0;a<r.length;){var l=r[a],u=r[a+1];r[a++]=e[0]*l+e[2]*u+e[4],r[a++]=e[1]*l+e[3]*u+e[5]}}function tF(t,e){var n=t.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),a=xq(pE(n),pE(r)),l=a[0],u=a[1],f=t.getComputedTransform(),d=e.getComputedTransform();function h(){this.transform=null}f&&eF(l,f),d&&eF(u,d),p1(e,"updateTransform",{replace:h}),e.transform=null;var p=Eq(l,u,10,Math.PI),m=[];p1(e,"buildPath",{replace:function(S){for(var _=e.__morphT,x=1-_,E=[],b=0;b<p.length;b++){var D=p[b],A=D.from,O=D.to,P=D.rotation*_,I=D.fromCp,F=D.toCp,U=Math.sin(P),H=Math.cos(P);M0(E,I,F,_);for(var j=0;j<A.length;j+=2){var X=A[j],G=A[j+1],ee=O[j],J=O[j+1],ie=X*x+ee*_,ce=G*x+J*_;m[j]=ie*H-ce*U+E[0],m[j+1]=ie*U+ce*H+E[1]}var fe=m[0],Ne=m[1];S.moveTo(fe,Ne);for(var j=2;j<A.length;){var ee=m[j++],J=m[j++],ae=m[j++],ge=m[j++],pe=m[j++],Le=m[j++];fe===ee&&Ne===J&&ae===pe&&ge===Le?S.lineTo(pe,Le):S.bezierCurveTo(ee,J,ae,ge,pe,Le),fe=pe,Ne=Le}}}})}function mE(t,e,n){if(!t||!e)return e;var r=n.done,a=n.during;tF(t,e),e.__morphT=0;function l(){Qg(e,"buildPath"),Qg(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Vt({during:function(u){e.dirtyShape(),a&&a(u)},done:function(){l(),r&&r()}},n)),e}function Dq(t,e,n,r,a,l){var u=16;t=a===n?0:Math.round(32767*(t-n)/(a-n)),e=l===r?0:Math.round(32767*(e-r)/(l-r));for(var f=0,d,h=(1<<u)/2;h>0;h/=2){var p=0,m=0;(t&h)>0&&(p=1),(e&h)>0&&(m=1),f+=h*h*(3*p^m),m===0&&(p===1&&(t=h-1-t,e=h-1-e),d=t,t=e,e=d)}return f}function g1(t){var e=1/0,n=1/0,r=-1/0,a=-1/0,l=ot(t,function(f){var d=f.getBoundingRect(),h=f.getComputedTransform(),p=d.x+d.width/2+(h?h[4]:0),m=d.y+d.height/2+(h?h[5]:0);return e=Math.min(p,e),n=Math.min(m,n),r=Math.max(p,r),a=Math.max(m,a),[p,m]}),u=ot(l,function(f,d){return{cp:f,z:Dq(f[0],f[1],e,n,r,a),path:t[d]}});return u.sort(function(f,d){return f.z-d.z}).map(function(f){return f.path})}function nF(t){return Cq(t.path,t.count)}function yE(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Mq(t,e,n){var r=[];function a(I){for(var F=0;F<I.length;F++){var U=I[F];h1(U)?a(U.childrenRef()):U instanceof Gt&&r.push(U)}}a(t);var l=r.length;if(!l)return yE();var u=n.dividePath||nF,f=u({path:e,count:l});if(f.length!==l)return console.error("Invalid morphing: unmatched splitted path"),yE();r=g1(r),f=g1(f);for(var d=n.done,h=n.during,p=n.individualDelay,m=new Kp,S=0;S<l;S++){var _=r[S],x=f[S];x.parent=e,x.copyTransform(m),p||tF(_,x)}e.__isCombineMorphing=!0,e.childrenRef=function(){return f};function E(I){for(var F=0;F<f.length;F++)f[F].addSelfToZr(I)}p1(e,"addSelfToZr",{after:function(I){E(I)}}),p1(e,"removeSelfFromZr",{after:function(I){for(var F=0;F<f.length;F++)f[F].removeSelfFromZr(I)}});function b(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Qg(e,"addSelfToZr"),Qg(e,"removeSelfFromZr")}var D=f.length;if(p)for(var A=D,O=function(){A--,A===0&&(b(),d&&d())},S=0;S<D;S++){var P=p?Vt({delay:(n.delay||0)+p(S,D,r[S],f[S]),done:O},n):n;mE(r[S],f[S],P)}else e.__morphT=0,e.animateTo({__morphT:1},Vt({during:function(I){for(var F=0;F<D;F++){var U=f[F];U.__morphT=e.__morphT,U.dirtyShape()}h&&h(I)},done:function(){b();for(var I=0;I<t.length;I++)Qg(t[I],"updateTransform");d&&d()}},n));return e.__zr&&E(e.__zr),{fromIndividuals:r,toIndividuals:f,count:D}}function Rq(t,e,n){var r=e.length,a=[],l=n.dividePath||nF;function u(_){for(var x=0;x<_.length;x++){var E=_[x];h1(E)?u(E.childrenRef()):E instanceof Gt&&a.push(E)}}if(h1(t)){u(t.childrenRef());var f=a.length;if(f<r)for(var d=0,h=f;h<r;h++)a.push(yT(a[d++%f]));a.length=r}else{a=l({path:t,count:r});for(var p=t.getComputedTransform(),h=0;h<a.length;h++)a[h].setLocalTransform(p);if(a.length!==r)return console.error("Invalid morphing: unmatched splitted path"),yE()}a=g1(a),e=g1(e);for(var m=n.individualDelay,h=0;h<r;h++){var S=m?Vt({delay:(n.delay||0)+m(h,r,a[h],e[h])},n):n;mE(a[h],e[h],S)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function rF(t){return Be(t[0])}function iF(t,e){for(var n=[],r=t.length,a=0;a<r;a++)n.push({one:t[a],many:[]});for(var a=0;a<e.length;a++){var l=e[a].length,u=void 0;for(u=0;u<l;u++)n[u%r].many.push(e[a][u])}for(var f=0,a=r-1;a>=0;a--)if(!n[a].many.length){var d=n[f].many;if(d.length<=1)if(f)f=0;else return n;var l=d.length,h=Math.ceil(l/2);n[a].many=d.slice(h,l),n[f].many=d.slice(0,h),f++}return n}var Aq={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r<t.count;r++){var a=yT(t.path);a.setStyle("opacity",n),e.push(a)}return e},split:null};function _E(t,e,n,r,a,l){if(!t.length||!e.length)return;var u=h_("update",r,a);if(!(u&&u.duration>0))return;var f=r.getModel("universalTransition").get("delay"),d=Object.assign({setToFinal:!0},u),h,p;rF(t)&&(h=t,p=e),rF(e)&&(h=e,p=t);function m(D,A,O,P,I){var F=D.many,U=D.one;if(F.length===1&&!I){var H=A?F[0]:U,j=A?U:F[0];if(h1(H))m({many:[H],one:j},!0,O,P,!0);else{var X=f?Vt({delay:f(O,P)},d):d;mE(H,j,X),l(H,j,H,j,X)}}else for(var G=Vt({dividePath:Aq[n],individualDelay:f&&function(Ne,ae,ge,pe){return f(Ne+O,P)}},d),ee=A?Mq(F,U,G):Rq(U,F,G),J=ee.fromIndividuals,ie=ee.toIndividuals,ce=J.length,fe=0;fe<ce;fe++){var X=f?Vt({delay:f(fe,ce)},d):d;l(J[fe],ie[fe],A?F[fe]:D.one,A?D.one:F[fe],X)}}for(var S=h?h===t:t.length>e.length,_=h?iF(p,h):iF(S?e:t,[S?t:e]),x=0,E=0;E<_.length;E++)x+=_[E].many.length;for(var b=0,E=0;E<_.length;E++)m(_[E],S,b,x),b+=_[E].many.length}function Lc(t){if(!t)return[];if(Be(t)){for(var e=[],n=0;n<t.length;n++)e.push(Lc(t[n]));return e}var r=[];return t.traverse(function(a){a instanceof Gt&&!a.disableMorphing&&!a.invisible&&!a.ignore&&r.push(a)}),r}var aF=1e4,Lq=jn();function Oq(t){for(var e=t.dimensions,n=0;n<e.length;n++){var r=t.getDimensionInfo(e[n]);if(r&&r.otherDims.itemGroupId===0)return e[n]}}function oF(t){var e=[];return W(t,function(n){var r=n.data;if(r.count()>aF){process.env.NODE_ENV!=="production"&&Fr("Universal transition is disabled on large data > 10k.");return}for(var a=r.getIndices(),l=Oq(r),u=0;u<a.length;u++)e.push({dataGroupId:n.dataGroupId,data:r,dim:n.dim||l,divide:n.divide,dataIndex:u})}),e}function SE(t,e,n){t.traverse(function(r){r instanceof Gt&&Io(r,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})})}function CE(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function Pv(t){t.stopAnimation(),t.isGroup&&t.traverse(function(e){e.stopAnimation()})}function kq(t,e,n){var r=h_("update",n,e);r&&t.traverse(function(a){if(a instanceof sv){var l=sG(a);l&&a.animateFrom({style:l},r)}})}function Nq(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++){var a=t[r],l=e[r];if(a.data.getId(a.dataIndex)!==l.data.getId(l.dataIndex))return!1}return!0}function lF(t,e,n){var r=oF(t),a=oF(e);function l(D,A,O,P,I){(O||D)&&A.animateFrom({style:O&&O!==D?Re(Re({},O.style),D.style):D.style},I)}function u(D){for(var A=0;A<D.length;A++)if(D[A].dim)return D[A].dim}var f=u(r),d=u(a),h=!1;function p(D,A){return function(O){var P=O.data,I=O.dataIndex;if(A)return P.getId(I);var F=O.dataGroupId,U=D?f||d:d||f,H=U&&P.getDimensionInfo(U),j=H&&H.ordinalMeta;if(H){var X=P.get(H.name,I);return j&&j.categories[X]||X+""}var G=P.getRawDataItem(I);return G&&G.groupId?G.groupId+"":F||P.getId(I)}}var m=Nq(r,a),S={};if(!m)for(var _=0;_<a.length;_++){var x=a[_],E=x.data.getItemGraphicEl(x.dataIndex);E&&(S[E.id]=!0)}function b(D,A){var O=r[A],P=a[D],I=P.data.hostModel,F=O.data.getItemGraphicEl(O.dataIndex),U=P.data.getItemGraphicEl(P.dataIndex);if(F===U){U&&kq(U,P.dataIndex,I);return}F&&S[F.id]||U&&(Pv(U),F?(Pv(F),CE(F),h=!0,_E(Lc(F),Lc(U),P.divide,I,D,l)):SE(U,I,D))}new Nb(r,a,p(!0,m),p(!1,m),null,"multiple").update(b).updateManyToOne(function(D,A){var O=a[D],P=O.data,I=P.hostModel,F=P.getItemGraphicEl(O.dataIndex),U=br(ot(A,function(H){return r[H].data.getItemGraphicEl(r[H].dataIndex)}),function(H){return H&&H!==F&&!S[H.id]});F&&(Pv(F),U.length?(W(U,function(H){Pv(H),CE(H)}),h=!0,_E(Lc(U),Lc(F),O.divide,I,D,l)):SE(F,I,O.dataIndex))}).updateOneToMany(function(D,A){var O=r[A],P=O.data.getItemGraphicEl(O.dataIndex);if(!(P&&S[P.id])){var I=br(ot(D,function(U){return a[U].data.getItemGraphicEl(a[U].dataIndex)}),function(U){return U&&U!==P}),F=a[D[0]].data.hostModel;I.length&&(W(I,function(U){return Pv(U)}),P?(Pv(P),CE(P),h=!0,_E(Lc(P),Lc(I),O.divide,F,D[0],l)):W(I,function(U){return SE(U,F,D[0])}))}}).updateManyToMany(function(D,A){new Nb(A,D,function(O){return r[O].data.getId(r[O].dataIndex)},function(O){return a[O].data.getId(a[O].dataIndex)}).update(function(O,P){b(D[O],A[P])}).execute()}).execute(),h&&W(e,function(D){var A=D.data,O=A.hostModel,P=O&&n.getViewOfSeriesModel(O),I=h_("update",O,0);P&&O.isAnimationEnabled()&&I&&I.duration>0&&P.group.traverse(function(F){F instanceof Gt&&!F.animators.length&&F.animateFrom({style:{opacity:0}},I)})})}function uF(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function sF(t){return Be(t)?t.sort().join(","):t}function Fs(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function Pq(t,e){var n=xt(),r=xt(),a=xt();W(t.oldSeries,function(u,f){var d=t.oldDataGroupIds[f],h=t.oldData[f],p=uF(u),m=sF(p);r.set(m,{dataGroupId:d,data:h}),Be(p)&&W(p,function(S){a.set(S,{key:m,dataGroupId:d,data:h})})});function l(u){n.get(u)&&Fr("Duplicated seriesKey in universalTransition "+u)}return W(e.updatedSeries,function(u){if(u.isUniversalTransitionEnabled()&&u.isAnimationEnabled()){var f=u.get("dataGroupId"),d=u.getData(),h=uF(u),p=sF(h),m=r.get(p);if(m)process.env.NODE_ENV!=="production"&&l(p),n.set(p,{oldSeries:[{dataGroupId:m.dataGroupId,divide:Fs(m.data),data:m.data}],newSeries:[{dataGroupId:f,divide:Fs(d),data:d}]});else if(Be(h)){process.env.NODE_ENV!=="production"&&l(p);var S=[];W(h,function(E){var b=r.get(E);b.data&&S.push({dataGroupId:b.dataGroupId,divide:Fs(b.data),data:b.data})}),S.length&&n.set(p,{oldSeries:S,newSeries:[{dataGroupId:f,data:d,divide:Fs(d)}]})}else{var _=a.get(h);if(_){var x=n.get(_.key);x||(x={oldSeries:[{dataGroupId:_.dataGroupId,data:_.data,divide:Fs(_.data)}],newSeries:[]},n.set(_.key,x)),x.newSeries.push({dataGroupId:f,data:d,divide:Fs(d)})}}}}),n}function fF(t,e){for(var n=0;n<t.length;n++){var r=e.seriesIndex!=null&&e.seriesIndex===t[n].seriesIndex||e.seriesId!=null&&e.seriesId===t[n].id;if(r)return n}}function Iq(t,e,n,r){var a=[],l=[];W(rr(t.from),function(u){var f=fF(e.oldSeries,u);f>=0&&a.push({dataGroupId:e.oldDataGroupIds[f],data:e.oldData[f],divide:Fs(e.oldData[f]),dim:u.dimension})}),W(rr(t.to),function(u){var f=fF(n.updatedSeries,u);if(f>=0){var d=n.updatedSeries[f].getData();l.push({dataGroupId:e.oldDataGroupIds[f],data:d,divide:Fs(d),dim:u.dimension})}}),a.length>0&&l.length>0&&lF(a,l,r)}function zq(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,n,r){W(rr(r.seriesTransition),function(a){W(rr(a.to),function(l){for(var u=r.updatedSeries,f=0;f<u.length;f++)(l.seriesIndex!=null&&l.seriesIndex===u[f].seriesIndex||l.seriesId!=null&&l.seriesId===u[f].id)&&(u[f][P_]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(e,n,r){var a=Lq(n);if(a.oldSeries&&r.updatedSeries&&r.optionChanged){var l=r.seriesTransition;if(l)W(rr(l),function(_){Iq(_,a,r,n)});else{var u=Pq(a,r);W(u.keys(),function(_){var x=u.get(_);lF(x.oldSeries,x.newSeries,n)})}W(r.updatedSeries,function(_){_[P_]&&(_[P_]=!1)})}for(var f=e.getSeries(),d=a.oldSeries=[],h=a.oldDataGroupIds=[],p=a.oldData=[],m=0;m<f.length;m++){var S=f[m].getData();S.count()<aF&&(d.push(f[m]),h.push(f[m].get("dataGroupId")),p.push(S))}})}function cF(t,e,n){var r=$f.createCanvas(),a=e.getWidth(),l=e.getHeight(),u=r.style;return u&&(u.position="absolute",u.left="0",u.top="0",u.width=a+"px",u.height=l+"px",r.setAttribute("data-zr-dom-id",t)),r.width=a*n,r.height=l*n,r}var Fq=function(t){mn(e,t);function e(n,r,a){var l=t.call(this)||this;l.motionBlur=!1,l.lastFrameAlpha=.7,l.dpr=1,l.virtual=!1,l.config={},l.incremental=!1,l.zlevel=0,l.maxRepaintRectCount=5,l.__dirty=!0,l.__firstTimePaint=!0,l.__used=!1,l.__drawIndex=0,l.__startIndex=0,l.__endIndex=0,l.__prevStartIndex=null,l.__prevEndIndex=null;var u;a=a||W0,typeof n=="string"?u=cF(n,r,a):it(n)&&(u=n,n=u.id),l.id=n,l.dom=u;var f=u.style;return f&&(sL(u),u.onselectstart=function(){return!1},f.padding="0",f.margin="0",f.borderWidth="0"),l.painter=r,l.dpr=a,l}return 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 n=this.dpr;this.domBack=cF("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},e.prototype.createRepaintRects=function(n,r,a,l){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var u=[],f=this.maxRepaintRectCount,d=!1,h=new Wt(0,0,0,0);function p(A){if(!(!A.isFinite()||A.isZero()))if(u.length===0){var O=new Wt(0,0,0,0);O.copy(A),u.push(O)}else{for(var P=!1,I=1/0,F=0,U=0;U<u.length;++U){var H=u[U];if(H.intersect(A)){var j=new Wt(0,0,0,0);j.copy(H),j.union(A),u[U]=j,P=!0;break}else if(d){h.copy(A),h.union(H);var X=A.width*A.height,G=H.width*H.height,ee=h.width*h.height,J=ee-X-G;J<I&&(I=J,F=U)}}if(d&&(u[F].union(A),P=!0),!P){var O=new Wt(0,0,0,0);O.copy(A),u.push(O)}d||(d=u.length>=f)}}for(var m=this.__startIndex;m<this.__endIndex;++m){var S=n[m];if(S){var _=S.shouldBePainted(a,l,!0,!0),x=S.__isRendered&&(S.__dirty&La||!_)?S.getPrevPaintRect():null;x&&p(x);var E=_&&(S.__dirty&La||!S.__isRendered)?S.getPaintRect():null;E&&p(E)}}for(var m=this.__prevStartIndex;m<this.__prevEndIndex;++m){var S=r[m],_=S.shouldBePainted(a,l,!0,!0);if(S&&(!_||!S.__zr)&&S.__isRendered){var x=S.getPrevPaintRect();x&&p(x)}}var b;do{b=!1;for(var m=0;m<u.length;){if(u[m].isZero()){u.splice(m,1);continue}for(var D=m+1;D<u.length;)u[m].intersect(u[D])?(b=!0,u[m].union(u[D]),u.splice(D,1)):D++;m++}}while(b);return this._paintRects=u,u},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(n,r){var a=this.dpr,l=this.dom,u=l.style,f=this.domBack;u&&(u.width=n+"px",u.height=r+"px"),l.width=n*a,l.height=r*a,f&&(f.width=n*a,f.height=r*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(n,r,a){var l=this.dom,u=this.ctx,f=l.width,d=l.height;r=r||this.clearColor;var h=this.motionBlur&&!n,p=this.lastFrameAlpha,m=this.dpr,S=this;h&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(l,0,0,f/m,d/m));var _=this.domBack;function x(E,b,D,A){if(u.clearRect(E,b,D,A),r&&r!=="transparent"){var O=void 0;if(b0(r)){var P=r.global||r.__width===D&&r.__height===A;O=P&&r.__canvasGradient||gb(u,r,{x:0,y:0,width:D,height:A}),r.__canvasGradient=O,r.__width=D,r.__height=A}else oH(r)&&(r.scaleX=r.scaleX||m,r.scaleY=r.scaleY||m,O=mb(u,r,{dirty:function(){S.setUnpainted(),S.__painter.refresh()}}));u.save(),u.fillStyle=O||r,u.fillRect(E,b,D,A),u.restore()}h&&(u.save(),u.globalAlpha=p,u.drawImage(_,E,b,D,A),u.restore())}!a||h?x(0,0,f,d):a.length&&W(a,function(E){x(E.x*m,E.y*m,E.width*m,E.height*m)})},e}(_l);const wE=Fq;var dF=1e5,Oc=314159,m1=.01,Bq=.001;function Uq(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function Vq(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}var Hq=function(){function t(e,n,r,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var l=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=r=Re({},r||{}),this.dpr=r.devicePixelRatio||W0,this._singleCanvas=l,this.root=e;var u=e.style;u&&(sL(e),e.innerHTML=""),this.storage=n;var f=this._zlevelList;this._prevDisplayList=[];var d=this._layers;if(l){var p=e,m=p.width,S=p.height;r.width!=null&&(m=r.width),r.height!=null&&(S=r.height),this.dpr=r.devicePixelRatio||1,p.width=m*this.dpr,p.height=S*this.dpr,this._width=m,this._height=S;var _=new wE(p,this,this.dpr);_.__builtin__=!0,_.initContext(),d[Oc]=_,_.zlevel=Oc,f.push(Oc),this._domRoot=e}else{this._width=H_(e,0,r),this._height=H_(e,1,r);var h=this._domRoot=Vq(this._width,this._height);e.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 e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var n=this.storage.getDisplayList(!0),r=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,r,e,this._redrawId);for(var l=0;l<a.length;l++){var u=a[l],f=this._layers[u];if(!f.__builtin__&&f.refresh){var d=l===0?this._backgroundColor:null;f.refresh(d)}}return this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var n=e.length,r=this._hoverlayer;if(r&&r.clear(),!!n){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},l,u=0;u<n;u++){var f=e[u];f.__inHover&&(r||(r=this._hoverlayer=this.getLayer(dF)),l||(l=r.ctx,l.save()),xc(l,f,a,u===n-1))}l&&l.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(dF)},t.prototype.paintOne=function(e,n){yP(e,n)},t.prototype._paintList=function(e,n,r,a){if(this._redrawId===a){r=r||!1,this._updateLayerStatus(e);var l=this._doPaintList(e,n,r),u=l.finished,f=l.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),f&&this._paintHoverList(e),u)this.eachLayer(function(h){h.afterBrush&&h.afterBrush()});else{var d=this;cx(function(){d._paintList(e,n,r,a)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(Oc).ctx,n=this._domRoot.width,r=this._domRoot.height;e.clearRect(0,0,n,r),this.eachBuiltinLayer(function(a){a.virtual&&e.drawImage(a.dom,0,0,n,r)})},t.prototype._doPaintList=function(e,n,r){for(var a=this,l=[],u=this._opts.useDirtyRect,f=0;f<this._zlevelList.length;f++){var d=this._zlevelList[f],h=this._layers[d];h.__builtin__&&h!==this._hoverlayer&&(h.__dirty||r)&&l.push(h)}for(var p=!0,m=!1,S=function(E){var b=l[E],D=b.ctx,A=u&&b.createRepaintRects(e,n,_._width,_._height),O=r?b.__startIndex:b.__drawIndex,P=!r&&b.incremental&&Date.now,I=P&&Date.now(),F=b.zlevel===_._zlevelList[0]?_._backgroundColor:null;if(b.__startIndex===b.__endIndex)b.clear(!1,F,A);else if(O===b.__startIndex){var U=e[O];(!U.incremental||!U.notClear||r)&&b.clear(!1,F,A)}O===-1&&(console.error("For some unknown reason. drawIndex is -1"),O=b.__startIndex);var H,j=function(J){var ie={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(H=O;H<b.__endIndex;H++){var ce=e[H];if(ce.__inHover&&(m=!0),a._doPaintEl(ce,b,u,J,ie,H===b.__endIndex-1),P){var fe=Date.now()-I;if(fe>15)break}}ie.prevElClipPaths&&D.restore()};if(A)if(A.length===0)H=b.__endIndex;else for(var X=_.dpr,G=0;G<A.length;++G){var ee=A[G];D.save(),D.beginPath(),D.rect(ee.x*X,ee.y*X,ee.width*X,ee.height*X),D.clip(),j(ee),D.restore()}else D.save(),j(),D.restore();b.__drawIndex=H,b.__drawIndex<b.__endIndex&&(p=!1)},_=this,x=0;x<l.length;x++)S(x);return Tt.wxa&&W(this._layers,function(E){E&&E.ctx&&E.ctx.draw&&E.ctx.draw()}),{finished:p,needsRefreshHover:m}},t.prototype._doPaintEl=function(e,n,r,a,l,u){var f=n.ctx;if(r){var d=e.getPaintRect();(!a||d&&d.intersect(a))&&(xc(f,e,l,u),e.setPrevPaintRect(d))}else xc(f,e,l,u)},t.prototype.getLayer=function(e,n){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Oc);var r=this._layers[e];return r||(r=new wE("zr_"+e,this,this.dpr),r.zlevel=e,r.__builtin__=!0,this._layerConfig[e]?cn(r,this._layerConfig[e],!0):this._layerConfig[e-m1]&&cn(r,this._layerConfig[e-m1],!0),n&&(r.virtual=n),this.insertLayer(e,r),r.initContext()),r},t.prototype.insertLayer=function(e,n){var r=this._layers,a=this._zlevelList,l=a.length,u=this._domRoot,f=null,d=-1;if(r[e]){process.env.NODE_ENV!=="production"&&jf("ZLevel "+e+" has been used already");return}if(!Uq(n)){process.env.NODE_ENV!=="production"&&jf("Layer of zlevel "+e+" is not valid");return}if(l>0&&e>a[0]){for(d=0;d<l-1&&!(a[d]<e&&a[d+1]>e);d++);f=r[a[d]]}if(a.splice(d+1,0,e),r[e]=n,!n.virtual)if(f){var h=f.dom;h.nextSibling?u.insertBefore(n.dom,h.nextSibling):u.appendChild(n.dom)}else u.firstChild?u.insertBefore(n.dom,u.firstChild):u.appendChild(n.dom);n.__painter=this},t.prototype.eachLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var l=r[a];e.call(n,this._layers[l],l)}},t.prototype.eachBuiltinLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var l=r[a],u=this._layers[l];u.__builtin__&&e.call(n,u,l)}},t.prototype.eachOtherLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var l=r[a],u=this._layers[l];u.__builtin__||e.call(n,u,l)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(m,S){m.__dirty=m.__used=!1});function n(m){l&&(l.__endIndex!==m&&(l.__dirty=!0),l.__endIndex=m)}if(this._singleCanvas)for(var r=1;r<e.length;r++){var a=e[r];if(a.zlevel!==e[r-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var l=null,u=0,f,d;for(d=0;d<e.length;d++){var a=e[d],h=a.zlevel,p=void 0;f!==h&&(f=h,u=0),a.incremental?(p=this.getLayer(h+Bq,this._needsManuallyCompositing),p.incremental=!0,u=1):p=this.getLayer(h+(u>0?m1:0),this._needsManuallyCompositing),p.__builtin__||jf("ZLevel "+h+" has been used by unkown layer "+p.id),p!==l&&(p.__used=!0,p.__startIndex!==d&&(p.__dirty=!0),p.__startIndex=d,p.incremental?p.__drawIndex=-1:p.__drawIndex=d,n(d),l=p),a.__dirty&La&&!a.__inHover&&(p.__dirty=!0,p.incremental&&p.__drawIndex<0&&(p.__drawIndex=d))}n(d),this.eachBuiltinLayer(function(m,S){!m.__used&&m.getElementCount()>0&&(m.__dirty=!0,m.__startIndex=m.__endIndex=m.__drawIndex=0),m.__dirty&&m.__drawIndex<0&&(m.__drawIndex=m.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,W(this._layers,function(n){n.setUnpainted()})},t.prototype.configLayer=function(e,n){if(n){var r=this._layerConfig;r[e]?cn(r[e],n,!0):r[e]=n;for(var a=0;a<this._zlevelList.length;a++){var l=this._zlevelList[a];if(l===e||l===e+m1){var u=this._layers[l];cn(u,r[e],!0)}}}},t.prototype.delLayer=function(e){var n=this._layers,r=this._zlevelList,a=n[e];a&&(a.dom.parentNode.removeChild(a.dom),delete n[e],r.splice(dn(r,e),1))},t.prototype.resize=function(e,n){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var a=this._opts,l=this.root;if(e!=null&&(a.width=e),n!=null&&(a.height=n),e=H_(l,0,a),n=H_(l,1,a),r.style.display="",this._width!==e||n!==this._height){r.style.width=e+"px",r.style.height=n+"px";for(var u in this._layers)this._layers.hasOwnProperty(u)&&this._layers[u].resize(e,n);this.refresh(!0)}this._width=e,this._height=n}else{if(e==null||n==null)return;this._width=e,this._height=n,this.getLayer(Oc).resize(e,n)}return this},t.prototype.clearLayer=function(e){var n=this._layers[e];n&&n.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Oc].dom;var n=new wE("image",this,e.pixelRatio||this.dpr);n.initContext(),n.clear(!1,e.backgroundColor||this._backgroundColor);var r=n.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=n.dom.width,l=n.dom.height;this.eachLayer(function(m){m.__builtin__?r.drawImage(m.dom,0,0,a,l):m.renderToCanvas&&(r.save(),m.renderToCanvas(r),r.restore())})}else for(var u={inHover:!1,viewWidth:this._width,viewHeight:this._height},f=this.storage.getDisplayList(!0),d=0,h=f.length;d<h;d++){var p=f[d];xc(r,p,u,d===h-1)}return n.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();const Gq=Hq;function $q(t){t.registerPainter("canvas",Gq)}const jq={main:"szld-main"};$g([QX,WX,TX,dq,sq,d7,UW,zq,$q]);const Yq=t=>{const e=st.useRef(null),n=st.useRef(null),r=st.useRef(null);st.useEffect(()=>(e.current&&n.current&&(r.current=new ResizeObserver(u=>{for(const f of u)f.target===e.current&&l()}),r.current.observe(e.current)),()=>{var u;e.current&&((u=r.current)==null||u.unobserve(e.current)),r.current=null}),[e.current,n.current]),st.useEffect(()=>{e.current&&!n.current&&(n.current=Yj(e.current))},[e.current]),st.useEffect(()=>{n.current&&e.current&&n.current.setOption(t.option)},[n.current]);const a=()=>{n.current&&n.current.resize()},{run:l}=cU.useDebounceFn(a,{wait:300});return ze("div",{ref:e,className:jq.main})},Wq={editableCellValueWrap:"szld-editableCellValueWrap"},vF=st.createContext(null),Xq=({index:t,...e})=>{const[n]=dt.Form.useForm();return ze(dt.Form,{form:n,component:!1,children:ze(vF.Provider,{value:n,children:ze("tr",{...e})})})};function qq(t){const{title:e,editable:n,children:r,dataIndex:a,record:l,rules:u,onChange:f,type:d="input",valueProps:h,...p}=t,m=st.useRef(null),S=st.useContext(vF),_=async()=>{try{const b=await S.validateFields();f({...l,...b})}catch(b){console.log("Save failed:",b)}},x=()=>ze(JA,{valueType:d,valueProps:{...h,onBlur:_,onPressEnter:_},inputRef:m});let E=r;return n&&(E=ze(dt.Form.Item,{style:{margin:0},initialValue:l[a],name:a,rules:u,children:x()})),ze("td",{children:E})}function Qq(t){const{columns:e,onChange:n,...r}=t,a={body:{row:Xq,cell:qq}},l=e==null?void 0:e.map(u=>u.editable?{...u,onCell:f=>({...u,record:f,onChange:n})}:u);return ze(dt.Table,{...r,components:a,rowClassName:()=>Wq.editableRow,columns:l})}function xE(){return xE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},xE.apply(this,arguments)}var TE={exports:{}},an={};var hF;function Zq(){if(hF)return an;hF=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,u=t?Symbol.for("react.provider"):60109,f=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,h=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,S=t?Symbol.for("react.suspense_list"):60120,_=t?Symbol.for("react.memo"):60115,x=t?Symbol.for("react.lazy"):60116,E=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,D=t?Symbol.for("react.responder"):60118,A=t?Symbol.for("react.scope"):60119;function O(I){if(typeof I=="object"&&I!==null){var F=I.$$typeof;switch(F){case e:switch(I=I.type,I){case d:case h:case r:case l:case a:case m:return I;default:switch(I=I&&I.$$typeof,I){case f:case p:case x:case _:case u:return I;default:return F}}case n:return F}}}function P(I){return O(I)===h}return an.AsyncMode=d,an.ConcurrentMode=h,an.ContextConsumer=f,an.ContextProvider=u,an.Element=e,an.ForwardRef=p,an.Fragment=r,an.Lazy=x,an.Memo=_,an.Portal=n,an.Profiler=l,an.StrictMode=a,an.Suspense=m,an.isAsyncMode=function(I){return P(I)||O(I)===d},an.isConcurrentMode=P,an.isContextConsumer=function(I){return O(I)===f},an.isContextProvider=function(I){return O(I)===u},an.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===e},an.isForwardRef=function(I){return O(I)===p},an.isFragment=function(I){return O(I)===r},an.isLazy=function(I){return O(I)===x},an.isMemo=function(I){return O(I)===_},an.isPortal=function(I){return O(I)===n},an.isProfiler=function(I){return O(I)===l},an.isStrictMode=function(I){return O(I)===a},an.isSuspense=function(I){return O(I)===m},an.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===r||I===h||I===l||I===a||I===m||I===S||typeof I=="object"&&I!==null&&(I.$$typeof===x||I.$$typeof===_||I.$$typeof===u||I.$$typeof===f||I.$$typeof===p||I.$$typeof===b||I.$$typeof===D||I.$$typeof===A||I.$$typeof===E)},an.typeOf=O,an}var on={};var pF;function Kq(){return pF||(pF=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,u=t?Symbol.for("react.provider"):60109,f=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,h=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,S=t?Symbol.for("react.suspense_list"):60120,_=t?Symbol.for("react.memo"):60115,x=t?Symbol.for("react.lazy"):60116,E=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,D=t?Symbol.for("react.responder"):60118,A=t?Symbol.for("react.scope"):60119;function O(Se){return typeof Se=="string"||typeof Se=="function"||Se===r||Se===h||Se===l||Se===a||Se===m||Se===S||typeof Se=="object"&&Se!==null&&(Se.$$typeof===x||Se.$$typeof===_||Se.$$typeof===u||Se.$$typeof===f||Se.$$typeof===p||Se.$$typeof===b||Se.$$typeof===D||Se.$$typeof===A||Se.$$typeof===E)}function P(Se){if(typeof Se=="object"&&Se!==null){var Zt=Se.$$typeof;switch(Zt){case e:var Et=Se.type;switch(Et){case d:case h:case r:case l:case a:case m:return Et;default:var Pn=Et&&Et.$$typeof;switch(Pn){case f:case p:case x:case _:case u:return Pn;default:return Zt}}case n:return Zt}}}var I=d,F=h,U=f,H=u,j=e,X=p,G=r,ee=x,J=_,ie=n,ce=l,fe=a,Ne=m,ae=!1;function ge(Se){return ae||(ae=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),pe(Se)||P(Se)===d}function pe(Se){return P(Se)===h}function Le(Se){return P(Se)===f}function Ge(Se){return P(Se)===u}function St(Se){return typeof Se=="object"&&Se!==null&&Se.$$typeof===e}function It(Se){return P(Se)===p}function Dn(Se){return P(Se)===r}function Xt(Se){return P(Se)===x}function Mn(Se){return P(Se)===_}function ln(Se){return P(Se)===n}function zt(Se){return P(Se)===l}function Ft(Se){return P(Se)===a}function $e(Se){return P(Se)===m}on.AsyncMode=I,on.ConcurrentMode=F,on.ContextConsumer=U,on.ContextProvider=H,on.Element=j,on.ForwardRef=X,on.Fragment=G,on.Lazy=ee,on.Memo=J,on.Portal=ie,on.Profiler=ce,on.StrictMode=fe,on.Suspense=Ne,on.isAsyncMode=ge,on.isConcurrentMode=pe,on.isContextConsumer=Le,on.isContextProvider=Ge,on.isElement=St,on.isForwardRef=It,on.isFragment=Dn,on.isLazy=Xt,on.isMemo=Mn,on.isPortal=ln,on.isProfiler=zt,on.isStrictMode=Ft,on.isSuspense=$e,on.isValidElementType=O,on.typeOf=P}()),on}(function(t){process.env.NODE_ENV==="production"?t.exports=Zq():t.exports=Kq()})(TE);function bE(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return st.Children.forEach(t,function(r){r==null&&!e.keepEmpty||(Array.isArray(r)?n=n.concat(bE(r)):TE.exports.isFragment(r)&&r.props?n=n.concat(bE(r.props.children,e)):n.push(r))}),n}function Jq(t,e){typeof t=="function"?t(e):gu(t)==="object"&&t&&"current"in t&&(t.current=e)}function eQ(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.filter(function(a){return a});return r.length<=1?r[0]:function(a){e.forEach(function(l){Jq(l,a)})}}function tQ(t){var e,n,r=TE.exports.isMemo(t)?t.type.type:t.type;return!(typeof r=="function"&&!(!((e=r.prototype)===null||e===void 0)&&e.render)||typeof t=="function"&&!(!((n=t.prototype)===null||n===void 0)&&n.render))}function gF(t){return t instanceof HTMLElement?t:qA.findDOMNode(t)}var mF=function(){if(typeof Map<"u")return Map;function t(e,n){var r=-1;return e.some(function(a,l){return a[0]===n?(r=l,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(n){var r=t(this.__entries__,n),a=this.__entries__[r];return a&&a[1]},e.prototype.set=function(n,r){var a=t(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},e.prototype.delete=function(n){var r=this.__entries__,a=t(r,n);~a&&r.splice(a,1)},e.prototype.has=function(n){return!!~t(this.__entries__,n)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var a=0,l=this.__entries__;a<l.length;a++){var u=l[a];n.call(r,u[1],u[0])}},e}()}(),EE=typeof window<"u"&&typeof document<"u"&&window.document===document,y1=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),nQ=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(y1):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),rQ=2;function iQ(t,e){var n=!1,r=!1,a=0;function l(){n&&(n=!1,t()),r&&f()}function u(){nQ(l)}function f(){var d=Date.now();if(n){if(d-a<rQ)return;r=!0}else n=!0,r=!1,setTimeout(u,e);a=d}return f}var aQ=20,oQ=["top","right","bottom","left","width","height","size","weight"],lQ=typeof MutationObserver<"u",uQ=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=iQ(this.refresh.bind(this),aQ)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var n=this.observers_,r=n.indexOf(e);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return e.forEach(function(n){return n.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!EE||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),lQ?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!EE||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var n=e.propertyName,r=n===void 0?"":n,a=oQ.some(function(l){return!!~r.indexOf(l)});a&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),yF=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var a=r[n];Object.defineProperty(t,a,{value:e[a],enumerable:!1,writable:!1,configurable:!0})}return t},Iv=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||y1},_F=S1(0,0,0,0);function _1(t){return parseFloat(t)||0}function SF(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(r,a){var l=t["border-"+a+"-width"];return r+_1(l)},0)}function sQ(t){for(var e=["top","right","bottom","left"],n={},r=0,a=e;r<a.length;r++){var l=a[r],u=t["padding-"+l];n[l]=_1(u)}return n}function fQ(t){var e=t.getBBox();return S1(0,0,e.width,e.height)}function cQ(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return _F;var r=Iv(t).getComputedStyle(t),a=sQ(r),l=a.left+a.right,u=a.top+a.bottom,f=_1(r.width),d=_1(r.height);if(r.boxSizing==="border-box"&&(Math.round(f+l)!==e&&(f-=SF(r,"left","right")+l),Math.round(d+u)!==n&&(d-=SF(r,"top","bottom")+u)),!vQ(t)){var h=Math.round(f+l)-e,p=Math.round(d+u)-n;Math.abs(h)!==1&&(f-=h),Math.abs(p)!==1&&(d-=p)}return S1(a.left,a.top,f,d)}var dQ=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof Iv(t).SVGGraphicsElement}:function(t){return t instanceof Iv(t).SVGElement&&typeof t.getBBox=="function"}}();function vQ(t){return t===Iv(t).document.documentElement}function hQ(t){return EE?dQ(t)?fQ(t):cQ(t):_F}function pQ(t){var e=t.x,n=t.y,r=t.width,a=t.height,l=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,u=Object.create(l.prototype);return yF(u,{x:e,y:n,width:r,height:a,top:n,right:e+r,bottom:a+n,left:e}),u}function S1(t,e,n,r){return{x:t,y:e,width:n,height:r}}var gQ=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=S1(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=hQ(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t}(),mQ=function(){function t(e,n){var r=pQ(n);yF(this,{target:e,contentRect:r})}return t}(),yQ=function(){function t(e,n,r){if(this.activeObservations_=[],this.observations_=new mF,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=r}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof Iv(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new gQ(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof Iv(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new mQ(r.target,r.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),CF=typeof WeakMap<"u"?new WeakMap:new mF,wF=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=uQ.getInstance(),r=new yQ(e,n,this);CF.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach(function(t){wF.prototype[t]=function(){var e;return(e=CF.get(this))[t].apply(e,arguments)}});var _Q=function(){return typeof y1.ResizeObserver<"u"?y1.ResizeObserver:wF}(),Au=new Map;function xF(t){t.forEach(function(e){var n,r=e.target;(n=Au.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var TF=new _Q(xF);process.env.NODE_ENV,process.env.NODE_ENV;function SQ(t,e){Au.has(t)||(Au.set(t,new Set),TF.observe(t)),Au.get(t).add(e)}function CQ(t,e){Au.has(t)&&(Au.get(t).delete(e),Au.get(t).size||(TF.unobserve(t),Au.delete(t)))}function wQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bF(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,fA(r.key),r)}}function xQ(t,e,n){return e&&bF(t.prototype,e),n&&bF(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function DE(t,e){return DE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},DE(t,e)}function TQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&DE(t,e)}function C1(t){return C1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},C1(t)}function bQ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function EQ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function DQ(t,e){if(e&&(gu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EQ(t)}function MQ(t){var e=bQ();return function(){var r=C1(t),a;if(e){var l=C1(this).constructor;a=Reflect.construct(r,arguments,l)}else a=r.apply(this,arguments);return DQ(this,a)}}var RQ=function(t){TQ(n,t);var e=MQ(n);function n(){return wQ(this,n),e.apply(this,arguments)}return xQ(n,[{key:"render",value:function(){return this.props.children}}]),n}(Nt.Component),ME=Nt.createContext(null);function AQ(t){var e=t.children,n=t.onBatchResize,r=Nt.useRef(0),a=Nt.useRef([]),l=Nt.useContext(ME),u=Nt.useCallback(function(f,d,h){r.current+=1;var p=r.current;a.current.push({size:f,element:d,data:h}),Promise.resolve().then(function(){p===r.current&&(n==null||n(a.current),a.current=[])}),l==null||l(f,d,h)},[n,l]);return Nt.createElement(ME.Provider,{value:u},e)}function LQ(t){var e=t.children,n=t.disabled,r=Nt.useRef(null),a=Nt.useRef(null),l=Nt.useContext(ME),u=typeof e=="function",f=u?e(r):e,d=Nt.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),h=!u&&Nt.isValidElement(f)&&tQ(f),p=h?f.ref:null,m=Nt.useMemo(function(){return eQ(p,r)},[p,r]),S=Nt.useRef(t);S.current=t;var _=Nt.useCallback(function(x){var E=S.current,b=E.onResize,D=E.data,A=x.getBoundingClientRect(),O=A.width,P=A.height,I=x.offsetWidth,F=x.offsetHeight,U=Math.floor(O),H=Math.floor(P);if(d.current.width!==U||d.current.height!==H||d.current.offsetWidth!==I||d.current.offsetHeight!==F){var j={width:U,height:H,offsetWidth:I,offsetHeight:F};d.current=j;var X=I===Math.round(O)?O:I,G=F===Math.round(P)?P:F,ee=$n($n({},j),{},{offsetWidth:X,offsetHeight:G});l==null||l(ee,x,D),b&&Promise.resolve().then(function(){b(ee,x)})}},[]);return Nt.useEffect(function(){var x=gF(r.current)||gF(a.current);return x&&!n&&SQ(x,_),function(){return CQ(x,_)}},[r.current,n]),Nt.createElement(RQ,{ref:a},h?Nt.cloneElement(f,{ref:m}):f)}var OQ="rc-observer-key";function EF(t){var e=t.children,n=typeof e=="function"?[e]:bE(e);return process.env.NODE_ENV!=="production"&&(n.length>1?Aw(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&Aw(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(r,a){var l=(r==null?void 0:r.key)||"".concat(OQ,"-").concat(a);return Nt.createElement(LQ,xE({},t,{key:l}),r)})}EF.Collection=AQ;const zv={grid:"szld-grid",cell:"szld-cell",editBox:"szld-editBox",editForm:"szld-editForm"};function kQ(t){const{columns:e,scroll:n,onChange:r,...a}=t,[l,u]=st.useState(0),f=e.filter(({width:_})=>!_).length,d=e.map(_=>_.width?_:{..._,width:Math.floor(l/f)}),h=st.useRef(),[p]=st.useState(()=>{const _={};return Object.defineProperty(_,"scrollLeft",{get:()=>{var x,E;return h.current?(E=(x=h.current)==null?void 0:x.state)==null?void 0:E.scrollLeft:null},set:x=>{h.current&&h.current.scrollTo({scrollLeft:x})}}),_}),m=()=>{var _;(_=h.current)==null||_.resetAfterIndices({columnIndex:0,shouldForceUpdate:!0})};st.useEffect(()=>m,[l]);const S=(_,{scrollbarSize:x,ref:E,onScroll:b})=>{E.current=p;const D=_.length*54;return ze(dU.VariableSizeGrid,{ref:h,className:zv.grid,columnCount:d.length,columnWidth:A=>{const{width:O}=d[A];return D>n.y&&A===d.length-1?O-x-1:O},height:n.y,rowCount:_.length,rowHeight:()=>54,width:l,onScroll:({scrollLeft:A})=>{b({scrollLeft:A})},children:({columnIndex:A,rowIndex:O,style:P})=>ze("div",{className:Hd(zv.cell,{[zv.cellLast]:A===d.length-1}),style:P,children:ze(NQ,{data:_[O],onChange:r,column:d[A]})})})};return ze(EF,{onResize:({width:_})=>{u(_)},children:ze(dt.Table,{...a,className:zv.table,columns:d,scroll:n,pagination:!1,components:{body:S}})})}function NQ(t){const{column:e,data:n,onChange:r}=t,[a,l]=st.useState(!1),u=st.useRef(null),[f]=dt.Form.useForm();st.useEffect(()=>{a&&u.current.focus()},[a]);const d=async()=>{try{const m=await f.validateFields();h(),r&&r({...n,...m})}catch(m){console.log("Save failed:",m)}},h=()=>{l(!a),e.dataIndex&&f.setFieldsValue({[e.dataIndex]:n[e.dataIndex]})};let p=n[e.dataIndex];return e.editable&&(p=a?ze(dt.Form,{form:f,className:zv.editForm,children:ze(dt.Form.Item,{style:{margin:0},name:e.dataIndex,rules:e.rules,children:ze(dt.Input,{ref:u,onPressEnter:d,onBlur:d,...e.inputProps})})}):ze("div",{className:zv.editBox,onClick:h,children:n[e.dataIndex]})),ze(h0,{children:p})}const DF=t=>{const{auth:e=!0,...n}=t;return e?ze(dt.Button,{...n}):null},PQ=t=>{const{PId:e,auths:n,...r}=t,a=st.useMemo(()=>!!(n&&n.find(l=>l.PId===e)),[e,n]);return ze(DF,{...r,auth:a})},Er={main:"szld-main",item:"szld-item",tail:"szld-tail",node:"szld-node",content:"szld-content",collpase:"szld-collpase",btn:"szld-btn",title:"szld-title",dateWrapper:"szld-dateWrapper",remark:"szld-remark",itemActive:"szld-itemActive",itemDone:"szld-itemDone",itemUnDo:"szld-itemUnDo"},IQ=t=>{const{data:e,current:n}=t,[r,a]=st.useState(!1),l=st.useMemo(()=>!n||e.length===0?0:e.findIndex(h=>h.PNId===n),[n,e]),u=st.useMemo(()=>l>1?r?0:l-1:0,[l,r]),f=()=>{a(!0)};return Tr("ul",{className:Er.main,children:[l>1&&!r&&Tr("li",{className:Hd(Er.item,Er.itemDone),children:[ze("div",{className:Er.tail}),ze("div",{className:Er.node}),ze("div",{className:Er.content,children:Tr("div",{className:Er.collpase,children:[Tr("div",{children:["已收起",ze("span",{children:l-1}),"个节点"]}),Tr("a",{className:Er.btn,onClick:f,children:["展开节点",ze(cV,{})]})]})})]}),e.slice(u).map((d,h)=>Tr("li",{className:Hd(Er.item,l===h+u?Er.itemActive:l>h+u?Er.itemDone:Er.itemUnDo),children:[ze("div",{className:Er.tail}),ze("div",{className:Er.node}),Tr("div",{className:Er.content,children:[ze("div",{className:Er.title,children:d.PNName}),Tr("div",{className:Er.dateWrapper,children:[d.PlanFinishDate&&Tr("span",{children:["预计完成时间: ",d.PlanFinishDate]}),d.UpdateTime&&Tr("span",{style:{color:"#333",fontWeight:"bold"},children:["实际完成时间: ",d.UpdateTime]}),r&&l-1===h&&Tr("a",{className:Er.btn,onClick:()=>a(!1),children:["收起节点 ",ze(mV,{})]})]}),d.Remark&&ze("div",{className:Er.remark,children:d.Remark})]})]},d.PNId))]})},zQ=t=>{const{current:e,data:n,...r}=t;return(()=>{dt.Modal.info({icon:null,title:"流程节点",width:700,content:ze(IQ,{current:e,data:n}),closable:!0,footer:null,maskClosable:!0,...r})})(),null},FQ=(t,e)=>{const n=new URL(t),r=new URL(e);return n.protocol===r.protocol&&n.host===r.host&&n.port===r.port},BQ=t=>{const e=new URL(t).href.split("/");return e[e.length-1]},UQ=t=>{var n;return(n=t.headers.get("content-disposition"))==null?void 0:n.split(";")[1].split("=")[1]},VQ=(t,e)=>{const n=e||BQ(t);if(FQ(t,window.location.href)){RE(t,n);return}let r=e;fetch(t,{method:"get"}).then(a=>(r||(r=UQ(a)),a.blob())).then(a=>{MF(a,r||n)}).catch(()=>{RE(t,"")})},MF=(t,e)=>{let n=window.URL.createObjectURL(t);const r=window.navigator;if(r.msSaveOrOpenBlob){r.msSaveOrOpenBlob(t,e);return}RE(n,e),window.URL.revokeObjectURL(n)},RE=(t,e)=>{let n=document.createElement("a");n.style.display="none",n.href=t,n.target="_blank",n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)},HQ=Object.freeze(Object.defineProperty({__proto__:null,downloadUrl:VQ,downloadBlob:MF},Symbol.toStringTag,{value:"Module"}));class GQ{constructor(e){sU(this,"options",{id:"",canvasId:"verifyCanvas",width:100,height:30,type:"blend",code:""});this.options=e}GVerify(){this.options.numArr="0,1,2,3,4,5,6,7,8,9".split(","),this.options.letterArr=this.getAllLetter(),this._init(),this.refresh()}_init(){const e=document.getElementById(this.options.id),n=document.createElement("canvas");n.id=this.options.canvasId,n.width=Number(this.options.width),n.height=Number(this.options.height),n.style.cursor="pointer",n.innerHTML="您的浏览器版本不支持canvas",e&&e.appendChild(n),n.onclick=()=>{this.refresh()}}refresh(){this.options.code="";const e=document.getElementById(this.options.canvasId);let n,r=[];if(e.getContext)n=e.getContext("2d");else return;n.textBaseline="middle",n.fillStyle=this.randomColor(180,240),n.fillRect(0,0,this.options.width,this.options.height),this.options.type=="blend"?r=this.options.numArr.concat(this.options.letterArr):this.options.type=="number"?r=this.options.numArr:r=this.options.letterArr;for(let a=1;a<=4;a++){const l=r[this.randomNum(0,r.length)];this.options.code+=l,n.font="20px SimHei",n.fillStyle=this.randomColor(50,160),n.shadowBlur=this.randomNum(-3,3),n.shadowColor="rgba(0, 0, 0, 0.3)";const u=Number(this.options.width)/5*a,f=Number(this.options.height)/2,d=this.randomNum(-30,30);n.translate(u,f),n.rotate(d*Math.PI/180),n.fillText(l,0,0),n.rotate(-d*Math.PI/180),n.translate(-u,-f)}for(let a=0;a<2;a++)n.strokeStyle=this.randomColor(40,180),n.beginPath(),n.moveTo(this.randomNum(0,Number(this.options.width)/2),this.randomNum(0,Number(this.options.height)/2)),n.lineTo(this.randomNum(0,Number(this.options.width)/2),this.randomNum(0,Number(this.options.height))),n.stroke();for(let a=0;a<Number(this.options.width)/10;a++)n.fillStyle=this.randomColor(0,255),n.beginPath(),n.arc(this.randomNum(0,this.options.width),this.randomNum(0,this.options.height),1,0,2*Math.PI),n.fill()}validate(e){const n=e.toLowerCase(),r=this.options.code.toLowerCase();return n==r}getAllLetter(){return"a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z".split(",")}randomNum(e,n){return Math.floor(Math.random()*(n-e)+e)}randomColor(e,n){const r=this.randomNum(e,n),a=this.randomNum(e,n),l=this.randomNum(e,n);return"rgb("+r+","+a+","+l+")"}}const $Q=Object.freeze(Object.defineProperty({__proto__:null,getGVerify:GQ},Symbol.toStringTag,{value:"Module"}));en.AuthButton=DF,en.BackHeader=xV,en.CoralButton=PQ,en.CreateForm=KA,en.Echarts=Yq,en.EditTable=Qq,en.SearchTable=$V,en.UploadFile=ZA,en.VirtualTable=kQ,en.download=HQ,en.fileType=TV,en.showWorkFlow=zQ,en.utils=NV,en.verfyCode=$Q,Object.defineProperty(en,Symbol.toStringTag,{value:"Module"})});
220
+ `)),Ht(r)),l.push({dimIdx:D.index,parser:A,comparator:new IN(S,x)})});var u=e.sourceFormat;u!==ki&&u!==Fo&&(process.env.NODE_ENV!=="production"&&(r='sourceFormat "'+u+'" is not supported yet'),Ht(r));for(var f=[],d=0,h=e.count();d<h;d++)f.push(e.getRawDataItem(d));return f.sort(function(p,m){for(var S=0;S<l.length;S++){var _=l[S],x=e.retrieveValueFromItem(p,_.dimIdx),E=e.retrieveValueFromItem(m,_.dimIdx);_.parser&&(x=_.parser(x),E=_.parser(E));var b=_.comparator.evaluate(x,E);if(b!==0)return b}return 0}),{data:f}}};function lQ(t){t.registerTransform(aQ),t.registerTransform(oQ)}var uQ=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return e.prototype.init=function(n,r,a){t.prototype.init.call(this,n,r,a),this._sourceManager=new HN(this),GN(this)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),GN(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Al},e}(En),sQ=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return e.type="dataset",e}(Mu);function fQ(t){t.registerComponentModel(uQ),t.registerComponentView(sQ)}var Ll=As.CMD;function Pv(t,e){return Math.abs(t-e)<1e-5}function wE(t){var e=t.data,n=t.len(),r=[],a,l=0,u=0,f=0,d=0;function h(J,ie){a&&a.length>2&&r.push(a),a=[J,ie]}function p(J,ie,ce,fe){Pv(J,ce)&&Pv(ie,fe)||a.push(J,ie,ce,fe,ce,fe)}function m(J,ie,ce,fe,Ne,ae){var ge=Math.abs(ie-J),pe=Math.tan(ge/4)*4/3,Le=ie<J?-1:1,Ge=Math.cos(J),St=Math.sin(J),It=Math.cos(ie),Dn=Math.sin(ie),Xt=Ge*Ne+ce,Mn=St*ae+fe,ln=It*Ne+ce,zt=Dn*ae+fe,Ft=Ne*pe*Le,$e=ae*pe*Le;a.push(Xt-Ft*St,Mn+$e*Ge,ln+Ft*Dn,zt-$e*It,ln,zt)}for(var S,_,x,E,b=0;b<n;){var D=e[b++],A=b===1;switch(A&&(l=e[b],u=e[b+1],f=l,d=u,(D===Ll.L||D===Ll.C||D===Ll.Q)&&(a=[f,d])),D){case Ll.M:l=f=e[b++],u=d=e[b++],h(f,d);break;case Ll.L:S=e[b++],_=e[b++],p(l,u,S,_),l=S,u=_;break;case Ll.C:a.push(e[b++],e[b++],e[b++],e[b++],l=e[b++],u=e[b++]);break;case Ll.Q:S=e[b++],_=e[b++],x=e[b++],E=e[b++],a.push(l+2/3*(S-l),u+2/3*(_-u),x+2/3*(S-x),E+2/3*(_-E),x,E),l=x,u=E;break;case Ll.A:var O=e[b++],P=e[b++],I=e[b++],F=e[b++],U=e[b++],H=e[b++]+U;b+=1;var j=!e[b++];S=Math.cos(U)*I+O,_=Math.sin(U)*F+P,A?(f=S,d=_,h(f,d)):p(l,u,S,_),l=Math.cos(H)*I+O,u=Math.sin(H)*F+P;for(var X=(j?-1:1)*Math.PI/2,G=U;j?G>H:G<H;G+=X){var ee=j?Math.max(G+X,H):Math.min(G+X,H);m(G,ee,O,P,I,F)}break;case Ll.R:f=l=e[b++],d=u=e[b++],S=f+e[b++],_=d+e[b++],h(S,d),p(S,d,S,_),p(S,_,f,_),p(f,_,f,d),p(f,d,S,d);break;case Ll.Z:a&&p(l,u,f,d),l=f,u=d;break}}return a&&a.length>2&&r.push(a),r}function xE(t,e,n,r,a,l,u,f,d,h){if(Pv(t,n)&&Pv(e,r)&&Pv(a,u)&&Pv(l,f)){d.push(u,f);return}var p=2/h,m=p*p,S=u-t,_=f-e,x=Math.sqrt(S*S+_*_);S/=x,_/=x;var E=n-t,b=r-e,D=a-u,A=l-f,O=E*E+b*b,P=D*D+A*A;if(O<m&&P<m){d.push(u,f);return}var I=S*E+_*b,F=-S*D-_*A,U=O-I*I,H=P-F*F;if(U<m&&I>=0&&H<m&&F>=0){d.push(u,f);return}var j=[],X=[];Es(t,n,a,u,.5,j),Es(e,r,l,f,.5,X),xE(j[0],X[0],j[1],X[1],j[2],X[2],j[3],X[3],d,h),xE(j[4],X[4],j[5],X[5],j[6],X[6],j[7],X[7],d,h)}function cQ(t,e){var n=wE(t),r=[];e=e||1;for(var a=0;a<n.length;a++){var l=n[a],u=[],f=l[0],d=l[1];u.push(f,d);for(var h=2;h<l.length;){var p=l[h++],m=l[h++],S=l[h++],_=l[h++],x=l[h++],E=l[h++];xE(f,d,p,m,S,_,x,E,u,e),f=x,d=E}r.push(u)}return r}function sF(t,e,n){var r=t[e],a=t[1-e],l=Math.abs(r/a),u=Math.ceil(Math.sqrt(l*n)),f=Math.floor(n/u);f===0&&(f=1,u=n);for(var d=[],h=0;h<u;h++)d.push(f);var p=u*f,m=n-p;if(m>0)for(var h=0;h<m;h++)d[h%u]+=1;return d}function fF(t,e,n){for(var r=t.r0,a=t.r,l=t.startAngle,u=t.endAngle,f=Math.abs(u-l),d=f*a,h=a-r,p=d>Math.abs(h),m=sF([d,h],p?0:1,e),S=(p?f:h)/m.length,_=0;_<m.length;_++)for(var x=(p?h:f)/m[_],E=0;E<m[_];E++){var b={};p?(b.startAngle=l+S*_,b.endAngle=l+S*(_+1),b.r0=r+x*E,b.r=r+x*(E+1)):(b.startAngle=l+x*E,b.endAngle=l+x*(E+1),b.r0=r+S*_,b.r=r+S*(_+1)),b.clockwise=t.clockwise,b.cx=t.cx,b.cy=t.cy,n.push(b)}}function dQ(t,e,n){for(var r=t.width,a=t.height,l=r>a,u=sF([r,a],l?0:1,e),f=l?"width":"height",d=l?"height":"width",h=l?"x":"y",p=l?"y":"x",m=t[f]/u.length,S=0;S<u.length;S++)for(var _=t[d]/u[S],x=0;x<u[S];x++){var E={};E[h]=S*m,E[p]=x*_,E[f]=m,E[d]=_,E.x+=t.x,E.y+=t.y,n.push(E)}}function cF(t,e,n,r){return t*r-n*e}function vQ(t,e,n,r,a,l,u,f){var d=n-t,h=r-e,p=u-a,m=f-l,S=cF(p,m,d,h);if(Math.abs(S)<1e-6)return null;var _=t-a,x=e-l,E=cF(_,x,p,m)/S;return E<0||E>1?null:new ht(E*d+t,E*h+e)}function hQ(t,e,n){var r=new ht;ht.sub(r,n,e),r.normalize();var a=new ht;ht.sub(a,t,e);var l=a.dot(r);return l}function Iv(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function pQ(t,e,n){for(var r=t.length,a=[],l=0;l<r;l++){var u=t[l],f=t[(l+1)%r],d=vQ(u[0],u[1],f[0],f[1],e.x,e.y,n.x,n.y);d&&a.push({projPt:hQ(d,e,n),pt:d,idx:l})}if(a.length<2)return[{points:t},{points:t}];a.sort(function(b,D){return b.projPt-D.projPt});var h=a[0],p=a[a.length-1];if(p.idx<h.idx){var m=h;h=p,p=m}for(var S=[h.pt.x,h.pt.y],_=[p.pt.x,p.pt.y],x=[S],E=[_],l=h.idx+1;l<=p.idx;l++)Iv(x,t[l].slice());Iv(x,_),Iv(x,S);for(var l=p.idx+1;l<=h.idx+r;l++)Iv(E,t[l%r].slice());return Iv(E,S),Iv(E,_),[{points:x},{points:E}]}function dF(t){var e=t.points,n=[],r=[];e2(e,n,r);var a=new Wt(n[0],n[1],r[0]-n[0],r[1]-n[1]),l=a.width,u=a.height,f=a.x,d=a.y,h=new ht,p=new ht;return l>u?(h.x=p.x=f+l/2,h.y=d,p.y=d+u):(h.y=p.y=d+u/2,h.x=f,p.x=f+l),pQ(e,h,p)}function m1(t,e,n,r){if(n===1)r.push(e);else{var a=Math.floor(n/2),l=t(e);m1(t,l[0],a,r),m1(t,l[1],n-a,r)}return r}function gQ(t,e){for(var n=[],r=0;r<e;r++)n.push(bT(t));return n}function mQ(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function yQ(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}function _Q(t,e){var n=[],r=t.shape,a;switch(t.type){case"rect":dQ(r,e,n),a=Kr;break;case"sector":fF(r,e,n),a=dc;break;case"circle":fF({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},e,n),a=dc;break;default:var l=t.getComputedTransform(),u=l?Math.sqrt(Math.max(l[0]*l[0]+l[1]*l[1],l[2]*l[2]+l[3]*l[3])):1,f=ot(cQ(t.getUpdatedPathProxy(),u),function(D){return yQ(D)}),d=f.length;if(d===0)m1(dF,{points:f[0]},e,n);else if(d===e)for(var h=0;h<d;h++)n.push({points:f[h]});else{var p=0,m=ot(f,function(D){var A=[],O=[];e2(D,A,O);var P=(O[1]-A[1])*(O[0]-A[0]);return p+=P,{poly:D,area:P}});m.sort(function(D,A){return A.area-D.area});for(var S=e,h=0;h<d;h++){var _=m[h];if(S<=0)break;var x=h===d-1?S:Math.ceil(_.area/p*e);x<0||(m1(dF,{points:_.poly},x,n),S-=x)}}a=MT;break}if(!a)return gQ(t,e);for(var E=[],h=0;h<n.length;h++){var b=new a;b.setShape(n[h]),mQ(t,b),E.push(b)}return E}function SQ(t,e){var n=t.length,r=e.length;if(n===r)return[t,e];for(var a=[],l=[],u=n<r?t:e,f=Math.min(n,r),d=Math.abs(r-n)/6,h=(f-2)/6,p=Math.ceil(d/h)+1,m=[u[0],u[1]],S=d,_=2;_<f;){var x=u[_-2],E=u[_-1],b=u[_++],D=u[_++],A=u[_++],O=u[_++],P=u[_++],I=u[_++];if(S<=0){m.push(b,D,A,O,P,I);continue}for(var F=Math.min(S,p-1)+1,U=1;U<=F;U++){var H=U/F;Es(x,b,A,P,H,a),Es(E,D,O,I,H,l),x=a[3],E=l[3],m.push(a[1],l[1],a[2],l[2],x,E),b=a[5],D=l[5],A=a[6],O=l[6]}S-=F-1}return u===t?[m,e]:[t,m]}function vF(t,e){for(var n=t.length,r=t[n-2],a=t[n-1],l=[],u=0;u<e.length;)l[u++]=r,l[u++]=a;return l}function CQ(t,e){for(var n,r,a,l=[],u=[],f=0;f<Math.max(t.length,e.length);f++){var d=t[f],h=e[f],p=void 0,m=void 0;d?h?(n=SQ(d,h),p=n[0],m=n[1],r=p,a=m):(m=vF(a||d,d),p=d):(p=vF(r||h,h),m=h),l.push(p),u.push(m)}return[l,u]}function hF(t){for(var e=0,n=0,r=0,a=t.length,l=0,u=a-2;l<a;u=l,l+=2){var f=t[u],d=t[u+1],h=t[l],p=t[l+1],m=f*p-h*d;e+=m,n+=(f+h)*m,r+=(d+p)*m}return e===0?[t[0]||0,t[1]||0]:[n/e/3,r/e/3,e]}function wQ(t,e,n,r){for(var a=(t.length-2)/6,l=1/0,u=0,f=t.length,d=f-2,h=0;h<a;h++){for(var p=h*6,m=0,S=0;S<f;S+=2){var _=S===0?p:(p+S-2)%d+2,x=t[_]-n[0],E=t[_+1]-n[1],b=e[S]-r[0],D=e[S+1]-r[1],A=b-x,O=D-E;m+=A*A+O*O}m<l&&(l=m,u=h)}return u}function xQ(t){for(var e=[],n=t.length,r=0;r<n;r+=2)e[r]=t[n-r-2],e[r+1]=t[n-r-1];return e}function TQ(t,e,n,r){for(var a=[],l,u=0;u<t.length;u++){var f=t[u],d=e[u],h=hF(f),p=hF(d);l==null&&(l=h[2]<0!=p[2]<0);var m=[],S=[],_=0,x=1/0,E=[],b=f.length;l&&(f=xQ(f));for(var D=wQ(f,d,h,p)*6,A=b-2,O=0;O<A;O+=2){var P=(D+O)%A+2;m[O+2]=f[P]-h[0],m[O+3]=f[P+1]-h[1]}if(m[0]=f[D]-h[0],m[1]=f[D+1]-h[1],n>0)for(var I=r/n,F=-r/2;F<=r/2;F+=I){for(var U=Math.sin(F),H=Math.cos(F),j=0,O=0;O<f.length;O+=2){var X=m[O],G=m[O+1],ee=d[O]-p[0],J=d[O+1]-p[1],ie=ee*H-J*U,ce=ee*U+J*H;E[O]=ie,E[O+1]=ce;var fe=ie-X,Ne=ce-G;j+=fe*fe+Ne*Ne}if(j<x){x=j,_=F;for(var ae=0;ae<E.length;ae++)S[ae]=E[ae]}}else for(var ge=0;ge<b;ge+=2)S[ge]=d[ge]-p[0],S[ge+1]=d[ge+1]-p[1];a.push({from:m,to:S,fromCp:h,toCp:p,rotation:-_})}return a}function y1(t){return t.__isCombineMorphing}var pF="__mOriginal_";function _1(t,e,n){var r=pF+e,a=t[r]||t[e];t[r]||(t[r]=t[e]);var l=n.replace,u=n.after,f=n.before;t[e]=function(){var d=arguments,h;return f&&f.apply(this,d),l?h=l.apply(this,d):h=a.apply(this,d),u&&u.apply(this,d),h}}function Qg(t,e){var n=pF+e;t[n]&&(t[e]=t[n],t[n]=null)}function gF(t,e){for(var n=0;n<t.length;n++)for(var r=t[n],a=0;a<r.length;){var l=r[a],u=r[a+1];r[a++]=e[0]*l+e[2]*u+e[4],r[a++]=e[1]*l+e[3]*u+e[5]}}function mF(t,e){var n=t.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),a=CQ(wE(n),wE(r)),l=a[0],u=a[1],f=t.getComputedTransform(),d=e.getComputedTransform();function h(){this.transform=null}f&&gF(l,f),d&&gF(u,d),_1(e,"updateTransform",{replace:h}),e.transform=null;var p=TQ(l,u,10,Math.PI),m=[];_1(e,"buildPath",{replace:function(S){for(var _=e.__morphT,x=1-_,E=[],b=0;b<p.length;b++){var D=p[b],A=D.from,O=D.to,P=D.rotation*_,I=D.fromCp,F=D.toCp,U=Math.sin(P),H=Math.cos(P);O0(E,I,F,_);for(var j=0;j<A.length;j+=2){var X=A[j],G=A[j+1],ee=O[j],J=O[j+1],ie=X*x+ee*_,ce=G*x+J*_;m[j]=ie*H-ce*U+E[0],m[j+1]=ie*U+ce*H+E[1]}var fe=m[0],Ne=m[1];S.moveTo(fe,Ne);for(var j=2;j<A.length;){var ee=m[j++],J=m[j++],ae=m[j++],ge=m[j++],pe=m[j++],Le=m[j++];fe===ee&&Ne===J&&ae===pe&&ge===Le?S.lineTo(pe,Le):S.bezierCurveTo(ee,J,ae,ge,pe,Le),fe=pe,Ne=Le}}}})}function TE(t,e,n){if(!t||!e)return e;var r=n.done,a=n.during;mF(t,e),e.__morphT=0;function l(){Qg(e,"buildPath"),Qg(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Vt({during:function(u){e.dirtyShape(),a&&a(u)},done:function(){l(),r&&r()}},n)),e}function bQ(t,e,n,r,a,l){var u=16;t=a===n?0:Math.round(32767*(t-n)/(a-n)),e=l===r?0:Math.round(32767*(e-r)/(l-r));for(var f=0,d,h=(1<<u)/2;h>0;h/=2){var p=0,m=0;(t&h)>0&&(p=1),(e&h)>0&&(m=1),f+=h*h*(3*p^m),m===0&&(p===1&&(t=h-1-t,e=h-1-e),d=t,t=e,e=d)}return f}function S1(t){var e=1/0,n=1/0,r=-1/0,a=-1/0,l=ot(t,function(f){var d=f.getBoundingRect(),h=f.getComputedTransform(),p=d.x+d.width/2+(h?h[4]:0),m=d.y+d.height/2+(h?h[5]:0);return e=Math.min(p,e),n=Math.min(m,n),r=Math.max(p,r),a=Math.max(m,a),[p,m]}),u=ot(l,function(f,d){return{cp:f,z:bQ(f[0],f[1],e,n,r,a),path:t[d]}});return u.sort(function(f,d){return f.z-d.z}).map(function(f){return f.path})}function yF(t){return _Q(t.path,t.count)}function bE(){return{fromIndividuals:[],toIndividuals:[],count:0}}function EQ(t,e,n){var r=[];function a(I){for(var F=0;F<I.length;F++){var U=I[F];y1(U)?a(U.childrenRef()):U instanceof Gt&&r.push(U)}}a(t);var l=r.length;if(!l)return bE();var u=n.dividePath||yF,f=u({path:e,count:l});if(f.length!==l)return console.error("Invalid morphing: unmatched splitted path"),bE();r=S1(r),f=S1(f);for(var d=n.done,h=n.during,p=n.individualDelay,m=new Kp,S=0;S<l;S++){var _=r[S],x=f[S];x.parent=e,x.copyTransform(m),p||mF(_,x)}e.__isCombineMorphing=!0,e.childrenRef=function(){return f};function E(I){for(var F=0;F<f.length;F++)f[F].addSelfToZr(I)}_1(e,"addSelfToZr",{after:function(I){E(I)}}),_1(e,"removeSelfFromZr",{after:function(I){for(var F=0;F<f.length;F++)f[F].removeSelfFromZr(I)}});function b(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Qg(e,"addSelfToZr"),Qg(e,"removeSelfFromZr")}var D=f.length;if(p)for(var A=D,O=function(){A--,A===0&&(b(),d&&d())},S=0;S<D;S++){var P=p?Vt({delay:(n.delay||0)+p(S,D,r[S],f[S]),done:O},n):n;TE(r[S],f[S],P)}else e.__morphT=0,e.animateTo({__morphT:1},Vt({during:function(I){for(var F=0;F<D;F++){var U=f[F];U.__morphT=e.__morphT,U.dirtyShape()}h&&h(I)},done:function(){b();for(var I=0;I<t.length;I++)Qg(t[I],"updateTransform");d&&d()}},n));return e.__zr&&E(e.__zr),{fromIndividuals:r,toIndividuals:f,count:D}}function DQ(t,e,n){var r=e.length,a=[],l=n.dividePath||yF;function u(_){for(var x=0;x<_.length;x++){var E=_[x];y1(E)?u(E.childrenRef()):E instanceof Gt&&a.push(E)}}if(y1(t)){u(t.childrenRef());var f=a.length;if(f<r)for(var d=0,h=f;h<r;h++)a.push(bT(a[d++%f]));a.length=r}else{a=l({path:t,count:r});for(var p=t.getComputedTransform(),h=0;h<a.length;h++)a[h].setLocalTransform(p);if(a.length!==r)return console.error("Invalid morphing: unmatched splitted path"),bE()}a=S1(a),e=S1(e);for(var m=n.individualDelay,h=0;h<r;h++){var S=m?Vt({delay:(n.delay||0)+m(h,r,a[h],e[h])},n):n;TE(a[h],e[h],S)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function _F(t){return Be(t[0])}function SF(t,e){for(var n=[],r=t.length,a=0;a<r;a++)n.push({one:t[a],many:[]});for(var a=0;a<e.length;a++){var l=e[a].length,u=void 0;for(u=0;u<l;u++)n[u%r].many.push(e[a][u])}for(var f=0,a=r-1;a>=0;a--)if(!n[a].many.length){var d=n[f].many;if(d.length<=1)if(f)f=0;else return n;var l=d.length,h=Math.ceil(l/2);n[a].many=d.slice(h,l),n[f].many=d.slice(0,h),f++}return n}var MQ={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r<t.count;r++){var a=bT(t.path);a.setStyle("opacity",n),e.push(a)}return e},split:null};function EE(t,e,n,r,a,l){if(!t.length||!e.length)return;var u=y_("update",r,a);if(!(u&&u.duration>0))return;var f=r.getModel("universalTransition").get("delay"),d=Object.assign({setToFinal:!0},u),h,p;_F(t)&&(h=t,p=e),_F(e)&&(h=e,p=t);function m(D,A,O,P,I){var F=D.many,U=D.one;if(F.length===1&&!I){var H=A?F[0]:U,j=A?U:F[0];if(y1(H))m({many:[H],one:j},!0,O,P,!0);else{var X=f?Vt({delay:f(O,P)},d):d;TE(H,j,X),l(H,j,H,j,X)}}else for(var G=Vt({dividePath:MQ[n],individualDelay:f&&function(Ne,ae,ge,pe){return f(Ne+O,P)}},d),ee=A?EQ(F,U,G):DQ(U,F,G),J=ee.fromIndividuals,ie=ee.toIndividuals,ce=J.length,fe=0;fe<ce;fe++){var X=f?Vt({delay:f(fe,ce)},d):d;l(J[fe],ie[fe],A?F[fe]:D.one,A?D.one:F[fe],X)}}for(var S=h?h===t:t.length>e.length,_=h?SF(p,h):SF(S?e:t,[S?t:e]),x=0,E=0;E<_.length;E++)x+=_[E].many.length;for(var b=0,E=0;E<_.length;E++)m(_[E],S,b,x),b+=_[E].many.length}function Lc(t){if(!t)return[];if(Be(t)){for(var e=[],n=0;n<t.length;n++)e.push(Lc(t[n]));return e}var r=[];return t.traverse(function(a){a instanceof Gt&&!a.disableMorphing&&!a.invisible&&!a.ignore&&r.push(a)}),r}var CF=1e4,RQ=jn();function AQ(t){for(var e=t.dimensions,n=0;n<e.length;n++){var r=t.getDimensionInfo(e[n]);if(r&&r.otherDims.itemGroupId===0)return e[n]}}function wF(t){var e=[];return W(t,function(n){var r=n.data;if(r.count()>CF){process.env.NODE_ENV!=="production"&&Fr("Universal transition is disabled on large data > 10k.");return}for(var a=r.getIndices(),l=AQ(r),u=0;u<a.length;u++)e.push({dataGroupId:n.dataGroupId,data:r,dim:n.dim||l,divide:n.divide,dataIndex:u})}),e}function DE(t,e,n){t.traverse(function(r){r instanceof Gt&&Io(r,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})})}function ME(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function zv(t){t.stopAnimation(),t.isGroup&&t.traverse(function(e){e.stopAnimation()})}function LQ(t,e,n){var r=y_("update",n,e);r&&t.traverse(function(a){if(a instanceof cv){var l=l$(a);l&&a.animateFrom({style:l},r)}})}function OQ(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++){var a=t[r],l=e[r];if(a.data.getId(a.dataIndex)!==l.data.getId(l.dataIndex))return!1}return!0}function xF(t,e,n){var r=wF(t),a=wF(e);function l(D,A,O,P,I){(O||D)&&A.animateFrom({style:O&&O!==D?Re(Re({},O.style),D.style):D.style},I)}function u(D){for(var A=0;A<D.length;A++)if(D[A].dim)return D[A].dim}var f=u(r),d=u(a),h=!1;function p(D,A){return function(O){var P=O.data,I=O.dataIndex;if(A)return P.getId(I);var F=O.dataGroupId,U=D?f||d:d||f,H=U&&P.getDimensionInfo(U),j=H&&H.ordinalMeta;if(H){var X=P.get(H.name,I);return j&&j.categories[X]||X+""}var G=P.getRawDataItem(I);return G&&G.groupId?G.groupId+"":F||P.getId(I)}}var m=OQ(r,a),S={};if(!m)for(var _=0;_<a.length;_++){var x=a[_],E=x.data.getItemGraphicEl(x.dataIndex);E&&(S[E.id]=!0)}function b(D,A){var O=r[A],P=a[D],I=P.data.hostModel,F=O.data.getItemGraphicEl(O.dataIndex),U=P.data.getItemGraphicEl(P.dataIndex);if(F===U){U&&LQ(U,P.dataIndex,I);return}F&&S[F.id]||U&&(zv(U),F?(zv(F),ME(F),h=!0,EE(Lc(F),Lc(U),P.divide,I,D,l)):DE(U,I,D))}new Vb(r,a,p(!0,m),p(!1,m),null,"multiple").update(b).updateManyToOne(function(D,A){var O=a[D],P=O.data,I=P.hostModel,F=P.getItemGraphicEl(O.dataIndex),U=Er(ot(A,function(H){return r[H].data.getItemGraphicEl(r[H].dataIndex)}),function(H){return H&&H!==F&&!S[H.id]});F&&(zv(F),U.length?(W(U,function(H){zv(H),ME(H)}),h=!0,EE(Lc(U),Lc(F),O.divide,I,D,l)):DE(F,I,O.dataIndex))}).updateOneToMany(function(D,A){var O=r[A],P=O.data.getItemGraphicEl(O.dataIndex);if(!(P&&S[P.id])){var I=Er(ot(D,function(U){return a[U].data.getItemGraphicEl(a[U].dataIndex)}),function(U){return U&&U!==P}),F=a[D[0]].data.hostModel;I.length&&(W(I,function(U){return zv(U)}),P?(zv(P),ME(P),h=!0,EE(Lc(P),Lc(I),O.divide,F,D[0],l)):W(I,function(U){return DE(U,F,D[0])}))}}).updateManyToMany(function(D,A){new Vb(A,D,function(O){return r[O].data.getId(r[O].dataIndex)},function(O){return a[O].data.getId(a[O].dataIndex)}).update(function(O,P){b(D[O],A[P])}).execute()}).execute(),h&&W(e,function(D){var A=D.data,O=A.hostModel,P=O&&n.getViewOfSeriesModel(O),I=y_("update",O,0);P&&O.isAnimationEnabled()&&I&&I.duration>0&&P.group.traverse(function(F){F instanceof Gt&&!F.animators.length&&F.animateFrom({style:{opacity:0}},I)})})}function TF(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function bF(t){return Be(t)?t.sort().join(","):t}function Fs(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function kQ(t,e){var n=xt(),r=xt(),a=xt();W(t.oldSeries,function(u,f){var d=t.oldDataGroupIds[f],h=t.oldData[f],p=TF(u),m=bF(p);r.set(m,{dataGroupId:d,data:h}),Be(p)&&W(p,function(S){a.set(S,{key:m,dataGroupId:d,data:h})})});function l(u){n.get(u)&&Fr("Duplicated seriesKey in universalTransition "+u)}return W(e.updatedSeries,function(u){if(u.isUniversalTransitionEnabled()&&u.isAnimationEnabled()){var f=u.get("dataGroupId"),d=u.getData(),h=TF(u),p=bF(h),m=r.get(p);if(m)process.env.NODE_ENV!=="production"&&l(p),n.set(p,{oldSeries:[{dataGroupId:m.dataGroupId,divide:Fs(m.data),data:m.data}],newSeries:[{dataGroupId:f,divide:Fs(d),data:d}]});else if(Be(h)){process.env.NODE_ENV!=="production"&&l(p);var S=[];W(h,function(E){var b=r.get(E);b.data&&S.push({dataGroupId:b.dataGroupId,divide:Fs(b.data),data:b.data})}),S.length&&n.set(p,{oldSeries:S,newSeries:[{dataGroupId:f,data:d,divide:Fs(d)}]})}else{var _=a.get(h);if(_){var x=n.get(_.key);x||(x={oldSeries:[{dataGroupId:_.dataGroupId,data:_.data,divide:Fs(_.data)}],newSeries:[]},n.set(_.key,x)),x.newSeries.push({dataGroupId:f,data:d,divide:Fs(d)})}}}}),n}function EF(t,e){for(var n=0;n<t.length;n++){var r=e.seriesIndex!=null&&e.seriesIndex===t[n].seriesIndex||e.seriesId!=null&&e.seriesId===t[n].id;if(r)return n}}function NQ(t,e,n,r){var a=[],l=[];W(rr(t.from),function(u){var f=EF(e.oldSeries,u);f>=0&&a.push({dataGroupId:e.oldDataGroupIds[f],data:e.oldData[f],divide:Fs(e.oldData[f]),dim:u.dimension})}),W(rr(t.to),function(u){var f=EF(n.updatedSeries,u);if(f>=0){var d=n.updatedSeries[f].getData();l.push({dataGroupId:e.oldDataGroupIds[f],data:d,divide:Fs(d),dim:u.dimension})}}),a.length>0&&l.length>0&&xF(a,l,r)}function PQ(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,n,r){W(rr(r.seriesTransition),function(a){W(rr(a.to),function(l){for(var u=r.updatedSeries,f=0;f<u.length;f++)(l.seriesIndex!=null&&l.seriesIndex===u[f].seriesIndex||l.seriesId!=null&&l.seriesId===u[f].id)&&(u[f][B_]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(e,n,r){var a=RQ(n);if(a.oldSeries&&r.updatedSeries&&r.optionChanged){var l=r.seriesTransition;if(l)W(rr(l),function(_){NQ(_,a,r,n)});else{var u=kQ(a,r);W(u.keys(),function(_){var x=u.get(_);xF(x.oldSeries,x.newSeries,n)})}W(r.updatedSeries,function(_){_[B_]&&(_[B_]=!1)})}for(var f=e.getSeries(),d=a.oldSeries=[],h=a.oldDataGroupIds=[],p=a.oldData=[],m=0;m<f.length;m++){var S=f[m].getData();S.count()<CF&&(d.push(f[m]),h.push(f[m].get("dataGroupId")),p.push(S))}})}function DF(t,e,n){var r=$f.createCanvas(),a=e.getWidth(),l=e.getHeight(),u=r.style;return u&&(u.position="absolute",u.left="0",u.top="0",u.width=a+"px",u.height=l+"px",r.setAttribute("data-zr-dom-id",t)),r.width=a*n,r.height=l*n,r}var IQ=function(t){mn(e,t);function e(n,r,a){var l=t.call(this)||this;l.motionBlur=!1,l.lastFrameAlpha=.7,l.dpr=1,l.virtual=!1,l.config={},l.incremental=!1,l.zlevel=0,l.maxRepaintRectCount=5,l.__dirty=!0,l.__firstTimePaint=!0,l.__used=!1,l.__drawIndex=0,l.__startIndex=0,l.__endIndex=0,l.__prevStartIndex=null,l.__prevEndIndex=null;var u;a=a||Z0,typeof n=="string"?u=DF(n,r,a):it(n)&&(u=n,n=u.id),l.id=n,l.dom=u;var f=u.style;return f&&(bL(u),u.onselectstart=function(){return!1},f.padding="0",f.margin="0",f.borderWidth="0"),l.painter=r,l.dpr=a,l}return 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 n=this.dpr;this.domBack=DF("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},e.prototype.createRepaintRects=function(n,r,a,l){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var u=[],f=this.maxRepaintRectCount,d=!1,h=new Wt(0,0,0,0);function p(A){if(!(!A.isFinite()||A.isZero()))if(u.length===0){var O=new Wt(0,0,0,0);O.copy(A),u.push(O)}else{for(var P=!1,I=1/0,F=0,U=0;U<u.length;++U){var H=u[U];if(H.intersect(A)){var j=new Wt(0,0,0,0);j.copy(H),j.union(A),u[U]=j,P=!0;break}else if(d){h.copy(A),h.union(H);var X=A.width*A.height,G=H.width*H.height,ee=h.width*h.height,J=ee-X-G;J<I&&(I=J,F=U)}}if(d&&(u[F].union(A),P=!0),!P){var O=new Wt(0,0,0,0);O.copy(A),u.push(O)}d||(d=u.length>=f)}}for(var m=this.__startIndex;m<this.__endIndex;++m){var S=n[m];if(S){var _=S.shouldBePainted(a,l,!0,!0),x=S.__isRendered&&(S.__dirty&La||!_)?S.getPrevPaintRect():null;x&&p(x);var E=_&&(S.__dirty&La||!S.__isRendered)?S.getPaintRect():null;E&&p(E)}}for(var m=this.__prevStartIndex;m<this.__prevEndIndex;++m){var S=r[m],_=S.shouldBePainted(a,l,!0,!0);if(S&&(!_||!S.__zr)&&S.__isRendered){var x=S.getPrevPaintRect();x&&p(x)}}var b;do{b=!1;for(var m=0;m<u.length;){if(u[m].isZero()){u.splice(m,1);continue}for(var D=m+1;D<u.length;)u[m].intersect(u[D])?(b=!0,u[m].union(u[D]),u.splice(D,1)):D++;m++}}while(b);return this._paintRects=u,u},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(n,r){var a=this.dpr,l=this.dom,u=l.style,f=this.domBack;u&&(u.width=n+"px",u.height=r+"px"),l.width=n*a,l.height=r*a,f&&(f.width=n*a,f.height=r*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(n,r,a){var l=this.dom,u=this.ctx,f=l.width,d=l.height;r=r||this.clearColor;var h=this.motionBlur&&!n,p=this.lastFrameAlpha,m=this.dpr,S=this;h&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(l,0,0,f/m,d/m));var _=this.domBack;function x(E,b,D,A){if(u.clearRect(E,b,D,A),r&&r!=="transparent"){var O=void 0;if(R0(r)){var P=r.global||r.__width===D&&r.__height===A;O=P&&r.__canvasGradient||xb(u,r,{x:0,y:0,width:D,height:A}),r.__canvasGradient=O,r.__width=D,r.__height=A}else i4(r)&&(r.scaleX=r.scaleX||m,r.scaleY=r.scaleY||m,O=Tb(u,r,{dirty:function(){S.setUnpainted(),S.__painter.refresh()}}));u.save(),u.fillStyle=O||r,u.fillRect(E,b,D,A),u.restore()}h&&(u.save(),u.globalAlpha=p,u.drawImage(_,E,b,D,A),u.restore())}!a||h?x(0,0,f,d):a.length&&W(a,function(E){x(E.x*m,E.y*m,E.width*m,E.height*m)})},e}(_l);const RE=IQ;var MF=1e5,Oc=314159,C1=.01,zQ=.001;function FQ(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function BQ(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}var UQ=function(){function t(e,n,r,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var l=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=r=Re({},r||{}),this.dpr=r.devicePixelRatio||Z0,this._singleCanvas=l,this.root=e;var u=e.style;u&&(bL(e),e.innerHTML=""),this.storage=n;var f=this._zlevelList;this._prevDisplayList=[];var d=this._layers;if(l){var p=e,m=p.width,S=p.height;r.width!=null&&(m=r.width),r.height!=null&&(S=r.height),this.dpr=r.devicePixelRatio||1,p.width=m*this.dpr,p.height=S*this.dpr,this._width=m,this._height=S;var _=new RE(p,this,this.dpr);_.__builtin__=!0,_.initContext(),d[Oc]=_,_.zlevel=Oc,f.push(Oc),this._domRoot=e}else{this._width=Y_(e,0,r),this._height=Y_(e,1,r);var h=this._domRoot=BQ(this._width,this._height);e.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 e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var n=this.storage.getDisplayList(!0),r=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,r,e,this._redrawId);for(var l=0;l<a.length;l++){var u=a[l],f=this._layers[u];if(!f.__builtin__&&f.refresh){var d=l===0?this._backgroundColor:null;f.refresh(d)}}return this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var n=e.length,r=this._hoverlayer;if(r&&r.clear(),!!n){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},l,u=0;u<n;u++){var f=e[u];f.__inHover&&(r||(r=this._hoverlayer=this.getLayer(MF)),l||(l=r.ctx,l.save()),xc(l,f,a,u===n-1))}l&&l.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(MF)},t.prototype.paintOne=function(e,n){NP(e,n)},t.prototype._paintList=function(e,n,r,a){if(this._redrawId===a){r=r||!1,this._updateLayerStatus(e);var l=this._doPaintList(e,n,r),u=l.finished,f=l.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),f&&this._paintHoverList(e),u)this.eachLayer(function(h){h.afterBrush&&h.afterBrush()});else{var d=this;yx(function(){d._paintList(e,n,r,a)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(Oc).ctx,n=this._domRoot.width,r=this._domRoot.height;e.clearRect(0,0,n,r),this.eachBuiltinLayer(function(a){a.virtual&&e.drawImage(a.dom,0,0,n,r)})},t.prototype._doPaintList=function(e,n,r){for(var a=this,l=[],u=this._opts.useDirtyRect,f=0;f<this._zlevelList.length;f++){var d=this._zlevelList[f],h=this._layers[d];h.__builtin__&&h!==this._hoverlayer&&(h.__dirty||r)&&l.push(h)}for(var p=!0,m=!1,S=function(E){var b=l[E],D=b.ctx,A=u&&b.createRepaintRects(e,n,_._width,_._height),O=r?b.__startIndex:b.__drawIndex,P=!r&&b.incremental&&Date.now,I=P&&Date.now(),F=b.zlevel===_._zlevelList[0]?_._backgroundColor:null;if(b.__startIndex===b.__endIndex)b.clear(!1,F,A);else if(O===b.__startIndex){var U=e[O];(!U.incremental||!U.notClear||r)&&b.clear(!1,F,A)}O===-1&&(console.error("For some unknown reason. drawIndex is -1"),O=b.__startIndex);var H,j=function(J){var ie={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(H=O;H<b.__endIndex;H++){var ce=e[H];if(ce.__inHover&&(m=!0),a._doPaintEl(ce,b,u,J,ie,H===b.__endIndex-1),P){var fe=Date.now()-I;if(fe>15)break}}ie.prevElClipPaths&&D.restore()};if(A)if(A.length===0)H=b.__endIndex;else for(var X=_.dpr,G=0;G<A.length;++G){var ee=A[G];D.save(),D.beginPath(),D.rect(ee.x*X,ee.y*X,ee.width*X,ee.height*X),D.clip(),j(ee),D.restore()}else D.save(),j(),D.restore();b.__drawIndex=H,b.__drawIndex<b.__endIndex&&(p=!1)},_=this,x=0;x<l.length;x++)S(x);return Tt.wxa&&W(this._layers,function(E){E&&E.ctx&&E.ctx.draw&&E.ctx.draw()}),{finished:p,needsRefreshHover:m}},t.prototype._doPaintEl=function(e,n,r,a,l,u){var f=n.ctx;if(r){var d=e.getPaintRect();(!a||d&&d.intersect(a))&&(xc(f,e,l,u),e.setPrevPaintRect(d))}else xc(f,e,l,u)},t.prototype.getLayer=function(e,n){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Oc);var r=this._layers[e];return r||(r=new RE("zr_"+e,this,this.dpr),r.zlevel=e,r.__builtin__=!0,this._layerConfig[e]?cn(r,this._layerConfig[e],!0):this._layerConfig[e-C1]&&cn(r,this._layerConfig[e-C1],!0),n&&(r.virtual=n),this.insertLayer(e,r),r.initContext()),r},t.prototype.insertLayer=function(e,n){var r=this._layers,a=this._zlevelList,l=a.length,u=this._domRoot,f=null,d=-1;if(r[e]){process.env.NODE_ENV!=="production"&&jf("ZLevel "+e+" has been used already");return}if(!FQ(n)){process.env.NODE_ENV!=="production"&&jf("Layer of zlevel "+e+" is not valid");return}if(l>0&&e>a[0]){for(d=0;d<l-1&&!(a[d]<e&&a[d+1]>e);d++);f=r[a[d]]}if(a.splice(d+1,0,e),r[e]=n,!n.virtual)if(f){var h=f.dom;h.nextSibling?u.insertBefore(n.dom,h.nextSibling):u.appendChild(n.dom)}else u.firstChild?u.insertBefore(n.dom,u.firstChild):u.appendChild(n.dom);n.__painter=this},t.prototype.eachLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var l=r[a];e.call(n,this._layers[l],l)}},t.prototype.eachBuiltinLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var l=r[a],u=this._layers[l];u.__builtin__&&e.call(n,u,l)}},t.prototype.eachOtherLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var l=r[a],u=this._layers[l];u.__builtin__||e.call(n,u,l)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(m,S){m.__dirty=m.__used=!1});function n(m){l&&(l.__endIndex!==m&&(l.__dirty=!0),l.__endIndex=m)}if(this._singleCanvas)for(var r=1;r<e.length;r++){var a=e[r];if(a.zlevel!==e[r-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var l=null,u=0,f,d;for(d=0;d<e.length;d++){var a=e[d],h=a.zlevel,p=void 0;f!==h&&(f=h,u=0),a.incremental?(p=this.getLayer(h+zQ,this._needsManuallyCompositing),p.incremental=!0,u=1):p=this.getLayer(h+(u>0?C1:0),this._needsManuallyCompositing),p.__builtin__||jf("ZLevel "+h+" has been used by unkown layer "+p.id),p!==l&&(p.__used=!0,p.__startIndex!==d&&(p.__dirty=!0),p.__startIndex=d,p.incremental?p.__drawIndex=-1:p.__drawIndex=d,n(d),l=p),a.__dirty&La&&!a.__inHover&&(p.__dirty=!0,p.incremental&&p.__drawIndex<0&&(p.__drawIndex=d))}n(d),this.eachBuiltinLayer(function(m,S){!m.__used&&m.getElementCount()>0&&(m.__dirty=!0,m.__startIndex=m.__endIndex=m.__drawIndex=0),m.__dirty&&m.__drawIndex<0&&(m.__drawIndex=m.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,W(this._layers,function(n){n.setUnpainted()})},t.prototype.configLayer=function(e,n){if(n){var r=this._layerConfig;r[e]?cn(r[e],n,!0):r[e]=n;for(var a=0;a<this._zlevelList.length;a++){var l=this._zlevelList[a];if(l===e||l===e+C1){var u=this._layers[l];cn(u,r[e],!0)}}}},t.prototype.delLayer=function(e){var n=this._layers,r=this._zlevelList,a=n[e];a&&(a.dom.parentNode.removeChild(a.dom),delete n[e],r.splice(dn(r,e),1))},t.prototype.resize=function(e,n){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var a=this._opts,l=this.root;if(e!=null&&(a.width=e),n!=null&&(a.height=n),e=Y_(l,0,a),n=Y_(l,1,a),r.style.display="",this._width!==e||n!==this._height){r.style.width=e+"px",r.style.height=n+"px";for(var u in this._layers)this._layers.hasOwnProperty(u)&&this._layers[u].resize(e,n);this.refresh(!0)}this._width=e,this._height=n}else{if(e==null||n==null)return;this._width=e,this._height=n,this.getLayer(Oc).resize(e,n)}return this},t.prototype.clearLayer=function(e){var n=this._layers[e];n&&n.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Oc].dom;var n=new RE("image",this,e.pixelRatio||this.dpr);n.initContext(),n.clear(!1,e.backgroundColor||this._backgroundColor);var r=n.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=n.dom.width,l=n.dom.height;this.eachLayer(function(m){m.__builtin__?r.drawImage(m.dom,0,0,a,l):m.renderToCanvas&&(r.save(),m.renderToCanvas(r),r.restore())})}else for(var u={inHover:!1,viewWidth:this._width,viewHeight:this._height},f=this.storage.getDisplayList(!0),d=0,h=f.length;d<h;d++){var p=f[d];xc(r,p,u,d===h-1)}return n.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();const VQ=UQ;function HQ(t){t.registerPainter("canvas",VQ)}const GQ={main:"szld-main"};$g([Xq,jq,wq,fQ,lQ,fX,F7,PQ,HQ]);const $Q=t=>{const e=st.useRef(null),n=st.useRef(null),r=st.useRef(null);st.useEffect(()=>(e.current&&n.current&&(r.current=new ResizeObserver(u=>{for(const f of u)f.target===e.current&&l()}),r.current.observe(e.current)),()=>{var u;e.current&&((u=r.current)==null||u.unobserve(e.current)),r.current=null}),[e.current,n.current]),st.useEffect(()=>{e.current&&!n.current&&(n.current=$Y(e.current))},[e.current]),st.useEffect(()=>{n.current&&e.current&&n.current.setOption(t.option)},[n.current]);const a=()=>{n.current&&n.current.resize()},{run:l}=dU.useDebounceFn(a,{wait:300});return ze("div",{ref:e,className:GQ.main})};en.AuthButton=hL,en.BackHeader=xV,en.CoralButton=kH,en.CreateForm=KA,en.Echarts=$Q,en.EditTable=XV,en.SearchTable=$V,en.UploadFile=ZA,en.VirtualTable=LH,en.download=UH,en.fileType=TV,en.showWorkFlow=PH,en.utils=NV,en.verfyCode=HH,Object.defineProperty(en,Symbol.toStringTag,{value:"Module"})});