You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.2 MiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function t(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(n){if(n.ep)return;n.ep=!0;const i=t(n);fetch(n.href,i)}})();var U0={exports:{}},Kc={};var vC;function OV(){if(vC)return Kc;vC=1;var r=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(a,n,i){var o=null;if(i!==void 0&&(o=""+i),n.key!==void 0&&(o=""+n.key),"key"in n){i={};for(var s in n)s!=="key"&&(i[s]=n[s])}else i=n;return n=i.ref,{$$typeof:r,type:a,key:o,ref:n!==void 0?n:null,props:i}}return Kc.Fragment=e,Kc.jsx=t,Kc.jsxs=t,Kc}var dC;function zV(){return dC||(dC=1,U0.exports=OV()),U0.exports}var z=zV(),F0={exports:{}},Xt={};var pC;function kV(){if(pC)return Xt;pC=1;var r=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),d=Symbol.iterator;function p(U){return U===null||typeof U!="object"?null:(U=d&&U[d]||U["@@iterator"],typeof U=="function"?U:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,_={};function S(U,W,rt){this.props=U,this.context=W,this.refs=_,this.updater=rt||y}S.prototype.isReactComponent={},S.prototype.setState=function(U,W){if(typeof U!="object"&&typeof U!="function"&&U!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,U,W,"setState")},S.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};function b(){}b.prototype=S.prototype;function w(U,W,rt){this.props=U,this.context=W,this.refs=_,this.updater=rt||y}var A=w.prototype=new b;A.constructor=w,m(A,S.prototype),A.isPureReactComponent=!0;var M=Array.isArray;function C(){}var L={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function R(U,W,rt){var ot=rt.ref;return{$$typeof:r,type:U,key:W,ref:ot!==void 0?ot:null,props:rt}}function N(U,W){return R(U.type,W,U.props)}function O(U){return typeof U=="object"&&U!==null&&U.$$typeof===r}function k(U){var W={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function(rt){return W[rt]})}var G=/\/+/g;function H(U,W){return typeof U=="object"&&U!==null&&U.key!=null?k(""+U.key):W.toString(36)}function F(U){switch(U.status){case"fulfilled":return U.value;case"rejected":throw U.reason;default:switch(typeof U.status=="string"?U.then(C,C):(U.status="pending",U.then(function(W){U.status==="pending"&&(U.status="fulfilled",U.value=W)},function(W){U.status==="pending"&&(U.status="rejected",U.reason=W)})),U.status){case"fulfilled":return U.value;case"rejected":throw U.reason}}throw U}function B(U,W,rt,ot,ht){var gt=typeof U;(gt==="undefined"||gt==="boolean")&&(U=null);var mt=!1;if(U===null)mt=!0;else switch(gt){case"bigint":case"string":case"number":mt=!0;break;case"object":switch(U.$$typeof){case r:case e:mt=!0;break;case f:return mt=U._init,B(mt(U._payload),W,rt,ot,ht)}}if(mt)return ht=ht(U),mt=ot===""?"."+H(U,0):ot,M(ht)?(rt="",mt!=null&&(rt=mt.replace(G,"$&/")+"/"),B(ht,W,rt,"",function(Lt){return Lt})):ht!=null&&(O(ht)&&(ht=N(ht,rt+(ht.key==null||U&&U.key===ht.key?"":(""+ht.key).replace(G,"$&/")+"/")+mt)),W.push(ht)),1;mt=0;var yt=ot===""?".":ot+":";if(M(U))for(var St=0;St<U.length;St++)ot=U[St],gt=yt+H(ot,St),mt+=B(ot,W,rt,gt,ht);else if(St=p(U),typeof St=="function")for(U=St.call(U),St=0;!(ot=U.next()).done;)ot=ot.value,gt=yt+H(ot,St++),mt+=B(ot,W,rt,gt,ht);else if(gt==="object"){if(typeof U.then=="function")return B(F(U),W,rt,ot,ht);throw W=String(U),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.")}return mt}function j(U,W,rt){if(U==null)return U;var ot=[],ht=0;return B(U,ot,"","",function(gt){return W.call(rt,gt,ht++)}),ot}function Y(U){if(U._status===-1){var W=U._result;W=W(),W.then(function(rt){(U._status===0||U._status===-1)&&(U._status=1,U._result=rt)},function(rt){(U._status===0||U._status===-1)&&(U._status=2,U._result=rt)}),U._status===-1&&(U._status=0,U._result=W)}if(U._status===1)return U._result.default;throw U._result}var K=typeof reportError=="function"?reportError:function(U){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var W=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U),error:U});if(!window.dispatchEvent(W))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",U);return}console.error(U)},nt={map:j,forEach:function(U,W,rt){j(U,function(){W.apply(this,arguments)},rt)},count:function(U){var W=0;return j(U,function(){W++}),W},toArray:function(U){return j(U,function(W){return W})||[]},only:function(U){if(!O(U))throw Error("React.Children.only expected to receive a single React element child.");return U}};return Xt.Activity=v,Xt.Children=nt,Xt.Component=S,Xt.Fragment=t,Xt.Profiler=n,Xt.PureComponent=w,Xt.StrictMode=a,Xt.Suspense=l,Xt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,Xt.__COMPILER_RUNTIME={__proto__:null,c:function(U){return L.H.useMemoCache(U)}},Xt.cache=function(U){return function(){return U.apply(null,arguments)}},Xt.cacheSignal=function(){return null},Xt.cloneElement=function(U,W,rt){if(U==null)throw Error("The argument must be a React element, but you passed "+U+".");var ot=m({},U.props),ht=U.key;if(W!=null)for(gt in W.key!==void 0&&(ht=""+W.key),W)!E.call(W,gt)||gt==="key"||gt==="__self"||gt==="__source"||gt==="ref"&&W.ref===void 0||(ot[gt]=W[gt]);var gt=arguments.length-2;if(gt===1)ot.children=rt;else if(1<gt){for(var mt=Array(gt),yt=0;yt<gt;yt++)mt[yt]=arguments[yt+2];ot.children=mt}return R(U.type,ht,ot)},Xt.createContext=function(U){return U={$$typeof:o,_currentValue:U,_currentValue2:U,_threadCount:0,Provider:null,Consumer:null},U.Provider=U,U.Consumer={$$typeof:i,_context:U},U},Xt.createElement=function(U,W,rt){var ot,ht={},gt=null;if(W!=null)for(ot in W.key!==void 0&&(gt=""+W.key),W)E.call(W,ot)&&ot!=="key"&&ot!=="__self"&&ot!=="__source"&&(ht[ot]=W[ot]);var mt=arguments.length-2;if(mt===1)ht.children=rt;else if(1<mt){for(var yt=Array(mt),St=0;St<mt;St++)yt[St]=arguments[St+2];ht.children=yt}if(U&&U.defaultProps)for(ot in mt=U.defaultProps,mt)ht[ot]===void 0&&(ht[ot]=mt[ot]);return R(U,gt,ht)},Xt.createRef=function(){return{current:null}},Xt.forwardRef=function(U){return{$$typeof:s,render:U}},Xt.isValidElement=O,Xt.lazy=function(U){return{$$typeof:f,_payload:{_status:-1,_result:U},_init:Y}},Xt.memo=function(U,W){return{$$typeof:u,type:U,compare:W===void 0?null:W}},Xt.startTransition=function(U){var W=L.T,rt={};L.T=rt;try{var ot=U(),ht=L.S;ht!==null&&ht(rt,ot),typeof ot=="object"&&ot!==null&&typeof ot.then=="function"&&ot.then(C,K)}catch(gt){K(gt)}finally{W!==null&&rt.types!==null&&(W.types=rt.types),L.T=W}},Xt.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},Xt.use=function(U){return L.H.use(U)},Xt.useActionState=function(U,W,rt){return L.H.useActionState(U,W,rt)},Xt.useCallback=function(U,W){return L.H.useCallback(U,W)},Xt.useContext=function(U){return L.H.useContext(U)},Xt.useDebugValue=function(){},Xt.useDeferredValue=function(U,W){return L.H.useDeferredValue(U,W)},Xt.useEffect=function(U,W){return L.H.useEffect(U,W)},Xt.useEffectEvent=function(U){return L.H.useEffectEvent(U)},Xt.useId=function(){return L.H.useId()},Xt.useImperativeHandle=function(U,W,rt){return L.H.useImperativeHandle(U,W,rt)},Xt.useInsertionEffect=function(U,W){return L.H.useInsertionEffect(U,W)},Xt.useLayoutEffect=function(U,W){return L.H.useLayoutEffect(U,W)},Xt.useMemo=function(U,W){return L.H.useMemo(U,W)},Xt.useOptimistic=function(U,W){return L.H.useOptimistic(U,W)},Xt.useReducer=function(U,W,rt){return L.H.useReducer(U,W,rt)},Xt.useRef=function(U){return L.H.useRef(U)},Xt.useState=function(U){return L.H.useState(U)},Xt.useSyncExternalStore=function(U,W,rt){return L.H.useSyncExternalStore(U,W,rt)},Xt.useTransition=function(){return L.H.useTransition()},Xt.version="19.2.3",Xt}var gC;function lb(){return gC||(gC=1,F0.exports=kV()),F0.exports}var fe=lb(),j0={exports:{}},Qc={},Y0={exports:{}},X0={};var yC;function BV(){return yC||(yC=1,(function(r){function e(B,j){var Y=B.length;B.push(j);t:for(;0<Y;){var K=Y-1>>>1,nt=B[K];if(0<n(nt,j))B[K]=j,B[Y]=nt,Y=K;else break t}}function t(B){return B.length===0?null:B[0]}function a(B){if(B.length===0)return null;var j=B[0],Y=B.pop();if(Y!==j){B[0]=Y;t:for(var K=0,nt=B.length,U=nt>>>1;K<U;){var W=2*(K+1)-1,rt=B[W],ot=W+1,ht=B[ot];if(0>n(rt,Y))ot<nt&&0>n(ht,rt)?(B[K]=ht,B[ot]=Y,K=ot):(B[K]=rt,B[W]=Y,K=W);else if(ot<nt&&0>n(ht,Y))B[K]=ht,B[ot]=Y,K=ot;else break t}}return j}function n(B,j){var Y=B.sortIndex-j.sortIndex;return Y!==0?Y:B.id-j.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;r.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();r.unstable_now=function(){return o.now()-s}}var l=[],u=[],f=1,v=null,d=3,p=!1,y=!1,m=!1,_=!1,S=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function A(B){for(var j=t(u);j!==null;){if(j.callback===null)a(u);else if(j.startTime<=B)a(u),j.sortIndex=j.expirationTime,e(l,j);else break;j=t(u)}}function M(B){if(m=!1,A(B),!y)if(t(l)!==null)y=!0,C||(C=!0,k());else{var j=t(u);j!==null&&F(M,j.startTime-B)}}var C=!1,L=-1,E=5,R=-1;function N(){return _?!0:!(r.unstable_now()-R<E)}function O(){if(_=!1,C){var B=r.unstable_now();R=B;var j=!0;try{t:{y=!1,m&&(m=!1,b(L),L=-1),p=!0;var Y=d;try{e:{for(A(B),v=t(l);v!==null&&!(v.expirationTime>B&&N());){var K=v.callback;if(typeof K=="function"){v.callback=null,d=v.priorityLevel;var nt=K(v.expirationTime<=B);if(B=r.unstable_now(),typeof nt=="function"){v.callback=nt,A(B),j=!0;break e}v===t(l)&&a(l),A(B)}else a(l);v=t(l)}if(v!==null)j=!0;else{var U=t(u);U!==null&&F(M,U.startTime-B),j=!1}}break t}finally{v=null,d=Y,p=!1}j=void 0}}finally{j?k():C=!1}}}var k;if(typeof w=="function")k=function(){w(O)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,H=G.port2;G.port1.onmessage=O,k=function(){H.postMessage(null)}}else k=function(){S(O,0)};function F(B,j){L=S(function(){B(r.unstable_now())},j)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(B){B.callback=null},r.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<B?Math.floor(1e3/B):5},r.unstable_getCurrentPriorityLevel=function(){return d},r.unstable_next=function(B){switch(d){case 1:case 2:case 3:var j=3;break;default:j=d}var Y=d;d=j;try{return B()}finally{d=Y}},r.unstable_requestPaint=function(){_=!0},r.unstable_runWithPriority=function(B,j){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var Y=d;d=B;try{return j()}finally{d=Y}},r.unstable_scheduleCallback=function(B,j,Y){var K=r.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?K+Y:K):Y=K,B){case 1:var nt=-1;break;case 2:nt=250;break;case 5:nt=1073741823;break;case 4:nt=1e4;break;default:nt=5e3}return nt=Y+nt,B={id:f++,callback:j,priorityLevel:B,startTime:Y,expirationTime:nt,sortIndex:-1},Y>K?(B.sortIndex=Y,e(u,B),t(l)===null&&B===t(u)&&(m?(b(L),L=-1):m=!0,F(M,Y-K))):(B.sortIndex=nt,e(l,B),y||p||(y=!0,C||(C=!0,k()))),B},r.unstable_shouldYield=N,r.unstable_wrapCallback=function(B){var j=d;return function(){var Y=d;d=j;try{return B.apply(this,arguments)}finally{d=Y}}}})(X0)),X0}var mC;function VV(){return mC||(mC=1,Y0.exports=BV()),Y0.exports}var Z0={exports:{}},br={};var _C;function GV(){if(_C)return br;_C=1;var r=lb();function e(l){var u="https://react.dev/errors/"+l;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)u+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+l+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var a={d:{f:t,r:function(){throw Error(e(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},n=Symbol.for("react.portal");function i(l,u,f){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:n,key:v==null?null:""+v,children:l,containerInfo:u,implementation:f}}var o=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function s(l,u){if(l==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return br.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,br.createPortal=function(l,u){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(e(299));return i(l,u,null,f)},br.flushSync=function(l){var u=o.T,f=a.p;try{if(o.T=null,a.p=2,l)return l()}finally{o.T=u,a.p=f,a.d.f()}},br.preconnect=function(l,u){typeof l=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,a.d.C(l,u))},br.prefetchDNS=function(l){typeof l=="string"&&a.d.D(l)},br.preinit=function(l,u){if(typeof l=="string"&&u&&typeof u.as=="string"){var f=u.as,v=s(f,u.crossOrigin),d=typeof u.integrity=="string"?u.integrity:void 0,p=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;f==="style"?a.d.S(l,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:v,integrity:d,fetchPriority:p}):f==="script"&&a.d.X(l,{crossOrigin:v,integrity:d,fetchPriority:p,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},br.preinitModule=function(l,u){if(typeof l=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var f=s(u.as,u.crossOrigin);a.d.M(l,{crossOrigin:f,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&a.d.M(l)},br.preload=function(l,u){if(typeof l=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var f=u.as,v=s(f,u.crossOrigin);a.d.L(l,f,{crossOrigin:v,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},br.preloadModule=function(l,u){if(typeof l=="string")if(u){var f=s(u.as,u.crossOrigin);a.d.m(l,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:f,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else a.d.m(l)},br.requestFormReset=function(l){a.d.r(l)},br.unstable_batchedUpdates=function(l,u){return l(u)},br.useFormState=function(l,u,f){return o.H.useFormState(l,u,f)},br.useFormStatus=function(){return o.H.useHostTransitionStatus()},br.version="19.2.3",br}var xC;function HV(){if(xC)return Z0.exports;xC=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}return r(),Z0.exports=GV(),Z0.exports}var SC;function UV(){if(SC)return Qc;SC=1;var r=VV(),e=lb(),t=HV();function a(c){var h="https://react.dev/errors/"+c;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)h+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+c+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(c){return!(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)}function i(c){var h=c,g=c;if(c.alternate)for(;h.return;)h=h.return;else{c=h;do h=c,(h.flags&4098)!==0&&(g=h.return),c=h.return;while(c)}return h.tag===3?g:null}function o(c){if(c.tag===13){var h=c.memoizedState;if(h===null&&(c=c.alternate,c!==null&&(h=c.memoizedState)),h!==null)return h.dehydrated}return null}function s(c){if(c.tag===31){var h=c.memoizedState;if(h===null&&(c=c.alternate,c!==null&&(h=c.memoizedState)),h!==null)return h.dehydrated}return null}function l(c){if(i(c)!==c)throw Error(a(188))}function u(c){var h=c.alternate;if(!h){if(h=i(c),h===null)throw Error(a(188));return h!==c?null:c}for(var g=c,x=h;;){var T=g.return;if(T===null)break;var D=T.alternate;if(D===null){if(x=T.return,x!==null){g=x;continue}break}if(T.child===D.child){for(D=T.child;D;){if(D===g)return l(T),c;if(D===x)return l(T),h;D=D.sibling}throw Error(a(188))}if(g.return!==x.return)g=T,x=D;else{for(var I=!1,V=T.child;V;){if(V===g){I=!0,g=T,x=D;break}if(V===x){I=!0,x=T,g=D;break}V=V.sibling}if(!I){for(V=D.child;V;){if(V===g){I=!0,g=D,x=T;break}if(V===x){I=!0,x=D,g=T;break}V=V.sibling}if(!I)throw Error(a(189))}}if(g.alternate!==x)throw Error(a(190))}if(g.tag!==3)throw Error(a(188));return g.stateNode.current===g?c:h}function f(c){var h=c.tag;if(h===5||h===26||h===27||h===6)return c;for(c=c.child;c!==null;){if(h=f(c),h!==null)return h;c=c.sibling}return null}var v=Object.assign,d=Symbol.for("react.element"),p=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),N=Symbol.for("react.memo_cache_sentinel"),O=Symbol.iterator;function k(c){return c===null||typeof c!="object"?null:(c=O&&c[O]||c["@@iterator"],typeof c=="function"?c:null)}var G=Symbol.for("react.client.reference");function H(c){if(c==null)return null;if(typeof c=="function")return c.$$typeof===G?null:c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case m:return"Fragment";case S:return"Profiler";case _:return"StrictMode";case M:return"Suspense";case C:return"SuspenseList";case R:return"Activity"}if(typeof c=="object")switch(c.$$typeof){case y:return"Portal";case w:return c.displayName||"Context";case b:return(c._context.displayName||"Context")+".Consumer";case A:var h=c.render;return c=c.displayName,c||(c=h.displayName||h.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case L:return h=c.displayName||null,h!==null?h:H(c.type)||"Memo";case E:h=c._payload,c=c._init;try{return H(c(h))}catch{}}return null}var F=Array.isArray,B=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},K=[],nt=-1;function U(c){return{current:c}}function W(c){0>nt||(c.current=K[nt],K[nt]=null,nt--)}function rt(c,h){nt++,K[nt]=c.current,c.current=h}var ot=U(null),ht=U(null),gt=U(null),mt=U(null);function yt(c,h){switch(rt(gt,h),rt(ht,c),rt(ot,null),h.nodeType){case 9:case 11:c=(c=h.documentElement)&&(c=c.namespaceURI)?zD(c):0;break;default:if(c=h.tagName,h=h.namespaceURI)h=zD(h),c=kD(h,c);else switch(c){case"svg":c=1;break;case"math":c=2;break;default:c=0}}W(ot),rt(ot,c)}function St(){W(ot),W(ht),W(gt)}function Lt(c){c.memoizedState!==null&&rt(mt,c);var h=ot.current,g=kD(h,c.type);h!==g&&(rt(ht,c),rt(ot,g))}function _t(c){ht.current===c&&(W(ot),W(ht)),mt.current===c&&(W(mt),Zc._currentValue=Y)}var Et,ge;function Gt(c){if(Et===void 0)try{throw Error()}catch(g){var h=g.stack.trim().match(/\n( *(at )?)/);Et=h&&h[1]||"",ge=-1<g.stack.indexOf(`
at`)?" (<anonymous>)":-1<g.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Et+c+ge}var Ce=!1;function be(c,h){if(!c||Ce)return"";Ce=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var x={DetermineComponentFrameRoot:function(){try{if(h){var ct=function(){throw Error()};if(Object.defineProperty(ct.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ct,[])}catch(at){var tt=at}Reflect.construct(c,[],ct)}else{try{ct.call()}catch(at){tt=at}c.call(ct.prototype)}}else{try{throw Error()}catch(at){tt=at}(ct=c())&&typeof ct.catch=="function"&&ct.catch(function(){})}}catch(at){if(at&&tt&&typeof at.stack=="string")return[at.stack,tt.stack]}return[null,null]}};x.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var T=Object.getOwnPropertyDescriptor(x.DetermineComponentFrameRoot,"name");T&&T.configurable&&Object.defineProperty(x.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var D=x.DetermineComponentFrameRoot(),I=D[0],V=D[1];if(I&&V){var X=I.split(`
`),J=V.split(`
`);for(T=x=0;x<X.length&&!X[x].includes("DetermineComponentFrameRoot");)x++;for(;T<J.length&&!J[T].includes("DetermineComponentFrameRoot");)T++;if(x===X.length||T===J.length)for(x=X.length-1,T=J.length-1;1<=x&&0<=T&&X[x]!==J[T];)T--;for(;1<=x&&0<=T;x--,T--)if(X[x]!==J[T]){if(x!==1||T!==1)do if(x--,T--,0>T||X[x]!==J[T]){var lt=`
`+X[x].replace(" at new "," at ");return c.displayName&&lt.includes("<anonymous>")&&(lt=lt.replace("<anonymous>",c.displayName)),lt}while(1<=x&&0<=T);break}}}finally{Ce=!1,Error.prepareStackTrace=g}return(g=c?c.displayName||c.name:"")?Gt(g):""}function or(c,h){switch(c.tag){case 26:case 27:case 5:return Gt(c.type);case 16:return Gt("Lazy");case 13:return c.child!==h&&h!==null?Gt("Suspense Fallback"):Gt("Suspense");case 19:return Gt("SuspenseList");case 0:case 15:return be(c.type,!1);case 11:return be(c.type.render,!1);case 1:return be(c.type,!0);case 31:return Gt("Activity");default:return""}}function pa(c){try{var h="",g=null;do h+=or(c,g),g=c,c=c.return;while(c);return h}catch(x){return`
Error generating stack: `+x.message+`
`+x.stack}}var sr=Object.prototype.hasOwnProperty,Ci=r.unstable_scheduleCallback,ga=r.unstable_cancelCallback,ev=r.unstable_shouldYield,nc=r.unstable_requestPaint,Jr=r.unstable_now,pB=r.unstable_getCurrentPriorityLevel,dw=r.unstable_ImmediatePriority,pw=r.unstable_UserBlockingPriority,rv=r.unstable_NormalPriority,gB=r.unstable_LowPriority,gw=r.unstable_IdlePriority,yB=r.log,mB=r.unstable_setDisableYieldValue,ic=null,ta=null;function Mi(c){if(typeof yB=="function"&&mB(c),ta&&typeof ta.setStrictMode=="function")try{ta.setStrictMode(ic,c)}catch{}}var ea=Math.clz32?Math.clz32:SB,_B=Math.log,xB=Math.LN2;function SB(c){return c>>>=0,c===0?32:31-(_B(c)/xB|0)|0}var av=256,nv=262144,iv=4194304;function ko(c){var h=c&42;if(h!==0)return h;switch(c&-c){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return c&261888;case 262144:case 524288:case 1048576:case 2097152:return c&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return c&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return c}}function ov(c,h,g){var x=c.pendingLanes;if(x===0)return 0;var T=0,D=c.suspendedLanes,I=c.pingedLanes;c=c.warmLanes;var V=x&134217727;return V!==0?(x=V&~D,x!==0?T=ko(x):(I&=V,I!==0?T=ko(I):g||(g=V&~c,g!==0&&(T=ko(g))))):(V=x&~D,V!==0?T=ko(V):I!==0?T=ko(I):g||(g=x&~c,g!==0&&(T=ko(g)))),T===0?0:h!==0&&h!==T&&(h&D)===0&&(D=T&-T,g=h&-h,D>=g||D===32&&(g&4194048)!==0)?h:T}function oc(c,h){return(c.pendingLanes&~(c.suspendedLanes&~c.pingedLanes)&h)===0}function bB(c,h){switch(c){case 1:case 2:case 4:case 8:case 64:return h+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return h+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function yw(){var c=iv;return iv<<=1,(iv&62914560)===0&&(iv=4194304),c}function Ey(c){for(var h=[],g=0;31>g;g++)h.push(c);return h}function sc(c,h){c.pendingLanes|=h,h!==268435456&&(c.suspendedLanes=0,c.pingedLanes=0,c.warmLanes=0)}function wB(c,h,g,x,T,D){var I=c.pendingLanes;c.pendingLanes=g,c.suspendedLanes=0,c.pingedLanes=0,c.warmLanes=0,c.expiredLanes&=g,c.entangledLanes&=g,c.errorRecoveryDisabledLanes&=g,c.shellSuspendCounter=0;var V=c.entanglements,X=c.expirationTimes,J=c.hiddenUpdates;for(g=I&~g;0<g;){var lt=31-ea(g),ct=1<<lt;V[lt]=0,X[lt]=-1;var tt=J[lt];if(tt!==null)for(J[lt]=null,lt=0;lt<tt.length;lt++){var at=tt[lt];at!==null&&(at.lane&=-536870913)}g&=~ct}x!==0&&mw(c,x,0),D!==0&&T===0&&c.tag!==0&&(c.suspendedLanes|=D&~(I&~h))}function mw(c,h,g){c.pendingLanes|=h,c.suspendedLanes&=~h;var x=31-ea(h);c.entangledLanes|=h,c.entanglements[x]=c.entanglements[x]|1073741824|g&261930}function _w(c,h){var g=c.entangledLanes|=h;for(c=c.entanglements;g;){var x=31-ea(g),T=1<<x;T&h|c[x]&h&&(c[x]|=h),g&=~T}}function xw(c,h){var g=h&-h;return g=(g&42)!==0?1:Ry(g),(g&(c.suspendedLanes|h))!==0?0:g}function Ry(c){switch(c){case 2:c=1;break;case 8:c=4;break;case 32:c=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:c=128;break;case 268435456:c=134217728;break;default:c=0}return c}function Iy(c){return c&=-c,2<c?8<c?(c&134217727)!==0?32:268435456:8:2}function Sw(){var c=j.p;return c!==0?c:(c=window.event,c===void 0?32:oC(c.type))}function bw(c,h){var g=j.p;try{return j.p=c,h()}finally{j.p=g}}var Li=Math.random().toString(36).slice(2),vr="__reactFiber$"+Li,Hr="__reactProps$"+Li,vl="__reactContainer$"+Li,Ny="__reactEvents$"+Li,TB="__reactListeners$"+Li,AB="__reactHandles$"+Li,ww="__reactResources$"+Li,lc="__reactMarker$"+Li;function Py(c){delete c[vr],delete c[Hr],delete c[Ny],delete c[TB],delete c[AB]}function dl(c){var h=c[vr];if(h)return h;for(var g=c.parentNode;g;){if(h=g[vl]||g[vr]){if(g=h.alternate,h.child!==null||g!==null&&g.child!==null)for(c=jD(c);c!==null;){if(g=c[vr])return g;c=jD(c)}return h}c=g,g=c.parentNode}return null}function pl(c){if(c=c[vr]||c[vl]){var h=c.tag;if(h===5||h===6||h===13||h===31||h===26||h===27||h===3)return c}return null}function uc(c){var h=c.tag;if(h===5||h===26||h===27||h===6)return c.stateNode;throw Error(a(33))}function gl(c){var h=c[ww];return h||(h=c[ww]={hoistableStyles:new Map,hoistableScripts:new Map}),h}function lr(c){c[lc]=!0}var Tw=new Set,Aw={};function Bo(c,h){yl(c,h),yl(c+"Capture",h)}function yl(c,h){for(Aw[c]=h,c=0;c<h.length;c++)Tw.add(h[c])}var DB=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Dw={},Cw={};function CB(c){return sr.call(Cw,c)?!0:sr.call(Dw,c)?!1:DB.test(c)?Cw[c]=!0:(Dw[c]=!0,!1)}function sv(c,h,g){if(CB(h))if(g===null)c.removeAttribute(h);else{switch(typeof g){case"undefined":case"function":case"symbol":c.removeAttribute(h);return;case"boolean":var x=h.toLowerCase().slice(0,5);if(x!=="data-"&&x!=="aria-"){c.removeAttribute(h);return}}c.setAttribute(h,""+g)}}function lv(c,h,g){if(g===null)c.removeAttribute(h);else{switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":c.removeAttribute(h);return}c.setAttribute(h,""+g)}}function Hn(c,h,g,x){if(x===null)c.removeAttribute(g);else{switch(typeof x){case"undefined":case"function":case"symbol":case"boolean":c.removeAttribute(g);return}c.setAttributeNS(h,g,""+x)}}function ya(c){switch(typeof c){case"bigint":case"boolean":case"number":case"string":case"undefined":return c;case"object":return c;default:return""}}function Mw(c){var h=c.type;return(c=c.nodeName)&&c.toLowerCase()==="input"&&(h==="checkbox"||h==="radio")}function MB(c,h,g){var x=Object.getOwnPropertyDescriptor(c.constructor.prototype,h);if(!c.hasOwnProperty(h)&&typeof x<"u"&&typeof x.get=="function"&&typeof x.set=="function"){var T=x.get,D=x.set;return Object.defineProperty(c,h,{configurable:!0,get:function(){return T.call(this)},set:function(I){g=""+I,D.call(this,I)}}),Object.defineProperty(c,h,{enumerable:x.enumerable}),{getValue:function(){return g},setValue:function(I){g=""+I},stopTracking:function(){c._valueTracker=null,delete c[h]}}}}function Oy(c){if(!c._valueTracker){var h=Mw(c)?"checked":"value";c._valueTracker=MB(c,h,""+c[h])}}function Lw(c){if(!c)return!1;var h=c._valueTracker;if(!h)return!0;var g=h.getValue(),x="";return c&&(x=Mw(c)?c.checked?"true":"false":c.value),c=x,c!==g?(h.setValue(c),!0):!1}function uv(c){if(c=c||(typeof document<"u"?document:void 0),typeof c>"u")return null;try{return c.activeElement||c.body}catch{return c.body}}var LB=/[\n"\\]/g;function ma(c){return c.replace(LB,function(h){return"\\"+h.charCodeAt(0).toString(16)+" "})}function zy(c,h,g,x,T,D,I,V){c.name="",I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"?c.type=I:c.removeAttribute("type"),h!=null?I==="number"?(h===0&&c.value===""||c.value!=h)&&(c.value=""+ya(h)):c.value!==""+ya(h)&&(c.value=""+ya(h)):I!=="submit"&&I!=="reset"||c.removeAttribute("value"),h!=null?ky(c,I,ya(h)):g!=null?ky(c,I,ya(g)):x!=null&&c.removeAttribute("value"),T==null&&D!=null&&(c.defaultChecked=!!D),T!=null&&(c.checked=T&&typeof T!="function"&&typeof T!="symbol"),V!=null&&typeof V!="function"&&typeof V!="symbol"&&typeof V!="boolean"?c.name=""+ya(V):c.removeAttribute("name")}function Ew(c,h,g,x,T,D,I,V){if(D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(c.type=D),h!=null||g!=null){if(!(D!=="submit"&&D!=="reset"||h!=null)){Oy(c);return}g=g!=null?""+ya(g):"",h=h!=null?""+ya(h):g,V||h===c.value||(c.value=h),c.defaultValue=h}x=x??T,x=typeof x!="function"&&typeof x!="symbol"&&!!x,c.checked=V?c.checked:!!x,c.defaultChecked=!!x,I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(c.name=I),Oy(c)}function ky(c,h,g){h==="number"&&uv(c.ownerDocument)===c||c.defaultValue===""+g||(c.defaultValue=""+g)}function ml(c,h,g,x){if(c=c.options,h){h={};for(var T=0;T<g.length;T++)h["$"+g[T]]=!0;for(g=0;g<c.length;g++)T=h.hasOwnProperty("$"+c[g].value),c[g].selected!==T&&(c[g].selected=T),T&&x&&(c[g].defaultSelected=!0)}else{for(g=""+ya(g),h=null,T=0;T<c.length;T++){if(c[T].value===g){c[T].selected=!0,x&&(c[T].defaultSelected=!0);return}h!==null||c[T].disabled||(h=c[T])}h!==null&&(h.selected=!0)}}function Rw(c,h,g){if(h!=null&&(h=""+ya(h),h!==c.value&&(c.value=h),g==null)){c.defaultValue!==h&&(c.defaultValue=h);return}c.defaultValue=g!=null?""+ya(g):""}function Iw(c,h,g,x){if(h==null){if(x!=null){if(g!=null)throw Error(a(92));if(F(x)){if(1<x.length)throw Error(a(93));x=x[0]}g=x}g==null&&(g=""),h=g}g=ya(h),c.defaultValue=g,x=c.textContent,x===g&&x!==""&&x!==null&&(c.value=x),Oy(c)}function _l(c,h){if(h){var g=c.firstChild;if(g&&g===c.lastChild&&g.nodeType===3){g.nodeValue=h;return}}c.textContent=h}var EB=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Nw(c,h,g){var x=h.indexOf("--")===0;g==null||typeof g=="boolean"||g===""?x?c.setProperty(h,""):h==="float"?c.cssFloat="":c[h]="":x?c.setProperty(h,g):typeof g!="number"||g===0||EB.has(h)?h==="float"?c.cssFloat=g:c[h]=(""+g).trim():c[h]=g+"px"}function Pw(c,h,g){if(h!=null&&typeof h!="object")throw Error(a(62));if(c=c.style,g!=null){for(var x in g)!g.hasOwnProperty(x)||h!=null&&h.hasOwnProperty(x)||(x.indexOf("--")===0?c.setProperty(x,""):x==="float"?c.cssFloat="":c[x]="");for(var T in h)x=h[T],h.hasOwnProperty(T)&&g[T]!==x&&Nw(c,T,x)}else for(var D in h)h.hasOwnProperty(D)&&Nw(c,D,h[D])}function By(c){if(c.indexOf("-")===-1)return!1;switch(c){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var RB=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),IB=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function cv(c){return IB.test(""+c)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":c}function Un(){}var Vy=null;function Gy(c){return c=c.target||c.srcElement||window,c.correspondingUseElement&&(c=c.correspondingUseElement),c.nodeType===3?c.parentNode:c}var xl=null,Sl=null;function Ow(c){var h=pl(c);if(h&&(c=h.stateNode)){var g=c[Hr]||null;t:switch(c=h.stateNode,h.type){case"input":if(zy(c,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name),h=g.name,g.type==="radio"&&h!=null){for(g=c;g.parentNode;)g=g.parentNode;for(g=g.querySelectorAll('input[name="'+ma(""+h)+'"][type="radio"]'),h=0;h<g.length;h++){var x=g[h];if(x!==c&&x.form===c.form){var T=x[Hr]||null;if(!T)throw Error(a(90));zy(x,T.value,T.defaultValue,T.defaultValue,T.checked,T.defaultChecked,T.type,T.name)}}for(h=0;h<g.length;h++)x=g[h],x.form===c.form&&Lw(x)}break t;case"textarea":Rw(c,g.value,g.defaultValue);break t;case"select":h=g.value,h!=null&&ml(c,!!g.multiple,h,!1)}}}var Hy=!1;function zw(c,h,g){if(Hy)return c(h,g);Hy=!0;try{var x=c(h);return x}finally{if(Hy=!1,(xl!==null||Sl!==null)&&(Kv(),xl&&(h=xl,c=Sl,Sl=xl=null,Ow(h),c)))for(h=0;h<c.length;h++)Ow(c[h])}}function cc(c,h){var g=c.stateNode;if(g===null)return null;var x=g[Hr]||null;if(x===null)return null;g=x[h];t:switch(h){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(x=!x.disabled)||(c=c.type,x=!(c==="button"||c==="input"||c==="select"||c==="textarea")),c=!x;break t;default:c=!1}if(c)return null;if(g&&typeof g!="function")throw Error(a(231,h,typeof g));return g}var Fn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uy=!1;if(Fn)try{var fc={};Object.defineProperty(fc,"passive",{get:function(){Uy=!0}}),window.addEventListener("test",fc,fc),window.removeEventListener("test",fc,fc)}catch{Uy=!1}var Ei=null,Fy=null,fv=null;function kw(){if(fv)return fv;var c,h=Fy,g=h.length,x,T="value"in Ei?Ei.value:Ei.textContent,D=T.length;for(c=0;c<g&&h[c]===T[c];c++);var I=g-c;for(x=1;x<=I&&h[g-x]===T[D-x];x++);return fv=T.slice(c,1<x?1-x:void 0)}function hv(c){var h=c.keyCode;return"charCode"in c?(c=c.charCode,c===0&&h===13&&(c=13)):c=h,c===10&&(c=13),32<=c||c===13?c:0}function vv(){return!0}function Bw(){return!1}function Ur(c){function h(g,x,T,D,I){this._reactName=g,this._targetInst=T,this.type=x,this.nativeEvent=D,this.target=I,this.currentTarget=null;for(var V in c)c.hasOwnProperty(V)&&(g=c[V],this[V]=g?g(D):D[V]);return this.isDefaultPrevented=(D.defaultPrevented!=null?D.defaultPrevented:D.returnValue===!1)?vv:Bw,this.isPropagationStopped=Bw,this}return v(h.prototype,{preventDefault:function(){this.defaultPrevented=!0;var g=this.nativeEvent;g&&(g.preventDefault?g.preventDefault():typeof g.returnValue!="unknown"&&(g.returnValue=!1),this.isDefaultPrevented=vv)},stopPropagation:function(){var g=this.nativeEvent;g&&(g.stopPropagation?g.stopPropagation():typeof g.cancelBubble!="unknown"&&(g.cancelBubble=!0),this.isPropagationStopped=vv)},persist:function(){},isPersistent:vv}),h}var Vo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(c){return c.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dv=Ur(Vo),hc=v({},Vo,{view:0,detail:0}),NB=Ur(hc),jy,Yy,vc,pv=v({},hc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zy,button:0,buttons:0,relatedTarget:function(c){return c.relatedTarget===void 0?c.fromElement===c.srcElement?c.toElement:c.fromElement:c.relatedTarget},movementX:function(c){return"movementX"in c?c.movementX:(c!==vc&&(vc&&c.type==="mousemove"?(jy=c.screenX-vc.screenX,Yy=c.screenY-vc.screenY):Yy=jy=0,vc=c),jy)},movementY:function(c){return"movementY"in c?c.movementY:Yy}}),Vw=Ur(pv),PB=v({},pv,{dataTransfer:0}),OB=Ur(PB),zB=v({},hc,{relatedTarget:0}),Xy=Ur(zB),kB=v({},Vo,{animationName:0,elapsedTime:0,pseudoElement:0}),BB=Ur(kB),VB=v({},Vo,{clipboardData:function(c){return"clipboardData"in c?c.clipboardData:window.clipboardData}}),GB=Ur(VB),HB=v({},Vo,{data:0}),Gw=Ur(HB),UB={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},FB={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},jB={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function YB(c){var h=this.nativeEvent;return h.getModifierState?h.getModifierState(c):(c=jB[c])?!!h[c]:!1}function Zy(){return YB}var XB=v({},hc,{key:function(c){if(c.key){var h=UB[c.key]||c.key;if(h!=="Unidentified")return h}return c.type==="keypress"?(c=hv(c),c===13?"Enter":String.fromCharCode(c)):c.type==="keydown"||c.type==="keyup"?FB[c.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zy,charCode:function(c){return c.type==="keypress"?hv(c):0},keyCode:function(c){return c.type==="keydown"||c.type==="keyup"?c.keyCode:0},which:function(c){return c.type==="keypress"?hv(c):c.type==="keydown"||c.type==="keyup"?c.keyCode:0}}),ZB=Ur(XB),WB=v({},pv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hw=Ur(WB),qB=v({},hc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zy}),$B=Ur(qB),KB=v({},Vo,{propertyName:0,elapsedTime:0,pseudoElement:0}),QB=Ur(KB),JB=v({},pv,{deltaX:function(c){return"deltaX"in c?c.deltaX:"wheelDeltaX"in c?-c.wheelDeltaX:0},deltaY:function(c){return"deltaY"in c?c.deltaY:"wheelDeltaY"in c?-c.wheelDeltaY:"wheelDelta"in c?-c.wheelDelta:0},deltaZ:0,deltaMode:0}),t7=Ur(JB),e7=v({},Vo,{newState:0,oldState:0}),r7=Ur(e7),a7=[9,13,27,32],Wy=Fn&&"CompositionEvent"in window,dc=null;Fn&&"documentMode"in document&&(dc=document.documentMode);var n7=Fn&&"TextEvent"in window&&!dc,Uw=Fn&&(!Wy||dc&&8<dc&&11>=dc),Fw=" ",jw=!1;function Yw(c,h){switch(c){case"keyup":return a7.indexOf(h.keyCode)!==-1;case"keydown":return h.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xw(c){return c=c.detail,typeof c=="object"&&"data"in c?c.data:null}var bl=!1;function i7(c,h){switch(c){case"compositionend":return Xw(h);case"keypress":return h.which!==32?null:(jw=!0,Fw);case"textInput":return c=h.data,c===Fw&&jw?null:c;default:return null}}function o7(c,h){if(bl)return c==="compositionend"||!Wy&&Yw(c,h)?(c=kw(),fv=Fy=Ei=null,bl=!1,c):null;switch(c){case"paste":return null;case"keypress":if(!(h.ctrlKey||h.altKey||h.metaKey)||h.ctrlKey&&h.altKey){if(h.char&&1<h.char.length)return h.char;if(h.which)return String.fromCharCode(h.which)}return null;case"compositionend":return Uw&&h.locale!=="ko"?null:h.data;default:return null}}var s7={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Zw(c){var h=c&&c.nodeName&&c.nodeName.toLowerCase();return h==="input"?!!s7[c.type]:h==="textarea"}function Ww(c,h,g,x){xl?Sl?Sl.push(x):Sl=[x]:xl=x,h=nd(h,"onChange"),0<h.length&&(g=new dv("onChange","change",null,g,x),c.push({event:g,listeners:h}))}var pc=null,gc=null;function l7(c){ED(c,0)}function gv(c){var h=uc(c);if(Lw(h))return c}function qw(c,h){if(c==="change")return h}var $w=!1;if(Fn){var qy;if(Fn){var $y="oninput"in document;if(!$y){var Kw=document.createElement("div");Kw.setAttribute("oninput","return;"),$y=typeof Kw.oninput=="function"}qy=$y}else qy=!1;$w=qy&&(!document.documentMode||9<document.documentMode)}function Qw(){pc&&(pc.detachEvent("onpropertychange",Jw),gc=pc=null)}function Jw(c){if(c.propertyName==="value"&&gv(gc)){var h=[];Ww(h,gc,c,Gy(c)),zw(l7,h)}}function u7(c,h,g){c==="focusin"?(Qw(),pc=h,gc=g,pc.attachEvent("onpropertychange",Jw)):c==="focusout"&&Qw()}function c7(c){if(c==="selectionchange"||c==="keyup"||c==="keydown")return gv(gc)}function f7(c,h){if(c==="click")return gv(h)}function h7(c,h){if(c==="input"||c==="change")return gv(h)}function v7(c,h){return c===h&&(c!==0||1/c===1/h)||c!==c&&h!==h}var ra=typeof Object.is=="function"?Object.is:v7;function yc(c,h){if(ra(c,h))return!0;if(typeof c!="object"||c===null||typeof h!="object"||h===null)return!1;var g=Object.keys(c),x=Object.keys(h);if(g.length!==x.length)return!1;for(x=0;x<g.length;x++){var T=g[x];if(!sr.call(h,T)||!ra(c[T],h[T]))return!1}return!0}function tT(c){for(;c&&c.firstChild;)c=c.firstChild;return c}function eT(c,h){var g=tT(c);c=0;for(var x;g;){if(g.nodeType===3){if(x=c+g.textContent.length,c<=h&&x>=h)return{node:g,offset:h-c};c=x}t:{for(;g;){if(g.nextSibling){g=g.nextSibling;break t}g=g.parentNode}g=void 0}g=tT(g)}}function rT(c,h){return c&&h?c===h?!0:c&&c.nodeType===3?!1:h&&h.nodeType===3?rT(c,h.parentNode):"contains"in c?c.contains(h):c.compareDocumentPosition?!!(c.compareDocumentPosition(h)&16):!1:!1}function aT(c){c=c!=null&&c.ownerDocument!=null&&c.ownerDocument.defaultView!=null?c.ownerDocument.defaultView:window;for(var h=uv(c.document);h instanceof c.HTMLIFrameElement;){try{var g=typeof h.contentWindow.location.href=="string"}catch{g=!1}if(g)c=h.contentWindow;else break;h=uv(c.document)}return h}function Ky(c){var h=c&&c.nodeName&&c.nodeName.toLowerCase();return h&&(h==="input"&&(c.type==="text"||c.type==="search"||c.type==="tel"||c.type==="url"||c.type==="password")||h==="textarea"||c.contentEditable==="true")}var d7=Fn&&"documentMode"in document&&11>=document.documentMode,wl=null,Qy=null,mc=null,Jy=!1;function nT(c,h,g){var x=g.window===g?g.document:g.nodeType===9?g:g.ownerDocument;Jy||wl==null||wl!==uv(x)||(x=wl,"selectionStart"in x&&Ky(x)?x={start:x.selectionStart,end:x.selectionEnd}:(x=(x.ownerDocument&&x.ownerDocument.defaultView||window).getSelection(),x={anchorNode:x.anchorNode,anchorOffset:x.anchorOffset,focusNode:x.focusNode,focusOffset:x.focusOffset}),mc&&yc(mc,x)||(mc=x,x=nd(Qy,"onSelect"),0<x.length&&(h=new dv("onSelect","select",null,h,g),c.push({event:h,listeners:x}),h.target=wl)))}function Go(c,h){var g={};return g[c.toLowerCase()]=h.toLowerCase(),g["Webkit"+c]="webkit"+h,g["Moz"+c]="moz"+h,g}var Tl={animationend:Go("Animation","AnimationEnd"),animationiteration:Go("Animation","AnimationIteration"),animationstart:Go("Animation","AnimationStart"),transitionrun:Go("Transition","TransitionRun"),transitionstart:Go("Transition","TransitionStart"),transitioncancel:Go("Transition","TransitionCancel"),transitionend:Go("Transition","TransitionEnd")},tm={},iT={};Fn&&(iT=document.createElement("div").style,"AnimationEvent"in window||(delete Tl.animationend.animation,delete Tl.animationiteration.animation,delete Tl.animationstart.animation),"TransitionEvent"in window||delete Tl.transitionend.transition);function Ho(c){if(tm[c])return tm[c];if(!Tl[c])return c;var h=Tl[c],g;for(g in h)if(h.hasOwnProperty(g)&&g in iT)return tm[c]=h[g];return c}var oT=Ho("animationend"),sT=Ho("animationiteration"),lT=Ho("animationstart"),p7=Ho("transitionrun"),g7=Ho("transitionstart"),y7=Ho("transitioncancel"),uT=Ho("transitionend"),cT=new Map,em="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");em.push("scrollEnd");function Za(c,h){cT.set(c,h),Bo(h,[c])}var yv=typeof reportError=="function"?reportError:function(c){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var h=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof c=="object"&&c!==null&&typeof c.message=="string"?String(c.message):String(c),error:c});if(!window.dispatchEvent(h))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",c);return}console.error(c)},_a=[],Al=0,rm=0;function mv(){for(var c=Al,h=rm=Al=0;h<c;){var g=_a[h];_a[h++]=null;var x=_a[h];_a[h++]=null;var T=_a[h];_a[h++]=null;var D=_a[h];if(_a[h++]=null,x!==null&&T!==null){var I=x.pending;I===null?T.next=T:(T.next=I.next,I.next=T),x.pending=T}D!==0&&fT(g,T,D)}}function _v(c,h,g,x){_a[Al++]=c,_a[Al++]=h,_a[Al++]=g,_a[Al++]=x,rm|=x,c.lanes|=x,c=c.alternate,c!==null&&(c.lanes|=x)}function am(c,h,g,x){return _v(c,h,g,x),xv(c)}function Uo(c,h){return _v(c,null,null,h),xv(c)}function fT(c,h,g){c.lanes|=g;var x=c.alternate;x!==null&&(x.lanes|=g);for(var T=!1,D=c.return;D!==null;)D.childLanes|=g,x=D.alternate,x!==null&&(x.childLanes|=g),D.tag===22&&(c=D.stateNode,c===null||c._visibility&1||(T=!0)),c=D,D=D.return;return c.tag===3?(D=c.stateNode,T&&h!==null&&(T=31-ea(g),c=D.hiddenUpdates,x=c[T],x===null?c[T]=[h]:x.push(h),h.lane=g|536870912),D):null}function xv(c){if(50<Gc)throw Gc=0,h0=null,Error(a(185));for(var h=c.return;h!==null;)c=h,h=c.return;return c.tag===3?c.stateNode:null}var Dl={};function m7(c,h,g,x){this.tag=c,this.key=g,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=h,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=x,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function aa(c,h,g,x){return new m7(c,h,g,x)}function nm(c){return c=c.prototype,!(!c||!c.isReactComponent)}function jn(c,h){var g=c.alternate;return g===null?(g=aa(c.tag,h,c.key,c.mode),g.elementType=c.elementType,g.type=c.type,g.stateNode=c.stateNode,g.alternate=c,c.alternate=g):(g.pendingProps=h,g.type=c.type,g.flags=0,g.subtreeFlags=0,g.deletions=null),g.flags=c.flags&65011712,g.childLanes=c.childLanes,g.lanes=c.lanes,g.child=c.child,g.memoizedProps=c.memoizedProps,g.memoizedState=c.memoizedState,g.updateQueue=c.updateQueue,h=c.dependencies,g.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext},g.sibling=c.sibling,g.index=c.index,g.ref=c.ref,g.refCleanup=c.refCleanup,g}function hT(c,h){c.flags&=65011714;var g=c.alternate;return g===null?(c.childLanes=0,c.lanes=h,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=g.childLanes,c.lanes=g.lanes,c.child=g.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=g.memoizedProps,c.memoizedState=g.memoizedState,c.updateQueue=g.updateQueue,c.type=g.type,h=g.dependencies,c.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext}),c}function Sv(c,h,g,x,T,D){var I=0;if(x=c,typeof c=="function")nm(c)&&(I=1);else if(typeof c=="string")I=wV(c,g,ot.current)?26:c==="html"||c==="head"||c==="body"?27:5;else t:switch(c){case R:return c=aa(31,g,h,T),c.elementType=R,c.lanes=D,c;case m:return Fo(g.children,T,D,h);case _:I=8,T|=24;break;case S:return c=aa(12,g,h,T|2),c.elementType=S,c.lanes=D,c;case M:return c=aa(13,g,h,T),c.elementType=M,c.lanes=D,c;case C:return c=aa(19,g,h,T),c.elementType=C,c.lanes=D,c;default:if(typeof c=="object"&&c!==null)switch(c.$$typeof){case w:I=10;break t;case b:I=9;break t;case A:I=11;break t;case L:I=14;break t;case E:I=16,x=null;break t}I=29,g=Error(a(130,c===null?"null":typeof c,"")),x=null}return h=aa(I,g,h,T),h.elementType=c,h.type=x,h.lanes=D,h}function Fo(c,h,g,x){return c=aa(7,c,x,h),c.lanes=g,c}function im(c,h,g){return c=aa(6,c,null,h),c.lanes=g,c}function vT(c){var h=aa(18,null,null,0);return h.stateNode=c,h}function om(c,h,g){return h=aa(4,c.children!==null?c.children:[],c.key,h),h.lanes=g,h.stateNode={containerInfo:c.containerInfo,pendingChildren:null,implementation:c.implementation},h}var dT=new WeakMap;function xa(c,h){if(typeof c=="object"&&c!==null){var g=dT.get(c);return g!==void 0?g:(h={value:c,source:h,stack:pa(h)},dT.set(c,h),h)}return{value:c,source:h,stack:pa(h)}}var Cl=[],Ml=0,bv=null,_c=0,Sa=[],ba=0,Ri=null,vn=1,dn="";function Yn(c,h){Cl[Ml++]=_c,Cl[Ml++]=bv,bv=c,_c=h}function pT(c,h,g){Sa[ba++]=vn,Sa[ba++]=dn,Sa[ba++]=Ri,Ri=c;var x=vn;c=dn;var T=32-ea(x)-1;x&=~(1<<T),g+=1;var D=32-ea(h)+T;if(30<D){var I=T-T%5;D=(x&(1<<I)-1).toString(32),x>>=I,T-=I,vn=1<<32-ea(h)+T|g<<T|x,dn=D+c}else vn=1<<D|g<<T|x,dn=c}function sm(c){c.return!==null&&(Yn(c,1),pT(c,1,0))}function lm(c){for(;c===bv;)bv=Cl[--Ml],Cl[Ml]=null,_c=Cl[--Ml],Cl[Ml]=null;for(;c===Ri;)Ri=Sa[--ba],Sa[ba]=null,dn=Sa[--ba],Sa[ba]=null,vn=Sa[--ba],Sa[ba]=null}function gT(c,h){Sa[ba++]=vn,Sa[ba++]=dn,Sa[ba++]=Ri,vn=h.id,dn=h.overflow,Ri=c}var dr=null,Re=null,ie=!1,Ii=null,wa=!1,um=Error(a(519));function Ni(c){var h=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw xc(xa(h,c)),um}function yT(c){var h=c.stateNode,g=c.type,x=c.memoizedProps;switch(h[vr]=c,h[Hr]=x,g){case"dialog":ee("cancel",h),ee("close",h);break;case"iframe":case"object":case"embed":ee("load",h);break;case"video":case"audio":for(g=0;g<Uc.length;g++)ee(Uc[g],h);break;case"source":ee("error",h);break;case"img":case"image":case"link":ee("error",h),ee("load",h);break;case"details":ee("toggle",h);break;case"input":ee("invalid",h),Ew(h,x.value,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name,!0);break;case"select":ee("invalid",h);break;case"textarea":ee("invalid",h),Iw(h,x.value,x.defaultValue,x.children)}g=x.children,typeof g!="string"&&typeof g!="number"&&typeof g!="bigint"||h.textContent===""+g||x.suppressHydrationWarning===!0||PD(h.textContent,g)?(x.popover!=null&&(ee("beforetoggle",h),ee("toggle",h)),x.onScroll!=null&&ee("scroll",h),x.onScrollEnd!=null&&ee("scrollend",h),x.onClick!=null&&(h.onclick=Un),h=!0):h=!1,h||Ni(c,!0)}function mT(c){for(dr=c.return;dr;)switch(dr.tag){case 5:case 31:case 13:wa=!1;return;case 27:case 3:wa=!0;return;default:dr=dr.return}}function Ll(c){if(c!==dr)return!1;if(!ie)return mT(c),ie=!0,!1;var h=c.tag,g;if((g=h!==3&&h!==27)&&((g=h===5)&&(g=c.type,g=!(g!=="form"&&g!=="button")||C0(c.type,c.memoizedProps)),g=!g),g&&Re&&Ni(c),mT(c),h===13){if(c=c.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(a(317));Re=FD(c)}else if(h===31){if(c=c.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(a(317));Re=FD(c)}else h===27?(h=Re,Zi(c.type)?(c=I0,I0=null,Re=c):Re=h):Re=dr?Aa(c.stateNode.nextSibling):null;return!0}function jo(){Re=dr=null,ie=!1}function cm(){var c=Ii;return c!==null&&(Xr===null?Xr=c:Xr.push.apply(Xr,c),Ii=null),c}function xc(c){Ii===null?Ii=[c]:Ii.push(c)}var fm=U(null),Yo=null,Xn=null;function Pi(c,h,g){rt(fm,h._currentValue),h._currentValue=g}function Zn(c){c._currentValue=fm.current,W(fm)}function hm(c,h,g){for(;c!==null;){var x=c.alternate;if((c.childLanes&h)!==h?(c.childLanes|=h,x!==null&&(x.childLanes|=h)):x!==null&&(x.childLanes&h)!==h&&(x.childLanes|=h),c===g)break;c=c.return}}function vm(c,h,g,x){var T=c.child;for(T!==null&&(T.return=c);T!==null;){var D=T.dependencies;if(D!==null){var I=T.child;D=D.firstContext;t:for(;D!==null;){var V=D;D=T;for(var X=0;X<h.length;X++)if(V.context===h[X]){D.lanes|=g,V=D.alternate,V!==null&&(V.lanes|=g),hm(D.return,g,c),x||(I=null);break t}D=V.next}}else if(T.tag===18){if(I=T.return,I===null)throw Error(a(341));I.lanes|=g,D=I.alternate,D!==null&&(D.lanes|=g),hm(I,g,c),I=null}else I=T.child;if(I!==null)I.return=T;else for(I=T;I!==null;){if(I===c){I=null;break}if(T=I.sibling,T!==null){T.return=I.return,I=T;break}I=I.return}T=I}}function El(c,h,g,x){c=null;for(var T=h,D=!1;T!==null;){if(!D){if((T.flags&524288)!==0)D=!0;else if((T.flags&262144)!==0)break}if(T.tag===10){var I=T.alternate;if(I===null)throw Error(a(387));if(I=I.memoizedProps,I!==null){var V=T.type;ra(T.pendingProps.value,I.value)||(c!==null?c.push(V):c=[V])}}else if(T===mt.current){if(I=T.alternate,I===null)throw Error(a(387));I.memoizedState.memoizedState!==T.memoizedState.memoizedState&&(c!==null?c.push(Zc):c=[Zc])}T=T.return}c!==null&&vm(h,c,g,x),h.flags|=262144}function wv(c){for(c=c.firstContext;c!==null;){if(!ra(c.context._currentValue,c.memoizedValue))return!0;c=c.next}return!1}function Xo(c){Yo=c,Xn=null,c=c.dependencies,c!==null&&(c.firstContext=null)}function pr(c){return _T(Yo,c)}function Tv(c,h){return Yo===null&&Xo(c),_T(c,h)}function _T(c,h){var g=h._currentValue;if(h={context:h,memoizedValue:g,next:null},Xn===null){if(c===null)throw Error(a(308));Xn=h,c.dependencies={lanes:0,firstContext:h},c.flags|=524288}else Xn=Xn.next=h;return g}var _7=typeof AbortController<"u"?AbortController:function(){var c=[],h=this.signal={aborted:!1,addEventListener:function(g,x){c.push(x)}};this.abort=function(){h.aborted=!0,c.forEach(function(g){return g()})}},x7=r.unstable_scheduleCallback,S7=r.unstable_NormalPriority,Ze={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function dm(){return{controller:new _7,data:new Map,refCount:0}}function Sc(c){c.refCount--,c.refCount===0&&x7(S7,function(){c.controller.abort()})}var bc=null,pm=0,Rl=0,Il=null;function b7(c,h){if(bc===null){var g=bc=[];pm=0,Rl=m0(),Il={status:"pending",value:void 0,then:function(x){g.push(x)}}}return pm++,h.then(xT,xT),h}function xT(){if(--pm===0&&bc!==null){Il!==null&&(Il.status="fulfilled");var c=bc;bc=null,Rl=0,Il=null;for(var h=0;h<c.length;h++)(0,c[h])()}}function w7(c,h){var g=[],x={status:"pending",value:null,reason:null,then:function(T){g.push(T)}};return c.then(function(){x.status="fulfilled",x.value=h;for(var T=0;T<g.length;T++)(0,g[T])(h)},function(T){for(x.status="rejected",x.reason=T,T=0;T<g.length;T++)(0,g[T])(void 0)}),x}var ST=B.S;B.S=function(c,h){nD=Jr(),typeof h=="object"&&h!==null&&typeof h.then=="function"&&b7(c,h),ST!==null&&ST(c,h)};var Zo=U(null);function gm(){var c=Zo.current;return c!==null?c:Me.pooledCache}function Av(c,h){h===null?rt(Zo,Zo.current):rt(Zo,h.pool)}function bT(){var c=gm();return c===null?null:{parent:Ze._currentValue,pool:c}}var Nl=Error(a(460)),ym=Error(a(474)),Dv=Error(a(542)),Cv={then:function(){}};function wT(c){return c=c.status,c==="fulfilled"||c==="rejected"}function TT(c,h,g){switch(g=c[g],g===void 0?c.push(h):g!==h&&(h.then(Un,Un),h=g),h.status){case"fulfilled":return h.value;case"rejected":throw c=h.reason,DT(c),c;default:if(typeof h.status=="string")h.then(Un,Un);else{if(c=Me,c!==null&&100<c.shellSuspendCounter)throw Error(a(482));c=h,c.status="pending",c.then(function(x){if(h.status==="pending"){var T=h;T.status="fulfilled",T.value=x}},function(x){if(h.status==="pending"){var T=h;T.status="rejected",T.reason=x}})}switch(h.status){case"fulfilled":return h.value;case"rejected":throw c=h.reason,DT(c),c}throw qo=h,Nl}}function Wo(c){try{var h=c._init;return h(c._payload)}catch(g){throw g!==null&&typeof g=="object"&&typeof g.then=="function"?(qo=g,Nl):g}}var qo=null;function AT(){if(qo===null)throw Error(a(459));var c=qo;return qo=null,c}function DT(c){if(c===Nl||c===Dv)throw Error(a(483))}var Pl=null,wc=0;function Mv(c){var h=wc;return wc+=1,Pl===null&&(Pl=[]),TT(Pl,c,h)}function Tc(c,h){h=h.props.ref,c.ref=h!==void 0?h:null}function Lv(c,h){throw h.$$typeof===d?Error(a(525)):(c=Object.prototype.toString.call(h),Error(a(31,c==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":c)))}function CT(c){function h(q,Z){if(c){var Q=q.deletions;Q===null?(q.deletions=[Z],q.flags|=16):Q.push(Z)}}function g(q,Z){if(!c)return null;for(;Z!==null;)h(q,Z),Z=Z.sibling;return null}function x(q){for(var Z=new Map;q!==null;)q.key!==null?Z.set(q.key,q):Z.set(q.index,q),q=q.sibling;return Z}function T(q,Z){return q=jn(q,Z),q.index=0,q.sibling=null,q}function D(q,Z,Q){return q.index=Q,c?(Q=q.alternate,Q!==null?(Q=Q.index,Q<Z?(q.flags|=67108866,Z):Q):(q.flags|=67108866,Z)):(q.flags|=1048576,Z)}function I(q){return c&&q.alternate===null&&(q.flags|=67108866),q}function V(q,Z,Q,ut){return Z===null||Z.tag!==6?(Z=im(Q,q.mode,ut),Z.return=q,Z):(Z=T(Z,Q),Z.return=q,Z)}function X(q,Z,Q,ut){var Nt=Q.type;return Nt===m?lt(q,Z,Q.props.children,ut,Q.key):Z!==null&&(Z.elementType===Nt||typeof Nt=="object"&&Nt!==null&&Nt.$$typeof===E&&Wo(Nt)===Z.type)?(Z=T(Z,Q.props),Tc(Z,Q),Z.return=q,Z):(Z=Sv(Q.type,Q.key,Q.props,null,q.mode,ut),Tc(Z,Q),Z.return=q,Z)}function J(q,Z,Q,ut){return Z===null||Z.tag!==4||Z.stateNode.containerInfo!==Q.containerInfo||Z.stateNode.implementation!==Q.implementation?(Z=om(Q,q.mode,ut),Z.return=q,Z):(Z=T(Z,Q.children||[]),Z.return=q,Z)}function lt(q,Z,Q,ut,Nt){return Z===null||Z.tag!==7?(Z=Fo(Q,q.mode,ut,Nt),Z.return=q,Z):(Z=T(Z,Q),Z.return=q,Z)}function ct(q,Z,Q){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return Z=im(""+Z,q.mode,Q),Z.return=q,Z;if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case p:return Q=Sv(Z.type,Z.key,Z.props,null,q.mode,Q),Tc(Q,Z),Q.return=q,Q;case y:return Z=om(Z,q.mode,Q),Z.return=q,Z;case E:return Z=Wo(Z),ct(q,Z,Q)}if(F(Z)||k(Z))return Z=Fo(Z,q.mode,Q,null),Z.return=q,Z;if(typeof Z.then=="function")return ct(q,Mv(Z),Q);if(Z.$$typeof===w)return ct(q,Tv(q,Z),Q);Lv(q,Z)}return null}function tt(q,Z,Q,ut){var Nt=Z!==null?Z.key:null;if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return Nt!==null?null:V(q,Z,""+Q,ut);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case p:return Q.key===Nt?X(q,Z,Q,ut):null;case y:return Q.key===Nt?J(q,Z,Q,ut):null;case E:return Q=Wo(Q),tt(q,Z,Q,ut)}if(F(Q)||k(Q))return Nt!==null?null:lt(q,Z,Q,ut,null);if(typeof Q.then=="function")return tt(q,Z,Mv(Q),ut);if(Q.$$typeof===w)return tt(q,Z,Tv(q,Q),ut);Lv(q,Q)}return null}function at(q,Z,Q,ut,Nt){if(typeof ut=="string"&&ut!==""||typeof ut=="number"||typeof ut=="bigint")return q=q.get(Q)||null,V(Z,q,""+ut,Nt);if(typeof ut=="object"&&ut!==null){switch(ut.$$typeof){case p:return q=q.get(ut.key===null?Q:ut.key)||null,X(Z,q,ut,Nt);case y:return q=q.get(ut.key===null?Q:ut.key)||null,J(Z,q,ut,Nt);case E:return ut=Wo(ut),at(q,Z,Q,ut,Nt)}if(F(ut)||k(ut))return q=q.get(Q)||null,lt(Z,q,ut,Nt,null);if(typeof ut.then=="function")return at(q,Z,Q,Mv(ut),Nt);if(ut.$$typeof===w)return at(q,Z,Q,Tv(Z,ut),Nt);Lv(Z,ut)}return null}function At(q,Z,Q,ut){for(var Nt=null,ue=null,Mt=Z,qt=Z=0,ae=null;Mt!==null&&qt<Q.length;qt++){Mt.index>qt?(ae=Mt,Mt=null):ae=Mt.sibling;var ce=tt(q,Mt,Q[qt],ut);if(ce===null){Mt===null&&(Mt=ae);break}c&&Mt&&ce.alternate===null&&h(q,Mt),Z=D(ce,Z,qt),ue===null?Nt=ce:ue.sibling=ce,ue=ce,Mt=ae}if(qt===Q.length)return g(q,Mt),ie&&Yn(q,qt),Nt;if(Mt===null){for(;qt<Q.length;qt++)Mt=ct(q,Q[qt],ut),Mt!==null&&(Z=D(Mt,Z,qt),ue===null?Nt=Mt:ue.sibling=Mt,ue=Mt);return ie&&Yn(q,qt),Nt}for(Mt=x(Mt);qt<Q.length;qt++)ae=at(Mt,q,qt,Q[qt],ut),ae!==null&&(c&&ae.alternate!==null&&Mt.delete(ae.key===null?qt:ae.key),Z=D(ae,Z,qt),ue===null?Nt=ae:ue.sibling=ae,ue=ae);return c&&Mt.forEach(function(Qi){return h(q,Qi)}),ie&&Yn(q,qt),Nt}function Bt(q,Z,Q,ut){if(Q==null)throw Error(a(151));for(var Nt=null,ue=null,Mt=Z,qt=Z=0,ae=null,ce=Q.next();Mt!==null&&!ce.done;qt++,ce=Q.next()){Mt.index>qt?(ae=Mt,Mt=null):ae=Mt.sibling;var Qi=tt(q,Mt,ce.value,ut);if(Qi===null){Mt===null&&(Mt=ae);break}c&&Mt&&Qi.alternate===null&&h(q,Mt),Z=D(Qi,Z,qt),ue===null?Nt=Qi:ue.sibling=Qi,ue=Qi,Mt=ae}if(ce.done)return g(q,Mt),ie&&Yn(q,qt),Nt;if(Mt===null){for(;!ce.done;qt++,ce=Q.next())ce=ct(q,ce.value,ut),ce!==null&&(Z=D(ce,Z,qt),ue===null?Nt=ce:ue.sibling=ce,ue=ce);return ie&&Yn(q,qt),Nt}for(Mt=x(Mt);!ce.done;qt++,ce=Q.next())ce=at(Mt,q,qt,ce.value,ut),ce!==null&&(c&&ce.alternate!==null&&Mt.delete(ce.key===null?qt:ce.key),Z=D(ce,Z,qt),ue===null?Nt=ce:ue.sibling=ce,ue=ce);return c&&Mt.forEach(function(PV){return h(q,PV)}),ie&&Yn(q,qt),Nt}function Ae(q,Z,Q,ut){if(typeof Q=="object"&&Q!==null&&Q.type===m&&Q.key===null&&(Q=Q.props.children),typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case p:t:{for(var Nt=Q.key;Z!==null;){if(Z.key===Nt){if(Nt=Q.type,Nt===m){if(Z.tag===7){g(q,Z.sibling),ut=T(Z,Q.props.children),ut.return=q,q=ut;break t}}else if(Z.elementType===Nt||typeof Nt=="object"&&Nt!==null&&Nt.$$typeof===E&&Wo(Nt)===Z.type){g(q,Z.sibling),ut=T(Z,Q.props),Tc(ut,Q),ut.return=q,q=ut;break t}g(q,Z);break}else h(q,Z);Z=Z.sibling}Q.type===m?(ut=Fo(Q.props.children,q.mode,ut,Q.key),ut.return=q,q=ut):(ut=Sv(Q.type,Q.key,Q.props,null,q.mode,ut),Tc(ut,Q),ut.return=q,q=ut)}return I(q);case y:t:{for(Nt=Q.key;Z!==null;){if(Z.key===Nt)if(Z.tag===4&&Z.stateNode.containerInfo===Q.containerInfo&&Z.stateNode.implementation===Q.implementation){g(q,Z.sibling),ut=T(Z,Q.children||[]),ut.return=q,q=ut;break t}else{g(q,Z);break}else h(q,Z);Z=Z.sibling}ut=om(Q,q.mode,ut),ut.return=q,q=ut}return I(q);case E:return Q=Wo(Q),Ae(q,Z,Q,ut)}if(F(Q))return At(q,Z,Q,ut);if(k(Q)){if(Nt=k(Q),typeof Nt!="function")throw Error(a(150));return Q=Nt.call(Q),Bt(q,Z,Q,ut)}if(typeof Q.then=="function")return Ae(q,Z,Mv(Q),ut);if(Q.$$typeof===w)return Ae(q,Z,Tv(q,Q),ut);Lv(q,Q)}return typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint"?(Q=""+Q,Z!==null&&Z.tag===6?(g(q,Z.sibling),ut=T(Z,Q),ut.return=q,q=ut):(g(q,Z),ut=im(Q,q.mode,ut),ut.return=q,q=ut),I(q)):g(q,Z)}return function(q,Z,Q,ut){try{wc=0;var Nt=Ae(q,Z,Q,ut);return Pl=null,Nt}catch(Mt){if(Mt===Nl||Mt===Dv)throw Mt;var ue=aa(29,Mt,null,q.mode);return ue.lanes=ut,ue.return=q,ue}}}var $o=CT(!0),MT=CT(!1),Oi=!1;function mm(c){c.updateQueue={baseState:c.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _m(c,h){c=c.updateQueue,h.updateQueue===c&&(h.updateQueue={baseState:c.baseState,firstBaseUpdate:c.firstBaseUpdate,lastBaseUpdate:c.lastBaseUpdate,shared:c.shared,callbacks:null})}function zi(c){return{lane:c,tag:0,payload:null,callback:null,next:null}}function ki(c,h,g){var x=c.updateQueue;if(x===null)return null;if(x=x.shared,(ve&2)!==0){var T=x.pending;return T===null?h.next=h:(h.next=T.next,T.next=h),x.pending=h,h=xv(c),fT(c,null,g),h}return _v(c,x,h,g),xv(c)}function Ac(c,h,g){if(h=h.updateQueue,h!==null&&(h=h.shared,(g&4194048)!==0)){var x=h.lanes;x&=c.pendingLanes,g|=x,h.lanes=g,_w(c,g)}}function xm(c,h){var g=c.updateQueue,x=c.alternate;if(x!==null&&(x=x.updateQueue,g===x)){var T=null,D=null;if(g=g.firstBaseUpdate,g!==null){do{var I={lane:g.lane,tag:g.tag,payload:g.payload,callback:null,next:null};D===null?T=D=I:D=D.next=I,g=g.next}while(g!==null);D===null?T=D=h:D=D.next=h}else T=D=h;g={baseState:x.baseState,firstBaseUpdate:T,lastBaseUpdate:D,shared:x.shared,callbacks:x.callbacks},c.updateQueue=g;return}c=g.lastBaseUpdate,c===null?g.firstBaseUpdate=h:c.next=h,g.lastBaseUpdate=h}var Sm=!1;function Dc(){if(Sm){var c=Il;if(c!==null)throw c}}function Cc(c,h,g,x){Sm=!1;var T=c.updateQueue;Oi=!1;var D=T.firstBaseUpdate,I=T.lastBaseUpdate,V=T.shared.pending;if(V!==null){T.shared.pending=null;var X=V,J=X.next;X.next=null,I===null?D=J:I.next=J,I=X;var lt=c.alternate;lt!==null&&(lt=lt.updateQueue,V=lt.lastBaseUpdate,V!==I&&(V===null?lt.firstBaseUpdate=J:V.next=J,lt.lastBaseUpdate=X))}if(D!==null){var ct=T.baseState;I=0,lt=J=X=null,V=D;do{var tt=V.lane&-536870913,at=tt!==V.lane;if(at?(re&tt)===tt:(x&tt)===tt){tt!==0&&tt===Rl&&(Sm=!0),lt!==null&&(lt=lt.next={lane:0,tag:V.tag,payload:V.payload,callback:null,next:null});t:{var At=c,Bt=V;tt=h;var Ae=g;switch(Bt.tag){case 1:if(At=Bt.payload,typeof At=="function"){ct=At.call(Ae,ct,tt);break t}ct=At;break t;case 3:At.flags=At.flags&-65537|128;case 0:if(At=Bt.payload,tt=typeof At=="function"?At.call(Ae,ct,tt):At,tt==null)break t;ct=v({},ct,tt);break t;case 2:Oi=!0}}tt=V.callback,tt!==null&&(c.flags|=64,at&&(c.flags|=8192),at=T.callbacks,at===null?T.callbacks=[tt]:at.push(tt))}else at={lane:tt,tag:V.tag,payload:V.payload,callback:V.callback,next:null},lt===null?(J=lt=at,X=ct):lt=lt.next=at,I|=tt;if(V=V.next,V===null){if(V=T.shared.pending,V===null)break;at=V,V=at.next,at.next=null,T.lastBaseUpdate=at,T.shared.pending=null}}while(!0);lt===null&&(X=ct),T.baseState=X,T.firstBaseUpdate=J,T.lastBaseUpdate=lt,D===null&&(T.shared.lanes=0),Ui|=I,c.lanes=I,c.memoizedState=ct}}function LT(c,h){if(typeof c!="function")throw Error(a(191,c));c.call(h)}function ET(c,h){var g=c.callbacks;if(g!==null)for(c.callbacks=null,c=0;c<g.length;c++)LT(g[c],h)}var Ol=U(null),Ev=U(0);function RT(c,h){c=ri,rt(Ev,c),rt(Ol,h),ri=c|h.baseLanes}function bm(){rt(Ev,ri),rt(Ol,Ol.current)}function wm(){ri=Ev.current,W(Ol),W(Ev)}var na=U(null),Ta=null;function Bi(c){var h=c.alternate;rt(He,He.current&1),rt(na,c),Ta===null&&(h===null||Ol.current!==null||h.memoizedState!==null)&&(Ta=c)}function Tm(c){rt(He,He.current),rt(na,c),Ta===null&&(Ta=c)}function IT(c){c.tag===22?(rt(He,He.current),rt(na,c),Ta===null&&(Ta=c)):Vi()}function Vi(){rt(He,He.current),rt(na,na.current)}function ia(c){W(na),Ta===c&&(Ta=null),W(He)}var He=U(0);function Rv(c){for(var h=c;h!==null;){if(h.tag===13){var g=h.memoizedState;if(g!==null&&(g=g.dehydrated,g===null||E0(g)||R0(g)))return h}else if(h.tag===19&&(h.memoizedProps.revealOrder==="forwards"||h.memoizedProps.revealOrder==="backwards"||h.memoizedProps.revealOrder==="unstable_legacy-backwards"||h.memoizedProps.revealOrder==="together")){if((h.flags&128)!==0)return h}else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===c)break;for(;h.sibling===null;){if(h.return===null||h.return===c)return null;h=h.return}h.sibling.return=h.return,h=h.sibling}return null}var Wn=0,Zt=null,we=null,We=null,Iv=!1,zl=!1,Ko=!1,Nv=0,Mc=0,kl=null,T7=0;function ke(){throw Error(a(321))}function Am(c,h){if(h===null)return!1;for(var g=0;g<h.length&&g<c.length;g++)if(!ra(c[g],h[g]))return!1;return!0}function Dm(c,h,g,x,T,D){return Wn=D,Zt=h,h.memoizedState=null,h.updateQueue=null,h.lanes=0,B.H=c===null||c.memoizedState===null?pA:Hm,Ko=!1,D=g(x,T),Ko=!1,zl&&(D=PT(h,g,x,T)),NT(c),D}function NT(c){B.H=Rc;var h=we!==null&&we.next!==null;if(Wn=0,We=we=Zt=null,Iv=!1,Mc=0,kl=null,h)throw Error(a(300));c===null||qe||(c=c.dependencies,c!==null&&wv(c)&&(qe=!0))}function PT(c,h,g,x){Zt=c;var T=0;do{if(zl&&(kl=null),Mc=0,zl=!1,25<=T)throw Error(a(301));if(T+=1,We=we=null,c.updateQueue!=null){var D=c.updateQueue;D.lastEffect=null,D.events=null,D.stores=null,D.memoCache!=null&&(D.memoCache.index=0)}B.H=gA,D=h(g,x)}while(zl);return D}function A7(){var c=B.H,h=c.useState()[0];return h=typeof h.then=="function"?Lc(h):h,c=c.useState()[0],(we!==null?we.memoizedState:null)!==c&&(Zt.flags|=1024),h}function Cm(){var c=Nv!==0;return Nv=0,c}function Mm(c,h,g){h.updateQueue=c.updateQueue,h.flags&=-2053,c.lanes&=~g}function Lm(c){if(Iv){for(c=c.memoizedState;c!==null;){var h=c.queue;h!==null&&(h.pending=null),c=c.next}Iv=!1}Wn=0,We=we=Zt=null,zl=!1,Mc=Nv=0,kl=null}function Mr(){var c={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?Zt.memoizedState=We=c:We=We.next=c,We}function Ue(){if(we===null){var c=Zt.alternate;c=c!==null?c.memoizedState:null}else c=we.next;var h=We===null?Zt.memoizedState:We.next;if(h!==null)We=h,we=c;else{if(c===null)throw Zt.alternate===null?Error(a(467)):Error(a(310));we=c,c={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},We===null?Zt.memoizedState=We=c:We=We.next=c}return We}function Pv(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Lc(c){var h=Mc;return Mc+=1,kl===null&&(kl=[]),c=TT(kl,c,h),h=Zt,(We===null?h.memoizedState:We.next)===null&&(h=h.alternate,B.H=h===null||h.memoizedState===null?pA:Hm),c}function Ov(c){if(c!==null&&typeof c=="object"){if(typeof c.then=="function")return Lc(c);if(c.$$typeof===w)return pr(c)}throw Error(a(438,String(c)))}function Em(c){var h=null,g=Zt.updateQueue;if(g!==null&&(h=g.memoCache),h==null){var x=Zt.alternate;x!==null&&(x=x.updateQueue,x!==null&&(x=x.memoCache,x!=null&&(h={data:x.data.map(function(T){return T.slice()}),index:0})))}if(h==null&&(h={data:[],index:0}),g===null&&(g=Pv(),Zt.updateQueue=g),g.memoCache=h,g=h.data[h.index],g===void 0)for(g=h.data[h.index]=Array(c),x=0;x<c;x++)g[x]=N;return h.index++,g}function qn(c,h){return typeof h=="function"?h(c):h}function zv(c){var h=Ue();return Rm(h,we,c)}function Rm(c,h,g){var x=c.queue;if(x===null)throw Error(a(311));x.lastRenderedReducer=g;var T=c.baseQueue,D=x.pending;if(D!==null){if(T!==null){var I=T.next;T.next=D.next,D.next=I}h.baseQueue=T=D,x.pending=null}if(D=c.baseState,T===null)c.memoizedState=D;else{h=T.next;var V=I=null,X=null,J=h,lt=!1;do{var ct=J.lane&-536870913;if(ct!==J.lane?(re&ct)===ct:(Wn&ct)===ct){var tt=J.revertLane;if(tt===0)X!==null&&(X=X.next={lane:0,revertLane:0,gesture:null,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null}),ct===Rl&&(lt=!0);else if((Wn&tt)===tt){J=J.next,tt===Rl&&(lt=!0);continue}else ct={lane:0,revertLane:J.revertLane,gesture:null,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null},X===null?(V=X=ct,I=D):X=X.next=ct,Zt.lanes|=tt,Ui|=tt;ct=J.action,Ko&&g(D,ct),D=J.hasEagerState?J.eagerState:g(D,ct)}else tt={lane:ct,revertLane:J.revertLane,gesture:J.gesture,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null},X===null?(V=X=tt,I=D):X=X.next=tt,Zt.lanes|=ct,Ui|=ct;J=J.next}while(J!==null&&J!==h);if(X===null?I=D:X.next=V,!ra(D,c.memoizedState)&&(qe=!0,lt&&(g=Il,g!==null)))throw g;c.memoizedState=D,c.baseState=I,c.baseQueue=X,x.lastRenderedState=D}return T===null&&(x.lanes=0),[c.memoizedState,x.dispatch]}function Im(c){var h=Ue(),g=h.queue;if(g===null)throw Error(a(311));g.lastRenderedReducer=c;var x=g.dispatch,T=g.pending,D=h.memoizedState;if(T!==null){g.pending=null;var I=T=T.next;do D=c(D,I.action),I=I.next;while(I!==T);ra(D,h.memoizedState)||(qe=!0),h.memoizedState=D,h.baseQueue===null&&(h.baseState=D),g.lastRenderedState=D}return[D,x]}function OT(c,h,g){var x=Zt,T=Ue(),D=ie;if(D){if(g===void 0)throw Error(a(407));g=g()}else g=h();var I=!ra((we||T).memoizedState,g);if(I&&(T.memoizedState=g,qe=!0),T=T.queue,Om(BT.bind(null,x,T,c),[c]),T.getSnapshot!==h||I||We!==null&&We.memoizedState.tag&1){if(x.flags|=2048,Bl(9,{destroy:void 0},kT.bind(null,x,T,g,h),null),Me===null)throw Error(a(349));D||(Wn&127)!==0||zT(x,h,g)}return g}function zT(c,h,g){c.flags|=16384,c={getSnapshot:h,value:g},h=Zt.updateQueue,h===null?(h=Pv(),Zt.updateQueue=h,h.stores=[c]):(g=h.stores,g===null?h.stores=[c]:g.push(c))}function kT(c,h,g,x){h.value=g,h.getSnapshot=x,VT(h)&&GT(c)}function BT(c,h,g){return g(function(){VT(h)&&GT(c)})}function VT(c){var h=c.getSnapshot;c=c.value;try{var g=h();return!ra(c,g)}catch{return!0}}function GT(c){var h=Uo(c,2);h!==null&&Zr(h,c,2)}function Nm(c){var h=Mr();if(typeof c=="function"){var g=c;if(c=g(),Ko){Mi(!0);try{g()}finally{Mi(!1)}}}return h.memoizedState=h.baseState=c,h.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qn,lastRenderedState:c},h}function HT(c,h,g,x){return c.baseState=g,Rm(c,we,typeof x=="function"?x:qn)}function D7(c,h,g,x,T){if(Vv(c))throw Error(a(485));if(c=h.action,c!==null){var D={payload:T,action:c,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(I){D.listeners.push(I)}};B.T!==null?g(!0):D.isTransition=!1,x(D),g=h.pending,g===null?(D.next=h.pending=D,UT(h,D)):(D.next=g.next,h.pending=g.next=D)}}function UT(c,h){var g=h.action,x=h.payload,T=c.state;if(h.isTransition){var D=B.T,I={};B.T=I;try{var V=g(T,x),X=B.S;X!==null&&X(I,V),FT(c,h,V)}catch(J){Pm(c,h,J)}finally{D!==null&&I.types!==null&&(D.types=I.types),B.T=D}}else try{D=g(T,x),FT(c,h,D)}catch(J){Pm(c,h,J)}}function FT(c,h,g){g!==null&&typeof g=="object"&&typeof g.then=="function"?g.then(function(x){jT(c,h,x)},function(x){return Pm(c,h,x)}):jT(c,h,g)}function jT(c,h,g){h.status="fulfilled",h.value=g,YT(h),c.state=g,h=c.pending,h!==null&&(g=h.next,g===h?c.pending=null:(g=g.next,h.next=g,UT(c,g)))}function Pm(c,h,g){var x=c.pending;if(c.pending=null,x!==null){x=x.next;do h.status="rejected",h.reason=g,YT(h),h=h.next;while(h!==x)}c.action=null}function YT(c){c=c.listeners;for(var h=0;h<c.length;h++)(0,c[h])()}function XT(c,h){return h}function ZT(c,h){if(ie){var g=Me.formState;if(g!==null){t:{var x=Zt;if(ie){if(Re){e:{for(var T=Re,D=wa;T.nodeType!==8;){if(!D){T=null;break e}if(T=Aa(T.nextSibling),T===null){T=null;break e}}D=T.data,T=D==="F!"||D==="F"?T:null}if(T){Re=Aa(T.nextSibling),x=T.data==="F!";break t}}Ni(x)}x=!1}x&&(h=g[0])}}return g=Mr(),g.memoizedState=g.baseState=h,x={pending:null,lanes:0,dispatch:null,lastRenderedReducer:XT,lastRenderedState:h},g.queue=x,g=hA.bind(null,Zt,x),x.dispatch=g,x=Nm(!1),D=Gm.bind(null,Zt,!1,x.queue),x=Mr(),T={state:h,dispatch:null,action:c,pending:null},x.queue=T,g=D7.bind(null,Zt,T,D,g),T.dispatch=g,x.memoizedState=c,[h,g,!1]}function WT(c){var h=Ue();return qT(h,we,c)}function qT(c,h,g){if(h=Rm(c,h,XT)[0],c=zv(qn)[0],typeof h=="object"&&h!==null&&typeof h.then=="function")try{var x=Lc(h)}catch(I){throw I===Nl?Dv:I}else x=h;h=Ue();var T=h.queue,D=T.dispatch;return g!==h.memoizedState&&(Zt.flags|=2048,Bl(9,{destroy:void 0},C7.bind(null,T,g),null)),[x,D,c]}function C7(c,h){c.action=h}function $T(c){var h=Ue(),g=we;if(g!==null)return qT(h,g,c);Ue(),h=h.memoizedState,g=Ue();var x=g.queue.dispatch;return g.memoizedState=c,[h,x,!1]}function Bl(c,h,g,x){return c={tag:c,create:g,deps:x,inst:h,next:null},h=Zt.updateQueue,h===null&&(h=Pv(),Zt.updateQueue=h),g=h.lastEffect,g===null?h.lastEffect=c.next=c:(x=g.next,g.next=c,c.next=x,h.lastEffect=c),c}function KT(){return Ue().memoizedState}function kv(c,h,g,x){var T=Mr();Zt.flags|=c,T.memoizedState=Bl(1|h,{destroy:void 0},g,x===void 0?null:x)}function Bv(c,h,g,x){var T=Ue();x=x===void 0?null:x;var D=T.memoizedState.inst;we!==null&&x!==null&&Am(x,we.memoizedState.deps)?T.memoizedState=Bl(h,D,g,x):(Zt.flags|=c,T.memoizedState=Bl(1|h,D,g,x))}function QT(c,h){kv(8390656,8,c,h)}function Om(c,h){Bv(2048,8,c,h)}function M7(c){Zt.flags|=4;var h=Zt.updateQueue;if(h===null)h=Pv(),Zt.updateQueue=h,h.events=[c];else{var g=h.events;g===null?h.events=[c]:g.push(c)}}function JT(c){var h=Ue().memoizedState;return M7({ref:h,nextImpl:c}),function(){if((ve&2)!==0)throw Error(a(440));return h.impl.apply(void 0,arguments)}}function tA(c,h){return Bv(4,2,c,h)}function eA(c,h){return Bv(4,4,c,h)}function rA(c,h){if(typeof h=="function"){c=c();var g=h(c);return function(){typeof g=="function"?g():h(null)}}if(h!=null)return c=c(),h.current=c,function(){h.current=null}}function aA(c,h,g){g=g!=null?g.concat([c]):null,Bv(4,4,rA.bind(null,h,c),g)}function zm(){}function nA(c,h){var g=Ue();h=h===void 0?null:h;var x=g.memoizedState;return h!==null&&Am(h,x[1])?x[0]:(g.memoizedState=[c,h],c)}function iA(c,h){var g=Ue();h=h===void 0?null:h;var x=g.memoizedState;if(h!==null&&Am(h,x[1]))return x[0];if(x=c(),Ko){Mi(!0);try{c()}finally{Mi(!1)}}return g.memoizedState=[x,h],x}function km(c,h,g){return g===void 0||(Wn&1073741824)!==0&&(re&261930)===0?c.memoizedState=h:(c.memoizedState=g,c=oD(),Zt.lanes|=c,Ui|=c,g)}function oA(c,h,g,x){return ra(g,h)?g:Ol.current!==null?(c=km(c,g,x),ra(c,h)||(qe=!0),c):(Wn&42)===0||(Wn&1073741824)!==0&&(re&261930)===0?(qe=!0,c.memoizedState=g):(c=oD(),Zt.lanes|=c,Ui|=c,h)}function sA(c,h,g,x,T){var D=j.p;j.p=D!==0&&8>D?D:8;var I=B.T,V={};B.T=V,Gm(c,!1,h,g);try{var X=T(),J=B.S;if(J!==null&&J(V,X),X!==null&&typeof X=="object"&&typeof X.then=="function"){var lt=w7(X,x);Ec(c,h,lt,la(c))}else Ec(c,h,x,la(c))}catch(ct){Ec(c,h,{then:function(){},status:"rejected",reason:ct},la())}finally{j.p=D,I!==null&&V.types!==null&&(I.types=V.types),B.T=I}}function L7(){}function Bm(c,h,g,x){if(c.tag!==5)throw Error(a(476));var T=lA(c).queue;sA(c,T,h,Y,g===null?L7:function(){return uA(c),g(x)})}function lA(c){var h=c.memoizedState;if(h!==null)return h;h={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qn,lastRenderedState:Y},next:null};var g={};return h.next={memoizedState:g,baseState:g,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qn,lastRenderedState:g},next:null},c.memoizedState=h,c=c.alternate,c!==null&&(c.memoizedState=h),h}function uA(c){var h=lA(c);h.next===null&&(h=c.alternate.memoizedState),Ec(c,h.next.queue,{},la())}function Vm(){return pr(Zc)}function cA(){return Ue().memoizedState}function fA(){return Ue().memoizedState}function E7(c){for(var h=c.return;h!==null;){switch(h.tag){case 24:case 3:var g=la();c=zi(g);var x=ki(h,c,g);x!==null&&(Zr(x,h,g),Ac(x,h,g)),h={cache:dm()},c.payload=h;return}h=h.return}}function R7(c,h,g){var x=la();g={lane:x,revertLane:0,gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null},Vv(c)?vA(h,g):(g=am(c,h,g,x),g!==null&&(Zr(g,c,x),dA(g,h,x)))}function hA(c,h,g){var x=la();Ec(c,h,g,x)}function Ec(c,h,g,x){var T={lane:x,revertLane:0,gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null};if(Vv(c))vA(h,T);else{var D=c.alternate;if(c.lanes===0&&(D===null||D.lanes===0)&&(D=h.lastRenderedReducer,D!==null))try{var I=h.lastRenderedState,V=D(I,g);if(T.hasEagerState=!0,T.eagerState=V,ra(V,I))return _v(c,h,T,0),Me===null&&mv(),!1}catch{}if(g=am(c,h,T,x),g!==null)return Zr(g,c,x),dA(g,h,x),!0}return!1}function Gm(c,h,g,x){if(x={lane:2,revertLane:m0(),gesture:null,action:x,hasEagerState:!1,eagerState:null,next:null},Vv(c)){if(h)throw Error(a(479))}else h=am(c,g,x,2),h!==null&&Zr(h,c,2)}function Vv(c){var h=c.alternate;return c===Zt||h!==null&&h===Zt}function vA(c,h){zl=Iv=!0;var g=c.pending;g===null?h.next=h:(h.next=g.next,g.next=h),c.pending=h}function dA(c,h,g){if((g&4194048)!==0){var x=h.lanes;x&=c.pendingLanes,g|=x,h.lanes=g,_w(c,g)}}var Rc={readContext:pr,use:Ov,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useLayoutEffect:ke,useInsertionEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useSyncExternalStore:ke,useId:ke,useHostTransitionStatus:ke,useFormState:ke,useActionState:ke,useOptimistic:ke,useMemoCache:ke,useCacheRefresh:ke};Rc.useEffectEvent=ke;var pA={readContext:pr,use:Ov,useCallback:function(c,h){return Mr().memoizedState=[c,h===void 0?null:h],c},useContext:pr,useEffect:QT,useImperativeHandle:function(c,h,g){g=g!=null?g.concat([c]):null,kv(4194308,4,rA.bind(null,h,c),g)},useLayoutEffect:function(c,h){return kv(4194308,4,c,h)},useInsertionEffect:function(c,h){kv(4,2,c,h)},useMemo:function(c,h){var g=Mr();h=h===void 0?null:h;var x=c();if(Ko){Mi(!0);try{c()}finally{Mi(!1)}}return g.memoizedState=[x,h],x},useReducer:function(c,h,g){var x=Mr();if(g!==void 0){var T=g(h);if(Ko){Mi(!0);try{g(h)}finally{Mi(!1)}}}else T=h;return x.memoizedState=x.baseState=T,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:c,lastRenderedState:T},x.queue=c,c=c.dispatch=R7.bind(null,Zt,c),[x.memoizedState,c]},useRef:function(c){var h=Mr();return c={current:c},h.memoizedState=c},useState:function(c){c=Nm(c);var h=c.queue,g=hA.bind(null,Zt,h);return h.dispatch=g,[c.memoizedState,g]},useDebugValue:zm,useDeferredValue:function(c,h){var g=Mr();return km(g,c,h)},useTransition:function(){var c=Nm(!1);return c=sA.bind(null,Zt,c.queue,!0,!1),Mr().memoizedState=c,[!1,c]},useSyncExternalStore:function(c,h,g){var x=Zt,T=Mr();if(ie){if(g===void 0)throw Error(a(407));g=g()}else{if(g=h(),Me===null)throw Error(a(349));(re&127)!==0||zT(x,h,g)}T.memoizedState=g;var D={value:g,getSnapshot:h};return T.queue=D,QT(BT.bind(null,x,D,c),[c]),x.flags|=2048,Bl(9,{destroy:void 0},kT.bind(null,x,D,g,h),null),g},useId:function(){var c=Mr(),h=Me.identifierPrefix;if(ie){var g=dn,x=vn;g=(x&~(1<<32-ea(x)-1)).toString(32)+g,h="_"+h+"R_"+g,g=Nv++,0<g&&(h+="H"+g.toString(32)),h+="_"}else g=T7++,h="_"+h+"r_"+g.toString(32)+"_";return c.memoizedState=h},useHostTransitionStatus:Vm,useFormState:ZT,useActionState:ZT,useOptimistic:function(c){var h=Mr();h.memoizedState=h.baseState=c;var g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return h.queue=g,h=Gm.bind(null,Zt,!0,g),g.dispatch=h,[c,h]},useMemoCache:Em,useCacheRefresh:function(){return Mr().memoizedState=E7.bind(null,Zt)},useEffectEvent:function(c){var h=Mr(),g={impl:c};return h.memoizedState=g,function(){if((ve&2)!==0)throw Error(a(440));return g.impl.apply(void 0,arguments)}}},Hm={readContext:pr,use:Ov,useCallback:nA,useContext:pr,useEffect:Om,useImperativeHandle:aA,useInsertionEffect:tA,useLayoutEffect:eA,useMemo:iA,useReducer:zv,useRef:KT,useState:function(){return zv(qn)},useDebugValue:zm,useDeferredValue:function(c,h){var g=Ue();return oA(g,we.memoizedState,c,h)},useTransition:function(){var c=zv(qn)[0],h=Ue().memoizedState;return[typeof c=="boolean"?c:Lc(c),h]},useSyncExternalStore:OT,useId:cA,useHostTransitionStatus:Vm,useFormState:WT,useActionState:WT,useOptimistic:function(c,h){var g=Ue();return HT(g,we,c,h)},useMemoCache:Em,useCacheRefresh:fA};Hm.useEffectEvent=JT;var gA={readContext:pr,use:Ov,useCallback:nA,useContext:pr,useEffect:Om,useImperativeHandle:aA,useInsertionEffect:tA,useLayoutEffect:eA,useMemo:iA,useReducer:Im,useRef:KT,useState:function(){return Im(qn)},useDebugValue:zm,useDeferredValue:function(c,h){var g=Ue();return we===null?km(g,c,h):oA(g,we.memoizedState,c,h)},useTransition:function(){var c=Im(qn)[0],h=Ue().memoizedState;return[typeof c=="boolean"?c:Lc(c),h]},useSyncExternalStore:OT,useId:cA,useHostTransitionStatus:Vm,useFormState:$T,useActionState:$T,useOptimistic:function(c,h){var g=Ue();return we!==null?HT(g,we,c,h):(g.baseState=c,[c,g.queue.dispatch])},useMemoCache:Em,useCacheRefresh:fA};gA.useEffectEvent=JT;function Um(c,h,g,x){h=c.memoizedState,g=g(x,h),g=g==null?h:v({},h,g),c.memoizedState=g,c.lanes===0&&(c.updateQueue.baseState=g)}var Fm={enqueueSetState:function(c,h,g){c=c._reactInternals;var x=la(),T=zi(x);T.payload=h,g!=null&&(T.callback=g),h=ki(c,T,x),h!==null&&(Zr(h,c,x),Ac(h,c,x))},enqueueReplaceState:function(c,h,g){c=c._reactInternals;var x=la(),T=zi(x);T.tag=1,T.payload=h,g!=null&&(T.callback=g),h=ki(c,T,x),h!==null&&(Zr(h,c,x),Ac(h,c,x))},enqueueForceUpdate:function(c,h){c=c._reactInternals;var g=la(),x=zi(g);x.tag=2,h!=null&&(x.callback=h),h=ki(c,x,g),h!==null&&(Zr(h,c,g),Ac(h,c,g))}};function yA(c,h,g,x,T,D,I){return c=c.stateNode,typeof c.shouldComponentUpdate=="function"?c.shouldComponentUpdate(x,D,I):h.prototype&&h.prototype.isPureReactComponent?!yc(g,x)||!yc(T,D):!0}function mA(c,h,g,x){c=h.state,typeof h.componentWillReceiveProps=="function"&&h.componentWillReceiveProps(g,x),typeof h.UNSAFE_componentWillReceiveProps=="function"&&h.UNSAFE_componentWillReceiveProps(g,x),h.state!==c&&Fm.enqueueReplaceState(h,h.state,null)}function Qo(c,h){var g=h;if("ref"in h){g={};for(var x in h)x!=="ref"&&(g[x]=h[x])}if(c=c.defaultProps){g===h&&(g=v({},g));for(var T in c)g[T]===void 0&&(g[T]=c[T])}return g}function _A(c){yv(c)}function xA(c){console.error(c)}function SA(c){yv(c)}function Gv(c,h){try{var g=c.onUncaughtError;g(h.value,{componentStack:h.stack})}catch(x){setTimeout(function(){throw x})}}function bA(c,h,g){try{var x=c.onCaughtError;x(g.value,{componentStack:g.stack,errorBoundary:h.tag===1?h.stateNode:null})}catch(T){setTimeout(function(){throw T})}}function jm(c,h,g){return g=zi(g),g.tag=3,g.payload={element:null},g.callback=function(){Gv(c,h)},g}function wA(c){return c=zi(c),c.tag=3,c}function TA(c,h,g,x){var T=g.type.getDerivedStateFromError;if(typeof T=="function"){var D=x.value;c.payload=function(){return T(D)},c.callback=function(){bA(h,g,x)}}var I=g.stateNode;I!==null&&typeof I.componentDidCatch=="function"&&(c.callback=function(){bA(h,g,x),typeof T!="function"&&(Fi===null?Fi=new Set([this]):Fi.add(this));var V=x.stack;this.componentDidCatch(x.value,{componentStack:V!==null?V:""})})}function I7(c,h,g,x,T){if(g.flags|=32768,x!==null&&typeof x=="object"&&typeof x.then=="function"){if(h=g.alternate,h!==null&&El(h,g,T,!0),g=na.current,g!==null){switch(g.tag){case 31:case 13:return Ta===null?Qv():g.alternate===null&&Be===0&&(Be=3),g.flags&=-257,g.flags|=65536,g.lanes=T,x===Cv?g.flags|=16384:(h=g.updateQueue,h===null?g.updateQueue=new Set([x]):h.add(x),p0(c,x,T)),!1;case 22:return g.flags|=65536,x===Cv?g.flags|=16384:(h=g.updateQueue,h===null?(h={transitions:null,markerInstances:null,retryQueue:new Set([x])},g.updateQueue=h):(g=h.retryQueue,g===null?h.retryQueue=new Set([x]):g.add(x)),p0(c,x,T)),!1}throw Error(a(435,g.tag))}return p0(c,x,T),Qv(),!1}if(ie)return h=na.current,h!==null?((h.flags&65536)===0&&(h.flags|=256),h.flags|=65536,h.lanes=T,x!==um&&(c=Error(a(422),{cause:x}),xc(xa(c,g)))):(x!==um&&(h=Error(a(423),{cause:x}),xc(xa(h,g))),c=c.current.alternate,c.flags|=65536,T&=-T,c.lanes|=T,x=xa(x,g),T=jm(c.stateNode,x,T),xm(c,T),Be!==4&&(Be=2)),!1;var D=Error(a(520),{cause:x});if(D=xa(D,g),Vc===null?Vc=[D]:Vc.push(D),Be!==4&&(Be=2),h===null)return!0;x=xa(x,g),g=h;do{switch(g.tag){case 3:return g.flags|=65536,c=T&-T,g.lanes|=c,c=jm(g.stateNode,x,c),xm(g,c),!1;case 1:if(h=g.type,D=g.stateNode,(g.flags&128)===0&&(typeof h.getDerivedStateFromError=="function"||D!==null&&typeof D.componentDidCatch=="function"&&(Fi===null||!Fi.has(D))))return g.flags|=65536,T&=-T,g.lanes|=T,T=wA(T),TA(T,c,g,x),xm(g,T),!1}g=g.return}while(g!==null);return!1}var Ym=Error(a(461)),qe=!1;function gr(c,h,g,x){h.child=c===null?MT(h,null,g,x):$o(h,c.child,g,x)}function AA(c,h,g,x,T){g=g.render;var D=h.ref;if("ref"in x){var I={};for(var V in x)V!=="ref"&&(I[V]=x[V])}else I=x;return Xo(h),x=Dm(c,h,g,I,D,T),V=Cm(),c!==null&&!qe?(Mm(c,h,T),$n(c,h,T)):(ie&&V&&sm(h),h.flags|=1,gr(c,h,x,T),h.child)}function DA(c,h,g,x,T){if(c===null){var D=g.type;return typeof D=="function"&&!nm(D)&&D.defaultProps===void 0&&g.compare===null?(h.tag=15,h.type=D,CA(c,h,D,x,T)):(c=Sv(g.type,null,x,h,h.mode,T),c.ref=h.ref,c.return=h,h.child=c)}if(D=c.child,!Jm(c,T)){var I=D.memoizedProps;if(g=g.compare,g=g!==null?g:yc,g(I,x)&&c.ref===h.ref)return $n(c,h,T)}return h.flags|=1,c=jn(D,x),c.ref=h.ref,c.return=h,h.child=c}function CA(c,h,g,x,T){if(c!==null){var D=c.memoizedProps;if(yc(D,x)&&c.ref===h.ref)if(qe=!1,h.pendingProps=x=D,Jm(c,T))(c.flags&131072)!==0&&(qe=!0);else return h.lanes=c.lanes,$n(c,h,T)}return Xm(c,h,g,x,T)}function MA(c,h,g,x){var T=x.children,D=c!==null?c.memoizedState:null;if(c===null&&h.stateNode===null&&(h.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),x.mode==="hidden"){if((h.flags&128)!==0){if(D=D!==null?D.baseLanes|g:g,c!==null){for(x=h.child=c.child,T=0;x!==null;)T=T|x.lanes|x.childLanes,x=x.sibling;x=T&~D}else x=0,h.child=null;return LA(c,h,D,g,x)}if((g&536870912)!==0)h.memoizedState={baseLanes:0,cachePool:null},c!==null&&Av(h,D!==null?D.cachePool:null),D!==null?RT(h,D):bm(),IT(h);else return x=h.lanes=536870912,LA(c,h,D!==null?D.baseLanes|g:g,g,x)}else D!==null?(Av(h,D.cachePool),RT(h,D),Vi(),h.memoizedState=null):(c!==null&&Av(h,null),bm(),Vi());return gr(c,h,T,g),h.child}function Ic(c,h){return c!==null&&c.tag===22||h.stateNode!==null||(h.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.sibling}function LA(c,h,g,x,T){var D=gm();return D=D===null?null:{parent:Ze._currentValue,pool:D},h.memoizedState={baseLanes:g,cachePool:D},c!==null&&Av(h,null),bm(),IT(h),c!==null&&El(c,h,x,!0),h.childLanes=T,null}function Hv(c,h){return h=Fv({mode:h.mode,children:h.children},c.mode),h.ref=c.ref,c.child=h,h.return=c,h}function EA(c,h,g){return $o(h,c.child,null,g),c=Hv(h,h.pendingProps),c.flags|=2,ia(h),h.memoizedState=null,c}function N7(c,h,g){var x=h.pendingProps,T=(h.flags&128)!==0;if(h.flags&=-129,c===null){if(ie){if(x.mode==="hidden")return c=Hv(h,x),h.lanes=536870912,Ic(null,c);if(Tm(h),(c=Re)?(c=UD(c,wa),c=c!==null&&c.data==="&"?c:null,c!==null&&(h.memoizedState={dehydrated:c,treeContext:Ri!==null?{id:vn,overflow:dn}:null,retryLane:536870912,hydrationErrors:null},g=vT(c),g.return=h,h.child=g,dr=h,Re=null)):c=null,c===null)throw Ni(h);return h.lanes=536870912,null}return Hv(h,x)}var D=c.memoizedState;if(D!==null){var I=D.dehydrated;if(Tm(h),T)if(h.flags&256)h.flags&=-257,h=EA(c,h,g);else if(h.memoizedState!==null)h.child=c.child,h.flags|=128,h=null;else throw Error(a(558));else if(qe||El(c,h,g,!1),T=(g&c.childLanes)!==0,qe||T){if(x=Me,x!==null&&(I=xw(x,g),I!==0&&I!==D.retryLane))throw D.retryLane=I,Uo(c,I),Zr(x,c,I),Ym;Qv(),h=EA(c,h,g)}else c=D.treeContext,Re=Aa(I.nextSibling),dr=h,ie=!0,Ii=null,wa=!1,c!==null&&gT(h,c),h=Hv(h,x),h.flags|=4096;return h}return c=jn(c.child,{mode:x.mode,children:x.children}),c.ref=h.ref,h.child=c,c.return=h,c}function Uv(c,h){var g=h.ref;if(g===null)c!==null&&c.ref!==null&&(h.flags|=4194816);else{if(typeof g!="function"&&typeof g!="object")throw Error(a(284));(c===null||c.ref!==g)&&(h.flags|=4194816)}}function Xm(c,h,g,x,T){return Xo(h),g=Dm(c,h,g,x,void 0,T),x=Cm(),c!==null&&!qe?(Mm(c,h,T),$n(c,h,T)):(ie&&x&&sm(h),h.flags|=1,gr(c,h,g,T),h.child)}function RA(c,h,g,x,T,D){return Xo(h),h.updateQueue=null,g=PT(h,x,g,T),NT(c),x=Cm(),c!==null&&!qe?(Mm(c,h,D),$n(c,h,D)):(ie&&x&&sm(h),h.flags|=1,gr(c,h,g,D),h.child)}function IA(c,h,g,x,T){if(Xo(h),h.stateNode===null){var D=Dl,I=g.contextType;typeof I=="object"&&I!==null&&(D=pr(I)),D=new g(x,D),h.memoizedState=D.state!==null&&D.state!==void 0?D.state:null,D.updater=Fm,h.stateNode=D,D._reactInternals=h,D=h.stateNode,D.props=x,D.state=h.memoizedState,D.refs={},mm(h),I=g.contextType,D.context=typeof I=="object"&&I!==null?pr(I):Dl,D.state=h.memoizedState,I=g.getDerivedStateFromProps,typeof I=="function"&&(Um(h,g,I,x),D.state=h.memoizedState),typeof g.getDerivedStateFromProps=="function"||typeof D.getSnapshotBeforeUpdate=="function"||typeof D.UNSAFE_componentWillMount!="function"&&typeof D.componentWillMount!="function"||(I=D.state,typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount(),I!==D.state&&Fm.enqueueReplaceState(D,D.state,null),Cc(h,x,D,T),Dc(),D.state=h.memoizedState),typeof D.componentDidMount=="function"&&(h.flags|=4194308),x=!0}else if(c===null){D=h.stateNode;var V=h.memoizedProps,X=Qo(g,V);D.props=X;var J=D.context,lt=g.contextType;I=Dl,typeof lt=="object"&&lt!==null&&(I=pr(lt));var ct=g.getDerivedStateFromProps;lt=typeof ct=="function"||typeof D.getSnapshotBeforeUpdate=="function",V=h.pendingProps!==V,lt||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(V||J!==I)&&mA(h,D,x,I),Oi=!1;var tt=h.memoizedState;D.state=tt,Cc(h,x,D,T),Dc(),J=h.memoizedState,V||tt!==J||Oi?(typeof ct=="function"&&(Um(h,g,ct,x),J=h.memoizedState),(X=Oi||yA(h,g,X,x,tt,J,I))?(lt||typeof D.UNSAFE_componentWillMount!="function"&&typeof D.componentWillMount!="function"||(typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount()),typeof D.componentDidMount=="function"&&(h.flags|=4194308)):(typeof D.componentDidMount=="function"&&(h.flags|=4194308),h.memoizedProps=x,h.memoizedState=J),D.props=x,D.state=J,D.context=I,x=X):(typeof D.componentDidMount=="function"&&(h.flags|=4194308),x=!1)}else{D=h.stateNode,_m(c,h),I=h.memoizedProps,lt=Qo(g,I),D.props=lt,ct=h.pendingProps,tt=D.context,J=g.contextType,X=Dl,typeof J=="object"&&J!==null&&(X=pr(J)),V=g.getDerivedStateFromProps,(J=typeof V=="function"||typeof D.getSnapshotBeforeUpdate=="function")||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(I!==ct||tt!==X)&&mA(h,D,x,X),Oi=!1,tt=h.memoizedState,D.state=tt,Cc(h,x,D,T),Dc();var at=h.memoizedState;I!==ct||tt!==at||Oi||c!==null&&c.dependencies!==null&&wv(c.dependencies)?(typeof V=="function"&&(Um(h,g,V,x),at=h.memoizedState),(lt=Oi||yA(h,g,lt,x,tt,at,X)||c!==null&&c.dependencies!==null&&wv(c.dependencies))?(J||typeof D.UNSAFE_componentWillUpdate!="function"&&typeof D.componentWillUpdate!="function"||(typeof D.componentWillUpdate=="function"&&D.componentWillUpdate(x,at,X),typeof D.UNSAFE_componentWillUpdate=="function"&&D.UNSAFE_componentWillUpdate(x,at,X)),typeof D.componentDidUpdate=="function"&&(h.flags|=4),typeof D.getSnapshotBeforeUpdate=="function"&&(h.flags|=1024)):(typeof D.componentDidUpdate!="function"||I===c.memoizedProps&&tt===c.memoizedState||(h.flags|=4),typeof D.getSnapshotBeforeUpdate!="function"||I===c.memoizedProps&&tt===c.memoizedState||(h.flags|=1024),h.memoizedProps=x,h.memoizedState=at),D.props=x,D.state=at,D.context=X,x=lt):(typeof D.componentDidUpdate!="function"||I===c.memoizedProps&&tt===c.memoizedState||(h.flags|=4),typeof D.getSnapshotBeforeUpdate!="function"||I===c.memoizedProps&&tt===c.memoizedState||(h.flags|=1024),x=!1)}return D=x,Uv(c,h),x=(h.flags&128)!==0,D||x?(D=h.stateNode,g=x&&typeof g.getDerivedStateFromError!="function"?null:D.render(),h.flags|=1,c!==null&&x?(h.child=$o(h,c.child,null,T),h.child=$o(h,null,g,T)):gr(c,h,g,T),h.memoizedState=D.state,c=h.child):c=$n(c,h,T),c}function NA(c,h,g,x){return jo(),h.flags|=256,gr(c,h,g,x),h.child}var Zm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Wm(c){return{baseLanes:c,cachePool:bT()}}function qm(c,h,g){return c=c!==null?c.childLanes&~g:0,h&&(c|=sa),c}function PA(c,h,g){var x=h.pendingProps,T=!1,D=(h.flags&128)!==0,I;if((I=D)||(I=c!==null&&c.memoizedState===null?!1:(He.current&2)!==0),I&&(T=!0,h.flags&=-129),I=(h.flags&32)!==0,h.flags&=-33,c===null){if(ie){if(T?Bi(h):Vi(),(c=Re)?(c=UD(c,wa),c=c!==null&&c.data!=="&"?c:null,c!==null&&(h.memoizedState={dehydrated:c,treeContext:Ri!==null?{id:vn,overflow:dn}:null,retryLane:536870912,hydrationErrors:null},g=vT(c),g.return=h,h.child=g,dr=h,Re=null)):c=null,c===null)throw Ni(h);return R0(c)?h.lanes=32:h.lanes=536870912,null}var V=x.children;return x=x.fallback,T?(Vi(),T=h.mode,V=Fv({mode:"hidden",children:V},T),x=Fo(x,T,g,null),V.return=h,x.return=h,V.sibling=x,h.child=V,x=h.child,x.memoizedState=Wm(g),x.childLanes=qm(c,I,g),h.memoizedState=Zm,Ic(null,x)):(Bi(h),$m(h,V))}var X=c.memoizedState;if(X!==null&&(V=X.dehydrated,V!==null)){if(D)h.flags&256?(Bi(h),h.flags&=-257,h=Km(c,h,g)):h.memoizedState!==null?(Vi(),h.child=c.child,h.flags|=128,h=null):(Vi(),V=x.fallback,T=h.mode,x=Fv({mode:"visible",children:x.children},T),V=Fo(V,T,g,null),V.flags|=2,x.return=h,V.return=h,x.sibling=V,h.child=x,$o(h,c.child,null,g),x=h.child,x.memoizedState=Wm(g),x.childLanes=qm(c,I,g),h.memoizedState=Zm,h=Ic(null,x));else if(Bi(h),R0(V)){if(I=V.nextSibling&&V.nextSibling.dataset,I)var J=I.dgst;I=J,x=Error(a(419)),x.stack="",x.digest=I,xc({value:x,source:null,stack:null}),h=Km(c,h,g)}else if(qe||El(c,h,g,!1),I=(g&c.childLanes)!==0,qe||I){if(I=Me,I!==null&&(x=xw(I,g),x!==0&&x!==X.retryLane))throw X.retryLane=x,Uo(c,x),Zr(I,c,x),Ym;E0(V)||Qv(),h=Km(c,h,g)}else E0(V)?(h.flags|=192,h.child=c.child,h=null):(c=X.treeContext,Re=Aa(V.nextSibling),dr=h,ie=!0,Ii=null,wa=!1,c!==null&&gT(h,c),h=$m(h,x.children),h.flags|=4096);return h}return T?(Vi(),V=x.fallback,T=h.mode,X=c.child,J=X.sibling,x=jn(X,{mode:"hidden",children:x.children}),x.subtreeFlags=X.subtreeFlags&65011712,J!==null?V=jn(J,V):(V=Fo(V,T,g,null),V.flags|=2),V.return=h,x.return=h,x.sibling=V,h.child=x,Ic(null,x),x=h.child,V=c.child.memoizedState,V===null?V=Wm(g):(T=V.cachePool,T!==null?(X=Ze._currentValue,T=T.parent!==X?{parent:X,pool:X}:T):T=bT(),V={baseLanes:V.baseLanes|g,cachePool:T}),x.memoizedState=V,x.childLanes=qm(c,I,g),h.memoizedState=Zm,Ic(c.child,x)):(Bi(h),g=c.child,c=g.sibling,g=jn(g,{mode:"visible",children:x.children}),g.return=h,g.sibling=null,c!==null&&(I=h.deletions,I===null?(h.deletions=[c],h.flags|=16):I.push(c)),h.child=g,h.memoizedState=null,g)}function $m(c,h){return h=Fv({mode:"visible",children:h},c.mode),h.return=c,c.child=h}function Fv(c,h){return c=aa(22,c,null,h),c.lanes=0,c}function Km(c,h,g){return $o(h,c.child,null,g),c=$m(h,h.pendingProps.children),c.flags|=2,h.memoizedState=null,c}function OA(c,h,g){c.lanes|=h;var x=c.alternate;x!==null&&(x.lanes|=h),hm(c.return,h,g)}function Qm(c,h,g,x,T,D){var I=c.memoizedState;I===null?c.memoizedState={isBackwards:h,rendering:null,renderingStartTime:0,last:x,tail:g,tailMode:T,treeForkCount:D}:(I.isBackwards=h,I.rendering=null,I.renderingStartTime=0,I.last=x,I.tail=g,I.tailMode=T,I.treeForkCount=D)}function zA(c,h,g){var x=h.pendingProps,T=x.revealOrder,D=x.tail;x=x.children;var I=He.current,V=(I&2)!==0;if(V?(I=I&1|2,h.flags|=128):I&=1,rt(He,I),gr(c,h,x,g),x=ie?_c:0,!V&&c!==null&&(c.flags&128)!==0)t:for(c=h.child;c!==null;){if(c.tag===13)c.memoizedState!==null&&OA(c,g,h);else if(c.tag===19)OA(c,g,h);else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===h)break t;for(;c.sibling===null;){if(c.return===null||c.return===h)break t;c=c.return}c.sibling.return=c.return,c=c.sibling}switch(T){case"forwards":for(g=h.child,T=null;g!==null;)c=g.alternate,c!==null&&Rv(c)===null&&(T=g),g=g.sibling;g=T,g===null?(T=h.child,h.child=null):(T=g.sibling,g.sibling=null),Qm(h,!1,T,g,D,x);break;case"backwards":case"unstable_legacy-backwards":for(g=null,T=h.child,h.child=null;T!==null;){if(c=T.alternate,c!==null&&Rv(c)===null){h.child=T;break}c=T.sibling,T.sibling=g,g=T,T=c}Qm(h,!0,g,null,D,x);break;case"together":Qm(h,!1,null,null,void 0,x);break;default:h.memoizedState=null}return h.child}function $n(c,h,g){if(c!==null&&(h.dependencies=c.dependencies),Ui|=h.lanes,(g&h.childLanes)===0)if(c!==null){if(El(c,h,g,!1),(g&h.childLanes)===0)return null}else return null;if(c!==null&&h.child!==c.child)throw Error(a(153));if(h.child!==null){for(c=h.child,g=jn(c,c.pendingProps),h.child=g,g.return=h;c.sibling!==null;)c=c.sibling,g=g.sibling=jn(c,c.pendingProps),g.return=h;g.sibling=null}return h.child}function Jm(c,h){return(c.lanes&h)!==0?!0:(c=c.dependencies,!!(c!==null&&wv(c)))}function P7(c,h,g){switch(h.tag){case 3:yt(h,h.stateNode.containerInfo),Pi(h,Ze,c.memoizedState.cache),jo();break;case 27:case 5:Lt(h);break;case 4:yt(h,h.stateNode.containerInfo);break;case 10:Pi(h,h.type,h.memoizedProps.value);break;case 31:if(h.memoizedState!==null)return h.flags|=128,Tm(h),null;break;case 13:var x=h.memoizedState;if(x!==null)return x.dehydrated!==null?(Bi(h),h.flags|=128,null):(g&h.child.childLanes)!==0?PA(c,h,g):(Bi(h),c=$n(c,h,g),c!==null?c.sibling:null);Bi(h);break;case 19:var T=(c.flags&128)!==0;if(x=(g&h.childLanes)!==0,x||(El(c,h,g,!1),x=(g&h.childLanes)!==0),T){if(x)return zA(c,h,g);h.flags|=128}if(T=h.memoizedState,T!==null&&(T.rendering=null,T.tail=null,T.lastEffect=null),rt(He,He.current),x)break;return null;case 22:return h.lanes=0,MA(c,h,g,h.pendingProps);case 24:Pi(h,Ze,c.memoizedState.cache)}return $n(c,h,g)}function kA(c,h,g){if(c!==null)if(c.memoizedProps!==h.pendingProps)qe=!0;else{if(!Jm(c,g)&&(h.flags&128)===0)return qe=!1,P7(c,h,g);qe=(c.flags&131072)!==0}else qe=!1,ie&&(h.flags&1048576)!==0&&pT(h,_c,h.index);switch(h.lanes=0,h.tag){case 16:t:{var x=h.pendingProps;if(c=Wo(h.elementType),h.type=c,typeof c=="function")nm(c)?(x=Qo(c,x),h.tag=1,h=IA(null,h,c,x,g)):(h.tag=0,h=Xm(null,h,c,x,g));else{if(c!=null){var T=c.$$typeof;if(T===A){h.tag=11,h=AA(null,h,c,x,g);break t}else if(T===L){h.tag=14,h=DA(null,h,c,x,g);break t}}throw h=H(c)||c,Error(a(306,h,""))}}return h;case 0:return Xm(c,h,h.type,h.pendingProps,g);case 1:return x=h.type,T=Qo(x,h.pendingProps),IA(c,h,x,T,g);case 3:t:{if(yt(h,h.stateNode.containerInfo),c===null)throw Error(a(387));x=h.pendingProps;var D=h.memoizedState;T=D.element,_m(c,h),Cc(h,x,null,g);var I=h.memoizedState;if(x=I.cache,Pi(h,Ze,x),x!==D.cache&&vm(h,[Ze],g,!0),Dc(),x=I.element,D.isDehydrated)if(D={element:x,isDehydrated:!1,cache:I.cache},h.updateQueue.baseState=D,h.memoizedState=D,h.flags&256){h=NA(c,h,x,g);break t}else if(x!==T){T=xa(Error(a(424)),h),xc(T),h=NA(c,h,x,g);break t}else for(c=h.stateNode.containerInfo,c.nodeType===9?c=c.body:c=c.nodeName==="HTML"?c.ownerDocument.body:c,Re=Aa(c.firstChild),dr=h,ie=!0,Ii=null,wa=!0,g=MT(h,null,x,g),h.child=g;g;)g.flags=g.flags&-3|4096,g=g.sibling;else{if(jo(),x===T){h=$n(c,h,g);break t}gr(c,h,x,g)}h=h.child}return h;case 26:return Uv(c,h),c===null?(g=WD(h.type,null,h.pendingProps,null))?h.memoizedState=g:ie||(g=h.type,c=h.pendingProps,x=id(gt.current).createElement(g),x[vr]=h,x[Hr]=c,yr(x,g,c),lr(x),h.stateNode=x):h.memoizedState=WD(h.type,c.memoizedProps,h.pendingProps,c.memoizedState),null;case 27:return Lt(h),c===null&&ie&&(x=h.stateNode=YD(h.type,h.pendingProps,gt.current),dr=h,wa=!0,T=Re,Zi(h.type)?(I0=T,Re=Aa(x.firstChild)):Re=T),gr(c,h,h.pendingProps.children,g),Uv(c,h),c===null&&(h.flags|=4194304),h.child;case 5:return c===null&&ie&&((T=x=Re)&&(x=cV(x,h.type,h.pendingProps,wa),x!==null?(h.stateNode=x,dr=h,Re=Aa(x.firstChild),wa=!1,T=!0):T=!1),T||Ni(h)),Lt(h),T=h.type,D=h.pendingProps,I=c!==null?c.memoizedProps:null,x=D.children,C0(T,D)?x=null:I!==null&&C0(T,I)&&(h.flags|=32),h.memoizedState!==null&&(T=Dm(c,h,A7,null,null,g),Zc._currentValue=T),Uv(c,h),gr(c,h,x,g),h.child;case 6:return c===null&&ie&&((c=g=Re)&&(g=fV(g,h.pendingProps,wa),g!==null?(h.stateNode=g,dr=h,Re=null,c=!0):c=!1),c||Ni(h)),null;case 13:return PA(c,h,g);case 4:return yt(h,h.stateNode.containerInfo),x=h.pendingProps,c===null?h.child=$o(h,null,x,g):gr(c,h,x,g),h.child;case 11:return AA(c,h,h.type,h.pendingProps,g);case 7:return gr(c,h,h.pendingProps,g),h.child;case 8:return gr(c,h,h.pendingProps.children,g),h.child;case 12:return gr(c,h,h.pendingProps.children,g),h.child;case 10:return x=h.pendingProps,Pi(h,h.type,x.value),gr(c,h,x.children,g),h.child;case 9:return T=h.type._context,x=h.pendingProps.children,Xo(h),T=pr(T),x=x(T),h.flags|=1,gr(c,h,x,g),h.child;case 14:return DA(c,h,h.type,h.pendingProps,g);case 15:return CA(c,h,h.type,h.pendingProps,g);case 19:return zA(c,h,g);case 31:return N7(c,h,g);case 22:return MA(c,h,g,h.pendingProps);case 24:return Xo(h),x=pr(Ze),c===null?(T=gm(),T===null&&(T=Me,D=dm(),T.pooledCache=D,D.refCount++,D!==null&&(T.pooledCacheLanes|=g),T=D),h.memoizedState={parent:x,cache:T},mm(h),Pi(h,Ze,T)):((c.lanes&g)!==0&&(_m(c,h),Cc(h,null,null,g),Dc()),T=c.memoizedState,D=h.memoizedState,T.parent!==x?(T={parent:x,cache:x},h.memoizedState=T,h.lanes===0&&(h.memoizedState=h.updateQueue.baseState=T),Pi(h,Ze,x)):(x=D.cache,Pi(h,Ze,x),x!==T.cache&&vm(h,[Ze],g,!0))),gr(c,h,h.pendingProps.children,g),h.child;case 29:throw h.pendingProps}throw Error(a(156,h.tag))}function Kn(c){c.flags|=4}function t0(c,h,g,x,T){if((h=(c.mode&32)!==0)&&(h=!1),h){if(c.flags|=16777216,(T&335544128)===T)if(c.stateNode.complete)c.flags|=8192;else if(cD())c.flags|=8192;else throw qo=Cv,ym}else c.flags&=-16777217}function BA(c,h){if(h.type!=="stylesheet"||(h.state.loading&4)!==0)c.flags&=-16777217;else if(c.flags|=16777216,!JD(h))if(cD())c.flags|=8192;else throw qo=Cv,ym}function jv(c,h){h!==null&&(c.flags|=4),c.flags&16384&&(h=c.tag!==22?yw():536870912,c.lanes|=h,Ul|=h)}function Nc(c,h){if(!ie)switch(c.tailMode){case"hidden":h=c.tail;for(var g=null;h!==null;)h.alternate!==null&&(g=h),h=h.sibling;g===null?c.tail=null:g.sibling=null;break;case"collapsed":g=c.tail;for(var x=null;g!==null;)g.alternate!==null&&(x=g),g=g.sibling;x===null?h||c.tail===null?c.tail=null:c.tail.sibling=null:x.sibling=null}}function Ie(c){var h=c.alternate!==null&&c.alternate.child===c.child,g=0,x=0;if(h)for(var T=c.child;T!==null;)g|=T.lanes|T.childLanes,x|=T.subtreeFlags&65011712,x|=T.flags&65011712,T.return=c,T=T.sibling;else for(T=c.child;T!==null;)g|=T.lanes|T.childLanes,x|=T.subtreeFlags,x|=T.flags,T.return=c,T=T.sibling;return c.subtreeFlags|=x,c.childLanes=g,h}function O7(c,h,g){var x=h.pendingProps;switch(lm(h),h.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ie(h),null;case 1:return Ie(h),null;case 3:return g=h.stateNode,x=null,c!==null&&(x=c.memoizedState.cache),h.memoizedState.cache!==x&&(h.flags|=2048),Zn(Ze),St(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(c===null||c.child===null)&&(Ll(h)?Kn(h):c===null||c.memoizedState.isDehydrated&&(h.flags&256)===0||(h.flags|=1024,cm())),Ie(h),null;case 26:var T=h.type,D=h.memoizedState;return c===null?(Kn(h),D!==null?(Ie(h),BA(h,D)):(Ie(h),t0(h,T,null,x,g))):D?D!==c.memoizedState?(Kn(h),Ie(h),BA(h,D)):(Ie(h),h.flags&=-16777217):(c=c.memoizedProps,c!==x&&Kn(h),Ie(h),t0(h,T,c,x,g)),null;case 27:if(_t(h),g=gt.current,T=h.type,c!==null&&h.stateNode!=null)c.memoizedProps!==x&&Kn(h);else{if(!x){if(h.stateNode===null)throw Error(a(166));return Ie(h),null}c=ot.current,Ll(h)?yT(h):(c=YD(T,x,g),h.stateNode=c,Kn(h))}return Ie(h),null;case 5:if(_t(h),T=h.type,c!==null&&h.stateNode!=null)c.memoizedProps!==x&&Kn(h);else{if(!x){if(h.stateNode===null)throw Error(a(166));return Ie(h),null}if(D=ot.current,Ll(h))yT(h);else{var I=id(gt.current);switch(D){case 1:D=I.createElementNS("http://www.w3.org/2000/svg",T);break;case 2:D=I.createElementNS("http://www.w3.org/1998/Math/MathML",T);break;default:switch(T){case"svg":D=I.createElementNS("http://www.w3.org/2000/svg",T);break;case"math":D=I.createElementNS("http://www.w3.org/1998/Math/MathML",T);break;case"script":D=I.createElement("div"),D.innerHTML="<script><\/script>",D=D.removeChild(D.firstChild);break;case"select":D=typeof x.is=="string"?I.createElement("select",{is:x.is}):I.createElement("select"),x.multiple?D.multiple=!0:x.size&&(D.size=x.size);break;default:D=typeof x.is=="string"?I.createElement(T,{is:x.is}):I.createElement(T)}}D[vr]=h,D[Hr]=x;t:for(I=h.child;I!==null;){if(I.tag===5||I.tag===6)D.appendChild(I.stateNode);else if(I.tag!==4&&I.tag!==27&&I.child!==null){I.child.return=I,I=I.child;continue}if(I===h)break t;for(;I.sibling===null;){if(I.return===null||I.return===h)break t;I=I.return}I.sibling.return=I.return,I=I.sibling}h.stateNode=D;t:switch(yr(D,T,x),T){case"button":case"input":case"select":case"textarea":x=!!x.autoFocus;break t;case"img":x=!0;break t;default:x=!1}x&&Kn(h)}}return Ie(h),t0(h,h.type,c===null?null:c.memoizedProps,h.pendingProps,g),null;case 6:if(c&&h.stateNode!=null)c.memoizedProps!==x&&Kn(h);else{if(typeof x!="string"&&h.stateNode===null)throw Error(a(166));if(c=gt.current,Ll(h)){if(c=h.stateNode,g=h.memoizedProps,x=null,T=dr,T!==null)switch(T.tag){case 27:case 5:x=T.memoizedProps}c[vr]=h,c=!!(c.nodeValue===g||x!==null&&x.suppressHydrationWarning===!0||PD(c.nodeValue,g)),c||Ni(h,!0)}else c=id(c).createTextNode(x),c[vr]=h,h.stateNode=c}return Ie(h),null;case 31:if(g=h.memoizedState,c===null||c.memoizedState!==null){if(x=Ll(h),g!==null){if(c===null){if(!x)throw Error(a(318));if(c=h.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(a(557));c[vr]=h}else jo(),(h.flags&128)===0&&(h.memoizedState=null),h.flags|=4;Ie(h),c=!1}else g=cm(),c!==null&&c.memoizedState!==null&&(c.memoizedState.hydrationErrors=g),c=!0;if(!c)return h.flags&256?(ia(h),h):(ia(h),null);if((h.flags&128)!==0)throw Error(a(558))}return Ie(h),null;case 13:if(x=h.memoizedState,c===null||c.memoizedState!==null&&c.memoizedState.dehydrated!==null){if(T=Ll(h),x!==null&&x.dehydrated!==null){if(c===null){if(!T)throw Error(a(318));if(T=h.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(a(317));T[vr]=h}else jo(),(h.flags&128)===0&&(h.memoizedState=null),h.flags|=4;Ie(h),T=!1}else T=cm(),c!==null&&c.memoizedState!==null&&(c.memoizedState.hydrationErrors=T),T=!0;if(!T)return h.flags&256?(ia(h),h):(ia(h),null)}return ia(h),(h.flags&128)!==0?(h.lanes=g,h):(g=x!==null,c=c!==null&&c.memoizedState!==null,g&&(x=h.child,T=null,x.alternate!==null&&x.alternate.memoizedState!==null&&x.alternate.memoizedState.cachePool!==null&&(T=x.alternate.memoizedState.cachePool.pool),D=null,x.memoizedState!==null&&x.memoizedState.cachePool!==null&&(D=x.memoizedState.cachePool.pool),D!==T&&(x.flags|=2048)),g!==c&&g&&(h.child.flags|=8192),jv(h,h.updateQueue),Ie(h),null);case 4:return St(),c===null&&b0(h.stateNode.containerInfo),Ie(h),null;case 10:return Zn(h.type),Ie(h),null;case 19:if(W(He),x=h.memoizedState,x===null)return Ie(h),null;if(T=(h.flags&128)!==0,D=x.rendering,D===null)if(T)Nc(x,!1);else{if(Be!==0||c!==null&&(c.flags&128)!==0)for(c=h.child;c!==null;){if(D=Rv(c),D!==null){for(h.flags|=128,Nc(x,!1),c=D.updateQueue,h.updateQueue=c,jv(h,c),h.subtreeFlags=0,c=g,g=h.child;g!==null;)hT(g,c),g=g.sibling;return rt(He,He.current&1|2),ie&&Yn(h,x.treeForkCount),h.child}c=c.sibling}x.tail!==null&&Jr()>qv&&(h.flags|=128,T=!0,Nc(x,!1),h.lanes=4194304)}else{if(!T)if(c=Rv(D),c!==null){if(h.flags|=128,T=!0,c=c.updateQueue,h.updateQueue=c,jv(h,c),Nc(x,!0),x.tail===null&&x.tailMode==="hidden"&&!D.alternate&&!ie)return Ie(h),null}else 2*Jr()-x.renderingStartTime>qv&&g!==536870912&&(h.flags|=128,T=!0,Nc(x,!1),h.lanes=4194304);x.isBackwards?(D.sibling=h.child,h.child=D):(c=x.last,c!==null?c.sibling=D:h.child=D,x.last=D)}return x.tail!==null?(c=x.tail,x.rendering=c,x.tail=c.sibling,x.renderingStartTime=Jr(),c.sibling=null,g=He.current,rt(He,T?g&1|2:g&1),ie&&Yn(h,x.treeForkCount),c):(Ie(h),null);case 22:case 23:return ia(h),wm(),x=h.memoizedState!==null,c!==null?c.memoizedState!==null!==x&&(h.flags|=8192):x&&(h.flags|=8192),x?(g&536870912)!==0&&(h.flags&128)===0&&(Ie(h),h.subtreeFlags&6&&(h.flags|=8192)):Ie(h),g=h.updateQueue,g!==null&&jv(h,g.retryQueue),g=null,c!==null&&c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(g=c.memoizedState.cachePool.pool),x=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(x=h.memoizedState.cachePool.pool),x!==g&&(h.flags|=2048),c!==null&&W(Zo),null;case 24:return g=null,c!==null&&(g=c.memoizedState.cache),h.memoizedState.cache!==g&&(h.flags|=2048),Zn(Ze),Ie(h),null;case 25:return null;case 30:return null}throw Error(a(156,h.tag))}function z7(c,h){switch(lm(h),h.tag){case 1:return c=h.flags,c&65536?(h.flags=c&-65537|128,h):null;case 3:return Zn(Ze),St(),c=h.flags,(c&65536)!==0&&(c&128)===0?(h.flags=c&-65537|128,h):null;case 26:case 27:case 5:return _t(h),null;case 31:if(h.memoizedState!==null){if(ia(h),h.alternate===null)throw Error(a(340));jo()}return c=h.flags,c&65536?(h.flags=c&-65537|128,h):null;case 13:if(ia(h),c=h.memoizedState,c!==null&&c.dehydrated!==null){if(h.alternate===null)throw Error(a(340));jo()}return c=h.flags,c&65536?(h.flags=c&-65537|128,h):null;case 19:return W(He),null;case 4:return St(),null;case 10:return Zn(h.type),null;case 22:case 23:return ia(h),wm(),c!==null&&W(Zo),c=h.flags,c&65536?(h.flags=c&-65537|128,h):null;case 24:return Zn(Ze),null;case 25:return null;default:return null}}function VA(c,h){switch(lm(h),h.tag){case 3:Zn(Ze),St();break;case 26:case 27:case 5:_t(h);break;case 4:St();break;case 31:h.memoizedState!==null&&ia(h);break;case 13:ia(h);break;case 19:W(He);break;case 10:Zn(h.type);break;case 22:case 23:ia(h),wm(),c!==null&&W(Zo);break;case 24:Zn(Ze)}}function Pc(c,h){try{var g=h.updateQueue,x=g!==null?g.lastEffect:null;if(x!==null){var T=x.next;g=T;do{if((g.tag&c)===c){x=void 0;var D=g.create,I=g.inst;x=D(),I.destroy=x}g=g.next}while(g!==T)}}catch(V){me(h,h.return,V)}}function Gi(c,h,g){try{var x=h.updateQueue,T=x!==null?x.lastEffect:null;if(T!==null){var D=T.next;x=D;do{if((x.tag&c)===c){var I=x.inst,V=I.destroy;if(V!==void 0){I.destroy=void 0,T=h;var X=g,J=V;try{J()}catch(lt){me(T,X,lt)}}}x=x.next}while(x!==D)}}catch(lt){me(h,h.return,lt)}}function GA(c){var h=c.updateQueue;if(h!==null){var g=c.stateNode;try{ET(h,g)}catch(x){me(c,c.return,x)}}}function HA(c,h,g){g.props=Qo(c.type,c.memoizedProps),g.state=c.memoizedState;try{g.componentWillUnmount()}catch(x){me(c,h,x)}}function Oc(c,h){try{var g=c.ref;if(g!==null){switch(c.tag){case 26:case 27:case 5:var x=c.stateNode;break;case 30:x=c.stateNode;break;default:x=c.stateNode}typeof g=="function"?c.refCleanup=g(x):g.current=x}}catch(T){me(c,h,T)}}function pn(c,h){var g=c.ref,x=c.refCleanup;if(g!==null)if(typeof x=="function")try{x()}catch(T){me(c,h,T)}finally{c.refCleanup=null,c=c.alternate,c!=null&&(c.refCleanup=null)}else if(typeof g=="function")try{g(null)}catch(T){me(c,h,T)}else g.current=null}function UA(c){var h=c.type,g=c.memoizedProps,x=c.stateNode;try{t:switch(h){case"button":case"input":case"select":case"textarea":g.autoFocus&&x.focus();break t;case"img":g.src?x.src=g.src:g.srcSet&&(x.srcset=g.srcSet)}}catch(T){me(c,c.return,T)}}function e0(c,h,g){try{var x=c.stateNode;nV(x,c.type,g,h),x[Hr]=h}catch(T){me(c,c.return,T)}}function FA(c){return c.tag===5||c.tag===3||c.tag===26||c.tag===27&&Zi(c.type)||c.tag===4}function r0(c){t:for(;;){for(;c.sibling===null;){if(c.return===null||FA(c.return))return null;c=c.return}for(c.sibling.return=c.return,c=c.sibling;c.tag!==5&&c.tag!==6&&c.tag!==18;){if(c.tag===27&&Zi(c.type)||c.flags&2||c.child===null||c.tag===4)continue t;c.child.return=c,c=c.child}if(!(c.flags&2))return c.stateNode}}function a0(c,h,g){var x=c.tag;if(x===5||x===6)c=c.stateNode,h?(g.nodeType===9?g.body:g.nodeName==="HTML"?g.ownerDocument.body:g).insertBefore(c,h):(h=g.nodeType===9?g.body:g.nodeName==="HTML"?g.ownerDocument.body:g,h.appendChild(c),g=g._reactRootContainer,g!=null||h.onclick!==null||(h.onclick=Un));else if(x!==4&&(x===27&&Zi(c.type)&&(g=c.stateNode,h=null),c=c.child,c!==null))for(a0(c,h,g),c=c.sibling;c!==null;)a0(c,h,g),c=c.sibling}function Yv(c,h,g){var x=c.tag;if(x===5||x===6)c=c.stateNode,h?g.insertBefore(c,h):g.appendChild(c);else if(x!==4&&(x===27&&Zi(c.type)&&(g=c.stateNode),c=c.child,c!==null))for(Yv(c,h,g),c=c.sibling;c!==null;)Yv(c,h,g),c=c.sibling}function jA(c){var h=c.stateNode,g=c.memoizedProps;try{for(var x=c.type,T=h.attributes;T.length;)h.removeAttributeNode(T[0]);yr(h,x,g),h[vr]=c,h[Hr]=g}catch(D){me(c,c.return,D)}}var Qn=!1,$e=!1,n0=!1,YA=typeof WeakSet=="function"?WeakSet:Set,ur=null;function k7(c,h){if(c=c.containerInfo,A0=hd,c=aT(c),Ky(c)){if("selectionStart"in c)var g={start:c.selectionStart,end:c.selectionEnd};else t:{g=(g=c.ownerDocument)&&g.defaultView||window;var x=g.getSelection&&g.getSelection();if(x&&x.rangeCount!==0){g=x.anchorNode;var T=x.anchorOffset,D=x.focusNode;x=x.focusOffset;try{g.nodeType,D.nodeType}catch{g=null;break t}var I=0,V=-1,X=-1,J=0,lt=0,ct=c,tt=null;e:for(;;){for(var at;ct!==g||T!==0&&ct.nodeType!==3||(V=I+T),ct!==D||x!==0&&ct.nodeType!==3||(X=I+x),ct.nodeType===3&&(I+=ct.nodeValue.length),(at=ct.firstChild)!==null;)tt=ct,ct=at;for(;;){if(ct===c)break e;if(tt===g&&++J===T&&(V=I),tt===D&&++lt===x&&(X=I),(at=ct.nextSibling)!==null)break;ct=tt,tt=ct.parentNode}ct=at}g=V===-1||X===-1?null:{start:V,end:X}}else g=null}g=g||{start:0,end:0}}else g=null;for(D0={focusedElem:c,selectionRange:g},hd=!1,ur=h;ur!==null;)if(h=ur,c=h.child,(h.subtreeFlags&1028)!==0&&c!==null)c.return=h,ur=c;else for(;ur!==null;){switch(h=ur,D=h.alternate,c=h.flags,h.tag){case 0:if((c&4)!==0&&(c=h.updateQueue,c=c!==null?c.events:null,c!==null))for(g=0;g<c.length;g++)T=c[g],T.ref.impl=T.nextImpl;break;case 11:case 15:break;case 1:if((c&1024)!==0&&D!==null){c=void 0,g=h,T=D.memoizedProps,D=D.memoizedState,x=g.stateNode;try{var At=Qo(g.type,T);c=x.getSnapshotBeforeUpdate(At,D),x.__reactInternalSnapshotBeforeUpdate=c}catch(Bt){me(g,g.return,Bt)}}break;case 3:if((c&1024)!==0){if(c=h.stateNode.containerInfo,g=c.nodeType,g===9)L0(c);else if(g===1)switch(c.nodeName){case"HEAD":case"HTML":case"BODY":L0(c);break;default:c.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((c&1024)!==0)throw Error(a(163))}if(c=h.sibling,c!==null){c.return=h.return,ur=c;break}ur=h.return}}function XA(c,h,g){var x=g.flags;switch(g.tag){case 0:case 11:case 15:ti(c,g),x&4&&Pc(5,g);break;case 1:if(ti(c,g),x&4)if(c=g.stateNode,h===null)try{c.componentDidMount()}catch(I){me(g,g.return,I)}else{var T=Qo(g.type,h.memoizedProps);h=h.memoizedState;try{c.componentDidUpdate(T,h,c.__reactInternalSnapshotBeforeUpdate)}catch(I){me(g,g.return,I)}}x&64&&GA(g),x&512&&Oc(g,g.return);break;case 3:if(ti(c,g),x&64&&(c=g.updateQueue,c!==null)){if(h=null,g.child!==null)switch(g.child.tag){case 27:case 5:h=g.child.stateNode;break;case 1:h=g.child.stateNode}try{ET(c,h)}catch(I){me(g,g.return,I)}}break;case 27:h===null&&x&4&&jA(g);case 26:case 5:ti(c,g),h===null&&x&4&&UA(g),x&512&&Oc(g,g.return);break;case 12:ti(c,g);break;case 31:ti(c,g),x&4&&qA(c,g);break;case 13:ti(c,g),x&4&&$A(c,g),x&64&&(c=g.memoizedState,c!==null&&(c=c.dehydrated,c!==null&&(g=X7.bind(null,g),hV(c,g))));break;case 22:if(x=g.memoizedState!==null||Qn,!x){h=h!==null&&h.memoizedState!==null||$e,T=Qn;var D=$e;Qn=x,($e=h)&&!D?ei(c,g,(g.subtreeFlags&8772)!==0):ti(c,g),Qn=T,$e=D}break;case 30:break;default:ti(c,g)}}function ZA(c){var h=c.alternate;h!==null&&(c.alternate=null,ZA(h)),c.child=null,c.deletions=null,c.sibling=null,c.tag===5&&(h=c.stateNode,h!==null&&Py(h)),c.stateNode=null,c.return=null,c.dependencies=null,c.memoizedProps=null,c.memoizedState=null,c.pendingProps=null,c.stateNode=null,c.updateQueue=null}var Ne=null,Fr=!1;function Jn(c,h,g){for(g=g.child;g!==null;)WA(c,h,g),g=g.sibling}function WA(c,h,g){if(ta&&typeof ta.onCommitFiberUnmount=="function")try{ta.onCommitFiberUnmount(ic,g)}catch{}switch(g.tag){case 26:$e||pn(g,h),Jn(c,h,g),g.memoizedState?g.memoizedState.count--:g.stateNode&&(g=g.stateNode,g.parentNode.removeChild(g));break;case 27:$e||pn(g,h);var x=Ne,T=Fr;Zi(g.type)&&(Ne=g.stateNode,Fr=!1),Jn(c,h,g),jc(g.stateNode),Ne=x,Fr=T;break;case 5:$e||pn(g,h);case 6:if(x=Ne,T=Fr,Ne=null,Jn(c,h,g),Ne=x,Fr=T,Ne!==null)if(Fr)try{(Ne.nodeType===9?Ne.body:Ne.nodeName==="HTML"?Ne.ownerDocument.body:Ne).removeChild(g.stateNode)}catch(D){me(g,h,D)}else try{Ne.removeChild(g.stateNode)}catch(D){me(g,h,D)}break;case 18:Ne!==null&&(Fr?(c=Ne,GD(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,g.stateNode),$l(c)):GD(Ne,g.stateNode));break;case 4:x=Ne,T=Fr,Ne=g.stateNode.containerInfo,Fr=!0,Jn(c,h,g),Ne=x,Fr=T;break;case 0:case 11:case 14:case 15:Gi(2,g,h),$e||Gi(4,g,h),Jn(c,h,g);break;case 1:$e||(pn(g,h),x=g.stateNode,typeof x.componentWillUnmount=="function"&&HA(g,h,x)),Jn(c,h,g);break;case 21:Jn(c,h,g);break;case 22:$e=(x=$e)||g.memoizedState!==null,Jn(c,h,g),$e=x;break;default:Jn(c,h,g)}}function qA(c,h){if(h.memoizedState===null&&(c=h.alternate,c!==null&&(c=c.memoizedState,c!==null))){c=c.dehydrated;try{$l(c)}catch(g){me(h,h.return,g)}}}function $A(c,h){if(h.memoizedState===null&&(c=h.alternate,c!==null&&(c=c.memoizedState,c!==null&&(c=c.dehydrated,c!==null))))try{$l(c)}catch(g){me(h,h.return,g)}}function B7(c){switch(c.tag){case 31:case 13:case 19:var h=c.stateNode;return h===null&&(h=c.stateNode=new YA),h;case 22:return c=c.stateNode,h=c._retryCache,h===null&&(h=c._retryCache=new YA),h;default:throw Error(a(435,c.tag))}}function Xv(c,h){var g=B7(c);h.forEach(function(x){if(!g.has(x)){g.add(x);var T=Z7.bind(null,c,x);x.then(T,T)}})}function jr(c,h){var g=h.deletions;if(g!==null)for(var x=0;x<g.length;x++){var T=g[x],D=c,I=h,V=I;t:for(;V!==null;){switch(V.tag){case 27:if(Zi(V.type)){Ne=V.stateNode,Fr=!1;break t}break;case 5:Ne=V.stateNode,Fr=!1;break t;case 3:case 4:Ne=V.stateNode.containerInfo,Fr=!0;break t}V=V.return}if(Ne===null)throw Error(a(160));WA(D,I,T),Ne=null,Fr=!1,D=T.alternate,D!==null&&(D.return=null),T.return=null}if(h.subtreeFlags&13886)for(h=h.child;h!==null;)KA(h,c),h=h.sibling}var Wa=null;function KA(c,h){var g=c.alternate,x=c.flags;switch(c.tag){case 0:case 11:case 14:case 15:jr(h,c),Yr(c),x&4&&(Gi(3,c,c.return),Pc(3,c),Gi(5,c,c.return));break;case 1:jr(h,c),Yr(c),x&512&&($e||g===null||pn(g,g.return)),x&64&&Qn&&(c=c.updateQueue,c!==null&&(x=c.callbacks,x!==null&&(g=c.shared.hiddenCallbacks,c.shared.hiddenCallbacks=g===null?x:g.concat(x))));break;case 26:var T=Wa;if(jr(h,c),Yr(c),x&512&&($e||g===null||pn(g,g.return)),x&4){var D=g!==null?g.memoizedState:null;if(x=c.memoizedState,g===null)if(x===null)if(c.stateNode===null){t:{x=c.type,g=c.memoizedProps,T=T.ownerDocument||T;e:switch(x){case"title":D=T.getElementsByTagName("title")[0],(!D||D[lc]||D[vr]||D.namespaceURI==="http://www.w3.org/2000/svg"||D.hasAttribute("itemprop"))&&(D=T.createElement(x),T.head.insertBefore(D,T.querySelector("head > title"))),yr(D,x,g),D[vr]=c,lr(D),x=D;break t;case"link":var I=KD("link","href",T).get(x+(g.href||""));if(I){for(var V=0;V<I.length;V++)if(D=I[V],D.getAttribute("href")===(g.href==null||g.href===""?null:g.href)&&D.getAttribute("rel")===(g.rel==null?null:g.rel)&&D.getAttribute("title")===(g.title==null?null:g.title)&&D.getAttribute("crossorigin")===(g.crossOrigin==null?null:g.crossOrigin)){I.splice(V,1);break e}}D=T.createElement(x),yr(D,x,g),T.head.appendChild(D);break;case"meta":if(I=KD("meta","content",T).get(x+(g.content||""))){for(V=0;V<I.length;V++)if(D=I[V],D.getAttribute("content")===(g.content==null?null:""+g.content)&&D.getAttribute("name")===(g.name==null?null:g.name)&&D.getAttribute("property")===(g.property==null?null:g.property)&&D.getAttribute("http-equiv")===(g.httpEquiv==null?null:g.httpEquiv)&&D.getAttribute("charset")===(g.charSet==null?null:g.charSet)){I.splice(V,1);break e}}D=T.createElement(x),yr(D,x,g),T.head.appendChild(D);break;default:throw Error(a(468,x))}D[vr]=c,lr(D),x=D}c.stateNode=x}else QD(T,c.type,c.stateNode);else c.stateNode=$D(T,x,c.memoizedProps);else D!==x?(D===null?g.stateNode!==null&&(g=g.stateNode,g.parentNode.removeChild(g)):D.count--,x===null?QD(T,c.type,c.stateNode):$D(T,x,c.memoizedProps)):x===null&&c.stateNode!==null&&e0(c,c.memoizedProps,g.memoizedProps)}break;case 27:jr(h,c),Yr(c),x&512&&($e||g===null||pn(g,g.return)),g!==null&&x&4&&e0(c,c.memoizedProps,g.memoizedProps);break;case 5:if(jr(h,c),Yr(c),x&512&&($e||g===null||pn(g,g.return)),c.flags&32){T=c.stateNode;try{_l(T,"")}catch(At){me(c,c.return,At)}}x&4&&c.stateNode!=null&&(T=c.memoizedProps,e0(c,T,g!==null?g.memoizedProps:T)),x&1024&&(n0=!0);break;case 6:if(jr(h,c),Yr(c),x&4){if(c.stateNode===null)throw Error(a(162));x=c.memoizedProps,g=c.stateNode;try{g.nodeValue=x}catch(At){me(c,c.return,At)}}break;case 3:if(ld=null,T=Wa,Wa=od(h.containerInfo),jr(h,c),Wa=T,Yr(c),x&4&&g!==null&&g.memoizedState.isDehydrated)try{$l(h.containerInfo)}catch(At){me(c,c.return,At)}n0&&(n0=!1,QA(c));break;case 4:x=Wa,Wa=od(c.stateNode.containerInfo),jr(h,c),Yr(c),Wa=x;break;case 12:jr(h,c),Yr(c);break;case 31:jr(h,c),Yr(c),x&4&&(x=c.updateQueue,x!==null&&(c.updateQueue=null,Xv(c,x)));break;case 13:jr(h,c),Yr(c),c.child.flags&8192&&c.memoizedState!==null!=(g!==null&&g.memoizedState!==null)&&(Wv=Jr()),x&4&&(x=c.updateQueue,x!==null&&(c.updateQueue=null,Xv(c,x)));break;case 22:T=c.memoizedState!==null;var X=g!==null&&g.memoizedState!==null,J=Qn,lt=$e;if(Qn=J||T,$e=lt||X,jr(h,c),$e=lt,Qn=J,Yr(c),x&8192)t:for(h=c.stateNode,h._visibility=T?h._visibility&-2:h._visibility|1,T&&(g===null||X||Qn||$e||Jo(c)),g=null,h=c;;){if(h.tag===5||h.tag===26){if(g===null){X=g=h;try{if(D=X.stateNode,T)I=D.style,typeof I.setProperty=="function"?I.setProperty("display","none","important"):I.display="none";else{V=X.stateNode;var ct=X.memoizedProps.style,tt=ct!=null&&ct.hasOwnProperty("display")?ct.display:null;V.style.display=tt==null||typeof tt=="boolean"?"":(""+tt).trim()}}catch(At){me(X,X.return,At)}}}else if(h.tag===6){if(g===null){X=h;try{X.stateNode.nodeValue=T?"":X.memoizedProps}catch(At){me(X,X.return,At)}}}else if(h.tag===18){if(g===null){X=h;try{var at=X.stateNode;T?HD(at,!0):HD(X.stateNode,!1)}catch(At){me(X,X.return,At)}}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===c)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===c)break t;for(;h.sibling===null;){if(h.return===null||h.return===c)break t;g===h&&(g=null),h=h.return}g===h&&(g=null),h.sibling.return=h.return,h=h.sibling}x&4&&(x=c.updateQueue,x!==null&&(g=x.retryQueue,g!==null&&(x.retryQueue=null,Xv(c,g))));break;case 19:jr(h,c),Yr(c),x&4&&(x=c.updateQueue,x!==null&&(c.updateQueue=null,Xv(c,x)));break;case 30:break;case 21:break;default:jr(h,c),Yr(c)}}function Yr(c){var h=c.flags;if(h&2){try{for(var g,x=c.return;x!==null;){if(FA(x)){g=x;break}x=x.return}if(g==null)throw Error(a(160));switch(g.tag){case 27:var T=g.stateNode,D=r0(c);Yv(c,D,T);break;case 5:var I=g.stateNode;g.flags&32&&(_l(I,""),g.flags&=-33);var V=r0(c);Yv(c,V,I);break;case 3:case 4:var X=g.stateNode.containerInfo,J=r0(c);a0(c,J,X);break;default:throw Error(a(161))}}catch(lt){me(c,c.return,lt)}c.flags&=-3}h&4096&&(c.flags&=-4097)}function QA(c){if(c.subtreeFlags&1024)for(c=c.child;c!==null;){var h=c;QA(h),h.tag===5&&h.flags&1024&&h.stateNode.reset(),c=c.sibling}}function ti(c,h){if(h.subtreeFlags&8772)for(h=h.child;h!==null;)XA(c,h.alternate,h),h=h.sibling}function Jo(c){for(c=c.child;c!==null;){var h=c;switch(h.tag){case 0:case 11:case 14:case 15:Gi(4,h,h.return),Jo(h);break;case 1:pn(h,h.return);var g=h.stateNode;typeof g.componentWillUnmount=="function"&&HA(h,h.return,g),Jo(h);break;case 27:jc(h.stateNode);case 26:case 5:pn(h,h.return),Jo(h);break;case 22:h.memoizedState===null&&Jo(h);break;case 30:Jo(h);break;default:Jo(h)}c=c.sibling}}function ei(c,h,g){for(g=g&&(h.subtreeFlags&8772)!==0,h=h.child;h!==null;){var x=h.alternate,T=c,D=h,I=D.flags;switch(D.tag){case 0:case 11:case 15:ei(T,D,g),Pc(4,D);break;case 1:if(ei(T,D,g),x=D,T=x.stateNode,typeof T.componentDidMount=="function")try{T.componentDidMount()}catch(J){me(x,x.return,J)}if(x=D,T=x.updateQueue,T!==null){var V=x.stateNode;try{var X=T.shared.hiddenCallbacks;if(X!==null)for(T.shared.hiddenCallbacks=null,T=0;T<X.length;T++)LT(X[T],V)}catch(J){me(x,x.return,J)}}g&&I&64&&GA(D),Oc(D,D.return);break;case 27:jA(D);case 26:case 5:ei(T,D,g),g&&x===null&&I&4&&UA(D),Oc(D,D.return);break;case 12:ei(T,D,g);break;case 31:ei(T,D,g),g&&I&4&&qA(T,D);break;case 13:ei(T,D,g),g&&I&4&&$A(T,D);break;case 22:D.memoizedState===null&&ei(T,D,g),Oc(D,D.return);break;case 30:break;default:ei(T,D,g)}h=h.sibling}}function i0(c,h){var g=null;c!==null&&c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(g=c.memoizedState.cachePool.pool),c=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(c=h.memoizedState.cachePool.pool),c!==g&&(c!=null&&c.refCount++,g!=null&&Sc(g))}function o0(c,h){c=null,h.alternate!==null&&(c=h.alternate.memoizedState.cache),h=h.memoizedState.cache,h!==c&&(h.refCount++,c!=null&&Sc(c))}function qa(c,h,g,x){if(h.subtreeFlags&10256)for(h=h.child;h!==null;)JA(c,h,g,x),h=h.sibling}function JA(c,h,g,x){var T=h.flags;switch(h.tag){case 0:case 11:case 15:qa(c,h,g,x),T&2048&&Pc(9,h);break;case 1:qa(c,h,g,x);break;case 3:qa(c,h,g,x),T&2048&&(c=null,h.alternate!==null&&(c=h.alternate.memoizedState.cache),h=h.memoizedState.cache,h!==c&&(h.refCount++,c!=null&&Sc(c)));break;case 12:if(T&2048){qa(c,h,g,x),c=h.stateNode;try{var D=h.memoizedProps,I=D.id,V=D.onPostCommit;typeof V=="function"&&V(I,h.alternate===null?"mount":"update",c.passiveEffectDuration,-0)}catch(X){me(h,h.return,X)}}else qa(c,h,g,x);break;case 31:qa(c,h,g,x);break;case 13:qa(c,h,g,x);break;case 23:break;case 22:D=h.stateNode,I=h.alternate,h.memoizedState!==null?D._visibility&2?qa(c,h,g,x):zc(c,h):D._visibility&2?qa(c,h,g,x):(D._visibility|=2,Vl(c,h,g,x,(h.subtreeFlags&10256)!==0||!1)),T&2048&&i0(I,h);break;case 24:qa(c,h,g,x),T&2048&&o0(h.alternate,h);break;default:qa(c,h,g,x)}}function Vl(c,h,g,x,T){for(T=T&&((h.subtreeFlags&10256)!==0||!1),h=h.child;h!==null;){var D=c,I=h,V=g,X=x,J=I.flags;switch(I.tag){case 0:case 11:case 15:Vl(D,I,V,X,T),Pc(8,I);break;case 23:break;case 22:var lt=I.stateNode;I.memoizedState!==null?lt._visibility&2?Vl(D,I,V,X,T):zc(D,I):(lt._visibility|=2,Vl(D,I,V,X,T)),T&&J&2048&&i0(I.alternate,I);break;case 24:Vl(D,I,V,X,T),T&&J&2048&&o0(I.alternate,I);break;default:Vl(D,I,V,X,T)}h=h.sibling}}function zc(c,h){if(h.subtreeFlags&10256)for(h=h.child;h!==null;){var g=c,x=h,T=x.flags;switch(x.tag){case 22:zc(g,x),T&2048&&i0(x.alternate,x);break;case 24:zc(g,x),T&2048&&o0(x.alternate,x);break;default:zc(g,x)}h=h.sibling}}var kc=8192;function Gl(c,h,g){if(c.subtreeFlags&kc)for(c=c.child;c!==null;)tD(c,h,g),c=c.sibling}function tD(c,h,g){switch(c.tag){case 26:Gl(c,h,g),c.flags&kc&&c.memoizedState!==null&&TV(g,Wa,c.memoizedState,c.memoizedProps);break;case 5:Gl(c,h,g);break;case 3:case 4:var x=Wa;Wa=od(c.stateNode.containerInfo),Gl(c,h,g),Wa=x;break;case 22:c.memoizedState===null&&(x=c.alternate,x!==null&&x.memoizedState!==null?(x=kc,kc=16777216,Gl(c,h,g),kc=x):Gl(c,h,g));break;default:Gl(c,h,g)}}function eD(c){var h=c.alternate;if(h!==null&&(c=h.child,c!==null)){h.child=null;do h=c.sibling,c.sibling=null,c=h;while(c!==null)}}function Bc(c){var h=c.deletions;if((c.flags&16)!==0){if(h!==null)for(var g=0;g<h.length;g++){var x=h[g];ur=x,aD(x,c)}eD(c)}if(c.subtreeFlags&10256)for(c=c.child;c!==null;)rD(c),c=c.sibling}function rD(c){switch(c.tag){case 0:case 11:case 15:Bc(c),c.flags&2048&&Gi(9,c,c.return);break;case 3:Bc(c);break;case 12:Bc(c);break;case 22:var h=c.stateNode;c.memoizedState!==null&&h._visibility&2&&(c.return===null||c.return.tag!==13)?(h._visibility&=-3,Zv(c)):Bc(c);break;default:Bc(c)}}function Zv(c){var h=c.deletions;if((c.flags&16)!==0){if(h!==null)for(var g=0;g<h.length;g++){var x=h[g];ur=x,aD(x,c)}eD(c)}for(c=c.child;c!==null;){switch(h=c,h.tag){case 0:case 11:case 15:Gi(8,h,h.return),Zv(h);break;case 22:g=h.stateNode,g._visibility&2&&(g._visibility&=-3,Zv(h));break;default:Zv(h)}c=c.sibling}}function aD(c,h){for(;ur!==null;){var g=ur;switch(g.tag){case 0:case 11:case 15:Gi(8,g,h);break;case 23:case 22:if(g.memoizedState!==null&&g.memoizedState.cachePool!==null){var x=g.memoizedState.cachePool.pool;x!=null&&x.refCount++}break;case 24:Sc(g.memoizedState.cache)}if(x=g.child,x!==null)x.return=g,ur=x;else t:for(g=c;ur!==null;){x=ur;var T=x.sibling,D=x.return;if(ZA(x),x===g){ur=null;break t}if(T!==null){T.return=D,ur=T;break t}ur=D}}}var V7={getCacheForType:function(c){var h=pr(Ze),g=h.data.get(c);return g===void 0&&(g=c(),h.data.set(c,g)),g},cacheSignal:function(){return pr(Ze).controller.signal}},G7=typeof WeakMap=="function"?WeakMap:Map,ve=0,Me=null,te=null,re=0,ye=0,oa=null,Hi=!1,Hl=!1,s0=!1,ri=0,Be=0,Ui=0,ts=0,l0=0,sa=0,Ul=0,Vc=null,Xr=null,u0=!1,Wv=0,nD=0,qv=1/0,$v=null,Fi=null,Je=0,ji=null,Fl=null,ai=0,c0=0,f0=null,iD=null,Gc=0,h0=null;function la(){return(ve&2)!==0&&re!==0?re&-re:B.T!==null?m0():Sw()}function oD(){if(sa===0)if((re&536870912)===0||ie){var c=nv;nv<<=1,(nv&3932160)===0&&(nv=262144),sa=c}else sa=536870912;return c=na.current,c!==null&&(c.flags|=32),sa}function Zr(c,h,g){(c===Me&&(ye===2||ye===9)||c.cancelPendingCommit!==null)&&(jl(c,0),Yi(c,re,sa,!1)),sc(c,g),((ve&2)===0||c!==Me)&&(c===Me&&((ve&2)===0&&(ts|=g),Be===4&&Yi(c,re,sa,!1)),gn(c))}function sD(c,h,g){if((ve&6)!==0)throw Error(a(327));var x=!g&&(h&127)===0&&(h&c.expiredLanes)===0||oc(c,h),T=x?F7(c,h):d0(c,h,!0),D=x;do{if(T===0){Hl&&!x&&Yi(c,h,0,!1);break}else{if(g=c.current.alternate,D&&!H7(g)){T=d0(c,h,!1),D=!1;continue}if(T===2){if(D=h,c.errorRecoveryDisabledLanes&D)var I=0;else I=c.pendingLanes&-536870913,I=I!==0?I:I&536870912?536870912:0;if(I!==0){h=I;t:{var V=c;T=Vc;var X=V.current.memoizedState.isDehydrated;if(X&&(jl(V,I).flags|=256),I=d0(V,I,!1),I!==2){if(s0&&!X){V.errorRecoveryDisabledLanes|=D,ts|=D,T=4;break t}D=Xr,Xr=T,D!==null&&(Xr===null?Xr=D:Xr.push.apply(Xr,D))}T=I}if(D=!1,T!==2)continue}}if(T===1){jl(c,0),Yi(c,h,0,!0);break}t:{switch(x=c,D=T,D){case 0:case 1:throw Error(a(345));case 4:if((h&4194048)!==h)break;case 6:Yi(x,h,sa,!Hi);break t;case 2:Xr=null;break;case 3:case 5:break;default:throw Error(a(329))}if((h&62914560)===h&&(T=Wv+300-Jr(),10<T)){if(Yi(x,h,sa,!Hi),ov(x,0,!0)!==0)break t;ai=h,x.timeoutHandle=BD(lD.bind(null,x,g,Xr,$v,u0,h,sa,ts,Ul,Hi,D,"Throttled",-0,0),T);break t}lD(x,g,Xr,$v,u0,h,sa,ts,Ul,Hi,D,null,-0,0)}}break}while(!0);gn(c)}function lD(c,h,g,x,T,D,I,V,X,J,lt,ct,tt,at){if(c.timeoutHandle=-1,ct=h.subtreeFlags,ct&8192||(ct&16785408)===16785408){ct={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Un},tD(h,D,ct);var At=(D&62914560)===D?Wv-Jr():(D&4194048)===D?nD-Jr():0;if(At=AV(ct,At),At!==null){ai=D,c.cancelPendingCommit=At(gD.bind(null,c,h,D,g,x,T,I,V,X,lt,ct,null,tt,at)),Yi(c,D,I,!J);return}}gD(c,h,D,g,x,T,I,V,X)}function H7(c){for(var h=c;;){var g=h.tag;if((g===0||g===11||g===15)&&h.flags&16384&&(g=h.updateQueue,g!==null&&(g=g.stores,g!==null)))for(var x=0;x<g.length;x++){var T=g[x],D=T.getSnapshot;T=T.value;try{if(!ra(D(),T))return!1}catch{return!1}}if(g=h.child,h.subtreeFlags&16384&&g!==null)g.return=h,h=g;else{if(h===c)break;for(;h.sibling===null;){if(h.return===null||h.return===c)return!0;h=h.return}h.sibling.return=h.return,h=h.sibling}}return!0}function Yi(c,h,g,x){h&=~l0,h&=~ts,c.suspendedLanes|=h,c.pingedLanes&=~h,x&&(c.warmLanes|=h),x=c.expirationTimes;for(var T=h;0<T;){var D=31-ea(T),I=1<<D;x[D]=-1,T&=~I}g!==0&&mw(c,g,h)}function Kv(){return(ve&6)===0?(Hc(0),!1):!0}function v0(){if(te!==null){if(ye===0)var c=te.return;else c=te,Xn=Yo=null,Lm(c),Pl=null,wc=0,c=te;for(;c!==null;)VA(c.alternate,c),c=c.return;te=null}}function jl(c,h){var g=c.timeoutHandle;g!==-1&&(c.timeoutHandle=-1,sV(g)),g=c.cancelPendingCommit,g!==null&&(c.cancelPendingCommit=null,g()),ai=0,v0(),Me=c,te=g=jn(c.current,null),re=h,ye=0,oa=null,Hi=!1,Hl=oc(c,h),s0=!1,Ul=sa=l0=ts=Ui=Be=0,Xr=Vc=null,u0=!1,(h&8)!==0&&(h|=h&32);var x=c.entangledLanes;if(x!==0)for(c=c.entanglements,x&=h;0<x;){var T=31-ea(x),D=1<<T;h|=c[T],x&=~D}return ri=h,mv(),g}function uD(c,h){Zt=null,B.H=Rc,h===Nl||h===Dv?(h=AT(),ye=3):h===ym?(h=AT(),ye=4):ye=h===Ym?8:h!==null&&typeof h=="object"&&typeof h.then=="function"?6:1,oa=h,te===null&&(Be=1,Gv(c,xa(h,c.current)))}function cD(){var c=na.current;return c===null?!0:(re&4194048)===re?Ta===null:(re&62914560)===re||(re&536870912)!==0?c===Ta:!1}function fD(){var c=B.H;return B.H=Rc,c===null?Rc:c}function hD(){var c=B.A;return B.A=V7,c}function Qv(){Be=4,Hi||(re&4194048)!==re&&na.current!==null||(Hl=!0),(Ui&134217727)===0&&(ts&134217727)===0||Me===null||Yi(Me,re,sa,!1)}function d0(c,h,g){var x=ve;ve|=2;var T=fD(),D=hD();(Me!==c||re!==h)&&($v=null,jl(c,h)),h=!1;var I=Be;t:do try{if(ye!==0&&te!==null){var V=te,X=oa;switch(ye){case 8:v0(),I=6;break t;case 3:case 2:case 9:case 6:na.current===null&&(h=!0);var J=ye;if(ye=0,oa=null,Yl(c,V,X,J),g&&Hl){I=0;break t}break;default:J=ye,ye=0,oa=null,Yl(c,V,X,J)}}U7(),I=Be;break}catch(lt){uD(c,lt)}while(!0);return h&&c.shellSuspendCounter++,Xn=Yo=null,ve=x,B.H=T,B.A=D,te===null&&(Me=null,re=0,mv()),I}function U7(){for(;te!==null;)vD(te)}function F7(c,h){var g=ve;ve|=2;var x=fD(),T=hD();Me!==c||re!==h?($v=null,qv=Jr()+500,jl(c,h)):Hl=oc(c,h);t:do try{if(ye!==0&&te!==null){h=te;var D=oa;e:switch(ye){case 1:ye=0,oa=null,Yl(c,h,D,1);break;case 2:case 9:if(wT(D)){ye=0,oa=null,dD(h);break}h=function(){ye!==2&&ye!==9||Me!==c||(ye=7),gn(c)},D.then(h,h);break t;case 3:ye=7;break t;case 4:ye=5;break t;case 7:wT(D)?(ye=0,oa=null,dD(h)):(ye=0,oa=null,Yl(c,h,D,7));break;case 5:var I=null;switch(te.tag){case 26:I=te.memoizedState;case 5:case 27:var V=te;if(I?JD(I):V.stateNode.complete){ye=0,oa=null;var X=V.sibling;if(X!==null)te=X;else{var J=V.return;J!==null?(te=J,Jv(J)):te=null}break e}}ye=0,oa=null,Yl(c,h,D,5);break;case 6:ye=0,oa=null,Yl(c,h,D,6);break;case 8:v0(),Be=6;break t;default:throw Error(a(462))}}j7();break}catch(lt){uD(c,lt)}while(!0);return Xn=Yo=null,B.H=x,B.A=T,ve=g,te!==null?0:(Me=null,re=0,mv(),Be)}function j7(){for(;te!==null&&!ev();)vD(te)}function vD(c){var h=kA(c.alternate,c,ri);c.memoizedProps=c.pendingProps,h===null?Jv(c):te=h}function dD(c){var h=c,g=h.alternate;switch(h.tag){case 15:case 0:h=RA(g,h,h.pendingProps,h.type,void 0,re);break;case 11:h=RA(g,h,h.pendingProps,h.type.render,h.ref,re);break;case 5:Lm(h);default:VA(g,h),h=te=hT(h,ri),h=kA(g,h,ri)}c.memoizedProps=c.pendingProps,h===null?Jv(c):te=h}function Yl(c,h,g,x){Xn=Yo=null,Lm(h),Pl=null,wc=0;var T=h.return;try{if(I7(c,T,h,g,re)){Be=1,Gv(c,xa(g,c.current)),te=null;return}}catch(D){if(T!==null)throw te=T,D;Be=1,Gv(c,xa(g,c.current)),te=null;return}h.flags&32768?(ie||x===1?c=!0:Hl||(re&536870912)!==0?c=!1:(Hi=c=!0,(x===2||x===9||x===3||x===6)&&(x=na.current,x!==null&&x.tag===13&&(x.flags|=16384))),pD(h,c)):Jv(h)}function Jv(c){var h=c;do{if((h.flags&32768)!==0){pD(h,Hi);return}c=h.return;var g=O7(h.alternate,h,ri);if(g!==null){te=g;return}if(h=h.sibling,h!==null){te=h;return}te=h=c}while(h!==null);Be===0&&(Be=5)}function pD(c,h){do{var g=z7(c.alternate,c);if(g!==null){g.flags&=32767,te=g;return}if(g=c.return,g!==null&&(g.flags|=32768,g.subtreeFlags=0,g.deletions=null),!h&&(c=c.sibling,c!==null)){te=c;return}te=c=g}while(c!==null);Be=6,te=null}function gD(c,h,g,x,T,D,I,V,X){c.cancelPendingCommit=null;do td();while(Je!==0);if((ve&6)!==0)throw Error(a(327));if(h!==null){if(h===c.current)throw Error(a(177));if(D=h.lanes|h.childLanes,D|=rm,wB(c,g,D,I,V,X),c===Me&&(te=Me=null,re=0),Fl=h,ji=c,ai=g,c0=D,f0=T,iD=x,(h.subtreeFlags&10256)!==0||(h.flags&10256)!==0?(c.callbackNode=null,c.callbackPriority=0,W7(rv,function(){return SD(),null})):(c.callbackNode=null,c.callbackPriority=0),x=(h.flags&13878)!==0,(h.subtreeFlags&13878)!==0||x){x=B.T,B.T=null,T=j.p,j.p=2,I=ve,ve|=4;try{k7(c,h,g)}finally{ve=I,j.p=T,B.T=x}}Je=1,yD(),mD(),_D()}}function yD(){if(Je===1){Je=0;var c=ji,h=Fl,g=(h.flags&13878)!==0;if((h.subtreeFlags&13878)!==0||g){g=B.T,B.T=null;var x=j.p;j.p=2;var T=ve;ve|=4;try{KA(h,c);var D=D0,I=aT(c.containerInfo),V=D.focusedElem,X=D.selectionRange;if(I!==V&&V&&V.ownerDocument&&rT(V.ownerDocument.documentElement,V)){if(X!==null&&Ky(V)){var J=X.start,lt=X.end;if(lt===void 0&&(lt=J),"selectionStart"in V)V.selectionStart=J,V.selectionEnd=Math.min(lt,V.value.length);else{var ct=V.ownerDocument||document,tt=ct&&ct.defaultView||window;if(tt.getSelection){var at=tt.getSelection(),At=V.textContent.length,Bt=Math.min(X.start,At),Ae=X.end===void 0?Bt:Math.min(X.end,At);!at.extend&&Bt>Ae&&(I=Ae,Ae=Bt,Bt=I);var q=eT(V,Bt),Z=eT(V,Ae);if(q&&Z&&(at.rangeCount!==1||at.anchorNode!==q.node||at.anchorOffset!==q.offset||at.focusNode!==Z.node||at.focusOffset!==Z.offset)){var Q=ct.createRange();Q.setStart(q.node,q.offset),at.removeAllRanges(),Bt>Ae?(at.addRange(Q),at.extend(Z.node,Z.offset)):(Q.setEnd(Z.node,Z.offset),at.addRange(Q))}}}}for(ct=[],at=V;at=at.parentNode;)at.nodeType===1&&ct.push({element:at,left:at.scrollLeft,top:at.scrollTop});for(typeof V.focus=="function"&&V.focus(),V=0;V<ct.length;V++){var ut=ct[V];ut.element.scrollLeft=ut.left,ut.element.scrollTop=ut.top}}hd=!!A0,D0=A0=null}finally{ve=T,j.p=x,B.T=g}}c.current=h,Je=2}}function mD(){if(Je===2){Je=0;var c=ji,h=Fl,g=(h.flags&8772)!==0;if((h.subtreeFlags&8772)!==0||g){g=B.T,B.T=null;var x=j.p;j.p=2;var T=ve;ve|=4;try{XA(c,h.alternate,h)}finally{ve=T,j.p=x,B.T=g}}Je=3}}function _D(){if(Je===4||Je===3){Je=0,nc();var c=ji,h=Fl,g=ai,x=iD;(h.subtreeFlags&10256)!==0||(h.flags&10256)!==0?Je=5:(Je=0,Fl=ji=null,xD(c,c.pendingLanes));var T=c.pendingLanes;if(T===0&&(Fi=null),Iy(g),h=h.stateNode,ta&&typeof ta.onCommitFiberRoot=="function")try{ta.onCommitFiberRoot(ic,h,void 0,(h.current.flags&128)===128)}catch{}if(x!==null){h=B.T,T=j.p,j.p=2,B.T=null;try{for(var D=c.onRecoverableError,I=0;I<x.length;I++){var V=x[I];D(V.value,{componentStack:V.stack})}}finally{B.T=h,j.p=T}}(ai&3)!==0&&td(),gn(c),T=c.pendingLanes,(g&261930)!==0&&(T&42)!==0?c===h0?Gc++:(Gc=0,h0=c):Gc=0,Hc(0)}}function xD(c,h){(c.pooledCacheLanes&=h)===0&&(h=c.pooledCache,h!=null&&(c.pooledCache=null,Sc(h)))}function td(){return yD(),mD(),_D(),SD()}function SD(){if(Je!==5)return!1;var c=ji,h=c0;c0=0;var g=Iy(ai),x=B.T,T=j.p;try{j.p=32>g?32:g,B.T=null,g=f0,f0=null;var D=ji,I=ai;if(Je=0,Fl=ji=null,ai=0,(ve&6)!==0)throw Error(a(331));var V=ve;if(ve|=4,rD(D.current),JA(D,D.current,I,g),ve=V,Hc(0,!1),ta&&typeof ta.onPostCommitFiberRoot=="function")try{ta.onPostCommitFiberRoot(ic,D)}catch{}return!0}finally{j.p=T,B.T=x,xD(c,h)}}function bD(c,h,g){h=xa(g,h),h=jm(c.stateNode,h,2),c=ki(c,h,2),c!==null&&(sc(c,2),gn(c))}function me(c,h,g){if(c.tag===3)bD(c,c,g);else for(;h!==null;){if(h.tag===3){bD(h,c,g);break}else if(h.tag===1){var x=h.stateNode;if(typeof h.type.getDerivedStateFromError=="function"||typeof x.componentDidCatch=="function"&&(Fi===null||!Fi.has(x))){c=xa(g,c),g=wA(2),x=ki(h,g,2),x!==null&&(TA(g,x,h,c),sc(x,2),gn(x));break}}h=h.return}}function p0(c,h,g){var x=c.pingCache;if(x===null){x=c.pingCache=new G7;var T=new Set;x.set(h,T)}else T=x.get(h),T===void 0&&(T=new Set,x.set(h,T));T.has(g)||(s0=!0,T.add(g),c=Y7.bind(null,c,h,g),h.then(c,c))}function Y7(c,h,g){var x=c.pingCache;x!==null&&x.delete(h),c.pingedLanes|=c.suspendedLanes&g,c.warmLanes&=~g,Me===c&&(re&g)===g&&(Be===4||Be===3&&(re&62914560)===re&&300>Jr()-Wv?(ve&2)===0&&jl(c,0):l0|=g,Ul===re&&(Ul=0)),gn(c)}function wD(c,h){h===0&&(h=yw()),c=Uo(c,h),c!==null&&(sc(c,h),gn(c))}function X7(c){var h=c.memoizedState,g=0;h!==null&&(g=h.retryLane),wD(c,g)}function Z7(c,h){var g=0;switch(c.tag){case 31:case 13:var x=c.stateNode,T=c.memoizedState;T!==null&&(g=T.retryLane);break;case 19:x=c.stateNode;break;case 22:x=c.stateNode._retryCache;break;default:throw Error(a(314))}x!==null&&x.delete(h),wD(c,g)}function W7(c,h){return Ci(c,h)}var ed=null,Xl=null,g0=!1,rd=!1,y0=!1,Xi=0;function gn(c){c!==Xl&&c.next===null&&(Xl===null?ed=Xl=c:Xl=Xl.next=c),rd=!0,g0||(g0=!0,$7())}function Hc(c,h){if(!y0&&rd){y0=!0;do for(var g=!1,x=ed;x!==null;){if(c!==0){var T=x.pendingLanes;if(T===0)var D=0;else{var I=x.suspendedLanes,V=x.pingedLanes;D=(1<<31-ea(42|c)+1)-1,D&=T&~(I&~V),D=D&201326741?D&201326741|1:D?D|2:0}D!==0&&(g=!0,CD(x,D))}else D=re,D=ov(x,x===Me?D:0,x.cancelPendingCommit!==null||x.timeoutHandle!==-1),(D&3)===0||oc(x,D)||(g=!0,CD(x,D));x=x.next}while(g);y0=!1}}function q7(){TD()}function TD(){rd=g0=!1;var c=0;Xi!==0&&oV()&&(c=Xi);for(var h=Jr(),g=null,x=ed;x!==null;){var T=x.next,D=AD(x,h);D===0?(x.next=null,g===null?ed=T:g.next=T,T===null&&(Xl=g)):(g=x,(c!==0||(D&3)!==0)&&(rd=!0)),x=T}Je!==0&&Je!==5||Hc(c),Xi!==0&&(Xi=0)}function AD(c,h){for(var g=c.suspendedLanes,x=c.pingedLanes,T=c.expirationTimes,D=c.pendingLanes&-62914561;0<D;){var I=31-ea(D),V=1<<I,X=T[I];X===-1?((V&g)===0||(V&x)!==0)&&(T[I]=bB(V,h)):X<=h&&(c.expiredLanes|=V),D&=~V}if(h=Me,g=re,g=ov(c,c===h?g:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),x=c.callbackNode,g===0||c===h&&(ye===2||ye===9)||c.cancelPendingCommit!==null)return x!==null&&x!==null&&ga(x),c.callbackNode=null,c.callbackPriority=0;if((g&3)===0||oc(c,g)){if(h=g&-g,h===c.callbackPriority)return h;switch(x!==null&&ga(x),Iy(g)){case 2:case 8:g=pw;break;case 32:g=rv;break;case 268435456:g=gw;break;default:g=rv}return x=DD.bind(null,c),g=Ci(g,x),c.callbackPriority=h,c.callbackNode=g,h}return x!==null&&x!==null&&ga(x),c.callbackPriority=2,c.callbackNode=null,2}function DD(c,h){if(Je!==0&&Je!==5)return c.callbackNode=null,c.callbackPriority=0,null;var g=c.callbackNode;if(td()&&c.callbackNode!==g)return null;var x=re;return x=ov(c,c===Me?x:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),x===0?null:(sD(c,x,h),AD(c,Jr()),c.callbackNode!=null&&c.callbackNode===g?DD.bind(null,c):null)}function CD(c,h){if(td())return null;sD(c,h,!0)}function $7(){lV(function(){(ve&6)!==0?Ci(dw,q7):TD()})}function m0(){if(Xi===0){var c=Rl;c===0&&(c=av,av<<=1,(av&261888)===0&&(av=256)),Xi=c}return Xi}function MD(c){return c==null||typeof c=="symbol"||typeof c=="boolean"?null:typeof c=="function"?c:cv(""+c)}function LD(c,h){var g=h.ownerDocument.createElement("input");return g.name=h.name,g.value=h.value,c.id&&g.setAttribute("form",c.id),h.parentNode.insertBefore(g,h),c=new FormData(c),g.parentNode.removeChild(g),c}function K7(c,h,g,x,T){if(h==="submit"&&g&&g.stateNode===T){var D=MD((T[Hr]||null).action),I=x.submitter;I&&(h=(h=I[Hr]||null)?MD(h.formAction):I.getAttribute("formAction"),h!==null&&(D=h,I=null));var V=new dv("action","action",null,x,T);c.push({event:V,listeners:[{instance:null,listener:function(){if(x.defaultPrevented){if(Xi!==0){var X=I?LD(T,I):new FormData(T);Bm(g,{pending:!0,data:X,method:T.method,action:D},null,X)}}else typeof D=="function"&&(V.preventDefault(),X=I?LD(T,I):new FormData(T),Bm(g,{pending:!0,data:X,method:T.method,action:D},D,X))},currentTarget:T}]})}}for(var _0=0;_0<em.length;_0++){var x0=em[_0],Q7=x0.toLowerCase(),J7=x0[0].toUpperCase()+x0.slice(1);Za(Q7,"on"+J7)}Za(oT,"onAnimationEnd"),Za(sT,"onAnimationIteration"),Za(lT,"onAnimationStart"),Za("dblclick","onDoubleClick"),Za("focusin","onFocus"),Za("focusout","onBlur"),Za(p7,"onTransitionRun"),Za(g7,"onTransitionStart"),Za(y7,"onTransitionCancel"),Za(uT,"onTransitionEnd"),yl("onMouseEnter",["mouseout","mouseover"]),yl("onMouseLeave",["mouseout","mouseover"]),yl("onPointerEnter",["pointerout","pointerover"]),yl("onPointerLeave",["pointerout","pointerover"]),Bo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Bo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Bo("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Bo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Bo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Uc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),tV=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Uc));function ED(c,h){h=(h&4)!==0;for(var g=0;g<c.length;g++){var x=c[g],T=x.event;x=x.listeners;t:{var D=void 0;if(h)for(var I=x.length-1;0<=I;I--){var V=x[I],X=V.instance,J=V.currentTarget;if(V=V.listener,X!==D&&T.isPropagationStopped())break t;D=V,T.currentTarget=J;try{D(T)}catch(lt){yv(lt)}T.currentTarget=null,D=X}else for(I=0;I<x.length;I++){if(V=x[I],X=V.instance,J=V.currentTarget,V=V.listener,X!==D&&T.isPropagationStopped())break t;D=V,T.currentTarget=J;try{D(T)}catch(lt){yv(lt)}T.currentTarget=null,D=X}}}}function ee(c,h){var g=h[Ny];g===void 0&&(g=h[Ny]=new Set);var x=c+"__bubble";g.has(x)||(RD(h,c,2,!1),g.add(x))}function S0(c,h,g){var x=0;h&&(x|=4),RD(g,c,x,h)}var ad="_reactListening"+Math.random().toString(36).slice(2);function b0(c){if(!c[ad]){c[ad]=!0,Tw.forEach(function(g){g!=="selectionchange"&&(tV.has(g)||S0(g,!1,c),S0(g,!0,c))});var h=c.nodeType===9?c:c.ownerDocument;h===null||h[ad]||(h[ad]=!0,S0("selectionchange",!1,h))}}function RD(c,h,g,x){switch(oC(h)){case 2:var T=MV;break;case 8:T=LV;break;default:T=k0}g=T.bind(null,h,g,c),T=void 0,!Uy||h!=="touchstart"&&h!=="touchmove"&&h!=="wheel"||(T=!0),x?T!==void 0?c.addEventListener(h,g,{capture:!0,passive:T}):c.addEventListener(h,g,!0):T!==void 0?c.addEventListener(h,g,{passive:T}):c.addEventListener(h,g,!1)}function w0(c,h,g,x,T){var D=x;if((h&1)===0&&(h&2)===0&&x!==null)t:for(;;){if(x===null)return;var I=x.tag;if(I===3||I===4){var V=x.stateNode.containerInfo;if(V===T)break;if(I===4)for(I=x.return;I!==null;){var X=I.tag;if((X===3||X===4)&&I.stateNode.containerInfo===T)return;I=I.return}for(;V!==null;){if(I=dl(V),I===null)return;if(X=I.tag,X===5||X===6||X===26||X===27){x=D=I;continue t}V=V.parentNode}}x=x.return}zw(function(){var J=D,lt=Gy(g),ct=[];t:{var tt=cT.get(c);if(tt!==void 0){var at=dv,At=c;switch(c){case"keypress":if(hv(g)===0)break t;case"keydown":case"keyup":at=ZB;break;case"focusin":At="focus",at=Xy;break;case"focusout":At="blur",at=Xy;break;case"beforeblur":case"afterblur":at=Xy;break;case"click":if(g.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":at=Vw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":at=OB;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":at=$B;break;case oT:case sT:case lT:at=BB;break;case uT:at=QB;break;case"scroll":case"scrollend":at=NB;break;case"wheel":at=t7;break;case"copy":case"cut":case"paste":at=GB;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":at=Hw;break;case"toggle":case"beforetoggle":at=r7}var Bt=(h&4)!==0,Ae=!Bt&&(c==="scroll"||c==="scrollend"),q=Bt?tt!==null?tt+"Capture":null:tt;Bt=[];for(var Z=J,Q;Z!==null;){var ut=Z;if(Q=ut.stateNode,ut=ut.tag,ut!==5&&ut!==26&&ut!==27||Q===null||q===null||(ut=cc(Z,q),ut!=null&&Bt.push(Fc(Z,ut,Q))),Ae)break;Z=Z.return}0<Bt.length&&(tt=new at(tt,At,null,g,lt),ct.push({event:tt,listeners:Bt}))}}if((h&7)===0){t:{if(tt=c==="mouseover"||c==="pointerover",at=c==="mouseout"||c==="pointerout",tt&&g!==Vy&&(At=g.relatedTarget||g.fromElement)&&(dl(At)||At[vl]))break t;if((at||tt)&&(tt=lt.window===lt?lt:(tt=lt.ownerDocument)?tt.defaultView||tt.parentWindow:window,at?(At=g.relatedTarget||g.toElement,at=J,At=At?dl(At):null,At!==null&&(Ae=i(At),Bt=At.tag,At!==Ae||Bt!==5&&Bt!==27&&Bt!==6)&&(At=null)):(at=null,At=J),at!==At)){if(Bt=Vw,ut="onMouseLeave",q="onMouseEnter",Z="mouse",(c==="pointerout"||c==="pointerover")&&(Bt=Hw,ut="onPointerLeave",q="onPointerEnter",Z="pointer"),Ae=at==null?tt:uc(at),Q=At==null?tt:uc(At),tt=new Bt(ut,Z+"leave",at,g,lt),tt.target=Ae,tt.relatedTarget=Q,ut=null,dl(lt)===J&&(Bt=new Bt(q,Z+"enter",At,g,lt),Bt.target=Q,Bt.relatedTarget=Ae,ut=Bt),Ae=ut,at&&At)e:{for(Bt=eV,q=at,Z=At,Q=0,ut=q;ut;ut=Bt(ut))Q++;ut=0;for(var Nt=Z;Nt;Nt=Bt(Nt))ut++;for(;0<Q-ut;)q=Bt(q),Q--;for(;0<ut-Q;)Z=Bt(Z),ut--;for(;Q--;){if(q===Z||Z!==null&&q===Z.alternate){Bt=q;break e}q=Bt(q),Z=Bt(Z)}Bt=null}else Bt=null;at!==null&&ID(ct,tt,at,Bt,!1),At!==null&&Ae!==null&&ID(ct,Ae,At,Bt,!0)}}t:{if(tt=J?uc(J):window,at=tt.nodeName&&tt.nodeName.toLowerCase(),at==="select"||at==="input"&&tt.type==="file")var ue=qw;else if(Zw(tt))if($w)ue=h7;else{ue=c7;var Mt=u7}else at=tt.nodeName,!at||at.toLowerCase()!=="input"||tt.type!=="checkbox"&&tt.type!=="radio"?J&&By(J.elementType)&&(ue=qw):ue=f7;if(ue&&(ue=ue(c,J))){Ww(ct,ue,g,lt);break t}Mt&&Mt(c,tt,J),c==="focusout"&&J&&tt.type==="number"&&J.memoizedProps.value!=null&&ky(tt,"number",tt.value)}switch(Mt=J?uc(J):window,c){case"focusin":(Zw(Mt)||Mt.contentEditable==="true")&&(wl=Mt,Qy=J,mc=null);break;case"focusout":mc=Qy=wl=null;break;case"mousedown":Jy=!0;break;case"contextmenu":case"mouseup":case"dragend":Jy=!1,nT(ct,g,lt);break;case"selectionchange":if(d7)break;case"keydown":case"keyup":nT(ct,g,lt)}var qt;if(Wy)t:{switch(c){case"compositionstart":var ae="onCompositionStart";break t;case"compositionend":ae="onCompositionEnd";break t;case"compositionupdate":ae="onCompositionUpdate";break t}ae=void 0}else bl?Yw(c,g)&&(ae="onCompositionEnd"):c==="keydown"&&g.keyCode===229&&(ae="onCompositionStart");ae&&(Uw&&g.locale!=="ko"&&(bl||ae!=="onCompositionStart"?ae==="onCompositionEnd"&&bl&&(qt=kw()):(Ei=lt,Fy="value"in Ei?Ei.value:Ei.textContent,bl=!0)),Mt=nd(J,ae),0<Mt.length&&(ae=new Gw(ae,c,null,g,lt),ct.push({event:ae,listeners:Mt}),qt?ae.data=qt:(qt=Xw(g),qt!==null&&(ae.data=qt)))),(qt=n7?i7(c,g):o7(c,g))&&(ae=nd(J,"onBeforeInput"),0<ae.length&&(Mt=new Gw("onBeforeInput","beforeinput",null,g,lt),ct.push({event:Mt,listeners:ae}),Mt.data=qt)),K7(ct,c,J,g,lt)}ED(ct,h)})}function Fc(c,h,g){return{instance:c,listener:h,currentTarget:g}}function nd(c,h){for(var g=h+"Capture",x=[];c!==null;){var T=c,D=T.stateNode;if(T=T.tag,T!==5&&T!==26&&T!==27||D===null||(T=cc(c,g),T!=null&&x.unshift(Fc(c,T,D)),T=cc(c,h),T!=null&&x.push(Fc(c,T,D))),c.tag===3)return x;c=c.return}return[]}function eV(c){if(c===null)return null;do c=c.return;while(c&&c.tag!==5&&c.tag!==27);return c||null}function ID(c,h,g,x,T){for(var D=h._reactName,I=[];g!==null&&g!==x;){var V=g,X=V.alternate,J=V.stateNode;if(V=V.tag,X!==null&&X===x)break;V!==5&&V!==26&&V!==27||J===null||(X=J,T?(J=cc(g,D),J!=null&&I.unshift(Fc(g,J,X))):T||(J=cc(g,D),J!=null&&I.push(Fc(g,J,X)))),g=g.return}I.length!==0&&c.push({event:h,listeners:I})}var rV=/\r\n?/g,aV=/\u0000|\uFFFD/g;function ND(c){return(typeof c=="string"?c:""+c).replace(rV,`
`).replace(aV,"")}function PD(c,h){return h=ND(h),ND(c)===h}function Te(c,h,g,x,T,D){switch(g){case"children":typeof x=="string"?h==="body"||h==="textarea"&&x===""||_l(c,x):(typeof x=="number"||typeof x=="bigint")&&h!=="body"&&_l(c,""+x);break;case"className":lv(c,"class",x);break;case"tabIndex":lv(c,"tabindex",x);break;case"dir":case"role":case"viewBox":case"width":case"height":lv(c,g,x);break;case"style":Pw(c,x,D);break;case"data":if(h!=="object"){lv(c,"data",x);break}case"src":case"href":if(x===""&&(h!=="a"||g!=="href")){c.removeAttribute(g);break}if(x==null||typeof x=="function"||typeof x=="symbol"||typeof x=="boolean"){c.removeAttribute(g);break}x=cv(""+x),c.setAttribute(g,x);break;case"action":case"formAction":if(typeof x=="function"){c.setAttribute(g,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof D=="function"&&(g==="formAction"?(h!=="input"&&Te(c,h,"name",T.name,T,null),Te(c,h,"formEncType",T.formEncType,T,null),Te(c,h,"formMethod",T.formMethod,T,null),Te(c,h,"formTarget",T.formTarget,T,null)):(Te(c,h,"encType",T.encType,T,null),Te(c,h,"method",T.method,T,null),Te(c,h,"target",T.target,T,null)));if(x==null||typeof x=="symbol"||typeof x=="boolean"){c.removeAttribute(g);break}x=cv(""+x),c.setAttribute(g,x);break;case"onClick":x!=null&&(c.onclick=Un);break;case"onScroll":x!=null&&ee("scroll",c);break;case"onScrollEnd":x!=null&&ee("scrollend",c);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(a(61));if(g=x.__html,g!=null){if(T.children!=null)throw Error(a(60));c.innerHTML=g}}break;case"multiple":c.multiple=x&&typeof x!="function"&&typeof x!="symbol";break;case"muted":c.muted=x&&typeof x!="function"&&typeof x!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(x==null||typeof x=="function"||typeof x=="boolean"||typeof x=="symbol"){c.removeAttribute("xlink:href");break}g=cv(""+x),c.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",g);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":x!=null&&typeof x!="function"&&typeof x!="symbol"?c.setAttribute(g,""+x):c.removeAttribute(g);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":x&&typeof x!="function"&&typeof x!="symbol"?c.setAttribute(g,""):c.removeAttribute(g);break;case"capture":case"download":x===!0?c.setAttribute(g,""):x!==!1&&x!=null&&typeof x!="function"&&typeof x!="symbol"?c.setAttribute(g,x):c.removeAttribute(g);break;case"cols":case"rows":case"size":case"span":x!=null&&typeof x!="function"&&typeof x!="symbol"&&!isNaN(x)&&1<=x?c.setAttribute(g,x):c.removeAttribute(g);break;case"rowSpan":case"start":x==null||typeof x=="function"||typeof x=="symbol"||isNaN(x)?c.removeAttribute(g):c.setAttribute(g,x);break;case"popover":ee("beforetoggle",c),ee("toggle",c),sv(c,"popover",x);break;case"xlinkActuate":Hn(c,"http://www.w3.org/1999/xlink","xlink:actuate",x);break;case"xlinkArcrole":Hn(c,"http://www.w3.org/1999/xlink","xlink:arcrole",x);break;case"xlinkRole":Hn(c,"http://www.w3.org/1999/xlink","xlink:role",x);break;case"xlinkShow":Hn(c,"http://www.w3.org/1999/xlink","xlink:show",x);break;case"xlinkTitle":Hn(c,"http://www.w3.org/1999/xlink","xlink:title",x);break;case"xlinkType":Hn(c,"http://www.w3.org/1999/xlink","xlink:type",x);break;case"xmlBase":Hn(c,"http://www.w3.org/XML/1998/namespace","xml:base",x);break;case"xmlLang":Hn(c,"http://www.w3.org/XML/1998/namespace","xml:lang",x);break;case"xmlSpace":Hn(c,"http://www.w3.org/XML/1998/namespace","xml:space",x);break;case"is":sv(c,"is",x);break;case"innerText":case"textContent":break;default:(!(2<g.length)||g[0]!=="o"&&g[0]!=="O"||g[1]!=="n"&&g[1]!=="N")&&(g=RB.get(g)||g,sv(c,g,x))}}function T0(c,h,g,x,T,D){switch(g){case"style":Pw(c,x,D);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(a(61));if(g=x.__html,g!=null){if(T.children!=null)throw Error(a(60));c.innerHTML=g}}break;case"children":typeof x=="string"?_l(c,x):(typeof x=="number"||typeof x=="bigint")&&_l(c,""+x);break;case"onScroll":x!=null&&ee("scroll",c);break;case"onScrollEnd":x!=null&&ee("scrollend",c);break;case"onClick":x!=null&&(c.onclick=Un);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Aw.hasOwnProperty(g))t:{if(g[0]==="o"&&g[1]==="n"&&(T=g.endsWith("Capture"),h=g.slice(2,T?g.length-7:void 0),D=c[Hr]||null,D=D!=null?D[g]:null,typeof D=="function"&&c.removeEventListener(h,D,T),typeof x=="function")){typeof D!="function"&&D!==null&&(g in c?c[g]=null:c.hasAttribute(g)&&c.removeAttribute(g)),c.addEventListener(h,x,T);break t}g in c?c[g]=x:x===!0?c.setAttribute(g,""):sv(c,g,x)}}}function yr(c,h,g){switch(h){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ee("error",c),ee("load",c);var x=!1,T=!1,D;for(D in g)if(g.hasOwnProperty(D)){var I=g[D];if(I!=null)switch(D){case"src":x=!0;break;case"srcSet":T=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,h));default:Te(c,h,D,I,g,null)}}T&&Te(c,h,"srcSet",g.srcSet,g,null),x&&Te(c,h,"src",g.src,g,null);return;case"input":ee("invalid",c);var V=D=I=T=null,X=null,J=null;for(x in g)if(g.hasOwnProperty(x)){var lt=g[x];if(lt!=null)switch(x){case"name":T=lt;break;case"type":I=lt;break;case"checked":X=lt;break;case"defaultChecked":J=lt;break;case"value":D=lt;break;case"defaultValue":V=lt;break;case"children":case"dangerouslySetInnerHTML":if(lt!=null)throw Error(a(137,h));break;default:Te(c,h,x,lt,g,null)}}Ew(c,D,V,X,J,I,T,!1);return;case"select":ee("invalid",c),x=I=D=null;for(T in g)if(g.hasOwnProperty(T)&&(V=g[T],V!=null))switch(T){case"value":D=V;break;case"defaultValue":I=V;break;case"multiple":x=V;default:Te(c,h,T,V,g,null)}h=D,g=I,c.multiple=!!x,h!=null?ml(c,!!x,h,!1):g!=null&&ml(c,!!x,g,!0);return;case"textarea":ee("invalid",c),D=T=x=null;for(I in g)if(g.hasOwnProperty(I)&&(V=g[I],V!=null))switch(I){case"value":x=V;break;case"defaultValue":T=V;break;case"children":D=V;break;case"dangerouslySetInnerHTML":if(V!=null)throw Error(a(91));break;default:Te(c,h,I,V,g,null)}Iw(c,x,T,D);return;case"option":for(X in g)g.hasOwnProperty(X)&&(x=g[X],x!=null)&&(X==="selected"?c.selected=x&&typeof x!="function"&&typeof x!="symbol":Te(c,h,X,x,g,null));return;case"dialog":ee("beforetoggle",c),ee("toggle",c),ee("cancel",c),ee("close",c);break;case"iframe":case"object":ee("load",c);break;case"video":case"audio":for(x=0;x<Uc.length;x++)ee(Uc[x],c);break;case"image":ee("error",c),ee("load",c);break;case"details":ee("toggle",c);break;case"embed":case"source":case"link":ee("error",c),ee("load",c);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(J in g)if(g.hasOwnProperty(J)&&(x=g[J],x!=null))switch(J){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,h));default:Te(c,h,J,x,g,null)}return;default:if(By(h)){for(lt in g)g.hasOwnProperty(lt)&&(x=g[lt],x!==void 0&&T0(c,h,lt,x,g,void 0));return}}for(V in g)g.hasOwnProperty(V)&&(x=g[V],x!=null&&Te(c,h,V,x,g,null))}function nV(c,h,g,x){switch(h){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var T=null,D=null,I=null,V=null,X=null,J=null,lt=null;for(at in g){var ct=g[at];if(g.hasOwnProperty(at)&&ct!=null)switch(at){case"checked":break;case"value":break;case"defaultValue":X=ct;default:x.hasOwnProperty(at)||Te(c,h,at,null,x,ct)}}for(var tt in x){var at=x[tt];if(ct=g[tt],x.hasOwnProperty(tt)&&(at!=null||ct!=null))switch(tt){case"type":D=at;break;case"name":T=at;break;case"checked":J=at;break;case"defaultChecked":lt=at;break;case"value":I=at;break;case"defaultValue":V=at;break;case"children":case"dangerouslySetInnerHTML":if(at!=null)throw Error(a(137,h));break;default:at!==ct&&Te(c,h,tt,at,x,ct)}}zy(c,I,V,X,J,lt,D,T);return;case"select":at=I=V=tt=null;for(D in g)if(X=g[D],g.hasOwnProperty(D)&&X!=null)switch(D){case"value":break;case"multiple":at=X;default:x.hasOwnProperty(D)||Te(c,h,D,null,x,X)}for(T in x)if(D=x[T],X=g[T],x.hasOwnProperty(T)&&(D!=null||X!=null))switch(T){case"value":tt=D;break;case"defaultValue":V=D;break;case"multiple":I=D;default:D!==X&&Te(c,h,T,D,x,X)}h=V,g=I,x=at,tt!=null?ml(c,!!g,tt,!1):!!x!=!!g&&(h!=null?ml(c,!!g,h,!0):ml(c,!!g,g?[]:"",!1));return;case"textarea":at=tt=null;for(V in g)if(T=g[V],g.hasOwnProperty(V)&&T!=null&&!x.hasOwnProperty(V))switch(V){case"value":break;case"children":break;default:Te(c,h,V,null,x,T)}for(I in x)if(T=x[I],D=g[I],x.hasOwnProperty(I)&&(T!=null||D!=null))switch(I){case"value":tt=T;break;case"defaultValue":at=T;break;case"children":break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(a(91));break;default:T!==D&&Te(c,h,I,T,x,D)}Rw(c,tt,at);return;case"option":for(var At in g)tt=g[At],g.hasOwnProperty(At)&&tt!=null&&!x.hasOwnProperty(At)&&(At==="selected"?c.selected=!1:Te(c,h,At,null,x,tt));for(X in x)tt=x[X],at=g[X],x.hasOwnProperty(X)&&tt!==at&&(tt!=null||at!=null)&&(X==="selected"?c.selected=tt&&typeof tt!="function"&&typeof tt!="symbol":Te(c,h,X,tt,x,at));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Bt in g)tt=g[Bt],g.hasOwnProperty(Bt)&&tt!=null&&!x.hasOwnProperty(Bt)&&Te(c,h,Bt,null,x,tt);for(J in x)if(tt=x[J],at=g[J],x.hasOwnProperty(J)&&tt!==at&&(tt!=null||at!=null))switch(J){case"children":case"dangerouslySetInnerHTML":if(tt!=null)throw Error(a(137,h));break;default:Te(c,h,J,tt,x,at)}return;default:if(By(h)){for(var Ae in g)tt=g[Ae],g.hasOwnProperty(Ae)&&tt!==void 0&&!x.hasOwnProperty(Ae)&&T0(c,h,Ae,void 0,x,tt);for(lt in x)tt=x[lt],at=g[lt],!x.hasOwnProperty(lt)||tt===at||tt===void 0&&at===void 0||T0(c,h,lt,tt,x,at);return}}for(var q in g)tt=g[q],g.hasOwnProperty(q)&&tt!=null&&!x.hasOwnProperty(q)&&Te(c,h,q,null,x,tt);for(ct in x)tt=x[ct],at=g[ct],!x.hasOwnProperty(ct)||tt===at||tt==null&&at==null||Te(c,h,ct,tt,x,at)}function OD(c){switch(c){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function iV(){if(typeof performance.getEntriesByType=="function"){for(var c=0,h=0,g=performance.getEntriesByType("resource"),x=0;x<g.length;x++){var T=g[x],D=T.transferSize,I=T.initiatorType,V=T.duration;if(D&&V&&OD(I)){for(I=0,V=T.responseEnd,x+=1;x<g.length;x++){var X=g[x],J=X.startTime;if(J>V)break;var lt=X.transferSize,ct=X.initiatorType;lt&&OD(ct)&&(X=X.responseEnd,I+=lt*(X<V?1:(V-J)/(X-J)))}if(--x,h+=8*(D+I)/(T.duration/1e3),c++,10<c)break}}if(0<c)return h/c/1e6}return navigator.connection&&(c=navigator.connection.downlink,typeof c=="number")?c:5}var A0=null,D0=null;function id(c){return c.nodeType===9?c:c.ownerDocument}function zD(c){switch(c){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function kD(c,h){if(c===0)switch(h){case"svg":return 1;case"math":return 2;default:return 0}return c===1&&h==="foreignObject"?0:c}function C0(c,h){return c==="textarea"||c==="noscript"||typeof h.children=="string"||typeof h.children=="number"||typeof h.children=="bigint"||typeof h.dangerouslySetInnerHTML=="object"&&h.dangerouslySetInnerHTML!==null&&h.dangerouslySetInnerHTML.__html!=null}var M0=null;function oV(){var c=window.event;return c&&c.type==="popstate"?c===M0?!1:(M0=c,!0):(M0=null,!1)}var BD=typeof setTimeout=="function"?setTimeout:void 0,sV=typeof clearTimeout=="function"?clearTimeout:void 0,VD=typeof Promise=="function"?Promise:void 0,lV=typeof queueMicrotask=="function"?queueMicrotask:typeof VD<"u"?function(c){return VD.resolve(null).then(c).catch(uV)}:BD;function uV(c){setTimeout(function(){throw c})}function Zi(c){return c==="head"}function GD(c,h){var g=h,x=0;do{var T=g.nextSibling;if(c.removeChild(g),T&&T.nodeType===8)if(g=T.data,g==="/$"||g==="/&"){if(x===0){c.removeChild(T),$l(h);return}x--}else if(g==="$"||g==="$?"||g==="$~"||g==="$!"||g==="&")x++;else if(g==="html")jc(c.ownerDocument.documentElement);else if(g==="head"){g=c.ownerDocument.head,jc(g);for(var D=g.firstChild;D;){var I=D.nextSibling,V=D.nodeName;D[lc]||V==="SCRIPT"||V==="STYLE"||V==="LINK"&&D.rel.toLowerCase()==="stylesheet"||g.removeChild(D),D=I}}else g==="body"&&jc(c.ownerDocument.body);g=T}while(g);$l(h)}function HD(c,h){var g=c;c=0;do{var x=g.nextSibling;if(g.nodeType===1?h?(g._stashedDisplay=g.style.display,g.style.display="none"):(g.style.display=g._stashedDisplay||"",g.getAttribute("style")===""&&g.removeAttribute("style")):g.nodeType===3&&(h?(g._stashedText=g.nodeValue,g.nodeValue=""):g.nodeValue=g._stashedText||""),x&&x.nodeType===8)if(g=x.data,g==="/$"){if(c===0)break;c--}else g!=="$"&&g!=="$?"&&g!=="$~"&&g!=="$!"||c++;g=x}while(g)}function L0(c){var h=c.firstChild;for(h&&h.nodeType===10&&(h=h.nextSibling);h;){var g=h;switch(h=h.nextSibling,g.nodeName){case"HTML":case"HEAD":case"BODY":L0(g),Py(g);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(g.rel.toLowerCase()==="stylesheet")continue}c.removeChild(g)}}function cV(c,h,g,x){for(;c.nodeType===1;){var T=g;if(c.nodeName.toLowerCase()!==h.toLowerCase()){if(!x&&(c.nodeName!=="INPUT"||c.type!=="hidden"))break}else if(x){if(!c[lc])switch(h){case"meta":if(!c.hasAttribute("itemprop"))break;return c;case"link":if(D=c.getAttribute("rel"),D==="stylesheet"&&c.hasAttribute("data-precedence"))break;if(D!==T.rel||c.getAttribute("href")!==(T.href==null||T.href===""?null:T.href)||c.getAttribute("crossorigin")!==(T.crossOrigin==null?null:T.crossOrigin)||c.getAttribute("title")!==(T.title==null?null:T.title))break;return c;case"style":if(c.hasAttribute("data-precedence"))break;return c;case"script":if(D=c.getAttribute("src"),(D!==(T.src==null?null:T.src)||c.getAttribute("type")!==(T.type==null?null:T.type)||c.getAttribute("crossorigin")!==(T.crossOrigin==null?null:T.crossOrigin))&&D&&c.hasAttribute("async")&&!c.hasAttribute("itemprop"))break;return c;default:return c}}else if(h==="input"&&c.type==="hidden"){var D=T.name==null?null:""+T.name;if(T.type==="hidden"&&c.getAttribute("name")===D)return c}else return c;if(c=Aa(c.nextSibling),c===null)break}return null}function fV(c,h,g){if(h==="")return null;for(;c.nodeType!==3;)if((c.nodeType!==1||c.nodeName!=="INPUT"||c.type!=="hidden")&&!g||(c=Aa(c.nextSibling),c===null))return null;return c}function UD(c,h){for(;c.nodeType!==8;)if((c.nodeType!==1||c.nodeName!=="INPUT"||c.type!=="hidden")&&!h||(c=Aa(c.nextSibling),c===null))return null;return c}function E0(c){return c.data==="$?"||c.data==="$~"}function R0(c){return c.data==="$!"||c.data==="$?"&&c.ownerDocument.readyState!=="loading"}function hV(c,h){var g=c.ownerDocument;if(c.data==="$~")c._reactRetry=h;else if(c.data!=="$?"||g.readyState!=="loading")h();else{var x=function(){h(),g.removeEventListener("DOMContentLoaded",x)};g.addEventListener("DOMContentLoaded",x),c._reactRetry=x}}function Aa(c){for(;c!=null;c=c.nextSibling){var h=c.nodeType;if(h===1||h===3)break;if(h===8){if(h=c.data,h==="$"||h==="$!"||h==="$?"||h==="$~"||h==="&"||h==="F!"||h==="F")break;if(h==="/$"||h==="/&")return null}}return c}var I0=null;function FD(c){c=c.nextSibling;for(var h=0;c;){if(c.nodeType===8){var g=c.data;if(g==="/$"||g==="/&"){if(h===0)return Aa(c.nextSibling);h--}else g!=="$"&&g!=="$!"&&g!=="$?"&&g!=="$~"&&g!=="&"||h++}c=c.nextSibling}return null}function jD(c){c=c.previousSibling;for(var h=0;c;){if(c.nodeType===8){var g=c.data;if(g==="$"||g==="$!"||g==="$?"||g==="$~"||g==="&"){if(h===0)return c;h--}else g!=="/$"&&g!=="/&"||h++}c=c.previousSibling}return null}function YD(c,h,g){switch(h=id(g),c){case"html":if(c=h.documentElement,!c)throw Error(a(452));return c;case"head":if(c=h.head,!c)throw Error(a(453));return c;case"body":if(c=h.body,!c)throw Error(a(454));return c;default:throw Error(a(451))}}function jc(c){for(var h=c.attributes;h.length;)c.removeAttributeNode(h[0]);Py(c)}var Da=new Map,XD=new Set;function od(c){return typeof c.getRootNode=="function"?c.getRootNode():c.nodeType===9?c:c.ownerDocument}var ni=j.d;j.d={f:vV,r:dV,D:pV,C:gV,L:yV,m:mV,X:xV,S:_V,M:SV};function vV(){var c=ni.f(),h=Kv();return c||h}function dV(c){var h=pl(c);h!==null&&h.tag===5&&h.type==="form"?uA(h):ni.r(c)}var Zl=typeof document>"u"?null:document;function ZD(c,h,g){var x=Zl;if(x&&typeof h=="string"&&h){var T=ma(h);T='link[rel="'+c+'"][href="'+T+'"]',typeof g=="string"&&(T+='[crossorigin="'+g+'"]'),XD.has(T)||(XD.add(T),c={rel:c,crossOrigin:g,href:h},x.querySelector(T)===null&&(h=x.createElement("link"),yr(h,"link",c),lr(h),x.head.appendChild(h)))}}function pV(c){ni.D(c),ZD("dns-prefetch",c,null)}function gV(c,h){ni.C(c,h),ZD("preconnect",c,h)}function yV(c,h,g){ni.L(c,h,g);var x=Zl;if(x&&c&&h){var T='link[rel="preload"][as="'+ma(h)+'"]';h==="image"&&g&&g.imageSrcSet?(T+='[imagesrcset="'+ma(g.imageSrcSet)+'"]',typeof g.imageSizes=="string"&&(T+='[imagesizes="'+ma(g.imageSizes)+'"]')):T+='[href="'+ma(c)+'"]';var D=T;switch(h){case"style":D=Wl(c);break;case"script":D=ql(c)}Da.has(D)||(c=v({rel:"preload",href:h==="image"&&g&&g.imageSrcSet?void 0:c,as:h},g),Da.set(D,c),x.querySelector(T)!==null||h==="style"&&x.querySelector(Yc(D))||h==="script"&&x.querySelector(Xc(D))||(h=x.createElement("link"),yr(h,"link",c),lr(h),x.head.appendChild(h)))}}function mV(c,h){ni.m(c,h);var g=Zl;if(g&&c){var x=h&&typeof h.as=="string"?h.as:"script",T='link[rel="modulepreload"][as="'+ma(x)+'"][href="'+ma(c)+'"]',D=T;switch(x){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":D=ql(c)}if(!Da.has(D)&&(c=v({rel:"modulepreload",href:c},h),Da.set(D,c),g.querySelector(T)===null)){switch(x){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(g.querySelector(Xc(D)))return}x=g.createElement("link"),yr(x,"link",c),lr(x),g.head.appendChild(x)}}}function _V(c,h,g){ni.S(c,h,g);var x=Zl;if(x&&c){var T=gl(x).hoistableStyles,D=Wl(c);h=h||"default";var I=T.get(D);if(!I){var V={loading:0,preload:null};if(I=x.querySelector(Yc(D)))V.loading=5;else{c=v({rel:"stylesheet",href:c,"data-precedence":h},g),(g=Da.get(D))&&N0(c,g);var X=I=x.createElement("link");lr(X),yr(X,"link",c),X._p=new Promise(function(J,lt){X.onload=J,X.onerror=lt}),X.addEventListener("load",function(){V.loading|=1}),X.addEventListener("error",function(){V.loading|=2}),V.loading|=4,sd(I,h,x)}I={type:"stylesheet",instance:I,count:1,state:V},T.set(D,I)}}}function xV(c,h){ni.X(c,h);var g=Zl;if(g&&c){var x=gl(g).hoistableScripts,T=ql(c),D=x.get(T);D||(D=g.querySelector(Xc(T)),D||(c=v({src:c,async:!0},h),(h=Da.get(T))&&P0(c,h),D=g.createElement("script"),lr(D),yr(D,"link",c),g.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},x.set(T,D))}}function SV(c,h){ni.M(c,h);var g=Zl;if(g&&c){var x=gl(g).hoistableScripts,T=ql(c),D=x.get(T);D||(D=g.querySelector(Xc(T)),D||(c=v({src:c,async:!0,type:"module"},h),(h=Da.get(T))&&P0(c,h),D=g.createElement("script"),lr(D),yr(D,"link",c),g.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},x.set(T,D))}}function WD(c,h,g,x){var T=(T=gt.current)?od(T):null;if(!T)throw Error(a(446));switch(c){case"meta":case"title":return null;case"style":return typeof g.precedence=="string"&&typeof g.href=="string"?(h=Wl(g.href),g=gl(T).hoistableStyles,x=g.get(h),x||(x={type:"style",instance:null,count:0,state:null},g.set(h,x)),x):{type:"void",instance:null,count:0,state:null};case"link":if(g.rel==="stylesheet"&&typeof g.href=="string"&&typeof g.precedence=="string"){c=Wl(g.href);var D=gl(T).hoistableStyles,I=D.get(c);if(I||(T=T.ownerDocument||T,I={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},D.set(c,I),(D=T.querySelector(Yc(c)))&&!D._p&&(I.instance=D,I.state.loading=5),Da.has(c)||(g={rel:"preload",as:"style",href:g.href,crossOrigin:g.crossOrigin,integrity:g.integrity,media:g.media,hrefLang:g.hrefLang,referrerPolicy:g.referrerPolicy},Da.set(c,g),D||bV(T,c,g,I.state))),h&&x===null)throw Error(a(528,""));return I}if(h&&x!==null)throw Error(a(529,""));return null;case"script":return h=g.async,g=g.src,typeof g=="string"&&h&&typeof h!="function"&&typeof h!="symbol"?(h=ql(g),g=gl(T).hoistableScripts,x=g.get(h),x||(x={type:"script",instance:null,count:0,state:null},g.set(h,x)),x):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,c))}}function Wl(c){return'href="'+ma(c)+'"'}function Yc(c){return'link[rel="stylesheet"]['+c+"]"}function qD(c){return v({},c,{"data-precedence":c.precedence,precedence:null})}function bV(c,h,g,x){c.querySelector('link[rel="preload"][as="style"]['+h+"]")?x.loading=1:(h=c.createElement("link"),x.preload=h,h.addEventListener("load",function(){return x.loading|=1}),h.addEventListener("error",function(){return x.loading|=2}),yr(h,"link",g),lr(h),c.head.appendChild(h))}function ql(c){return'[src="'+ma(c)+'"]'}function Xc(c){return"script[async]"+c}function $D(c,h,g){if(h.count++,h.instance===null)switch(h.type){case"style":var x=c.querySelector('style[data-href~="'+ma(g.href)+'"]');if(x)return h.instance=x,lr(x),x;var T=v({},g,{"data-href":g.href,"data-precedence":g.precedence,href:null,precedence:null});return x=(c.ownerDocument||c).createElement("style"),lr(x),yr(x,"style",T),sd(x,g.precedence,c),h.instance=x;case"stylesheet":T=Wl(g.href);var D=c.querySelector(Yc(T));if(D)return h.state.loading|=4,h.instance=D,lr(D),D;x=qD(g),(T=Da.get(T))&&N0(x,T),D=(c.ownerDocument||c).createElement("link"),lr(D);var I=D;return I._p=new Promise(function(V,X){I.onload=V,I.onerror=X}),yr(D,"link",x),h.state.loading|=4,sd(D,g.precedence,c),h.instance=D;case"script":return D=ql(g.src),(T=c.querySelector(Xc(D)))?(h.instance=T,lr(T),T):(x=g,(T=Da.get(D))&&(x=v({},g),P0(x,T)),c=c.ownerDocument||c,T=c.createElement("script"),lr(T),yr(T,"link",x),c.head.appendChild(T),h.instance=T);case"void":return null;default:throw Error(a(443,h.type))}else h.type==="stylesheet"&&(h.state.loading&4)===0&&(x=h.instance,h.state.loading|=4,sd(x,g.precedence,c));return h.instance}function sd(c,h,g){for(var x=g.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),T=x.length?x[x.length-1]:null,D=T,I=0;I<x.length;I++){var V=x[I];if(V.dataset.precedence===h)D=V;else if(D!==T)break}D?D.parentNode.insertBefore(c,D.nextSibling):(h=g.nodeType===9?g.head:g,h.insertBefore(c,h.firstChild))}function N0(c,h){c.crossOrigin==null&&(c.crossOrigin=h.crossOrigin),c.referrerPolicy==null&&(c.referrerPolicy=h.referrerPolicy),c.title==null&&(c.title=h.title)}function P0(c,h){c.crossOrigin==null&&(c.crossOrigin=h.crossOrigin),c.referrerPolicy==null&&(c.referrerPolicy=h.referrerPolicy),c.integrity==null&&(c.integrity=h.integrity)}var ld=null;function KD(c,h,g){if(ld===null){var x=new Map,T=ld=new Map;T.set(g,x)}else T=ld,x=T.get(g),x||(x=new Map,T.set(g,x));if(x.has(c))return x;for(x.set(c,null),g=g.getElementsByTagName(c),T=0;T<g.length;T++){var D=g[T];if(!(D[lc]||D[vr]||c==="link"&&D.getAttribute("rel")==="stylesheet")&&D.namespaceURI!=="http://www.w3.org/2000/svg"){var I=D.getAttribute(h)||"";I=c+I;var V=x.get(I);V?V.push(D):x.set(I,[D])}}return x}function QD(c,h,g){c=c.ownerDocument||c,c.head.insertBefore(g,h==="title"?c.querySelector("head > title"):null)}function wV(c,h,g){if(g===1||h.itemProp!=null)return!1;switch(c){case"meta":case"title":return!0;case"style":if(typeof h.precedence!="string"||typeof h.href!="string"||h.href==="")break;return!0;case"link":if(typeof h.rel!="string"||typeof h.href!="string"||h.href===""||h.onLoad||h.onError)break;return h.rel==="stylesheet"?(c=h.disabled,typeof h.precedence=="string"&&c==null):!0;case"script":if(h.async&&typeof h.async!="function"&&typeof h.async!="symbol"&&!h.onLoad&&!h.onError&&h.src&&typeof h.src=="string")return!0}return!1}function JD(c){return!(c.type==="stylesheet"&&(c.state.loading&3)===0)}function TV(c,h,g,x){if(g.type==="stylesheet"&&(typeof x.media!="string"||matchMedia(x.media).matches!==!1)&&(g.state.loading&4)===0){if(g.instance===null){var T=Wl(x.href),D=h.querySelector(Yc(T));if(D){h=D._p,h!==null&&typeof h=="object"&&typeof h.then=="function"&&(c.count++,c=ud.bind(c),h.then(c,c)),g.state.loading|=4,g.instance=D,lr(D);return}D=h.ownerDocument||h,x=qD(x),(T=Da.get(T))&&N0(x,T),D=D.createElement("link"),lr(D);var I=D;I._p=new Promise(function(V,X){I.onload=V,I.onerror=X}),yr(D,"link",x),g.instance=D}c.stylesheets===null&&(c.stylesheets=new Map),c.stylesheets.set(g,h),(h=g.state.preload)&&(g.state.loading&3)===0&&(c.count++,g=ud.bind(c),h.addEventListener("load",g),h.addEventListener("error",g))}}var O0=0;function AV(c,h){return c.stylesheets&&c.count===0&&fd(c,c.stylesheets),0<c.count||0<c.imgCount?function(g){var x=setTimeout(function(){if(c.stylesheets&&fd(c,c.stylesheets),c.unsuspend){var D=c.unsuspend;c.unsuspend=null,D()}},6e4+h);0<c.imgBytes&&O0===0&&(O0=62500*iV());var T=setTimeout(function(){if(c.waitingForImages=!1,c.count===0&&(c.stylesheets&&fd(c,c.stylesheets),c.unsuspend)){var D=c.unsuspend;c.unsuspend=null,D()}},(c.imgBytes>O0?50:800)+h);return c.unsuspend=g,function(){c.unsuspend=null,clearTimeout(x),clearTimeout(T)}}:null}function ud(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)fd(this,this.stylesheets);else if(this.unsuspend){var c=this.unsuspend;this.unsuspend=null,c()}}}var cd=null;function fd(c,h){c.stylesheets=null,c.unsuspend!==null&&(c.count++,cd=new Map,h.forEach(DV,c),cd=null,ud.call(c))}function DV(c,h){if(!(h.state.loading&4)){var g=cd.get(c);if(g)var x=g.get(null);else{g=new Map,cd.set(c,g);for(var T=c.querySelectorAll("link[data-precedence],style[data-precedence]"),D=0;D<T.length;D++){var I=T[D];(I.nodeName==="LINK"||I.getAttribute("media")!=="not all")&&(g.set(I.dataset.precedence,I),x=I)}x&&g.set(null,x)}T=h.instance,I=T.getAttribute("data-precedence"),D=g.get(I)||x,D===x&&g.set(null,T),g.set(I,T),this.count++,x=ud.bind(this),T.addEventListener("load",x),T.addEventListener("error",x),D?D.parentNode.insertBefore(T,D.nextSibling):(c=c.nodeType===9?c.head:c,c.insertBefore(T,c.firstChild)),h.state.loading|=4}}var Zc={$$typeof:w,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function CV(c,h,g,x,T,D,I,V,X){this.tag=1,this.containerInfo=c,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ey(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ey(0),this.hiddenUpdates=Ey(null),this.identifierPrefix=x,this.onUncaughtError=T,this.onCaughtError=D,this.onRecoverableError=I,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=X,this.incompleteTransitions=new Map}function tC(c,h,g,x,T,D,I,V,X,J,lt,ct){return c=new CV(c,h,g,I,X,J,lt,ct,V),h=1,D===!0&&(h|=24),D=aa(3,null,null,h),c.current=D,D.stateNode=c,h=dm(),h.refCount++,c.pooledCache=h,h.refCount++,D.memoizedState={element:x,isDehydrated:g,cache:h},mm(D),c}function eC(c){return c?(c=Dl,c):Dl}function rC(c,h,g,x,T,D){T=eC(T),x.context===null?x.context=T:x.pendingContext=T,x=zi(h),x.payload={element:g},D=D===void 0?null:D,D!==null&&(x.callback=D),g=ki(c,x,h),g!==null&&(Zr(g,c,h),Ac(g,c,h))}function aC(c,h){if(c=c.memoizedState,c!==null&&c.dehydrated!==null){var g=c.retryLane;c.retryLane=g!==0&&g<h?g:h}}function z0(c,h){aC(c,h),(c=c.alternate)&&aC(c,h)}function nC(c){if(c.tag===13||c.tag===31){var h=Uo(c,67108864);h!==null&&Zr(h,c,67108864),z0(c,67108864)}}function iC(c){if(c.tag===13||c.tag===31){var h=la();h=Ry(h);var g=Uo(c,h);g!==null&&Zr(g,c,h),z0(c,h)}}var hd=!0;function MV(c,h,g,x){var T=B.T;B.T=null;var D=j.p;try{j.p=2,k0(c,h,g,x)}finally{j.p=D,B.T=T}}function LV(c,h,g,x){var T=B.T;B.T=null;var D=j.p;try{j.p=8,k0(c,h,g,x)}finally{j.p=D,B.T=T}}function k0(c,h,g,x){if(hd){var T=B0(x);if(T===null)w0(c,h,x,vd,g),sC(c,x);else if(RV(T,c,h,g,x))x.stopPropagation();else if(sC(c,x),h&4&&-1<EV.indexOf(c)){for(;T!==null;){var D=pl(T);if(D!==null)switch(D.tag){case 3:if(D=D.stateNode,D.current.memoizedState.isDehydrated){var I=ko(D.pendingLanes);if(I!==0){var V=D;for(V.pendingLanes|=2,V.entangledLanes|=2;I;){var X=1<<31-ea(I);V.entanglements[1]|=X,I&=~X}gn(D),(ve&6)===0&&(qv=Jr()+500,Hc(0))}}break;case 31:case 13:V=Uo(D,2),V!==null&&Zr(V,D,2),Kv(),z0(D,2)}if(D=B0(x),D===null&&w0(c,h,x,vd,g),D===T)break;T=D}T!==null&&x.stopPropagation()}else w0(c,h,x,null,g)}}function B0(c){return c=Gy(c),V0(c)}var vd=null;function V0(c){if(vd=null,c=dl(c),c!==null){var h=i(c);if(h===null)c=null;else{var g=h.tag;if(g===13){if(c=o(h),c!==null)return c;c=null}else if(g===31){if(c=s(h),c!==null)return c;c=null}else if(g===3){if(h.stateNode.current.memoizedState.isDehydrated)return h.tag===3?h.stateNode.containerInfo:null;c=null}else h!==c&&(c=null)}}return vd=c,null}function oC(c){switch(c){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(pB()){case dw:return 2;case pw:return 8;case rv:case gB:return 32;case gw:return 268435456;default:return 32}default:return 32}}var G0=!1,Wi=null,qi=null,$i=null,Wc=new Map,qc=new Map,Ki=[],EV="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function sC(c,h){switch(c){case"focusin":case"focusout":Wi=null;break;case"dragenter":case"dragleave":qi=null;break;case"mouseover":case"mouseout":$i=null;break;case"pointerover":case"pointerout":Wc.delete(h.pointerId);break;case"gotpointercapture":case"lostpointercapture":qc.delete(h.pointerId)}}function $c(c,h,g,x,T,D){return c===null||c.nativeEvent!==D?(c={blockedOn:h,domEventName:g,eventSystemFlags:x,nativeEvent:D,targetContainers:[T]},h!==null&&(h=pl(h),h!==null&&nC(h)),c):(c.eventSystemFlags|=x,h=c.targetContainers,T!==null&&h.indexOf(T)===-1&&h.push(T),c)}function RV(c,h,g,x,T){switch(h){case"focusin":return Wi=$c(Wi,c,h,g,x,T),!0;case"dragenter":return qi=$c(qi,c,h,g,x,T),!0;case"mouseover":return $i=$c($i,c,h,g,x,T),!0;case"pointerover":var D=T.pointerId;return Wc.set(D,$c(Wc.get(D)||null,c,h,g,x,T)),!0;case"gotpointercapture":return D=T.pointerId,qc.set(D,$c(qc.get(D)||null,c,h,g,x,T)),!0}return!1}function lC(c){var h=dl(c.target);if(h!==null){var g=i(h);if(g!==null){if(h=g.tag,h===13){if(h=o(g),h!==null){c.blockedOn=h,bw(c.priority,function(){iC(g)});return}}else if(h===31){if(h=s(g),h!==null){c.blockedOn=h,bw(c.priority,function(){iC(g)});return}}else if(h===3&&g.stateNode.current.memoizedState.isDehydrated){c.blockedOn=g.tag===3?g.stateNode.containerInfo:null;return}}}c.blockedOn=null}function dd(c){if(c.blockedOn!==null)return!1;for(var h=c.targetContainers;0<h.length;){var g=B0(c.nativeEvent);if(g===null){g=c.nativeEvent;var x=new g.constructor(g.type,g);Vy=x,g.target.dispatchEvent(x),Vy=null}else return h=pl(g),h!==null&&nC(h),c.blockedOn=g,!1;h.shift()}return!0}function uC(c,h,g){dd(c)&&g.delete(h)}function IV(){G0=!1,Wi!==null&&dd(Wi)&&(Wi=null),qi!==null&&dd(qi)&&(qi=null),$i!==null&&dd($i)&&($i=null),Wc.forEach(uC),qc.forEach(uC)}function pd(c,h){c.blockedOn===h&&(c.blockedOn=null,G0||(G0=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,IV)))}var gd=null;function cC(c){gd!==c&&(gd=c,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){gd===c&&(gd=null);for(var h=0;h<c.length;h+=3){var g=c[h],x=c[h+1],T=c[h+2];if(typeof x!="function"){if(V0(x||g)===null)continue;break}var D=pl(g);D!==null&&(c.splice(h,3),h-=3,Bm(D,{pending:!0,data:T,method:g.method,action:x},x,T))}}))}function $l(c){function h(X){return pd(X,c)}Wi!==null&&pd(Wi,c),qi!==null&&pd(qi,c),$i!==null&&pd($i,c),Wc.forEach(h),qc.forEach(h);for(var g=0;g<Ki.length;g++){var x=Ki[g];x.blockedOn===c&&(x.blockedOn=null)}for(;0<Ki.length&&(g=Ki[0],g.blockedOn===null);)lC(g),g.blockedOn===null&&Ki.shift();if(g=(c.ownerDocument||c).$$reactFormReplay,g!=null)for(x=0;x<g.length;x+=3){var T=g[x],D=g[x+1],I=T[Hr]||null;if(typeof D=="function")I||cC(g);else if(I){var V=null;if(D&&D.hasAttribute("formAction")){if(T=D,I=D[Hr]||null)V=I.formAction;else if(V0(T)!==null)continue}else V=I.action;typeof V=="function"?g[x+1]=V:(g.splice(x,3),x-=3),cC(g)}}}function fC(){function c(D){D.canIntercept&&D.info==="react-transition"&&D.intercept({handler:function(){return new Promise(function(I){return T=I})},focusReset:"manual",scroll:"manual"})}function h(){T!==null&&(T(),T=null),x||setTimeout(g,20)}function g(){if(!x&&!navigation.transition){var D=navigation.currentEntry;D&&D.url!=null&&navigation.navigate(D.url,{state:D.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var x=!1,T=null;return navigation.addEventListener("navigate",c),navigation.addEventListener("navigatesuccess",h),navigation.addEventListener("navigateerror",h),setTimeout(g,100),function(){x=!0,navigation.removeEventListener("navigate",c),navigation.removeEventListener("navigatesuccess",h),navigation.removeEventListener("navigateerror",h),T!==null&&(T(),T=null)}}}function H0(c){this._internalRoot=c}yd.prototype.render=H0.prototype.render=function(c){var h=this._internalRoot;if(h===null)throw Error(a(409));var g=h.current,x=la();rC(g,x,c,h,null,null)},yd.prototype.unmount=H0.prototype.unmount=function(){var c=this._internalRoot;if(c!==null){this._internalRoot=null;var h=c.containerInfo;rC(c.current,2,null,c,null,null),Kv(),h[vl]=null}};function yd(c){this._internalRoot=c}yd.prototype.unstable_scheduleHydration=function(c){if(c){var h=Sw();c={blockedOn:null,target:c,priority:h};for(var g=0;g<Ki.length&&h!==0&&h<Ki[g].priority;g++);Ki.splice(g,0,c),g===0&&lC(c)}};var hC=e.version;if(hC!=="19.2.3")throw Error(a(527,hC,"19.2.3"));j.findDOMNode=function(c){var h=c._reactInternals;if(h===void 0)throw typeof c.render=="function"?Error(a(188)):(c=Object.keys(c).join(","),Error(a(268,c)));return c=u(h),c=c!==null?f(c):null,c=c===null?null:c.stateNode,c};var NV={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var md=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!md.isDisabled&&md.supportsFiber)try{ic=md.inject(NV),ta=md}catch{}}return Qc.createRoot=function(c,h){if(!n(c))throw Error(a(299));var g=!1,x="",T=_A,D=xA,I=SA;return h!=null&&(h.unstable_strictMode===!0&&(g=!0),h.identifierPrefix!==void 0&&(x=h.identifierPrefix),h.onUncaughtError!==void 0&&(T=h.onUncaughtError),h.onCaughtError!==void 0&&(D=h.onCaughtError),h.onRecoverableError!==void 0&&(I=h.onRecoverableError)),h=tC(c,1,!1,null,null,g,x,null,T,D,I,fC),c[vl]=h.current,b0(c),new H0(h)},Qc.hydrateRoot=function(c,h,g){if(!n(c))throw Error(a(299));var x=!1,T="",D=_A,I=xA,V=SA,X=null;return g!=null&&(g.unstable_strictMode===!0&&(x=!0),g.identifierPrefix!==void 0&&(T=g.identifierPrefix),g.onUncaughtError!==void 0&&(D=g.onUncaughtError),g.onCaughtError!==void 0&&(I=g.onCaughtError),g.onRecoverableError!==void 0&&(V=g.onRecoverableError),g.formState!==void 0&&(X=g.formState)),h=tC(c,1,!0,h,g??null,x,T,X,D,I,V,fC),h.context=eC(null),g=h.current,x=la(),x=Ry(x),T=zi(x),T.callback=null,ki(g,T,x),g=x,h.current.lanes=g,sc(h,g),gn(h),c[vl]=h.current,b0(c),new yd(h)},Qc.version="19.2.3",Qc}var bC;function FV(){if(bC)return j0.exports;bC=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}return r(),j0.exports=UV(),j0.exports}var jV=FV();const YV=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),XV=r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,a)=>a?a.toUpperCase():t.toLowerCase()),wC=r=>{const e=XV(r);return e.charAt(0).toUpperCase()+e.slice(1)},LN=(...r)=>r.filter((e,t,a)=>!!e&&e.trim()!==""&&a.indexOf(e)===t).join(" ").trim(),ZV=r=>{for(const e in r)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};var WV={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const qV=fe.forwardRef(({color:r="currentColor",size:e=24,strokeWidth:t=2,absoluteStrokeWidth:a,className:n="",children:i,iconNode:o,...s},l)=>fe.createElement("svg",{ref:l,...WV,width:e,height:e,stroke:r,strokeWidth:a?Number(t)*24/Number(e):t,className:LN("lucide",n),...!i&&!ZV(s)&&{"aria-hidden":"true"},...s},[...o.map(([u,f])=>fe.createElement(u,f)),...Array.isArray(i)?i:[i]]));const ze=(r,e)=>{const t=fe.forwardRef(({className:a,...n},i)=>fe.createElement(qV,{ref:i,iconNode:e,className:LN(`lucide-${YV(wC(r))}`,`lucide-${r}`,a),...n}));return t.displayName=wC(r),t};const $V=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],EN=ze("activity",$V);const KV=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],QV=ze("arrow-left",KV);const JV=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],RN=ze("bell",JV);const t6=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],e6=ze("calendar",t6);const r6=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Hg=ze("chart-column",r6);const a6=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],IN=ze("chevron-right",a6);const n6=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],jp=ze("clock",n6);const i6=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],o6=ze("dollar-sign",i6);const s6=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],l6=ze("flame",s6);const u6=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],c6=ze("funnel",u6);const f6=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],h6=ze("grid-3x3",f6);const v6=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],d6=ze("list",v6);const p6=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],g6=ze("menu",p6);const y6=[["path",{d:"M5 12h14",key:"1ays0h"}]],NN=ze("minus",y6);const m6=[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],_6=ze("octagon-alert",m6);const x6=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],S6=ze("search",x6);const b6=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],yx=ze("shield",b6);const w6=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],ub=ze("target",w6);const T6=[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]],Do=ze("trending-down",T6);const A6=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],Qs=ze("trending-up",A6);const D6=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],mx=ze("triangle-alert",D6);const C6=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],M6=ze("x",C6);const L6=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],PN=ze("zap",L6),TC=[{id:"overview",label:"市场概览"},{id:"events",label:"热点事件"},{id:"products",label:"品种分析"},{id:"risks",label:"风险提醒"}];function E6({activeTab:r,onTabChange:e}){const[t,a]=fe.useState(new Date),[n,i]=fe.useState(!1),[o,s]=fe.useState(!1);fe.useEffect(()=>{const u=setInterval(()=>{a(new Date)},1e3),f=()=>{i(window.scrollY>10)};return window.addEventListener("scroll",f),()=>{clearInterval(u),window.removeEventListener("scroll",f)}},[]);const l=u=>u.toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"});return z.jsxs("nav",{"code-path":"src/components/Navbar.tsx:50:5",className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${n?"bg-[#09090b]/95 backdrop-blur-md shadow-lg shadow-black/20":"bg-[#09090b]"}`,children:[z.jsx("div",{"code-path":"src/components/Navbar.tsx:57:7",className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:z.jsxs("div",{"code-path":"src/components/Navbar.tsx:58:9",className:"flex items-center justify-between h-16",children:[z.jsxs("div",{"code-path":"src/components/Navbar.tsx:60:11",className:"flex items-center gap-3",children:[z.jsx("div",{"code-path":"src/components/Navbar.tsx:61:13",className:"p-2 rounded-lg bg-[#7dd75a]/10",children:z.jsx(Hg,{"code-path":"src/components/Navbar.tsx:62:15",className:"w-5 h-5 text-[#7dd75a]"})}),z.jsxs("div",{"code-path":"src/components/Navbar.tsx:64:13",children:[z.jsx("h1",{"code-path":"src/components/Navbar.tsx:65:15",className:"text-lg font-bold text-white",children:"期货智析"}),z.jsx("p",{"code-path":"src/components/Navbar.tsx:66:15",className:"text-xs text-[#71717a] hidden sm:block",children:"智能期货期权分析系统"})]})]}),z.jsx("div",{"code-path":"src/components/Navbar.tsx:71:11",className:"hidden md:flex items-center gap-1",children:TC.map(u=>z.jsxs("button",{"code-path":"src/components/Navbar.tsx:73:15",onClick:()=>e(u.id),className:`px-4 py-2 rounded-lg text-sm font-medium transition-all duration-200 relative ${r===u.id?"text-[#7dd75a]":"text-[#a1a1aa] hover:text-white"}`,children:[u.label,r===u.id&&z.jsx("div",{"code-path":"src/components/Navbar.tsx:84:19",className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-4 h-0.5 bg-[#7dd75a] rounded-full"})]},u.id))}),z.jsxs("div",{"code-path":"src/components/Navbar.tsx:91:11",className:"flex items-center gap-4",children:[z.jsxs("div",{"code-path":"src/components/Navbar.tsx:93:13",className:"hidden sm:flex items-center gap-2 text-sm text-[#71717a]",children:[z.jsx(jp,{"code-path":"src/components/Navbar.tsx:94:15",className:"w-4 h-4"}),z.jsx("span",{"code-path":"src/components/Navbar.tsx:95:15",className:"font-mono",children:l(t)})]}),z.jsxs("button",{"code-path":"src/components/Navbar.tsx:99:13",className:"p-2 rounded-lg hover:bg-[#27272a] transition-colors relative",children:[z.jsx(RN,{"code-path":"src/components/Navbar.tsx:100:15",className:"w-4 h-4 text-[#a1a1aa]"}),z.jsx("span",{"code-path":"src/components/Navbar.tsx:101:15",className:"absolute top-1 right-1 w-2 h-2 bg-[#ef4444] rounded-full"})]}),z.jsx("button",{"code-path":"src/components/Navbar.tsx:105:13",onClick:()=>s(!o),className:"md:hidden p-2 rounded-lg hover:bg-[#27272a] transition-colors",children:o?z.jsx(M6,{"code-path":"src/components/Navbar.tsx:110:17",className:"w-5 h-5 text-[#a1a1aa]"}):z.jsx(g6,{"code-path":"src/components/Navbar.tsx:112:17",className:"w-5 h-5 text-[#a1a1aa]"})})]})]})}),o&&z.jsx("div",{"code-path":"src/components/Navbar.tsx:121:9",className:"md:hidden border-t border-[#27272a] bg-[#09090b]/95 backdrop-blur-md",children:z.jsxs("div",{"code-path":"src/components/Navbar.tsx:122:11",className:"px-4 py-3 space-y-1",children:[TC.map(u=>z.jsx("button",{"code-path":"src/components/Navbar.tsx:124:15",onClick:()=>{e(u.id),s(!1)},className:`w-full px-4 py-3 rounded-lg text-left text-sm font-medium transition-all duration-200 ${r===u.id?"bg-[#7dd75a]/10 text-[#7dd75a]":"text-[#a1a1aa] hover:bg-[#27272a] hover:text-white"}`,children:u.label},u.id)),z.jsx("div",{"code-path":"src/components/Navbar.tsx:139:13",className:"pt-3 border-t border-[#27272a] mt-3",children:z.jsxs("div",{"code-path":"src/components/Navbar.tsx:140:15",className:"flex items-center gap-2 text-sm text-[#71717a] px-4 py-2",children:[z.jsx(jp,{"code-path":"src/components/Navbar.tsx:141:17",className:"w-4 h-4"}),z.jsx("span",{"code-path":"src/components/Navbar.tsx:142:17",className:"font-mono",children:l(t)})]})})]})})]})}function R6({value:r,decimals:e=1,suffix:t=""}){const[a,n]=fe.useState(0),i=fe.useRef(null),o=1e3;return fe.useEffect(()=>{const s=l=>{i.current||(i.current=l);const u=Math.min((l-i.current)/o,1),f=1-Math.pow(1-u,3);n(r*f),u<1&&requestAnimationFrame(s)};return requestAnimationFrame(s),()=>{i.current=null}},[r]),z.jsxs("span",{"code-path":"src/components/MarketOverview.tsx:35:5",children:[a.toFixed(e),t]})}function I6({isUp:r}){const e=r?"0,30 10,25 20,28 30,20 40,22 50,15 60,18 70,10 80,12 90,5 100,8":"0,10 10,15 20,12 30,20 40,18 50,25 60,22 70,30 80,28 90,35 100,32";return z.jsxs("svg",{"code-path":"src/components/MarketOverview.tsx:48:5",viewBox:"0 0 100 40",className:"w-full h-10",children:[z.jsx("polyline",{"code-path":"src/components/MarketOverview.tsx:49:7",fill:"none",stroke:r?"#7dd75a":"#ef4444",strokeWidth:"2",points:e}),z.jsx("defs",{"code-path":"src/components/MarketOverview.tsx:55:7",children:z.jsxs("linearGradient",{"code-path":"src/components/MarketOverview.tsx:56:9",id:`gradient-${r}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[z.jsx("stop",{"code-path":"src/components/MarketOverview.tsx:57:11",offset:"0%",stopColor:r?"#7dd75a":"#ef4444",stopOpacity:"0.3"}),z.jsx("stop",{"code-path":"src/components/MarketOverview.tsx:58:11",offset:"100%",stopColor:r?"#7dd75a":"#ef4444",stopOpacity:"0"})]})}),z.jsx("polygon",{"code-path":"src/components/MarketOverview.tsx:61:7",fill:`url(#gradient-${r})`,points:`${e} 100,40 0,40`})]})}function N6({data:r}){const e=[{title:"市场热度指数",value:r.heatIndex,change:r.heatChange,suffix:"",decimals:1,icon:EN,isUp:r.heatChange>0,description:r.heatChange>0?"多头情绪高涨":"市场情绪偏冷"},{title:"涨跌分布",value:r.upCount,change:r.downCount,suffix:"",decimals:0,icon:Hg,isUp:!0,description:`涨: ${r.upCount} | 跌: ${r.downCount}`,isDistribution:!0},{title:"资金流向",value:r.capitalFlow,change:0,suffix:"亿",decimals:1,icon:o6,isUp:r.capitalFlow>0,description:r.capitalFlow>0?"资金净流入":"资金净流出"},{title:"波动率指数",value:r.volatilityIndex,change:r.volatilityChange,suffix:"",decimals:1,icon:PN,isUp:r.volatilityChange>0,description:r.volatilityChange>0?"波动扩大":"波动收窄"}];return z.jsx("div",{"code-path":"src/components/MarketOverview.tsx:115:5",className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:e.map((t,a)=>z.jsxs("div",{"code-path":"src/components/MarketOverview.tsx:117:9",className:"bg-[#0d0d10] border border-[#27272a] rounded-xl p-5 hover:border-[#7dd75a]/50 transition-all duration-300 hover:shadow-lg hover:shadow-[#7dd75a]/5 group",style:{animationDelay:`${a*100}ms`},children:[z.jsxs("div",{"code-path":"src/components/MarketOverview.tsx:124:11",className:"flex items-start justify-between mb-3",children:[z.jsxs("div",{"code-path":"src/components/MarketOverview.tsx:125:13",className:"flex items-center gap-2",children:[z.jsx("div",{"code-path":"src/components/MarketOverview.tsx:126:15",className:`p-2 rounded-lg ${t.isUp?"bg-[#7dd75a]/10":"bg-[#ef4444]/10"}`,children:z.jsx(t.icon,{"code-path":"src/components/MarketOverview.tsx:127:17",className:`w-4 h-4 ${t.isUp?"text-[#7dd75a]":"text-[#ef4444]"}`})}),z.jsx("span",{"code-path":"src/components/MarketOverview.tsx:129:15",className:"text-[#a1a1aa] text-sm",children:t.title})]}),!t.isDistribution&&t.change!==0&&z.jsxs("div",{"code-path":"src/components/MarketOverview.tsx:132:15",className:`flex items-center gap-1 text-xs ${t.change>0?"text-[#7dd75a]":"text-[#ef4444]"}`,children:[t.change>0?z.jsx(Qs,{"code-path":"src/components/MarketOverview.tsx:133:36",className:"w-3 h-3"}):z.jsx(Do,{"code-path":"src/components/MarketOverview.tsx:133:73",className:"w-3 h-3"}),z.jsxs("span",{"code-path":"src/components/MarketOverview.tsx:134:17",children:[t.change>0?"+":"",t.change,"%"]})]})]}),z.jsx("div",{"code-path":"src/components/MarketOverview.tsx:139:11",className:"mb-3",children:z.jsx("span",{"code-path":"src/components/MarketOverview.tsx:140:13",className:`text-2xl font-bold font-mono ${t.isUp?"text-white":"text-[#ef4444]"}`,children:t.isDistribution?z.jsxs("span",{"code-path":"src/components/MarketOverview.tsx:142:17",className:"flex items-baseline gap-2",children:[z.jsx("span",{"code-path":"src/components/MarketOverview.tsx:143:19",className:"text-[#7dd75a]",children:r.upCount}),z.jsx("span",{"code-path":"src/components/MarketOverview.tsx:144:19",className:"text-[#a1a1aa] text-lg",children:"/"}),z.jsx("span",{"code-path":"src/components/MarketOverview.tsx:145:19",className:"text-[#ef4444]",children:r.downCount})]}):z.jsx(z.Fragment,{children:z.jsx(R6,{"code-path":"src/components/MarketOverview.tsx:149:19",value:t.value,decimals:t.decimals,suffix:t.suffix})})})}),z.jsx("div",{"code-path":"src/components/MarketOverview.tsx:155:11",className:"text-xs text-[#a1a1aa] mb-3",children:t.description}),z.jsx(I6,{"code-path":"src/components/MarketOverview.tsx:157:11",isUp:t.isUp})]},t.title))})}function AC({level:r}){return z.jsx("div",{"code-path":"src/components/HotEvents.tsx:12:5",className:"flex gap-0.5",children:Array.from({length:5}).map((e,t)=>z.jsx("div",{"code-path":"src/components/HotEvents.tsx:14:9",className:`w-4 h-4 rounded-sm ${t<r?"bg-[#7dd75a]":"bg-[#3f3f46]"}`},t))})}function P6({impact:r}){const e={bullish:{icon:Qs,text:"利多",color:"text-[#7dd75a]",bg:"bg-[#7dd75a]/10"},bearish:{icon:Do,text:"利空",color:"text-[#ef4444]",bg:"bg-[#ef4444]/10"},neutral:{icon:NN,text:"中性",color:"text-[#a1a1aa]",bg:"bg-[#a1a1aa]/10"}},{icon:t,text:a,color:n,bg:i}=e[r];return z.jsxs("div",{"code-path":"src/components/HotEvents.tsx:34:5",className:`flex items-center gap-1 px-2 py-1 rounded-md ${i}`,children:[z.jsx(t,{"code-path":"src/components/HotEvents.tsx:35:7",className:`w-3 h-3 ${n}`}),z.jsx("span",{"code-path":"src/components/HotEvents.tsx:36:7",className:`text-xs font-medium ${n}`,children:a})]})}function DC({events:r}){const[e,t]=fe.useState(r[0]);return z.jsxs("div",{"code-path":"src/components/HotEvents.tsx:45:5",className:"grid grid-cols-1 lg:grid-cols-5 gap-4",children:[z.jsxs("div",{"code-path":"src/components/HotEvents.tsx:47:7",className:"lg:col-span-3 space-y-3",children:[z.jsxs("div",{"code-path":"src/components/HotEvents.tsx:48:9",className:"flex items-center gap-2 mb-4",children:[z.jsx(l6,{"code-path":"src/components/HotEvents.tsx:49:11",className:"w-5 h-5 text-[#7dd75a]"}),z.jsx("h3",{"code-path":"src/components/HotEvents.tsx:50:11",className:"text-lg font-semibold text-white",children:"热点事件"}),z.jsxs("span",{"code-path":"src/components/HotEvents.tsx:51:11",className:"text-xs text-[#a1a1aa] ml-auto",children:["共 ",r.length," 条"]})]}),r.map(a=>z.jsx("div",{"code-path":"src/components/HotEvents.tsx:55:11",onClick:()=>t(a),className:`p-4 rounded-xl border cursor-pointer transition-all duration-200 ${e?.id===a.id?"border-[#7dd75a] bg-[#7dd75a]/5":"border-[#27272a] bg-[#0d0d10] hover:border-[#3f3f46]"}`,children:z.jsxs("div",{"code-path":"src/components/HotEvents.tsx:64:13",className:"flex items-start justify-between gap-4",children:[z.jsxs("div",{"code-path":"src/components/HotEvents.tsx:65:15",className:"flex-1",children:[z.jsxs("div",{"code-path":"src/components/HotEvents.tsx:66:17",className:"flex items-center gap-2 mb-2",children:[z.jsx("h4",{"code-path":"src/components/HotEvents.tsx:67:19",className:"font-medium text-white",children:a.title}),z.jsx(P6,{"code-path":"src/components/HotEvents.tsx:68:19",impact:a.impact})]}),z.jsx("p",{"code-path":"src/components/HotEvents.tsx:71:17",className:"text-sm text-[#a1a1aa] mb-3 line-clamp-2",children:a.summary}),z.jsxs("div",{"code-path":"src/components/HotEvents.tsx:73:17",className:"flex items-center gap-4 text-xs",children:[z.jsxs("div",{"code-path":"src/components/HotEvents.tsx:74:19",className:"flex items-center gap-1 text-[#71717a]",children:[z.jsx(e6,{"code-path":"src/components/HotEvents.tsx:75:21",className:"w-3 h-3"}),z.jsx("span",{"code-path":"src/components/HotEvents.tsx:76:21",children:a.time})]}),z.jsxs("div",{"code-path":"src/components/HotEvents.tsx:79:19",className:"flex items-center gap-2",children:[z.jsx(ub,{"code-path":"src/components/HotEvents.tsx:80:21",className:"w-3 h-3 text-[#71717a]"}),z.jsx("span",{"code-path":"src/components/HotEvents.tsx:81:21",className:"text-[#71717a]",children:"影响:"}),z.jsxs("div",{"code-path":"src/components/HotEvents.tsx:82:21",className:"flex gap-1",children:[a.affectedProducts.slice(0,3).map(n=>z.jsx("span",{"code-path":"src/components/HotEvents.tsx:84:25",className:"px-1.5 py-0.5 rounded bg-[#27272a] text-[#e6e6e6]",children:n},n)),a.affectedProducts.length>3&&z.jsxs("span",{"code-path":"src/components/HotEvents.tsx:92:25",className:"text-[#71717a]",children:["+",a.affectedProducts.length-3]})]})]})]})]}),z.jsxs("div",{"code-path":"src/components/HotEvents.tsx:99:15",className:"flex flex-col items-end gap-2",children:[z.jsx(AC,{"code-path":"src/components/HotEvents.tsx:100:17",level:a.impactLevel}),z.jsx(IN,{"code-path":"src/components/HotEvents.tsx:101:17",className:`w-4 h-4 transition-transform ${e?.id===a.id?"text-[#7dd75a] rotate-90":"text-[#71717a]"}`})]})]})},a.id))]}),z.jsx("div",{"code-path":"src/components/HotEvents.tsx:111:7",className:"lg:col-span-2",children:z.jsx("div",{"code-path":"src/components/HotEvents.tsx:112:9",className:"sticky top-4 p-5 rounded-xl border border-[#27272a] bg-[#0d0d10]",children:e?z.jsxs(z.Fragment,{children:[z.jsxs("div",{"code-path":"src/components/HotEvents.tsx:115:15",className:"flex items-center gap-2 mb-4",children:[z.jsx("div",{"code-path":"src/components/HotEvents.tsx:116:17",className:"p-2 rounded-lg bg-[#7dd75a]/10",children:z.jsx(mx,{"code-path":"src/components/HotEvents.tsx:117:19",className:"w-4 h-4 text-[#7dd75a]"})}),z.jsx("h3",{"code-path":"src/components/HotEvents.tsx:119:17",className:"font-semibold text-white",children:"智能分析"})]}),z.jsxs("div",{"code-path":"src/components/HotEvents.tsx:122:15",className:"space-y-4",children:[z.jsxs("div",{"code-path":"src/components/HotEvents.tsx:123:17",children:[z.jsx("h4",{"code-path":"src/components/HotEvents.tsx:124:19",className:"text-sm text-[#a1a1aa] mb-2",children:"事件解读"}),z.jsx("p",{"code-path":"src/components/HotEvents.tsx:125:19",className:"text-sm text-white leading-relaxed",children:e.analysis})]}),z.jsxs("div",{"code-path":"src/components/HotEvents.tsx:128:17",children:[z.jsx("h4",{"code-path":"src/components/HotEvents.tsx:129:19",className:"text-sm text-[#a1a1aa] mb-2",children:"影响品种"}),z.jsx("div",{"code-path":"src/components/HotEvents.tsx:130:19",className:"flex flex-wrap gap-2",children:e.affectedProducts.map(a=>z.jsx("span",{"code-path":"src/components/HotEvents.tsx:132:23",className:`px-3 py-1.5 rounded-lg text-sm font-medium ${e.impact==="bullish"?"bg-[#7dd75a]/10 text-[#7dd75a]":e.impact==="bearish"?"bg-[#ef4444]/10 text-[#ef4444]":"bg-[#a1a1aa]/10 text-[#a1a1aa]"}`,children:a},a))})]}),z.jsxs("div",{"code-path":"src/components/HotEvents.tsx:148:17",children:[z.jsx("h4",{"code-path":"src/components/HotEvents.tsx:149:19",className:"text-sm text-[#a1a1aa] mb-2",children:"风险提示"}),z.jsx("ul",{"code-path":"src/components/HotEvents.tsx:150:19",className:"space-y-2",children:e.risks.map((a,n)=>z.jsxs("li",{"code-path":"src/components/HotEvents.tsx:152:23",className:"flex items-start gap-2 text-sm text-[#e6e6e6]",children:[z.jsx("span",{"code-path":"src/components/HotEvents.tsx:153:25",className:"w-1.5 h-1.5 rounded-full bg-[#f59e0b] mt-1.5 flex-shrink-0"}),z.jsx("span",{"code-path":"src/components/HotEvents.tsx:154:25",children:a})]},n))})]}),z.jsx("div",{"code-path":"src/components/HotEvents.tsx:160:17",className:"pt-4 border-t border-[#27272a]",children:z.jsxs("div",{"code-path":"src/components/HotEvents.tsx:161:19",className:"flex items-center justify-between",children:[z.jsx("span",{"code-path":"src/components/HotEvents.tsx:162:21",className:"text-sm text-[#a1a1aa]",children:"影响强度"}),z.jsx(AC,{"code-path":"src/components/HotEvents.tsx:163:21",level:e.impactLevel})]})})]})]}):z.jsxs("div",{"code-path":"src/components/HotEvents.tsx:169:13",className:"text-center py-8 text-[#71717a]",children:[z.jsx(mx,{"code-path":"src/components/HotEvents.tsx:170:15",className:"w-8 h-8 mx-auto mb-2 opacity-50"}),z.jsx("p",{"code-path":"src/components/HotEvents.tsx:171:15",children:"选择事件查看分析"})]})})})]})}function O6({direction:r,label:e}){const t={up:{icon:Qs,color:"text-[#7dd75a]",bg:"bg-[#7dd75a]/10",border:"border-[#7dd75a]/30"},down:{icon:Do,color:"text-[#ef4444]",bg:"bg-[#ef4444]/10",border:"border-[#ef4444]/30"},sideways:{icon:NN,color:"text-[#a1a1aa]",bg:"bg-[#a1a1aa]/10",border:"border-[#a1a1aa]/30"}},{icon:a,color:n,bg:i,border:o}=t[r];return z.jsxs("div",{"code-path":"src/components/ProductCard.tsx:20:5",className:`flex items-center gap-1 px-2 py-1 rounded-md ${i} ${o} border`,children:[z.jsx(a,{"code-path":"src/components/ProductCard.tsx:21:7",className:`w-3 h-3 ${n}`}),z.jsx("span",{"code-path":"src/components/ProductCard.tsx:22:7",className:`text-xs font-medium ${n}`,children:e})]})}function z6({recommendation:r}){const e={long:{text:"逢低做多",color:"text-[#7dd75a]",bg:"bg-[#7dd75a]/10"},short:{text:"逢高做空",color:"text-[#ef4444]",bg:"bg-[#ef4444]/10"},wait:{text:"观望等待",color:"text-[#a1a1aa]",bg:"bg-[#a1a1aa]/10"}},{text:t,color:a,bg:n}=e[r];return z.jsx("span",{"code-path":"src/components/ProductCard.tsx:38:5",className:`px-2 py-1 rounded-md text-xs font-medium ${a} ${n}`,children:t})}function k6({rate:r}){const e=t=>t>=70?"bg-[#7dd75a]":t>=50?"bg-[#f59e0b]":"bg-[#ef4444]";return z.jsxs("div",{"code-path":"src/components/ProductCard.tsx:53:5",className:"flex items-center gap-2",children:[z.jsx("div",{"code-path":"src/components/ProductCard.tsx:54:7",className:"flex-1 h-2 bg-[#27272a] rounded-full overflow-hidden",children:z.jsx("div",{"code-path":"src/components/ProductCard.tsx:55:9",className:`h-full rounded-full transition-all duration-500 ${e(r)}`,style:{width:`${r}%`}})}),z.jsxs("span",{"code-path":"src/components/ProductCard.tsx:60:7",className:`text-xs font-medium ${r>=70?"text-[#7dd75a]":r>=50?"text-[#f59e0b]":"text-[#ef4444]"}`,children:[r,"%"]})]})}function B6({product:r,onClick:e}){const t=r.change>=0,a={m5:"5分",m15:"15分",m30:"30分",m60:"60分"};return z.jsxs("div",{"code-path":"src/components/ProductCard.tsx:78:5",onClick:e,className:"p-4 rounded-xl border border-[#27272a] bg-[#0d0d10] hover:border-[#7dd75a]/50 transition-all duration-300 cursor-pointer group hover:shadow-lg hover:shadow-[#7dd75a]/5",children:[z.jsxs("div",{"code-path":"src/components/ProductCard.tsx:83:7",className:"flex items-start justify-between mb-3",children:[z.jsxs("div",{"code-path":"src/components/ProductCard.tsx:84:9",children:[z.jsxs("div",{"code-path":"src/components/ProductCard.tsx:85:11",className:"flex items-center gap-2 mb-1",children:[z.jsx("h4",{"code-path":"src/components/ProductCard.tsx:86:13",className:"font-semibold text-white",children:r.name}),z.jsxs("span",{"code-path":"src/components/ProductCard.tsx:87:13",className:"text-xs text-[#71717a]",children:["(",r.code,")"]})]}),z.jsx(z6,{"code-path":"src/components/ProductCard.tsx:89:11",recommendation:r.recommendation})]}),z.jsxs("div",{"code-path":"src/components/ProductCard.tsx:91:9",className:"text-right",children:[z.jsxs("div",{"code-path":"src/components/ProductCard.tsx:92:11",className:`text-xl font-bold font-mono ${t?"text-[#7dd75a]":"text-[#ef4444]"}`,children:["¥",r.price.toLocaleString()]}),z.jsxs("div",{"code-path":"src/components/ProductCard.tsx:95:11",className:`flex items-center justify-end gap-1 text-sm ${t?"text-[#7dd75a]":"text-[#ef4444]"}`,children:[t?z.jsx(Qs,{"code-path":"src/components/ProductCard.tsx:96:21",className:"w-3 h-3"}):z.jsx(Do,{"code-path":"src/components/ProductCard.tsx:96:58",className:"w-3 h-3"}),z.jsxs("span",{"code-path":"src/components/ProductCard.tsx:97:13",children:[t?"+":"",r.change.toFixed(2)," (",t?"+":"",r.changePercent,"%)"]})]})]})]}),z.jsxs("div",{"code-path":"src/components/ProductCard.tsx:103:7",className:"mb-3",children:[z.jsxs("div",{"code-path":"src/components/ProductCard.tsx:104:9",className:"flex items-center gap-1 text-xs text-[#a1a1aa] mb-2",children:[z.jsx(jp,{"code-path":"src/components/ProductCard.tsx:105:11",className:"w-3 h-3"}),z.jsx("span",{"code-path":"src/components/ProductCard.tsx:106:11",children:"多周期趋势"})]}),z.jsx("div",{"code-path":"src/components/ProductCard.tsx:108:9",className:"flex gap-2",children:Object.entries(r.cycles).map(([n,i])=>z.jsx(O6,{"code-path":"src/components/ProductCard.tsx:110:13",direction:i,label:a[n]},n))})]}),z.jsxs("div",{"code-path":"src/components/ProductCard.tsx:116:7",className:"space-y-2 mb-3",children:[z.jsx("div",{"code-path":"src/components/ProductCard.tsx:117:9",className:"flex items-center justify-between text-xs",children:z.jsxs("span",{"code-path":"src/components/ProductCard.tsx:118:11",className:"text-[#a1a1aa] flex items-center gap-1",children:[z.jsx(Hg,{"code-path":"src/components/ProductCard.tsx:119:13",className:"w-3 h-3"}),"交易成功率"]})}),z.jsx(k6,{"code-path":"src/components/ProductCard.tsx:123:9",rate:r.successRate}),z.jsxs("div",{"code-path":"src/components/ProductCard.tsx:125:9",className:"flex items-center justify-between text-xs",children:[z.jsx("span",{"code-path":"src/components/ProductCard.tsx:126:11",className:"text-[#a1a1aa]",children:"趋势评分"}),z.jsxs("span",{"code-path":"src/components/ProductCard.tsx:127:11",className:`font-medium ${r.trendScore>=80?"text-[#7dd75a]":r.trendScore>=60?"text-[#f59e0b]":"text-[#ef4444]"}`,children:[r.trendScore,"/100"]})]}),z.jsx("div",{"code-path":"src/components/ProductCard.tsx:131:9",className:"h-1.5 bg-[#27272a] rounded-full overflow-hidden",children:z.jsx("div",{"code-path":"src/components/ProductCard.tsx:132:11",className:`h-full rounded-full transition-all duration-500 ${r.trendScore>=80?"bg-[#7dd75a]":r.trendScore>=60?"bg-[#f59e0b]":"bg-[#ef4444]"}`,style:{width:`${r.trendScore}%`}})})]}),z.jsxs("div",{"code-path":"src/components/ProductCard.tsx:142:7",className:"pt-3 border-t border-[#27272a]",children:[z.jsxs("div",{"code-path":"src/components/ProductCard.tsx:143:9",className:"flex items-center gap-1 text-xs text-[#a1a1aa] mb-2",children:[z.jsx(ub,{"code-path":"src/components/ProductCard.tsx:144:11",className:"w-3 h-3"}),z.jsx("span",{"code-path":"src/components/ProductCard.tsx:145:11",children:"关键点位"})]}),z.jsxs("div",{"code-path":"src/components/ProductCard.tsx:147:9",className:"flex justify-between text-xs",children:[z.jsxs("div",{"code-path":"src/components/ProductCard.tsx:148:11",children:[z.jsx("span",{"code-path":"src/components/ProductCard.tsx:149:13",className:"text-[#71717a]",children:"压力: "}),z.jsx("span",{"code-path":"src/components/ProductCard.tsx:150:13",className:"text-[#ef4444] font-mono",children:r.keyLevels.resistance[0]?.toLocaleString()||"-"})]}),z.jsxs("div",{"code-path":"src/components/ProductCard.tsx:152:11",children:[z.jsx("span",{"code-path":"src/components/ProductCard.tsx:153:13",className:"text-[#71717a]",children:"支撑: "}),z.jsx("span",{"code-path":"src/components/ProductCard.tsx:154:13",className:"text-[#7dd75a] font-mono",children:r.keyLevels.support[0]?.toLocaleString()||"-"})]})]})]}),z.jsx("div",{"code-path":"src/components/ProductCard.tsx:160:7",className:"flex items-center justify-end mt-3 pt-2 border-t border-[#27272a]/50",children:z.jsxs("span",{"code-path":"src/components/ProductCard.tsx:161:9",className:"text-xs text-[#71717a] group-hover:text-[#7dd75a] transition-colors flex items-center gap-1",children:["查看详情",z.jsx(IN,{"code-path":"src/components/ProductCard.tsx:163:11",className:"w-3 h-3 group-hover:translate-x-1 transition-transform"})]})})]})}var _x=function(r,e){return _x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},_x(r,e)};function $(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");_x(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var V6=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),G6=(function(){function r(){this.browser=new V6,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 r})(),Ft=new G6;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ft.wxa=!0,Ft.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ft.worker=!0:typeof navigator>"u"?(Ft.node=!0,Ft.svgSupported=!0):H6(navigator.userAgent,Ft);function H6(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var cb=12,ON="sans-serif",Co=cb+"px "+ON,U6=20,F6=100,j6="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Y6(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),n=(r.charCodeAt(t)-U6)/F6;e[a]=n}return e}var X6=Y6(j6),Mo={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,a){if(!r){var n=Mo.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||Co),r.measureText(t);t=t||"",a=a||Co;var i=/(\d+)px/.exec(a),o=i&&+i[1]||cb,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=X6[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var a=new Image;return a.onload=e,a.onerror=t,a.src=r,a}},zN=Nn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),kN=Nn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),Uu=Object.prototype.toString,Ug=Array.prototype,Z6=Ug.forEach,W6=Ug.filter,fb=Ug.slice,q6=Ug.map,CC=(function(){}).constructor,_d=CC?CC.prototype:null,hb="__proto__",$6=2311;function BN(){return $6++}function vb(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function Dt(r){if(r==null||typeof r!="object")return r;var e=r,t=Uu.call(r);if(t==="[object Array]"){if(!Hf(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=Dt(r[a])}}else if(kN[t]){if(!Hf(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var a=0,n=r.length;a<n;a++)e[a]=r[a]}}}else if(!zN[t]&&!Hf(r)&&!ah(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==hb&&(e[o]=Dt(r[o]))}return e}function zt(r,e,t){if(!Tt(e)||!Tt(r))return t?Dt(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==hb){var n=r[a],i=e[a];Tt(i)&&Tt(n)&&!it(i)&&!it(n)&&!ah(i)&&!ah(n)&&!MC(i)&&!MC(n)&&!Hf(i)&&!Hf(n)?zt(n,i,t):(t||!(a in r))&&(r[a]=Dt(e[a]))}return r}function db(r,e){for(var t=r[0],a=1,n=r.length;a<n;a++)t=zt(t,r[a],e);return t}function et(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==hb&&(r[t]=e[t]);return r}function wt(r,e,t){for(var a=Yt(e),n=0;n<a.length;n++){var i=a[n];(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}return r}function Vt(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,a=r.length;t<a;t++)if(r[t]===e)return t}return-1}function K6(r,e){var t=r.prototype;function a(){}a.prototype=e.prototype,r.prototype=new a;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function Xe(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else wt(r,e,t)}function Dr(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function P(r,e,t){if(r&&e)if(r.forEach&&r.forEach===Z6)r.forEach(e,t);else if(r.length===+r.length)for(var a=0,n=r.length;a<n;a++)e.call(t,r[a],a,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function st(r,e,t){if(!r)return[];if(!e)return pb(r);if(r.map&&r.map===q6)return r.map(e,t);for(var a=[],n=0,i=r.length;n<i;n++)a.push(e.call(t,r[n],n,r));return a}function Nn(r,e,t,a){if(r&&e){for(var n=0,i=r.length;n<i;n++)t=e.call(a,t,r[n],n,r);return t}}function le(r,e,t){if(!r)return[];if(!e)return pb(r);if(r.filter&&r.filter===W6)return r.filter(e,t);for(var a=[],n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r)&&a.push(r[n]);return a}function Q6(r,e,t){if(r&&e){for(var a=0,n=r.length;a<n;a++)if(e.call(t,r[a],a,r))return r[a]}}function Yt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function J6(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return function(){return r.apply(e,t.concat(fb.call(arguments)))}}var dt=_d&&bt(_d.bind)?_d.call.bind(_d.bind):J6;function It(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(fb.call(arguments)))}}function it(r){return Array.isArray?Array.isArray(r):Uu.call(r)==="[object Array]"}function bt(r){return typeof r=="function"}function vt(r){return typeof r=="string"}function xx(r){return Uu.call(r)==="[object String]"}function Qt(r){return typeof r=="number"}function Tt(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function MC(r){return!!zN[Uu.call(r)]}function da(r){return!!kN[Uu.call(r)]}function ah(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Fg(r){return r.colorStops!=null}function tG(r){return r.image!=null}function eG(r){return Uu.call(r)==="[object RegExp]"}function nh(r){return r!==r}function fr(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,a=r.length;t<a;t++)if(r[t]!=null)return r[t]}function Ot(r,e){return r??e}function Rn(r,e,t){return r??e??t}function pb(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return fb.apply(r,e)}function gb(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function zr(r,e){if(!r)throw new Error(e)}function rn(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var VN="__ec_primitive__";function Yp(r){r[VN]=!0}function Hf(r){return r[VN]}var rG=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return Yt(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var a in t)t.hasOwnProperty(a)&&e(t[a],a)},r})(),GN=typeof Map=="function";function aG(){return GN?new Map:new rG}var nG=(function(){function r(e){var t=it(e);this.data=aG();var a=this;e instanceof r?e.each(n):e&&P(e,n);function n(i,o){t?a.set(i,o):a.set(o,i)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(a,n){e.call(t,a,n)})},r.prototype.keys=function(){var e=this.data.keys();return GN?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function xt(r){return new nG(r)}function Xp(r,e){for(var t=new r.constructor(r.length+e.length),a=0;a<r.length;a++)t[a]=r[a];for(var n=r.length,a=0;a<e.length;a++)t[a+n]=e[a];return t}function jg(r,e){var t;if(Object.create)t=Object.create(r);else{var a=function(){};a.prototype=r,t=new a}return e&&et(t,e),t}function HN(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function pt(r,e){return r.hasOwnProperty(e)}function Ge(){}var wp=180/Math.PI;var Sx=function(r,e){return Sx=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},Sx(r,e)};function De(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Sx(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function ol(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Rr(r,e){return r[0]=e[0],r[1]=e[1],r}function hi(r){return[r[0],r[1]]}function iG(r,e,t){return r[0]=e,r[1]=t,r}function LC(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function bx(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function Os(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Tx(r){return Math.sqrt(oG(r))}function oG(r){return r[0]*r[0]+r[1]*r[1]}function Tp(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function Fu(r,e){var t=Tx(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Ax(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var ho=Ax;function sG(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var Fs=sG;function Ap(r,e,t,a){return r[0]=e[0]+a*(t[0]-e[0]),r[1]=e[1]+a*(t[1]-e[1]),r}function _r(r,e,t){var a=e[0],n=e[1];return r[0]=t[0]*a+t[2]*n+t[4],r[1]=t[1]*a+t[3]*n+t[5],r}function vo(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function po(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var Kl=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),lG=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Kl(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var a=e.offsetX,n=e.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,t.drift(i,o,e),this.handler.dispatchToElement(new Kl(t,e),"drag",e.event);var s=this.handler.findHover(a,n,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Kl(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Kl(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Kl(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Kl(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),ja=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(n=a,a=t,t=null),!a||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===a)return this;var l={h:a,query:t,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[e].length-1,f=i[e][u];return f&&f.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var a=this._$handlers;if(!a)return this;if(!e)return this._$handlers={},this;if(t){if(a[e]){for(var n=[],i=0,o=a[e].length;i<o;i++)a[e][i].h!==t&&n.push(a[e][i]);a[e]=n}a[e]&&a[e].length===0&&delete a[e]}else delete a[e];return this},r.prototype.trigger=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=t[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r})(),uG=Math.log(2);function Dx(r,e,t,a,n,i){var o=a+"-"+n,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/uG);return r[t][l]}for(var u=a|1<<t,f=t+1;a&1<<f;)f++;for(var v=0,d=0,p=0;d<s;d++){var y=1<<d;y&n||(v+=(p%2?-1:1)*r[t][d]*Dx(r,e-1,f,u,n|y,i),p++)}return i[o]=v,v}function EC(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],a={},n=Dx(t,8,0,0,0,a);if(n!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*Dx(t,7,o===0?1:0,1<<o,1<<s,a)/n*e[o];return function(l,u,f){var v=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/v,l[1]=(u*i[3]+f*i[4]+i[5])/v}}}var RC="___zrEVENTSAVED",W0=[];function cG(r,e,t,a,n){return Cx(W0,e,a,n,!0)&&Cx(r,t,W0[0],W0[1])}function Cx(r,e,t,a,n){if(e.getBoundingClientRect&&Ft.domSupported&&!UN(e)){var i=e[RC]||(e[RC]={}),o=fG(e,i),s=hG(o,i,n);if(s)return s(r,t,a),!0}return!1}function fG(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var a=["left","right"],n=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function hG(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),v=2*u,d=f.left,p=f.top;o.push(d,p),l=l&&i&&d===i[v]&&p===i[v+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?EC(s,o):EC(o,s))}function UN(r){return r.nodeName.toUpperCase()==="CANVAS"}var vG=/([&<>"'])/g,dG={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ca(r){return r==null?"":(r+"").replace(vG,function(e,t){return dG[t]})}var pG=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,q0=[],gG=Ft.browser.firefox&&+Ft.browser.version.split(".")[0]<39;function Mx(r,e,t,a){return t=t||{},a?IC(r,e,t):gG&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):IC(r,e,t),t}function IC(r,e,t){if(Ft.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(UN(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(Cx(q0,r,a,n)){t.zrX=q0[0],t.zrY=q0[1];return}}t.zrX=t.zrY=0}function yb(r){return r||window.event}function Ia(r,e,t){if(e=yb(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Mx(r,o,e,t)}else{Mx(r,e,e,t);var i=yG(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&pG.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function yG(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function Lx(r,e,t,a){r.addEventListener(e,t,a)}function mG(r,e,t,a){r.removeEventListener(e,t,a)}var yi=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function NC(r){return r.which===2||r.which===3}var _G=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=Mx(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in $0)if($0.hasOwnProperty(t)){var a=$0[t](this._track,e);if(a)return a}},r})();function PC(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function xG(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var $0={pinch:function(r,e){var t=r.length;if(t){var a=(r[t-1]||{}).points,n=(r[t-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=PC(a)/PC(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=xG(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Ua(){return[1,0,0,1,0,0]}function Yg(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function mb(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function vi(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Pn(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function sl(r,e,t){var a=e[0],n=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),f=Math.cos(t);return r[0]=a*f+o*u,r[1]=-a*u+o*f,r[2]=n*f+s*u,r[3]=-n*u+f*s,r[4]=f*i+u*l,r[5]=f*l-u*i,r}function _b(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function ju(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function SG(r){var e=Ua();return mb(e,r),e}var Pt=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r})(),xd=Math.min,Sd=Math.max,es=new Pt,rs=new Pt,as=new Pt,ns=new Pt,Jc=new Pt,tf=new Pt,kt=(function(){function r(e,t,a,n){a<0&&(e=e+a,a=-a),n<0&&(t=t+n,n=-n),this.x=e,this.y=t,this.width=a,this.height=n}return r.prototype.union=function(e){var t=xd(e.x,this.x),a=xd(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Sd(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Sd(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=Ua();return Pn(i,i,[-t.x,-t.y]),_b(i,i,[a,n]),Pn(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=e.x,u=e.x+e.width,f=e.y,v=e.y+e.height,d=!(i<l||u<n||s<f||v<o);if(t){var p=1/0,y=0,m=Math.abs(i-l),_=Math.abs(u-n),S=Math.abs(s-f),b=Math.abs(v-o),w=Math.min(m,_),A=Math.min(S,b);i<l||u<n?w>y&&(y=w,m<_?Pt.set(tf,-m,0):Pt.set(tf,_,0)):w<p&&(p=w,m<_?Pt.set(Jc,m,0):Pt.set(Jc,-_,0)),s<f||v<o?A>y&&(y=A,S<b?Pt.set(tf,0,-S):Pt.set(tf,0,b)):w<p&&(p=w,S<b?Pt.set(Jc,0,S):Pt.set(Jc,0,-b))}return t&&Pt.copy(t,d?Jc:tf),d},r.prototype.contain=function(e,t){var a=this;return e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}es.x=as.x=t.x,es.y=ns.y=t.y,rs.x=ns.x=t.x+t.width,rs.y=as.y=t.y+t.height,es.transform(a),ns.transform(a),rs.transform(a),as.transform(a),e.x=xd(es.x,rs.x,as.x,ns.x),e.y=xd(es.y,rs.y,as.y,ns.y);var l=Sd(es.x,rs.x,as.x,ns.x),u=Sd(es.y,rs.y,as.y,ns.y);e.width=l-e.x,e.height=u-e.y},r})(),FN="silent";function bG(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:wG}}function wG(){yi(this.event)}var TG=(function(r){De(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(ja),ef=(function(){function r(e,t){this.x=e,this.y=t}return r})(),AG=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],K0=new kt(0,0,0,0),jN=(function(r){De(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new ef(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new TG,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new lG(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(P(AG,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=YN(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new ef(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new ef(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=bG(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new ef(t,a);if(OC(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new kt(t-u,a-u,l,l),v=i.length-1;v>=0;v--){var d=i[v];d!==n&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(K0.copy(d.getBoundingRect()),d.transform&&K0.applyTransform(d.transform),K0.intersect(f)&&s.push(d))}if(s.length)for(var p=4,y=Math.PI/12,m=Math.PI*2,_=0;_<u;_+=p)for(var S=0;S<m;S+=y){var b=t+_*Math.cos(S),w=a+_*Math.sin(S);if(OC(s,o,b,w,n),o.target)return o}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new _G);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;t.gestureEvent=o;var s=new ef;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})(ja);P(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){jN.prototype[r]=function(e){var t=e.zrX,a=e.zrY,n=YN(this,t,a),i,o;if((r!=="mouseup"||!n)&&(i=this.findHover(t,a),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||ho(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function DG(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1;a.silent&&(n=!0)}var s=a.__hostTarget;a=s||a.parent}return n?FN:!0}return!1}function OC(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=DG(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==FN)){e.target=o;break}}}function YN(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var XN=32,rf=7;function CG(r){for(var e=0;r>=XN;)e|=r&1,r>>=1;return r+e}function zC(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n<t&&a(r[n],r[n-1])<0;)n++;MG(r,e,n)}else for(;n<t&&a(r[n],r[n-1])>=0;)n++;return n-e}function MG(r,e,t){for(t--;e<t;){var a=r[e];r[e++]=r[t],r[t--]=a}}function kC(r,e,t,a,n){for(a===e&&a++;a<t;a++){for(var i=r[a],o=e,s=a,l;o<s;)l=o+s>>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function Q0(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l<s&&i(r,e[t+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&i(r,e[t+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function J0(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;l<s&&i(r,e[t+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l<s&&i(r,e[t+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function LG(r,e){var t=rf,a,n,i=0;r.length;var o=[];a=[],n=[];function s(p,y){a[i]=p,n[i]=y,i+=1}function l(){for(;i>1;){var p=i-2;if(p>=1&&n[p-1]<=n[p]+n[p+1]||p>=2&&n[p-2]<=n[p]+n[p-1])n[p-1]<n[p+1]&&p--;else if(n[p]>n[p+1])break;f(p)}}function u(){for(;i>1;){var p=i-2;p>0&&n[p-1]<n[p+1]&&p--,f(p)}}function f(p){var y=a[p],m=n[p],_=a[p+1],S=n[p+1];n[p]=m+S,p===i-3&&(a[p+1]=a[p+2],n[p+1]=n[p+2]),i--;var b=J0(r[_],r,y,m,0,e);y+=b,m-=b,m!==0&&(S=Q0(r[y+m-1],r,_,S,S-1,e),S!==0&&(m<=S?v(y,m,_,S):d(y,m,_,S)))}function v(p,y,m,_){var S=0;for(S=0;S<y;S++)o[S]=r[p+S];var b=0,w=m,A=p;if(r[A++]=r[w++],--_===0){for(S=0;S<y;S++)r[A+S]=o[b+S];return}if(y===1){for(S=0;S<_;S++)r[A+S]=r[w+S];r[A+_]=o[b];return}for(var M=t,C,L,E;;){C=0,L=0,E=!1;do if(e(r[w],o[b])<0){if(r[A++]=r[w++],L++,C=0,--_===0){E=!0;break}}else if(r[A++]=o[b++],C++,L=0,--y===1){E=!0;break}while((C|L)<M);if(E)break;do{if(C=J0(r[w],o,b,y,0,e),C!==0){for(S=0;S<C;S++)r[A+S]=o[b+S];if(A+=C,b+=C,y-=C,y<=1){E=!0;break}}if(r[A++]=r[w++],--_===0){E=!0;break}if(L=Q0(o[b],r,w,_,0,e),L!==0){for(S=0;S<L;S++)r[A+S]=r[w+S];if(A+=L,w+=L,_-=L,_===0){E=!0;break}}if(r[A++]=o[b++],--y===1){E=!0;break}M--}while(C>=rf||L>=rf);if(E)break;M<0&&(M=0),M+=2}if(t=M,t<1&&(t=1),y===1){for(S=0;S<_;S++)r[A+S]=r[w+S];r[A+_]=o[b]}else{if(y===0)throw new Error;for(S=0;S<y;S++)r[A+S]=o[b+S]}}function d(p,y,m,_){var S=0;for(S=0;S<_;S++)o[S]=r[m+S];var b=p+y-1,w=_-1,A=m+_-1,M=0,C=0;if(r[A--]=r[b--],--y===0){for(M=A-(_-1),S=0;S<_;S++)r[M+S]=o[S];return}if(_===1){for(A-=y,b-=y,C=A+1,M=b+1,S=y-1;S>=0;S--)r[C+S]=r[M+S];r[A]=o[w];return}for(var L=t;;){var E=0,R=0,N=!1;do if(e(o[w],r[b])<0){if(r[A--]=r[b--],E++,R=0,--y===0){N=!0;break}}else if(r[A--]=o[w--],R++,E=0,--_===1){N=!0;break}while((E|R)<L);if(N)break;do{if(E=y-J0(o[w],r,p,y,y-1,e),E!==0){for(A-=E,b-=E,y-=E,C=A+1,M=b+1,S=E-1;S>=0;S--)r[C+S]=r[M+S];if(y===0){N=!0;break}}if(r[A--]=o[w--],--_===1){N=!0;break}if(R=_-Q0(r[b],o,0,_,_-1,e),R!==0){for(A-=R,w-=R,_-=R,C=A+1,M=w+1,S=0;S<R;S++)r[C+S]=o[M+S];if(_<=1){N=!0;break}}if(r[A--]=r[b--],--y===0){N=!0;break}L--}while(E>=rf||R>=rf);if(N)break;L<0&&(L=0),L+=2}if(t=L,t<1&&(t=1),_===1){for(A-=y,b-=y,C=A+1,M=b+1,S=y-1;S>=0;S--)r[C+S]=r[M+S];r[A]=o[w]}else{if(_===0)throw new Error;for(M=A-(_-1),S=0;S<_;S++)r[M+S]=o[S]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Dp(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(n<XN){i=zC(r,t,a,e),kC(r,t,a,t+i,e);return}var o=LG(r,e),s=CG(n);do{if(i=zC(r,t,a,e),i<s){var l=n;l>s&&(l=s),kC(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var fa=1,Lf=2,mu=4,BC=!1;function t1(){BC||(BC=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function VC(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var EG=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=VC}return r.prototype.traverse=function(e,t){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var a=this._displayList;return(e||!a.length)&&this.updateDisplayList(t),a},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,a=this._displayList,n=0,i=t.length;n<i;n++)this._updateAndAddDisplayable(t[n],null,e);a.length=this._displayListLen,Dp(a,VC)},r.prototype._updateAndAddDisplayable=function(e,t,a){if(!(e.ignore&&!a)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath();if(e.ignoreClip)t=null;else if(n){t?t=t.slice():t=[];for(var i=n,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=fa),this._updateAndAddDisplayable(u,t,a)}e.__dirty=0}else{var f=e;t&&t.length?f.__clipPaths=t:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(t1(),f.z=0),isNaN(f.z2)&&(t1(),f.z2=0),isNaN(f.zlevel)&&(t1(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var v=e.getDecalElement&&e.getDecalElement();v&&this._updateAndAddDisplayable(v,t,a);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,a);var p=e.getTextContent();p&&this._updateAndAddDisplayable(p,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t<a;t++)this.delRoot(e[t]);return}var n=Vt(this._roots,e);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),Zp;Zp=Ft.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Uf={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-Uf.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Uf.bounceIn(r*2)*.5:Uf.bounceOut(r*2-1)*.5+.5}},bd=Math.pow,bo=Math.sqrt,Wp=1e-8,ZN=1e-4,GC=bo(3),wd=1/3,An=ol(),za=ol(),Cu=ol();function go(r){return r>-Wp&&r<Wp}function WN(r){return r>Wp||r<-Wp}function tr(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function HC(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function qp(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,v=s*l-9*o*u,d=l*l-3*s*u,p=0;if(go(f)&&go(v))if(go(s))i[0]=0;else{var y=-l/s;y>=0&&y<=1&&(i[p++]=y)}else{var m=v*v-4*f*d;if(go(m)){var _=v/f,y=-s/o+_,S=-_/2;y>=0&&y<=1&&(i[p++]=y),S>=0&&S<=1&&(i[p++]=S)}else if(m>0){var b=bo(m),w=f*s+1.5*o*(-v+b),A=f*s+1.5*o*(-v-b);w<0?w=-bd(-w,wd):w=bd(w,wd),A<0?A=-bd(-A,wd):A=bd(A,wd);var y=(-s-(w+A))/(3*o);y>=0&&y<=1&&(i[p++]=y)}else{var M=(2*f*s-3*o*v)/(2*bo(f*f*f)),C=Math.acos(M)/3,L=bo(f),E=Math.cos(C),y=(-s-2*L*E)/(3*o),S=(-s+L*(E+GC*Math.sin(C)))/(3*o),R=(-s+L*(E-GC*Math.sin(C)))/(3*o);y>=0&&y<=1&&(i[p++]=y),S>=0&&S<=1&&(i[p++]=S),R>=0&&R<=1&&(i[p++]=R)}}return p}function qN(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(go(o)){if(WN(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(go(f))n[0]=-i/(2*o);else if(f>0){var v=bo(f),u=(-i+v)/(2*o),d=(-i-v)/(2*o);u>=0&&u<=1&&(n[l++]=u),d>=0&&d<=1&&(n[l++]=d)}}return l}function Lo(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,v=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=v,i[4]=v,i[5]=f,i[6]=l,i[7]=a}function $N(r,e,t,a,n,i,o,s,l,u,f){var v,d=.005,p=1/0,y,m,_,S;An[0]=l,An[1]=u;for(var b=0;b<1;b+=.05)za[0]=tr(r,t,n,o,b),za[1]=tr(e,a,i,s,b),_=Fs(An,za),_<p&&(v=b,p=_);p=1/0;for(var w=0;w<32&&!(d<ZN);w++)y=v-d,m=v+d,za[0]=tr(r,t,n,o,y),za[1]=tr(e,a,i,s,y),_=Fs(za,An),y>=0&&_<p?(v=y,p=_):(Cu[0]=tr(r,t,n,o,m),Cu[1]=tr(e,a,i,s,m),S=Fs(Cu,An),m<=1&&S<p?(v=m,p=S):d*=.5);return f&&(f[0]=tr(r,t,n,o,v),f[1]=tr(e,a,i,s,v)),bo(p)}function RG(r,e,t,a,n,i,o,s,l){for(var u=r,f=e,v=0,d=1/l,p=1;p<=l;p++){var y=p*d,m=tr(r,t,n,o,y),_=tr(e,a,i,s,y),S=m-u,b=_-f;v+=Math.sqrt(S*S+b*b),u=m,f=_}return v}function cr(r,e,t,a){var n=1-a;return n*(n*r+2*a*e)+a*a*t}function Ex(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function IG(r,e,t,a,n){var i=r-2*e+t,o=2*(e-r),s=r-a,l=0;if(go(i)){if(WN(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(go(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var v=bo(f),u=(-o+v)/(2*i),d=(-o-v)/(2*i);u>=0&&u<=1&&(n[l++]=u),d>=0&&d<=1&&(n[l++]=d)}}return l}function KN(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function ih(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function QN(r,e,t,a,n,i,o,s,l){var u,f=.005,v=1/0;An[0]=o,An[1]=s;for(var d=0;d<1;d+=.05){za[0]=cr(r,t,n,d),za[1]=cr(e,a,i,d);var p=Fs(An,za);p<v&&(u=d,v=p)}v=1/0;for(var y=0;y<32&&!(f<ZN);y++){var m=u-f,_=u+f;za[0]=cr(r,t,n,m),za[1]=cr(e,a,i,m);var p=Fs(za,An);if(m>=0&&p<v)u=m,v=p;else{Cu[0]=cr(r,t,n,_),Cu[1]=cr(e,a,i,_);var S=Fs(Cu,An);_<=1&&S<v?(u=_,v=S):f*=.5}}return l&&(l[0]=cr(r,t,n,u),l[1]=cr(e,a,i,u)),bo(v)}function NG(r,e,t,a,n,i,o){for(var s=r,l=e,u=0,f=1/o,v=1;v<=o;v++){var d=v*f,p=cr(r,t,n,d),y=cr(e,a,i,d),m=p-s,_=y-l;u+=Math.sqrt(m*m+_*_),s=p,l=y}return u}var PG=/cubic-bezier\(([0-9,\.e ]+)\)/;function xb(r){var e=r&&PG.exec(r);if(e){var t=e[1].split(","),a=+rn(t[0]),n=+rn(t[1]),i=+rn(t[2]),o=+rn(t[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:qp(0,a,i,1,l,s)&&tr(0,n,o,1,s[0])}}}var OG=(function(){function r(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||Ge,this.ondestroy=e.ondestroy||Ge,this.onrestart=e.onrestart||Ge,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=bt(e)?e:Uf[e]||xb(e)},r})(),JN=(function(){function r(e){this.value=e}return r})(),zG=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new JN(e);return this.insertEntry(t),t},r.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++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),Ih=(function(){function r(e){this._list=new zG,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new JN(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),UC={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 on(r){return r=Math.round(r),r<0?0:r>255?255:r}function kG(r){return r=Math.round(r),r<0?0:r>360?360:r}function oh(r){return r<0?0:r>1?1:r}function e1(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?on(parseFloat(e)/100*255):on(parseInt(e,10))}function js(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?oh(parseFloat(e)/100):oh(parseFloat(e))}function r1(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function yo(r,e,t){return r+(e-r)*t}function Ra(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function Rx(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var t3=new Ih(20),Td=null;function Ql(r,e){Td&&Rx(Td,e),Td=t3.put(r,Td||e.slice())}function ha(r,e){if(r){e=e||[];var t=t3.get(r);if(t)return Rx(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in UC)return Rx(e,UC[a]),Ql(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){Ra(e,0,0,0,1);return}return Ra(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),Ql(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Ra(e,0,0,0,1);return}return Ra(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Ql(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Ra(e,+u[0],+u[1],+u[2],1):Ra(e,0,0,0,1);f=js(u.pop());case"rgb":if(u.length>=3)return Ra(e,e1(u[0]),e1(u[1]),e1(u[2]),u.length===3?f:js(u[3])),Ql(r,e),e;Ra(e,0,0,0,1);return;case"hsla":if(u.length!==4){Ra(e,0,0,0,1);return}return u[3]=js(u[3]),Ix(u,e),Ql(r,e),e;case"hsl":if(u.length!==3){Ra(e,0,0,0,1);return}return Ix(u,e),Ql(r,e),e;default:return}}Ra(e,0,0,0,1)}}function Ix(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=js(r[1]),n=js(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],Ra(e,on(r1(o,i,t+1/3)*255),on(r1(o,i,t)*255),on(r1(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function BG(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-e)/6+o/2)/o,v=((i-t)/6+o/2)/o,d=((i-a)/6+o/2)/o;e===i?l=d-v:t===i?l=1/3+f-d:a===i&&(l=2/3+v-f),l<0&&(l+=1),l>1&&(l-=1)}var p=[l*360,u,s];return r[3]!=null&&p.push(r[3]),p}}function Nx(r,e){var t=ha(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return di(t,t.length===4?"rgba":"rgb")}}function a1(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=on(yo(o[0],s[0],l)),t[1]=on(yo(o[1],s[1],l)),t[2]=on(yo(o[2],s[2],l)),t[3]=oh(yo(o[3],s[3],l)),t}}function VG(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=ha(e[n]),s=ha(e[i]),l=a-n,u=di([on(yo(o[0],s[0],l)),on(yo(o[1],s[1],l)),on(yo(o[2],s[2],l)),oh(yo(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function Ff(r,e,t,a){var n=ha(r);if(r)return n=BG(n),e!=null&&(n[0]=kG(e)),t!=null&&(n[1]=js(t)),a!=null&&(n[2]=js(a)),di(Ix(n),"rgba")}function $p(r,e){var t=ha(r);if(t&&e!=null)return t[3]=oh(e),di(t,"rgba")}function di(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Kp(r,e){var t=ha(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var Qp=Math.round;function sh(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=ha(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var FC=1e-4;function mo(r){return r<FC&&r>-FC}function Ad(r){return Qp(r*1e3)/1e3}function Px(r){return Qp(r*1e4)/1e4}function GG(r){return"matrix("+Ad(r[0])+","+Ad(r[1])+","+Ad(r[2])+","+Ad(r[3])+","+Px(r[4])+","+Px(r[5])+")"}var HG={left:"start",right:"end",center:"middle",middle:"middle"};function UG(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function FG(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function jG(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function e3(r){return r&&!!r.image}function YG(r){return r&&!!r.svgElement}function Sb(r){return e3(r)||YG(r)}function r3(r){return r.type==="linear"}function a3(r){return r.type==="radial"}function n3(r){return r&&(r.type==="linear"||r.type==="radial")}function Xg(r){return"url(#"+r+")"}function i3(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function o3(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*wp,n=Ot(r.scaleX,1),i=Ot(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+Qp(o*wp)+"deg, "+Qp(s*wp)+"deg)"),l.join(" ")}var XG=(function(){return Ft.hasGlobalWindow&&bt(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})(),Ox=Array.prototype.slice;function li(r,e,t){return(e-r)*t+r}function n1(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=li(e[i],t[i],a);return r}function ZG(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=li(e[o][s],t[o][s],a)}return r}function Dd(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=e[i]+t[i]*a;return r}function jC(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*a}return r}function WG(r,e){for(var t=r.length,a=e.length,n=t>a?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,a);s++)n.push({offset:o.offset,color:o.color.slice()})}function qG(r,e,t){var a=r,n=e;if(!(!a.push||!n.push)){var i=a.length,o=n.length;if(i!==o){var s=i>o;if(s)a.length=o;else for(var l=i;l<o;l++)a.push(t===1?n[l]:Ox.call(n[l]))}for(var u=a[0]&&a[0].length,l=0;l<a.length;l++)if(t===1)isNaN(a[l])&&(a[l]=n[l]);else for(var f=0;f<u;f++)isNaN(a[l][f])&&(a[l][f]=n[l][f])}}function jf(r){if(Dr(r)){var e=r.length;if(Dr(r[0])){for(var t=[],a=0;a<e;a++)t.push(Ox.call(r[a]));return t}return Ox.call(r)}return r}function Cp(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function $G(r){return Dr(r&&r[0])?2:1}var Cd=0,Mp=1,s3=2,Ef=3,zx=4,kx=5,YC=6;function XC(r){return r===zx||r===kx}function Md(r){return r===Mp||r===s3}var af=[0,0,0,0],KG=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=YC,l=t;if(Dr(t)){var u=$G(t);s=u,(u===1&&!Qt(t[0])||u===2&&!Qt(t[0][0]))&&(o=!0)}else if(Qt(t)&&!nh(t))s=Cd;else if(vt(t))if(!isNaN(+t))s=Cd;else{var f=ha(t);f&&(l=f,s=Ef)}else if(Fg(t)){var v=et({},l);v.colorStops=st(t.colorStops,function(p){return{offset:p.offset,color:ha(p.color)}}),r3(t)?s=zx:a3(t)&&(s=kx),l=v}i===0?this.valType=s:(s!==this.valType||s===YC)&&(o=!0),this.discrete=this.discrete||o;var d={time:e,value:l,rawValue:t,percent:0};return a&&(d.easing=a,d.easingFunc=bt(a)?a:Uf[a]||xb(a)),n.push(d),d},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(m,_){return m.time-_.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=Md(n),u=XC(n),f=0;f<i;f++){var v=a[f],d=v.value,p=o.value;v.percent=v.time/e,s||(l&&f!==i-1?qG(d,p,n):u&&WG(d.colorStops,p.colorStops))}if(!s&&n!==kx&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var y=a[0].value,f=0;f<i;f++)n===Cd?a[f].additiveValue=a[f].value-y:n===Ef?a[f].additiveValue=Dd([],a[f].value,y,-1):Md(n)&&(a[f].additiveValue=n===Mp?Dd([],a[f].value,y,-1):jC([],a[f].value,y,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===Ef,f,v=this._lastFr,d=Math.min,p,y;if(s===1)p=y=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var m=d(v+1,s-1);for(f=m;f>=0&&!(o[f].percent<=t);f--);f=d(f,s-2)}else{for(f=v;f<s&&!(o[f].percent>t);f++);f=d(f-1,s-2)}y=o[f+1],p=o[f]}if(p&&y){this._lastFr=f,this._lastFrP=t;var _=y.percent-p.percent,S=_===0?1:d((t-p.percent)/_,1);y.easingFunc&&(S=y.easingFunc(S));var b=a?this._additiveValue:u?af:e[l];if((Md(i)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)e[l]=S<1?p.rawValue:y.rawValue;else if(Md(i))i===Mp?n1(b,p[n],y[n],S):ZG(b,p[n],y[n],S);else if(XC(i)){var w=p[n],A=y[n],M=i===zx;e[l]={type:M?"linear":"radial",x:li(w.x,A.x,S),y:li(w.y,A.y,S),colorStops:st(w.colorStops,function(L,E){var R=A.colorStops[E];return{offset:li(L.offset,R.offset,S),color:Cp(n1([],L.color,R.color,S))}}),global:A.global},M?(e[l].x2=li(w.x2,A.x2,S),e[l].y2=li(w.y2,A.y2,S)):e[l].r=li(w.r,A.r,S)}else if(u)n1(b,p[n],y[n],S),a||(e[l]=Cp(b));else{var C=li(p[n],y[n],S);a?this._additiveValue=C:e[l]=C}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===Cd?e[a]=e[a]+n:t===Ef?(ha(e[a],af),Dd(af,af,n,1),e[a]=Cp(af)):t===Mp?Dd(e[a],e[a],n,1):t===s3&&jC(e[a],e[a],n,1)},r})(),bb=(function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){vb("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,Yt(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o<a.length;o++){var s=a[o],l=i[s];if(!l){l=i[s]=new KG(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var v=f.keyframes,d=v[v.length-1];u=d&&d.value,f.valType===Ef&&u&&(u=Cp(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,jf(u),n),this._trackKeys.push(s)}l.addKeyframe(e,jf(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a<t;a++)e[a].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var a=0;a<t.length;a++)t[a].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,a=0;a<t.length;a++)e[t[a]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var v=u[f-1];v&&(t._target[s.propName]=v.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var d=new OG({life:n,loop:this._loop,delay:this._delay||0,onframe:function(p){t._started=2;var y=t._additiveAnimators;if(y){for(var m=!1,_=0;_<y.length;_++)if(y[_]._clip){m=!0;break}m||(t._additiveAnimators=null)}for(var _=0;_<a.length;_++)a[_].step(t._target,p);var S=t._onframeCbs;if(S)for(var _=0;_<S.length;_++)S[_](t._target,p)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return st(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<e.length;i++){var o=a[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<n.length;i++)if(!a[n[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,a){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var i=t[n],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[a?0:s.length-1];l&&(e[i]=jf(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||Yt(e);for(var a=0;a<t.length;a++){var n=t[a],i=this._tracks[n];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r})();function wu(){return new Date().getTime()}var QG=(function(r){De(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=wu()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(Zp(a),!t._paused&&t.update())}Zp(a)},e.prototype.start=function(){this._running||(this._time=wu(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=wu(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=wu()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new bb(t,a.loop);return this.addAnimator(n),n},e})(ja),JG=300,i1=Ft.domSupported,o1=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=st(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}})(),ZC={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},WC=!1;function Bx(r){var e=r.pointerType;return e==="pen"||e==="touch"}function t8(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function s1(r){r&&(r.zrByTouch=!0)}function e8(r,e){return Ia(r.dom,new r8(r,e),!0)}function l3(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var r8=(function(){function r(e,t){this.stopPropagation=Ge,this.stopImmediatePropagation=Ge,this.preventDefault=Ge,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),Ja={mousedown:function(r){r=Ia(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Ia(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Ia(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Ia(this.dom,r);var e=r.toElement||r.relatedTarget;l3(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){WC=!0,r=Ia(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){WC||(r=Ia(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Ia(this.dom,r),s1(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Ja.mousemove.call(this,r),Ja.mousedown.call(this,r)},touchmove:function(r){r=Ia(this.dom,r),s1(r),this.handler.processGesture(r,"change"),Ja.mousemove.call(this,r)},touchend:function(r){r=Ia(this.dom,r),s1(r),this.handler.processGesture(r,"end"),Ja.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<JG&&Ja.click.call(this,r)},pointerdown:function(r){Ja.mousedown.call(this,r)},pointermove:function(r){Bx(r)||Ja.mousemove.call(this,r)},pointerup:function(r){Ja.mouseup.call(this,r)},pointerout:function(r){Bx(r)||Ja.mouseout.call(this,r)}};P(["click","dblclick","contextmenu"],function(r){Ja[r]=function(e){e=Ia(this.dom,e),this.trigger(r,e)}});var Vx={pointermove:function(r){Bx(r)||Vx.mousemove.call(this,r)},pointerup:function(r){Vx.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function a8(r,e){var t=e.domHandlers;Ft.pointerEventsSupported?P(o1.pointer,function(a){Lp(e,a,function(n){t[a].call(r,n)})}):(Ft.touchEventsSupported&&P(o1.touch,function(a){Lp(e,a,function(n){t[a].call(r,n),t8(e)})}),P(o1.mouse,function(a){Lp(e,a,function(n){n=yb(n),e.touching||t[a].call(r,n)})}))}function n8(r,e){Ft.pointerEventsSupported?P(ZC.pointer,t):Ft.touchEventsSupported||P(ZC.mouse,t);function t(a){function n(i){i=yb(i),l3(r,i.target)||(i=e8(r,i),e.domHandlers[a].call(r,i))}Lp(e,a,n,{capture:!0})}}function Lp(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,Lx(r.domTarget,e,t,a)}function l1(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&mG(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var qC=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),i8=(function(r){De(e,r);function e(t,a){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=a,n._localHandlerScope=new qC(t,Ja),i1&&(n._globalHandlerScope=new qC(document,Vx)),a8(n,n._localHandlerScope),n}return e.prototype.dispose=function(){l1(this._localHandlerScope),i1&&l1(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,i1&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?n8(this,a):l1(a)}},e})(ja),u3=1;Ft.hasGlobalWindow&&(u3=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Jp=u3,Gx=.4,Hx="#333",Ux="#ccc",o8="#eee",$C=Yg,KC=5e-5;function is(r){return r>KC||r<-KC}var os=[],Jl=[],u1=Ua(),c1=Math.abs,ci=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return is(this.rotation)||is(this.x)||is(this.y)||is(this.scaleX-1)||is(this.scaleY-1)||is(this.skewX)||is(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&($C(a),this.invTransform=null);return}a=a||Ua(),t?this.getLocalTransform(a):$C(a),e&&(t?vi(a,e,a):mb(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(os);var a=os[0]<0?-1:1,n=os[1]<0?-1:1,i=((os[0]-a)*t+a)/os[0]||0,o=((os[1]-n)*t+n)/os[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Ua(),ju(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(vi(Jl,e.invTransform,t),t=Jl);var a=this.originX,n=this.originY;(a||n)&&(u1[4]=a,u1[5]=n,vi(Jl,t,u1),Jl[4]-=a,Jl[5]-=n,t=Jl),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&_r(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&_r(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&c1(e[0]-1)>1e-10&&c1(e[3]-1)>1e-10?Math.sqrt(c1(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){c3(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,v=e.y,d=e.skewX?Math.tan(e.skewX):0,p=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var y=a+s,m=n+l;t[4]=-y*i-d*m*o,t[5]=-m*o-p*y*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=p*i,t[2]=d*o,u&&sl(t,t,u),t[4]+=a+f,t[5]+=n+v,t},r.initDefaultProps=(function(){var e=r.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})(),r})(),On=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function c3(r,e){for(var t=0;t<On.length;t++){var a=On[t];r[a]=e[a]}}var QC={};function va(r,e){e=e||Co;var t=QC[e];t||(t=QC[e]=new Ih(500));var a=t.get(r);return a==null&&(a=Mo.measureText(r,e).width,t.put(r,a)),a}function JC(r,e,t,a){var n=va(r,e),i=Zg(e),o=Rf(0,n,t),s=_u(0,i,a),l=new kt(o,s,n,i);return l}function Nh(r,e,t,a){var n=((r||"")+"").split(`
`),i=n.length;if(i===1)return JC(n[0],e,t,a);for(var o=new kt(0,0,0,0),s=0;s<n.length;s++){var l=JC(n[s],e,t,a);s===0?o.copy(l):o.union(l)}return o}function Rf(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function _u(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function Zg(r){return va("国",r)}function ln(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function tg(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",v="top";if(a instanceof Array)l+=ln(a[0],t.width),u+=ln(a[1],t.height),f=null,v=null;else switch(a){case"left":l-=n,u+=s,f="right",v="middle";break;case"right":l+=n+o,u+=s,v="middle";break;case"top":l+=o/2,u-=n,f="center",v="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",v="middle";break;case"insideLeft":l+=n,u+=s,v="middle";break;case"insideRight":l+=o-n,u+=s,f="right",v="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",v="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,v="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",v="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=v,r}var f1="__zr_normal__",h1=On.concat(["ignore"]),s8=Nn(On,function(r,e){return r[e]=!0,r},{ignore:!1}),tu={},l8=new kt(0,0,0,0),Wg=(function(){function r(e){this.id=BN(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(t),a.position!=null){var f=l8;a.layoutRect?f.copy(a.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(tu,a,f):tg(tu,a,f),i.x=tu.x,i.y=tu.y,o=tu.align,s=tu.verticalAlign;var v=a.origin;if(v&&a.rotation!=null){var d=void 0,p=void 0;v==="center"?(d=f.width*.5,p=f.height*.5):(d=ln(v[0],f.width),p=ln(v[1],f.height)),u=!0,i.originX=-i.x+d+(n?0:f.x),i.originY=-i.y+p+(n?0:f.y)}}a.rotation!=null&&(i.rotation=a.rotation);var y=a.offset;y&&(i.x+=y[0],i.y+=y[1],u||(i.originX=-y[0],i.originY=-y[1]));var m=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,_=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),S=void 0,b=void 0,w=void 0;m&&this.canBeInsideText()?(S=a.insideFill,b=a.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(S),w=!0)):(S=a.outsideFill,b=a.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(S),w=!0)),S=S||"#000",(S!==_.fill||b!==_.stroke||w!==_.autoStroke||o!==_.align||s!==_.verticalAlign)&&(l=!0,_.fill=S,_.stroke=b,_.autoStroke=w,_.align=o,_.verticalAlign=s,t.setDefaultTextStyle(_)),t.__dirty|=fa,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ux:Hx},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&ha(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,di(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},et(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(Tt(e))for(var a=e,n=Yt(a),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,a=0;a<this.animators.length;a++){var n=this.animators[a],i=n.__fromStateTransition;if(!(n.getLoop()||i&&i!==f1)){var o=n.targetName,s=o?t[o]:t;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,h1)},r.prototype._savePrimaryToNormal=function(e,t,a){for(var n=0;n<a.length;n++){var i=a[n];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(f1,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===f1,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Vt(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){vb("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&l&&l.duration>0,l);var v=this._textContent,d=this._textGuide;return v&&v.useState(e,t,a,f),d&&d.useState(e,t,a,f),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~fa),u}}},r.prototype.useStates=function(e,t,a){if(!e.length)this.clearStates();else{var n=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(e[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&n.push(f)}var v=n[o-1],d=!!(v&&v.hoverLayer||a);d&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(n),y=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(","),p,this._normalState,!1,!t&&!this.__inHover&&y&&y.duration>0,y);var m=this._textContent,_=this._textGuide;m&&m.useStates(e,t,d),_&&_.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~fa)}},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=Vt(this.currentStates,e);if(t>=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var n=this.currentStates.slice(),i=Vt(n,e),o=Vt(n,t)>=0;i>=0?o?n.splice(i,1):n[i]=t:a&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},a,n=0;n<e.length;n++){var i=e[n];et(t,i),i.textConfig&&(a=a||{},et(a,i.textConfig))}return a&&(t.textConfig=a),t},r.prototype._applyStateObj=function(e,t,a,n,i,o){var s=!(t&&n);t&&t.textConfig?(this.textConfig=et({},n?this.textConfig:a.textConfig),et(this.textConfig,t.textConfig)):s&&a.textConfig&&(this.textConfig=a.textConfig);for(var l={},u=!1,f=0;f<h1.length;f++){var v=h1[f],d=i&&s8[v];t&&t[v]!=null?d?(u=!0,l[v]=t[v]):this[v]=t[v]:s&&a[v]!=null&&(d?(u=!0,l[v]=a[v]):this[v]=a[v])}if(!i)for(var f=0;f<this.animators.length;f++){var p=this.animators[f],y=p.targetName;p.getLoop()||p.__changeFinalValue(y?(t||a)[y]:t||a)}u&&this._transitionState(e,l,o)},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new ci,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),et(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=fa;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,a=this._textGuide;t&&(t.__inHover=e),a&&(a.__inHover=e)},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.addAnimator(t[a]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.removeAnimator(t[a]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,a){var n=e?this[e]:this,i=new bb(n,t,a);return e&&(i.targetName=e),this.addAnimator(i,e),i},r.prototype.addAnimator=function(e,t){var a=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(t)}).done(function(){var i=n.animators,o=Vt(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,n=a.length,i=[],o=0;o<n;o++){var s=a[o];!e||e===s.scope?s.stop(t):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(e,t,a){v1(this,e,t,a)},r.prototype.animateFrom=function(e,t,a){v1(this,e,t,a,!0)},r.prototype._transitionState=function(e,t,a,n){for(var i=v1(this,t,a,n),o=0;o<i.length;o++)i[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=fa;function t(a,n,i,o){Object.defineProperty(e,a,{get:function(){if(!this[n]){var l=this[n]=[];s(this,l)}return this[n]},set:function(l){this[i]=l[0],this[o]=l[1],this[n]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(f){l[i]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(t("position","_legacyPos","x","y"),t("scale","_legacyScale","scaleX","scaleY"),t("origin","_legacyOrigin","originX","originY"))})(),r})();Xe(Wg,ja);Xe(Wg,ci);function v1(r,e,t,a,n){t=t||{};var i=[];f3(r,"",r,e,t,a,i,n);var o=i.length,s=!1,l=t.done,u=t.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},v=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&t.during&&i[0].during(function(y,m){t.during(m)});for(var d=0;d<i.length;d++){var p=i[d];f&&p.done(f),v&&p.aborted(v),t.force&&p.duration(t.duration),p.start(t.easing)}return i}function d1(r,e,t){for(var a=0;a<t;a++)r[a]=e[a]}function u8(r){return Dr(r[0])}function c8(r,e,t){if(Dr(e[t]))if(Dr(r[t])||(r[t]=[]),da(e[t])){var a=e[t].length;r[t].length!==a&&(r[t]=new e[t].constructor(a),d1(r[t],e[t],a))}else{var n=e[t],i=r[t],o=n.length;if(u8(n))for(var s=n[0].length,l=0;l<o;l++)i[l]?d1(i[l],n[l],s):i[l]=Array.prototype.slice.call(n[l]);else d1(i,n,o);i.length=n.length}else r[t]=e[t]}function f8(r,e){return r===e||Dr(r)&&Dr(e)&&h8(r,e)}function h8(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++)if(r[a]!==e[a])return!1;return!0}function f3(r,e,t,a,n,i,o,s){for(var l=Yt(a),u=n.duration,f=n.delay,v=n.additive,d=n.setToFinal,p=!Tt(i),y=r.animators,m=[],_=0;_<l.length;_++){var S=l[_],b=a[S];if(b!=null&&t[S]!=null&&(p||i[S]))if(Tt(b)&&!Dr(b)&&!Fg(b)){if(e){s||(t[S]=b,r.updateDuringAnimation(e));continue}f3(r,S,t[S],b,n,i&&i[S],o,s)}else m.push(S);else s||(t[S]=b,r.updateDuringAnimation(e),m.push(S))}var w=m.length;if(!v&&w)for(var A=0;A<y.length;A++){var M=y[A];if(M.targetName===e){var C=M.stopTracks(m);if(C){var L=Vt(y,M);y.splice(L,1)}}}if(n.force||(m=le(m,function(O){return!f8(a[O],t[O])}),w=m.length),w>0||n.force&&!o.length){var E=void 0,R=void 0,N=void 0;if(s){R={},d&&(E={});for(var A=0;A<w;A++){var S=m[A];R[S]=t[S],d?E[S]=a[S]:t[S]=a[S]}}else if(d){N={};for(var A=0;A<w;A++){var S=m[A];N[S]=jf(t[S]),c8(t,a,S)}}var M=new bb(t,!1,!1,v?le(y,function(k){return k.targetName===e}):null);M.targetName=e,n.scope&&(M.scope=n.scope),d&&E&&M.whenWithKeys(0,E,m),N&&M.whenWithKeys(0,N,m),M.whenWithKeys(u??500,s?R:a,m).delay(f||0),r.addAnimator(M,e),o.push(M)}}var Ct=(function(r){De(e,r);function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var a=this._children,n=0;n<a.length;n++)if(a[n].name===t)return a[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,a){if(t&&t!==this&&t.parent!==this&&a&&a.parent===this){var n=this._children,i=n.indexOf(a);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var n=Vt(this._children,t);return n>=0&&this.replaceAt(a,n),this},e.prototype.replaceAt=function(t,a){var n=this._children,i=n[a];if(t&&t!==this&&t.parent!==this&&t!==i){n[a]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,n=this._children,i=Vt(n,t);return i<0?this:(n.splice(i,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,n=0;n<t.length;n++){var i=t[n];a&&i.removeSelfFromZr(a),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,a){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];t.call(a,o,i)}return this},e.prototype.traverse=function(t,a){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=t.call(a,i);i.isGroup&&!o&&i.traverse(t,a)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var a=new kt(0,0,0,0),n=t||this._children,i=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(kt.applyTransform(a,u,f),o=o||a.clone(),o.union(a)):(o=o||u.clone(),o.union(u))}}return o||a},e})(Wg);Ct.prototype.type="group";var Ep={},h3={};function v8(r){delete h3[r]}function d8(r){if(!r)return!1;if(typeof r=="string")return Kp(r,1)<Gx;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,n=0;n<a;n++)t+=Kp(e[n].color,1);return t/=a,t<Gx}return!1}var p8=(function(){function r(e,t,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=t,this.id=e;var i=new EG,o=a.renderer||"canvas";Ep[o]||(o=Yt(Ep)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new Ep[o](t,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Ft.node&&!Ft.worker&&!l?new i8(s.getViewportRoot(),s.root):null,f=a.useCoarsePointer,v=f==null||f==="auto"?Ft.touchEventsSupported:!!f,d=44,p;v&&(p=Ot(a.pointerSize,d)),this.handler=new jN(i,s,u,s.root,p),this.animation=new QG({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh()},r.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=d8(e)},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},r.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},r.prototype.flush=function(){this._flush(!1)},r.prototype._flush=function(e){var t,a=wu();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var n=wu();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this.handler.off(e,t)},r.prototype.trigger=function(e,t){this.handler.trigger(e,t)},r.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Ct&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},r.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,v8(this.id)},r})();function tM(r,e){var t=new p8(BN(),r,e);return h3[t.id]=t,t}function g8(r,e){Ep[r]=e}var eM=1e-4,v3=20;function y8(r){return r.replace(/^\s+|\s+$/g,"")}function se(r,e,t,a){var n=e[0],i=e[1],o=t[0],s=t[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function ft(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return vt(r)?y8(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Oe(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),v3),r=(+r).toFixed(e),t?r:+r}function Ga(r){return r.sort(function(e,t){return e-t}),r}function Cn(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return m8(r)}function m8(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function d3(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(Math.abs(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function _8(r,e){var t=Nn(r,function(p,y){return p+(isNaN(y)?0:y)},0);if(t===0)return[];for(var a=Math.pow(10,e),n=st(r,function(p){return(isNaN(p)?0:p)/t*a*100}),i=a*100,o=st(n,function(p){return Math.floor(p)}),s=Nn(o,function(p,y){return p+y},0),l=st(n,function(p,y){return p-o[y]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,v=0,d=l.length;v<d;++v)l[v]>u&&(u=l[v],f=v);++o[f],l[f]=0,++s}return st(o,function(p){return p/a})}function x8(r,e){var t=Math.max(Cn(r),Cn(e)),a=r+e;return t>v3?a:Oe(a,t)}var rM=9007199254740991;function p3(r){var e=Math.PI*2;return(r%e+e)%e}function eg(r){return r>-eM&&r<eM}var S8=/^(?:(\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 zn(r){if(r instanceof Date)return r;if(vt(r)){var e=S8.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(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(r==null)return new Date(NaN);return new Date(Math.round(r))}function b8(r){return Math.pow(10,wb(r))}function wb(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function g3(r,e){var t=wb(r),a=Math.pow(10,t),n=r/a,i;return n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10,r=i*a,t>=-20?+r.toFixed(t<0?-t:0):r}function p1(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),n=+r[a-1],i=t-a;return i?n+i*(r[a]-n):n}function aM(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,i[o]=o?1:1-t),e=n[o],t=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function mi(r){var e=parseFloat(r);return e==r&&(e!==0||!vt(r)||r.indexOf("x")<=0)?e:NaN}function y3(r){return!isNaN(mi(r))}function m3(){return Math.round(Math.random()*9)}function _3(r,e){return e===0?r:_3(e,r%e)}function nM(r,e){return r==null?e:e==null?r:r*e/_3(r,e)}function ne(r){throw new Error(r)}function iM(r,e,t){return(e-r)*t+r}var x3="series\0",S3="\0_ec_\0";function he(r){return r instanceof Array?r:r==null?[]:[r]}function Js(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var a=0,n=t.length;a<n;a++){var i=t[a];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var oM=["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 Yu(r){return Tt(r)&&!it(r)&&!(r instanceof Date)?r.value:r}function w8(r){return Tt(r)&&!(r instanceof Array)}function b3(r,e,t){var a=t==="normalMerge",n=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=xt();P(e,function(l,u){if(!Tt(l)){e[u]=null;return}});var s=T8(r,o,t);return(a||n)&&A8(s,r,o,e),a&&D8(s,e),a||n?C8(s,e,n):i&&M8(s,e),L8(s),s}function T8(r,e,t){var a=[];if(t==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&e.set(i.id,n),a.push({existing:t==="replaceMerge"||lh(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function A8(r,e,t,a){P(a,function(n,i){if(!(!n||n.id==null)){var o=Yf(n.id),s=t.get(o);if(s!=null){var l=r[s];zr(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],a[i]=null}}})}function D8(r,e){P(e,function(t,a){if(!(!t||t.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||t.id==null)&&!lh(t)&&!lh(i)&&w3("name",i,t)){r[n].newOption=t,e[a]=null;return}}})}function C8(r,e,t){P(e,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||lh(n.existing)||n.existing&&a.id!=null&&!w3("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=t):r.push({newOption:a,brandNew:t,existing:null,keyInfo:null}),i++}})}function M8(r,e){P(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function L8(r){var e=xt();P(r,function(t){var a=t.existing;a&&e.set(a.id,t)}),P(r,function(t){var a=t.newOption;zr(!a||a.id==null||!e.get(a.id)||e.get(a.id)===t,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&e.set(a.id,t),!t.keyInfo&&(t.keyInfo={})}),P(r,function(t,a){var n=t.existing,i=t.newOption,o=t.keyInfo;if(Tt(i)){if(o.name=i.name!=null?Yf(i.name):n?n.name:x3+a,n)o.id=Yf(n.id);else if(i.id!=null)o.id=Yf(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function w3(r,e,t){var a=Ke(e[r],null),n=Ke(t[r],null);return a!=null&&n!=null&&a===n}function Yf(r){return Ke(r,"")}function Ke(r,e){return r==null?e:vt(r)?r:Qt(r)||xx(r)?r+"":e}function Tb(r){var e=r.name;return!!(e&&e.indexOf(x3))}function lh(r){return r&&r.id!=null&&Yf(r.id).indexOf(S3)===0}function E8(r){return S3+r}function R8(r,e,t){P(r,function(a){var n=a.newOption;Tt(n)&&(a.keyInfo.mainType=e,a.keyInfo.subType=I8(e,n,a.existing,t))})}function I8(r,e,t,a){var n=e.type?e.type:t?t.subType:a.determineSubType(r,e);return n}function N8(r,e){var t={},a={};return n(r||[],t),n(e||[],a,t),[i(t),i(a)];function n(o,s,l){for(var u=0,f=o.length;u<f;u++){var v=Ke(o[u].seriesId,null);if(v==null)return;for(var d=he(o[u].dataIndex),p=l&&l[v],y=0,m=d.length;y<m;y++){var _=d[y];p&&p[_]?p[_]=null:(s[v]||(s[v]={}))[_]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function tl(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return it(e.dataIndex)?st(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return it(e.name)?st(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function Kt(){var r="__ec_inner_"+P8++;return function(e){return e[r]||(e[r]={})}}var P8=m3();function Xf(r,e,t){var a=Ab(e,t),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=t?t.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,f){var v=Ph(r,f,u,{useDefault:l===f,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[f+"Models"]=v.models,s[f+"Model"]=v.models[0]}),s}function Ab(r,e){var t;if(vt(r)){var a={};a[r+"Index"]=0,t=a}else t=r;var n=xt(),i={},o=!1;return P(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],v=(u[2]||"").toLowerCase();if(!(!f||!v||e&&e.includeMainTypes&&Vt(e.includeMainTypes,f)<0)){o=o||!!f;var d=n.get(f)||n.set(f,{});d[v]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var je={useDefault:!0,enableAll:!1,enableNone:!1},O8={useDefault:!1,enableAll:!0,enableNone:!0};function Ph(r,e,t,a){a=a||je;var n=t.index,i=t.id,o=t.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(e))?[l]:[],s}return n==="none"||n===!1?(zr(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(zr(a.enableAll,'`"all"` is not a valid value on index option.'),n=i=o=null),s.models=r.queryComponents({mainType:e,index:n,id:i,name:o}),s)}function T3(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function z8(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function k8(r){return r==="auto"?Ft.domSupported?"html":"richText":r||"html"}function Fx(r,e){var t=xt(),a=[];return P(r,function(n){var i=e(n);(t.get(i)||(a.push(i),t.set(i,[]))).push(n)}),{keys:a,buckets:t}}function A3(r,e,t,a,n){var i=e==null||e==="auto";if(a==null)return a;if(Qt(a)){var o=iM(t||0,a,n);return Oe(o,i?Math.max(Cn(t||0),Cn(a)):e)}else{if(vt(a))return n<1?t:a;for(var s=[],l=t,u=a,f=Math.max(l?l.length:0,u.length),v=0;v<f;++v){var d=r.getDimensionInfo(v);if(d&&d.type==="ordinal")s[v]=(n<1&&l?l:u)[v];else{var p=l&&l[v]?l[v]:0,y=u[v],o=iM(p,y,n);s[v]=Oe(o,i?Math.max(Cn(p),Cn(y)):e)}}return s}}var B8=".",ss="___EC__COMPONENT__CONTAINER___",D3="___EC__EXTENDED_CLASS___";function Mn(r){var e={main:"",sub:""};if(r){var t=r.split(B8);e.main=t[0]||"",e.sub=t[1]||""}return e}function V8(r){zr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function G8(r){return!!(r&&r[D3])}function Db(r,e){r.$constructor=r,r.extend=function(t){var a=this,n;return H8(a)?n=(function(i){$(o,i);function o(){return i.apply(this,arguments)||this}return o})(a):(n=function(){(t.$constructor||a).apply(this,arguments)},K6(n,this)),et(n.prototype,t),n[D3]=!0,n.extend=this.extend,n.superCall=j8,n.superApply=Y8,n.superClass=a,n}}function H8(r){return bt(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function C3(r,e){r.extend=e.extend}var U8=Math.round(Math.random()*10);function F8(r){var e=["__\0is_clz",U8++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function j8(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return this.superClass.prototype[e].apply(r,t)}function Y8(r,e,t){return this.superClass.prototype[e].apply(r,t)}function qg(r){var e={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){V8(n),a.prototype.type=n;var i=Mn(n);if(!i.sub)e[i.main]=a;else if(i.sub!==ss){var o=t(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=e[a];if(o&&o[ss]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=Mn(a),i=[],o=e[n.main];return o&&o[ss]?P(o,function(s,l){l!==ss&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=Mn(a);return!!e[n.main]},r.getAllClassMainTypes=function(){var a=[];return P(e,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=Mn(a),i=e[n.main];return i&&i[ss]};function t(a){var n=e[a.main];return(!n||!n[ss])&&(n=e[a.main]={},n[ss]=!0),n}}function el(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&Vt(n,l)>=0||i&&Vt(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var X8=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Z8=el(X8),W8=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return Z8(this,e,t)},r})(),jx=new Ih(50);function q8(r){if(typeof r=="string"){var e=jx.get(r);return e&&e.image}else return r}function Cb(r,e,t,a,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=jx.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?(e=i.image,!$g(e)&&i.pending.push(o)):(e=Mo.loadImage(r,sM,sM),e.__zrImageSrc=r,jx.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function sM(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],a=t.cb;a&&a(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function $g(r){return r&&r.width&&r.height}var g1=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function $8(r,e,t,a,n){if(!e)return"";var i=(r+"").split(`
`);n=M3(e,t,a,n);for(var o=0,s=i.length;o<s;o++)i[o]=L3(i[o],n);return i.join(`
`)}function M3(r,e,t,a){a=a||{};var n=et({},a);n.font=e,t=Ot(t,"..."),n.maxIterations=Ot(a.maxIterations,2);var i=n.minChar=Ot(a.minChar,0);n.cnCharWidth=va("国",e);var o=n.ascCharWidth=va("a",e);n.placeholder=Ot(a.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<i&&s>=o;l++)s-=o;var u=va(t,e);return u>s&&(t="",u=0),s=r-u,n.ellipsis=t,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function L3(r,e){var t=e.containerWidth,a=e.font,n=e.contentWidth;if(!t)return"";var i=va(r,a);if(i<=t)return r;for(var o=0;;o++){if(i<=n||o>=e.maxIterations){r+=e.ellipsis;break}var s=o===0?K8(r,n,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(r.length*n/i):0;r=r.substr(0,s),i=va(r,a)}return r===""&&(r=e.placeholder),r}function K8(r,e,t,a){for(var n=0,i=0,o=r.length;i<o&&n<e;i++){var s=r.charCodeAt(i);n+=0<=s&&s<=127?t:a}return i}function Q8(r,e){r!=null&&(r+="");var t=e.overflow,a=e.padding,n=e.font,i=t==="truncate",o=Zg(n),s=Ot(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",f=e.width,v;f!=null&&(t==="break"||t==="breakAll")?v=r?E3(r,e.font,f,t==="breakAll",0).lines:[]:v=r?r.split(`
`):[];var d=v.length*s,p=Ot(e.height,d);if(d>p&&u){var y=Math.floor(p/s);v=v.slice(0,y)}if(r&&i&&f!=null)for(var m=M3(f,n,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),_=0;_<v.length;_++)v[_]=L3(v[_],m);for(var S=p,b=0,_=0;_<v.length;_++)b=Math.max(va(v[_],n),b);f==null&&(f=b);var w=b;return a&&(S+=a[0]+a[2],w+=a[1]+a[3],f+=a[1]+a[3]),l&&(w=f),{lines:v,height:p,outerWidth:w,outerHeight:S,lineHeight:s,calculatedLineHeight:o,contentWidth:b,contentHeight:d,width:f}}var J8=(function(){function r(){}return r})(),lM=(function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r})(),tH=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r})();function eH(r,e){var t=new tH;if(r!=null&&(r+=""),!r)return t;for(var a=e.width,n=e.height,i=e.overflow,o=(i==="break"||i==="breakAll")&&a!=null?{width:a,accumWidth:0,breakAll:i==="breakAll"}:null,s=g1.lastIndex=0,l;(l=g1.exec(r))!=null;){var u=l.index;u>s&&y1(t,r.substring(s,u),e,o),y1(t,l[2],e,o,l[1]),s=g1.lastIndex}s<r.length&&y1(t,r.substring(s,r.length),e,o);var f=[],v=0,d=0,p=e.padding,y=i==="truncate",m=e.lineOverflow==="truncate";function _(Y,K,nt){Y.width=K,Y.lineHeight=nt,v+=nt,d=Math.max(d,K)}t:for(var S=0;S<t.lines.length;S++){for(var b=t.lines[S],w=0,A=0,M=0;M<b.tokens.length;M++){var C=b.tokens[M],L=C.styleName&&e.rich[C.styleName]||{},E=C.textPadding=L.padding,R=E?E[1]+E[3]:0,N=C.font=L.font||e.font;C.contentHeight=Zg(N);var O=Ot(L.height,C.contentHeight);if(C.innerHeight=O,E&&(O+=E[0]+E[2]),C.height=O,C.lineHeight=Rn(L.lineHeight,e.lineHeight,O),C.align=L&&L.align||e.align,C.verticalAlign=L&&L.verticalAlign||"middle",m&&n!=null&&v+C.lineHeight>n){M>0?(b.tokens=b.tokens.slice(0,M),_(b,A,w),t.lines=t.lines.slice(0,S+1)):t.lines=t.lines.slice(0,S);break t}var k=L.width,G=k==null||k==="auto";if(typeof k=="string"&&k.charAt(k.length-1)==="%")C.percentWidth=k,f.push(C),C.contentWidth=va(C.text,N);else{if(G){var H=L.backgroundColor,F=H&&H.image;F&&(F=q8(F),$g(F)&&(C.width=Math.max(C.width,F.width*O/F.height)))}var B=y&&a!=null?a-A:null;B!=null&&B<C.width?!G||B<R?(C.text="",C.width=C.contentWidth=0):(C.text=$8(C.text,B-R,N,e.ellipsis,{minChar:e.truncateMinChar}),C.width=C.contentWidth=va(C.text,N)):C.contentWidth=va(C.text,N)}C.width+=R,A+=C.width,L&&(w=Math.max(w,C.lineHeight))}_(b,A,w)}t.outerWidth=t.width=Ot(a,d),t.outerHeight=t.height=Ot(n,v),t.contentHeight=v,t.contentWidth=d,p&&(t.outerWidth+=p[1]+p[3],t.outerHeight+=p[0]+p[2]);for(var S=0;S<f.length;S++){var C=f[S],j=C.percentWidth;C.width=parseInt(j,10)/100*t.width}return t}function y1(r,e,t,a,n){var i=e==="",o=n&&t.rich[n]||{},s=r.lines,l=o.font||t.font,u=!1,f,v;if(a){var d=o.padding,p=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var y=ln(o.width,a.width)+p;s.length>0&&y+a.accumWidth>a.width&&(f=e.split(`
`),u=!0),a.accumWidth=y}else{var m=E3(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=m.accumWidth+p,v=m.linesWidths,f=m.lines}}else f=e.split(`
`);for(var _=0;_<f.length;_++){var S=f[_],b=new J8;if(b.styleName=n,b.text=S,b.isLineHolder=!S&&!i,typeof o.width=="number"?b.width=o.width:b.width=v?v[_]:va(S,l),!_&&!u){var w=(s[s.length-1]||(s[0]=new lM)).tokens,A=w.length;A===1&&w[0].isLineHolder?w[0]=b:(S||!A||i)&&w.push(b)}else s.push(new lM([b]))}}function rH(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var aH=Nn(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function nH(r){return rH(r)?!!aH[r]:!0}function E3(r,e,t,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,v=0;v<r.length;v++){var d=r.charAt(v);if(d===`
`){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var p=va(d,e),y=a?!1:!nH(d);if(i.length?f+p>t:n+f+p>t){f?(s||l)&&(y?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=d,u+=p,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=d,f=p)):y?(i.push(l),o.push(u),l=d,u=p):(i.push(d),o.push(p));continue}f+=p,y?(l+=d,u+=p):(l&&(s+=l,l="",u=0),s+=d)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}var Yx="__zr_style_"+Math.round(Math.random()*10),Ys={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Kg={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ys[Yx]=!0;var uM=["z","z2","invisible"],iH=["invisible"],Fa=(function(r){De(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=Yt(t),n=0;n<a.length;n++){var i=a[n];i==="style"?this.useStyle(t[i]):r.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,a,n,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&oH(this,t,a)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,a){return this.rectContain(t,a)},e.prototype.traverse=function(t,a){t.call(a,this)},e.prototype.rectContain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();return i.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var a=this.transform,n=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new kt(0,0,0,0)),a?kt.applyTransform(t,n,a):t.copy(n),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new kt(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,a){t!=="style"?r.prototype.attrKV.call(this,t,a):this.style?this.setStyle(a):this.useStyle(a)},e.prototype.setStyle=function(t,a){return typeof t=="string"?this.style[t]=a:et(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=Lf,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Lf)},e.prototype.styleUpdated=function(){this.__dirty&=~Lf},e.prototype.createStyle=function(t){return jg(Ys,t)},e.prototype.useStyle=function(t){t[Yx]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Yx]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.style&&!a.style&&(a.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,a,uM)},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.style?o?i?u=a.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,a.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:n.style),this._mergeStyle(u,a.style)):l&&(u=n.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var v=Yt(f),d=0;d<v.length;d++){var p=v[d];p in u&&(u[p]=u[p],this.style[p]=f[p])}for(var y=Yt(u),d=0;d<y.length;d++){var p=y[d];this.style[p]=this.style[p]}this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var m=this.__inHover?iH:uM,d=0;d<m.length;d++){var p=m[d];a&&a[p]!=null?this[p]=a[p]:l&&n[p]!=null&&(this[p]=n[p])}},e.prototype._mergeStates=function(t){for(var a=r.prototype._mergeStates.call(this,t),n,i=0;i<t.length;i++){var o=t[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(a.style=n),a},e.prototype._mergeStyle=function(t,a){return et(t,a),t},e.prototype.getAnimationStyleProps=function(){return Kg},e.initDefaultProps=(function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=fa|Lf})(),e})(Wg),m1=new kt(0,0,0,0),_1=new kt(0,0,0,0);function oH(r,e,t){return m1.copy(r.getBoundingRect()),r.transform&&m1.applyTransform(r.transform),_1.width=e,_1.height=t,!m1.intersect(_1)}var $r=Math.min,Kr=Math.max,x1=Math.sin,S1=Math.cos,ls=Math.PI*2,Ld=ol(),Ed=ol(),Rd=ol();function Qg(r,e,t){if(r.length!==0){for(var a=r[0],n=a[0],i=a[0],o=a[1],s=a[1],l=1;l<r.length;l++)a=r[l],n=$r(n,a[0]),i=Kr(i,a[0]),o=$r(o,a[1]),s=Kr(s,a[1]);e[0]=n,e[1]=o,t[0]=i,t[1]=s}}function cM(r,e,t,a,n,i){n[0]=$r(r,t),n[1]=$r(e,a),i[0]=Kr(r,t),i[1]=Kr(e,a)}var fM=[],hM=[];function sH(r,e,t,a,n,i,o,s,l,u){var f=qN,v=tr,d=f(r,t,n,o,fM);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<d;p++){var y=v(r,t,n,o,fM[p]);l[0]=$r(y,l[0]),u[0]=Kr(y,u[0])}d=f(e,a,i,s,hM);for(var p=0;p<d;p++){var m=v(e,a,i,s,hM[p]);l[1]=$r(m,l[1]),u[1]=Kr(m,u[1])}l[0]=$r(r,l[0]),u[0]=Kr(r,u[0]),l[0]=$r(o,l[0]),u[0]=Kr(o,u[0]),l[1]=$r(e,l[1]),u[1]=Kr(e,u[1]),l[1]=$r(s,l[1]),u[1]=Kr(s,u[1])}function lH(r,e,t,a,n,i,o,s){var l=KN,u=cr,f=Kr($r(l(r,t,n),1),0),v=Kr($r(l(e,a,i),1),0),d=u(r,t,n,f),p=u(e,a,i,v);o[0]=$r(r,n,d),o[1]=$r(e,i,p),s[0]=Kr(r,n,d),s[1]=Kr(e,i,p)}function uH(r,e,t,a,n,i,o,s,l){var u=vo,f=po,v=Math.abs(n-i);if(v%ls<1e-4&&v>1e-4){s[0]=r-t,s[1]=e-a,l[0]=r+t,l[1]=e+a;return}if(Ld[0]=S1(n)*t+r,Ld[1]=x1(n)*a+e,Ed[0]=S1(i)*t+r,Ed[1]=x1(i)*a+e,u(s,Ld,Ed),f(l,Ld,Ed),n=n%ls,n<0&&(n=n+ls),i=i%ls,i<0&&(i=i+ls),n>i&&!o?i+=ls:n<i&&o&&(n+=ls),o){var d=i;i=n,n=d}for(var p=0;p<i;p+=Math.PI/2)p>n&&(Rd[0]=S1(p)*t+r,Rd[1]=x1(p)*a+e,u(s,Rd,s),f(l,Rd,l))}var pe={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},us=[],cs=[],yn=[],Ji=[],mn=[],_n=[],b1=Math.min,w1=Math.max,fs=Math.cos,hs=Math.sin,ii=Math.abs,Xx=Math.PI,lo=Xx*2,T1=typeof Float32Array<"u",nf=[];function A1(r){var e=Math.round(r/Xx*1e8)/1e8;return e%2*Xx}function R3(r,e){var t=A1(r[0]);t<0&&(t+=lo);var a=t-r[0],n=r[1];n+=a,!e&&n-t>=lo?n=t+lo:e&&t-n>=lo?n=t-lo:!e&&t>n?n=t+(lo-A1(t-n)):e&&t<n&&(n=t-(lo-A1(n-t))),r[0]=t,r[1]=n}var kn=(function(){function r(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 r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,a){a=a||0,a>0&&(this._ux=ii(a/Jp/e)||0,this._uy=ii(a/Jp/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(pe.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var a=ii(e-this._xi),n=ii(t-this._yi),i=a>this._ux||n>this._uy;if(this.addData(pe.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){return this._drawPendingPt(),this.addData(pe.C,e,t,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,a,n){return this._drawPendingPt(),this.addData(pe.Q,e,t,a,n),this._ctx&&this._ctx.quadraticCurveTo(e,t,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(e,t,a,n,i,o){this._drawPendingPt(),nf[0]=n,nf[1]=i,R3(nf,o),n=nf[0],i=nf[1];var s=i-n;return this.addData(pe.A,e,t,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,a,n,i,o),this._xi=fs(i)*a+e,this._yi=hs(i)*a+t,this},r.prototype.arcTo=function(e,t,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,a,n,i),this},r.prototype.rect=function(e,t,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,a,n),this.addData(pe.R,e,t,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(pe.Z);var e=this._ctx,t=this._x0,a=this._y0;return e&&e.closePath(),this._xi=t,this._yi=a,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&T1&&(this.data=new Float32Array(t));for(var a=0;a<t;a++)this.data[a]=e[a];this._len=t},r.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,a=0,n=this._len,i=0;i<t;i++)a+=e[i].len();T1&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+a));for(var i=0;i<t;i++)for(var o=e[i].data,s=0;s<o.length;s++)this.data[n++]=o[s];this._len=n},r.prototype.addData=function(e,t,a,n,i,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var v=0;v<arguments.length;v++)f[this._len++]=arguments[v]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,T1&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){yn[0]=yn[1]=mn[0]=mn[1]=Number.MAX_VALUE,Ji[0]=Ji[1]=_n[0]=_n[1]=-Number.MAX_VALUE;var e=this.data,t=0,a=0,n=0,i=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],a=e[o+1],n=t,i=a),s){case pe.M:t=n=e[o++],a=i=e[o++],mn[0]=n,mn[1]=i,_n[0]=n,_n[1]=i;break;case pe.L:cM(t,a,e[o],e[o+1],mn,_n),t=e[o++],a=e[o++];break;case pe.C:sH(t,a,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],mn,_n),t=e[o++],a=e[o++];break;case pe.Q:lH(t,a,e[o++],e[o++],e[o],e[o+1],mn,_n),t=e[o++],a=e[o++];break;case pe.A:var u=e[o++],f=e[o++],v=e[o++],d=e[o++],p=e[o++],y=e[o++]+p;o+=1;var m=!e[o++];l&&(n=fs(p)*v+u,i=hs(p)*d+f),uH(u,f,v,d,p,y,m,mn,_n),t=fs(y)*v+u,a=hs(y)*d+f;break;case pe.R:n=t=e[o++],i=a=e[o++];var _=e[o++],S=e[o++];cM(n,i,n+_,i+S,mn,_n);break;case pe.Z:t=n,a=i;break}vo(yn,yn,mn),po(Ji,Ji,_n)}return o===0&&(yn[0]=yn[1]=Ji[0]=Ji[1]=0),new kt(yn[0],yn[1],Ji[0]-yn[0],Ji[1]-yn[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,a=this._ux,n=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,v=0,d=0;d<t;){var p=e[d++],y=d===1;y&&(i=e[d],o=e[d+1],s=i,l=o);var m=-1;switch(p){case pe.M:i=s=e[d++],o=l=e[d++];break;case pe.L:{var _=e[d++],S=e[d++],b=_-i,w=S-o;(ii(b)>a||ii(w)>n||d===t-1)&&(m=Math.sqrt(b*b+w*w),i=_,o=S);break}case pe.C:{var A=e[d++],M=e[d++],_=e[d++],S=e[d++],C=e[d++],L=e[d++];m=RG(i,o,A,M,_,S,C,L,10),i=C,o=L;break}case pe.Q:{var A=e[d++],M=e[d++],_=e[d++],S=e[d++];m=NG(i,o,A,M,_,S,10),i=_,o=S;break}case pe.A:var E=e[d++],R=e[d++],N=e[d++],O=e[d++],k=e[d++],G=e[d++],H=G+k;d+=1,e[d++],y&&(s=fs(k)*N+E,l=hs(k)*O+R),m=w1(N,O)*b1(lo,Math.abs(G)),i=fs(H)*N+E,o=hs(H)*O+R;break;case pe.R:{s=i=e[d++],l=o=e[d++];var F=e[d++],B=e[d++];m=F*2+B*2;break}case pe.Z:{var b=s-i,w=l-o;m=Math.sqrt(b*b+w*w),i=s,o=l;break}}m>=0&&(u[v++]=m,f+=m)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,f,v,d,p=t<1,y,m,_=0,S=0,b,w=0,A,M;if(!(p&&(this._pathSegLen||this._calculateLength(),y=this._pathSegLen,m=this._pathLen,b=t*m,!b)))t:for(var C=0;C<o;){var L=a[C++],E=C===1;switch(E&&(u=a[C],f=a[C+1],s=u,l=f),L!==pe.L&&w>0&&(e.lineTo(A,M),w=0),L){case pe.M:s=u=a[C++],l=f=a[C++],e.moveTo(u,f);break;case pe.L:{v=a[C++],d=a[C++];var R=ii(v-u),N=ii(d-f);if(R>n||N>i){if(p){var O=y[S++];if(_+O>b){var k=(b-_)/O;e.lineTo(u*(1-k)+v*k,f*(1-k)+d*k);break t}_+=O}e.lineTo(v,d),u=v,f=d,w=0}else{var G=R*R+N*N;G>w&&(A=v,M=d,w=G)}break}case pe.C:{var H=a[C++],F=a[C++],B=a[C++],j=a[C++],Y=a[C++],K=a[C++];if(p){var O=y[S++];if(_+O>b){var k=(b-_)/O;Lo(u,H,B,Y,k,us),Lo(f,F,j,K,k,cs),e.bezierCurveTo(us[1],cs[1],us[2],cs[2],us[3],cs[3]);break t}_+=O}e.bezierCurveTo(H,F,B,j,Y,K),u=Y,f=K;break}case pe.Q:{var H=a[C++],F=a[C++],B=a[C++],j=a[C++];if(p){var O=y[S++];if(_+O>b){var k=(b-_)/O;ih(u,H,B,k,us),ih(f,F,j,k,cs),e.quadraticCurveTo(us[1],cs[1],us[2],cs[2]);break t}_+=O}e.quadraticCurveTo(H,F,B,j),u=B,f=j;break}case pe.A:var nt=a[C++],U=a[C++],W=a[C++],rt=a[C++],ot=a[C++],ht=a[C++],gt=a[C++],mt=!a[C++],yt=W>rt?W:rt,St=ii(W-rt)>.001,Lt=ot+ht,_t=!1;if(p){var O=y[S++];_+O>b&&(Lt=ot+ht*(b-_)/O,_t=!0),_+=O}if(St&&e.ellipse?e.ellipse(nt,U,W,rt,gt,ot,Lt,mt):e.arc(nt,U,yt,ot,Lt,mt),_t)break t;E&&(s=fs(ot)*W+nt,l=hs(ot)*rt+U),u=fs(Lt)*W+nt,f=hs(Lt)*rt+U;break;case pe.R:s=u=a[C],l=f=a[C+1],v=a[C++],d=a[C++];var Et=a[C++],ge=a[C++];if(p){var O=y[S++];if(_+O>b){var Gt=b-_;e.moveTo(v,d),e.lineTo(v+b1(Gt,Et),d),Gt-=Et,Gt>0&&e.lineTo(v+Et,d+b1(Gt,ge)),Gt-=ge,Gt>0&&e.lineTo(v+w1(Et-Gt,0),d+ge),Gt-=Et,Gt>0&&e.lineTo(v,d+w1(ge-Gt,0));break t}_+=O}e.rect(v,d,Et,ge);break;case pe.Z:if(p){var O=y[S++];if(_+O>b){var k=(b-_)/O;e.lineTo(u*(1-k)+s*k,f*(1-k)+l*k);break t}_+=O}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=pe,r.initDefaultProps=(function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),r})();function co(r,e,t,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>e+s&&o>a+s||o<e-s&&o<a-s||i>r+s&&i>t+s||i<r-s&&i<t-s)return!1;if(r!==t)l=(e-a)/(r-t),u=(r*a-t*e)/(r-t);else return Math.abs(i-r)<=s/2;var f=l*i-o+u,v=f*f/(l*l+1);return v<=s/2*s/2}function cH(r,e,t,a,n,i,o,s,l,u,f){if(l===0)return!1;var v=l;if(f>e+v&&f>a+v&&f>i+v&&f>s+v||f<e-v&&f<a-v&&f<i-v&&f<s-v||u>r+v&&u>t+v&&u>n+v&&u>o+v||u<r-v&&u<t-v&&u<n-v&&u<o-v)return!1;var d=$N(r,e,t,a,n,i,o,s,u,f,null);return d<=v/2}function I3(r,e,t,a,n,i,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>a+u&&l>i+u||l<e-u&&l<a-u&&l<i-u||s>r+u&&s>t+u&&s>n+u||s<r-u&&s<t-u&&s<n-u)return!1;var f=QN(r,e,t,a,n,i,s,l,null);return f<=u/2}var vM=Math.PI*2;function an(r){return r%=vM,r<0&&(r+=vM),r}var of=Math.PI*2;function fH(r,e,t,a,n,i,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>t||f+u<t)return!1;if(Math.abs(a-n)%of<1e-4)return!0;if(i){var v=a;a=an(n),n=an(v)}else a=an(a),n=an(n);a>n&&(n+=of);var d=Math.atan2(l,s);return d<0&&(d+=of),d>=a&&d<=n||d+of>=a&&d+of<=n}function ui(r,e,t,a,n,i){if(i>e&&i>a||i<e&&i<a||a===e)return 0;var o=(i-e)/(a-e),s=a<e?1:-1;(o===1||o===0)&&(s=a<e?.5:-.5);var l=o*(t-r)+r;return l===n?1/0:l>n?s:0}var to=kn.CMD,vs=Math.PI*2,hH=1e-4;function vH(r,e){return Math.abs(r-e)<hH}var Ir=[-1,-1,-1],Pa=[-1,-1];function dH(){var r=Pa[0];Pa[0]=Pa[1],Pa[1]=r}function pH(r,e,t,a,n,i,o,s,l,u){if(u>e&&u>a&&u>i&&u>s||u<e&&u<a&&u<i&&u<s)return 0;var f=qp(e,a,i,s,u,Ir);if(f===0)return 0;for(var v=0,d=-1,p=void 0,y=void 0,m=0;m<f;m++){var _=Ir[m],S=_===0||_===1?.5:1,b=tr(r,t,n,o,_);b<l||(d<0&&(d=qN(e,a,i,s,Pa),Pa[1]<Pa[0]&&d>1&&dH(),p=tr(e,a,i,s,Pa[0]),d>1&&(y=tr(e,a,i,s,Pa[1]))),d===2?_<Pa[0]?v+=p<e?S:-S:_<Pa[1]?v+=y<p?S:-S:v+=s<y?S:-S:_<Pa[0]?v+=p<e?S:-S:v+=s<p?S:-S)}return v}function gH(r,e,t,a,n,i,o,s){if(s>e&&s>a&&s>i||s<e&&s<a&&s<i)return 0;var l=IG(e,a,i,s,Ir);if(l===0)return 0;var u=KN(e,a,i);if(u>=0&&u<=1){for(var f=0,v=cr(e,a,i,u),d=0;d<l;d++){var p=Ir[d]===0||Ir[d]===1?.5:1,y=cr(r,t,n,Ir[d]);y<o||(Ir[d]<u?f+=v<e?p:-p:f+=i<v?p:-p)}return f}else{var p=Ir[0]===0||Ir[0]===1?.5:1,y=cr(r,t,n,Ir[0]);return y<o?0:i<e?p:-p}}function yH(r,e,t,a,n,i,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Ir[0]=-l,Ir[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=vs-1e-4){a=0,n=vs;var f=i?1:-1;return o>=Ir[0]+r&&o<=Ir[1]+r?f:0}if(a>n){var v=a;a=n,n=v}a<0&&(a+=vs,n+=vs);for(var d=0,p=0;p<2;p++){var y=Ir[p];if(y+r>o){var m=Math.atan2(s,y),f=i?1:-1;m<0&&(m=vs+m),(m>=a&&m<=n||m+vs>=a&&m+vs<=n)&&(m>Math.PI/2&&m<Math.PI*1.5&&(f=-f),d+=f)}}return d}function N3(r,e,t,a,n){for(var i=r.data,o=r.len(),s=0,l=0,u=0,f=0,v=0,d,p,y=0;y<o;){var m=i[y++],_=y===1;switch(m===to.M&&y>1&&(t||(s+=ui(l,u,f,v,a,n))),_&&(l=i[y],u=i[y+1],f=l,v=u),m){case to.M:f=i[y++],v=i[y++],l=f,u=v;break;case to.L:if(t){if(co(l,u,i[y],i[y+1],e,a,n))return!0}else s+=ui(l,u,i[y],i[y+1],a,n)||0;l=i[y++],u=i[y++];break;case to.C:if(t){if(cH(l,u,i[y++],i[y++],i[y++],i[y++],i[y],i[y+1],e,a,n))return!0}else s+=pH(l,u,i[y++],i[y++],i[y++],i[y++],i[y],i[y+1],a,n)||0;l=i[y++],u=i[y++];break;case to.Q:if(t){if(I3(l,u,i[y++],i[y++],i[y],i[y+1],e,a,n))return!0}else s+=gH(l,u,i[y++],i[y++],i[y],i[y+1],a,n)||0;l=i[y++],u=i[y++];break;case to.A:var S=i[y++],b=i[y++],w=i[y++],A=i[y++],M=i[y++],C=i[y++];y+=1;var L=!!(1-i[y++]);d=Math.cos(M)*w+S,p=Math.sin(M)*A+b,_?(f=d,v=p):s+=ui(l,u,d,p,a,n);var E=(a-S)*A/w+S;if(t){if(fH(S,b,A,M,M+C,L,e,E,n))return!0}else s+=yH(S,b,A,M,M+C,L,E,n);l=Math.cos(M+C)*w+S,u=Math.sin(M+C)*A+b;break;case to.R:f=l=i[y++],v=u=i[y++];var R=i[y++],N=i[y++];if(d=f+R,p=v+N,t){if(co(f,v,d,v,e,a,n)||co(d,v,d,p,e,a,n)||co(d,p,f,p,e,a,n)||co(f,p,f,v,e,a,n))return!0}else s+=ui(d,v,d,p,a,n),s+=ui(f,p,f,v,a,n);break;case to.Z:if(t){if(co(l,u,f,v,e,a,n))return!0}else s+=ui(l,u,f,v,a,n);l=f,u=v;break}}return!t&&!vH(u,v)&&(s+=ui(l,u,f,v,a,n)||0),s!==0}function mH(r,e,t){return N3(r,0,!1,e,t)}function _H(r,e,t,a){return N3(r,e,!0,t,a)}var rg=wt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ys),xH={style:wt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Kg.style)},D1=On.concat(["invisible","culling","z","z2","zlevel","parent"]),Ut=(function(r){De(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){t.buildPath(l,t.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s<D1.length;++s)n[D1[s]]=this[D1[s]];n.__dirty|=fa}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var a=Yt(t);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var i=0;i<a.length;i++){var o=a[i],s=t[o];o==="style"?this.style?et(this.style,s):this.useStyle(s):o==="shape"?et(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if(vt(t)){var a=Kp(t,0);return a>.5?Hx:a>.2?o8:Ux}else if(t)return Ux}return Hx},e.prototype.getInsideTextStroke=function(t){var a=this.style.fill;if(vt(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=Kp(t,0)<Gx;if(i===o)return a}},e.prototype.buildPath=function(t,a,n){},e.prototype.pathUpdated=function(){this.__dirty&=~mu},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new kn(!1)},e.prototype.hasStroke=function(){var t=this.style,a=t.stroke;return!(a==null||a==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,a=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&mu)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){s.copy(t);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect(),o=this.style;if(t=n[0],a=n[1],i.contain(t,a)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),_H(s,l/u,t,a)))return!0}if(this.hasFill())return mH(s,t,a)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=mu,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,a){t==="shape"?this.setShape(a):r.prototype.attrKV.call(this,t,a)},e.prototype.setShape=function(t,a){var n=this.shape;return n||(n=this.shape={}),typeof t=="string"?n[t]=a:et(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&mu)},e.prototype.createStyle=function(t){return jg(rg,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.shape&&!a.shape&&(a.shape=et({},this.shape))},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=et({},n.shape),et(u,a.shape)):(u=et({},i?this.shape:n.shape),et(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=et({},this.shape);for(var f={},v=Yt(u),d=0;d<v.length;d++){var p=v[d];typeof u[p]=="object"?this.shape[p]=u[p]:f[p]=u[p]}this._transitionState(t,{shape:f},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(t){for(var a=r.prototype._mergeStates.call(this,t),n,i=0;i<t.length;i++){var o=t[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(a.shape=n),a},e.prototype.getAnimationStyleProps=function(){return xH},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var a=(function(i){De(o,i);function o(s){var l=i.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Dt(t.style)},o.prototype.getDefaultShape=function(){return Dt(t.shape)},o})(e);for(var n in t)typeof t[n]=="function"&&(a.prototype[n]=t[n]);return a},e.initDefaultProps=(function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=fa|Lf|mu})(),e})(Fa),SH=wt({strokeFirst:!0,font:Co,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},rg),Iu=(function(r){De(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var t=this.style,a=t.stroke;return a!=null&&a!=="none"&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.createStyle=function(t){return jg(SH,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var a=t.text;a!=null?a+="":a="";var n=Nh(a,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=(function(){var t=e.prototype;t.dirtyRectTolerance=10})(),e})(Fa);Iu.prototype.type="tspan";var bH=wt({x:0,y:0},Ys),wH={style:wt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Kg.style)};function TH(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var hr=(function(r){De(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return jg(bH,t)},e.prototype._getSize=function(t){var a=this.style,n=a[t];if(n!=null)return n;var i=TH(a.image)?a.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=a[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return wH},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new kt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Fa);hr.prototype.type="image";function AH(r,e){var t=e.x,a=e.y,n=e.width,i=e.height,o=e.r,s,l,u,f;n<0&&(t=t+n,n=-n),i<0&&(a=a+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var v;s+l>n&&(v=s+l,s*=n/v,l*=n/v),u+f>n&&(v=u+f,u*=n/v,f*=n/v),l+u>i&&(v=l+u,l*=i/v,u*=i/v),s+f>i&&(v=s+f,s*=i/v,f*=i/v),r.moveTo(t+s,a),r.lineTo(t+n-l,a),l!==0&&r.arc(t+n-l,a+l,l,-Math.PI/2,0),r.lineTo(t+n,a+i-u),u!==0&&r.arc(t+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(t+f,a+i),f!==0&&r.arc(t+f,a+i-f,f,Math.PI/2,Math.PI),r.lineTo(t,a+s),s!==0&&r.arc(t+s,a+s,s,Math.PI,Math.PI*1.5)}var Tu=Math.round;function P3(r,e,t){if(e){var a=e.x1,n=e.x2,i=e.y1,o=e.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=t&&t.lineWidth;return s&&(Tu(a*2)===Tu(n*2)&&(r.x1=r.x2=zs(a,s,!0)),Tu(i*2)===Tu(o*2)&&(r.y1=r.y2=zs(i,s,!0))),r}}function O3(r,e,t){if(e){var a=e.x,n=e.y,i=e.width,o=e.height;r.x=a,r.y=n,r.width=i,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=zs(a,s,!0),r.y=zs(n,s,!0),r.width=Math.max(zs(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(zs(n+o,s,!1)-r.y,o===0?0:1)),r}}function zs(r,e,t){if(!e)return r;var a=Tu(r*2);return(a+Tu(e))%2===0?a/2:(a+(t?1:-1))/2}var DH=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),CH={},Wt=(function(r){De(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new DH},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=O3(CH,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?AH(t,a):t.rect(n,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(Ut);Wt.prototype.type="rect";var dM={fill:"#000"},pM=2,MH={style:wt({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},Kg.style)},$t=(function(r){De(e,r);function e(t){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=dM,a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var a=this._children[t];a.zlevel=this.zlevel,a.z=this.z,a.z2=this.z2,a.culling=this.culling,a.cursor=this.cursor,a.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var a=this.innerTransformable;return a?a.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,RH(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var a=0;a<this._children.length;a++)this._children[a].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var a=0;a<this._children.length;a++)this._children[a].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new kt(0,0,0,0),a=this._children,n=[],i=null,o=0;o<a.length;o++){var s=a[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(t.copy(l),t.applyTransform(u),i=i||t.clone(),i.union(t)):(i=i||l.clone(),i.union(l))}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||dM},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,a){if(!a)return t;var n=a.rich,i=t.rich||n&&{};return et(t,a),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,a){for(var n=Yt(a),i=0;i<n.length;i++){var o=n[i];t[o]=t[o]||{},et(t[o],a[o])}},e.prototype.getAnimationStyleProps=function(){return MH},e.prototype._getOrCreateChild=function(t){var a=this._children[this._childCursor];return(!a||!(a instanceof t))&&(a=new t),this._children[this._childCursor++]=a,a.__zr=this.__zr,a.parent=this,a},e.prototype._updatePlainTexts=function(){var t=this.style,a=t.font||Co,n=t.padding,i=bM(t),o=Q8(i,t),s=C1(t),l=!!t.backgroundColor,u=o.outerHeight,f=o.outerWidth,v=o.contentWidth,d=o.lines,p=o.lineHeight,y=this._defaultStyle,m=t.x||0,_=t.y||0,S=t.align||y.align||"left",b=t.verticalAlign||y.verticalAlign||"top",w=m,A=_u(_,o.contentHeight,b);if(s||n){var M=Rf(m,f,S),C=_u(_,u,b);s&&this._renderBackground(t,t,M,C,f,u)}A+=p/2,n&&(w=SM(m,S,n),b==="top"?A+=n[0]:b==="bottom"&&(A-=n[2]));for(var L=0,E=!1,R=xM("fill"in t?t.fill:(E=!0,y.fill)),N=_M("stroke"in t?t.stroke:!l&&(!y.autoStroke||E)?(L=pM,y.stroke):null),O=t.textShadowBlur>0,k=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),G=o.calculatedLineHeight,H=0;H<d.length;H++){var F=this._getOrCreateChild(Iu),B=F.createStyle();F.useStyle(B),B.text=d[H],B.x=w,B.y=A,B.textAlign=S,B.textBaseline="middle",B.opacity=t.opacity,B.strokeFirst=!0,O&&(B.shadowBlur=t.textShadowBlur||0,B.shadowColor=t.textShadowColor||"transparent",B.shadowOffsetX=t.textShadowOffsetX||0,B.shadowOffsetY=t.textShadowOffsetY||0),B.stroke=N,B.fill=R,N&&(B.lineWidth=t.lineWidth||L,B.lineDash=t.lineDash,B.lineDashOffset=t.lineDashOffset||0),B.font=a,yM(B,t),A+=p,k&&F.setBoundingRect(new kt(Rf(B.x,t.width,B.textAlign),_u(B.y,G,B.textBaseline),v,G))}},e.prototype._updateRichTexts=function(){var t=this.style,a=bM(t),n=eH(a,t),i=n.width,o=n.outerWidth,s=n.outerHeight,l=t.padding,u=t.x||0,f=t.y||0,v=this._defaultStyle,d=t.align||v.align,p=t.verticalAlign||v.verticalAlign,y=Rf(u,o,d),m=_u(f,s,p),_=y,S=m;l&&(_+=l[3],S+=l[0]);var b=_+i;C1(t)&&this._renderBackground(t,t,y,m,o,s);for(var w=!!t.backgroundColor,A=0;A<n.lines.length;A++){for(var M=n.lines[A],C=M.tokens,L=C.length,E=M.lineHeight,R=M.width,N=0,O=_,k=b,G=L-1,H=void 0;N<L&&(H=C[N],!H.align||H.align==="left");)this._placeToken(H,t,E,S,O,"left",w),R-=H.width,O+=H.width,N++;for(;G>=0&&(H=C[G],H.align==="right");)this._placeToken(H,t,E,S,k,"right",w),R-=H.width,k-=H.width,G--;for(O+=(i-(O-_)-(b-k)-R)/2;N<=G;)H=C[N],this._placeToken(H,t,E,S,O+H.width/2,"center",w),O+=H.width,N++;S+=E}},e.prototype._placeToken=function(t,a,n,i,o,s,l){var u=a.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,v=i+n/2;f==="top"?v=i+t.height/2:f==="bottom"&&(v=i+n-t.height/2);var d=!t.isLineHolder&&C1(u);d&&this._renderBackground(u,a,s==="right"?o-t.width:s==="center"?o-t.width/2:o,v-t.height/2,t.width,t.height);var p=!!u.backgroundColor,y=t.textPadding;y&&(o=SM(o,s,y),v-=t.height/2-y[0]-t.innerHeight/2);var m=this._getOrCreateChild(Iu),_=m.createStyle();m.useStyle(_);var S=this._defaultStyle,b=!1,w=0,A=xM("fill"in u?u.fill:"fill"in a?a.fill:(b=!0,S.fill)),M=_M("stroke"in u?u.stroke:"stroke"in a?a.stroke:!p&&!l&&(!S.autoStroke||b)?(w=pM,S.stroke):null),C=u.textShadowBlur>0||a.textShadowBlur>0;_.text=t.text,_.x=o,_.y=v,C&&(_.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,_.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",_.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,_.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),_.textAlign=s,_.textBaseline="middle",_.font=t.font||Co,_.opacity=Rn(u.opacity,a.opacity,1),yM(_,u),M&&(_.lineWidth=Rn(u.lineWidth,a.lineWidth,w),_.lineDash=Ot(u.lineDash,a.lineDash),_.lineDashOffset=a.lineDashOffset||0,_.stroke=M),A&&(_.fill=A);var L=t.contentWidth,E=t.contentHeight;m.setBoundingRect(new kt(Rf(_.x,L,_.textAlign),_u(_.y,E,_.textBaseline),L,E))},e.prototype._renderBackground=function(t,a,n,i,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,v=l&&l.image,d=l&&!v,p=t.borderRadius,y=this,m,_;if(d||t.lineHeight||u&&f){m=this._getOrCreateChild(Wt),m.useStyle(m.createStyle()),m.style.fill=null;var S=m.shape;S.x=n,S.y=i,S.width=o,S.height=s,S.r=p,m.dirtyShape()}if(d){var b=m.style;b.fill=l||null,b.fillOpacity=Ot(t.fillOpacity,1)}else if(v){_=this._getOrCreateChild(hr),_.onload=function(){y.dirtyStyle()};var w=_.style;w.image=l.image,w.x=n,w.y=i,w.width=o,w.height=s}if(u&&f){var b=m.style;b.lineWidth=u,b.stroke=f,b.strokeOpacity=Ot(t.strokeOpacity,1),b.lineDash=t.borderDash,b.lineDashOffset=t.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var A=(m||_).style;A.shadowBlur=t.shadowBlur||0,A.shadowColor=t.shadowColor||"transparent",A.shadowOffsetX=t.shadowOffsetX||0,A.shadowOffsetY=t.shadowOffsetY||0,A.opacity=Rn(t.opacity,a.opacity,1)},e.makeFont=function(t){var a="";return k3(t)&&(a=[t.fontStyle,t.fontWeight,z3(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),a&&rn(a)||t.textFont||t.font},e})(Fa),LH={left:!0,right:1,center:1},EH={top:1,bottom:1,middle:1},gM=["fontStyle","fontWeight","fontSize","fontFamily"];function z3(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?cb+"px":r+"px"}function yM(r,e){for(var t=0;t<gM.length;t++){var a=gM[t],n=e[a];n!=null&&(r[a]=n)}}function k3(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function RH(r){return mM(r),P(r.rich,mM),r}function mM(r){if(r){r.font=$t.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||LH[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||EH[t]?t:"top";var a=r.padding;a&&(r.padding=gb(r.padding))}}function _M(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function xM(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function SM(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function bM(r){var e=r.text;return e!=null&&(e+=""),e}function C1(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var Rt=Kt(),Zx=function(r,e,t,a){if(a){var n=Rt(a);n.dataIndex=t,n.dataType=e,n.seriesIndex=r,a.type==="group"&&a.traverse(function(i){var o=Rt(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e})}},wM=1,TM={},B3=Kt(),Mb=Kt(),Lb=0,Oh=1,Jg=2,kr=["emphasis","blur","select"],uh=["normal","emphasis","blur","select"],Xu=10,IH=9,Xs="highlight",Rp="downplay",Zf="select",Ip="unselect",Wf="toggleSelect";function eu(r){return r!=null&&r!=="none"}var AM=new Ih(100);function DM(r){if(vt(r)){var e=AM.get(r);return e||(e=Nx(r,-.1),AM.put(r,e)),e}else if(Fg(r)){var t=et({},r);return t.colorStops=st(r.colorStops,function(a){return{offset:a.offset,color:Nx(a.color,-.1)}}),t}return r}function ty(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function V3(r){ty(r,"emphasis",Jg)}function G3(r){r.hoverState===Jg&&ty(r,"normal",Lb)}function Eb(r){ty(r,"blur",Oh)}function H3(r){r.hoverState===Oh&&ty(r,"normal",Lb)}function NH(r){r.selected=!0}function PH(r){r.selected=!1}function CM(r,e,t){e(r,t)}function Ai(r,e,t){CM(r,e,t),r.isGroup&&r.traverse(function(a){CM(a,e,t)})}function ag(r,e){switch(e){case"emphasis":r.hoverState=Jg;break;case"normal":r.hoverState=Lb;break;case"blur":r.hoverState=Oh;break;case"select":r.selected=!0}}function OH(r,e,t,a){for(var n=r.style,i={},o=0;o<e.length;o++){var s=e[o],l=n[s];i[s]=l??(a&&a[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(i,e)}return i}function zH(r,e,t,a){var n=t&&Vt(t,"select")>=0,i=!1;if(r instanceof Ut){var o=B3(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(eu(s)||eu(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=et({},a),u=et({},u),u.fill=s):!eu(u.fill)&&eu(s)?(i=!0,a=et({},a),u=et({},u),u.fill=DM(s)):!eu(u.stroke)&&eu(l)&&(i||(a=et({},a),u=et({},u)),u.stroke=DM(l)),a.style=u}}if(a&&a.z2==null){i||(a=et({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f??Xu)}return a}function kH(r,e,t){if(t&&t.z2==null){t=et({},t);var a=r.z2SelectLift;t.z2=r.z2+(a??IH)}return t}function BH(r,e,t){var a=Vt(r.currentStates,e)>=0,n=r.style.opacity,i=a?null:OH(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=et({},t),o=et({opacity:a?n:i.opacity*.1},o),t.style=o),t}function M1(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return zH(this,r,e,t);if(r==="blur")return BH(this,r,t);if(r==="select")return kH(this,r,t)}return t}function rl(r){r.stateProxy=M1;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=M1),t&&(t.stateProxy=M1)}function MM(r,e){!Y3(r,e)&&!r.__highByOuter&&Ai(r,V3)}function LM(r,e){!Y3(r,e)&&!r.__highByOuter&&Ai(r,G3)}function _i(r,e){r.__highByOuter|=1<<(e||0),Ai(r,V3)}function xi(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Ai(r,G3)}function U3(r){Ai(r,Eb)}function Rb(r){Ai(r,H3)}function F3(r){Ai(r,NH)}function j3(r){Ai(r,PH)}function Y3(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function X3(r){var e=r.getModel(),t=[],a=[];e.eachComponent(function(n,i){var o=Mb(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){H3(u)}),s&&t.push(i)),o.isBlured=!1}),P(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function Wx(r,e,t,a){var n=a.getModel();t=t||"coordinateSystem";function i(u,f){for(var v=0;v<f.length;v++){var d=u.getItemGraphicEl(f[v]);d&&Rb(d)}}if(r!=null&&!(!e||e==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,v=u.coordinateSystem;v&&v.master&&(v=v.master);var d=v&&s?v===s:f;if(!(t==="series"&&!f||t==="coordinateSystem"&&!d||e==="series"&&f)){var p=a.getViewOfSeriesModel(u);if(p.group.traverse(function(_){_.__highByOuter&&f&&e==="self"||Eb(_)}),Dr(e))i(u.getData(),e);else if(Tt(e))for(var y=Yt(e),m=0;m<y.length;m++)i(u.getData(y[m]),e[y[m]]);l.push(u),Mb(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var v=a.getViewOfComponentModel(f);v&&v.toggleBlurSeries&&v.toggleBlurSeries(l,!0,n)}})}}function qx(r,e,t){if(!(r==null||e==null)){var a=t.getModel().getComponent(r,e);if(a){Mb(a).isBlured=!0;var n=t.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){Eb(i)})}}}function VH(r,e,t){var a=r.seriesIndex,n=r.getData(e.dataType);if(n){var i=tl(n,e);i=(it(i)?i[0]:i)||0;var o=n.getItemGraphicEl(i);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=Rt(o);Wx(a,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),v=r.get(["emphasis","blurScope"]);f!=null&&Wx(a,f,v,t)}}}function Ib(r,e,t,a){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return n;var i=a.getModel().getComponent(r,e);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(Rt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function GH(r,e,t){var a=Rt(r),n=Ib(a.componentMainType,a.componentIndex,a.componentHighDownName,t),i=n.dispatchers,o=n.focusSelf;i?(o&&qx(a.componentMainType,a.componentIndex,t),P(i,function(s){return MM(s,e)})):(Wx(a.seriesIndex,a.focus,a.blurScope,t),a.focus==="self"&&qx(a.componentMainType,a.componentIndex,t),MM(r,e))}function HH(r,e,t){X3(t);var a=Rt(r),n=Ib(a.componentMainType,a.componentIndex,a.componentHighDownName,t).dispatchers;n?P(n,function(i){return LM(i,e)}):LM(r,e)}function UH(r,e,t){if(Kx(e)){var a=e.dataType,n=r.getData(a),i=tl(n,e);it(i)||(i=[i]),r[e.type===Wf?"toggleSelect":e.type===Zf?"select":"unselect"](i,a)}}function EM(r){var e=r.getAllData();P(e,function(t){var a=t.data,n=t.type;a.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?F3(i):j3(i)})})}function FH(r){var e=[];return r.eachSeries(function(t){var a=t.getAllData();P(a,function(n){n.data;var i=n.type,o=t.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Zs(r,e,t){ks(r,!0),Ai(r,rl),$x(r,e,t)}function jH(r){ks(r,!1)}function Pe(r,e,t,a){a?jH(r):Zs(r,e,t)}function $x(r,e,t){var a=Rt(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var RM=["emphasis","blur","select"],YH={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function xr(r,e,t,a){t=t||"itemStyle";for(var n=0;n<RM.length;n++){var i=RM[n],o=e.getModel([i,t]),s=r.ensureState(i);s.style=a?a(o):o[YH[t]]()}}function ks(r,e){var t=e===!1,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!t)}function ch(r){return!!(r&&r.__highDownDispatcher)}function XH(r,e,t){var a=Rt(r);a.componentMainType=e.mainType,a.componentIndex=e.componentIndex,a.componentHighDownName=t}function ZH(r){var e=TM[r];return e==null&&wM<=32&&(e=TM[r]=wM++),e}function Kx(r){var e=r.type;return e===Zf||e===Ip||e===Wf}function IM(r){var e=r.type;return e===Xs||e===Rp}function WH(r){var e=B3(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var ru=kn.CMD,qH=[[],[],[]],NM=Math.sqrt,$H=Math.atan2;function Z3(r,e){if(e){var t=r.data,a=r.len(),n,i,o,s,l,u,f=ru.M,v=ru.C,d=ru.L,p=ru.R,y=ru.A,m=ru.Q;for(o=0,s=0;o<a;){switch(n=t[o++],s=o,i=0,n){case f:i=1;break;case d:i=1;break;case v:i=3;break;case m:i=2;break;case y:var _=e[4],S=e[5],b=NM(e[0]*e[0]+e[1]*e[1]),w=NM(e[2]*e[2]+e[3]*e[3]),A=$H(-e[1]/w,e[0]/b);t[o]*=b,t[o++]+=_,t[o]*=w,t[o++]+=S,t[o++]*=b,t[o++]*=w,t[o++]+=A,t[o++]+=A,o+=2,s=o;break;case p:u[0]=t[o++],u[1]=t[o++],_r(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],_r(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<i;l++){var M=qH[l];M[0]=t[o++],M[1]=t[o++],_r(M,M,e),t[s++]=M[0],t[s++]=M[1]}}r.increaseVersion()}}var L1=Math.sqrt,Id=Math.sin,Nd=Math.cos,sf=Math.PI;function PM(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Qx(r,e){return(r[0]*e[0]+r[1]*e[1])/(PM(r)*PM(e))}function OM(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(Qx(r,e))}function zM(r,e,t,a,n,i,o,s,l,u,f){var v=l*(sf/180),d=Nd(v)*(r-t)/2+Id(v)*(e-a)/2,p=-1*Id(v)*(r-t)/2+Nd(v)*(e-a)/2,y=d*d/(o*o)+p*p/(s*s);y>1&&(o*=L1(y),s*=L1(y));var m=(n===i?-1:1)*L1((o*o*(s*s)-o*o*(p*p)-s*s*(d*d))/(o*o*(p*p)+s*s*(d*d)))||0,_=m*o*p/s,S=m*-s*d/o,b=(r+t)/2+Nd(v)*_-Id(v)*S,w=(e+a)/2+Id(v)*_+Nd(v)*S,A=OM([1,0],[(d-_)/o,(p-S)/s]),M=[(d-_)/o,(p-S)/s],C=[(-1*d-_)/o,(-1*p-S)/s],L=OM(M,C);if(Qx(M,C)<=-1&&(L=sf),Qx(M,C)>=1&&(L=0),L<0){var E=Math.round(L/sf*1e6)/1e6;L=sf*2+E%2*sf}f.addData(u,b,w,o,s,A,L,v,i)}var KH=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,QH=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function JH(r){var e=new kn;if(!r)return e;var t=0,a=0,n=t,i=a,o,s=kn.CMD,l=r.match(KH);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],v=f.charAt(0),d=void 0,p=f.match(QH)||[],y=p.length,m=0;m<y;m++)p[m]=parseFloat(p[m]);for(var _=0;_<y;){var S=void 0,b=void 0,w=void 0,A=void 0,M=void 0,C=void 0,L=void 0,E=t,R=a,N=void 0,O=void 0;switch(v){case"l":t+=p[_++],a+=p[_++],d=s.L,e.addData(d,t,a);break;case"L":t=p[_++],a=p[_++],d=s.L,e.addData(d,t,a);break;case"m":t+=p[_++],a+=p[_++],d=s.M,e.addData(d,t,a),n=t,i=a,v="l";break;case"M":t=p[_++],a=p[_++],d=s.M,e.addData(d,t,a),n=t,i=a,v="L";break;case"h":t+=p[_++],d=s.L,e.addData(d,t,a);break;case"H":t=p[_++],d=s.L,e.addData(d,t,a);break;case"v":a+=p[_++],d=s.L,e.addData(d,t,a);break;case"V":a=p[_++],d=s.L,e.addData(d,t,a);break;case"C":d=s.C,e.addData(d,p[_++],p[_++],p[_++],p[_++],p[_++],p[_++]),t=p[_-2],a=p[_-1];break;case"c":d=s.C,e.addData(d,p[_++]+t,p[_++]+a,p[_++]+t,p[_++]+a,p[_++]+t,p[_++]+a),t+=p[_-2],a+=p[_-1];break;case"S":S=t,b=a,N=e.len(),O=e.data,o===s.C&&(S+=t-O[N-4],b+=a-O[N-3]),d=s.C,E=p[_++],R=p[_++],t=p[_++],a=p[_++],e.addData(d,S,b,E,R,t,a);break;case"s":S=t,b=a,N=e.len(),O=e.data,o===s.C&&(S+=t-O[N-4],b+=a-O[N-3]),d=s.C,E=t+p[_++],R=a+p[_++],t+=p[_++],a+=p[_++],e.addData(d,S,b,E,R,t,a);break;case"Q":E=p[_++],R=p[_++],t=p[_++],a=p[_++],d=s.Q,e.addData(d,E,R,t,a);break;case"q":E=p[_++]+t,R=p[_++]+a,t+=p[_++],a+=p[_++],d=s.Q,e.addData(d,E,R,t,a);break;case"T":S=t,b=a,N=e.len(),O=e.data,o===s.Q&&(S+=t-O[N-4],b+=a-O[N-3]),t=p[_++],a=p[_++],d=s.Q,e.addData(d,S,b,t,a);break;case"t":S=t,b=a,N=e.len(),O=e.data,o===s.Q&&(S+=t-O[N-4],b+=a-O[N-3]),t+=p[_++],a+=p[_++],d=s.Q,e.addData(d,S,b,t,a);break;case"A":w=p[_++],A=p[_++],M=p[_++],C=p[_++],L=p[_++],E=t,R=a,t=p[_++],a=p[_++],d=s.A,zM(E,R,t,a,C,L,w,A,M,d,e);break;case"a":w=p[_++],A=p[_++],M=p[_++],C=p[_++],L=p[_++],E=t,R=a,t+=p[_++],a+=p[_++],d=s.A,zM(E,R,t,a,C,L,w,A,M,d,e);break}}(v==="z"||v==="Z")&&(d=s.Z,e.addData(d),t=n,a=i),o=d}return e.toStatic(),e}var W3=(function(r){De(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e})(Ut);function q3(r){return r.setData!=null}function $3(r,e){var t=JH(r),a=et({},e);return a.buildPath=function(n){if(q3(n)){n.setData(t.data);var i=n.getContext();i&&n.rebuildPath(i,1)}else{var i=n;t.rebuildPath(i,1)}},a.applyTransform=function(n){Z3(t,n),this.dirtyShape()},a}function K3(r,e){return new W3($3(r,e))}function t9(r,e){var t=$3(r,e),a=(function(n){De(i,n);function i(o){var s=n.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return i})(W3);return a}function e9(r,e){for(var t=[],a=r.length,n=0;n<a;n++){var i=r[n];t.push(i.getUpdatedPathProxy(!0))}var o=new Ut(e);return o.createPathProxy(),o.buildPath=function(s){if(q3(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Nb(r,e){e=e||{};var t=new Ut;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?Z3(t.path,r.getComputedTransform()):e.toLocal?t.setLocalTransform(r.getComputedTransform()):t.copyTransform(r),t.buildPath=r.buildPath,t.applyTransform=t.applyTransform,t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t}var r9=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),un=(function(r){De(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new r9},e.prototype.buildPath=function(t,a){t.moveTo(a.cx+a.r,a.cy),t.arc(a.cx,a.cy,a.r,0,Math.PI*2)},e})(Ut);un.prototype.type="circle";var a9=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),ey=(function(r){De(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new a9},e.prototype.buildPath=function(t,a){var n=.5522848,i=a.cx,o=a.cy,s=a.rx,l=a.ry,u=s*n,f=l*n;t.moveTo(i-s,o),t.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),t.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),t.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),t.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),t.closePath()},e})(Ut);ey.prototype.type="ellipse";var Q3=Math.PI,E1=Q3*2,ds=Math.sin,au=Math.cos,n9=Math.acos,wr=Math.atan2,kM=Math.abs,qf=Math.sqrt,If=Math.max,xn=Math.min,Qa=1e-4;function i9(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,f=o-n,v=s-i,d=v*l-f*u;if(!(d*d<Qa))return d=(f*(e-i)-v*(r-n))/d,[r+d*l,e+d*u]}function Pd(r,e,t,a,n,i,o){var s=r-t,l=e-a,u=(o?i:-i)/qf(s*s+l*l),f=u*l,v=-u*s,d=r+f,p=e+v,y=t+f,m=a+v,_=(d+y)/2,S=(p+m)/2,b=y-d,w=m-p,A=b*b+w*w,M=n-i,C=d*m-y*p,L=(w<0?-1:1)*qf(If(0,M*M*A-C*C)),E=(C*w-b*L)/A,R=(-C*b-w*L)/A,N=(C*w+b*L)/A,O=(-C*b+w*L)/A,k=E-_,G=R-S,H=N-_,F=O-S;return k*k+G*G>H*H+F*F&&(E=N,R=O),{cx:E,cy:R,x0:-f,y0:-v,x1:E*(n/M-1),y1:R*(n/M-1)}}function o9(r){var e;if(it(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function s9(r,e){var t,a=If(e.r,0),n=If(e.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,v=e.cy,d=!!e.clockwise,p=kM(u-l),y=p>E1&&p%E1;if(y>Qa&&(p=y),!(a>Qa))r.moveTo(f,v);else if(p>E1-Qa)r.moveTo(f+a*au(l),v+a*ds(l)),r.arc(f,v,a,l,u,!d),n>Qa&&(r.moveTo(f+n*au(u),v+n*ds(u)),r.arc(f,v,n,u,l,d));else{var m=void 0,_=void 0,S=void 0,b=void 0,w=void 0,A=void 0,M=void 0,C=void 0,L=void 0,E=void 0,R=void 0,N=void 0,O=void 0,k=void 0,G=void 0,H=void 0,F=a*au(l),B=a*ds(l),j=n*au(u),Y=n*ds(u),K=p>Qa;if(K){var nt=e.cornerRadius;nt&&(t=o9(nt),m=t[0],_=t[1],S=t[2],b=t[3]);var U=kM(a-n)/2;if(w=xn(U,S),A=xn(U,b),M=xn(U,m),C=xn(U,_),R=L=If(w,A),N=E=If(M,C),(L>Qa||E>Qa)&&(O=a*au(u),k=a*ds(u),G=n*au(l),H=n*ds(l),p<Q3)){var W=i9(F,B,G,H,O,k,j,Y);if(W){var rt=F-W[0],ot=B-W[1],ht=O-W[0],gt=k-W[1],mt=1/ds(n9((rt*ht+ot*gt)/(qf(rt*rt+ot*ot)*qf(ht*ht+gt*gt)))/2),yt=qf(W[0]*W[0]+W[1]*W[1]);R=xn(L,(a-yt)/(mt+1)),N=xn(E,(n-yt)/(mt-1))}}}if(!K)r.moveTo(f+F,v+B);else if(R>Qa){var St=xn(S,R),Lt=xn(b,R),_t=Pd(G,H,F,B,a,St,d),Et=Pd(O,k,j,Y,a,Lt,d);r.moveTo(f+_t.cx+_t.x0,v+_t.cy+_t.y0),R<L&&St===Lt?r.arc(f+_t.cx,v+_t.cy,R,wr(_t.y0,_t.x0),wr(Et.y0,Et.x0),!d):(St>0&&r.arc(f+_t.cx,v+_t.cy,St,wr(_t.y0,_t.x0),wr(_t.y1,_t.x1),!d),r.arc(f,v,a,wr(_t.cy+_t.y1,_t.cx+_t.x1),wr(Et.cy+Et.y1,Et.cx+Et.x1),!d),Lt>0&&r.arc(f+Et.cx,v+Et.cy,Lt,wr(Et.y1,Et.x1),wr(Et.y0,Et.x0),!d))}else r.moveTo(f+F,v+B),r.arc(f,v,a,l,u,!d);if(!(n>Qa)||!K)r.lineTo(f+j,v+Y);else if(N>Qa){var St=xn(m,N),Lt=xn(_,N),_t=Pd(j,Y,O,k,n,-Lt,d),Et=Pd(F,B,G,H,n,-St,d);r.lineTo(f+_t.cx+_t.x0,v+_t.cy+_t.y0),N<E&&St===Lt?r.arc(f+_t.cx,v+_t.cy,N,wr(_t.y0,_t.x0),wr(Et.y0,Et.x0),!d):(Lt>0&&r.arc(f+_t.cx,v+_t.cy,Lt,wr(_t.y0,_t.x0),wr(_t.y1,_t.x1),!d),r.arc(f,v,n,wr(_t.cy+_t.y1,_t.cx+_t.x1),wr(Et.cy+Et.y1,Et.cx+Et.x1),d),St>0&&r.arc(f+Et.cx,v+Et.cy,St,wr(Et.y1,Et.x1),wr(Et.y0,Et.x0),!d))}else r.lineTo(f+j,v+Y),r.arc(f,v,n,u,l,d)}r.closePath()}}}var l9=(function(){function r(){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 r})(),Br=(function(r){De(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new l9},e.prototype.buildPath=function(t,a){s9(t,a)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(Ut);Br.prototype.type="sector";var u9=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),zh=(function(r){De(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new u9},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.PI*2;t.moveTo(n+a.r,i),t.arc(n,i,a.r,0,o,!1),t.moveTo(n+a.r0,i),t.arc(n,i,a.r0,0,o,!0)},e})(Ut);zh.prototype.type="ring";function c9(r,e,t,a){var n=[],i=[],o=[],s=[],l,u,f,v;if(a){f=[1/0,1/0],v=[-1/0,-1/0];for(var d=0,p=r.length;d<p;d++)vo(f,f,r[d]),po(v,v,r[d]);vo(f,f,a[0]),po(v,v,a[1])}for(var d=0,p=r.length;d<p;d++){var y=r[d];if(t)l=r[d?d-1:p-1],u=r[(d+1)%p];else if(d===0||d===p-1){n.push(hi(r[d]));continue}else l=r[d-1],u=r[d+1];Os(i,u,l),Tp(i,i,e);var m=Ax(y,l),_=Ax(y,u),S=m+_;S!==0&&(m/=S,_/=S),Tp(o,i,-m),Tp(s,i,_);var b=LC([],y,o),w=LC([],y,s);a&&(po(b,b,f),vo(b,b,v),po(w,w,f),vo(w,w,v)),n.push(b),n.push(w)}return t&&n.push(n.shift()),n}function J3(r,e,t){var a=e.smooth,n=e.points;if(n&&n.length>=2){if(a){var i=c9(n,a,t,e.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,v=n.length;s<v;s++)r.lineTo(n[s][0],n[s][1])}t&&r.closePath()}}var f9=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),Vr=(function(r){De(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new f9},e.prototype.buildPath=function(t,a){J3(t,a,!0)},e})(Ut);Vr.prototype.type="polygon";var h9=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),Gr=(function(r){De(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new h9},e.prototype.buildPath=function(t,a){J3(t,a,!1)},e})(Ut);Gr.prototype.type="polyline";var v9={},d9=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),er=(function(r){De(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new d9},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=P3(v9,a,this.style);n=l.x1,i=l.y1,o=l.x2,s=l.y2}else n=a.x1,i=a.y1,o=a.x2,s=a.y2;var u=a.percent;u!==0&&(t.moveTo(n,i),u<1&&(o=n*(1-u)+o*u,s=i*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var a=this.shape;return[a.x1*(1-t)+a.x2*t,a.y1*(1-t)+a.y2*t]},e})(Ut);er.prototype.type="line";var Wr=[],p9=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r})();function BM(r,e,t){var a=r.cpx2,n=r.cpy2;return a!=null||n!=null?[(t?HC:tr)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?HC:tr)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?Ex:cr)(r.x1,r.cpx1,r.x2,e),(t?Ex:cr)(r.y1,r.cpy1,r.y2,e)]}var kh=(function(r){De(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new p9},e.prototype.buildPath=function(t,a){var n=a.x1,i=a.y1,o=a.x2,s=a.y2,l=a.cpx1,u=a.cpy1,f=a.cpx2,v=a.cpy2,d=a.percent;d!==0&&(t.moveTo(n,i),f==null||v==null?(d<1&&(ih(n,l,o,d,Wr),l=Wr[1],o=Wr[2],ih(i,u,s,d,Wr),u=Wr[1],s=Wr[2]),t.quadraticCurveTo(l,u,o,s)):(d<1&&(Lo(n,l,f,o,d,Wr),l=Wr[1],f=Wr[2],o=Wr[3],Lo(i,u,v,s,d,Wr),u=Wr[1],v=Wr[2],s=Wr[3]),t.bezierCurveTo(l,u,f,v,o,s)))},e.prototype.pointAt=function(t){return BM(this.shape,t,!1)},e.prototype.tangentAt=function(t){var a=BM(this.shape,t,!0);return Fu(a,a)},e})(Ut);kh.prototype.type="bezier-curve";var g9=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),ry=(function(r){De(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new g9},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r,0),s=a.startAngle,l=a.endAngle,u=a.clockwise,f=Math.cos(s),v=Math.sin(s);t.moveTo(f*o+n,v*o+i),t.arc(n,i,o,s,l,!u)},e})(Ut);ry.prototype.type="arc";var Pb=(function(r){De(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,a=this.shapeChanged(),n=0;n<t.length;n++)a=a||t[n].shapeChanged();a&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],a=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(a[0],a[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,a){for(var n=a.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],a=0;a<t.length;a++)t[a].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ut.prototype.getBoundingRect.call(this)},e})(Ut),tP=(function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r})(),Bh=(function(r){De(e,r);function e(t,a,n,i,o,s){var l=r.call(this,o)||this;return l.x=t??0,l.y=a??0,l.x2=n??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return e})(tP),eP=(function(r){De(e,r);function e(t,a,n,i,o){var s=r.call(this,i)||this;return s.x=t??.5,s.y=a??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return e})(tP),ps=[0,0],gs=[0,0],Od=new Pt,zd=new Pt,ng=(function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var a=0;a<4;a++)this._corners[a]=new Pt;for(var a=0;a<2;a++)this._axes[a]=new Pt;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var a=this._corners,n=this._axes,i=e.x,o=e.y,s=i+e.width,l=o+e.height;if(a[0].set(i,o),a[1].set(s,o),a[2].set(s,l),a[3].set(i,l),t)for(var u=0;u<4;u++)a[u].transform(t);Pt.sub(n[0],a[1],a[0]),Pt.sub(n[1],a[3],a[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(a[0])},r.prototype.intersect=function(e,t){var a=!0,n=!t;return Od.set(1/0,1/0),zd.set(0,0),!this._intersectCheckOneSide(this,e,Od,zd,n,1)&&(a=!1,n)||!this._intersectCheckOneSide(e,this,Od,zd,n,-1)&&(a=!1,n)||n||Pt.copy(t,a?Od:zd),a},r.prototype._intersectCheckOneSide=function(e,t,a,n,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,ps),this._getProjMinMaxOnAxis(l,t._corners,gs),ps[1]<gs[0]||ps[0]>gs[1]){if(s=!1,i)return s;var f=Math.abs(gs[0]-ps[1]),v=Math.abs(ps[0]-gs[1]);Math.min(f,v)>n.len()&&(f<v?Pt.scale(n,u,-f*o):Pt.scale(n,u,v*o))}else if(a){var f=Math.abs(gs[0]-ps[1]),v=Math.abs(ps[0]-gs[1]);Math.min(f,v)<a.len()&&(f<v?Pt.scale(a,u,f*o):Pt.scale(a,u,-v*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(e,t,a){for(var n=this._axes[e],i=this._origin,o=t[0].dot(n)+i[e],s=o,l=o,u=1;u<t.length;u++){var f=t[u].dot(n)+i[e];s=Math.min(f,s),l=Math.max(f,l)}a[0]=s,a[1]=l},r})(),y9=[],m9=(function(r){De(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,a){t.call(a,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,a){a?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,a){a=a||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],a)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var a=this._cursor;a<this._displayables.length;a++)t&&t(this._displayables[a]);for(var a=0;a<this._temporaryDisplayables.length;a++)t&&t(this._temporaryDisplayables[a])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var a=this._displayables[t];a.parent=this,a.update(),a.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var a=this._temporaryDisplayables[t];a.parent=this,a.update(),a.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new kt(1/0,1/0,-1/0,-1/0),a=0;a<this._displayables.length;a++){var n=this._displayables[a],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(y9)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,a))return!0}return!1},e})(Fa),rP=Kt();function Zu(r,e,t,a,n){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,v=void 0;a?(u=Ot(a.duration,200),f=Ot(a.easing,"cubicOut"),v=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),v=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(v=i.delay)),bt(v)&&(v=v(t,n)),bt(u)&&(u=u(t));var d={duration:u||0,delay:v,easing:f};return d}else return null}function Ob(r,e,t,a,n,i,o){var s=!1,l;bt(n)?(o=i,i=n,n=null):Tt(n)&&(i=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var f=Zu(r,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var v=f.duration,d=f.delay,p=f.easing,y={duration:v,delay:d||0,easing:p,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,y):e.animateTo(t,y)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function Jt(r,e,t,a,n,i){Ob("update",r,e,t,a,n,i)}function Le(r,e,t,a,n,i){Ob("enter",r,e,t,a,n,i)}function Mu(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function Eo(r,e,t,a,n,i){Mu(r)||Ob("leave",r,e,t,a,n,i)}function VM(r,e,t,a){r.removeTextContent(),r.removeTextGuideLine(),Eo(r,{style:{opacity:0}},e,t,a)}function fh(r,e,t){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||VM(n,e,t,a)}):VM(r,e,t,a)}function cn(r){rP(r).oldStyle=r.style}function _9(r){return rP(r).oldStyle}var ig=Math.max,og=Math.min,Jx={};function x9(r){return Ut.extend(r)}var S9=t9;function b9(r,e){return S9(r,e)}function fn(r,e){Jx[r]=e}function zb(r){if(Jx.hasOwnProperty(r))return Jx[r]}function ay(r,e,t,a){var n=K3(r,e);return t&&(a==="center"&&(t=nP(t,n.getBoundingRect())),iP(n,t)),n}function aP(r,e,t){var a=new hr({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(t==="center"){var i={width:n.width,height:n.height};a.setStyle(nP(e,i))}}});return a}function nP(r,e){var t=e.width/e.height,a=r.height*t,n;a<=r.width?n=r.height:(a=r.width,n=a/t);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-a/2,y:o-n/2,width:a,height:n}}var Ba=e9;function iP(r,e){if(r.applyTransform){var t=r.getBoundingRect(),a=t.calculateTransform(e);r.applyTransform(a)}}function Nu(r,e){return P3(r,r,{lineWidth:e}),r}function w9(r){return O3(r.shape,r.shape,r.style),r}var Np=zs;function Ws(r,e){for(var t=Yg([]);r&&r!==e;)vi(t,r.getLocalTransform(),t),r=r.parent;return t}function sn(r,e,t){return e&&!Dr(e)&&(e=ci.getLocalTransform(e)),t&&(e=ju([],e)),_r([],r,e)}function ny(r,e,t){var a=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),i=[r==="left"?-a:r==="right"?a:0,r==="top"?-n:r==="bottom"?n:0];return i=sn(i,e,t),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function GM(r){return!r.isGroup}function T9(r){return r.shape!=null}function Vh(r,e,t){if(!r||!e)return;function a(o){var s={};return o.traverse(function(l){GM(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return T9(o)&&(s.shape=et({},o.shape)),s}var i=a(r);e.traverse(function(o){if(GM(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),Jt(o,l,t,Rt(o).dataIndex)}}})}function oP(r,e){return st(r,function(t){var a=t[0];a=ig(a,e.x),a=og(a,e.x+e.width);var n=t[1];return n=ig(n,e.y),n=og(n,e.y+e.height),[a,n]})}function A9(r,e){var t=ig(r.x,e.x),a=og(r.x+r.width,e.x+e.width),n=ig(r.y,e.y),i=og(r.y+r.height,e.y+e.height);if(a>=t&&i>=n)return{x:t,y:n,width:a-t,height:i-n}}function Gh(r,e,t){var a=et({rectHover:!0},e),n=a.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),wt(n,t),new hr(a)):ay(r.replace("path://",""),a,t,"center")}function Nf(r,e,t,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(sP(r,e,t,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function sP(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,f=o-n,v=s-i,d=R1(f,v,l,u);if(D9(d))return!1;var p=r-n,y=e-i,m=R1(p,y,l,u)/d;if(m<0||m>1)return!1;var _=R1(p,y,f,v)/d;return!(_<0||_>1)}function R1(r,e,t,a){return r*a-t*e}function D9(r){return r<=1e-6&&r>=-1e-6}function Wu(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,n=vt(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&P(Yt(l),function(f){pt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=Rt(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:wt({content:a,formatterParams:s},n)}}function HM(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function Oo(r,e){if(r)if(it(r))for(var t=0;t<r.length;t++)HM(r[t],e);else HM(r,e)}fn("circle",un);fn("ellipse",ey);fn("sector",Br);fn("ring",zh);fn("polygon",Vr);fn("polyline",Gr);fn("rect",Wt);fn("line",er);fn("bezierCurve",kh);fn("arc",ry);const Hh=Object.freeze(Object.defineProperty({__proto__:null,Arc:ry,BezierCurve:kh,BoundingRect:kt,Circle:un,CompoundPath:Pb,Ellipse:ey,Group:Ct,Image:hr,IncrementalDisplayable:m9,Line:er,LinearGradient:Bh,OrientedBoundingRect:ng,Path:Ut,Point:Pt,Polygon:Vr,Polyline:Gr,RadialGradient:eP,Rect:Wt,Ring:zh,Sector:Br,Text:$t,applyTransform:sn,clipPointsByRect:oP,clipRectByRect:A9,createIcon:Gh,extendPath:b9,extendShape:x9,getShapeClass:zb,getTransform:Ws,groupTransition:Vh,initProps:Le,isElementRemoved:Mu,lineLineIntersect:sP,linePolygonIntersect:Nf,makeImage:aP,makePath:ay,mergePath:Ba,registerShape:fn,removeElement:Eo,removeElementWithFadeOut:fh,resizePath:iP,setTooltipConfig:Wu,subPixelOptimize:Np,subPixelOptimizeLine:Nu,subPixelOptimizeRect:w9,transformDirection:ny,traverseElements:Oo,updateProps:Jt},Symbol.toStringTag,{value:"Module"}));var iy={};function lP(r,e){for(var t=0;t<kr.length;t++){var a=kr[t],n=e[a],i=r.ensureState(a);i.style=i.style||{},i.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function tS(r,e,t){var a=r.labelFetcher,n=r.labelDataIndex,i=r.labelDimIndex,o=e.normal,s;a&&(s=a.getFormattedLabel(n,"normal",null,i,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=bt(r.defaultText)?r.defaultText(n,r,t):r.defaultText);for(var l={normal:s},u=0;u<kr.length;u++){var f=kr[u],v=e[f];l[f]=Ot(a?a.getFormattedLabel(n,f,null,i,v&&v.get("formatter")):null,s)}return l}function Sr(r,e,t,a){t=t||iy;for(var n=r instanceof $t,i=!1,o=0;o<uh.length;o++){var s=e[uh[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=n?r:r.getTextContent();if(i){n||(l||(l=new $t,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=tS(t,e),f=e.normal,v=!!f.getShallow("show"),d=xe(f,a&&a.normal,t,!1,!n);d.text=u.normal,n||r.setTextConfig(sg(f,t,!1));for(var o=0;o<kr.length;o++){var p=kr[o],s=e[p];if(s){var y=l.ensureState(p),m=!!Ot(s.getShallow("show"),v);if(m!==v&&(y.ignore=!m),y.style=xe(s,a&&a[p],t,!0,!n),y.style.text=u[p],!n){var _=r.ensureState(p);_.textConfig=sg(s,t,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!v,l.useStyle(d),l.dirty(),t.enableTextSetter&&(qu(l).setLabelText=function(S){var b=tS(t,e,S);lP(l,b)})}else l&&(l.ignore=!0);r.dirty()}function nr(r,e){e=e||"label";for(var t={normal:r.getModel(e)},a=0;a<kr.length;a++){var n=kr[a];t[n]=r.getModel([n,e])}return t}function xe(r,e,t,a,n){var i={};return C9(i,r,t,a,n),e&&et(i,e),i}function sg(r,e,t){e=e||{};var a={},n,i=r.getShallow("rotate"),o=Ot(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(t?null:"inside"),n==="outside"&&(n=e.defaultOutsidePosition||"top"),n!=null&&(a.position=n),s!=null&&(a.offset=s),i!=null&&(i*=Math.PI/180,a.rotation=i),o!=null&&(a.distance=o),a.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",a}function C9(r,e,t,a,n){t=t||iy;var i=e.ecModel,o=i&&i.option.textStyle,s=M9(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=e.getModel(["rich",u]);YM(l[u]={},f,o,t,a,n,!1,!0)}}l&&(r.rich=l);var v=e.get("overflow");v&&(r.overflow=v);var d=e.get("minMargin");d!=null&&(r.margin=d),YM(r,e,o,t,a,n,!0,!1)}function M9(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||iy).rich;if(t){e=e||{};for(var a=Yt(t),n=0;n<a.length;n++){var i=a[n];e[i]=1}}r=r.parentModel}return e}var UM=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],FM=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],jM=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function YM(r,e,t,a,n,i,o,s){t=!n&&t||iy;var l=a&&a.inheritColor,u=e.getShallow("color"),f=e.getShallow("textBorderColor"),v=Ot(e.getShallow("opacity"),t.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),i||(u=u||t.color,f=f||t.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var d=Ot(e.getShallow("textBorderWidth"),t.textBorderWidth);d!=null&&(r.lineWidth=d);var p=Ot(e.getShallow("textBorderType"),t.textBorderType);p!=null&&(r.lineDash=p);var y=Ot(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);y!=null&&(r.lineDashOffset=y),!n&&v==null&&!s&&(v=a&&a.defaultOpacity),v!=null&&(r.opacity=v),!n&&!i&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var m=0;m<UM.length;m++){var _=UM[m],S=Ot(e.getShallow(_),t[_]);S!=null&&(r[_]=S)}for(var m=0;m<FM.length;m++){var _=FM[m],S=e.getShallow(_);S!=null&&(r[_]=S)}if(r.verticalAlign==null){var b=e.getShallow("baseline");b!=null&&(r.verticalAlign=b)}if(!o||!a.disableBox){for(var m=0;m<jM.length;m++){var _=jM[m],S=e.getShallow(_);S!=null&&(r[_]=S)}var w=e.getShallow("borderType");w!=null&&(r.borderDash=w),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function uP(r,e){var t=e&&e.getModel("textStyle");return rn([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var qu=Kt();function cP(r,e,t,a){if(r){var n=qu(r);n.prevValue=n.value,n.value=t;var i=e.normal;n.valueAnimation=i.get("valueAnimation"),n.valueAnimation&&(n.precision=i.get("precision"),n.defaultInterpolatedText=a,n.statesModels=e)}}function fP(r,e,t,a,n){var i=qu(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=Ot(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var v=A3(t,i.precision,s,l,f);i.interpolatedValue=f===1?null:v;var d=tS({labelDataIndex:e,labelFetcher:n,defaultText:o?o(v):v+""},i.statesModels,v);lP(r,d)}r.percent=0,(i.prevValue==null?Le:Jt)(r,{percent:1},a,e,null,u)}var L9=["textStyle","color"],I1=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],N1=new $t,E9=(function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(L9):null)},r.prototype.getFont=function(){return uP({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},a=0;a<I1.length;a++)t[I1[a]]=this.getShallow(I1[a]);return N1.useStyle(t),N1.update(),N1.getBoundingRect()},r})(),hP=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],R9=el(hP),I9=(function(){function r(){}return r.prototype.getLineStyle=function(e){return R9(this,e)},r})(),vP=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],N9=el(vP),P9=(function(){function r(){}return r.prototype.getItemStyle=function(e,t){return N9(this,e,t)},r})(),oe=(function(){function r(e,t,a){this.parentModel=t,this.ecModel=a,this.option=e}return r.prototype.init=function(e,t,a){},r.prototype.mergeOption=function(e,t){zt(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var a=this.option,n=a==null?a:a[e];if(n==null&&!t){var i=this.parentModel;i&&(n=i.getShallow(e))}return n},r.prototype.getModel=function(e,t){var a=e!=null,n=a?this.parsePath(e):null,i=a?this._doGet(n):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(i,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(Dt(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!Ft.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var a=this.option;if(!e)return a;for(var n=0;n<e.length&&!(e[n]&&(a=a&&typeof a=="object"?a[e[n]]:null,a==null));n++);return a==null&&t&&(a=t._doGet(this.resolveParentPath(e),t.parentModel)),a},r})();Db(oe);F8(oe);Xe(oe,I9);Xe(oe,P9);Xe(oe,W8);Xe(oe,E9);var O9=Math.round(Math.random()*10);function $u(r){return[r||"",O9++].join("_")}function z9(r){var e={};r.registerSubTypeDefaulter=function(t,a){var n=Mn(t);e[n.main]=a},r.determineSubType=function(t,a){var n=a.type;if(!n){var i=Mn(t).main;r.hasSubTypes(t)&&e[i]&&(n=e[i](a))}return n}}function k9(r,e){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=t(o),f=u.graph,v=u.noEntryList,d={};for(P(i,function(b){d[b]=!0});v.length;){var p=v.pop(),y=f[p],m=!!d[p];m&&(s.call(l,p,y.originalDeps.slice()),delete d[p]),P(y.successor,m?S:_)}P(d,function(){var b="";throw new Error(b)});function _(b){f[b].entryCount--,f[b].entryCount===0&&v.push(b)}function S(b){d[b]=!0,_(b)}};function t(i){var o={},s=[];return P(i,function(l){var u=a(o,l),f=u.originalDeps=e(l),v=n(f,i);u.entryCount=v.length,u.entryCount===0&&s.push(l),P(v,function(d){Vt(u.predecessor,d)<0&&u.predecessor.push(d);var p=a(o,d);Vt(p.successor,d)<0&&p.successor.push(l)})}),{graph:o,noEntryList:s}}function a(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function n(i,o){var s=[];return P(i,function(l){Vt(o,l)>=0&&s.push(l)}),s}}function zo(r,e){return zt(zt({},r,!0),e,!0)}const B9={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:". "}}}},V9={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 lg="ZH",kb="EN",hh=kb,Pp={},Bb={},dP=Ft.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(lg)>-1?lg:hh})():hh;function pP(r,e){r=r.toUpperCase(),Bb[r]=new oe(e),Pp[r]=e}function G9(r){if(vt(r)){var e=Pp[r.toUpperCase()]||{};return r===lg||r===kb?Dt(e):zt(Dt(e),Dt(Pp[hh]),!1)}else return zt(Dt(r),Dt(Pp[hh]),!1)}function eS(r){return Bb[r]}function H9(){return Bb[hh]}pP(kb,B9);pP(lg,V9);var Vb=1e3,Gb=Vb*60,$f=Gb*60,Va=$f*24,XM=Va*365,Pf={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}"},kd="{yyyy}-{MM}-{dd}",ZM={year:"{yyyy}",month:"{yyyy}-{MM}",day:kd,hour:kd+" "+Pf.hour,minute:kd+" "+Pf.minute,second:kd+" "+Pf.second,millisecond:Pf.none},P1=["year","month","day","hour","minute","second","millisecond"],gP=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function eo(r,e){return r+="","0000".substr(0,e-r.length)+r}function Lu(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function U9(r){return r===Lu(r)}function F9(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function oy(r,e,t,a){var n=zn(r),i=n[Hb(t)](),o=n[Eu(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[sy(t)](),u=n["get"+(t?"UTC":"")+"Day"](),f=n[vh(t)](),v=(f-1)%12+1,d=n[ly(t)](),p=n[uy(t)](),y=n[cy(t)](),m=a instanceof oe?a:eS(a||dP)||H9(),_=m.getModel("time"),S=_.get("month"),b=_.get("monthAbbr"),w=_.get("dayOfWeek"),A=_.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,eo(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,S[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,eo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,eo(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,A[u]).replace(/{e}/g,u+"").replace(/{HH}/g,eo(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,eo(v+"",2)).replace(/{h}/g,v+"").replace(/{mm}/g,eo(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,eo(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,eo(y,3)).replace(/{S}/g,y+"")}function j9(r,e,t,a,n){var i=null;if(vt(t))i=t;else if(bt(t))i=t(r.value,e,{level:r.level});else{var o=et({},Pf);if(r.level>0)for(var s=0;s<P1.length;++s)o[P1[s]]="{primary|"+o[P1[s]]+"}";var l=t?t.inherit===!1?t:wt(t,o):o,u=yP(r.value,n);if(l[u])i=l[u];else if(l.inherit){for(var f=gP.indexOf(u),s=f-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(it(i)){var v=r.level==null?0:r.level>=0?r.level:i.length+r.level;v=Math.min(v,i.length-1),i=i[v]}}return oy(new Date(r.value),i,n,a)}function yP(r,e){var t=zn(r),a=t[Eu(e)]()+1,n=t[sy(e)](),i=t[vh(e)](),o=t[ly(e)](),s=t[uy(e)](),l=t[cy(e)](),u=l===0,f=u&&s===0,v=f&&o===0,d=v&&i===0,p=d&&n===1,y=p&&a===1;return y?"year":p?"month":d?"day":v?"hour":f?"minute":u?"second":"millisecond"}function WM(r,e,t){var a=Qt(r)?zn(r):r;switch(e=e||yP(r,t),e){case"year":return a[Hb(t)]();case"half-year":return a[Eu(t)]()>=6?1:0;case"quarter":return Math.floor((a[Eu(t)]()+1)/4);case"month":return a[Eu(t)]();case"day":return a[sy(t)]();case"half-day":return a[vh(t)]()/24;case"hour":return a[vh(t)]();case"minute":return a[ly(t)]();case"second":return a[uy(t)]();case"millisecond":return a[cy(t)]()}}function Hb(r){return r?"getUTCFullYear":"getFullYear"}function Eu(r){return r?"getUTCMonth":"getMonth"}function sy(r){return r?"getUTCDate":"getDate"}function vh(r){return r?"getUTCHours":"getHours"}function ly(r){return r?"getUTCMinutes":"getMinutes"}function uy(r){return r?"getUTCSeconds":"getSeconds"}function cy(r){return r?"getUTCMilliseconds":"getMilliseconds"}function Y9(r){return r?"setUTCFullYear":"setFullYear"}function mP(r){return r?"setUTCMonth":"setMonth"}function _P(r){return r?"setUTCDate":"setDate"}function xP(r){return r?"setUTCHours":"setHours"}function SP(r){return r?"setUTCMinutes":"setMinutes"}function bP(r){return r?"setUTCSeconds":"setSeconds"}function wP(r){return r?"setUTCMilliseconds":"setMilliseconds"}function TP(r){if(!y3(r))return vt(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function AP(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,a){return a.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Ku=gb;function rS(r,e,t){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&rn(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?zn(r):r;if(isNaN(+l)){if(s)return"-"}else return oy(l,a,t)}if(e==="ordinal")return xx(r)?n(r):Qt(r)&&i(r)?r+"":"-";var u=mi(r);return i(u)?TP(u):xx(r)?n(r):typeof r=="boolean"?r+"":"-"}var qM=["a","b","c","d","e","f","g"],O1=function(r,e){return"{"+r+(e??"")+"}"};function DP(r,e,t){it(e)||(e=[e]);var a=e.length;if(!a)return"";for(var n=e[0].$vars||[],i=0;i<n.length;i++){var o=qM[i];r=r.replace(O1(o),O1(o,0))}for(var s=0;s<a;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];r=r.replace(O1(qM[l],s),t?ca(u):u)}return r}function X9(r,e,t){return P(e,function(a,n){r=r.replace("{"+n+"}",a)}),r}function Z9(r,e){var t=vt(r)?{color:r,extraCssText:e}:r||{},a=t.color,n=t.type;e=t.extraCssText;var i=t.renderMode||"html";if(!a)return"";if(i==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ca(a)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ca(a)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function al(r,e){return e=e||"transparent",vt(r)?r:Tt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function ug(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var Op=P,CP=["left","right","top","bottom","width","height"],Bs=[["width","left","right"],["height","top","bottom"]];function Ub(r,e,t,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),v=e.childAt(u+1),d=v&&v.getBoundingRect(),p,y;if(r==="horizontal"){var m=f.width+(d?-d.x+f.x:0);p=i+m,p>a||l.newline?(i=0,p=m,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var _=f.height+(d?-d.y+f.y:0);y=o+_,y>n||l.newline?(i+=s+t,o=0,y=_,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=p+t:o=y+t)})}var qs=Ub;It(Ub,"vertical");It(Ub,"horizontal");function W9(r,e,t){var a=e.width,n=e.height,i=ft(r.left,a),o=ft(r.top,n),s=ft(r.right,a),l=ft(r.bottom,n);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),t=Ku(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function Qe(r,e,t){t=Ku(t||0);var a=e.width,n=e.height,i=ft(r.left,a),o=ft(r.top,n),s=ft(r.right,a),l=ft(r.bottom,n),u=ft(r.width,a),f=ft(r.height,n),v=t[2]+t[0],d=t[1]+t[3],p=r.aspect;switch(isNaN(u)&&(u=a-s-d-i),isNaN(f)&&(f=n-l-v-o),p!=null&&(isNaN(u)&&isNaN(f)&&(p>a/n?u=a*.8:f=n*.8),isNaN(u)&&(u=p*f),isNaN(f)&&(f=u/p)),isNaN(i)&&(i=a-s-u-d),isNaN(o)&&(o=n-l-f-v),r.left||r.right){case"center":i=a/2-u/2-t[3];break;case"right":i=a-u-d;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-t[0];break;case"bottom":o=n-f-v;break}i=i||0,o=o||0,isNaN(u)&&(u=a-d-i-(s||0)),isNaN(f)&&(f=n-v-o-(l||0));var y=new kt(i+t[3],o+t[0],u,f);return y.margin=t,y}function fy(r,e,t,a,n,i){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new kt(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var v=Qe(wt({width:u.width,height:u.height},e),t,a),d=o?v.x-u.x:0,p=s?v.y-u.y:0;return l==="raw"?(i.x=d,i.y=p):(i.x+=d,i.y+=p),i===r&&r.markRedraw(),!0}function q9(r,e){return r[Bs[e][0]]!=null||r[Bs[e][1]]!=null&&r[Bs[e][2]]!=null}function dh(r){var e=r.layoutMode||r.constructor.layoutMode;return Tt(e)?e:e?{type:e}:null}function Ro(r,e,t){var a=t&&t.ignoreSize;!it(a)&&(a=[a,a]);var n=o(Bs[0],0),i=o(Bs[1],1);u(Bs[0],r,n),u(Bs[1],r,i);function o(f,v){var d={},p=0,y={},m=0,_=2;if(Op(f,function(w){y[w]=r[w]}),Op(f,function(w){s(e,w)&&(d[w]=y[w]=e[w]),l(d,w)&&p++,l(y,w)&&m++}),a[v])return l(e,f[1])?y[f[2]]=null:l(e,f[2])&&(y[f[1]]=null),y;if(m===_||!p)return y;if(p>=_)return d;for(var S=0;S<f.length;S++){var b=f[S];if(!s(d,b)&&s(r,b)){d[b]=r[b];break}}return d}function s(f,v){return f.hasOwnProperty(v)}function l(f,v){return f[v]!=null&&f[v]!=="auto"}function u(f,v,d){Op(f,function(p){v[p]=d[p]})}}function Qu(r){return MP({},r)}function MP(r,e){return e&&r&&Op(CP,function(t){e.hasOwnProperty(t)&&(r[t]=e[t])}),r}var $9=Kt(),jt=(function(r){$(e,r);function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.uid=$u("ec_cpt_model"),i}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=dh(this),i=n?Qu(t):{},o=a.getTheme();zt(t,o.get(this.mainType)),zt(t,this.getDefaultOption()),n&&Ro(t,i,n)},e.prototype.mergeOption=function(t,a){zt(this.option,t,!0);var n=dh(this);n&&Ro(this.option,t,n)},e.prototype.optionUpdated=function(t,a){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!G8(t))return t.defaultOption;var a=$9(this);if(!a.defaultOption){for(var n=[],i=t;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=zt(s,n[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var n=t+"Index",i=t+"Id";return Ph(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},a)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=(function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0})(),e})(oe);C3(jt,oe);qg(jt);z9(jt);k9(jt,K9);function K9(r){var e=[];return P(jt.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=st(e,function(t){return Mn(t).main}),r!=="dataset"&&Vt(e,"dataset")<=0&&e.unshift("dataset"),e}var LP="";typeof navigator<"u"&&(LP=navigator.platform||"");var nu="rgba(0, 0, 0, 0.2)";const Q9={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:nu,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:nu,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:nu,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:nu,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:nu,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:nu,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:LP.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 EP=xt(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Ya="original",Cr="arrayRows",Xa="objectRows",Bn="keyedColumns",wo="typedArray",RP="unknown",In="column",Ju="row",mr={Must:1,Might:2,Not:3},IP=Kt();function J9(r){IP(r).datasetMap=xt()}function NP(r,e,t){var a={},n=jb(e);if(!n||!r)return a;var i=[],o=[],s=e.ecModel,l=IP(s).datasetMap,u=n.uid+"_"+t.seriesLayoutBy,f,v;r=r.slice(),P(r,function(m,_){var S=Tt(m)?m:r[_]={name:m};S.type==="ordinal"&&f==null&&(f=_,v=y(S)),a[S.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:v,valueWayDim:0});P(r,function(m,_){var S=m.name,b=y(m);if(f==null){var w=d.valueWayDim;p(a[S],w,b),p(o,w,b),d.valueWayDim+=b}else if(f===_)p(a[S],0,b),p(i,0,b);else{var w=d.categoryWayDim;p(a[S],w,b),p(o,w,b),d.categoryWayDim+=b}});function p(m,_,S){for(var b=0;b<S;b++)m.push(_+b)}function y(m){var _=m.dimsDef;return _?_.length:1}return i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function Fb(r,e,t){var a={},n=jb(r);if(!n)return a;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===Xa||i===Bn)&&P(o,function(f,v){(Tt(f)?f.name:f)==="name"&&(s=v)});var l=(function(){for(var f={},v={},d=[],p=0,y=Math.min(5,t);p<y;p++){var m=OP(e.data,i,e.seriesLayoutBy,o,e.startIndex,p);d.push(m);var _=m===mr.Not;if(_&&f.v==null&&p!==s&&(f.v=p),(f.n==null||f.n===f.v||!_&&d[f.n]===mr.Not)&&(f.n=p),S(f)&&d[f.n]!==mr.Not)return f;_||(m===mr.Might&&v.v==null&&p!==s&&(v.v=p),(v.n==null||v.n===v.v)&&(v.n=p))}function S(b){return b.v!=null&&b.n!=null}return S(f)?f:S(v)?v:null})();if(l){a.value=[l.v];var u=s??l.n;a.itemName=[u],a.seriesName=[u]}return a}function jb(r){var e=r.get("data",!0);if(!e)return Ph(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},je).models[0]}function tU(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Ph(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},je).models}function PP(r,e){return OP(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function OP(r,e,t,a,n,i){var o,s=5;if(da(r))return mr.Not;var l,u;if(a){var f=a[i];Tt(f)?(l=f.name,u=f.type):vt(f)&&(l=f)}if(u!=null)return u==="ordinal"?mr.Must:mr.Not;if(e===Cr){var v=r;if(t===Ju){for(var d=v[i],p=0;p<(d||[]).length&&p<s;p++)if((o=A(d[n+p]))!=null)return o}else for(var p=0;p<v.length&&p<s;p++){var y=v[n+p];if(y&&(o=A(y[i]))!=null)return o}}else if(e===Xa){var m=r;if(!l)return mr.Not;for(var p=0;p<m.length&&p<s;p++){var _=m[p];if(_&&(o=A(_[l]))!=null)return o}}else if(e===Bn){var S=r;if(!l)return mr.Not;var d=S[l];if(!d||da(d))return mr.Not;for(var p=0;p<d.length&&p<s;p++)if((o=A(d[p]))!=null)return o}else if(e===Ya)for(var b=r,p=0;p<b.length&&p<s;p++){var _=b[p],w=Yu(_);if(!it(w))return mr.Not;if((o=A(w[i]))!=null)return o}function A(M){var C=vt(M);if(M!=null&&isFinite(M)&&M!=="")return C?mr.Might:mr.Not;if(C&&M!=="-")return mr.Must}return mr.Not}var aS=xt();function eU(r,e){zr(aS.get(r)==null&&e),aS.set(r,e)}function rU(r,e,t){var a=aS.get(e);if(!a)return t;var n=a(r);return n?t.concat(n):t}var $M=Kt(),aU=Kt(),Yb=(function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,a){var n=he(this.get("color",!0)),i=this.get("colorLayer",!0);return zP(this,$M,n,i,e,t,a)},r.prototype.clearColorPalette=function(){iU(this,$M)},r})();function nS(r,e,t,a){var n=he(r.get(["aria","decal","decals"]));return zP(r,aU,n,null,e,t,a)}function nU(r,e){for(var t=r.length,a=0;a<t;a++)if(r[a].length>e)return r[a];return r[t-1]}function zP(r,e,t,a,n,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!a?t:nU(a,o);if(f=f||t,!(!f||!f.length)){var v=f[l];return n&&(u[n]=v),s.paletteIdx=(l+1)%f.length,v}}function iU(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var Bd,lf,KM,QM="\0_ec_inner",oU=1,Xb=(function(r){$(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,a,n,i,o,s){i=i||{},this.option=null,this._theme=new oe(i),this._locale=new oe(o),this._optionManager=s},e.prototype.setOption=function(t,a,n){var i=eL(a);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,a){return this._resetOption(t,eL(a))},e.prototype._resetOption=function(t,a){var n=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?KM(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&P(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=xt(),u=a&&a.replaceMergeMainTypeMap;J9(this),P(t,function(v,d){v!=null&&(jt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):n[d]=n[d]==null?Dt(v):zt(n[d],v,!0))}),u&&u.each(function(v,d){jt.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),jt.topologicalTravel(s,jt.getAllClassMainTypes(),f,this);function f(v){var d=rU(this,v,he(t[v])),p=i.get(v),y=p?u&&u.get(v)?"replaceMerge":"normalMerge":"replaceAll",m=b3(p,d,y);R8(m,v,jt),n[v]=null,i.set(v,null),o.set(v,0);var _=[],S=[],b=0,w;P(m,function(A,M){var C=A.existing,L=A.newOption;if(!L)C&&(C.mergeOption({},this),C.optionUpdated({},!1));else{var E=v==="series",R=jt.getClass(v,A.keyInfo.subType,!E);if(!R)return;if(v==="tooltip"){if(w)return;w=!0}if(C&&C.constructor===R)C.name=A.keyInfo.name,C.mergeOption(L,this),C.optionUpdated(L,!1);else{var N=et({componentIndex:M},A.keyInfo);C=new R(L,this,this,N),et(C,N),A.brandNew&&(C.__requireNewView=!0),C.init(L,this,this),C.optionUpdated(null,!0)}}C?(_.push(C.option),S.push(C),b++):(_.push(void 0),S.push(void 0))},this),n[v]=_,i.set(v,S),o.set(v,b),v==="series"&&Bd(this)}this._seriesIndices||Bd(this)},e.prototype.getOption=function(){var t=Dt(this.option);return P(t,function(a,n){if(jt.hasClass(n)){for(var i=he(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!lh(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[n]=i}}),delete t[QM],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,a){var n=this._componentsMap.get(t);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(t){var a=t.mainType;if(!a)return[];var n=t.index,i=t.id,o=t.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],P(he(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=JM("id",i,s):o!=null?l=JM("name",o,s):l=le(s,function(u){return!!u}),tL(l,t)},e.prototype.findComponents=function(t){var a=t.query,n=t.mainType,i=s(a),o=i?this.queryComponents(i):le(this._componentsMap.get(n),function(u){return!!u});return l(tL(o,t));function s(u){var f=n+"Index",v=n+"Id",d=n+"Name";return u&&(u[f]!=null||u[v]!=null||u[d]!=null)?{mainType:n,index:u[f],id:u[v],name:u[d]}:null}function l(u){return t.filter?le(u,t.filter):u}},e.prototype.eachComponent=function(t,a,n){var i=this._componentsMap;if(bt(t)){var o=a,s=t;i.each(function(v,d){for(var p=0;v&&p<v.length;p++){var y=v[p];y&&s.call(o,d,y,y.componentIndex)}})}else for(var l=vt(t)?i.get(t):Tt(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&a.call(n,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var a=Ke(t,null);return le(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return le(this._componentsMap.get("series"),function(a){return!!a&&a.subType===t})},e.prototype.getSeries=function(){return le(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,a){lf(this),P(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(a,i,n)},this)},e.prototype.eachRawSeries=function(t,a){P(this._componentsMap.get("series"),function(n){n&&t.call(a,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,a,n){lf(this),P(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&a.call(n,o,i)},this)},e.prototype.eachRawSeriesByType=function(t,a,n){return P(this.getSeriesByType(t),a,n)},e.prototype.isSeriesFiltered=function(t){return lf(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,a){lf(this);var n=[];P(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];t.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=xt(n)},e.prototype.restoreData=function(t){Bd(this);var a=this._componentsMap,n=[];a.each(function(i,o){jt.hasClass(o)&&n.push(o)}),jt.topologicalTravel(n,jt.getAllClassMainTypes(),function(i){P(a.get(i),function(o){o&&(i!=="series"||!sU(o,t))&&o.restoreData()})})},e.internalField=(function(){Bd=function(t){var a=t._seriesIndices=[];P(t._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),t._seriesIndicesMap=xt(a)},lf=function(t){},KM=function(t,a){t.option={},t.option[QM]=oU,t._componentsMap=xt({series:[]}),t._componentsCount=xt();var n=a.aria;Tt(n)&&n.enabled==null&&(n.enabled=!0),lU(a,t._theme.option),zt(a,Q9,!1),t._mergeOption(a,null)}})(),e})(oe);function sU(r,e){if(e){var t=e.seriesIndex,a=e.seriesId,n=e.seriesName;return t!=null&&r.componentIndex!==t||a!=null&&r.id!==a||n!=null&&r.name!==n}}function lU(r,e){var t=r.color&&!r.colorLayer;P(e,function(a,n){n==="colorLayer"&&t||jt.hasClass(n)||(typeof a=="object"?r[n]=r[n]?zt(r[n],a,!1):Dt(a):r[n]==null&&(r[n]=a))})}function JM(r,e,t){if(it(e)){var a=xt();return P(e,function(i){if(i!=null){var o=Ke(i,null);o!=null&&a.set(i,!0)}}),le(t,function(i){return i&&a.get(i[r])})}else{var n=Ke(e,null);return le(t,function(i){return i&&n!=null&&i[r]===n})}}function tL(r,e){return e.hasOwnProperty("subType")?le(r,function(t){return t&&t.subType===e.subType}):r}function eL(r){var e=xt();return r&&P(he(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}Xe(Xb,Yb);var uU=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],kP=(function(){function r(e){P(uU,function(t){this[t]=dt(e[t],e)},this)}return r})(),z1={},Uh=(function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(e,t){var a=[];P(z1,function(n,i){var o=n.create(e,t);a=a.concat(o||[])}),this._coordinateSystems=a},r.prototype.update=function(e,t){P(this._coordinateSystems,function(a){a.update&&a.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(e,t){z1[e]=t},r.get=function(e){return z1[e]},r})(),cU=/^(min|max)?(.+)$/,fU=(function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,a){e&&(P(he(e.series),function(o){o&&o.data&&da(o.data)&&Yp(o.data)}),P(he(e.dataset),function(o){o&&o.source&&da(o.source)&&Yp(o.source)})),e=Dt(e);var n=this._optionBackup,i=hU(e,t,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],Dt(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,a=this._timelineOptions;if(a.length){var n=e.getComponent("timeline");n&&(t=Dt(a[n.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!n.length&&!i)return s;for(var l=0,u=n.length;l<u;l++)vU(n[l].query,t,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!pU(o,this._currentMediaIndices)&&(s=st(o,function(f){return Dt(f===-1?i.option:n[f].option)})),this._currentMediaIndices=o,s},r})();function hU(r,e,t){var a=[],n,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,v=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((v||f)&&(r.options=r.media=null),i=r),f&&it(u)&&P(u,function(p){p&&p.option&&(p.query?a.push(p):n||(n=p))}),d(i),P(l,function(p){return d(p)}),P(a,function(p){return d(p.option)});function d(p){P(e,function(y){y(p,t)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function vU(r,e,t){var a={width:e,height:t,aspectratio:e/t},n=!0;return P(r,function(i,o){var s=o.match(cU);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();dU(a[u],i,l)||(n=!1)}}),n}function dU(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function pU(r,e){return r.join(",")===e.join(",")}var $a=P,ph=Tt,rL=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function k1(r){var e=r&&r.itemStyle;if(e)for(var t=0,a=rL.length;t<a;t++){var n=rL[t],i=e.normal,o=e.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?zt(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?zt(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Ar(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var a=r[e].normal,n=r[e].emphasis;a&&(t?(r[e].normal=r[e].emphasis=null,wt(r[e],a)):r[e]=a),n&&(r.emphasis=r.emphasis||{},r.emphasis[e]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function Of(r){Ar(r,"itemStyle"),Ar(r,"lineStyle"),Ar(r,"areaStyle"),Ar(r,"label"),Ar(r,"labelLine"),Ar(r,"upperLabel"),Ar(r,"edgeLabel")}function Fe(r,e){var t=ph(r)&&r[e],a=ph(t)&&t.textStyle;if(a)for(var n=0,i=oM.length;n<i;n++){var o=oM[n];a.hasOwnProperty(o)&&(t[o]=a[o])}}function Na(r){r&&(Of(r),Fe(r,"label"),r.emphasis&&Fe(r.emphasis,"label"))}function gU(r){if(ph(r)){k1(r),Of(r),Fe(r,"label"),Fe(r,"upperLabel"),Fe(r,"edgeLabel"),r.emphasis&&(Fe(r.emphasis,"label"),Fe(r.emphasis,"upperLabel"),Fe(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(k1(e),Na(e));var t=r.markLine;t&&(k1(t),Na(t));var a=r.markArea;a&&Na(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!da(i))for(var o=0;o<i.length;o++)Na(i[o]);P(r.categories,function(u){Of(u)})}if(n&&!da(n))for(var o=0;o<n.length;o++)Na(n[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Na(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)it(l[o])?(Na(l[o][0]),Na(l[o][1])):Na(l[o]);r.type==="gauge"?(Fe(r,"axisLabel"),Fe(r,"title"),Fe(r,"detail")):r.type==="treemap"?(Ar(r.breadcrumb,"itemStyle"),P(r.levels,function(u){Of(u)})):r.type==="tree"&&Of(r.leaves)}}function oi(r){return it(r)?r:r?[r]:[]}function aL(r){return(it(r)?r[0]:r)||{}}function yU(r,e){$a(oi(r.series),function(a){ph(a)&&gU(a)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),$a(t,function(a){$a(oi(r[a]),function(n){n&&(Fe(n,"axisLabel"),Fe(n.axisPointer,"label"))})}),$a(oi(r.parallel),function(a){var n=a&&a.parallelAxisDefault;Fe(n,"axisLabel"),Fe(n&&n.axisPointer,"label")}),$a(oi(r.calendar),function(a){Ar(a,"itemStyle"),Fe(a,"dayLabel"),Fe(a,"monthLabel"),Fe(a,"yearLabel")}),$a(oi(r.radar),function(a){Fe(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),$a(oi(r.geo),function(a){ph(a)&&(Na(a),$a(oi(a.regions),function(n){Na(n)}))}),$a(oi(r.timeline),function(a){Na(a),Ar(a,"label"),Ar(a,"itemStyle"),Ar(a,"controlStyle",!0);var n=a.data;it(n)&&P(n,function(i){Tt(i)&&(Ar(i,"label"),Ar(i,"itemStyle"))})}),$a(oi(r.toolbox),function(a){Ar(a,"iconStyle"),$a(a.feature,function(n){Ar(n,"iconStyle")})}),Fe(aL(r.axisPointer),"label"),Fe(aL(r.tooltip).axisPointer,"label")}function mU(r,e){for(var t=e.split(","),a=r,n=0;n<t.length&&(a=a&&a[t[n]],a!=null);n++);return a}function _U(r,e,t,a){for(var n=e.split(","),i=r,o,s=0;s<n.length-1;s++)o=n[s],i[o]==null&&(i[o]={}),i=i[o];i[n[s]]==null&&(i[n[s]]=t)}function nL(r){r&&P(xU,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var xU=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],SU=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],B1=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function uf(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<B1.length;t++){var a=B1[t][1],n=B1[t][0];e[a]!=null&&(e[n]=e[a])}}function iL(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function oL(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function bU(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function BP(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&BP(r[t].children,e)}function VP(r,e){yU(r,e),r.series=he(r.series),P(r.series,function(t){if(Tt(t)){var a=t.type;if(a==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(a==="pie"||a==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),iL(t.label);var n=t.data;if(n&&!da(n))for(var i=0;i<n.length;i++)iL(n[i]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(a==="gauge"){var o=mU(t,"pointer.color");o!=null&&_U(t,"itemStyle.color",o)}else if(a==="bar"){uf(t),uf(t.backgroundStyle),uf(t.emphasis);var n=t.data;if(n&&!da(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(uf(n[i]),uf(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),oL(t),BP(t.data,oL)}else a==="graph"||a==="sankey"?bU(t):a==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&wt(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),nL(t)}}),r.dataRange&&(r.visualMap=r.dataRange),P(SU,function(t){var a=r[t];a&&(it(a)||(a=[a]),P(a,function(n){nL(n)}))})}function wU(r){var e=xt();r.eachSeries(function(t){var a=t.get("stack");if(a){var n=e.get(a)||e.set(a,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.length&&i.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),e.each(TU)}function TU(r){P(r,function(e,t){var a=[],n=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,v){var d=o.get(e.stackedDimension,v);if(isNaN(d))return n;var p,y;s?y=o.getRawIndex(v):p=o.get(e.stackedByDimension,v);for(var m=NaN,_=t-1;_>=0;_--){var S=r[_];if(s||(y=S.data.rawIndexOf(S.stackedByDimension,p)),y>=0){var b=S.data.getByRawIndex(S.stackResultDimension,y);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&d>=0&&b>0||l==="samesign"&&d<=0&&b<0){d=x8(d,b),m=b;break}}}return a[0]=d,a[1]=m,a})})}var hy=(function(){function r(e){this.data=e.data||(e.sourceFormat===Bn?{}:[]),this.sourceFormat=e.sourceFormat||RP,this.seriesLayoutBy=e.seriesLayoutBy||In,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var a=0;a<t.length;a++){var n=t[a];n.type==null&&PP(this,a)===mr.Must&&(n.type="ordinal")}}return r})();function Zb(r){return r instanceof hy}function iS(r,e,t){t=t||GP(r);var a=e.seriesLayoutBy,n=DU(r,t,a,e.sourceHeader,e.dimensions),i=new hy({data:r,sourceFormat:t,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:Dt(e)});return i}function Wb(r){return new hy({data:r,sourceFormat:da(r)?wo:Ya})}function AU(r){return new hy({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:Dt(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function GP(r){var e=RP;if(da(r))e=wo;else if(it(r)){r.length===0&&(e=Cr);for(var t=0,a=r.length;t<a;t++){var n=r[t];if(n!=null){if(it(n)){e=Cr;break}else if(Tt(n)){e=Xa;break}}}}else if(Tt(r)){for(var i in r)if(pt(r,i)&&Dr(r[i])){e=Bn;break}}return e}function DU(r,e,t,a,n){var i,o;if(!r)return{dimensionsDefine:sL(n),startIndex:o,dimensionsDetectedCount:i};if(e===Cr){var s=r;a==="auto"||a==null?lL(function(u){u!=null&&u!=="-"&&(vt(u)?o==null&&(o=1):o=0)},t,s,10):o=Qt(a)?a:a?1:0,!n&&o===1&&(n=[],lL(function(u,f){n[f]=u!=null?u+"":""},t,s,1/0)),i=n?n.length:t===Ju?s.length:s[0]?s[0].length:null}else if(e===Xa)n||(n=CU(r));else if(e===Bn)n||(n=[],P(r,function(u,f){n.push(f)}));else if(e===Ya){var l=Yu(r[0]);i=it(l)&&l.length||1}return{startIndex:o,dimensionsDefine:sL(n),dimensionsDetectedCount:i}}function CU(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return Yt(t)}function sL(r){if(r){var e=xt();return st(r,function(t,a){t=Tt(t)?t:{name:t};var n={name:t.name,displayName:t.displayName,type:t.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var i=e.get(n.name);return i?n.name+="-"+i.count++:e.set(n.name,{count:1}),n})}}function lL(r,e,t,a){if(e===Ju)for(var n=0;n<t.length&&n<a;n++)r(t[n]?t[n][0]:null,n);else for(var i=t[0]||[],n=0;n<i.length&&n<a;n++)r(i[n],n)}function HP(r){var e=r.sourceFormat;return e===Xa||e===Bn}var ys,ms,_s,uL,cL,UP=(function(){function r(e,t){var a=Zb(e)?e:Wb(e);this._source=a;var n=this._data=a.data;a.sourceFormat===wo&&(this._offset=0,this._dimSize=t,this._data=n),cL(this,n,a)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=(function(){var e=r.prototype;e.pure=!1,e.persistent=!0})(),r.internalField=(function(){var e;cL=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,v=l.startIndex,d=l.dimensionsDefine,p=uL[qb(u,f)];if(et(o,p),u===wo)o.getItem=t,o.count=n,o.fillStorage=a;else{var y=FP(u,f);o.getItem=dt(y,null,s,v,d);var m=jP(u,f);o.count=dt(m,null,s,v,d)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,v=0;v<u;v++)s[v]=l[f+v];return s},a=function(o,s,l,u){for(var f=this._data,v=this._dimSize,d=0;d<v;d++){for(var p=u[d],y=p[0]==null?1/0:p[0],m=p[1]==null?-1/0:p[1],_=s-o,S=l[d],b=0;b<_;b++){var w=f[b*v+d];S[o+b]=w,w<y&&(y=w),w>m&&(m=w)}p[0]=y,p[1]=m}},n=function(){return this._data?this._data.length/this._dimSize:0};uL=(e={},e[Cr+"_"+In]={pure:!0,appendData:i},e[Cr+"_"+Ju]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Xa]={pure:!0,appendData:i},e[Bn]={pure:!0,appendData:function(o){var s=this._data;P(o,function(l,u){for(var f=s[u]||(s[u]=[]),v=0;v<(l||[]).length;v++)f.push(l[v])})}},e[Ya]={appendData:i},e[wo]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})(),fL=function(r,e,t,a){return r[a]},MU=(ys={},ys[Cr+"_"+In]=function(r,e,t,a){return r[a+e]},ys[Cr+"_"+Ju]=function(r,e,t,a,n){a+=e;for(var i=n||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[a]:null}return i},ys[Xa]=fL,ys[Bn]=function(r,e,t,a,n){for(var i=n||[],o=0;o<t.length;o++){var s=t[o].name,l=r[s];i[o]=l?l[a]:null}return i},ys[Ya]=fL,ys);function FP(r,e){var t=MU[qb(r,e)];return t}var hL=function(r,e,t){return r.length},LU=(ms={},ms[Cr+"_"+In]=function(r,e,t){return Math.max(0,r.length-e)},ms[Cr+"_"+Ju]=function(r,e,t){var a=r[0];return a?Math.max(0,a.length-e):0},ms[Xa]=hL,ms[Bn]=function(r,e,t){var a=t[0].name,n=r[a];return n?n.length:0},ms[Ya]=hL,ms);function jP(r,e){var t=LU[qb(r,e)];return t}var V1=function(r,e,t){return r[e]},EU=(_s={},_s[Cr]=V1,_s[Xa]=function(r,e,t){return r[t]},_s[Bn]=V1,_s[Ya]=function(r,e,t){var a=Yu(r);return a instanceof Array?a[e]:a},_s[wo]=V1,_s);function YP(r){var e=EU[r];return e}function qb(r,e){return r===Cr?r+"_"+e:r}function Pu(r,e,t){if(r){var a=r.getRawDataItem(e);if(a!=null){var n=r.getStore(),i=n.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=n.getDimensionProperty(o);return YP(i)(a,o,s)}else{var l=a;return i===Ya&&(l=Yu(a)),l}}}}var RU=/\{@(.+?)\}/g,$b=(function(){function r(){}return r.prototype.getDataParams=function(e,t){var a=this.getData(t),n=this.getRawValue(e,t),i=a.getRawIndex(e),o=a.getName(e),s=a.getRawDataItem(e),l=a.getItemVisual(e,"style"),u=l&&l[a.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,v=this.mainType,d=v==="series",p=a.userOutput&&a.userOutput.get();return{componentType:v,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:i,data:s,dataType:t,value:n,color:u,borderColor:f,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,a,n,i,o){t=t||"normal";var s=this.getData(a),l=this.getDataParams(e,a);if(o&&(l.value=o.interpolatedValue),n!=null&&it(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(e);i=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(bt(i))return l.status=t,l.dimensionIndex=n,i(l);if(vt(i)){var f=DP(i,l);return f.replace(RU,function(v,d){var p=d.length,y=d;y.charAt(0)==="["&&y.charAt(p-1)==="]"&&(y=+y.slice(1,p-1));var m=Pu(s,e,y);if(o&&it(o.interpolatedValue)){var _=s.getDimensionIndex(y);_>=0&&(m=o.interpolatedValue[_])}return m!=null?m+"":""})}},r.prototype.getRawValue=function(e,t){return Pu(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r})();function vL(r){var e,t;return Tt(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function Kf(r){return new IU(r)}var IU=(function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,a=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(b){return!(b>=1)&&(b=1),b}var v;(this._dirty||i==="reset")&&(this._dirty=!1,v=this._doReset(a)),this._modBy=l,this._modDataCount=u;var d=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,y=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!a&&(v||p<y)){var m=this._progress;if(it(m))for(var _=0;_<m.length;_++)this._doProgress(m[_],p,y,l,u);else this._doProgress(m,p,y,l,u)}this._dueIndex=y;var S=this._settedOutputEnd!=null?this._settedOutputEnd:y;this._outputDueEnd=S}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(e,t,a,n,i){dL.reset(t,a,n,i),this._callingProgress=e,this._callingProgress({start:t,end:a,count:a-t,next:dL.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,a;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(a=t.forceFirstProgress,t=t.progress),it(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),a},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},r})(),dL=(function(){var r,e,t,a,n,i={reset:function(l,u,f,v){e=l,r=u,t=f,a=v,n=Math.ceil(a/t),i.next=t>1&&a>0?s:o}};return i;function o(){return e<r?e++:null}function s(){var l=e%n*t+Math.ceil(e/n),u=e>=r?null:l<a?l:e;return e++,u}})();function To(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!Qt(r)&&r!=null&&r!=="-"&&(r=+zn(r)),r==null||r===""?NaN:+r)}var NU=xt({number:function(r){return parseFloat(r)},time:function(r){return+zn(r)},trim:function(r){return vt(r)?rn(r):r}});function XP(r){return NU.get(r)}var ZP={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},gte:function(r,e){return r>=e}},PU=(function(){function r(e,t){if(!Qt(t)){var a="";ne(a)}this._opFn=ZP[e],this._rvalFloat=mi(t)}return r.prototype.evaluate=function(e){return Qt(e)?this._opFn(e,this._rvalFloat):this._opFn(mi(e),this._rvalFloat)},r})(),WP=(function(){function r(e,t){var a=e==="desc";this._resultLT=a?1:-1,t==null&&(t=a?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var a=Qt(e)?e:mi(e),n=Qt(t)?t:mi(t),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=vt(e),l=vt(t);s&&(a=l?e:0),l&&(n=s?t:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r})(),OU=(function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=mi(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var a=typeof e;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(t=mi(e)===this._rvalFloat)}return this._isEQ?t:!t},r})();function zU(r,e){return r==="eq"||r==="ne"?new OU(r==="eq",e):pt(ZP,r)?new PU(r,e):null}var kU=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return To(e,t)},r})();function BU(r,e){var t=new kU,a=r.data,n=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==In&&ne(o);var s=[],l={},u=r.dimensionsDefine;if(u)P(u,function(m,_){var S=m.name,b={index:_,name:S,displayName:m.displayName};if(s.push(b),S!=null){var w="";pt(l,S)&&ne(w),l[S]=b}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var v=FP(n,In);e.__isBuiltIn&&(t.getRawDataItem=function(m){return v(a,i,s,m)},t.getRawData=dt(VU,null,r)),t.cloneRawData=dt(GU,null,r);var d=jP(n,In);t.count=dt(d,null,a,i,s);var p=YP(n);t.retrieveValue=function(m,_){var S=v(a,i,s,m);return y(S,_)};var y=t.retrieveValueFromItem=function(m,_){if(m!=null){var S=s[_];if(S)return p(m,_,S.name)}};return t.getDimensionInfo=dt(HU,null,s,l),t.cloneAllDimensionInfo=dt(UU,null,s),t}function VU(r){var e=r.sourceFormat;if(!Kb(e)){var t="";ne(t)}return r.data}function GU(r){var e=r.sourceFormat,t=r.data;if(!Kb(e)){var a="";ne(a)}if(e===Cr){for(var n=[],i=0,o=t.length;i<o;i++)n.push(t[i].slice());return n}else if(e===Xa){for(var n=[],i=0,o=t.length;i<o;i++)n.push(et({},t[i]));return n}}function HU(r,e,t){if(t!=null){if(Qt(t)||!isNaN(t)&&!pt(e,t))return r[t];if(pt(e,t))return e[t]}}function UU(r){return Dt(r)}var qP=xt();function FU(r){r=Dt(r);var e=r.type,t="";e||ne(t);var a=e.split(":");a.length!==2&&ne(t);var n=!1;a[0]==="echarts"&&(e=a[1],n=!0),r.__isBuiltIn=n,qP.set(e,r)}function jU(r,e,t){var a=he(r),n=a.length,i="";n||ne(i);for(var o=0,s=n;o<s;o++){var l=a[o];e=YU(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function YU(r,e,t,a){var n="";e.length||ne(n),Tt(r)||ne(n);var i=r.type,o=qP.get(i);o||ne(n);var s=st(e,function(u){return BU(u,o)}),l=he(o.transform({upstream:s[0],upstreamList:s,config:Dt(r.config)}));return st(l,function(u,f){var v="";Tt(u)||ne(v),u.data||ne(v);var d=GP(u.data);Kb(d)||ne(v);var p,y=e[0];if(y&&f===0&&!u.dimensions){var m=y.startIndex;m&&(u.data=y.data.slice(0,m).concat(u.data)),p={seriesLayoutBy:In,sourceHeader:m,dimensions:y.metaRawOption.dimensions}}else p={seriesLayoutBy:In,sourceHeader:0,dimensions:u.dimensions};return iS(u.data,p,null)})}function Kb(r){return r===Cr||r===Xa}var vy="undefined",XU=typeof Uint32Array===vy?Array:Uint32Array,ZU=typeof Uint16Array===vy?Array:Uint16Array,$P=typeof Int32Array===vy?Array:Int32Array,pL=typeof Float64Array===vy?Array:Float64Array,KP={float:pL,int:$P,ordinal:Array,number:Array,time:pL},G1;function cf(r){return r>65535?XU:ZU}function iu(){return[1/0,-1/0]}function WU(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function gL(r,e,t,a,n){var i=KP[t||"float"];if(n){var o=r[e],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new i(a)}var oS=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=xt()}return r.prototype.initData=function(e,t,a){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),i=this.defaultDimValueGetter=G1[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],HP(n),this._dimensions=st(t,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(e);if(i!=null){if(n[i].type===t)return i}else i=n.length;return n[i]={type:t},a.set(e,i),this._chunks[i]=new KP[t||"float"](this._rawCount),this._rawExtent[i]=iu(),i},r.prototype.collectOrdinalMeta=function(e,t){var a=this._chunks[e],n=this._dimensions[e],i=this._rawExtent,o=n.ordinalOffset||0,s=a.length;o===0&&(i[e]=iu());for(var l=i[e],u=o;u<s;u++){var f=a[u]=t.parseAndCollect(a[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=t,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],a=t.ordinalMeta;return a},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,a=this.count();t.appendData(e);var n=t.count();return t.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},r.prototype.appendValues=function(e,t){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<i;u++){var f=n[u];gL(a,u,f.type,l,!0)}for(var v=[],d=s;d<l;d++)for(var p=d-s,y=0;y<i;y++){var f=n[y],m=G1.arrayRows.call(this,e[p]||v,f.property,p,y);a[y][d]=m;var _=o[y];m<_[0]&&(_[0]=m),m>_[1]&&(_[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=st(o,function(b){return b.property}),f=0;f<s;f++){var v=o[f];l[f]||(l[f]=iu()),gL(i,f,v.type,t,a)}if(n.fillStorage)n.fillStorage(e,t,i,l);else for(var d=[],p=e;p<t;p++){d=n.getItem(p,d);for(var y=0;y<s;y++){var m=i[y],_=this._dimValueGetter(d,u[y],p,y);m[p]=_;var S=l[y];_<S[0]&&(S[0]=_),_>S[1]&&(S[1]=_)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var a=this._chunks[e];return a?a[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var a=[],n=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=e;for(var i=0,o=n.length;i<o;i++)a.push(this.get(n[i],t));return a},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var a=this._chunks[e];return a?a[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],a=0;if(t)for(var n=0,i=this.count();n<i;n++){var o=this.get(e,n);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(e){var t=[];this.each([e],function(i){isNaN(i)||t.push(i)});var a=t.sort(function(i,o){return i-o}),n=this.count();return n===0?0:n%2===1?a[(n-1)/2]:(a[n/2]+a[n/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,a=t[e];if(a!=null&&a<this._count&&a===e)return e;for(var n=0,i=this._count-1;n<=i;){var o=(n+i)/2|0;if(t[o]<e)n=o+1;else if(t[o]>e)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,a){var n=this._chunks,i=n[e],o=[];if(!i)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,f=0,v=this.count();f<v;f++){var d=this.getRawIndex(f),p=t-i[d],y=Math.abs(p);y<=a&&((y<s||y===s&&p>=0&&l<0)&&(s=y,l=p,u=0),p===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var a=t.constructor,n=this._count;if(a===Array){e=new a(n);for(var i=0;i<n;i++)e[i]=t[i]}else e=new a(t.buffer,0,n)}else{var a=cf(this._rawCount);e=new a(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var a=this.clone(),n=a.count(),i=cf(a._rawCount),o=new i(n),s=[],l=e.length,u=0,f=e[0],v=a._chunks,d=0;d<n;d++){var p=void 0,y=a.getRawIndex(d);if(l===0)p=t(d);else if(l===1){var m=v[f][y];p=t(m,d)}else{for(var _=0;_<l;_++)s[_]=v[e[_]][y];s[_]=d,p=t.apply(null,s)}p&&(o[u++]=y)}return u<n&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(e){var t=this.clone(),a=t._count;if(!a)return this;var n=Yt(e),i=n.length;if(!i)return this;var o=t.count(),s=cf(t._rawCount),l=new s(o),u=0,f=n[0],v=e[f][0],d=e[f][1],p=t._chunks,y=!1;if(!t._indices){var m=0;if(i===1){for(var _=p[n[0]],S=0;S<a;S++){var b=_[S];(b>=v&&b<=d||isNaN(b))&&(l[u++]=m),m++}y=!0}else if(i===2){for(var _=p[n[0]],w=p[n[1]],A=e[n[1]][0],M=e[n[1]][1],S=0;S<a;S++){var b=_[S],C=w[S];(b>=v&&b<=d||isNaN(b))&&(C>=A&&C<=M||isNaN(C))&&(l[u++]=m),m++}y=!0}}if(!y)if(i===1)for(var S=0;S<o;S++){var L=t.getRawIndex(S),b=p[n[0]][L];(b>=v&&b<=d||isNaN(b))&&(l[u++]=L)}else for(var S=0;S<o;S++){for(var E=!0,L=t.getRawIndex(S),R=0;R<i;R++){var N=n[R],b=p[N][L];(b<e[N][0]||b>e[N][1])&&(E=!1)}E&&(l[u++]=t.getRawIndex(S))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var a=this.clone(e);return this._updateDims(a,e,t),a},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,a){for(var n=e._chunks,i=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<t.length;f++)u[t[f]]=iu();for(var v=0;v<s;v++){for(var d=e.getRawIndex(v),p=0;p<o;p++)l[p]=n[t[p]][d];l[o]=v;var y=a&&a.apply(null,l);if(y!=null){typeof y!="object"&&(i[0]=y,y=i);for(var f=0;f<y.length;f++){var m=t[f],_=y[f],S=u[m],b=n[m];b&&(b[d]=_),_<S[0]&&(S[0]=_),_>S[1]&&(S[1]=_)}}}},r.prototype.lttbDownSample=function(e,t){var a=this.clone([e],!0),n=a._chunks,i=n[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,v,d,p=new(cf(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));p[s++]=u;for(var y=1;y<o-1;y+=l){for(var m=Math.min(y+l,o-1),_=Math.min(y+l*2,o),S=(_+m)/2,b=0,w=m;w<_;w++){var A=this.getRawIndex(w),M=i[A];isNaN(M)||(b+=M)}b/=_-m;var C=y,L=Math.min(y+l,o),E=y-1,R=i[u];f=-1,d=C;for(var N=-1,O=0,w=C;w<L;w++){var A=this.getRawIndex(w),M=i[A];if(isNaN(M)){O++,N<0&&(N=A);continue}v=Math.abs((E-S)*(M-R)-(E-w)*(b-R)),v>f&&(f=v,d=A)}O>0&&O<L-C&&(p[s++]=Math.min(N,d),d=Math.max(N,d)),p[s++]=d,u=d}return p[s++]=this.getRawIndex(o-1),a._count=s,a._indices=p,a.getRawIndex=this._getRawIdx,a},r.prototype.downSample=function(e,t,a,n){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/t),u=o[e],f=this.count(),v=i._rawExtent[e]=iu(),d=new(cf(this._rawCount))(Math.ceil(f/l)),p=0,y=0;y<f;y+=l){l>f-y&&(l=f-y,s.length=l);for(var m=0;m<l;m++){var _=this.getRawIndex(y+m);s[m]=u[_]}var S=a(s),b=this.getRawIndex(Math.min(y+n(s,S)||0,f-1));u[b]=S,S<v[0]&&(v[0]=S),S>v[1]&&(v[1]=S),d[p++]=b}return i._count=p,i._indices=d,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var a=e.length,n=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(a){case 0:t(i);break;case 1:t(n[e[0]][s],i);break;case 2:t(n[e[0]][s],n[e[1]][s],i);break;default:for(var l=0,u=[];l<a;l++)u[l]=n[e[l]][s];u[l]=i,t.apply(null,u)}}},r.prototype.getDataExtent=function(e){var t=this._chunks[e],a=iu();if(!t)return a;var n=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=a;for(var s=o[0],l=o[1],u=0;u<n;u++){var f=this.getRawIndex(u),v=t[f];v<s&&(s=v),v>l&&(l=v)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][t]);return a},r.prototype.clone=function(e,t){var a=new r,n=this._chunks,i=e&&Nn(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?WU(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),t||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Dt(this._extent),e._rawExtent=Dt(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var a=this._indices.length;t=new e(a);for(var n=0;n<a;n++)t[n]=this._indices[n]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function e(t,a,n,i){return To(t[i],this._dimensions[i])}G1={arrayRows:e,objectRows:function(t,a,n,i){return To(t[a],this._dimensions[i])},keyedColumns:e,original:function(t,a,n,i){var o=t&&(t.value==null?t:t.value);return To(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,a,n,i){return t[i]}}})(),r})(),QP=(function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length,n,i;if(Vd(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=da(s)?wo:Ya,i=[];var v=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},p=Ot(v.seriesLayoutBy,d.seriesLayoutBy)||null,y=Ot(v.sourceHeader,d.sourceHeader),m=Ot(v.dimensions,d.dimensions),_=p!==d.seriesLayoutBy||!!y!=!!d.sourceHeader||m;n=_?[iS(s,{seriesLayoutBy:p,sourceHeader:y,dimensions:m},l)]:[]}else{var S=e;if(a){var b=this._applyTransform(t);n=b.sourceList,i=b.upstreamSignList}else{var w=S.get("source",!0);n=[iS(w,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,a=t.get("transform",!0),n=t.get("fromTransformResult",!0);if(n!=null){var i="";e.length!==1&&mL(i)}var o,s=[],l=[];return P(e,function(u){u.prepareSource();var f=u.getSource(n||0),v="";n!=null&&!f&&mL(v),s.push(f),l.push(u._getVersionSign())}),a?o=jU(a,s,{datasetIndex:t.componentIndex}):n!=null&&(o=[AU(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var a=e[t];if(a._isDirty()||this._upstreamSignList[t]!==a._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,a){var n=0,i=this._storeList,o=i[n];o||(o=i[n]={});var s=o[a];if(!s){var l=this._getUpstreamSourceManagers()[0];Vd(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,a):(s=new oS,s.initData(new UP(t,e.length),e)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Vd(e)){var t=jb(e);return t?[t.getSourceManager()]:[]}else return st(tU(e),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,a,n;if(Vd(e))t=e.get("seriesLayoutBy",!0),a=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:a,dimensions:n}},r})();function yL(r){var e=r.option.transform;e&&Yp(r.option.transform)}function Vd(r){return r.mainType==="series"}function mL(r){throw new Error(r)}var JP="line-height:1";function tO(r,e){var t=r.color||"#6e7079",a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+ca(a+"")+"px;color:"+ca(t)+";font-weight:"+ca(n+""),valueStyle:"font-size:"+ca(o+"")+"px;color:"+ca(i)+";font-weight:"+ca(s+"")}:{nameStyle:{fontSize:a,fill:t,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var qU=[0,10,20,30],$U=["",`
`,`
`,`
`];function ir(r,e){return e.type=r,e}function sS(r){return r.type==="section"}function eO(r){return sS(r)?KU:QU}function rO(r){if(sS(r)){var e=0,t=r.blocks.length,a=t>1||t>0&&!r.noHeader;return P(r.blocks,function(n){var i=rO(n);i>=e&&(e=i+ +(a&&(!i||sS(n)&&!n.noHeader)))}),e}return 0}function KU(r,e,t,a){var n=e.noHeader,i=JU(rO(e)),o=[],s=e.blocks||[];zr(!s||it(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(pt(u,l)){var f=new WP(u[l],null);s.sort(function(y,m){return f.evaluate(y.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}P(s,function(y,m){var _=e.valueFormatter,S=eO(y)(_?et(et({},r),{valueFormatter:_}):r,y,m>0?i.html:0,a);S!=null&&o.push(S)});var v=r.renderMode==="richText"?o.join(i.richText):lS(o.join(""),n?t:i.html);if(n)return v;var d=rS(e.header,"ordinal",r.useUTC),p=tO(a,r.renderMode).nameStyle;return r.renderMode==="richText"?aO(r,d,p)+i.richText+v:lS('<div style="'+p+";"+JP+';">'+ca(d)+"</div>"+v,t)}function QU(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(A){return A=it(A)?A:[A],st(A,function(M,C){return rS(M,it(p)?p[C]:p,u)})};if(!(i&&o)){var v=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),d=i?"":rS(l,"ordinal",u),p=e.valueType,y=o?[]:f(e.value),m=!s||!i,_=!s&&i,S=tO(a,n),b=S.nameStyle,w=S.valueStyle;return n==="richText"?(s?"":v)+(i?"":aO(r,d,b))+(o?"":rF(r,y,m,_,w)):lS((s?"":v)+(i?"":tF(d,!s,b))+(o?"":eF(y,m,_,w)),t)}}function _L(r,e,t,a,n,i){if(r){var o=eO(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function JU(r){return{html:qU[r],richText:$U[r]}}function lS(r,e){var t='<div style="clear:both"></div>',a="margin: "+e+"px 0 0";return'<div style="'+a+";"+JP+';">'+r+t+"</div>"}function tF(r,e,t){var a=e?"margin-left:2px":"";return'<span style="'+t+";"+a+'">'+ca(r)+"</span>"}function eF(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=it(r)?r:[r],'<span style="'+i+";"+a+'">'+st(r,function(o){return ca(o)}).join("&nbsp;&nbsp;")+"</span>"}function aO(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function rF(r,e,t,a,n){var i=[n],o=a?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(it(e)?e.join(" "):e,i)}function nO(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return al(a)}function iO(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var H1=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=m3()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n=a==="richText"?this._generateStyleName():null,i=Z9({color:t,type:e,renderMode:a,markerId:n});return vt(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};it(t)?P(t,function(i){return et(a,i)}):et(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r})();function oO(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=it(s),u=nO(e,t),f,v,d,p;if(o>1||l&&!o){var y=aF(s,e,t,i,u);f=y.inlineValues,v=y.inlineValueTypes,d=y.blocks,p=y.inlineValues[0]}else if(o){var m=n.getDimensionInfo(i[0]);p=f=Pu(n,t,i[0]),v=m.type}else p=f=l?s[0]:s;var _=Tb(e),S=_&&e.name||"",b=n.getName(t),w=a?S:b;return ir("section",{header:S,noHeader:a||!_,sortParam:p,blocks:[ir("nameValue",{markerType:"item",markerColor:u,name:w,noName:!rn(w),value:f,valueType:v})].concat(d||[])})}function aF(r,e,t,a,n){var i=e.getData(),o=Nn(r,function(v,d,p){var y=i.getDimensionInfo(p);return v=v||y&&y.tooltip!==!1&&y.displayName!=null},!1),s=[],l=[],u=[];a.length?P(a,function(v){f(Pu(i,t,v),v)}):P(r,f);function f(v,d){var p=i.getDimensionInfo(d);!p||p.otherDims.tooltip===!1||(o?u.push(ir("nameValue",{markerType:"subItem",markerColor:n,name:p.displayName,value:v,valueType:p.type})):(s.push(v),l.push(p.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ro=Kt();function Gd(r,e){return r.getName(e)||r.getId(e)}var zp="__universalTransitionEnabled",Se=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Kf({count:iF,reset:oF}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=ro(this).sourceManager=new QP(this);i.prepareSource();var o=this.getInitialData(t,n);SL(o,this),this.dataTask.context.data=o,ro(this).dataBeforeProcessed=o,xL(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=dh(this),i=n?Qu(t):{},o=this.subType;jt.hasClass(o)&&(o+="Series"),zt(t,a.getTheme().get(this.subType)),zt(t,this.getDefaultOption()),Js(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Ro(t,i,n)},e.prototype.mergeOption=function(t,a){t=zt(this.option,t,!0),this.fillDataTextStyle(t.data);var n=dh(this);n&&Ro(this.option,t,n);var i=ro(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,a);SL(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ro(this).dataBeforeProcessed=o,xL(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!da(t))for(var a=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Js(t[n],"label",a)},e.prototype.getInitialData=function(t,a){},e.prototype.appendData=function(t){var a=this.getRawData();a.appendData(t.data)},e.prototype.getData=function(t){var a=uS(this);if(a){var n=a.context.data;return t==null?n:n.getLinkedData(t)}else return ro(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var a=uS(this);if(a){var n=a.context;n.outputData=t,a!==this.dataTask&&(n.data=t)}ro(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return xt(t)},e.prototype.getSourceManager=function(){return ro(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return ro(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,a,n){return oO({series:this,dataIndex:t,multipleSeries:a})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Ft.node&&!(t&&t.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,a,n){var i=this.ecModel,o=Yb.prototype.getColorFromPalette.call(this,t,a,n);return o||(o=i.getColorFromPalette(t,a,n)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,a){this._innerSelect(this.getData(a),t)},e.prototype.unselect=function(t,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=Gd(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,a){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],a)?this.unselect(n,a):this.select(n,a)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,a=Yt(t),n=[],i=0;i<a.length;i++){var o=t[a[i]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(t,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[Gd(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[zp])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Tt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var v=a[f],d=Gd(t,v);u[d]=!0,this._selectedDataIndicesMap[d]=t.getRawIndex(v)}}else if(s==="single"||s===!0){var p=a[l-1],d=Gd(t,p);o.selectedMap=(n={},n[d]=!0,n),this._selectedDataIndicesMap=(i={},i[d]=t.getRawIndex(p),i)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var a=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(t,a)}},e.registerClass=function(t){return jt.registerClass(t)},e.protoInitialize=(function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"})(),e})(jt);Xe(Se,$b);Xe(Se,Yb);C3(Se,jt);function xL(r){var e=r.name;Tb(r)||(r.name=nF(r)||e)}function nF(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),a=[];return P(t,function(n){var i=e.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function iF(r){return r.model.getRawData().count()}function oF(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),sF}function sF(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function SL(r,e){P(Xp(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,It(lF,e))})}function lF(r,e){var t=uS(r);return t&&t.setOutputEnd((e||this).count()),e}function uS(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var a=t.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}var Ee=(function(){function r(){this.group=new Ct,this.uid=$u("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){},r.prototype.updateLayout=function(e,t,a,n){},r.prototype.updateVisual=function(e,t,a,n){},r.prototype.toggleBlurSeries=function(e,t,a){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r})();Db(Ee);qg(Ee);function tc(){var r=Kt();return function(e){var t=r(e),a=e.pipelineContext,n=!!t.large,i=!!t.progressiveRender,o=t.large=!!(a&&a.large),s=t.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var sO=Kt(),uF=tc(),de=(function(){function r(){this.group=new Ct,this.uid=$u("viewChart"),this.renderTask=Kf({plan:cF,reset:fF}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.highlight=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&wL(i,n,"emphasis")},r.prototype.downplay=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&wL(i,n,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateLayout=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateVisual=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.eachRendered=function(e){Oo(this.group,e)},r.markUpdateMethod=function(e,t){sO(e).updateMethod=t},r.protoInitialize=(function(){var e=r.prototype;e.type="chart"})(),r})();function bL(r,e,t){r&&ch(r)&&(e==="emphasis"?_i:xi)(r,t)}function wL(r,e,t){var a=tl(r,e),n=e&&e.highlightKey!=null?ZH(e.highlightKey):null;a!=null?P(he(a),function(i){bL(r.getItemGraphicEl(i),t,n)}):r.eachItemGraphicEl(function(i){bL(i,t,n)})}Db(de);qg(de);function cF(r){return uF(r.model)}function fF(r){var e=r.model,t=r.ecModel,a=r.api,n=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=n&&sO(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,a,n),hF[l]}var hF={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},cg="\0__throttleOriginMethod",TL="\0__throttleRate",AL="\0__throttleType";function Qb(r,e,t){var a,n=0,i=0,o=null,s,l,u,f;e=e||0;function v(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var d=function(){for(var p=[],y=0;y<arguments.length;y++)p[y]=arguments[y];a=new Date().getTime(),l=this,u=p;var m=f||e,_=f||t;f=null,s=a-(_?n:i)-m,clearTimeout(o),_?o=setTimeout(v,m):s>=0?v():o=setTimeout(v,-s),n=a};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(p){f=p},d}function ec(r,e,t,a){var n=r[e];if(n){var i=n[cg]||n,o=n[AL],s=n[TL];if(s!==t||o!==a){if(t==null||!a)return r[e]=i;n=r[e]=Qb(i,t,a==="debounce"),n[cg]=i,n[AL]=a,n[TL]=t}return n}}function gh(r,e){var t=r[e];t&&t[cg]&&(t.clear&&t.clear(),r[e]=t[cg])}var DL=Kt(),CL={itemStyle:el(vP,!0),lineStyle:el(hP,!0)},vF={lineStyle:"stroke",itemStyle:"fill"};function lO(r,e){var t=r.visualStyleMapper||CL[e];return t||(console.warn("Unknown style type '"+e+"'."),CL.itemStyle)}function uO(r,e){var t=r.visualDrawType||vF[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var dF={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=lO(r,a),o=i(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=uO(r,a),u=o[l],f=bt(u)?u:null,v=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||v){var d=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=d,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||bt(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||bt(o.stroke)?d:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(p,y){var m=r.getDataParams(y),_=et({},o);_[l]=f(m),p.setItemVisual(y,"style",_)}}}},ff=new oe,pF={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=lO(r,a),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){ff.option=l[a];var u=n(ff),f=o.ensureUniqueItemVisual(s,"style");et(f,u),ff.option.decal&&(o.setItemVisual(s,"decal",ff.option.decal),ff.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},gF={performRawSeries:!0,overallReset:function(r){var e=xt();r.eachSeries(function(t){var a=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+a,i=e.get(n);i||(i={},e.set(n,i)),DL(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var a=t.getRawData(),n={},i=t.getData(),o=DL(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=uO(t,s);i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u],v=i.getItemVisual(f,"colorFromPalette");if(v){var d=i.ensureUniqueItemVisual(f,"style"),p=a.getName(u)||u+"",y=a.count();d[l]=t.getColorFromPalette(p,o,y)}})}})}},Hd=Math.PI;function yF(r,e){e=e||{},wt(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 t=new Ct,a=new Wt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(a);var n=new $t({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new Wt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new ry({shape:{startAngle:-Hd/2,endAngle:-Hd/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Hd*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Hd*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var cO=(function(){function r(e,t,a,n){this._stageTaskMap=xt(),this.ecInstance=e,this.api=t,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),n=a.context,i=!t&&a.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var a=this._pipelineMap.get(e.uid),n=e.getData(),i=n.count(),o=a.progressiveEnabled&&t.incrementalPrepareRender&&i>=a.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,a=t._pipelineMap=xt();e.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),a=this.api;P(this._allHandlers,function(n){var i=e.get(n.uid)||e.set(n.uid,{}),o="";zr(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,t,a),n.overallReset&&this._createOverallStageTask(n,i,t,a)},this)},r.prototype.prepareView=function(e,t,a,n){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=a,o.api=n,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,a){this._performStageTasks(this._visualHandlers,e,t,a)},r.prototype._performStageTasks=function(e,t,a,n){n=n||{};var i=!1,o=this;P(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),v=f.seriesTaskMap,d=f.overallTask;if(d){var p,y=d.agentStubMap;y.each(function(_){s(n,_)&&(_.dirty(),p=!0)}),p&&d.dirty(),o.updatePayload(d,a);var m=o.getPerformArgs(d,n.block);y.each(function(_){_.perform(m)}),d.perform(m)&&(i=!0)}else v&&v.each(function(_,S){s(n,_)&&_.dirty();var b=o.getPerformArgs(_,n.block);b.skip=!l.performRawSeries&&t.isSeriesFiltered(_.context.model),o.updatePayload(_,a),_.perform(b)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(a){t=a.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,a,n){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=xt(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f);function f(v){var d=v.uid,p=s.set(d,o&&o.get(d)||Kf({plan:bF,reset:wF,count:AF}));p.context={model:v,ecModel:a,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(v,p)}},r.prototype._createOverallStageTask=function(e,t,a,n){var i=this,o=t.overallTask=t.overallTask||Kf({reset:mF});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=xt(),u=e.seriesType,f=e.getTargetSeries,v=!0,d=!1,p="";zr(!e.createOnAllSeries,p),u?a.eachRawSeriesByType(u,y):f?f(a,n).each(y):(v=!1,P(a.getSeries(),y));function y(m){var _=m.uid,S=l.set(_,s&&s.get(_)||(d=!0,Kf({reset:_F,onDirty:SF})));S.context={model:m,overallProgress:v},S.agent=o,S.__block=v,i._pipe(m,S)}d&&o.dirty()},r.prototype._pipe=function(e,t){var a=e.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){return bt(e)&&(e={overallReset:e,seriesType:DF(e)}),e.uid=$u("stageHandler"),t&&(e.visualType=t),e},r})();function mF(r){r.overallReset(r.ecModel,r.api,r.payload)}function _F(r){return r.overallProgress&&xF}function xF(){this.agent.dirty(),this.getDownstream().dirty()}function SF(){this.agent&&this.agent.dirty()}function bF(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function wF(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=he(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?st(e,function(t,a){return fO(a)}):TF}var TF=fO(0);function fO(r){return function(e,t){var a=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var i=e.start;i<e.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(e,a)}}function AF(r){return r.data.count()}function DF(r){fg=null;try{r(yh,hO)}catch{}return fg}var yh={},hO={},fg;vO(yh,Xb);vO(hO,kP);yh.eachSeriesByType=yh.eachRawSeriesByType=function(r){fg=r};yh.eachComponent=function(r){r.mainType==="series"&&r.subType&&(fg=r.subType)};function vO(r,e){for(var t in e.prototype)r[t]=Ge}var ML=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const CF={color:ML,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],ML]};var Er="#B9B8CE",LL="#100C2A",Ud=function(){return{axisLine:{lineStyle:{color:Er}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},EL=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],dO={darkMode:!0,color:EL,backgroundColor:LL,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Er}},textStyle:{color:Er},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Er}},dataZoom:{borderColor:"#71708A",textStyle:{color:Er},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:Er}},timeline:{lineStyle:{color:Er},label:{color:Er},controlStyle:{color:Er,borderColor:Er}},calendar:{itemStyle:{color:LL},dayLabel:{color:Er},monthLabel:{color:Er},yearLabel:{color:Er}},timeAxis:Ud(),logAxis:Ud(),valueAxis:Ud(),categoryAxis:Ud(),line:{symbol:"circle"},graph:{color:EL},gauge:{title:{color:Er},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Er},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};dO.categoryAxis.splitLine.show=!1;var MF=(function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},a={},n={};if(vt(e)){var i=Mn(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};P(e,function(l,u){for(var f=!1,v=0;v<o.length;v++){var d=o[v],p=u.lastIndexOf(d);if(p>0&&p===u.length-d.length){var y=u.slice(0,p);y!=="data"&&(t.mainType=y,t[d.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:t,dataQuery:a,otherQuery:n}},r.prototype.filter=function(e,t){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,i));function f(v,d,p,y){return v[p]==null||d[y||p]===v[p]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),cS=["symbol","symbolSize","symbolRotate","symbolOffset"],RL=cS.concat(["symbolKeepAspect"]),LF={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o<cS.length;o++){var s=cS[o],l=r.get(s);bt(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,t.setVisual(et({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),e.isSeriesFiltered(r))return;var u=Yt(n);function f(v,d){for(var p=r.getRawValue(d),y=r.getDataParams(d),m=0;m<u.length;m++){var _=u[m];v.setItemVisual(d,_,n[_](p,y))}}return{dataEach:i?f:null}}},EF={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function a(n,i){for(var o=n.getItemModel(i),s=0;s<RL.length;s++){var l=RL[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:t.hasItemOption?a:null}}};function Jb(r,e,t){switch(t){case"color":var a=r.getItemVisual(e,"style");return a[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t)}}function Fh(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e)}}function pO(r,e,t,a){switch(t){case"color":var n=r.ensureUniqueItemVisual(e,"style");n[r.getVisual("drawType")]=a,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,a);break}}function gO(r,e){function t(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}P([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){e(a[0],function(n,i,o){n=et({},n),o.dispatchAction(et(n,{type:a[1],seriesIndex:t(i,n)}))})})}function ou(r,e,t,a,n){var i=r+e;t.isSilent(i)||a.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var v=o.getData(),d=tl(v,n.fromActionPayload);t.trigger(i,{type:i,seriesId:o.id,name:it(d)?v.getName(d[0]):v.getName(d),selected:vt(l)?l:et({},l)})}})}function RF(r,e,t){r.on("selectchanged",function(a){var n=t.getModel();a.isFromClick?(ou("map","selectchanged",e,n,a),ou("pie","selectchanged",e,n,a)):a.fromAction==="select"?(ou("map","selected",e,n,a),ou("pie","selected",e,n,a)):a.fromAction==="unselect"&&(ou("map","unselected",e,n,a),ou("pie","unselected",e,n,a))})}function Vs(r,e,t){for(var a;r&&!(e(r)&&(a=r,t));)r=r.__hostTarget||r.parent;return a}var IF=Math.round(Math.random()*9),NF=typeof Object.defineProperty=="function",PF=(function(){function r(){this._id="__ec_inner_"+IF++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var a=this._guard(e);return NF?Object.defineProperty(a,this._id,{value:t,enumerable:!1,configurable:!0}):a[this._id]=t,this},r.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r})(),OF=Ut.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,a=e.cy,n=e.width/2,i=e.height/2;r.moveTo(t,a-i),r.lineTo(t+n,a+i),r.lineTo(t-n,a+i),r.closePath()}}),zF=Ut.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,a=e.cy,n=e.width/2,i=e.height/2;r.moveTo(t,a-i),r.lineTo(t+n,a),r.lineTo(t,a+i),r.lineTo(t-n,a),r.closePath()}}),kF=Ut.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,a=e.y,n=e.width/5*3,i=Math.max(n,e.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,v=Math.sin(u),d=Math.cos(u),p=o*.6,y=o*.7;r.moveTo(t-f,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+f-v*p,l+s+d*p,t,a-y,t,a),r.bezierCurveTo(t,a-y,t-f+v*p,l+s+d*p,t-f,l+s),r.closePath()}}),BF=Ut.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,a=e.width,n=e.x,i=e.y,o=a/3*2;r.moveTo(n,i),r.lineTo(n+o,i+t),r.lineTo(n,i+t/4*3),r.lineTo(n-o,i+t),r.lineTo(n,i),r.closePath()}}),VF={line:er,rect:Wt,roundRect:Wt,square:Wt,circle:un,diamond:zF,pin:kF,arrow:BF,triangle:OF},GF={line:function(r,e,t,a,n){n.x1=r,n.y1=e+a/2,n.x2=r+t,n.y2=e+a/2},rect:function(r,e,t,a,n){n.x=r,n.y=e,n.width=t,n.height=a},roundRect:function(r,e,t,a,n){n.x=r,n.y=e,n.width=t,n.height=a,n.r=Math.min(t,a)/4},square:function(r,e,t,a,n){var i=Math.min(t,a);n.x=r,n.y=e,n.width=i,n.height=i},circle:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.r=Math.min(t,a)/2},diamond:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.width=t,n.height=a},pin:function(r,e,t,a,n){n.x=r+t/2,n.y=e+a/2,n.width=t,n.height=a},arrow:function(r,e,t,a,n){n.x=r+t/2,n.y=e+a/2,n.width=t,n.height=a},triangle:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.width=t,n.height=a}},hg={};P(VF,function(r,e){hg[e]=new r});var HF=Ut.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var a=tg(r,e,t),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(a.y=t.y+t.height*.4),a},buildPath:function(r,e,t){var a=e.symbolType;if(a!=="none"){var n=hg[a];n||(a="rect",n=hg[a]),GF[a](e.x,e.y,e.width,e.height,n.shape),n.buildPath(r,n.shape,t)}}});function UF(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||"#fff",t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function Ye(r,e,t,a,n,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=aP(r.slice(8),new kt(e,t,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=ay(r.slice(7),{},new kt(e,t,a,n),o?"center":"cover"):l=new HF({shape:{symbolType:r,x:e,y:t,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=UF,i&&l.setColor(i),l}function rc(r){return it(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function ll(r,e){if(r!=null)return it(r)||(r=[r,r]),[ft(r[0],e[0])||0,ft(Ot(r[1],r[0]),e[1])||0]}function Gs(r){return isFinite(r)}function FF(r,e,t){var a=e.x==null?0:e.x,n=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(a=a*t.width+t.x,n=n*t.width+t.x,i=i*t.height+t.y,o=o*t.height+t.y),a=Gs(a)?a:0,n=Gs(n)?n:1,i=Gs(i)?i:0,o=Gs(o)?o:0;var s=r.createLinearGradient(a,i,n,o);return s}function jF(r,e,t){var a=t.width,n=t.height,i=Math.min(a,n),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*a+t.x,s=s*n+t.y,l=l*i),o=Gs(o)?o:.5,s=Gs(s)?s:.5,l=l>=0&&Gs(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function fS(r,e,t){for(var a=e.type==="radial"?jF(r,e,t):FF(r,e,t),n=e.colorStops,i=0;i<n.length;i++)a.addColorStop(n[i].offset,n[i].color);return a}function YF(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}function Fd(r){return parseInt(r,10)}function Au(r,e,t){var a=["width","height"][e],n=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[a]!=null&&t[a]!=="auto")return parseFloat(t[a]);var s=document.defaultView.getComputedStyle(r);return(r[n]||Fd(s[a])||Fd(r.style[a]))-(Fd(s[i])||0)-(Fd(s[o])||0)|0}function XF(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:Qt(r)?[r]:it(r)?r:null}function t2(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&XF(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(t){var n=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(t=st(t,function(i){return i/n}),a/=n)}return[t,a]}var ZF=new kn(!0);function vg(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function IL(r){return typeof r=="string"&&r!=="none"}function dg(r){var e=r.fill;return e!=null&&e!=="none"}function NL(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function PL(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function hS(r,e,t){var a=Cb(e.image,e.__image,t);if($g(a)){var n=r.createPattern(a,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*wp),i.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(i)}return n}}function WF(r,e,t,a){var n,i=vg(t),o=dg(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||ZF,v=e.__dirty;if(!a){var d=t.fill,p=t.stroke,y=o&&!!d.colorStops,m=i&&!!p.colorStops,_=o&&!!d.image,S=i&&!!p.image,b=void 0,w=void 0,A=void 0,M=void 0,C=void 0;(y||m)&&(C=e.getBoundingRect()),y&&(b=v?fS(r,d,C):e.__canvasFillGradient,e.__canvasFillGradient=b),m&&(w=v?fS(r,p,C):e.__canvasStrokeGradient,e.__canvasStrokeGradient=w),_&&(A=v||!e.__canvasFillPattern?hS(r,d,e):e.__canvasFillPattern,e.__canvasFillPattern=A),S&&(M=v||!e.__canvasStrokePattern?hS(r,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=A),y?r.fillStyle=b:_&&(A?r.fillStyle=A:o=!1),m?r.strokeStyle=w:S&&(M?r.strokeStyle=M:i=!1)}var L=e.getGlobalScale();f.setScale(L[0],L[1],e.segmentIgnoreThreshold);var E,R;r.setLineDash&&t.lineDash&&(n=t2(e),E=n[0],R=n[1]);var N=!0;(u||v&mu)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),N=!1),f.reset(),e.buildPath(f,e.shape,a),f.toStatic(),e.pathUpdated()),N&&f.rebuildPath(r,l?s:1),E&&(r.setLineDash(E),r.lineDashOffset=R),a||(t.strokeFirst?(i&&PL(r,t),o&&NL(r,t)):(o&&NL(r,t),i&&PL(r,t))),E&&r.setLineDash([])}function qF(r,e,t){var a=e.__image=Cb(t.image,e.__image,e,e.onload);if(!(!a||!$g(a))){var n=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(a,u,f,t.sWidth,t.sHeight,n,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,v=o-u,d=s-f;r.drawImage(a,u,f,v,d,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}function $F(r,e,t){var a,n=t.text;if(n!=null&&(n+=""),n){r.font=t.font||Co,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(a=t2(e),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(vg(t)&&r.strokeText(n,t.x,t.y),dg(t)&&r.fillText(n,t.x,t.y)):(dg(t)&&r.fillText(n,t.x,t.y),vg(t)&&r.strokeText(n,t.x,t.y)),i&&r.setLineDash([])}}var OL=["shadowBlur","shadowOffsetX","shadowOffsetY"],zL=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function yO(r,e,t,a,n){var i=!1;if(!a&&(t=t||{},e===t))return!1;if(a||e.opacity!==t.opacity){Qr(r,n),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?Ys.opacity:o}(a||e.blend!==t.blend)&&(i||(Qr(r,n),i=!0),r.globalCompositeOperation=e.blend||Ys.blend);for(var s=0;s<OL.length;s++){var l=OL[s];(a||e[l]!==t[l])&&(i||(Qr(r,n),i=!0),r[l]=r.dpr*(e[l]||0))}return(a||e.shadowColor!==t.shadowColor)&&(i||(Qr(r,n),i=!0),r.shadowColor=e.shadowColor||Ys.shadowColor),i}function kL(r,e,t,a,n){var i=mh(e,n.inHover),o=a?null:t&&mh(t,n.inHover)||{};if(i===o)return!1;var s=yO(r,i,o,a,n);if((a||i.fill!==o.fill)&&(s||(Qr(r,n),s=!0),IL(i.fill)&&(r.fillStyle=i.fill)),(a||i.stroke!==o.stroke)&&(s||(Qr(r,n),s=!0),IL(i.stroke)&&(r.strokeStyle=i.stroke)),(a||i.opacity!==o.opacity)&&(s||(Qr(r,n),s=!0),r.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(Qr(r,n),s=!0),r.lineWidth=u)}for(var f=0;f<zL.length;f++){var v=zL[f],d=v[0];(a||i[d]!==o[d])&&(s||(Qr(r,n),s=!0),r[d]=i[d]||v[1])}return s}function KF(r,e,t,a,n){return yO(r,mh(e,n.inHover),t&&mh(t,n.inHover),a,n)}function mO(r,e){var t=e.transform,a=r.dpr||1;t?r.setTransform(a*t[0],a*t[1],a*t[2],a*t[3],a*t[4],a*t[5]):r.setTransform(a,0,0,a,0,0)}function QF(r,e,t){for(var a=!1,n=0;n<r.length;n++){var i=r[n];a=a||i.isZeroArea(),mO(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}t.allClipped=a}function JF(r,e){return r&&e?r[0]!==e[0]||r[1]!==e[1]||r[2]!==e[2]||r[3]!==e[3]||r[4]!==e[4]||r[5]!==e[5]:!(!r&&!e)}var BL=1,VL=2,GL=3,HL=4;function tj(r){var e=dg(r),t=vg(r);return!(r.lineDash||!(+e^+t)||e&&typeof r.fill!="string"||t&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function Qr(r,e){e.batchFill&&r.fill(),e.batchStroke&&r.stroke(),e.batchFill="",e.batchStroke=""}function mh(r,e){return e&&r.__hoverStyle||r.style}function _O(r,e){Hs(r,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Hs(r,e,t,a){var n=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~fa,e.__isRendered=!1;return}var i=e.__clipPaths,o=t.prevElClipPaths,s=!1,l=!1;if((!o||YF(i,o))&&(o&&o.length&&(Qr(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),i&&i.length&&(Qr(r,t),r.save(),QF(i,r,t),s=!0),t.prevElClipPaths=i),t.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var f=e instanceof Ut&&e.autoBatch&&tj(e.style);s||JF(n,u.transform)?(Qr(r,t),mO(r,e)):f||Qr(r,t);var v=mh(e,t.inHover);e instanceof Ut?(t.lastDrawType!==BL&&(l=!0,t.lastDrawType=BL),kL(r,e,u,l,t),(!f||!t.batchFill&&!t.batchStroke)&&r.beginPath(),WF(r,e,v,f),f&&(t.batchFill=v.fill||"",t.batchStroke=v.stroke||"")):e instanceof Iu?(t.lastDrawType!==GL&&(l=!0,t.lastDrawType=GL),kL(r,e,u,l,t),$F(r,e,v)):e instanceof hr?(t.lastDrawType!==VL&&(l=!0,t.lastDrawType=VL),KF(r,e,u,l,t),qF(r,e,v)):e.getTemporalDisplayables&&(t.lastDrawType!==HL&&(l=!0,t.lastDrawType=HL),ej(r,e,t)),f&&a&&Qr(r,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function ej(r,e,t){var a=e.getDisplayables(),n=e.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover},o,s;for(o=e.getCursor(),s=a.length;o<s;o++){var l=a[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Hs(r,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Hs(r,l,i,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var U1=new PF,UL=new Ih(100),FL=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Ou(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),a=e.getZr(),n=a.painter.type==="svg";r.dirty&&U1.delete(r);var i=U1.get(r);if(i)return i;var o=wt(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/t,U1.set(r,s),r.dirty=!1,s;function l(u){for(var f=[t],v=!0,d=0;d<FL.length;++d){var p=o[FL[d]];if(p!=null&&!it(p)&&!vt(p)&&!Qt(p)&&typeof p!="boolean"){v=!1;break}f.push(p)}var y;if(v){y=f.join(",")+(n?"-svg":"");var m=UL.get(y);m&&(n?u.svgElement=m:u.image=m)}var _=SO(o.dashArrayX),S=rj(o.dashArrayY),b=xO(o.symbol),w=aj(_),A=bO(S),M=!n&&Mo.createCanvas(),C=n&&{tag:"g",attrs:{},key:"dcl",children:[]},L=R(),E;M&&(M.width=L.width*t,M.height=L.height*t,E=M.getContext("2d")),N(),v&&UL.put(y,M||C),u.image=M,u.svgElement=C,u.svgWidth=L.width,u.svgHeight=L.height;function R(){for(var O=1,k=0,G=w.length;k<G;++k)O=nM(O,w[k]);for(var H=1,k=0,G=b.length;k<G;++k)H=nM(H,b[k].length);O*=H;var F=A*w.length*b.length;return{width:Math.max(1,Math.min(O,o.maxTileWidth)),height:Math.max(1,Math.min(F,o.maxTileHeight))}}function N(){E&&(E.clearRect(0,0,M.width,M.height),o.backgroundColor&&(E.fillStyle=o.backgroundColor,E.fillRect(0,0,M.width,M.height)));for(var O=0,k=0;k<S.length;++k)O+=S[k];if(O<=0)return;for(var G=-A,H=0,F=0,B=0;G<L.height;){if(H%2===0){for(var j=F/2%b.length,Y=0,K=0,nt=0;Y<L.width*2;){for(var U=0,k=0;k<_[B].length;++k)U+=_[B][k];if(U<=0)break;if(K%2===0){var W=(1-o.symbolSize)*.5,rt=Y+_[B][K]*W,ot=G+S[H]*W,ht=_[B][K]*o.symbolSize,gt=S[H]*o.symbolSize,mt=nt/2%b[j].length;yt(rt,ot,ht,gt,b[j][mt])}Y+=_[B][K],++nt,++K,K===_[B].length&&(K=0)}++B,B===_.length&&(B=0)}G+=S[H],++F,++H,H===S.length&&(H=0)}function yt(St,Lt,_t,Et,ge){var Gt=n?1:t,Ce=Ye(ge,St*Gt,Lt*Gt,_t*Gt,Et*Gt,o.color,o.symbolKeepAspect);if(n){var be=a.painter.renderOneToVNode(Ce);be&&C.children.push(be)}else _O(E,Ce)}}}}function xO(r){if(!r||r.length===0)return[["rect"]];if(vt(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!vt(r[t])){e=!1;break}if(e)return xO([r]);for(var a=[],t=0;t<r.length;++t)vt(r[t])?a.push([r[t]]):a.push(r[t]);return a}function SO(r){if(!r||r.length===0)return[[0,0]];if(Qt(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,a=0;a<r.length;++a)if(!Qt(r[a])){t=!1;break}if(t)return SO([r]);for(var n=[],a=0;a<r.length;++a)if(Qt(r[a])){var e=Math.ceil(r[a]);n.push([e,e])}else{var e=st(r[a],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function rj(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(Qt(r)){var e=Math.ceil(r);return[e,e]}var t=st(r,function(a){return Math.ceil(a)});return r.length%2?t.concat(t):t}function aj(r){return st(r,function(e){return bO(e)})}function bO(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}function nj(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var a=t.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=Ou(s,e)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=Ou(n,e)}}})}var tn=new ja,wO={};function ij(r,e){wO[r]=e}function oj(r){return wO[r]}var sj=1,lj=800,uj=900,cj=1e3,fj=2e3,hj=5e3,TO=1e3,vj=1100,e2=2e3,AO=3e3,dj=4e3,dy=4500,pj=4600,gj=5e3,yj=6e3,DO=7e3,mj={PROCESSOR:{FILTER:cj,SERIES_FILTER:lj,STATISTIC:hj},VISUAL:{LAYOUT:TO,PROGRESSIVE_LAYOUT:vj,GLOBAL:e2,CHART:AO,POST_CHART_LAYOUT:pj,COMPONENT:dj,BRUSH:gj,CHART_ITEM:dy,ARIA:yj,DECAL:DO}},Tr="__flagInMainProcess",qr="__pendingUpdate",F1="__needsUpdateStatus",jL=/^[a-zA-Z0-9_]+$/,j1="__connectUpdateStatus",YL=0,_j=1,xj=2;function CO(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return LO(this,r,e)}}function MO(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return LO(this,r,e)}}function LO(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),ja.prototype[e].apply(r,t)}var EO=(function(r){$(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(ja),RO=EO.prototype;RO.on=MO("on");RO.off=MO("off");var su,Y1,jd,ao,X1,Z1,W1,hf,vf,XL,ZL,q1,WL,Yd,qL,IO,Ca,$L,NO=(function(r){$(e,r);function e(t,a,n){var i=r.call(this,new MF)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},vt(a)&&(a=PO[a]),i._dom=t;var o="canvas",s="auto",l=!1,u=i._zr=tM(t,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:Ot(n.useDirtyRect,l),useCoarsePointer:Ot(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=Qb(dt(u.flush,u),17),a=Dt(a),a&&VP(a,!0),i._theme=a,i._locale=G9(n.locale||dP),i._coordSysMgr=new Uh;var f=i._api=qL(i);function v(d,p){return d.__prio-p.__prio}return Dp(gg,v),Dp(vS,v),i._scheduler=new cO(i,f,vS,gg),i._messageCenter=new EO,i._initEvents(),i.resize=dt(i.resize,i),u.animation.on("frame",i._onframe,i),XL(u,i),ZL(u,i),Yp(i),i}return e.prototype._onframe=function(){if(!this._disposed){$L(this);var t=this._scheduler;if(this[qr]){var a=this[qr].silent;this[Tr]=!0;try{su(this),ao.update.call(this,null,this[qr].updateParams)}catch(l){throw this[Tr]=!1,this[qr]=null,l}this._zr.flush(),this[Tr]=!1,this[qr]=null,hf.call(this,a),vf.call(this,a)}else if(t.unfinished){var n=sj,i=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),Z1(this,i),t.performVisualTasks(i),Yd(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,a,n){if(!this[Tr]){if(this._disposed){this.id;return}var i,o,s;if(Tt(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Tr]=!0,!this._model||a){var l=new fU(this._api),u=this._theme,f=this._model=new Xb;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},dS);var v={seriesTransition:s,optionChanged:!0};if(n)this[qr]={silent:i,updateParams:v},this[Tr]=!1,this.getZr().wakeUp();else{try{su(this),ao.update.call(this,null,v)}catch(d){throw this[qr]=null,this[Tr]=!1,d}this._ssr||this._zr.flush(),this[qr]=null,this[Tr]=!1,hf.call(this,i),vf.call(this,i)}}},e.prototype.setTheme=function(){},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||Ft.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var a=this._zr.painter;return a.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(Ft.svgSupported){var t=this._zr,a=t.storage.getDisplayList();return P(a,function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var a=t.excludeComponents,n=this._model,i=[],o=this;P(a,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return P(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var a=t.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(KL[n]){var l=s,u=s,f=-s,v=-s,d=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();P(Jf,function(w,A){if(w.group===n){var M=a?w.getZr().painter.getSvgDom().innerHTML:w.renderToCanvas(Dt(t)),C=w.getDom().getBoundingClientRect();l=i(C.left,l),u=i(C.top,u),f=o(C.right,f),v=o(C.bottom,v),d.push({dom:M,left:C.left,top:C.top})}}),l*=p,u*=p,f*=p,v*=p;var y=f-l,m=v-u,_=Mo.createCanvas(),S=tM(_,{renderer:a?"svg":"canvas"});if(S.resize({width:y,height:m}),a){var b="";return P(d,function(w){var A=w.left-l,M=w.top-u;b+='<g transform="translate('+A+","+M+')">'+w.dom+"</g>"}),S.painter.getSvgRoot().innerHTML=b,t.connectedBackgroundColor&&S.painter.setBackgroundColor(t.connectedBackgroundColor),S.refreshImmediately(),S.painter.toDataURL()}else return t.connectedBackgroundColor&&S.add(new Wt({shape:{x:0,y:0,width:y,height:m},style:{fill:t.connectedBackgroundColor}})),P(d,function(w){var A=new hr({style:{x:w.left*p-l,y:w.top*p-u,image:w.dom}});S.add(A)}),S.refreshImmediately(),_.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,a){return X1(this,"convertToPixel",t,a)},e.prototype.convertFromPixel=function(t,a){return X1(this,"convertFromPixel",t,a)},e.prototype.containPixel=function(t,a){if(this._disposed){this.id;return}var n=this._model,i,o=Xf(n,t);return P(o,function(s,l){l.indexOf("Models")>=0&&P(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if(l==="seriesModels"){var v=this._chartsMap[u.__viewId];v&&v.containPoint&&(i=i||v.containPoint(a,u))}},this)},this),!!i},e.prototype.getVisual=function(t,a){var n=this._model,i=Xf(n,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?Jb(s,l,a):Fh(s,a)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;P(Sj,function(a){var n=function(i){var o=t.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&Vs(s,function(y){var m=Rt(y);if(m&&m.dataIndex!=null){var _=m.dataModel||o.getSeriesByIndex(m.seriesIndex);return l=_&&_.getDataParams(m.dataIndex,m.dataType,s)||{},!0}else if(m.eventData)return l=et({},m.eventData),!0},!0),l){var f=l.componentType,v=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",v=l.seriesIndex);var d=f&&v!=null&&o.getComponent(f,v),p=d&&t[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=i,l.type=a,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:p},t.trigger(a,l)}};n.zrEventfulCallAtLast=!0,t._zr.on(a,n,t)}),P(Qf,function(a,n){t._messageCenter.on(n,function(i){this.trigger(n,i)},t)}),P(["selectchanged"],function(a){t._messageCenter.on(a,function(n){this.trigger(a,n)},t)}),RF(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&T3(this.getDom(),a2,"");var a=this,n=a._api,i=a._model;P(a._componentsViews,function(o){o.dispose(i,n)}),P(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete Jf[a.id]},e.prototype.resize=function(t){if(!this[Tr]){if(this._disposed){this.id;return}this._zr.resize(t);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=t&&t.silent;this[qr]&&(i==null&&(i=this[qr].silent),n=!0,this[qr]=null),this[Tr]=!0;try{n&&su(this),ao.update.call(this,{type:"resize",animation:et({duration:0},t&&t.animation)})}catch(o){throw this[Tr]=!1,o}this[Tr]=!1,hf.call(this,i),vf.call(this,i)}}},e.prototype.showLoading=function(t,a){if(this._disposed){this.id;return}if(Tt(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),!!pS[t]){var n=pS[t](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var a=et({},t);return a.type=Qf[t.type],a},e.prototype.dispatchAction=function(t,a){if(this._disposed){this.id;return}if(Tt(a)||(a={silent:!!a}),!!pg[t.type]&&this._model){if(this[Tr]){this._pendingActions.push(t);return}var n=a.silent;W1.call(this,t,n);var i=a.flush;i?this._zr.flush():i!==!1&&Ft.browser.weChat&&this._throttledZrFlush(),hf.call(this,n),vf.call(this,n)}},e.prototype.updateLabelLayout=function(){tn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var a=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){su=function(v){var d=v._scheduler;d.restorePipelines(v._model),d.prepareStageTasks(),Y1(v,!0),Y1(v,!1),d.plan()},Y1=function(v,d){for(var p=v._model,y=v._scheduler,m=d?v._componentsViews:v._chartsViews,_=d?v._componentsMap:v._chartsMap,S=v._zr,b=v._api,w=0;w<m.length;w++)m[w].__alive=!1;d?p.eachComponent(function(C,L){C!=="series"&&A(L)}):p.eachSeries(A);function A(C){var L=C.__requireNewView;C.__requireNewView=!1;var E="_ec_"+C.id+"_"+C.type,R=!L&&_[E];if(!R){var N=Mn(C.type),O=d?Ee.getClass(N.main,N.sub):de.getClass(N.sub);R=new O,R.init(p,b),_[E]=R,m.push(R),S.add(R.group)}C.__viewId=R.__id=E,R.__alive=!0,R.__model=C,R.group.__ecComponentInfo={mainType:C.mainType,index:C.componentIndex},!d&&y.prepareView(R,C,p,b)}for(var w=0;w<m.length;){var M=m[w];M.__alive?w++:(!d&&M.renderTask.dispose(),S.remove(M.group),M.dispose(p,b),m.splice(w,1),_[M.__id]===M&&delete _[M.__id],M.__id=M.group.__ecComponentInfo=null)}},jd=function(v,d,p,y,m){var _=v._model;if(_.setUpdatePayload(p),!y){P([].concat(v._componentsViews).concat(v._chartsViews),M);return}var S={};S[y+"Id"]=p[y+"Id"],S[y+"Index"]=p[y+"Index"],S[y+"Name"]=p[y+"Name"];var b={mainType:y,query:S};m&&(b.subType=m);var w=p.excludeSeriesId,A;w!=null&&(A=xt(),P(he(w),function(C){var L=Ke(C,null);L!=null&&A.set(L,!0)})),_&&_.eachComponent(b,function(C){var L=A&&A.get(C.id)!=null;if(!L)if(IM(p))if(C instanceof Se)p.type===Xs&&!p.notBlur&&!C.get(["emphasis","disabled"])&&VH(C,p,v._api);else{var E=Ib(C.mainType,C.componentIndex,p.name,v._api),R=E.focusSelf,N=E.dispatchers;p.type===Xs&&R&&!p.notBlur&&qx(C.mainType,C.componentIndex,v._api),N&&P(N,function(O){p.type===Xs?_i(O):xi(O)})}else Kx(p)&&C instanceof Se&&(UH(C,p,v._api),EM(C),Ca(v))},v),_&&_.eachComponent(b,function(C){var L=A&&A.get(C.id)!=null;L||M(v[y==="series"?"_chartsMap":"_componentsMap"][C.__viewId])},v);function M(C){C&&C.__alive&&C[d]&&C[d](C.__model,_,v._api,p)}},ao={prepareAndUpdate:function(v){su(this),ao.update.call(this,v,{optionChanged:v.newOption!=null})},update:function(v,d){var p=this._model,y=this._api,m=this._zr,_=this._coordSysMgr,S=this._scheduler;if(p){p.setUpdatePayload(v),S.restoreData(p,v),S.performSeriesTasks(p),_.create(p,y),S.performDataProcessorTasks(p,v),Z1(this,p),_.update(p,y),t(p),S.performVisualTasks(p,v),q1(this,p,y,v,d);var b=p.get("backgroundColor")||"transparent",w=p.get("darkMode");m.setBackgroundColor(b),w!=null&&w!=="auto"&&m.setDarkMode(w),tn.trigger("afterupdate",p,y)}},updateTransform:function(v){var d=this,p=this._model,y=this._api;if(p){p.setUpdatePayload(v);var m=[];p.eachComponent(function(S,b){if(S!=="series"){var w=d.getViewOfComponentModel(b);if(w&&w.__alive)if(w.updateTransform){var A=w.updateTransform(b,p,y,v);A&&A.update&&m.push(w)}else m.push(w)}});var _=xt();p.eachSeries(function(S){var b=d._chartsMap[S.__viewId];if(b.updateTransform){var w=b.updateTransform(S,p,y,v);w&&w.update&&_.set(S.uid,1)}else _.set(S.uid,1)}),t(p),this._scheduler.performVisualTasks(p,v,{setDirty:!0,dirtyMap:_}),Yd(this,p,y,v,{},_),tn.trigger("afterupdate",p,y)}},updateView:function(v){var d=this._model;d&&(d.setUpdatePayload(v),de.markUpdateMethod(v,"updateView"),t(d),this._scheduler.performVisualTasks(d,v,{setDirty:!0}),q1(this,d,this._api,v,{}),tn.trigger("afterupdate",d,this._api))},updateVisual:function(v){var d=this,p=this._model;p&&(p.setUpdatePayload(v),p.eachSeries(function(y){y.getData().clearAllVisual()}),de.markUpdateMethod(v,"updateVisual"),t(p),this._scheduler.performVisualTasks(p,v,{visualType:"visual",setDirty:!0}),p.eachComponent(function(y,m){if(y!=="series"){var _=d.getViewOfComponentModel(m);_&&_.__alive&&_.updateVisual(m,p,d._api,v)}}),p.eachSeries(function(y){var m=d._chartsMap[y.__viewId];m.updateVisual(y,p,d._api,v)}),tn.trigger("afterupdate",p,this._api))},updateLayout:function(v){ao.update.call(this,v)}},X1=function(v,d,p,y){if(v._disposed){v.id;return}for(var m=v._model,_=v._coordSysMgr.getCoordinateSystems(),S,b=Xf(m,p),w=0;w<_.length;w++){var A=_[w];if(A[d]&&(S=A[d](m,b,y))!=null)return S}},Z1=function(v,d){var p=v._chartsMap,y=v._scheduler;d.eachSeries(function(m){y.updateStreamModes(m,p[m.__viewId])})},W1=function(v,d){var p=this,y=this.getModel(),m=v.type,_=v.escapeConnect,S=pg[m],b=S.actionInfo,w=(b.update||"update").split(":"),A=w.pop(),M=w[0]!=null&&Mn(w[0]);this[Tr]=!0;var C=[v],L=!1;v.batch&&(L=!0,C=st(v.batch,function(H){return H=wt(et({},H),v),H.batch=null,H}));var E=[],R,N=Kx(v),O=IM(v);if(O&&X3(this._api),P(C,function(H){if(R=S.action(H,p._model,p._api),R=R||et({},H),R.type=b.event||R.type,E.push(R),O){var F=Ab(v),B=F.queryOptionMap,j=F.mainTypeSpecified,Y=j?B.keys()[0]:"series";jd(p,A,H,Y),Ca(p)}else N?(jd(p,A,H,"series"),Ca(p)):M&&jd(p,A,H,M.main,M.sub)}),A!=="none"&&!O&&!N&&!M)try{this[qr]?(su(this),ao.update.call(this,v),this[qr]=null):ao[A].call(this,v)}catch(H){throw this[Tr]=!1,H}if(L?R={type:b.event||m,escapeConnect:_,batch:E}:R=E[0],this[Tr]=!1,!d){var k=this._messageCenter;if(k.trigger(R.type,R),N){var G={type:"selectchanged",escapeConnect:_,selected:FH(y),isFromClick:v.isFromClick||!1,fromAction:v.type,fromActionPayload:v};k.trigger(G.type,G)}}},hf=function(v){for(var d=this._pendingActions;d.length;){var p=d.shift();W1.call(this,p,v)}},vf=function(v){!v&&this.trigger("updated")},XL=function(v,d){v.on("rendered",function(p){d.trigger("rendered",p),v.animation.isFinished()&&!d[qr]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},ZL=function(v,d){v.on("mouseover",function(p){var y=p.target,m=Vs(y,ch);m&&(GH(m,p,d._api),Ca(d))}).on("mouseout",function(p){var y=p.target,m=Vs(y,ch);m&&(HH(m,p,d._api),Ca(d))}).on("click",function(p){var y=p.target,m=Vs(y,function(b){return Rt(b).dataIndex!=null},!0);if(m){var _=m.selected?"unselect":"select",S=Rt(m);d._api.dispatchAction({type:_,dataType:S.dataType,dataIndexInside:S.dataIndex,seriesIndex:S.seriesIndex,isFromClick:!0})}})};function t(v){v.clearColorPalette(),v.eachSeries(function(d){d.clearColorPalette()})}function a(v){var d=[],p=[],y=!1;if(v.eachComponent(function(b,w){var A=w.get("zlevel")||0,M=w.get("z")||0,C=w.getZLevelKey();y=y||!!C,(b==="series"?p:d).push({zlevel:A,z:M,idx:w.componentIndex,type:b,key:C})}),y){var m=d.concat(p),_,S;Dp(m,function(b,w){return b.zlevel===w.zlevel?b.z-w.z:b.zlevel-w.zlevel}),P(m,function(b){var w=v.getComponent(b.type,b.idx),A=b.zlevel,M=b.key;_!=null&&(A=Math.max(_,A)),M?(A===_&&M!==S&&A++,S=M):S&&(A===_&&A++,S=""),_=A,w.setZLevel(A)})}}q1=function(v,d,p,y,m){a(d),WL(v,d,p,y,m),P(v._chartsViews,function(_){_.__alive=!1}),Yd(v,d,p,y,m),P(v._chartsViews,function(_){_.__alive||_.remove(d,p)})},WL=function(v,d,p,y,m,_){P(_||v._componentsViews,function(S){var b=S.__model;u(b,S),S.render(b,d,p,y),s(b,S),f(b,S)})},Yd=function(v,d,p,y,m,_){var S=v._scheduler;m=et(m||{},{updatedSeries:d.getSeries()}),tn.trigger("series:beforeupdate",d,p,m);var b=!1;d.eachSeries(function(w){var A=v._chartsMap[w.__viewId];A.__alive=!0;var M=A.renderTask;S.updatePayload(M,y),u(w,A),_&&_.get(w.uid)&&M.dirty(),M.perform(S.getPerformArgs(M))&&(b=!0),A.group.silent=!!w.get("silent"),o(w,A),EM(w)}),S.unfinished=b||S.unfinished,tn.trigger("series:layoutlabels",d,p,m),tn.trigger("series:transition",d,p,m),d.eachSeries(function(w){var A=v._chartsMap[w.__viewId];s(w,A),f(w,A)}),i(v,d),tn.trigger("series:afterupdate",d,p,m)},Ca=function(v){v[F1]=!0,v.getZr().wakeUp()},$L=function(v){v[F1]&&(v.getZr().storage.traverse(function(d){Mu(d)||n(d)}),v[F1]=!1)};function n(v){for(var d=[],p=v.currentStates,y=0;y<p.length;y++){var m=p[y];m==="emphasis"||m==="blur"||m==="select"||d.push(m)}v.selected&&v.states.select&&d.push("select"),v.hoverState===Jg&&v.states.emphasis?d.push("emphasis"):v.hoverState===Oh&&v.states.blur&&d.push("blur"),v.useStates(d)}function i(v,d){var p=v._zr,y=p.storage,m=0;y.traverse(function(_){_.isGroup||m++}),m>d.get("hoverLayerThreshold")&&!Ft.node&&!Ft.worker&&d.eachSeries(function(_){if(!_.preventUsingHoverLayer){var S=v._chartsMap[_.__viewId];S.__alive&&S.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function o(v,d){var p=v.get("blendMode")||null;d.eachRendered(function(y){y.isGroup||(y.style.blend=p)})}function s(v,d){if(!v.preventAutoZ){var p=v.get("z")||0,y=v.get("zlevel")||0;d.eachRendered(function(m){return l(m,p,y,-1/0),!0})}}function l(v,d,p,y){var m=v.getTextContent(),_=v.getTextGuideLine(),S=v.isGroup;if(S)for(var b=v.childrenRef(),w=0;w<b.length;w++)y=Math.max(l(b[w],d,p,y),y);else v.z=d,v.zlevel=p,y=Math.max(v.z2,y);if(m&&(m.z=d,m.zlevel=p,isFinite(y)&&(m.z2=y+2)),_){var A=v.textGuideLineConfig;_.z=d,_.zlevel=p,isFinite(y)&&(_.z2=y+(A&&A.showAbove?1:-1))}return y}function u(v,d){d.eachRendered(function(p){if(!Mu(p)){var y=p.getTextContent(),m=p.getTextGuideLine();p.stateTransition&&(p.stateTransition=null),y&&y.stateTransition&&(y.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),p.hasState()?(p.prevStates=p.currentStates,p.clearStates()):p.prevStates&&(p.prevStates=null)}})}function f(v,d){var p=v.getModel("stateAnimation"),y=v.isAnimationEnabled(),m=p.get("duration"),_=m>0?{duration:m,delay:p.get("delay"),easing:p.get("easing")}:null;d.eachRendered(function(S){if(S.states&&S.states.emphasis){if(Mu(S))return;if(S instanceof Ut&&WH(S),S.__dirty){var b=S.prevStates;b&&S.useStates(b)}if(y){S.stateTransition=_;var w=S.getTextContent(),A=S.getTextGuideLine();w&&(w.stateTransition=_),A&&(A.stateTransition=_)}S.__dirty&&n(S)}})}qL=function(v){return new((function(d){$(p,d);function p(){return d!==null&&d.apply(this,arguments)||this}return p.prototype.getCoordinateSystems=function(){return v._coordSysMgr.getCoordinateSystems()},p.prototype.getComponentByElement=function(y){for(;y;){var m=y.__ecComponentInfo;if(m!=null)return v._model.getComponent(m.mainType,m.index);y=y.parent}},p.prototype.enterEmphasis=function(y,m){_i(y,m),Ca(v)},p.prototype.leaveEmphasis=function(y,m){xi(y,m),Ca(v)},p.prototype.enterBlur=function(y){U3(y),Ca(v)},p.prototype.leaveBlur=function(y){Rb(y),Ca(v)},p.prototype.enterSelect=function(y){F3(y),Ca(v)},p.prototype.leaveSelect=function(y){j3(y),Ca(v)},p.prototype.getModel=function(){return v.getModel()},p.prototype.getViewOfComponentModel=function(y){return v.getViewOfComponentModel(y)},p.prototype.getViewOfSeriesModel=function(y){return v.getViewOfSeriesModel(y)},p})(kP))(v)},IO=function(v){function d(p,y){for(var m=0;m<p.length;m++){var _=p[m];_[j1]=y}}P(Qf,function(p,y){v._messageCenter.on(y,function(m){if(KL[v.group]&&v[j1]!==YL){if(m&&m.escapeConnect)return;var _=v.makeActionFromEvent(m),S=[];P(Jf,function(b){b!==v&&b.group===v.group&&S.push(b)}),d(S,YL),P(S,function(b){b[j1]!==_j&&b.dispatchAction(_)}),d(S,xj)}})})}})(),e})(ja),r2=NO.prototype;r2.on=CO("on");r2.off=CO("off");r2.one=function(r,e,t){var a=this;function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),a.off(r,n)}this.on.call(this,r,n,t)};var Sj=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var pg={},Qf={},vS=[],dS=[],gg=[],PO={},pS={},Jf={},KL={},bj=+new Date-0,a2="_echarts_instance_";function wj(r,e,t){{var a=Tj(r);if(a)return a}var n=new NO(r,e,t);return n.id="ec_"+bj++,Jf[n.id]=n,T3(r,a2,n.id),IO(n),tn.trigger("afterinit",n),n}function Tj(r){return Jf[z8(r,a2)]}function OO(r,e){PO[r]=e}function zO(r){Vt(dS,r)<0&&dS.push(r)}function kO(r,e){i2(vS,r,e,fj)}function Aj(r){n2("afterinit",r)}function Dj(r){n2("afterupdate",r)}function n2(r,e){tn.on(r,e)}function Vn(r,e,t){bt(e)&&(t=e,e="");var a=Tt(r)?r.type:[r,r={event:e}][0];r.event=(r.event||a).toLowerCase(),e=r.event,!Qf[e]&&(zr(jL.test(a)&&jL.test(e)),pg[a]||(pg[a]={action:t,actionInfo:r}),Qf[e]=a)}function Cj(r,e){Uh.register(r,e)}function Mj(r,e){i2(gg,r,e,TO,"layout")}function ul(r,e){i2(gg,r,e,AO,"visual")}var QL=[];function i2(r,e,t,a,n){if((bt(e)||Tt(e))&&(t=e,e=a),!(Vt(QL,t)>=0)){QL.push(t);var i=cO.wrapStageHandler(t,n);i.__prio=e,i.__raw=t,r.push(i)}}function BO(r,e){pS[r]=e}function Lj(r,e,t){var a=oj("registerMap");a&&a(r,e,t)}var Ej=FU;ul(e2,dF);ul(dy,pF);ul(dy,gF);ul(e2,LF);ul(dy,EF);ul(DO,nj);zO(VP);kO(uj,wU);BO("default",yF);Vn({type:Xs,event:Xs,update:Xs},Ge);Vn({type:Rp,event:Rp,update:Rp},Ge);Vn({type:Zf,event:Zf,update:Zf},Ge);Vn({type:Ip,event:Ip,update:Ip},Ge);Vn({type:Wf,event:Wf,update:Wf},Ge);OO("light",CF);OO("dark",dO);var JL=[],Rj={registerPreprocessor:zO,registerProcessor:kO,registerPostInit:Aj,registerPostUpdate:Dj,registerUpdateLifecycle:n2,registerAction:Vn,registerCoordinateSystem:Cj,registerLayout:Mj,registerVisual:ul,registerTransform:Ej,registerLoading:BO,registerMap:Lj,registerImpl:ij,PRIORITY:mj,ComponentModel:jt,ComponentView:Ee,SeriesModel:Se,ChartView:de,registerComponentModel:function(r){jt.registerClass(r)},registerComponentView:function(r){Ee.registerClass(r)},registerSeriesModel:function(r){Se.registerClass(r)},registerChartView:function(r){de.registerClass(r)},registerSubTypeDefaulter:function(r,e){jt.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){g8(r,e)}};function Ht(r){if(it(r)){P(r,function(e){Ht(e)});return}Vt(JL,r)>=0||(JL.push(r),bt(r)&&(r={install:r}),r.install(Rj))}function df(r){return r==null?0:r.length||1}function tE(r){return r}var Si=(function(){function r(e,t,a,n,i,o){this._old=e,this._new=t,this._oldKeyGetter=a||tE,this._newKeyGetter=n||tE,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,a={},n=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(t,a,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],l=a[s],u=df(l);if(u>1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,a={},n={},i=[],o=[];this._initIndexMap(e,a,i,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=a[l],f=n[l],v=df(u),d=df(f);if(v>1&&d===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(v===1&&d>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(v===1&&d===1)this._update&&this._update(f,u),n[l]=null;else if(v>1&&d>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(v>1)for(var p=0;p<v;p++)this._remove&&this._remove(u[p]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(e,t){for(var a=0;a<e.length;a++){var n=e[a],i=t[n],o=df(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);t[n]=null}},r.prototype._initIndexMap=function(e,t,a,n){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(i||(a[o]=s),!!t){var l=t[s],u=df(l);u===0?(t[s]=o,i&&a.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r})(),Ij=(function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function Nj(r,e){var t={},a=t.encode={},n=xt(),i=[],o=[],s={};P(r.dimensions,function(d){var p=r.getDimensionInfo(d),y=p.coordDim;if(y){var m=p.coordDimIndex;$1(a,y)[m]=d,p.isExtraCoord||(n.set(y,1),Pj(p.type)&&(i[0]=d),$1(s,y)[m]=r.getDimensionIndex(p.name)),p.defaultTooltip&&o.push(d)}EP.each(function(_,S){var b=$1(a,S),w=p.otherDims[S];w!=null&&w!==!1&&(b[w]=p.name)})});var l=[],u={};n.each(function(d,p){var y=a[p];u[p]=y[0],l=l.concat(y)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=st(l,function(d){return r.getDimensionInfo(d).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=a.label;f&&f.length&&(i=f.slice());var v=a.tooltip;return v&&v.length?o=v.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,t.userOutput=new Ij(s,e),t}function $1(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function yg(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function Pj(r){return!(r==="ordinal"||r==="time")}var kp=(function(){function r(e){this.otherDims={},e!=null&&et(this,e)}return r})(),Oj=Kt(),zj={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},VO=(function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=UO(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return Ot(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=HP(this.source),a=!FO(e),n="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,v=this.dimensions[s];if(v&&v.storeDimIndex===o)l=t?v.name:null,u=v.type,f=v.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=t?d.name:null,u=d.type)}i.push({property:l,type:u,ordinalMeta:f}),t&&l!=null&&(!v||!v.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=zj[u]||"f",f&&(n+=f.uid),n+="$"}var p=this.source,y=[p.seriesLayoutBy,p.startIndex,n].join("$$");return{dimensions:i,hash:y}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,a=0;t<this._fullDimCount;t++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(t);o&&(n=o.name)}e.push(n)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function GO(r){return r instanceof VO}function HO(r){for(var e=xt(),t=0;t<(r||[]).length;t++){var a=r[t],n=Tt(a)?a.name:a;n!=null&&e.get(n)==null&&e.set(n,t)}return e}function UO(r){var e=Oj(r);return e.dimNameMap||(e.dimNameMap=HO(r.dimensionsDefine))}function FO(r){return r>30}var pf=Tt,no=st,kj=typeof Int32Array>"u"?Array:Int32Array,Bj="e\0\0",eE=-1,Vj=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Gj=["_approximateExtent"],rE,Xd,gf,yf,K1,Zd,Q1,Pr=(function(){function r(e,t){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 a,n=!1;GO(e)?(a=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,a=e),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<a.length;f++){var v=a[f],d=vt(v)?new kp({name:v}):v instanceof kp?v:new kp(v),p=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=p,d.coordDimIndex=0);var y=d.otherDims=d.otherDims||{};o.push(p),i[p]=d,u[p]!=null&&(l=!0),d.createInvertedIndices&&(s[p]=[]),y.itemName===0&&(this._nameDimIdx=f),y.itemId===0&&(this._idDimIdx=f),n&&(d.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var m=this._dimIdxToName=xt();P(o,function(_){m.set(i[_].storeDimIndex,_)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var a=this._dimIdxToName.get(t);if(a!=null)return a;var n=this._schema.getSourceDimension(t);if(n)return n.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var a=this._getDimInfo(e);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(Qt(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(a){return t.hasOwnProperty(a)?t[a]:void 0}:function(a){return t[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var a=this._dimSummary;if(t==null)return a.encodeFirstDimNotExtra[e];var n=a.encode[e];return n?n[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,a=t.encode[e];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,a){var n=this,i;if(e instanceof oS&&(i=e),!i){var o=this.dimensions,s=Zb(e)||Dr(e)?new UP(e,o.length):e;i=new oS;var l=no(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=Nj(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var a=this._store.appendValues(e,t.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=n;s<i;s++){var l=s-n;this._nameList[s]=t[l],o&&Q1(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,a=0;a<t.length;a++){var n=this._dimInfos[t[a]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==wo&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===Ya;if(l&&!n.pure)for(var u=[],f=e;f<t;f++){var v=n.getItem(f,u);if(!this.hasItemOption&&w8(v)&&(this.hasItemOption=!0),v){var d=v.name;i[f]==null&&d!=null&&(i[f]=Ke(d,null));var p=v.id;o[f]==null&&p!=null&&(o[f]=Ke(p,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)Q1(this,f);rE(this)}},r.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){pf(e)?et(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),a=this._nameList[t];return a==null&&this._nameDimIdx!=null&&(a=gf(this,this._nameDimIdx,t)),a==null&&(a=""),a},r.prototype._getCategory=function(e,t){var a=this._store.get(e,t),n=this._store.getOrdinalMeta(e);return n?n.categories[a]:a},r.prototype.getId=function(e){return Xd(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var a=this._store,n=this._dimInfos[e];if(n)return a.get(n.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var a=this._store,n=this._dimInfos[e];if(n)return a.getByRawIndex(n.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var a=this,n=this._store;return it(e)?n.getValues(no(e,function(i){return a._getStoreDimIndex(i)}),t):n.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,a=0,n=t.length;a<n;a++)if(isNaN(this._store.get(t[a],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,a=this._store.count();t<a;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var a=e&&this._invertedIndicesMap[e],n=a[t];return n==null||isNaN(n)?eE:n},r.prototype.indicesOfNearest=function(e,t,a){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,a)},r.prototype.each=function(e,t,a){bt(e)&&(a=t,t=e,e=[]);var n=a||this,i=no(yf(e),this._getStoreDimIndex,this);this._store.each(i,n?dt(t,n):t)},r.prototype.filterSelf=function(e,t,a){bt(e)&&(a=t,t=e,e=[]);var n=a||this,i=no(yf(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?dt(t,n):t),this},r.prototype.selectRange=function(e){var t=this,a={},n=Yt(e);return P(n,function(i){var o=t._getStoreDimIndex(i);a[o]=e[i]}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(e,t,a){bt(e)&&(a=t,t=e,e=[]),a=a||this;var n=[];return this.each(e,function(){n.push(t&&t.apply(this,arguments))},a),n},r.prototype.map=function(e,t,a,n){var i=a||n||this,o=no(yf(e),this._getStoreDimIndex,this),s=Zd(this);return s._store=this._store.map(o,i?dt(t,i):t),s},r.prototype.modify=function(e,t,a,n){var i=a||n||this,o=no(yf(e),this._getStoreDimIndex,this);this._store.modify(o,i?dt(t,i):t)},r.prototype.downSample=function(e,t,a,n){var i=Zd(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,a,n),i},r.prototype.lttbDownSample=function(e,t){var a=Zd(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),a},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,a=this.getRawDataItem(e);return new oe(a,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new Si(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(a){return Xd(e,a)},function(a){return Xd(t,a)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},pf(e)?et(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var a=this._itemVisuals[e],n=a&&a[t];return n??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var a=this._itemVisuals,n=a[e];n||(n=a[e]={});var i=n[t];return i==null&&(i=this.getVisual(t),it(i)?i=i.slice():pf(i)&&(i=et({},i)),n[t]=i),i},r.prototype.setItemVisual=function(e,t,a){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,pf(t)?et(n,t):n[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){pf(e)?et(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,a){this._itemLayouts[e]=a?et(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var a=this.hostModel&&this.hostModel.seriesIndex;Zx(a,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){P(this._graphicEls,function(a,n){a&&e&&e.call(t,a,n)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:no(this.dimensions,this._getDimInfo,this),this.hostModel)),K1(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];bt(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=a.apply(this,arguments);return t.apply(this,[n].concat(pb(arguments)))})},r.internalField=(function(){rE=function(e){var t=e._invertedIndicesMap;P(t,function(a,n){var i=e._dimInfos[n],o=i.ordinalMeta,s=e._store;if(o){a=t[n]=new kj(o.categories.length);for(var l=0;l<a.length;l++)a[l]=eE;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},gf=function(e,t,a){return Ke(e._getCategory(t,a),null)},Xd=function(e,t){var a=e._idList[t];return a==null&&e._idDimIdx!=null&&(a=gf(e,e._idDimIdx,t)),a==null&&(a=Bj+t),a},yf=function(e){return it(e)||(e=e!=null?[e]:[]),e},Zd=function(e){var t=new r(e._schema?e._schema:no(e.dimensions,e._getDimInfo,e),e.hostModel);return K1(t,e),t},K1=function(e,t){P(Vj.concat(t.__wrappedMethods||[]),function(a){t.hasOwnProperty(a)&&(e[a]=t[a])}),e.__wrappedMethods=t.__wrappedMethods,P(Gj,function(a){e[a]=Dt(t[a])}),e._calculationInfo=et({},t._calculationInfo)},Q1=function(e,t){var a=e._nameList,n=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=a[t],l=n[t];if(s==null&&i!=null&&(a[t]=s=gf(e,i,t)),l==null&&o!=null&&(n[t]=l=gf(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[t]=l}}})(),r})();function jh(r,e){Zb(r)||(r=Wb(r)),e=e||{};var t=e.coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],n=xt(),i=[],o=Uj(r,t,a,e.dimensionsCount),s=e.canOmitUnusedDimensions&&FO(o),l=a===r.dimensionsDefine,u=l?UO(r):HO(a),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var v=xt(f),d=new $P(o),p=0;p<d.length;p++)d[p]=-1;function y(R){var N=d[R];if(N<0){var O=a[R],k=Tt(O)?O:{name:O},G=new kp,H=k.name;H!=null&&u.get(H)!=null&&(G.name=G.displayName=H),k.type!=null&&(G.type=k.type),k.displayName!=null&&(G.displayName=k.displayName);var F=i.length;return d[R]=F,G.storeDimIndex=R,i.push(G),G}return i[N]}if(!s)for(var p=0;p<o;p++)y(p);v.each(function(R,N){var O=he(R).slice();if(O.length===1&&!vt(O[0])&&O[0]<0){v.set(N,!1);return}var k=v.set(N,[]);P(O,function(G,H){var F=vt(G)?u.get(G):G;F!=null&&F<o&&(k[H]=F,_(y(F),N,H))})});var m=0;P(t,function(R){var N,O,k,G;if(vt(R))N=R,G={};else{G=R,N=G.name;var H=G.ordinalMeta;G.ordinalMeta=null,G=et({},G),G.ordinalMeta=H,O=G.dimsDef,k=G.otherDims,G.name=G.coordDim=G.coordDimIndex=G.dimsDef=G.otherDims=null}var F=v.get(N);if(F!==!1){if(F=he(F),!F.length)for(var B=0;B<(O&&O.length||1);B++){for(;m<o&&y(m).coordDim!=null;)m++;m<o&&F.push(m++)}P(F,function(j,Y){var K=y(j);if(l&&G.type!=null&&(K.type=G.type),_(wt(K,G),N,Y),K.name==null&&O){var nt=O[Y];!Tt(nt)&&(nt={name:nt}),K.name=K.displayName=nt.name,K.defaultTooltip=nt.defaultTooltip}k&&wt(K.otherDims,k)})}});function _(R,N,O){EP.get(N)!=null?R.otherDims[N]=O:(R.coordDim=N,R.coordDimIndex=O,n.set(N,!0))}var S=e.generateCoord,b=e.generateCoordCount,w=b!=null;b=S?b||1:0;var A=S||"value";function M(R){R.name==null&&(R.name=R.coordDim)}if(s)P(i,function(R){M(R)}),i.sort(function(R,N){return R.storeDimIndex-N.storeDimIndex});else for(var C=0;C<o;C++){var L=y(C),E=L.coordDim;E==null&&(L.coordDim=Fj(A,n,w),L.coordDimIndex=0,(!S||b<=0)&&(L.isExtraCoord=!0),b--),M(L),L.type==null&&(PP(r,C)===mr.Must||L.isExtraCoord&&(L.otherDims.itemName!=null||L.otherDims.seriesName!=null))&&(L.type="ordinal")}return Hj(i),new VO({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function Hj(r){for(var e=xt(),t=0;t<r.length;t++){var a=r[t],n=a.name,i=e.get(n)||0;i>0&&(a.name=n+(i-1)),i++,e.set(n,i)}}function Uj(r,e,t,a){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return P(e,function(i){var o;Tt(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function Fj(r,e,t){if(t||e.hasKey(r)){for(var a=0;e.hasKey(r+a);)a++;r+=a}return e.set(r,!0),r}var jj=(function(){function r(e){this.coordSysDims=[],this.axisMap=xt(),this.categoryAxisMap=xt(),this.coordSysName=e}return r})();function Yj(r){var e=r.get("coordinateSystem"),t=new jj(e),a=Xj[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}var Xj={cartesian2d:function(r,e,t,a){var n=r.getReferringComponents("xAxis",je).models[0],i=r.getReferringComponents("yAxis",je).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",i),lu(n)&&(a.set("x",n),e.firstCategoryDimIndex=0),lu(i)&&(a.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var n=r.getReferringComponents("singleAxis",je).models[0];e.coordSysDims=["single"],t.set("single",n),lu(n)&&(a.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var n=r.getReferringComponents("polar",je).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),lu(i)&&(a.set("radius",i),e.firstCategoryDimIndex=0),lu(o)&&(a.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,a){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();P(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];t.set(f,u),lu(u)&&(a.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function lu(r){return r.get("type")==="category"}function Zj(r,e,t){t=t||{};var a=t.byIndex,n=t.stackedCoordDimension,i,o,s;Wj(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,v,d;if(P(i,function(b,w){vt(b)&&(i[w]=b={name:b}),l&&!b.isExtraCoord&&(!a&&!u&&b.ordinalMeta&&(u=b),!f&&b.type!=="ordinal"&&b.type!=="time"&&(!n||n===b.coordDim)&&(f=b))}),f&&!a&&!u&&(a=!0),f){v="__\0ecstackresult_"+r.id,d="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var p=f.coordDim,y=f.type,m=0;P(i,function(b){b.coordDim===p&&m++});var _={name:v,coordDim:p,coordDimIndex:m,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},S={name:d,coordDim:d,coordDimIndex:m+1,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(_.storeDimIndex=s.ensureCalculationDimension(d,y),S.storeDimIndex=s.ensureCalculationDimension(v,y)),o.appendCalculationDimension(_),o.appendCalculationDimension(S)):(i.push(_),i.push(S))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:d,stackResultDimension:v}}function Wj(r){return!GO(r.schema)}function Io(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function jO(r,e){return Io(r,e)?r.getCalculationInfo("stackResultDimension"):e}function qj(r,e){var t=r.get("coordinateSystem"),a=Uh.get(t),n;return e&&e.coordSysDims&&(n=st(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=yg(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function $j(r,e,t){var a,n;return t&&P(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function Di(r,e,t){t=t||{};var a=e.getSourceManager(),n,i=!1;r?(i=!0,n=Wb(r)):(n=a.getSource(),i=n.sourceFormat===Ya);var o=Yj(e),s=qj(e,o),l=t.useEncodeDefaulter,u=bt(l)?l:l?It(NP,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},v=jh(n,f),d=$j(v.dimensions,t.createInvertedIndices,o),p=i?null:a.getSharedDataStore(v),y=Zj(e,{schema:v,store:p}),m=new Pr(v,e);m.setCalculationInfo(y);var _=d!=null&&Kj(n)?function(S,b,w,A){return A===d?w:this.defaultDimValueGetter(S,b,w,A)}:null;return m.hasItemOption=!1,m.initData(i?n:p,null,_),m}function Kj(r){if(r.sourceFormat===Ya){var e=Qj(r.data||[]);return!it(Yu(e))}}function Qj(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var Gn=(function(){function r(e){this._setting=e||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var a=this._extent;isNaN(e)||(a[0]=e),isNaN(t)||(a[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r})();qg(Gn);var Jj=0,gS=(function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Jj}return r.createByAxisModel=function(e){var t=e.option,a=t.data,n=a&&st(a,tY);return new r({categories:n,needCollect:!n,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,a=this._needCollect;if(!vt(e)&&!a)return e;if(a&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var n=this._getOrCreateMap();return t=n.get(e),t==null&&(a?(t=this.categories.length,this.categories[t]=e,n.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=xt(this.categories))},r})();function tY(r){return Tt(r)&&r.value!=null?r.value:r+""}function yS(r){return r.type==="interval"||r.type==="log"}function eY(r,e,t,a){var n={},i=r[1]-r[0],o=n.interval=g3(i/e);t!=null&&o<t&&(o=n.interval=t),a!=null&&o>a&&(o=n.interval=a);var s=n.intervalPrecision=YO(o),l=n.niceTickExtent=[Oe(Math.ceil(r[0]/o)*o,s),Oe(Math.floor(r[1]/o)*o,s)];return rY(l,r),n}function J1(r){var e=Math.pow(10,wb(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Oe(t*e)}function YO(r){return Cn(r)+2}function aE(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function rY(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),aE(r,0,e),aE(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function py(r,e){return r>=e[0]&&r<=e[1]}function gy(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function yy(r,e){return r*(e[1]-e[0])+e[0]}var my=(function(r){$(e,r);function e(t){var a=r.call(this,t)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new gS({})),it(n)&&(n=new gS({categories:st(n,function(i){return Tt(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return e.prototype.parse=function(t){return t==null?NaN:vt(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),py(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),gy(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(yy(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],a=this._extent,n=a[0];n<=a[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o<l;++o){var u=a[o];n[o]=u,i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;n.push(f),i[f]=o}},e.prototype._getTickNumber=function(t){var a=this._ticksByOrdinalNumber;return a&&t>=0&&t<a.length?a[t]:t},e.prototype.getRawOrdinalNumber=function(t){var a=this._ordinalNumbersByTick;return a&&t>=0&&t<a.length?a[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var a=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,a){this.unionExtent(t.getApproximateExtent(a))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e})(Gn);Gn.registerClass(my);var xs=Oe,bi=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return py(t,this._extent)},e.prototype.normalize=function(t){return gy(t,this._extent)},e.prototype.scale=function(t){return yy(t,this._extent)},e.prototype.setExtent=function(t,a){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(a)||(n[1]=parseFloat(a))},e.prototype.unionExtent=function(t){var a=this._extent;t[0]<a[0]&&(a[0]=t[0]),t[1]>a[1]&&(a[1]=t[1]),this.setExtent(a[0],a[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=YO(t)},e.prototype.getTicks=function(t){var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;n[0]<i[0]&&(t?s.push({value:xs(i[0]-a,o)}):s.push({value:n[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=xs(u+a,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:i[1];return n[1]>f&&(t?s.push({value:xs(f+a,o)}):s.push({value:n[1]})),s},e.prototype.getMinorTicks=function(t){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<a.length;o++){for(var s=a[o],l=a[o-1],u=0,f=[],v=s.value-l.value,d=v/t;u<t-1;){var p=xs(l.value+(u+1)*d);p>i[0]&&p<i[1]&&f.push(p),u++}n.push(f)}return n},e.prototype.getLabel=function(t,a){if(t==null)return"";var n=a&&a.precision;n==null?n=Cn(t.value)||0:n==="auto"&&(n=this._intervalPrecision);var i=xs(t.value,n,!0);return TP(i)},e.prototype.calcNiceTicks=function(t,a,n){t=t||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=eY(i,t,a,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var a=this._extent;if(a[0]===a[1])if(a[0]!==0){var n=Math.abs(a[0]);t.fixMax||(a[1]+=n/2),a[0]-=n/2}else a[1]=1;var i=a[1]-a[0];isFinite(i)||(a[0]=0,a[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(a[0]=xs(Math.floor(a[0]/o)*o)),t.fixMax||(a[1]=xs(Math.ceil(a[1]/o)*o))},e.prototype.setNiceExtent=function(t,a){this._niceExtent=[t,a]},e.type="interval",e})(Gn);Gn.registerClass(bi);var XO=typeof Float32Array<"u",aY=XO?Float32Array:Array;function Ln(r){return it(r)?XO?new Float32Array(r):r:new aY(r)}var mS="__ec_stack_";function ZO(r){return r.get("stack")||mS+r.seriesIndex}function o2(r){return r.dim+r.index}function nY(r){var e=[],t=r.axis,a="axis0";if(t.type==="category"){for(var n=t.getBandWidth(),i=0;i<r.count;i++)e.push(wt({bandWidth:n,axisKey:a,stackId:mS+i},r));for(var o=$O(e),s=[],i=0;i<r.count;i++){var l=o[a][mS+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function WO(r,e){var t=[];return e.eachSeriesByType(r,function(a){JO(a)&&t.push(a)}),t}function iY(r){var e={};P(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var v=l.getData(),d=f.dim+"_"+f.index,p=v.getDimensionIndex(v.mapDimension(f.dim)),y=v.getStore(),m=0,_=y.count();m<_;++m){var S=y.get(p,m);e[d]?e[d].push(S):e[d]=[S]}});var t={};for(var a in e)if(e.hasOwnProperty(a)){var n=e[a];if(n){n.sort(function(l,u){return l-u});for(var i=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(i=i===null?s:Math.min(i,s))}t[a]=i}}return t}function qO(r){var e=iY(r),t=[];return P(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],f=Math.abs(o[1]-o[0]),v=i.scale.getExtent(),d=Math.abs(v[1]-v[0]);s=u?f/d*u:f}else{var p=a.getData();s=Math.abs(o[1]-o[0])/p.count()}var y=ft(a.get("barWidth"),s),m=ft(a.get("barMaxWidth"),s),_=ft(a.get("barMinWidth")||(t4(a)?.5:1),s),S=a.get("barGap"),b=a.get("barCategoryGap");t.push({bandWidth:s,barWidth:y,barMaxWidth:m,barMinWidth:_,barGap:S,barCategoryGap:b,axisKey:o2(i),stackId:ZO(a)})}),$O(t)}function $O(r){var e={};P(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var v=a.barMaxWidth;v&&(l[u].maxWidth=v);var d=a.barMinWidth;d&&(l[u].minWidth=d);var p=a.barGap;p!=null&&(s.gap=p);var y=a.barCategoryGap;y!=null&&(s.categoryGap=y)});var t={};return P(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=Yt(i).length;s=Math.max(35-l*4,15)+"%"}var u=ft(s,o),f=ft(a.gap,1),v=a.remainedWidth,d=a.autoWidthCount,p=(v-u)/(d+(d-1)*f);p=Math.max(p,0),P(i,function(S){var b=S.maxWidth,w=S.minWidth;if(S.width){var A=S.width;b&&(A=Math.min(A,b)),w&&(A=Math.max(A,w)),S.width=A,v-=A+f*A,d--}else{var A=p;b&&b<A&&(A=Math.min(b,v)),w&&w>A&&(A=w),A!==p&&(S.width=A,v-=A+f*A,d--)}}),p=(v-u)/(d+(d-1)*f),p=Math.max(p,0);var y=0,m;P(i,function(S,b){S.width||(S.width=p),m=S,y+=S.width*(1+f)}),m&&(y-=m.width*f);var _=-y/2;P(i,function(S,b){t[n][b]=t[n][b]||{bandWidth:o,offset:_,width:S.width},_+=S.width*(1+f)})}),t}function oY(r,e,t){if(r&&e){var a=r[o2(e)];return a}}function KO(r,e){var t=WO(r,e),a=qO(t);P(t,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=ZO(n),u=a[o2(s)][l],f=u.offset,v=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:v})})}function QO(r){return{seriesType:r,plan:tc(),reset:function(e){if(JO(e)){var t=e.getData(),a=e.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(n.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),f=t.getCalculationInfo("stackResultDimension"),v=Io(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),p=sY(n,i),y=t4(e),m=e.get("barMinHeight")||0,_=f&&t.getDimensionIndex(f),S=t.getLayout("size"),b=t.getLayout("offset");return{progress:function(w,A){for(var M=w.count,C=y&&Ln(M*3),L=y&&l&&Ln(M*3),E=y&&Ln(M),R=a.master.getRect(),N=d?R.width:R.height,O,k=A.getStore(),G=0;(O=w.next())!=null;){var H=k.get(v?_:o,O),F=k.get(s,O),B=p,j=void 0;v&&(j=+H-k.get(o,O));var Y=void 0,K=void 0,nt=void 0,U=void 0;if(d){var W=a.dataToPoint([H,F]);if(v){var rt=a.dataToPoint([j,F]);B=rt[0]}Y=B,K=W[1]+b,nt=W[0]-B,U=S,Math.abs(nt)<m&&(nt=(nt<0?-1:1)*m)}else{var W=a.dataToPoint([F,H]);if(v){var rt=a.dataToPoint([F,j]);B=rt[1]}Y=W[0]+b,K=B,nt=S,U=W[1]-B,Math.abs(U)<m&&(U=(U<=0?-1:1)*m)}y?(C[G]=Y,C[G+1]=K,C[G+2]=d?nt:U,L&&(L[G]=d?R.x:Y,L[G+1]=d?K:R.y,L[G+2]=N),E[O]=O):A.setItemLayout(O,{x:Y,y:K,width:nt,height:U}),G+=3}y&&A.setLayout({largePoints:C,largeDataIndices:E,largeBackgroundPoints:L,valueAxisHorizontal:d})}}}}}}function JO(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function t4(r){return r.pipelineContext&&r.pipelineContext.large}function sY(r,e){return e.toGlobalCoord(e.dataToCoord(e.type==="log"?1:0))}var lY=function(r,e,t,a){for(;t<a;){var n=t+a>>>1;r[n][1]<e?t=n+1:a=n}return t},s2=(function(r){$(e,r);function e(t){var a=r.call(this,t)||this;return a.type="time",a}return e.prototype.getLabel=function(t){var a=this.getSetting("useUTC");return oy(t.value,ZM[F9(Lu(this._minLevelUnit))]||ZM.second,a,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return j9(t,a,n,o,i)},e.prototype.getTicks=function(){var t=this._interval,a=this._extent,n=[];if(!t)return n;n.push({value:a[0],level:0});var i=this.getSetting("useUTC"),o=pY(this._minLevelUnit,this._approxInterval,i,a);return n=n.concat(o),n.push({value:a[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var a=this._extent;if(a[0]===a[1]&&(a[0]-=Va,a[1]+=Va),a[1]===-1/0&&a[0]===1/0){var n=new Date;a[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),a[0]=a[1]-Va}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,a,n){t=t||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/t,a!=null&&this._approxInterval<a&&(this._approxInterval=a),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var s=Wd.length,l=Math.min(lY(Wd,this._approxInterval,0,s),s-1);this._interval=Wd[l][1],this._minLevelUnit=Wd[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return Qt(t)?t:+zn(t)},e.prototype.contain=function(t){return py(this.parse(t),this._extent)},e.prototype.normalize=function(t){return gy(this.parse(t),this._extent)},e.prototype.scale=function(t){return yy(t,this._extent)},e.type="time",e})(bi),Wd=[["second",Vb],["minute",Gb],["hour",$f],["quarter-day",$f*6],["half-day",$f*12],["day",Va*1.2],["half-week",Va*3.5],["week",Va*7],["month",Va*31],["quarter",Va*95],["half-year",XM/2],["year",XM]];function uY(r,e,t,a){var n=zn(e),i=zn(t),o=function(y){return WM(n,y,a)===WM(i,y,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},v=function(){return f()&&o("minute")},d=function(){return v()&&o("second")},p=function(){return d()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return v();case"second":return d();case"millisecond":return p()}}function cY(r,e){return r/=Va,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function fY(r){var e=30*Va;return r/=e,r>6?6:r>3?3:r>2?2:1}function hY(r){return r/=$f,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function nE(r,e){return r/=e?Gb:Vb,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function vY(r){return g3(r)}function dY(r,e,t){var a=new Date(r);switch(Lu(e)){case"year":case"month":a[mP(t)](0);case"day":a[_P(t)](1);case"hour":a[xP(t)](0);case"minute":a[SP(t)](0);case"second":a[bP(t)](0),a[wP(t)](0)}return a.getTime()}function pY(r,e,t,a){var n=1e4,i=gP,o=0;function s(N,O,k,G,H,F,B){for(var j=new Date(O),Y=O,K=j[G]();Y<k&&Y<=a[1];)B.push({value:Y}),K+=N,j[H](K),Y=j.getTime();B.push({value:Y,notAdd:!0})}function l(N,O,k){var G=[],H=!O.length;if(!uY(Lu(N),a[0],a[1],t)){H&&(O=[{value:dY(new Date(a[0]),N,t)},{value:a[1]}]);for(var F=0;F<O.length-1;F++){var B=O[F].value,j=O[F+1].value;if(B!==j){var Y=void 0,K=void 0,nt=void 0,U=!1;switch(N){case"year":Y=Math.max(1,Math.round(e/Va/365)),K=Hb(t),nt=Y9(t);break;case"half-year":case"quarter":case"month":Y=fY(e),K=Eu(t),nt=mP(t);break;case"week":case"half-week":case"day":Y=cY(e),K=sy(t),nt=_P(t),U=!0;break;case"half-day":case"quarter-day":case"hour":Y=hY(e),K=vh(t),nt=xP(t);break;case"minute":Y=nE(e,!0),K=ly(t),nt=SP(t);break;case"second":Y=nE(e,!1),K=uy(t),nt=bP(t);break;case"millisecond":Y=vY(e),K=cy(t),nt=wP(t);break}s(Y,B,j,K,nt,U,G),N==="year"&&k.length>1&&F===0&&k.unshift({value:k[0].value-Y})}}for(var F=0;F<G.length;F++)k.push(G[F]);return G}}for(var u=[],f=[],v=0,d=0,p=0;p<i.length&&o++<n;++p){var y=Lu(i[p]);if(U9(i[p])){l(i[p],u[u.length-1]||[],f);var m=i[p+1]?Lu(i[p+1]):null;if(y!==m){if(f.length){d=v,f.sort(function(N,O){return N.value-O.value});for(var _=[],S=0;S<f.length;++S){var b=f[S].value;(S===0||f[S-1].value!==b)&&(_.push(f[S]),b>=a[0]&&b<=a[1]&&v++)}var w=(a[1]-a[0])/e;if(v>w*1.5&&d>w/1.5||(u.push(_),v>w||r===i[p]))break}f=[]}}}for(var A=le(st(u,function(N){return le(N,function(O){return O.value>=a[0]&&O.value<=a[1]&&!O.notAdd})}),function(N){return N.length>0}),M=[],C=A.length-1,p=0;p<A.length;++p)for(var L=A[p],E=0;E<L.length;++E)M.push({value:L[E].value,level:C-p});M.sort(function(N,O){return N.value-O.value});for(var R=[],p=0;p<M.length;++p)(p===0||M[p].value!==M[p-1].value)&&R.push(M[p]);return R}Gn.registerClass(s2);var iE=Gn.prototype,th=bi.prototype,gY=Oe,yY=Math.floor,mY=Math.ceil,qd=Math.pow,Ka=Math.log,l2=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new bi,t._interval=0,t}return e.prototype.getTicks=function(t){var a=this._originalScale,n=this._extent,i=a.getExtent(),o=th.getTicks.call(this,t);return st(o,function(s){var l=s.value,u=Oe(qd(this.base,l));return u=l===n[0]&&this._fixMin?$d(u,i[0]):u,u=l===n[1]&&this._fixMax?$d(u,i[1]):u,{value:u}},this)},e.prototype.setExtent=function(t,a){var n=Ka(this.base);t=Ka(Math.max(0,t))/n,a=Ka(Math.max(0,a))/n,th.setExtent.call(this,t,a)},e.prototype.getExtent=function(){var t=this.base,a=iE.getExtent.call(this);a[0]=qd(t,a[0]),a[1]=qd(t,a[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(a[0]=$d(a[0],i[0])),this._fixMax&&(a[1]=$d(a[1],i[1])),a},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var a=this.base;t[0]=Ka(t[0])/Ka(a),t[1]=Ka(t[1])/Ka(a),iE.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,a){this.unionExtent(t.getApproximateExtent(a))},e.prototype.calcNiceTicks=function(t){t=t||10;var a=this._extent,n=a[1]-a[0];if(!(n===1/0||n<=0)){var i=b8(n),o=t/n*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Oe(mY(a[0]/i)*i),Oe(yY(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){th.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Ka(t)/Ka(this.base),py(t,this._extent)},e.prototype.normalize=function(t){return t=Ka(t)/Ka(this.base),gy(t,this._extent)},e.prototype.scale=function(t){return t=yy(t,this._extent),qd(this.base,t)},e.type="log",e})(Gn),e4=l2.prototype;e4.getMinorTicks=th.getMinorTicks;e4.getLabel=th.getLabel;function $d(r,e){return gY(r,Cn(e))}Gn.registerClass(l2);var _Y=(function(){function r(e,t,a){this._prepareParams(e,t,a)}return r.prototype._prepareParams=function(e,t,a){a[1]<a[0]&&(a=[NaN,NaN]),this._dataMin=a[0],this._dataMax=a[1];var n=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=this._modelMinRaw=t.get("min",!0);bt(i)?this._modelMinNum=Kd(e,i({min:a[0],max:a[1]})):i!=="dataMin"&&(this._modelMinNum=Kd(e,i));var o=this._modelMaxRaw=t.get("max",!0);if(bt(o)?this._modelMaxNum=Kd(e,o({min:a[0],max:a[1]})):o!=="dataMax"&&(this._modelMaxNum=Kd(e,o)),n)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=it(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ln(l[0],1),ln(l[1],1)]}},r.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,a=this._dataMax,n=this._axisDataLen,i=this._boundaryGapInner,o=e?null:a-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?a:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=e?n?0:NaN:t-i[0]*o),l==null&&(l=e?n?n-1:NaN:a+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var v=nh(s)||nh(l)||e&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var d=this._determinedMin,p=this._determinedMax;return d!=null&&(s=d,u=!0),p!=null&&(l=p,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:v}},r.prototype.modifyDataMinMax=function(e,t){this[SY[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var a=xY[e];this[a]=t},r.prototype.freeze=function(){this.frozen=!0},r})(),xY={min:"_determinedMin",max:"_determinedMax"},SY={min:"_dataMin",max:"_dataMax"};function r4(r,e,t){var a=r.rawExtentInfo;return a||(a=new _Y(r,e,t),r.rawExtentInfo=a,a)}function Kd(r,e){return e==null?null:nh(e)?NaN:r.parse(e)}function a4(r,e){var t=r.type,a=r4(r,e,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=e.ecModel;if(o&&t==="time"){var s=WO("bar",o),l=!1;if(P(s,function(v){l=l||v.getBaseAxis()===e.axis}),l){var u=qO(s),f=bY(n,i,e,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function bY(r,e,t,a){var n=t.axis.getExtent(),i=n[1]-n[0],o=oY(a,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;P(o,function(p){s=Math.min(p.offset,s)});var l=-1/0;P(o,function(p){l=Math.max(p.offset+p.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,v=1-(s+l)/i,d=f/v-f;return e+=d*(l/u),r-=d*(s/u),{min:r,max:e}}function zu(r,e){var t=e,a=a4(r,t),n=a.extent,i=t.get("splitNumber");r instanceof l2&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function _y(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new my({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new s2({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Gn.getClass(e)||bi)}}function wY(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}function Yh(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?(function(a){return function(n,i){return r.scale.getFormattedLabel(n,i,a)}})(e):vt(e)?(function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i??"");return o}})(e):bt(e)?(function(a){return function(n,i){return t!=null&&(i=n.value-t),a(u2(r,n),i,n.level!=null?{level:n.level}:null)}})(e):function(a){return r.scale.getLabel(a)}}function u2(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function TY(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var a,n,i=t.getExtent();t instanceof my?n=t.count():(a=t.getTicks(),n=a.length);var o=r.getLabelModel(),s=Yh(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f<n;f+=u){var v=a?a[f]:{value:i[0]+f},d=s(v,f),p=o.getTextRect(d),y=AY(p,o.get("rotate")||0);l?l.union(y):l=y}return l}}function AY(r,e){var t=e*Math.PI/180,a=r.width,n=r.height,i=a*Math.abs(Math.cos(t))+Math.abs(n*Math.sin(t)),o=a*Math.abs(Math.sin(t))+Math.abs(n*Math.cos(t)),s=new kt(r.x,r.y,i,o);return s}function c2(r){var e=r.get("interval");return e??"auto"}function n4(r){return r.type==="category"&&c2(r.getLabelModel())===0}function mg(r,e){var t={};return P(r.mapDimensionsAll(e),function(a){t[jO(r,a)]=!0}),Yt(t)}function DY(r,e,t){e&&P(mg(e,t),function(a){var n=e.getApproximateExtent(a);n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1])})}var Xh=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r})(),CY=1e-8;function oE(r,e){return Math.abs(r-e)<CY}function Rs(r,e,t){var a=0,n=r[0];if(!n)return!1;for(var i=1;i<r.length;i++){var o=r[i];a+=ui(n[0],n[1],o[0],o[1],e,t),n=o}var s=r[0];return(!oE(n[0],s[0])||!oE(n[1],s[1]))&&(a+=ui(n[0],n[1],s[0],s[1],e,t)),a!==0}var MY=[];function t_(r,e){for(var t=0;t<r.length;t++)_r(r[t],r[t],e)}function sE(r,e,t,a){for(var n=0;n<r.length;n++){var i=r[n];a&&(i=a.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(vo(e,e,i),po(t,t,i))}}function LY(r){for(var e=0,t=0,a=0,n=r.length,i=r[n-1][0],o=r[n-1][1],s=0;s<n;s++){var l=r[s][0],u=r[s][1],f=i*u-l*o;e+=f,t+=(i+l)*f,a+=(o+u)*f,i=l,o=u}return e?[t/e/3,a/e/3,e]:[r[0][0]||0,r[0][1]||0]}var i4=(function(){function r(e){this.name=e}return r.prototype.setCenter=function(e){this._center=e},r.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},r})(),lE=(function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r})(),uE=(function(){function r(e){this.type="linestring",this.points=e}return r})(),o4=(function(r){$(e,r);function e(t,a,n){var i=r.call(this,t)||this;return i.type="geoJSON",i.geometries=a,i._center=n&&[n[0],n[1]],i}return e.prototype.calcCenter=function(){for(var t=this.geometries,a,n=0,i=0;i<t.length;i++){var o=t[i],s=o.exterior,l=s&&s.length;l>n&&(a=o,n=l)}if(a)return LY(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var a=this._rect;if(a&&!t)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return P(o,function(s){s.type==="polygon"?sE(s.exterior,n,i,t):P(s.points,function(l){sE(l,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new kt(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=a),a},e.prototype.contain=function(t){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(t[0],t[1]))return!1;t:for(var i=0,o=n.length;i<o;i++){var s=n[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Rs(l,t[0],t[1])){for(var f=0;f<(u?u.length:0);f++)if(Rs(u[f],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=o.width/o.height;n?i||(i=n/s):n=s*i;for(var l=new kt(t,a,n,i),u=o.calculateTransform(l),f=this.geometries,v=0;v<f.length;v++){var d=f[v];d.type==="polygon"?(t_(d.exterior,u),P(d.interiors,function(p){t_(p,u)})):P(d.points,function(p){t_(p,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var a=new e(t,this.geometries,this._center);return a._rect=this._rect,a.transformTo=null,a},e})(i4),EY=(function(r){$(e,r);function e(t,a){var n=r.call(this,t)||this;return n.type="geoSVG",n._elOnlyForCalculate=a,n}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,a=t.getBoundingRect(),n=[a.x+a.width/2,a.y+a.height/2],i=Yg(MY),o=t;o&&!o.isGeoSVGGraphicRoot;)vi(i,o.getLocalTransform(),i),o=o.parent;return ju(i,i),_r(n,n,i),n},e})(i4);function RY(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var a=e.features;return P(a,function(n){var i=n.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=s4(s,o,t);break;case"Polygon":e_(s,o,t);break;case"MultiLineString":e_(s,o,t);break;case"MultiPolygon":P(s,function(l,u){return e_(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function e_(r,e,t){for(var a=0;a<r.length;a++)r[a]=s4(r[a],e[a],t)}function s4(r,e,t){for(var a=[],n=e[0],i=e[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/t,l/t])}return a}function IY(r,e){return r=RY(r),st(le(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var a=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new lE(o[0],o.slice(1)));break;case"MultiPolygon":P(n.coordinates,function(l){l[0]&&i.push(new lE(l[0],l.slice(1)))});break;case"LineString":i.push(new uE([n.coordinates]));break;case"MultiLineString":i.push(new uE(n.coordinates))}var s=new o4(a[e||"name"],i,a.cp);return s.properties=a,s})}var _h=Kt();function NY(r){return r.type==="category"?OY(r):kY(r)}function PY(r,e){return r.type==="category"?zY(r,e):{ticks:st(r.scale.getTicks(),function(t){return t.value})}}function OY(r){var e=r.getLabelModel(),t=l4(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function l4(r,e){var t=u4(r,"labels"),a=c2(e),n=c4(t,a);if(n)return n;var i,o;return bt(a)?i=v4(r,a):(o=a==="auto"?BY(r):a,i=h4(r,o)),f4(t,a,{labels:i,labelCategoryInterval:o})}function zY(r,e){var t=u4(r,"ticks"),a=c2(e),n=c4(t,a);if(n)return n;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),bt(a))i=v4(r,a,!0);else if(a==="auto"){var s=l4(r,r.getLabelModel());o=s.labelCategoryInterval,i=st(s.labels,function(l){return l.tickValue})}else o=a,i=h4(r,o,!0);return f4(t,a,{ticks:i,tickCategoryInterval:o})}function kY(r){var e=r.scale.getTicks(),t=Yh(r);return{labels:st(e,function(a,n){return{level:a.level,formattedLabel:t(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function u4(r,e){return _h(r)[e]||(_h(r)[e]=[])}function c4(r,e){for(var t=0;t<r.length;t++)if(r[t].key===e)return r[t].value}function f4(r,e,t){return r.push({key:e,value:t}),t}function BY(r){var e=_h(r).autoInterval;return e??(_h(r).autoInterval=r.calculateCategoryInterval())}function VY(r){var e=GY(r),t=Yh(r),a=(e.axisRotate-e.labelRotate)/180*Math.PI,n=r.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(a)),v=Math.abs(u*Math.sin(a)),d=0,p=0;l<=i[1];l+=s){var y=0,m=0,_=Nh(t({value:l}),e.font,"center","top");y=_.width*1.3,m=_.height*1.3,d=Math.max(d,y,7),p=Math.max(p,m,7)}var S=d/f,b=p/v;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(S,b))),A=_h(r.model),M=r.getExtent(),C=A.lastAutoInterval,L=A.lastTickCount;return C!=null&&L!=null&&Math.abs(C-w)<=1&&Math.abs(L-o)<=1&&C>w&&A.axisExtent0===M[0]&&A.axisExtent1===M[1]?w=C:(A.lastTickCount=o,A.lastAutoInterval=w,A.axisExtent0=M[0],A.axisExtent1=M[1]),w}function GY(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function h4(r,e,t){var a=Yh(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var v=n4(r),d=o.get("showMinLabel")||v,p=o.get("showMaxLabel")||v;d&&u!==i[0]&&m(i[0]);for(var y=u;y<=i[1];y+=l)m(y);p&&y-l!==i[1]&&m(i[1]);function m(_){var S={value:_};s.push(t?_:{formattedLabel:a(S),rawLabel:n.getLabel(S),tickValue:_})}return s}function v4(r,e,t){var a=r.scale,n=Yh(r),i=[];return P(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var cE=[0,1],hn=(function(){function r(e,t,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=a||[0,0]}return r.prototype.contain=function(e){var t=this._extent,a=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=a&&e<=n},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return d3(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var a=this._extent;a[0]=e,a[1]=t},r.prototype.dataToCoord=function(e,t){var a=this._extent,n=this.scale;return e=n.normalize(e),this.onBand&&n.type==="ordinal"&&(a=a.slice(),fE(a,n.count())),se(e,cE,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),fE(a,n.count()));var i=se(e,a,cE,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),a=PY(this,t),n=a.ticks,i=st(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return HY(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var a=this.scale.getMinorTicks(t),n=st(a,function(i){return st(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return NY(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),a=t[1]-t[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return VY(this)},r})();function fE(r,e){var t=r[1]-r[0],a=e,n=t/a/2;r[0]+=n,r[1]-=n}function HY(r,e,t,a){var n=e.length;if(!r.onBand||t||!n)return;var i=r.getExtent(),o,s;if(n===1)e[0].coord=i[0],o=e[1]={coord:i[1]};else{var l=e[n-1].tickValue-e[0].tickValue,u=(e[n-1].coord-e[0].coord)/l;P(e,function(p){p.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-e[n-1].tickValue,o={coord:e[n-1].coord+u*s},e.push(o)}var v=i[0]>i[1];d(e[0].coord,i[0])&&(a?e[0].coord=i[0]:e.shift()),a&&d(i[0],e[0].coord)&&e.unshift({coord:i[0]}),d(i[1],o.coord)&&(a?o.coord=i[1]:e.pop()),a&&d(o.coord,i[1])&&e.push({coord:i[1]});function d(p,y){return p=Oe(p),y=Oe(y),v?p>y:p<y}}var mf=Math.PI*2,Ss=kn.CMD,UY=["top","right","bottom","left"];function FY(r,e,t,a,n){var i=t.width,o=t.height;switch(r){case"top":a.set(t.x+i/2,t.y-e),n.set(0,-1);break;case"bottom":a.set(t.x+i/2,t.y+o+e),n.set(0,1);break;case"left":a.set(t.x-e,t.y+o/2),n.set(-1,0);break;case"right":a.set(t.x+i+e,t.y+o/2),n.set(1,0);break}}function jY(r,e,t,a,n,i,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*t+r,v=s*t+e;if(Math.abs(a-n)%mf<1e-4)return l[0]=f,l[1]=v,u-t;if(i){var d=a;a=an(n),n=an(d)}else a=an(a),n=an(n);a>n&&(n+=mf);var p=Math.atan2(s,o);if(p<0&&(p+=mf),p>=a&&p<=n||p+mf>=a&&p+mf<=n)return l[0]=f,l[1]=v,u-t;var y=t*Math.cos(a)+r,m=t*Math.sin(a)+e,_=t*Math.cos(n)+r,S=t*Math.sin(n)+e,b=(y-o)*(y-o)+(m-s)*(m-s),w=(_-o)*(_-o)+(S-s)*(S-s);return b<w?(l[0]=y,l[1]=m,Math.sqrt(b)):(l[0]=_,l[1]=S,Math.sqrt(w))}function _g(r,e,t,a,n,i,o,s){var l=n-r,u=i-e,f=t-r,v=a-e,d=Math.sqrt(f*f+v*v);f/=d,v/=d;var p=l*f+u*v,y=p/d;s&&(y=Math.min(Math.max(y,0),1)),y*=d;var m=o[0]=r+y*f,_=o[1]=e+y*v;return Math.sqrt((m-n)*(m-n)+(_-i)*(_-i))}function d4(r,e,t,a,n,i,o){t<0&&(r=r+t,t=-t),a<0&&(e=e+a,a=-a);var s=r+t,l=e+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var en=[];function YY(r,e,t){var a=d4(e.x,e.y,e.width,e.height,r.x,r.y,en);return t.set(en[0],en[1]),a}function XY(r,e,t){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,f=e.data,v=r.x,d=r.y,p=0;p<f.length;){var y=f[p++];p===1&&(a=f[p],n=f[p+1],i=a,o=n);var m=u;switch(y){case Ss.M:i=f[p++],o=f[p++],a=i,n=o;break;case Ss.L:m=_g(a,n,f[p],f[p+1],v,d,en,!0),a=f[p++],n=f[p++];break;case Ss.C:m=$N(a,n,f[p++],f[p++],f[p++],f[p++],f[p],f[p+1],v,d,en),a=f[p++],n=f[p++];break;case Ss.Q:m=QN(a,n,f[p++],f[p++],f[p],f[p+1],v,d,en),a=f[p++],n=f[p++];break;case Ss.A:var _=f[p++],S=f[p++],b=f[p++],w=f[p++],A=f[p++],M=f[p++];p+=1;var C=!!(1-f[p++]);s=Math.cos(A)*b+_,l=Math.sin(A)*w+S,p<=1&&(i=s,o=l);var L=(v-_)*w/b+_;m=jY(_,S,w,A,A+M,C,L,d,en),a=Math.cos(A+M)*b+_,n=Math.sin(A+M)*w+S;break;case Ss.R:i=a=f[p++],o=n=f[p++];var E=f[p++],R=f[p++];m=d4(i,o,E,R,v,d,en);break;case Ss.Z:m=_g(a,n,i,o,v,d,en,!0),a=i,n=o;break}m<u&&(u=m,t.set(en[0],en[1]))}return u}var nn=new Pt,_e=new Pt,Ve=new Pt,En=new Pt,Dn=new Pt;function hE(r,e){if(r){var t=r.getTextGuideLine(),a=r.getTextContent();if(a&&t){var n=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=n.candidates||UY,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,f=r.getComputedTransform(),v=f&&ju([],f),d=e.get("length2")||0;u&&Ve.copy(u);for(var p=0;p<o.length;p++){var y=o[p];FY(y,0,s,nn,En),Pt.scaleAndAdd(_e,nn,En,d),_e.transform(v);var m=r.getBoundingRect(),_=u?u.distance(_e):r instanceof Ut?XY(_e,r.path,Ve):YY(_e,m,Ve);_<l&&(l=_,_e.transform(f),Ve.transform(f),Ve.toArray(i[0]),_e.toArray(i[1]),nn.toArray(i[2]))}p4(i,e.get("minTurnAngle")),t.setShape({points:i})}}}var xg=[],Nr=new Pt;function p4(r,e){if(e<=180&&e>0){e=e/180*Math.PI,nn.fromArray(r[0]),_e.fromArray(r[1]),Ve.fromArray(r[2]),Pt.sub(En,nn,_e),Pt.sub(Dn,Ve,_e);var t=En.len(),a=Dn.len();if(!(t<.001||a<.001)){En.scale(1/t),Dn.scale(1/a);var n=En.dot(Dn),i=Math.cos(e);if(i<n){var o=_g(_e.x,_e.y,Ve.x,Ve.y,nn.x,nn.y,xg,!1);Nr.fromArray(xg),Nr.scaleAndAdd(Dn,o/Math.tan(Math.PI-e));var s=Ve.x!==_e.x?(Nr.x-_e.x)/(Ve.x-_e.x):(Nr.y-_e.y)/(Ve.y-_e.y);if(isNaN(s))return;s<0?Pt.copy(Nr,_e):s>1&&Pt.copy(Nr,Ve),Nr.toArray(r[1])}}}}function ZY(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,nn.fromArray(r[0]),_e.fromArray(r[1]),Ve.fromArray(r[2]),Pt.sub(En,_e,nn),Pt.sub(Dn,Ve,_e);var a=En.len(),n=Dn.len();if(!(a<.001||n<.001)){En.scale(1/a),Dn.scale(1/n);var i=En.dot(e),o=Math.cos(t);if(i<o){var s=_g(_e.x,_e.y,Ve.x,Ve.y,nn.x,nn.y,xg,!1);Nr.fromArray(xg);var l=Math.PI/2,u=Math.acos(Dn.dot(e)),f=l+u-t;if(f>=l)Pt.copy(Nr,Ve);else{Nr.scaleAndAdd(Dn,s/Math.tan(Math.PI/2-f));var v=Ve.x!==_e.x?(Nr.x-_e.x)/(Ve.x-_e.x):(Nr.y-_e.y)/(Ve.y-_e.y);if(isNaN(v))return;v<0?Pt.copy(Nr,_e):v>1&&Pt.copy(Nr,Ve)}Nr.toArray(r[1])}}}}function vE(r,e,t,a){var n=t==="normal",i=n?r:r.ensureState(t);i.ignore=e;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function WY(r,e){var t=e.smooth,a=e.points;if(a)if(r.moveTo(a[0][0],a[0][1]),t>0&&a.length>=3){var n=ho(a[0],a[1]),i=ho(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*t,s=Ap([],a[1],a[0],o/n),l=Ap([],a[1],a[2],o/i),u=Ap([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f<a.length;f++)r.lineTo(a[f][0],a[f][1])}function f2(r,e,t){var a=r.getTextGuideLine(),n=r.getTextContent();if(!n){a&&r.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=n.ignore,l=0;l<uh.length;l++){var u=uh[l],f=e[u],v=u==="normal";if(f){var d=f.get("show"),p=v?s:Ot(n.states[u]&&n.states[u].ignore,s);if(p||!Ot(d,o)){var y=v?a:a&&a.states[u];y&&(y.ignore=!0);continue}a||(a=new Gr,r.setTextGuideLine(a),!v&&(s||!o)&&vE(a,!0,"normal",e.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),vE(a,!1,u,f)}}if(a){wt(a.style,t),a.style.fill=null;var m=i.get("showAbove"),_=r.textGuideLineConfig=r.textGuideLineConfig||{};_.showAbove=m||!1,a.buildPath=WY}}function h2(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},a=0;a<kr.length;a++){var n=kr[a];t[n]=r.getModel([n,e])}return t}function g4(r){for(var e=[],t=0;t<r.length;t++){var a=r[t];if(!a.defaultAttr.ignore){var n=a.label,i=n.getComputedTransform(),o=n.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=n.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new ng(o,i):null;e.push({label:n,labelLine:a.labelLine,rect:u,localRect:o,obb:f,priority:a.priority,defaultAttr:a.defaultAttr,layoutOption:a.computedLayoutOption,axisAligned:s,transform:i})}}return e}function y4(r,e,t,a,n,i){var o=r.length;if(o<2)return;r.sort(function(C,L){return C.rect[e]-L.rect[e]});for(var s=0,l,u=!1,f=0;f<o;f++){var v=r[f],d=v.rect;l=d[e]-s,l<0&&(d[e]-=l,v.label[e]-=l,u=!0),s=d[e]+d[t]}var p=r[0],y=r[o-1],m,_;S(),m<0&&A(-m,.8),_<0&&A(_,.8),S(),b(m,_,1),b(_,m,-1),S(),m<0&&M(-m),_<0&&M(_);function S(){m=p.rect[e]-a,_=n-y.rect[e]-y.rect[t]}function b(C,L,E){if(C<0){var R=Math.min(L,-C);if(R>0){w(R*E,0,o);var N=R+C;N<0&&A(-N*E,1)}else A(-C*E,1)}}function w(C,L,E){C!==0&&(u=!0);for(var R=L;R<E;R++){var N=r[R],O=N.rect;O[e]+=C,N.label[e]+=C}}function A(C,L){for(var E=[],R=0,N=1;N<o;N++){var O=r[N-1].rect,k=Math.max(r[N].rect[e]-O[e]-O[t],0);E.push(k),R+=k}if(R){var G=Math.min(Math.abs(C)/R,L);if(C>0)for(var N=0;N<o-1;N++){var H=E[N]*G;w(H,0,N+1)}else for(var N=o-1;N>0;N--){var H=E[N-1]*G;w(-H,N,o)}}}function M(C){var L=C<0?-1:1;C=Math.abs(C);for(var E=Math.ceil(C/(o-1)),R=0;R<o-1;R++)if(L>0?w(E,0,R+1):w(-E,o-R-1,o),C-=E,C<=0)return}return u}function qY(r,e,t,a){return y4(r,"x","width",e,t)}function m4(r,e,t,a){return y4(r,"y","height",e,t)}function _4(r){var e=[];r.sort(function(m,_){return _.priority-m.priority});var t=new kt(0,0,0,0);function a(m){if(!m.ignore){var _=m.ensureState("emphasis");_.ignore==null&&(_.ignore=!1)}m.ignore=!0}for(var n=0;n<r.length;n++){var i=r[n],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,f=i.labelLine;t.copy(i.rect),t.width-=.1,t.height-=.1,t.x+=.05,t.y+=.05;for(var v=i.obb,d=!1,p=0;p<e.length;p++){var y=e[p];if(t.intersect(y.rect)){if(o&&y.axisAligned){d=!0;break}if(y.obb||(y.obb=new ng(y.localRect,y.transform)),v||(v=new ng(s,l)),v.intersect(y.obb)){d=!0;break}}}d?(a(u),f&&a(f)):(u.attr("ignore",i.defaultAttr.ignore),f&&f.attr("ignore",i.defaultAttr.labelGuideIgnore),e.push(i))}}function $Y(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function KY(r,e){var t=r.label,a=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:$Y(a&&a.shape.points)}}var dE=["align","verticalAlign","width","height","fontSize"],Lr=new ci,r_=Kt(),QY=Kt();function Qd(r,e,t){for(var a=0;a<t.length;a++){var n=t[a];e[n]!=null&&(r[n]=e[n])}}var Jd=["x","y","rotation"],JY=(function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,a,n,i){var o=n.style,s=n.__hostTarget,l=s.textConfig||{},u=n.getComputedTransform(),f=n.getBoundingRect().plain();kt.applyTransform(f,f,u),u?Lr.setLocalTransform(u):(Lr.x=Lr.y=Lr.rotation=Lr.originX=Lr.originY=0,Lr.scaleX=Lr.scaleY=1),Lr.rotation=an(Lr.rotation);var v=n.__hostTarget,d;if(v){d=v.getBoundingRect().plain();var p=v.getComputedTransform();kt.applyTransform(d,d,p)}var y=d&&v.getTextGuideLine();this._labelList.push({label:n,labelLine:y,seriesModel:a,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:f,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:y&&y.ignore,x:Lr.x,y:Lr.y,scaleX:Lr.scaleX,scaleY:Lr.scaleY,rotation:Lr.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var a=e.__model,n=a.get("labelLayout");(bt(n)||Yt(n).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=Rt(i);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),a=e.getHeight();function n(w,A){return function(){hE(w,A)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;bt(o.layoutOption)?f=o.layoutOption(KY(o,l)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var v=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*v:u.attachedRot,offset:[f.dx||0,f.dy||0]});var d=!1;if(f.x!=null?(s.x=ft(f.x,t),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=ft(f.y,a),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var p=l.getTextGuideLine();p&&(p.setShape({points:f.labelLinePoints}),d=!1)}var y=r_(s);y.needsUpdateLabelLine=d,s.rotation=f.rotate!=null?f.rotate*v:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var m=0;m<dE.length;m++){var _=dE[m];s.setStyle(_,f[_]!=null?f[_]:u.style[_])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var S=o.seriesModel;if(o.dataIndex!=null){var b=o.seriesModel.getData(o.dataType);S=b.getItemModel(o.dataIndex)}s.on("drag",n(l,S.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),a=e.getHeight(),n=g4(this._labelList),i=le(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=le(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});qY(i,0,t),m4(o,0,a);var s=le(n,function(l){return l.layoutOption.hideOverlap});_4(s)},r.prototype.processLabelsOverall=function(){var e=this;P(this._chartViewList,function(t){var a=t.__model,n=t.ignoreLabelLineUpdate,i=a.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();!s&&l&&(s=r_(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,a),i&&e._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(e,t){var a=e.getTextContent(),n=Rt(e),i=n.dataIndex;if(a&&i!=null){var o=t.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var v=s.getModel("labelLine");f2(e,h2(s),l),hE(e,v)}},r.prototype._animateLabels=function(e,t){var a=e.getTextContent(),n=e.getTextGuideLine();if(a&&(e.forceLabelAnimation||!a.ignore&&!a.invisible&&!e.disableLabelAnimation&&!Mu(e))){var i=r_(a),o=i.oldLayout,s=Rt(e),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},f=t.getData(s.dataType);if(o){a.attr(o);var d=e.prevStates;d&&(Vt(d,"select")>=0&&a.attr(i.oldLayoutSelect),Vt(d,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Jt(a,u,t,l)}else if(a.attr(u),!qu(a).valueAnimation){var v=Ot(a.style.opacity,1);a.style.opacity=0,Le(a,{style:{opacity:v}},t,l)}if(i.oldLayout=u,a.states.select){var p=i.oldLayoutSelect={};Qd(p,u,Jd),Qd(p,a.states.select,Jd)}if(a.states.emphasis){var y=i.oldLayoutEmphasis={};Qd(y,u,Jd),Qd(y,a.states.emphasis,Jd)}fP(a,l,f,t,t)}if(n&&!n.ignore&&!n.invisible){var i=QY(n),o=i.oldLayout,m={points:n.shape.points};o?(n.attr({shape:o}),Jt(n,{shape:m},t)):(n.setShape(m),n.style.strokePercent=0,Le(n,{style:{strokePercent:1}},t)),i.oldLayout=m}},r})(),a_=Kt();function tX(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var n=a_(t).labelManager;n||(n=a_(t).labelManager=new JY),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var n=a_(t).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}var n_=Math.sin,i_=Math.cos,x4=Math.PI,bs=Math.PI*2,eX=180/x4,S4=(function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){this._add("C",e,t,a,n,i,o)},r.prototype.quadraticCurveTo=function(e,t,a,n){this._add("Q",e,t,a,n)},r.prototype.arc=function(e,t,a,n,i,o){this.ellipse(e,t,a,a,0,n,i,o)},r.prototype.ellipse=function(e,t,a,n,i,o,s,l){var u=s-o,f=!l,v=Math.abs(u),d=mo(v-bs)||(f?u>=bs:-u>=bs),p=u>0?u%bs:u%bs+bs,y=!1;d?y=!0:mo(v)?y=!1:y=p>=x4==!!f;var m=e+a*i_(o),_=t+n*n_(o);this._start&&this._add("M",m,_);var S=Math.round(i*eX);if(d){var b=1/this._p,w=(f?1:-1)*(bs-b);this._add("A",a,n,S,1,+f,e+a*i_(o+w),t+n*n_(o+w)),b>.01&&this._add("A",a,n,S,0,+f,m,_)}else{var A=e+a*i_(s),M=t+n*n_(s);this._add("A",a,n,S,+y,+f,A,M)}},r.prototype.rect=function(e,t,a,n){this._add("M",e,t),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,a,n,i,o,s,l,u){for(var f=[],v=this._p,d=1;d<arguments.length;d++){var p=arguments[d];if(isNaN(p)){this._invalid=!0;return}f.push(Math.round(p*v)/v)}this._d.push(e+f.join(" ")),this._start=e==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r})(),v2="none",rX=Math.round;function aX(r){var e=r.fill;return e!=null&&e!==v2}function nX(r){var e=r.stroke;return e!=null&&e!==v2}var _S=["lineCap","miterLimit","lineJoin"],iX=st(_S,function(r){return"stroke-"+r.toLowerCase()});function oX(r,e,t,a){var n=e.opacity==null?1:e.opacity;if(t instanceof hr){r("opacity",n);return}if(aX(e)){var i=sh(e.fill);r("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*n:i.opacity*n;o<1&&r("fill-opacity",o)}else r("fill",v2);if(nX(e)){var s=sh(e.stroke);r("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*n:s.opacity*n,v=e.strokeFirst;if(u!==1&&r("stroke-width",u),v&&r("paint-order",v?"stroke":"fill"),f<1&&r("stroke-opacity",f),e.lineDash){var d=t2(t),p=d[0],y=d[1];p&&(y=rX(y||0),r("stroke-dasharray",p.join(",")),(y||a)&&r("stroke-dashoffset",y))}for(var m=0;m<_S.length;m++){var _=_S[m];if(e[_]!==rg[_]){var S=e[_]||rg[_];S&&r(iX[m],S)}}}}var b4="http://www.w3.org/2000/svg",w4="http://www.w3.org/1999/xlink",sX="http://www.w3.org/2000/xmlns/",lX="http://www.w3.org/XML/1998/namespace";function T4(r){return document.createElementNS(b4,r)}function rr(r,e,t,a,n){return{tag:r,attrs:t||{},children:a,text:n,key:e}}function uX(r,e){var t=[];if(e)for(var a in e){var n=e[a],i=a;n!==!1&&(n!==!0&&n!=null&&(i+='="'+n+'"'),t.push(i))}return"<"+r+" "+t.join(" ")+">"}function cX(r){return"</"+r+">"}function d2(r,e){e=e||{};var t=e.newline?`
`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return uX(o,s)+(o!=="style"?ca(l):l||"")+(i?""+t+st(i,function(u){return a(u)}).join(t)+t:"")+cX(o)}return a(r)}function fX(r,e,t){t=t||{};var a=t.newline?`
`:"",n=" {"+a,i=a+"}",o=st(Yt(r),function(l){return l+n+st(Yt(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=st(Yt(e),function(l){return"@keyframes "+l+n+st(Yt(e[l]),function(u){return u+n+st(Yt(e[l][u]),function(f){var v=e[l][u][f];return f==="d"&&(v='path("'+v+'")'),f+":"+v+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function xS(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function pE(r,e,t,a){return rr("svg","root",{width:r,height:e,xmlns:b4,"xmlns:xlink":w4,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var gE={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},As="transform-origin";function hX(r,e,t){var a=et({},r.shape);et(a,e),r.buildPath(t,a);var n=new S4;return n.reset(i3(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function vX(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[As]=t+"px "+a+"px")}var dX={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function A4(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function pX(r,e,t){var a=r.shape.paths,n={},i,o;if(P(a,function(l){var u=xS(t.zrId);u.animation=!0,xy(l,{},u,!0);var f=u.cssAnims,v=u.cssNodes,d=Yt(f),p=d.length;if(p){o=d[p-1];var y=f[o];for(var m in y){var _=y[m];n[m]=n[m]||{d:""},n[m].d+=_.d||""}for(var S in v){var b=v[S].animation;b.indexOf(o)>=0&&(i=b)}}}),!!i){e.d=!1;var s=A4(n,t);return i.replace(o,s)}}function yE(r){return vt(r)?gE[r]?"cubic-bezier("+gE[r]+")":xb(r)?r:"":""}function xy(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof Pb){var s=pX(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var f=n[u],v=[f.getMaxTime()/1e3+"s"],d=yE(f.getClip().easing),p=f.getDelay();d?v.push(d):v.push("linear"),p&&v.push(p/1e3+"s"),f.getLoop()&&v.push("infinite");var y=v.join(" ");l[y]=l[y]||[y,[]],l[y][1].push(f)}function m(b){var w=b[1],A=w.length,M={},C={},L={},E="animation-timing-function";function R(yt,St,Lt){for(var _t=yt.getTracks(),Et=yt.getMaxTime(),ge=0;ge<_t.length;ge++){var Gt=_t[ge];if(Gt.needsAnimate()){var Ce=Gt.keyframes,be=Gt.propName;if(Lt&&(be=Lt(be)),be)for(var or=0;or<Ce.length;or++){var pa=Ce[or],sr=Math.round(pa.time/Et*100)+"%",Ci=yE(pa.easing),ga=pa.rawValue;(vt(ga)||Qt(ga))&&(St[sr]=St[sr]||{},St[sr][be]=pa.rawValue,Ci&&(St[sr][E]=Ci))}}}}for(var N=0;N<A;N++){var O=w[N],k=O.targetName;k?k==="shape"&&R(O,C):!a&&R(O,M)}for(var G in M){var H={};c3(H,r),et(H,M[G]);var F=o3(H),B=M[G][E];L[G]=F?{transform:F}:{},vX(L[G],H),B&&(L[G][E]=B)}var j,Y=!0;for(var G in C){L[G]=L[G]||{};var K=!j,B=C[G][E];K&&(j=new kn);var nt=j.len();j.reset(),L[G].d=hX(r,C[G],j);var U=j.len();if(!K&&nt!==U){Y=!1;break}B&&(L[G][E]=B)}if(!Y)for(var G in L)delete L[G].d;if(!a)for(var N=0;N<A;N++){var O=w[N],k=O.targetName;k==="style"&&R(O,L,function(_t){return dX[_t]})}for(var W=Yt(L),rt=!0,ot,N=1;N<W.length;N++){var ht=W[N-1],gt=W[N];if(L[ht][As]!==L[gt][As]){rt=!1;break}ot=L[ht][As]}if(rt&&ot){for(var G in L)L[G][As]&&delete L[G][As];e[As]=ot}if(le(W,function(yt){return Yt(L[yt]).length>0}).length){var mt=A4(L,t);return mt+" "+b[0]+" both"}}for(var _ in l){var s=m(l[_]);s&&o.push(s)}if(o.length){var S=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+S]={animation:o.join(",")},e.class=S}}var xh=Math.round;function D4(r){return r&&vt(r.src)}function C4(r){return r&&bt(r.toDataURL)}function p2(r,e,t,a){oX(function(n,i){var o=n==="fill"||n==="stroke";o&&n3(i)?L4(e,r,n,a):o&&Sb(i)?E4(t,r,n,a):r[n]=i},e,t,!1),bX(t,r,a)}function mE(r){return mo(r[0]-1)&&mo(r[1])&&mo(r[2])&&mo(r[3]-1)}function gX(r){return mo(r[4])&&mo(r[5])}function g2(r,e,t){if(e&&!(gX(e)&&mE(e))){var a=1e4;r.transform=mE(e)?"translate("+xh(e[4]*a)/a+" "+xh(e[5]*a)/a+")":GG(e)}}function _E(r,e,t){for(var a=r.points,n=[],i=0;i<a.length;i++)n.push(xh(a[i][0]*t)/t),n.push(xh(a[i][1]*t)/t);e.points=n.join(" ")}function xE(r){return!r.smooth}function yX(r){var e=st(r,function(t){return typeof t=="string"?[t,t]:t});return function(t,a,n){for(var i=0;i<e.length;i++){var o=e[i],s=t[o[0]];s!=null&&(a[o[1]]=xh(s*n)/n)}}}var mX={circle:[yX(["cx","cy","r"])],polyline:[_E,xE],polygon:[_E,xE]};function _X(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function M4(r,e){var t=r.style,a=r.shape,n=mX[r.type],i={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&i3(r)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](a))&&!(o&&_X(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);n[0](a,i,f)}else{var v=!r.path||r.shapeChanged();r.path||r.createPathProxy();var d=r.path;v&&(d.beginPath(),r.buildPath(d,r.shape),r.pathUpdated());var p=d.getVersion(),y=r,m=y.__svgPathBuilder;(y.__svgPathVersion!==p||!m||l!==y.__svgPathStrokePercent)&&(m||(m=y.__svgPathBuilder=new S4),m.reset(u),d.rebuildPath(m,l),m.generateStr(),y.__svgPathVersion=p,y.__svgPathStrokePercent=l),i.d=m.getStr()}return g2(i,r.transform),p2(i,t,r,e),e.animation&&xy(r,i,e),rr(s,r.id+"",i)}function xX(r,e){var t=r.style,a=t.image;if(a&&!vt(a)&&(D4(a)?a=a.src:C4(a)&&(a=a.toDataURL())),!!a){var n=t.x||0,i=t.y||0,o=t.width,s=t.height,l={href:a,width:o,height:s};return n&&(l.x=n),i&&(l.y=i),g2(l,r.transform),p2(l,t,r,e),e.animation&&xy(r,l,e),rr("image",r.id+"",l)}}function SX(r,e){var t=r.style,a=t.text;if(a!=null&&(a+=""),!(!a||isNaN(t.x)||isNaN(t.y))){var n=t.font||Co,i=t.x||0,o=UG(t.y||0,Zg(n),t.textBaseline),s=HG[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(k3(t)){var u="",f=t.fontStyle,v=z3(t.fontSize);if(!parseFloat(v))return;var d=t.fontFamily||ON,p=t.fontWeight;u+="font-size:"+v+";font-family:"+d+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),p&&p!=="normal"&&(u+="font-weight:"+p+";"),l.style=u}else l.style="font: "+n;return a.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),g2(l,r.transform),p2(l,t,r,e),e.animation&&xy(r,l,e),rr("text",r.id+"",l,void 0,a)}}function SE(r,e){if(r instanceof Ut)return M4(r,e);if(r instanceof hr)return xX(r,e);if(r instanceof Iu)return SX(r,e)}function bX(r,e,t){var a=r.style;if(FG(a)){var n=jG(r),i=t.shadowCache,o=i[n];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=a.shadowOffsetX||0,v=a.shadowOffsetY||0,d=a.shadowBlur,p=sh(a.shadowColor),y=p.opacity,m=p.color,_=d/2/l,S=d/2/u,b=_+" "+S;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=rr("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[rr("feDropShadow","",{dx:f/l,dy:v/u,stdDeviation:b,"flood-color":m,"flood-opacity":y})]),i[n]=o}e.filter=Xg(o)}}function L4(r,e,t,a){var n=r[t],i,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(r3(n))i="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(a3(n))i="radialGradient",o.cx=Ot(n.x,.5),o.cy=Ot(n.y,.5),o.r=Ot(n.r,.5);else return;for(var s=n.colorStops,l=[],u=0,f=s.length;u<f;++u){var v=Px(s[u].offset)*100+"%",d=s[u].color,p=sh(d),y=p.color,m=p.opacity,_={offset:v};_["stop-color"]=y,m<1&&(_["stop-opacity"]=m),l.push(rr("stop",u+"",_))}var S=rr(i,"",o,l),b=d2(S),w=a.gradientCache,A=w[b];A||(A=a.zrId+"-g"+a.gradientIdx++,w[b]=A,o.id=A,a.defs[A]=rr(i,A,o,l)),e[t]=Xg(A)}function E4(r,e,t,a){var n=r.style[t],i=r.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",v;if(e3(n)){var d=n.imageWidth,p=n.imageHeight,y=void 0,m=n.image;if(vt(m)?y=m:D4(m)?y=m.src:C4(m)&&(y=m.toDataURL()),typeof Image>"u"){var _="Image width/height must been given explictly in svg-ssr renderer.";zr(d,_),zr(p,_)}else if(d==null||p==null){var S=function(N,O){if(N){var k=N.elm,G=d||O.width,H=p||O.height;N.tag==="pattern"&&(u?(H=1,G/=i.width):f&&(G=1,H/=i.height)),N.attrs.width=G,N.attrs.height=H,k&&(k.setAttribute("width",G),k.setAttribute("height",H))}},b=Cb(y,null,r,function(N){l||S(C,N),S(v,N)});b&&b.width&&b.height&&(d=d||b.width,p=p||b.height)}v=rr("image","img",{href:y,width:d,height:p}),o.width=d,o.height=p}else n.svgElement&&(v=Dt(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(v){var w,A;l?w=A=1:u?(A=1,w=o.width/i.width):f?(w=1,A=o.height/i.height):o.patternUnits="userSpaceOnUse",w!=null&&!isNaN(w)&&(o.width=w),A!=null&&!isNaN(A)&&(o.height=A);var M=o3(n);M&&(o.patternTransform=M);var C=rr("pattern","",o,[v]),L=d2(C),E=a.patternCache,R=E[L];R||(R=a.zrId+"-p"+a.patternIdx++,E[L]=R,o.id=R,C=a.defs[R]=rr("pattern",R,o,[v])),e[t]=Xg(R)}}function wX(r,e,t){var a=t.clipPathCache,n=t.defs,i=a[r.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};a[r.id]=i,n[i]=rr("clipPath",i,o,[M4(r,t)])}e["clip-path"]=Xg(i)}function bE(r){return document.createTextNode(r)}function Is(r,e,t){r.insertBefore(e,t)}function wE(r,e){r.removeChild(e)}function TE(r,e){r.appendChild(e)}function R4(r){return r.parentNode}function I4(r){return r.nextSibling}function o_(r,e){r.textContent=e}var AE=58,TX=120,AX=rr("","");function SS(r){return r===void 0}function Tn(r){return r!==void 0}function DX(r,e,t){for(var a={},n=e;n<=t;++n){var i=r[n].key;i!==void 0&&(a[i]=n)}return a}function zf(r,e){var t=r.key===e.key,a=r.tag===e.tag;return a&&t}function Sh(r){var e,t=r.children,a=r.tag;if(Tn(a)){var n=r.elm=T4(a);if(y2(AX,r),it(t))for(e=0;e<t.length;++e){var i=t[e];i!=null&&TE(n,Sh(i))}else Tn(r.text)&&!Tt(r.text)&&TE(n,bE(r.text))}else r.elm=bE(r.text);return r.elm}function N4(r,e,t,a,n){for(;a<=n;++a){var i=t[a];i!=null&&Is(r,Sh(i),e)}}function Sg(r,e,t,a){for(;t<=a;++t){var n=e[t];if(n!=null)if(Tn(n.tag)){var i=R4(n.elm);wE(i,n.elm)}else wE(r,n.elm)}}function y2(r,e){var t,a=e.elm,n=r&&r.attrs||{},i=e.attrs||{};if(n!==i){for(t in i){var o=i[t],s=n[t];s!==o&&(o===!0?a.setAttribute(t,""):o===!1?a.removeAttribute(t):t.charCodeAt(0)!==TX?a.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?a.setAttributeNS(sX,t,o):t.charCodeAt(3)===AE?a.setAttributeNS(lX,t,o):t.charCodeAt(5)===AE?a.setAttributeNS(w4,t,o):a.setAttribute(t,o))}for(t in n)t in i||a.removeAttribute(t)}}function CX(r,e,t){for(var a=0,n=0,i=e.length-1,o=e[0],s=e[i],l=t.length-1,u=t[0],f=t[l],v,d,p,y;a<=i&&n<=l;)o==null?o=e[++a]:s==null?s=e[--i]:u==null?u=t[++n]:f==null?f=t[--l]:zf(o,u)?(xu(o,u),o=e[++a],u=t[++n]):zf(s,f)?(xu(s,f),s=e[--i],f=t[--l]):zf(o,f)?(xu(o,f),Is(r,o.elm,I4(s.elm)),o=e[++a],f=t[--l]):zf(s,u)?(xu(s,u),Is(r,s.elm,o.elm),s=e[--i],u=t[++n]):(SS(v)&&(v=DX(e,a,i)),d=v[u.key],SS(d)?Is(r,Sh(u),o.elm):(p=e[d],p.tag!==u.tag?Is(r,Sh(u),o.elm):(xu(p,u),e[d]=void 0,Is(r,p.elm,o.elm))),u=t[++n]);(a<=i||n<=l)&&(a>i?(y=t[l+1]==null?null:t[l+1].elm,N4(r,y,t,n,l)):Sg(r,e,a,i))}function xu(r,e){var t=e.elm=r.elm,a=r.children,n=e.children;r!==e&&(y2(r,e),SS(e.text)?Tn(a)&&Tn(n)?a!==n&&CX(t,a,n):Tn(n)?(Tn(r.text)&&o_(t,""),N4(t,null,n,0,n.length-1)):Tn(a)?Sg(t,a,0,a.length-1):Tn(r.text)&&o_(t,""):r.text!==e.text&&(Tn(a)&&Sg(t,a,0,a.length-1),o_(t,e.text)))}function MX(r,e){if(zf(r,e))xu(r,e);else{var t=r.elm,a=R4(t);Sh(e),a!==null&&(Is(a,e.elm,I4(t)),Sg(a,[r],0,0))}return e}var LX=0,EX=(function(){function r(e,t,a){if(this.type="svg",this.refreshHover=DE(),this.configLayer=DE(),this.storage=t,this._opts=a=et({},a),this.root=e,this._id="zr"+LX++,this._oldVNode=pE(a.width,a.height),e&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=T4("svg");y2(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",MX(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return SE(e,xS(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=xS(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=RX(a,n,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=rr("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=st(Yt(i.defs),function(d){return i.defs[d]});if(u.length&&o.push(rr("defs","defs",{},u)),e.animation){var f=fX(i.cssNodes,i.cssAnims,{newline:!0});if(f){var v=rr("style","stl",{},[],f);o.push(v)}}return pE(a,n,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},d2(this.renderToVNode({animation:Ot(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ot(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,a){for(var n=e.length,i=[],o=0,s,l,u=0,f=0;f<n;f++){var v=e[f];if(!v.invisible){var d=v.__clipPaths,p=d&&d.length||0,y=l&&l.length||0,m=void 0;for(m=Math.max(p-1,y-1);m>=0&&!(d&&l&&d[m]===l[m]);m--);for(var _=y-1;_>m;_--)o--,s=i[o-1];for(var S=m+1;S<p;S++){var b={};wX(d[S],b,t);var w=rr("g","clip-g-"+u++,b,[]);(s?s.children:a).push(w),i[o++]=w,s=w}l=d;var A=SE(v,t);A&&(s?s.children:a).push(A)}}},r.prototype.resize=function(e,t){var a=this._opts,n=this.root,i=this._viewport;if(e!=null&&(a.width=e),t!=null&&(a.height=t),n&&i&&(i.style.display="none",e=Au(n,0,a),t=Au(n,1,a),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var o=i.style;o.width=e+"px",o.height=t+"px"}if(Sb(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(e){var t=this.renderToString(),a="data:image/svg+xml;";return e?(t=XG(t),t&&a+"base64,"+t):a+"charset=UTF-8,"+encodeURIComponent(t)},r})();function DE(r){return function(){}}function RX(r,e,t,a){var n;if(t&&t!=="none")if(n=rr("rect","bg",{width:r,height:e,x:"0",y:"0",id:"0"}),n3(t))L4({fill:t},n.attrs,"fill",a);else if(Sb(t))E4({style:{fill:t},dirty:Ge,getBoundingRect:function(){return{width:r,height:e}}},n.attrs,"fill",a);else{var i=sh(t),o=i.color,s=i.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}function IX(r){r.registerPainter("svg",EX)}function CE(r,e,t){var a=Mo.createCanvas(),n=e.getWidth(),i=e.getHeight(),o=a.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=i+"px",a.setAttribute("data-zr-dom-id",r)),a.width=n*t,a.height=i*t,a}var s_=(function(r){De(e,r);function e(t,a,n){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;n=n||Jp,typeof t=="string"?o=CE(t,a,n):Tt(t)&&(o=t,t=o.id),i.id=t,i.dom=o;var s=o.style;return s&&(HN(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=a,i.dpr=n,i}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 t=this.dpr;this.domBack=CE("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,a,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new kt(0,0,0,0);function f(b){if(!(!b.isFinite()||b.isZero()))if(o.length===0){var w=new kt(0,0,0,0);w.copy(b),o.push(w)}else{for(var A=!1,M=1/0,C=0,L=0;L<o.length;++L){var E=o[L];if(E.intersect(b)){var R=new kt(0,0,0,0);R.copy(E),R.union(b),o[L]=R,A=!0;break}else if(l){u.copy(b),u.union(E);var N=b.width*b.height,O=E.width*E.height,k=u.width*u.height,G=k-N-O;G<M&&(M=G,C=L)}}if(l&&(o[C].union(b),A=!0),!A){var w=new kt(0,0,0,0);w.copy(b),o.push(w)}l||(l=o.length>=s)}}for(var v=this.__startIndex;v<this.__endIndex;++v){var d=t[v];if(d){var p=d.shouldBePainted(n,i,!0,!0),y=d.__isRendered&&(d.__dirty&fa||!p)?d.getPrevPaintRect():null;y&&f(y);var m=p&&(d.__dirty&fa||!d.__isRendered)?d.getPaintRect():null;m&&f(m)}}for(var v=this.__prevStartIndex;v<this.__prevEndIndex;++v){var d=a[v],p=d.shouldBePainted(n,i,!0,!0);if(d&&(!p||!d.__zr)&&d.__isRendered){var y=d.getPrevPaintRect();y&&f(y)}}var _;do{_=!1;for(var v=0;v<o.length;){if(o[v].isZero()){o.splice(v,1);continue}for(var S=v+1;S<o.length;)o[v].intersect(o[S])?(_=!0,o[v].union(o[S]),o.splice(S,1)):S++;v++}}while(_);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,a){var n=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=t+"px",o.height=a+"px"),i.width=t*n,i.height=a*n,s&&(s.width=t*n,s.height=a*n,n!==1&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,a,n){var i=this.dom,o=this.ctx,s=i.width,l=i.height;a=a||this.clearColor;var u=this.motionBlur&&!t,f=this.lastFrameAlpha,v=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/v,l/v));var p=this.domBack;function y(m,_,S,b){if(o.clearRect(m,_,S,b),a&&a!=="transparent"){var w=void 0;if(Fg(a)){var A=a.global||a.__width===S&&a.__height===b;w=A&&a.__canvasGradient||fS(o,a,{x:0,y:0,width:S,height:b}),a.__canvasGradient=w,a.__width=S,a.__height=b}else tG(a)&&(a.scaleX=a.scaleX||v,a.scaleY=a.scaleY||v,w=hS(o,a,{dirty:function(){d.setUnpainted(),d.__painter.refresh()}}));o.save(),o.fillStyle=w||a,o.fillRect(m,_,S,b),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(p,m,_,S,b),o.restore())}!n||u?y(0,0,s,l):n.length&&P(n,function(m){y(m.x*v,m.y*v,m.width*v,m.height*v)})},e})(ja),ME=1e5,ws=314159,tp=.01,NX=.001;function PX(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function OX(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}var zX=(function(){function r(e,t,a,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=a=et({},a||{}),this.dpr=a.devicePixelRatio||Jp,this._singleCanvas=i,this.root=e;var o=e.style;o&&(HN(e),e.innerHTML=""),this.storage=t;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var f=e,v=f.width,d=f.height;a.width!=null&&(v=a.width),a.height!=null&&(d=a.height),this.dpr=a.devicePixelRatio||1,f.width=v*this.dpr,f.height=d*this.dpr,this._width=v,this._height=d;var p=new s_(f,this,this.dpr);p.__builtin__=!0,p.initContext(),l[ws]=p,p.zlevel=ws,s.push(ws),this._domRoot=e}else{this._width=Au(e,0,a),this._height=Au(e,1,a);var u=this._domRoot=OX(this._width,this._height);e.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),a=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,a,e,this._redrawId);for(var i=0;i<n.length;i++){var o=n[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(e){var t=e.length,a=this._hoverlayer;if(a&&a.clear(),!!t){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<t;o++){var s=e[o];s.__inHover&&(a||(a=this._hoverlayer=this.getLayer(ME)),i||(i=a.ctx,i.save()),Hs(i,s,n,o===t-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(ME)},r.prototype.paintOne=function(e,t){_O(e,t)},r.prototype._paintList=function(e,t,a,n){if(this._redrawId===n){a=a||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,a),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Zp(function(){l._paintList(e,t,a,n)})}}},r.prototype._compositeManually=function(){var e=this.getLayer(ws).ctx,t=this._domRoot.width,a=this._domRoot.height;e.clearRect(0,0,t,a),this.eachBuiltinLayer(function(n){n.virtual&&e.drawImage(n.dom,0,0,t,a)})},r.prototype._doPaintList=function(e,t,a){for(var n=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||a)&&i.push(u)}for(var f=!0,v=!1,d=function(m){var _=i[m],S=_.ctx,b=o&&_.createRepaintRects(e,t,p._width,p._height),w=a?_.__startIndex:_.__drawIndex,A=!a&&_.incremental&&Date.now,M=A&&Date.now(),C=_.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(_.__startIndex===_.__endIndex)_.clear(!1,C,b);else if(w===_.__startIndex){var L=e[w];(!L.incremental||!L.notClear||a)&&_.clear(!1,C,b)}w===-1&&(console.error("For some unknown reason. drawIndex is -1"),w=_.__startIndex);var E,R=function(G){var H={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(E=w;E<_.__endIndex;E++){var F=e[E];if(F.__inHover&&(v=!0),n._doPaintEl(F,_,o,G,H,E===_.__endIndex-1),A){var B=Date.now()-M;if(B>15)break}}H.prevElClipPaths&&S.restore()};if(b)if(b.length===0)E=_.__endIndex;else for(var N=p.dpr,O=0;O<b.length;++O){var k=b[O];S.save(),S.beginPath(),S.rect(k.x*N,k.y*N,k.width*N,k.height*N),S.clip(),R(k),S.restore()}else S.save(),R(),S.restore();_.__drawIndex=E,_.__drawIndex<_.__endIndex&&(f=!1)},p=this,y=0;y<i.length;y++)d(y);return Ft.wxa&&P(this._layers,function(m){m&&m.ctx&&m.ctx.draw&&m.ctx.draw()}),{finished:f,needsRefreshHover:v}},r.prototype._doPaintEl=function(e,t,a,n,i,o){var s=t.ctx;if(a){var l=e.getPaintRect();(!n||l&&l.intersect(n))&&(Hs(s,e,i,o),e.setPrevPaintRect(l))}else Hs(s,e,i,o)},r.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=ws);var a=this._layers[e];return a||(a=new s_("zr_"+e,this,this.dpr),a.zlevel=e,a.__builtin__=!0,this._layerConfig[e]?zt(a,this._layerConfig[e],!0):this._layerConfig[e-tp]&&zt(a,this._layerConfig[e-tp],!0),t&&(a.virtual=t),this.insertLayer(e,a),a.initContext()),a},r.prototype.insertLayer=function(e,t){var a=this._layers,n=this._zlevelList,i=n.length,o=this._domRoot,s=null,l=-1;if(!a[e]&&PX(t)){if(i>0&&e>n[0]){for(l=0;l<i-1&&!(n[l]<e&&n[l+1]>e);l++);s=a[n[l]]}if(n.splice(l+1,0,e),a[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},r.prototype.eachLayer=function(e,t){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n];e.call(t,this._layers[i],i)}},r.prototype.eachBuiltinLayer=function(e,t){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},r.prototype.eachOtherLayer=function(e,t){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(v,d){v.__dirty=v.__used=!1});function t(v){i&&(i.__endIndex!==v&&(i.__dirty=!0),i.__endIndex=v)}if(this._singleCanvas)for(var a=1;a<e.length;a++){var n=e[a];if(n.zlevel!==e[a-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<e.length;l++){var n=e[l],u=n.zlevel,f=void 0;s!==u&&(s=u,o=0),n.incremental?(f=this.getLayer(u+NX,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?tp:0),this._needsManuallyCompositing),f.__builtin__||vb("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,t(l),i=f),n.__dirty&fa&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(v,d){!v.__used&&v.getElementCount()>0&&(v.__dirty=!0,v.__startIndex=v.__endIndex=v.__drawIndex=0),v.__dirty&&v.__drawIndex<0&&(v.__drawIndex=v.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,P(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var a=this._layerConfig;a[e]?zt(a[e],t,!0):a[e]=t;for(var n=0;n<this._zlevelList.length;n++){var i=this._zlevelList[n];if(i===e||i===e+tp){var o=this._layers[i];zt(o,a[e],!0)}}}},r.prototype.delLayer=function(e){var t=this._layers,a=this._zlevelList,n=t[e];n&&(n.dom.parentNode.removeChild(n.dom),delete t[e],a.splice(Vt(a,e),1))},r.prototype.resize=function(e,t){if(this._domRoot.style){var a=this._domRoot;a.style.display="none";var n=this._opts,i=this.root;if(e!=null&&(n.width=e),t!=null&&(n.height=t),e=Au(i,0,n),t=Au(i,1,n),a.style.display="",this._width!==e||t!==this._height){a.style.width=e+"px",a.style.height=t+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(ws).resize(e,t)}return this},r.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[ws].dom;var t=new s_("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var a=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var n=t.dom.width,i=t.dom.height;this.eachLayer(function(v){v.__builtin__?a.drawImage(v.dom,0,0,n,i):v.renderToCanvas&&(a.save(),v.renderToCanvas(a),a.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];Hs(a,f,o,l===u-1)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();function kX(r){r.registerPainter("canvas",zX)}var BX=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return Di(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var a=new Ct,n=Ye("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);a.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=t.itemHeight*.8,u=Ye(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);a.add(u),u.setStyle(t.itemStyle);var f=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e})(Se);function ku(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var n=Pu(r,e,t[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<t.length;o++)i.push(Pu(r,e,t[o]));return i.join(" ")}}function P4(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!it(e))return e+"";for(var a=[],n=0;n<t.length;n++){var i=r.getDimensionIndex(t[n]);i>=0&&a.push(e[i])}return a.join(" ")}var Zh=(function(r){$(e,r);function e(t,a,n,i){var o=r.call(this)||this;return o.updateData(t,a,n,i),o}return e.prototype._createSymbol=function(t,a,n,i,o){this.removeAll();var s=Ye(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=VX,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){_i(this.childAt(0))},e.prototype.downplay=function(){xi(this.childAt(0))},e.prototype.setZ=function(t,a){var n=this.childAt(0);n.zlevel=t,n.z=a},e.prototype.setDraggable=function(t,a){var n=this.childAt(0);n.draggable=t,n.cursor=!a&&t?"move":n.cursor},e.prototype.updateData=function(t,a,n,i){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,a),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var v=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,v)}else{var d=this.childAt(0);d.silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};f?d.attr(p):Jt(d,p,s,a),cn(d)}if(this._updateCommon(t,a,l,n,i),u){var d=this.childAt(0);if(!f){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Le(d,p,s,a)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,n,i,o){var s=this.childAt(0),l=t.hostModel,u,f,v,d,p,y,m,_,S;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,v=i.selectItemStyle,d=i.focus,p=i.blurScope,m=i.labelStatesModels,_=i.hoverScale,S=i.cursorStyle,y=i.emphasisDisabled),!i||t.hasItemOption){var b=i&&i.itemModel?i.itemModel:t.getItemModel(a),w=b.getModel("emphasis");u=w.getModel("itemStyle").getItemStyle(),v=b.getModel(["select","itemStyle"]).getItemStyle(),f=b.getModel(["blur","itemStyle"]).getItemStyle(),d=w.get("focus"),p=w.get("blurScope"),y=w.get("disabled"),m=nr(b),_=w.getShallow("scale"),S=b.getShallow("cursor")}var A=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(A||0)*Math.PI/180||0);var M=ll(t.getItemVisual(a,"symbolOffset"),n);M&&(s.x=M[0],s.y=M[1]),S&&s.attr("cursor",S);var C=t.getItemVisual(a,"style"),L=C.fill;if(s instanceof hr){var E=s.style;s.useStyle(et({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},C))}else s.__isEmptyBrush?s.useStyle(et({},C)):s.useStyle(C),s.style.decal=null,s.setColor(L,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var R=t.getItemVisual(a,"liftZ"),N=this._z2;R!=null?N==null&&(this._z2=s.z2,s.z2+=R):N!=null&&(s.z2=N,this._z2=null);var O=o&&o.useNameLabel;Sr(s,m,{labelFetcher:l,labelDataIndex:a,defaultText:k,inheritColor:L,defaultOpacity:C.opacity});function k(F){return O?t.getName(F):ku(t,F)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var G=s.ensureState("emphasis");G.style=u,s.ensureState("select").style=v,s.ensureState("blur").style=f;var H=_==null||_===!0?Math.max(1.1,3/this._sizeY):isFinite(_)&&_>0?+_:1;G.scaleX=this._sizeX*H,G.scaleY=this._sizeY*H,this.setSymbolScale(1),Pe(this,d,p,y)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,n){var i=this.childAt(0),o=Rt(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Eo(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Eo(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return rc(t.getItemVisual(a,"symbolSize"))},e})(Ct);function VX(r,e){this.parent.drift(r,e)}function l_(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function LE(r){return r!=null&&!Tt(r)&&(r={isIgnore:r}),r||{}}function EE(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:nr(e),cursorStyle:e.get("cursor")}}var Wh=(function(){function r(e){this.group=new Ct,this._SymbolCtor=e||Zh}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=LE(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=EE(e),u={disableAnimation:s},f=t.getSymbolPoint||function(v){return e.getItemLayout(v)};i||a.removeAll(),e.diff(i).add(function(v){var d=f(v);if(l_(e,d,v,t)){var p=new o(e,v,l,u);p.setPosition(d),e.setItemGraphicEl(v,p),a.add(p)}}).update(function(v,d){var p=i.getItemGraphicEl(d),y=f(v);if(!l_(e,y,v,t)){a.remove(p);return}var m=e.getItemVisual(v,"symbol")||"circle",_=p&&p.getSymbolType&&p.getSymbolType();if(!p||_&&_!==m)a.remove(p),p=new o(e,v,l,u),p.setPosition(y);else{p.updateData(e,v,l,u);var S={x:y[0],y:y[1]};s?p.attr(S):Jt(p,S,n)}a.add(p),e.setItemGraphicEl(v,p)}).remove(function(v){var d=i.getItemGraphicEl(v);d&&d.fadeOut(function(){a.remove(d)},n)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,n){var i=e._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=EE(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[],a=LE(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(l_(t,o,i,a)){var s=new this._SymbolCtor(t,i,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){Oo(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,a=this._data;a&&e?a.eachItemGraphicEl(function(n){n.fadeOut(function(){t.remove(n)},a.hostModel)}):t.removeAll()},r})();function O4(r,e,t){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=GX(n,t),o=a.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,v=st(r.dimensions,function(y){return e.mapDimension(y)}),d=!1,p=e.getCalculationInfo("stackResultDimension");return Io(e,v[0])&&(d=!0,v[0]=p),Io(e,v[1])&&(d=!0,v[1]=p),{dataDimsForPoint:v,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function GX(r,e){var t=0,a=r.scale.getExtent();return e==="start"?t=a[0]:e==="end"?t=a[1]:Qt(e)&&!isNaN(e)?t=e:a[0]>0?t=a[0]:a[1]<0&&(t=a[1]),t}function z4(r,e,t,a){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,a),o[1-i]=n,e.dataToPoint(o)}function HX(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:"+",idx:a})}).update(function(a,n){t.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){t.push({cmd:"-",idx:a})}).execute(),t}function UX(r,e,t,a,n,i,o,s){for(var l=HX(r,e),u=[],f=[],v=[],d=[],p=[],y=[],m=[],_=O4(n,e,o),S=r.getLayout("points")||[],b=e.getLayout("points")||[],w=0;w<l.length;w++){var A=l[w],M=!0,C=void 0,L=void 0;switch(A.cmd){case"=":C=A.idx*2,L=A.idx1*2;var E=S[C],R=S[C+1],N=b[L],O=b[L+1];(isNaN(E)||isNaN(R))&&(E=N,R=O),u.push(E,R),f.push(N,O),v.push(t[C],t[C+1]),d.push(a[L],a[L+1]),m.push(e.getRawIndex(A.idx1));break;case"+":var k=A.idx,G=_.dataDimsForPoint,H=n.dataToPoint([e.get(G[0],k),e.get(G[1],k)]);L=k*2,u.push(H[0],H[1]),f.push(b[L],b[L+1]);var F=z4(_,n,e,k);v.push(F[0],F[1]),d.push(a[L],a[L+1]),m.push(e.getRawIndex(k));break;case"-":M=!1}M&&(p.push(A),y.push(y.length))}y.sort(function(ht,gt){return m[ht]-m[gt]});for(var B=u.length,j=Ln(B),Y=Ln(B),K=Ln(B),nt=Ln(B),U=[],w=0;w<y.length;w++){var W=y[w],rt=w*2,ot=W*2;j[rt]=u[ot],j[rt+1]=u[ot+1],Y[rt]=f[ot],Y[rt+1]=f[ot+1],K[rt]=v[ot],K[rt+1]=v[ot+1],nt[rt]=d[ot],nt[rt+1]=d[ot+1],U[w]=p[W]}return{current:j,next:Y,stackedOnCurrent:K,stackedOnNext:nt,status:U}}var io=Math.min,oo=Math.max;function $s(r,e){return isNaN(r)||isNaN(e)}function bS(r,e,t,a,n,i,o,s,l){for(var u,f,v,d,p,y,m=t,_=0;_<a;_++){var S=e[m*2],b=e[m*2+1];if(m>=n||m<0)break;if($s(S,b)){if(l){m+=i;continue}break}if(m===t)r[i>0?"moveTo":"lineTo"](S,b),v=S,d=b;else{var w=S-u,A=b-f;if(w*w+A*A<.5){m+=i;continue}if(o>0){for(var M=m+i,C=e[M*2],L=e[M*2+1];C===S&&L===b&&_<a;)_++,M+=i,m+=i,C=e[M*2],L=e[M*2+1],S=e[m*2],b=e[m*2+1],w=S-u,A=b-f;var E=_+1;if(l)for(;$s(C,L)&&E<a;)E++,M+=i,C=e[M*2],L=e[M*2+1];var R=.5,N=0,O=0,k=void 0,G=void 0;if(E>=a||$s(C,L))p=S,y=b;else{N=C-u,O=L-f;var H=S-u,F=C-S,B=b-f,j=L-b,Y=void 0,K=void 0;if(s==="x"){Y=Math.abs(H),K=Math.abs(F);var nt=N>0?1:-1;p=S-nt*Y*o,y=b,k=S+nt*K*o,G=b}else if(s==="y"){Y=Math.abs(B),K=Math.abs(j);var U=O>0?1:-1;p=S,y=b-U*Y*o,k=S,G=b+U*K*o}else Y=Math.sqrt(H*H+B*B),K=Math.sqrt(F*F+j*j),R=K/(K+Y),p=S-N*o*(1-R),y=b-O*o*(1-R),k=S+N*o*R,G=b+O*o*R,k=io(k,oo(C,S)),G=io(G,oo(L,b)),k=oo(k,io(C,S)),G=oo(G,io(L,b)),N=k-S,O=G-b,p=S-N*Y/K,y=b-O*Y/K,p=io(p,oo(u,S)),y=io(y,oo(f,b)),p=oo(p,io(u,S)),y=oo(y,io(f,b)),N=S-p,O=b-y,k=S+N*K/Y,G=b+O*K/Y}r.bezierCurveTo(v,d,p,y,S,b),v=k,d=G}else r.lineTo(S,b)}u=S,f=b,m+=i}return _}var k4=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),FX=(function(r){$(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polyline",a}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new k4},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&$s(n[o*2-2],n[o*2-1]);o--);for(;i<o&&$s(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=bS(t,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},e.prototype.getPointOn=function(t,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,i=n.data,o=kn.CMD,s,l,u=a==="x",f=[],v=0;v<i.length;){var d=i[v++],p=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,w=void 0;switch(d){case o.M:s=i[v++],l=i[v++];break;case o.L:if(p=i[v++],y=i[v++],w=u?(t-s)/(p-s):(t-l)/(y-l),w<=1&&w>=0){var A=u?(y-l)*w+l:(p-s)*w+s;return u?[t,A]:[A,t]}s=p,l=y;break;case o.C:p=i[v++],y=i[v++],m=i[v++],_=i[v++],S=i[v++],b=i[v++];var M=u?qp(s,p,m,S,t,f):qp(l,y,_,b,t,f);if(M>0)for(var C=0;C<M;C++){var L=f[C];if(L<=1&&L>=0){var A=u?tr(l,y,_,b,L):tr(s,p,m,S,L);return u?[t,A]:[A,t]}}s=S,l=b;break}}},e})(Ut),jX=(function(r){$(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(k4),B4=(function(r){$(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polygon",a}return e.prototype.getDefaultShape=function(){return new jX},e.prototype.buildPath=function(t,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&$s(n[s*2-2],n[s*2-1]);s--);for(;o<s&&$s(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=bS(t,n,o,s,s,1,a.smooth,l,a.connectNulls);bS(t,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,t.closePath()}},e})(Ut);function V4(r,e,t,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=t.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,o=Math.floor(o),l=Math.round(l);var v=new Wt({shape:{x:o,y:s,width:l,height:u}});if(e){var d=r.getBaseAxis(),p=d.isHorizontal(),y=d.inverse;p?(y&&(v.shape.x+=l),v.shape.width=0):(y||(v.shape.y+=u),v.shape.height=0);var m=bt(n)?function(_){n(_,v)}:null;Le(v,{shape:{width:l,height:u,x:o,y:s}},t,null,a,m)}return v}function G4(r,e,t){var a=r.getArea(),n=Oe(a.r0,1),i=Oe(a.r,1),o=new Br({shape:{cx:Oe(r.cx,1),cy:Oe(r.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=n,Le(o,{shape:{endAngle:a.endAngle,r:i}},t)}return o}function Sy(r,e,t,a,n){if(r){if(r.type==="polar")return G4(r,e,t);if(r.type==="cartesian2d")return V4(r,e,t,a,n)}else return null;return null}function cl(r,e){return r.type===e}function RE(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function IE(r){for(var e=1/0,t=1/0,a=-1/0,n=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(e=Math.min(o,e),a=Math.max(o,a)),isNaN(s)||(t=Math.min(s,t),n=Math.max(s,n))}return[[e,t],[a,n]]}function NE(r,e){var t=IE(r),a=t[0],n=t[1],i=IE(e),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(a[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function PE(r){return Qt(r)?r:r?.5:0}function YX(r,e,t){if(!t.valueDim)return[];for(var a=e.count(),n=Ln(a*2),i=0;i<a;i++){var o=z4(t,r,e,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function so(r,e,t,a){var n=e.getBaseAxis(),i=n.dim==="x"||n.dim==="radius"?0:1,o=[],s=0,l=[],u=[],f=[],v=[];if(a){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&v.push(r[s],r[s+1]);r=v}for(s=0;s<r.length-2;s+=2)switch(f[0]=r[s+2],f[1]=r[s+3],u[0]=r[s],u[1]=r[s+1],o.push(u[0],u[1]),t){case"end":l[i]=f[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var d=(u[i]+f[i])/2,p=[];l[i]=p[i]=d,l[1-i]=u[1-i],p[1-i]=f[1-i],o.push(l[0],l[1]),o.push(p[0],p[1]);break;default:l[i]=u[i],l[1-i]=f[1-i],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function XX(r,e){var t=[],a=r.length,n,i;function o(f,v,d){var p=f.coord,y=(d-p)/(v.coord-p),m=VG(y,[f.color,v.color]);return{coord:d,color:m}}for(var s=0;s<a;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>e){i?t.push(o(i,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}else n&&(t.push(o(n,l,0)),n=null),t.push(l),i=l}return t}function ZX(r,e,t){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&e.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=e.getAxis(n),u=st(i.stops,function(w){return{coord:l.toGlobalCoord(l.dataToCoord(w.value)),color:w.color}}),f=u.length,v=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),v.reverse());var d=XX(u,n==="x"?t.getWidth():t.getHeight()),p=d.length;if(!p&&f)return u[0].coord<0?v[1]?v[1]:u[f-1].color:v[0]?v[0]:u[0].color;var y=10,m=d[0].coord-y,_=d[p-1].coord+y,S=_-m;if(S<.001)return"transparent";P(d,function(w){w.offset=(w.coord-m)/S}),d.push({offset:p?d[p-1].offset:.5,color:v[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:v[0]||"transparent"});var b=new Bh(0,0,0,0,d,!0);return b[n]=m,b[n+"2"]=_,b}}}function WX(r,e,t){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(n&&qX(i,e))){var o=e.mapDimension(i.dim),s={};return P(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function qX(r,e){var t=r.getExtent(),a=Math.abs(t[1]-t[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=e.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if(Zh.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function $X(r,e){return isNaN(r)||isNaN(e)}function KX(r){for(var e=r.length/2;e>0&&$X(r[e*2-2],r[e*2-1]);e--);return e-1}function OE(r,e){return[r[e*2],r[e*2+1]]}function QX(r,e,t){for(var a=r.length/2,n=t==="x"?0:1,i,o,s=0,l=-1,u=0;u<a;u++)if(o=r[u*2+n],!(isNaN(o)||isNaN(r[u*2+1-n]))){if(u===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function H4(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<kr.length;e++)if(r.get([kr[e],"endLabel","show"]))return!0;return!1}function u_(r,e,t,a){if(cl(e,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=H4(a)?function(p,y){r._endLabelOnDuring(p,y,o,s,i,n,e)}:null,u=e.getBaseAxis().isHorizontal(),f=V4(e,t,a,function(){var p=r._endLabel;p&&t&&s.originalX!=null&&p.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var v=f.shape,d=Math.max(v.width,v.height);u?(v.y-=d,v.height+=d*2):(v.x-=d,v.width+=d*2)}return l&&l(1,f),f}else return G4(e,t,a)}function JX(r,e){var t=e.getBaseAxis(),a=t.isHorizontal(),n=t.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var tZ=(function(r){$(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new Ct,a=new Wh;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=t},e.prototype.render=function(t,a,n){var i=this,o=t.coordinateSystem,s=this.group,l=t.getData(),u=t.getModel("lineStyle"),f=t.getModel("areaStyle"),v=l.getLayout("points")||[],d=o.type==="polar",p=this._coordSys,y=this._symbolDraw,m=this._polyline,_=this._polygon,S=this._lineGroup,b=!a.ssr&&t.isAnimationEnabled(),w=!f.isEmpty(),A=f.get("origin"),M=O4(o,l,A),C=w&&YX(o,l,M),L=t.get("showSymbol"),E=t.get("connectNulls"),R=L&&!d&&WX(t,l,o),N=this._data;N&&N.eachItemGraphicEl(function(gt,mt){gt.__temp&&(s.remove(gt),N.setItemGraphicEl(mt,null))}),L||y.remove(),s.add(S);var O=d?!1:t.get("step"),k;o&&o.getArea&&t.get("clip",!0)&&(k=o.getArea(),k.width!=null?(k.x-=.1,k.y-=.1,k.width+=.2,k.height+=.2):k.r0&&(k.r0-=.5,k.r+=.5)),this._clipShapeForSymbol=k;var G=ZX(l,o,n)||l.getVisual("style")[l.getVisual("drawType")];if(!(m&&p.type===o.type&&O===this._step))L&&y.updateData(l,{isIgnore:R,clipShape:k,disableAnimation:!0,getSymbolPoint:function(gt){return[v[gt*2],v[gt*2+1]]}}),b&&this._initSymbolLabelAnimation(l,o,k),O&&(v=so(v,o,O,E),C&&(C=so(C,o,O,E))),m=this._newPolyline(v),w?_=this._newPolygon(v,C):_&&(S.remove(_),_=this._polygon=null),d||this._initOrUpdateEndLabel(t,o,al(G)),S.setClipPath(u_(this,o,!0,t));else{w&&!_?_=this._newPolygon(v,C):_&&!w&&(S.remove(_),_=this._polygon=null),d||this._initOrUpdateEndLabel(t,o,al(G));var H=S.getClipPath();if(H){var F=u_(this,o,!1,t);Le(H,{shape:F.shape},t)}else S.setClipPath(u_(this,o,!0,t));L&&y.updateData(l,{isIgnore:R,clipShape:k,disableAnimation:!0,getSymbolPoint:function(gt){return[v[gt*2],v[gt*2+1]]}}),(!RE(this._stackedOnPoints,C)||!RE(this._points,v))&&(b?this._doUpdateAnimation(l,C,o,n,O,A,E):(O&&(v=so(v,o,O,E),C&&(C=so(C,o,O,E))),m.setShape({points:v}),_&&_.setShape({points:v,stackedOnPoints:C})))}var B=t.getModel("emphasis"),j=B.get("focus"),Y=B.get("blurScope"),K=B.get("disabled");if(m.useStyle(wt(u.getLineStyle(),{fill:"none",stroke:G,lineJoin:"bevel"})),xr(m,t,"lineStyle"),m.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var nt=m.getState("emphasis").style;nt.lineWidth=+m.style.lineWidth+1}Rt(m).seriesIndex=t.seriesIndex,Pe(m,j,Y,K);var U=PE(t.get("smooth")),W=t.get("smoothMonotone");if(m.setShape({smooth:U,smoothMonotone:W,connectNulls:E}),_){var rt=l.getCalculationInfo("stackedOnSeries"),ot=0;_.useStyle(wt(f.getAreaStyle(),{fill:G,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),rt&&(ot=PE(rt.get("smooth"))),_.setShape({smooth:U,stackedOnSmooth:ot,smoothMonotone:W,connectNulls:E}),xr(_,t,"areaStyle"),Rt(_).seriesIndex=t.seriesIndex,Pe(_,j,Y,K)}var ht=function(gt){i._changePolyState(gt)};l.eachItemGraphicEl(function(gt){gt&&(gt.onHoverStateChange=ht)}),this._polyline.onHoverStateChange=ht,this._data=l,this._coordSys=o,this._stackedOnPoints=C,this._points=v,this._step=O,this._valueOrigin=A,t.get("triggerLineEvent")&&(this.packEventData(t,m),_&&this.packEventData(t,_))},e.prototype.packEventData=function(t,a){Rt(a).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,a,n,i){var o=t.getData(),s=tl(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],v=l[s*2+1];if(isNaN(f)||isNaN(v)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,v))return;var d=t.get("zlevel")||0,p=t.get("z")||0;u=new Zh(o,s),u.x=f,u.y=v,u.setZ(d,p);var y=u.getSymbolPath().getTextContent();y&&(y.zlevel=d,y.z=p,y.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else de.prototype.highlight.call(this,t,a,n,i)},e.prototype.downplay=function(t,a,n,i){var o=t.getData(),s=tl(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else de.prototype.downplay.call(this,t,a,n,i)},e.prototype._changePolyState=function(t){var a=this._polygon;ag(this._polyline,t),a&&ag(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new FX({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new B4({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");bt(f)&&(f=f(null));var v=u.get("animationDelay")||0,d=bt(v)?v(null):v;t.eachItemGraphicEl(function(p,y){var m=p;if(m){var _=[p.x,p.y],S=void 0,b=void 0,w=void 0;if(n)if(o){var A=n,M=a.pointToCoord(_);i?(S=A.startAngle,b=A.endAngle,w=-M[1]/180*Math.PI):(S=A.r0,b=A.r,w=M[0])}else{var C=n;i?(S=C.x,b=C.x+C.width,w=p.x):(S=C.y+C.height,b=C.y,w=p.y)}var L=b===S?0:(w-S)/(b-S);l&&(L=1-L);var E=bt(v)?v(y):f*L+d,R=m.getSymbolPath(),N=R.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:E}),N&&N.animateFrom({style:{opacity:0}},{duration:300,delay:E}),R.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,n){var i=t.getModel("endLabel");if(H4(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new $t({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=KX(l);f>=0&&(Sr(s,nr(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:f,defaultText:function(v,d,p){return p!=null?P4(o,p):ku(o,v)},enableTextSetter:!0},JX(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var v=n.getLayout("points"),d=n.hostModel,p=d.get("connectNulls"),y=s.get("precision"),m=s.get("distance")||0,_=l.getBaseAxis(),S=_.isHorizontal(),b=_.inverse,w=a.shape,A=b?S?w.x:w.y+w.height:S?w.x+w.width:w.y,M=(S?m:0)*(b?-1:1),C=(S?0:-m)*(b?-1:1),L=S?"x":"y",E=QX(v,A,L),R=E.range,N=R[1]-R[0],O=void 0;if(N>=1){if(N>1&&!p){var k=OE(v,R[0]);u.attr({x:k[0]+M,y:k[1]+C}),o&&(O=d.getRawValue(R[0]))}else{var k=f.getPointOn(A,L);k&&u.attr({x:k[0]+M,y:k[1]+C});var G=d.getRawValue(R[0]),H=d.getRawValue(R[1]);o&&(O=A3(n,y,G,H,E.t))}i.lastFrameIndex=R[0]}else{var F=t===1||i.lastFrameIndex>0?R[0]:0,k=OE(v,F);o&&(O=d.getRawValue(F)),u.attr({x:k[0]+M,y:k[1]+C})}if(o){var B=qu(u);typeof B.setLabelText=="function"&&B.setLabelText(O)}}},e.prototype._doUpdateAnimation=function(t,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,v=t.hostModel,d=UX(this._data,t,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),p=d.current,y=d.stackedOnCurrent,m=d.next,_=d.stackedOnNext;if(o&&(p=so(d.current,n,o,l),y=so(d.stackedOnCurrent,n,o,l),m=so(d.next,n,o,l),_=so(d.stackedOnNext,n,o,l)),NE(p,m)>3e3||f&&NE(y,_)>3e3){u.stopAnimation(),u.setShape({points:m}),f&&(f.stopAnimation(),f.setShape({points:m,stackedOnPoints:_}));return}u.shape.__points=d.current,u.shape.points=p;var S={shape:{points:m}};d.current!==p&&(S.shape.__points=d.next),u.stopAnimation(),Jt(u,S,v),f&&(f.setShape({points:p,stackedOnPoints:y}),f.stopAnimation(),Jt(f,{shape:{stackedOnPoints:_}},v),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var b=[],w=d.status,A=0;A<w.length;A++){var M=w[A].cmd;if(M==="="){var C=t.getItemGraphicEl(w[A].idx1);C&&b.push({el:C,ptIdx:A})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var L=u.shape.__points,E=0;E<b.length;E++){var R=b[E].el,N=b[E].ptIdx*2;R.x=L[N],R.y=L[N+1],R.markRedraw()}})},e.prototype.remove=function(t){var a=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(i,o){i.__temp&&(a.remove(i),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(de);function qh(r,e){return{seriesType:r,plan:tc(),reset:function(t){var a=t.getData(),n=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(n){var s=st(n.dimensions,function(p){return a.mapDimension(p)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");Io(a,s[0])&&(s[0]=u),Io(a,s[1])&&(s[1]=u);var f=a.getStore(),v=a.getDimensionIndex(s[0]),d=a.getDimensionIndex(s[1]);return l&&{progress:function(p,y){for(var m=p.end-p.start,_=o&&Ln(m*l),S=[],b=[],w=p.start,A=0;w<p.end;w++){var M=void 0;if(l===1){var C=f.get(v,w);M=n.dataToPoint(C,null,b)}else S[0]=f.get(v,w),S[1]=f.get(d,w),M=n.dataToPoint(S,null,b);o?(_[A++]=M[0],_[A++]=M[1]):y.setItemLayout(w,M.slice())}o&&y.setLayout("points",_)}}}}}}var eZ={average:function(r){for(var e=0,t=0,a=0;a<r.length;a++)isNaN(r[a])||(e+=r[a],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},rZ=function(r){return Math.round(r.length/2)};function U4(r){return{seriesType:r,reset:function(e,t,a){var n=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),v=a.getDevicePixelRatio(),d=Math.abs(f[1]-f[0])*(v||1),p=Math.round(s/d);if(isFinite(p)&&p>1){i==="lttb"&&e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/p));var y=void 0;vt(i)?y=eZ[i]:bt(i)&&(y=i),y&&e.setData(n.downSample(n.mapDimension(u.dim),1/p,y,rZ))}}}}}function aZ(r){r.registerChartView(tZ),r.registerSeriesModel(BX),r.registerLayout(qh("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,U4("line"))}var bh=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return Di(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(n)P(i.getAxes(),function(d,p){if(d.type==="category"&&a!=null){var y=d.getTicksCoords(),m=o[p],_=a[p]==="x1"||a[p]==="y1";if(_&&(m+=1),y.length<2)return;if(y.length===2){s[p]=d.toGlobalCoord(d.getExtent()[_?1:0]);return}for(var S=void 0,b=void 0,w=1,A=0;A<y.length;A++){var M=y[A].coord,C=A===y.length-1?y[A-1].tickValue+w:y[A].tickValue;if(C===m){b=M;break}else if(C<m)S=M;else if(S!=null&&C>m){b=(M+S)/2;break}A===1&&(w=C-y[0].tickValue)}b==null&&(S?S&&(b=y[y.length-1].coord):b=y[0].coord),s[p]=d.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),v=i.getBaseAxis().isHorizontal()?0:1;s[v]+=u+f/2}return s}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})(Se);Se.registerClass(bh);var nZ=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return Di(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 t=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>t&&(t=a),t},e.prototype.brushSelector=function(t,a,n){return n.rect(a.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=zo(bh.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})(bh),iZ=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),bg=(function(r){$(e,r);function e(t){var a=r.call(this,t)||this;return a.type="sausage",a}return e.prototype.getDefaultShape=function(){return new iZ},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,f=a.startAngle,v=a.endAngle,d=a.clockwise,p=Math.PI*2,y=d?v-f<p:f-v<p;y||(f=v-(d?p:-p));var m=Math.cos(f),_=Math.sin(f),S=Math.cos(v),b=Math.sin(v);y?(t.moveTo(m*o+n,_*o+i),t.arc(m*u+n,_*u+i,l,-Math.PI+f,f,!d)):t.moveTo(m*s+n,_*s+i),t.arc(n,i,s,f,v,!d),t.arc(S*u+n,b*u+i,l,v-Math.PI*2,v-Math.PI,!d),o!==0&&t.arc(n,i,o,v,f,d)},e})(Ut);function oZ(r,e){e=e||{};var t=e.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return tg(a,n,i);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,v=u.cy,d=u.r,p=u.r0,y=(d+p)/2,m=u.startAngle,_=u.endAngle,S=(m+_)/2,b=t?Math.abs(d-p)/2:0,w=Math.cos,A=Math.sin,M=f+d*w(m),C=v+d*A(m),L="left",E="top";switch(s){case"startArc":M=f+(p-l)*w(S),C=v+(p-l)*A(S),L="center",E="top";break;case"insideStartArc":M=f+(p+l)*w(S),C=v+(p+l)*A(S),L="center",E="bottom";break;case"startAngle":M=f+y*w(m)+ep(m,l+b,!1),C=v+y*A(m)+rp(m,l+b,!1),L="right",E="middle";break;case"insideStartAngle":M=f+y*w(m)+ep(m,-l+b,!1),C=v+y*A(m)+rp(m,-l+b,!1),L="left",E="middle";break;case"middle":M=f+y*w(S),C=v+y*A(S),L="center",E="middle";break;case"endArc":M=f+(d+l)*w(S),C=v+(d+l)*A(S),L="center",E="bottom";break;case"insideEndArc":M=f+(d-l)*w(S),C=v+(d-l)*A(S),L="center",E="top";break;case"endAngle":M=f+y*w(_)+ep(_,l+b,!0),C=v+y*A(_)+rp(_,l+b,!0),L="left",E="middle";break;case"insideEndAngle":M=f+y*w(_)+ep(_,-l+b,!0),C=v+y*A(_)+rp(_,-l+b,!0),L="right",E="middle";break;default:return tg(a,n,i)}return a=a||{},a.x=M,a.y=C,a.align=L,a.verticalAlign=E,a}}function sZ(r,e,t,a){if(Qt(a)){r.setTextConfig({rotation:a});return}else if(it(e)){r.setTextConfig({rotation:0});return}var n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+o)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function ep(r,e,t){return e*Math.sin(r)*(t?-1:1)}function rp(r,e,t){return e*Math.cos(r)*(t?1:-1)}function Us(r,e,t){var a=r.get("borderRadius");if(a==null)return t?{cornerRadius:0}:null;it(a)||(a=[a,a,a,a]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:st(a,function(i){return ln(i,n)})}}var c_=Math.max,f_=Math.min;function lZ(r,e){var t=r.getArea&&r.getArea();if(cl(r,"cartesian2d")){var a=r.getBaseAxis();if(a.type!=="category"||!a.onBand){var n=e.getLayout("bandWidth");a.isHorizontal()?(t.x-=n,t.width+=n*2):(t.y-=n,t.height+=n*2)}}return t}var uZ=(function(r){$(e,r);function e(){var t=r.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,a,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,a,n):this._renderNormal(t,a,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,a){this._progressiveEls=[],this._incrementalRenderLarge(t,a)},e.prototype.eachRendered=function(t){Oo(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t,a,n,i){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.getBaseAxis(),v;u.type==="cartesian2d"?v=f.isHorizontal():u.type==="polar"&&(v=f.dim==="angle");var d=t.isAnimationEnabled()?t:null,p=cZ(t,u);p&&this._enableRealtimeSort(p,s,n);var y=t.get("clip",!0)||p,m=lZ(u,s);o.removeClipPath();var _=t.get("roundCap",!0),S=t.get("showBackground",!0),b=t.getModel("backgroundStyle"),w=b.get("borderRadius")||0,A=[],M=this._backgroundEls,C=i&&i.isInitSort,L=i&&i.type==="changeAxisOrder";function E(O){var k=ap[u.type](s,O),G=yZ(u,v,k);return G.useStyle(b.getItemStyle()),u.type==="cartesian2d"?G.setShape("r",w):G.setShape("cornerRadius",w),A[O]=G,G}s.diff(l).add(function(O){var k=s.getItemModel(O),G=ap[u.type](s,O,k);if(S&&E(O),!(!s.hasValue(O)||!GE[u.type](G))){var H=!1;y&&(H=zE[u.type](m,G));var F=kE[u.type](t,s,O,G,v,d,f.model,!1,_);p&&(F.forceLabelAnimation=!0),HE(F,s,O,k,G,t,v,u.type==="polar"),C?F.attr({shape:G}):p?BE(p,d,F,G,O,v,!1,!1):Le(F,{shape:G},t,O),s.setItemGraphicEl(O,F),o.add(F),F.ignore=H}}).update(function(O,k){var G=s.getItemModel(O),H=ap[u.type](s,O,G);if(S){var F=void 0;M.length===0?F=E(k):(F=M[k],F.useStyle(b.getItemStyle()),u.type==="cartesian2d"?F.setShape("r",w):F.setShape("cornerRadius",w),A[O]=F);var B=ap[u.type](s,O),j=j4(v,B,u);Jt(F,{shape:j},d,O)}var Y=l.getItemGraphicEl(k);if(!s.hasValue(O)||!GE[u.type](H)){o.remove(Y);return}var K=!1;if(y&&(K=zE[u.type](m,H),K&&o.remove(Y)),Y?cn(Y):Y=kE[u.type](t,s,O,H,v,d,f.model,!!Y,_),p&&(Y.forceLabelAnimation=!0),L){var nt=Y.getTextContent();if(nt){var U=qu(nt);U.prevValue!=null&&(U.prevValue=U.value)}}else HE(Y,s,O,G,H,t,v,u.type==="polar");C?Y.attr({shape:H}):p?BE(p,d,Y,H,O,v,!0,L):Jt(Y,{shape:H},t,O,null),s.setItemGraphicEl(O,Y),Y.ignore=K,o.add(Y)}).remove(function(O){var k=l.getItemGraphicEl(O);k&&fh(k,t,O)}).execute();var R=this._backgroundGroup||(this._backgroundGroup=new Ct);R.removeAll();for(var N=0;N<A.length;++N)R.add(A[N]);o.add(R),this._backgroundEls=A,this._data=s},e.prototype._renderLarge=function(t,a,n){this._clear(),FE(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,a){this._removeBackground(),FE(a,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var a=t.get("clip",!0)&&Sy(t.coordinateSystem,!1,t),n=this.group;a?n.setClipPath(a):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,a,n){var i=this;if(a.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,t,n),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(a,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,a,n){var i=[];return t.each(t.mapDimension(a.dim),function(o,s){var l=n(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:st(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,a,n){for(var i=n.scale,o=t.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=t.rawIndexOf(o,i.getRawOrdinalNumber(l)),v=f<0?Number.MIN_VALUE:a(t.indexOfRawIndex(f));if(v>s)return!0;s=v}return!1},e.prototype._isOrderDifferentInView=function(t,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,a,n,i){if(this._isOrderChangedWithinSameData(t,a,n)){var o=this._dataSort(t,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,a,n){var i=a.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(t,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var a=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){fh(i,t,Rt(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e})(de),zE={cartesian2d:function(r,e){var t=e.width<0?-1:1,a=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var n=r.x+r.width,i=r.y+r.height,o=c_(e.x,r.x),s=f_(e.x+e.width,n),l=c_(e.y,r.y),u=f_(e.y+e.height,i),f=s<o,v=u<l;return e.x=f&&o>n?s:o,e.y=v&&l>i?u:l,e.width=f?0:s-o,e.height=v?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),f||v},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}var n=f_(e.r,r.r),i=c_(e.r0,r.r0);e.r=n,e.r0=i;var o=n-i<0;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}return o}},kE={cartesian2d:function(r,e,t,a,n,i,o,s,l){var u=new Wt({shape:et({},a),z2:1});if(u.__dataIndex=t,u.name="item",i){var f=u.shape,v=n?"height":"width";f[v]=0}return u},polar:function(r,e,t,a,n,i,o,s,l){var u=!n&&l?bg:Br,f=new u({shape:a,z2:1});f.name="item";var v=F4(n);if(f.calculateTextPosition=oZ(v,{isRoundCap:u===bg}),i){var d=f.shape,p=n?"r":"endAngle",y={};d[p]=n?a.r0:a.startAngle,y[p]=a[p],(s?Jt:Le)(f,{shape:y},i)}return f}};function cZ(r,e){var t=r.get("realtimeSort",!0),a=e.getBaseAxis();if(t&&a.type==="category"&&e.type==="cartesian2d")return{baseAxis:a,otherAxis:e.getOtherAxis(a)}}function BE(r,e,t,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?Jt:Le)(t,{shape:l},e,n,null);var f=e?r.baseAxis.model:null;(o?Jt:Le)(t,{shape:u},f,n)}function VE(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var fZ=["x","y","width","height"],hZ=["cx","cy","r","startAngle","endAngle"],GE={cartesian2d:function(r){return!VE(r,fZ)},polar:function(r){return!VE(r,hZ)}},ap={cartesian2d:function(r,e,t){var a=r.getItemLayout(e),n=t?dZ(t,a):0,i=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,e,t){var a=r.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function vZ(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function F4(r){return(function(e){var t=e?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+t;default:return a}}})(r)}function HE(r,e,t,a,n,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var f=r.shape,v=Us(a.getModel("itemStyle"),f,!0);et(f,v),r.setShape(f)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var d=a.getShallow("cursor");d&&r.attr("cursor",d);var p=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",y=nr(a);Sr(r,y,{labelFetcher:i,labelDataIndex:t,defaultText:ku(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var m=r.getTextContent();if(s&&m){var _=a.get(["label","position"]);r.textConfig.inside=_==="middle"?!0:null,sZ(r,_==="outside"?p:_,F4(o),a.get(["label","rotate"]))}cP(m,y,i.getRawValue(t),function(b){return P4(e,b)});var S=a.getModel(["emphasis"]);Pe(r,S.get("focus"),S.get("blurScope"),S.get("disabled")),xr(r,a),vZ(n)&&(r.style.fill="none",r.style.stroke="none",P(r.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function dZ(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(a,n,i)}var pZ=(function(){function r(){}return r})(),UE=(function(r){$(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeBar",a}return e.prototype.getDefaultShape=function(){return new pZ},e.prototype.buildPath=function(t,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[i]=u,l[o]=n[f+2],s[i]=n[f+i],s[o]=n[f+o],t.rect(s[0],s[1],l[0],l[1])},e})(Ut);function FE(r,e,t,a){var n=r.getData(),i=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints");if(u){var f=new UE({shape:{points:u},incremental:!!a,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),e.add(f),t&&t.push(f)}var v=new UE({shape:{points:n.getLayout("largePoints")},incremental:!!a,ignoreCoarsePointer:!0,z2:1});v.baseDimIdx=i,v.largeDataIndices=o,v.barWidth=s,e.add(v),v.useStyle(n.getVisual("style")),Rt(v).seriesIndex=r.seriesIndex,r.get("silent")||(v.on("mousedown",jE),v.on("mousemove",jE)),t&&t.push(v)}var jE=Qb(function(r){var e=this,t=gZ(e,r.offsetX,r.offsetY);Rt(e).dataIndex=t>=0?t:null},30,!1);function gZ(r,e,t){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,v=i.length/3;f<v;f++){var d=f*3;if(l[a]=u,l[n]=i[d+2],s[a]=i[d+a],s[n]=i[d+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function j4(r,e,t){if(cl(t,"cartesian2d")){var a=e,n=t.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=t.getArea(),i=e;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function yZ(r,e,t){var a=r.type==="polar"?Br:Wt;return new a({shape:j4(e,t,r),silent:!0,z2:0})}function mZ(r){r.registerChartView(uZ),r.registerSeriesModel(nZ),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,It(KO,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,QO("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,U4("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var a=e.componentType||"series";t.eachComponent({mainType:a,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})})}var np=Math.PI*2,YE=Math.PI/180;function Y4(r,e){return Qe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function X4(r,e){var t=Y4(r,e),a=r.get("center"),n=r.get("radius");it(n)||(n=[0,n]);var i=ft(t.width,e.getWidth()),o=ft(t.height,e.getHeight()),s=Math.min(i,o),l=ft(n[0],s/2),u=ft(n[1],s/2),f,v,d=r.coordinateSystem;if(d){var p=d.dataToPoint(a);f=p[0]||0,v=p[1]||0}else it(a)||(a=[a,a]),f=ft(a[0],i)+t.x,v=ft(a[1],o)+t.y;return{cx:f,cy:v,r0:l,r:u}}function _Z(r,e,t){e.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=Y4(a,t),s=X4(a,t),l=s.cx,u=s.cy,f=s.r,v=s.r0,d=-a.get("startAngle")*YE,p=a.get("minAngle")*YE,y=0;n.each(i,function(N){!isNaN(N)&&y++});var m=n.getSum(i),_=Math.PI/(m||y)*2,S=a.get("clockwise"),b=a.get("roseType"),w=a.get("stillShowZeroSum"),A=n.getDataExtent(i);A[0]=0;var M=np,C=0,L=d,E=S?1:-1;if(n.setLayout({viewRect:o,r:f}),n.each(i,function(N,O){var k;if(isNaN(N)){n.setItemLayout(O,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:v,r:b?NaN:f});return}b!=="area"?k=m===0&&w?_:N*_:k=np/y,k<p?(k=p,M-=p):C+=N;var G=L+E*k;n.setItemLayout(O,{angle:k,startAngle:L,endAngle:G,clockwise:S,cx:l,cy:u,r0:v,r:b?se(N,A,[v,f]):f}),L=G}),M<np&&y)if(M<=.001){var R=np/y;n.each(i,function(N,O){if(!isNaN(N)){var k=n.getItemLayout(O);k.angle=R,k.startAngle=d+E*O*R,k.endAngle=d+E*(O+1)*R}})}else _=M/C,L=d,n.each(i,function(N,O){if(!isNaN(N)){var k=n.getItemLayout(O),G=k.angle===p?p:N*_;k.startAngle=L,k.endAngle=L+E*G,L+=E*G}})})}function $h(r){return{seriesType:r,reset:function(e,t){var a=t.findComponents({mainType:"legend"});if(!(!a||!a.length)){var n=e.getData();n.filterSelf(function(i){for(var o=n.getName(i),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}var xZ=Math.PI/180;function XE(r,e,t,a,n,i,o,s,l,u){if(r.length<2)return;function f(m){for(var _=m.rB,S=_*_,b=0;b<m.list.length;b++){var w=m.list[b],A=Math.abs(w.label.y-t),M=a+w.len,C=M*M,L=Math.sqrt((1-Math.abs(A*A/S))*C),E=e+(L+w.len2)*n,R=E-w.label.x,N=w.targetTextWidth-R*n;Z4(w,N,!0),w.label.x=E}}function v(m){for(var _={list:[],maxY:0},S={list:[],maxY:0},b=0;b<m.length;b++)if(m[b].labelAlignTo==="none"){var w=m[b],A=w.label.y>t?S:_,M=Math.abs(w.label.y-t);if(M>=A.maxY){var C=w.label.x-e-w.len2*n,L=a+w.len,E=Math.abs(C)<L?Math.sqrt(M*M/(1-C*C/L/L)):L;A.rB=E,A.maxY=M}A.list.push(w)}f(_),f(S)}for(var d=r.length,p=0;p<d;p++)if(r[p].position==="outer"&&r[p].labelAlignTo==="labelLine"){var y=r[p].label.x-u;r[p].linePoints[1][0]+=y,r[p].label.x=u}m4(r,l,l+o)&&v(r)}function SZ(r,e,t,a,n,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,v=-Number.MAX_VALUE,d=0;d<r.length;d++){var p=r[d].label;h_(r[d])||(p.x<e?(f=Math.min(f,p.x),l.push(r[d])):(v=Math.max(v,p.x),u.push(r[d])))}for(var d=0;d<r.length;d++){var y=r[d];if(!h_(y)&&y.linePoints){if(y.labelStyleWidth!=null)continue;var p=y.label,m=y.linePoints,_=void 0;y.labelAlignTo==="edge"?p.x<e?_=m[2][0]-y.labelDistance-o-y.edgeDistance:_=o+n-y.edgeDistance-m[2][0]-y.labelDistance:y.labelAlignTo==="labelLine"?p.x<e?_=f-o-y.bleedMargin:_=o+n-v-y.bleedMargin:p.x<e?_=p.x-o-y.bleedMargin:_=o+n-p.x-y.bleedMargin,y.targetTextWidth=_,Z4(y,_)}}XE(u,e,t,a,1,n,i,o,s,v),XE(l,e,t,a,-1,n,i,o,s,f);for(var d=0;d<r.length;d++){var y=r[d];if(!h_(y)&&y.linePoints){var p=y.label,m=y.linePoints,S=y.labelAlignTo==="edge",b=p.style.padding,w=b?b[1]+b[3]:0,A=p.style.backgroundColor?0:w,M=y.rect.width+A,C=m[1][0]-m[2][0];S?p.x<e?m[2][0]=o+y.edgeDistance+M+y.labelDistance:m[2][0]=o+n-y.edgeDistance-M-y.labelDistance:(p.x<e?m[2][0]=p.x+y.labelDistance:m[2][0]=p.x-y.labelDistance,m[1][0]=m[2][0]+C),m[1][1]=m[2][1]=p.y}}}function Z4(r,e,t){if(t===void 0&&(t=!1),r.labelStyleWidth==null){var a=r.label,n=a.style,i=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,f=i.width+(o?0:l);if(e<f||t){var v=i.height;if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",e-l);var d=a.getBoundingRect();a.setStyle("width",Math.ceil(d.width)),a.setStyle("backgroundColor",o)}else{var p=e-l,y=e<f?p:t?p>r.unconstrainedWidth?null:p:null;a.setStyle("width",y)}var m=a.getBoundingRect();i.width=m.width;var _=(a.style.margin||0)+2.1;i.height=m.height+_,i.y-=(i.height-v)/2}}}function h_(r){return r.position==="center"}function bZ(r){var e=r.getData(),t=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*xZ,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,v=s.y,d=s.height;function p(C){C.ignore=!0}function y(C){if(!C.ignore)return!0;for(var L in C.states)if(C.states[L].ignore===!1)return!0;return!1}e.each(function(C){var L=e.getItemGraphicEl(C),E=L.shape,R=L.getTextContent(),N=L.getTextGuideLine(),O=e.getItemModel(C),k=O.getModel("label"),G=k.get("position")||O.get(["emphasis","label","position"]),H=k.get("distanceToLabelLine"),F=k.get("alignTo"),B=ft(k.get("edgeDistance"),u),j=k.get("bleedMargin"),Y=O.getModel("labelLine"),K=Y.get("length");K=ft(K,u);var nt=Y.get("length2");if(nt=ft(nt,u),Math.abs(E.endAngle-E.startAngle)<o){P(R.states,p),R.ignore=!0,N&&(P(N.states,p),N.ignore=!0);return}if(y(R)){var U=(E.startAngle+E.endAngle)/2,W=Math.cos(U),rt=Math.sin(U),ot,ht,gt,mt;a=E.cx,n=E.cy;var yt=G==="inside"||G==="inner";if(G==="center")ot=E.cx,ht=E.cy,mt="center";else{var St=(yt?(E.r+E.r0)/2*W:E.r*W)+a,Lt=(yt?(E.r+E.r0)/2*rt:E.r*rt)+n;if(ot=St+W*3,ht=Lt+rt*3,!yt){var _t=St+W*(K+l-E.r),Et=Lt+rt*(K+l-E.r),ge=_t+(W<0?-1:1)*nt,Gt=Et;F==="edge"?ot=W<0?f+B:f+u-B:ot=ge+(W<0?-H:H),ht=Gt,gt=[[St,Lt],[_t,Et],[ge,Gt]]}mt=yt?"center":F==="edge"?W>0?"right":"left":W>0?"left":"right"}var Ce=Math.PI,be=0,or=k.get("rotate");if(Qt(or))be=or*(Ce/180);else if(G==="center")be=0;else if(or==="radial"||or===!0){var pa=W<0?-U+Ce:-U;be=pa}else if(or==="tangential"&&G!=="outside"&&G!=="outer"){var sr=Math.atan2(W,rt);sr<0&&(sr=Ce*2+sr);var Ci=rt>0;Ci&&(sr=Ce+sr),be=sr-Ce}if(i=!!be,R.x=ot,R.y=ht,R.rotation=be,R.setStyle({verticalAlign:"middle"}),yt){R.setStyle({align:mt});var nc=R.states.select;nc&&(nc.x+=R.x,nc.y+=R.y)}else{var ga=R.getBoundingRect().clone();ga.applyTransform(R.getComputedTransform());var ev=(R.style.margin||0)+2.1;ga.y-=ev/2,ga.height+=ev,t.push({label:R,labelLine:N,position:G,len:K,len2:nt,minTurnAngle:Y.get("minTurnAngle"),maxSurfaceAngle:Y.get("maxSurfaceAngle"),surfaceNormal:new Pt(W,rt),linePoints:gt,textAlign:mt,labelDistance:H,labelAlignTo:F,edgeDistance:B,bleedMargin:j,rect:ga,unconstrainedWidth:ga.width,labelStyleWidth:R.style.width})}L.setTextConfig({inside:yt})}}),!i&&r.get("avoidLabelOverlap")&&SZ(t,a,n,l,u,d,f,v);for(var m=0;m<t.length;m++){var _=t[m],S=_.label,b=_.labelLine,w=isNaN(S.x)||isNaN(S.y);if(S){S.setStyle({align:_.textAlign}),w&&(P(S.states,p),S.ignore=!0);var A=S.states.select;A&&(A.x+=S.x,A.y+=S.y)}if(b){var M=_.linePoints;w||!M?(P(b.states,p),b.ignore=!0):(p4(M,_.minTurnAngle),ZY(M,_.surfaceNormal,_.maxSurfaceAngle),b.setShape({points:M}),S.__hostTarget.textGuideLineConfig={anchor:new Pt(M[0][0],M[0][1])})}}}var wZ=(function(r){$(e,r);function e(t,a,n){var i=r.call(this)||this;i.z2=2;var o=new $t;return i.setTextContent(o),i.updateData(t,a,n,!0),i}return e.prototype.updateData=function(t,a,n,i){var o=this,s=t.hostModel,l=t.getItemModel(a),u=l.getModel("emphasis"),f=t.getItemLayout(a),v=et(Us(l.getModel("itemStyle"),f,!0),f);if(isNaN(v.startAngle)){o.setShape(v);return}if(i){o.setShape(v);var d=s.getShallow("animationType");s.ecModel.ssr?(Le(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=v.cx,o.originY=v.cy):d==="scale"?(o.shape.r=f.r0,Le(o,{shape:{r:f.r}},s,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),Le(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,a)):(o.shape.endAngle=f.startAngle,Jt(o,{shape:{endAngle:f.endAngle}},s,a))}else cn(o),Jt(o,{shape:v},s,a);o.useStyle(t.getItemVisual(a,"style")),xr(o,l);var p=(f.startAngle+f.endAngle)/2,y=s.get("selectedOffset"),m=Math.cos(p)*y,_=Math.sin(p)*y,S=l.getShallow("cursor");S&&o.attr("cursor",S),this._updateLabel(s,t,a),o.ensureState("emphasis").shape=et({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Us(u.getModel("itemStyle"),f)),et(o.ensureState("select"),{x:m,y:_,shape:Us(l.getModel(["select","itemStyle"]),f)}),et(o.ensureState("blur"),{shape:Us(l.getModel(["blur","itemStyle"]),f)});var b=o.getTextGuideLine(),w=o.getTextContent();b&&et(b.ensureState("select"),{x:m,y:_}),et(w.ensureState("select"),{x:m,y:_}),Pe(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,f=l&&l.opacity;Sr(i,nr(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(n,"normal")||a.getName(n)});var v=i.getTextContent();i.setTextConfig({position:null,rotation:null}),v.attr({z2:10});var d=t.get(["label","position"]);if(d!=="outside"&&d!=="outer")i.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new Gr,this.setTextGuideLine(p)),f2(this,h2(o),{stroke:u,opacity:Rn(s.get(["lineStyle","opacity"]),f,1)})}},e})(Br),TZ=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,n,i){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),v=1;isNaN(f&&f.startAngle)&&v<o.count();++v)f=o.getItemLayout(v);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var d=new Br({shape:X4(t,n)});d.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(p){var y=new wZ(o,p,u);o.setItemGraphicEl(p,y),l.add(y)}).update(function(p,y){var m=s.getItemGraphicEl(y);m.updateData(o,p,u),m.off("click"),l.add(m),o.setItemGraphicEl(p,m)}).remove(function(p){var y=s.getItemGraphicEl(p);fh(y,t,p)}).execute(),bZ(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="pie",e})(de);function ac(r,e,t){e=it(e)&&{coordDimensions:e}||et({encodeDefine:r.getEncode()},e);var a=r.getSource(),n=jh(a,e).dimensions,i=new Pr(n,r);return i.initData(a,t),i}var Kh=(function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var a=this._getDataWithEncodedVisual();return a.getItemVisual(e,t)},r})(),AZ=Kt(),DZ=(function(r){$(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Kh(dt(this.getData,this),dt(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return ac(this,{coordDimensions:["value"],encodeDefaulter:It(Fb,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),n=AZ(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=_8(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Js(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e})(Se);function CZ(r){return{seriesType:r,reset:function(e,t){var a=e.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(Qt(o)&&!isNaN(o)&&o<0)})}}}function MZ(r){r.registerChartView(TZ),r.registerSeriesModel(DZ),gO("pie",r.registerAction),r.registerLayout(It(_Z,"pie")),r.registerProcessor($h("pie")),r.registerProcessor(CZ("pie"))}var LZ=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,a){return Di(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,a,n){return n.point(a.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e})(Se),W4=4,EZ=(function(){function r(){}return r})(),RZ=(function(r){$(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.getDefaultShape=function(){return new EZ},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]<W4,f=this.softClipShape,v;if(u){this._ctx=l;return}for(this._ctx=null,v=this._off;v<n.length;){var d=n[v++],p=n[v++];isNaN(d)||isNaN(p)||f&&!f.contain(d,p)||(s.x=d-i[0]/2,s.y=p-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=v,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,a=t.points,n=t.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<a.length;){var l=a[s++],u=a[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,a){for(var n=this.shape,i=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var f=u*2,v=i[f]-s/2,d=i[f+1]-l/2;if(t>=v&&a>=d&&t<=v+s&&a<=d+l)return u}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,v=-1/0,d=0;d<n.length;){var p=n[d++],y=n[d++];l=Math.min(p,l),f=Math.max(p,f),u=Math.min(y,u),v=Math.max(y,v)}t=this._rect=new kt(l-o/2,u-s/2,f-l+o,v-u+s)}return t},e})(Ut),IZ=(function(){function r(){this.group=new Ct}return r.prototype.updateData=function(e,t){this._clear();var a=this._create();a.setShape({points:e.getLayout("points")}),this._setCommon(a,e,t)},r.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(a){if(a.startIndex!=null){var n=(a.endIndex-a.startIndex)*2,i=a.startIndex*4*2;t=new Float32Array(t.buffer,i,n)}a.setShape("points",t),a.reset()})},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,a){var n=this._newAdded[0],i=t.getLayout("points"),o=n&&n.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),n.endIndex=e.end,n.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,t,a)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new RZ({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,a){var n=t.hostModel;a=a||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=a.clipShape||null,e.symbolProxy=Ye(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<W4;e.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=Rt(e);u.seriesIndex=n.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var v=e.hoverDataIdx;v>=0&&(u.dataIndex=v+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),NZ=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._symbolDraw.incrementalUpdate(t,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=t.end===a.getData().count()},e.prototype.updateTransform=function(t,a,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=qh("").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var a=t.coordinateSystem,n=a&&a.getArea&&a.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new IZ:new Wh,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(de),PZ=(function(r){$(e,r);function e(){return r!==null&&r.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})(jt),wS=(function(r){$(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",je).models[0]},e.type="cartesian2dAxis",e})(jt);Xe(wS,Xh);var q4={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)"]}}},OZ=zt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},q4),m2=zt({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}}},q4),zZ=zt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},m2),kZ=wt({logBase:10},m2);const $4={category:OZ,value:m2,time:zZ,log:kZ};var BZ={value:1,category:1,time:1,log:1};function Bu(r,e,t,a){P(BZ,function(n,i){var o=zt(zt({},$4[i],!0),a,!0),s=(function(l){$(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,v){var d=dh(this),p=d?Qu(f):{},y=v.getTheme();zt(f,y.get(i+"Axis")),zt(f,this.getDefaultOption()),f.type=ZE(f),d&&Ro(f,p,d)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=gS.createByAxisModel(this))},u.prototype.getCategories=function(f){var v=this.option;if(v.type==="category")return f?v.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u})(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",ZE)}function ZE(r){return r.type||(r.data?"category":"value")}var VZ=(function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return st(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),le(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r})(),TS=["x","y"];function WE(r){return r.type==="interval"||r.type==="time"}var GZ=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=TS,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!WE(t)||!WE(a))){var n=t.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,v=(s[1]-o[1])/u,d=o[0]-n[0]*f,p=o[1]-i[0]*v,y=this._transform=[f,0,0,v,d,p];this._invTransform=ju([],y)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,a){var n=this.dataToPoint(t),i=this.dataToPoint(a),o=this.getArea(),s=new kt(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,a,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return _r(n,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},e.prototype.clampData=function(t,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(t[0]),u=i.parse(t[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},e.prototype.pointToData=function(t,a){var n=[];if(this._invTransform)return _r(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),a),n[1]=o.coordToData(o.toLocalCoord(t[1]),a),n},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(a[0],a[1]),o=Math.max(t[0],t[1])-n,s=Math.max(a[0],a[1])-i;return new kt(n,i,o,s)},e})(VZ),HZ=(function(r){$(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),t&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e})(hn);function AS(r,e,t){t=t||{};var a=r.coordinateSystem,n=e.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,f=a.getRect(),v=[f.x,f.x+f.width,f.y,f.y+f.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,y=u==="x"?[v[2]-p,v[3]+p]:[v[0]-p,v[1]+p];if(o){var m=o.toGlobalCoord(o.dataToCoord(0));y[d.onZero]=Math.max(Math.min(m,y[1]),y[0])}i.position=[u==="y"?y[d[l]]:v[0],u==="x"?y[d[l]]:v[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var _={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=_[s],i.labelOffset=o?y[d[s]]-y[d.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),fr(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var S=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-S:S,i.z2=1,i}function qE(r){return r.get("coordinateSystem")==="cartesian2d"}function $E(r){var e={xAxisModel:null,yAxisModel:null};return P(e,function(t,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,je).models[0];e[a]=i}),e}var v_=Math.log;function K4(r,e,t){var a=bi.prototype,n=a.getTicks.call(t),i=a.getTicks.call(t,!0),o=n.length-1,s=a.getInterval.call(t),l=a4(r,e),u=l.extent,f=l.fixMin,v=l.fixMax;if(r.type==="log"){var d=v_(r.base);u=[v_(u[0])/d,v_(u[1])/d]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:v});var p=a.getExtent.call(r);f&&(u[0]=p[0]),v&&(u[1]=p[1]);var y=a.getInterval.call(r),m=u[0],_=u[1];if(f&&v)y=(_-m)/o;else if(f)for(_=u[0]+y*o;_<u[1]&&isFinite(_)&&isFinite(u[1]);)y=J1(y),_=u[0]+y*o;else if(v)for(m=u[1]-y*o;m>u[0]&&isFinite(m)&&isFinite(u[0]);)y=J1(y),m=u[1]-y*o;else{var S=r.getTicks().length-1;S>o&&(y=J1(y));var b=y*o;_=Math.ceil(u[1]/y)*y,m=Oe(_-b),m<0&&u[0]>=0?(m=0,_=Oe(b)):_>0&&u[1]<=0&&(_=0,m=-Oe(b))}var w=(n[0].value-i[0].value)/s,A=(n[o].value-i[o].value)/s;a.setExtent.call(r,m+y*w,_+y*A),a.setInterval.call(r,y),(w||A)&&a.setNiceExtent.call(r,m+y,_-y)}var UZ=(function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=TS,this._initCartesian(e,t,a),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var a=this._axesMap;this._updateScale(e,this.model);function n(o){var s,l=Yt(o),u=l.length;if(u){for(var f=[],v=u-1;v>=0;v--){var d=+l[v],p=o[d],y=p.model,m=p.scale;yS(m)&&y.get("alignTicks")&&y.get("interval")==null?f.push(p):(zu(m,y),yS(m)&&(s=p))}f.length&&(s||(s=f.pop(),zu(s.scale,s.model)),P(f,function(_){K4(_.scale,_.model,s.scale)}))}}n(a.x),n(a.y);var i={};P(a.x,function(o){KE(a,"y",o,i)}),P(a.y,function(o){KE(a,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var n=e.getBoxLayoutParams(),i=!a&&e.get("containLabel"),o=Qe(n,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(P(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=TY(u);if(f){var v=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[v]-=f[v]+d,u.position==="top"?o.y+=f.height+d:u.position==="left"&&(o.x+=f.width+d)}}}),l()),P(this._coordsList,function(u){u.calcAffineTransform()});function l(){P(s,function(u){var f=u.isHorizontal(),v=f?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(v[d],v[1-d]),FZ(u,f?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var a=this._axesMap[e];if(a!=null)return a[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var a="x"+e+"y"+t;return this._coordsMap[a]}Tt(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===e||i[n].getAxis("y").index===t)return i[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,a){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(e,t,a){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,a=e.xAxisModel||t&&t.getReferringComponents("xAxis",je).models[0],n=e.yAxisModel||t&&t.getReferringComponents("yAxis",je).models[0],i=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,Vt(o,s)<0&&(s=null);else if(a&&n)s=this.getCartesian(a.componentIndex,n.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,a){var n=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,P(s.x,function(f,v){P(s.y,function(d,p){var y="x"+v+"y"+p,m=new GZ(y);m.master=n,m.model=e,n._coordsMap[y]=m,n._coordsList.push(m),m.addAxis(f),m.addAxis(d)})});function u(f){return function(v,d){if(d_(v,e)){var p=v.get("position");f==="x"?p!=="top"&&p!=="bottom"&&(p=o.bottom?"top":"bottom"):p!=="left"&&p!=="right"&&(p=o.left?"right":"left"),o[p]=!0;var y=new HZ(f,_y(v),[0,0],v.get("type"),p),m=y.type==="category";y.onBand=m&&v.get("boundaryGap"),y.inverse=v.get("inverse"),v.axis=y,y.model=v,y.grid=i,y.index=d,i._axesList.push(y),s[f][d]=y,l[f]++}}}},r.prototype._updateScale=function(e,t){P(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var i=n.model.get("categorySortInfo");n.scale.setSortInfo(i)}}),e.eachSeries(function(n){if(qE(n)){var i=$E(n),o=i.xAxisModel,s=i.yAxisModel;if(!d_(o,t)||!d_(s,t))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),f=l.getAxis("x"),v=l.getAxis("y");a(u,f),a(u,v)}},this);function a(n,i){P(mg(n,i.dim),function(o){i.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(e){var t=[],a=[];return P(this.getCartesians(),function(n){var i=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(i);Vt(t,i)<0&&t.push(i),Vt(a,o)<0&&a.push(o)}),{baseAxes:t,otherAxes:a}},r.create=function(e,t){var a=[];return e.eachComponent("grid",function(n,i){var o=new r(n,e,t);o.name="grid_"+i,o.resize(n,t,!0),n.coordinateSystem=o,a.push(o)}),e.eachSeries(function(n){if(qE(n)){var i=$E(n),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;n.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),a},r.dimensions=TS,r})();function d_(r,e){return r.getCoordSysModel()===e}function KE(r,e,t,a){t.getAxesOnZeroOf=function(){return i?[i]:[]};var n=r[e],i,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)QE(n[l])&&(i=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&QE(n[u])&&!a[f(n[u])]){i=n[u];break}i&&(a[f(i)]=!0);function f(v){return v.dim+"_"+v.index}}function QE(r){return r&&r.type!=="category"&&r.type!=="time"&&wY(r)}function FZ(r,e){var t=r.getExtent(),a=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+e}:function(n){return a-n+e},r.toLocalCoord=r.dim==="x"?function(n){return n-e}:function(n){return a-n+e}}var _o=Math.PI,Or=(function(){function r(e,t){this.group=new Ct,this.opt=t,this.axisModel=e,wt(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var a=new Ct({x:t.position[0],y:t.position[1],rotation:t.rotation});a.updateTransform(),this._transformGroup=a}return r.prototype.hasBuilder=function(e){return!!JE[e]},r.prototype.add=function(e){JE[e](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(e,t,a){var n=p3(t-e),i,o;return eg(n)?(o=a>0?"top":"bottom",i="center"):eg(n-_o)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<_o?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r})(),JE={axisLine:function(r,e,t,a){var n=e.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var i=e.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(_r(s,s,o),_r(l,l,o));var f=et({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),v=new er({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Nu(v.shape,v.style.lineWidth),v.anid="line",t.add(v);var d=e.get(["axisLine","symbol"]);if(d!=null){var p=e.get(["axisLine","symbolSize"]);vt(d)&&(d=[d,d]),(vt(p)||Qt(p))&&(p=[p,p]);var y=ll(e.get(["axisLine","symbolOffset"])||0,p),m=p[0],_=p[1];P([{rotate:r.rotation+Math.PI/2,offset:y[0],r:0},{rotate:r.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(S,b){if(d[b]!=="none"&&d[b]!=null){var w=Ye(d[b],-m/2,-_/2,m,_,f.stroke,!0),A=S.r+S.offset,M=u?l:s;w.attr({rotation:S.rotate,x:M[0]+A*Math.cos(r.rotation),y:M[1]-A*Math.sin(r.rotation),silent:!0,z2:11}),t.add(w)}})}}},axisTickLabel:function(r,e,t,a){var n=XZ(t,a,e,r),i=WZ(t,a,e,r);if(YZ(e,i,n),ZZ(t,a,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=g4(st(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));_4(o)}},axisName:function(r,e,t,a){var n=fr(r.axisName,e.get("name"));if(n){var i=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,v=[i==="start"?u[0]-f*l:i==="end"?u[1]+f*l:(u[0]+u[1])/2,eR(i)?r.labelOffset+o*l:0],d,p=e.get("nameRotate");p!=null&&(p=p*_o/180);var y;eR(i)?d=Or.innerTextLayout(r.rotation,p??r.rotation,o):(d=jZ(r.rotation,i,p||0,u),y=r.axisNameAvailableWidth,y!=null&&(y=Math.abs(y/Math.sin(d.rotation)),!isFinite(y)&&(y=null)));var m=s.getFont(),_=e.get("nameTruncate",!0)||{},S=_.ellipsis,b=fr(r.nameTruncateMaxWidth,_.maxWidth,y),w=new $t({x:v[0],y:v[1],rotation:d.rotation,silent:Or.isLabelSilent(e),style:xe(s,{text:n,font:m,overflow:"truncate",width:b,ellipsis:S,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(Wu({el:w,componentModel:e,itemName:n}),w.__fullText=n,w.anid="name",e.get("triggerEvent")){var A=Or.makeAxisEventDataBase(e);A.targetType="axisName",A.name=n,Rt(w).eventData=A}a.add(w),w.updateTransform(),t.add(w),w.decomposeTransform()}}};function jZ(r,e,t,a){var n=p3(t-r),i,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return eg(n-_o/2)?(o=l?"bottom":"top",i="center"):eg(n-_o*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<_o*1.5&&n>_o/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function YZ(r,e,t){if(!n4(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],f=t[1],v=t[t.length-1],d=t[t.length-2];a===!1?(Ma(i),Ma(u)):tR(i,o)&&(a?(Ma(o),Ma(f)):(Ma(i),Ma(u))),n===!1?(Ma(s),Ma(v)):tR(l,s)&&(n?(Ma(l),Ma(d)):(Ma(s),Ma(v)))}}function Ma(r){r&&(r.ignore=!0)}function tR(r,e){var t=r&&r.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(!(!t||!a)){var n=Yg([]);return sl(n,n,-r.rotation),t.applyTransform(vi([],n,r.getLocalTransform())),a.applyTransform(vi([],n,e.getLocalTransform())),t.intersect(a)}}function eR(r){return r==="middle"||r==="center"}function Q4(r,e,t,a,n){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(_r(o,o,e),_r(s,s,e));var f=new er({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});Nu(f.shape,f.style.lineWidth),f.anid=n+"_"+r[l].tickValue,i.push(f)}return i}function XZ(r,e,t,a){var n=t.axis,i=t.getModel("axisTick"),o=i.get("show");if(o==="auto"&&a.handleAutoShown&&(o=a.handleAutoShown("axisTick")),!(!o||n.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=a.tickDirection*i.get("length"),u=n.getTicksCoords(),f=Q4(u,e.transform,l,wt(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),v=0;v<f.length;v++)r.add(f[v]);return f}}function ZZ(r,e,t,a){var n=t.axis,i=t.getModel("minorTick");if(!(!i.get("show")||n.scale.isBlank())){var o=n.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=a*i.get("length"),u=wt(s.getLineStyle(),wt(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var v=Q4(o[f],e.transform,l,u,"minorticks_"+f),d=0;d<v.length;d++)r.add(v[d])}}function WZ(r,e,t,a){var n=t.axis,i=fr(a.axisLabelShow,t.get(["axisLabel","show"]));if(!(!i||n.scale.isBlank())){var o=t.getModel("axisLabel"),s=o.get("margin"),l=n.getViewLabels(),u=(fr(a.labelRotate,o.get("rotate"))||0)*_o/180,f=Or.innerTextLayout(a.rotation,u,a.labelDirection),v=t.getCategories&&t.getCategories(!0),d=[],p=Or.isLabelSilent(t),y=t.get("triggerEvent");return P(l,function(m,_){var S=n.scale.type==="ordinal"?n.scale.getRawOrdinalNumber(m.tickValue):m.tickValue,b=m.formattedLabel,w=m.rawLabel,A=o;if(v&&v[S]){var M=v[S];Tt(M)&&M.textStyle&&(A=new oe(M.textStyle,o,t.ecModel))}var C=A.getTextColor()||t.get(["axisLine","lineStyle","color"]),L=n.dataToCoord(S),E=new $t({x:L,y:a.labelOffset+a.labelDirection*s,rotation:f.rotation,silent:p,z2:10+(m.level||0),style:xe(A,{text:b,align:A.getShallow("align",!0)||f.textAlign,verticalAlign:A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||f.textVerticalAlign,fill:bt(C)?C(n.type==="category"?w:n.type==="value"?S+"":S,_):C})});if(E.anid="label_"+S,y){var R=Or.makeAxisEventDataBase(t);R.targetType="axisLabel",R.value=w,R.tickIndex=_,n.type==="category"&&(R.dataIndex=S),Rt(E).eventData=R}e.add(E),E.updateTransform(),d.push(E),r.add(E),E.decomposeTransform()}),d}}function qZ(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return $Z(t,r,e),t.seriesInvolved&&QZ(t,r),t}function $Z(r,e,t){var a=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];P(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=wh(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,v=f.getModel("tooltip",a);if(P(s.getAxes(),It(m,!1,null)),s.getTooltipAxes&&a&&v.get("show")){var d=v.get("trigger")==="axis",p=v.get(["axisPointer","type"])==="cross",y=s.getTooltipAxes(v.get(["axisPointer","axis"]));(d||p)&&P(y.baseAxes,It(m,p?"cross":!0,d)),p&&P(y.otherAxes,It(m,"cross",!1))}function m(_,S,b){var w=b.model.getModel("axisPointer",n),A=w.get("show");if(!(!A||A==="auto"&&!_&&!DS(w))){S==null&&(S=w.get("triggerTooltip")),w=_?KZ(b,v,n,e,_,S):w;var M=w.get("snap"),C=w.get("triggerEmphasis"),L=wh(b.model),E=S||M||b.type==="category",R=r.axesInfo[L]={key:L,axis:b,coordSys:s,axisPointerModel:w,triggerTooltip:S,triggerEmphasis:C,involveSeries:E,snap:M,useHandle:DS(w),seriesModels:[],linkGroup:null};u[L]=R,r.seriesInvolved=r.seriesInvolved||E;var N=JZ(i,b);if(N!=null){var O=o[N]||(o[N]={axesInfo:{}});O.axesInfo[L]=R,O.mapper=i[N].mapper,R.linkGroup=O}}}})}function KZ(r,e,t,a,n,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};P(s,function(d){l[d]=Dt(o.get(d))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var v=l.lineStyle=o.get("crossStyle");v&&wt(u,v.textStyle)}}return r.model.getModel("axisPointer",new oe(l,t,a))}function QZ(r,e){e.eachSeries(function(t){var a=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!a||n==="none"||n===!1||n==="item"||i===!1||t.get(["axisPointer","show"],!0)===!1||P(r.coordSysAxesInfo[wh(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function JZ(r,e){for(var t=e.model,a=e.dim,n=0;n<r.length;n++){var i=r[n]||{};if(p_(i[a+"AxisId"],t.id)||p_(i[a+"AxisIndex"],t.componentIndex)||p_(i[a+"AxisName"],t.name))return n}}function p_(r,e){return r==="all"||it(r)&&Vt(r,e)>=0||r===e}function tW(r){var e=_2(r);if(e){var t=e.axisPointerModel,a=e.axis.scale,n=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=a.parse(o));var s=DS(t);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function _2(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[wh(r)]}function eW(r){var e=_2(r);return e&&e.axisPointerModel}function DS(r){return!!r.get(["handle","show"])}function wh(r){return r.type+"||"+r.id}var rR={},fl=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){this.axisPointerClass&&tW(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},e.prototype.updateAxisPointer=function(t,a,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,a){var n=this._axisPointer;n&&n.remove(a)},e.prototype.dispose=function(t,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,a,n){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=eW(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,a,n):this._disposeAxisPointer(a)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,a){rR[t]=a},e.getAxisPointerClass=function(t){return t&&rR[t]},e.type="axis",e})(Ee),CS=Kt();function J4(r,e,t,a){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var f=s.length,v=CS(r).splitAreaColors,d=xt(),p=0;if(v)for(var y=0;y<u.length;y++){var m=v.get(u[y].tickValue);if(m!=null){p=(m+(f-1)*y)%f;break}}var _=n.toGlobalCoord(u[0].coord),S=o.getAreaStyle();s=it(s)?s:[s];for(var y=1;y<u.length;y++){var b=n.toGlobalCoord(u[y].coord),w=void 0,A=void 0,M=void 0,C=void 0;n.isHorizontal()?(w=_,A=l.y,M=b-w,C=l.height,_=w+M):(w=l.x,A=_,M=l.width,C=b-A,_=A+C);var L=u[y-1].tickValue;L!=null&&d.set(L,p),e.add(new Wt({anid:L!=null?"area_"+L:null,shape:{x:w,y:A,width:M,height:C},style:wt({fill:s[p]},S),autoBatch:!0,silent:!0})),p=(p+1)%f}CS(r).splitAreaColors=d}}}function tz(r){CS(r).splitAreaColors=null}var rW=["axisLine","axisTickLabel","axisName"],aW=["splitArea","splitLine","minorSplitLine"],ez=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ct,this.group.add(this._axisGroup),!!t.get("show")){var s=t.getCoordSysModel(),l=AS(s,t),u=new Or(t,et({handleAutoShown:function(v){for(var d=s.coordinateSystem.getCartesians(),p=0;p<d.length;p++)if(yS(d[p].getOtherAxis(t.axis).scale))return!0;return!1}},l));P(rW,u.add,u),this._axisGroup.add(u.getGroup()),P(aW,function(v){t.get([v,"show"])&&nW[v](this,this._axisGroup,t,s)},this);var f=i&&i.type==="changeAxisOrder"&&i.isInitSort;f||Vh(o,this._axisGroup,t),r.prototype.render.call(this,t,a,n,i)}},e.prototype.remove=function(){tz(this)},e.type="cartesianAxis",e})(fl),nW={splitLine:function(r,e,t,a){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=it(s)?s:[s];for(var l=a.coordinateSystem.getRect(),u=n.isHorizontal(),f=0,v=n.getTicksCoords({tickModel:i}),d=[],p=[],y=o.getLineStyle(),m=0;m<v.length;m++){var _=n.toGlobalCoord(v[m].coord);u?(d[0]=_,d[1]=l.y,p[0]=_,p[1]=l.y+l.height):(d[0]=l.x,d[1]=_,p[0]=l.x+l.width,p[1]=_);var S=f++%s.length,b=v[m].tickValue,w=new er({anid:b!=null?"line_"+v[m].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:wt({stroke:s[S]},y),silent:!0});Nu(w.shape,y.lineWidth),e.add(w)}}},minorSplitLine:function(r,e,t,a){var n=t.axis,i=t.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=a.coordinateSystem.getRect(),l=n.isHorizontal(),u=n.getMinorTicksCoords();if(u.length)for(var f=[],v=[],d=o.getLineStyle(),p=0;p<u.length;p++)for(var y=0;y<u[p].length;y++){var m=n.toGlobalCoord(u[p][y].coord);l?(f[0]=m,f[1]=s.y,v[0]=m,v[1]=s.y+s.height):(f[0]=s.x,f[1]=m,v[0]=s.x+s.width,v[1]=m);var _=new er({anid:"minor_line_"+u[p][y].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:v[0],y2:v[1]},style:d,silent:!0});Nu(_.shape,d.lineWidth),e.add(_)}},splitArea:function(r,e,t,a){J4(r,e,t,a)}},rz=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e})(ez),iW=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=rz.type,t}return e.type="yAxis",e})(ez),oW=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,a){this.group.removeAll(),t.get("show")&&this.group.add(new Wt({shape:t.coordinateSystem.getRect(),style:wt({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Ee),aR={offset:0};function az(r){r.registerComponentView(oW),r.registerComponentModel(PZ),r.registerCoordinateSystem("cartesian2d",UZ),Bu(r,"x",wS,aR),Bu(r,"y",wS,aR),r.registerComponentView(rz),r.registerComponentView(iW),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function sW(r){Ht(az),r.registerSeriesModel(LZ),r.registerChartView(NZ),r.registerLayout(qh("scatter"))}function lW(r){r.eachSeriesByType("radar",function(e){var t=e.getData(),a=[],n=e.coordinateSystem;if(n){var i=n.getIndicatorAxes();P(i,function(o,s){t.each(t.mapDimension(i[s].dim),function(l,u){a[u]=a[u]||[];var f=n.dataToPoint(l,s);a[u][s]=nR(f)?f:iR(n)})}),t.each(function(o){var s=Q6(a[o],function(l){return nR(l)})||iR(n);a[o].push(s.slice()),t.setItemLayout(o,a[o])})}})}function nR(r){return!isNaN(r[0])&&!isNaN(r[1])}function iR(r){return[r.cx,r.cy]}function uW(r){var e=r.polar;if(e){it(e)||(e=[e]);var t=[];P(e,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],it(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):t.push(a)}),r.polar=t}P(r.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var cW=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(d,p){var y=d.getItemVisual(p,"symbol")||"circle";if(y!=="none"){var m=rc(d.getItemVisual(p,"symbolSize")),_=Ye(y,-1,-1,2,2),S=d.getItemVisual(p,"symbolRotate")||0;return _.attr({style:{strokeNoScale:!0},z2:100,scaleX:m[0]/2,scaleY:m[1]/2,rotation:S*Math.PI/180||0}),_}}function f(d,p,y,m,_,S){y.removeAll();for(var b=0;b<p.length-1;b++){var w=u(m,_);w&&(w.__dimIdx=b,d[b]?(w.setPosition(d[b]),Hh[S?"initProps":"updateProps"](w,{x:p[b][0],y:p[b][1]},t,_)):w.setPosition(p[b]),y.add(w))}}function v(d){return st(d,function(p){return[i.cx,i.cy]})}s.diff(l).add(function(d){var p=s.getItemLayout(d);if(p){var y=new Vr,m=new Gr,_={shape:{points:p}};y.shape.points=v(p),m.shape.points=v(p),Le(y,_,t,d),Le(m,_,t,d);var S=new Ct,b=new Ct;S.add(m),S.add(y),S.add(b),f(m.shape.points,p,b,s,d,!0),s.setItemGraphicEl(d,S)}}).update(function(d,p){var y=l.getItemGraphicEl(p),m=y.childAt(0),_=y.childAt(1),S=y.childAt(2),b={shape:{points:s.getItemLayout(d)}};b.shape.points&&(f(m.shape.points,b.shape.points,S,s,d,!1),cn(_),cn(m),Jt(m,b,t),Jt(_,b,t),s.setItemGraphicEl(d,y))}).remove(function(d){o.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,p){var y=s.getItemModel(p),m=d.childAt(0),_=d.childAt(1),S=d.childAt(2),b=s.getItemVisual(p,"style"),w=b.fill;o.add(d),m.useStyle(wt(y.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:w})),xr(m,y,"lineStyle"),xr(_,y,"areaStyle");var A=y.getModel("areaStyle"),M=A.isEmpty()&&A.parentModel.isEmpty();_.ignore=M,P(["emphasis","select","blur"],function(E){var R=y.getModel([E,"areaStyle"]),N=R.isEmpty()&&R.parentModel.isEmpty();_.ensureState(E).ignore=N&&M}),_.useStyle(wt(A.getAreaStyle(),{fill:w,opacity:.7,decal:b.decal}));var C=y.getModel("emphasis"),L=C.getModel("itemStyle").getItemStyle();S.eachChild(function(E){if(E instanceof hr){var R=E.style;E.useStyle(et({image:R.image,x:R.x,y:R.y,width:R.width,height:R.height},b))}else E.useStyle(b),E.setColor(w),E.style.strokeNoScale=!0;var N=E.ensureState("emphasis");N.style=Dt(L);var O=s.getStore().get(s.getDimensionIndex(E.__dimIdx),p);(O==null||isNaN(O))&&(O=""),Sr(E,nr(y),{labelFetcher:s.hostModel,labelDataIndex:p,labelDimIndex:E.__dimIdx,defaultText:O,inheritColor:w,defaultOpacity:b.opacity})}),Pe(d,C.get("focus"),C.get("blurScope"),C.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e})(de),fW=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Kh(dt(this.getData,this),dt(this.getRawData,this))},e.prototype.getInitialData=function(t,a){return ac(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,f=nO(this,t);return ir("section",{header:u,sortBlocks:!0,blocks:st(s,function(v){var d=i.get(i.mapDimension(v.dim),t);return ir("nameValue",{markerType:"subItem",markerColor:f,name:v.name,value:d,sortParam:d})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues(st(n.dimensions,function(u){return a.mapDimension(u)}),t),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(i[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e})(Se),_f=$4.value;function ip(r,e){return wt({show:e},r)}var hW=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),v=this.get("axisNameGap"),d=this.get("triggerEvent"),p=st(this.get("indicator")||[],function(y){y.max!=null&&y.max>0&&!y.min?y.min=0:y.min!=null&&y.min<0&&!y.max&&(y.max=0);var m=l;y.color!=null&&(m=wt({color:y.color},l));var _=zt(Dt(y),{boundaryGap:t,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:y.text,showName:u,nameLocation:"end",nameGap:v,nameTextStyle:m,triggerEvent:d},!1);if(vt(f)){var S=_.name;_.name=f.replace("{value}",S??"")}else bt(f)&&(_.name=f(_.name,_));var b=new oe(_,null,this.ecModel);return Xe(b,Xh.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=p},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:zt({lineStyle:{color:"#bbb"}},_f.axisLine),axisLabel:ip(_f.axisLabel,!1),axisTick:ip(_f.axisTick,!1),splitLine:ip(_f.splitLine,!0),splitArea:ip(_f.splitArea,!0),indicator:[]},e})(jt),vW=["axisLine","axisTickLabel","axisName"],dW=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes(),i=st(n,function(o){var s=o.model.get("showName")?o.name:"",l=new Or(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});P(i,function(o){P(vW,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),v=s.get("show"),d=l.get("color"),p=u.get("color"),y=it(d)?d:[d],m=it(p)?p:[p],_=[],S=[];function b(F,B,j){var Y=j%B.length;return F[Y]=F[Y]||[],Y}if(i==="circle")for(var w=n[0].getTicksCoords(),A=a.cx,M=a.cy,C=0;C<w.length;C++){if(f){var L=b(_,y,C);_[L].push(new un({shape:{cx:A,cy:M,r:w[C].coord}}))}if(v&&C<w.length-1){var L=b(S,m,C);S[L].push(new zh({shape:{cx:A,cy:M,r0:w[C].coord,r:w[C+1].coord}}))}}else for(var E,R=st(n,function(F,B){var j=F.getTicksCoords();return E=E==null?j.length-1:Math.min(j.length-1,E),st(j,function(Y){return a.coordToPoint(Y.coord,B)})}),N=[],C=0;C<=E;C++){for(var O=[],k=0;k<n.length;k++)O.push(R[k][C]);if(O[0]&&O.push(O[0].slice()),f){var L=b(_,y,C);_[L].push(new Gr({shape:{points:O}}))}if(v&&N){var L=b(S,m,C-1);S[L].push(new Vr({shape:{points:O.concat(N)}}))}N=O.slice().reverse()}var G=l.getLineStyle(),H=u.getAreaStyle();P(S,function(F,B){this.group.add(Ba(F,{style:wt({stroke:"none",fill:m[B%m.length]},H),silent:!0}))},this),P(_,function(F,B){this.group.add(Ba(F,{style:wt({fill:"none",stroke:y[B%y.length]},G),silent:!0}))},this)},e.type="radar",e})(Ee),pW=(function(r){$(e,r);function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return e})(hn),gW=(function(){function r(e,t,a){this.dimensions=[],this._model=e,this._indicatorAxes=st(e.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new pW(o,new bi);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(e,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var a=this._indicatorAxes[t];return this.coordToPoint(a.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var a=this._indicatorAxes[t],n=a.angle,i=this.cx+e*Math.cos(n),o=this.cy-e*Math.sin(n);return[i,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=Math.sqrt(t*t+a*a);t/=n,a/=n;for(var i=Math.atan2(-a,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],v=Math.abs(i-f.angle);v<o&&(s=f,l=u,o=v)}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(e,t){var a=e.get("center"),n=t.getWidth(),i=t.getHeight(),o=Math.min(n,i)/2;this.cx=ft(a[0],n),this.cy=ft(a[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(vt(s)||Qt(s))&&(s=[0,s]),this.r0=ft(s[0],o),this.r=ft(s[1],o),P(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var f=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),l.angle=f},this)},r.prototype.update=function(e,t){var a=this._indicatorAxes,n=this._model;P(a,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==n)){var u=s.getData();P(a,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var i=n.get("splitNumber"),o=new bi;o.setExtent(0,i),o.setInterval(1),P(a,function(s,l){K4(s.scale,s.model,o)})},r.prototype.convertToPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var a=[];return e.eachComponent("radar",function(n){var i=new r(n,e,t);a.push(i),n.coordinateSystem=i}),e.eachSeriesByType("radar",function(n){n.get("coordinateSystem")==="radar"&&(n.coordinateSystem=a[n.get("radarIndex")||0])}),a},r.dimensions=[],r})();function yW(r){r.registerCoordinateSystem("radar",gW),r.registerComponentModel(hW),r.registerComponentView(dW),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(a){t.setItemVisual(a,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function mW(r){Ht(yW),r.registerChartView(cW),r.registerSeriesModel(fW),r.registerLayout(lW),r.registerProcessor($h("radar")),r.registerPreprocessor(uW)}var oR="\0_ec_interaction_mutex";function _W(r,e,t){var a=x2(r);a[e]=t}function xW(r,e,t){var a=x2(r),n=a[e];n===t&&(a[e]=null)}function sR(r,e){return!!x2(r)[e]}function x2(r){return r[oR]||(r[oR]={})}Vn({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Ge);var Qh=(function(r){$(e,r);function e(t){var a=r.call(this)||this;a._zr=t;var n=dt(a._mousedownHandler,a),i=dt(a._mousemoveHandler,a),o=dt(a._mouseupHandler,a),s=dt(a._mousewheelHandler,a),l=dt(a._pinchHandler,a);return a.enable=function(u,f){this.disable(),this._opt=wt(Dt(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(t.on("mousedown",n),t.on("mousemove",i),t.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(t.on("mousewheel",s),t.on("pinch",l))},a.disable=function(){t.off("mousedown",n),t.off("mousemove",i),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",l)},a}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!NC(t)){for(var a=t.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!Bp("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||sR(this._zr,"globalPan"))){var a=t.offsetX,n=t.offsetY,i=this._x,o=this._y,s=a-i,l=n-o;this._x=a,this._y=n,this._opt.preventDefaultMouseMove&&yi(t.event),nz(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:i,oldY:o,newX:a,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){NC(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var a=Bp("zoomOnMouseWheel",t,this._opt),n=Bp("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),s=t.offsetX,l=t.offsetY;if(!(i===0||!a&&!n)){if(a){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;g_(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var v=Math.abs(i),d=(i>0?1:-1)*(v>3?.4:v>1?.15:.05);g_(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!sR(this._zr,"globalPan")){var a=t.pinchScale>1?1.1:1/1.1;g_(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e})(ja);function g_(r,e,t,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(yi(a.event),nz(r,e,t,a,n))}function nz(r,e,t,a,n){n.isAvailableBehavior=dt(Bp,null,t,a),r.trigger(e,n)}function Bp(r,e,t){var a=t[r];return!r||a&&(!vt(a)||e.event[a+"Key"])}function S2(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function b2(r,e,t,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(t-n.x)*(u-1),n.y-=(a-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var SW={axisPointer:1,tooltip:1,brush:1};function by(r,e,t){var a=e.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==t&&!SW.hasOwnProperty(a.mainType)&&n&&n.model!==t}function iz(r){if(vt(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var y_,wg={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},lR=Yt(wg),Tg={"alignment-baseline":"textBaseline","stop-color":"stopColor"},uR=Yt(Tg),bW=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=iz(e);this._defsUsePending=[];var n=new Ct;this._root=n;var i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||t.width),l=parseFloat(a.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),ua(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;AW(this._defs,this._defsUsePending),this._defsUsePending=[];var f,v;if(o){var d=wy(o);d.length>=4&&(f={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(f&&s!=null&&l!=null&&(v=sz(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var p=n;n=new Ct,n.add(p),p.scaleX=p.scaleY=v.scale,p.x=v.x,p.y=v.y}return!t.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new Wt({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:v,named:i}},r.prototype._parseNode=function(e,t,a,n,i,o){var s=e.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var f=y_[s];if(f&&pt(y_,s)){l=f.call(this,e,t);var v=e.getAttribute("name");if(v){var d={name:v,namedFrom:null,svgNodeTagLower:s,el:l};a.push(d),s==="g"&&(u=d)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var p=cR[s];if(p&&pt(cR,s)){var y=p.call(this,e),m=e.getAttribute("id");m&&(this._defs[m]=y)}}if(l&&l.isGroup)for(var _=e.firstChild;_;)_.nodeType===1?this._parseNode(_,l,a,u,i,o):_.nodeType===3&&o&&this._parseText(_,l),_=_.nextSibling},r.prototype._parseText=function(e,t){var a=new Iu({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});La(t,a),ua(e,a,this._defsUsePending,!1,!1),wW(a,t);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=(function(){y_={g:function(e,t){var a=new Ct;return La(t,a),ua(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new Wt;return La(t,a),ua(e,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(e,t){var a=new un;return La(t,a),ua(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new er;return La(t,a),ua(e,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(e,t){var a=new ey;return La(t,a),ua(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(e,t){var a=e.getAttribute("points"),n;a&&(n=vR(a));var i=new Vr({shape:{points:n||[]},silent:!0});return La(t,i),ua(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var a=e.getAttribute("points"),n;a&&(n=vR(a));var i=new Gr({shape:{points:n||[]},silent:!0});return La(t,i),ua(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new hr;return La(t,a),ua(e,a,this._defsUsePending,!1,!1),a.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new Ct;return La(t,s),ua(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),n=e.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Ct;return La(t,s),ua(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var a=e.getAttribute("d")||"",n=K3(a);return La(t,n),ua(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),r})(),cR={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new Bh(e,t,a,n);return fR(r,i),hR(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new eP(e,t,a);return fR(r,n),hR(r,n),n}};function fR(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function hR(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var a=t.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};oz(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function La(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),wt(e.__inheritedStyle,r.__inheritedStyle))}function vR(r){for(var e=wy(r),t=[],a=0;a<e.length;a+=2){var n=parseFloat(e[a]),i=parseFloat(e[a+1]);t.push([n,i])}return t}function ua(r,e,t,a,n){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(MW(r,e),oz(r,o,s),a||LW(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=dR(i,"fill",o.fill,t)),o.stroke!=null&&(i.style.stroke=dR(i,"stroke",o.stroke,t)),P(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),P(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),n&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=st(wy(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function wW(r,e){var t=e.__selfStyle;if(t){var a=t.textBaseline,n=a;!a||a==="auto"||a==="baseline"?n="alphabetic":a==="before-edge"||a==="text-before-edge"?n="top":a==="after-edge"||a==="text-after-edge"?n="bottom":(a==="central"||a==="mathematical")&&(n="middle"),r.style.textBaseline=n}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var TW=/^url\(\s*#(.*?)\)/;function dR(r,e,t,a){var n=t&&t.match(TW);if(n){var i=rn(n[1]);a.push([r,e,i]);return}return t==="none"&&(t=null),t}function AW(r,e){for(var t=0;t<e.length;t++){var a=e[t];a[0].style[a[1]]=r[a[2]]}}var DW=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function wy(r){return r.match(DW)||[]}var CW=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,m_=Math.PI/180;function MW(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var a=[],n=null;t.replace(CW,function(v,d,p){return a.push(d,p),""});for(var i=a.length-1;i>0;i-=2){var o=a[i],s=a[i-1],l=wy(o);switch(n=n||Ua(),s){case"translate":Pn(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":_b(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":sl(n,n,-parseFloat(l[0])*m_);break;case"skewX":var u=Math.tan(parseFloat(l[0])*m_);vi(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*m_);vi(n,[1,f,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}e.setLocalTransform(n)}}var pR=/([^\s:;]+)\s*:\s*([^:;]+)/g;function oz(r,e,t){var a=r.getAttribute("style");if(a){pR.lastIndex=0;for(var n;(n=pR.exec(a))!=null;){var i=n[1],o=pt(wg,i)?wg[i]:null;o&&(e[o]=n[2]);var s=pt(Tg,i)?Tg[i]:null;s&&(t[s]=n[2])}}}function LW(r,e,t){for(var a=0;a<lR.length;a++){var n=lR[a],i=r.getAttribute(n);i!=null&&(e[wg[n]]=i)}for(var a=0;a<uR.length;a++){var n=uR[a],i=r.getAttribute(n);i!=null&&(t[Tg[n]]=i)}}function sz(r,e){var t=e.width/r.width,a=e.height/r.height,n=Math.min(t,a);return{scale:n,x:-(r.x+r.width/2)*n+(e.x+e.width/2),y:-(r.y+r.height/2)*n+(e.y+e.height/2)}}function EW(r,e){var t=new bW;return t.parse(r,e)}var RW=xt(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),IW=(function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=xt(),this._freedGraphics=[],this._mapName=e,this._parsedXML=iz(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=PW(e.named),a=t.regions,n=t.regionsMap;this._regions=a,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,a;try{t=e&&EW(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=t.root,zr(a!=null)}catch(_){throw new Error(`Invalid svg format
`+_.message)}var n=new Ct;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,v=void 0,d=void 0;if(i!=null?(u=0,v=i):s&&(u=s.x,v=s.width),o!=null?(f=0,d=o):s&&(f=s.y,d=s.height),u==null||f==null){var p=a.getBoundingRect();u==null&&(u=p.x,v=p.width),f==null&&(f=p.y,d=p.height)}l=this._boundingRect=new kt(u,f,v,d)}if(s){var y=sz(s,l);a.scaleX=a.scaleY=y.scale,a.x=y.x,a.y=y.y}n.setClipPath(new Wt({shape:l.plain()}));var m=[];return P(t.named,function(_){RW.get(_.svgNodeTagLower)!=null&&(m.push(_),NW(_.el))}),{root:n,boundingRect:l,named:m}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,a),a)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);a&&(t.removeKey(e),this._freedGraphics.push(a))},r})();function NW(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function PW(r){var e=[],t=xt();return P(r,function(a){if(a.namedFrom==null){var n=new EY(a.name,a.el);e.push(n),t.set(a.name,n)}}),{regions:e,regionsMap:t}}var MS=[126,25],gR="南海诸岛",Ds=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Ts=0;Ts<Ds.length;Ts++)for(var uu=0;uu<Ds[Ts].length;uu++)Ds[Ts][uu][0]/=10.5,Ds[Ts][uu][1]/=-10.5/.75,Ds[Ts][uu][0]+=MS[0],Ds[Ts][uu][1]+=MS[1];function OW(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===gR)return;e.push(new o4(gR,st(Ds,function(a){return{type:"polygon",exterior:a}}),MS))}}var zW={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function kW(r,e){if(r==="china"){var t=zW[e.name];if(t){var a=e.getCenter();a[0]+=t[0]/10.5,a[1]+=-t[1]/(10.5/.75),e.setCenter(a)}}}var BW=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function VW(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:BW[0]})}var GW="name",HW=(function(){function r(e,t,a){this.type="geoJSON",this._parsedMap=xt(),this._mapName=e,this._specialAreas=a,this._geoJSON=FW(t)}return r.prototype.load=function(e,t){t=t||GW;var a=this._parsedMap.get(t);if(!a){var n=this._parseToRegions(t);a=this._parsedMap.set(t,{regions:n,boundingRect:UW(n)})}var i=xt(),o=[];return P(a.regions,function(s){var l=s.name;e&&pt(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new kt(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,a=this._geoJSON,n;try{n=a?IY(a,e):[]}catch(i){throw new Error(`Invalid geoJson format
`+i.message)}return OW(t,n),P(n,function(i){var o=i.name;kW(t,i),VW(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r})();function UW(r){for(var e,t=0;t<r.length;t++){var a=r[t].getBoundingRect();e=e||a.clone(),e.union(a)}return e}function FW(r){return vt(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var xf=xt();const wi={registerMap:function(r,e,t){if(e.svg){var a=new IW(r,e.svg);xf.set(r,a)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?t=e.specialAreas:n=e;var a=new HW(r,n,t);xf.set(r,a)}},getGeoResource:function(r){return xf.get(r)},getMapForUser:function(r){var e=xf.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var a=xf.get(r);if(a)return a.load(e,t)}};var w2=["rect","circle","line","ellipse","polygon","polyline","path"],jW=xt(w2),YW=xt(w2.concat(["g"])),XW=xt(w2.concat(["g"])),lz=Kt();function op(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function yR(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var uz=(function(){function r(e){var t=new Ct;this.uid=$u("ec_map_draw"),this._controller=new Qh(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new Ct),t.add(this._svgGroup=new Ct)}return r.prototype.draw=function(e,t,a,n,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(S){!s&&S.getHostGeoModel()===e&&(s=S.getData())});var l=e.coordinateSystem,u=this._regionsGroup,f=this.group,v=l.getTransformInfo(),d=v.raw,p=v.roam,y=!u.childAt(0)||i;y?(f.x=p.x,f.y=p.y,f.scaleX=p.scaleX,f.scaleY=p.scaleY,f.dirty()):Jt(f,p,e);var m=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,_={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:m,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(_):l.resourceType==="geoSVG"&&this._buildSVG(_),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=xt(),a=xt(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(p,y){return y&&(p=y(p)),p&&[p[0]*i.scaleX+i.x,p[1]*i.scaleY+i.y]}function v(p){for(var y=[],m=!u&&l&&l.project,_=0;_<p.length;++_){var S=f(p[_],m);S&&y.push(S)}return y}function d(p){return{shape:{points:v(p)}}}n.removeAll(),P(e.geo.regions,function(p){var y=p.name,m=t.get(y),_=a.get(y)||{},S=_.dataIdx,b=_.regionModel;m||(m=t.set(y,new Ct),n.add(m),S=s?s.indexOfName(y):null,b=e.isGeo?o.getRegionModel(y):s?s.getItemModel(S):null,a.set(y,{dataIdx:S,regionModel:b}));var w=[],A=[];P(p.geometries,function(L){if(L.type==="polygon"){var E=[L.exterior].concat(L.interiors||[]);u&&(E=wR(E,u)),P(E,function(N){w.push(new Vr(d(N)))})}else{var R=L.points;u&&(R=wR(R,u,!0)),P(R,function(N){A.push(new Gr(d(N)))})}});var M=f(p.getCenter(),l&&l.project);function C(L,E){if(L.length){var R=new Pb({culling:!0,segmentIgnoreThreshold:1,shape:{paths:L}});m.add(R),mR(e,R,S,b),_R(e,R,y,b,o,S,M),E&&(yR(R),P(R.states,yR))}}C(w),C(A,!0)}),t.each(function(p,y){var m=a.get(y),_=m.dataIdx,S=m.regionModel;xR(e,p,y,S,o,_),SR(e,p,y,S,o),bR(e,p,y,S,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,a=e.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var n=this._svgDispatcherMap=xt(),i=!1;P(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,f=o.svgNodeTagLower,v=o.el,d=u?u.indexOfName(s):null,p=l.getRegionModel(s);if(jW.get(f)!=null&&v instanceof Fa&&mR(e,v,d,p),v instanceof Fa&&(v.culling=!0),v.z2EmphasisLift=0,!o.namedFrom&&(XW.get(f)!=null&&_R(e,v,s,p,l,d,null),xR(e,v,s,p,l,d),SR(e,v,s,p,l),YW.get(f)!=null)){var y=bR(e,v,s,p,l);y==="self"&&(i=!0);var m=n.get(s)||n.set(s,[]);m.push(v)}},this),this._enableBlurEntireSVG(i,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var a=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),n=a.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){rl(i);var o=i.ensureState("blur").style||{};o.opacity==null&&n!=null&&(o.opacity=n),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var a=t.coordinateSystem;if(a.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var i=n.get(e);return i?[i]:[]}}else if(a.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=wi.getGeoResource(e);if(t&&t.type==="geoSVG"){var a=t.useGraphic(this.uid);this._svgGroup.add(a.root),this._svgGraphicRecord=a,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=wi.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(e,t,a){var n=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=n.getZoom(),i.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,S2(o,u.dx,u.dy),a.dispatchAction(et(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,b2(o,u.scale,u.originX,u.originY),a.dispatchAction(et(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,f,v){return n.containPoint([f,v])&&!by(u,a,e)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=lz(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,a,n){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r})();function mR(r,e,t,a){var n=a.getModel("itemStyle"),i=a.getModel(["emphasis","itemStyle"]),o=a.getModel(["blur","itemStyle"]),s=a.getModel(["select","itemStyle"]),l=op(n),u=op(i),f=op(s),v=op(o),d=r.data;if(d){var p=d.getItemVisual(t,"style"),y=d.getItemVisual(t,"decal");r.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),y&&(l.decal=Ou(y,r.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=f,e.ensureState("blur").style=v,rl(e)}function _R(r,e,t,a,n,i,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),f=s&&s.getItemLayout(i);if(l||u||f&&f.showLabel){var v=l?t:i,d=void 0;(!s||i>=0)&&(d=n);var p=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Sr(e,nr(a),{labelFetcher:d,labelDataIndex:v,defaultText:t},p);var y=e.getTextContent();if(y&&(lz(y).ignore=y.ignore,e.textConfig&&o)){var m=e.getBoundingRect().clone();e.textConfig.layoutRect=m,e.textConfig.position=[(o[0]-m.x)/m.width*100+"%",(o[1]-m.y)/m.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function xR(r,e,t,a,n,i){r.data?r.data.setItemGraphicEl(i,e):Rt(e).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:t,region:a&&a.option||{}}}function SR(r,e,t,a,n){r.data||Wu({el:e,componentModel:n,itemName:t,itemTooltipOption:a.get("tooltip")})}function bR(r,e,t,a,n){e.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Pe(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&XH(e,n,t),o}function wR(r,e,t){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),P(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),a}var ZW=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===t.id){var s=this._mapDraw;s&&o.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new uz(n);o.add(s.group),s.draw(t,a,n,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&a.getComponent("legend")&&this._renderSymbols(t,a,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,a,n){var i=t.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var f=u.point,v=u.offset,d=new un({style:{fill:t.getData().getVisual("style").fill},shape:{cx:f[0]+v*9,cy:f[1],r:3},silent:!0,z2:8+(v?0:Xu+1)});if(!v){var p=t.mainSeries.getData(),y=i.getName(l),m=p.indexOfName(y),_=i.getItemModel(l),S=_.getModel("label"),b=p.getItemGraphicEl(m);Sr(d,nr(_),{labelFetcher:{getFormattedLabel:function(w,A){return t.getFormattedLabel(m,A)}},defaultText:y}),d.disableLabelAnimation=!0,S.get("position")||d.setTextConfig({position:"bottom"}),b.onHoverStateChange=function(w){ag(d,w)}}o.add(d)}}})},e.type="map",e})(de),WW=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(a){if(a!=null){var n=this.getData().getName(a),i=this.coordinateSystem,o=i.getRegion(n);return o&&i.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var a=ac(this,{coordDimensions:["value"],encodeDefaulter:It(Fb,this)}),n=xt(),i=[],o=0,s=a.count();o<s;o++){var l=a.getName(o);n.set(l,!0)}var u=wi.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return P(u.regions,function(f){var v=f.name;n.get(v)||i.push(v)}),a.appendValues([],i),a},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return t!=null?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var a=this.getData();return a.get(a.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var a=this.getData();return a.getItemModel(a.indexOfName(t))},e.prototype.formatTooltip=function(t,a,n){for(var i=this.getData(),o=this.getRawValue(t),s=i.getName(t),l=this.seriesGroup,u=[],f=0;f<l.length;f++){var v=l[f].originalData.indexOfName(s),d=i.mapDimension("value");isNaN(l[f].originalData.get(d,v))||u.push(l[f].name)}return ir("section",{header:u.join(", "),noHeader:!u.length,blocks:[ir("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var a=t.icon||"roundRect",n=Ye(a,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",a.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e})(Se);function qW(r,e){var t={};return P(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);t[o]=t[o]||[],isNaN(n)||t[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=t[i].length,f=0;f<u;f++)s=Math.min(s,t[i][f]),l=Math.max(l,t[i][f]),o+=t[i][f];var v;return e==="min"?v=s:e==="max"?v=l:e==="average"?v=o/u:v=o,u===0?NaN:v})}function $W(r){var e={};r.eachSeriesByType("map",function(t){var a=t.getHostGeoModel(),n=a?"o"+a.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)}),P(e,function(t,a){for(var n=qW(st(t,function(o){return o.getData()}),t[0].get("mapValueCalculation")),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(var i=0;i<t.length;i++)t[i].seriesGroup=t,t[i].needsDrawMap=i===0&&!t[i].getHostGeoModel(),t[i].setData(n.cloneShallow()),t[i].mainSeries=t[0]})}function KW(r){var e={};r.eachSeriesByType("map",function(t){var a=t.getMapType();if(!(t.getHostGeoModel()||e[a])){var n={};P(t.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,f){var v=l.getName(f),d=s.getRegion(v);if(!(!d||isNaN(u))){var p=n[v]||0,y=s.dataToPoint(d.getCenter());n[v]=p+1,l.setItemLayout(f,{point:y,offset:p})}})});var i=t.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!n[s],i.setItemLayout(o,l)}),e[a]=!0}})}var TR=_r,Jh=(function(r){$(e,r);function e(t){var a=r.call(this)||this;return a.type="view",a.dimensions=["x","y"],a._roamTransformable=new ci,a._rawTransformable=new ci,a.name=t,a}return e.prototype.setBoundingRect=function(t,a,n,i){return this._rect=new kt(t,a,n,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,a,n,i){this._transformTo(t,a,n,i),this._viewRect=new kt(t,a,n,i)},e.prototype._transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new kt(t,a,n,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t,a){t&&(this._center=[ft(t[0],a.getWidth()),ft(t[1],a.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var a=this.zoomLimit;a&&(a.max!=null&&(t=Math.min(a.max,t)),a.min!=null&&(t=Math.max(a.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),a=t.x+t.width/2,n=t.y+t.height/2;return[a,n]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),a=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=_r([],i,t),n=_r([],n,t),a.originX=i[0],a.originY=i[1],a.x=n[0]-i[0],a.y=n[1]-i[1],a.scaleX=a.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,a=this._rawTransformable;a.parent=t,t.updateTransform(),a.updateTransform(),mb(this.transform||(this.transform=[]),a.transform||Ua()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],ju(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,a=this._roamTransformable,n=new ci;return n.transform=a.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,a,n){var i=a?this._rawTransform:this.transform;return n=n||[],i?TR(n,t,i):Rr(n,t)},e.prototype.pointToData=function(t){var a=this.invTransform;return a?TR([],t,a):[t[0],t[1]]},e.prototype.convertToPixel=function(t,a,n){var i=AR(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=AR(a);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e})(ci);function AR(r){var e=r.seriesModel;return e?e.coordinateSystem:null}var QW={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},cz=["lng","lat"],LS=(function(r){$(e,r);function e(t,a,n){var i=r.call(this,t)||this;i.dimensions=cz,i.type="geo",i._nameCoordMap=xt(),i.map=a;var o=n.projection,s=wi.load(a,n.nameMap,n.nameProperty),l=wi.getGeoResource(a);i.resourceType=l?l.type:null;var u=i.regions=s.regions,f=QW[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var v;if(o)for(var d=0;d<u.length;d++){var p=u[d].getBoundingRect(o);v=v||p.clone(),v.union(p)}else v=s.boundingRect;return i.setBoundingRect(v.x,v.y,v.width,v.height),i.aspectScale=o?1:Ot(n.aspectScale,f.aspectScale),i._invertLongitute=o?!1:f.invertLongitute,i}return e.prototype._transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new kt(t,a,n,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var a=this.regions,n=0;n<a.length;n++){var i=a[n];if(i.type==="geoJSON"&&i.contain(t))return a[n]}},e.prototype.addGeoCoord=function(t,a){this._nameCoordMap.set(t,a)},e.prototype.getGeoCoord=function(t){var a=this._regionsMap.get(t);return this._nameCoordMap.get(t)||a&&a.getCenter()},e.prototype.dataToPoint=function(t,a,n){if(vt(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,a,n)}},e.prototype.pointToData=function(t){var a=this.projection;return a&&(t=a.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return r.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,a,n){return r.prototype.dataToPoint.call(this,t,a,n)},e.prototype.convertToPixel=function(t,a,n){var i=DR(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=DR(a);return i===this?i.pointToData(n):null},e})(Jh);Xe(LS,Jh);function DR(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",je).models[0]||{}).coordinateSystem:null}function CR(r,e){var t=r.get("boundingCoords");if(t!=null){var a=t[0],n=t[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])){var i=this.projection;if(i){var o=a[0],s=a[1],l=n[0],u=n[1];a=[1/0,1/0],n=[-1/0,-1/0];var f=function(C,L,E,R){for(var N=E-C,O=R-L,k=0;k<=100;k++){var G=k/100,H=i.project([C+N*G,L+O*G]);vo(a,a,H),po(n,n,H)}};f(o,s,l,s),f(l,s,l,u),f(l,u,o,u),f(o,u,l,s)}this.setBoundingRect(a[0],a[1],n[0]-a[0],n[1]-a[1])}}var v=this.getBoundingRect(),d=r.get("layoutCenter"),p=r.get("layoutSize"),y=e.getWidth(),m=e.getHeight(),_=v.width/v.height*this.aspectScale,S=!1,b,w;d&&p&&(b=[ft(d[0],y),ft(d[1],m)],w=ft(p,Math.min(y,m)),!isNaN(b[0])&&!isNaN(b[1])&&!isNaN(w)&&(S=!0));var A;if(S)A={},_>1?(A.width=w,A.height=w/_):(A.height=w,A.width=w*_),A.y=b[1]-A.height/2,A.x=b[0]-A.width/2;else{var M=r.getBoxLayoutParams();M.aspect=_,A=Qe(M,{width:y,height:m})}this.setViewRect(A.x,A.y,A.width,A.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function JW(r,e){P(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var tq=(function(){function r(){this.dimensions=cz}return r.prototype.create=function(e,t){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new LS(l+s,l,et({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=CR,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),P(i,function(o,s){var l=st(o,function(f){return f.get("nameMap")}),u=new LS(s,s,et({nameMap:db(l)},n(o[0])));u.zoomLimit=fr.apply(null,st(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=CR,u.resize(o[0],t),P(o,function(f){f.coordinateSystem=u,JW(u,f)})}),a},r.prototype.getFilledRegions=function(e,t,a,n){for(var i=(e||[]).slice(),o=xt(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=wi.load(t,a,n);return P(l.regions,function(u){var f=u.name;!o.get(f)&&i.push({name:f})}),i},r})(),fz=new tq,eq=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,n){var i=wi.getGeoResource(t.map);if(i&&i.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,n),Js(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,a=this.option;a.regions=fz.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var n={};this._optionModelMap=Nn(a.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new oe(o,t,t.ecModel)),o.selected&&(n[s]=!0)),i},xt()),a.selectedMap||(a.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new oe(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,a){var n=this.getRegionModel(t),i=a==="normal"?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:t};if(bt(i))return o.status=a,i(o);if(vt(i))return i.replace("{a}",t??"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var a=this.option,n=a.selectedMode;if(n){n!=="multiple"&&(a.selectedMap=null);var i=a.selectedMap||(a.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var a=this.option.selectedMap;a&&(a[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var a=this.option.selectedMap;return!!(a&&a[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e})(jt);function MR(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function T2(r,e,t,a){var n=r.getZoom(),i=r.getCenter(),o=e.zoom,s=r.projectedToPoint?r.projectedToPoint(i):r.dataToPoint(i);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,r.setCenter(MR(r,s),a)),o!=null){if(t){var l=t.min||0,u=t.max||1/0;o=Math.max(Math.min(n*o,u),l)/n}r.scaleX*=o,r.scaleY*=o;var f=(e.originX-r.x)*(o-1),v=(e.originY-r.y)*(o-1);r.x-=f,r.y-=v,r.updateTransform(),r.setCenter(MR(r,s),a),r.setZoom(o*n)}return{center:r.getCenter(),zoom:r.getZoom()}}var rq=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,a){this._api=a},e.prototype.render=function(t,a,n,i){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new uz(n));var o=this._mapDraw;o.draw(t,a,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,a,n)},e.prototype._handleRegionClick=function(t){var a;Vs(t.target,function(n){return(a=Rt(n).eventData)!=null},!0),a&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:a.name})},e.prototype.updateSelectStatus=function(t,a,n){var i=this;this._mapDraw.group.traverse(function(o){var s=Rt(o).eventData;if(s)return i._model.isSelected(s.name)?n.enterSelect(o):n.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e})(Ee);function aq(r,e,t){wi.registerMap(r,e,t)}function hz(r){r.registerCoordinateSystem("geo",fz),r.registerComponentModel(eq),r.registerComponentView(rq),r.registerImpl("registerMap",aq),r.registerImpl("getMap",function(t){return wi.getMapForUser(t)});function e(t,a){a.update="geo:updateSelectStatus",r.registerAction(a,function(n,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:n},function(l){l[t](n.name);var u=l.coordinateSystem;P(u.regions,function(v){o[v.name]=l.isSelected(v.name)||!1});var f=[];P(o,function(v,d){o[d]&&f.push(d)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:n.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,a,n){var i=t.componentType||"series";a.eachComponent({mainType:i,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=T2(s,t,o.get("scaleLimit"),n);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&P(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function nq(r){Ht(hz),r.registerChartView(ZW),r.registerSeriesModel(WW),r.registerLayout(KW),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,$W),gO("map",r.registerAction)}function iq(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],a,n;a=t.pop();)if(n=a.children,a.isExpand&&n.length)for(var i=n.length,o=i-1;o>=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function oq(r,e){var t=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(t.length){uq(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+e(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+e(r,n));r.parentNode.hierNode.defaultAncestor=cq(r,n,r.parentNode.hierNode.defaultAncestor||a[0],e)}function sq(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function LR(r){return arguments.length?r:vq}function kf(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function lq(r,e){return Qe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function uq(r){for(var e=r.children,t=e.length,a=0,n=0;--t>=0;){var i=e[t];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function cq(r,e,t,a){if(e){for(var n=r,i=r,o=i.parentNode.children[0],s=e,l=n.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,v=s.hierNode.modifier;s=__(s),i=x_(i),s&&i;){n=__(n),o=x_(o),n.hierNode.ancestor=r;var d=s.hierNode.prelim+v-i.hierNode.prelim-u+a(s,i);d>0&&(hq(fq(s,r,t),r,d),u+=d,l+=d),v+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,f+=o.hierNode.modifier}s&&!__(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=v-l),i&&!x_(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,t=r)}return t}function __(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function x_(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function fq(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function hq(r,e,t){var a=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=a,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=a}function vq(r,e){return r.parentNode===e.parentNode?1:2}var dq=(function(){function r(){this.parentPoint=[],this.childPoints=[]}return r})(),pq=(function(r){$(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new dq},e.prototype.buildPath=function(t,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=a.orient,f=u==="TB"||u==="BT"?0:1,v=1-f,d=ft(a.forkPosition,1),p=[];p[f]=o[f],p[v]=o[v]+(l[v]-o[v])*d,t.moveTo(o[0],o[1]),t.lineTo(p[0],p[1]),t.moveTo(s[0],s[1]),p[f]=s[f],t.lineTo(p[0],p[1]),p[f]=l[f],t.lineTo(p[0],p[1]),t.lineTo(l[0],l[1]);for(var y=1;y<i-1;y++){var m=n[y];t.moveTo(m[0],m[1]),p[f]=m[f],t.lineTo(p[0],p[1])}},e})(Ut),gq=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new Ct,t}return e.prototype.init=function(t,a){this._controller=new Qh(a.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,a,n){var i=t.getData(),o=t.layoutInfo,s=this._mainGroup,l=t.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,n),this._updateController(t,a,n);var u=this._data;i.diff(u).add(function(f){ER(i,f)&&RR(i,f,null,s,t)}).update(function(f,v){var d=u.getItemGraphicEl(v);if(!ER(i,f)){d&&NR(u,v,d,s,t);return}RR(i,f,d,s,t)}).remove(function(f){var v=u.getItemGraphicEl(f);v&&NR(u,f,v,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(f,v){f.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:v})})}),this._data=i},e.prototype._updateViewCoordSys=function(t,a){var n=t.getData(),i=[];n.each(function(v){var d=n.getItemLayout(v);d&&!isNaN(d.x)&&!isNaN(d.y)&&i.push([+d.x,+d.y])});var o=[],s=[];Qg(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var f=t.coordinateSystem=new Jh;f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),f.setCenter(t.get("center"),a),f.setZoom(t.get("zoom")),this.group.attr({x:f.x,y:f.y,scaleX:f.scaleX,scaleY:f.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(t,a,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,f,v){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(f,v)&&!by(u,n,t)}),o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){S2(s,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){b2(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(t),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var a=t.getData(),n=this._getNodeGlobalScale(t);a.eachItemGraphicEl(function(i,o){i.setSymbolScale(n)})},e.prototype._getNodeGlobalScale=function(t){var a=t.coordinateSystem;if(a.type!=="view")return 1;var n=this._nodeScaleRatio,i=a.scaleX||1,o=a.getZoom(),s=(o-1)*n+1;return s/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e})(de);function ER(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function RR(r,e,t,a,n){var i=!t,o=r.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",f=r.tree.root,v=o.parentNode===f?o:o.parentNode||o,d=r.getItemGraphicEl(v.dataIndex),p=v.getLayout(),y=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:p,m=o.getLayout();i?(t=new Zh(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=y.x,t.y=y.y):t.updateData(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=m.rawX,t.__radialRawY=m.rawY,a.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,Jt(t,{x:m.x,y:m.y},n);var _=t.getSymbolPath();if(n.get("layout")==="radial"){var S=f.children[0],b=S.getLayout(),w=S.children.length,A=void 0,M=void 0;if(m.x===b.x&&o.isExpand===!0&&S.children.length){var C={x:(S.children[0].getLayout().x+S.children[w-1].getLayout().x)/2,y:(S.children[0].getLayout().y+S.children[w-1].getLayout().y)/2};A=Math.atan2(C.y-b.y,C.x-b.x),A<0&&(A=Math.PI*2+A),M=C.x<b.x,M&&(A=A-Math.PI)}else A=Math.atan2(m.y-b.y,m.x-b.x),A<0&&(A=Math.PI*2+A),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(M=m.x<b.x,M&&(A=A-Math.PI)):(M=m.x>b.x,M||(A=A-Math.PI));var L=M?"left":"right",E=s.getModel("label"),R=E.get("rotate"),N=R*(Math.PI/180),O=_.getTextContent();O&&(_.setTextConfig({position:E.get("position")||L,rotation:R==null?-A:N,origin:"center"}),O.setStyle("verticalAlign","middle"))}var k=s.get(["emphasis","focus"]),G=k==="relative"?Xp(o.getAncestorsIndices(),o.getDescendantIndices()):k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():null;G&&(Rt(t).focus=G),yq(n,o,f,t,y,p,m,a),t.__edge&&(t.onHoverStateChange=function(H){if(H!=="blur"){var F=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);F&&F.hoverState===Oh||ag(t.__edge,H)}})}function yq(r,e,t,a,n,i,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),v=r.getOrient(),d=r.get(["lineStyle","curveness"]),p=r.get("edgeForkPosition"),y=l.getModel("lineStyle").getLineStyle(),m=a.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(m||(m=a.__edge=new kh({shape:ES(f,v,d,n,n)})),Jt(m,{shape:ES(f,v,d,i,o)},r));else if(u==="polyline"&&f==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var _=e.children,S=[],b=0;b<_.length;b++){var w=_[b].getLayout();S.push([w.x,w.y])}m||(m=a.__edge=new pq({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:v,forkPosition:p}})),Jt(m,{shape:{parentPoint:[o.x,o.y],childPoints:S}},r)}m&&!(u==="polyline"&&!e.isExpand)&&(m.useStyle(wt({strokeNoScale:!0,fill:null},y)),xr(m,l,"lineStyle"),rl(m),s.add(m))}function IR(r,e,t,a,n){var i=e.tree.root,o=vz(i,r),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(r.dataIndex);if(u){var f=e.getItemGraphicEl(s.dataIndex),v=f.__edge,d=u.__edge||(s.isExpand===!1||s.children.length===1?v:void 0),p=a.get("edgeShape"),y=a.get("layout"),m=a.get("orient"),_=a.get(["lineStyle","curveness"]);d&&(p==="curve"?Eo(d,{shape:ES(y,m,_,l,l),style:{opacity:0}},a,{cb:function(){t.remove(d)},removeOpt:n}):p==="polyline"&&a.get("layout")==="orthogonal"&&Eo(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},a,{cb:function(){t.remove(d)},removeOpt:n}))}}function vz(r,e){for(var t=e.parentNode===r?e:e.parentNode||e,a;a=t.getLayout(),a==null;)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:a}}function NR(r,e,t,a,n){var i=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=vz(o,i).sourceLayout,l={duration:n.get("animationDurationUpdate"),easing:n.get("animationEasingUpdate")};Eo(t,{x:s.x+1,y:s.y+1},n,{cb:function(){a.remove(t),r.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){IR(u,r,a,n,l)}),IR(i,r,a,n,l)}function ES(r,e,t,a,n){var i,o,s,l,u,f,v,d;if(r==="radial"){u=a.rawX,v=a.rawY,f=n.rawX,d=n.rawY;var p=kf(u,v),y=kf(u,v+(d-v)*t),m=kf(f,d+(v-d)*t),_=kf(f,d);return{x1:p.x||0,y1:p.y||0,x2:_.x||0,y2:_.y||0,cpx1:y.x||0,cpy1:y.y||0,cpx2:m.x||0,cpy2:m.y||0}}else u=a.x,v=a.y,f=n.x,d=n.y,(e==="LR"||e==="RL")&&(i=u+(f-u)*t,o=v,s=f+(u-f)*t,l=d),(e==="TB"||e==="BT")&&(i=u,o=v+(d-v)*t,s=f,l=d+(v-d)*t);return{x1:u,y1:v,x2:f,y2:d,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}var Ha=Kt();function dz(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,pz(e,t,r),P(t,function(a){P(e.TRANSFERABLE_METHODS,function(n){a.wrapMethod(n,It(mq,r))})}),e.wrapMethod("cloneShallow",It(xq,r)),P(e.CHANGABLE_METHODS,function(a){e.wrapMethod(a,It(_q,r))}),zr(t[e.dataType]===e)}function mq(r,e){if(wq(this)){var t=et({},Ha(this).datas);t[this.dataType]=e,pz(e,t,r)}else A2(e,this.dataType,Ha(this).mainData,r);return e}function _q(r,e){return r.struct&&r.struct.update(),e}function xq(r,e){return P(Ha(e).datas,function(t,a){t!==e&&A2(t.cloneShallow(),a,e,r)}),e}function Sq(r){var e=Ha(this).mainData;return r==null||e==null?e:Ha(e).datas[r]}function bq(){var r=Ha(this).mainData;return r==null?[{data:r}]:st(Yt(Ha(r).datas),function(e){return{type:e,data:Ha(r).datas[e]}})}function wq(r){return Ha(r).mainData===r}function pz(r,e,t){Ha(r).datas={},P(e,function(a,n){A2(a,n,r,t)})}function A2(r,e,t,a){Ha(t).datas[e]=r,Ha(r).mainData=t,r.dataType=e,a.struct&&(r[a.structAttr]=a.struct,a.struct[a.datasAttr[e]]=r),r.getLinkedData=Sq,r.getLinkedDataAll=bq}var Tq=(function(){function r(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,a){bt(e)&&(a=t,t=e,e=null),e=e||{},vt(e)&&(e={order:e});var n=e.order||"preorder",i=this[e.attr||"children"],o;n==="preorder"&&(o=t.call(a,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,t,a);n==="postorder"&&t.call(a,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var a=0;a<this.children.length;a++){var n=this.children[a];n.updateDepthAndHeight(e+1),n.height>t&&(t=n.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,a=this.children,n=a.length;t<n;t++){var i=a[t].getNodeById(e);if(i)return i}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,a=this.children,n=a.length;t<n;t++){var i=a[t].contains(e);if(i)return i}},r.prototype.getAncestors=function(e){for(var t=[],a=e?this:this.parentNode;a;)t.push(a),a=a.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},r.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r})(),D2=(function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,a){this.root.eachNode(e,t,a)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){for(var e=this.data,t=this._nodes,a=0,n=t.length;a<n;a++)t[a].dataIndex=-1;for(var a=0,n=e.count();a<n;a++)t[e.getRawIndex(a)].dataIndex=a},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,a){var n=new r(t),i=[],o=1;s(e);function s(f,v){var d=f.value;o=Math.max(o,it(d)?d.length:1),i.push(f);var p=new Tq(Ke(f.name,""),n);v?Aq(p,v):n.root=p,n._nodes.push(p);var y=f.children;if(y)for(var m=0;m<y.length;m++)s(y[m],p)}n.root.updateDepthAndHeight(0);var l=jh(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Pr(l,t);return u.initData(i),a&&a(u),dz({mainData:u,struct:n,structAttr:"tree"}),n.update(),n},r})();function Aq(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}function Th(r,e,t){if(r&&Vt(e,r.type)>=0){var a=t.getData().tree.root,n=r.targetNode;if(vt(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function gz(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function C2(r,e){var t=gz(r);return Vt(t,e)>=0}function Ty(r,e){for(var t=[];r;){var a=r.dataIndex;t.push({name:r.name,dataIndex:a,value:e.getRawValue(a)}),r=r.parentNode}return t.reverse(),t}var Dq=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var a={name:t.name,children:t.data},n=t.leaves||{},i=new oe(n,this,this.ecModel),o=D2.createTree(a,this,s);function s(v){v.wrapMethod("getItemModel",function(d,p){var y=o.getNodeByDataIndex(p);return y&&y.children.length&&y.isExpand||(d.parentModel=i),d})}var l=0;o.eachNode("preorder",function(v){v.depth>l&&(l=v.depth)});var u=t.expandAndCollapse,f=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(v){var d=v.hostTree.data.getRawDataItem(v.dataIndex);v.isExpand=d&&d.collapsed!=null?!d.collapsed:v.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return ir("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=Ty(n,this),a.collapsed=!n.isExpand,a},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e})(Se);function Cq(r,e,t){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)a.push(o[s])}for(;i=n.pop();)e(i,t)}function Sf(r,e){for(var t=[r],a;a=t.pop();)if(e(a),a.isExpand){var n=a.children;if(n.length)for(var i=n.length-1;i>=0;i--)t.push(n[i])}}function Mq(r,e){r.eachSeriesByType("tree",function(t){Lq(t,e)})}function Lq(r,e){var t=lq(r,e);r.layoutInfo=t;var a=r.get("layout"),n=0,i=0,o=null;a==="radial"?(n=2*Math.PI,i=Math.min(t.height,t.width)/2,o=LR(function(w,A){return(w.parentNode===A.parentNode?1:2)/w.depth})):(n=t.width,i=t.height,o=LR());var s=r.getData().tree.root,l=s.children[0];if(l){iq(s),Cq(l,oq,o),s.hierNode.modifier=-l.hierNode.prelim,Sf(l,sq);var u=l,f=l,v=l;Sf(l,function(w){var A=w.getLayout().x;A<u.getLayout().x&&(u=w),A>f.getLayout().x&&(f=w),w.depth>v.depth&&(v=w)});var d=u===f?1:o(u,f)/2,p=d-u.getLayout().x,y=0,m=0,_=0,S=0;if(a==="radial")y=n/(f.getLayout().x+d+p),m=i/(v.depth-1||1),Sf(l,function(w){_=(w.getLayout().x+p)*y,S=(w.depth-1)*m;var A=kf(_,S);w.setLayout({x:A.x,y:A.y,rawX:_,rawY:S},!0)});else{var b=r.getOrient();b==="RL"||b==="LR"?(m=i/(f.getLayout().x+d+p),y=n/(v.depth-1||1),Sf(l,function(w){S=(w.getLayout().x+p)*m,_=b==="LR"?(w.depth-1)*y:n-(w.depth-1)*y,w.setLayout({x:_,y:S},!0)})):(b==="TB"||b==="BT")&&(y=n/(f.getLayout().x+d+p),m=i/(v.depth-1||1),Sf(l,function(w){_=(w.getLayout().x+p)*y,S=b==="TB"?(w.depth-1)*m:i-(w.depth-1)*m,w.setLayout({x:_,y:S},!0)}))}}}function Eq(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),a=t.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(n.dataIndex,"style");et(s,o)})})}function Rq(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var n=e.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,a){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var i=n.coordinateSystem,o=T2(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}function Iq(r){r.registerChartView(gq),r.registerSeriesModel(Dq),r.registerLayout(Mq),r.registerVisual(Eq),Rq(r)}var PR=["treemapZoomToNode","treemapRender","treemapMove"];function Nq(r){for(var e=0;e<PR.length;e++)r.registerAction({type:PR[e],update:"updateView"},Ge);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,a){a.eachComponent({mainType:"series",subType:"treemap",query:t},n);function n(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Th(t,s,i);if(l){var u=i.getViewRoot();u&&(t.direction=C2(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function yz(r){var e=r.getData(),t=e.tree,a={};t.eachNode(function(n){for(var i=n;i&&i.depth>1;)i=i.parentNode;var o=nS(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var Pq=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};mz(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new oe({itemStyle:o},this,a);i=t.levels=Oq(i,a);var l=st(i||[],function(v){return new oe(v,s,a)},this),u=D2.createTree(n,this,f);function f(v){v.wrapMethod("getItemModel",function(d,p){var y=u.getNodeByDataIndex(p),m=y?l[y.depth]:null;return d.parentModel=m||s,d})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return ir("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=Ty(n,this),a.treePathInfo=a.treeAncestors,a},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},et(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var a=this._idIndexMap;a||(a=this._idIndexMap=xt(),this._idIndexMapCount=0);var n=a.get(t);return n==null&&a.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){yz(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e})(Se);function mz(r){var e=0;P(r.children,function(a){mz(a);var n=a.value;it(n)&&(n=n[0]),e+=n});var t=r.value;it(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),it(r.value)?r.value[0]=t:r.value=t}function Oq(r,e){var t=he(e.get("color")),a=he(e.get(["aria","decal","decals"]));if(t){r=r||[];var n,i;P(r,function(s){var l=new oe(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=t.slice()),!i&&a&&(o.decal=a.slice()),r}}var zq=8,OR=8,S_=5,kq=(function(){function r(e){this.group=new Ct,e.add(this.group)}return r.prototype.render=function(e,t,a,n){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!a)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),v={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,v,u),this._renderContent(e,v,s,l,u,f,n),fy(o,v.pos,v.box)}},r.prototype._prepare=function(e,t,a){for(var n=e;n;n=n.parentNode){var i=Ke(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+zq*2,t.emptyItemWidth);t.totalWidth+=s+OR,t.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(e,t,a,n,i,o,s){for(var l=0,u=t.emptyItemWidth,f=e.get(["breadcrumb","height"]),v=W9(t.pos,t.box),d=t.totalWidth,p=t.renderList,y=n.getModel("itemStyle").getItemStyle(),m=p.length-1;m>=0;m--){var _=p[m],S=_.node,b=_.width,w=_.text;d>v.width&&(d-=b-u,b=u,w=null);var A=new Vr({shape:{points:Bq(l,0,b,f,m===p.length-1,m===0)},style:wt(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new $t({style:xe(i,{text:w})}),textConfig:{position:"inside"},z2:Xu*1e4,onclick:It(s,S)});A.disableLabelAnimation=!0,A.getTextContent().ensureState("emphasis").style=xe(o,{text:w}),A.ensureState("emphasis").style=y,Pe(A,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(A),Vq(A,e,S),l+=b+OR}},r.prototype.remove=function(){this.group.removeAll()},r})();function Bq(r,e,t,a,n,i){var o=[[n?r:r-S_,e],[r+t,e],[r+t,e+a],[n?r:r-S_,e+a]];return!i&&o.splice(2,0,[r+t+S_,e+a/2]),!n&&o.push([r,e+a/2]),o}function Vq(r,e,t){Rt(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&Ty(t,e)}}var Gq=(function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,a,n,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,a=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},n=0,i=this._storage.length;n<i;n++){var o=this._storage[n];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:a,aborted:a})}return this},r})();function Hq(){return new Gq}var RS=Ct,zR=Wt,kR=3,BR="label",VR="upperLabel",Uq=Xu*10,Fq=Xu*2,jq=Xu*3,Cs=el([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),GR=function(r){var e=Cs(r);return e.stroke=e.fill=e.lineWidth=null,e},Ag=Kt(),Yq=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=bf(),t}return e.prototype.render=function(t,a,n,i){var o=a.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Vt(o,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=a;var s=["treemapZoomToNode","treemapRootToNode"],l=Th(i,s,t),u=i&&i.type,f=t.layoutInfo,v=!this._oldTree,d=this._storage,p=u==="treemapRootToNode"&&l&&d?{rootNodeGroup:d.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,y=this._giveContainerGroup(f),m=t.get("animation"),_=this._doRender(y,t,p);m&&!v&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(y,_,t,p):_.renderFinally(),this._resetController(n),this._renderBreadcrumb(t,n,l)}},e.prototype._giveContainerGroup=function(t){var a=this._containerGroup;return a||(a=this._containerGroup=new RS,this._initEvents(a),this.group.add(a)),a.x=t.x,a.y=t.y,a},e.prototype._doRender=function(t,a,n){var i=a.getData().tree,o=this._oldTree,s=bf(),l=bf(),u=this._storage,f=[];function v(_,S,b,w){return Xq(a,l,u,n,s,f,_,S,b,w)}p(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var d=y(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:d,renderFinally:m};function p(_,S,b,w,A){w?(S=_,P(_,function(L,E){!L.isRemoved()&&C(E,E)})):new Si(S,_,M,M).add(C).update(C).remove(It(C,null)).execute();function M(L){return L.getId()}function C(L,E){var R=L!=null?_[L]:null,N=E!=null?S[E]:null,O=v(R,N,b,A);O&&p(R&&R.viewChildren||[],N&&N.viewChildren||[],O,w,A+1)}}function y(_){var S=bf();return _&&P(_,function(b,w){var A=S[w];P(b,function(M){M&&(A.push(M),Ag(M).willDelete=!0)})}),S}function m(){P(d,function(_){P(_,function(S){S.parent&&S.parent.remove(S)})}),P(f,function(_){_.invisible=!0,_.dirty()})}},e.prototype._doAnimation=function(t,a,n,i){var o=n.get("animationDurationUpdate"),s=n.get("animationEasing"),l=(bt(o)?0:o)||0,u=(bt(s)?null:s)||"cubicOut",f=Hq();P(a.willDeleteEls,function(v,d){P(v,function(p,y){if(!p.invisible){var m=p.parent,_,S=Ag(m);if(i&&i.direction==="drillDown")_=m===i.rootNodeGroup?{shape:{x:0,y:0,width:S.nodeWidth,height:S.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var b=0,w=0;S.willDelete||(b=S.nodeWidth/2,w=S.nodeHeight/2),_=d==="nodeGroup"?{x:b,y:w,style:{opacity:0}}:{shape:{x:b,y:w,width:0,height:0},style:{opacity:0}}}_&&f.add(p,_,l,0,u)}})}),P(this._storage,function(v,d){P(v,function(p,y){var m=a.lastsForAnimation[d][y],_={};m&&(p instanceof Ct?m.oldX!=null&&(_.x=p.x,_.y=p.y,p.x=m.oldX,p.y=m.oldY):(m.oldShape&&(_.shape=et({},p.shape),p.setShape(m.oldShape)),m.fadein?(p.setStyle("opacity",0),_.style={opacity:1}):p.style.opacity!==1&&(_.style={opacity:1})),f.add(p,_,l,0,u))})},this),this._state="animating",f.finished(dt(function(){this._state="ready",a.renderFinally()},this)).start()},e.prototype._resetController=function(t){var a=this._controller;a||(a=this._controller=new Qh(t.getZr()),a.enable(this.seriesModel.get("roam")),a.on("pan",dt(this._onPan,this)),a.on("zoom",dt(this._onZoom,this)));var n=new kt(0,0,t.getWidth(),t.getHeight());a.setPointerChecker(function(i,o,s){return n.contain(o,s)})},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>kR||Math.abs(t.dy)>kR)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var a=t.originX,n=t.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new kt(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;a-=l.x,n-=l.y;var u=Ua();Pn(u,u,[-a,-n]),_b(u,u,[t.scale,t.scale]),Pn(u,u,[a,n]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var a=this;t.on("click",function(n){if(a._state==="ready"){var i=a.seriesModel.get("nodeClick",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(i==="zoomToNode")a._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&ug(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,a,n){var i=this;n||(n=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new kq(this.group))).render(t,a,n.node,function(o){i._state!=="animating"&&(C2(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=bf(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,a){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},e.type="treemap",e})(de);function bf(){return{nodeGroup:[],background:[],content:[]}}function Xq(r,e,t,a,n,i,o,s,l,u){if(!o)return;var f=o.getLayout(),v=r.getData(),d=o.getModel();if(v.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var p=f.width,y=f.height,m=f.borderWidth,_=f.invisible,S=o.getRawIndex(),b=s&&s.getRawIndex(),w=o.viewChildren,A=f.upperHeight,M=w&&w.length,C=d.getModel("itemStyle"),L=d.getModel(["emphasis","itemStyle"]),E=d.getModel(["blur","itemStyle"]),R=d.getModel(["select","itemStyle"]),N=C.get("borderRadius")||0,O=ot("nodeGroup",RS);if(!O)return;if(l.add(O),O.x=f.x||0,O.y=f.y||0,O.markRedraw(),Ag(O).nodeWidth=p,Ag(O).nodeHeight=y,f.isAboveViewRoot)return O;var k=ot("background",zR,u,Fq);k&&K(O,k,M&&f.upperLabelHeight);var G=d.getModel("emphasis"),H=G.get("focus"),F=G.get("blurScope"),B=G.get("disabled"),j=H==="ancestor"?o.getAncestorsIndices():H==="descendant"?o.getDescendantIndices():H;if(M)ch(O)&&ks(O,!1),k&&(ks(k,!B),v.setItemGraphicEl(o.dataIndex,k),$x(k,j,F));else{var Y=ot("content",zR,u,jq);Y&&nt(O,Y),k.disableMorphing=!0,k&&ch(k)&&ks(k,!1),ks(O,!B),v.setItemGraphicEl(o.dataIndex,O),$x(O,j,F)}return O;function K(mt,yt,St){var Lt=Rt(yt);if(Lt.dataIndex=o.dataIndex,Lt.seriesIndex=r.seriesIndex,yt.setShape({x:0,y:0,width:p,height:y,r:N}),_)U(yt);else{yt.invisible=!1;var _t=o.getVisual("style"),Et=_t.stroke,ge=GR(C);ge.fill=Et;var Gt=Cs(L);Gt.fill=L.get("borderColor");var Ce=Cs(E);Ce.fill=E.get("borderColor");var be=Cs(R);if(be.fill=R.get("borderColor"),St){var or=p-2*m;W(yt,Et,_t.opacity,{x:m,y:0,width:or,height:A})}else yt.removeTextContent();yt.setStyle(ge),yt.ensureState("emphasis").style=Gt,yt.ensureState("blur").style=Ce,yt.ensureState("select").style=be,rl(yt)}mt.add(yt)}function nt(mt,yt){var St=Rt(yt);St.dataIndex=o.dataIndex,St.seriesIndex=r.seriesIndex;var Lt=Math.max(p-2*m,0),_t=Math.max(y-2*m,0);if(yt.culling=!0,yt.setShape({x:m,y:m,width:Lt,height:_t,r:N}),_)U(yt);else{yt.invisible=!1;var Et=o.getVisual("style"),ge=Et.fill,Gt=GR(C);Gt.fill=ge,Gt.decal=Et.decal;var Ce=Cs(L),be=Cs(E),or=Cs(R);W(yt,ge,Et.opacity,null),yt.setStyle(Gt),yt.ensureState("emphasis").style=Ce,yt.ensureState("blur").style=be,yt.ensureState("select").style=or,rl(yt)}mt.add(yt)}function U(mt){!mt.invisible&&i.push(mt)}function W(mt,yt,St,Lt){var _t=d.getModel(Lt?VR:BR),Et=Ke(d.get("name"),null),ge=_t.getShallow("show");Sr(mt,nr(d,Lt?VR:BR),{defaultText:ge?Et:null,inheritColor:yt,defaultOpacity:St,labelFetcher:r,labelDataIndex:o.dataIndex});var Gt=mt.getTextContent();if(Gt){var Ce=Gt.style,be=gb(Ce.padding||0);Lt&&(mt.setTextConfig({layoutRect:Lt}),Gt.disableLabelLayout=!0),Gt.beforeUpdate=function(){var pa=Math.max((Lt?Lt.width:mt.shape.width)-be[1]-be[3],0),sr=Math.max((Lt?Lt.height:mt.shape.height)-be[0]-be[2],0);(Ce.width!==pa||Ce.height!==sr)&&Gt.setStyle({width:pa,height:sr})},Ce.truncateMinChar=2,Ce.lineOverflow="truncate",rt(Ce,Lt,f);var or=Gt.getState("emphasis");rt(or?or.style:null,Lt,f)}}function rt(mt,yt,St){var Lt=mt?mt.text:null;if(!yt&&St.isLeafRoot&&Lt!=null){var _t=r.get("drillDownIcon",!0);mt.text=_t?_t+" "+Lt:Lt}}function ot(mt,yt,St,Lt){var _t=b!=null&&t[mt][b],Et=n[mt];return _t?(t[mt][b]=null,ht(Et,_t)):_||(_t=new yt,_t instanceof Fa&&(_t.z2=Zq(St,Lt)),gt(Et,_t)),e[mt][S]=_t}function ht(mt,yt){var St=mt[S]={};yt instanceof RS?(St.oldX=yt.x,St.oldY=yt.y):St.oldShape=et({},yt.shape)}function gt(mt,yt){var St=mt[S]={},Lt=o.parentNode,_t=yt instanceof Ct;if(Lt&&(!a||a.direction==="drillDown")){var Et=0,ge=0,Gt=n.background[Lt.getRawIndex()];!a&&Gt&&Gt.oldShape&&(Et=Gt.oldShape.width,ge=Gt.oldShape.height),_t?(St.oldX=0,St.oldY=ge):St.oldShape={x:Et,y:ge,width:0,height:0}}St.fadein=!_t}}function Zq(r,e){return r*Uq+e}var Ah=P,Wq=Tt,Dg=-1,ar=(function(){function r(e){var t=e.mappingMethod,a=e.type,n=this.option=Dt(e);this.type=a,this.mappingMethod=t,this._normalizeData=Kq[t];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(b_(n),qq(n)):t==="category"?n.categories?$q(n):b_(n,!0):(zr(t!=="linear"||n.dataExtent),b_(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return dt(this._normalizeData,this)},r.listVisualTypes=function(){return Yt(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){Tt(e)?P(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var n,i=it(e)?[]:Tt(e)?{}:(n=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},a;return e&&Ah(r.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(it(e))e=e.slice();else if(Wq(e)){var t=[];Ah(e,function(a,n){t.push(n)}),e=t}else return[];return e.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,a){for(var n,i=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||vt(l)&&l===e+"")return o;a&&d(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],f=u.interval,v=u.close;if(f){if(f[0]===-1/0){if(lp(v[1],e,f[1]))return o}else if(f[1]===1/0){if(lp(v[0],f[0],e))return o}else if(lp(v[0],f[0],e)&&lp(v[1],e,f[1]))return o;a&&d(f[0],o),a&&d(f[1],o)}}if(a)return e===1/0?t.length-1:e===-1/0?0:n;function d(p,y){var m=Math.abs(p-e);m<i&&(i=m,n=y)}},r.visualHandlers={color:{applyVisual:wf("color"),getColorMapper:function(){var e=this.option;return dt(e.mappingMethod==="category"?function(t,a){return!a&&(t=this._normalizeData(t)),Bf.call(this,t)}:function(t,a,n){var i=!!n;return!a&&(t=this._normalizeData(t)),n=a1(t,e.parsedVisual,n),i?n:di(n,"rgba")},this)},_normalizedToVisual:{linear:function(e){return di(a1(e,this.option.parsedVisual),"rgba")},category:Bf,piecewise:function(e,t){var a=NS.call(this,t);return a==null&&(a=di(a1(e,this.option.parsedVisual),"rgba")),a},fixed:Ms}},colorHue:sp(function(e,t){return Ff(e,t)}),colorSaturation:sp(function(e,t){return Ff(e,null,t)}),colorLightness:sp(function(e,t){return Ff(e,null,null,t)}),colorAlpha:sp(function(e,t){return $p(e,t)}),decal:{applyVisual:wf("decal"),_normalizedToVisual:{linear:null,category:Bf,piecewise:null,fixed:null}},opacity:{applyVisual:wf("opacity"),_normalizedToVisual:IS([0,1])},liftZ:{applyVisual:wf("liftZ"),_normalizedToVisual:{linear:Ms,category:Ms,piecewise:Ms,fixed:Ms}},symbol:{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("symbol",n)},_normalizedToVisual:{linear:HR,category:Bf,piecewise:function(e,t){var a=NS.call(this,t);return a==null&&(a=HR.call(this,e)),a},fixed:Ms}},symbolSize:{applyVisual:wf("symbolSize"),_normalizedToVisual:IS([0,1])}},r})();function qq(r){var e=r.pieceList;r.hasSpecialVisual=!1,P(e,function(t,a){t.originIndex=a,t.visual!=null&&(r.hasSpecialVisual=!0)})}function $q(r){var e=r.categories,t=r.categoryMap={},a=r.visual;if(Ah(e,function(o,s){t[o]=s}),!it(a)){var n=[];Tt(a)?Ah(a,function(o,s){var l=t[s];n[l??Dg]=o}):n[Dg]=a,a=_z(r,n)}for(var i=e.length-1;i>=0;i--)a[i]==null&&(delete t[e[i]],e.pop())}function b_(r,e){var t=r.visual,a=[];Tt(t)?Ah(t,function(i){a.push(i)}):t!=null&&a.push(t);var n={color:1,symbol:1};!e&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),_z(r,a)}function sp(r){return{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("color",r(t("color"),n))},_normalizedToVisual:IS([0,1])}}function HR(r){var e=this.option.visual;return e[Math.round(se(r,[0,1],[0,e.length-1],!0))]||{}}function wf(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function Bf(r){var e=this.option.visual;return e[this.option.loop&&r!==Dg?r%e.length:r]}function Ms(){return this.option.visual[0]}function IS(r){return{linear:function(e){return se(e,r,this.option.visual,!0)},category:Bf,piecewise:function(e,t){var a=NS.call(this,t);return a==null&&(a=se(e,r,this.option.visual,!0)),a},fixed:Ms}}function NS(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var a=ar.findPieceIndex(r,t),n=t[a];if(n&&n.visual)return n.visual[this.type]}}function _z(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=st(e,function(t){var a=ha(t);return a||[0,0,0,1]})),e}var Kq={linear:function(r){return se(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=ar.findPieceIndex(r,e,!0);if(t!=null)return se(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??Dg},fixed:Ge};function lp(r,e,t){return r?e<=t:e<t}var Qq="itemStyle",xz=Kt();const Jq={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||Sz(t,{},r.getViewRoot().getAncestors(),r)}};function Sz(r,e,t,a){var n=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=n.getModel(Qq),l=t$(s,e,a),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),v=s.get("borderColorSaturation"),d;v!=null&&(d=UR(l),f=e$(v,d)),u.stroke=f;var p=r.viewChildren;if(!p||!p.length)d=UR(l),u.fill=d;else{var y=r$(r,n,i,s,l,p);P(p,function(m,_){if(m.depth>=t.length||m===t[m.depth]){var S=a$(n,l,m,_,y,a);Sz(m,S,t,a)}})}}}function t$(r,e,t){var a=et({},e),n=t.designatedVisualItemStyle;return P(["color","colorAlpha","colorSaturation"],function(i){n[i]=e[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function UR(r){var e=w_(r,"color");if(e){var t=w_(r,"colorAlpha"),a=w_(r,"colorSaturation");return a&&(e=Ff(e,null,null,a)),t&&(e=$p(e,t)),e}}function e$(r,e){return e!=null?Ff(e,null,null,r):null}function w_(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function r$(r,e,t,a,n,i){if(!(!i||!i.length)){var o=T_(e,"color")||n.color!=null&&n.color!=="none"&&(T_(e,"colorAlpha")||T_(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var f=e.get("colorMappingBy"),v={type:o.name,dataExtent:u,visual:o.range};v.type==="color"&&(f==="index"||f==="id")?(v.mappingMethod="category",v.loop=!0):v.mappingMethod="linear";var d=new ar(v);return xz(d).drColorMappingBy=f,d}}}function T_(r,e){var t=r.get(e);return it(t)&&t.length?{name:e,range:t}:null}function a$(r,e,t,a,n,i){var o=et({},e);if(n){var s=n.type,l=s==="color"&&xz(n).drColorMappingBy,u=l==="index"?a:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var Dh=Math.max,Cg=Math.min,FR=fr,M2=P,bz=["itemStyle","borderWidth"],n$=["itemStyle","gapWidth"],i$=["upperLabel","show"],o$=["upperLabel","height"];const s$={seriesType:"treemap",reset:function(r,e,t,a){var n=t.getWidth(),i=t.getHeight(),o=r.option,s=Qe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=ft(FR(s.width,l[0]),n),f=ft(FR(s.height,l[1]),i),v=a&&a.type,d=["treemapZoomToNode","treemapRootToNode"],p=Th(a,d,r),y=v==="treemapRender"||v==="treemapMove"?a.rootRect:null,m=r.getViewRoot(),_=gz(m);if(v!=="treemapMove"){var S=v==="treemapZoomToNode"?v$(r,p,m,u,f):y?[y.width,y.height]:[u,f],b=o.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var w={squareRatio:o.squareRatio,sort:b,leafDepth:o.leafDepth};m.hostTree.clearLayouts();var A={x:0,y:0,width:S[0],height:S[1],area:S[0]*S[1]};m.setLayout(A),wz(m,w,!1,0),A=m.getLayout(),M2(_,function(C,L){var E=(_[L+1]||m).getValue();C.setLayout(et({dataExtent:[E,E],borderWidth:0,upperHeight:0},A))})}var M=r.getData().tree.root;M.setLayout(d$(s,y,p),!0),r.setLayoutInfo(s),Tz(M,new kt(-s.x,-s.y,n,i),_,m,0)}};function wz(r,e,t,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get(bz),u=s.get(n$)/2,f=Az(s),v=Math.max(l,f),d=l-u,p=v-u;r.setLayout({borderWidth:l,upperHeight:v,upperLabelHeight:f},!0),n=Dh(n-2*d,0),i=Dh(i-d-p,0);var y=n*i,m=l$(r,s,y,e,t,a);if(m.length){var _={x:d,y:p,width:n,height:i},S=Cg(n,i),b=1/0,w=[];w.area=0;for(var A=0,M=m.length;A<M;){var C=m[A];w.push(C),w.area+=C.getLayout().area;var L=h$(w,S,e.squareRatio);L<=b?(A++,b=L):(w.area-=w.pop().getLayout().area,jR(w,S,_,u,!1),S=Cg(_.width,_.height),w.length=w.area=0,b=1/0)}if(w.length&&jR(w,S,_,u,!0),!t){var E=s.get("childrenVisibleMin");E!=null&&y<E&&(t=!0)}for(var A=0,M=m.length;A<M;A++)wz(m[A],e,t,a+1)}}}function l$(r,e,t,a,n,i){var o=r.children||[],s=a.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=a.leafDepth!=null&&a.leafDepth<=i;if(n&&!l)return r.viewChildren=[];o=le(o,function(p){return!p.isRemoved()}),c$(o,s);var u=f$(e,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=u$(e,t,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var f=0,v=o.length;f<v;f++){var d=o[f].getValue()/u.sum*t;o[f].setLayout({area:d})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function u$(r,e,t,a,n){if(!a)return t;for(var i=r.get("visibleMin"),o=n.length,s=o,l=o-1;l>=0;l--){var u=n[a==="asc"?o-l-1:l].getValue();u/t*e<i&&(s=l,t-=u)}return a==="asc"?n.splice(0,o-s):n.splice(s,o-s),t}function c$(r,e){return e&&r.sort(function(t,a){var n=e==="asc"?t.getValue()-a.getValue():a.getValue()-t.getValue();return n===0?e==="asc"?t.dataIndex-a.dataIndex:a.dataIndex-t.dataIndex:n}),r}function f$(r,e,t){for(var a=0,n=0,i=e.length;n<i;n++)a+=e[n].getValue();var o=r.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=[1/0,-1/0],M2(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function h$(r,e,t){for(var a=0,n=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<n&&(n=o),o>a&&(a=o));var l=r.area*r.area,u=e*e*t;return l?Dh(u*a/l,l/(u*n)):1/0}function jR(r,e,t,a,n){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],f=e?r.area/e:0;(n||f>t[l[o]])&&(f=t[l[o]]);for(var v=0,d=r.length;v<d;v++){var p=r[v],y={},m=f?p.getLayout().area/f:0,_=y[l[o]]=Dh(f-2*a,0),S=t[s[i]]+t[l[i]]-u,b=v===d-1||S<m?S:m,w=y[l[i]]=Dh(b-2*a,0);y[s[o]]=t[s[o]]+Cg(a,_/2),y[s[i]]=u+Cg(a,w/2),u+=b,p.setLayout(y,!0)}t[s[o]]+=f,t[l[o]]-=f}function v$(r,e,t,a,n){var i=(e||{}).node,o=[a,n];if(!i||i===t)return o;for(var s,l=a*n,u=l*r.option.zoomToNodeRatio;s=i.parentNode;){for(var f=0,v=s.children,d=0,p=v.length;d<p;d++)f+=v[d].getValue();var y=i.getValue();if(y===0)return o;u*=f/y;var m=s.getModel(),_=m.get(bz),S=Math.max(_,Az(m));u+=4*_*_+(3*_+S)*Math.pow(u,.5),u>rM&&(u=rM),i=s}u<l&&(u=l);var b=Math.pow(u/l,.5);return[a*b,n*b]}function d$(r,e,t){if(e)return{x:e.x,y:e.y};var a={x:0,y:0};if(!t)return a;var n=t.node,i=n.getLayout();if(!i)return a;for(var o=[i.width/2,i.height/2],s=n;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function Tz(r,e,t,a,n){var i=r.getLayout(),o=t[n],s=o&&o===r;if(!(o&&!s||n===t.length&&r!==a)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var l=new kt(e.x-i.x,e.y-i.y,e.width,e.height);M2(r.viewChildren||[],function(u){Tz(u,l,t,a,n+1)})}}function Az(r){return r.get(i$)?r.get(o$):0}function p$(r){r.registerSeriesModel(Pq),r.registerChartView(Yq),r.registerVisual(Jq),r.registerLayout(s$),Nq(r)}function g$(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType("graph",function(t){var a=t.getCategoriesData(),n=t.getGraph(),i=n.data,o=a.mapArray(a.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){Qt(u)&&(u=o[u]);for(var f=0;f<e.length;f++)if(!e[f].isSelected(u))return!1}return!0})})}function y$(r){var e={};r.eachSeriesByType("graph",function(t){var a=t.getCategoriesData(),n=t.getData(),i={};a.each(function(o){var s=a.getName(o);i["ec-"+s]=o;var l=a.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),a.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],v=0;v<f.length;v++){var d=l.getShallow(f[v],!0);d!=null&&a.setItemVisual(o,f[v],d)}}),a.count()&&n.each(function(o){var s=n.getItemModel(o),l=s.getShallow("category");if(l!=null){vt(l)&&(l=i["ec-"+l]);var u=a.getItemVisual(l,"style"),f=n.ensureUniqueItemVisual(o,"style");et(f,u);for(var v=["symbol","symbolSize","symbolKeepAspect"],d=0;d<v.length;d++)n.setItemVisual(o,v[d],a.getItemVisual(l,v[d]))}})})}function up(r){return r instanceof Array||(r=[r,r]),r}function m$(r){r.eachSeriesByType("graph",function(e){var t=e.getGraph(),a=e.getEdgeData(),n=up(e.get("edgeSymbol")),i=up(e.get("edgeSymbolSize"));a.setVisual("fromSymbol",n&&n[0]),a.setVisual("toSymbol",n&&n[1]),a.setVisual("fromSymbolSize",i&&i[0]),a.setVisual("toSymbolSize",i&&i[1]),a.setVisual("style",e.getModel("lineStyle").getLineStyle()),a.each(function(o){var s=a.getItemModel(o),l=t.getEdgeByIndex(o),u=up(s.getShallow("symbol",!0)),f=up(s.getShallow("symbolSize",!0)),v=s.getModel("lineStyle").getLineStyle(),d=a.ensureUniqueItemVisual(o,"style");switch(et(d,v),d.stroke){case"source":{var p=l.node1.getVisual("style");d.stroke=p&&p.fill;break}case"target":{var p=l.node2.getVisual("style");d.stroke=p&&p.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}var PS="-->",Ay=function(r){return r.get("autoCurveness")||null},Dz=function(r,e){var t=Ay(r),a=20,n=[];if(Qt(t))a=t;else if(it(t)){r.__curvenessList=t;return}e>a&&(a=e);var i=a%2?a+2:a+3;n=[];for(var o=0;o<i;o++)n.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=n},Ch=function(r,e,t){var a=[r.id,r.dataIndex].join("."),n=[e.id,e.dataIndex].join(".");return[t.uid,a,n].join(PS)},Cz=function(r){var e=r.split(PS);return[e[0],e[2],e[1]].join(PS)},_$=function(r,e){var t=Ch(r.node1,r.node2,e);return e.__edgeMap[t]},x$=function(r,e){var t=OS(Ch(r.node1,r.node2,e),e),a=OS(Ch(r.node2,r.node1,e),e);return t+a},OS=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function S$(r){Ay(r)&&(r.__curvenessList=[],r.__edgeMap={},Dz(r))}function b$(r,e,t,a){if(Ay(t)){var n=Ch(r,e,t),i=t.__edgeMap,o=i[Cz(n)];i[n]&&!o?i[n].isForward=!0:o&&i[n]&&(o.isForward=!0,i[n].isForward=!1),i[n]=i[n]||[],i[n].push(a)}}function L2(r,e,t,a){var n=Ay(e),i=it(n);if(!n)return null;var o=_$(r,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=x$(r,e);Dz(e,u),r.lineStyle=r.lineStyle||{};var f=Ch(r.node1,r.node2,e),v=e.__curvenessList,d=i||u%2?0:1;if(o.isForward)return v[d+s];var p=Cz(f),y=OS(p,e),m=v[s+y+d];return a?i?n&&n[0]===0?(y+d)%2?m:-m:((y%2?0:1)+d)%2?m:-m:(y+d)%2?m:-m:v[s+y+d]}function Mz(r){var e=r.coordinateSystem;if(!(e&&e.type!=="view")){var t=r.getGraph();t.eachNode(function(a){var n=a.getModel();a.setLayout([+n.get("x"),+n.get("y")])}),E2(t,r)}}function E2(r,e){r.eachEdge(function(t,a){var n=Rn(t.getModel().get(["lineStyle","curveness"]),-L2(t,e,a,!0),0),i=hi(t.node1.getLayout()),o=hi(t.node2.getLayout()),s=[i,o];+n&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*n,(i[1]+o[1])/2-(o[0]-i[0])*n]),t.setLayout(s)})}function w$(r,e){r.eachSeriesByType("graph",function(t){var a=t.get("layout"),n=t.coordinateSystem;if(n&&n.type!=="view"){var i=t.getData(),o=[];P(n.dimensions,function(d){o=o.concat(i.mapDimensionsAll(d))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var v=i.get(o[f],s);isNaN(v)||(u=!0),l.push(v)}u?i.setItemLayout(s,n.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}E2(i.graph,t)}else(!a||a==="none")&&Mz(t)})}function Vf(r){var e=r.coordinateSystem;if(e.type!=="view")return 1;var t=r.option.nodeScaleRatio,a=e.scaleX,n=e.getZoom(),i=(n-1)*t+1;return i/a}function Gf(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var YR=Math.PI,A_=[];function R2(r,e,t,a){var n=r.coordinateSystem;if(!(n&&n.type!=="view")){var i=n.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,f=Math.min(i.width,i.height)/2,v=o.count();if(o.setLayout({cx:l,cy:u}),!!v){if(t){var d=n.pointToData(a),p=d[0],y=d[1],m=[p-l,y-u];Fu(m,m),Tp(m,m,f),t.setLayout([l+m[0],u+m[1]],!0);var _=r.get(["circular","rotateLabel"]);Lz(t,_,l,u)}T$[e](r,s,o,f,l,u,v),s.eachEdge(function(S,b){var w=Rn(S.getModel().get(["lineStyle","curveness"]),L2(S,r,b),0),A=hi(S.node1.getLayout()),M=hi(S.node2.getLayout()),C,L=(A[0]+M[0])/2,E=(A[1]+M[1])/2;+w&&(w*=3,C=[l*w+L*(1-w),u*w+E*(1-w)]),S.setLayout([A,M,C])})}}}var T$={value:function(r,e,t,a,n,i,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(f){var v=f.getValue("value"),d=u*(l?v:1)/2;s+=d,f.setLayout([a*Math.cos(s)+n,a*Math.sin(s)+i]),s+=d})},symbolSize:function(r,e,t,a,n,i,o){var s=0;A_.length=o;var l=Vf(r);e.eachNode(function(v){var d=Gf(v);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var p=Math.asin(d/2/a);isNaN(p)&&(p=YR/2),A_[v.dataIndex]=p,s+=p*2});var u=(2*YR-s)/o/2,f=0;e.eachNode(function(v){var d=u+A_[v.dataIndex];f+=d,(!v.getLayout()||!v.getLayout().fixed)&&v.setLayout([a*Math.cos(f)+n,a*Math.sin(f)+i]),f+=d})}};function Lz(r,e,t,a){var n=r.getGraphicEl();if(n){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=n.getSymbolPath();if(e){var l=r.getLayout(),u=Math.atan2(l[1]-a,l[0]-t);u<0&&(u=Math.PI*2+u);var f=l[0]<t;f&&(u=u-Math.PI);var v=f?"left":"right";s.setTextConfig({rotation:-u,position:v,origin:"center"});var d=s.ensureState("emphasis");et(d.textConfig||(d.textConfig={}),{position:v})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function A$(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&R2(e,"symbolSize")})}var cu=bx;function D$(r,e,t){for(var a=r,n=e,i=t.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=t.gravity==null?.1:t.gravity,f=0;f<a.length;f++){var v=a[f];v.p||(v.p=ol(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),v.pp=hi(v.p),v.edges=null}var d=t.friction==null?.6:t.friction,p=d,y,m;return{warmUp:function(){p=d*.8},setFixed:function(_){a[_].fixed=!0},setUnfixed:function(_){a[_].fixed=!1},beforeStep:function(_){y=_},afterStep:function(_){m=_},step:function(_){y&&y(a,n);for(var S=[],b=a.length,w=0;w<n.length;w++){var A=n[w];if(!A.ignoreForceLayout){var M=A.n1,C=A.n2;Os(S,C.p,M.p);var L=Tx(S)-A.d,E=C.w/(M.w+C.w);isNaN(E)&&(E=0),Fu(S,S),!M.fixed&&cu(M.p,M.p,S,E*L*p),!C.fixed&&cu(C.p,C.p,S,-(1-E)*L*p)}}for(var w=0;w<b;w++){var R=a[w];R.fixed||(Os(S,l,R.p),cu(R.p,R.p,S,u*p))}for(var w=0;w<b;w++)for(var M=a[w],N=w+1;N<b;N++){var C=a[N];Os(S,C.p,M.p);var L=Tx(S);L===0&&(iG(S,Math.random()-.5,Math.random()-.5),L=1);var O=(M.rep+C.rep)/L/L;!M.fixed&&cu(M.pp,M.pp,S,O),!C.fixed&&cu(C.pp,C.pp,S,-O)}for(var k=[],w=0;w<b;w++){var R=a[w];R.fixed||(Os(k,R.p,R.pp),cu(R.p,R.p,k,p),Rr(R.pp,R.p))}p=p*.992;var G=p<.01;m&&m(a,n,G),_&&_(G)}}}function C$(r){r.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var a=e.preservedPoints||{},n=e.getGraph(),i=n.data,o=n.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?i.each(function(w){var A=i.getId(w);i.setItemLayout(w,a[A]||[NaN,NaN])}):!l||l==="none"?Mz(e):l==="circular"&&R2(e,"value");var u=i.getDataExtent("value"),f=o.getDataExtent("value"),v=s.get("repulsion"),d=s.get("edgeLength"),p=it(v)?v:[v,v],y=it(d)?d:[d,d];y=[y[1],y[0]];var m=i.mapArray("value",function(w,A){var M=i.getItemLayout(A),C=se(w,u,p);return isNaN(C)&&(C=(p[0]+p[1])/2),{w:C,rep:C,fixed:i.getItemModel(A).get("fixed"),p:!M||isNaN(M[0])||isNaN(M[1])?null:M}}),_=o.mapArray("value",function(w,A){var M=n.getEdgeByIndex(A),C=se(w,f,y);isNaN(C)&&(C=(y[0]+y[1])/2);var L=M.getModel(),E=Rn(M.getModel().get(["lineStyle","curveness"]),-L2(M,e,A,!0),0);return{n1:m[M.node1.dataIndex],n2:m[M.node2.dataIndex],d:C,curveness:E,ignoreForceLayout:L.get("ignoreForceLayout")}}),S=t.getBoundingRect(),b=D$(m,_,{rect:S,gravity:s.get("gravity"),friction:s.get("friction")});b.beforeStep(function(w,A){for(var M=0,C=w.length;M<C;M++)w[M].fixed&&Rr(w[M].p,n.getNodeByIndex(M).getLayout())}),b.afterStep(function(w,A,M){for(var C=0,L=w.length;C<L;C++)w[C].fixed||n.getNodeByIndex(C).setLayout(w[C].p),a[i.getId(C)]=w[C].p;for(var C=0,L=A.length;C<L;C++){var E=A[C],R=n.getEdgeByIndex(C),N=E.n1.p,O=E.n2.p,k=R.getLayout();k=k?k.slice():[],k[0]=k[0]||[],k[1]=k[1]||[],Rr(k[0],N),Rr(k[1],O),+E.curveness&&(k[2]=[(N[0]+O[0])/2-(N[1]-O[1])*E.curveness,(N[1]+O[1])/2-(O[0]-N[0])*E.curveness]),R.setLayout(k)}}),e.forceLayout=b,e.preservedPoints=a,b.step()}else e.forceLayout=null})}function M$(r,e,t){var a=et(r.getBoxLayoutParams(),{aspect:t});return Qe(a,{width:e.getWidth(),height:e.getHeight()})}function L$(r,e){var t=[];return r.eachSeriesByType("graph",function(a){var n=a.get("coordinateSystem");if(!n||n==="view"){var i=a.getData(),o=i.mapArray(function(_){var S=i.getItemModel(_);return[+S.get("x"),+S.get("y")]}),s=[],l=[];Qg(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),f=M$(a,e,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var v=l[0]-s[0],d=l[1]-s[1],p=f.width,y=f.height,m=a.coordinateSystem=new Jh;m.zoomLimit=a.get("scaleLimit"),m.setBoundingRect(s[0],s[1],v,d),m.setViewRect(f.x,f.y,p,y),m.setCenter(a.get("center"),e),m.setZoom(a.get("zoom")),t.push(m)}}),t}var XR=er.prototype,D_=kh.prototype,Ez=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();(function(r){$(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Ez);function C_(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var E$=(function(r){$(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-line",a}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Ez},e.prototype.buildPath=function(t,a){C_(a)?XR.buildPath.call(this,t,a):D_.buildPath.call(this,t,a)},e.prototype.pointAt=function(t){return C_(this.shape)?XR.pointAt.call(this,t):D_.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var a=this.shape,n=C_(a)?[a.x2-a.x1,a.y2-a.y1]:D_.tangentAt.call(this,t);return Fu(n,n)},e})(Ut),M_=["fromSymbol","toSymbol"];function ZR(r){return"_"+r+"Type"}function WR(r,e,t){var a=e.getItemVisual(t,r);if(!a||a==="none")return a;var n=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=rc(n),u=ll(o||0,l);return a+l+u+(i||"")+(s||"")}function qR(r,e,t){var a=e.getItemVisual(t,r);if(!(!a||a==="none")){var n=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=rc(n),u=ll(o||0,l),f=Ye(a,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=r,f}}function R$(r){var e=new E$({name:"line",subPixelOptimize:!0});return zS(e.shape,r),e}function zS(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var I2=(function(r){$(e,r);function e(t,a,n){var i=r.call(this)||this;return i._createLine(t,a,n),i}return e.prototype._createLine=function(t,a,n){var i=t.hostModel,o=t.getItemLayout(a),s=R$(o);s.shape.percent=0,Le(s,{shape:{percent:1}},i,a),this.add(s),P(M_,function(l){var u=qR(l,t,a);this.add(u),this[ZR(l)]=WR(l,t,a)},this),this._updateCommonStl(t,a,n)},e.prototype.updateData=function(t,a,n){var i=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(a),l={shape:{}};zS(l.shape,s),Jt(o,l,i,a),P(M_,function(u){var f=WR(u,t,a),v=ZR(u);if(this[v]!==f){this.remove(this.childOfName(u));var d=qR(u,t,a);this.add(d)}this[v]=f},this),this._updateCommonStl(t,a,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,a,n){var i=t.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,f=n&&n.labelStatesModels,v=n&&n.emphasisDisabled,d=n&&n.focus,p=n&&n.blurScope;if(!n||t.hasItemOption){var y=t.getItemModel(a),m=y.getModel("emphasis");s=m.getModel("lineStyle").getLineStyle(),l=y.getModel(["blur","lineStyle"]).getLineStyle(),u=y.getModel(["select","lineStyle"]).getLineStyle(),v=m.get("disabled"),d=m.get("focus"),p=m.get("blurScope"),f=nr(y)}var _=t.getItemVisual(a,"style"),S=_.stroke;o.useStyle(_),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,P(M_,function(C){var L=this.childOfName(C);if(L){L.setColor(S),L.style.opacity=_.opacity;for(var E=0;E<kr.length;E++){var R=kr[E],N=o.getState(R);if(N){var O=N.style||{},k=L.ensureState(R),G=k.style||(k.style={});O.stroke!=null&&(G[L.__isEmptyBrush?"stroke":"fill"]=O.stroke),O.opacity!=null&&(G.opacity=O.opacity)}}L.markRedraw()}},this);var b=i.getRawValue(a);Sr(this,f,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(C,L){return i.getFormattedLabel(C,L,t.dataType)}},inheritColor:S||"#000",defaultOpacity:_.opacity,defaultText:(b==null?t.getName(a):isFinite(b)?Oe(b):b)+""});var w=this.getTextContent();if(w){var A=f.normal;w.__align=w.style.align,w.__verticalAlign=w.style.verticalAlign,w.__position=A.get("position")||"middle";var M=A.get("distance");it(M)||(M=[M,M]),w.__labelDistance=M}this.setTextConfig({position:null,local:!0,inside:!1}),Pe(this,d,p,v)},e.prototype.highlight=function(){_i(this)},e.prototype.downplay=function(){xi(this)},e.prototype.updateLayout=function(t,a){this.setLinePoints(t.getItemLayout(a))},e.prototype.setLinePoints=function(t){var a=this.childOfName("line");zS(a.shape,t),a.dirty()},e.prototype.beforeUpdate=function(){var t=this,a=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(!a&&!n&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),v=l.pointAt(u),d=Os([],v,f);Fu(d,d);function p(N,O){var k=N.__specifiedRotation;if(k==null){var G=l.tangentAt(O);N.attr("rotation",(O===1?-1:1)*Math.PI/2-Math.atan2(G[1],G[0]))}else N.attr("rotation",k)}if(a&&(a.setPosition(f),p(a,0),a.scaleX=a.scaleY=o*u,a.markRedraw()),n&&(n.setPosition(v),p(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var y=void 0,m=void 0,_=i.__labelDistance,S=_[0]*o,b=_[1]*o,w=u/2,A=l.tangentAt(w),M=[A[1],-A[0]],C=l.pointAt(w);M[1]>0&&(M[0]=-M[0],M[1]=-M[1]);var L=A[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var E=-Math.atan2(A[1],A[0]);v[0]<f[0]&&(E=Math.PI+E),i.rotation=E}var R=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":R=-b,m="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":R=b,m="top";break;default:R=0,m="middle"}switch(i.__position){case"end":i.x=d[0]*S+v[0],i.y=d[1]*b+v[1],y=d[0]>.8?"left":d[0]<-.8?"right":"center",m=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":i.x=-d[0]*S+f[0],i.y=-d[1]*b+f[1],y=d[0]>.8?"right":d[0]<-.8?"left":"center",m=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=S*L+f[0],i.y=f[1]+R,y=A[0]<0?"right":"left",i.originX=-S*L,i.originY=-R;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=C[0],i.y=C[1]+R,y="center",i.originY=-R;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-S*L+v[0],i.y=v[1]+R,y=A[0]>=0?"right":"left",i.originX=S*L,i.originY=-R;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||m,align:i.__align||y})}},e})(Ct),N2=(function(){function r(e){this.group=new Ct,this._LineCtor=e||I2}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=e,i||n.removeAll();var o=$R(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=$R(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function a(s){!s.isGroup&&!I$(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n<e.end;n++){var i=t.getItemLayout(n);if(L_(i)){var o=new this._LineCtor(t,n,this._seriesScope);o.traverse(a),this.group.add(o),t.setItemGraphicEl(n,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){Oo(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,a){var n=e.getItemLayout(t);if(L_(n)){var i=new this._LineCtor(e,t,a);e.setItemGraphicEl(t,i),this.group.add(i)}},r.prototype._doUpdate=function(e,t,a,n,i){var o=e.getItemGraphicEl(a);if(!L_(t.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(t,n,i):o=new this._LineCtor(t,n,i),t.setItemGraphicEl(n,o),this.group.add(o)},r})();function I$(r){return r.animators&&r.animators.length>0}function $R(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:nr(e)}}function KR(r){return isNaN(r[0])||isNaN(r[1])}function L_(r){return r&&!KR(r[0])&&!KR(r[1])}var E_=[],R_=[],I_=[],fu=cr,N_=Fs,QR=Math.abs;function JR(r,e,t){for(var a=r[0],n=r[1],i=r[2],o=1/0,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){E_[0]=fu(a[0],n[0],i[0],f),E_[1]=fu(a[1],n[1],i[1],f);var v=QR(N_(E_,e)-l);v<o&&(o=v,s=f)}for(var d=0;d<32;d++){var p=s+u;R_[0]=fu(a[0],n[0],i[0],s),R_[1]=fu(a[1],n[1],i[1],s),I_[0]=fu(a[0],n[0],i[0],p),I_[1]=fu(a[1],n[1],i[1],p);var v=N_(R_,e)-l;if(QR(v)<.01)break;var y=N_(I_,e)-l;u/=2,v<0?y>=0?s=s+u:s=s-u:y>=0?s=s-u:s=s+u}return s}function P_(r,e){var t=[],a=ih,n=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),v=s.getVisual("toSymbol");u.__original||(u.__original=[hi(u[0]),hi(u[1])],u[2]&&u.__original.push(hi(u[2])));var d=u.__original;if(u[2]!=null){if(Rr(n[0],d[0]),Rr(n[1],d[2]),Rr(n[2],d[1]),f&&f!=="none"){var p=Gf(s.node1),y=JR(n,d[0],p*e);a(n[0][0],n[1][0],n[2][0],y,t),n[0][0]=t[3],n[1][0]=t[4],a(n[0][1],n[1][1],n[2][1],y,t),n[0][1]=t[3],n[1][1]=t[4]}if(v&&v!=="none"){var p=Gf(s.node2),y=JR(n,d[1],p*e);a(n[0][0],n[1][0],n[2][0],y,t),n[1][0]=t[1],n[2][0]=t[2],a(n[0][1],n[1][1],n[2][1],y,t),n[1][1]=t[1],n[2][1]=t[2]}Rr(u[0],n[0]),Rr(u[1],n[2]),Rr(u[2],n[1])}else{if(Rr(i[0],d[0]),Rr(i[1],d[1]),Os(o,i[1],i[0]),Fu(o,o),f&&f!=="none"){var p=Gf(s.node1);bx(i[0],i[0],o,p*e)}if(v&&v!=="none"){var p=Gf(s.node2);bx(i[1],i[1],o,-p*e)}Rr(u[0],i[0]),Rr(u[1],i[1])}})}function t5(r){return r.type==="view"}var N$=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){var n=new Wh,i=new N2,o=this.group;this._controller=new Qh(a.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,a,n){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(t5(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):Jt(u,f,t)}P_(t.getGraph(),Vf(t));var v=t.getData();s.updateData(v);var d=t.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(t,a,n),clearTimeout(this._layoutTimeout);var p=t.forceLayout,y=t.get(["force","layoutAnimation"]);p&&this._startForceLayoutIteration(p,y);var m=t.get("layout");v.graph.eachNode(function(w){var A=w.dataIndex,M=w.getGraphicEl(),C=w.getModel();if(M){M.off("drag").off("dragend");var L=C.get("draggable");L&&M.on("drag",function(R){switch(m){case"force":p.warmUp(),!i._layouting&&i._startForceLayoutIteration(p,y),p.setFixed(A),v.setItemLayout(A,[M.x,M.y]);break;case"circular":v.setItemLayout(A,[M.x,M.y]),w.setLayout({fixed:!0},!0),R2(t,"symbolSize",w,[R.offsetX,R.offsetY]),i.updateLayout(t);break;default:v.setItemLayout(A,[M.x,M.y]),E2(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){p&&p.setUnfixed(A)}),M.setDraggable(L,!!C.get("cursor"));var E=C.get(["emphasis","focus"]);E==="adjacency"&&(Rt(M).focus=w.getAdjacentDataIndices())}}),v.graph.eachEdge(function(w){var A=w.getGraphicEl(),M=w.getModel().get(["emphasis","focus"]);A&&M==="adjacency"&&(Rt(A).focus={edge:[w.dataIndex],node:[w.node1.dataIndex,w.node2.dataIndex]})});var _=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),S=v.getLayout("cx"),b=v.getLayout("cy");v.graph.eachNode(function(w){Lz(w,_,S,b)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,a){var n=this;(function i(){t.step(function(o){n.updateLayout(n._model),(n._layouting=!o)&&(a?n._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,a,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,f,v){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(f,v)&&!by(u,n,t)}),!t5(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){S2(s,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){b2(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),P_(t.getGraph(),Vf(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,a=t.getData(),n=Vf(t);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},e.prototype.updateLayout=function(t){P_(t.getGraph(),Vf(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e})(de);function hu(r){return"_EC_"+r}var P$=(function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var a=this._nodesMap;if(!a[hu(e)]){var n=new Ls(e,t);return n.hostGraph=this,this.nodes.push(n),a[hu(e)]=n,n}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[hu(e)]},r.prototype.addEdge=function(e,t,a){var n=this._nodesMap,i=this._edgesMap;if(Qt(e)&&(e=this.nodes[e]),Qt(t)&&(t=this.nodes[t]),e instanceof Ls||(e=n[hu(e)]),t instanceof Ls||(t=n[hu(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new Rz(e,t,a);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof Ls&&(e=e.id),t instanceof Ls&&(t=t.id);var a=this._edgesMap;return this._directed?a[e+"-"+t]:a[e+"-"+t]||a[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var a=this.nodes,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&e.call(t,a[i],i)},r.prototype.eachEdge=function(e,t){for(var a=this.edges,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&e.call(t,a[i],i)},r.prototype.breadthFirstTraverse=function(e,t,a,n){if(t instanceof Ls||(t=this._nodesMap[hu(t)]),!!t){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(n,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var f=u[o],v=f.node1===l?f.node2:f.node1;if(!v.__visited){if(e.call(n,v,l))return;s.push(v),v.__visited=!0}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,a=this.nodes,n=this.edges,i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)a[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(s){var l=n[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,a=this.edges,n=0;n<t.length;n++)e.addNode(t[n].id,t[n].dataIndex);for(var n=0;n<a.length;n++){var i=a[n];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},r})(),Ls=(function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var a=this.edges[t];a.dataIndex<0||(e.edge.push(a.dataIndex),e.node.push(a.node1.dataIndex,a.node2.dataIndex))}return e},r.prototype.getTrajectoryDataIndices=function(){for(var e=xt(),t=xt(),a=0;a<this.edges.length;a++){var n=this.edges[a];if(!(n.dataIndex<0)){e.set(n.dataIndex,!0);for(var i=[n.node1],o=[n.node2],s=0;s<i.length;){var l=i[s];s++,t.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)e.set(l.inEdges[u].dataIndex,!0),i.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var f=o[s];s++,t.set(f.dataIndex,!0);for(var u=0;u<f.outEdges.length;u++)e.set(f.outEdges[u].dataIndex,!0),o.push(f.outEdges[u].node2)}}}return{edge:e.keys(),node:t.keys()}},r})(),Rz=(function(){function r(e,t,a){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=a??-1}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,a=t.edgeData.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=xt(),t=xt();e.set(this.dataIndex,!0);for(var a=[this.node1],n=[this.node2],i=0;i<a.length;){var o=a[i];i++,t.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)e.set(o.inEdges[s].dataIndex,!0),a.push(o.inEdges[s].node1)}for(i=0;i<n.length;){var l=n[i];i++,t.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)e.set(l.outEdges[s].dataIndex,!0),n.push(l.outEdges[s].node2)}return{edge:e.keys(),node:t.keys()}},r})();function Iz(r,e){return{getValue:function(t){var a=this[r][e];return a.getStore().get(a.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,a){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,a)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,a){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}Xe(Ls,Iz("hostGraph","data"));Xe(Rz,Iz("hostGraph","edgeData"));function Nz(r,e,t,a,n){for(var i=new P$(a),o=0;o<r.length;o++)i.addNode(fr(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var f=e[o],v=f.source,d=f.target;i.addEdge(v,d,u)&&(l.push(f),s.push(fr(Ke(f.id,null),v+" > "+d)),u++)}var p=t.get("coordinateSystem"),y;if(p==="cartesian2d"||p==="polar")y=Di(r,t);else{var m=Uh.get(p),_=m?m.dimensions||[]:[];Vt(_,"value")<0&&_.concat(["value"]);var S=jh(r,{coordDimensions:_,encodeDefine:t.getEncode()}).dimensions;y=new Pr(S,t),y.initData(r)}var b=new Pr(["value"],t);return b.initData(l,s),n&&n(y,b),dz({mainData:y,struct:i,structAttr:"graph",datas:{node:y,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var O$=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new Kh(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),Js(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){S$(this);var s=Nz(i,n,this,!0,l);return P(s.edges,function(u){b$(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(y){var m=o._categoriesModels,_=y.getShallow("category"),S=m[_];return S&&(S.parentModel=y.parentModel,y.parentModel=S),y});var v=oe.prototype.getModel;function d(y,m){var _=v.call(this,y,m);return _.resolveParentPath=p,_}f.wrapMethod("getItemModel",function(y){return y.resolveParentPath=p,y.getModel=d,y});function p(y){if(y&&(y[0]==="label"||y[1]==="label")){var m=y.slice();return y[0]==="label"?m[0]="edgeLabel":y[1]==="label"&&(m[1]="edgeLabel"),m}return y}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(t,n),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ir("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var v=oO({series:this,dataIndex:t,multipleSeries:a});return v},e.prototype._updateCategoriesData=function(){var t=st(this.option.categories||[],function(n){return n.value!=null?n:et({value:0},n)}),a=new Pr(["value"],this);a.initData(t),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e})(Se),z$={type:"graphRoam",event:"graphRoam",update:"none"};function k$(r){r.registerChartView(N$),r.registerSeriesModel(O$),r.registerProcessor(g$),r.registerVisual(y$),r.registerVisual(m$),r.registerLayout(w$),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,A$),r.registerLayout(C$),r.registerCoordinateSystem("graphView",{dimensions:Jh.dimensions,create:L$}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Ge),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Ge),r.registerAction(z$,function(e,t,a){t.eachComponent({mainType:"series",query:e},function(n){var i=n.coordinateSystem,o=T2(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}var B$=(function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r})(),V$=(function(r){$(e,r);function e(t){var a=r.call(this,t)||this;return a.type="pointer",a}return e.prototype.getDefaultShape=function(){return new B$},e.prototype.buildPath=function(t,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),f=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(a.x+n(l)*s,a.y+i(l)*s),t.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),t.lineTo(a.x-n(l)*s,a.y-i(l)*s),t.lineTo(u,f)},e})(Ut);function G$(r,e){var t=r.get("center"),a=e.getWidth(),n=e.getHeight(),i=Math.min(a,n),o=ft(t[0],e.getWidth()),s=ft(t[1],e.getHeight()),l=ft(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function cp(r,e){var t=r==null?"":r+"";return e&&(vt(e)?t=e.replace("{value}",t):bt(e)&&(t=e(r))),t}var H$=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=G$(t,n);this._renderMain(t,a,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,a,n,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,v=t.getModel("axisLine"),d=v.get("roundCap"),p=d?bg:Br,y=v.get("show"),m=v.getModel("lineStyle"),_=m.get("width"),S=[u,f];R3(S,!l),u=S[0],f=S[1];for(var b=f-u,w=u,A=[],M=0;y&&M<i.length;M++){var C=Math.min(Math.max(i[M][0],0),1);f=u+b*C;var L=new p({shape:{startAngle:w,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-_,r:o.r},silent:!0});L.setStyle({fill:i[M][1]}),L.setStyle(m.getLineStyle(["color","width"])),A.push(L),w=f}A.reverse(),P(A,function(R){return s.add(R)});var E=function(R){if(R<=0)return i[0][1];var N;for(N=0;N<i.length;N++)if(i[N][0]>=R&&(N===0?0:i[N-1][0])<R)return i[N][1];return i[N-1][1]};this._renderTicks(t,a,n,E,o,u,f,l,_),this._renderTitleAndDetail(t,a,n,E,o),this._renderAnchor(t,o),this._renderPointer(t,a,n,E,o,u,f,l,_)},e.prototype._renderTicks=function(t,a,n,i,o,s,l,u,f){for(var v=this.group,d=o.cx,p=o.cy,y=o.r,m=+t.get("min"),_=+t.get("max"),S=t.getModel("splitLine"),b=t.getModel("axisTick"),w=t.getModel("axisLabel"),A=t.get("splitNumber"),M=b.get("splitNumber"),C=ft(S.get("length"),y),L=ft(b.get("length"),y),E=s,R=(l-s)/A,N=R/M,O=S.getModel("lineStyle").getLineStyle(),k=b.getModel("lineStyle").getLineStyle(),G=S.get("distance"),H,F,B=0;B<=A;B++){if(H=Math.cos(E),F=Math.sin(E),S.get("show")){var j=G?G+f:f,Y=new er({shape:{x1:H*(y-j)+d,y1:F*(y-j)+p,x2:H*(y-C-j)+d,y2:F*(y-C-j)+p},style:O,silent:!0});O.stroke==="auto"&&Y.setStyle({stroke:i(B/A)}),v.add(Y)}if(w.get("show")){var j=w.get("distance")+G,K=cp(Oe(B/A*(_-m)+m),w.get("formatter")),nt=i(B/A),U=H*(y-C-j)+d,W=F*(y-C-j)+p,rt=w.get("rotate"),ot=0;rt==="radial"?(ot=-E+2*Math.PI,ot>Math.PI/2&&(ot+=Math.PI)):rt==="tangential"?ot=-E-Math.PI/2:Qt(rt)&&(ot=rt*Math.PI/180),ot===0?v.add(new $t({style:xe(w,{text:K,x:U,y:W,verticalAlign:F<-.8?"top":F>.8?"bottom":"middle",align:H<-.4?"left":H>.4?"right":"center"},{inheritColor:nt}),silent:!0})):v.add(new $t({style:xe(w,{text:K,x:U,y:W,verticalAlign:"middle",align:"center"},{inheritColor:nt}),silent:!0,originX:U,originY:W,rotation:ot}))}if(b.get("show")&&B!==A){var j=b.get("distance");j=j?j+f:f;for(var ht=0;ht<=M;ht++){H=Math.cos(E),F=Math.sin(E);var gt=new er({shape:{x1:H*(y-j)+d,y1:F*(y-j)+p,x2:H*(y-L-j)+d,y2:F*(y-L-j)+p},silent:!0,style:k});k.stroke==="auto"&&gt.setStyle({stroke:i((B+ht/M)/A)}),v.add(gt),E+=N}E-=N}else E+=R}},e.prototype._renderPointer=function(t,a,n,i,o,s,l,u,f){var v=this.group,d=this._data,p=this._progressEls,y=[],m=t.get(["pointer","show"]),_=t.getModel("progress"),S=_.get("show"),b=t.getData(),w=b.mapDimension("value"),A=+t.get("min"),M=+t.get("max"),C=[A,M],L=[s,l];function E(N,O){var k=b.getItemModel(N),G=k.getModel("pointer"),H=ft(G.get("width"),o.r),F=ft(G.get("length"),o.r),B=t.get(["pointer","icon"]),j=G.get("offsetCenter"),Y=ft(j[0],o.r),K=ft(j[1],o.r),nt=G.get("keepAspect"),U;return B?U=Ye(B,Y-H/2,K-F,H,F,null,nt):U=new V$({shape:{angle:-Math.PI/2,width:H,r:F,x:Y,y:K}}),U.rotation=-(O+Math.PI/2),U.x=o.cx,U.y=o.cy,U}function R(N,O){var k=_.get("roundCap"),G=k?bg:Br,H=_.get("overlap"),F=H?_.get("width"):f/b.count(),B=H?o.r-F:o.r-(N+1)*F,j=H?o.r:o.r-N*F,Y=new G({shape:{startAngle:s,endAngle:O,cx:o.cx,cy:o.cy,clockwise:u,r0:B,r:j}});return H&&(Y.z2=M-b.get(w,N)%M),Y}(S||m)&&(b.diff(d).add(function(N){var O=b.get(w,N);if(m){var k=E(N,s);Le(k,{rotation:-((isNaN(+O)?L[0]:se(O,C,L,!0))+Math.PI/2)},t),v.add(k),b.setItemGraphicEl(N,k)}if(S){var G=R(N,s),H=_.get("clip");Le(G,{shape:{endAngle:se(O,C,L,H)}},t),v.add(G),Zx(t.seriesIndex,b.dataType,N,G),y[N]=G}}).update(function(N,O){var k=b.get(w,N);if(m){var G=d.getItemGraphicEl(O),H=G?G.rotation:s,F=E(N,H);F.rotation=H,Jt(F,{rotation:-((isNaN(+k)?L[0]:se(k,C,L,!0))+Math.PI/2)},t),v.add(F),b.setItemGraphicEl(N,F)}if(S){var B=p[O],j=B?B.shape.endAngle:s,Y=R(N,j),K=_.get("clip");Jt(Y,{shape:{endAngle:se(k,C,L,K)}},t),v.add(Y),Zx(t.seriesIndex,b.dataType,N,Y),y[N]=Y}}).execute(),b.each(function(N){var O=b.getItemModel(N),k=O.getModel("emphasis"),G=k.get("focus"),H=k.get("blurScope"),F=k.get("disabled");if(m){var B=b.getItemGraphicEl(N),j=b.getItemVisual(N,"style"),Y=j.fill;if(B instanceof hr){var K=B.style;B.useStyle(et({image:K.image,x:K.x,y:K.y,width:K.width,height:K.height},j))}else B.useStyle(j),B.type!=="pointer"&&B.setColor(Y);B.setStyle(O.getModel(["pointer","itemStyle"]).getItemStyle()),B.style.fill==="auto"&&B.setStyle("fill",i(se(b.get(w,N),C,[0,1],!0))),B.z2EmphasisLift=0,xr(B,O),Pe(B,G,H,F)}if(S){var nt=y[N];nt.useStyle(b.getItemVisual(N,"style")),nt.setStyle(O.getModel(["progress","itemStyle"]).getItemStyle()),nt.z2EmphasisLift=0,xr(nt,O),Pe(nt,G,H,F)}}),this._progressEls=y)},e.prototype._renderAnchor=function(t,a){var n=t.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),f=Ye(s,a.cx-o/2+ft(l[0],a.r),a.cy-o/2+ft(l[1],a.r),o,o,null,u);f.z2=n.get("showAbove")?1:0,f.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,a,n,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),v=+t.get("max"),d=new Ct,p=[],y=[],m=t.isAnimationEnabled(),_=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(S){p[S]=new $t({silent:!0}),y[S]=new $t({silent:!0})}).update(function(S,b){p[S]=s._titleEls[b],y[S]=s._detailEls[b]}).execute(),l.each(function(S){var b=l.getItemModel(S),w=l.get(u,S),A=new Ct,M=i(se(w,[f,v],[0,1],!0)),C=b.getModel("title");if(C.get("show")){var L=C.get("offsetCenter"),E=o.cx+ft(L[0],o.r),R=o.cy+ft(L[1],o.r),N=p[S];N.attr({z2:_?0:2,style:xe(C,{x:E,y:R,text:l.getName(S),align:"center",verticalAlign:"middle"},{inheritColor:M})}),A.add(N)}var O=b.getModel("detail");if(O.get("show")){var k=O.get("offsetCenter"),G=o.cx+ft(k[0],o.r),H=o.cy+ft(k[1],o.r),F=ft(O.get("width"),o.r),B=ft(O.get("height"),o.r),j=t.get(["progress","show"])?l.getItemVisual(S,"style").fill:M,N=y[S],Y=O.get("formatter");N.attr({z2:_?0:2,style:xe(O,{x:G,y:H,text:cp(w,Y),width:isNaN(F)?null:F,height:isNaN(B)?null:B,align:"center",verticalAlign:"middle"},{inheritColor:j})}),cP(N,{normal:O},w,function(nt){return cp(nt,Y)}),m&&fP(N,S,l,t,{getFormattedLabel:function(nt,U,W,rt,ot,ht){return cp(ht?ht.interpolatedValue:w,Y)}}),A.add(N)}d.add(A)}),this.group.add(d),this._titleEls=p,this._detailEls=y},e.type="gauge",e})(de),U$=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,a){return ac(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e})(Se);function F$(r){r.registerChartView(H$),r.registerSeriesModel(U$)}var j$=["itemStyle","opacity"],Y$=(function(r){$(e,r);function e(t,a){var n=r.call(this)||this,i=n,o=new Gr,s=new $t;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(t,a,!0),n}return e.prototype.updateData=function(t,a,n){var i=this,o=t.hostModel,s=t.getItemModel(a),l=t.getItemLayout(a),u=s.getModel("emphasis"),f=s.get(j$);f=f??1,n||cn(i),i.useStyle(t.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,Le(i,{style:{opacity:f}},o,a)):Jt(i,{style:{opacity:f},shape:{points:l.points}},o,a),xr(i,s),this._updateLabel(t,a),Pe(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=t.hostModel,l=t.getItemModel(a),u=t.getItemLayout(a),f=u.label,v=t.getItemVisual(a,"style"),d=v.fill;Sr(o,nr(l),{labelFetcher:t.hostModel,labelDataIndex:a,defaultOpacity:v.opacity,defaultText:t.getName(a)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),n.setTextConfig({local:!0,inside:!!f.inside,insideStroke:d,outsideFill:d});var p=f.linePoints;i.setShape({points:p}),n.textGuideLineConfig={anchor:p?new Pt(p[0][0],p[0][1]):null},Jt(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),f2(n,h2(l),{stroke:d})},e})(Vr),X$=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new Y$(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);fh(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e})(de),Z$=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Kh(dt(this.getData,this),dt(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return ac(this,{coordDimensions:["value"],encodeDefaulter:It(Fb,this)})},e.prototype._defaultLabelLine=function(t){Js(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var a=this.getData(),n=r.prototype.getDataParams.call(this,t),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e})(Se);function W$(r,e){return Qe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function q$(r,e){for(var t=r.mapDimension("value"),a=r.mapArray(t,function(l){return l}),n=[],i=e==="ascending",o=0,s=r.count();o<s;o++)n[o]=o;return bt(e)?n.sort(e):e!=="none"&&n.sort(function(l,u){return i?a[l]-a[u]:a[u]-a[l]}),n}function $$(r){var e=r.hostModel,t=e.get("orient");r.each(function(a){var n=r.getItemModel(a),i=n.getModel("label"),o=i.get("position"),s=n.getModel("labelLine"),l=r.getItemLayout(a),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",v,d,p,y;if(f)o==="insideLeft"?(d=(u[0][0]+u[3][0])/2+5,p=(u[0][1]+u[3][1])/2,v="left"):o==="insideRight"?(d=(u[1][0]+u[2][0])/2-5,p=(u[1][1]+u[2][1])/2,v="right"):(d=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,p=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,v="center"),y=[[d,p],[d,p]];else{var m=void 0,_=void 0,S=void 0,b=void 0,w=s.get("length");o==="left"?(m=(u[3][0]+u[0][0])/2,_=(u[3][1]+u[0][1])/2,S=m-w,d=S-5,v="right"):o==="right"?(m=(u[1][0]+u[2][0])/2,_=(u[1][1]+u[2][1])/2,S=m+w,d=S+5,v="left"):o==="top"?(m=(u[3][0]+u[0][0])/2,_=(u[3][1]+u[0][1])/2,b=_-w,p=b-5,v="center"):o==="bottom"?(m=(u[1][0]+u[2][0])/2,_=(u[1][1]+u[2][1])/2,b=_+w,p=b+5,v="center"):o==="rightTop"?(m=t==="horizontal"?u[3][0]:u[1][0],_=t==="horizontal"?u[3][1]:u[1][1],t==="horizontal"?(b=_-w,p=b-5,v="center"):(S=m+w,d=S+5,v="top")):o==="rightBottom"?(m=u[2][0],_=u[2][1],t==="horizontal"?(b=_+w,p=b+5,v="center"):(S=m+w,d=S+5,v="bottom")):o==="leftTop"?(m=u[0][0],_=t==="horizontal"?u[0][1]:u[1][1],t==="horizontal"?(b=_-w,p=b-5,v="center"):(S=m-w,d=S-5,v="right")):o==="leftBottom"?(m=t==="horizontal"?u[1][0]:u[3][0],_=t==="horizontal"?u[1][1]:u[2][1],t==="horizontal"?(b=_+w,p=b+5,v="center"):(S=m-w,d=S-5,v="right")):(m=(u[1][0]+u[2][0])/2,_=(u[1][1]+u[2][1])/2,t==="horizontal"?(b=_+w,p=b+5,v="center"):(S=m+w,d=S+5,v="left")),t==="horizontal"?(S=m,d=S):(b=_,p=b),y=[[m,_],[S,b]]}l.label={linePoints:y,x:d,y:p,verticalAlign:"middle",textAlign:v,inside:f}})}function K$(r,e){r.eachSeriesByType("funnel",function(t){var a=t.getData(),n=a.mapDimension("value"),i=t.get("sort"),o=W$(t,e),s=t.get("orient"),l=o.width,u=o.height,f=q$(a,i),v=o.x,d=o.y,p=s==="horizontal"?[ft(t.get("minSize"),u),ft(t.get("maxSize"),u)]:[ft(t.get("minSize"),l),ft(t.get("maxSize"),l)],y=a.getDataExtent(n),m=t.get("min"),_=t.get("max");m==null&&(m=Math.min(y[0],0)),_==null&&(_=y[1]);var S=t.get("funnelAlign"),b=t.get("gap"),w=s==="horizontal"?l:u,A=(w-b*(a.count()-1))/a.count(),M=function(H,F){if(s==="horizontal"){var B=a.get(n,H)||0,j=se(B,[m,_],p,!0),Y=void 0;switch(S){case"top":Y=d;break;case"center":Y=d+(u-j)/2;break;case"bottom":Y=d+(u-j);break}return[[F,Y],[F,Y+j]]}var K=a.get(n,H)||0,nt=se(K,[m,_],p,!0),U;switch(S){case"left":U=v;break;case"center":U=v+(l-nt)/2;break;case"right":U=v+l-nt;break}return[[U,F],[U+nt,F]]};i==="ascending"&&(A=-A,b=-b,s==="horizontal"?v+=l:d+=u,f=f.reverse());for(var C=0;C<f.length;C++){var L=f[C],E=f[C+1],R=a.getItemModel(L);if(s==="horizontal"){var N=R.get(["itemStyle","width"]);N==null?N=A:(N=ft(N,l),i==="ascending"&&(N=-N));var O=M(L,v),k=M(E,v+N);v+=N+b,a.setItemLayout(L,{points:O.concat(k.slice().reverse())})}else{var G=R.get(["itemStyle","height"]);G==null?G=A:(G=ft(G,u),i==="ascending"&&(G=-G));var O=M(L,d),k=M(E,d+G);d+=G+b,a.setItemLayout(L,{points:O.concat(k.slice().reverse())})}}$$(a)})}function Q$(r){r.registerChartView(X$),r.registerSeriesModel(Z$),r.registerLayout(K$),r.registerProcessor($h("funnel"))}var J$=.3,tK=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new Ct,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,a,n,i){this._progressiveEls=null;var o=this._dataGroup,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.dimensions,v=r5(t);s.diff(l).add(d).update(p).remove(y).execute();function d(_){var S=e5(s,o,_,f,u);O_(S,s,_,v)}function p(_,S){var b=l.getItemGraphicEl(S),w=Pz(s,_,f,u);s.setItemGraphicEl(_,b),Jt(b,{shape:{points:w}},t,_),cn(b),O_(b,s,_,v)}function y(_){var S=l.getItemGraphicEl(_);o.remove(S)}if(!this._initialized){this._initialized=!0;var m=eK(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(m)}this._data=s},e.prototype.incrementalPrepareRender=function(t,a,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,a,n){for(var i=a.getData(),o=a.coordinateSystem,s=o.dimensions,l=r5(a),u=this._progressiveEls=[],f=t.start;f<t.end;f++){var v=e5(i,this._dataGroup,f,s,o);v.incremental=!0,O_(v,i,f,l),u.push(v)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e})(de);function eK(r,e,t){var a=r.model,n=r.getRect(),i=new Wt({shape:{x:n.x,y:n.y,width:n.width,height:n.height}}),o=a.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),Le(i,{shape:{width:n.width,height:n.height}},e,t),i}function Pz(r,e,t,a){for(var n=[],i=0;i<t.length;i++){var o=t[i],s=r.get(r.mapDimension(o),e);rK(s,a.getAxis(o).type)||n.push(a.dataToPoint(s,o))}return n}function e5(r,e,t,a,n){var i=Pz(r,t,a,n),o=new Gr({shape:{points:i},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function r5(r){var e=r.get("smooth",!0);return e===!0&&(e=J$),e=mi(e),nh(e)&&(e=0),{smooth:e}}function O_(r,e,t,a){r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.setShape("smooth",a.smooth);var n=e.getItemModel(t),i=n.getModel("emphasis");xr(r,n,"lineStyle"),Pe(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function rK(r,e){return e==="category"?r==null:r==null||isNaN(r)}var aK=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,a){return Di(null,this,{useEncodeDefaulter:dt(nK,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var a=this.coordinateSystem,n=this.getData(),i=[];return a.eachActiveState(n,function(o,s){t===o&&i.push(n.getRawIndex(s))}),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e})(Se);function nK(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(e){var t={};return P(e.dimensions,function(a){var n=iK(a);t[a]=n}),t}}function iK(r){return+r.replace("dim","")}var oK=["lineStyle","opacity"],sK={seriesType:"parallel",reset:function(r,e){var t=r.coordinateSystem,a={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(n,i){t.eachActiveState(i,function(o,s){var l=a[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(oK,!0);u!=null&&(l=u)}var f=i.ensureUniqueItemVisual(s,"style");f.opacity=l},n.start,n.end)}}}};function lK(r){uK(r),cK(r)}function uK(r){if(!r.parallel){var e=!1;P(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function cK(r){var e=he(r.parallelAxis);P(e,function(t){if(Tt(t)){var a=t.parallelIndex||0,n=he(r.parallel)[a];n&&n.parallelAxisDefault&&zt(t,n.parallelAxisDefault,!1)}})}var fK=5,hK=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this._model=t,this._api=n,this._handlers||(this._handlers={},P(vK,function(i,o){n.getZr().on(o,this._handlers[o]=dt(i,this))},this)),ec(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,a){gh(this,"_throttledDispatchExpand"),P(this._handlers,function(n,i){a.getZr().off(i,n)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(et({type:"parallelAxisExpand"},t))},e.type="parallel",e})(Ee),vK={mousedown:function(r){z_(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(z_(this,"click")&&e){var t=[r.offsetX,r.offsetY],a=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(a>fK)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!z_(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function z_(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var dK=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var a=this.option;t&&zt(a,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var n=t.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){P(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){t.hasOwnProperty(a)&&(this.option[a]=t[a])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],a=this.parallelAxisIndex=[],n=le(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);P(n,function(i){t.push("dim"+i.get("dim")),a.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e})(jt),pK=(function(r){$(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e})(hn);function hl(r,e,t,a,n,i){r=r||0;var o=t[1]-t[0];if(n!=null&&(n=vu(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(e[1]-e[0]);s=vu(s,[0,o]),n=i=vu(s,[n,i]),a=0}e[0]=vu(e[0],t),e[1]=vu(e[1],t);var l=k_(e,a);e[a]+=r;var u=n||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[a]=vu(e[a],f);var v;return v=k_(e,a),n!=null&&(v.sign!==l.sign||v.span<n)&&(e[1-a]=e[a]+l.sign*n),v=k_(e,a),i!=null&&v.span>i&&(e[1-a]=e[a]+v.sign*i),e}function k_(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function vu(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var B_=P,Oz=Math.min,zz=Math.max,a5=Math.floor,gK=Math.ceil,n5=Oe,yK=Math.PI,mK=(function(){function r(e,t,a){this.type="parallel",this._axesMap=xt(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var n=e.dimensions,i=e.parallelAxisIndex;B_(n,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new pK(o,_y(u),[0,0],u.get("type"),l)),v=f.type==="category";f.onBand=v&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=a&&o<=a+t.axisLength&&s>=n&&s<=n+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(a){if(e.contains(a,t)){var n=a.getData();B_(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),zu(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=Qe(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,a=["x","y"],n=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,f=fp(e.get("axisExpandWidth"),l),v=fp(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>v&&v>1&&f>0&&s>0,p=e.get("axisExpandWindow"),y;if(p)y=fp(p[1]-p[0],l),p[1]=p[0]+y;else{y=fp(f*(v-1),l);var m=e.get("axisExpandCenter")||a5(u/2);p=[f*m-y/2],p[1]=p[0]+y}var _=(s-y)/(u-v);_<3&&(_=0);var S=[a5(n5(p[0]/f,1))+1,gK(n5(p[1]/f,1))-1],b=_/f*p[0];return{layout:i,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[n[1-o]],axisExpandable:d,axisExpandWidth:f,axisCollapseWidth:_,axisExpandWindow:p,axisCount:u,winInnerIndices:S,axisExpandWindow0Pos:b}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),B_(a,function(o,s){var l=(n.axisExpandable?xK:_K)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},f={horizontal:yK/2,vertical:0},v=[u[i].x+e.x,u[i].y+e.y],d=f[i],p=Ua();sl(p,p,d),Pn(p,p,v),this._axesLayout[o]={position:v,rotation:d,transform:p,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,a,n){a==null&&(a=0),n==null&&(n=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];P(o,function(_){s.push(e.mapDimension(_)),l.push(i.get(_).model)});for(var u=this.hasAxisBrushed(),f=a;f<n;f++){var v=void 0;if(!u)v="normal";else{v="active";for(var d=e.getValues(s,f),p=0,y=o.length;p<y;p++){var m=l[p].getActiveState(d[p]);if(m==="inactive"){v="inactive";break}}}t(v,f)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,a=!1,n=0,i=e.length;n<i;n++)t.get(e[n]).model.getActiveState()!=="normal"&&(a=!0);return a},r.prototype.axisCoordToPoint=function(e,t){var a=this._axesLayout[t];return sn([e,0],a.transform)},r.prototype.getAxisLayout=function(e){return Dt(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),a=t.pixelDimIndex,n=t.axisExpandWindow.slice(),i=n[1]-n[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:n};var s=e[a]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",f=t.axisCollapseWidth,v=this._model.get("axisExpandSlideTriggerArea"),d=v[0]!=null;if(f)d&&f&&s<i*v[0]?(u="jump",l=s-i*v[2]):d&&f&&s>i*(1-v[0])?(u="jump",l=s-i*(1-v[2])):(l=s-i*v[1])>=0&&(l=s-i*(1-v[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?hl(l,n,o,"all"):u="none";else{var p=n[1]-n[0],y=o[1]*s/p;n=[zz(0,y-p/2)],n[1]=Oz(o[1],n[0]+p),n[0]=n[1]-p}return{axisExpandWindow:n,behavior:u}},r})();function fp(r,e){return Oz(zz(r,e[0]),e[1])}function _K(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function xK(r,e){var t=e.layoutLength,a=e.axisExpandWidth,n=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,f;return r<o[0]?(s=r*i,f=i):r<=o[1]?(s=e.axisExpandWindow0Pos+r*a-e.axisExpandWindow[0],l=a,u=!0):(s=t-(n-1-r)*i,f=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}function SK(r,e){var t=[];return r.eachComponent("parallel",function(a,n){var i=new mK(a,r,e);i.name="parallel_"+n,i.resize(a,e),a.coordinateSystem=i,i.model=a,t.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="parallel"){var n=a.getReferringComponents("parallel",je).models[0];a.coordinateSystem=n.coordinateSystem}}),t}var bK={create:SK},kS=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return el([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var a=this.activeIntervals=Dt(t);if(a)for(var n=a.length-1;n>=0;n--)Ga(a[n])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=a.length;i<o;i++)if(a[i][0]<=t&&t<=a[i][1])return"active";return"inactive"},e})(jt);Xe(kS,Xh);var nl=!0,Mh=Math.min,Vu=Math.max,wK=Math.pow,TK=1e4,AK=6,DK=6,i5="globalPan",CK={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},MK={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},o5={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},LK=0,P2=(function(r){$(e,r);function e(t){var a=r.call(this)||this;return a._track=[],a._covers=[],a._handlers={},a._zr=t,a.group=new Ct,a._uid="brushController_"+LK++,P(zK,function(n,i){this._handlers[i]=dt(n,this)},a),a}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var a=this._zr;this._enableGlobalPan||_W(a,i5,this._uid),P(this._handlers,function(n,i){a.on(i,n)}),this._brushType=t.brushType,this._brushOption=zt(Dt(o5),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;xW(t,i5,this._uid),P(this._handlers,function(a,n){t.off(n,a)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var a=this._panels={};P(t,function(n){a[n.panelId]=Dt(n)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var a=this.group;return this._zr.add(a),a.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=a.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=st(t,function(d){return zt(Dt(o5),d,!0)});var a="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Si(n,t,u,l).add(f).update(f).remove(v).execute(),this;function l(d,p){return(d.id!=null?d.id:a+p)+"-"+d.brushType}function u(d,p){return l(d.__brushOption,p)}function f(d,p){var y=t[d];if(p!=null&&n[p]===s)i[d]=n[p];else{var m=i[d]=p!=null?(n[p].__brushOption=y,n[p]):Bz(o,kz(o,y));O2(o,m)}}function v(d){n[d]!==s&&o.group.remove(n[d])}},e.prototype.unmount=function(){return this.enableBrush(!1),BS(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e})(ja);function kz(r,e){var t=Dy[e.brushType].createCover(r,e);return t.__brushOption=e,Gz(t,e),r.group.add(t),t}function Bz(r,e){var t=z2(e);return t.endCreating&&(t.endCreating(r,e),Gz(e,e.__brushOption)),e}function Vz(r,e){var t=e.__brushOption;z2(e).updateCoverShape(r,e,t.range,t)}function Gz(r,e){var t=e.z;t==null&&(t=TK),r.traverse(function(a){a.z=t,a.z2=t})}function O2(r,e){z2(e).updateCommon(r,e),Vz(r,e)}function z2(r){return Dy[r.__brushOption.brushType]}function k2(r,e,t){var a=r._panels;if(!a)return nl;var n,i=r._transform;return P(a,function(o){o.isTargetByCursor(e,t,i)&&(n=o)}),n}function Hz(r,e){var t=r._panels;if(!t)return nl;var a=e.__brushOption.panelId;return a!=null?t[a]:nl}function BS(r){var e=r._covers,t=e.length;return P(e,function(a){r.group.remove(a)},r),e.length=0,!!t}function il(r,e){var t=st(r._covers,function(a){var n=a.__brushOption,i=Dt(n.range);return{brushType:n.brushType,panelId:n.panelId,range:i}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function EK(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],a=e[0],n=t[0]-a[0],i=t[1]-a[1],o=wK(n*n+i*i,.5);return o>AK}function Uz(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function Fz(r,e,t,a){var n=new Ct;return n.add(new Wt({name:"main",style:B2(t),silent:!0,draggable:!0,cursor:"move",drift:It(s5,r,e,n,["n","s","w","e"]),ondragend:It(il,e,{isEnd:!0})})),P(a,function(i){n.add(new Wt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:It(s5,r,e,n,i),ondragend:It(il,e,{isEnd:!0})}))}),n}function jz(r,e,t,a){var n=a.brushStyle.lineWidth||0,i=Vu(n,DK),o=t[0][0],s=t[1][0],l=o-n/2,u=s-n/2,f=t[0][1],v=t[1][1],d=f-i+n/2,p=v-i+n/2,y=f-o,m=v-s,_=y+n,S=m+n;si(r,e,"main",o,s,y,m),a.transformable&&(si(r,e,"w",l,u,i,S),si(r,e,"e",d,u,i,S),si(r,e,"n",l,u,_,i),si(r,e,"s",l,p,_,i),si(r,e,"nw",l,u,i,i),si(r,e,"ne",d,u,i,i),si(r,e,"sw",l,p,i,i),si(r,e,"se",d,p,i,i))}function VS(r,e){var t=e.__brushOption,a=t.transformable,n=e.childAt(0);n.useStyle(B2(t)),n.attr({silent:!a,cursor:a?"move":"default"}),P([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?GS(r,i[0]):IK(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?MK[s]+"-resize":null})})}function si(r,e,t,a,n,i,o){var s=e.childOfName(t);s&&s.setShape(PK(V2(r,e,[[a,n],[a+i,n+o]])))}function B2(r){return wt({strokeNoScale:!0},r.brushStyle)}function Yz(r,e,t,a){var n=[Mh(r,t),Mh(e,a)],i=[Vu(r,t),Vu(e,a)];return[[n[0],i[0]],[n[1],i[1]]]}function RK(r){return Ws(r.group)}function GS(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=ny(t[e],RK(r));return a[n]}function IK(r,e){var t=[GS(r,e[0]),GS(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function s5(r,e,t,a,n,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=Xz(e,n,i);P(a,function(u){var f=CK[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(Yz(s[0][0],s[1][0],s[0][1],s[1][1])),O2(e,t),il(e,{isEnd:!1})}function NK(r,e,t,a){var n=e.__brushOption.range,i=Xz(r,t,a);P(n,function(o){o[0]+=i[0],o[1]+=i[1]}),O2(r,e),il(r,{isEnd:!1})}function Xz(r,e,t){var a=r.group,n=a.transformCoordToLocal(e,t),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function V2(r,e,t){var a=Hz(r,e);return a&&a!==nl?a.clipPath(t,r._transform):Dt(t)}function PK(r){var e=Mh(r[0][0],r[1][0]),t=Mh(r[0][1],r[1][1]),a=Vu(r[0][0],r[1][0]),n=Vu(r[0][1],r[1][1]);return{x:e,y:t,width:a-e,height:n-t}}function OK(r,e,t){if(!(!r._brushType||kK(r,e.offsetX,e.offsetY))){var a=r._zr,n=r._covers,i=k2(r,e,t);if(!r._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(i&&(i===nl||s.panelId===i.panelId)&&Dy[s.brushType].contain(n[o],t[0],t[1]))return}i&&a.setCursorStyle("crosshair")}}function HS(r){var e=r.event;e.preventDefault&&e.preventDefault()}function US(r,e,t){return r.childOfName("main").contain(e,t)}function Zz(r,e,t,a){var n=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),EK(r)||n){if(i&&!n){o.brushMode==="single"&&BS(r);var l=Dt(o);l.brushType=l5(l.brushType,i),l.panelId=i===nl?null:i.panelId,n=r._creatingCover=kz(r,l),r._covers.push(n)}if(n){var u=Dy[l5(r._brushType,i)],f=n.__brushOption;f.range=u.getCreatingRange(V2(r,n,r._track)),a&&(Bz(r,n),u.updateCommon(r,n)),Vz(r,n),s={isEnd:a}}}else a&&o.brushMode==="single"&&o.removeOnClick&&k2(r,e,t)&&BS(r)&&(s={isEnd:a,removeOnClick:!0});return s}function l5(r,e){return r==="auto"?e.defaultBrushType:r}var zK={mousedown:function(r){if(this._dragging)u5(this,r);else if(!r.target||!r.target.draggable){HS(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=k2(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,a=this.group.transformCoordToLocal(e,t);if(OK(this,r,a),this._dragging){HS(r);var n=Zz(this,r,a,!1);n&&il(this,n)}},mouseup:function(r){u5(this,r)}};function u5(r,e){if(r._dragging){HS(e);var t=e.offsetX,a=e.offsetY,n=r.group.transformCoordToLocal(t,a),i=Zz(r,e,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&il(r,i)}}function kK(r,e,t){var a=r._zr;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var Dy={lineX:c5(0),lineY:c5(1),rect:{createCover:function(r,e){function t(a){return a}return Fz({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=Uz(r);return Yz(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){jz(r,e,t,a)},updateCommon:VS,contain:US},polygon:{createCover:function(r,e){var t=new Ct;return t.add(new Gr({name:"main",style:B2(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Vr({name:"main",draggable:!0,drift:It(NK,r,e),ondragend:It(il,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:V2(r,e,t)})},updateCommon:VS,contain:US}};function c5(r){return{createCover:function(e,t){return Fz({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=Uz(e),a=Mh(t[0][r],t[1][r]),n=Vu(t[0][r],t[1][r]);return[a,n]},updateCoverShape:function(e,t,a,n){var i,o=Hz(e,t);if(o!==nl&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),jz(e,t,l,n)},updateCommon:VS,contain:US}}function Wz(r){return r=G2(r),function(e){return oP(e,r)}}function qz(r,e){return r=G2(r),function(t){var a=e??t,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function $z(r,e,t){var a=G2(r);return function(n,i){return a.contain(i[0],i[1])&&!by(n,e,t)}}function G2(r){return kt.create(r)}var BK=["axisLine","axisTickLabel","axisName"],VK=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){r.prototype.init.apply(this,arguments),(this._brushController=new P2(a.getZr())).on("brush",dt(this._onBrush,this))},e.prototype.render=function(t,a,n,i){if(!GK(t,a,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ct,this.group.add(this._axisGroup),!!t.get("show")){var s=UK(t,a),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,v=t.axis.dim,d=l.getAxisLayout(v),p=et({strokeContainThreshold:f},d),y=new Or(t,p);P(BK,y.add,y),this._axisGroup.add(y.getGroup()),this._refreshBrushController(p,u,t,s,f,n),Vh(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),v=kt.create({x:l[0],y:-o/2,width:u,height:o});v.x-=f,v.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Wz(v),isTargetByCursor:$z(v,s,i),getLinearBrushOtherExtent:qz(v,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(HK(n))},e.prototype._onBrush=function(t){var a=t.areas,n=this.axisModel,i=n.axis,o=st(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e})(Ee);function GK(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function HK(r){var e=r.axis;return st(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function UK(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var FK={type:"axisAreaSelect",event:"axisAreaSelected"};function jK(r){r.registerAction(FK,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(a){a.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(a){a.setAxisExpand(e)})})}var YK={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Kz(r){r.registerComponentView(hK),r.registerComponentModel(dK),r.registerCoordinateSystem("parallel",bK),r.registerPreprocessor(lK),r.registerComponentModel(kS),r.registerComponentView(VK),Bu(r,"parallel",kS,YK),jK(r)}function XK(r){Ht(Kz),r.registerChartView(tK),r.registerSeriesModel(aK),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,sK)}var ZK=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r})(),WK=(function(r){$(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new ZK},e.prototype.buildPath=function(t,a){var n=a.extent;t.moveTo(a.x1,a.y1),t.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(t.lineTo(a.x2+n,a.y2),t.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(t.lineTo(a.x2,a.y2+n),t.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),t.closePath()},e.prototype.highlight=function(){_i(this)},e.prototype.downplay=function(){xi(this)},e})(Ut),qK=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,a,n){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,f=l.height,v=t.getData(),d=t.getData("edge"),p=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(y){var m=new WK,_=Rt(m);_.dataIndex=y.dataIndex,_.seriesIndex=t.seriesIndex,_.dataType="edge";var S=y.getModel(),b=S.getModel("lineStyle"),w=b.get("curveness"),A=y.node1.getLayout(),M=y.node1.getModel(),C=M.get("localX"),L=M.get("localY"),E=y.node2.getLayout(),R=y.node2.getModel(),N=R.get("localX"),O=R.get("localY"),k=y.getLayout(),G,H,F,B,j,Y,K,nt;m.shape.extent=Math.max(1,k.dy),m.shape.orient=p,p==="vertical"?(G=(C!=null?C*u:A.x)+k.sy,H=(L!=null?L*f:A.y)+A.dy,F=(N!=null?N*u:E.x)+k.ty,B=O!=null?O*f:E.y,j=G,Y=H*(1-w)+B*w,K=F,nt=H*w+B*(1-w)):(G=(C!=null?C*u:A.x)+A.dx,H=(L!=null?L*f:A.y)+k.sy,F=N!=null?N*u:E.x,B=(O!=null?O*f:E.y)+k.ty,j=G*(1-w)+F*w,Y=H,K=G*w+F*(1-w),nt=B),m.setShape({x1:G,y1:H,x2:F,y2:B,cpx1:j,cpy1:Y,cpx2:K,cpy2:nt}),m.useStyle(b.getItemStyle()),f5(m.style,p,y);var U=""+S.get("value"),W=nr(S,"edgeLabel");Sr(m,W,{labelFetcher:{getFormattedLabel:function(ht,gt,mt,yt,St,Lt){return t.getFormattedLabel(ht,gt,"edge",yt,Rn(St,W.normal&&W.normal.get("formatter"),U),Lt)}},labelDataIndex:y.dataIndex,defaultText:U}),m.setTextConfig({position:"inside"});var rt=S.getModel("emphasis");xr(m,S,"lineStyle",function(ht){var gt=ht.getItemStyle();return f5(gt,p,y),gt}),s.add(m),d.setItemGraphicEl(y.dataIndex,m);var ot=rt.get("focus");Pe(m,ot==="adjacency"?y.getAdjacentDataIndices():ot==="trajectory"?y.getTrajectoryDataIndices():ot,rt.get("blurScope"),rt.get("disabled"))}),o.eachNode(function(y){var m=y.getLayout(),_=y.getModel(),S=_.get("localX"),b=_.get("localY"),w=_.getModel("emphasis"),A=new Wt({shape:{x:S!=null?S*u:m.x,y:b!=null?b*f:m.y,width:m.dx,height:m.dy},style:_.getModel("itemStyle").getItemStyle(),z2:10});Sr(A,nr(_),{labelFetcher:{getFormattedLabel:function(C,L){return t.getFormattedLabel(C,L,"node")}},labelDataIndex:y.dataIndex,defaultText:y.id}),A.disableLabelAnimation=!0,A.setStyle("fill",y.getVisual("color")),A.setStyle("decal",y.getVisual("style").decal),xr(A,_),s.add(A),v.setItemGraphicEl(y.dataIndex,A),Rt(A).dataType="node";var M=w.get("focus");Pe(A,M==="adjacency"?y.getAdjacentDataIndices():M==="trajectory"?y.getTrajectoryDataIndices():M,w.get("blurScope"),w.get("disabled"))}),v.eachItemGraphicEl(function(y,m){var _=v.getItemModel(m);_.get("draggable")&&(y.drift=function(S,b){i._focusAdjacencyDisabled=!0,this.shape.x+=S,this.shape.y+=b,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:v.getRawIndex(m),localX:this.shape.x/u,localY:this.shape.y/f})},y.ondragend=function(){i._focusAdjacencyDisabled=!1},y.draggable=!0,y.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath($K(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e})(de);function f5(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var a=t.node1.getVisual("color"),n=t.node2.getVisual("color");vt(a)&&vt(n)&&(r.fill=new Bh(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function $K(r,e,t){var a=new Wt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Le(a,{shape:{width:r.width+20}},e,t),a}var KK=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){var n=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new oe(o[l],this,a));if(i&&n){var u=Nz(i,n,this,!0,f);return u.data}function f(v,d){v.wrapMethod("getItemModel",function(p,y){var m=p.parentModel,_=m.getData().getItemLayout(y);if(_){var S=_.depth,b=m.levelModels[S];b&&(p.parentModel=b)}return p}),d.wrapMethod("getItemModel",function(p,y){var m=p.parentModel,_=m.getGraph().getEdgeByIndex(y),S=_.node1.getLayout();if(S){var b=S.depth,w=m.levelModels[b];w&&(p.parentModel=w)}return p})}},e.prototype.setNodePosition=function(t,a){var n=this.option.data||this.option.nodes,i=n[t];i.localX=a[0],i.localY=a[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,a,n){function i(p){return isNaN(p)||p==null}if(n==="edge"){var o=this.getDataParams(t,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return ir("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(t),v=f.getLayout().value,d=this.getDataParams(t,n).data.name;return ir("nameValue",{name:d!=null?d+"":null,value:v,noValue:i(v)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,a){var n=r.prototype.getDataParams.call(this,t,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;n.value=o}return n},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e})(Se);function QK(r,e){r.eachSeriesByType("sankey",function(t){var a=t.get("nodeWidth"),n=t.get("nodeGap"),i=JK(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,f=l.edges;eQ(u);var v=le(u,function(m){return m.getLayout().value===0}),d=v.length!==0?0:t.get("layoutIterations"),p=t.get("orient"),y=t.get("nodeAlign");tQ(u,f,a,n,o,s,d,p,y)})}function JK(r,e){return Qe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function tQ(r,e,t,a,n,i,o,s,l){rQ(r,e,t,n,i,s,l),oQ(r,e,i,n,a,o,s),pQ(r,s)}function eQ(r){P(r,function(e){var t=Ao(e.outEdges,Mg),a=Ao(e.inEdges,Mg),n=e.getValue()||0,i=Math.max(t,a,n);e.setLayout({value:i},!0)})}function rQ(r,e,t,a,n,i,o){for(var s=[],l=[],u=[],f=[],v=0,d=0;d<e.length;d++)s[d]=1;for(var d=0;d<r.length;d++)l[d]=r[d].inEdges.length,l[d]===0&&u.push(r[d]);for(var p=-1;u.length;){for(var y=0;y<u.length;y++){var m=u[y],_=m.hostGraph.data.getRawDataItem(m.dataIndex),S=_.depth!=null&&_.depth>=0;S&&_.depth>p&&(p=_.depth),m.setLayout({depth:S?_.depth:v},!0),i==="vertical"?m.setLayout({dy:t},!0):m.setLayout({dx:t},!0);for(var b=0;b<m.outEdges.length;b++){var w=m.outEdges[b],A=e.indexOf(w);s[A]=0;var M=w.node2,C=r.indexOf(M);--l[C]===0&&f.indexOf(M)<0&&f.push(M)}}++v,u=f,f=[]}for(var d=0;d<s.length;d++)if(s[d]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var L=p>v-1?p:v-1;o&&o!=="left"&&aQ(r,o,i,L);var E=i==="vertical"?(n-t)/L:(a-t)/L;iQ(r,E,i)}function Qz(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function aQ(r,e,t,a){if(e==="right"){for(var n=[],i=r,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var f=l.inEdges[u];n.indexOf(f.node1)<0&&n.push(f.node1)}}i=n,n=[],++o}P(r,function(v){Qz(v)||v.setLayout({depth:Math.max(0,a-v.getLayout().skNodeHeight)},!0)})}else e==="justify"&&nQ(r,a)}function nQ(r,e){P(r,function(t){!Qz(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function iQ(r,e,t){P(r,function(a){var n=a.getLayout().depth*e;t==="vertical"?a.setLayout({y:n},!0):a.setLayout({x:n},!0)})}function oQ(r,e,t,a,n,i,o){var s=sQ(r,o);lQ(s,e,t,a,n,o),V_(s,n,t,a,o);for(var l=1;i>0;i--)l*=.99,uQ(s,l,o),V_(s,n,t,a,o),dQ(s,l,o),V_(s,n,t,a,o)}function sQ(r,e){var t=[],a=e==="vertical"?"y":"x",n=Fx(r,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,o){return i-o}),P(n.keys,function(i){t.push(n.buckets.get(i))}),t}function lQ(r,e,t,a,n,i){var o=1/0;P(r,function(s){var l=s.length,u=0;P(s,function(v){u+=v.getLayout().value});var f=i==="vertical"?(a-(l-1)*n)/u:(t-(l-1)*n)/u;f<o&&(o=f)}),P(r,function(s){P(s,function(l,u){var f=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:f},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:f},!0))})}),P(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function V_(r,e,t,a,n){var i=n==="vertical"?"x":"y";P(r,function(o){o.sort(function(m,_){return m.getLayout()[i]-_.getLayout()[i]});for(var s,l,u,f=0,v=o.length,d=n==="vertical"?"dx":"dy",p=0;p<v;p++)l=o[p],u=f-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[d]+e;var y=n==="vertical"?a:t;if(u=f-e-y,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var p=v-2;p>=0;--p)l=o[p],u=l.getLayout()[i]+l.getLayout()[d]+e-f,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function uQ(r,e,t){P(r.slice().reverse(),function(a){P(a,function(n){if(n.outEdges.length){var i=Ao(n.outEdges,cQ,t)/Ao(n.outEdges,Mg);if(isNaN(i)){var o=n.outEdges.length;i=o?Ao(n.outEdges,fQ,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(i-No(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-No(n,t))*e;n.setLayout({y:l},!0)}}})})}function cQ(r,e){return No(r.node2,e)*r.getValue()}function fQ(r,e){return No(r.node2,e)}function hQ(r,e){return No(r.node1,e)*r.getValue()}function vQ(r,e){return No(r.node1,e)}function No(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Mg(r){return r.getValue()}function Ao(r,e,t){for(var a=0,n=r.length,i=-1;++i<n;){var o=+e(r[i],t);isNaN(o)||(a+=o)}return a}function dQ(r,e,t){P(r,function(a){P(a,function(n){if(n.inEdges.length){var i=Ao(n.inEdges,hQ,t)/Ao(n.inEdges,Mg);if(isNaN(i)){var o=n.inEdges.length;i=o?Ao(n.inEdges,vQ,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(i-No(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-No(n,t))*e;n.setLayout({y:l},!0)}}})})}function pQ(r,e){var t=e==="vertical"?"x":"y";P(r,function(a){a.outEdges.sort(function(n,i){return n.node2.getLayout()[t]-i.node2.getLayout()[t]}),a.inEdges.sort(function(n,i){return n.node1.getLayout()[t]-i.node1.getLayout()[t]})}),P(r,function(a){var n=0,i=0;P(a.outEdges,function(o){o.setLayout({sy:n},!0),n+=o.getLayout().dy}),P(a.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function gQ(r){r.eachSeriesByType("sankey",function(e){var t=e.getGraph(),a=t.nodes,n=t.edges;if(a.length){var i=1/0,o=-1/0;P(a,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),P(a,function(s){var l=new ar({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&P(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function yQ(r){r.registerChartView(qK),r.registerSeriesModel(KK),r.registerLayout(QK),r.registerVisual(gQ),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(a){a.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Jz=(function(){function r(){}return r.prototype.getInitialData=function(e,t){var a,n=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",a=n.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",a=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],f=e.layout==="horizontal"?0:1,v=this._baseAxisDim=u[f],d=u[1-f],p=[n,i],y=p[f].get("type"),m=p[1-f].get("type"),_=e.data;if(_&&l){var S=[];P(_,function(A,M){var C;it(A)?(C=A.slice(),A.unshift(M)):it(A.value)?(C=et({},A),C.value=C.value.slice(),A.value.unshift(M)):C=A,S.push(C)}),e.data=S}var b=this.defaultValueDimensions,w=[{name:v,type:yg(y),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:yg(m),dimsDef:b.slice()}];return ac(this,{coordDimensions:w,dimensionsCount:b.length+1,encodeDefaulter:It(NP,w,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r})(),tk=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e})(Se);Xe(tk,Jz,!0);var mQ=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var f=i.getItemLayout(u),v=h5(f,i,u,l,!0);i.setItemGraphicEl(u,v),o.add(v)}}).update(function(u,f){var v=s.getItemGraphicEl(f);if(!i.hasValue(u)){o.remove(v);return}var d=i.getItemLayout(u);v?(cn(v),ek(d,v,i,u)):v=h5(d,i,u,l),o.add(v),i.setItemGraphicEl(u,v)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},e.prototype.remove=function(t){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},e.type="boxplot",e})(de),_Q=(function(){function r(){}return r})(),xQ=(function(r){$(e,r);function e(t){var a=r.call(this,t)||this;return a.type="boxplotBoxPath",a}return e.prototype.getDefaultShape=function(){return new _Q},e.prototype.buildPath=function(t,a){var n=a.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e})(Ut);function h5(r,e,t,a,n){var i=r.ends,o=new xQ({shape:{points:n?SQ(i,a,r):i}});return ek(r,o,e,t,n),o}function ek(r,e,t,a,n){var i=t.hostModel,o=Hh[n?"initProps":"updateProps"];o(e,{shape:{points:r.ends}},i,a),e.useStyle(t.getItemVisual(a,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(a),l=s.getModel("emphasis");xr(e,s),Pe(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function SQ(r,e,t){return st(r,function(a){return a=a.slice(),a[e]=t.initBaseline,a})}var eh=P;function bQ(r){var e=wQ(r);eh(e,function(t){var a=t.seriesModels;a.length&&(TQ(t),eh(a,function(n,i){AQ(n,t.boxOffsetList[i],t.boxWidthList[i])}))})}function wQ(r){var e=[],t=[];return r.eachSeriesByType("boxplot",function(a){var n=a.getBaseAxis(),i=Vt(t,n);i<0&&(i=t.length,t[i]=n,e[i]={axis:n,seriesModels:[]}),e[i].seriesModels.push(a)}),e}function TQ(r){var e=r.axis,t=r.seriesModels,a=t.length,n=r.boxWidthList=[],i=r.boxOffsetList=[],o=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;eh(t,function(y){l=Math.max(l,y.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}eh(t,function(y){var m=y.get("boxWidth");it(m)||(m=[m,m]),o.push([ft(m[0],s)||0,ft(m[1],s)||0])});var f=s*.8-2,v=f/a*.3,d=(f-v*(a-1))/a,p=d/2-f/2;eh(t,function(y,m){i.push(p),p+=v+d,n.push(Math.min(Math.max(d,o[m][0]),o[m][1]))})}function AQ(r,e,t){var a=r.coordinateSystem,n=r.getData(),i=t/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=n.mapDimension(l[o]),f=n.mapDimensionsAll(l[s]);if(u==null||f.length<5)return;for(var v=0;v<n.count();v++){var d=n.get(u,v),p=w(d,f[2],v),y=w(d,f[0],v),m=w(d,f[1],v),_=w(d,f[3],v),S=w(d,f[4],v),b=[];A(b,m,!1),A(b,_,!0),b.push(y,m,S,_),M(b,y),M(b,S),M(b,p),n.setItemLayout(v,{initBaseline:p[s],ends:b})}function w(C,L,E){var R=n.get(L,E),N=[];N[o]=C,N[s]=R;var O;return isNaN(C)||isNaN(R)?O=[NaN,NaN]:(O=a.dataToPoint(N),O[o]+=e),O}function A(C,L,E){var R=L.slice(),N=L.slice();R[o]+=i,N[o]-=i,E?C.push(R,N):C.push(N,R)}function M(C,L){var E=L.slice(),R=L.slice();E[o]-=i,R[o]+=i,C.push(E,R)}}function DQ(r,e){e=e||{};for(var t=[],a=[],n=e.boundIQR,i=n==="none"||n===0,o=0;o<r.length;o++){var s=Ga(r[o].slice()),l=p1(s,.25),u=p1(s,.5),f=p1(s,.75),v=s[0],d=s[s.length-1],p=(n??1.5)*(f-l),y=i?v:Math.max(v,l-p),m=i?d:Math.min(d,f+p),_=e.itemNameFormatter,S=bt(_)?_({value:o}):vt(_)?_.replace("{value}",o+""):o+"";t.push([S,y,l,u,f,m]);for(var b=0;b<s.length;b++){var w=s[b];if(w<y||w>m){var A=[S,w];a.push(A)}}}return{boxData:t,outliers:a}}var CQ={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Cr){var a="";ne(a)}var n=DQ(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function MQ(r){r.registerSeriesModel(tk),r.registerChartView(mQ),r.registerLayout(bQ),r.registerTransform(CQ)}var LQ=["color","borderColor"],EQ=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,a,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,a):this._incrementalRenderNormal(t,a)},e.prototype.eachRendered=function(t){Oo(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t){var a=t.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(f){if(a.hasValue(f)){var v=a.getItemLayout(f);if(s&&v5(u,v))return;var d=G_(v,f,!0);Le(d,{shape:{points:v.ends}},t,f),H_(d,a,f,o),i.add(d),a.setItemGraphicEl(f,d)}}).update(function(f,v){var d=n.getItemGraphicEl(v);if(!a.hasValue(f)){i.remove(d);return}var p=a.getItemLayout(f);if(s&&v5(u,p)){i.remove(d);return}d?(Jt(d,{shape:{points:p.ends}},t,f),cn(d)):d=G_(p),H_(d,a,f,o),i.add(d),a.setItemGraphicEl(f,d)}).remove(function(f){var v=n.getItemGraphicEl(f);v&&i.remove(v)}).execute(),this._data=a},e.prototype._renderLarge=function(t){this._clear(),d5(t,this.group);var a=t.get("clip",!0)?Sy(t.coordinateSystem,!1,t):null;a?this.group.setClipPath(a):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=n.getItemLayout(o),l=G_(s);H_(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,a){d5(a,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e})(de),RQ=(function(){function r(){}return r})(),IQ=(function(r){$(e,r);function e(t){var a=r.call(this,t)||this;return a.type="normalCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new RQ},e.prototype.buildPath=function(t,a){var n=a.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e})(Ut);function G_(r,e,t){var a=r.ends;return new IQ({shape:{points:t?NQ(a,r):a},z2:100})}function v5(r,e){for(var t=!0,a=0;a<e.ends.length;a++)if(r.contain(e.ends[a][0],e.ends[a][1])){t=!1;break}return t}function H_(r,e,t,a){var n=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0,r.__simpleBox=a,xr(r,n)}function NQ(r,e){return st(r,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var PQ=(function(){function r(){}return r})(),U_=(function(r){$(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new PQ},e.prototype.buildPath=function(t,a){for(var n=a.points,i=0;i<n.length;)if(this.__sign===n[i++]){var o=n[i++];t.moveTo(o,n[i++]),t.lineTo(o,n[i++])}else i+=3},e})(Ut);function d5(r,e,t,a){var n=r.getData(),i=n.getLayout("largePoints"),o=new U_({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new U_({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new U_({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(l),F_(1,o,r),F_(-1,s,r),F_(0,l,r),a&&(o.incremental=!0,s.incremental=!0),t&&t.push(o,s)}function F_(r,e,t,a){var n=t.get(["itemStyle",r>0?"borderColor":"borderColor0"])||t.get(["itemStyle",r>0?"color":"color0"]);r===0&&(n=t.get(["itemStyle","borderColorDoji"]));var i=t.getModel("itemStyle").getItemStyle(LQ);e.useStyle(i),e.style.fill=null,e.style.stroke=n}var rk=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,a,n){var i=a.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e})(Se);Xe(rk,Jz,!0);function OQ(r){!r||!it(r.series)||P(r.series,function(e){Tt(e)&&e.type==="k"&&(e.type="candlestick")})}var zQ=["itemStyle","borderColor"],kQ=["itemStyle","borderColor0"],BQ=["itemStyle","borderColorDoji"],VQ=["itemStyle","color"],GQ=["itemStyle","color0"],HQ={seriesType:"candlestick",plan:tc(),performRawSeries:!0,reset:function(r,e){function t(i,o){return o.get(i>0?VQ:GQ)}function a(i,o){return o.get(i===0?BQ:i>0?zQ:kQ)}if(!e.isSeriesFiltered(r)){var n=r.pipelineContext.large;return!n&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=t(u,l),f.stroke=a(u,l)||f.fill;var v=o.ensureUniqueItemVisual(s,"style");et(v,f)}}}}}},UQ={seriesType:"candlestick",plan:tc(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),a=FQ(r,t),n=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[n])),l=st(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],f=l[1],v=l[2],d=l[3];if(t.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?y:p};function p(m,_){for(var S,b=_.getStore();(S=m.next())!=null;){var w=b.get(s,S),A=b.get(u,S),M=b.get(f,S),C=b.get(v,S),L=b.get(d,S),E=Math.min(A,M),R=Math.max(A,M),N=j(E,w),O=j(R,w),k=j(C,w),G=j(L,w),H=[];Y(H,O,0),Y(H,N,1),H.push(nt(G),nt(O),nt(k),nt(N));var F=_.getItemModel(S),B=!!F.get(["itemStyle","borderColorDoji"]);_.setItemLayout(S,{sign:p5(b,S,A,M,f,B),initBaseline:A>M?O[i]:N[i],ends:H,brushRect:K(C,L,w)})}function j(U,W){var rt=[];return rt[n]=W,rt[i]=U,isNaN(W)||isNaN(U)?[NaN,NaN]:e.dataToPoint(rt)}function Y(U,W,rt){var ot=W.slice(),ht=W.slice();ot[n]=Np(ot[n]+a/2,1,!1),ht[n]=Np(ht[n]-a/2,1,!0),rt?U.push(ot,ht):U.push(ht,ot)}function K(U,W,rt){var ot=j(U,rt),ht=j(W,rt);return ot[n]-=a/2,ht[n]-=a/2,{x:ot[0],y:ot[1],width:a,height:ht[1]-ot[1]}}function nt(U){return U[n]=Np(U[n],1),U}}function y(m,_){for(var S=Ln(m.count*4),b=0,w,A=[],M=[],C,L=_.getStore(),E=!!r.get(["itemStyle","borderColorDoji"]);(C=m.next())!=null;){var R=L.get(s,C),N=L.get(u,C),O=L.get(f,C),k=L.get(v,C),G=L.get(d,C);if(isNaN(R)||isNaN(k)||isNaN(G)){S[b++]=NaN,b+=3;continue}S[b++]=p5(L,C,N,O,f,E),A[n]=R,A[i]=k,w=e.dataToPoint(A,null,M),S[b++]=w?w[0]:NaN,S[b++]=w?w[1]:NaN,A[i]=G,w=e.dataToPoint(A,null,M),S[b++]=w?w[1]:NaN}_.setLayout("largePoints",S)}}};function p5(r,e,t,a,n,i){var o;return t>a?o=-1:t<a?o=1:o=i?0:e>0?r.get(n,e-1)<=a?1:-1:1,o}function FQ(r,e){var t=r.getBaseAxis(),a,n=t.type==="category"?t.getBandWidth():(a=t.getExtent(),Math.abs(a[1]-a[0])/e.count()),i=ft(Ot(r.get("barMaxWidth"),n),n),o=ft(Ot(r.get("barMinWidth"),1),n),s=r.get("barWidth");return s!=null?ft(s,n):Math.max(Math.min(n/2,i),o)}function jQ(r){r.registerChartView(EQ),r.registerSeriesModel(rk),r.registerPreprocessor(OQ),r.registerVisual(HQ),r.registerLayout(UQ)}function g5(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(a){a.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var YQ=(function(r){$(e,r);function e(t,a){var n=r.call(this)||this,i=new Zh(t,a),o=new Ct;return n.add(i),n.add(o),n.updateData(t,a),n}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var a=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=Ye(a,-1,-1,2,2,n);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(l)}g5(o,t)},e.prototype.updateEffectAnimation=function(t){for(var a=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(a[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}g5(n,t)},e.prototype.highlight=function(){_i(this)},e.prototype.downplay=function(){xi(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,a){var n=this,i=t.hostModel;this.childAt(0).updateData(t,a);var o=this.childAt(1),s=t.getItemModel(a),l=t.getItemVisual(a,"symbol"),u=rc(t.getItemVisual(a,"symbolSize")),f=t.getItemVisual(a,"style"),v=f&&f.fill,d=s.getModel("emphasis");o.setScale(u),o.traverse(function(_){_.setStyle("fill",v)});var p=ll(t.getItemVisual(a,"symbolOffset"),u);p&&(o.x=p[0],o.y=p[1]);var y=t.getItemVisual(a,"symbolRotate");o.rotation=(y||0)*Math.PI/180||0;var m={};m.showEffectOn=i.get("showEffectOn"),m.rippleScale=s.get(["rippleEffect","scale"]),m.brushType=s.get(["rippleEffect","brushType"]),m.period=s.get(["rippleEffect","period"])*1e3,m.effectOffset=a/t.count(),m.z=i.getShallow("z")||0,m.zlevel=i.getShallow("zlevel")||0,m.symbolType=l,m.color=v,m.rippleEffectColor=s.get(["rippleEffect","color"]),m.rippleNumber=s.get(["rippleEffect","number"]),m.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(m):this.startEffectAnimation(m),this._effectCfg=m):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(_){_==="emphasis"?m.showEffectOn!=="render"&&n.startEffectAnimation(m):_==="normal"&&m.showEffectOn!=="render"&&n.stopEffectAnimation()}),this._effectCfg=m,Pe(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e})(Ct),XQ=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new Wh(YQ)},e.prototype.render=function(t,a,n){var i=t.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},e.prototype._getClipShape=function(t){var a=t.coordinateSystem,n=a&&a.getArea&&a.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,a,n){var i=t.getData();this.group.dirty();var o=qh("").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var a=t.coordinateSystem;a&&a.getRoamTransform&&(this.group.transform=SG(a.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e})(de),ZQ=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,a){return Di(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,a,n){return n.point(a.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e})(Se);function WQ(r){r.registerChartView(XQ),r.registerSeriesModel(ZQ),r.registerLayout(qh("effectScatter"))}var ak=(function(r){$(e,r);function e(t,a,n){var i=r.call(this)||this;return i.add(i.createLine(t,a,n)),i._updateEffectSymbol(t,a),i}return e.prototype.createLine=function(t,a,n){return new I2(t,a,n)},e.prototype._updateEffectSymbol=function(t,a){var n=t.getItemModel(a),i=n.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");it(o)||(o=[o,o]);var l=t.getItemVisual(a,"style"),u=i.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),f=Ye(s,-.5,-.5,1,1,u),f.z2=100,f.culling=!0,this.add(f)),f&&(f.setStyle("shadowColor",u),f.setStyle(i.getItemStyle(["color"])),f.scaleX=o[0],f.scaleY=o[1],f.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,i,a))},e.prototype._updateEffectAnimation=function(t,a,n){var i=this.childAt(1);if(i){var o=t.getItemLayout(n),s=a.get("period")*1e3,l=a.get("loop"),u=a.get("roundTrip"),f=a.get("constantSpeed"),v=fr(a.get("delay"),function(p){return p/t.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),f>0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var d=void 0;bt(v)?d=v(n):d=v,i.__t>0&&(d=-s*i.__t),this._animateSymbol(i,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,a,n,i,o){if(a>0){t.__t=0;var s=this,l=t.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return ho(t.__p1,t.__cp1)+ho(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,a){t.__p1=a[0],t.__p2=a[1],t.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},e.prototype.updateData=function(t,a,n){this.childAt(0).updateData(t,a,n),this._updateEffectSymbol(t,a)},e.prototype._updateSymbolPosition=function(t){var a=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=cr,f=Ex;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var v=t.__t<1?f(a[0],i[0],n[0],o):f(n[0],i[0],a[0],1-o),d=t.__t<1?f(a[1],i[1],n[1],o):f(n[1],i[1],a[1],1-o);t.rotation=-Math.atan2(d,v)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=ho(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):t.__lastT===1?t.scaleY=2*ho(a,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,a){this.childAt(0).updateLayout(t,a);var n=t.getItemModel(a).getModel("effect");this._updateEffectAnimation(t,n,a)},e})(Ct),nk=(function(r){$(e,r);function e(t,a,n){var i=r.call(this)||this;return i._createPolyline(t,a,n),i}return e.prototype._createPolyline=function(t,a,n){var i=t.getItemLayout(a),o=new Gr({shape:{points:i}});this.add(o),this._updateCommonStl(t,a,n)},e.prototype.updateData=function(t,a,n){var i=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(a)}};Jt(o,s,i,a),this._updateCommonStl(t,a,n)},e.prototype._updateCommonStl=function(t,a,n){var i=this.childAt(0),o=t.getItemModel(a),s=n&&n.emphasisLineStyle,l=n&&n.focus,u=n&&n.blurScope,f=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var v=o.getModel("emphasis");s=v.getModel("lineStyle").getLineStyle(),f=v.get("disabled"),l=v.get("focus"),u=v.get("blurScope")}i.useStyle(t.getItemVisual(a,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var d=i.ensureState("emphasis");d.style=s,Pe(this,l,u,f)},e.prototype.updateLayout=function(t,a){var n=this.childAt(0);n.setShape("points",t.getItemLayout(a))},e})(Ct),qQ=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,a,n){return new nk(t,a,n)},e.prototype._updateAnimationPoints=function(t,a){this._points=a;for(var n=[0],i=0,o=1;o<a.length;o++){var s=a[o-1],l=a[o];i+=ho(s,l),n.push(i)}if(i===0){this._length=0;return}for(var o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var a=t.__t<1?t.__t:2-t.__t,n=this._points,i=this._offsets,o=n.length;if(i){var s=this._lastFrame,l;if(a<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>a);l++);l=Math.min(l-1,o-2)}var f=(a-i[l])/(i[l+1]-i[l]),v=n[l],d=n[l+1];t.x=v[0]*(1-f)+f*d[0],t.y=v[1]*(1-f)+f*d[1];var p=t.__t<1?d[0]-v[0]:v[0]-d[0],y=t.__t<1?d[1]-v[1]:v[1]-d[1];t.rotation=-Math.atan2(y,p)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,t.ignore=!1}},e})(ak),$Q=(function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r})(),KQ=(function(r){$(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new $Q},e.prototype.buildPath=function(t,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o<n.length;){var s=n[o++];if(s>0){t.moveTo(n[o++],n[o++]);for(var l=1;l<s;l++)t.lineTo(n[o++],n[o++])}}else for(o=this._off;o<n.length;){var u=n[o++],f=n[o++],v=n[o++],d=n[o++];if(t.moveTo(u,f),i>0){var p=(u+v)/2-(f-d)*i,y=(f+d)/2-(v-u)*i;t.quadraticCurveTo(p,y,v,d)}else t.lineTo(v,d)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u<i.length;){var f=i[u++];if(f>0)for(var v=i[u++],d=i[u++],p=1;p<f;p++){var y=i[u++],m=i[u++];if(co(v,d,y,m,s,t,a))return l}l++}else for(var l=0,u=0;u<i.length;){var v=i[u++],d=i[u++],y=i[u++],m=i[u++];if(o>0){var _=(v+y)/2-(d-m)*o,S=(d+m)/2-(y-v)*o;if(I3(v,d,_,S,y,m,s,t,a))return l}else if(co(v,d,y,m,s,t,a))return l;l++}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<n.length;){var f=n[u++],v=n[u++];i=Math.min(f,i),s=Math.max(f,s),o=Math.min(v,o),l=Math.max(v,l)}t=this._rect=new kt(i,o,s,l)}return t},e})(Ut),QQ=(function(){function r(){this.group=new Ct}return r.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(e,t){var a=this._newAdded[0],n=t.getLayout("linesPoints"),i=a&&a.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+n.length);s.set(i),s.set(n,o),a.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:n}),this._setCommon(l,t),l.__startIndex=e.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new KQ({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},r.prototype._setCommon=function(e,t,a){var n=t.hostModel;e.setShape({polyline:n.get("polyline"),curveness:n.get(["lineStyle","curveness"])}),e.useStyle(n.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=Rt(e);o.seriesIndex=n.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),ik={seriesType:"lines",plan:tc(),reset:function(r){var e=r.coordinateSystem;if(e){var t=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(t){for(var u=0,f=n.start;f<n.end;f++)u+=r.getLineCoordsCount(f);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var v=0,d=[],f=n.start;f<n.end;f++){var p=r.getLineCoords(f,o);t&&(s[v++]=p);for(var y=0;y<p;y++)d=e.dataToPoint(o[y],!1,d),s[v++]=d[0],s[v++]=d[1]}i.setLayout("linesPoints",s)}else for(var f=n.start;f<n.end;f++){var m=i.getItemModel(f),p=r.getLineCoords(f,o),_=[];if(t)for(var S=0;S<p;S++)_.push(e.dataToPoint(o[S]));else{_[0]=e.dataToPoint(o[0]),_[1]=e.dataToPoint(o[1]);var b=m.get(["lineStyle","curveness"]);+b&&(_[2]=[(_[0][0]+_[1][0])/2-(_[0][1]-_[1][1])*b,(_[0][1]+_[1][1])/2-(_[1][0]-_[0][0])*b])}i.setItemLayout(f,_)}}}}}},JQ=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._updateLineDraw(i,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=n.getZr(),f=u.painter.getType()==="svg";f||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!f&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var v=t.get("clip",!0)&&Sy(t.coordinateSystem,!1,t);v?this.group.setClipPath(v):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._lineDraw.incrementalUpdate(t,a.getData()),this._finished=t.end===a.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,a,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=ik.reset(t,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new QQ:new N2(o?i?qQ:nk:i?ak:I2),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var a=t.getZr(),n=a.painter.getType()==="svg";!n&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.type="lines",e})(de),tJ=typeof Uint32Array>"u"?Array:Uint32Array,eJ=typeof Float64Array>"u"?Array:Float64Array;function y5(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=st(e,function(t){var a=[t[0].coord,t[1].coord],n={coords:a};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),db([n,t[0],t[1]])}))}var rJ=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],y5(t);var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(y5(t),t.data){var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var a=this._processFlatCoordsArray(t.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=Xp(this._flatCoords,a.flatCoords),this._flatCoordsOffset=Xp(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),t.data=new Float32Array(a.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var a=this.getData().getItemModel(t),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o<i;o++)a[o]=a[o]||[],a[o][0]=this._flatCoords[n+o*2],a[o][1]=this._flatCoords[n+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(t),o=0;o<s.length;o++)a[o]=a[o]||[],a[o][0]=s[o][0],a[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var a=0;if(this._flatCoords&&(a=this._flatCoords.length),Qt(t[0])){for(var n=t.length,i=new tJ(n),o=new eJ(n),s=0,l=0,u=0,f=0;f<n;){u++;var v=t[f++];i[l++]=s+a,i[l++]=v;for(var d=0;d<v;d++){var p=t[f++],y=t[f++];o[s++]=p,o[s++]=y}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,a){var n=new Pr(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;n.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),n},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=i.getItemModel(t),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ir("nameValue",{name:f.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),a=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&a>0?a+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e})(Se);function hp(r){return r instanceof Array||(r=[r,r]),r}var aJ={seriesType:"lines",reset:function(r){var e=hp(r.get("symbol")),t=hp(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",e&&e[0]),a.setVisual("toSymbol",e&&e[1]),a.setVisual("fromSymbolSize",t&&t[0]),a.setVisual("toSymbolSize",t&&t[1]);function n(i,o){var s=i.getItemModel(o),l=hp(s.getShallow("symbol",!0)),u=hp(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?n:null}}};function nJ(r){r.registerChartView(JQ),r.registerSeriesModel(rJ),r.registerLayout(ik),r.registerVisual(aJ)}var iJ=256,oJ=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Mo.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,v=this.canvas,d=v.getContext("2d"),p=e.length;v.width=t,v.height=a;for(var y=0;y<p;++y){var m=e[y],_=m[0],S=m[1],b=m[2],w=n(b);d.globalAlpha=w,d.drawImage(s,_-f,S-f)}if(!v.width||!v.height)return v;for(var A=d.getImageData(0,0,v.width,v.height),M=A.data,C=0,L=M.length,E=this.minOpacity,R=this.maxOpacity,N=R-E;C<L;){var w=M[C+3]/256,O=Math.floor(w*(iJ-1))*4;if(w>0){var k=o(w)?l:u;w>0&&(w=w*N+E),M[C++]=k[O],M[C++]=k[O+1],M[C++]=k[O+2],M[C++]=k[O+3]*w*256}else C+=4}return d.putImageData(A,0,0),v},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Mo.createCanvas()),t=this.pointSize+this.blurSize,a=t*2;e.width=a,e.height=a;var n=e.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-t,t,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),e},r.prototype._getGradient=function(e,t){for(var a=this._gradientPixels,n=a[t]||(a[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r})();function sJ(r,e,t){var a=r[1]-r[0];e=st(e,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=e.length,i=0;return function(o){var s;for(s=i;s<n;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===n)for(s=i-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<n&&t[s]}}function lJ(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(a){return a>=e[0]&&a<=e[1]}}function m5(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var uJ=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):m5(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,a,n,i){var o=a.coordinateSystem;o&&(m5(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(a,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Oo(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,a,n,i,o){var s=t.coordinateSystem,l=cl(s,"cartesian2d"),u,f,v,d;if(l){var p=s.getAxis("x"),y=s.getAxis("y");u=p.getBandWidth()+.5,f=y.getBandWidth()+.5,v=p.scale.getExtent(),d=y.scale.getExtent()}for(var m=this.group,_=t.getData(),S=t.getModel(["emphasis","itemStyle"]).getItemStyle(),b=t.getModel(["blur","itemStyle"]).getItemStyle(),w=t.getModel(["select","itemStyle"]).getItemStyle(),A=t.get(["itemStyle","borderRadius"]),M=nr(t),C=t.getModel("emphasis"),L=C.get("focus"),E=C.get("blurScope"),R=C.get("disabled"),N=l?[_.mapDimension("x"),_.mapDimension("y"),_.mapDimension("value")]:[_.mapDimension("time"),_.mapDimension("value")],O=n;O<i;O++){var k=void 0,G=_.getItemVisual(O,"style");if(l){var H=_.get(N[0],O),F=_.get(N[1],O);if(isNaN(_.get(N[2],O))||isNaN(H)||isNaN(F)||H<v[0]||H>v[1]||F<d[0]||F>d[1])continue;var B=s.dataToPoint([H,F]);k=new Wt({shape:{x:B[0]-u/2,y:B[1]-f/2,width:u,height:f},style:G})}else{if(isNaN(_.get(N[1],O)))continue;k=new Wt({z2:1,shape:s.dataToRect([_.get(N[0],O)]).contentShape,style:G})}if(_.hasItemOption){var j=_.getItemModel(O),Y=j.getModel("emphasis");S=Y.getModel("itemStyle").getItemStyle(),b=j.getModel(["blur","itemStyle"]).getItemStyle(),w=j.getModel(["select","itemStyle"]).getItemStyle(),A=j.get(["itemStyle","borderRadius"]),L=Y.get("focus"),E=Y.get("blurScope"),R=Y.get("disabled"),M=nr(j)}k.shape.r=A;var K=t.getRawValue(O),nt="-";K&&K[2]!=null&&(nt=K[2]+""),Sr(k,M,{labelFetcher:t,labelDataIndex:O,defaultOpacity:G.opacity,defaultText:nt}),k.ensureState("emphasis").style=S,k.ensureState("blur").style=b,k.ensureState("select").style=w,Pe(k,L,E,R),k.incremental=o,o&&(k.states.emphasis.hoverLayer=!0),m.add(k),_.setItemGraphicEl(O,k),this._progressiveEls&&this._progressiveEls.push(k)}},e.prototype._renderOnGeo=function(t,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new oJ;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=t.getViewRect().clone(),v=t.getRoamTransform();f.applyTransform(v);var d=Math.max(f.x,0),p=Math.max(f.y,0),y=Math.min(f.width+f.x,i.getWidth()),m=Math.min(f.height+f.y,i.getHeight()),_=y-d,S=m-p,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],w=l.mapArray(b,function(L,E,R){var N=t.dataToPoint([L,E]);return N[0]-=d,N[1]-=p,N.push(R),N}),A=n.getExtent(),M=n.type==="visualMap.continuous"?lJ(A,n.option.range):sJ(A,n.getPieceList(),n.option.selected);u.update(w,_,S,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},M);var C=new hr({style:{width:_,height:S,x:d,y:p,image:u.canvas},silent:!0});this.group.add(C)},e.type="heatmap",e})(de),cJ=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return Di(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Uh.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e})(Se);function fJ(r){r.registerChartView(uJ),r.registerSeriesModel(cJ)}var hJ=["itemStyle","borderWidth"],_5=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],j_=new un,vJ=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),v=l.master.getRect(),d={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[v.x,v.x+v.width],[v.y,v.y+v.height]],isHorizontal:f,valueDim:_5[+f],categoryDim:_5[1-+f]};return o.diff(s).add(function(p){if(o.hasValue(p)){var y=S5(o,p),m=x5(o,p,y,d),_=b5(o,d,m);o.setItemGraphicEl(p,_),i.add(_),T5(_,d,m)}}).update(function(p,y){var m=s.getItemGraphicEl(y);if(!o.hasValue(p)){i.remove(m);return}var _=S5(o,p),S=x5(o,p,_,d),b=fk(o,S);m&&b!==m.__pictorialShapeStr&&(i.remove(m),o.setItemGraphicEl(p,null),m=null),m?xJ(m,d,S):m=b5(o,d,S,!0),o.setItemGraphicEl(p,m),m.__pictorialSymbolMeta=S,i.add(m),T5(m,d,S)}).remove(function(p){var y=s.getItemGraphicEl(p);y&&w5(s,p,y.__pictorialSymbolMeta.animationModel,y)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,a){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){w5(i,Rt(o).dataIndex,t,o)}):n.removeAll()},e.type="pictorialBar",e})(de);function x5(r,e,t,a){var n=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,v=t.isAnimationEnabled(),d={dataIndex:e,layout:n,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:v?t:null,hoverScale:v&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};dJ(t,i,n,a,d),pJ(r,e,n,i,o,d.boundingLength,d.pxSign,f,a,d),gJ(t,d.symbolScale,u,a,d);var p=d.symbolSize,y=ll(t.get("symbolOffset"),p);return yJ(t,p,n,i,o,y,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,a,d),d}function dJ(r,e,t,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),f;if(it(o)){var v=[Y_(s,o[0])-l,Y_(s,o[1])-l];v[1]<v[0]&&v.reverse(),f=v[u]}else o!=null?f=Y_(s,o)-l:e?f=a.coordSysExtent[i.index][u]-l:f=t[i.wh];n.boundingLength=f,e&&(n.repeatCutLength=t[i.wh]),n.pxSign=f>0?1:-1}function Y_(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function pJ(r,e,t,a,n,i,o,s,l,u){var f=l.valueDim,v=l.categoryDim,d=Math.abs(t[v.wh]),p=r.getItemVisual(e,"symbolSize"),y;it(p)?y=p.slice():p==null?y=["100%","100%"]:y=[p,p],y[v.index]=ft(y[v.index],d),y[f.index]=ft(y[f.index],a?d:Math.abs(i)),u.symbolSize=y;var m=u.symbolScale=[y[0]/s,y[1]/s];m[f.index]*=(l.isHorizontal?-1:1)*o}function gJ(r,e,t,a,n){var i=r.get(hJ)||0;i&&(j_.attr({scaleX:e[0],scaleY:e[1],rotation:t}),j_.updateTransform(),i/=j_.getLineScale(),i*=e[a.valueDim.index]),n.valueLineWidth=i||0}function yJ(r,e,t,a,n,i,o,s,l,u,f,v){var d=f.categoryDim,p=f.valueDim,y=v.pxSign,m=Math.max(e[p.index]+s,0),_=m;if(a){var S=Math.abs(l),b=fr(r.get("symbolMargin"),"15%")+"",w=!1;b.lastIndexOf("!")===b.length-1&&(w=!0,b=b.slice(0,b.length-1));var A=ft(b,e[p.index]),M=Math.max(m+A*2,0),C=w?0:A*2,L=y3(a),E=L?a:A5((S+C)/M),R=S-E*m;A=R/2/(w?E:Math.max(E-1,1)),M=m+A*2,C=w?0:A*2,!L&&a!=="fixed"&&(E=u?A5((Math.abs(u)+C)/M):0),_=E*M-C,v.repeatTimes=E,v.symbolMargin=A}var N=y*(_/2),O=v.pathPosition=[];O[d.index]=t[d.wh]/2,O[p.index]=o==="start"?N:o==="end"?l-N:l/2,i&&(O[0]+=i[0],O[1]+=i[1]);var k=v.bundlePosition=[];k[d.index]=t[d.xy],k[p.index]=t[p.xy];var G=v.barRectShape=et({},t);G[p.wh]=y*Math.max(Math.abs(t[p.wh]),Math.abs(O[p.index]+N)),G[d.wh]=t[d.wh];var H=v.clipShape={};H[d.xy]=-t[d.xy],H[d.wh]=f.ecSize[d.wh],H[p.xy]=0,H[p.wh]=t[p.wh]}function ok(r){var e=r.symbolPatternSize,t=Ye(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function sk(r,e,t,a){var n=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,v=i[e.valueDim.index]+o+t.symbolMargin*2;for(H2(r,function(m){m.__pictorialAnimationIndex=f,m.__pictorialRepeatTimes=u,f<u?Ru(m,null,y(f),t,a):Ru(m,null,{scaleX:0,scaleY:0},t,a,function(){n.remove(m)}),f++});f<u;f++){var d=ok(t);d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,n.add(d);var p=y(f);Ru(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},t,a)}function y(m){var _=s.slice(),S=t.pxSign,b=m;return(t.symbolRepeatDirection==="start"?S>0:S<0)&&(b=u-1-m),_[l.index]=v*(b-u/2+.5)+s[l.index],{x:_[0],y:_[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function lk(r,e,t,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?Ru(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,a):(i=r.__pictorialMainPath=ok(t),n.add(i),Ru(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,a))}function uk(r,e,t){var a=et({},e.barRectShape),n=r.__pictorialBarRect;n?Ru(n,null,{shape:a},e,t):(n=r.__pictorialBarRect=new Wt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function ck(r,e,t,a){if(t.symbolClip){var n=r.__pictorialClipPath,i=et({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(n)Jt(n,{shape:i},s,l);else{i[o.wh]=0,n=new Wt({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=t.clipShape[o.wh],Hh[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function S5(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=mJ,t.isAnimationEnabled=_J,t}function mJ(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function _J(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function b5(r,e,t,a){var n=new Ct,i=new Ct;return n.add(i),n.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?sk(n,e,t):lk(n,e,t),uk(n,t,a),ck(n,e,t,a),n.__pictorialShapeStr=fk(r,t),n.__pictorialSymbolMeta=t,n}function xJ(r,e,t){var a=t.animationModel,n=t.dataIndex,i=r.__pictorialBundle;Jt(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},a,n),t.symbolRepeat?sk(r,e,t,!0):lk(r,e,t,!0),uk(r,t,!0),ck(r,e,t,!0)}function w5(r,e,t,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];H2(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(t=null),P(i,function(o){Eo(o,{scaleX:0,scaleY:0},t,e,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(e,null)}function fk(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function H2(r,e,t){P(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&e.call(t,a)})}function Ru(r,e,t,a,n,i){e&&r.attr(e),a.symbolClip&&!n?t&&r.attr(t):t&&Hh[n?"updateProps":"initProps"](r,t,a.animationModel,a.dataIndex,i)}function T5(r,e,t){var a=t.dataIndex,n=t.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),f=i.get("focus"),v=i.get("blurScope"),d=i.get("scale");H2(r,function(m){if(m instanceof hr){var _=m.style;m.useStyle(et({image:_.image,x:_.x,y:_.y,width:_.width,height:_.height},t.style))}else m.useStyle(t.style);var S=m.ensureState("emphasis");S.style=o,d&&(S.scaleX=m.scaleX*1.1,S.scaleY=m.scaleY*1.1),m.ensureState("blur").style=s,m.ensureState("select").style=l,u&&(m.cursor=u),m.z2=t.z2});var p=e.valueDim.posDesc[+(t.boundingLength>0)],y=r.__pictorialBarRect;Sr(y,nr(n),{labelFetcher:e.seriesModel,labelDataIndex:a,defaultText:ku(e.seriesModel.getData(),a),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:p}),Pe(r,f,v,i.get("disabled"))}function A5(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var SJ=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=zo(bh.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e})(bh);function bJ(r){r.registerChartView(vJ),r.registerSeriesModel(SJ),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,It(KO,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,QO("pictorialBar"))}var wJ=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,v=u.boundaryGap;s.x=0,s.y=f.y+v[0];function d(_){return _.name}var p=new Si(this._layersSeries||[],l,d,d),y=[];p.add(dt(m,this,"add")).update(dt(m,this,"update")).remove(dt(m,this,"remove")).execute();function m(_,S,b){var w=o._layers;if(_==="remove"){s.remove(w[S]);return}for(var A=[],M=[],C,L=l[S].indices,E=0;E<L.length;E++){var R=i.getItemLayout(L[E]),N=R.x,O=R.y0,k=R.y;A.push(N,O),M.push(N,O+k),C=i.getItemVisual(L[E],"style")}var G,H=i.getItemLayout(L[0]),F=t.getModel("label"),B=F.get("margin"),j=t.getModel("emphasis");if(_==="add"){var Y=y[S]=new Ct;G=new B4({shape:{points:A,stackedOnPoints:M,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),Y.add(G),s.add(Y),t.isAnimationEnabled()&&G.setClipPath(TJ(G.getBoundingRect(),t,function(){G.removeClipPath()}))}else{var Y=w[b];G=Y.childAt(0),s.add(Y),y[S]=Y,Jt(G,{shape:{points:A,stackedOnPoints:M}},t),cn(G)}Sr(G,nr(t),{labelDataIndex:L[E-1],defaultText:i.getName(L[E-1]),inheritColor:C.fill},{normal:{verticalAlign:"middle"}}),G.setTextConfig({position:null,local:!0});var K=G.getTextContent();K&&(K.x=H.x-B,K.y=H.y0+H.y/2),G.useStyle(C),i.setItemGraphicEl(S,G),xr(G,t),Pe(G,j.get("focus"),j.get("blurScope"),j.get("disabled"))}this._layersSeries=l,this._layers=y},e.type="themeRiver",e})(de);function TJ(r,e,t){var a=new Wt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Le(a,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},e,t),a}var X_=2,AJ=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Kh(dt(this.getData,this),dt(this.getRawData,this))},e.prototype.fixData=function(t){var a=t.length,n={},i=Fx(t,function(d){return n.hasOwnProperty(d[0]+"")||(n[d[0]+""]=-1),d[2]}),o=[];i.buckets.each(function(d,p){o.push({name:p,dataList:d})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,f=0;f<o[l].dataList.length;++f){var v=o[l].dataList[f][0]+"";n[v]=l}for(var v in n)n.hasOwnProperty(v)&&n[v]!==l&&(n[v]=l,t[a]=[v,0,u],a++)}return t},e.prototype.getInitialData=function(t,a){for(var n=this.getReferringComponents("singleAxis",je).models[0],i=n.get("type"),o=le(t.data,function(y){return y[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=xt(),f=0,v=0;v<s.length;++v)l.push(s[v][X_]),u.get(s[v][X_])||(u.set(s[v][X_],f),f++);var d=jh(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:yg(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,p=new Pr(d,this);return p.initData(s),p},e.prototype.getLayerSeries=function(){for(var t=this.getData(),a=t.count(),n=[],i=0;i<a;++i)n[i]=i;var o=t.mapDimension("single"),s=Fx(n,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,f){u.sort(function(v,d){return t.get(o,v)-t.get(o,d)}),l.push({name:f,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,a,n){it(t)||(t=t?[t]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,f=0;f<l;++f){for(var v=Number.MAX_VALUE,d=-1,p=o[f].indices.length,y=0;y<p;++y){var m=i.get(t[0],o[f].indices[y]),_=Math.abs(m-a);_<=v&&(u=m,v=_,d=o[f].indices[y])}s.push(d)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=i.getName(t),s=i.get(i.mapDimension("value"),t);return ir("nameValue",{name:o,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e})(Se);function DJ(r,e){r.eachSeriesByType("themeRiver",function(t){var a=t.getData(),n=t.coordinateSystem,i={},o=n.getRect();i.rect=o;var s=t.get("boundaryGap"),l=n.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=ft(s[0],o.height),s[1]=ft(s[1],o.height);var u=o.height-s[0]-s[1];D5(a,t,u)}else{s[0]=ft(s[0],o.width),s[1]=ft(s[1],o.width);var f=o.width-s[0]-s[1];D5(a,t,f)}a.setLayout("layoutInfo",i)})}function D5(r,e,t){if(r.count())for(var a=e.coordinateSystem,n=e.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=st(n,function(_){return st(_.indices,function(S){var b=a.dataToPoint(r.get(i,S));return b[1]=r.get(o,S),b})}),l=CJ(s),u=l.y0,f=t/l.max,v=n.length,d=n[0].indices.length,p,y=0;y<d;++y){p=u[y]*f,r.setItemLayout(n[0].indices[y],{layerIndex:0,x:s[0][y][0],y0:p,y:s[0][y][1]*f});for(var m=1;m<v;++m)p+=s[m-1][y][1]*f,r.setItemLayout(n[m].indices[y],{layerIndex:m,x:s[m][y][0],y0:p,y:s[m][y][1]*f})}}function CJ(r){for(var e=r.length,t=r[0].length,a=[],n=[],i=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=r[l][o][1];s>i&&(i=s),a.push(s)}for(var u=0;u<t;++u)n[u]=(i-a[u])/2;i=0;for(var f=0;f<t;++f){var v=a[f]+n[f];v>i&&(i=v)}return{y0:n,max:i}}function MJ(r){r.registerChartView(wJ),r.registerSeriesModel(AJ),r.registerLayout(DJ),r.registerProcessor($h("themeRiver"))}var LJ=2,EJ=4,C5=(function(r){$(e,r);function e(t,a,n,i){var o=r.call(this)||this;o.z2=LJ,o.textConfig={inside:!0},Rt(o).seriesIndex=a.seriesIndex;var s=new $t({z2:EJ,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,a,n,i),o}return e.prototype.updateData=function(t,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;Rt(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),f=a.getLayout(),v=et({},f);v.label=null;var d=a.getVisual("style");d.lineJoin="bevel";var p=a.getVisual("decal");p&&(d.decal=Ou(p,o));var y=Us(l.getModel("itemStyle"),v,!0);et(v,y),P(kr,function(b){var w=s.ensureState(b),A=l.getModel([b,"itemStyle"]);w.style=A.getItemStyle();var M=Us(A,v);M&&(w.shape=M)}),t?(s.setShape(v),s.shape.r=f.r0,Le(s,{shape:{r:f.r}},n,a.dataIndex)):(Jt(s,{shape:v},n),cn(s)),s.useStyle(d),this._updateLabel(n);var m=l.getShallow("cursor");m&&s.attr("cursor",m),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var _=u.get("focus"),S=_==="ancestor"?a.getAncestorsIndices():_==="descendant"?a.getDescendantIndices():_;Pe(this,S,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),v=this,d=v.getTextContent(),p=this.node.dataIndex,y=i.get("minAngle")/180*Math.PI,m=i.get("show")&&!(y!=null&&Math.abs(s)<y);d.ignore=!m,P(uh,function(S){var b=S==="normal"?n.getModel("label"):n.getModel([S,"label"]),w=S==="normal",A=w?d:d.ensureState(S),M=t.getFormattedLabel(p,S);w&&(M=M||a.node.name),A.style=xe(b,{},null,S!=="normal",!0),M&&(A.style.text=M);var C=b.get("show");C!=null&&!w&&(A.ignore=!C);var L=_(b,"position"),E=w?v:v.states[S],R=E.style.fill;E.textConfig={outsideFill:b.get("color")==="inherit"?R:null,inside:L!=="outside"};var N,O=_(b,"distance")||0,k=_(b,"align");L==="outside"?(N=o.r+O,k=l>Math.PI/2?"right":"left"):!k||k==="center"?(s===2*Math.PI&&o.r0===0?N=0:N=(o.r+o.r0)/2,k="center"):k==="left"?(N=o.r0+O,l>Math.PI/2&&(k="right")):k==="right"&&(N=o.r-O,l>Math.PI/2&&(k="left")),A.style.align=k,A.style.verticalAlign=_(b,"verticalAlign")||"middle",A.x=N*u+o.cx,A.y=N*f+o.cy;var G=_(b,"rotate"),H=0;G==="radial"?(H=an(-l),H>Math.PI/2&&H<Math.PI*1.5&&(H+=Math.PI)):G==="tangential"?(H=Math.PI/2-l,H>Math.PI/2?H-=Math.PI:H<-Math.PI/2&&(H+=Math.PI)):Qt(G)&&(H=G*Math.PI/180),A.rotation=an(H)});function _(S,b){var w=S.get(b);return w??i.get(b)}d.dirtyStyle()},e})(Br),FS="sunburstRootToNode",M5="sunburstHighlight",RJ="sunburstUnhighlight";function IJ(r){r.registerAction({type:FS,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(n,i){var o=Th(e,[FS],n);if(o){var s=n.getViewRoot();s&&(e.direction=C2(s,o.node)?"rollUp":"drillDown"),n.resetViewRoot(o.node)}}}),r.registerAction({type:M5,update:"none"},function(e,t,a){e=et({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(i){var o=Th(e,[M5],i);o&&(e.dataIndex=o.node.dataIndex)}a.dispatchAction(et(e,{type:"highlight"}))}),r.registerAction({type:RJ,update:"updateView"},function(e,t,a){e=et({},e),a.dispatchAction(et(e,{type:"downplay"}))})}var NJ=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){var o=this;this.seriesModel=t,this.api=n,this.ecModel=a;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),f=this.group,v=t.get("renderLabelForZeroData"),d=[];u.eachNode(function(b){d.push(b)});var p=this._oldChildren||[];y(d,p),S(l,u),this._initEvents(),this._oldChildren=d;function y(b,w){if(b.length===0&&w.length===0)return;new Si(w,b,A,A).add(M).update(M).remove(It(M,null)).execute();function A(C){return C.getId()}function M(C,L){var E=C==null?null:b[C],R=L==null?null:w[L];m(E,R)}}function m(b,w){if(!v&&b&&!b.getValue()&&(b=null),b!==l&&w!==l){if(w&&w.piece)b?(w.piece.updateData(!1,b,t,a,n),s.setItemGraphicEl(b.dataIndex,w.piece)):_(w);else if(b){var A=new C5(b,t,a,n);f.add(A),s.setItemGraphicEl(b.dataIndex,A)}}}function _(b){b&&b.piece&&(f.remove(b.piece),b.piece=null)}function S(b,w){w.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,b,t,a,n):(o.virtualPiece=new C5(b,t,a,n),f.add(o.virtualPiece)),w.piece.off("click"),o.virtualPiece.on("click",function(A){o._rootToNode(w.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";ug(u,f)}}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:FS,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e})(de),PJ=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};hk(n);var i=this._levelModels=st(t.levels||[],function(l){return new oe(l,this,a)},this),o=D2.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var v=o.getNodeByDataIndex(f),d=i[v.depth];return d&&(u.parentModel=d),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treePathInfo=Ty(n,this),a},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){yz(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e})(Se);function hk(r){var e=0;P(r.children,function(a){hk(a);var n=a.value;it(n)&&(n=n[0]),e+=n});var t=r.value;it(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),it(r.value)?r.value[0]=t:r.value=t}var L5=Math.PI/180;function OJ(r,e,t){e.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");it(i)||(i=[0,i]),it(n)||(n=[n,n]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=ft(n[0],o),f=ft(n[1],s),v=ft(i[0],l/2),d=ft(i[1],l/2),p=-a.get("startAngle")*L5,y=a.get("minAngle")*L5,m=a.getData().tree.root,_=a.getViewRoot(),S=_.depth,b=a.get("sort");b!=null&&vk(_,b);var w=0;P(_.children,function(B){!isNaN(B.getValue())&&w++});var A=_.getValue(),M=Math.PI/(A||w)*2,C=_.depth>0,L=_.height-(C?-1:1),E=(d-v)/(L||1),R=a.get("clockwise"),N=a.get("stillShowZeroSum"),O=R?1:-1,k=function(B,j){if(B){var Y=j;if(B!==m){var K=B.getValue(),nt=A===0&&N?M:K*M;nt<y&&(nt=y),Y=j+O*nt;var U=B.depth-S-(C?-1:1),W=v+E*U,rt=v+E*(U+1),ot=a.getLevelModel(B);if(ot){var ht=ot.get("r0",!0),gt=ot.get("r",!0),mt=ot.get("radius",!0);mt!=null&&(ht=mt[0],gt=mt[1]),ht!=null&&(W=ft(ht,l/2)),gt!=null&&(rt=ft(gt,l/2))}B.setLayout({angle:nt,startAngle:j,endAngle:Y,clockwise:R,cx:u,cy:f,r0:W,r:rt})}if(B.children&&B.children.length){var yt=0;P(B.children,function(St){yt+=k(St,j+yt)})}return Y-j}};if(C){var G=v,H=v+E,F=Math.PI*2;m.setLayout({angle:F,startAngle:p,endAngle:p+F,clockwise:R,cx:u,cy:f,r0:G,r:H})}k(_,p)})}function vk(r,e){var t=r.children||[];r.children=zJ(t,e),t.length&&P(r.children,function(a){vk(a,e)})}function zJ(r,e){if(bt(e)){var t=st(r,function(n,i){var o=n.getValue();return{params:{depth:n.depth,height:n.height,dataIndex:n.dataIndex,getValue:function(){return o}},index:i}});return t.sort(function(n,i){return e(n.params,i.params)}),st(t,function(n){return r[n.index]})}else{var a=e==="asc";return r.sort(function(n,i){var o=(n.getValue()-i.getValue())*(a?1:-1);return o===0?(n.dataIndex-i.dataIndex)*(a?-1:1):o})}}function kJ(r){var e={};function t(a,n,i){for(var o=a;o&&o.depth>1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",e);return a.depth>1&&vt(s)&&(s=Nx(s,(a.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");et(u,l)})})}function BJ(r){r.registerChartView(NJ),r.registerSeriesModel(PJ),r.registerLayout(It(OJ,"sunburst")),r.registerProcessor(It($h,"sunburst")),r.registerVisual(kJ),IJ(r)}var E5={color:"fill",borderColor:"stroke"},VJ={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},pi=Kt(),GJ=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,a){return Di(null,this)},e.prototype.getDataParams=function(t,a,n){var i=r.prototype.getDataParams.call(this,t,a);return n&&(i.info=pi(n).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e})(Se);function HJ(r,e){return e=e||[0,0],st(["x","y"],function(t,a){var n=this.getAxis(t),i=e[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function UJ(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:dt(HJ,r)}}}function FJ(r,e){return e=e||[0,0],st([0,1],function(t){var a=e[t],n=r[t]/2,i=[],o=[];return i[t]=a-n,o[t]=a+n,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function jJ(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:dt(FJ,r)}}}function YJ(r,e){var t=this.getAxis(),a=e instanceof Array?e[0]:e,n=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(a-n)-t.dataToCoord(a+n))}function XJ(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:dt(YJ,r)}}}function ZJ(r,e){return e=e||[0,0],st(["Radius","Angle"],function(t,a){var n="get"+t+"Axis",i=this[n](),o=e[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function WJ(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),a=e.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=e.dataToRadius(n[0]),o=t.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:dt(ZJ,r)}}}function qJ(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)}}}}function dk(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||pt(r,"text")))}function pk(r,e,t){var a=r,n,i,o;if(e==="text")o=a;else{o={},pt(a,"text")&&(o.text=a.text),pt(a,"rich")&&(o.rich=a.rich),pt(a,"textFill")&&(o.fill=a.textFill),pt(a,"textStroke")&&(o.stroke=a.textStroke),pt(a,"fontFamily")&&(o.fontFamily=a.fontFamily),pt(a,"fontSize")&&(o.fontSize=a.fontSize),pt(a,"fontStyle")&&(o.fontStyle=a.fontStyle),pt(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=pt(a,"textPosition");t?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),pt(a,"textPosition")&&(n.position=a.textPosition),pt(a,"textOffset")&&(n.offset=a.textOffset),pt(a,"textRotation")&&(n.rotation=a.textRotation),pt(a,"textDistance")&&(n.distance=a.textDistance)}return R5(o,r),P(o.rich,function(l){R5(l,l)}),{textConfig:n,textContent:i}}function R5(r,e){e&&(e.font=e.textFont||e.font,pt(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),pt(e,"textAlign")&&(r.align=e.textAlign),pt(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),pt(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),pt(e,"textWidth")&&(r.width=e.textWidth),pt(e,"textHeight")&&(r.height=e.textHeight),pt(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),pt(e,"textPadding")&&(r.padding=e.textPadding),pt(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),pt(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),pt(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),pt(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),pt(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),pt(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),pt(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function I5(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",t.offset!=null&&(a.textOffset=t.offset),t.rotation!=null&&(a.textRotation=t.rotation),t.distance!=null&&(a.textDistance=t.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||"#000";N5(a,e);var o=a.textFill==null;return n?o&&(a.textFill=t.insideFill||"#fff",!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||"#000"),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,P(e.rich,function(s){N5(s,s)}),a}function N5(r,e){e&&(pt(e,"fill")&&(r.textFill=e.fill),pt(e,"stroke")&&(r.textStroke=e.fill),pt(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),pt(e,"font")&&(r.font=e.font),pt(e,"fontStyle")&&(r.fontStyle=e.fontStyle),pt(e,"fontWeight")&&(r.fontWeight=e.fontWeight),pt(e,"fontSize")&&(r.fontSize=e.fontSize),pt(e,"fontFamily")&&(r.fontFamily=e.fontFamily),pt(e,"align")&&(r.textAlign=e.align),pt(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),pt(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),pt(e,"width")&&(r.textWidth=e.width),pt(e,"height")&&(r.textHeight=e.height),pt(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),pt(e,"padding")&&(r.textPadding=e.padding),pt(e,"borderColor")&&(r.textBorderColor=e.borderColor),pt(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),pt(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),pt(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),pt(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),pt(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),pt(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),pt(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),pt(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),pt(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),pt(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var gk={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},P5=Yt(gk);Nn(On,function(r,e){return r[e]=1,r},{});On.join(", ");var Lg=["","style","shape","extra"],Gu=Kt();function U2(r,e,t,a,n){var i=r+"Animation",o=Zu(r,a,n)||{},s=Gu(e).userDuring;return o.duration>0&&(o.during=s?dt(ttt,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),et(o,t[i]),o}function Vp(r,e,t,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=Gu(r),u=e.style;l.userDuring=e.during;var f={},v={};if(rtt(r,e,v),z5("shape",e,v),z5("extra",e,v),!i&&s&&(ett(r,e,f),O5("shape",r,e,f),O5("extra",r,e,f),att(r,e,u,f)),v.style=u,$J(r,v,o),QJ(r,e),s)if(i){var d={};P(Lg,function(y){var m=y?e[y]:e;m&&m.enterFrom&&(y&&(d[y]=d[y]||{}),et(y?d[y]:d,m.enterFrom))});var p=U2("enter",r,e,t,n);p.duration>0&&r.animateFrom(d,p)}else KJ(r,e,n||0,t,f);yk(r,e),u?r.dirty():r.markRedraw()}function yk(r,e){for(var t=Gu(r).leaveToProps,a=0;a<Lg.length;a++){var n=Lg[a],i=n?e[n]:e;i&&i.leaveTo&&(t||(t=Gu(r).leaveToProps={}),n&&(t[n]=t[n]||{}),et(n?t[n]:t,i.leaveTo))}}function Cy(r,e,t,a){if(r){var n=r.parent,i=Gu(r).leaveToProps;if(i){var o=U2("update",r,e,t,0);o.done=function(){n.remove(r)},r.animateTo(i,o)}else n.remove(r)}}function Ks(r){return r==="all"}function $J(r,e,t){var a=e.style;if(!r.isGroup&&a){if(t){r.useStyle({});for(var n=r.animators,i=0;i<n.length;i++){var o=n[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}e&&(e.style=null,e&&r.attr(e),e.style=a)}function KJ(r,e,t,a,n){if(n){var i=U2("update",r,e,a,t);i.duration>0&&r.animateFrom(n,i)}}function QJ(r,e){pt(e,"silent")&&(r.silent=e.silent),pt(e,"ignore")&&(r.ignore=e.ignore),r instanceof Fa&&pt(e,"invisible")&&(r.invisible=e.invisible),r instanceof Ut&&pt(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var bn={},JJ={setTransform:function(r,e){return bn.el[r]=e,this},getTransform:function(r){return bn.el[r]},setShape:function(r,e){var t=bn.el,a=t.shape||(t.shape={});return a[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=bn.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=bn.el,a=t.style;return a&&(a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=bn.el.style;if(e)return e[r]},setExtra:function(r,e){var t=bn.el.extra||(bn.el.extra={});return t[r]=e,this},getExtra:function(r){var e=bn.el.extra;if(e)return e[r]}};function ttt(){var r=this,e=r.el;if(e){var t=Gu(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}bn.el=e,a(JJ)}}function O5(r,e,t,a){var n=t[r];if(n){var i=e[r],o;if(i){var s=t.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),Ks(l))et(o,i);else for(var u=he(l),f=0;f<u.length;f++){var v=u[f],d=i[v];o[v]=d}else if(Ks(s)||Vt(s,r)>=0){!o&&(o=a[r]={});for(var p=Yt(i),f=0;f<p.length;f++){var v=p[f],d=i[v];ntt(n[v],d)&&(o[v]=d)}}}}}function z5(r,e,t){var a=e[r];if(a)for(var n=t[r]={},i=Yt(a),o=0;o<i.length;o++){var s=i[o];n[s]=jf(a[s])}}function ett(r,e,t){for(var a=e.transition,n=Ks(a)?On:he(a||[]),i=0;i<n.length;i++){var o=n[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];t[o]=s}}}function rtt(r,e,t){for(var a=0;a<P5.length;a++){var n=P5[a],i=gk[n],o=e[n];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var a=0;a<On.length;a++){var s=On[a];e[s]!=null&&(t[s]=e[s])}}function att(r,e,t,a){if(t){var n=r.style,i;if(n){var o=t.transition,s=e.transition;if(o&&!Ks(o)){var l=he(o);!i&&(i=a.style={});for(var u=0;u<l.length;u++){var f=l[u],v=n[f];i[f]=v}}else if(r.getAnimationStyleProps&&(Ks(s)||Ks(o)||Vt(s,"style")>=0)){var d=r.getAnimationStyleProps(),p=d?d.style:null;if(p){!i&&(i=a.style={});for(var y=Yt(t),u=0;u<y.length;u++){var f=y[u];if(p[f]){var v=n[f];i[f]=v}}}}}}}function ntt(r,e){return Dr(r)?r!==e:r!=null&&isFinite(r)}var mk=Kt(),itt=["percent","easing","shape","style","extra"];function _k(r){r.stopAnimation("keyframe"),r.attr(mk(r))}function Eg(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(it(e)){P(e,function(s){Eg(r,s,t)});return}var a=e.keyframes,n=e.duration;if(t&&n==null){var i=Zu("enter",t,0);n=i&&i.duration}if(!(!a||!n)){var o=mk(r);P(Lg,function(s){if(!(s&&!r[s])){var l;a.sort(function(u,f){return u.percent-f.percent}),P(a,function(u){var f=r.animators,v=s?u[s]:u;if(v){var d=Yt(v);if(s||(d=le(d,function(m){return Vt(itt,m)<0})),!!d.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var p=0;p<f.length;p++)f[p]!==l&&f[p].targetName===l.targetName&&f[p].stopTracks(d);s&&(o[s]=o[s]||{});var y=s?o[s]:o;P(d,function(m){y[m]=((s?r[s]:r)||{})[m]}),l.whenWithKeys(n*u.percent,v,d,u.easing)}}}),l&&l.delay(e.delay||0).duration(n).start(e.easing)}})}}}var gi="emphasis",xo="normal",F2="blur",j2="select",Po=[xo,gi,F2,j2],Z_={normal:["itemStyle"],emphasis:[gi,"itemStyle"],blur:[F2,"itemStyle"],select:[j2,"itemStyle"]},W_={normal:["label"],emphasis:[gi,"label"],blur:[F2,"label"],select:[j2,"label"]},ott=["x","y"],stt="e\0\0",Ea={normal:{},emphasis:{},blur:{},select:{}},ltt={cartesian2d:UJ,geo:jJ,single:XJ,polar:WJ,calendar:qJ};function jS(r){return r instanceof Ut}function YS(r){return r instanceof Fa}function utt(r,e){e.copyTransform(r),YS(e)&&YS(r)&&(e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e.invisible=r.invisible,e.ignore=r.ignore,jS(e)&&jS(r)&&e.setShape(r.shape))}var ctt=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=k5(t,s,a,n);o||l.removeAll(),s.diff(o).add(function(v){q_(n,null,v,u(v,i),t,l,s)}).remove(function(v){var d=o.getItemGraphicEl(v);d&&Cy(d,pi(d).option,t)}).update(function(v,d){var p=o.getItemGraphicEl(d);q_(n,p,v,u(v,i),t,l,s)}).execute();var f=t.get("clip",!0)?Sy(t.coordinateSystem,!1,t):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,a,n,i,o){var s=a.getData(),l=k5(a,s,n,i),u=this._progressiveEls=[];function f(p){p.isGroup||(p.incremental=!0,p.ensureState("emphasis").hoverLayer=!0)}for(var v=t.start;v<t.end;v++){var d=q_(null,null,v,l(v,o),a,this.group,s);d&&(d.traverse(f),u.push(d))}},e.prototype.eachRendered=function(t){Oo(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,a,n,i){var o=a.element;if(o==null||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},e.type="custom",e})(de);function Y2(r){var e=r.type,t;if(e==="path"){var a=r.shape,n=a.width!=null&&a.height!=null?{x:a.x||0,y:a.y||0,width:a.width,height:a.height}:null,i=bk(a);t=ay(i,null,n,a.layout||"center"),pi(t).customPathData=i}else if(e==="image")t=new hr({}),pi(t).customImagePath=r.style.image;else if(e==="text")t=new $t({});else if(e==="group")t=new Ct;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=zb(e);if(!o){var s="";ne(s)}t=new o}return pi(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function X2(r,e,t,a,n,i,o){_k(e);var s=n&&n.normal.cfg;s&&e.setTextConfig(s),a&&a.transition==null&&(a.transition=ott);var l=a&&a.style;if(l){if(e.type==="text"){var u=l;pt(u,"textFill")&&(u.fill=u.textFill),pt(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,v=jS(e)?l.decal:null;r&&v&&(v.dirty=!0,f=Ou(v,r)),l.__decalPattern=f}if(YS(e)&&l){var f=l.__decalPattern;f&&(l.decal=f)}Vp(e,a,i,{dataIndex:t,isInit:o,clearStyle:!0}),Eg(e,a.keyframeAnimation,i)}function xk(r,e,t,a,n){var i=e.isGroup?null:e,o=n&&n[r].cfg;if(i){var s=i.ensureState(r);if(a===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=a||null;o&&(s.textConfig=o),rl(i)}}function ftt(r,e,t){if(!r.isGroup){var a=r,n=t.currentZ,i=t.currentZLevel;a.z=n,a.zlevel=i;var o=e.z2;o!=null&&(a.z2=o||0);for(var s=0;s<Po.length;s++)htt(a,e,Po[s])}}function htt(r,e,t){var a=t===xo,n=a?e:Rg(e,t),i=n?n.z2:null,o;i!=null&&(o=a?r:r.ensureState(t),o.z2=i||0)}function k5(r,e,t,a){var n=r.get("renderItem"),i=r.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):ltt[i.type](i));for(var s=wt({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:A,style:C,ordinalRawValue:M,styleEmphasis:L,visual:N,barLayout:O,currentSeriesIndices:k,font:G},o.api||{}),l={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:vtt(r.getData())},u,f,v={},d={},p={},y={},m=0;m<Po.length;m++){var _=Po[m];p[_]=r.getModel(Z_[_]),y[_]=r.getModel(W_[_])}function S(H){return H===u?f||(f=e.getItemModel(H)):e.getItemModel(H)}function b(H,F){return e.hasItemOption?H===u?v[F]||(v[F]=S(H).getModel(Z_[F])):S(H).getModel(Z_[F]):p[F]}function w(H,F){return e.hasItemOption?H===u?d[F]||(d[F]=S(H).getModel(W_[F])):S(H).getModel(W_[F]):y[F]}return function(H,F){return u=H,f=null,v={},d={},n&&n(wt({dataIndexInside:H,dataIndex:e.getRawIndex(H),actionType:F?F.type:null},l),s)};function A(H,F){return F==null&&(F=u),e.getStore().get(e.getDimensionIndex(H||0),F)}function M(H,F){F==null&&(F=u),H=H||0;var B=e.getDimensionInfo(H);if(!B){var j=e.getDimensionIndex(H);return j>=0?e.getStore().get(j,F):void 0}var Y=e.get(B.name,F),K=B&&B.ordinalMeta;return K?K.categories[Y]:Y}function C(H,F){F==null&&(F=u);var B=e.getItemVisual(F,"style"),j=B&&B.fill,Y=B&&B.opacity,K=b(F,xo).getItemStyle();j!=null&&(K.fill=j),Y!=null&&(K.opacity=Y);var nt={inheritColor:vt(j)?j:"#000"},U=w(F,xo),W=xe(U,null,nt,!1,!0);W.text=U.getShallow("show")?Ot(r.getFormattedLabel(F,xo),ku(e,F)):null;var rt=sg(U,nt,!1);return R(H,K),K=I5(K,W,rt),H&&E(K,H),K.legacy=!0,K}function L(H,F){F==null&&(F=u);var B=b(F,gi).getItemStyle(),j=w(F,gi),Y=xe(j,null,null,!0,!0);Y.text=j.getShallow("show")?Rn(r.getFormattedLabel(F,gi),r.getFormattedLabel(F,xo),ku(e,F)):null;var K=sg(j,null,!0);return R(H,B),B=I5(B,Y,K),H&&E(B,H),B.legacy=!0,B}function E(H,F){for(var B in F)pt(F,B)&&(H[B]=F[B])}function R(H,F){H&&(H.textFill&&(F.textFill=H.textFill),H.textPosition&&(F.textPosition=H.textPosition))}function N(H,F){if(F==null&&(F=u),pt(E5,H)){var B=e.getItemVisual(F,"style");return B?B[E5[H]]:null}if(pt(VJ,H))return e.getItemVisual(F,H)}function O(H){if(i.type==="cartesian2d"){var F=i.getBaseAxis();return nY(wt({axis:F},H))}}function k(){return t.getCurrentSeriesIndices()}function G(H){return uP(H,t)}}function vtt(r){var e={};return P(r.dimensions,function(t){var a=r.getDimensionInfo(t);if(!a.isExtraCoord){var n=a.coordDim,i=e[n]=e[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(t)}}),e}function q_(r,e,t,a,n,i,o){if(!a){i.remove(e);return}var s=Z2(r,e,t,a,n,i);return s&&o.setItemGraphicEl(t,s),s&&Pe(s,a.focus,a.blurScope,a.emphasisDisabled),s}function Z2(r,e,t,a,n,i){var o=-1,s=e;e&&Sk(e,a,n)&&(o=Vt(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Y2(a),s&&utt(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Ea.normal.cfg=Ea.normal.conOpt=Ea.emphasis.cfg=Ea.emphasis.conOpt=Ea.blur.cfg=Ea.blur.conOpt=Ea.select.cfg=Ea.select.conOpt=null,Ea.isLegacy=!1,ptt(u,t,a,n,l,Ea),dtt(u,t,a,n,l),X2(r,u,t,a,Ea,n,l),pt(a,"info")&&(pi(u).info=a.info);for(var f=0;f<Po.length;f++){var v=Po[f];if(v!==xo){var d=Rg(a,v),p=W2(a,d,v);xk(v,u,d,p,Ea)}}return ftt(u,a,n),a.type==="group"&&gtt(r,u,t,a,n),o>=0?i.replaceAt(u,o):i.add(u),u}function Sk(r,e,t){var a=pi(r),n=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&xtt(i)&&bk(i)!==a.customPathData||n==="image"&&pt(o,"image")&&o.image!==a.customImagePath}function dtt(r,e,t,a,n){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&Sk(o,i,a)&&(o=null),o||(o=Y2(i),r.setClipPath(o)),X2(null,o,e,i,null,a,n)}}function ptt(r,e,t,a,n,i){if(!r.isGroup){B5(t,null,i),B5(t,gi,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=Y2(o),r.setTextContent(f)),X2(null,f,e,o,null,a,n);for(var v=o&&o.style,d=0;d<Po.length;d++){var p=Po[d];if(p!==xo){var y=i[p].conOpt;xk(p,f,y,W2(o,y,p),null)}}v?f.dirty():f.markRedraw()}}}}function B5(r,e,t){var a=e?Rg(r,e):r,n=e?W2(r,a,gi):r.style,i=r.type,o=a?a.textConfig:null,s=r.textContent,l=s?e?Rg(s,e):s:null;if(n&&(t.isLegacy||dk(n,i,!!o,!!l))){t.isLegacy=!0;var u=pk(n,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var f=l;!f.type&&(f.type="text")}var v=e?t[e]:t.normal;v.cfg=o,v.conOpt=l}function Rg(r,e){return e?r?r[e]:null:r}function W2(r,e,t){var a=e&&e.style;return a==null&&t===gi&&r&&(a=r.styleEmphasis),a}function gtt(r,e,t,a,n){var i=a.children,o=i?i.length:0,s=a.$mergeChildren,l=s==="byName"||a.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){mtt({api:r,oldChildren:e.children()||[],newChildren:i||[],dataIndex:t,seriesModel:n,group:e});return}u&&e.removeAll();for(var f=0;f<o;f++){var v=i[f],d=e.childAt(f);v?(v.ignore==null&&(v.ignore=!1),Z2(r,d,t,v,n,e)):d.ignore=!0}for(var p=e.childCount()-1;p>=f;p--){var y=e.childAt(p);ytt(e,y,n)}}}function ytt(r,e,t){e&&Cy(e,pi(r).option,t)}function mtt(r){new Si(r.oldChildren,r.newChildren,V5,V5,r).add(G5).update(G5).remove(_tt).execute()}function V5(r,e){var t=r&&r.name;return t??stt+e}function G5(r,e){var t=this.context,a=r!=null?t.newChildren[r]:null,n=e!=null?t.oldChildren[e]:null;Z2(t.api,n,t.dataIndex,a,t.seriesModel,t.group)}function _tt(r){var e=this.context,t=e.oldChildren[r];t&&Cy(t,pi(t).option,e.seriesModel)}function bk(r){return r&&(r.pathData||r.d)}function xtt(r){return r&&(pt(r,"pathData")||pt(r,"d"))}function Stt(r){r.registerChartView(ctt),r.registerSeriesModel(GJ)}var Ns=Kt(),H5=Dt,$_=dt,q2=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,a,n){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var v=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Ct,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),a.getZr().add(s);else{var d=It(U5,t,v);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,t)}j5(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var a=t.get("animation"),n=e.axis,i=n.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=_2(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(e,t,a,n,i){},r.prototype.createPointerEl=function(e,t,a,n){var i=t.pointer;if(i){var o=Ns(e).pointerEl=new Hh[i.type](H5(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,a,n){if(t.label){var i=Ns(e).labelEl=new $t(H5(t.label));e.add(i),F5(i,n)}},r.prototype.updatePointerEl=function(e,t,a){var n=Ns(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),a(n,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,a,n){var i=Ns(e).labelEl;i&&(i.setStyle(t.label.style),a(i,{x:t.label.x,y:t.label.y}),F5(i,n))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Gh(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){yi(u.event)},onmousedown:$_(this._onHandleDragMove,this,0,0),drift:$_(this._onHandleDragMove,this),ondragend:$_(this._onHandleDragEnd,this)}),a.add(n)),j5(n,t,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");it(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,ec(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){U5(this._axisPointerModel,!t&&this._moveAnimation,this._handle,K_(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(K_(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(K_(n)),Ns(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),a=this._group,n=this._handle;t&&a&&(this._lastGraphicKey=null,a&&t.remove(a),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),gh(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,a){return a=a||0,{x:e[a],y:e[1-a],width:t[a],height:t[1-a]}},r})();function U5(r,e,t,a){wk(Ns(t).lastProp,a)||(Ns(t).lastProp=a,e?Jt(t,a,r):(t.stopAnimation(),t.attr(a)))}function wk(r,e){if(Tt(r)&&Tt(e)){var t=!0;return P(e,function(a,n){t=t&&wk(r[n],a)}),!!t}else return r===e}function F5(r,e){r[e.get(["label","show"])?"show":"hide"]()}function K_(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function j5(r,e,t){var a=e.get("z"),n=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=t)})}function $2(r){var e=r.get("type"),t=r.getModel(e+"Style"),a;return e==="line"?(a=t.getLineStyle(),a.fill=null):e==="shadow"&&(a=t.getAreaStyle(),a.stroke=null),a}function Tk(r,e,t,a,n){var i=t.get("value"),o=Ak(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Ku(s.get("padding")||0),u=s.getFont(),f=Nh(o,u),v=n.position,d=f.width+l[1]+l[3],p=f.height+l[0]+l[2],y=n.align;y==="right"&&(v[0]-=d),y==="center"&&(v[0]-=d/2);var m=n.verticalAlign;m==="bottom"&&(v[1]-=p),m==="middle"&&(v[1]-=p/2),btt(v,d,p,a);var _=s.get("backgroundColor");(!_||_==="auto")&&(_=e.get(["axisLine","lineStyle","color"])),r.label={x:v[0],y:v[1],style:xe(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:_}),z2:10}}function btt(r,e,t,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+e,n)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Ak(r,e,t,a,n){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:u2(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};P(a,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,v=u&&u.getDataParams(f);v&&s.seriesData.push(v)}),vt(o)?i=o.replace("{value}",i):bt(o)&&(i=o(s))}return i}function K2(r,e,t){var a=Ua();return sl(a,a,t.rotation),Pn(a,a,t.position),sn([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],a)}function Dk(r,e,t,a,n,i){var o=Or.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),Tk(e,a,n,i,{position:K2(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Q2(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function Ck(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function Y5(r,e,t,a,n,i){return{cx:r,cy:e,r0:t,r:a,startAngle:n,endAngle:i,clockwise:!0}}var wtt=(function(r){$(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=X5(l,s).getOtherAxis(s).getGlobalExtent(),v=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var d=$2(i),p=Ttt[u](s,v,f);p.style=d,t.graphicKey=p.type,t.pointer=p}var y=AS(l.model,n);Dk(a,t,y,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=AS(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=K2(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=X5(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,v=[t.x,t.y];v[f]+=a[f],v[f]=Math.min(l[1],v[f]),v[f]=Math.max(l[0],v[f]);var d=(u[1]+u[0])/2,p=[d,d];p[f]=v[f];var y=[{verticalAlign:"middle"},{align:"center"}];return{x:v[0],y:v[1],rotation:t.rotation,cursorPoint:p,tooltipOption:y[f]}},e})(q2);function X5(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var Ttt={line:function(r,e,t){var a=Q2([e,t[0]],[e,t[1]],Z5(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=Math.max(1,r.getBandWidth()),n=t[1]-t[0];return{type:"Rect",shape:Ck([e-a/2,t[0]],[a,n],Z5(r))}}};function Z5(r){return r.dim==="x"?0:1}var Att=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#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})(jt),fi=Kt(),Dtt=P;function Mk(r,e,t){if(!Ft.node){var a=e.getZr();fi(a).records||(fi(a).records={}),Ctt(a,e);var n=fi(a).records[r]||(fi(a).records[r]={});n.handler=t}}function Ctt(r,e){if(fi(r).initialized)return;fi(r).initialized=!0,t("click",It(W5,"click")),t("mousemove",It(W5,"mousemove")),t("globalout",Ltt);function t(a,n){r.on(a,function(i){var o=Ett(e);Dtt(fi(r).records,function(s){s&&n(s,i,o.dispatchAction)}),Mtt(o.pendings,e)})}}function Mtt(r,e){var t=r.showTip.length,a=r.hideTip.length,n;t?n=r.showTip[t-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function Ltt(r,e,t){r.handler("leave",null,t)}function W5(r,e,t,a){e.handler(r,t,a)}function Ett(r){var e={showTip:[],hideTip:[]},t=function(a){var n=e[a.type];n?n.push(a):(a.dispatchAction=t,r.dispatchAction(a))};return{dispatchAction:t,pendings:e}}function XS(r,e){if(!Ft.node){var t=e.getZr(),a=(fi(t).records||{})[r];a&&(fi(t).records[r]=null)}}var Rtt=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=a.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Mk("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,a){XS("axisPointer",a)},e.prototype.dispose=function(t,a){XS("axisPointer",a)},e.type="axisPointer",e})(Ee);function Lk(r,e){var t=[],a=r.seriesIndex,n;if(a==null||!(n=e.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=tl(i,r);if(o==null||o<0||it(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)t=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),v=f.dim,d=u.dim,p=v==="x"||v==="radius"?1:0,y=i.mapDimension(d),m=[];m[p]=i.get(y,o),m[1-p]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(m)||[]}else t=l.dataToPoint(i.getValues(st(l.dimensions,function(S){return i.mapDimension(S)}),o))||[];else if(s){var _=s.getBoundingRect().clone();_.applyTransform(s.transform),t=[_.x+_.width/2,_.y+_.height/2]}return{point:t,el:s}}var q5=Kt();function Itt(r,e,t){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||dt(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Gp(n)&&(n=Lk({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=Gp(n),u=i.axesInfo,f=s.axesInfo,v=a==="leave"||Gp(n),d={},p={},y={list:[],map:{}},m={showPointer:It(Ptt,p),showTooltip:It(Ott,y)};P(s.coordSysMap,function(S,b){var w=l||S.containPoint(n);P(s.coordSysAxesInfo[b],function(A,M){var C=A.axis,L=Vtt(u,A);if(!v&&w&&(!u||L)){var E=L&&L.value;E==null&&!l&&(E=C.pointToData(n)),E!=null&&$5(A,E,m,!1,d)}})});var _={};return P(f,function(S,b){var w=S.linkGroup;w&&!p[b]&&P(w.axesInfo,function(A,M){var C=p[M];if(A!==S&&C){var L=C.value;w.mapper&&(L=S.axis.scale.parse(w.mapper(L,K5(A),K5(S)))),_[S.key]=L}})}),P(_,function(S,b){$5(f[b],S,m,!0,d)}),ztt(p,f,d),ktt(y,n,r,o),Btt(f,o,t),d}}function $5(r,e,t,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=Ntt(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&et(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function Ntt(r,e){var t=e.axis,a=t.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return P(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(a),v,d;if(l.getAxisTooltipData){var p=l.getAxisTooltipData(f,r,t);d=p.dataIndices,v=p.nestestValue}else{if(d=l.getData().indicesOfNearest(f[0],r,t.type==="category"?.5:null),!d.length)return;v=l.getData().get(f[0],d[0])}if(!(v==null||!isFinite(v))){var y=r-v,m=Math.abs(y);m<=o&&((m<o||y>=0&&s<0)&&(o=m,s=y,n=v,i.length=0),P(d,function(_){i.push({seriesIndex:l.seriesIndex,dataIndexInside:_,dataIndex:l.getData().getRawIndex(_)})}))}}),{payloadBatch:i,snapToValue:n}}function Ptt(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function Ott(r,e,t,a){var n=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=wh(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function ztt(r,e,t){var a=t.axesInfo=[];P(e,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function ktt(r,e,t,a){if(Gp(e)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function Btt(r,e,t){var a=t.getZr(),n="axisPointerLastHighlights",i=q5(a)[n]||{},o=q5(a)[n]={};P(r,function(u,f){var v=u.axisPointerModel.option;v.status==="show"&&u.triggerEmphasis&&P(v.seriesDataIndices,function(d){var p=d.seriesIndex+" | "+d.dataIndex;o[p]=d})});var s=[],l=[];P(i,function(u,f){!o[f]&&l.push(u)}),P(o,function(u,f){!i[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Vtt(r,e){for(var t=0;t<(r||[]).length;t++){var a=r[t];if(e.axis.dim===a.axisDim&&e.axis.model.componentIndex===a.axisIndex)return a}}function K5(r){var e=r.axis.model,t={},a=t.axisDim=r.axis.dim;return t.axisIndex=t[a+"AxisIndex"]=e.componentIndex,t.axisName=t[a+"AxisName"]=e.name,t.axisId=t[a+"AxisId"]=e.id,t}function Gp(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function tv(r){fl.registerAxisPointerClass("CartesianAxisPointer",wtt),r.registerComponentModel(Att),r.registerComponentView(Rtt),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!it(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=qZ(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Itt)}function Gtt(r){Ht(az),Ht(tv)}var Htt=(function(r){$(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),v=s.dataToCoord(a),d=i.get("type");if(d&&d!=="none"){var p=$2(i),y=Ftt[d](s,l,v,f);y.style=p,t.graphicKey=y.type,t.pointer=y}var m=i.get(["label","margin"]),_=Utt(a,n,i,l,m);Tk(t,n,i,o,_)},e})(q2);function Utt(r,e,t,a,n){var i=e.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,f,v;if(i.dim==="radius"){var d=Ua();sl(d,d,s),Pn(d,d,[a.cx,a.cy]),u=sn([o,-n],d);var p=e.getModel("axisLabel").get("rotate")||0,y=Or.innerTextLayout(s,p*Math.PI/180,-1);f=y.textAlign,v=y.textVerticalAlign}else{var m=l[1];u=a.coordToPoint([m+n,o]);var _=a.cx,S=a.cy;f=Math.abs(u[0]-_)/m<.3?"center":u[0]>_?"left":"right",v=Math.abs(u[1]-S)/m<.3?"middle":u[1]>S?"top":"bottom"}return{position:u,align:f,verticalAlign:v}}var Ftt={line:function(r,e,t,a){return r.dim==="angle"?{type:"Line",shape:Q2(e.coordToPoint([a[0],t]),e.coordToPoint([a[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:Y5(e.cx,e.cy,a[0],a[1],(-t-n/2)*i,(-t+n/2)*i)}:{type:"Sector",shape:Y5(e.cx,e.cy,t-n/2,t+n/2,0,Math.PI*2)}}},jtt=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var a,n=this.ecModel;return n.eachComponent(t,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e})(jt),J2=(function(r){$(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",je).models[0]},e.type="polarAxis",e})(jt);Xe(J2,Xh);var Ytt=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e})(J2),Xtt=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e})(J2),tw=(function(r){$(e,r);function e(t,a){return r.call(this,"radius",t,a)||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e})(hn);tw.prototype.dataToRadius=hn.prototype.dataToCoord;tw.prototype.radiusToData=hn.prototype.coordToData;var Ztt=Kt(),ew=(function(r){$(e,r);function e(t,a){return r.call(this,"angle",t,a||[0,360])||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,a=t.getLabelModel(),n=t.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=Nh(s==null?"":s+"",a.getFont(),"center","top"),v=Math.max(f.height,7),d=v/u;isNaN(d)&&(d=1/0);var p=Math.max(0,Math.floor(d)),y=Ztt(t.model),m=y.lastAutoInterval,_=y.lastTickCount;return m!=null&&_!=null&&Math.abs(m-p)<=1&&Math.abs(_-o)<=1&&m>p?p=m:(y.lastTickCount=o,y.lastAutoInterval=p),p},e})(hn);ew.prototype.dataToAngle=hn.prototype.dataToCoord;ew.prototype.angleToData=hn.prototype.coordToData;var Ek=["radius","angle"],Wtt=(function(){function r(e){this.dimensions=Ek,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new tw,this._angleAxis=new ew,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===e&&t.push(a),n.scale.type===e&&t.push(n),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var a=this.pointToCoord(e);return[this._radiusAxis.radiusToData(a[0],t),this._angleAxis.angleToData(a[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+a*a);t/=l,a/=l;for(var u=Math.atan2(-a,t)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],a=e[1]/180*Math.PI,n=Math.cos(a)*t+this.cx,i=-Math.sin(a)*t+this.cy;return[n,i]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),a=t.getExtent().slice();a[0]>a[1]&&a.reverse();var n=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,v=this.r,d=this.r0;return f<=v*v&&f>=d*d}}},r.prototype.convertToPixel=function(e,t,a){var n=Q5(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=Q5(t);return n===this?this.pointToData(a):null},r})();function Q5(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function qtt(r,e,t){var a=e.get("center"),n=t.getWidth(),i=t.getHeight();r.cx=ft(a[0],n),r.cy=ft(a[1],i);var o=r.getRadiusAxis(),s=Math.min(n,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:it(l)||(l=[0,l]);var u=[ft(l[0],s),ft(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function $tt(r,e){var t=this,a=t.getAngleAxis(),n=t.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();P(mg(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),P(mg(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),zu(a.scale,a.model),zu(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function Ktt(r){return r.mainType==="angleAxis"}function J5(r,e){if(r.type=e.get("type"),r.scale=_y(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),Ktt(e)){r.inverse=r.inverse!==e.get("clockwise");var t=e.get("startAngle");r.setExtent(t,t+(r.inverse?-360:360))}e.axis=r,r.model=e}var Qtt={dimensions:Ek,create:function(r,e){var t=[];return r.eachComponent("polar",function(a,n){var i=new Wtt(n+"");i.update=$tt;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");J5(o,l),J5(s,u),qtt(i,a,e),t.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",je).models[0];a.coordinateSystem=n.coordinateSystem}}),t}},Jtt=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function vp(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var a=r.coordToPoint([e[0],t]),n=r.coordToPoint([e[1],t]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function dp(r){var e=r.getRadiusAxis();return e.inverse?0:1}function tI(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var tet=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,a){if(this.group.removeAll(),!!t.get("show")){var n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=st(n.getViewLabels(),function(f){f=Dt(f);var v=n.scale,d=v.type==="ordinal"?v.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=n.dataToCoord(d),f});tI(u),tI(s),P(Jtt,function(f){t.get([f,"show"])&&(!n.scale.isBlank()||f==="axisLine")&&eet[f](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e})(fl),eet={axisLine:function(r,e,t,a,n,i){var o=e.getModel(["axisLine","lineStyle"]),s=dp(t),l=s?0:1,u;i[l]===0?u=new un({shape:{cx:t.cx,cy:t.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new zh({shape:{cx:t.cx,cy:t.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,r.add(u)},axisTick:function(r,e,t,a,n,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[dp(t)],u=st(a,function(f){return new er({shape:vp(t,[l,l+s],f.coord)})});r.add(Ba(u,{style:wt(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,a,n,i){if(n.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[dp(t)],f=[],v=0;v<n.length;v++)for(var d=0;d<n[v].length;d++)f.push(new er({shape:vp(t,[u,u+l],n[v][d].coord)}));r.add(Ba(f,{style:wt(s.getModel("lineStyle").getLineStyle(),wt(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,a,n,i,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),f=e.get("triggerEvent");P(o,function(v,d){var p=l,y=v.tickValue,m=i[dp(t)],_=t.coordToPoint([m+u,v.coord]),S=t.cx,b=t.cy,w=Math.abs(_[0]-S)/m<.3?"center":_[0]>S?"left":"right",A=Math.abs(_[1]-b)/m<.3?"middle":_[1]>b?"top":"bottom";if(s&&s[y]){var M=s[y];Tt(M)&&M.textStyle&&(p=new oe(M.textStyle,l,l.ecModel))}var C=new $t({silent:Or.isLabelSilent(e),style:xe(p,{x:_[0],y:_[1],fill:p.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:v.formattedLabel,align:w,verticalAlign:A})});if(r.add(C),f){var L=Or.makeAxisEventDataBase(e);L.targetType="axisLabel",L.value=v.rawLabel,Rt(C).eventData=L}},this)},splitLine:function(r,e,t,a,n,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],v=0;v<a.length;v++){var d=u++%l.length;f[d]=f[d]||[],f[d].push(new er({shape:vp(t,i,a[v].coord)}))}for(var v=0;v<f.length;v++)r.add(Ba(f[v],{style:wt({stroke:l[v%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,a,n,i){if(n.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<n.length;u++)for(var f=0;f<n[u].length;f++)l.push(new er({shape:vp(t,i,n[u][f].coord)}));r.add(Ba(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,a,n,i){if(a.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],v=Math.PI/180,d=-a[0].coord*v,p=Math.min(i[0],i[1]),y=Math.max(i[0],i[1]),m=e.get("clockwise"),_=1,S=a.length;_<=S;_++){var b=_===S?a[0].coord:a[_].coord,w=u++%l.length;f[w]=f[w]||[],f[w].push(new Br({shape:{cx:t.cx,cy:t.cy,r0:p,r:y,startAngle:d,endAngle:-b*v,clockwise:m},silent:!0})),d=-b*v}for(var _=0;_<f.length;_++)r.add(Ba(f[_],{style:wt({fill:l[_%l.length]},s.getAreaStyle()),silent:!0}))}}},ret=["axisLine","axisTickLabel","axisName"],aet=["splitLine","splitArea","minorSplitLine"],net=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,a){if(this.group.removeAll(),!!t.get("show")){var n=this._axisGroup,i=this._axisGroup=new Ct;this.group.add(i);var o=t.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),f=o.getMinorTicksCoords(),v=l.getExtent()[0],d=o.getExtent(),p=oet(s,t,v),y=new Or(t,p);P(ret,y.add,y),i.add(y.getGroup()),Vh(n,i,t),P(aet,function(m){t.get([m,"show"])&&!o.scale.isBlank()&&iet[m](this.group,t,s,v,d,u,f)},this)}},e.type="radiusAxis",e})(fl),iet={splitLine:function(r,e,t,a,n,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],v=0;v<i.length;v++){var d=u++%l.length;f[d]=f[d]||[],f[d].push(new un({shape:{cx:t.cx,cy:t.cy,r:Math.max(i[v].coord,0)}}))}for(var v=0;v<f.length;v++)r.add(Ba(f[v],{style:wt({stroke:l[v%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,a,n,i,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var v=0;v<o[f].length;v++)u.push(new un({shape:{cx:t.cx,cy:t.cy,r:o[f][v].coord}}));r.add(Ba(u,{style:wt({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,a,n,i){if(i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],v=i[0].coord,d=1;d<i.length;d++){var p=u++%l.length;f[p]=f[p]||[],f[p].push(new Br({shape:{cx:t.cx,cy:t.cy,r0:v,r:i[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),v=i[d].coord}for(var d=0;d<f.length;d++)r.add(Ba(f[d],{style:wt({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function oet(r,e,t){return{position:[r.cx,r.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}function Rk(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function Ik(r,e){return e.dim+r.model.componentIndex}function set(r,e,t){var a={},n=uet(le(e.getSeriesByType(r),function(i){return!e.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));e.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=Ik(s,l),f=Rk(i),v=n[u][f],d=v.offset,p=v.width,y=s.getOtherAxis(l),m=i.coordinateSystem.cx,_=i.coordinateSystem.cy,S=i.get("barMinHeight")||0,b=i.get("barMinAngle")||0;a[f]=a[f]||[];for(var w=o.mapDimension(y.dim),A=o.mapDimension(l.dim),M=Io(o,w),C=l.dim!=="radius"||!i.get("roundCap",!0),L=y.dataToCoord(0),E=0,R=o.count();E<R;E++){var N=o.get(w,E),O=o.get(A,E),k=N>=0?"p":"n",G=L;M&&(a[f][O]||(a[f][O]={p:L,n:L}),G=a[f][O][k]);var H=void 0,F=void 0,B=void 0,j=void 0;if(y.dim==="radius"){var Y=y.dataToCoord(N)-L,K=l.dataToCoord(O);Math.abs(Y)<S&&(Y=(Y<0?-1:1)*S),H=G,F=G+Y,B=K-d,j=B-p,M&&(a[f][O][k]=F)}else{var nt=y.dataToCoord(N,C)-L,U=l.dataToCoord(O);Math.abs(nt)<b&&(nt=(nt<0?-1:1)*b),H=U+d,F=H+p,B=G,j=G+nt,M&&(a[f][O][k]=j)}o.setItemLayout(E,{cx:m,cy:_,r0:H,r:F,startAngle:-B*Math.PI/180,endAngle:-j*Math.PI/180,clockwise:B>=j})}}})}function uet(r){var e={};P(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=Ik(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),v=e[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=v.stacks;e[l]=v;var p=Rk(a);d[p]||v.autoWidthCount++,d[p]=d[p]||{width:0,maxWidth:0};var y=ft(a.get("barWidth"),f),m=ft(a.get("barMaxWidth"),f),_=a.get("barGap"),S=a.get("barCategoryGap");y&&!d[p].width&&(y=Math.min(v.remainedWidth,y),d[p].width=y,v.remainedWidth-=y),m&&(d[p].maxWidth=m),_!=null&&(v.gap=_),S!=null&&(v.categoryGap=S)});var t={};return P(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=ft(a.categoryGap,o),l=ft(a.gap,1),u=a.remainedWidth,f=a.autoWidthCount,v=(u-s)/(f+(f-1)*l);v=Math.max(v,0),P(i,function(m,_){var S=m.maxWidth;S&&S<v&&(S=Math.min(S,u),m.width&&(S=Math.min(S,m.width)),u-=S,m.width=S,f--)}),v=(u-s)/(f+(f-1)*l),v=Math.max(v,0);var d=0,p;P(i,function(m,_){m.width||(m.width=v),p=m,d+=m.width*(1+l)}),p&&(d-=p.width*l);var y=-d/2;P(i,function(m,_){t[n][_]=t[n][_]||{offset:y,width:m.width},y+=m.width*(1+l)})}),t}var cet={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},fet={splitNumber:5},het=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e})(Ee);function vet(r){Ht(tv),fl.registerAxisPointerClass("PolarAxisPointer",Htt),r.registerCoordinateSystem("polar",Qtt),r.registerComponentModel(jtt),r.registerComponentView(het),Bu(r,"angle",Ytt,cet),Bu(r,"radius",Xtt,fet),r.registerComponentView(tet),r.registerComponentView(net),r.registerLayout(It(set,"bar"))}function ZS(r,e){e=e||{};var t=r.coordinateSystem,a=r.axis,n={},i=a.position,o=a.orient,s=t.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};n.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var f={horizontal:0,vertical:1};n.rotation=Math.PI/2*f[o];var v={top:-1,bottom:1,right:1,left:-1};n.labelDirection=n.tickDirection=n.nameDirection=v[i],r.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),fr(e.labelInside,r.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var d=e.rotate;return d==null&&(d=r.get(["axisLabel","rotate"])),n.labelRotation=i==="top"?-d:d,n.z2=1,n}var det=["axisLine","axisTickLabel","axisName"],pet=["splitArea","splitLine"],get=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,a,n,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new Ct;var l=ZS(t),u=new Or(t,l);P(det,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),P(pet,function(f){t.get([f,"show"])&&yet[f](this,this.group,this._axisGroup,t)},this),Vh(s,this._axisGroup,t),r.prototype.render.call(this,t,a,n,i)},e.prototype.remove=function(){tz(this)},e.type="singleAxis",e})(fl),yet={splitLine:function(r,e,t,a){var n=a.axis;if(!n.scale.isBlank()){var i=a.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=a.coordinateSystem.getRect(),f=n.isHorizontal(),v=[],d=0,p=n.getTicksCoords({tickModel:i}),y=[],m=[],_=0;_<p.length;++_){var S=n.toGlobalCoord(p[_].coord);f?(y[0]=S,y[1]=u.y,m[0]=S,m[1]=u.y+u.height):(y[0]=u.x,y[1]=S,m[0]=u.x+u.width,m[1]=S);var b=new er({shape:{x1:y[0],y1:y[1],x2:m[0],y2:m[1]},silent:!0});Nu(b.shape,l);var w=d++%s.length;v[w]=v[w]||[],v[w].push(b)}for(var A=o.getLineStyle(["color"]),_=0;_<v.length;++_)e.add(Ba(v[_],{style:wt({stroke:s[_%s.length]},A),silent:!0}))}},splitArea:function(r,e,t,a){J4(r,t,a,a)}},Hp=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e})(jt);Xe(Hp,Xh.prototype);var met=(function(r){$(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,a){return this.coordinateSystem.pointToData(t)[0]},e})(hn),Nk=["single"],_et=(function(){function r(e,t,a){this.type="single",this.dimension="single",this.dimensions=Nk,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var n=this.dimension,i=new met(n,_y(e),[0,0],e.get("type"),e.get("position")),o=i.type==="category";i.onBand=o&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},r.prototype.update=function(e,t){e.eachSeries(function(a){if(a.coordinateSystem===this){var n=a.getData();P(n.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(n,i)},this),zu(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(e,t){this._rect=Qe({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,a=t.isHorizontal(),n=a?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),this._updateAxisTransform(t,a?e.x:e.y)},r.prototype._updateAxisTransform=function(e,t){var a=e.getExtent(),n=a[0]+a[1],i=e.isHorizontal();e.toGlobalCoord=i?function(o){return o+t}:function(o){return n-o+t},e.toLocalCoord=i?function(o){return o-t}:function(o){return n-o+t}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(e){var t=this.getRect(),a=this.getAxis(),n=a.orient;return n==="horizontal"?a.contain(a.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:a.contain(a.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),a=this.getRect(),n=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),n[i]=t.toGlobalCoord(t.dataToCoord(+e)),n[1-i]=i===0?a.y+a.height/2:a.x+a.width/2,n},r.prototype.convertToPixel=function(e,t,a){var n=eI(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=eI(t);return n===this?this.pointToData(a):null},r})();function eI(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function xet(r,e){var t=[];return r.eachComponent("singleAxis",function(a,n){var i=new _et(a,r,e);i.name="single_"+n,i.resize(a,e),a.coordinateSystem=i,t.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var n=a.getReferringComponents("singleAxis",je).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),t}var bet={create:xet,dimensions:Nk},rI=["x","y"],wet=["width","height"],Tet=(function(r){$(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=Q_(l,1-Ig(s)),f=l.dataToPoint(a)[0],v=i.get("type");if(v&&v!=="none"){var d=$2(i),p=Aet[v](s,f,u);p.style=d,t.graphicKey=p.type,t.pointer=p}var y=ZS(n);Dk(a,t,y,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=ZS(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=K2(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.coordinateSystem,l=Ig(o),u=Q_(s,l),f=[t.x,t.y];f[l]+=a[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var v=Q_(s,1-l),d=(v[1]+v[0])/2,p=[d,d];return p[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}},e})(q2),Aet={line:function(r,e,t){var a=Q2([e,t[0]],[e,t[1]],Ig(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=r.getBandWidth(),n=t[1]-t[0];return{type:"Rect",shape:Ck([e-a/2,t[0]],[a,n],Ig(r))}}};function Ig(r){return r.isHorizontal()?0:1}function Q_(r,e){var t=r.getRect();return[t[rI[e]],t[rI[e]]+t[wet[e]]]}var Det=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e})(Ee);function Cet(r){Ht(tv),fl.registerAxisPointerClass("SingleAxisPointer",Tet),r.registerComponentView(Det),r.registerComponentView(get),r.registerComponentModel(Hp),Bu(r,"single",Hp,Hp.defaultOption),r.registerCoordinateSystem("single",bet)}var Met=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,n){var i=Qu(t);r.prototype.init.apply(this,arguments),aI(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),aI(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e})(jt);function aI(r,e){var t=r.cellSize,a;it(t)?a=t:a=r.cellSize=[t,t],a.length===1&&(a[1]=a[0]);var n=st([0,1],function(i){return q9(e,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});Ro(r,e,{type:"box",ignoreSize:n})}var Let=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,a,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToRect([u],!1).tl,v=new Wt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(v)}},e.prototype._renderLines=function(t,a,n,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var v=a.start,d=0;v.time<=a.end.time;d++){y(v.formatedDate),d===0&&(v=s.getDateInfo(a.start.y+"-"+a.start.m));var p=v.date;p.setMonth(p.getMonth()+1),v=s.getDateInfo(p)}y(s.getNextNDay(a.end.time,1).formatedDate);function y(m){o._firstDayOfMonth.push(s.getDateInfo(m)),o._firstDayPoints.push(s.dataToRect([m],!1).tl);var _=o._getLinePointsOfOneWeek(t,m,n);o._tlpoints.push(_[0]),o._blpoints.push(_[_.length-1]),u&&o._drawSplitline(_,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,i)},e.prototype._getEdgesPoints=function(t,a,n){var i=[t[0].slice(),t[t.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},e.prototype._drawSplitline=function(t,a,n){var i=new Gr({z2:20,shape:{points:t},style:a});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,a,n){for(var i=t.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[n==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,a){return vt(t)&&t?X9(t,a):bt(t)?t(a):a.nameMap},e.prototype._yearTextPositionControl=function(t,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,a,n,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,v=(u[0][1]+u[1][1])/2,d=n==="horizontal"?0:1,p={top:[f,u[d][1]],bottom:[f,u[1-d][1]],left:[u[1-d][0],v],right:[u[d][0],v]},y=a.start.y;+a.end.y>+a.start.y&&(y=y+"-"+a.end.y);var m=o.get("formatter"),_={start:a.start.y,end:a.end.y,nameMap:y},S=this._formatterLabel(m,_),b=new $t({z2:30,style:xe(o,{text:S})});b.attr(this._yearTextPositionControl(b,p[l],n,l,s)),i.add(b)}},e.prototype._monthTextPositionControl=function(t,a,n,i,o){var s="left",l="top",u=t[0],f=t[1];return n==="horizontal"?(f=f+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,a,n,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),v=[this._tlpoints,this._blpoints];(!s||vt(s))&&(s&&(a=eS(s)||a),s=a.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,p=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var y=f==="center",m=0;m<v[d].length-1;m++){var _=v[d][m].slice(),S=this._firstDayOfMonth[m];if(y){var b=this._firstDayPoints[m];_[p]=(b[p]+v[0][m+1][p])/2}var w=o.get("formatter"),A=s[+S.m-1],M={yyyy:S.y,yy:(S.y+"").slice(2),MM:S.m,M:+S.m,nameMap:A},C=this._formatterLabel(w,M),L=new $t({z2:30,style:et(xe(o,{text:C}),this._monthTextPositionControl(_,y,n,u,l))});i.add(L)}}},e.prototype._weekTextPositionControl=function(t,a,n,i,o){var s="center",l="middle",u=t[0],f=t[1],v=n==="start";return a==="horizontal"?(u=u+i+(v?1:-1)*o[0]/2,s=v?"right":"left"):(f=f+i+(v?1:-1)*o[1]/2,l=v?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,a,n,i,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),v=s.get("margin"),d=l.getFirstDayOfWeek();if(!f||vt(f)){f&&(a=eS(f)||a);var p=a.get(["time","dayOfWeekShort"]);f=p||st(a.get(["time","dayOfWeekAbbr"]),function(M){return M[0]})}var y=l.getNextNDay(n.end.time,7-n.lweek).time,m=[l.getCellWidth(),l.getCellHeight()];v=ft(v,Math.min(m[1],m[0])),u==="start"&&(y=l.getNextNDay(n.start.time,-(7+n.fweek)).time,v=-v);for(var _=0;_<7;_++){var S=l.getNextNDay(y,_),b=l.dataToRect([S.time],!1).center,w=_;w=Math.abs((_+d)%7);var A=new $t({z2:30,style:et(xe(s,{text:f[w]}),this._weekTextPositionControl(b,i,u,v,m))});o.add(A)}}},e.type="calendar",e})(Ee),J_=864e5,Eet=(function(){function r(e,t,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(e){e=zn(e);var t=e.getFullYear(),a=e.getMonth()+1,n=a<10?"0"+a:""+a,i=e.getDate(),o=i<10?"0"+i:""+i,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:n,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+n+"-"+o,date:e}},r.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},r.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var a=this._rangeInfo.weeks||1,n=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[a,7]:[7,a];P([0,1],function(v){f(i,v)&&(o[n[v]]=i[v]*s[v])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=Qe(o,l);P([0,1],function(v){f(i,v)||(i[v]=u[n[v]]/s[v])});function f(v,d){return v[d]!=null&&v[d]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(e,t){it(e)&&(e=e[0]),t==null&&(t=!0);var a=this.getDateInfo(e),n=this._rangeInfo,i=a.formatedDate;if(t&&!(a.time>=n.start.time&&a.time<n.end.time+J_))return[NaN,NaN];var o=a.day,s=this._getRangeInfo([n.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToRect=function(e,t){var a=this.dataToPoint(e,t);return{contentShape:{x:a[0]-(this._sw-this._lineWidth)/2,y:a[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,a=Math.floor((e[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(a,t-1,n):this._getDateByWeeksAndDay(t,a-1,n)},r.prototype.convertToPixel=function(e,t,a){var n=nI(t);return n===this?n.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=nI(t);return n===this?n.pointToData(a):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(it(e)&&e.length===1&&(e=e[0]),it(e))t=e;else{var a=e.toString();if(/^\d{4}$/.test(a)&&(t=[a+"-01-01",a+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(a)){var n=this.getDateInfo(a),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(a)&&(t=[a,a])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],a;t[0].time>t[1].time&&(a=!0,t.reverse());var n=Math.floor(t[1].time/J_)-Math.floor(t[0].time/J_)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)n-=u,i.setDate(l-u);var f=Math.floor((n+t[0].day+6)/7),v=a?-f+1:f-1;return a&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:f,nthWeek:v,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,a){var n=this._getRangeInfo(a);if(e>n.weeks||e===0&&t<n.fweek||e===n.weeks&&t>n.lweek)return null;var i=(e-1)*7-n.fweek+t,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var a=[];return e.eachComponent("calendar",function(n){var i=new r(n);a.push(i),n.coordinateSystem=i}),e.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=a[n.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r})();function nI(r){var e=r.calendarModel,t=r.seriesModel,a=e?e.coordinateSystem:t?t.coordinateSystem:null;return a}function Ret(r){r.registerComponentModel(Met),r.registerComponentView(Let),r.registerCoordinateSystem("calendar",Eet)}function Iet(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var a=e.parentOption;a?e.parentId=a.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function iI(r,e){var t;return P(e,function(a){r[a]!=null&&r[a]!=="auto"&&(t=!0)}),t}function Net(r,e,t){var a=et({},t),n=r[e],i=t.$action||"merge";i==="merge"?n?(zt(n,a,!0),Ro(n,a,{ignoreSize:!0}),MP(t,n),pp(t,n),pp(t,n,"shape"),pp(t,n,"style"),pp(t,n,"extra"),t.clipPath=n.clipPath):r[e]=a:i==="replace"?r[e]=a:i==="remove"&&n&&(r[e]=null)}var Pk=["transition","enterFrom","leaveTo"],Pet=Pk.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function pp(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var a=t?Pk:Pet,n=0;n<a.length;n++){var i=a[n];r[i]==null&&e[i]!=null&&(r[i]=e[i])}}function Oet(r,e){if(r&&(r.hv=e.hv=[iI(e,["left","right"]),iI(e,["top","bottom"])],r.type==="group")){var t=r,a=e;t.width==null&&(t.width=a.width=0),t.height==null&&(t.height=a.height=0)}}var zet=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,a){var n=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,a),this.option.elements=n},e.prototype.optionUpdated=function(t,a){var n=this.option,i=(a?n:t).elements,o=n.elements=a?[]:n.elements,s=[];this._flatten(i,s,null);var l=b3(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];P(l,function(f,v){var d=f.newOption;d&&(u.push(d),Iet(f,d),Net(o,v,d),Oet(o[v],d))},this),n.elements=le(o,function(f){return f&&delete f.$action,f!=null})},e.prototype._flatten=function(t,a,n){P(t,function(i){if(i){n&&(i.parentOption=n),a.push(i);var o=i.children;o&&o.length&&this._flatten(o,a,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e})(jt),oI={path:null,compoundPath:null,group:Ct,image:hr,text:$t},Oa=Kt(),ket=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=xt()},e.prototype.render=function(t,a,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var a=t.useElOptionsToUpdate();if(a){var n=this._elMap,i=this.group,o=t.get("z"),s=t.get("zlevel");P(a,function(l){var u=Ke(l.id,null),f=u!=null?n.get(u):null,v=Ke(l.parentId,null),d=v!=null?n.get(v):i,p=l.type,y=l.style;p==="text"&&y&&l.hv&&l.hv[1]&&(y.textVerticalAlign=y.textBaseline=y.verticalAlign=y.align=null);var m=l.textContent,_=l.textConfig;if(y&&dk(y,p,!!_,!!m)){var S=pk(y,p,!0);!_&&S.textConfig&&(_=l.textConfig=S.textConfig),!m&&S.textContent&&(m=S.textContent)}var b=Bet(l),w=l.$action||"merge",A=w==="merge",M=w==="replace";if(A){var C=!f,L=f;C?L=sI(u,d,l.type,n):(L&&(Oa(L).isNew=!1),_k(L)),L&&(Vp(L,b,t,{isInit:C}),lI(L,l,o,s))}else if(M){Up(f,l,n,t);var E=sI(u,d,l.type,n);E&&(Vp(E,b,t,{isInit:!0}),lI(E,l,o,s))}else w==="remove"&&(yk(f,l),Up(f,l,n,t));var R=n.get(u);if(R&&m)if(A){var N=R.getTextContent();N?N.attr(m):R.setTextContent(new $t(m))}else M&&R.setTextContent(new $t(m));if(R){var O=l.clipPath;if(O){var k=O.type,G=void 0,C=!1;if(A){var H=R.getClipPath();C=!H||Oa(H).type!==k,G=C?WS(k):H}else M&&(C=!0,G=WS(k));R.setClipPath(G),Vp(G,O,t,{isInit:C}),Eg(G,O.keyframeAnimation,t)}var F=Oa(R);R.setTextConfig(_),F.option=l,Vet(R,t,l),Wu({el:R,componentModel:t,itemName:R.name,itemTooltipOption:l.tooltip}),Eg(R,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,a){for(var n=t.option.elements,i=this.group,o=this._elMap,s=a.getWidth(),l=a.getHeight(),u=["x","y"],f=0;f<n.length;f++){var v=n[f],d=Ke(v.id,null),p=d!=null?o.get(d):null;if(!(!p||!p.isGroup)){var y=p.parent,m=y===i,_=Oa(p),S=Oa(y);_.width=ft(_.option.width,m?s:S.width)||0,_.height=ft(_.option.height,m?l:S.height)||0}}for(var f=n.length-1;f>=0;f--){var v=n[f],d=Ke(v.id,null),p=d!=null?o.get(d):null;if(p){var y=p.parent,S=Oa(y),b=y===i?{width:s,height:l}:{width:S.width,height:S.height},w={},A=fy(p,v,b,null,{hv:v.hv,boundingMode:v.bounding},w);if(!Oa(p).isNew&&A){for(var M=v.transition,C={},L=0;L<u.length;L++){var E=u[L],R=w[E];M&&(Ks(M)||Vt(M,E)>=0)?C[E]=R:p[E]=R}Jt(p,C,t,0)}else p.attr(w)}}},e.prototype._clear=function(){var t=this,a=this._elMap;a.each(function(n){Up(n,Oa(n).option,a,t._lastGraphicModel)}),this._elMap=xt()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e})(Ee);function WS(r){var e=pt(oI,r)?oI[r]:zb(r),t=new e({});return Oa(t).type=r,t}function sI(r,e,t,a){var n=WS(t);return e.add(n),a.set(r,n),Oa(n).id=r,Oa(n).isNew=!0,n}function Up(r,e,t,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){Up(i,e,t,a)}),Cy(r,e,a),t.removeKey(Oa(r).id))}function lI(r,e,t,a){r.isGroup||P([["cursor",Fa.prototype.cursor],["zlevel",a||0],["z",t||0],["z2",0]],function(n){var i=n[0];pt(e,i)?r[i]=Ot(e[i],n[1]):r[i]==null&&(r[i]=n[1])}),P(Yt(e),function(n){if(n.indexOf("on")===0){var i=e[n];r[n]=bt(i)?i:null}}),pt(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function Bet(r){return r=et({},r),P(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(CP),function(e){delete r[e]}),r}function Vet(r,e,t){var a=Rt(r).eventData;!r.silent&&!r.ignore&&!a&&(a=Rt(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),a&&(a.info=t.info)}function Get(r){r.registerComponentModel(zet),r.registerComponentView(ket),r.registerPreprocessor(function(e){var t=e.graphic;it(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var uI=["x","y","radius","angle","single"],Het=["cartesian2d","polar","singleAxis"];function Uet(r){var e=r.get("coordinateSystem");return Vt(Het,e)>=0}function So(r){return r+"Axis"}function Fet(r,e){var t=xt(),a=[],n=xt();r.eachComponent({mainType:"dataZoom",query:e},function(f){n.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!n.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){n.set(f.uid,!0),a.push(f),u(f)}function l(f){var v=!1;return f.eachTargetAxis(function(d,p){var y=t.get(d);y&&y[p]&&(v=!0)}),v}function u(f){f.eachTargetAxis(function(v,d){(t.get(v)||t.set(v,[]))[d]=!0})}return a}function Ok(r){var e=r.ecModel,t={infoList:[],infoMap:xt()};return r.eachTargetAxis(function(a,n){var i=e.getComponent(So(a),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var tx=(function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r})(),Lh=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,a,n){var i=cI(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var a=cI(t);zt(this.option,t,!0),zt(this.settledOption,a,!0),this._doInit(a)},e.prototype._doInit=function(t){var a=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;P([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),a=this._targetAxisInfoMap=xt(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var a=!1;return P(uI,function(n){var i=this.getReferringComponents(So(n),O8);if(i.specified){a=!0;var o=new tx;P(i.models,function(s){o.add(s.componentIndex)}),t.set(n,o)}},this),a},e.prototype._fillAutoTargetAxisByOrient=function(t,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}});l(s,"single")}function l(u,f){var v=u[0];if(v){var d=new tx;if(d.add(v.componentIndex),t.set(f,d),i=!1,f==="x"||f==="y"){var p=v.getReferringComponents("grid",je).models[0];p&&P(u,function(y){v.componentIndex!==y.componentIndex&&p===y.getReferringComponents("grid",je).models[0]&&d.add(y.componentIndex)})}}}i&&P(uI,function(u){if(i){var f=n.findComponents({mainType:So(u),filter:function(d){return d.get("type",!0)==="category"}});if(f[0]){var v=new tx;v.add(f[0].componentIndex),t.set(u,v),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(a){!t&&(t=a)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var a=this._rangePropMode,n=this.get("rangeMode");P([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(a,n){t==null&&(t=this.ecModel.getComponent(So(a),n))},this),t},e.prototype.eachTargetAxis=function(t,a){this._targetAxisInfoMap.each(function(n,i){P(n.indexList,function(o){t.call(a,i,o)})})},e.prototype.getAxisProxy=function(t,a){var n=this.getAxisModel(t,a);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,a){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[a])return this.ecModel.getComponent(So(t),a)},e.prototype.setRawRange=function(t){var a=this.option,n=this.settledOption;P([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(a[i[0]]=n[i[0]]=t[i[0]],a[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var a=this.option;P(["start","startValue","end","endValue"],function(n){a[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,a){if(t==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(t,a).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;a||(a=u)}return a},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e})(jt);function cI(r){var e={};return P(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var jet=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e})(Lh),rw=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){this.dataZoomModel=t,this.ecModel=a,this.api=n},e.type="dataZoom",e})(Ee),Yet=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e})(rw),Su=P,fI=Ga,Xet=(function(){function r(e,t,a,n){this._dimName=e,this._axisIndex=t,this.ecModel=n,this._dataZoomModel=a}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(Uet(t)){var a=So(this._dimName),n=t.getReferringComponents(a,je).models[0];n&&this._axisIndex===n.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return Dt(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._dataExtent,a=this.getAxisModel(),n=a.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Su(["start","end"],function(d,p){var y=e[d],m=e[d+"Value"];i[p]==="percent"?(y==null&&(y=o[p]),m=n.parse(se(y,o,t))):(u=!0,m=m==null?t[p]:n.parse(m),y=se(m,t,o)),l[p]=m==null||isNaN(m)?t[p]:m,s[p]=y==null||isNaN(y)?o[p]:y}),fI(l),fI(s);var f=this._minMaxSpan;u?v(l,s,t,o,!1):v(s,l,o,t,!0);function v(d,p,y,m,_){var S=_?"Span":"ValueSpan";hl(0,d,y,"all",f["min"+S],f["max"+S]);for(var b=0;b<2;b++)p[b]=se(d[b],y,m,!0),_&&(p[b]=n.parse(p[b]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=Zet(this,this._dimName,t),this._updateMinMaxSpan();var a=this.calculateDataWindow(e.settledOption);this._valueWindow=a.valueWindow,this._percentWindow=a.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var a=this._dimName,n=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;if(i==="none")return;Su(n,function(l){var u=l.getData(),f=u.mapDimensionsAll(a);if(f.length){if(i==="weakFilter"){var v=u.getStore(),d=st(f,function(p){return u.getDimensionIndex(p)},u);u.filterSelf(function(p){for(var y,m,_,S=0;S<f.length;S++){var b=v.get(d[S],p),w=!isNaN(b),A=b<o[0],M=b>o[1];if(w&&!A&&!M)return!0;w&&(_=!0),A&&(y=!0),M&&(m=!0)}return _&&y&&m})}else Su(f,function(p){if(i==="empty")l.setData(u=u.map(p,function(m){return s(m)?m:NaN}));else{var y={};y[p]=o,u.selectRange(y)}});Su(f,function(p){u.setApproximateExtent(o,p)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,a=this._dataExtent;Su(["min","max"],function(n){var i=t.get(n+"Span"),o=t.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=se(a[0]+o,a,[0,100],!0):i!=null&&(o=se(i,[0,100],a,!0)-a[0]),e[n+"Span"]=i,e[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,a=this._valueWindow;if(t){var n=d3(a,[0,500]);n=Math.min(n,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),t[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r})();function Zet(r,e,t){var a=[1/0,-1/0];Su(t,function(o){DY(a,o.getData(),e)});var n=r.getAxisModel(),i=r4(n.axis.scale,n,a).calculate();return[i.min,i.max]}var Wet={getTargetSeries:function(r){function e(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(So(o),s);n(o,s,l,i)})})}e(function(n,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Xet(n,i,s,r),t.push(o.__dzAxisProxy))});var a=xt();return P(t,function(n){P(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).reset(t)}),t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var a=t.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};function qet(r){r.registerAction("dataZoom",function(e,t){var a=Fet(t,e);P(a,function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var hI=!1;function aw(r){hI||(hI=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Wet),qet(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function $et(r){r.registerComponentModel(jet),r.registerComponentView(Yet),aw(r)}var ka=(function(){function r(){}return r})(),zk={};function bu(r,e){zk[r]=e}function kk(r){return zk[r]}var Ket=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;P(this.option.feature,function(a,n){var i=kk(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),zt(a,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e})(jt);function Qet(r,e,t){var a=e.getBoxLayoutParams(),n=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=Qe(a,i,n);qs(e.get("orient"),r,e.get("itemGap"),o.width,o.height),fy(r,a,i,n)}function Bk(r,e){var t=Ku(e.get("padding")),a=e.getItemStyle(["color","opacity"]);return a.fill=e.get("backgroundColor"),r=new Wt({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:a,silent:!0,z2:-1}),r}var Jet=(function(r){$(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},f=this._features||(this._features={}),v=[];P(u,function(y,m){v.push(m)}),new Si(this._featureNames||[],v).add(d).update(d).remove(It(d,null)).execute(),this._featureNames=v;function d(y,m){var _=v[y],S=v[m],b=u[_],w=new oe(b,t,t.ecModel),A;if(i&&i.newTitle!=null&&i.featureName===_&&(b.title=i.newTitle),_&&!S){if(trt(_))A={onclick:w.option.onclick,featureName:_};else{var M=kk(_);if(!M)return;A=new M}f[_]=A}else if(A=f[S],!A)return;A.uid=$u("toolbox-feature"),A.model=w,A.ecModel=a,A.api=n;var C=A instanceof ka;if(!_&&S){C&&A.dispose&&A.dispose(a,n);return}if(!w.get("show")||C&&A.unusable){C&&A.remove&&A.remove(a,n);return}p(w,A,_),w.setIconStatus=function(L,E){var R=this.option,N=this.iconPaths;R.iconStatus=R.iconStatus||{},R.iconStatus[L]=E,N[L]&&(E==="emphasis"?_i:xi)(N[L])},A instanceof ka&&A.render&&A.render(w,a,n,i)}function p(y,m,_){var S=y.getModel("iconStyle"),b=y.getModel(["emphasis","iconStyle"]),w=m instanceof ka&&m.getIcons?m.getIcons():y.get("icon"),A=y.get("title")||{},M,C;vt(w)?(M={},M[_]=w):M=w,vt(A)?(C={},C[_]=A):C=A;var L=y.iconPaths={};P(M,function(E,R){var N=Gh(E,{},{x:-s/2,y:-s/2,width:s,height:s});N.setStyle(S.getItemStyle());var O=N.ensureState("emphasis");O.style=b.getItemStyle();var k=new $t({style:{text:C[R],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null},ignore:!0});N.setTextContent(k),Wu({el:N,componentModel:t,itemName:R,formatterParamsExtra:{title:C[R]}}),N.__title=C[R],N.on("mouseover",function(){var G=b.getItemStyle(),H=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";k.setStyle({fill:b.get("textFill")||G.fill||G.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),N.setTextConfig({position:b.get("textPosition")||H}),k.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){y.get(["iconStatus",R])!=="emphasis"&&n.leaveEmphasis(this),k.hide()}),(y.get(["iconStatus",R])==="emphasis"?_i:xi)(N),o.add(N),N.on("click",dt(m.onclick,m,a,n,R)),L[R]=N})}Qet(o,t,n),o.add(Bk(o.getBoundingRect(),t)),l||o.eachChild(function(y){var m=y.__title,_=y.ensureState("emphasis"),S=_.textConfig||(_.textConfig={}),b=y.getTextContent(),w=b&&b.ensureState("emphasis");if(w&&!bt(w)&&m){var A=w.style||(w.style={}),M=Nh(m,$t.makeFont(A)),C=y.x+o.x,L=y.y+o.y+s,E=!1;L+M.height>n.getHeight()&&(S.position="top",E=!0);var R=E?-5-M.height:s+10;C+M.width/2>n.getWidth()?(S.position=["100%",R],A.align="right"):C-M.width/2<0&&(S.position=[0,R],A.align="left")}})},e.prototype.updateView=function(t,a,n,i){P(this._features,function(o){o instanceof ka&&o.updateView&&o.updateView(o.model,a,n,i)})},e.prototype.remove=function(t,a){P(this._features,function(n){n instanceof ka&&n.remove&&n.remove(t,a)}),this.group.removeAll()},e.prototype.dispose=function(t,a){P(this._features,function(n){n instanceof ka&&n.dispose&&n.dispose(t,a)})},e.type="toolbox",e})(Ee);function trt(r){return r.indexOf("my")===0}var ert=(function(r){$(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=Ft.browser;if(bt(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var v=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(v)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),p=d[0].indexOf("base64")>-1,y=o?decodeURIComponent(d[1]):d[1];p&&(y=window.atob(y));var m=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var _=y.length,S=new Uint8Array(_);_--;)S[_]=y.charCodeAt(_);var b=new Blob([S]);window.navigator.msSaveOrOpenBlob(b,m)}else{var w=document.createElement("iframe");document.body.appendChild(w);var A=w.contentWindow,M=A.document;M.open("image/svg+xml","replace"),M.write(y),M.close(),A.focus(),M.execCommand("SaveAs",!0,m),document.body.removeChild(w)}}else{var C=n.get("lang"),L='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(C&&C[0]||"")+'" /></body>',E=window.open();E.document.write(L),E.document.title=i}},e.getDefaultOption=function(t){var a={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},e})(ka),vI="__ec_magicType_stack__",rrt=[["line","bar"],["stack"]],art=(function(r){$(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,a=t.get("icon"),n={};return P(t.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},e.getDefaultOption=function(t){var a={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},e.prototype.onclick=function(t,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(dI[n]){var s={series:[]},l=function(v){var d=v.subType,p=v.id,y=dI[n](d,p,v,i);y&&(wt(y,v.option),s.series.push(y));var m=v.coordinateSystem;if(m&&m.type==="cartesian2d"&&(n==="line"||n==="bar")){var _=m.getAxesByScale("ordinal")[0];if(_){var S=_.dim,b=S+"Axis",w=v.getReferringComponents(b,je).models[0],A=w.componentIndex;s[b]=s[b]||[];for(var M=0;M<=A;M++)s[b][A]=s[b][A]||{};s[b][A].boundaryGap=n==="bar"}}};P(rrt,function(v){Vt(v,n)>=0&&P(v,function(d){i.setIconStatus(d,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=n;n==="stack"&&(u=zt({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(f="tiled")),a.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e})(ka),dI={line:function(r,e,t,a){if(r==="bar")return zt({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,e,t,a){if(r==="line")return zt({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,e,t,a){var n=t.get("stack")===vI;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),zt({id:e,stack:n?"":vI},a.get(["option","stack"])||{},!0)}};Vn({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var My=new Array(60).join("-"),Hu=" ";function nrt(r){var e={},t=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(n)}else t.push(n)}else t.push(n)}),{seriesGroupByCategoryAxis:e,other:t,meta:a}}function irt(r){var e=[];return P(r,function(t,a){var n=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(st(t.series,function(p){return p.name})),l=[n.model.getCategories()];P(t.series,function(p){var y=p.getRawData();l.push(p.getRawData().mapArray(y.mapDimension(o),function(m){return m}))});for(var u=[s.join(Hu)],f=0;f<l[0].length;f++){for(var v=[],d=0;d<l.length;d++)v.push(l[d][f]);u.push(v.join(Hu))}e.push(u.join(`
`))}),e.join(`
`+My+`
`)}function ort(r){return st(r,function(e){var t=e.getRawData(),a=[e.name],n=[];return t.each(t.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=t.getName(o),l=0;l<i-1;l++)n[l]=arguments[l];a.push((s?s+Hu:"")+n.join(Hu))}),a.join(`
`)}).join(`
`+My+`
`)}function srt(r){var e=nrt(r);return{value:le([irt(e.seriesGroupByCategoryAxis),ort(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
`+My+`
`),meta:e.meta}}function Ng(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function lrt(r){var e=r.slice(0,r.indexOf(`
`));if(e.indexOf(Hu)>=0)return!0}var qS=new RegExp("["+Hu+"]+","g");function urt(r){for(var e=r.split(/\n+/g),t=Ng(e.shift()).split(qS),a=[],n=st(t,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=Ng(e[i]).split(qS);a.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[i]=o[s])}return{series:n,categories:a}}function crt(r){for(var e=r.split(/\n+/g),t=Ng(e.shift()),a=[],n=0;n<e.length;n++){var i=Ng(e[n]);if(i){var o=i.split(qS),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[n]={name:s,value:[]},l=a[n].value):l=a[n]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:t,data:a}}function frt(r,e){var t=r.split(new RegExp(`
*`+My+`
*`,"g")),a={series:[]};return P(t,function(n,i){if(lrt(n)){var o=urt(n),s=e[i],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=crt(n);a.series.push(o)}}),a}var hrt=(function(r){$(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var v=i.get("optionToContent"),d=i.get("contentToOption"),p=srt(t);if(bt(v)){var y=v(a.getOption());vt(y)?u.innerHTML=y:ah(y)&&u.appendChild(y)}else{f.readOnly=i.get("readOnly");var m=f.style;m.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",m.color=i.get("textColor"),m.borderColor=i.get("textareaBorderColor"),m.backgroundColor=i.get("textareaColor"),f.value=p.value,u.appendChild(f)}var _=p.meta,S=document.createElement("div");S.style.cssText="position:absolute;bottom:5px;left:0;right:0";var b="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",w=document.createElement("div"),A=document.createElement("div");b+=";background-color:"+i.get("buttonColor"),b+=";color:"+i.get("buttonTextColor");var M=this;function C(){n.removeChild(o),M._dom=null}Lx(w,"click",C),Lx(A,"click",function(){if(d==null&&v!=null||d!=null&&v==null){C();return}var L;try{bt(d)?L=d(u,a.getOption()):L=frt(f.value,_)}catch(E){throw C(),new Error("Data view format error "+E)}L&&a.dispatchAction({type:"changeDataView",newOption:L}),C()}),w.innerHTML=l[1],A.innerHTML=l[2],A.style.cssText=w.style.cssText=b,!i.get("readOnly")&&S.appendChild(A),S.appendChild(w),o.appendChild(s),o.appendChild(u),o.appendChild(S),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},e.prototype.remove=function(t,a){this._dom&&a.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.getDefaultOption=function(t){var a={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return a},e})(ka);function vrt(r,e){return st(r,function(t,a){var n=e&&e[a];if(Tt(n)&&!it(n)){var i=Tt(t)&&!it(t);i||(t={value:t});var o=n.name!=null&&t.name==null;return t=wt(t,n),o&&delete t.name,t}else return t})}Vn({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];P(r.newOption.series,function(a){var n=e.getSeriesByName(a.name)[0];if(!n)t.push(et({type:"scatter"},a));else{var i=n.get("data");t.push({name:a.name,data:vrt(a.data,i)})}}),e.mergeOption(wt({series:t},r.newOption))});var Vk=P,Gk=Kt();function drt(r,e){var t=nw(r);Vk(e,function(a,n){for(var i=t.length-1;i>=0;i--){var o=t[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}function prt(r){var e=nw(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return Vk(t,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i],n){a[i]=n;break}}),a}function grt(r){Gk(r).snapshots=null}function yrt(r){return nw(r).length}function nw(r){var e=Gk(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var mrt=(function(r){$(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){grt(t),a.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return a},e})(ka);Vn({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var _rt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],iw=(function(){function r(e,t,a){var n=this;this._targetInfoList=[];var i=pI(t,e);P(xrt,function(o,s){(!a||!a.include||Vt(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=ex[a.brushType](0,i,n);a.__rangeOffset={offset:_I[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,a){P(e,function(n){var i=this.findTargetInfo(n,t);i&&i!==!0&&P(i.coordSyses,function(o){var s=ex[n.brushType](1,o,n.range,!0);a(n,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){P(e,function(a){var n=this.findTargetInfo(a,t);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=ex[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?_I[a.brushType](i.values,o.offset,Srt(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return st(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:t?t(a):null,clipPath:Wz(n),isTargetByCursor:$z(n,e,a.coordSysModel),getLinearBrushOtherExtent:qz(n)}})},r.prototype.controlSeries=function(e,t,a){var n=this.findTargetInfo(e,a);return n===!0||n&&Vt(n.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var a=this._targetInfoList,n=pI(t,e),i=0;i<a.length;i++){var o=a[i],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<gI.length;l++)if(gI[l](n,o))return o}return!0},r})();function $S(r){return r[0]>r[1]&&r.reverse(),r}function pI(r,e){return Xf(r,e,{includeMainTypes:_rt})}var xrt={grid:function(r,e){var t=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=xt(),o={},s={};!t&&!a&&!n||(P(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),P(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),P(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];P(u.getCartesians(),function(v,d){(Vt(t,v.getAxis("x").model)>=0||Vt(a,v.getAxis("y").model)>=0)&&f.push(v)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:yI.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){P(r.geoModels,function(t){var a=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:a,coordSyses:[a],getPanelRect:yI.geo})})}},gI=[function(r,e){var t=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&t&&(n=t.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],yI={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(Ws(r)),e}},ex={lineX:It(mI,0),lineY:It(mI,1),rect:function(r,e,t,a){var n=r?e.pointToData([t[0][0],t[1][0]],a):e.dataToPoint([t[0][0],t[1][0]],a),i=r?e.pointToData([t[0][1],t[1][1]],a):e.dataToPoint([t[0][1],t[1][1]],a),o=[$S([n[0],i[0]]),$S([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=st(t,function(o){var s=r?e.pointToData(o,a):e.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function mI(r,e,t,a){var n=t.getAxis(["x","y"][r]),i=$S(st([0,1],function(s){return e?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var _I={lineX:It(xI,0),lineY:It(xI,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return st(r,function(a,n){return[a[0]-t[0]*e[n][0],a[1]-t[1]*e[n][1]]})}};function xI(r,e,t,a){return[e[0]-a[r]*t[0],e[1]-a[r]*t[1]]}function Srt(r,e){var t=SI(r),a=SI(e),n=[t[0]/a[0],t[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function SI(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var KS=P,brt=E8("toolbox-dataZoom_"),wrt=(function(r){$(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){this._brushController||(this._brushController=new P2(n.getZr()),this._brushController.on("brush",dt(this._onBrush,this)).mount()),Drt(t,a,this,i,n),Art(t,a)},e.prototype.onclick=function(t,a,n){Trt[n].call(this)},e.prototype.remove=function(t,a){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,a){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var a=t.areas;if(!t.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new iw(ow(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,f,v){if(v.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",v,f[0]),s("y",v,f[1])):s({lineX:"x",lineY:"y"}[d],v,f)}}),drt(i,n),this._dispatchZoomAction(n);function s(u,f,v){var d=f.getAxis(u),p=d.model,y=l(u,p,i),m=y.findRepresentativeAxisProxy(p).getMinMaxSpan();(m.minValueSpan!=null||m.maxValueSpan!=null)&&(v=hl(0,v.slice(),d.scale.getExtent(),0,m.minValueSpan,m.maxValueSpan)),y&&(n[y.id]={dataZoomId:y.id,startValue:v[0],endValue:v[1]})}function l(u,f,v){var d;return v.eachComponent({mainType:"dataZoom",subType:"select"},function(p){var y=p.getAxisModel(u,f.componentIndex);y&&(d=p)}),d}},e.prototype._dispatchZoomAction=function(t){var a=[];KS(t,function(n,i){a.push(Dt(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},e.getDefaultOption=function(t){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return a},e})(ka),Trt={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(prt(this.ecModel))}};function ow(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function Art(r,e){r.setIconStatus("back",yrt(e)>1?"emphasis":"normal")}function Drt(r,e,t,a,n){var i=t._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new iw(ow(r),e,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}eU("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var a=e.getModel(t),n=[],i=ow(a),o=Xf(r,i);KS(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),KS(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var v=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:brt+u+v};d[f]=v,n.push(d)}return n});function Crt(r){r.registerComponentModel(Ket),r.registerComponentView(Jet),bu("saveAsImage",ert),bu("magicType",art),bu("dataView",hrt),bu("dataZoom",wrt),bu("restore",mrt),Ht($et)}var Mrt=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}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})(jt);function Hk(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function Uk(r){if(Ft.domSupported){for(var e=document.documentElement.style,t=0,a=r.length;t<a;t++)if(r[t]in e)return r[t]}}var Fk=Uk(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Lrt=Uk(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function jk(r,e){if(!r)return e;e=AP(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function Ert(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?t[e]:null}var Rrt=jk(Lrt,"transition"),sw=jk(Fk,"transform"),Irt="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ft.transform3dSupported?"will-change:transform;":"");function Nrt(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function Prt(r,e,t){if(!vt(t)||t==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");e=al(e);var i=Nrt(t),o=Math.max(Math.round(n)*1.5,6),s="",l=sw+":",u;Vt(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,v=o+n,d=v*Math.abs(Math.cos(f))+v*Math.abs(Math.sin(f)),p=Math.round(((d-Math.SQRT2*n)/2+Math.SQRT2*n-(d-v)/2)*100)/100;s+=";"+i+":-"+p+"px";var y=e+" solid "+n+"px;",m=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+y,"border-right:"+y,"background-color:"+a+";"];return'<div style="'+m.join("")+'"></div>'}function Ort(r,e){var t="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+t,n="opacity"+a+",visibility"+a;return e||(a=" "+r+"s "+t,n+=Ft.transformSupported?","+sw+a:",left"+a+",top"+a),Rrt+":"+n}function bI(r,e,t){var a=r.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!Ft.transformSupported)return t?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=Ft.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return t?"top:0;left:0;"+sw+":"+o+";":[["top",0],["left",0],[Fk,o]]}function zrt(r){var e=[],t=r.get("fontSize"),a=r.getTextColor();a&&e.push("color:"+a),e.push("font:"+r.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var n=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return n&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+n),P(["decoration","align"],function(l){var u=r.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function krt(r,e,t){var a=[],n=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),v=iO(r,"html"),d=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+d),e&&n&&a.push(Ort(n,t)),i&&a.push("background-color:"+i),P(["width","color","radius"],function(p){var y="border-"+p,m=AP(y),_=r.get(m);_!=null&&a.push(y+":"+_+(p==="color"?"":"px"))}),a.push(zrt(f)),v!=null&&a.push("padding:"+Ku(v).join("px ")+"px"),a.join(";")+";"}function wI(r,e,t,a,n){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&cG(r,o,document.body,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var Brt=(function(){function r(e,t,a){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ft.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),o=this._appendToBody=a&&a.appendToBody;wI(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(n):e.appendChild(n),this._container=e;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();Ia(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){var t=this._container,a=Ert(t,"position"),n=t.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=Irt+krt(e,!this._firstShow,this._longHide)+bI(i[0],i[1],!0)+("border-color:"+al(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,a,n,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(vt(i)&&a.get("trigger")==="item"&&!Hk(a)&&(s=Prt(a,n,i)),vt(e))o.innerHTML=e+s;else if(e){o.innerHTML="",it(e)||(e=[e]);for(var l=0;l<e.length;l++)ah(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},r.prototype.moveTo=function(e,t){var a=this._styleCoord;if(wI(a,this._zr,this._appendToBody,e,t),a[0]!=null&&a[1]!=null){var n=this.el.style,i=bI(a[0],a[1]);P(i,function(o){n[o[0]]=o[1]})}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",Ft.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(dt(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},r})(),Vrt=(function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),AI(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,a,n,i){var o=this;Tt(e)&&ne(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new $t({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:iO(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),P(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),P(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),a=TI(e.style);return[t.width+a.left+a.right,t.height+a.top+a.bottom]},r.prototype.moveTo=function(e,t){var a=this.el;if(a){var n=this._styleCoord;AI(n,this._zr,e,t),e=n[0],t=n[1];var i=a.style,o=uo(i.borderWidth||0),s=TI(i);a.x=e+o+s.left,a.y=t+o+s.top,a.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(dt(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function uo(r){return Math.max(0,r)}function TI(r){var e=uo(r.shadowBlur||0),t=uo(r.shadowOffsetX||0),a=uo(r.shadowOffsetY||0);return{left:uo(e-t),right:uo(e+t),top:uo(e-a),bottom:uo(e+a)}}function AI(r,e,t,a){r[0]=t,r[1]=a,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var Grt=new Wt({shape:{x:-1,y:-1,width:2,height:2}}),Hrt=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){if(!(Ft.node||!a.getDom())){var n=t.getComponent("tooltip"),i=this._renderMode=k8(n.get("renderMode"));this._tooltipContent=i==="richText"?new Vrt(a):new Brt(a.getDom(),a,{appendToBody:n.get("appendToBody",!0)})}},e.prototype.render=function(t,a,n){if(!(Ft.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?ec(this,"_updatePosition",50,"fixRate"):gh(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,a=t.get("triggerOn");Mk("itemTooltip",this._api,dt(function(n,i,o){a!=="none"&&(a.indexOf(n)>=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,a=this._ecModel,n=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(t,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,a,n,i){if(!(i.from===this.uid||Ft.node||!n.getDom())){var o=DI(i,n);this._ticket="";var s=i.dataByCoordSys,l=Yrt(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=Grt;f.x=i.x,f.y=i.y,f.update(),Rt(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,a,n,i))return;var v=Lk(i,a),d=v.point[0],p=v.point[1];d!=null&&p!=null&&this._tryShow({offsetX:d,offsetY:p,target:v.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(DI(i,n))},e.prototype._manuallyAxisShowTip=function(t,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var f=u.getData(),v=Tf([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(v.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,a){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){this._lastDataByCoordSys=null;var s,l;Vs(n,function(u){if(Rt(u).dataIndex!=null)return s=u,!0;if(Rt(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,a):l?this._showComponentItemTooltip(t,l,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},e.prototype._showOrMove=function(t,a){var n=t.get("showDelay");a=dt(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},e.prototype._showAxisTooltip=function(t,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=Tf([a.tooltipOption],i),l=this._renderMode,u=[],f=ir("section",{blocks:[],noHeader:!0}),v=[],d=new H1;P(t,function(b){P(b.dataByAxis,function(w){var A=n.getComponent(w.axisDim+"Axis",w.axisIndex),M=w.value;if(!(!A||M==null)){var C=Ak(M,A.axis,n,w.seriesDataIndices,w.valueLabelOpt),L=ir("section",{header:C,noHeader:!rn(C),sortBlocks:!0,blocks:[]});f.blocks.push(L),P(w.seriesDataIndices,function(E){var R=n.getSeriesByIndex(E.seriesIndex),N=E.dataIndexInside,O=R.getDataParams(N);if(!(O.dataIndex<0)){O.axisDim=w.axisDim,O.axisIndex=w.axisIndex,O.axisType=w.axisType,O.axisId=w.axisId,O.axisValue=u2(A.axis,{value:M}),O.axisValueLabel=C,O.marker=d.makeTooltipMarker("item",al(O.color),l);var k=vL(R.formatTooltip(N,!0,null)),G=k.frag;if(G){var H=Tf([R],i).get("valueFormatter");L.blocks.push(H?et({valueFormatter:H},G):G)}k.text&&v.push(k.text),u.push(O)}})}})}),f.blocks.reverse(),v.reverse();var p=a.position,y=s.get("order"),m=_L(f,d,l,y,n.get("useUTC"),s.get("textStyle"));m&&v.unshift(m);var _=l==="richText"?`
`:"<br/>",S=v.join(_);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,p,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,S,u,Math.random()+"",o[0],o[1],p,null,d)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=Rt(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,v=o.dataType,d=u.getData(v),p=this._renderMode,y=t.positionDefault,m=Tf([d.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),_=m.get("trigger");if(!(_!=null&&_!=="item")){var S=u.getDataParams(f,v),b=new H1;S.marker=b.makeTooltipMarker("item",al(S.color),p);var w=vL(u.formatTooltip(f,!1,v)),A=m.get("order"),M=m.get("valueFormatter"),C=w.frag,L=C?_L(M?et({valueFormatter:M},C):C,b,p,A,i.get("useUTC"),m.get("textStyle")):w.text,E="item_"+u.name+"_"+f;this._showOrMove(m,function(){this._showTooltipContent(m,L,S,E,t.offsetX,t.offsetY,t.position,t.target,b)}),n({type:"showTip",dataIndexInside:f,dataIndex:d.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=Rt(a),o=i.tooltipConfig,s=o.option||{};if(vt(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(i.componentMainType,i.componentIndex);f&&u.push(f),u.push({formatter:s.content});var v=t.positionDefault,d=Tf(u,this._tooltipModel,v?{position:v}:null),p=d.get("content"),y=Math.random()+"",m=new H1;this._showOrMove(d,function(){var _=Dt(d.get("formatterParams")||{});this._showTooltipContent(d,p,_,y,t.offsetX,t.offsetY,t.position,a,m)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var v=this._tooltipContent;v.setEnterable(t.get("enterable"));var d=t.get("formatter");l=l||t.get("position");var p=a,y=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor")),m=y.color;if(d)if(vt(d)){var _=t.ecModel.get("useUTC"),S=it(n)?n[0]:n,b=S&&S.axisType&&S.axisType.indexOf("time")>=0;p=d,b&&(p=oy(S.axisValue,p,_)),p=DP(p,n,!0)}else if(bt(d)){var w=dt(function(A,M){A===this._ticket&&(v.setContent(M,f,t,m,l),this._updatePosition(t,l,o,s,v,n,u))},this);this._ticket=i,p=d(n,i,w)}else p=d;v.setContent(p,f,t,m,l),v.show(t,m),this._updatePosition(t,l,o,s,v,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i){if(n==="axis"||it(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!it(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||t.get("position");var v=o.getSize(),d=t.get("align"),p=t.get("verticalAlign"),y=l&&l.getBoundingRect().clone();if(l&&y.applyTransform(l.transform),bt(a)&&(a=a([n,i],s,o.el,y,{viewSize:[u,f],contentSize:v.slice()})),it(a))n=ft(a[0],u),i=ft(a[1],f);else if(Tt(a)){var m=a;m.width=v[0],m.height=v[1];var _=Qe(m,{width:u,height:f});n=_.x,i=_.y,d=null,p=null}else if(vt(a)&&l){var S=jrt(a,y,v,t.get("borderWidth"));n=S[0],i=S[1]}else{var S=Urt(n,i,o,u,f,d?null:20,p?null:20);n=S[0],i=S[1]}if(d&&(n-=CI(d)?v[0]/2:d==="right"?v[0]:0),p&&(i-=CI(p)?v[1]/2:p==="bottom"?v[1]:0),Hk(t)){var S=Frt(n,i,o,u,f);n=S[0],i=S[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&P(n,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},v=f.dataByAxis||[];o=o&&u.length===v.length,o&&P(u,function(d,p){var y=v[p]||{},m=d.seriesDataIndices||[],_=y.seriesDataIndices||[];o=o&&d.value===y.value&&d.axisType===y.axisType&&d.axisId===y.axisId&&m.length===_.length,o&&P(m,function(S,b){var w=_[b];o=o&&S.seriesIndex===w.seriesIndex&&S.dataIndex===w.dataIndex}),i&&P(d.seriesDataIndices,function(S){var b=S.seriesIndex,w=a[b],A=i[b];w&&A&&A.data!==w.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){Ft.node||!a.getDom()||(gh(this,"_updatePosition"),this._tooltipContent.dispose(),XS("itemTooltip",a))},e.type="tooltip",e})(Ee);function Tf(r,e,t){var a=e.ecModel,n;t?(n=new oe(t,a,a),n=new oe(e.option,n,a)):n=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof oe&&(o=o.get("tooltip",!0)),vt(o)&&(o={formatter:o}),o&&(n=new oe(o,n,a)))}return n}function DI(r,e){return r.dispatchAction||dt(e.dispatchAction,e)}function Urt(r,e,t,a,n,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(e+u+o>n?e-=u+o:e+=o),[r,e]}function Frt(r,e,t,a,n){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,e=Math.min(e+s,n)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function jrt(r,e,t,a){var n=t[0],i=t[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-n/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}function CI(r){return r==="center"||r==="middle"}function Yrt(r,e,t){var a=Ab(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Ph(e,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=Rt(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function Xrt(r){Ht(tv),r.registerComponentModel(Mrt),r.registerComponentView(Hrt),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ge),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ge)}var Zrt=["rect","polygon","keep","clear"];function Wrt(r,e){var t=he(r?r.brush:[]);if(t.length){var a=[];P(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;it(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),qrt(s),e&&!s.length&&s.push.apply(s,Zrt)}}function qrt(r){var e={};P(r,function(t){e[t]=1}),r.length=0,P(e,function(t,a){r.push(a)})}var MI=P;function LI(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function QS(r,e,t){var a={};return MI(e,function(i){var o=a[i]=n();MI(r[i],function(s,l){if(ar.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new ar(u),l==="opacity"&&(u=Dt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new ar(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function Yk(r,e,t){var a;P(t,function(n){e.hasOwnProperty(n)&&LI(e[n])&&(a=!0)}),a&&P(t,function(n){e.hasOwnProperty(n)&&LI(e[n])?r[n]=Dt(e[n]):delete r[n]})}function $rt(r,e,t,a,n,i){var o={};P(r,function(v){var d=ar.prepareVisualTypes(e[v]);o[v]=d});var s;function l(v){return Jb(t,s,v)}function u(v,d){pO(t,s,v,d)}t.each(f);function f(v,d){s=v;var p=t.getRawDataItem(s);if(!(p&&p.visualMap===!1))for(var y=a.call(n,v),m=e[y],_=o[y],S=0,b=_.length;S<b;S++){var w=_[S];m[w]&&m[w].applyVisual(v,l,u)}}}function Krt(r,e,t,a){var n={};return P(r,function(i){var o=ar.prepareVisualTypes(e[i]);n[i]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimensionIndex(a));function u(M){return Jb(s,v,M)}function f(M,C){pO(s,v,M,C)}for(var v,d=s.getStore();(v=o.next())!=null;){var p=s.getRawDataItem(v);if(!(p&&p.visualMap===!1))for(var y=a!=null?d.get(l,v):v,m=t(y),_=e[m],S=n[m],b=0,w=S.length;b<w;b++){var A=S[b];_[A]&&_[A].applyVisual(y,u,f)}}}}}function Qrt(r){var e=r.brushType,t={point:function(a){return EI[e].point(a,t,r)},rect:function(a){return EI[e].rect(a,t,r)}};return t}var EI={lineX:RI(0),lineY:RI(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&Rs(t.range,r[0],r[1])},rect:function(r,e,t){var a=t.range;if(!r||a.length<=1)return!1;var n=r.x,i=r.y,o=r.width,s=r.height,l=a[0];if(Rs(a,n,i)||Rs(a,n+o,i)||Rs(a,n,i+s)||Rs(a,n+o,i+s)||kt.create(r).contain(l[0],l[1])||Nf(n,i,n+o,i,a)||Nf(n,i,n,i+s,a)||Nf(n+o,i,n+o,i+s,a)||Nf(n,i+s,n+o,i+s,a))return!0}}};function RI(r){var e=["x","y"],t=["width","height"];return{point:function(a,n,i){if(a){var o=i.range,s=a[r];return Af(s,o)}},rect:function(a,n,i){if(a){var o=i.range,s=[a[e[r]],a[e[r]]+a[t[r]]];return s[1]<s[0]&&s.reverse(),Af(s[0],o)||Af(s[1],o)||Af(o[0],s)||Af(o[1],s)}}}}function Af(r,e){return e[0]<=r&&r<=e[1]}var II=["inBrush","outOfBrush"],rx="__ecBrushSelect",JS="__ecInBrushSelectEvent";function Xk(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new iw(e.option,r);t.setInputRanges(e.areas,r)})}function Jrt(r,e,t){var a=[],n,i;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),Xk(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:Dt(o.areas),selected:[]};a.push(l);var u=o.option,f=u.brushLink,v=[],d=[],p=[],y=!1;s||(n=u.throttleType,i=u.throttleDelay);var m=st(o.areas,function(M){var C=aat[M.brushType],L=wt({boundingRect:C?C(M):void 0},M);return L.selectors=Qrt(L),L}),_=QS(o.option,II,function(M){M.mappingMethod="fixed"});it(f)&&P(f,function(M){v[M]=1});function S(M){return f==="all"||!!v[M]}function b(M){return!!M.length}r.eachSeries(function(M,C){var L=p[C]=[];M.subType==="parallel"?w(M,C):A(M,C,L)});function w(M,C){var L=M.coordinateSystem;y=y||L.hasAxisBrushed(),S(C)&&L.eachActiveState(M.getData(),function(E,R){E==="active"&&(d[R]=1)})}function A(M,C,L){if(!(!M.brushSelector||rat(o,C))&&(P(m,function(R){o.brushTargetManager.controlSeries(R,M,r)&&L.push(R),y=y||b(L)}),S(C)&&b(L))){var E=M.getData();E.each(function(R){NI(M,L,E,R)&&(d[R]=1)})}}r.eachSeries(function(M,C){var L={seriesId:M.id,seriesIndex:C,seriesName:M.name,dataIndex:[]};l.selected.push(L);var E=p[C],R=M.getData(),N=S(C)?function(O){return d[O]?(L.dataIndex.push(R.getRawIndex(O)),"inBrush"):"outOfBrush"}:function(O){return NI(M,E,R,O)?(L.dataIndex.push(R.getRawIndex(O)),"inBrush"):"outOfBrush"};(S(C)?y:b(E))&&$rt(II,_,R,N)})}),tat(e,n,i,a,t)}function tat(r,e,t,a,n){if(n){var i=r.getZr();if(!i[JS]){i[rx]||(i[rx]=eat);var o=ec(i,rx,t,e);o(r,a)}}}function eat(r,e){if(!r.isDisposed()){var t=r.getZr();t[JS]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[JS]=!1}}function NI(r,e,t,a){for(var n=0,i=e.length;n<i;n++){var o=e[n];if(r.brushSelector(a,t,o.selectors,o))return!0}}function rat(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(it(t)?Vt(t,e)<0:e!==t)}var aat={rect:function(r){return PI(r.range)},polygon:function(r){for(var e,t=r.range,a=0,n=t.length;a<n;a++){e=e||[[1/0,-1/0],[1/0,-1/0]];var i=t[a];i[0]<e[0][0]&&(e[0][0]=i[0]),i[0]>e[0][1]&&(e[0][1]=i[0]),i[1]<e[1][0]&&(e[1][0]=i[1]),i[1]>e[1][1]&&(e[1][1]=i[1])}return e&&PI(e)}};function PI(r){return new kt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var nat=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a,this.model,(this._brushController=new P2(a.getZr())).on("brush",dt(this._onBrush,this)).mount()},e.prototype.render=function(t,a,n,i){this.model=t,this._updateController(t,a,n,i)},e.prototype.updateTransform=function(t,a,n,i){Xk(a),this._updateController(t,a,n,i)},e.prototype.updateVisual=function(t,a,n,i){this.updateTransform(t,a,n,i)},e.prototype.updateView=function(t,a,n,i){this._updateController(t,a,n,i)},e.prototype._updateController=function(t,a,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:Dt(n),$from:a}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:Dt(n),$from:a})},e.type="brush",e})(Ee),iat="#ddd",oat=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&Yk(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:iat},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=st(t,function(a){return OI(this.option,a)},this))},e.prototype.setBrushOption=function(t){this.brushOption=OI(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e})(jt);function OI(r,e){return zt({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new oe(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var sat=["rect","polygon","lineX","lineY","keep","clear"],lat=(function(r){$(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,P(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,a,n){this.render(t,a,n)},e.prototype.getIcons=function(){var t=this.model,a=t.get("icon",!0),n={};return P(t.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},e.prototype.onclick=function(t,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var a={show:!0,type:sat.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return a},e})(ka);function uat(r){r.registerComponentView(nat),r.registerComponentModel(oat),r.registerPreprocessor(Wrt),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Jrt),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(a){a.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Ge),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Ge),bu("brush",lat)}var cat=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}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})(jt),fat=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Ot(t.get("textBaseline"),t.get("textVerticalAlign")),f=new $t({style:xe(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),v=f.getBoundingRect(),d=t.get("subtext"),p=new $t({style:xe(s,{text:d,fill:s.getTextColor(),y:v.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),y=t.get("link"),m=t.get("sublink"),_=t.get("triggerEvent",!0);f.silent=!y&&!_,p.silent=!m&&!_,y&&f.on("click",function(){ug(y,"_"+t.get("target"))}),m&&p.on("click",function(){ug(m,"_"+t.get("subtarget"))}),Rt(f).eventData=Rt(p).eventData=_?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(f),d&&i.add(p);var S=i.getBoundingRect(),b=t.getBoxLayoutParams();b.width=S.width,b.height=S.height;var w=Qe(b,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?w.x+=w.width:l==="center"&&(w.x+=w.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?w.y+=w.height:u==="middle"&&(w.y+=w.height/2),u=u||"top"),i.x=w.x,i.y=w.y,i.markRedraw();var A={align:l,verticalAlign:u};f.setStyle(A),p.setStyle(A),S=i.getBoundingRect();var M=w.margin,C=t.getItemStyle(["color","opacity"]);C.fill=t.get("backgroundColor");var L=new Wt({shape:{x:S.x-M[3],y:S.y-M[0],width:S.width+M[1]+M[3],height:S.height+M[0]+M[2],r:t.get("borderRadius")},style:C,subPixelOptimize:!0,silent:!0});i.add(L)}},e.type="title",e})(Ee);function hat(r){r.registerComponentModel(cat),r.registerComponentView(fat)}var zI=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var a=this._data.count();this.option.loop?t=(t%a+a)%a:(t>=a&&(t=a-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,a=t.data||[],n=t.axisType,i=this._names=[],o;n==="category"?(o=[],P(a,function(u,f){var v=Ke(Yu(u),""),d;Tt(u)?(d=Dt(u),d.value=f):d=f,o.push(d),i.push(v)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new Pr([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e})(jt),Zk=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=zo(zI.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e})(zI);Xe(Zk,$b.prototype);var vat=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e})(Ee),dat=(function(r){$(e,r);function e(t,a,n,i){var o=r.call(this,t,a,n)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e})(hn),ax=Math.PI,kI=Kt(),pat=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.api=a},e.prototype.render=function(t,a,n){if(this.model=t,this.api=n,this.ecModel=a,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return ir("nameValue",{noName:!0,value:f})},P(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,a){var n=t.get(["label","position"]),i=t.get("orient"),o=yat(t,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2<a.getHeight()/2?"-":"+":o.x+o.width/2<a.getWidth()/2?"+":"-":vt(n)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]:s=n;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:ax/2},v=i==="vertical"?o.height:o.width,d=t.getModel("controlStyle"),p=d.get("show",!0),y=p?d.get("itemSize"):0,m=p?d.get("itemGap"):0,_=y+m,S=t.get(["label","rotate"])||0;S=S*ax/180;var b,w,A,M=d.get("position",!0),C=p&&d.get("showPlayBtn",!0),L=p&&d.get("showPrevBtn",!0),E=p&&d.get("showNextBtn",!0),R=0,N=v;M==="left"||M==="bottom"?(C&&(b=[0,0],R+=_),L&&(w=[R,0],R+=_),E&&(A=[N-y,0],N-=_)):(C&&(b=[N-y,0],N-=_),L&&(w=[0,0],R+=_),E&&(A=[N-y,0],N-=_));var O=[R,N];return t.get("inverse")&&O.reverse(),{viewRect:o,mainLength:v,orient:i,rotation:f[i],labelRotation:S,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:b,prevBtnPosition:w,nextBtnPosition:A,axisExtent:O,controlSize:y,controlGap:m}},e.prototype._position=function(t,a){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=Ua(),l=o.x,u=o.y+o.height;Pn(s,s,[-l,-u]),sl(s,s,-ax/2),Pn(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=b(o),v=b(n.getBoundingRect()),d=b(i.getBoundingRect()),p=[n.x,n.y],y=[i.x,i.y];y[0]=p[0]=f[0][0];var m=t.labelPosOpt;if(m==null||vt(m)){var _=m==="+"?0:1;w(p,v,f,1,_),w(y,d,f,1,1-_)}else{var _=m>=0?0:1;w(p,v,f,1,_),y[1]=p[1]+m}n.setPosition(p),i.setPosition(y),n.rotation=i.rotation=t.rotation,S(n),S(i);function S(A){A.originX=f[0][0]-A.x,A.originY=f[1][0]-A.y}function b(A){return[[A.x,A.x+A.width],[A.y,A.y+A.height]]}function w(A,M,C,L,E){A[L]+=C[L][E]-M[L][E]}},e.prototype._createAxis=function(t,a){var n=a.getData(),i=a.get("axisType"),o=gat(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new dat("value",o,t.axisExtent,i);return l.model=a,l},e.prototype._createGroup=function(t){var a=this[t]=new Ct;return this.group.add(a),a},e.prototype._renderAxisLine=function(t,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new er({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:et({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new er({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:wt({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},e.prototype._renderAxisTick=function(t,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],P(l,function(u){var f=n.dataToCoord(u.value),v=s.getItemModel(u.value),d=v.getModel("itemStyle"),p=v.getModel(["emphasis","itemStyle"]),y=v.getModel(["progress","itemStyle"]),m={x:f,y:0,onclick:dt(o._changeTimeline,o,u.value)},_=BI(v,d,a,m);_.ensureState("emphasis").style=p.getItemStyle(),_.ensureState("progress").style=y.getItemStyle(),Zs(_);var S=Rt(_);v.get("tooltip")?(S.dataIndex=u.value,S.dataModel=i):S.dataIndex=S.dataModel=null,o._tickSymbols.push(_)})},e.prototype._renderAxisLabel=function(t,a,n,i){var o=this,s=n.getLabelModel();if(s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],P(u,function(f){var v=f.tickValue,d=l.getItemModel(v),p=d.getModel("label"),y=d.getModel(["emphasis","label"]),m=d.getModel(["progress","label"]),_=n.dataToCoord(f.tickValue),S=new $t({x:_,y:0,rotation:t.labelRotation-t.rotation,onclick:dt(o._changeTimeline,o,v),silent:!1,style:xe(p,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});S.ensureState("emphasis").style=xe(y),S.ensureState("progress").style=xe(m),a.add(S),Zs(S),kI(S).dataIndex=v,o._tickLabels.push(S)})}},e.prototype._renderControl=function(t,a,n,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),v=i.get("inverse",!0);d(t.nextBtnPosition,"next",dt(this._changeTimeline,this,v?"-":"+")),d(t.prevBtnPosition,"prev",dt(this._changeTimeline,this,v?"+":"-")),d(t.playPosition,f?"stop":"play",dt(this._handlePlayClick,this,!f),!0);function d(p,y,m,_){if(p){var S=ln(Ot(i.get(["controlStyle",y+"BtnSize"]),o),o),b=[0,-S/2,S,S],w=mat(i,y+"Icon",b,{x:p[0],y:p[1],originX:o/2,originY:0,rotation:_?-s:0,rectHover:!0,style:l,onclick:m});w.ensureState("emphasis").style=u,a.add(w),Zs(w)}}},e.prototype._renderCurrentPointer=function(t,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(v){v.draggable=!0,v.drift=dt(u._handlePointerDrag,u),v.ondragend=dt(u._handlePointerDragend,u),VI(v,u._progressLine,s,n,i,!0)},onUpdate:function(v){VI(v,u._progressLine,s,n,i)}};this._currentPointer=BI(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,a){var n=this._toAxisCoord(t)[0],i=this._axis,o=Ga(i.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=n,s.dirty());var l=this._findNearestTick(n),u=this.model;(a||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var a=t.model;t._changeTimeline(a.getCurrentIndex()+(a.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var a=this._mainGroup.getLocalTransform();return sn(t,a,!0)},e.prototype._findNearestTick=function(t){var a=this.model.getData(),n=1/0,i,o=this._axis;return a.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-t);f<n&&(n=f,i=l)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var a=this.model.getCurrentIndex();t==="+"?t=a+1:t==="-"&&(t=a-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),a=this._tickSymbols,n=this._tickLabels;if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",i<t);if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",kI(n[i]).dataIndex<=t)},e.type="timeline.slider",e})(vat);function gat(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new my({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new s2({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new bi}}function yat(r,e){return Qe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},r.get("padding"))}function mat(r,e,t,a){var n=a.style,i=Gh(r.get(["controlStyle",e]),a||{},new kt(t[0],t[1],t[2],t[3]));return n&&i.setStyle(n),i}function BI(r,e,t,a,n,i){var o=e.get("color");if(n)n.setColor(o),t.add(n),i&&i.onUpdate(n);else{var s=r.get("symbol");n=Ye(s,-1,-1,2,2,o),n.setStyle("strokeNoScale",!0),t.add(n),i&&i.onCreate(n)}var l=e.getItemStyle(["color"]);n.setStyle(l),a=zt({rectHover:!0,z2:100},a,!0);var u=rc(r.get("symbolSize"));a.scaleX=u[0]/2,a.scaleY=u[1]/2;var f=ll(r.get("symbolOffset"),u);f&&(a.x=(a.x||0)+f[0],a.y=(a.y||0)+f[1]);var v=r.get("symbolRotate");return a.rotation=(v||0)*Math.PI/180||0,n.attr(a),n.updateTransform(),n}function VI(r,e,t,a,n,i){if(!r.dragging){var o=n.getModel("checkpointStyle"),s=a.dataToCoord(n.getData().get("value",t));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function _at(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,a){var n=t.getComponent("timeline");return n&&e.currentIndex!=null&&(n.setCurrentIndex(e.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.getPlayState()&&(n.setPlayState(!1),a.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),wt({currentIndex:n.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var a=t.getComponent("timeline");a&&e.playState!=null&&a.setPlayState(e.playState)})}function xat(r){var e=r&&r.timeline;it(e)||(e=e?[e]:[]),P(e,function(t){t&&Sat(t)})}function Sat(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),GI(r),Ps(r,"controlPosition")){var a=r.controlStyle||(r.controlStyle={});Ps(a,"position")||(a.position=r.controlPosition),a.position==="none"&&!Ps(a,"show")&&(a.show=!1,delete a.position),delete r.controlPosition}P(r.data||[],function(n){Tt(n)&&!it(n)&&(!Ps(n,"value")&&Ps(n,"name")&&(n.value=n.name),GI(n))})}function GI(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),a=r.label||r.label||{},n=a.normal||(a.normal={}),i={normal:1,emphasis:1};P(a,function(o,s){!i[s]&&!Ps(n,s)&&(n[s]=o)}),t.label&&!Ps(a,"emphasis")&&(a.emphasis=t.label,delete t.label)}function Ps(r,e){return r.hasOwnProperty(e)}function bat(r){r.registerComponentModel(Zk),r.registerComponentView(pat),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),_at(r),r.registerPreprocessor(xat)}function lw(r,e){if(!r)return!1;for(var t=it(r)?r:[r],a=0;a<t.length;a++)if(t[a]&&t[a][e])return!0;return!1}function gp(r){Js(r,"label",["show"])}var yp=Kt(),Ti=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Ft.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,a){this._mergeOption(t,a,!1,!1)},e.prototype._mergeOption=function(t,a,n,i){var o=this.mainType;n||a.eachSeries(function(s){var l=s.get(this.mainType,!0),u=yp(s)[o];if(!l||!l.data){yp(s)[o]=null;return}u?u._mergeOption(l,a,!0):(i&&gp(l),P(l.data,function(f){f instanceof Array?(gp(f[0]),gp(f[1])):gp(f)}),u=this.createMarkerModelFromSeries(l,this,a),et(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),yp(s)[o]=u},this)},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return ir("section",{header:this.name,blocks:[ir("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,a){return yp(t)[a]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e})(jt);Xe(Ti,$b.prototype);var wat=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e})(Ti);function tb(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function Tat(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function mp(r,e,t,a,n,i){var o=[],s=Io(e,a),l=s?e.getCalculationInfo("stackResultDimension"):a,u=uw(e,l,r),f=e.indicesOfNearest(l,u)[0];o[n]=e.get(t,f),o[i]=e.get(l,f);var v=e.get(a,f),d=Cn(e.get(a,f));return d=Math.min(d,20),d>=0&&(o[i]=+o[i].toFixed(d)),[o,v]}var nx={min:It(mp,"min"),max:It(mp,"max"),average:It(mp,"average"),median:It(mp,"median")};function Eh(r,e){if(e){var t=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!Tat(e)&&!it(e.coord)&&it(n)){var i=Wk(e,t,a,r);if(e=Dt(e),e.type&&nx[e.type]&&i.baseAxis&&i.valueAxis){var o=Vt(n,i.baseAxis.dim),s=Vt(n,i.valueAxis.dim),l=nx[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!it(n))e.coord=[];else for(var u=e.coord,f=0;f<2;f++)nx[u[f]]&&(u[f]=uw(t,t.mapDimension(n[f]),u[f]));return e}}function Wk(r,e,t,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,n.valueAxis=t.getAxis(Aat(a,n.valueDataDim)),n.baseAxis=t.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=t.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim)),n}function Aat(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function Rh(r,e){return r&&r.containData&&e.coord&&!tb(e)?r.containData(e.coord):!0}function Dat(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!tb(e)&&!tb(t)?r.containZone(e.coord,t.coord):!0}function qk(r,e){return r?function(t,a,n,i){var o=i<2?t.coord&&t.coord[i]:t.value;return To(o,e[i])}:function(t,a,n,i){return To(t.value,e[i])}}function uw(r,e,t){if(t==="average"){var a=0,n=0;return r.each(e,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var ix=Kt(),cw=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=xt()},e.prototype.render=function(t,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){ix(s).keep=!1}),a.eachSeries(function(s){var l=Ti.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!ix(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){ix(t).keep=!0},e.prototype.toggleBlurSeries=function(t,a){var n=this;P(t,function(i){var o=Ti.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?U3(l):Rb(l))})}})},e.type="marker",e})(Ee);function HI(r,e,t){var a=e.coordinateSystem;r.each(function(n){var i=r.getItemModel(n),o,s=ft(i.get("x"),t.getWidth()),l=ft(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,n));else if(a){var u=r.get(a.dimensions[0],n),f=r.get(a.dimensions[1],n);o=a.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(n,o)})}var Cat=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=Ti.getMarkerModelFromSeries(i,"markPoint");o&&(HI(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Wh),v=Mat(o,t,a);a.setData(v),HI(a.getData(),t,i),v.each(function(d){var p=v.getItemModel(d),y=p.getShallow("symbol"),m=p.getShallow("symbolSize"),_=p.getShallow("symbolRotate"),S=p.getShallow("symbolOffset"),b=p.getShallow("symbolKeepAspect");if(bt(y)||bt(m)||bt(_)||bt(S)){var w=a.getRawValue(d),A=a.getDataParams(d);bt(y)&&(y=y(w,A)),bt(m)&&(m=m(w,A)),bt(_)&&(_=_(w,A)),bt(S)&&(S=S(w,A))}var M=p.getModel("itemStyle").getItemStyle(),C=Fh(l,"color");M.fill||(M.fill=C),v.setItemVisual(d,{symbol:y,symbolSize:m,symbolRotate:_,symbolOffset:S,symbolKeepAspect:b,style:M})}),f.updateData(v),this.group.add(f.group),v.eachItemGraphicEl(function(d){d.traverse(function(p){Rt(p).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markPoint",e})(cw);function Mat(r,e,t){var a;r?a=st(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return et(et({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new Pr(a,t),i=st(t.get("data"),It(Eh,e));r&&(i=le(i,It(Rh,r)));var o=qk(!!r,a);return n.initData(i,null,o),n}function Lat(r){r.registerComponentModel(wat),r.registerComponentView(Cat),r.registerPreprocessor(function(e){lw(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var Eat=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e})(Ti),_p=Kt(),Rat=function(r,e,t,a){var n=r.getData(),i;if(it(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=e.getAxis(a.yAxis!=null?"y":"x"),l=fr(a.yAxis,a.xAxis);else{var u=Wk(a,n,e,r);s=u.valueAxis;var f=jO(n,u.valueDataDim);l=uw(n,f,o)}var v=s.dim==="x"?0:1,d=1-v,p=Dt(a),y={coord:[]};p.type=null,p.coord=[],p.coord[d]=-1/0,y.coord[d]=1/0;var m=t.get("precision");m>=0&&Qt(l)&&(l=+l.toFixed(Math.min(m,20))),p.coord[v]=y.coord[v]=l,i=[p,y,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var _=[Eh(r,i[0]),Eh(r,i[1]),et({},i[2])];return _[2].type=_[2].type||null,zt(_[2],_[0]),zt(_[2],_[1]),_};function Pg(r){return!isNaN(r)&&!isFinite(r)}function UI(r,e,t,a){var n=1-r,i=a.dimensions[r];return Pg(e[n])&&Pg(t[n])&&e[r]===t[r]&&a.getAxis(i).containData(e[r])}function Iat(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,a=e[1].coord;if(t&&a&&(UI(1,t,a,r)||UI(0,t,a,r)))return!0}return Rh(r,e[0])&&Rh(r,e[1])}function ox(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=ft(o.get("x"),n.getWidth()),u=ft(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=i.dimensions,v=r.get(f[0],e),d=r.get(f[1],e);s=i.dataToPoint([v,d])}if(cl(i,"cartesian2d")){var p=i.getAxis("x"),y=i.getAxis("y"),f=i.dimensions;Pg(r.get(f[0],e))?s[0]=p.toGlobalCoord(p.getExtent()[t?0:1]):Pg(r.get(f[1],e))&&(s[1]=y.toGlobalCoord(y.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var Nat=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=Ti.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=_p(o).from,u=_p(o).to;l.each(function(f){ox(l,f,!0,i,n),ox(u,f,!1,i,n)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new N2);this.group.add(f.group);var v=Pat(o,t,a),d=v.from,p=v.to,y=v.line;_p(a).from=d,_p(a).to=p,a.setData(y);var m=a.get("symbol"),_=a.get("symbolSize"),S=a.get("symbolRotate"),b=a.get("symbolOffset");it(m)||(m=[m,m]),it(_)||(_=[_,_]),it(S)||(S=[S,S]),it(b)||(b=[b,b]),v.from.each(function(A){w(d,A,!0),w(p,A,!1)}),y.each(function(A){var M=y.getItemModel(A).getModel("lineStyle").getLineStyle();y.setItemLayout(A,[d.getItemLayout(A),p.getItemLayout(A)]),M.stroke==null&&(M.stroke=d.getItemVisual(A,"style").fill),y.setItemVisual(A,{fromSymbolKeepAspect:d.getItemVisual(A,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(A,"symbolOffset"),fromSymbolRotate:d.getItemVisual(A,"symbolRotate"),fromSymbolSize:d.getItemVisual(A,"symbolSize"),fromSymbol:d.getItemVisual(A,"symbol"),toSymbolKeepAspect:p.getItemVisual(A,"symbolKeepAspect"),toSymbolOffset:p.getItemVisual(A,"symbolOffset"),toSymbolRotate:p.getItemVisual(A,"symbolRotate"),toSymbolSize:p.getItemVisual(A,"symbolSize"),toSymbol:p.getItemVisual(A,"symbol"),style:M})}),f.updateData(y),v.line.eachItemGraphicEl(function(A){Rt(A).dataModel=a,A.traverse(function(M){Rt(M).dataModel=a})});function w(A,M,C){var L=A.getItemModel(M);ox(A,M,C,t,i);var E=L.getModel("itemStyle").getItemStyle();E.fill==null&&(E.fill=Fh(l,"color")),A.setItemVisual(M,{symbolKeepAspect:L.get("symbolKeepAspect"),symbolOffset:Ot(L.get("symbolOffset",!0),b[C?0:1]),symbolRotate:Ot(L.get("symbolRotate",!0),S[C?0:1]),symbolSize:Ot(L.get("symbolSize"),_[C?0:1]),symbol:Ot(L.get("symbol",!0),m[C?0:1]),style:E})}this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markLine",e})(cw);function Pat(r,e,t){var a;r?a=st(r&&r.dimensions,function(u){var f=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return et(et({},f),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new Pr(a,t),i=new Pr(a,t),o=new Pr([],t),s=st(t.get("data"),It(Rat,e,r,t));r&&(s=le(s,It(Iat,r)));var l=qk(!!r,a);return n.initData(st(s,function(u){return u[0]}),null,l),i.initData(st(s,function(u){return u[1]}),null,l),o.initData(st(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}function Oat(r){r.registerComponentModel(Eat),r.registerComponentView(Nat),r.registerPreprocessor(function(e){lw(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var zat=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e})(Ti),xp=Kt(),kat=function(r,e,t,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=Eh(r,n),s=Eh(r,i),l=o.coord,u=s.coord;l[0]=fr(l[0],-1/0),l[1]=fr(l[1],-1/0),u[0]=fr(u[0],1/0),u[1]=fr(u[1],1/0);var f=db([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function Og(r){return!isNaN(r)&&!isFinite(r)}function FI(r,e,t,a){var n=1-r;return Og(e[n])&&Og(t[n])}function Bat(r,e){var t=e.coord[0],a=e.coord[1],n={coord:t,x:e.x0,y:e.y0},i={coord:a,x:e.x1,y:e.y1};return cl(r,"cartesian2d")?t&&a&&(FI(1,t,a)||FI(0,t,a))?!0:Dat(r,n,i):Rh(r,n)||Rh(r,i)}function jI(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=ft(o.get(t[0]),n.getWidth()),u=ft(o.get(t[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var f=r.getValues(["x0","y0"],e),v=r.getValues(["x1","y1"],e),d=i.clampData(f),p=i.clampData(v),y=[];t[0]==="x0"?y[0]=d[0]>p[0]?v[0]:f[0]:y[0]=d[0]>p[0]?f[0]:v[0],t[1]==="y0"?y[1]=d[1]>p[1]?v[1]:f[1]:y[1]=d[1]>p[1]?f[1]:v[1],s=a.getMarkerPosition(y,t,!0)}else{var m=r.get(t[0],e),_=r.get(t[1],e),S=[m,_];i.clampData&&i.clampData(S,S),s=i.dataToPoint(S,!0)}if(cl(i,"cartesian2d")){var b=i.getAxis("x"),w=i.getAxis("y"),m=r.get(t[0],e),_=r.get(t[1],e);Og(m)?s[0]=b.toGlobalCoord(b.getExtent()[t[0]==="x0"?0:1]):Og(_)&&(s[1]=w.toGlobalCoord(w.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var YI=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Vat=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=Ti.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=st(YI,function(v){return jI(s,l,v,i,n)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new Ct});this.group.add(f.group),this.markKeep(f);var v=Gat(o,t,a);a.setData(v),v.each(function(d){var p=st(YI,function(E){return jI(v,d,E,t,i)}),y=o.getAxis("x").scale,m=o.getAxis("y").scale,_=y.getExtent(),S=m.getExtent(),b=[y.parse(v.get("x0",d)),y.parse(v.get("x1",d))],w=[m.parse(v.get("y0",d)),m.parse(v.get("y1",d))];Ga(b),Ga(w);var A=!(_[0]>b[1]||_[1]<b[0]||S[0]>w[1]||S[1]<w[0]),M=!A;v.setItemLayout(d,{points:p,allClipped:M});var C=v.getItemModel(d).getModel("itemStyle").getItemStyle(),L=Fh(l,"color");C.fill||(C.fill=L,vt(C.fill)&&(C.fill=$p(C.fill,.4))),C.stroke||(C.stroke=L),v.setItemVisual(d,"style",C)}),v.diff(xp(f).data).add(function(d){var p=v.getItemLayout(d);if(!p.allClipped){var y=new Vr({shape:{points:p.points}});v.setItemGraphicEl(d,y),f.group.add(y)}}).update(function(d,p){var y=xp(f).data.getItemGraphicEl(p),m=v.getItemLayout(d);m.allClipped?y&&f.group.remove(y):(y?Jt(y,{shape:{points:m.points}},a,d):y=new Vr({shape:{points:m.points}}),v.setItemGraphicEl(d,y),f.group.add(y))}).remove(function(d){var p=xp(f).data.getItemGraphicEl(d);f.group.remove(p)}).execute(),v.eachItemGraphicEl(function(d,p){var y=v.getItemModel(p),m=v.getItemVisual(p,"style");d.useStyle(v.getItemVisual(p,"style")),Sr(d,nr(y),{labelFetcher:a,labelDataIndex:p,defaultText:v.getName(p)||"",inheritColor:vt(m.fill)?$p(m.fill,1):"#000"}),xr(d,y),Pe(d,null,null,y.get(["emphasis","disabled"])),Rt(d).dataModel=a}),xp(f).data=v,f.group.silent=a.get("silent")||t.get("silent")},e.type="markArea",e})(cw);function Gat(r,e,t){var a,n,i=["x0","y0","x1","y1"];if(r){var o=st(r&&r.dimensions,function(u){var f=e.getData(),v=f.getDimensionInfo(f.mapDimension(u))||{};return et(et({},v),{name:u,ordinalMeta:null})});n=st(i,function(u,f){return{name:u,type:o[f%2].type}}),a=new Pr(n,t)}else n=[{name:"value",type:"float"}],a=new Pr(n,t);var s=st(t.get("data"),It(kat,e,r,t));r&&(s=le(s,It(Bat,r)));var l=r?function(u,f,v,d){var p=u.coord[Math.floor(d/2)][d%2];return To(p,n[d])}:function(u,f,v,d){return To(u.value,n[d])};return a.initData(s,null,l),a.hasItemOption=!0,a}function Hat(r){r.registerComponentModel(zat),r.registerComponentView(Vat),r.registerPreprocessor(function(e){lw(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var Uat=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},eb=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),this._updateSelector(t)},e.prototype._updateSelector=function(t){var a=t.selector,n=this.ecModel;a===!0&&(a=t.selector=["all","inverse"]),it(a)&&P(a,function(i,o){vt(i)&&(i={type:i}),a[o]=zt(i,Uat(n,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var a=[],n=[];t.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var v=l.legendVisualProvider,d=v.getAllNames();t.isSeriesFiltered(l)||(n=n.concat(d)),d.length?a=a.concat(d):f=!0}else f=!0;f&&Tb(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=xt(),s=st(i,function(l){return(vt(l)||Qt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new oe(l,this,this.ecModel))},this);this._data=le(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;P(i,function(o){a[o.get("name")]=!1})}a[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var a=this.option.selected;a.hasOwnProperty(t)||(a[t]=!0),this[a[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,a=this.option.selected;P(t,function(n){a[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,a=this.option.selected;P(t,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},e.prototype.isSelected=function(t){var a=this.option.selected;return!(a.hasOwnProperty(t)&&!a[t])&&Vt(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e})(jt),du=It,rb=P,Sp=Ct,$k=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Sp),this.group.add(this._selectorGroup=new Sp),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,a,n,l,s,u);var f=t.getBoxLayoutParams(),v={width:n.getWidth(),height:n.getHeight()},d=t.get("padding"),p=Qe(f,v,d),y=this.layoutInner(t,o,p,i,l,u),m=Qe(wt({width:y.width,height:y.height},f),v,d);this.group.x=m.x-y.x,this.group.y=m.y-y.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Bk(y,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this.getContentGroup(),f=xt(),v=a.get("selectedMode"),d=[];n.eachRawSeries(function(p){!p.get("legendHoverLink")&&d.push(p.id)}),rb(a.getData(),function(p,y){var m=p.get("name");if(!this.newlineDisabled&&(m===""||m===`
`)){var _=new Sp;_.newline=!0,u.add(_);return}var S=n.getSeriesByName(m)[0];if(!f.get(m))if(S){var b=S.getData(),w=b.getVisual("legendLineStyle")||{},A=b.getVisual("legendIcon"),M=b.getVisual("style"),C=this._createItem(S,m,y,p,a,t,w,M,A,v,i);C.on("click",du(XI,m,null,i,d)).on("mouseover",du(ab,S.name,null,i,d)).on("mouseout",du(nb,S.name,null,i,d)),f.set(m,!0)}else n.eachRawSeries(function(L){if(!f.get(m)&&L.legendVisualProvider){var E=L.legendVisualProvider;if(!E.containName(m))return;var R=E.indexOfName(m),N=E.getItemVisual(R,"style"),O=E.getItemVisual(R,"legendIcon"),k=ha(N.fill);k&&k[3]===0&&(k[3]=.2,N=et(et({},N),{fill:di(k,"rgba")}));var G=this._createItem(L,m,y,p,a,t,{},N,O,v,i);G.on("click",du(XI,null,m,i,d)).on("mouseover",du(ab,null,m,i,d)).on("mouseout",du(nb,null,m,i,d)),f.set(m,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();rb(t,function(u){var f=u.type,v=new $t({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(v);var d=a.getModel("selectorLabel"),p=a.getModel(["emphasis","selectorLabel"]);Sr(v,{normal:d,emphasis:p},{defaultText:u.title}),Zs(v)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,f,v,d){var p=t.visualDrawType,y=o.get("itemWidth"),m=o.get("itemHeight"),_=o.isSelected(a),S=i.get("symbolRotate"),b=i.get("symbolKeepAspect"),w=i.get("icon");f=w||f||"roundRect";var A=Fat(f,i,l,u,p,_,d),M=new Sp,C=i.getModel("textStyle");if(bt(t.getLegendIcon)&&(!w||w==="inherit"))M.add(t.getLegendIcon({itemWidth:y,itemHeight:m,icon:f,iconRotate:S,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:b}));else{var L=w==="inherit"&&t.getData().getVisual("symbol")?S==="inherit"?t.getData().getVisual("symbolRotate"):S:0;M.add(jat({itemWidth:y,itemHeight:m,icon:f,iconRotate:L,itemStyle:A.itemStyle,symbolKeepAspect:b}))}var E=s==="left"?y+5:-5,R=s,N=o.get("formatter"),O=a;vt(N)&&N?O=N.replace("{name}",a??""):bt(N)&&(O=N(a));var k=_?C.getTextColor():i.get("inactiveColor");M.add(new $t({style:xe(C,{text:O,x:E,y:m/2,fill:k,align:R,verticalAlign:"middle"},{inheritColor:k})}));var G=new Wt({shape:M.getBoundingRect(),invisible:!0}),H=i.getModel("tooltip");return H.get("show")&&Wu({el:G,componentModel:o,itemName:a,itemTooltipOption:H.option}),M.add(G),M.eachChild(function(F){F.silent=!0}),G.silent=!v,this.getContentGroup().add(M),Zs(M),M.__legendDataIndex=n,M},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();qs(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),v=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){qs("horizontal",u,t.get("selectorItemGap",!0));var d=u.getBoundingRect(),p=[-d.x,-d.y],y=t.get("selectorButtonGap",!0),m=t.getOrient().index,_=m===0?"width":"height",S=m===0?"height":"width",b=m===0?"y":"x";s==="end"?p[m]+=f[_]+y:v[m]+=d[_]+y,p[1-m]+=f[S]/2-d[S]/2,u.x=p[0],u.y=p[1],l.x=v[0],l.y=v[1];var w={x:0,y:0};return w[_]=f[_]+y+d[_],w[S]=Math.max(f[S],d[S]),w[b]=Math.min(0,d[b]+p[1-m]),w}else return l.x=v[0],l.y=v[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(Ee);function Fat(r,e,t,a,n,i,o){function s(_,S){_.lineWidth==="auto"&&(_.lineWidth=S.lineWidth>0?2:0),rb(_,function(b,w){_[w]==="inherit"&&(_[w]=S[w])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",v=l.getShallow("decal");u.decal=!v||v==="inherit"?a.decal:Ou(v,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:t).opacity),s(u,a);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,t),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),p.stroke==="auto"&&(p.stroke=a.fill),!i){var y=e.get("inactiveBorderWidth"),m=u[f];u.lineWidth=y==="auto"?a.lineWidth>0&&m?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function jat(r){var e=r.icon||"roundRect",t=Ye(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function XI(r,e,t,a){nb(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r??e}),ab(r,e,t,a)}function Kk(r){for(var e=r.getZr().storage.getDisplayList(),t,a=0,n=e.length;a<n&&!(t=e[a].states.emphasis);)a++;return t&&t.hoverLayer}function ab(r,e,t,a){Kk(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:a})}function nb(r,e,t,a){Kk(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:a})}function Yat(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var a=0;a<e.length;a++)if(!e[a].isSelected(t.name))return!1;return!0})}function Df(r,e,t){var a={},n=r==="toggleSelected",i;return t.eachComponent("legend",function(o){n&&i!=null?o[i?"select":"unSelect"](e.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](e.name),i=o.isSelected(e.name));var s=o.getData();P(s,function(l){var u=l.get("name");if(!(u===`
`||u==="")){var f=o.isSelected(u);a.hasOwnProperty(u)?a[u]=a[u]&&f:a[u]=f}})}),r==="allSelect"||r==="inverseSelect"?{selected:a}:{name:e.name,selected:a}}function Xat(r){r.registerAction("legendToggleSelect","legendselectchanged",It(Df,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",It(Df,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",It(Df,"inverseSelect")),r.registerAction("legendSelect","legendselected",It(Df,"select")),r.registerAction("legendUnSelect","legendunselected",It(Df,"unSelect"))}function Qk(r){r.registerComponentModel(eb),r.registerComponentView($k),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,Yat),r.registerSubTypeDefaulter("legend",function(){return"plain"}),Xat(r)}var Zat=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,a,n){var i=Qu(t);r.prototype.init.call(this,t,a,n),ZI(this,t,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),ZI(this,this.option,t)},e.type="legend.scroll",e.defaultOption=zo(eb.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e})(eb);function ZI(r,e,t){var a=r.getOrient(),n=[1,1];n[a.index]=0,Ro(e,t,{type:"box",ignoreSize:!!n})}var WI=Ct,sx=["width","height"],lx=["x","y"],Wat=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new WI),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new WI)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,a,n,i,o,s,l);var f=this._controllerGroup,v=a.get("pageIconSize",!0),d=it(v)?v:[v,v];y("pagePrev",0);var p=a.getModel("pageTextStyle");f.add(new $t({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),y("pageNext",1);function y(m,_){var S=m+"DataIndex",b=Gh(a.get("pageIcons",!0)[a.getOrient().name][_],{onclick:dt(u._pageGo,u,S,a,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});b.name=m,f.add(b)}},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=sx[u],v=lx[u],d=sx[1-u],p=lx[1-u];o&&qs("horizontal",l,t.get("selectorItemGap",!0));var y=t.get("selectorButtonGap",!0),m=l.getBoundingRect(),_=[-m.x,-m.y],S=Dt(n);o&&(S[f]=n[f]-m[f]-y);var b=this._layoutContentAndController(t,i,S,u,f,d,p,v);if(o){if(s==="end")_[u]+=b[f]+y;else{var w=m[f]+y;_[u]-=w,b[v]-=w}b[f]+=m[f]+y,_[1-u]+=b[p]+b[d]/2-m[d]/2,b[d]=Math.max(b[d],m[d]),b[p]=Math.min(b[p],m[p]+_[1-u]),l.x=_[0],l.y=_[1],l.markRedraw()}return b},e.prototype._layoutContentAndController=function(t,a,n,i,o,s,l,u){var f=this.getContentGroup(),v=this._containerGroup,d=this._controllerGroup;qs(t.get("orient"),f,t.get("itemGap"),i?n.width:null,i?null:n.height),qs("horizontal",d,t.get("pageButtonItemGap",!0));var p=f.getBoundingRect(),y=d.getBoundingRect(),m=this._showController=p[o]>n[o],_=[-p.x,-p.y];a||(_[i]=f[u]);var S=[0,0],b=[-y.x,-y.y],w=Ot(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(m){var A=t.get("pageButtonPosition",!0);A==="end"?b[i]+=n[o]-y[o]:S[i]+=y[o]+w}b[1-i]+=p[s]/2-y[s]/2,f.setPosition(_),v.setPosition(S),d.setPosition(b);var M={x:0,y:0};if(M[o]=m?n[o]:p[o],M[s]=Math.max(p[s],y[s]),M[l]=Math.min(0,y[l]+b[1-i]),v.__rectSize=n[o],m){var C={x:0,y:0};C[o]=Math.max(n[o]-y[o]-w,0),C[s]=M[s],v.setClipPath(new Wt({shape:C})),v.__rectSize=C[o]}else d.eachChild(function(E){E.attr({invisible:!0,silent:!0})});var L=this._getPageInfo(t);return L.pageIndex!=null&&Jt(f,{x:L.contentPosition[0],y:L.contentPosition[1]},m?t:null),this._updatePageInfoView(t,L),M},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;P(["pagePrev","pageNext"],function(f){var v=f+"DataIndex",d=a[v]!=null,p=n.childOfName(f);p&&(p.setStyle("fill",d?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),p.cursor=d?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",vt(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=sx[o],l=lx[o],u=this._findTargetItemIndex(a),f=n.children(),v=f[u],d=f.length,p=d?1:0,y={contentPosition:[n.x,n.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!v)return y;var m=A(v);y.contentPosition[o]=-m.s;for(var _=u+1,S=m,b=m,w=null;_<=d;++_)w=A(f[_]),(!w&&b.e>S.s+i||w&&!M(w,S.s))&&(b.i>S.i?S=b:S=w,S&&(y.pageNextDataIndex==null&&(y.pageNextDataIndex=S.i),++y.pageCount)),b=w;for(var _=u-1,S=m,b=m,w=null;_>=-1;--_)w=A(f[_]),(!w||!M(b,w.s))&&S.i<b.i&&(b=S,y.pagePrevDataIndex==null&&(y.pagePrevDataIndex=S.i),++y.pageCount,++y.pageIndex),S=w;return y;function A(C){if(C){var L=C.getBoundingRect(),E=L[l]+C[l];return{s:E,e:E+L[s],i:C.__legendDataIndex}}}function M(C,L){return C.e>=L&&C.s<=L+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(a=s)}),a??i},e.type="legend.scroll",e})($k);function qat(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;a!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}function $at(r){Ht(Qk),r.registerComponentModel(Zat),r.registerComponentView(Wat),qat(r)}function Kat(r){Ht(Qk),Ht($at)}var Qat=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=zo(Lh.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(Lh),fw=Kt();function Jat(r,e,t){fw(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function tnt(r,e){for(var t=fw(r).coordSysRecordMap,a=t.keys(),n=0;n<a.length;n++){var i=a[n],o=t.get(i),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||Jk(t,o))}}}function Jk(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function ent(r,e){var t={model:e,containsPoint:It(ant,e),dispatchAction:It(rnt,r),dataZoomInfoMap:null,controller:null},a=t.controller=new Qh(r.getZr());return P(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];t.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function rnt(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function ant(r,e,t,a){return r.coordinateSystem.containPoint([t,a])}function nnt(r){var e,t="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return r.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;a[t+s]>a[t+e]&&(e=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function int(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var a=fw(t),n=a.coordSysRecordMap||(a.coordSysRecordMap=xt());n.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=Ok(i);P(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,ent(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=xt());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Jk(n,i);return}var f=nnt(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),ec(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var ont=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,a,n){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Jat(n,t,{pan:dt(ux.pan,this),zoom:dt(ux.zoom,this),scrollMove:dt(ux.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){tnt(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(rw),ux={zoom:function(r,e,t,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=cx[e](null,[a.originX,a.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(hl(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:qI(function(r,e,t,a,n,i){var o=cx[a]([i.oldX,i.oldY],[i.newX,i.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:qI(function(r,e,t,a,n,i){var o=cx[a]([0,0],[i.scrollDelta,i.scrollDelta],e,n,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function qI(r){return function(e,t,a,n){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,a,n);if(hl(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var cx={grid:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,a,n){var i=t.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function tB(r){aw(r),r.registerComponentModel(Qat),r.registerComponentView(ont),int(r)}var snt=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=zo(Lh.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e})(Lh),Cf=Wt,$I=7,lnt=1,fx=30,unt=7,Mf="horizontal",KI="vertical",cnt=5,fnt=["line","bar","candlestick","scatter"],hnt={easing:"cubicOut",duration:100,delay:0},vnt=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,a){this.api=a,this._onBrush=dt(this._onBrush,this),this._onBrushEnd=dt(this._onBrushEnd,this)},e.prototype.render=function(t,a,n,i){if(r.prototype.render.apply(this,arguments),ec(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){gh(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new Ct;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(a),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,a=this.api,n=t.get("brushSelect"),i=n?unt:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===Mf?{right:s.width-o.x-o.width,top:s.height-fx-$I-i,width:o.width,height:fx}:{right:$I,top:o.y,width:fx,height:o.height},u=Qu(t.option);P(["right","top","width","height"],function(v){u[v]==="ph"&&(u[v]=l[v])});var f=Qe(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===KI&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===Mf&&!o?{scaleY:l?1:-1,scaleX:1}:n===Mf&&o?{scaleY:l?1:-1,scaleX:-1}:n===KI&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=a.x-u.x,t.y=a.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new Cf({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Cf({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:dt(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var a=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var v=o.getDataExtent(l),d=(v[1]-v[0])*.3;v=[v[0]-d,v[1]+d];var p=[0,a[1]],y=[0,a[0]],m=[[a[0],0],[0,0]],_=[],S=y[1]/(o.count()-1),b=0,w=Math.round(o.count()/a[0]),A;o.each([l],function(R,N){if(w>0&&N%w){b+=S;return}var O=R==null||isNaN(R)||R==="",k=O?0:se(R,v,p,!0);O&&!A&&N?(m.push([m[m.length-1][0],0]),_.push([_[_.length-1][0],0])):!O&&A&&(m.push([b,0]),_.push([b,0])),m.push([b,k]),_.push([b,k]),b+=S,A=O}),u=this._shadowPolygonPts=m,f=this._shadowPolylinePts=_}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var M=this.dataZoomModel;function C(R){var N=M.getModel(R?"selectedDataBackground":"dataBackground"),O=new Ct,k=new Vr({shape:{points:u},segmentIgnoreThreshold:1,style:N.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),G=new Gr({shape:{points:f},segmentIgnoreThreshold:1,style:N.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return O.add(k),O.add(G),O}for(var L=0;L<3;L++){var E=C(L===1);this._displayables.sliderGroup.add(E),this._displayables.dataShadowSegs.push(E)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,a=t.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();P(l,function(u){if(!n&&!(a!==!0&&Vt(fnt,u.get("type"))<0)){var f=i.getComponent(So(o),s).axis,v=dnt(o),d,p=u.coordinateSystem;v!=null&&p.getOtherAxis&&(d=p.getOtherAxis(f).inverse),v=u.getData().mapDimension(v),n={thisAxis:f,series:u,thisDim:o,otherDim:v,otherAxisInverse:d}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,v=l.get("brushSelect"),d=a.filler=new Cf({silent:v,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Cf({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:lnt,fill:"rgba(0,0,0,0)"}})),P([0,1],function(w){var A=l.get("handleIcon");!hg[A]&&A.indexOf("path://")<0&&A.indexOf("image://")<0&&(A="path://"+A);var M=Ye(A,-1,0,2,2,null,!0);M.attr({cursor:QI(this._orient),draggable:!0,drift:dt(this._onDragMove,this,w),ondragend:dt(this._onDragEnd,this),onmouseover:dt(this._showDataInfo,this,!0),onmouseout:dt(this._showDataInfo,this,!1),z2:5});var C=M.getBoundingRect(),L=l.get("handleSize");this._handleHeight=ft(L,this._size[1]),this._handleWidth=C.width/C.height*this._handleHeight,M.setStyle(l.getModel("handleStyle").getItemStyle()),M.style.strokeNoScale=!0,M.rectHover=!0,M.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Zs(M);var E=l.get("handleColor");E!=null&&(M.style.fill=E),o.add(n[w]=M);var R=l.getModel("textStyle");t.add(i[w]=new $t({silent:!0,invisible:!0,style:xe(R,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:R.getTextColor(),font:R.getFont()}),z2:10}))},this);var p=d;if(v){var y=ft(l.get("moveHandleSize"),s[1]),m=a.moveHandle=new Wt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:y}}),_=y*.8,S=a.moveHandleIcon=Ye(l.get("moveHandleIcon"),-_/2,-_/2,_,_,"#fff",!0);S.silent=!0,S.y=s[1]+y/2-.5,m.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(y,10));p=a.moveZone=new Wt({invisible:!0,shape:{y:s[1]-b,height:y+b}}),p.on("mouseover",function(){u.enterEmphasis(m)}).on("mouseout",function(){u.leaveEmphasis(m)}),o.add(m),o.add(S),o.add(p)}p.attr({draggable:!0,cursor:QI(this._orient),drift:dt(this._onDragMove,this,"all"),ondragstart:dt(this._showDataInfo,this,!0),ondragend:dt(this._onDragEnd,this),onmouseover:dt(this._showDataInfo,this,!0),onmouseout:dt(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[se(t[0],[0,100],a,!0),se(t[1],[0,100],a,!0)]},e.prototype._updateInterval=function(t,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];hl(a,i,o,n.get("zoomLock")?"all":t,s.minSpan!=null?se(s.minSpan,l,o,!0):null,s.maxSpan!=null?se(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Ga([se(i[0],o,l,!0),se(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var a=this._displayables,n=this._handleEnds,i=Ga(n.slice()),o=this._size;P([0,1],function(p){var y=a.handles[p],m=this._handleHeight;y.attr({scaleX:m/2,scaleY:m/2,x:n[p]+(p?-1:1),y:o[1]/2-m/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;f<l.length;f++){var v=l[f],d=v.getClipPath();d||(d=new Wt,v.setClipPath(d)),d.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var a=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,v=t?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(v[0],u),this._formatLabel(v[1],u)]}}var d=Ga(this._handleEnds.slice());p.call(this,0),p.call(this,1);function p(y){var m=Ws(n.handles[y].parent,this.group),_=ny(y===0?"right":"left",m),S=this._handleWidth/2+cnt,b=sn([d[y]+(y===0?-S:S),this._size[1]/2],m);i[y].setStyle({x:b[0],y:b[1],verticalAlign:o===Mf?"middle":_,align:o===Mf?_:"center",text:s[y]})}},e.prototype._formatLabel=function(t,a){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=a.getPixelPrecision());var s=t==null||isNaN(t)?"":a.type==="category"||a.type==="time"?a.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return bt(i)?i(t,s):vt(i)?i.replace("{value}",s):s},e.prototype._showDataInfo=function(t){t=this._dragging||t;var a=this._displayables,n=a.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),a.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](a.moveHandle,1)},e.prototype._onDragMove=function(t,a,n,i){this._dragging=!0,yi(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=sn([a,n],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var a=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>a[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var a=t.offsetX,n=t.offsetY;this._brushStart=new Pt(a,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Ga([se(n.x,o,s,!0),se(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(yi(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new Cf({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,a),f=l.transformCoordToLocal(s.x,s.y),v=this._size;u[0]=Math.max(Math.min(v[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:v[1]})},e.prototype._dispatchZoomAction=function(t){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?hnt:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=Ok(this.dataZoomModel).infoList;if(!t&&a.length){var n=a[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e})(rw);function dnt(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function QI(r){return r==="vertical"?"ns-resize":"ew-resize"}function eB(r){r.registerComponentModel(snt),r.registerComponentView(vnt),aw(r)}function pnt(r){Ht(tB),Ht(eB)}var rB={get:function(r,e,t){var a=Dt((gnt[r]||{})[e]);return t&&it(a)?a[a.length-1]:a}},gnt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},JI=ar.mapVisual,ynt=ar.eachVisual,mnt=it,tN=P,_nt=Ga,xnt=se,zg=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&Yk(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=dt(t,this),this.controllerVisuals=QS(this.option.controller,a,t),this.targetVisuals=QS(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,a=[];return t==null||t==="all"?this.ecModel.eachSeries(function(n,i){a.push(i)}):a=he(t),a},e.prototype.eachTargetSeries=function(t,a){P(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(a,i)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(n){n===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],it(t)&&(t=t.slice(),u=!0);var f=a?t:u?[v(t[0]),v(t[1])]:v(t);if(vt(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(bt(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?n[0]+" "+f[1]:t[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function v(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=_nt([t.min,t.max]);this._dataExtent=a},e.prototype.getDataDimensionIndex=function(t){var a=this.option.dimension;if(a!=null)return t.getDimensionIndex(a);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});zt(i,n),zt(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(v){mnt(a.color)&&!v.inRange&&(v.inRange={color:a.color.slice().reverse()}),v.inRange=v.inRange||{color:t.get("gradientColor")}}function u(v,d,p){var y=v[d],m=v[p];y&&!m&&(m=v[p]={},tN(y,function(_,S){if(ar.isValidType(S)){var b=rB.get(S,"inactive",s);b!=null&&(m[S]=b,S==="color"&&!m.hasOwnProperty("opacity")&&!m.hasOwnProperty("colorAlpha")&&(m.opacity=[0,0]))}}))}function f(v){var d=(v.inRange||{}).symbol||(v.outOfRange||{}).symbol,p=(v.inRange||{}).symbolSize||(v.outOfRange||{}).symbolSize,y=this.get("inactiveColor"),m=this.getItemSymbol(),_=m||"roundRect";tN(this.stateList,function(S){var b=this.itemSize,w=v[S];w||(w=v[S]={color:s?y:[y]}),w.symbol==null&&(w.symbol=d&&Dt(d)||(s?_:[_])),w.symbolSize==null&&(w.symbolSize=p&&Dt(p)||(s?b[0]:[b[0],b[0]])),w.symbol=JI(w.symbol,function(C){return C==="none"?_:C});var A=w.symbolSize;if(A!=null){var M=-1/0;ynt(A,function(C){C>M&&(M=C)}),w.symbolSize=JI(A,function(C){return xnt(C,[0,M],[0,b[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e})(jt),eN=[20,140],Snt=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=eN[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=eN[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):it(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],t[0]),a[1]=Math.min(a[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),P(this.stateList,function(t){var a=this.option.controller[t].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),a=Ga((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]<t[0]&&(a[0]=t[0]),a[1]<t[0]&&(a[1]=t[0]),a},e.prototype.getValueState=function(t){var a=this.option.range,n=this.getExtent();return(a[0]<=n[0]||a[0]<=t)&&(a[1]>=n[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},e.prototype.getVisualMeta=function(t){var a=rN(this,"outOfRange",this.getExtent()),n=rN(this,"inRange",this.option.range.slice()),i=[];function o(p,y){i.push({value:p,color:t(p,y)})}for(var s=0,l=0,u=n.length,f=a.length;l<f&&(!n.length||a[l]<=n[0]);l++)a[l]<n[s]&&o(a[l],"outOfRange");for(var v=1;s<u;s++,v=0)v&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var v=1;l<f;l++)(!n.length||n[n.length-1]<a[l])&&(v&&(i.length&&o(i[i.length-1].value,"outOfRange"),v=0),o(a[l],"outOfRange"));var d=i.length;return{stops:i,outerColors:[d?i[0].color:"transparent",d?i[d-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=zo(zg.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e})(zg);function rN(r,e,t){if(t[0]===t[1])return t.slice();for(var a=200,n=(t[1]-t[0])/a,i=t[0],o=[],s=0;s<=a&&i<t[1];s++)o.push(i),i+=n;return o.push(t[1]),o}var aB=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a},e.prototype.render=function(t,a,n,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,a,n,i)},e.prototype.renderBackground=function(t){var a=this.visualMapModel,n=Ku(a.get("padding")||0),i=t.getBoundingRect();t.add(new Wt({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,a,n){n=n||{};var i=n.forceState,o=this.visualMapModel,s={};if(a==="color"){var l=o.get("contentColor");s.color=l}function u(p){return s[p]}function f(p,y){s[p]=y}var v=o.controllerVisuals[i||o.getValueState(t)],d=ar.prepareVisualTypes(v);return P(d,function(p){var y=v[p];n.convertOpacityToAlpha&&p==="opacity"&&(p="colorAlpha",y=v.__alphaForOpacity),ar.dependsOn(p,a)&&y&&y.applyVisual(t,u,f)}),s[a]},e.prototype.positionGroup=function(t){var a=this.visualMapModel,n=this.api;fy(t,a.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,a,n,i){},e.type="visualMap",e})(Ee),aN=[["left","right","width"],["top","bottom","height"]];function nB(r,e,t){var a=r.option,n=a.align;if(n!=null&&n!=="auto")return n;for(var i={width:e.getWidth(),height:e.getHeight()},o=a.orient==="horizontal"?1:0,s=aN[o],l=[0,null,10],u={},f=0;f<3;f++)u[aN[1-o][f]]=l[f],u[s[f]]=f===2?t[0]:a[s[f]];var v=[["x","width",3],["y","height",0]][o],d=Qe(u,i,a.padding);return s[(d.margin[v[2]]||0)+d[v[0]]+d[v[1]]*.5<i[v[1]]*.5?0:1]}function Fp(r,e){return P(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var wn=se,bnt=P,nN=Math.min,hx=Math.max,wnt=12,Tnt=6,Ant=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.doRender=function(t,a,n,i){this._api=n,(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,a=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(a);var n=t.get("text");this._renderEndsText(a,n,0),this._renderEndsText(a,n,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},e.prototype._renderEndsText=function(t,a,n){if(a){var i=a[1-n];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),v=this._applyTransform(n===0?"bottom":"top",u),d=this._orient,p=this.visualMapModel.textStyleModel;this.group.add(new $t({style:xe(p,{x:f[0],y:f[1],verticalAlign:d==="horizontal"?"middle":v,align:d==="horizontal"?v:"center",text:i})}))}},e.prototype._renderBar=function(t){var a=this.visualMapModel,n=this._shapes,i=a.itemSize,o=this._orient,s=this._useHandle,l=nB(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),f=new Ct;u.add(f),f.add(n.outOfRange=iN()),f.add(n.inRange=iN(null,s?sN(this._orient):null,dt(this._dragHandle,this,"all",!1),dt(this._dragHandle,this,"all",!0))),f.setClipPath(new Wt({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var v=a.textStyleModel.getTextRect("国"),d=hx(v.width,v.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(a,u,0,i,d,o),this._createHandle(a,u,1,i,d,o)),this._createIndicator(a,u,i,d,o),t.add(u)},e.prototype._createHandle=function(t,a,n,i,o,s){var l=dt(this._dragHandle,this,n,!1),u=dt(this._dragHandle,this,n,!0),f=ln(t.get("handleSize"),i[0]),v=Ye(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),d=sN(this._orient);v.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(S){yi(S.event)}}),v.x=i[0]/2,v.useStyle(t.getModel("handleStyle").getItemStyle()),v.setStyle({strokeNoScale:!0,strokeFirst:!0}),v.style.lineWidth*=2,v.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),ks(v,!0),a.add(v);var p=this.visualMapModel.textStyleModel,y=new $t({cursor:d,draggable:!0,drift:l,onmousemove:function(S){yi(S.event)},ondragend:u,style:xe(p,{x:0,y:0,text:""})});y.ensureState("blur").style={opacity:.1},y.stateTransition={duration:200},this.group.add(y);var m=[f,0],_=this._shapes;_.handleThumbs[n]=v,_.handleLabelPoints[n]=m,_.handleLabels[n]=y},e.prototype._createIndicator=function(t,a,n,i,o){var s=ln(t.get("indicatorSize"),n[0]),l=Ye(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof hr){var f=l.style;l.useStyle(et({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);a.add(l);var v=this.visualMapModel.textStyleModel,d=new $t({silent:!0,invisible:!0,style:xe(v,{x:0,y:0,text:""})});this.group.add(d);var p=[(o==="horizontal"?i/2:Tnt)+n[0]/2,0],y=this._shapes;y.indicator=l,y.indicatorLabel=d,y.indicatorLabelPoint=p,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,a,n,i){if(this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():oN(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,a=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[wn(a[0],n,i,!0),wn(a[1],n,i,!0)]},e.prototype._updateInterval=function(t,a){a=a||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];hl(a,i,o,t,0);var s=n.getExtent();this._dataInterval=[wn(i[0],o,s,!0),wn(i[1],o,s,!0)]},e.prototype._updateView=function(t){var a=this.visualMapModel,n=a.getExtent(),i=this._shapes,o=[0,a.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,a,n,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new Bh(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,a){var n=100,i=[],o=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",a),offset:0});for(var s=1;s<n;s++){var l=t[0]+o*s;if(l>t[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),i},e.prototype._createBarPoints=function(t,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,n=this.visualMapModel.get("inverse");return new Ct(a==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent();bnt([0,1],function(f){var v=o[f];v.setStyle("fill",a.handlesColor[f]),v.y=t[f];var d=wn(t[f],[0,l[1]],u,!0),p=this.getControllerVisual(d,"symbolSize");v.scaleX=v.scaleY=p/l[0],v.x=l[0]-p/2;var y=sn(n.handleLabelPoints[f],Ws(v,this.group));s[f].setStyle({x:y[0],y:y[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,v=f.indicator;if(v){v.attr("invisible",!1);var d={convertOpacityToAlpha:!0},p=this.getControllerVisual(t,"color",d),y=this.getControllerVisual(t,"symbolSize"),m=wn(t,s,u,!0),_=l[0]-y/2,S={x:v.x,y:v.y};v.y=m,v.x=_;var b=sn(f.indicatorLabelPoint,Ws(v,this.group)),w=f.indicatorLabel;w.attr("invisible",!1);var A=this._applyTransform("left",f.mainGroup),M=this._orient,C=M==="horizontal";w.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:C?A:"middle",align:C?"center":A});var L={x:_,y:m,style:{fill:p}},E={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var R={duration:100,easing:"cubicInOut",additive:!0};v.x=S.x,v.y=S.y,v.animateTo(L,R),w.animateTo(E,R)}else v.attr(L),w.attr(E);this._firstShowIndicator=!1;var N=this._shapes.handleLabels;if(N)for(var O=0;O<N.length;O++)this._api.enterBlur(N[O])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(a){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([a.offsetX,a.offsetY],t._shapes.mainGroup,!0,!0);i[1]=nN(hx(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,a){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],s=n.getExtent();t=nN(hx(o[0],t),o[1]);var l=Dnt(n,s,o),u=[t-l,t+l],f=wn(t,o,s,!0),v=[wn(u[0],o,s,!0),wn(u[1],o,s,!0)];u[0]<o[0]&&(v[0]=-1/0),u[1]>o[1]&&(v[1]=1/0),a&&(v[0]===-1/0?this._showIndicator(f,v[1],"< ",l):v[1]===1/0?this._showIndicator(f,v[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var d=this._hoverLinkDataIndices,p=[];(a||oN(n))&&(p=this._hoverLinkDataIndices=n.findTargetDataIndices(v));var y=N8(d,p);this._dispatchHighDown("downplay",Fp(y[0],n)),this._dispatchHighDown("highlight",Fp(y[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a;if(Vs(t.target,function(l){var u=Rt(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n<a.length;n++)this._api.leaveBlur(a[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Fp(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,a,n,i){var o=Ws(a,i?null:this.group);return it(t)?sn(t,o,n):ny(t,o,n)},e.prototype._dispatchHighDown=function(t,a){a&&a.length&&this.api.dispatchAction({type:t,batch:a})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e})(aB);function iN(r,e,t,a){return new Vr({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(n){yi(n.event)},ondragend:a})}function Dnt(r,e,t){var a=wnt/2,n=r.get("hoverLinkDataSize");return n&&(a=wn(n,e,t,!0)/2),a}function oN(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function sN(r){return r==="vertical"?"ns-resize":"ew-resize"}var Cnt={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Mnt=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},Lnt=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||t.push(Krt(a.stateList,a.targetVisuals,dt(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),a=[];e.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var i=n.getVisualMeta(dt(Ent,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(t);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function Ent(r,e,t,a){for(var n=e.targetVisuals[a],i=ar.prepareVisualTypes(n),o={color:Fh(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=n[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(t,v,d)}return o.color;function v(p){return o[p]}function d(p,y){o[p]=y}}var lN=P;function Rnt(r){var e=r&&r.visualMap;it(e)||(e=e?[e]:[]),lN(e,function(t){if(t){pu(t,"splitList")&&!pu(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var a=t.pieces;a&&it(a)&&lN(a,function(n){Tt(n)&&(pu(n,"start")&&!pu(n,"min")&&(n.min=n.start),pu(n,"end")&&!pu(n,"max")&&(n.max=n.end))})}})}function pu(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var uN=!1;function iB(r){uN||(uN=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(Cnt,Mnt),P(Lnt,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(Rnt))}function oB(r){r.registerComponentModel(Snt),r.registerComponentView(Ant),iB(r)}var Int=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],Nnt[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=Dt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=st(this._pieceList,function(l){return l=Dt(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},n=ar.listVisualTypes(),i=this.isCategory();P(t.pieces,function(s){P(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),P(a,function(s,l){var u=!1;P(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&P(this.stateList,function(f){(t[f]||(t[f]={}))[l]=rB.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var n=this.option,i=this._pieceList,o=(a?n:t).selected||{};if(n.selected=o,P(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;P(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Dt(t)},e.prototype.getValueState=function(t){var a=ar.findPieceIndex(t,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=ar.findPieceIndex(l,n);f===t&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(t.value!=null)a=t.value;else{var n=t.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,v){var d=i.getRepresentValue({interval:f});v||(v=i.getValueState(d));var p=t(d,v);f[0]===-1/0?n[0]=p:f[1]===1/0?n[1]=p:a.push({value:f[0],color:p},{value:f[1],color:p})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return P(s,function(f){var v=f.interval;v&&(v[0]>u&&o([u,v[0]],"outOfRange"),o(v.slice()),u=v[1])},this),{stops:a,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=zo(zg.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e})(zg),Nnt={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<n;s+=i,o++){var l=o===n-1?a[1]:s+i;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),aM(r),P(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;P(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),cN(e,r)},pieces:function(r){var e=this.option;P(e.pieces,function(t,a){Tt(t)||(t={value:t});var n={text:"",index:a};if(t.label!=null&&(n.text=t.label),t.hasOwnProperty("value")){var i=n.value=t.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],v=0;v<2;v++){for(var d=[["gte","gt","min"],["lte","lt","max"]][v],p=0;p<3&&o[v]==null;p++)o[v]=t[d[p]],s[v]=l[p],f[v]=p===2;o[v]==null&&(o[v]=u[v])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=ar.retrieveVisuals(t),r.push(n)},this),cN(e,r),aM(r),P(r,function(t){var a=t.close,n=[["<","≤"][a[1]],[">","≥"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};function cN(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var Pnt=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=a.itemSize,f=this._getViewData(),v=f.endsText,d=fr(a.get("showLabel",!0),!v);v&&this._renderEndsText(t,v[0],u,d,l),P(f.viewPieceList,function(p){var y=p.piece,m=new Ct;m.onclick=dt(this._onItemClick,this,y),this._enableHoverLink(m,p.indexInModelPieceList);var _=a.getRepresentValue(y);if(this._createItemSymbol(m,_,[0,0,u[0],u[1]]),d){var S=this.visualMapModel.getValueState(_);m.add(new $t({style:{x:l==="right"?-n:u[0]+n,y:u[1]/2,text:y.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:S==="outOfRange"?.5:1}}))}t.add(m)},this),v&&this._renderEndsText(t,v[1],u,d,l),qs(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:Fp(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return nB(t,this.api,t.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},e.prototype._renderEndsText=function(t,a,n,i,o){if(a){var s=new Ct,l=this.visualMapModel.textStyleModel;s.add(new $t({style:xe(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=st(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},e.prototype._createItemSymbol=function(t,a,n){t.add(Ye(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color")))},e.prototype._onItemClick=function(t){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=Dt(n.selected),s=a.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,P(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e})(aB);function sB(r){r.registerComponentModel(Int),r.registerComponentView(Pnt),iB(r)}function Ont(r){Ht(oB),Ht(sB)}var znt={label:{enabled:!0},decal:{show:!1}},fN=Kt(),knt={};function Bnt(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var a=Dt(znt);zt(a.label,r.getLocaleModel().get("aria"),!1),zt(t.option,a,!1),n(),i();function n(){var u=t.getModel("decal"),f=u.get("show");if(f){var v=xt();r.eachSeries(function(d){if(!d.isColorBySeries()){var p=v.get(d.type);p||(p={},v.set(d.type,p)),fN(d).scope=p}}),r.eachRawSeries(function(d){if(r.isSeriesFiltered(d))return;if(bt(d.enableAriaDecal)){d.enableAriaDecal();return}var p=d.getData();if(d.isColorBySeries()){var b=nS(d.ecModel,d.name,knt,r.getSeriesCount()),w=p.getVisual("decal");p.setVisual("decal",A(w,b))}else{var y=d.getRawData(),m={},_=fN(d).scope;p.each(function(M){var C=p.getRawIndex(M);m[C]=M});var S=y.count();y.each(function(M){var C=m[M],L=y.getName(M)||M+"",E=nS(d.ecModel,L,_,S),R=p.getItemVisual(C,"decal");p.setItemVisual(C,"decal",A(R,E))})}function A(M,C){var L=M?et(et({},C),M):C;return L.dirty=!0,L}})}}function i(){var u=r.getLocaleModel().get("aria"),f=t.getModel("label");if(f.option=wt(f.option,u),!!f.get("enabled")){var v=e.getZr().dom;if(f.get("description")){v.setAttribute("aria-label",f.get("description"));return}var d=r.getSeriesCount(),p=f.get(["data","maxCount"])||10,y=f.get(["series","maxCount"])||10,m=Math.min(d,y),_;if(!(d<1)){var S=s();if(S){var b=f.get(["general","withTitle"]);_=o(b,{title:S})}else _=f.get(["general","withoutTitle"]);var w=[],A=d>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);_+=o(A,{seriesCount:d}),r.eachSeries(function(E,R){if(R<m){var N=void 0,O=E.get("name"),k=O?"withName":"withoutName";N=d>1?f.get(["series","multiple",k]):f.get(["series","single",k]),N=o(N,{seriesId:E.seriesIndex,seriesName:E.get("name"),seriesType:l(E.subType)});var G=E.getData();if(G.count()>p){var H=f.get(["data","partialData"]);N+=o(H,{displayCnt:p})}else N+=f.get(["data","allData"]);for(var F=f.get(["data","separator","middle"]),B=f.get(["data","separator","end"]),j=[],Y=0;Y<G.count();Y++)if(Y<p){var K=G.getName(Y),nt=G.getValues(Y),U=f.get(["data",K?"withName":"withoutName"]);j.push(o(U,{name:K,value:nt.join(F)}))}N+=j.join(F)+B,w.push(N)}});var M=f.getModel(["series","multiple","separator"]),C=M.get("middle"),L=M.get("end");_+=w.join(C)+L,v.setAttribute("aria-label",_)}}}function o(u,f){if(!vt(u))return u;var v=u;return P(f,function(d,p){v=v.replace(new RegExp("\\{\\s*"+p+"\\s*\\}","g"),d)}),v}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return r.getLocaleModel().get(["series","typeNames"])[u]||"自定义图"}}function Vnt(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},P(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function Gnt(r){r.registerPreprocessor(Vnt),r.registerVisual(r.PRIORITY.VISUAL.ARIA,Bnt)}var hN={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Hnt=(function(){function r(e){var t=this._condVal=vt(e)?new RegExp(e):eG(e)?e:null;if(t==null){var a="";ne(a)}}return r.prototype.evaluate=function(e){var t=typeof e;return vt(t)?this._condVal.test(e):Qt(t)?this._condVal.test(e+""):!1},r})(),Unt=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),Fnt=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r})(),jnt=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r})(),Ynt=(function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r})(),Xnt=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,a=t(this.valueGetterParam),n=e?this.valueParser(a):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?n:a))return!1;return!0},r})();function hw(r,e){if(r===!0||r===!1){var t=new Unt;return t.value=r,t}var a="";return lB(r)||ne(a),r.and?vN("and",r,e):r.or?vN("or",r,e):r.not?Znt(r,e):Wnt(r,e)}function vN(r,e,t){var a=e[r],n="";it(a)||ne(n),a.length||ne(n);var i=r==="and"?new Fnt:new jnt;return i.children=st(a,function(o){return hw(o,t)}),i.children.length||ne(n),i}function Znt(r,e){var t=r.not,a="";lB(t)||ne(a);var n=new Ynt;return n.child=hw(t,e),n.child||ne(a),n}function Wnt(r,e){for(var t="",a=e.prepareGetValue(r),n=[],i=Yt(r),o=r.parser,s=o?XP(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var f=pt(hN,u)?hN[u]:u,v=r[u],d=s?s(v):v,p=zU(f,d)||f==="reg"&&new Hnt(d);p||ne(t),n.push(p)}}n.length||ne(t);var y=new Xnt;return y.valueGetterParam=a,y.valueParser=s,y.getValue=e.getValue,y.subCondList=n,y}function lB(r){return Tt(r)&&!Dr(r)}var qnt=(function(){function r(e,t){this._cond=hw(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r})();function $nt(r,e){return new qnt(r,e)}var Knt={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,a=$nt(r.config,{valueGetterAttrMap:xt({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;pt(s,"dimension")||ne(l);var f=e.getDimensionInfo(u);return f||ne(l),{dimIdx:f.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),n=[],i=0,o=e.count();i<o;i++)t=e.getRawDataItem(i),a.evaluate()&&n.push(t);return{data:n}}},Qnt={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,a="",n=he(t);n.length||ne(a);var i=[];P(n,function(f){var v=f.dimension,d=f.order,p=f.parser,y=f.incomparable;if(v==null&&ne(a),d!=="asc"&&d!=="desc"&&ne(a),y&&y!=="min"&&y!=="max"){var m="";ne(m)}if(d!=="asc"&&d!=="desc"){var _="";ne(_)}var S=e.getDimensionInfo(v);S||ne(a);var b=p?XP(p):null;p&&!b&&ne(a),i.push({dimIdx:S.index,parser:b,comparator:new WP(d,y)})});var o=e.sourceFormat;o!==Cr&&o!==Xa&&ne(a);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(f,v){for(var d=0;d<i.length;d++){var p=i[d],y=e.retrieveValueFromItem(f,p.dimIdx),m=e.retrieveValueFromItem(v,p.dimIdx);p.parser&&(y=p.parser(y),m=p.parser(m));var _=p.comparator.evaluate(y,m);if(_!==0)return _}return 0}),{data:s}}};function Jnt(r){r.registerTransform(Knt),r.registerTransform(Qnt)}var tit=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,a,n){r.prototype.init.call(this,t,a,n),this._sourceManager=new QP(this),yL(this)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),yL(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:In},e})(jt),eit=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e})(Ee);function rit(r){r.registerComponentModel(tit),r.registerComponentView(eit)}var Sn=kn.CMD;function Du(r,e){return Math.abs(r-e)<1e-5}function ib(r){var e=r.data,t=r.len(),a=[],n,i=0,o=0,s=0,l=0;function u(G,H){n&&n.length>2&&a.push(n),n=[G,H]}function f(G,H,F,B){Du(G,F)&&Du(H,B)||n.push(G,H,F,B,F,B)}function v(G,H,F,B,j,Y){var K=Math.abs(H-G),nt=Math.tan(K/4)*4/3,U=H<G?-1:1,W=Math.cos(G),rt=Math.sin(G),ot=Math.cos(H),ht=Math.sin(H),gt=W*j+F,mt=rt*Y+B,yt=ot*j+F,St=ht*Y+B,Lt=j*nt*U,_t=Y*nt*U;n.push(gt-Lt*rt,mt+_t*W,yt+Lt*ht,St-_t*ot,yt,St)}for(var d,p,y,m,_=0;_<t;){var S=e[_++],b=_===1;switch(b&&(i=e[_],o=e[_+1],s=i,l=o,(S===Sn.L||S===Sn.C||S===Sn.Q)&&(n=[s,l])),S){case Sn.M:i=s=e[_++],o=l=e[_++],u(s,l);break;case Sn.L:d=e[_++],p=e[_++],f(i,o,d,p),i=d,o=p;break;case Sn.C:n.push(e[_++],e[_++],e[_++],e[_++],i=e[_++],o=e[_++]);break;case Sn.Q:d=e[_++],p=e[_++],y=e[_++],m=e[_++],n.push(i+2/3*(d-i),o+2/3*(p-o),y+2/3*(d-y),m+2/3*(p-m),y,m),i=y,o=m;break;case Sn.A:var w=e[_++],A=e[_++],M=e[_++],C=e[_++],L=e[_++],E=e[_++]+L;_+=1;var R=!e[_++];d=Math.cos(L)*M+w,p=Math.sin(L)*C+A,b?(s=d,l=p,u(s,l)):f(i,o,d,p),i=Math.cos(E)*M+w,o=Math.sin(E)*C+A;for(var N=(R?-1:1)*Math.PI/2,O=L;R?O>E:O<E;O+=N){var k=R?Math.max(O+N,E):Math.min(O+N,E);v(O,k,w,A,M,C)}break;case Sn.R:s=i=e[_++],l=o=e[_++],d=s+e[_++],p=l+e[_++],u(d,l),f(d,l,d,p),f(d,p,s,p),f(s,p,s,l),f(s,l,d,l);break;case Sn.Z:n&&f(i,o,s,l),i=s,o=l;break}}return n&&n.length>2&&a.push(n),a}function ob(r,e,t,a,n,i,o,s,l,u){if(Du(r,t)&&Du(e,a)&&Du(n,o)&&Du(i,s)){l.push(o,s);return}var f=2/u,v=f*f,d=o-r,p=s-e,y=Math.sqrt(d*d+p*p);d/=y,p/=y;var m=t-r,_=a-e,S=n-o,b=i-s,w=m*m+_*_,A=S*S+b*b;if(w<v&&A<v){l.push(o,s);return}var M=d*m+p*_,C=-d*S-p*b,L=w-M*M,E=A-C*C;if(L<v&&M>=0&&E<v&&C>=0){l.push(o,s);return}var R=[],N=[];Lo(r,t,n,o,.5,R),Lo(e,a,i,s,.5,N),ob(R[0],N[0],R[1],N[1],R[2],N[2],R[3],N[3],l,u),ob(R[4],N[4],R[5],N[5],R[6],N[6],R[7],N[7],l,u)}function ait(r,e){var t=ib(r),a=[];e=e||1;for(var n=0;n<t.length;n++){var i=t[n],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],v=i[u++],d=i[u++],p=i[u++],y=i[u++],m=i[u++];ob(s,l,f,v,d,p,y,m,o,e),s=y,l=m}a.push(o)}return a}function uB(r,e,t){var a=r[e],n=r[1-e],i=Math.abs(a/n),o=Math.ceil(Math.sqrt(i*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,v=t-f;if(v>0)for(var u=0;u<v;u++)l[u%o]+=1;return l}function dN(r,e,t){for(var a=r.r0,n=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*n,u=n-a,f=l>Math.abs(u),v=uB([l,u],f?0:1,e),d=(f?s:u)/v.length,p=0;p<v.length;p++)for(var y=(f?u:s)/v[p],m=0;m<v[p];m++){var _={};f?(_.startAngle=i+d*p,_.endAngle=i+d*(p+1),_.r0=a+y*m,_.r=a+y*(m+1)):(_.startAngle=i+y*m,_.endAngle=i+y*(m+1),_.r0=a+d*p,_.r=a+d*(p+1)),_.clockwise=r.clockwise,_.cx=r.cx,_.cy=r.cy,t.push(_)}}function nit(r,e,t){for(var a=r.width,n=r.height,i=a>n,o=uB([a,n],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",v=r[s]/o.length,d=0;d<o.length;d++)for(var p=r[l]/o[d],y=0;y<o[d];y++){var m={};m[u]=d*v,m[f]=y*p,m[s]=v,m[l]=p,m.x+=r.x,m.y+=r.y,t.push(m)}}function pN(r,e,t,a){return r*a-t*e}function iit(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,f=o-n,v=s-i,d=pN(f,v,l,u);if(Math.abs(d)<1e-6)return null;var p=r-n,y=e-i,m=pN(p,y,f,v)/d;return m<0||m>1?null:new Pt(m*l+r,m*u+e)}function oit(r,e,t){var a=new Pt;Pt.sub(a,t,e),a.normalize();var n=new Pt;Pt.sub(n,r,e);var i=n.dot(a);return i}function gu(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function sit(r,e,t){for(var a=r.length,n=[],i=0;i<a;i++){var o=r[i],s=r[(i+1)%a],l=iit(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&n.push({projPt:oit(l,e,t),pt:l,idx:i})}if(n.length<2)return[{points:r},{points:r}];n.sort(function(_,S){return _.projPt-S.projPt});var u=n[0],f=n[n.length-1];if(f.idx<u.idx){var v=u;u=f,f=v}for(var d=[u.pt.x,u.pt.y],p=[f.pt.x,f.pt.y],y=[d],m=[p],i=u.idx+1;i<=f.idx;i++)gu(y,r[i].slice());gu(y,p),gu(y,d);for(var i=f.idx+1;i<=u.idx+a;i++)gu(m,r[i%a].slice());return gu(m,d),gu(m,p),[{points:y},{points:m}]}function gN(r){var e=r.points,t=[],a=[];Qg(e,t,a);var n=new kt(t[0],t[1],a[0]-t[0],a[1]-t[1]),i=n.width,o=n.height,s=n.x,l=n.y,u=new Pt,f=new Pt;return i>o?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),sit(e,u,f)}function kg(r,e,t,a){if(t===1)a.push(e);else{var n=Math.floor(t/2),i=r(e);kg(r,i[0],n,a),kg(r,i[1],t-n,a)}return a}function lit(r,e){for(var t=[],a=0;a<e;a++)t.push(Nb(r));return t}function uit(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function cit(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function fit(r,e){var t=[],a=r.shape,n;switch(r.type){case"rect":nit(a,e,t),n=Wt;break;case"sector":dN(a,e,t),n=Br;break;case"circle":dN({r0:0,r:a.r,startAngle:0,endAngle:Math.PI*2,cx:a.cx,cy:a.cy},e,t),n=Br;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=st(ait(r.getUpdatedPathProxy(),o),function(S){return cit(S)}),l=s.length;if(l===0)kg(gN,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var f=0,v=st(s,function(S){var b=[],w=[];Qg(S,b,w);var A=(w[1]-b[1])*(w[0]-b[0]);return f+=A,{poly:S,area:A}});v.sort(function(S,b){return b.area-S.area});for(var d=e,u=0;u<l;u++){var p=v[u];if(d<=0)break;var y=u===l-1?d:Math.ceil(p.area/f*e);y<0||(kg(gN,{points:p.poly},y,t),d-=y)}}n=Vr;break}if(!n)return lit(r,e);for(var m=[],u=0;u<t.length;u++){var _=new n;_.setShape(t[u]),uit(r,_),m.push(_)}return m}function hit(r,e){var t=r.length,a=e.length;if(t===a)return[r,e];for(var n=[],i=[],o=t<a?r:e,s=Math.min(t,a),l=Math.abs(a-t)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,v=[o[0],o[1]],d=l,p=2;p<s;){var y=o[p-2],m=o[p-1],_=o[p++],S=o[p++],b=o[p++],w=o[p++],A=o[p++],M=o[p++];if(d<=0){v.push(_,S,b,w,A,M);continue}for(var C=Math.min(d,f-1)+1,L=1;L<=C;L++){var E=L/C;Lo(y,_,b,A,E,n),Lo(m,S,w,M,E,i),y=n[3],m=i[3],v.push(n[1],i[1],n[2],i[2],y,m),_=n[5],S=i[5],b=n[6],w=i[6]}d-=C-1}return o===r?[v,e]:[r,v]}function yN(r,e){for(var t=r.length,a=r[t-2],n=r[t-1],i=[],o=0;o<e.length;)i[o++]=a,i[o++]=n;return i}function vit(r,e){for(var t,a,n,i=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],f=void 0,v=void 0;l?u?(t=hit(l,u),f=t[0],v=t[1],a=f,n=v):(v=yN(n||l,l),f=l):(f=yN(a||u,u),v=u),i.push(f),o.push(v)}return[i,o]}function mN(r){for(var e=0,t=0,a=0,n=r.length,i=0,o=n-2;i<n;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],f=r[i+1],v=s*f-u*l;e+=v,t+=(s+u)*v,a+=(l+f)*v}return e===0?[r[0]||0,r[1]||0]:[t/e/3,a/e/3,e]}function dit(r,e,t,a){for(var n=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<n;u++){for(var f=u*6,v=0,d=0;d<s;d+=2){var p=d===0?f:(f+d-2)%l+2,y=r[p]-t[0],m=r[p+1]-t[1],_=e[d]-a[0],S=e[d+1]-a[1],b=_-y,w=S-m;v+=b*b+w*w}v<i&&(i=v,o=u)}return o}function pit(r){for(var e=[],t=r.length,a=0;a<t;a+=2)e[a]=r[t-a-2],e[a+1]=r[t-a-1];return e}function git(r,e,t,a){for(var n=[],i,o=0;o<r.length;o++){var s=r[o],l=e[o],u=mN(s),f=mN(l);i==null&&(i=u[2]<0!=f[2]<0);var v=[],d=[],p=0,y=1/0,m=[],_=s.length;i&&(s=pit(s));for(var S=dit(s,l,u,f)*6,b=_-2,w=0;w<b;w+=2){var A=(S+w)%b+2;v[w+2]=s[A]-u[0],v[w+3]=s[A+1]-u[1]}v[0]=s[S]-u[0],v[1]=s[S+1]-u[1];for(var M=a/t,C=-a/2;C<=a/2;C+=M){for(var L=Math.sin(C),E=Math.cos(C),R=0,w=0;w<s.length;w+=2){var N=v[w],O=v[w+1],k=l[w]-f[0],G=l[w+1]-f[1],H=k*E-G*L,F=k*L+G*E;m[w]=H,m[w+1]=F;var B=H-N,j=F-O;R+=B*B+j*j}if(R<y){y=R,p=C;for(var Y=0;Y<m.length;Y++)d[Y]=m[Y]}}n.push({from:v,to:d,fromCp:u,toCp:f,rotation:-p})}return n}function Bg(r){return r.__isCombineMorphing}var cB="__mOriginal_";function Vg(r,e,t){var a=cB+e,n=r[a]||r[e];r[a]||(r[a]=r[e]);var i=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=n.apply(this,l),o&&o.apply(this,l),u}}function rh(r,e){var t=cB+e;r[t]&&(r[e]=r[t],r[t]=null)}function _N(r,e){for(var t=0;t<r.length;t++)for(var a=r[t],n=0;n<a.length;){var i=a[n],o=a[n+1];a[n++]=e[0]*i+e[2]*o+e[4],a[n++]=e[1]*i+e[3]*o+e[5]}}function fB(r,e){var t=r.getUpdatedPathProxy(),a=e.getUpdatedPathProxy(),n=vit(ib(t),ib(a)),i=n[0],o=n[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&_N(i,s),l&&_N(o,l),Vg(e,"updateTransform",{replace:u}),e.transform=null;var f=git(i,o,10,Math.PI),v=[];Vg(e,"buildPath",{replace:function(d){for(var p=e.__morphT,y=1-p,m=[],_=0;_<f.length;_++){var S=f[_],b=S.from,w=S.to,A=S.rotation*p,M=S.fromCp,C=S.toCp,L=Math.sin(A),E=Math.cos(A);Ap(m,M,C,p);for(var R=0;R<b.length;R+=2){var N=b[R],O=b[R+1],k=w[R],G=w[R+1],H=N*y+k*p,F=O*y+G*p;v[R]=H*E-F*L+m[0],v[R+1]=H*L+F*E+m[1]}var B=v[0],j=v[1];d.moveTo(B,j);for(var R=2;R<b.length;){var k=v[R++],G=v[R++],Y=v[R++],K=v[R++],nt=v[R++],U=v[R++];B===k&&j===G&&Y===nt&&K===U?d.lineTo(nt,U):d.bezierCurveTo(k,G,Y,K,nt,U),B=nt,j=U}}}})}function vw(r,e,t){if(!r||!e)return e;var a=t.done,n=t.during;fB(r,e),e.__morphT=0;function i(){rh(e,"buildPath"),rh(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},wt({during:function(o){e.dirtyShape(),n&&n(o)},done:function(){i(),a&&a()}},t)),e}function yit(r,e,t,a,n,i){var o=16;r=n===t?0:Math.round(32767*(r-t)/(n-t)),e=i===a?0:Math.round(32767*(e-a)/(i-a));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,v=0;(r&u)>0&&(f=1),(e&u)>0&&(v=1),s+=u*u*(3*f^v),v===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function Gg(r){var e=1/0,t=1/0,a=-1/0,n=-1/0,i=st(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),v=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(v,t),a=Math.max(f,a),n=Math.max(v,n),[f,v]}),o=st(i,function(s,l){return{cp:s,z:yit(s[0],s[1],e,t,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function hB(r){return fit(r.path,r.count)}function sb(){return{fromIndividuals:[],toIndividuals:[],count:0}}function mit(r,e,t){var a=[];function n(M){for(var C=0;C<M.length;C++){var L=M[C];Bg(L)?n(L.childrenRef()):L instanceof Ut&&a.push(L)}}n(r);var i=a.length;if(!i)return sb();var o=t.dividePath||hB,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),sb();a=Gg(a),s=Gg(s);for(var l=t.done,u=t.during,f=t.individualDelay,v=new ci,d=0;d<i;d++){var p=a[d],y=s[d];y.parent=e,y.copyTransform(v),f||fB(p,y)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function m(M){for(var C=0;C<s.length;C++)s[C].addSelfToZr(M)}Vg(e,"addSelfToZr",{after:function(M){m(M)}}),Vg(e,"removeSelfFromZr",{after:function(M){for(var C=0;C<s.length;C++)s[C].removeSelfFromZr(M)}});function _(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,rh(e,"addSelfToZr"),rh(e,"removeSelfFromZr")}var S=s.length;if(f)for(var b=S,w=function(){b--,b===0&&(_(),l&&l())},d=0;d<S;d++){var A=f?wt({delay:(t.delay||0)+f(d,S,a[d],s[d]),done:w},t):t;vw(a[d],s[d],A)}else e.__morphT=0,e.animateTo({__morphT:1},wt({during:function(M){for(var C=0;C<S;C++){var L=s[C];L.__morphT=e.__morphT,L.dirtyShape()}u&&u(M)},done:function(){_();for(var M=0;M<r.length;M++)rh(r[M],"updateTransform");l&&l()}},t));return e.__zr&&m(e.__zr),{fromIndividuals:a,toIndividuals:s,count:S}}function _it(r,e,t){var a=e.length,n=[],i=t.dividePath||hB;function o(p){for(var y=0;y<p.length;y++){var m=p[y];Bg(m)?o(m.childrenRef()):m instanceof Ut&&n.push(m)}}if(Bg(r)){o(r.childrenRef());var s=n.length;if(s<a)for(var l=0,u=s;u<a;u++)n.push(Nb(n[l++%s]));n.length=a}else{n=i({path:r,count:a});for(var f=r.getComputedTransform(),u=0;u<n.length;u++)n[u].setLocalTransform(f);if(n.length!==a)return console.error("Invalid morphing: unmatched splitted path"),sb()}n=Gg(n),e=Gg(e);for(var v=t.individualDelay,u=0;u<a;u++){var d=v?wt({delay:(t.delay||0)+v(u,a,n[u],e[u])},t):t;vw(n[u],e[u],d)}return{fromIndividuals:n,toIndividuals:e,count:e.length}}function xN(r){return it(r[0])}function SN(r,e){for(var t=[],a=r.length,n=0;n<a;n++)t.push({one:r[n],many:[]});for(var n=0;n<e.length;n++){var i=e[n].length,o=void 0;for(o=0;o<i;o++)t[o%a].many.push(e[n][o])}for(var s=0,n=a-1;n>=0;n--)if(!t[n].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[n].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var xit={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a<r.count;a++){var n=Nb(r.path);n.setStyle("opacity",t),e.push(n)}return e},split:null};function vx(r,e,t,a,n,i){if(!r.length||!e.length)return;var o=Zu("update",a,n);if(!(o&&o.duration>0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;xN(r)&&(u=r,f=e),xN(e)&&(u=e,f=r);function v(S,b,w,A,M){var C=S.many,L=S.one;if(C.length===1&&!M){var E=b?C[0]:L,R=b?L:C[0];if(Bg(E))v({many:[E],one:R},!0,w,A,!0);else{var N=s?wt({delay:s(w,A)},l):l;vw(E,R,N),i(E,R,E,R,N)}}else for(var O=wt({dividePath:xit[t],individualDelay:s&&function(j,Y,K,nt){return s(j+w,A)}},l),k=b?mit(C,L,O):_it(L,C,O),G=k.fromIndividuals,H=k.toIndividuals,F=G.length,B=0;B<F;B++){var N=s?wt({delay:s(B,F)},l):l;i(G[B],H[B],b?C[B]:S.one,b?S.one:C[B],N)}}for(var d=u?u===r:r.length>e.length,p=u?SN(f,u):SN(d?e:r,[d?r:e]),y=0,m=0;m<p.length;m++)y+=p[m].many.length;for(var _=0,m=0;m<p.length;m++)v(p[m],d,_,y),_+=p[m].many.length}function Es(r){if(!r)return[];if(it(r)){for(var e=[],t=0;t<r.length;t++)e.push(Es(r[t]));return e}var a=[];return r.traverse(function(n){n instanceof Ut&&!n.disableMorphing&&!n.invisible&&!n.ignore&&a.push(n)}),a}var vB=1e4,Sit=Kt();function bit(r){for(var e=r.dimensions,t=0;t<e.length;t++){var a=r.getDimensionInfo(e[t]);if(a&&a.otherDims.itemGroupId===0)return e[t]}}function bN(r){var e=[];return P(r,function(t){var a=t.data;if(!(a.count()>vB))for(var n=a.getIndices(),i=bit(a),o=0;o<n.length;o++)e.push({dataGroupId:t.dataGroupId,data:a,dim:t.dim||i,divide:t.divide,dataIndex:o})}),e}function dx(r,e,t){r.traverse(function(a){a instanceof Ut&&Le(a,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function px(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function yu(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function wit(r,e,t){var a=Zu("update",t,e);a&&r.traverse(function(n){if(n instanceof Fa){var i=_9(n);i&&n.animateFrom({style:i},a)}})}function Tit(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++){var n=r[a],i=e[a];if(n.data.getId(n.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function dB(r,e,t){var a=bN(r),n=bN(e);function i(S,b,w,A,M){(w||S)&&b.animateFrom({style:w&&w!==S?et(et({},w.style),S.style):S.style},M)}function o(S){for(var b=0;b<S.length;b++)if(S[b].dim)return S[b].dim}var s=o(a),l=o(n),u=!1;function f(S,b){return function(w){var A=w.data,M=w.dataIndex;if(b)return A.getId(M);var C=w.dataGroupId,L=S?s||l:l||s,E=L&&A.getDimensionInfo(L),R=E&&E.ordinalMeta;if(E){var N=A.get(E.name,M);return R&&R.categories[N]||N+""}var O=A.getRawDataItem(M);return O&&O.groupId?O.groupId+"":C||A.getId(M)}}var v=Tit(a,n),d={};if(!v)for(var p=0;p<n.length;p++){var y=n[p],m=y.data.getItemGraphicEl(y.dataIndex);m&&(d[m.id]=!0)}function _(S,b){var w=a[b],A=n[S],M=A.data.hostModel,C=w.data.getItemGraphicEl(w.dataIndex),L=A.data.getItemGraphicEl(A.dataIndex);if(C===L){L&&wit(L,A.dataIndex,M);return}C&&d[C.id]||L&&(yu(L),C?(yu(C),px(C),u=!0,vx(Es(C),Es(L),A.divide,M,S,i)):dx(L,M,S))}new Si(a,n,f(!0,v),f(!1,v),null,"multiple").update(_).updateManyToOne(function(S,b){var w=n[S],A=w.data,M=A.hostModel,C=A.getItemGraphicEl(w.dataIndex),L=le(st(b,function(E){return a[E].data.getItemGraphicEl(a[E].dataIndex)}),function(E){return E&&E!==C&&!d[E.id]});C&&(yu(C),L.length?(P(L,function(E){yu(E),px(E)}),u=!0,vx(Es(L),Es(C),w.divide,M,S,i)):dx(C,M,w.dataIndex))}).updateOneToMany(function(S,b){var w=a[b],A=w.data.getItemGraphicEl(w.dataIndex);if(!(A&&d[A.id])){var M=le(st(S,function(L){return n[L].data.getItemGraphicEl(n[L].dataIndex)}),function(L){return L&&L!==A}),C=n[S[0]].data.hostModel;M.length&&(P(M,function(L){return yu(L)}),A?(yu(A),px(A),u=!0,vx(Es(A),Es(M),w.divide,C,S[0],i)):P(M,function(L){return dx(L,C,S[0])}))}}).updateManyToMany(function(S,b){new Si(b,S,function(w){return a[w].data.getId(a[w].dataIndex)},function(w){return n[w].data.getId(n[w].dataIndex)}).update(function(w,A){_(S[w],b[A])}).execute()}).execute(),u&&P(e,function(S){var b=S.data,w=b.hostModel,A=w&&t.getViewOfSeriesModel(w),M=Zu("update",w,0);A&&w.isAnimationEnabled()&&M&&M.duration>0&&A.group.traverse(function(C){C instanceof Ut&&!C.animators.length&&C.animateFrom({style:{opacity:0}},M)})})}function wN(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function TN(r){return it(r)?r.sort().join(","):r}function fo(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Ait(r,e){var t=xt(),a=xt(),n=xt();return P(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=wN(i),f=TN(u);a.set(f,{dataGroupId:s,data:l}),it(u)&&P(u,function(v){n.set(v,{key:f,dataGroupId:s,data:l})})}),P(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=wN(i),u=TN(l),f=a.get(u);if(f)t.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:fo(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:fo(s),data:s}]});else if(it(l)){var v=[];P(l,function(y){var m=a.get(y);m.data&&v.push({dataGroupId:m.dataGroupId,divide:fo(m.data),data:m.data})}),v.length&&t.set(u,{oldSeries:v,newSeries:[{dataGroupId:o,data:s,divide:fo(s)}]})}else{var d=n.get(l);if(d){var p=t.get(d.key);p||(p={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:fo(d.data)}],newSeries:[]},t.set(d.key,p)),p.newSeries.push({dataGroupId:o,data:s,divide:fo(s)})}}}}),t}function AN(r,e){for(var t=0;t<r.length;t++){var a=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(a)return t}}function Dit(r,e,t,a){var n=[],i=[];P(he(r.from),function(o){var s=AN(e.oldSeries,o);s>=0&&n.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:fo(e.oldData[s]),dim:o.dimension})}),P(he(r.to),function(o){var s=AN(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:fo(l),dim:o.dimension})}}),n.length>0&&i.length>0&&dB(n,i,a)}function Cit(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){P(he(a.seriesTransition),function(n){P(he(n.to),function(i){for(var o=a.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][zp]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,a){var n=Sit(t);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)P(he(i),function(p){Dit(p,n,a,t)});else{var o=Ait(n,a);P(o.keys(),function(p){var y=o.get(p);dB(y.oldSeries,y.newSeries,t)})}P(a.updatedSeries,function(p){p[zp]&&(p[zp]=!1)})}for(var s=e.getSeries(),l=n.oldSeries=[],u=n.oldDataGroupIds=[],f=n.oldData=[],v=0;v<s.length;v++){var d=s[v].getData();d.count()<vB&&(l.push(s[v]),u.push(s[v].get("dataGroupId")),f.push(d))}})}Ht([kX]);Ht([IX]);Ht([aZ,mZ,MZ,sW,mW,nq,Iq,p$,k$,F$,Q$,XK,yQ,MQ,jQ,WQ,nJ,fJ,bJ,MJ,BJ,Stt]);Ht(Gtt);Ht(vet);Ht(hz);Ht(Cet);Ht(Kz);Ht(Ret);Ht(Get);Ht(Crt);Ht(Xrt);Ht(tv);Ht(uat);Ht(hat);Ht(bat);Ht(Lat);Ht(Oat);Ht(Hat);Ht(Kat);Ht(pnt);Ht(tB);Ht(eB);Ht(Ont);Ht(oB);Ht(sB);Ht(Gnt);Ht(Jnt);Ht(rit);Ht(Cit);Ht(tX);function Mit({klineData:r,macdData:e,resistance:t,support:a,height:n=500}){const i=fe.useRef(null),o=fe.useRef(null),[s,l]=fe.useState(!0);return fe.useEffect(()=>{if(!i.current||r.length===0)return;o.current||(o.current=wj(i.current));const u=o.current,f=r.map(L=>{const E=new Date(L.time);return`${E.getHours().toString().padStart(2,"0")}:${E.getMinutes().toString().padStart(2,"0")}`}),v=r.map(L=>[L.open,L.close,L.low,L.high]),d=r.map(L=>L.volume),p=e.map(L=>L.dif),y=e.map(L=>L.dea),m=e.map(L=>({value:L.macd,itemStyle:{color:L.macd>=0?"#7dd75a":"#ef4444"}})),_=[];t.forEach((L,E)=>{_.push({yAxis:L,name:`压力${E+1}`,lineStyle:{color:"#ef4444",type:"solid",width:1.5},label:{formatter:`压力{${E+1}}: {c}`,color:"#ef4444",fontSize:11}})}),a.forEach((L,E)=>{_.push({yAxis:L,name:`支撑${E+1}`,lineStyle:{color:"#7dd75a",type:"solid",width:1.5},label:{formatter:`支撑{${E+1}}: {c}`,color:"#7dd75a",fontSize:11}})});const S=L=>{const E=[];for(let R=0;R<r.length;R++){if(R<L-1){E.push(Number(r[R].close.toFixed(2)));continue}let N=0;for(let O=0;O<L;O++)N+=r[R-O].close;E.push(Number((N/L).toFixed(2)))}return E},b=S(5),w=S(10),A=S(20),M={backgroundColor:"transparent",animation:!0,animationDuration:500,tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#0d5d1b"}},backgroundColor:"rgba(9, 9, 11, 0.95)",borderColor:"#7dd75a",borderWidth:1,textStyle:{color:"#fff",fontSize:12},formatter:L=>{const E=L.find(Y=>Y.seriesName==="K线"),R=L.find(Y=>Y.seriesName==="成交量"),N=L.find(Y=>Y.seriesName==="MACD");if(!E)return"";const O=E.data,k=O[1],G=O[2],H=O[3],F=O[4],B=((G-k)/k*100).toFixed(2),j=G>=k?"#7dd75a":"#ef4444";return`
<div style="padding: 8px;">
<div style="font-weight: bold; margin-bottom: 8px; color: #e6e6e6;">${E.axisValue}</div>
<div style="display: grid; grid-template-columns: auto auto; gap: 4px 16px; font-size: 12px;">
<span style="color: #a1a1aa;">开盘:</span><span style="color: #fff;">${k.toFixed(2)}</span>
<span style="color: #a1a1aa;">最高:</span><span style="color: #fff;">${F.toFixed(2)}</span>
<span style="color: #a1a1aa;">最低:</span><span style="color: #fff;">${H.toFixed(2)}</span>
<span style="color: #a1a1aa;">收盘:</span><span style="color: ${j};">${G.toFixed(2)} (${B}%)</span>
${R?`<span style="color: #a1a1aa;">成交量:</span><span style="color: #fff;">${R.data.toLocaleString()}</span>`:""}
${N?`<span style="color: #a1a1aa;">MACD:</span><span style="color: ${N.data>=0?"#7dd75a":"#ef4444"};">${N.data.toFixed(4)}</span>`:""}
</div>
</div>
`}},axisPointer:{link:[{xAxisIndex:"all"}],label:{backgroundColor:"#0d5d1b"}},grid:[{left:"3%",right:"3%",top:"5%",height:"50%",containLabel:!0},{left:"3%",right:"3%",top:"58%",height:"15%",containLabel:!0},{left:"3%",right:"3%",top:"76%",height:"18%",containLabel:!0}],xAxis:[{type:"category",data:f,boundaryGap:!0,axisLine:{lineStyle:{color:"#3f3f46"}},axisLabel:{color:"#a1a1aa",fontSize:10},axisTick:{show:!1},splitLine:{show:!1}},{type:"category",gridIndex:1,data:f,boundaryGap:!0,axisLine:{show:!1},axisLabel:{show:!1},axisTick:{show:!1},splitLine:{show:!1}},{type:"category",gridIndex:2,data:f,boundaryGap:!0,axisLine:{lineStyle:{color:"#3f3f46"}},axisLabel:{color:"#a1a1aa",fontSize:10},axisTick:{show:!1},splitLine:{show:!1}}],yAxis:[{scale:!0,axisLine:{lineStyle:{color:"#3f3f46"}},axisLabel:{color:"#a1a1aa",fontSize:10},splitLine:{lineStyle:{color:"#27272a",type:"dashed"}},position:"right"},{scale:!0,gridIndex:1,axisLine:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}},{scale:!0,gridIndex:2,axisLine:{lineStyle:{color:"#3f3f46"}},axisLabel:{color:"#a1a1aa",fontSize:10},splitLine:{lineStyle:{color:"#27272a",type:"dashed"}},position:"right"}],dataZoom:[{type:"inside",xAxisIndex:[0,1,2],start:50,end:100},{type:"slider",xAxisIndex:[0,1,2],start:50,end:100,height:20,bottom:0,borderColor:"#3f3f46",fillerColor:"rgba(125, 215, 90, 0.2)",handleStyle:{color:"#7dd75a"},textStyle:{color:"#a1a1aa"}}],series:[{name:"K线",type:"candlestick",data:v,itemStyle:{color:"#7dd75a",color0:"#ef4444",borderColor:"#7dd75a",borderColor0:"#ef4444"},markLine:{symbol:"none",data:_,animation:!0}},{name:"MA5",type:"line",data:b,smooth:!0,showSymbol:!1,lineStyle:{color:"#fbbf24",width:1}},{name:"MA10",type:"line",data:w,smooth:!0,showSymbol:!1,lineStyle:{color:"#60a5fa",width:1}},{name:"MA20",type:"line",data:A,smooth:!0,showSymbol:!1,lineStyle:{color:"#c084fc",width:1}},{name:"成交量",type:"bar",xAxisIndex:1,yAxisIndex:1,data:d,itemStyle:{color:L=>{const E=L.dataIndex,R=r[E]?.close,N=r[E]?.open;return R>=N?"rgba(125, 215, 90, 0.6)":"rgba(239, 68, 68, 0.6)"}}},{name:"MACD",type:"bar",xAxisIndex:2,yAxisIndex:2,data:m},{name:"DIF",type:"line",xAxisIndex:2,yAxisIndex:2,data:p,smooth:!0,showSymbol:!1,lineStyle:{color:"#fbbf24",width:1.5}},{name:"DEA",type:"line",xAxisIndex:2,yAxisIndex:2,data:y,smooth:!0,showSymbol:!1,lineStyle:{color:"#60a5fa",width:1.5}}]};u.setOption(M),l(!1);const C=()=>{u.resize()};return window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C)}},[r,e,t,a]),z.jsxs("div",{"code-path":"src/components/KLineChart.tsx:361:5",className:"relative",children:[s&&z.jsx("div",{"code-path":"src/components/KLineChart.tsx:363:9",className:"absolute inset-0 flex items-center justify-center bg-[#09090b]/80 z-10",children:z.jsxs("div",{"code-path":"src/components/KLineChart.tsx:364:11",className:"flex items-center gap-2 text-[#7dd75a]",children:[z.jsx("div",{"code-path":"src/components/KLineChart.tsx:365:13",className:"w-5 h-5 border-2 border-[#7dd75a] border-t-transparent rounded-full animate-spin"}),z.jsx("span",{"code-path":"src/components/KLineChart.tsx:366:13",className:"text-sm",children:"加载中..."})]})}),z.jsx("div",{"code-path":"src/components/KLineChart.tsx:370:7",ref:i,style:{height:`${n}px`},className:"w-full"})]})}const Lit={heatIndex:78.5,heatChange:5.2,upCount:156,downCount:89,capitalFlow:28.5,volatilityIndex:23.8,volatilityChange:-1.2},gx=[{id:"1",title:"地缘政治风险升级",time:"2025-03-02",summary:'美以袭伊朗,"海上油阀"被关,中东局势紧张升级',affectedProducts:["原油","黄金","白银","燃油"],impact:"bullish",impactLevel:5,analysis:"地缘政治风险急剧升温,霍尔木兹海峡封锁风险上升。原油供应中断担忧推动油价上涨,避险资产黄金、白银同步走强。短期油价易涨难跌,建议关注原油、黄金相关品种做多机会。",risks:["冲突升级可能","供应中断风险","波动率激增"]},{id:"2",title:"黄金价格创历史新高",time:"2025-03-01",summary:"COMEX黄金突破3100美元关口避险需求强劲",affectedProducts:["黄金","白银","铂金","美元指数"],impact:"bullish",impactLevel:4,analysis:'特朗普关税政策"2.0"版本引发市场担忧,叠加地缘政治风险,黄金避险属性凸显。技术面突破历史高点,多头趋势强劲。预计金价短期维持强势,回调即是买入机会。',risks:["获利回吐压力","美元反弹风险","美联储政策转向"]},{id:"3",title:"铜供应紧张预期",time:"2025-02-28",summary:"全球铜市场预计出现18万吨供应缺口美国或加征铜进口关税",affectedProducts:["铜","铝","镍","锌"],impact:"bullish",impactLevel:4,analysis:"铜精矿TC现货指数持续回落矿山供应增长放缓。美国可能加征铜进口关税刺激美铜价格上涨全球套利行为收紧供应。需求端新能源产业用铜需求快速增长供需矛盾支撑铜价。",risks:["需求放缓风险","美元走强压制","库存累积"]},{id:"4",title:"美联储通胀数据超预期",time:"2025-02-27",summary:"核心PCE数据超预期降息预期降温",affectedProducts:["美元指数","黄金","原油","大宗商品"],impact:"bearish",impactLevel:3,analysis:"美国2月核心PCE通胀数据超预期市场对美联储降息预期降温。美元指数短期获得支撑对大宗商品形成一定压制。但地缘政治风险对冲了部分利空影响。",risks:["加息预期升温","美元持续走强","风险资产抛售"]},{id:"5",title:"OPEC+减产延期预期",time:"2025-02-26",summary:"OPEC+可能延长减产协议至二季度末",affectedProducts:["原油","燃油","沥青","石化品种"],impact:"bullish",impactLevel:3,analysis:"OPEC+成员国倾向于延长减产协议以支撑油价。全球原油需求预期改善,叠加供应端约束,原油市场供需格局趋紧。关注减产协议正式落地情况。",risks:["减产执行力度","非OPEC增产","需求不及预期"]}],Ly=[{id:"1",name:"原油",code:"SC",category:"energy",price:528.6,change:12.1,changePercent:2.35,open:518,high:535,low:515.5,volume:285600,openInterest:125800,trendScore:85,successRate:72,cycles:{m5:"up",m15:"up",m30:"up",m60:"sideways"},keyLevels:{resistance:[535,542,550],support:[518,510,500]},recommendation:"long",recommendationReason:"地缘政治风险推动,多周期共振向上"},{id:"2",name:"黄金",code:"AU",category:"metal",price:685.2,change:12.45,changePercent:1.85,open:675,high:692,low:672,volume:456200,openInterest:215600,trendScore:92,successRate:78,cycles:{m5:"up",m15:"up",m30:"up",m60:"up"},keyLevels:{resistance:[692,700,710],support:[678,670,660]},recommendation:"long",recommendationReason:"创历史新高,趋势强劲,避险需求旺盛"},{id:"3",name:"铜",code:"CU",category:"metal",price:80610,change:112,changePercent:.14,open:80200,high:81200,low:79800,volume:125800,openInterest:98500,trendScore:65,successRate:58,cycles:{m5:"sideways",m15:"up",m30:"sideways",m60:"up"},keyLevels:{resistance:[81200,82e3,83e3],support:[79800,79e3,78e3]},recommendation:"wait",recommendationReason:"高位震荡,方向不明,建议观望"},{id:"4",name:"白银",code:"AG",category:"metal",price:8250,change:165,changePercent:2.04,open:8100,high:8350,low:8050,volume:325600,openInterest:185200,trendScore:88,successRate:75,cycles:{m5:"up",m15:"up",m30:"up",m60:"up"},keyLevels:{resistance:[8350,8500,8650],support:[8100,8e3,7850]},recommendation:"long",recommendationReason:"跟随黄金上涨,波动更大,机会更好"},{id:"5",name:"铁矿石",code:"I",category:"metal",price:785.5,change:28,changePercent:3.7,open:760,high:792,low:755,volume:185200,openInterest:95600,trendScore:82,successRate:68,cycles:{m5:"up",m15:"up",m30:"up",m60:"up"},keyLevels:{resistance:[792,800,815],support:[770,760,745]},recommendation:"long",recommendationReason:"黑色系领涨,需求预期改善"},{id:"6",name:"豆粕",code:"M",category:"agriculture",price:2985,change:-51,changePercent:-1.68,open:3040,high:3050,low:2960,volume:256800,openInterest:325600,trendScore:35,successRate:42,cycles:{m5:"down",m15:"down",m30:"down",m60:"sideways"},keyLevels:{resistance:[3050,3100,3180],support:[2960,2900,2820]},recommendation:"short",recommendationReason:"供应充足,需求疲软,短期偏弱"},{id:"7",name:"棕榈油",code:"P",category:"agriculture",price:8750,change:0,changePercent:0,open:8720,high:8820,low:8680,volume:125600,openInterest:185200,trendScore:50,successRate:52,cycles:{m5:"sideways",m15:"sideways",m30:"sideways",m60:"sideways"},keyLevels:{resistance:[8820,8900,9050],support:[8680,8600,8450]},recommendation:"wait",recommendationReason:"横盘整理,等待方向选择"},{id:"8",name:"集运指数",code:"EC",category:"financial",price:2150,change:196,changePercent:10.06,open:1960,high:2200,low:1940,volume:85600,openInterest:45600,trendScore:90,successRate:80,cycles:{m5:"up",m15:"up",m30:"up",m60:"up"},keyLevels:{resistance:[2200,2300,2400],support:[2e3,1900,1800]},recommendation:"long",recommendationReason:"涨停突破,地缘风险推升运价"}],DN=[{id:"1",title:"中东地缘风险急剧升温",affectedProducts:["原油","黄金","燃油"],riskLevel:"high",description:"美以与伊朗冲突升级,霍尔木兹海峡封锁风险上升",suggestion:"控制仓位,设置止损,关注局势发展",time:"2025-03-02 14:30"},{id:"2",title:"黄金价格创历史新高",affectedProducts:["黄金","白银"],riskLevel:"medium",description:"金价快速上涨后存在获利回吐风险",suggestion:"避免追高,等待回调后再入场",time:"2025-03-01 09:15"},{id:"3",title:"集运指数涨停",affectedProducts:["集运指数"],riskLevel:"high",description:"连续涨停后波动率激增,注意回调风险",suggestion:"减仓或获利了结,避免隔夜重仓",time:"2025-03-02 15:00"}];function Eit(r,e=100){const t=[];let a=r;const n=new Date;for(let i=e;i>=0;i--){const o=new Date(n.getTime()-i*5*60*1e3),s=a*.008,l=(Math.random()-.48)*s,u=a,f=a+l,v=Math.max(u,f)+Math.random()*s*.5,d=Math.min(u,f)-Math.random()*s*.5,p=Math.floor(Math.random()*1e4+5e3);t.push({time:o.toISOString(),open:Number(u.toFixed(2)),high:Number(v.toFixed(2)),low:Number(d.toFixed(2)),close:Number(f.toFixed(2)),volume:p}),a=f}return t}function Rit(r){const e=[];let t=r[0].close,a=r[0].close,n=0;const i=2/13,o=2/27,s=2/10;for(const l of r){t=l.close*i+t*(1-i),a=l.close*o+a*(1-o);const u=t-a;n=u*s+n*(1-s);const f=(u-n)*2;e.push({time:l.time,dif:Number(u.toFixed(4)),dea:Number(n.toFixed(4)),macd:Number(f.toFixed(4))})}return e}function Iit(r,e){const t=Ly.find(s=>s.id===r),a=t?.price||500,n=Eit(a,80),i=Rit(n),o=n.map(s=>({time:s.time,value:s.volume}));return{period:e,trend:t?.cycles[e]||"sideways",trendStrength:Math.floor(Math.random()*40)+60,klineData:n,volumeData:o,macdData:i,keyLevels:{resistance:t?.keyLevels.resistance||[],support:t?.keyLevels.support||[]}}}function Nit(r){const t=Ly.find(a=>a.id===r)?.price||500;return{macd:{signal:Math.random()>.5?"golden_cross":"neutral",value:Number((Math.random()*2-.5).toFixed(4))},rsi:{value:Math.floor(Math.random()*40)+30,status:"normal"},bollinger:{upper:t*1.03,middle:t,lower:t*.97,position:"middle"},kdj:{k:Math.floor(Math.random()*100),d:Math.floor(Math.random()*100),j:Math.floor(Math.random()*100),signal:Math.random()>.6?"golden_cross":"neutral"}}}function Pit(r){const e=Ly.find(i=>i.id===r),t=e?.price||500,a=e?.recommendation||"wait",n=t*.02;return{action:a,entryPrice:a==="long"?t-n*.3:t+n*.3,stopLoss:a==="long"?t-n:t+n,targetPrice:a==="long"?t+n*2:t-n*2,riskLevel:e?.trendScore&&e.trendScore>80?"low":e?.trendScore&&e.trendScore>60?"medium":"high",position:e?.trendScore&&e.trendScore>80?"medium":"light",holdingTime:"short",reason:e?.recommendationReason||"技术面与基本面综合判断"}}function Oit({label:r,isActive:e,onClick:t}){return z.jsx("button",{"code-path":"src/components/ProductDetail.tsx:23:5",onClick:t,className:`px-4 py-2 rounded-lg text-sm font-medium transition-all duration-200 ${e?"bg-[#7dd75a] text-[#09090b]":"bg-[#27272a] text-[#a1a1aa] hover:bg-[#3f3f46] hover:text-white"}`,children:r})}function bp({title:r,value:e,status:t,signal:a}){const n={positive:"text-[#7dd75a]",negative:"text-[#ef4444]",neutral:"text-[#a1a1aa]"};return z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:55:5",className:"p-3 rounded-lg border border-[#27272a] bg-[#09090b]",children:[z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:56:7",className:"text-xs text-[#71717a] mb-1",children:r}),z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:57:7",className:`text-sm font-medium ${a?n[a]:"text-white"}`,children:e}),z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:58:7",className:"text-xs text-[#a1a1aa] mt-1",children:t})]})}function CN({label:r,value:e,type:t}){return z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:74:5",className:"flex items-center justify-between py-2 border-b border-[#27272a]/50 last:border-0",children:[z.jsx("span",{"code-path":"src/components/ProductDetail.tsx:75:7",className:"text-sm text-[#a1a1aa]",children:r}),z.jsx("span",{"code-path":"src/components/ProductDetail.tsx:76:7",className:`text-sm font-mono font-medium ${t==="resistance"?"text-[#ef4444]":"text-[#7dd75a]"}`,children:e.toLocaleString()})]})}function zit({product:r,onBack:e}){const[t,a]=fe.useState("m15"),[n,i]=fe.useState(null),[o,s]=fe.useState(null),[l,u]=fe.useState(null),[f,v]=fe.useState(!0);fe.useEffect(()=>{v(!0),setTimeout(()=>{i(Iit(r.id,t)),s(Nit(r.id)),u(Pit(r.id)),v(!1)},300)},[r.id,t]);const d=r.change>=0,p=[{key:"m5",label:"5分钟"},{key:"m15",label:"15分钟"},{key:"m30",label:"30分钟"},{key:"m60",label:"60分钟"}],y={m5:"5分钟",m15:"15分钟",m30:"30分钟",m60:"60分钟"};return z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:118:5",className:"space-y-4",children:[z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:120:7",className:"flex items-center gap-4",children:[z.jsxs("button",{"code-path":"src/components/ProductDetail.tsx:121:9",onClick:e,className:"flex items-center gap-2 px-4 py-2 rounded-lg border border-[#27272a] bg-[#0d0d10] text-[#a1a1aa] hover:text-white hover:border-[#3f3f46] transition-colors",children:[z.jsx(QV,{"code-path":"src/components/ProductDetail.tsx:125:11",className:"w-4 h-4"}),z.jsx("span",{"code-path":"src/components/ProductDetail.tsx:126:11",children:"返回"})]}),z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:128:9",children:[z.jsxs("h2",{"code-path":"src/components/ProductDetail.tsx:129:11",className:"text-xl font-bold text-white",children:[r.name," (",r.code,")"]}),z.jsx("p",{"code-path":"src/components/ProductDetail.tsx:130:11",className:"text-sm text-[#71717a]",children:"详细技术分析"})]})]}),z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:135:7",className:"p-4 rounded-xl border border-[#27272a] bg-[#0d0d10]",children:z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:136:9",className:"flex flex-wrap items-center gap-6",children:[z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:137:11",children:[z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:138:13",className:`text-3xl font-bold font-mono ${d?"text-[#7dd75a]":"text-[#ef4444]"}`,children:["¥",r.price.toLocaleString()]}),z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:141:13",className:`flex items-center gap-1 text-sm ${d?"text-[#7dd75a]":"text-[#ef4444]"}`,children:[d?z.jsx(Qs,{"code-path":"src/components/ProductDetail.tsx:142:23",className:"w-4 h-4"}):z.jsx(Do,{"code-path":"src/components/ProductDetail.tsx:142:60",className:"w-4 h-4"}),z.jsxs("span",{"code-path":"src/components/ProductDetail.tsx:143:15",children:[d?"+":"",r.change.toFixed(2)," (",d?"+":"",r.changePercent,"%)"]})]})]}),z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:147:11",className:"h-12 w-px bg-[#27272a] hidden sm:block"}),z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:149:11",className:"grid grid-cols-2 sm:grid-cols-4 gap-4",children:[z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:150:13",children:[z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:151:15",className:"text-xs text-[#71717a]",children:"开盘"}),z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:152:15",className:"text-sm font-mono text-white",children:r.open.toLocaleString()})]}),z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:154:13",children:[z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:155:15",className:"text-xs text-[#71717a]",children:"最高"}),z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:156:15",className:"text-sm font-mono text-[#7dd75a]",children:r.high.toLocaleString()})]}),z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:158:13",children:[z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:159:15",className:"text-xs text-[#71717a]",children:"最低"}),z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:160:15",className:"text-sm font-mono text-[#ef4444]",children:r.low.toLocaleString()})]}),z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:162:13",children:[z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:163:15",className:"text-xs text-[#71717a]",children:"持仓量"}),z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:164:15",className:"text-sm font-mono text-white",children:r.openInterest.toLocaleString()})]})]})]})}),z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:170:7",className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:172:9",className:"lg:col-span-2 space-y-4",children:[z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:174:11",className:"flex items-center gap-2",children:[z.jsx(jp,{"code-path":"src/components/ProductDetail.tsx:175:13",className:"w-4 h-4 text-[#7dd75a]"}),z.jsx("span",{"code-path":"src/components/ProductDetail.tsx:176:13",className:"text-sm text-[#a1a1aa]",children:"周期选择"}),z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:177:13",className:"flex gap-2 ml-2",children:p.map(m=>z.jsx(Oit,{"code-path":"src/components/ProductDetail.tsx:179:17",label:m.label,isActive:t===m.key,onClick:()=>a(m.key)},m.key))})]}),z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:190:11",className:"p-4 rounded-xl border border-[#27272a] bg-[#0d0d10]",children:f?z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:192:15",className:"h-[500px] flex items-center justify-center",children:z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:193:17",className:"flex items-center gap-2 text-[#7dd75a]",children:[z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:194:19",className:"w-5 h-5 border-2 border-[#7dd75a] border-t-transparent rounded-full animate-spin"}),z.jsx("span",{"code-path":"src/components/ProductDetail.tsx:195:19",children:"加载图表数据..."})]})}):n?z.jsx(Mit,{"code-path":"src/components/ProductDetail.tsx:199:15",klineData:n.klineData,macdData:n.macdData,resistance:n.keyLevels.resistance,support:n.keyLevels.support,height:500}):null})]}),z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:211:9",className:"space-y-4",children:[z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:213:11",className:"p-4 rounded-xl border border-[#27272a] bg-[#0d0d10]",children:[z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:214:13",className:"flex items-center gap-2 mb-4",children:[z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:215:15",className:`p-2 rounded-lg ${l?.action==="long"?"bg-[#7dd75a]/10":l?.action==="short"?"bg-[#ef4444]/10":"bg-[#a1a1aa]/10"}`,children:z.jsx(ub,{"code-path":"src/components/ProductDetail.tsx:219:17",className:`w-4 h-4 ${l?.action==="long"?"text-[#7dd75a]":l?.action==="short"?"text-[#ef4444]":"text-[#a1a1aa]"}`})}),z.jsx("h3",{"code-path":"src/components/ProductDetail.tsx:224:15",className:"font-semibold text-white",children:"交易建议"})]}),l&&z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:228:15",className:"space-y-3",children:[z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:229:17",className:`p-3 rounded-lg ${l.action==="long"?"bg-[#7dd75a]/10 border border-[#7dd75a]/30":l.action==="short"?"bg-[#ef4444]/10 border border-[#ef4444]/30":"bg-[#a1a1aa]/10 border border-[#a1a1aa]/30"}`,children:[z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:234:19",className:"text-xs text-[#71717a] mb-1",children:"操作建议"}),z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:235:19",className:`text-lg font-bold ${l.action==="long"?"text-[#7dd75a]":l.action==="short"?"text-[#ef4444]":"text-[#a1a1aa]"}`,children:l.action==="long"?"逢低做多":l.action==="short"?"逢高做空":"观望等待"}),z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:241:19",className:"text-xs text-[#a1a1aa] mt-1",children:l.reason})]}),z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:244:17",className:"grid grid-cols-2 gap-2",children:[z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:245:19",className:"p-2 rounded-lg bg-[#09090b]",children:[z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:246:21",className:"text-xs text-[#71717a]",children:"建议入场"}),z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:247:21",className:"text-sm font-mono text-white",children:l.entryPrice.toLocaleString()})]}),z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:249:19",className:"p-2 rounded-lg bg-[#09090b]",children:[z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:250:21",className:"text-xs text-[#71717a]",children:"目标价位"}),z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:251:21",className:"text-sm font-mono text-[#7dd75a]",children:l.targetPrice.toLocaleString()})]}),z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:253:19",className:"p-2 rounded-lg bg-[#09090b]",children:[z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:254:21",className:"text-xs text-[#71717a]",children:"止损价位"}),z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:255:21",className:"text-sm font-mono text-[#ef4444]",children:l.stopLoss.toLocaleString()})]}),z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:257:19",className:"p-2 rounded-lg bg-[#09090b]",children:[z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:258:21",className:"text-xs text-[#71717a]",children:"风险等级"}),z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:259:21",className:`text-sm font-medium ${l.riskLevel==="low"?"text-[#7dd75a]":l.riskLevel==="medium"?"text-[#f59e0b]":"text-[#ef4444]"}`,children:l.riskLevel==="low"?"低":l.riskLevel==="medium"?"中":"高"})]})]})]})]}),z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:272:11",className:"p-4 rounded-xl border border-[#27272a] bg-[#0d0d10]",children:[z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:273:13",className:"flex items-center gap-2 mb-4",children:[z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:274:15",className:"p-2 rounded-lg bg-[#60a5fa]/10",children:z.jsx(EN,{"code-path":"src/components/ProductDetail.tsx:275:17",className:"w-4 h-4 text-[#60a5fa]"})}),z.jsx("h3",{"code-path":"src/components/ProductDetail.tsx:277:15",className:"font-semibold text-white",children:"技术指标"})]}),o&&z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:281:15",className:"grid grid-cols-2 gap-2",children:[z.jsx(bp,{"code-path":"src/components/ProductDetail.tsx:282:17",title:"MACD",value:o.macd.signal==="golden_cross"?"金叉":o.macd.signal==="dead_cross"?"死叉":"中性",status:`DIF: ${o.macd.value}`,signal:o.macd.signal==="golden_cross"?"positive":o.macd.signal==="dead_cross"?"negative":"neutral"}),z.jsx(bp,{"code-path":"src/components/ProductDetail.tsx:288:17",title:"RSI",value:`${o.rsi.value}`,status:o.rsi.status==="overbought"?"超买":o.rsi.status==="oversold"?"超卖":"正常",signal:o.rsi.status==="oversold"?"positive":o.rsi.status==="overbought"?"negative":"neutral"}),z.jsx(bp,{"code-path":"src/components/ProductDetail.tsx:294:17",title:"布林带",value:o.bollinger.position==="upper"?"上轨":o.bollinger.position==="lower"?"下轨":"中轨",status:`区间: ${o.bollinger.lower.toFixed(0)}-${o.bollinger.upper.toFixed(0)}`,signal:o.bollinger.position==="lower"?"positive":o.bollinger.position==="upper"?"negative":"neutral"}),z.jsx(bp,{"code-path":"src/components/ProductDetail.tsx:300:17",title:"KDJ",value:o.kdj.signal==="golden_cross"?"金叉":o.kdj.signal==="dead_cross"?"死叉":"中性",status:`K: ${o.kdj.k} D: ${o.kdj.d}`,signal:o.kdj.signal==="golden_cross"?"positive":o.kdj.signal==="dead_cross"?"negative":"neutral"})]})]}),z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:311:11",className:"p-4 rounded-xl border border-[#27272a] bg-[#0d0d10]",children:[z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:312:13",className:"flex items-center gap-2 mb-4",children:[z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:313:15",className:"p-2 rounded-lg bg-[#f59e0b]/10",children:z.jsx(Hg,{"code-path":"src/components/ProductDetail.tsx:314:17",className:"w-4 h-4 text-[#f59e0b]"})}),z.jsx("h3",{"code-path":"src/components/ProductDetail.tsx:316:15",className:"font-semibold text-white",children:"关键点位"})]}),z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:319:13",className:"space-y-1",children:[z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:320:15",className:"text-xs text-[#ef4444] font-medium mb-2",children:"压力位"}),r.keyLevels.resistance.map((m,_)=>z.jsx(CN,{"code-path":"src/components/ProductDetail.tsx:322:17",label:`压力 ${_+1}`,value:m,type:"resistance"},_))]}),z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:326:13",className:"mt-4 space-y-1",children:[z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:327:15",className:"text-xs text-[#7dd75a] font-medium mb-2",children:"支撑位"}),r.keyLevels.support.map((m,_)=>z.jsx(CN,{"code-path":"src/components/ProductDetail.tsx:329:17",label:`支撑 ${_+1}`,value:m,type:"support"},_))]})]}),z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:335:11",className:"p-4 rounded-xl border border-[#27272a] bg-[#0d0d10]",children:[z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:336:13",className:"flex items-center gap-2 mb-4",children:[z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:337:15",className:"p-2 rounded-lg bg-[#c084fc]/10",children:z.jsx(PN,{"code-path":"src/components/ProductDetail.tsx:338:17",className:"w-4 h-4 text-[#c084fc]"})}),z.jsx("h3",{"code-path":"src/components/ProductDetail.tsx:340:15",className:"font-semibold text-white",children:"多周期一致性"})]}),z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:343:13",className:"space-y-2",children:Object.entries(r.cycles).map(([m,_])=>z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:345:17",className:"flex items-center justify-between py-1.5",children:[z.jsx("span",{"code-path":"src/components/ProductDetail.tsx:346:19",className:"text-sm text-[#a1a1aa]",children:y[m]}),z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:347:19",className:`flex items-center gap-1 px-2 py-1 rounded text-xs ${_==="up"?"bg-[#7dd75a]/10 text-[#7dd75a]":_==="down"?"bg-[#ef4444]/10 text-[#ef4444]":"bg-[#a1a1aa]/10 text-[#a1a1aa]"}`,children:[_==="up"?z.jsx(Qs,{"code-path":"src/components/ProductDetail.tsx:352:39",className:"w-3 h-3"}):_==="down"?z.jsx(Do,{"code-path":"src/components/ProductDetail.tsx:352:95",className:"w-3 h-3"}):z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:352:134",className:"w-3 h-0.5 bg-current"}),z.jsx("span",{"code-path":"src/components/ProductDetail.tsx:353:21",children:_==="up"?"上涨":_==="down"?"下跌":"震荡"})]})]},m))}),z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:359:13",className:"mt-4 pt-3 border-t border-[#27272a]",children:[z.jsxs("div",{"code-path":"src/components/ProductDetail.tsx:360:15",className:"flex items-center justify-between",children:[z.jsx("span",{"code-path":"src/components/ProductDetail.tsx:361:17",className:"text-sm text-[#a1a1aa]",children:"周期共振度"}),z.jsxs("span",{"code-path":"src/components/ProductDetail.tsx:362:17",className:`text-sm font-bold ${r.trendScore>=80?"text-[#7dd75a]":r.trendScore>=60?"text-[#f59e0b]":"text-[#ef4444]"}`,children:[r.trendScore,"%"]})]}),z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:366:15",className:"mt-2 h-2 bg-[#27272a] rounded-full overflow-hidden",children:z.jsx("div",{"code-path":"src/components/ProductDetail.tsx:367:17",className:`h-full rounded-full transition-all duration-500 ${r.trendScore>=80?"bg-[#7dd75a]":r.trendScore>=60?"bg-[#f59e0b]":"bg-[#ef4444]"}`,style:{width:`${r.trendScore}%`}})})]})]})]})]})]})}function kit({level:r}){const e={high:{text:"高风险",color:"text-[#ef4444]",bg:"bg-[#ef4444]/10",icon:_6},medium:{text:"中风险",color:"text-[#f59e0b]",bg:"bg-[#f59e0b]/10",icon:mx},low:{text:"低风险",color:"text-[#7dd75a]",bg:"bg-[#7dd75a]/10",icon:yx}},{text:t,color:a,bg:n,icon:i}=e[r];return z.jsxs("div",{"code-path":"src/components/RiskAlerts.tsx:19:5",className:`flex items-center gap-1 px-2 py-1 rounded-md ${n}`,children:[z.jsx(i,{"code-path":"src/components/RiskAlerts.tsx:20:7",className:`w-3 h-3 ${a}`}),z.jsx("span",{"code-path":"src/components/RiskAlerts.tsx:21:7",className:`text-xs font-medium ${a}`,children:t})]})}function MN({alerts:r}){return r.length===0?z.jsxs("div",{"code-path":"src/components/RiskAlerts.tsx:29:7",className:"p-4 rounded-xl border border-[#27272a] bg-[#0d0d10]",children:[z.jsxs("div",{"code-path":"src/components/RiskAlerts.tsx:30:9",className:"flex items-center gap-2 mb-4",children:[z.jsx("div",{"code-path":"src/components/RiskAlerts.tsx:31:11",className:"p-2 rounded-lg bg-[#7dd75a]/10",children:z.jsx(yx,{"code-path":"src/components/RiskAlerts.tsx:32:13",className:"w-4 h-4 text-[#7dd75a]"})}),z.jsx("h3",{"code-path":"src/components/RiskAlerts.tsx:34:11",className:"font-semibold text-white",children:"风险提醒"})]}),z.jsxs("div",{"code-path":"src/components/RiskAlerts.tsx:36:9",className:"text-center py-6 text-[#71717a]",children:[z.jsx(yx,{"code-path":"src/components/RiskAlerts.tsx:37:11",className:"w-10 h-10 mx-auto mb-2 opacity-50"}),z.jsx("p",{"code-path":"src/components/RiskAlerts.tsx:38:11",className:"text-sm",children:"当前无重大风险事件"})]})]}):z.jsxs("div",{"code-path":"src/components/RiskAlerts.tsx:45:5",className:"p-4 rounded-xl border border-[#27272a] bg-[#0d0d10]",children:[z.jsxs("div",{"code-path":"src/components/RiskAlerts.tsx:46:7",className:"flex items-center justify-between mb-4",children:[z.jsxs("div",{"code-path":"src/components/RiskAlerts.tsx:47:9",className:"flex items-center gap-2",children:[z.jsx("div",{"code-path":"src/components/RiskAlerts.tsx:48:11",className:"p-2 rounded-lg bg-[#ef4444]/10",children:z.jsx(RN,{"code-path":"src/components/RiskAlerts.tsx:49:13",className:"w-4 h-4 text-[#ef4444]"})}),z.jsx("h3",{"code-path":"src/components/RiskAlerts.tsx:51:11",className:"font-semibold text-white",children:"风险提醒"})]}),z.jsxs("span",{"code-path":"src/components/RiskAlerts.tsx:53:9",className:"px-2 py-1 rounded-full bg-[#ef4444]/10 text-[#ef4444] text-xs font-medium",children:[r.length," 条"]})]}),z.jsx("div",{"code-path":"src/components/RiskAlerts.tsx:58:7",className:"space-y-3",children:r.map(e=>z.jsxs("div",{"code-path":"src/components/RiskAlerts.tsx:60:11",className:"p-3 rounded-lg border border-[#27272a] bg-[#09090b] hover:border-[#ef4444]/30 transition-colors",children:[z.jsxs("div",{"code-path":"src/components/RiskAlerts.tsx:64:13",className:"flex items-start justify-between gap-3 mb-2",children:[z.jsxs("div",{"code-path":"src/components/RiskAlerts.tsx:65:15",className:"flex-1",children:[z.jsx("h4",{"code-path":"src/components/RiskAlerts.tsx:66:17",className:"text-sm font-medium text-white mb-1",children:e.title}),z.jsx("p",{"code-path":"src/components/RiskAlerts.tsx:67:17",className:"text-xs text-[#a1a1aa] line-clamp-2",children:e.description})]}),z.jsx(kit,{"code-path":"src/components/RiskAlerts.tsx:69:15",level:e.riskLevel})]}),z.jsxs("div",{"code-path":"src/components/RiskAlerts.tsx:72:13",className:"flex items-center justify-between text-xs",children:[z.jsxs("div",{"code-path":"src/components/RiskAlerts.tsx:73:15",className:"flex items-center gap-2",children:[z.jsx("span",{"code-path":"src/components/RiskAlerts.tsx:74:17",className:"text-[#71717a]",children:"影响品种:"}),z.jsxs("div",{"code-path":"src/components/RiskAlerts.tsx:75:17",className:"flex gap-1",children:[e.affectedProducts.slice(0,2).map(t=>z.jsx("span",{"code-path":"src/components/RiskAlerts.tsx:77:21",className:"px-1.5 py-0.5 rounded bg-[#27272a] text-[#e6e6e6]",children:t},t)),e.affectedProducts.length>2&&z.jsxs("span",{"code-path":"src/components/RiskAlerts.tsx:82:21",className:"text-[#71717a]",children:["+",e.affectedProducts.length-2]})]})]}),z.jsx("span",{"code-path":"src/components/RiskAlerts.tsx:86:15",className:"text-[#71717a]",children:e.time})]}),z.jsx("div",{"code-path":"src/components/RiskAlerts.tsx:89:13",className:"mt-2 pt-2 border-t border-[#27272a]/50",children:z.jsxs("div",{"code-path":"src/components/RiskAlerts.tsx:90:15",className:"flex items-center gap-1 text-xs",children:[z.jsx(Do,{"code-path":"src/components/RiskAlerts.tsx:91:17",className:"w-3 h-3 text-[#f59e0b]"}),z.jsxs("span",{"code-path":"src/components/RiskAlerts.tsx:92:17",className:"text-[#f59e0b]",children:["建议: ",e.suggestion]})]})})]},e.id))})]})}const Bit=[{key:"all",label:"全部"},{key:"energy",label:"能源"},{key:"metal",label:"金属"},{key:"agriculture",label:"农产品"},{key:"financial",label:"金融"}],Vit=[{key:"successRate",label:"成功率"},{key:"trendScore",label:"趋势强度"},{key:"changePercent",label:"涨跌幅"}];function Git(){const[r,e]=fe.useState("overview"),[t,a]=fe.useState(null),[n,i]=fe.useState("grid"),[o,s]=fe.useState("all"),[l,u]=fe.useState("successRate"),[f,v]=fe.useState(""),d=Ly.filter(w=>!(o!=="all"&&w.category!==o||f&&!w.name.includes(f)&&!w.code.includes(f))).sort((w,A)=>l==="successRate"?A.successRate-w.successRate:l==="trendScore"?A.trendScore-w.trendScore:l==="changePercent"?A.changePercent-w.changePercent:0),[p,y]=fe.useState(!1);fe.useEffect(()=>{y(!0)},[]);const m=()=>z.jsxs("div",{"code-path":"src/App.tsx:84:5",className:`space-y-6 transition-all duration-500 ${p?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,children:[z.jsxs("div",{"code-path":"src/App.tsx:85:7",className:"flex items-center justify-between",children:[z.jsx("h2",{"code-path":"src/App.tsx:86:9",className:"text-xl font-bold text-white",children:"市场概览"}),z.jsx("span",{"code-path":"src/App.tsx:87:9",className:"text-sm text-[#71717a]",children:"实时数据更新"})]}),z.jsx(N6,{"code-path":"src/App.tsx:90:7",data:Lit}),z.jsxs("div",{"code-path":"src/App.tsx:92:7",className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[z.jsx("div",{"code-path":"src/App.tsx:93:9",className:"lg:col-span-2",children:z.jsx(DC,{"code-path":"src/App.tsx:94:11",events:gx})}),z.jsx("div",{"code-path":"src/App.tsx:96:9",children:z.jsx(MN,{"code-path":"src/App.tsx:97:11",alerts:DN})})]})]}),_=()=>z.jsxs("div",{"code-path":"src/App.tsx:105:5",className:"space-y-6",children:[z.jsxs("div",{"code-path":"src/App.tsx:106:7",className:"flex items-center justify-between",children:[z.jsx("h2",{"code-path":"src/App.tsx:107:9",className:"text-xl font-bold text-white",children:"热点事件智能分析"}),z.jsxs("span",{"code-path":"src/App.tsx:108:9",className:"text-sm text-[#71717a]",children:["共 ",gx.length," 条事件"]})]}),z.jsx(DC,{"code-path":"src/App.tsx:110:7",events:gx})]}),S=()=>z.jsx("div",{"code-path":"src/App.tsx:116:5",className:"space-y-6",children:t?z.jsx(zit,{"code-path":"src/App.tsx:118:9",product:t,onBack:()=>a(null)}):z.jsxs(z.Fragment,{children:[z.jsxs("div",{"code-path":"src/App.tsx:125:11",className:"p-4 rounded-xl border border-[#27272a] bg-[#0d0d10] space-y-4",children:[z.jsxs("div",{"code-path":"src/App.tsx:126:13",className:"flex flex-wrap items-center gap-4",children:[z.jsxs("div",{"code-path":"src/App.tsx:128:15",className:"relative flex-1 min-w-[200px]",children:[z.jsx(S6,{"code-path":"src/App.tsx:129:17",className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-[#71717a]"}),z.jsx("input",{"code-path":"src/App.tsx:130:17",type:"text",placeholder:"搜索品种名称或代码...",value:f,onChange:w=>v(w.target.value),className:"w-full pl-10 pr-4 py-2 rounded-lg bg-[#09090b] border border-[#27272a] text-white text-sm placeholder:text-[#71717a] focus:outline-none focus:border-[#7dd75a] transition-colors"})]}),z.jsxs("div",{"code-path":"src/App.tsx:140:15",className:"flex items-center gap-1 p-1 rounded-lg bg-[#09090b] border border-[#27272a]",children:[z.jsx("button",{"code-path":"src/App.tsx:141:17",onClick:()=>i("grid"),className:`p-2 rounded-md transition-colors ${n==="grid"?"bg-[#7dd75a] text-[#09090b]":"text-[#a1a1aa] hover:text-white"}`,children:z.jsx(h6,{"code-path":"src/App.tsx:145:19",className:"w-4 h-4"})}),z.jsx("button",{"code-path":"src/App.tsx:147:17",onClick:()=>i("list"),className:`p-2 rounded-md transition-colors ${n==="list"?"bg-[#7dd75a] text-[#09090b]":"text-[#a1a1aa] hover:text-white"}`,children:z.jsx(d6,{"code-path":"src/App.tsx:151:19",className:"w-4 h-4"})})]})]}),z.jsxs("div",{"code-path":"src/App.tsx:156:13",className:"flex flex-wrap items-center gap-4",children:[z.jsxs("div",{"code-path":"src/App.tsx:158:15",className:"flex items-center gap-2",children:[z.jsx(c6,{"code-path":"src/App.tsx:159:17",className:"w-4 h-4 text-[#71717a]"}),z.jsx("span",{"code-path":"src/App.tsx:160:17",className:"text-sm text-[#a1a1aa]",children:"分类:"}),z.jsx("div",{"code-path":"src/App.tsx:161:17",className:"flex gap-1",children:Bit.map(w=>z.jsx("button",{"code-path":"src/App.tsx:163:21",onClick:()=>s(w.key),className:`px-3 py-1.5 rounded-lg text-sm transition-colors ${o===w.key?"bg-[#7dd75a] text-[#09090b] font-medium":"bg-[#09090b] text-[#a1a1aa] border border-[#27272a] hover:border-[#3f3f46]"}`,children:w.label},w.key))})]}),z.jsxs("div",{"code-path":"src/App.tsx:179:15",className:"flex items-center gap-2",children:[z.jsx("span",{"code-path":"src/App.tsx:180:17",className:"text-sm text-[#a1a1aa]",children:"排序:"}),z.jsx("select",{"code-path":"src/App.tsx:181:17",value:l,onChange:w=>u(w.target.value),className:"px-3 py-1.5 rounded-lg bg-[#09090b] border border-[#27272a] text-white text-sm focus:outline-none focus:border-[#7dd75a]",children:Vit.map(w=>z.jsx("option",{"code-path":"src/App.tsx:187:21",value:w.key,children:w.label},w.key))})]})]})]}),z.jsx("div",{"code-path":"src/App.tsx:197:11",className:"flex items-center justify-between",children:z.jsxs("div",{"code-path":"src/App.tsx:198:13",className:"flex items-center gap-4",children:[z.jsxs("span",{"code-path":"src/App.tsx:199:15",className:"text-sm text-[#a1a1aa]",children:["共 ",z.jsx("span",{"code-path":"src/App.tsx:200:19",className:"text-white font-medium",children:d.length})," 个品种"]}),z.jsxs("div",{"code-path":"src/App.tsx:202:15",className:"flex items-center gap-2 text-sm",children:[z.jsxs("span",{"code-path":"src/App.tsx:203:17",className:"flex items-center gap-1 text-[#7dd75a]",children:[z.jsx(Qs,{"code-path":"src/App.tsx:204:19",className:"w-3 h-3"}),d.filter(w=>w.change>=0).length]}),z.jsxs("span",{"code-path":"src/App.tsx:207:17",className:"flex items-center gap-1 text-[#ef4444]",children:[z.jsx(Do,{"code-path":"src/App.tsx:208:19",className:"w-3 h-3"}),d.filter(w=>w.change<0).length]})]})]})}),n==="grid"?z.jsx("div",{"code-path":"src/App.tsx:217:13",className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4",children:d.map(w=>z.jsx(B6,{"code-path":"src/App.tsx:219:17",product:w,onClick:()=>a(w)},w.id))}):z.jsx("div",{"code-path":"src/App.tsx:227:13",className:"space-y-2",children:d.map(w=>z.jsx("div",{"code-path":"src/App.tsx:229:17",onClick:()=>a(w),className:"p-4 rounded-xl border border-[#27272a] bg-[#0d0d10] hover:border-[#7dd75a]/50 transition-all cursor-pointer",children:z.jsxs("div",{"code-path":"src/App.tsx:234:19",className:"flex items-center justify-between",children:[z.jsxs("div",{"code-path":"src/App.tsx:235:21",className:"flex items-center gap-4",children:[z.jsxs("div",{"code-path":"src/App.tsx:236:23",children:[z.jsx("div",{"code-path":"src/App.tsx:237:25",className:"font-medium text-white",children:w.name}),z.jsx("div",{"code-path":"src/App.tsx:238:25",className:"text-xs text-[#71717a]",children:w.code})]}),z.jsx("div",{"code-path":"src/App.tsx:240:23",className:"flex gap-2",children:Object.entries(w.cycles).map(([A,M])=>z.jsx("span",{"code-path":"src/App.tsx:242:27",className:`px-2 py-1 rounded text-xs ${M==="up"?"bg-[#7dd75a]/10 text-[#7dd75a]":M==="down"?"bg-[#ef4444]/10 text-[#ef4444]":"bg-[#a1a1aa]/10 text-[#a1a1aa]"}`,children:A==="m5"?"5分":A==="m15"?"15分":A==="m30"?"30分":"60分"},A))})]}),z.jsxs("div",{"code-path":"src/App.tsx:255:21",className:"text-right",children:[z.jsxs("div",{"code-path":"src/App.tsx:256:23",className:`font-mono font-medium ${w.change>=0?"text-[#7dd75a]":"text-[#ef4444]"}`,children:["¥",w.price.toLocaleString()]}),z.jsxs("div",{"code-path":"src/App.tsx:259:23",className:`text-sm ${w.change>=0?"text-[#7dd75a]":"text-[#ef4444]"}`,children:[w.change>=0?"+":"",w.changePercent,"%"]})]})]})},w.id))}),d.length===0&&z.jsxs("div",{"code-path":"src/App.tsx:270:13",className:"text-center py-12",children:[z.jsx("div",{"code-path":"src/App.tsx:271:15",className:"text-[#71717a] mb-2",children:"未找到匹配的品种"}),z.jsx("button",{"code-path":"src/App.tsx:272:15",onClick:()=>{s("all"),v("")},className:"text-[#7dd75a] hover:underline",children:"清除筛选条件"})]})]})}),b=()=>z.jsxs("div",{"code-path":"src/App.tsx:290:5",className:"space-y-6",children:[z.jsxs("div",{"code-path":"src/App.tsx:291:7",className:"flex items-center justify-between",children:[z.jsx("h2",{"code-path":"src/App.tsx:292:9",className:"text-xl font-bold text-white",children:"风险提醒"}),z.jsx("span",{"code-path":"src/App.tsx:293:9",className:"text-sm text-[#71717a]",children:"实时监控"})]}),z.jsxs("div",{"code-path":"src/App.tsx:296:7",className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[z.jsx(MN,{"code-path":"src/App.tsx:297:9",alerts:DN}),z.jsxs("div",{"code-path":"src/App.tsx:299:9",className:"p-6 rounded-xl border border-[#27272a] bg-[#0d0d10]",children:[z.jsx("h3",{"code-path":"src/App.tsx:300:11",className:"font-semibold text-white mb-4",children:"风险控制建议"}),z.jsxs("div",{"code-path":"src/App.tsx:301:11",className:"space-y-4",children:[z.jsxs("div",{"code-path":"src/App.tsx:302:13",className:"p-4 rounded-lg bg-[#ef4444]/5 border border-[#ef4444]/20",children:[z.jsxs("div",{"code-path":"src/App.tsx:303:15",className:"flex items-center gap-2 mb-2",children:[z.jsx("div",{"code-path":"src/App.tsx:304:17",className:"w-2 h-2 rounded-full bg-[#ef4444]"}),z.jsx("span",{"code-path":"src/App.tsx:305:17",className:"font-medium text-white",children:"高风险环境"})]}),z.jsx("p",{"code-path":"src/App.tsx:307:15",className:"text-sm text-[#a1a1aa]",children:"当前地缘政治风险急剧升温建议控制仓位在30%以下,设置严格止损。"})]}),z.jsxs("div",{"code-path":"src/App.tsx:312:13",className:"p-4 rounded-lg bg-[#f59e0b]/5 border border-[#f59e0b]/20",children:[z.jsxs("div",{"code-path":"src/App.tsx:313:15",className:"flex items-center gap-2 mb-2",children:[z.jsx("div",{"code-path":"src/App.tsx:314:17",className:"w-2 h-2 rounded-full bg-[#f59e0b]"}),z.jsx("span",{"code-path":"src/App.tsx:315:17",className:"font-medium text-white",children:"持仓管理"})]}),z.jsx("p",{"code-path":"src/App.tsx:317:15",className:"text-sm text-[#a1a1aa]",children:"避免隔夜重仓,特别是原油、黄金等波动较大的品种。建议日内交易为主。"})]}),z.jsxs("div",{"code-path":"src/App.tsx:322:13",className:"p-4 rounded-lg bg-[#7dd75a]/5 border border-[#7dd75a]/20",children:[z.jsxs("div",{"code-path":"src/App.tsx:323:15",className:"flex items-center gap-2 mb-2",children:[z.jsx("div",{"code-path":"src/App.tsx:324:17",className:"w-2 h-2 rounded-full bg-[#7dd75a]"}),z.jsx("span",{"code-path":"src/App.tsx:325:17",className:"font-medium text-white",children:"机会提示"})]}),z.jsx("p",{"code-path":"src/App.tsx:327:15",className:"text-sm text-[#a1a1aa]",children:"黄金、原油趋势明确,可关注回调后的做多机会。严格设置止损。"})]})]})]})]})]});return z.jsxs("div",{"code-path":"src/App.tsx:338:5",className:"min-h-screen bg-[#09090b]",children:[z.jsx(E6,{"code-path":"src/App.tsx:339:7",activeTab:r,onTabChange:e}),z.jsx("main",{"code-path":"src/App.tsx:341:7",className:"pt-20 pb-8 px-4 sm:px-6 lg:px-8",children:z.jsxs("div",{"code-path":"src/App.tsx:342:9",className:"max-w-7xl mx-auto",children:[r==="overview"&&m(),r==="events"&&_(),r==="products"&&S(),r==="risks"&&b()]})})]})}jV.createRoot(document.getElementById("root")).render(z.jsx(fe.StrictMode,{"code-path":"src/main.tsx:7:3",children:z.jsx(Git,{"code-path":"src/main.tsx:8:5"})}));