codexmeter 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,113 @@
1
+ (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();function eS(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function DI(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return t[r]}})}),n}var Pm={exports:{}},zu={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var RM;function RI(){if(RM)return zu;RM=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,a,i){var o=null;if(i!==void 0&&(o=""+i),a.key!==void 0&&(o=""+a.key),"key"in a){i={};for(var u in a)u!=="key"&&(i[u]=a[u])}else i=a;return a=i.ref,{$$typeof:t,type:r,key:o,ref:a!==void 0?a:null,props:i}}return zu.Fragment=e,zu.jsx=n,zu.jsxs=n,zu}var EM;function EI(){return EM||(EM=1,Pm.exports=RI()),Pm.exports}var B=EI(),Hm={exports:{}},Lt={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var LM;function LI(){if(LM)return Lt;LM=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),g=Symbol.iterator;function p(P){return P===null||typeof P!="object"?null:(P=g&&P[g]||P["@@iterator"],typeof P=="function"?P:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,S={};function x(P,q,rt){this.props=P,this.context=q,this.refs=S,this.updater=rt||y}x.prototype.isReactComponent={},x.prototype.setState=function(P,q){if(typeof P!="object"&&typeof P!="function"&&P!=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,P,q,"setState")},x.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function M(){}M.prototype=x.prototype;function C(P,q,rt){this.props=P,this.context=q,this.refs=S,this.updater=rt||y}var T=C.prototype=new M;T.constructor=C,_(T,x.prototype),T.isPureReactComponent=!0;var D=Array.isArray;function R(){}var E={H:null,A:null,T:null,S:null},z=Object.prototype.hasOwnProperty;function I(P,q,rt){var it=rt.ref;return{$$typeof:t,type:P,key:q,ref:it!==void 0?it:null,props:rt}}function N(P,q){return I(P.type,q,P.props)}function L(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function V(P){var q={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(rt){return q[rt]})}var G=/\/+/g;function j(P,q){return typeof P=="object"&&P!==null&&P.key!=null?V(""+P.key):q.toString(36)}function X(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(R,R):(P.status="pending",P.then(function(q){P.status==="pending"&&(P.status="fulfilled",P.value=q)},function(q){P.status==="pending"&&(P.status="rejected",P.reason=q)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function H(P,q,rt,it,ft){var gt=typeof P;(gt==="undefined"||gt==="boolean")&&(P=null);var wt=!1;if(P===null)wt=!0;else switch(gt){case"bigint":case"string":case"number":wt=!0;break;case"object":switch(P.$$typeof){case t:case e:wt=!0;break;case v:return wt=P._init,H(wt(P._payload),q,rt,it,ft)}}if(wt)return ft=ft(P),wt=it===""?"."+j(P,0):it,D(ft)?(rt="",wt!=null&&(rt=wt.replace(G,"$&/")+"/"),H(ft,q,rt,"",function(te){return te})):ft!=null&&(L(ft)&&(ft=N(ft,rt+(ft.key==null||P&&P.key===ft.key?"":(""+ft.key).replace(G,"$&/")+"/")+wt)),q.push(ft)),1;wt=0;var Kt=it===""?".":it+":";if(D(P))for(var St=0;St<P.length;St++)it=P[St],gt=Kt+j(it,St),wt+=H(it,q,rt,gt,ft);else if(St=p(P),typeof St=="function")for(P=St.call(P),St=0;!(it=P.next()).done;)it=it.value,gt=Kt+j(it,St++),wt+=H(it,q,rt,gt,ft);else if(gt==="object"){if(typeof P.then=="function")return H(X(P),q,rt,it,ft);throw q=String(P),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return wt}function Q(P,q,rt){if(P==null)return P;var it=[],ft=0;return H(P,it,"","",function(gt){return q.call(rt,gt,ft++)}),it}function Z(P){if(P._status===-1){var q=P._result;q=q(),q.then(function(rt){(P._status===0||P._status===-1)&&(P._status=1,P._result=rt)},function(rt){(P._status===0||P._status===-1)&&(P._status=2,P._result=rt)}),P._status===-1&&(P._status=0,P._result=q)}if(P._status===1)return P._result.default;throw P._result}var J=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)},ot={map:Q,forEach:function(P,q,rt){Q(P,function(){q.apply(this,arguments)},rt)},count:function(P){var q=0;return Q(P,function(){q++}),q},toArray:function(P){return Q(P,function(q){return q})||[]},only:function(P){if(!L(P))throw Error("React.Children.only expected to receive a single React element child.");return P}};return Lt.Activity=d,Lt.Children=ot,Lt.Component=x,Lt.Fragment=n,Lt.Profiler=a,Lt.PureComponent=C,Lt.StrictMode=r,Lt.Suspense=f,Lt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E,Lt.__COMPILER_RUNTIME={__proto__:null,c:function(P){return E.H.useMemoCache(P)}},Lt.cache=function(P){return function(){return P.apply(null,arguments)}},Lt.cacheSignal=function(){return null},Lt.cloneElement=function(P,q,rt){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var it=_({},P.props),ft=P.key;if(q!=null)for(gt in q.key!==void 0&&(ft=""+q.key),q)!z.call(q,gt)||gt==="key"||gt==="__self"||gt==="__source"||gt==="ref"&&q.ref===void 0||(it[gt]=q[gt]);var gt=arguments.length-2;if(gt===1)it.children=rt;else if(1<gt){for(var wt=Array(gt),Kt=0;Kt<gt;Kt++)wt[Kt]=arguments[Kt+2];it.children=wt}return I(P.type,ft,it)},Lt.createContext=function(P){return P={$$typeof:o,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:i,_context:P},P},Lt.createElement=function(P,q,rt){var it,ft={},gt=null;if(q!=null)for(it in q.key!==void 0&&(gt=""+q.key),q)z.call(q,it)&&it!=="key"&&it!=="__self"&&it!=="__source"&&(ft[it]=q[it]);var wt=arguments.length-2;if(wt===1)ft.children=rt;else if(1<wt){for(var Kt=Array(wt),St=0;St<wt;St++)Kt[St]=arguments[St+2];ft.children=Kt}if(P&&P.defaultProps)for(it in wt=P.defaultProps,wt)ft[it]===void 0&&(ft[it]=wt[it]);return I(P,gt,ft)},Lt.createRef=function(){return{current:null}},Lt.forwardRef=function(P){return{$$typeof:u,render:P}},Lt.isValidElement=L,Lt.lazy=function(P){return{$$typeof:v,_payload:{_status:-1,_result:P},_init:Z}},Lt.memo=function(P,q){return{$$typeof:c,type:P,compare:q===void 0?null:q}},Lt.startTransition=function(P){var q=E.T,rt={};E.T=rt;try{var it=P(),ft=E.S;ft!==null&&ft(rt,it),typeof it=="object"&&it!==null&&typeof it.then=="function"&&it.then(R,J)}catch(gt){J(gt)}finally{q!==null&&rt.types!==null&&(q.types=rt.types),E.T=q}},Lt.unstable_useCacheRefresh=function(){return E.H.useCacheRefresh()},Lt.use=function(P){return E.H.use(P)},Lt.useActionState=function(P,q,rt){return E.H.useActionState(P,q,rt)},Lt.useCallback=function(P,q){return E.H.useCallback(P,q)},Lt.useContext=function(P){return E.H.useContext(P)},Lt.useDebugValue=function(){},Lt.useDeferredValue=function(P,q){return E.H.useDeferredValue(P,q)},Lt.useEffect=function(P,q){return E.H.useEffect(P,q)},Lt.useEffectEvent=function(P){return E.H.useEffectEvent(P)},Lt.useId=function(){return E.H.useId()},Lt.useImperativeHandle=function(P,q,rt){return E.H.useImperativeHandle(P,q,rt)},Lt.useInsertionEffect=function(P,q){return E.H.useInsertionEffect(P,q)},Lt.useLayoutEffect=function(P,q){return E.H.useLayoutEffect(P,q)},Lt.useMemo=function(P,q){return E.H.useMemo(P,q)},Lt.useOptimistic=function(P,q){return E.H.useOptimistic(P,q)},Lt.useReducer=function(P,q,rt){return E.H.useReducer(P,q,rt)},Lt.useRef=function(P){return E.H.useRef(P)},Lt.useState=function(P){return E.H.useState(P)},Lt.useSyncExternalStore=function(P,q,rt){return E.H.useSyncExternalStore(P,q,rt)},Lt.useTransition=function(){return E.H.useTransition()},Lt.version="19.2.4",Lt}var OM;function Rd(){return OM||(OM=1,Hm.exports=LI()),Hm.exports}var lt=Rd();const Ed=eS(lt);var Vm={exports:{}},Nu={},Fm={exports:{}},Gm={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var zM;function OI(){return zM||(zM=1,(function(t){function e(H,Q){var Z=H.length;H.push(Q);t:for(;0<Z;){var J=Z-1>>>1,ot=H[J];if(0<a(ot,Q))H[J]=Q,H[Z]=ot,Z=J;else break t}}function n(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var Q=H[0],Z=H.pop();if(Z!==Q){H[0]=Z;t:for(var J=0,ot=H.length,P=ot>>>1;J<P;){var q=2*(J+1)-1,rt=H[q],it=q+1,ft=H[it];if(0>a(rt,Z))it<ot&&0>a(ft,rt)?(H[J]=ft,H[it]=Z,J=it):(H[J]=rt,H[q]=Z,J=q);else if(it<ot&&0>a(ft,Z))H[J]=ft,H[it]=Z,J=it;else break t}}return Q}function a(H,Q){var Z=H.sortIndex-Q.sortIndex;return Z!==0?Z:H.id-Q.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,u=o.now();t.unstable_now=function(){return o.now()-u}}var f=[],c=[],v=1,d=null,g=3,p=!1,y=!1,_=!1,S=!1,x=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function T(H){for(var Q=n(c);Q!==null;){if(Q.callback===null)r(c);else if(Q.startTime<=H)r(c),Q.sortIndex=Q.expirationTime,e(f,Q);else break;Q=n(c)}}function D(H){if(_=!1,T(H),!y)if(n(f)!==null)y=!0,R||(R=!0,V());else{var Q=n(c);Q!==null&&X(D,Q.startTime-H)}}var R=!1,E=-1,z=5,I=-1;function N(){return S?!0:!(t.unstable_now()-I<z)}function L(){if(S=!1,R){var H=t.unstable_now();I=H;var Q=!0;try{t:{y=!1,_&&(_=!1,M(E),E=-1),p=!0;var Z=g;try{e:{for(T(H),d=n(f);d!==null&&!(d.expirationTime>H&&N());){var J=d.callback;if(typeof J=="function"){d.callback=null,g=d.priorityLevel;var ot=J(d.expirationTime<=H);if(H=t.unstable_now(),typeof ot=="function"){d.callback=ot,T(H),Q=!0;break e}d===n(f)&&r(f),T(H)}else r(f);d=n(f)}if(d!==null)Q=!0;else{var P=n(c);P!==null&&X(D,P.startTime-H),Q=!1}}break t}finally{d=null,g=Z,p=!1}Q=void 0}}finally{Q?V():R=!1}}}var V;if(typeof C=="function")V=function(){C(L)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,j=G.port2;G.port1.onmessage=L,V=function(){j.postMessage(null)}}else V=function(){x(L,0)};function X(H,Q){E=x(function(){H(t.unstable_now())},Q)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(H){H.callback=null},t.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<H?Math.floor(1e3/H):5},t.unstable_getCurrentPriorityLevel=function(){return g},t.unstable_next=function(H){switch(g){case 1:case 2:case 3:var Q=3;break;default:Q=g}var Z=g;g=Q;try{return H()}finally{g=Z}},t.unstable_requestPaint=function(){S=!0},t.unstable_runWithPriority=function(H,Q){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var Z=g;g=H;try{return Q()}finally{g=Z}},t.unstable_scheduleCallback=function(H,Q,Z){var J=t.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?J+Z:J):Z=J,H){case 1:var ot=-1;break;case 2:ot=250;break;case 5:ot=1073741823;break;case 4:ot=1e4;break;default:ot=5e3}return ot=Z+ot,H={id:v++,callback:Q,priorityLevel:H,startTime:Z,expirationTime:ot,sortIndex:-1},Z>J?(H.sortIndex=Z,e(c,H),n(f)===null&&H===n(c)&&(_?(M(E),E=-1):_=!0,X(D,Z-J))):(H.sortIndex=ot,e(f,H),y||p||(y=!0,R||(R=!0,V()))),H},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(H){var Q=g;return function(){var Z=g;g=Q;try{return H.apply(this,arguments)}finally{g=Z}}}})(Gm)),Gm}var NM;function zI(){return NM||(NM=1,Fm.exports=OI()),Fm.exports}var Um={exports:{}},an={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var IM;function NI(){if(IM)return an;IM=1;var t=Rd();function e(f){var c="https://react.dev/errors/"+f;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)c+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+f+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function i(f,c,v){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:d==null?null:""+d,children:f,containerInfo:c,implementation:v}}var o=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(f,c){if(f==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return an.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,an.createPortal=function(f,c){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(e(299));return i(f,c,null,v)},an.flushSync=function(f){var c=o.T,v=r.p;try{if(o.T=null,r.p=2,f)return f()}finally{o.T=c,r.p=v,r.d.f()}},an.preconnect=function(f,c){typeof f=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,r.d.C(f,c))},an.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},an.preinit=function(f,c){if(typeof f=="string"&&c&&typeof c.as=="string"){var v=c.as,d=u(v,c.crossOrigin),g=typeof c.integrity=="string"?c.integrity:void 0,p=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;v==="style"?r.d.S(f,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:d,integrity:g,fetchPriority:p}):v==="script"&&r.d.X(f,{crossOrigin:d,integrity:g,fetchPriority:p,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},an.preinitModule=function(f,c){if(typeof f=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var v=u(c.as,c.crossOrigin);r.d.M(f,{crossOrigin:v,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&r.d.M(f)},an.preload=function(f,c){if(typeof f=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var v=c.as,d=u(v,c.crossOrigin);r.d.L(f,v,{crossOrigin:d,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},an.preloadModule=function(f,c){if(typeof f=="string")if(c){var v=u(c.as,c.crossOrigin);r.d.m(f,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:v,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else r.d.m(f)},an.requestFormReset=function(f){r.d.r(f)},an.unstable_batchedUpdates=function(f,c){return f(c)},an.useFormState=function(f,c,v){return o.H.useFormState(f,c,v)},an.useFormStatus=function(){return o.H.useHostTransitionStatus()},an.version="19.2.4",an}var BM;function D2(){if(BM)return Um.exports;BM=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Um.exports=NI(),Um.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var kM;function II(){if(kM)return Nu;kM=1;var t=zI(),e=Rd(),n=D2();function r(l){var s="https://react.dev/errors/"+l;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)s+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+l+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function i(l){var s=l,h=l;if(l.alternate)for(;s.return;)s=s.return;else{l=s;do s=l,(s.flags&4098)!==0&&(h=s.return),l=s.return;while(l)}return s.tag===3?h:null}function o(l){if(l.tag===13){var s=l.memoizedState;if(s===null&&(l=l.alternate,l!==null&&(s=l.memoizedState)),s!==null)return s.dehydrated}return null}function u(l){if(l.tag===31){var s=l.memoizedState;if(s===null&&(l=l.alternate,l!==null&&(s=l.memoizedState)),s!==null)return s.dehydrated}return null}function f(l){if(i(l)!==l)throw Error(r(188))}function c(l){var s=l.alternate;if(!s){if(s=i(l),s===null)throw Error(r(188));return s!==l?null:l}for(var h=l,m=s;;){var b=h.return;if(b===null)break;var w=b.alternate;if(w===null){if(m=b.return,m!==null){h=m;continue}break}if(b.child===w.child){for(w=b.child;w;){if(w===h)return f(b),l;if(w===m)return f(b),s;w=w.sibling}throw Error(r(188))}if(h.return!==m.return)h=b,m=w;else{for(var A=!1,O=b.child;O;){if(O===h){A=!0,h=b,m=w;break}if(O===m){A=!0,m=b,h=w;break}O=O.sibling}if(!A){for(O=w.child;O;){if(O===h){A=!0,h=w,m=b;break}if(O===m){A=!0,m=w,h=b;break}O=O.sibling}if(!A)throw Error(r(189))}}if(h.alternate!==m)throw Error(r(190))}if(h.tag!==3)throw Error(r(188));return h.stateNode.current===h?l:s}function v(l){var s=l.tag;if(s===5||s===26||s===27||s===6)return l;for(l=l.child;l!==null;){if(s=v(l),s!==null)return s;l=l.sibling}return null}var d=Object.assign,g=Symbol.for("react.element"),p=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),C=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),N=Symbol.for("react.memo_cache_sentinel"),L=Symbol.iterator;function V(l){return l===null||typeof l!="object"?null:(l=L&&l[L]||l["@@iterator"],typeof l=="function"?l:null)}var G=Symbol.for("react.client.reference");function j(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===G?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case _:return"Fragment";case x:return"Profiler";case S:return"StrictMode";case D:return"Suspense";case R:return"SuspenseList";case I:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case y:return"Portal";case C:return l.displayName||"Context";case M:return(l._context.displayName||"Context")+".Consumer";case T:var s=l.render;return l=l.displayName,l||(l=s.displayName||s.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case E:return s=l.displayName||null,s!==null?s:j(l.type)||"Memo";case z:s=l._payload,l=l._init;try{return j(l(s))}catch{}}return null}var X=Array.isArray,H=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},J=[],ot=-1;function P(l){return{current:l}}function q(l){0>ot||(l.current=J[ot],J[ot]=null,ot--)}function rt(l,s){ot++,J[ot]=l.current,l.current=s}var it=P(null),ft=P(null),gt=P(null),wt=P(null);function Kt(l,s){switch(rt(gt,s),rt(ft,l),rt(it,null),s.nodeType){case 9:case 11:l=(l=s.documentElement)&&(l=l.namespaceURI)?Kw(l):0;break;default:if(l=s.tagName,s=s.namespaceURI)s=Kw(s),l=Jw(s,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}q(it),rt(it,l)}function St(){q(it),q(ft),q(gt)}function te(l){l.memoizedState!==null&&rt(wt,l);var s=it.current,h=Jw(s,l.type);s!==h&&(rt(ft,l),rt(it,h))}function bt(l){ft.current===l&&(q(it),q(ft)),wt.current===l&&(q(wt),Ru._currentValue=Z)}var Nt,pn;function ue(l){if(Nt===void 0)try{throw Error()}catch(h){var s=h.stack.trim().match(/\n( *(at )?)/);Nt=s&&s[1]||"",pn=-1<h.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<h.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Nt+l+pn}var Dn=!1;function Be(l,s){if(!l||Dn)return"";Dn=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(s){var at=function(){throw Error()};if(Object.defineProperty(at.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(at,[])}catch(tt){var K=tt}Reflect.construct(l,[],at)}else{try{at.call()}catch(tt){K=tt}l.call(at.prototype)}}else{try{throw Error()}catch(tt){K=tt}(at=l())&&typeof at.catch=="function"&&at.catch(function(){})}}catch(tt){if(tt&&K&&typeof tt.stack=="string")return[tt.stack,K.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=m.DetermineComponentFrameRoot(),A=w[0],O=w[1];if(A&&O){var F=A.split(`
44
+ `),W=O.split(`
45
+ `);for(b=m=0;m<F.length&&!F[m].includes("DetermineComponentFrameRoot");)m++;for(;b<W.length&&!W[b].includes("DetermineComponentFrameRoot");)b++;if(m===F.length||b===W.length)for(m=F.length-1,b=W.length-1;1<=m&&0<=b&&F[m]!==W[b];)b--;for(;1<=m&&0<=b;m--,b--)if(F[m]!==W[b]){if(m!==1||b!==1)do if(m--,b--,0>b||F[m]!==W[b]){var et=`
46
+ `+F[m].replace(" at new "," at ");return l.displayName&&et.includes("<anonymous>")&&(et=et.replace("<anonymous>",l.displayName)),et}while(1<=m&&0<=b);break}}}finally{Dn=!1,Error.prepareStackTrace=h}return(h=l?l.displayName||l.name:"")?ue(h):""}function Nr(l,s){switch(l.tag){case 26:case 27:case 5:return ue(l.type);case 16:return ue("Lazy");case 13:return l.child!==s&&s!==null?ue("Suspense Fallback"):ue("Suspense");case 19:return ue("SuspenseList");case 0:case 15:return Be(l.type,!1);case 11:return Be(l.type.render,!1);case 1:return Be(l.type,!0);case 31:return ue("Activity");default:return""}}function Ce(l){try{var s="",h=null;do s+=Nr(l,h),h=l,l=l.return;while(l);return s}catch(m){return`
47
+ Error generating stack: `+m.message+`
48
+ `+m.stack}}var Zn=Object.prototype.hasOwnProperty,ao=t.unstable_scheduleCallback,vt=t.unstable_cancelCallback,Ee=t.unstable_shouldYield,Zt=t.unstable_requestPaint,ge=t.unstable_now,lr=t.unstable_getCurrentPriorityLevel,gn=t.unstable_ImmediatePriority,Ir=t.unstable_UserBlockingPriority,nn=t.unstable_NormalPriority,io=t.unstable_LowPriority,ya=t.unstable_IdlePriority,pl=t.log,Rn=t.unstable_setDisableYieldValue,_a=null,rn=null;function Sa(l){if(typeof pl=="function"&&Rn(l),rn&&typeof rn.setStrictMode=="function")try{rn.setStrictMode(_a,l)}catch{}}var It=Math.clz32?Math.clz32:gl,Jt=Math.log,ba=Math.LN2;function gl(l){return l>>>=0,l===0?32:31-(Jt(l)/ba|0)|0}var ml=256,yl=262144,_c=4194304;function oo(l){var s=l&42;if(s!==0)return s;switch(l&-l){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 l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function Sc(l,s,h){var m=l.pendingLanes;if(m===0)return 0;var b=0,w=l.suspendedLanes,A=l.pingedLanes;l=l.warmLanes;var O=m&134217727;return O!==0?(m=O&~w,m!==0?b=oo(m):(A&=O,A!==0?b=oo(A):h||(h=O&~l,h!==0&&(b=oo(h))))):(O=m&~w,O!==0?b=oo(O):A!==0?b=oo(A):h||(h=m&~l,h!==0&&(b=oo(h)))),b===0?0:s!==0&&s!==b&&(s&w)===0&&(w=b&-b,h=s&-s,w>=h||w===32&&(h&4194048)!==0)?s:b}function Gs(l,s){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&s)===0}function pz(l,s){switch(l){case 1:case 2:case 4:case 8:case 64:return s+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 s+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 O1(){var l=_c;return _c<<=1,(_c&62914560)===0&&(_c=4194304),l}function Tp(l){for(var s=[],h=0;31>h;h++)s.push(l);return s}function Us(l,s){l.pendingLanes|=s,s!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function gz(l,s,h,m,b,w){var A=l.pendingLanes;l.pendingLanes=h,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=h,l.entangledLanes&=h,l.errorRecoveryDisabledLanes&=h,l.shellSuspendCounter=0;var O=l.entanglements,F=l.expirationTimes,W=l.hiddenUpdates;for(h=A&~h;0<h;){var et=31-It(h),at=1<<et;O[et]=0,F[et]=-1;var K=W[et];if(K!==null)for(W[et]=null,et=0;et<K.length;et++){var tt=K[et];tt!==null&&(tt.lane&=-536870913)}h&=~at}m!==0&&z1(l,m,0),w!==0&&b===0&&l.tag!==0&&(l.suspendedLanes|=w&~(A&~s))}function z1(l,s,h){l.pendingLanes|=s,l.suspendedLanes&=~s;var m=31-It(s);l.entangledLanes|=s,l.entanglements[m]=l.entanglements[m]|1073741824|h&261930}function N1(l,s){var h=l.entangledLanes|=s;for(l=l.entanglements;h;){var m=31-It(h),b=1<<m;b&s|l[m]&s&&(l[m]|=s),h&=~b}}function I1(l,s){var h=s&-s;return h=(h&42)!==0?1:Ap(h),(h&(l.suspendedLanes|s))!==0?0:h}function Ap(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=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:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function Dp(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function B1(){var l=Q.p;return l!==0?l:(l=window.event,l===void 0?32:xM(l.type))}function k1(l,s){var h=Q.p;try{return Q.p=l,s()}finally{Q.p=h}}var ai=Math.random().toString(36).slice(2),Xe="__reactFiber$"+ai,En="__reactProps$"+ai,_l="__reactContainer$"+ai,Rp="__reactEvents$"+ai,mz="__reactListeners$"+ai,yz="__reactHandles$"+ai,P1="__reactResources$"+ai,js="__reactMarker$"+ai;function Ep(l){delete l[Xe],delete l[En],delete l[Rp],delete l[mz],delete l[yz]}function Sl(l){var s=l[Xe];if(s)return s;for(var h=l.parentNode;h;){if(s=h[_l]||h[Xe]){if(h=s.alternate,s.child!==null||h!==null&&h.child!==null)for(l=oM(l);l!==null;){if(h=l[Xe])return h;l=oM(l)}return s}l=h,h=l.parentNode}return null}function bl(l){if(l=l[Xe]||l[_l]){var s=l.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return l}return null}function Ys(l){var s=l.tag;if(s===5||s===26||s===27||s===6)return l.stateNode;throw Error(r(33))}function xl(l){var s=l[P1];return s||(s=l[P1]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Ge(l){l[js]=!0}var H1=new Set,V1={};function lo(l,s){wl(l,s),wl(l+"Capture",s)}function wl(l,s){for(V1[l]=s,l=0;l<s.length;l++)H1.add(s[l])}var _z=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]*$"),F1={},G1={};function Sz(l){return Zn.call(G1,l)?!0:Zn.call(F1,l)?!1:_z.test(l)?G1[l]=!0:(F1[l]=!0,!1)}function bc(l,s,h){if(Sz(s))if(h===null)l.removeAttribute(s);else{switch(typeof h){case"undefined":case"function":case"symbol":l.removeAttribute(s);return;case"boolean":var m=s.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){l.removeAttribute(s);return}}l.setAttribute(s,""+h)}}function xc(l,s,h){if(h===null)l.removeAttribute(s);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(s);return}l.setAttribute(s,""+h)}}function xa(l,s,h,m){if(m===null)l.removeAttribute(h);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(h);return}l.setAttributeNS(s,h,""+m)}}function sr(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function U1(l){var s=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function bz(l,s,h){var m=Object.getOwnPropertyDescriptor(l.constructor.prototype,s);if(!l.hasOwnProperty(s)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var b=m.get,w=m.set;return Object.defineProperty(l,s,{configurable:!0,get:function(){return b.call(this)},set:function(A){h=""+A,w.call(this,A)}}),Object.defineProperty(l,s,{enumerable:m.enumerable}),{getValue:function(){return h},setValue:function(A){h=""+A},stopTracking:function(){l._valueTracker=null,delete l[s]}}}}function Lp(l){if(!l._valueTracker){var s=U1(l)?"checked":"value";l._valueTracker=bz(l,s,""+l[s])}}function j1(l){if(!l)return!1;var s=l._valueTracker;if(!s)return!0;var h=s.getValue(),m="";return l&&(m=U1(l)?l.checked?"true":"false":l.value),l=m,l!==h?(s.setValue(l),!0):!1}function wc(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var xz=/[\n"\\]/g;function ur(l){return l.replace(xz,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Op(l,s,h,m,b,w,A,O){l.name="",A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?l.type=A:l.removeAttribute("type"),s!=null?A==="number"?(s===0&&l.value===""||l.value!=s)&&(l.value=""+sr(s)):l.value!==""+sr(s)&&(l.value=""+sr(s)):A!=="submit"&&A!=="reset"||l.removeAttribute("value"),s!=null?zp(l,A,sr(s)):h!=null?zp(l,A,sr(h)):m!=null&&l.removeAttribute("value"),b==null&&w!=null&&(l.defaultChecked=!!w),b!=null&&(l.checked=b&&typeof b!="function"&&typeof b!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?l.name=""+sr(O):l.removeAttribute("name")}function Y1(l,s,h,m,b,w,A,O){if(w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(l.type=w),s!=null||h!=null){if(!(w!=="submit"&&w!=="reset"||s!=null)){Lp(l);return}h=h!=null?""+sr(h):"",s=s!=null?""+sr(s):h,O||s===l.value||(l.value=s),l.defaultValue=s}m=m??b,m=typeof m!="function"&&typeof m!="symbol"&&!!m,l.checked=O?l.checked:!!m,l.defaultChecked=!!m,A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(l.name=A),Lp(l)}function zp(l,s,h){s==="number"&&wc(l.ownerDocument)===l||l.defaultValue===""+h||(l.defaultValue=""+h)}function Ml(l,s,h,m){if(l=l.options,s){s={};for(var b=0;b<h.length;b++)s["$"+h[b]]=!0;for(h=0;h<l.length;h++)b=s.hasOwnProperty("$"+l[h].value),l[h].selected!==b&&(l[h].selected=b),b&&m&&(l[h].defaultSelected=!0)}else{for(h=""+sr(h),s=null,b=0;b<l.length;b++){if(l[b].value===h){l[b].selected=!0,m&&(l[b].defaultSelected=!0);return}s!==null||l[b].disabled||(s=l[b])}s!==null&&(s.selected=!0)}}function q1(l,s,h){if(s!=null&&(s=""+sr(s),s!==l.value&&(l.value=s),h==null)){l.defaultValue!==s&&(l.defaultValue=s);return}l.defaultValue=h!=null?""+sr(h):""}function X1(l,s,h,m){if(s==null){if(m!=null){if(h!=null)throw Error(r(92));if(X(m)){if(1<m.length)throw Error(r(93));m=m[0]}h=m}h==null&&(h=""),s=h}h=sr(s),l.defaultValue=h,m=l.textContent,m===h&&m!==""&&m!==null&&(l.value=m),Lp(l)}function Cl(l,s){if(s){var h=l.firstChild;if(h&&h===l.lastChild&&h.nodeType===3){h.nodeValue=s;return}}l.textContent=s}var wz=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 Z1(l,s,h){var m=s.indexOf("--")===0;h==null||typeof h=="boolean"||h===""?m?l.setProperty(s,""):s==="float"?l.cssFloat="":l[s]="":m?l.setProperty(s,h):typeof h!="number"||h===0||wz.has(s)?s==="float"?l.cssFloat=h:l[s]=(""+h).trim():l[s]=h+"px"}function $1(l,s,h){if(s!=null&&typeof s!="object")throw Error(r(62));if(l=l.style,h!=null){for(var m in h)!h.hasOwnProperty(m)||s!=null&&s.hasOwnProperty(m)||(m.indexOf("--")===0?l.setProperty(m,""):m==="float"?l.cssFloat="":l[m]="");for(var b in s)m=s[b],s.hasOwnProperty(b)&&h[b]!==m&&Z1(l,b,m)}else for(var w in s)s.hasOwnProperty(w)&&Z1(l,w,s[w])}function Np(l){if(l.indexOf("-")===-1)return!1;switch(l){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 Mz=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"]]),Cz=/^[\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 Mc(l){return Cz.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}function wa(){}var Ip=null;function Bp(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Tl=null,Al=null;function W1(l){var s=bl(l);if(s&&(l=s.stateNode)){var h=l[En]||null;t:switch(l=s.stateNode,s.type){case"input":if(Op(l,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name),s=h.name,h.type==="radio"&&s!=null){for(h=l;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll('input[name="'+ur(""+s)+'"][type="radio"]'),s=0;s<h.length;s++){var m=h[s];if(m!==l&&m.form===l.form){var b=m[En]||null;if(!b)throw Error(r(90));Op(m,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name)}}for(s=0;s<h.length;s++)m=h[s],m.form===l.form&&j1(m)}break t;case"textarea":q1(l,h.value,h.defaultValue);break t;case"select":s=h.value,s!=null&&Ml(l,!!h.multiple,s,!1)}}}var kp=!1;function Q1(l,s,h){if(kp)return l(s,h);kp=!0;try{var m=l(s);return m}finally{if(kp=!1,(Tl!==null||Al!==null)&&(ch(),Tl&&(s=Tl,l=Al,Al=Tl=null,W1(s),l)))for(s=0;s<l.length;s++)W1(l[s])}}function qs(l,s){var h=l.stateNode;if(h===null)return null;var m=h[En]||null;if(m===null)return null;h=m[s];t:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(l=l.type,m=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!m;break t;default:l=!1}if(l)return null;if(h&&typeof h!="function")throw Error(r(231,s,typeof h));return h}var Ma=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pp=!1;if(Ma)try{var Xs={};Object.defineProperty(Xs,"passive",{get:function(){Pp=!0}}),window.addEventListener("test",Xs,Xs),window.removeEventListener("test",Xs,Xs)}catch{Pp=!1}var ii=null,Hp=null,Cc=null;function K1(){if(Cc)return Cc;var l,s=Hp,h=s.length,m,b="value"in ii?ii.value:ii.textContent,w=b.length;for(l=0;l<h&&s[l]===b[l];l++);var A=h-l;for(m=1;m<=A&&s[h-m]===b[w-m];m++);return Cc=b.slice(l,1<m?1-m:void 0)}function Tc(l){var s=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&s===13&&(l=13)):l=s,l===10&&(l=13),32<=l||l===13?l:0}function Ac(){return!0}function J1(){return!1}function Ln(l){function s(h,m,b,w,A){this._reactName=h,this._targetInst=b,this.type=m,this.nativeEvent=w,this.target=A,this.currentTarget=null;for(var O in l)l.hasOwnProperty(O)&&(h=l[O],this[O]=h?h(w):w[O]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?Ac:J1,this.isPropagationStopped=J1,this}return d(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=Ac)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=Ac)},persist:function(){},isPersistent:Ac}),s}var so={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Dc=Ln(so),Zs=d({},so,{view:0,detail:0}),Tz=Ln(Zs),Vp,Fp,$s,Rc=d({},Zs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Up,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==$s&&($s&&l.type==="mousemove"?(Vp=l.screenX-$s.screenX,Fp=l.screenY-$s.screenY):Fp=Vp=0,$s=l),Vp)},movementY:function(l){return"movementY"in l?l.movementY:Fp}}),tb=Ln(Rc),Az=d({},Rc,{dataTransfer:0}),Dz=Ln(Az),Rz=d({},Zs,{relatedTarget:0}),Gp=Ln(Rz),Ez=d({},so,{animationName:0,elapsedTime:0,pseudoElement:0}),Lz=Ln(Ez),Oz=d({},so,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),zz=Ln(Oz),Nz=d({},so,{data:0}),eb=Ln(Nz),Iz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bz={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"},kz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pz(l){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(l):(l=kz[l])?!!s[l]:!1}function Up(){return Pz}var Hz=d({},Zs,{key:function(l){if(l.key){var s=Iz[l.key]||l.key;if(s!=="Unidentified")return s}return l.type==="keypress"?(l=Tc(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?Bz[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Up,charCode:function(l){return l.type==="keypress"?Tc(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?Tc(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),Vz=Ln(Hz),Fz=d({},Rc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nb=Ln(Fz),Gz=d({},Zs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Up}),Uz=Ln(Gz),jz=d({},so,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yz=Ln(jz),qz=d({},Rc,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),Xz=Ln(qz),Zz=d({},so,{newState:0,oldState:0}),$z=Ln(Zz),Wz=[9,13,27,32],jp=Ma&&"CompositionEvent"in window,Ws=null;Ma&&"documentMode"in document&&(Ws=document.documentMode);var Qz=Ma&&"TextEvent"in window&&!Ws,rb=Ma&&(!jp||Ws&&8<Ws&&11>=Ws),ab=" ",ib=!1;function ob(l,s){switch(l){case"keyup":return Wz.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lb(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var Dl=!1;function Kz(l,s){switch(l){case"compositionend":return lb(s);case"keypress":return s.which!==32?null:(ib=!0,ab);case"textInput":return l=s.data,l===ab&&ib?null:l;default:return null}}function Jz(l,s){if(Dl)return l==="compositionend"||!jp&&ob(l,s)?(l=K1(),Cc=Hp=ii=null,Dl=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return rb&&s.locale!=="ko"?null:s.data;default:return null}}var tN={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 sb(l){var s=l&&l.nodeName&&l.nodeName.toLowerCase();return s==="input"?!!tN[l.type]:s==="textarea"}function ub(l,s,h,m){Tl?Al?Al.push(m):Al=[m]:Tl=m,s=yh(s,"onChange"),0<s.length&&(h=new Dc("onChange","change",null,h,m),l.push({event:h,listeners:s}))}var Qs=null,Ks=null;function eN(l){qw(l,0)}function Ec(l){var s=Ys(l);if(j1(s))return l}function fb(l,s){if(l==="change")return s}var cb=!1;if(Ma){var Yp;if(Ma){var qp="oninput"in document;if(!qp){var hb=document.createElement("div");hb.setAttribute("oninput","return;"),qp=typeof hb.oninput=="function"}Yp=qp}else Yp=!1;cb=Yp&&(!document.documentMode||9<document.documentMode)}function vb(){Qs&&(Qs.detachEvent("onpropertychange",db),Ks=Qs=null)}function db(l){if(l.propertyName==="value"&&Ec(Ks)){var s=[];ub(s,Ks,l,Bp(l)),Q1(eN,s)}}function nN(l,s,h){l==="focusin"?(vb(),Qs=s,Ks=h,Qs.attachEvent("onpropertychange",db)):l==="focusout"&&vb()}function rN(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return Ec(Ks)}function aN(l,s){if(l==="click")return Ec(s)}function iN(l,s){if(l==="input"||l==="change")return Ec(s)}function oN(l,s){return l===s&&(l!==0||1/l===1/s)||l!==l&&s!==s}var $n=typeof Object.is=="function"?Object.is:oN;function Js(l,s){if($n(l,s))return!0;if(typeof l!="object"||l===null||typeof s!="object"||s===null)return!1;var h=Object.keys(l),m=Object.keys(s);if(h.length!==m.length)return!1;for(m=0;m<h.length;m++){var b=h[m];if(!Zn.call(s,b)||!$n(l[b],s[b]))return!1}return!0}function pb(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function gb(l,s){var h=pb(l);l=0;for(var m;h;){if(h.nodeType===3){if(m=l+h.textContent.length,l<=s&&m>=s)return{node:h,offset:s-l};l=m}t:{for(;h;){if(h.nextSibling){h=h.nextSibling;break t}h=h.parentNode}h=void 0}h=pb(h)}}function mb(l,s){return l&&s?l===s?!0:l&&l.nodeType===3?!1:s&&s.nodeType===3?mb(l,s.parentNode):"contains"in l?l.contains(s):l.compareDocumentPosition?!!(l.compareDocumentPosition(s)&16):!1:!1}function yb(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var s=wc(l.document);s instanceof l.HTMLIFrameElement;){try{var h=typeof s.contentWindow.location.href=="string"}catch{h=!1}if(h)l=s.contentWindow;else break;s=wc(l.document)}return s}function Xp(l){var s=l&&l.nodeName&&l.nodeName.toLowerCase();return s&&(s==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||s==="textarea"||l.contentEditable==="true")}var lN=Ma&&"documentMode"in document&&11>=document.documentMode,Rl=null,Zp=null,tu=null,$p=!1;function _b(l,s,h){var m=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;$p||Rl==null||Rl!==wc(m)||(m=Rl,"selectionStart"in m&&Xp(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),tu&&Js(tu,m)||(tu=m,m=yh(Zp,"onSelect"),0<m.length&&(s=new Dc("onSelect","select",null,s,h),l.push({event:s,listeners:m}),s.target=Rl)))}function uo(l,s){var h={};return h[l.toLowerCase()]=s.toLowerCase(),h["Webkit"+l]="webkit"+s,h["Moz"+l]="moz"+s,h}var El={animationend:uo("Animation","AnimationEnd"),animationiteration:uo("Animation","AnimationIteration"),animationstart:uo("Animation","AnimationStart"),transitionrun:uo("Transition","TransitionRun"),transitionstart:uo("Transition","TransitionStart"),transitioncancel:uo("Transition","TransitionCancel"),transitionend:uo("Transition","TransitionEnd")},Wp={},Sb={};Ma&&(Sb=document.createElement("div").style,"AnimationEvent"in window||(delete El.animationend.animation,delete El.animationiteration.animation,delete El.animationstart.animation),"TransitionEvent"in window||delete El.transitionend.transition);function fo(l){if(Wp[l])return Wp[l];if(!El[l])return l;var s=El[l],h;for(h in s)if(s.hasOwnProperty(h)&&h in Sb)return Wp[l]=s[h];return l}var bb=fo("animationend"),xb=fo("animationiteration"),wb=fo("animationstart"),sN=fo("transitionrun"),uN=fo("transitionstart"),fN=fo("transitioncancel"),Mb=fo("transitionend"),Cb=new Map,Qp="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(" ");Qp.push("scrollEnd");function Br(l,s){Cb.set(l,s),lo(s,[l])}var Lc=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)},fr=[],Ll=0,Kp=0;function Oc(){for(var l=Ll,s=Kp=Ll=0;s<l;){var h=fr[s];fr[s++]=null;var m=fr[s];fr[s++]=null;var b=fr[s];fr[s++]=null;var w=fr[s];if(fr[s++]=null,m!==null&&b!==null){var A=m.pending;A===null?b.next=b:(b.next=A.next,A.next=b),m.pending=b}w!==0&&Tb(h,b,w)}}function zc(l,s,h,m){fr[Ll++]=l,fr[Ll++]=s,fr[Ll++]=h,fr[Ll++]=m,Kp|=m,l.lanes|=m,l=l.alternate,l!==null&&(l.lanes|=m)}function Jp(l,s,h,m){return zc(l,s,h,m),Nc(l)}function co(l,s){return zc(l,null,null,s),Nc(l)}function Tb(l,s,h){l.lanes|=h;var m=l.alternate;m!==null&&(m.lanes|=h);for(var b=!1,w=l.return;w!==null;)w.childLanes|=h,m=w.alternate,m!==null&&(m.childLanes|=h),w.tag===22&&(l=w.stateNode,l===null||l._visibility&1||(b=!0)),l=w,w=w.return;return l.tag===3?(w=l.stateNode,b&&s!==null&&(b=31-It(h),l=w.hiddenUpdates,m=l[b],m===null?l[b]=[s]:m.push(s),s.lane=h|536870912),w):null}function Nc(l){if(50<xu)throw xu=0,sm=null,Error(r(185));for(var s=l.return;s!==null;)l=s,s=l.return;return l.tag===3?l.stateNode:null}var Ol={};function cN(l,s,h,m){this.tag=l,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wn(l,s,h,m){return new cN(l,s,h,m)}function tg(l){return l=l.prototype,!(!l||!l.isReactComponent)}function Ca(l,s){var h=l.alternate;return h===null?(h=Wn(l.tag,s,l.key,l.mode),h.elementType=l.elementType,h.type=l.type,h.stateNode=l.stateNode,h.alternate=l,l.alternate=h):(h.pendingProps=s,h.type=l.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=l.flags&65011712,h.childLanes=l.childLanes,h.lanes=l.lanes,h.child=l.child,h.memoizedProps=l.memoizedProps,h.memoizedState=l.memoizedState,h.updateQueue=l.updateQueue,s=l.dependencies,h.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},h.sibling=l.sibling,h.index=l.index,h.ref=l.ref,h.refCleanup=l.refCleanup,h}function Ab(l,s){l.flags&=65011714;var h=l.alternate;return h===null?(l.childLanes=0,l.lanes=s,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=h.childLanes,l.lanes=h.lanes,l.child=h.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=h.memoizedProps,l.memoizedState=h.memoizedState,l.updateQueue=h.updateQueue,l.type=h.type,s=h.dependencies,l.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),l}function Ic(l,s,h,m,b,w){var A=0;if(m=l,typeof l=="function")tg(l)&&(A=1);else if(typeof l=="string")A=gI(l,h,it.current)?26:l==="html"||l==="head"||l==="body"?27:5;else t:switch(l){case I:return l=Wn(31,h,s,b),l.elementType=I,l.lanes=w,l;case _:return ho(h.children,b,w,s);case S:A=8,b|=24;break;case x:return l=Wn(12,h,s,b|2),l.elementType=x,l.lanes=w,l;case D:return l=Wn(13,h,s,b),l.elementType=D,l.lanes=w,l;case R:return l=Wn(19,h,s,b),l.elementType=R,l.lanes=w,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case C:A=10;break t;case M:A=9;break t;case T:A=11;break t;case E:A=14;break t;case z:A=16,m=null;break t}A=29,h=Error(r(130,l===null?"null":typeof l,"")),m=null}return s=Wn(A,h,s,b),s.elementType=l,s.type=m,s.lanes=w,s}function ho(l,s,h,m){return l=Wn(7,l,m,s),l.lanes=h,l}function eg(l,s,h){return l=Wn(6,l,null,s),l.lanes=h,l}function Db(l){var s=Wn(18,null,null,0);return s.stateNode=l,s}function ng(l,s,h){return s=Wn(4,l.children!==null?l.children:[],l.key,s),s.lanes=h,s.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},s}var Rb=new WeakMap;function cr(l,s){if(typeof l=="object"&&l!==null){var h=Rb.get(l);return h!==void 0?h:(s={value:l,source:s,stack:Ce(s)},Rb.set(l,s),s)}return{value:l,source:s,stack:Ce(s)}}var zl=[],Nl=0,Bc=null,eu=0,hr=[],vr=0,oi=null,Kr=1,Jr="";function Ta(l,s){zl[Nl++]=eu,zl[Nl++]=Bc,Bc=l,eu=s}function Eb(l,s,h){hr[vr++]=Kr,hr[vr++]=Jr,hr[vr++]=oi,oi=l;var m=Kr;l=Jr;var b=32-It(m)-1;m&=~(1<<b),h+=1;var w=32-It(s)+b;if(30<w){var A=b-b%5;w=(m&(1<<A)-1).toString(32),m>>=A,b-=A,Kr=1<<32-It(s)+b|h<<b|m,Jr=w+l}else Kr=1<<w|h<<b|m,Jr=l}function rg(l){l.return!==null&&(Ta(l,1),Eb(l,1,0))}function ag(l){for(;l===Bc;)Bc=zl[--Nl],zl[Nl]=null,eu=zl[--Nl],zl[Nl]=null;for(;l===oi;)oi=hr[--vr],hr[vr]=null,Jr=hr[--vr],hr[vr]=null,Kr=hr[--vr],hr[vr]=null}function Lb(l,s){hr[vr++]=Kr,hr[vr++]=Jr,hr[vr++]=oi,Kr=s.id,Jr=s.overflow,oi=l}var Ze=null,me=null,Xt=!1,li=null,dr=!1,ig=Error(r(519));function si(l){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw nu(cr(s,l)),ig}function Ob(l){var s=l.stateNode,h=l.type,m=l.memoizedProps;switch(s[Xe]=l,s[En]=m,h){case"dialog":Ft("cancel",s),Ft("close",s);break;case"iframe":case"object":case"embed":Ft("load",s);break;case"video":case"audio":for(h=0;h<Mu.length;h++)Ft(Mu[h],s);break;case"source":Ft("error",s);break;case"img":case"image":case"link":Ft("error",s),Ft("load",s);break;case"details":Ft("toggle",s);break;case"input":Ft("invalid",s),Y1(s,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case"select":Ft("invalid",s);break;case"textarea":Ft("invalid",s),X1(s,m.value,m.defaultValue,m.children)}h=m.children,typeof h!="string"&&typeof h!="number"&&typeof h!="bigint"||s.textContent===""+h||m.suppressHydrationWarning===!0||Ww(s.textContent,h)?(m.popover!=null&&(Ft("beforetoggle",s),Ft("toggle",s)),m.onScroll!=null&&Ft("scroll",s),m.onScrollEnd!=null&&Ft("scrollend",s),m.onClick!=null&&(s.onclick=wa),s=!0):s=!1,s||si(l,!0)}function zb(l){for(Ze=l.return;Ze;)switch(Ze.tag){case 5:case 31:case 13:dr=!1;return;case 27:case 3:dr=!0;return;default:Ze=Ze.return}}function Il(l){if(l!==Ze)return!1;if(!Xt)return zb(l),Xt=!0,!1;var s=l.tag,h;if((h=s!==3&&s!==27)&&((h=s===5)&&(h=l.type,h=!(h!=="form"&&h!=="button")||wm(l.type,l.memoizedProps)),h=!h),h&&me&&si(l),zb(l),s===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(317));me=iM(l)}else if(s===31){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(317));me=iM(l)}else s===27?(s=me,xi(l.type)?(l=Dm,Dm=null,me=l):me=s):me=Ze?gr(l.stateNode.nextSibling):null;return!0}function vo(){me=Ze=null,Xt=!1}function og(){var l=li;return l!==null&&(In===null?In=l:In.push.apply(In,l),li=null),l}function nu(l){li===null?li=[l]:li.push(l)}var lg=P(null),po=null,Aa=null;function ui(l,s,h){rt(lg,s._currentValue),s._currentValue=h}function Da(l){l._currentValue=lg.current,q(lg)}function sg(l,s,h){for(;l!==null;){var m=l.alternate;if((l.childLanes&s)!==s?(l.childLanes|=s,m!==null&&(m.childLanes|=s)):m!==null&&(m.childLanes&s)!==s&&(m.childLanes|=s),l===h)break;l=l.return}}function ug(l,s,h,m){var b=l.child;for(b!==null&&(b.return=l);b!==null;){var w=b.dependencies;if(w!==null){var A=b.child;w=w.firstContext;t:for(;w!==null;){var O=w;w=b;for(var F=0;F<s.length;F++)if(O.context===s[F]){w.lanes|=h,O=w.alternate,O!==null&&(O.lanes|=h),sg(w.return,h,l),m||(A=null);break t}w=O.next}}else if(b.tag===18){if(A=b.return,A===null)throw Error(r(341));A.lanes|=h,w=A.alternate,w!==null&&(w.lanes|=h),sg(A,h,l),A=null}else A=b.child;if(A!==null)A.return=b;else for(A=b;A!==null;){if(A===l){A=null;break}if(b=A.sibling,b!==null){b.return=A.return,A=b;break}A=A.return}b=A}}function Bl(l,s,h,m){l=null;for(var b=s,w=!1;b!==null;){if(!w){if((b.flags&524288)!==0)w=!0;else if((b.flags&262144)!==0)break}if(b.tag===10){var A=b.alternate;if(A===null)throw Error(r(387));if(A=A.memoizedProps,A!==null){var O=b.type;$n(b.pendingProps.value,A.value)||(l!==null?l.push(O):l=[O])}}else if(b===wt.current){if(A=b.alternate,A===null)throw Error(r(387));A.memoizedState.memoizedState!==b.memoizedState.memoizedState&&(l!==null?l.push(Ru):l=[Ru])}b=b.return}l!==null&&ug(s,l,h,m),s.flags|=262144}function kc(l){for(l=l.firstContext;l!==null;){if(!$n(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}function go(l){po=l,Aa=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function $e(l){return Nb(po,l)}function Pc(l,s){return po===null&&go(l),Nb(l,s)}function Nb(l,s){var h=s._currentValue;if(s={context:s,memoizedValue:h,next:null},Aa===null){if(l===null)throw Error(r(308));Aa=s,l.dependencies={lanes:0,firstContext:s},l.flags|=524288}else Aa=Aa.next=s;return h}var hN=typeof AbortController<"u"?AbortController:function(){var l=[],s=this.signal={aborted:!1,addEventListener:function(h,m){l.push(m)}};this.abort=function(){s.aborted=!0,l.forEach(function(h){return h()})}},vN=t.unstable_scheduleCallback,dN=t.unstable_NormalPriority,ke={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function fg(){return{controller:new hN,data:new Map,refCount:0}}function ru(l){l.refCount--,l.refCount===0&&vN(dN,function(){l.controller.abort()})}var au=null,cg=0,kl=0,Pl=null;function pN(l,s){if(au===null){var h=au=[];cg=0,kl=dm(),Pl={status:"pending",value:void 0,then:function(m){h.push(m)}}}return cg++,s.then(Ib,Ib),s}function Ib(){if(--cg===0&&au!==null){Pl!==null&&(Pl.status="fulfilled");var l=au;au=null,kl=0,Pl=null;for(var s=0;s<l.length;s++)(0,l[s])()}}function gN(l,s){var h=[],m={status:"pending",value:null,reason:null,then:function(b){h.push(b)}};return l.then(function(){m.status="fulfilled",m.value=s;for(var b=0;b<h.length;b++)(0,h[b])(s)},function(b){for(m.status="rejected",m.reason=b,b=0;b<h.length;b++)(0,h[b])(void 0)}),m}var Bb=H.S;H.S=function(l,s){Sw=ge(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&pN(l,s),Bb!==null&&Bb(l,s)};var mo=P(null);function hg(){var l=mo.current;return l!==null?l:pe.pooledCache}function Hc(l,s){s===null?rt(mo,mo.current):rt(mo,s.pool)}function kb(){var l=hg();return l===null?null:{parent:ke._currentValue,pool:l}}var Hl=Error(r(460)),vg=Error(r(474)),Vc=Error(r(542)),Fc={then:function(){}};function Pb(l){return l=l.status,l==="fulfilled"||l==="rejected"}function Hb(l,s,h){switch(h=l[h],h===void 0?l.push(s):h!==s&&(s.then(wa,wa),s=h),s.status){case"fulfilled":return s.value;case"rejected":throw l=s.reason,Fb(l),l;default:if(typeof s.status=="string")s.then(wa,wa);else{if(l=pe,l!==null&&100<l.shellSuspendCounter)throw Error(r(482));l=s,l.status="pending",l.then(function(m){if(s.status==="pending"){var b=s;b.status="fulfilled",b.value=m}},function(m){if(s.status==="pending"){var b=s;b.status="rejected",b.reason=m}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw l=s.reason,Fb(l),l}throw _o=s,Hl}}function yo(l){try{var s=l._init;return s(l._payload)}catch(h){throw h!==null&&typeof h=="object"&&typeof h.then=="function"?(_o=h,Hl):h}}var _o=null;function Vb(){if(_o===null)throw Error(r(459));var l=_o;return _o=null,l}function Fb(l){if(l===Hl||l===Vc)throw Error(r(483))}var Vl=null,iu=0;function Gc(l){var s=iu;return iu+=1,Vl===null&&(Vl=[]),Hb(Vl,l,s)}function ou(l,s){s=s.props.ref,l.ref=s!==void 0?s:null}function Uc(l,s){throw s.$$typeof===g?Error(r(525)):(l=Object.prototype.toString.call(s),Error(r(31,l==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":l)))}function Gb(l){function s(Y,U){if(l){var $=Y.deletions;$===null?(Y.deletions=[U],Y.flags|=16):$.push(U)}}function h(Y,U){if(!l)return null;for(;U!==null;)s(Y,U),U=U.sibling;return null}function m(Y){for(var U=new Map;Y!==null;)Y.key!==null?U.set(Y.key,Y):U.set(Y.index,Y),Y=Y.sibling;return U}function b(Y,U){return Y=Ca(Y,U),Y.index=0,Y.sibling=null,Y}function w(Y,U,$){return Y.index=$,l?($=Y.alternate,$!==null?($=$.index,$<U?(Y.flags|=67108866,U):$):(Y.flags|=67108866,U)):(Y.flags|=1048576,U)}function A(Y){return l&&Y.alternate===null&&(Y.flags|=67108866),Y}function O(Y,U,$,nt){return U===null||U.tag!==6?(U=eg($,Y.mode,nt),U.return=Y,U):(U=b(U,$),U.return=Y,U)}function F(Y,U,$,nt){var yt=$.type;return yt===_?et(Y,U,$.props.children,nt,$.key):U!==null&&(U.elementType===yt||typeof yt=="object"&&yt!==null&&yt.$$typeof===z&&yo(yt)===U.type)?(U=b(U,$.props),ou(U,$),U.return=Y,U):(U=Ic($.type,$.key,$.props,null,Y.mode,nt),ou(U,$),U.return=Y,U)}function W(Y,U,$,nt){return U===null||U.tag!==4||U.stateNode.containerInfo!==$.containerInfo||U.stateNode.implementation!==$.implementation?(U=ng($,Y.mode,nt),U.return=Y,U):(U=b(U,$.children||[]),U.return=Y,U)}function et(Y,U,$,nt,yt){return U===null||U.tag!==7?(U=ho($,Y.mode,nt,yt),U.return=Y,U):(U=b(U,$),U.return=Y,U)}function at(Y,U,$){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=eg(""+U,Y.mode,$),U.return=Y,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case p:return $=Ic(U.type,U.key,U.props,null,Y.mode,$),ou($,U),$.return=Y,$;case y:return U=ng(U,Y.mode,$),U.return=Y,U;case z:return U=yo(U),at(Y,U,$)}if(X(U)||V(U))return U=ho(U,Y.mode,$,null),U.return=Y,U;if(typeof U.then=="function")return at(Y,Gc(U),$);if(U.$$typeof===C)return at(Y,Pc(Y,U),$);Uc(Y,U)}return null}function K(Y,U,$,nt){var yt=U!==null?U.key:null;if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return yt!==null?null:O(Y,U,""+$,nt);if(typeof $=="object"&&$!==null){switch($.$$typeof){case p:return $.key===yt?F(Y,U,$,nt):null;case y:return $.key===yt?W(Y,U,$,nt):null;case z:return $=yo($),K(Y,U,$,nt)}if(X($)||V($))return yt!==null?null:et(Y,U,$,nt,null);if(typeof $.then=="function")return K(Y,U,Gc($),nt);if($.$$typeof===C)return K(Y,U,Pc(Y,$),nt);Uc(Y,$)}return null}function tt(Y,U,$,nt,yt){if(typeof nt=="string"&&nt!==""||typeof nt=="number"||typeof nt=="bigint")return Y=Y.get($)||null,O(U,Y,""+nt,yt);if(typeof nt=="object"&&nt!==null){switch(nt.$$typeof){case p:return Y=Y.get(nt.key===null?$:nt.key)||null,F(U,Y,nt,yt);case y:return Y=Y.get(nt.key===null?$:nt.key)||null,W(U,Y,nt,yt);case z:return nt=yo(nt),tt(Y,U,$,nt,yt)}if(X(nt)||V(nt))return Y=Y.get($)||null,et(U,Y,nt,yt,null);if(typeof nt.then=="function")return tt(Y,U,$,Gc(nt),yt);if(nt.$$typeof===C)return tt(Y,U,$,Pc(U,nt),yt);Uc(U,nt)}return null}function ht(Y,U,$,nt){for(var yt=null,ee=null,dt=U,kt=U=0,Ut=null;dt!==null&&kt<$.length;kt++){dt.index>kt?(Ut=dt,dt=null):Ut=dt.sibling;var ne=K(Y,dt,$[kt],nt);if(ne===null){dt===null&&(dt=Ut);break}l&&dt&&ne.alternate===null&&s(Y,dt),U=w(ne,U,kt),ee===null?yt=ne:ee.sibling=ne,ee=ne,dt=Ut}if(kt===$.length)return h(Y,dt),Xt&&Ta(Y,kt),yt;if(dt===null){for(;kt<$.length;kt++)dt=at(Y,$[kt],nt),dt!==null&&(U=w(dt,U,kt),ee===null?yt=dt:ee.sibling=dt,ee=dt);return Xt&&Ta(Y,kt),yt}for(dt=m(dt);kt<$.length;kt++)Ut=tt(dt,Y,kt,$[kt],nt),Ut!==null&&(l&&Ut.alternate!==null&&dt.delete(Ut.key===null?kt:Ut.key),U=w(Ut,U,kt),ee===null?yt=Ut:ee.sibling=Ut,ee=Ut);return l&&dt.forEach(function(Ai){return s(Y,Ai)}),Xt&&Ta(Y,kt),yt}function xt(Y,U,$,nt){if($==null)throw Error(r(151));for(var yt=null,ee=null,dt=U,kt=U=0,Ut=null,ne=$.next();dt!==null&&!ne.done;kt++,ne=$.next()){dt.index>kt?(Ut=dt,dt=null):Ut=dt.sibling;var Ai=K(Y,dt,ne.value,nt);if(Ai===null){dt===null&&(dt=Ut);break}l&&dt&&Ai.alternate===null&&s(Y,dt),U=w(Ai,U,kt),ee===null?yt=Ai:ee.sibling=Ai,ee=Ai,dt=Ut}if(ne.done)return h(Y,dt),Xt&&Ta(Y,kt),yt;if(dt===null){for(;!ne.done;kt++,ne=$.next())ne=at(Y,ne.value,nt),ne!==null&&(U=w(ne,U,kt),ee===null?yt=ne:ee.sibling=ne,ee=ne);return Xt&&Ta(Y,kt),yt}for(dt=m(dt);!ne.done;kt++,ne=$.next())ne=tt(dt,Y,kt,ne.value,nt),ne!==null&&(l&&ne.alternate!==null&&dt.delete(ne.key===null?kt:ne.key),U=w(ne,U,kt),ee===null?yt=ne:ee.sibling=ne,ee=ne);return l&&dt.forEach(function(AI){return s(Y,AI)}),Xt&&Ta(Y,kt),yt}function he(Y,U,$,nt){if(typeof $=="object"&&$!==null&&$.type===_&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case p:t:{for(var yt=$.key;U!==null;){if(U.key===yt){if(yt=$.type,yt===_){if(U.tag===7){h(Y,U.sibling),nt=b(U,$.props.children),nt.return=Y,Y=nt;break t}}else if(U.elementType===yt||typeof yt=="object"&&yt!==null&&yt.$$typeof===z&&yo(yt)===U.type){h(Y,U.sibling),nt=b(U,$.props),ou(nt,$),nt.return=Y,Y=nt;break t}h(Y,U);break}else s(Y,U);U=U.sibling}$.type===_?(nt=ho($.props.children,Y.mode,nt,$.key),nt.return=Y,Y=nt):(nt=Ic($.type,$.key,$.props,null,Y.mode,nt),ou(nt,$),nt.return=Y,Y=nt)}return A(Y);case y:t:{for(yt=$.key;U!==null;){if(U.key===yt)if(U.tag===4&&U.stateNode.containerInfo===$.containerInfo&&U.stateNode.implementation===$.implementation){h(Y,U.sibling),nt=b(U,$.children||[]),nt.return=Y,Y=nt;break t}else{h(Y,U);break}else s(Y,U);U=U.sibling}nt=ng($,Y.mode,nt),nt.return=Y,Y=nt}return A(Y);case z:return $=yo($),he(Y,U,$,nt)}if(X($))return ht(Y,U,$,nt);if(V($)){if(yt=V($),typeof yt!="function")throw Error(r(150));return $=yt.call($),xt(Y,U,$,nt)}if(typeof $.then=="function")return he(Y,U,Gc($),nt);if($.$$typeof===C)return he(Y,U,Pc(Y,$),nt);Uc(Y,$)}return typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint"?($=""+$,U!==null&&U.tag===6?(h(Y,U.sibling),nt=b(U,$),nt.return=Y,Y=nt):(h(Y,U),nt=eg($,Y.mode,nt),nt.return=Y,Y=nt),A(Y)):h(Y,U)}return function(Y,U,$,nt){try{iu=0;var yt=he(Y,U,$,nt);return Vl=null,yt}catch(dt){if(dt===Hl||dt===Vc)throw dt;var ee=Wn(29,dt,null,Y.mode);return ee.lanes=nt,ee.return=Y,ee}finally{}}}var So=Gb(!0),Ub=Gb(!1),fi=!1;function dg(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pg(l,s){l=l.updateQueue,s.updateQueue===l&&(s.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function ci(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function hi(l,s,h){var m=l.updateQueue;if(m===null)return null;if(m=m.shared,(re&2)!==0){var b=m.pending;return b===null?s.next=s:(s.next=b.next,b.next=s),m.pending=s,s=Nc(l),Tb(l,null,h),s}return zc(l,m,s,h),Nc(l)}function lu(l,s,h){if(s=s.updateQueue,s!==null&&(s=s.shared,(h&4194048)!==0)){var m=s.lanes;m&=l.pendingLanes,h|=m,s.lanes=h,N1(l,h)}}function gg(l,s){var h=l.updateQueue,m=l.alternate;if(m!==null&&(m=m.updateQueue,h===m)){var b=null,w=null;if(h=h.firstBaseUpdate,h!==null){do{var A={lane:h.lane,tag:h.tag,payload:h.payload,callback:null,next:null};w===null?b=w=A:w=w.next=A,h=h.next}while(h!==null);w===null?b=w=s:w=w.next=s}else b=w=s;h={baseState:m.baseState,firstBaseUpdate:b,lastBaseUpdate:w,shared:m.shared,callbacks:m.callbacks},l.updateQueue=h;return}l=h.lastBaseUpdate,l===null?h.firstBaseUpdate=s:l.next=s,h.lastBaseUpdate=s}var mg=!1;function su(){if(mg){var l=Pl;if(l!==null)throw l}}function uu(l,s,h,m){mg=!1;var b=l.updateQueue;fi=!1;var w=b.firstBaseUpdate,A=b.lastBaseUpdate,O=b.shared.pending;if(O!==null){b.shared.pending=null;var F=O,W=F.next;F.next=null,A===null?w=W:A.next=W,A=F;var et=l.alternate;et!==null&&(et=et.updateQueue,O=et.lastBaseUpdate,O!==A&&(O===null?et.firstBaseUpdate=W:O.next=W,et.lastBaseUpdate=F))}if(w!==null){var at=b.baseState;A=0,et=W=F=null,O=w;do{var K=O.lane&-536870913,tt=K!==O.lane;if(tt?(Gt&K)===K:(m&K)===K){K!==0&&K===kl&&(mg=!0),et!==null&&(et=et.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});t:{var ht=l,xt=O;K=s;var he=h;switch(xt.tag){case 1:if(ht=xt.payload,typeof ht=="function"){at=ht.call(he,at,K);break t}at=ht;break t;case 3:ht.flags=ht.flags&-65537|128;case 0:if(ht=xt.payload,K=typeof ht=="function"?ht.call(he,at,K):ht,K==null)break t;at=d({},at,K);break t;case 2:fi=!0}}K=O.callback,K!==null&&(l.flags|=64,tt&&(l.flags|=8192),tt=b.callbacks,tt===null?b.callbacks=[K]:tt.push(K))}else tt={lane:K,tag:O.tag,payload:O.payload,callback:O.callback,next:null},et===null?(W=et=tt,F=at):et=et.next=tt,A|=K;if(O=O.next,O===null){if(O=b.shared.pending,O===null)break;tt=O,O=tt.next,tt.next=null,b.lastBaseUpdate=tt,b.shared.pending=null}}while(!0);et===null&&(F=at),b.baseState=F,b.firstBaseUpdate=W,b.lastBaseUpdate=et,w===null&&(b.shared.lanes=0),mi|=A,l.lanes=A,l.memoizedState=at}}function jb(l,s){if(typeof l!="function")throw Error(r(191,l));l.call(s)}function Yb(l,s){var h=l.callbacks;if(h!==null)for(l.callbacks=null,l=0;l<h.length;l++)jb(h[l],s)}var Fl=P(null),jc=P(0);function qb(l,s){l=ka,rt(jc,l),rt(Fl,s),ka=l|s.baseLanes}function yg(){rt(jc,ka),rt(Fl,Fl.current)}function _g(){ka=jc.current,q(Fl),q(jc)}var Qn=P(null),pr=null;function vi(l){var s=l.alternate;rt(Le,Le.current&1),rt(Qn,l),pr===null&&(s===null||Fl.current!==null||s.memoizedState!==null)&&(pr=l)}function Sg(l){rt(Le,Le.current),rt(Qn,l),pr===null&&(pr=l)}function Xb(l){l.tag===22?(rt(Le,Le.current),rt(Qn,l),pr===null&&(pr=l)):di()}function di(){rt(Le,Le.current),rt(Qn,Qn.current)}function Kn(l){q(Qn),pr===l&&(pr=null),q(Le)}var Le=P(0);function Yc(l){for(var s=l;s!==null;){if(s.tag===13){var h=s.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||Tm(h)||Am(h)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===l)break;for(;s.sibling===null;){if(s.return===null||s.return===l)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Ra=0,Bt=null,fe=null,Pe=null,qc=!1,Gl=!1,bo=!1,Xc=0,fu=0,Ul=null,mN=0;function Te(){throw Error(r(321))}function bg(l,s){if(s===null)return!1;for(var h=0;h<s.length&&h<l.length;h++)if(!$n(l[h],s[h]))return!1;return!0}function xg(l,s,h,m,b,w){return Ra=w,Bt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,H.H=l===null||l.memoizedState===null?Lx:kg,bo=!1,w=h(m,b),bo=!1,Gl&&(w=$b(s,h,m,b)),Zb(l),w}function Zb(l){H.H=vu;var s=fe!==null&&fe.next!==null;if(Ra=0,Pe=fe=Bt=null,qc=!1,fu=0,Ul=null,s)throw Error(r(300));l===null||He||(l=l.dependencies,l!==null&&kc(l)&&(He=!0))}function $b(l,s,h,m){Bt=l;var b=0;do{if(Gl&&(Ul=null),fu=0,Gl=!1,25<=b)throw Error(r(301));if(b+=1,Pe=fe=null,l.updateQueue!=null){var w=l.updateQueue;w.lastEffect=null,w.events=null,w.stores=null,w.memoCache!=null&&(w.memoCache.index=0)}H.H=Ox,w=s(h,m)}while(Gl);return w}function yN(){var l=H.H,s=l.useState()[0];return s=typeof s.then=="function"?cu(s):s,l=l.useState()[0],(fe!==null?fe.memoizedState:null)!==l&&(Bt.flags|=1024),s}function wg(){var l=Xc!==0;return Xc=0,l}function Mg(l,s,h){s.updateQueue=l.updateQueue,s.flags&=-2053,l.lanes&=~h}function Cg(l){if(qc){for(l=l.memoizedState;l!==null;){var s=l.queue;s!==null&&(s.pending=null),l=l.next}qc=!1}Ra=0,Pe=fe=Bt=null,Gl=!1,fu=Xc=0,Ul=null}function mn(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?Bt.memoizedState=Pe=l:Pe=Pe.next=l,Pe}function Oe(){if(fe===null){var l=Bt.alternate;l=l!==null?l.memoizedState:null}else l=fe.next;var s=Pe===null?Bt.memoizedState:Pe.next;if(s!==null)Pe=s,fe=l;else{if(l===null)throw Bt.alternate===null?Error(r(467)):Error(r(310));fe=l,l={memoizedState:fe.memoizedState,baseState:fe.baseState,baseQueue:fe.baseQueue,queue:fe.queue,next:null},Pe===null?Bt.memoizedState=Pe=l:Pe=Pe.next=l}return Pe}function Zc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function cu(l){var s=fu;return fu+=1,Ul===null&&(Ul=[]),l=Hb(Ul,l,s),s=Bt,(Pe===null?s.memoizedState:Pe.next)===null&&(s=s.alternate,H.H=s===null||s.memoizedState===null?Lx:kg),l}function $c(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return cu(l);if(l.$$typeof===C)return $e(l)}throw Error(r(438,String(l)))}function Tg(l){var s=null,h=Bt.updateQueue;if(h!==null&&(s=h.memoCache),s==null){var m=Bt.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(s={data:m.data.map(function(b){return b.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),h===null&&(h=Zc(),Bt.updateQueue=h),h.memoCache=s,h=s.data[s.index],h===void 0)for(h=s.data[s.index]=Array(l),m=0;m<l;m++)h[m]=N;return s.index++,h}function Ea(l,s){return typeof s=="function"?s(l):s}function Wc(l){var s=Oe();return Ag(s,fe,l)}function Ag(l,s,h){var m=l.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=h;var b=l.baseQueue,w=m.pending;if(w!==null){if(b!==null){var A=b.next;b.next=w.next,w.next=A}s.baseQueue=b=w,m.pending=null}if(w=l.baseState,b===null)l.memoizedState=w;else{s=b.next;var O=A=null,F=null,W=s,et=!1;do{var at=W.lane&-536870913;if(at!==W.lane?(Gt&at)===at:(Ra&at)===at){var K=W.revertLane;if(K===0)F!==null&&(F=F.next={lane:0,revertLane:0,gesture:null,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null}),at===kl&&(et=!0);else if((Ra&K)===K){W=W.next,K===kl&&(et=!0);continue}else at={lane:0,revertLane:W.revertLane,gesture:null,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},F===null?(O=F=at,A=w):F=F.next=at,Bt.lanes|=K,mi|=K;at=W.action,bo&&h(w,at),w=W.hasEagerState?W.eagerState:h(w,at)}else K={lane:at,revertLane:W.revertLane,gesture:W.gesture,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},F===null?(O=F=K,A=w):F=F.next=K,Bt.lanes|=at,mi|=at;W=W.next}while(W!==null&&W!==s);if(F===null?A=w:F.next=O,!$n(w,l.memoizedState)&&(He=!0,et&&(h=Pl,h!==null)))throw h;l.memoizedState=w,l.baseState=A,l.baseQueue=F,m.lastRenderedState=w}return b===null&&(m.lanes=0),[l.memoizedState,m.dispatch]}function Dg(l){var s=Oe(),h=s.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=l;var m=h.dispatch,b=h.pending,w=s.memoizedState;if(b!==null){h.pending=null;var A=b=b.next;do w=l(w,A.action),A=A.next;while(A!==b);$n(w,s.memoizedState)||(He=!0),s.memoizedState=w,s.baseQueue===null&&(s.baseState=w),h.lastRenderedState=w}return[w,m]}function Wb(l,s,h){var m=Bt,b=Oe(),w=Xt;if(w){if(h===void 0)throw Error(r(407));h=h()}else h=s();var A=!$n((fe||b).memoizedState,h);if(A&&(b.memoizedState=h,He=!0),b=b.queue,Lg(Jb.bind(null,m,b,l),[l]),b.getSnapshot!==s||A||Pe!==null&&Pe.memoizedState.tag&1){if(m.flags|=2048,jl(9,{destroy:void 0},Kb.bind(null,m,b,h,s),null),pe===null)throw Error(r(349));w||(Ra&127)!==0||Qb(m,s,h)}return h}function Qb(l,s,h){l.flags|=16384,l={getSnapshot:s,value:h},s=Bt.updateQueue,s===null?(s=Zc(),Bt.updateQueue=s,s.stores=[l]):(h=s.stores,h===null?s.stores=[l]:h.push(l))}function Kb(l,s,h,m){s.value=h,s.getSnapshot=m,tx(s)&&ex(l)}function Jb(l,s,h){return h(function(){tx(s)&&ex(l)})}function tx(l){var s=l.getSnapshot;l=l.value;try{var h=s();return!$n(l,h)}catch{return!0}}function ex(l){var s=co(l,2);s!==null&&Bn(s,l,2)}function Rg(l){var s=mn();if(typeof l=="function"){var h=l;if(l=h(),bo){Sa(!0);try{h()}finally{Sa(!1)}}}return s.memoizedState=s.baseState=l,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ea,lastRenderedState:l},s}function nx(l,s,h,m){return l.baseState=h,Ag(l,fe,typeof m=="function"?m:Ea)}function _N(l,s,h,m,b){if(Jc(l))throw Error(r(485));if(l=s.action,l!==null){var w={payload:b,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(A){w.listeners.push(A)}};H.T!==null?h(!0):w.isTransition=!1,m(w),h=s.pending,h===null?(w.next=s.pending=w,rx(s,w)):(w.next=h.next,s.pending=h.next=w)}}function rx(l,s){var h=s.action,m=s.payload,b=l.state;if(s.isTransition){var w=H.T,A={};H.T=A;try{var O=h(b,m),F=H.S;F!==null&&F(A,O),ax(l,s,O)}catch(W){Eg(l,s,W)}finally{w!==null&&A.types!==null&&(w.types=A.types),H.T=w}}else try{w=h(b,m),ax(l,s,w)}catch(W){Eg(l,s,W)}}function ax(l,s,h){h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(function(m){ix(l,s,m)},function(m){return Eg(l,s,m)}):ix(l,s,h)}function ix(l,s,h){s.status="fulfilled",s.value=h,ox(s),l.state=h,s=l.pending,s!==null&&(h=s.next,h===s?l.pending=null:(h=h.next,s.next=h,rx(l,h)))}function Eg(l,s,h){var m=l.pending;if(l.pending=null,m!==null){m=m.next;do s.status="rejected",s.reason=h,ox(s),s=s.next;while(s!==m)}l.action=null}function ox(l){l=l.listeners;for(var s=0;s<l.length;s++)(0,l[s])()}function lx(l,s){return s}function sx(l,s){if(Xt){var h=pe.formState;if(h!==null){t:{var m=Bt;if(Xt){if(me){e:{for(var b=me,w=dr;b.nodeType!==8;){if(!w){b=null;break e}if(b=gr(b.nextSibling),b===null){b=null;break e}}w=b.data,b=w==="F!"||w==="F"?b:null}if(b){me=gr(b.nextSibling),m=b.data==="F!";break t}}si(m)}m=!1}m&&(s=h[0])}}return h=mn(),h.memoizedState=h.baseState=s,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lx,lastRenderedState:s},h.queue=m,h=Dx.bind(null,Bt,m),m.dispatch=h,m=Rg(!1),w=Bg.bind(null,Bt,!1,m.queue),m=mn(),b={state:s,dispatch:null,action:l,pending:null},m.queue=b,h=_N.bind(null,Bt,b,w,h),b.dispatch=h,m.memoizedState=l,[s,h,!1]}function ux(l){var s=Oe();return fx(s,fe,l)}function fx(l,s,h){if(s=Ag(l,s,lx)[0],l=Wc(Ea)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var m=cu(s)}catch(A){throw A===Hl?Vc:A}else m=s;s=Oe();var b=s.queue,w=b.dispatch;return h!==s.memoizedState&&(Bt.flags|=2048,jl(9,{destroy:void 0},SN.bind(null,b,h),null)),[m,w,l]}function SN(l,s){l.action=s}function cx(l){var s=Oe(),h=fe;if(h!==null)return fx(s,h,l);Oe(),s=s.memoizedState,h=Oe();var m=h.queue.dispatch;return h.memoizedState=l,[s,m,!1]}function jl(l,s,h,m){return l={tag:l,create:h,deps:m,inst:s,next:null},s=Bt.updateQueue,s===null&&(s=Zc(),Bt.updateQueue=s),h=s.lastEffect,h===null?s.lastEffect=l.next=l:(m=h.next,h.next=l,l.next=m,s.lastEffect=l),l}function hx(){return Oe().memoizedState}function Qc(l,s,h,m){var b=mn();Bt.flags|=l,b.memoizedState=jl(1|s,{destroy:void 0},h,m===void 0?null:m)}function Kc(l,s,h,m){var b=Oe();m=m===void 0?null:m;var w=b.memoizedState.inst;fe!==null&&m!==null&&bg(m,fe.memoizedState.deps)?b.memoizedState=jl(s,w,h,m):(Bt.flags|=l,b.memoizedState=jl(1|s,w,h,m))}function vx(l,s){Qc(8390656,8,l,s)}function Lg(l,s){Kc(2048,8,l,s)}function bN(l){Bt.flags|=4;var s=Bt.updateQueue;if(s===null)s=Zc(),Bt.updateQueue=s,s.events=[l];else{var h=s.events;h===null?s.events=[l]:h.push(l)}}function dx(l){var s=Oe().memoizedState;return bN({ref:s,nextImpl:l}),function(){if((re&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function px(l,s){return Kc(4,2,l,s)}function gx(l,s){return Kc(4,4,l,s)}function mx(l,s){if(typeof s=="function"){l=l();var h=s(l);return function(){typeof h=="function"?h():s(null)}}if(s!=null)return l=l(),s.current=l,function(){s.current=null}}function yx(l,s,h){h=h!=null?h.concat([l]):null,Kc(4,4,mx.bind(null,s,l),h)}function Og(){}function _x(l,s){var h=Oe();s=s===void 0?null:s;var m=h.memoizedState;return s!==null&&bg(s,m[1])?m[0]:(h.memoizedState=[l,s],l)}function Sx(l,s){var h=Oe();s=s===void 0?null:s;var m=h.memoizedState;if(s!==null&&bg(s,m[1]))return m[0];if(m=l(),bo){Sa(!0);try{l()}finally{Sa(!1)}}return h.memoizedState=[m,s],m}function zg(l,s,h){return h===void 0||(Ra&1073741824)!==0&&(Gt&261930)===0?l.memoizedState=s:(l.memoizedState=h,l=xw(),Bt.lanes|=l,mi|=l,h)}function bx(l,s,h,m){return $n(h,s)?h:Fl.current!==null?(l=zg(l,h,m),$n(l,s)||(He=!0),l):(Ra&42)===0||(Ra&1073741824)!==0&&(Gt&261930)===0?(He=!0,l.memoizedState=h):(l=xw(),Bt.lanes|=l,mi|=l,s)}function xx(l,s,h,m,b){var w=Q.p;Q.p=w!==0&&8>w?w:8;var A=H.T,O={};H.T=O,Bg(l,!1,s,h);try{var F=b(),W=H.S;if(W!==null&&W(O,F),F!==null&&typeof F=="object"&&typeof F.then=="function"){var et=gN(F,m);hu(l,s,et,er(l))}else hu(l,s,m,er(l))}catch(at){hu(l,s,{then:function(){},status:"rejected",reason:at},er())}finally{Q.p=w,A!==null&&O.types!==null&&(A.types=O.types),H.T=A}}function xN(){}function Ng(l,s,h,m){if(l.tag!==5)throw Error(r(476));var b=Mx(l).queue;xx(l,b,s,Z,h===null?xN:function(){return Cx(l),h(m)})}function Mx(l){var s=l.memoizedState;if(s!==null)return s;s={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ea,lastRenderedState:Z},next:null};var h={};return s.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ea,lastRenderedState:h},next:null},l.memoizedState=s,l=l.alternate,l!==null&&(l.memoizedState=s),s}function Cx(l){var s=Mx(l);s.next===null&&(s=l.alternate.memoizedState),hu(l,s.next.queue,{},er())}function Ig(){return $e(Ru)}function Tx(){return Oe().memoizedState}function Ax(){return Oe().memoizedState}function wN(l){for(var s=l.return;s!==null;){switch(s.tag){case 24:case 3:var h=er();l=ci(h);var m=hi(s,l,h);m!==null&&(Bn(m,s,h),lu(m,s,h)),s={cache:fg()},l.payload=s;return}s=s.return}}function MN(l,s,h){var m=er();h={lane:m,revertLane:0,gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},Jc(l)?Rx(s,h):(h=Jp(l,s,h,m),h!==null&&(Bn(h,l,m),Ex(h,s,m)))}function Dx(l,s,h){var m=er();hu(l,s,h,m)}function hu(l,s,h,m){var b={lane:m,revertLane:0,gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null};if(Jc(l))Rx(s,b);else{var w=l.alternate;if(l.lanes===0&&(w===null||w.lanes===0)&&(w=s.lastRenderedReducer,w!==null))try{var A=s.lastRenderedState,O=w(A,h);if(b.hasEagerState=!0,b.eagerState=O,$n(O,A))return zc(l,s,b,0),pe===null&&Oc(),!1}catch{}finally{}if(h=Jp(l,s,b,m),h!==null)return Bn(h,l,m),Ex(h,s,m),!0}return!1}function Bg(l,s,h,m){if(m={lane:2,revertLane:dm(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Jc(l)){if(s)throw Error(r(479))}else s=Jp(l,h,m,2),s!==null&&Bn(s,l,2)}function Jc(l){var s=l.alternate;return l===Bt||s!==null&&s===Bt}function Rx(l,s){Gl=qc=!0;var h=l.pending;h===null?s.next=s:(s.next=h.next,h.next=s),l.pending=s}function Ex(l,s,h){if((h&4194048)!==0){var m=s.lanes;m&=l.pendingLanes,h|=m,s.lanes=h,N1(l,h)}}var vu={readContext:$e,use:$c,useCallback:Te,useContext:Te,useEffect:Te,useImperativeHandle:Te,useLayoutEffect:Te,useInsertionEffect:Te,useMemo:Te,useReducer:Te,useRef:Te,useState:Te,useDebugValue:Te,useDeferredValue:Te,useTransition:Te,useSyncExternalStore:Te,useId:Te,useHostTransitionStatus:Te,useFormState:Te,useActionState:Te,useOptimistic:Te,useMemoCache:Te,useCacheRefresh:Te};vu.useEffectEvent=Te;var Lx={readContext:$e,use:$c,useCallback:function(l,s){return mn().memoizedState=[l,s===void 0?null:s],l},useContext:$e,useEffect:vx,useImperativeHandle:function(l,s,h){h=h!=null?h.concat([l]):null,Qc(4194308,4,mx.bind(null,s,l),h)},useLayoutEffect:function(l,s){return Qc(4194308,4,l,s)},useInsertionEffect:function(l,s){Qc(4,2,l,s)},useMemo:function(l,s){var h=mn();s=s===void 0?null:s;var m=l();if(bo){Sa(!0);try{l()}finally{Sa(!1)}}return h.memoizedState=[m,s],m},useReducer:function(l,s,h){var m=mn();if(h!==void 0){var b=h(s);if(bo){Sa(!0);try{h(s)}finally{Sa(!1)}}}else b=s;return m.memoizedState=m.baseState=b,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:b},m.queue=l,l=l.dispatch=MN.bind(null,Bt,l),[m.memoizedState,l]},useRef:function(l){var s=mn();return l={current:l},s.memoizedState=l},useState:function(l){l=Rg(l);var s=l.queue,h=Dx.bind(null,Bt,s);return s.dispatch=h,[l.memoizedState,h]},useDebugValue:Og,useDeferredValue:function(l,s){var h=mn();return zg(h,l,s)},useTransition:function(){var l=Rg(!1);return l=xx.bind(null,Bt,l.queue,!0,!1),mn().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,s,h){var m=Bt,b=mn();if(Xt){if(h===void 0)throw Error(r(407));h=h()}else{if(h=s(),pe===null)throw Error(r(349));(Gt&127)!==0||Qb(m,s,h)}b.memoizedState=h;var w={value:h,getSnapshot:s};return b.queue=w,vx(Jb.bind(null,m,w,l),[l]),m.flags|=2048,jl(9,{destroy:void 0},Kb.bind(null,m,w,h,s),null),h},useId:function(){var l=mn(),s=pe.identifierPrefix;if(Xt){var h=Jr,m=Kr;h=(m&~(1<<32-It(m)-1)).toString(32)+h,s="_"+s+"R_"+h,h=Xc++,0<h&&(s+="H"+h.toString(32)),s+="_"}else h=mN++,s="_"+s+"r_"+h.toString(32)+"_";return l.memoizedState=s},useHostTransitionStatus:Ig,useFormState:sx,useActionState:sx,useOptimistic:function(l){var s=mn();s.memoizedState=s.baseState=l;var h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=h,s=Bg.bind(null,Bt,!0,h),h.dispatch=s,[l,s]},useMemoCache:Tg,useCacheRefresh:function(){return mn().memoizedState=wN.bind(null,Bt)},useEffectEvent:function(l){var s=mn(),h={impl:l};return s.memoizedState=h,function(){if((re&2)!==0)throw Error(r(440));return h.impl.apply(void 0,arguments)}}},kg={readContext:$e,use:$c,useCallback:_x,useContext:$e,useEffect:Lg,useImperativeHandle:yx,useInsertionEffect:px,useLayoutEffect:gx,useMemo:Sx,useReducer:Wc,useRef:hx,useState:function(){return Wc(Ea)},useDebugValue:Og,useDeferredValue:function(l,s){var h=Oe();return bx(h,fe.memoizedState,l,s)},useTransition:function(){var l=Wc(Ea)[0],s=Oe().memoizedState;return[typeof l=="boolean"?l:cu(l),s]},useSyncExternalStore:Wb,useId:Tx,useHostTransitionStatus:Ig,useFormState:ux,useActionState:ux,useOptimistic:function(l,s){var h=Oe();return nx(h,fe,l,s)},useMemoCache:Tg,useCacheRefresh:Ax};kg.useEffectEvent=dx;var Ox={readContext:$e,use:$c,useCallback:_x,useContext:$e,useEffect:Lg,useImperativeHandle:yx,useInsertionEffect:px,useLayoutEffect:gx,useMemo:Sx,useReducer:Dg,useRef:hx,useState:function(){return Dg(Ea)},useDebugValue:Og,useDeferredValue:function(l,s){var h=Oe();return fe===null?zg(h,l,s):bx(h,fe.memoizedState,l,s)},useTransition:function(){var l=Dg(Ea)[0],s=Oe().memoizedState;return[typeof l=="boolean"?l:cu(l),s]},useSyncExternalStore:Wb,useId:Tx,useHostTransitionStatus:Ig,useFormState:cx,useActionState:cx,useOptimistic:function(l,s){var h=Oe();return fe!==null?nx(h,fe,l,s):(h.baseState=l,[l,h.queue.dispatch])},useMemoCache:Tg,useCacheRefresh:Ax};Ox.useEffectEvent=dx;function Pg(l,s,h,m){s=l.memoizedState,h=h(m,s),h=h==null?s:d({},s,h),l.memoizedState=h,l.lanes===0&&(l.updateQueue.baseState=h)}var Hg={enqueueSetState:function(l,s,h){l=l._reactInternals;var m=er(),b=ci(m);b.payload=s,h!=null&&(b.callback=h),s=hi(l,b,m),s!==null&&(Bn(s,l,m),lu(s,l,m))},enqueueReplaceState:function(l,s,h){l=l._reactInternals;var m=er(),b=ci(m);b.tag=1,b.payload=s,h!=null&&(b.callback=h),s=hi(l,b,m),s!==null&&(Bn(s,l,m),lu(s,l,m))},enqueueForceUpdate:function(l,s){l=l._reactInternals;var h=er(),m=ci(h);m.tag=2,s!=null&&(m.callback=s),s=hi(l,m,h),s!==null&&(Bn(s,l,h),lu(s,l,h))}};function zx(l,s,h,m,b,w,A){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(m,w,A):s.prototype&&s.prototype.isPureReactComponent?!Js(h,m)||!Js(b,w):!0}function Nx(l,s,h,m){l=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(h,m),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(h,m),s.state!==l&&Hg.enqueueReplaceState(s,s.state,null)}function xo(l,s){var h=s;if("ref"in s){h={};for(var m in s)m!=="ref"&&(h[m]=s[m])}if(l=l.defaultProps){h===s&&(h=d({},h));for(var b in l)h[b]===void 0&&(h[b]=l[b])}return h}function Ix(l){Lc(l)}function Bx(l){console.error(l)}function kx(l){Lc(l)}function th(l,s){try{var h=l.onUncaughtError;h(s.value,{componentStack:s.stack})}catch(m){setTimeout(function(){throw m})}}function Px(l,s,h){try{var m=l.onCaughtError;m(h.value,{componentStack:h.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(b){setTimeout(function(){throw b})}}function Vg(l,s,h){return h=ci(h),h.tag=3,h.payload={element:null},h.callback=function(){th(l,s)},h}function Hx(l){return l=ci(l),l.tag=3,l}function Vx(l,s,h,m){var b=h.type.getDerivedStateFromError;if(typeof b=="function"){var w=m.value;l.payload=function(){return b(w)},l.callback=function(){Px(s,h,m)}}var A=h.stateNode;A!==null&&typeof A.componentDidCatch=="function"&&(l.callback=function(){Px(s,h,m),typeof b!="function"&&(yi===null?yi=new Set([this]):yi.add(this));var O=m.stack;this.componentDidCatch(m.value,{componentStack:O!==null?O:""})})}function CN(l,s,h,m,b){if(h.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(s=h.alternate,s!==null&&Bl(s,h,b,!0),h=Qn.current,h!==null){switch(h.tag){case 31:case 13:return pr===null?hh():h.alternate===null&&Ae===0&&(Ae=3),h.flags&=-257,h.flags|=65536,h.lanes=b,m===Fc?h.flags|=16384:(s=h.updateQueue,s===null?h.updateQueue=new Set([m]):s.add(m),cm(l,m,b)),!1;case 22:return h.flags|=65536,m===Fc?h.flags|=16384:(s=h.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([m])},h.updateQueue=s):(h=s.retryQueue,h===null?s.retryQueue=new Set([m]):h.add(m)),cm(l,m,b)),!1}throw Error(r(435,h.tag))}return cm(l,m,b),hh(),!1}if(Xt)return s=Qn.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=b,m!==ig&&(l=Error(r(422),{cause:m}),nu(cr(l,h)))):(m!==ig&&(s=Error(r(423),{cause:m}),nu(cr(s,h))),l=l.current.alternate,l.flags|=65536,b&=-b,l.lanes|=b,m=cr(m,h),b=Vg(l.stateNode,m,b),gg(l,b),Ae!==4&&(Ae=2)),!1;var w=Error(r(520),{cause:m});if(w=cr(w,h),bu===null?bu=[w]:bu.push(w),Ae!==4&&(Ae=2),s===null)return!0;m=cr(m,h),h=s;do{switch(h.tag){case 3:return h.flags|=65536,l=b&-b,h.lanes|=l,l=Vg(h.stateNode,m,l),gg(h,l),!1;case 1:if(s=h.type,w=h.stateNode,(h.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(yi===null||!yi.has(w))))return h.flags|=65536,b&=-b,h.lanes|=b,b=Hx(b),Vx(b,l,h,m),gg(h,b),!1}h=h.return}while(h!==null);return!1}var Fg=Error(r(461)),He=!1;function We(l,s,h,m){s.child=l===null?Ub(s,null,h,m):So(s,l.child,h,m)}function Fx(l,s,h,m,b){h=h.render;var w=s.ref;if("ref"in m){var A={};for(var O in m)O!=="ref"&&(A[O]=m[O])}else A=m;return go(s),m=xg(l,s,h,A,w,b),O=wg(),l!==null&&!He?(Mg(l,s,b),La(l,s,b)):(Xt&&O&&rg(s),s.flags|=1,We(l,s,m,b),s.child)}function Gx(l,s,h,m,b){if(l===null){var w=h.type;return typeof w=="function"&&!tg(w)&&w.defaultProps===void 0&&h.compare===null?(s.tag=15,s.type=w,Ux(l,s,w,m,b)):(l=Ic(h.type,null,m,s,s.mode,b),l.ref=s.ref,l.return=s,s.child=l)}if(w=l.child,!$g(l,b)){var A=w.memoizedProps;if(h=h.compare,h=h!==null?h:Js,h(A,m)&&l.ref===s.ref)return La(l,s,b)}return s.flags|=1,l=Ca(w,m),l.ref=s.ref,l.return=s,s.child=l}function Ux(l,s,h,m,b){if(l!==null){var w=l.memoizedProps;if(Js(w,m)&&l.ref===s.ref)if(He=!1,s.pendingProps=m=w,$g(l,b))(l.flags&131072)!==0&&(He=!0);else return s.lanes=l.lanes,La(l,s,b)}return Gg(l,s,h,m,b)}function jx(l,s,h,m){var b=m.children,w=l!==null?l.memoizedState:null;if(l===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((s.flags&128)!==0){if(w=w!==null?w.baseLanes|h:h,l!==null){for(m=s.child=l.child,b=0;m!==null;)b=b|m.lanes|m.childLanes,m=m.sibling;m=b&~w}else m=0,s.child=null;return Yx(l,s,w,h,m)}if((h&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},l!==null&&Hc(s,w!==null?w.cachePool:null),w!==null?qb(s,w):yg(),Xb(s);else return m=s.lanes=536870912,Yx(l,s,w!==null?w.baseLanes|h:h,h,m)}else w!==null?(Hc(s,w.cachePool),qb(s,w),di(),s.memoizedState=null):(l!==null&&Hc(s,null),yg(),di());return We(l,s,b,h),s.child}function du(l,s){return l!==null&&l.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function Yx(l,s,h,m,b){var w=hg();return w=w===null?null:{parent:ke._currentValue,pool:w},s.memoizedState={baseLanes:h,cachePool:w},l!==null&&Hc(s,null),yg(),Xb(s),l!==null&&Bl(l,s,m,!0),s.childLanes=b,null}function eh(l,s){return s=rh({mode:s.mode,children:s.children},l.mode),s.ref=l.ref,l.child=s,s.return=l,s}function qx(l,s,h){return So(s,l.child,null,h),l=eh(s,s.pendingProps),l.flags|=2,Kn(s),s.memoizedState=null,l}function TN(l,s,h){var m=s.pendingProps,b=(s.flags&128)!==0;if(s.flags&=-129,l===null){if(Xt){if(m.mode==="hidden")return l=eh(s,m),s.lanes=536870912,du(null,l);if(Sg(s),(l=me)?(l=aM(l,dr),l=l!==null&&l.data==="&"?l:null,l!==null&&(s.memoizedState={dehydrated:l,treeContext:oi!==null?{id:Kr,overflow:Jr}:null,retryLane:536870912,hydrationErrors:null},h=Db(l),h.return=s,s.child=h,Ze=s,me=null)):l=null,l===null)throw si(s);return s.lanes=536870912,null}return eh(s,m)}var w=l.memoizedState;if(w!==null){var A=w.dehydrated;if(Sg(s),b)if(s.flags&256)s.flags&=-257,s=qx(l,s,h);else if(s.memoizedState!==null)s.child=l.child,s.flags|=128,s=null;else throw Error(r(558));else if(He||Bl(l,s,h,!1),b=(h&l.childLanes)!==0,He||b){if(m=pe,m!==null&&(A=I1(m,h),A!==0&&A!==w.retryLane))throw w.retryLane=A,co(l,A),Bn(m,l,A),Fg;hh(),s=qx(l,s,h)}else l=w.treeContext,me=gr(A.nextSibling),Ze=s,Xt=!0,li=null,dr=!1,l!==null&&Lb(s,l),s=eh(s,m),s.flags|=4096;return s}return l=Ca(l.child,{mode:m.mode,children:m.children}),l.ref=s.ref,s.child=l,l.return=s,l}function nh(l,s){var h=s.ref;if(h===null)l!==null&&l.ref!==null&&(s.flags|=4194816);else{if(typeof h!="function"&&typeof h!="object")throw Error(r(284));(l===null||l.ref!==h)&&(s.flags|=4194816)}}function Gg(l,s,h,m,b){return go(s),h=xg(l,s,h,m,void 0,b),m=wg(),l!==null&&!He?(Mg(l,s,b),La(l,s,b)):(Xt&&m&&rg(s),s.flags|=1,We(l,s,h,b),s.child)}function Xx(l,s,h,m,b,w){return go(s),s.updateQueue=null,h=$b(s,m,h,b),Zb(l),m=wg(),l!==null&&!He?(Mg(l,s,w),La(l,s,w)):(Xt&&m&&rg(s),s.flags|=1,We(l,s,h,w),s.child)}function Zx(l,s,h,m,b){if(go(s),s.stateNode===null){var w=Ol,A=h.contextType;typeof A=="object"&&A!==null&&(w=$e(A)),w=new h(m,w),s.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,w.updater=Hg,s.stateNode=w,w._reactInternals=s,w=s.stateNode,w.props=m,w.state=s.memoizedState,w.refs={},dg(s),A=h.contextType,w.context=typeof A=="object"&&A!==null?$e(A):Ol,w.state=s.memoizedState,A=h.getDerivedStateFromProps,typeof A=="function"&&(Pg(s,h,A,m),w.state=s.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(A=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),A!==w.state&&Hg.enqueueReplaceState(w,w.state,null),uu(s,m,w,b),su(),w.state=s.memoizedState),typeof w.componentDidMount=="function"&&(s.flags|=4194308),m=!0}else if(l===null){w=s.stateNode;var O=s.memoizedProps,F=xo(h,O);w.props=F;var W=w.context,et=h.contextType;A=Ol,typeof et=="object"&&et!==null&&(A=$e(et));var at=h.getDerivedStateFromProps;et=typeof at=="function"||typeof w.getSnapshotBeforeUpdate=="function",O=s.pendingProps!==O,et||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(O||W!==A)&&Nx(s,w,m,A),fi=!1;var K=s.memoizedState;w.state=K,uu(s,m,w,b),su(),W=s.memoizedState,O||K!==W||fi?(typeof at=="function"&&(Pg(s,h,at,m),W=s.memoizedState),(F=fi||zx(s,h,F,m,K,W,A))?(et||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(s.flags|=4194308)):(typeof w.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=m,s.memoizedState=W),w.props=m,w.state=W,w.context=A,m=F):(typeof w.componentDidMount=="function"&&(s.flags|=4194308),m=!1)}else{w=s.stateNode,pg(l,s),A=s.memoizedProps,et=xo(h,A),w.props=et,at=s.pendingProps,K=w.context,W=h.contextType,F=Ol,typeof W=="object"&&W!==null&&(F=$e(W)),O=h.getDerivedStateFromProps,(W=typeof O=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(A!==at||K!==F)&&Nx(s,w,m,F),fi=!1,K=s.memoizedState,w.state=K,uu(s,m,w,b),su();var tt=s.memoizedState;A!==at||K!==tt||fi||l!==null&&l.dependencies!==null&&kc(l.dependencies)?(typeof O=="function"&&(Pg(s,h,O,m),tt=s.memoizedState),(et=fi||zx(s,h,et,m,K,tt,F)||l!==null&&l.dependencies!==null&&kc(l.dependencies))?(W||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(m,tt,F),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(m,tt,F)),typeof w.componentDidUpdate=="function"&&(s.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof w.componentDidUpdate!="function"||A===l.memoizedProps&&K===l.memoizedState||(s.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||A===l.memoizedProps&&K===l.memoizedState||(s.flags|=1024),s.memoizedProps=m,s.memoizedState=tt),w.props=m,w.state=tt,w.context=F,m=et):(typeof w.componentDidUpdate!="function"||A===l.memoizedProps&&K===l.memoizedState||(s.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||A===l.memoizedProps&&K===l.memoizedState||(s.flags|=1024),m=!1)}return w=m,nh(l,s),m=(s.flags&128)!==0,w||m?(w=s.stateNode,h=m&&typeof h.getDerivedStateFromError!="function"?null:w.render(),s.flags|=1,l!==null&&m?(s.child=So(s,l.child,null,b),s.child=So(s,null,h,b)):We(l,s,h,b),s.memoizedState=w.state,l=s.child):l=La(l,s,b),l}function $x(l,s,h,m){return vo(),s.flags|=256,We(l,s,h,m),s.child}var Ug={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function jg(l){return{baseLanes:l,cachePool:kb()}}function Yg(l,s,h){return l=l!==null?l.childLanes&~h:0,s&&(l|=tr),l}function Wx(l,s,h){var m=s.pendingProps,b=!1,w=(s.flags&128)!==0,A;if((A=w)||(A=l!==null&&l.memoizedState===null?!1:(Le.current&2)!==0),A&&(b=!0,s.flags&=-129),A=(s.flags&32)!==0,s.flags&=-33,l===null){if(Xt){if(b?vi(s):di(),(l=me)?(l=aM(l,dr),l=l!==null&&l.data!=="&"?l:null,l!==null&&(s.memoizedState={dehydrated:l,treeContext:oi!==null?{id:Kr,overflow:Jr}:null,retryLane:536870912,hydrationErrors:null},h=Db(l),h.return=s,s.child=h,Ze=s,me=null)):l=null,l===null)throw si(s);return Am(l)?s.lanes=32:s.lanes=536870912,null}var O=m.children;return m=m.fallback,b?(di(),b=s.mode,O=rh({mode:"hidden",children:O},b),m=ho(m,b,h,null),O.return=s,m.return=s,O.sibling=m,s.child=O,m=s.child,m.memoizedState=jg(h),m.childLanes=Yg(l,A,h),s.memoizedState=Ug,du(null,m)):(vi(s),qg(s,O))}var F=l.memoizedState;if(F!==null&&(O=F.dehydrated,O!==null)){if(w)s.flags&256?(vi(s),s.flags&=-257,s=Xg(l,s,h)):s.memoizedState!==null?(di(),s.child=l.child,s.flags|=128,s=null):(di(),O=m.fallback,b=s.mode,m=rh({mode:"visible",children:m.children},b),O=ho(O,b,h,null),O.flags|=2,m.return=s,O.return=s,m.sibling=O,s.child=m,So(s,l.child,null,h),m=s.child,m.memoizedState=jg(h),m.childLanes=Yg(l,A,h),s.memoizedState=Ug,s=du(null,m));else if(vi(s),Am(O)){if(A=O.nextSibling&&O.nextSibling.dataset,A)var W=A.dgst;A=W,m=Error(r(419)),m.stack="",m.digest=A,nu({value:m,source:null,stack:null}),s=Xg(l,s,h)}else if(He||Bl(l,s,h,!1),A=(h&l.childLanes)!==0,He||A){if(A=pe,A!==null&&(m=I1(A,h),m!==0&&m!==F.retryLane))throw F.retryLane=m,co(l,m),Bn(A,l,m),Fg;Tm(O)||hh(),s=Xg(l,s,h)}else Tm(O)?(s.flags|=192,s.child=l.child,s=null):(l=F.treeContext,me=gr(O.nextSibling),Ze=s,Xt=!0,li=null,dr=!1,l!==null&&Lb(s,l),s=qg(s,m.children),s.flags|=4096);return s}return b?(di(),O=m.fallback,b=s.mode,F=l.child,W=F.sibling,m=Ca(F,{mode:"hidden",children:m.children}),m.subtreeFlags=F.subtreeFlags&65011712,W!==null?O=Ca(W,O):(O=ho(O,b,h,null),O.flags|=2),O.return=s,m.return=s,m.sibling=O,s.child=m,du(null,m),m=s.child,O=l.child.memoizedState,O===null?O=jg(h):(b=O.cachePool,b!==null?(F=ke._currentValue,b=b.parent!==F?{parent:F,pool:F}:b):b=kb(),O={baseLanes:O.baseLanes|h,cachePool:b}),m.memoizedState=O,m.childLanes=Yg(l,A,h),s.memoizedState=Ug,du(l.child,m)):(vi(s),h=l.child,l=h.sibling,h=Ca(h,{mode:"visible",children:m.children}),h.return=s,h.sibling=null,l!==null&&(A=s.deletions,A===null?(s.deletions=[l],s.flags|=16):A.push(l)),s.child=h,s.memoizedState=null,h)}function qg(l,s){return s=rh({mode:"visible",children:s},l.mode),s.return=l,l.child=s}function rh(l,s){return l=Wn(22,l,null,s),l.lanes=0,l}function Xg(l,s,h){return So(s,l.child,null,h),l=qg(s,s.pendingProps.children),l.flags|=2,s.memoizedState=null,l}function Qx(l,s,h){l.lanes|=s;var m=l.alternate;m!==null&&(m.lanes|=s),sg(l.return,s,h)}function Zg(l,s,h,m,b,w){var A=l.memoizedState;A===null?l.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:m,tail:h,tailMode:b,treeForkCount:w}:(A.isBackwards=s,A.rendering=null,A.renderingStartTime=0,A.last=m,A.tail=h,A.tailMode=b,A.treeForkCount=w)}function Kx(l,s,h){var m=s.pendingProps,b=m.revealOrder,w=m.tail;m=m.children;var A=Le.current,O=(A&2)!==0;if(O?(A=A&1|2,s.flags|=128):A&=1,rt(Le,A),We(l,s,m,h),m=Xt?eu:0,!O&&l!==null&&(l.flags&128)!==0)t:for(l=s.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&Qx(l,h,s);else if(l.tag===19)Qx(l,h,s);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===s)break t;for(;l.sibling===null;){if(l.return===null||l.return===s)break t;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(b){case"forwards":for(h=s.child,b=null;h!==null;)l=h.alternate,l!==null&&Yc(l)===null&&(b=h),h=h.sibling;h=b,h===null?(b=s.child,s.child=null):(b=h.sibling,h.sibling=null),Zg(s,!1,b,h,w,m);break;case"backwards":case"unstable_legacy-backwards":for(h=null,b=s.child,s.child=null;b!==null;){if(l=b.alternate,l!==null&&Yc(l)===null){s.child=b;break}l=b.sibling,b.sibling=h,h=b,b=l}Zg(s,!0,h,null,w,m);break;case"together":Zg(s,!1,null,null,void 0,m);break;default:s.memoizedState=null}return s.child}function La(l,s,h){if(l!==null&&(s.dependencies=l.dependencies),mi|=s.lanes,(h&s.childLanes)===0)if(l!==null){if(Bl(l,s,h,!1),(h&s.childLanes)===0)return null}else return null;if(l!==null&&s.child!==l.child)throw Error(r(153));if(s.child!==null){for(l=s.child,h=Ca(l,l.pendingProps),s.child=h,h.return=s;l.sibling!==null;)l=l.sibling,h=h.sibling=Ca(l,l.pendingProps),h.return=s;h.sibling=null}return s.child}function $g(l,s){return(l.lanes&s)!==0?!0:(l=l.dependencies,!!(l!==null&&kc(l)))}function AN(l,s,h){switch(s.tag){case 3:Kt(s,s.stateNode.containerInfo),ui(s,ke,l.memoizedState.cache),vo();break;case 27:case 5:te(s);break;case 4:Kt(s,s.stateNode.containerInfo);break;case 10:ui(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,Sg(s),null;break;case 13:var m=s.memoizedState;if(m!==null)return m.dehydrated!==null?(vi(s),s.flags|=128,null):(h&s.child.childLanes)!==0?Wx(l,s,h):(vi(s),l=La(l,s,h),l!==null?l.sibling:null);vi(s);break;case 19:var b=(l.flags&128)!==0;if(m=(h&s.childLanes)!==0,m||(Bl(l,s,h,!1),m=(h&s.childLanes)!==0),b){if(m)return Kx(l,s,h);s.flags|=128}if(b=s.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),rt(Le,Le.current),m)break;return null;case 22:return s.lanes=0,jx(l,s,h,s.pendingProps);case 24:ui(s,ke,l.memoizedState.cache)}return La(l,s,h)}function Jx(l,s,h){if(l!==null)if(l.memoizedProps!==s.pendingProps)He=!0;else{if(!$g(l,h)&&(s.flags&128)===0)return He=!1,AN(l,s,h);He=(l.flags&131072)!==0}else He=!1,Xt&&(s.flags&1048576)!==0&&Eb(s,eu,s.index);switch(s.lanes=0,s.tag){case 16:t:{var m=s.pendingProps;if(l=yo(s.elementType),s.type=l,typeof l=="function")tg(l)?(m=xo(l,m),s.tag=1,s=Zx(null,s,l,m,h)):(s.tag=0,s=Gg(null,s,l,m,h));else{if(l!=null){var b=l.$$typeof;if(b===T){s.tag=11,s=Fx(null,s,l,m,h);break t}else if(b===E){s.tag=14,s=Gx(null,s,l,m,h);break t}}throw s=j(l)||l,Error(r(306,s,""))}}return s;case 0:return Gg(l,s,s.type,s.pendingProps,h);case 1:return m=s.type,b=xo(m,s.pendingProps),Zx(l,s,m,b,h);case 3:t:{if(Kt(s,s.stateNode.containerInfo),l===null)throw Error(r(387));m=s.pendingProps;var w=s.memoizedState;b=w.element,pg(l,s),uu(s,m,null,h);var A=s.memoizedState;if(m=A.cache,ui(s,ke,m),m!==w.cache&&ug(s,[ke],h,!0),su(),m=A.element,w.isDehydrated)if(w={element:m,isDehydrated:!1,cache:A.cache},s.updateQueue.baseState=w,s.memoizedState=w,s.flags&256){s=$x(l,s,m,h);break t}else if(m!==b){b=cr(Error(r(424)),s),nu(b),s=$x(l,s,m,h);break t}else{switch(l=s.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(me=gr(l.firstChild),Ze=s,Xt=!0,li=null,dr=!0,h=Ub(s,null,m,h),s.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling}else{if(vo(),m===b){s=La(l,s,h);break t}We(l,s,m,h)}s=s.child}return s;case 26:return nh(l,s),l===null?(h=fM(s.type,null,s.pendingProps,null))?s.memoizedState=h:Xt||(h=s.type,l=s.pendingProps,m=_h(gt.current).createElement(h),m[Xe]=s,m[En]=l,Qe(m,h,l),Ge(m),s.stateNode=m):s.memoizedState=fM(s.type,l.memoizedProps,s.pendingProps,l.memoizedState),null;case 27:return te(s),l===null&&Xt&&(m=s.stateNode=lM(s.type,s.pendingProps,gt.current),Ze=s,dr=!0,b=me,xi(s.type)?(Dm=b,me=gr(m.firstChild)):me=b),We(l,s,s.pendingProps.children,h),nh(l,s),l===null&&(s.flags|=4194304),s.child;case 5:return l===null&&Xt&&((b=m=me)&&(m=rI(m,s.type,s.pendingProps,dr),m!==null?(s.stateNode=m,Ze=s,me=gr(m.firstChild),dr=!1,b=!0):b=!1),b||si(s)),te(s),b=s.type,w=s.pendingProps,A=l!==null?l.memoizedProps:null,m=w.children,wm(b,w)?m=null:A!==null&&wm(b,A)&&(s.flags|=32),s.memoizedState!==null&&(b=xg(l,s,yN,null,null,h),Ru._currentValue=b),nh(l,s),We(l,s,m,h),s.child;case 6:return l===null&&Xt&&((l=h=me)&&(h=aI(h,s.pendingProps,dr),h!==null?(s.stateNode=h,Ze=s,me=null,l=!0):l=!1),l||si(s)),null;case 13:return Wx(l,s,h);case 4:return Kt(s,s.stateNode.containerInfo),m=s.pendingProps,l===null?s.child=So(s,null,m,h):We(l,s,m,h),s.child;case 11:return Fx(l,s,s.type,s.pendingProps,h);case 7:return We(l,s,s.pendingProps,h),s.child;case 8:return We(l,s,s.pendingProps.children,h),s.child;case 12:return We(l,s,s.pendingProps.children,h),s.child;case 10:return m=s.pendingProps,ui(s,s.type,m.value),We(l,s,m.children,h),s.child;case 9:return b=s.type._context,m=s.pendingProps.children,go(s),b=$e(b),m=m(b),s.flags|=1,We(l,s,m,h),s.child;case 14:return Gx(l,s,s.type,s.pendingProps,h);case 15:return Ux(l,s,s.type,s.pendingProps,h);case 19:return Kx(l,s,h);case 31:return TN(l,s,h);case 22:return jx(l,s,h,s.pendingProps);case 24:return go(s),m=$e(ke),l===null?(b=hg(),b===null&&(b=pe,w=fg(),b.pooledCache=w,w.refCount++,w!==null&&(b.pooledCacheLanes|=h),b=w),s.memoizedState={parent:m,cache:b},dg(s),ui(s,ke,b)):((l.lanes&h)!==0&&(pg(l,s),uu(s,null,null,h),su()),b=l.memoizedState,w=s.memoizedState,b.parent!==m?(b={parent:m,cache:m},s.memoizedState=b,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=b),ui(s,ke,m)):(m=w.cache,ui(s,ke,m),m!==b.cache&&ug(s,[ke],h,!0))),We(l,s,s.pendingProps.children,h),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function Oa(l){l.flags|=4}function Wg(l,s,h,m,b){if((s=(l.mode&32)!==0)&&(s=!1),s){if(l.flags|=16777216,(b&335544128)===b)if(l.stateNode.complete)l.flags|=8192;else if(Tw())l.flags|=8192;else throw _o=Fc,vg}else l.flags&=-16777217}function tw(l,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!pM(s))if(Tw())l.flags|=8192;else throw _o=Fc,vg}function ah(l,s){s!==null&&(l.flags|=4),l.flags&16384&&(s=l.tag!==22?O1():536870912,l.lanes|=s,Zl|=s)}function pu(l,s){if(!Xt)switch(l.tailMode){case"hidden":s=l.tail;for(var h=null;s!==null;)s.alternate!==null&&(h=s),s=s.sibling;h===null?l.tail=null:h.sibling=null;break;case"collapsed":h=l.tail;for(var m=null;h!==null;)h.alternate!==null&&(m=h),h=h.sibling;m===null?s||l.tail===null?l.tail=null:l.tail.sibling=null:m.sibling=null}}function ye(l){var s=l.alternate!==null&&l.alternate.child===l.child,h=0,m=0;if(s)for(var b=l.child;b!==null;)h|=b.lanes|b.childLanes,m|=b.subtreeFlags&65011712,m|=b.flags&65011712,b.return=l,b=b.sibling;else for(b=l.child;b!==null;)h|=b.lanes|b.childLanes,m|=b.subtreeFlags,m|=b.flags,b.return=l,b=b.sibling;return l.subtreeFlags|=m,l.childLanes=h,s}function DN(l,s,h){var m=s.pendingProps;switch(ag(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ye(s),null;case 1:return ye(s),null;case 3:return h=s.stateNode,m=null,l!==null&&(m=l.memoizedState.cache),s.memoizedState.cache!==m&&(s.flags|=2048),Da(ke),St(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(l===null||l.child===null)&&(Il(s)?Oa(s):l===null||l.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,og())),ye(s),null;case 26:var b=s.type,w=s.memoizedState;return l===null?(Oa(s),w!==null?(ye(s),tw(s,w)):(ye(s),Wg(s,b,null,m,h))):w?w!==l.memoizedState?(Oa(s),ye(s),tw(s,w)):(ye(s),s.flags&=-16777217):(l=l.memoizedProps,l!==m&&Oa(s),ye(s),Wg(s,b,l,m,h)),null;case 27:if(bt(s),h=gt.current,b=s.type,l!==null&&s.stateNode!=null)l.memoizedProps!==m&&Oa(s);else{if(!m){if(s.stateNode===null)throw Error(r(166));return ye(s),null}l=it.current,Il(s)?Ob(s):(l=lM(b,m,h),s.stateNode=l,Oa(s))}return ye(s),null;case 5:if(bt(s),b=s.type,l!==null&&s.stateNode!=null)l.memoizedProps!==m&&Oa(s);else{if(!m){if(s.stateNode===null)throw Error(r(166));return ye(s),null}if(w=it.current,Il(s))Ob(s);else{var A=_h(gt.current);switch(w){case 1:w=A.createElementNS("http://www.w3.org/2000/svg",b);break;case 2:w=A.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;default:switch(b){case"svg":w=A.createElementNS("http://www.w3.org/2000/svg",b);break;case"math":w=A.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;case"script":w=A.createElement("div"),w.innerHTML="<script><\/script>",w=w.removeChild(w.firstChild);break;case"select":w=typeof m.is=="string"?A.createElement("select",{is:m.is}):A.createElement("select"),m.multiple?w.multiple=!0:m.size&&(w.size=m.size);break;default:w=typeof m.is=="string"?A.createElement(b,{is:m.is}):A.createElement(b)}}w[Xe]=s,w[En]=m;t:for(A=s.child;A!==null;){if(A.tag===5||A.tag===6)w.appendChild(A.stateNode);else if(A.tag!==4&&A.tag!==27&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===s)break t;for(;A.sibling===null;){if(A.return===null||A.return===s)break t;A=A.return}A.sibling.return=A.return,A=A.sibling}s.stateNode=w;t:switch(Qe(w,b,m),b){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break t;case"img":m=!0;break t;default:m=!1}m&&Oa(s)}}return ye(s),Wg(s,s.type,l===null?null:l.memoizedProps,s.pendingProps,h),null;case 6:if(l&&s.stateNode!=null)l.memoizedProps!==m&&Oa(s);else{if(typeof m!="string"&&s.stateNode===null)throw Error(r(166));if(l=gt.current,Il(s)){if(l=s.stateNode,h=s.memoizedProps,m=null,b=Ze,b!==null)switch(b.tag){case 27:case 5:m=b.memoizedProps}l[Xe]=s,l=!!(l.nodeValue===h||m!==null&&m.suppressHydrationWarning===!0||Ww(l.nodeValue,h)),l||si(s,!0)}else l=_h(l).createTextNode(m),l[Xe]=s,s.stateNode=l}return ye(s),null;case 31:if(h=s.memoizedState,l===null||l.memoizedState!==null){if(m=Il(s),h!==null){if(l===null){if(!m)throw Error(r(318));if(l=s.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(557));l[Xe]=s}else vo(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;ye(s),l=!1}else h=og(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=h),l=!0;if(!l)return s.flags&256?(Kn(s),s):(Kn(s),null);if((s.flags&128)!==0)throw Error(r(558))}return ye(s),null;case 13:if(m=s.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(b=Il(s),m!==null&&m.dehydrated!==null){if(l===null){if(!b)throw Error(r(318));if(b=s.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(r(317));b[Xe]=s}else vo(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;ye(s),b=!1}else b=og(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=b),b=!0;if(!b)return s.flags&256?(Kn(s),s):(Kn(s),null)}return Kn(s),(s.flags&128)!==0?(s.lanes=h,s):(h=m!==null,l=l!==null&&l.memoizedState!==null,h&&(m=s.child,b=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(b=m.alternate.memoizedState.cachePool.pool),w=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(w=m.memoizedState.cachePool.pool),w!==b&&(m.flags|=2048)),h!==l&&h&&(s.child.flags|=8192),ah(s,s.updateQueue),ye(s),null);case 4:return St(),l===null&&ym(s.stateNode.containerInfo),ye(s),null;case 10:return Da(s.type),ye(s),null;case 19:if(q(Le),m=s.memoizedState,m===null)return ye(s),null;if(b=(s.flags&128)!==0,w=m.rendering,w===null)if(b)pu(m,!1);else{if(Ae!==0||l!==null&&(l.flags&128)!==0)for(l=s.child;l!==null;){if(w=Yc(l),w!==null){for(s.flags|=128,pu(m,!1),l=w.updateQueue,s.updateQueue=l,ah(s,l),s.subtreeFlags=0,l=h,h=s.child;h!==null;)Ab(h,l),h=h.sibling;return rt(Le,Le.current&1|2),Xt&&Ta(s,m.treeForkCount),s.child}l=l.sibling}m.tail!==null&&ge()>uh&&(s.flags|=128,b=!0,pu(m,!1),s.lanes=4194304)}else{if(!b)if(l=Yc(w),l!==null){if(s.flags|=128,b=!0,l=l.updateQueue,s.updateQueue=l,ah(s,l),pu(m,!0),m.tail===null&&m.tailMode==="hidden"&&!w.alternate&&!Xt)return ye(s),null}else 2*ge()-m.renderingStartTime>uh&&h!==536870912&&(s.flags|=128,b=!0,pu(m,!1),s.lanes=4194304);m.isBackwards?(w.sibling=s.child,s.child=w):(l=m.last,l!==null?l.sibling=w:s.child=w,m.last=w)}return m.tail!==null?(l=m.tail,m.rendering=l,m.tail=l.sibling,m.renderingStartTime=ge(),l.sibling=null,h=Le.current,rt(Le,b?h&1|2:h&1),Xt&&Ta(s,m.treeForkCount),l):(ye(s),null);case 22:case 23:return Kn(s),_g(),m=s.memoizedState!==null,l!==null?l.memoizedState!==null!==m&&(s.flags|=8192):m&&(s.flags|=8192),m?(h&536870912)!==0&&(s.flags&128)===0&&(ye(s),s.subtreeFlags&6&&(s.flags|=8192)):ye(s),h=s.updateQueue,h!==null&&ah(s,h.retryQueue),h=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),m=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),m!==h&&(s.flags|=2048),l!==null&&q(mo),null;case 24:return h=null,l!==null&&(h=l.memoizedState.cache),s.memoizedState.cache!==h&&(s.flags|=2048),Da(ke),ye(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function RN(l,s){switch(ag(s),s.tag){case 1:return l=s.flags,l&65536?(s.flags=l&-65537|128,s):null;case 3:return Da(ke),St(),l=s.flags,(l&65536)!==0&&(l&128)===0?(s.flags=l&-65537|128,s):null;case 26:case 27:case 5:return bt(s),null;case 31:if(s.memoizedState!==null){if(Kn(s),s.alternate===null)throw Error(r(340));vo()}return l=s.flags,l&65536?(s.flags=l&-65537|128,s):null;case 13:if(Kn(s),l=s.memoizedState,l!==null&&l.dehydrated!==null){if(s.alternate===null)throw Error(r(340));vo()}return l=s.flags,l&65536?(s.flags=l&-65537|128,s):null;case 19:return q(Le),null;case 4:return St(),null;case 10:return Da(s.type),null;case 22:case 23:return Kn(s),_g(),l!==null&&q(mo),l=s.flags,l&65536?(s.flags=l&-65537|128,s):null;case 24:return Da(ke),null;case 25:return null;default:return null}}function ew(l,s){switch(ag(s),s.tag){case 3:Da(ke),St();break;case 26:case 27:case 5:bt(s);break;case 4:St();break;case 31:s.memoizedState!==null&&Kn(s);break;case 13:Kn(s);break;case 19:q(Le);break;case 10:Da(s.type);break;case 22:case 23:Kn(s),_g(),l!==null&&q(mo);break;case 24:Da(ke)}}function gu(l,s){try{var h=s.updateQueue,m=h!==null?h.lastEffect:null;if(m!==null){var b=m.next;h=b;do{if((h.tag&l)===l){m=void 0;var w=h.create,A=h.inst;m=w(),A.destroy=m}h=h.next}while(h!==b)}}catch(O){se(s,s.return,O)}}function pi(l,s,h){try{var m=s.updateQueue,b=m!==null?m.lastEffect:null;if(b!==null){var w=b.next;m=w;do{if((m.tag&l)===l){var A=m.inst,O=A.destroy;if(O!==void 0){A.destroy=void 0,b=s;var F=h,W=O;try{W()}catch(et){se(b,F,et)}}}m=m.next}while(m!==w)}}catch(et){se(s,s.return,et)}}function nw(l){var s=l.updateQueue;if(s!==null){var h=l.stateNode;try{Yb(s,h)}catch(m){se(l,l.return,m)}}}function rw(l,s,h){h.props=xo(l.type,l.memoizedProps),h.state=l.memoizedState;try{h.componentWillUnmount()}catch(m){se(l,s,m)}}function mu(l,s){try{var h=l.ref;if(h!==null){switch(l.tag){case 26:case 27:case 5:var m=l.stateNode;break;case 30:m=l.stateNode;break;default:m=l.stateNode}typeof h=="function"?l.refCleanup=h(m):h.current=m}}catch(b){se(l,s,b)}}function ta(l,s){var h=l.ref,m=l.refCleanup;if(h!==null)if(typeof m=="function")try{m()}catch(b){se(l,s,b)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof h=="function")try{h(null)}catch(b){se(l,s,b)}else h.current=null}function aw(l){var s=l.type,h=l.memoizedProps,m=l.stateNode;try{t:switch(s){case"button":case"input":case"select":case"textarea":h.autoFocus&&m.focus();break t;case"img":h.src?m.src=h.src:h.srcSet&&(m.srcset=h.srcSet)}}catch(b){se(l,l.return,b)}}function Qg(l,s,h){try{var m=l.stateNode;QN(m,l.type,h,s),m[En]=s}catch(b){se(l,l.return,b)}}function iw(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&xi(l.type)||l.tag===4}function Kg(l){t:for(;;){for(;l.sibling===null;){if(l.return===null||iw(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.tag===27&&xi(l.type)||l.flags&2||l.child===null||l.tag===4)continue t;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function Jg(l,s,h){var m=l.tag;if(m===5||m===6)l=l.stateNode,s?(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h).insertBefore(l,s):(s=h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,s.appendChild(l),h=h._reactRootContainer,h!=null||s.onclick!==null||(s.onclick=wa));else if(m!==4&&(m===27&&xi(l.type)&&(h=l.stateNode,s=null),l=l.child,l!==null))for(Jg(l,s,h),l=l.sibling;l!==null;)Jg(l,s,h),l=l.sibling}function ih(l,s,h){var m=l.tag;if(m===5||m===6)l=l.stateNode,s?h.insertBefore(l,s):h.appendChild(l);else if(m!==4&&(m===27&&xi(l.type)&&(h=l.stateNode),l=l.child,l!==null))for(ih(l,s,h),l=l.sibling;l!==null;)ih(l,s,h),l=l.sibling}function ow(l){var s=l.stateNode,h=l.memoizedProps;try{for(var m=l.type,b=s.attributes;b.length;)s.removeAttributeNode(b[0]);Qe(s,m,h),s[Xe]=l,s[En]=h}catch(w){se(l,l.return,w)}}var za=!1,Ve=!1,tm=!1,lw=typeof WeakSet=="function"?WeakSet:Set,Ue=null;function EN(l,s){if(l=l.containerInfo,bm=Th,l=yb(l),Xp(l)){if("selectionStart"in l)var h={start:l.selectionStart,end:l.selectionEnd};else t:{h=(h=l.ownerDocument)&&h.defaultView||window;var m=h.getSelection&&h.getSelection();if(m&&m.rangeCount!==0){h=m.anchorNode;var b=m.anchorOffset,w=m.focusNode;m=m.focusOffset;try{h.nodeType,w.nodeType}catch{h=null;break t}var A=0,O=-1,F=-1,W=0,et=0,at=l,K=null;e:for(;;){for(var tt;at!==h||b!==0&&at.nodeType!==3||(O=A+b),at!==w||m!==0&&at.nodeType!==3||(F=A+m),at.nodeType===3&&(A+=at.nodeValue.length),(tt=at.firstChild)!==null;)K=at,at=tt;for(;;){if(at===l)break e;if(K===h&&++W===b&&(O=A),K===w&&++et===m&&(F=A),(tt=at.nextSibling)!==null)break;at=K,K=at.parentNode}at=tt}h=O===-1||F===-1?null:{start:O,end:F}}else h=null}h=h||{start:0,end:0}}else h=null;for(xm={focusedElem:l,selectionRange:h},Th=!1,Ue=s;Ue!==null;)if(s=Ue,l=s.child,(s.subtreeFlags&1028)!==0&&l!==null)l.return=s,Ue=l;else for(;Ue!==null;){switch(s=Ue,w=s.alternate,l=s.flags,s.tag){case 0:if((l&4)!==0&&(l=s.updateQueue,l=l!==null?l.events:null,l!==null))for(h=0;h<l.length;h++)b=l[h],b.ref.impl=b.nextImpl;break;case 11:case 15:break;case 1:if((l&1024)!==0&&w!==null){l=void 0,h=s,b=w.memoizedProps,w=w.memoizedState,m=h.stateNode;try{var ht=xo(h.type,b);l=m.getSnapshotBeforeUpdate(ht,w),m.__reactInternalSnapshotBeforeUpdate=l}catch(xt){se(h,h.return,xt)}}break;case 3:if((l&1024)!==0){if(l=s.stateNode.containerInfo,h=l.nodeType,h===9)Cm(l);else if(h===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":Cm(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error(r(163))}if(l=s.sibling,l!==null){l.return=s.return,Ue=l;break}Ue=s.return}}function sw(l,s,h){var m=h.flags;switch(h.tag){case 0:case 11:case 15:Ia(l,h),m&4&&gu(5,h);break;case 1:if(Ia(l,h),m&4)if(l=h.stateNode,s===null)try{l.componentDidMount()}catch(A){se(h,h.return,A)}else{var b=xo(h.type,s.memoizedProps);s=s.memoizedState;try{l.componentDidUpdate(b,s,l.__reactInternalSnapshotBeforeUpdate)}catch(A){se(h,h.return,A)}}m&64&&nw(h),m&512&&mu(h,h.return);break;case 3:if(Ia(l,h),m&64&&(l=h.updateQueue,l!==null)){if(s=null,h.child!==null)switch(h.child.tag){case 27:case 5:s=h.child.stateNode;break;case 1:s=h.child.stateNode}try{Yb(l,s)}catch(A){se(h,h.return,A)}}break;case 27:s===null&&m&4&&ow(h);case 26:case 5:Ia(l,h),s===null&&m&4&&aw(h),m&512&&mu(h,h.return);break;case 12:Ia(l,h);break;case 31:Ia(l,h),m&4&&cw(l,h);break;case 13:Ia(l,h),m&4&&hw(l,h),m&64&&(l=h.memoizedState,l!==null&&(l=l.dehydrated,l!==null&&(h=HN.bind(null,h),iI(l,h))));break;case 22:if(m=h.memoizedState!==null||za,!m){s=s!==null&&s.memoizedState!==null||Ve,b=za;var w=Ve;za=m,(Ve=s)&&!w?Ba(l,h,(h.subtreeFlags&8772)!==0):Ia(l,h),za=b,Ve=w}break;case 30:break;default:Ia(l,h)}}function uw(l){var s=l.alternate;s!==null&&(l.alternate=null,uw(s)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(s=l.stateNode,s!==null&&Ep(s)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}var we=null,On=!1;function Na(l,s,h){for(h=h.child;h!==null;)fw(l,s,h),h=h.sibling}function fw(l,s,h){if(rn&&typeof rn.onCommitFiberUnmount=="function")try{rn.onCommitFiberUnmount(_a,h)}catch{}switch(h.tag){case 26:Ve||ta(h,s),Na(l,s,h),h.memoizedState?h.memoizedState.count--:h.stateNode&&(h=h.stateNode,h.parentNode.removeChild(h));break;case 27:Ve||ta(h,s);var m=we,b=On;xi(h.type)&&(we=h.stateNode,On=!1),Na(l,s,h),Tu(h.stateNode),we=m,On=b;break;case 5:Ve||ta(h,s);case 6:if(m=we,b=On,we=null,Na(l,s,h),we=m,On=b,we!==null)if(On)try{(we.nodeType===9?we.body:we.nodeName==="HTML"?we.ownerDocument.body:we).removeChild(h.stateNode)}catch(w){se(h,s,w)}else try{we.removeChild(h.stateNode)}catch(w){se(h,s,w)}break;case 18:we!==null&&(On?(l=we,nM(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,h.stateNode),ns(l)):nM(we,h.stateNode));break;case 4:m=we,b=On,we=h.stateNode.containerInfo,On=!0,Na(l,s,h),we=m,On=b;break;case 0:case 11:case 14:case 15:pi(2,h,s),Ve||pi(4,h,s),Na(l,s,h);break;case 1:Ve||(ta(h,s),m=h.stateNode,typeof m.componentWillUnmount=="function"&&rw(h,s,m)),Na(l,s,h);break;case 21:Na(l,s,h);break;case 22:Ve=(m=Ve)||h.memoizedState!==null,Na(l,s,h),Ve=m;break;default:Na(l,s,h)}}function cw(l,s){if(s.memoizedState===null&&(l=s.alternate,l!==null&&(l=l.memoizedState,l!==null))){l=l.dehydrated;try{ns(l)}catch(h){se(s,s.return,h)}}}function hw(l,s){if(s.memoizedState===null&&(l=s.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{ns(l)}catch(h){se(s,s.return,h)}}function LN(l){switch(l.tag){case 31:case 13:case 19:var s=l.stateNode;return s===null&&(s=l.stateNode=new lw),s;case 22:return l=l.stateNode,s=l._retryCache,s===null&&(s=l._retryCache=new lw),s;default:throw Error(r(435,l.tag))}}function oh(l,s){var h=LN(l);s.forEach(function(m){if(!h.has(m)){h.add(m);var b=VN.bind(null,l,m);m.then(b,b)}})}function zn(l,s){var h=s.deletions;if(h!==null)for(var m=0;m<h.length;m++){var b=h[m],w=l,A=s,O=A;t:for(;O!==null;){switch(O.tag){case 27:if(xi(O.type)){we=O.stateNode,On=!1;break t}break;case 5:we=O.stateNode,On=!1;break t;case 3:case 4:we=O.stateNode.containerInfo,On=!0;break t}O=O.return}if(we===null)throw Error(r(160));fw(w,A,b),we=null,On=!1,w=b.alternate,w!==null&&(w.return=null),b.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)vw(s,l),s=s.sibling}var kr=null;function vw(l,s){var h=l.alternate,m=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:zn(s,l),Nn(l),m&4&&(pi(3,l,l.return),gu(3,l),pi(5,l,l.return));break;case 1:zn(s,l),Nn(l),m&512&&(Ve||h===null||ta(h,h.return)),m&64&&za&&(l=l.updateQueue,l!==null&&(m=l.callbacks,m!==null&&(h=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=h===null?m:h.concat(m))));break;case 26:var b=kr;if(zn(s,l),Nn(l),m&512&&(Ve||h===null||ta(h,h.return)),m&4){var w=h!==null?h.memoizedState:null;if(m=l.memoizedState,h===null)if(m===null)if(l.stateNode===null){t:{m=l.type,h=l.memoizedProps,b=b.ownerDocument||b;e:switch(m){case"title":w=b.getElementsByTagName("title")[0],(!w||w[js]||w[Xe]||w.namespaceURI==="http://www.w3.org/2000/svg"||w.hasAttribute("itemprop"))&&(w=b.createElement(m),b.head.insertBefore(w,b.querySelector("head > title"))),Qe(w,m,h),w[Xe]=l,Ge(w),m=w;break t;case"link":var A=vM("link","href",b).get(m+(h.href||""));if(A){for(var O=0;O<A.length;O++)if(w=A[O],w.getAttribute("href")===(h.href==null||h.href===""?null:h.href)&&w.getAttribute("rel")===(h.rel==null?null:h.rel)&&w.getAttribute("title")===(h.title==null?null:h.title)&&w.getAttribute("crossorigin")===(h.crossOrigin==null?null:h.crossOrigin)){A.splice(O,1);break e}}w=b.createElement(m),Qe(w,m,h),b.head.appendChild(w);break;case"meta":if(A=vM("meta","content",b).get(m+(h.content||""))){for(O=0;O<A.length;O++)if(w=A[O],w.getAttribute("content")===(h.content==null?null:""+h.content)&&w.getAttribute("name")===(h.name==null?null:h.name)&&w.getAttribute("property")===(h.property==null?null:h.property)&&w.getAttribute("http-equiv")===(h.httpEquiv==null?null:h.httpEquiv)&&w.getAttribute("charset")===(h.charSet==null?null:h.charSet)){A.splice(O,1);break e}}w=b.createElement(m),Qe(w,m,h),b.head.appendChild(w);break;default:throw Error(r(468,m))}w[Xe]=l,Ge(w),m=w}l.stateNode=m}else dM(b,l.type,l.stateNode);else l.stateNode=hM(b,m,l.memoizedProps);else w!==m?(w===null?h.stateNode!==null&&(h=h.stateNode,h.parentNode.removeChild(h)):w.count--,m===null?dM(b,l.type,l.stateNode):hM(b,m,l.memoizedProps)):m===null&&l.stateNode!==null&&Qg(l,l.memoizedProps,h.memoizedProps)}break;case 27:zn(s,l),Nn(l),m&512&&(Ve||h===null||ta(h,h.return)),h!==null&&m&4&&Qg(l,l.memoizedProps,h.memoizedProps);break;case 5:if(zn(s,l),Nn(l),m&512&&(Ve||h===null||ta(h,h.return)),l.flags&32){b=l.stateNode;try{Cl(b,"")}catch(ht){se(l,l.return,ht)}}m&4&&l.stateNode!=null&&(b=l.memoizedProps,Qg(l,b,h!==null?h.memoizedProps:b)),m&1024&&(tm=!0);break;case 6:if(zn(s,l),Nn(l),m&4){if(l.stateNode===null)throw Error(r(162));m=l.memoizedProps,h=l.stateNode;try{h.nodeValue=m}catch(ht){se(l,l.return,ht)}}break;case 3:if(xh=null,b=kr,kr=Sh(s.containerInfo),zn(s,l),kr=b,Nn(l),m&4&&h!==null&&h.memoizedState.isDehydrated)try{ns(s.containerInfo)}catch(ht){se(l,l.return,ht)}tm&&(tm=!1,dw(l));break;case 4:m=kr,kr=Sh(l.stateNode.containerInfo),zn(s,l),Nn(l),kr=m;break;case 12:zn(s,l),Nn(l);break;case 31:zn(s,l),Nn(l),m&4&&(m=l.updateQueue,m!==null&&(l.updateQueue=null,oh(l,m)));break;case 13:zn(s,l),Nn(l),l.child.flags&8192&&l.memoizedState!==null!=(h!==null&&h.memoizedState!==null)&&(sh=ge()),m&4&&(m=l.updateQueue,m!==null&&(l.updateQueue=null,oh(l,m)));break;case 22:b=l.memoizedState!==null;var F=h!==null&&h.memoizedState!==null,W=za,et=Ve;if(za=W||b,Ve=et||F,zn(s,l),Ve=et,za=W,Nn(l),m&8192)t:for(s=l.stateNode,s._visibility=b?s._visibility&-2:s._visibility|1,b&&(h===null||F||za||Ve||wo(l)),h=null,s=l;;){if(s.tag===5||s.tag===26){if(h===null){F=h=s;try{if(w=F.stateNode,b)A=w.style,typeof A.setProperty=="function"?A.setProperty("display","none","important"):A.display="none";else{O=F.stateNode;var at=F.memoizedProps.style,K=at!=null&&at.hasOwnProperty("display")?at.display:null;O.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(ht){se(F,F.return,ht)}}}else if(s.tag===6){if(h===null){F=s;try{F.stateNode.nodeValue=b?"":F.memoizedProps}catch(ht){se(F,F.return,ht)}}}else if(s.tag===18){if(h===null){F=s;try{var tt=F.stateNode;b?rM(tt,!0):rM(F.stateNode,!1)}catch(ht){se(F,F.return,ht)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===l)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===l)break t;for(;s.sibling===null;){if(s.return===null||s.return===l)break t;h===s&&(h=null),s=s.return}h===s&&(h=null),s.sibling.return=s.return,s=s.sibling}m&4&&(m=l.updateQueue,m!==null&&(h=m.retryQueue,h!==null&&(m.retryQueue=null,oh(l,h))));break;case 19:zn(s,l),Nn(l),m&4&&(m=l.updateQueue,m!==null&&(l.updateQueue=null,oh(l,m)));break;case 30:break;case 21:break;default:zn(s,l),Nn(l)}}function Nn(l){var s=l.flags;if(s&2){try{for(var h,m=l.return;m!==null;){if(iw(m)){h=m;break}m=m.return}if(h==null)throw Error(r(160));switch(h.tag){case 27:var b=h.stateNode,w=Kg(l);ih(l,w,b);break;case 5:var A=h.stateNode;h.flags&32&&(Cl(A,""),h.flags&=-33);var O=Kg(l);ih(l,O,A);break;case 3:case 4:var F=h.stateNode.containerInfo,W=Kg(l);Jg(l,W,F);break;default:throw Error(r(161))}}catch(et){se(l,l.return,et)}l.flags&=-3}s&4096&&(l.flags&=-4097)}function dw(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var s=l;dw(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),l=l.sibling}}function Ia(l,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)sw(l,s.alternate,s),s=s.sibling}function wo(l){for(l=l.child;l!==null;){var s=l;switch(s.tag){case 0:case 11:case 14:case 15:pi(4,s,s.return),wo(s);break;case 1:ta(s,s.return);var h=s.stateNode;typeof h.componentWillUnmount=="function"&&rw(s,s.return,h),wo(s);break;case 27:Tu(s.stateNode);case 26:case 5:ta(s,s.return),wo(s);break;case 22:s.memoizedState===null&&wo(s);break;case 30:wo(s);break;default:wo(s)}l=l.sibling}}function Ba(l,s,h){for(h=h&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var m=s.alternate,b=l,w=s,A=w.flags;switch(w.tag){case 0:case 11:case 15:Ba(b,w,h),gu(4,w);break;case 1:if(Ba(b,w,h),m=w,b=m.stateNode,typeof b.componentDidMount=="function")try{b.componentDidMount()}catch(W){se(m,m.return,W)}if(m=w,b=m.updateQueue,b!==null){var O=m.stateNode;try{var F=b.shared.hiddenCallbacks;if(F!==null)for(b.shared.hiddenCallbacks=null,b=0;b<F.length;b++)jb(F[b],O)}catch(W){se(m,m.return,W)}}h&&A&64&&nw(w),mu(w,w.return);break;case 27:ow(w);case 26:case 5:Ba(b,w,h),h&&m===null&&A&4&&aw(w),mu(w,w.return);break;case 12:Ba(b,w,h);break;case 31:Ba(b,w,h),h&&A&4&&cw(b,w);break;case 13:Ba(b,w,h),h&&A&4&&hw(b,w);break;case 22:w.memoizedState===null&&Ba(b,w,h),mu(w,w.return);break;case 30:break;default:Ba(b,w,h)}s=s.sibling}}function em(l,s){var h=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),l=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(l=s.memoizedState.cachePool.pool),l!==h&&(l!=null&&l.refCount++,h!=null&&ru(h))}function nm(l,s){l=null,s.alternate!==null&&(l=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==l&&(s.refCount++,l!=null&&ru(l))}function Pr(l,s,h,m){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)pw(l,s,h,m),s=s.sibling}function pw(l,s,h,m){var b=s.flags;switch(s.tag){case 0:case 11:case 15:Pr(l,s,h,m),b&2048&&gu(9,s);break;case 1:Pr(l,s,h,m);break;case 3:Pr(l,s,h,m),b&2048&&(l=null,s.alternate!==null&&(l=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==l&&(s.refCount++,l!=null&&ru(l)));break;case 12:if(b&2048){Pr(l,s,h,m),l=s.stateNode;try{var w=s.memoizedProps,A=w.id,O=w.onPostCommit;typeof O=="function"&&O(A,s.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(F){se(s,s.return,F)}}else Pr(l,s,h,m);break;case 31:Pr(l,s,h,m);break;case 13:Pr(l,s,h,m);break;case 23:break;case 22:w=s.stateNode,A=s.alternate,s.memoizedState!==null?w._visibility&2?Pr(l,s,h,m):yu(l,s):w._visibility&2?Pr(l,s,h,m):(w._visibility|=2,Yl(l,s,h,m,(s.subtreeFlags&10256)!==0||!1)),b&2048&&em(A,s);break;case 24:Pr(l,s,h,m),b&2048&&nm(s.alternate,s);break;default:Pr(l,s,h,m)}}function Yl(l,s,h,m,b){for(b=b&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var w=l,A=s,O=h,F=m,W=A.flags;switch(A.tag){case 0:case 11:case 15:Yl(w,A,O,F,b),gu(8,A);break;case 23:break;case 22:var et=A.stateNode;A.memoizedState!==null?et._visibility&2?Yl(w,A,O,F,b):yu(w,A):(et._visibility|=2,Yl(w,A,O,F,b)),b&&W&2048&&em(A.alternate,A);break;case 24:Yl(w,A,O,F,b),b&&W&2048&&nm(A.alternate,A);break;default:Yl(w,A,O,F,b)}s=s.sibling}}function yu(l,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var h=l,m=s,b=m.flags;switch(m.tag){case 22:yu(h,m),b&2048&&em(m.alternate,m);break;case 24:yu(h,m),b&2048&&nm(m.alternate,m);break;default:yu(h,m)}s=s.sibling}}var _u=8192;function ql(l,s,h){if(l.subtreeFlags&_u)for(l=l.child;l!==null;)gw(l,s,h),l=l.sibling}function gw(l,s,h){switch(l.tag){case 26:ql(l,s,h),l.flags&_u&&l.memoizedState!==null&&mI(h,kr,l.memoizedState,l.memoizedProps);break;case 5:ql(l,s,h);break;case 3:case 4:var m=kr;kr=Sh(l.stateNode.containerInfo),ql(l,s,h),kr=m;break;case 22:l.memoizedState===null&&(m=l.alternate,m!==null&&m.memoizedState!==null?(m=_u,_u=16777216,ql(l,s,h),_u=m):ql(l,s,h));break;default:ql(l,s,h)}}function mw(l){var s=l.alternate;if(s!==null&&(l=s.child,l!==null)){s.child=null;do s=l.sibling,l.sibling=null,l=s;while(l!==null)}}function Su(l){var s=l.deletions;if((l.flags&16)!==0){if(s!==null)for(var h=0;h<s.length;h++){var m=s[h];Ue=m,_w(m,l)}mw(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)yw(l),l=l.sibling}function yw(l){switch(l.tag){case 0:case 11:case 15:Su(l),l.flags&2048&&pi(9,l,l.return);break;case 3:Su(l);break;case 12:Su(l);break;case 22:var s=l.stateNode;l.memoizedState!==null&&s._visibility&2&&(l.return===null||l.return.tag!==13)?(s._visibility&=-3,lh(l)):Su(l);break;default:Su(l)}}function lh(l){var s=l.deletions;if((l.flags&16)!==0){if(s!==null)for(var h=0;h<s.length;h++){var m=s[h];Ue=m,_w(m,l)}mw(l)}for(l=l.child;l!==null;){switch(s=l,s.tag){case 0:case 11:case 15:pi(8,s,s.return),lh(s);break;case 22:h=s.stateNode,h._visibility&2&&(h._visibility&=-3,lh(s));break;default:lh(s)}l=l.sibling}}function _w(l,s){for(;Ue!==null;){var h=Ue;switch(h.tag){case 0:case 11:case 15:pi(8,h,s);break;case 23:case 22:if(h.memoizedState!==null&&h.memoizedState.cachePool!==null){var m=h.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:ru(h.memoizedState.cache)}if(m=h.child,m!==null)m.return=h,Ue=m;else t:for(h=l;Ue!==null;){m=Ue;var b=m.sibling,w=m.return;if(uw(m),m===h){Ue=null;break t}if(b!==null){b.return=w,Ue=b;break t}Ue=w}}}var ON={getCacheForType:function(l){var s=$e(ke),h=s.data.get(l);return h===void 0&&(h=l(),s.data.set(l,h)),h},cacheSignal:function(){return $e(ke).controller.signal}},zN=typeof WeakMap=="function"?WeakMap:Map,re=0,pe=null,Vt=null,Gt=0,le=0,Jn=null,gi=!1,Xl=!1,rm=!1,ka=0,Ae=0,mi=0,Mo=0,am=0,tr=0,Zl=0,bu=null,In=null,im=!1,sh=0,Sw=0,uh=1/0,fh=null,yi=null,Fe=0,_i=null,$l=null,Pa=0,om=0,lm=null,bw=null,xu=0,sm=null;function er(){return(re&2)!==0&&Gt!==0?Gt&-Gt:H.T!==null?dm():B1()}function xw(){if(tr===0)if((Gt&536870912)===0||Xt){var l=yl;yl<<=1,(yl&3932160)===0&&(yl=262144),tr=l}else tr=536870912;return l=Qn.current,l!==null&&(l.flags|=32),tr}function Bn(l,s,h){(l===pe&&(le===2||le===9)||l.cancelPendingCommit!==null)&&(Wl(l,0),Si(l,Gt,tr,!1)),Us(l,h),((re&2)===0||l!==pe)&&(l===pe&&((re&2)===0&&(Mo|=h),Ae===4&&Si(l,Gt,tr,!1)),ea(l))}function ww(l,s,h){if((re&6)!==0)throw Error(r(327));var m=!h&&(s&127)===0&&(s&l.expiredLanes)===0||Gs(l,s),b=m?BN(l,s):fm(l,s,!0),w=m;do{if(b===0){Xl&&!m&&Si(l,s,0,!1);break}else{if(h=l.current.alternate,w&&!NN(h)){b=fm(l,s,!1),w=!1;continue}if(b===2){if(w=s,l.errorRecoveryDisabledLanes&w)var A=0;else A=l.pendingLanes&-536870913,A=A!==0?A:A&536870912?536870912:0;if(A!==0){s=A;t:{var O=l;b=bu;var F=O.current.memoizedState.isDehydrated;if(F&&(Wl(O,A).flags|=256),A=fm(O,A,!1),A!==2){if(rm&&!F){O.errorRecoveryDisabledLanes|=w,Mo|=w,b=4;break t}w=In,In=b,w!==null&&(In===null?In=w:In.push.apply(In,w))}b=A}if(w=!1,b!==2)continue}}if(b===1){Wl(l,0),Si(l,s,0,!0);break}t:{switch(m=l,w=b,w){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:Si(m,s,tr,!gi);break t;case 2:In=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(b=sh+300-ge(),10<b)){if(Si(m,s,tr,!gi),Sc(m,0,!0)!==0)break t;Pa=s,m.timeoutHandle=tM(Mw.bind(null,m,h,In,fh,im,s,tr,Mo,Zl,gi,w,"Throttled",-0,0),b);break t}Mw(m,h,In,fh,im,s,tr,Mo,Zl,gi,w,null,-0,0)}}break}while(!0);ea(l)}function Mw(l,s,h,m,b,w,A,O,F,W,et,at,K,tt){if(l.timeoutHandle=-1,at=s.subtreeFlags,at&8192||(at&16785408)===16785408){at={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:wa},gw(s,w,at);var ht=(w&62914560)===w?sh-ge():(w&4194048)===w?Sw-ge():0;if(ht=yI(at,ht),ht!==null){Pa=w,l.cancelPendingCommit=ht(Ow.bind(null,l,s,w,h,m,b,A,O,F,et,at,null,K,tt)),Si(l,w,A,!W);return}}Ow(l,s,w,h,m,b,A,O,F)}function NN(l){for(var s=l;;){var h=s.tag;if((h===0||h===11||h===15)&&s.flags&16384&&(h=s.updateQueue,h!==null&&(h=h.stores,h!==null)))for(var m=0;m<h.length;m++){var b=h[m],w=b.getSnapshot;b=b.value;try{if(!$n(w(),b))return!1}catch{return!1}}if(h=s.child,s.subtreeFlags&16384&&h!==null)h.return=s,s=h;else{if(s===l)break;for(;s.sibling===null;){if(s.return===null||s.return===l)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Si(l,s,h,m){s&=~am,s&=~Mo,l.suspendedLanes|=s,l.pingedLanes&=~s,m&&(l.warmLanes|=s),m=l.expirationTimes;for(var b=s;0<b;){var w=31-It(b),A=1<<w;m[w]=-1,b&=~A}h!==0&&z1(l,h,s)}function ch(){return(re&6)===0?(wu(0),!1):!0}function um(){if(Vt!==null){if(le===0)var l=Vt.return;else l=Vt,Aa=po=null,Cg(l),Vl=null,iu=0,l=Vt;for(;l!==null;)ew(l.alternate,l),l=l.return;Vt=null}}function Wl(l,s){var h=l.timeoutHandle;h!==-1&&(l.timeoutHandle=-1,tI(h)),h=l.cancelPendingCommit,h!==null&&(l.cancelPendingCommit=null,h()),Pa=0,um(),pe=l,Vt=h=Ca(l.current,null),Gt=s,le=0,Jn=null,gi=!1,Xl=Gs(l,s),rm=!1,Zl=tr=am=Mo=mi=Ae=0,In=bu=null,im=!1,(s&8)!==0&&(s|=s&32);var m=l.entangledLanes;if(m!==0)for(l=l.entanglements,m&=s;0<m;){var b=31-It(m),w=1<<b;s|=l[b],m&=~w}return ka=s,Oc(),h}function Cw(l,s){Bt=null,H.H=vu,s===Hl||s===Vc?(s=Vb(),le=3):s===vg?(s=Vb(),le=4):le=s===Fg?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Jn=s,Vt===null&&(Ae=1,th(l,cr(s,l.current)))}function Tw(){var l=Qn.current;return l===null?!0:(Gt&4194048)===Gt?pr===null:(Gt&62914560)===Gt||(Gt&536870912)!==0?l===pr:!1}function Aw(){var l=H.H;return H.H=vu,l===null?vu:l}function Dw(){var l=H.A;return H.A=ON,l}function hh(){Ae=4,gi||(Gt&4194048)!==Gt&&Qn.current!==null||(Xl=!0),(mi&134217727)===0&&(Mo&134217727)===0||pe===null||Si(pe,Gt,tr,!1)}function fm(l,s,h){var m=re;re|=2;var b=Aw(),w=Dw();(pe!==l||Gt!==s)&&(fh=null,Wl(l,s)),s=!1;var A=Ae;t:do try{if(le!==0&&Vt!==null){var O=Vt,F=Jn;switch(le){case 8:um(),A=6;break t;case 3:case 2:case 9:case 6:Qn.current===null&&(s=!0);var W=le;if(le=0,Jn=null,Ql(l,O,F,W),h&&Xl){A=0;break t}break;default:W=le,le=0,Jn=null,Ql(l,O,F,W)}}IN(),A=Ae;break}catch(et){Cw(l,et)}while(!0);return s&&l.shellSuspendCounter++,Aa=po=null,re=m,H.H=b,H.A=w,Vt===null&&(pe=null,Gt=0,Oc()),A}function IN(){for(;Vt!==null;)Rw(Vt)}function BN(l,s){var h=re;re|=2;var m=Aw(),b=Dw();pe!==l||Gt!==s?(fh=null,uh=ge()+500,Wl(l,s)):Xl=Gs(l,s);t:do try{if(le!==0&&Vt!==null){s=Vt;var w=Jn;e:switch(le){case 1:le=0,Jn=null,Ql(l,s,w,1);break;case 2:case 9:if(Pb(w)){le=0,Jn=null,Ew(s);break}s=function(){le!==2&&le!==9||pe!==l||(le=7),ea(l)},w.then(s,s);break t;case 3:le=7;break t;case 4:le=5;break t;case 7:Pb(w)?(le=0,Jn=null,Ew(s)):(le=0,Jn=null,Ql(l,s,w,7));break;case 5:var A=null;switch(Vt.tag){case 26:A=Vt.memoizedState;case 5:case 27:var O=Vt;if(A?pM(A):O.stateNode.complete){le=0,Jn=null;var F=O.sibling;if(F!==null)Vt=F;else{var W=O.return;W!==null?(Vt=W,vh(W)):Vt=null}break e}}le=0,Jn=null,Ql(l,s,w,5);break;case 6:le=0,Jn=null,Ql(l,s,w,6);break;case 8:um(),Ae=6;break t;default:throw Error(r(462))}}kN();break}catch(et){Cw(l,et)}while(!0);return Aa=po=null,H.H=m,H.A=b,re=h,Vt!==null?0:(pe=null,Gt=0,Oc(),Ae)}function kN(){for(;Vt!==null&&!Ee();)Rw(Vt)}function Rw(l){var s=Jx(l.alternate,l,ka);l.memoizedProps=l.pendingProps,s===null?vh(l):Vt=s}function Ew(l){var s=l,h=s.alternate;switch(s.tag){case 15:case 0:s=Xx(h,s,s.pendingProps,s.type,void 0,Gt);break;case 11:s=Xx(h,s,s.pendingProps,s.type.render,s.ref,Gt);break;case 5:Cg(s);default:ew(h,s),s=Vt=Ab(s,ka),s=Jx(h,s,ka)}l.memoizedProps=l.pendingProps,s===null?vh(l):Vt=s}function Ql(l,s,h,m){Aa=po=null,Cg(s),Vl=null,iu=0;var b=s.return;try{if(CN(l,b,s,h,Gt)){Ae=1,th(l,cr(h,l.current)),Vt=null;return}}catch(w){if(b!==null)throw Vt=b,w;Ae=1,th(l,cr(h,l.current)),Vt=null;return}s.flags&32768?(Xt||m===1?l=!0:Xl||(Gt&536870912)!==0?l=!1:(gi=l=!0,(m===2||m===9||m===3||m===6)&&(m=Qn.current,m!==null&&m.tag===13&&(m.flags|=16384))),Lw(s,l)):vh(s)}function vh(l){var s=l;do{if((s.flags&32768)!==0){Lw(s,gi);return}l=s.return;var h=DN(s.alternate,s,ka);if(h!==null){Vt=h;return}if(s=s.sibling,s!==null){Vt=s;return}Vt=s=l}while(s!==null);Ae===0&&(Ae=5)}function Lw(l,s){do{var h=RN(l.alternate,l);if(h!==null){h.flags&=32767,Vt=h;return}if(h=l.return,h!==null&&(h.flags|=32768,h.subtreeFlags=0,h.deletions=null),!s&&(l=l.sibling,l!==null)){Vt=l;return}Vt=l=h}while(l!==null);Ae=6,Vt=null}function Ow(l,s,h,m,b,w,A,O,F){l.cancelPendingCommit=null;do dh();while(Fe!==0);if((re&6)!==0)throw Error(r(327));if(s!==null){if(s===l.current)throw Error(r(177));if(w=s.lanes|s.childLanes,w|=Kp,gz(l,h,w,A,O,F),l===pe&&(Vt=pe=null,Gt=0),$l=s,_i=l,Pa=h,om=w,lm=b,bw=m,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,FN(nn,function(){return kw(),null})):(l.callbackNode=null,l.callbackPriority=0),m=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||m){m=H.T,H.T=null,b=Q.p,Q.p=2,A=re,re|=4;try{EN(l,s,h)}finally{re=A,Q.p=b,H.T=m}}Fe=1,zw(),Nw(),Iw()}}function zw(){if(Fe===1){Fe=0;var l=_i,s=$l,h=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||h){h=H.T,H.T=null;var m=Q.p;Q.p=2;var b=re;re|=4;try{vw(s,l);var w=xm,A=yb(l.containerInfo),O=w.focusedElem,F=w.selectionRange;if(A!==O&&O&&O.ownerDocument&&mb(O.ownerDocument.documentElement,O)){if(F!==null&&Xp(O)){var W=F.start,et=F.end;if(et===void 0&&(et=W),"selectionStart"in O)O.selectionStart=W,O.selectionEnd=Math.min(et,O.value.length);else{var at=O.ownerDocument||document,K=at&&at.defaultView||window;if(K.getSelection){var tt=K.getSelection(),ht=O.textContent.length,xt=Math.min(F.start,ht),he=F.end===void 0?xt:Math.min(F.end,ht);!tt.extend&&xt>he&&(A=he,he=xt,xt=A);var Y=gb(O,xt),U=gb(O,he);if(Y&&U&&(tt.rangeCount!==1||tt.anchorNode!==Y.node||tt.anchorOffset!==Y.offset||tt.focusNode!==U.node||tt.focusOffset!==U.offset)){var $=at.createRange();$.setStart(Y.node,Y.offset),tt.removeAllRanges(),xt>he?(tt.addRange($),tt.extend(U.node,U.offset)):($.setEnd(U.node,U.offset),tt.addRange($))}}}}for(at=[],tt=O;tt=tt.parentNode;)tt.nodeType===1&&at.push({element:tt,left:tt.scrollLeft,top:tt.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<at.length;O++){var nt=at[O];nt.element.scrollLeft=nt.left,nt.element.scrollTop=nt.top}}Th=!!bm,xm=bm=null}finally{re=b,Q.p=m,H.T=h}}l.current=s,Fe=2}}function Nw(){if(Fe===2){Fe=0;var l=_i,s=$l,h=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||h){h=H.T,H.T=null;var m=Q.p;Q.p=2;var b=re;re|=4;try{sw(l,s.alternate,s)}finally{re=b,Q.p=m,H.T=h}}Fe=3}}function Iw(){if(Fe===4||Fe===3){Fe=0,Zt();var l=_i,s=$l,h=Pa,m=bw;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Fe=5:(Fe=0,$l=_i=null,Bw(l,l.pendingLanes));var b=l.pendingLanes;if(b===0&&(yi=null),Dp(h),s=s.stateNode,rn&&typeof rn.onCommitFiberRoot=="function")try{rn.onCommitFiberRoot(_a,s,void 0,(s.current.flags&128)===128)}catch{}if(m!==null){s=H.T,b=Q.p,Q.p=2,H.T=null;try{for(var w=l.onRecoverableError,A=0;A<m.length;A++){var O=m[A];w(O.value,{componentStack:O.stack})}}finally{H.T=s,Q.p=b}}(Pa&3)!==0&&dh(),ea(l),b=l.pendingLanes,(h&261930)!==0&&(b&42)!==0?l===sm?xu++:(xu=0,sm=l):xu=0,wu(0)}}function Bw(l,s){(l.pooledCacheLanes&=s)===0&&(s=l.pooledCache,s!=null&&(l.pooledCache=null,ru(s)))}function dh(){return zw(),Nw(),Iw(),kw()}function kw(){if(Fe!==5)return!1;var l=_i,s=om;om=0;var h=Dp(Pa),m=H.T,b=Q.p;try{Q.p=32>h?32:h,H.T=null,h=lm,lm=null;var w=_i,A=Pa;if(Fe=0,$l=_i=null,Pa=0,(re&6)!==0)throw Error(r(331));var O=re;if(re|=4,yw(w.current),pw(w,w.current,A,h),re=O,wu(0,!1),rn&&typeof rn.onPostCommitFiberRoot=="function")try{rn.onPostCommitFiberRoot(_a,w)}catch{}return!0}finally{Q.p=b,H.T=m,Bw(l,s)}}function Pw(l,s,h){s=cr(h,s),s=Vg(l.stateNode,s,2),l=hi(l,s,2),l!==null&&(Us(l,2),ea(l))}function se(l,s,h){if(l.tag===3)Pw(l,l,h);else for(;s!==null;){if(s.tag===3){Pw(s,l,h);break}else if(s.tag===1){var m=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(yi===null||!yi.has(m))){l=cr(h,l),h=Hx(2),m=hi(s,h,2),m!==null&&(Vx(h,m,s,l),Us(m,2),ea(m));break}}s=s.return}}function cm(l,s,h){var m=l.pingCache;if(m===null){m=l.pingCache=new zN;var b=new Set;m.set(s,b)}else b=m.get(s),b===void 0&&(b=new Set,m.set(s,b));b.has(h)||(rm=!0,b.add(h),l=PN.bind(null,l,s,h),s.then(l,l))}function PN(l,s,h){var m=l.pingCache;m!==null&&m.delete(s),l.pingedLanes|=l.suspendedLanes&h,l.warmLanes&=~h,pe===l&&(Gt&h)===h&&(Ae===4||Ae===3&&(Gt&62914560)===Gt&&300>ge()-sh?(re&2)===0&&Wl(l,0):am|=h,Zl===Gt&&(Zl=0)),ea(l)}function Hw(l,s){s===0&&(s=O1()),l=co(l,s),l!==null&&(Us(l,s),ea(l))}function HN(l){var s=l.memoizedState,h=0;s!==null&&(h=s.retryLane),Hw(l,h)}function VN(l,s){var h=0;switch(l.tag){case 31:case 13:var m=l.stateNode,b=l.memoizedState;b!==null&&(h=b.retryLane);break;case 19:m=l.stateNode;break;case 22:m=l.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(s),Hw(l,h)}function FN(l,s){return ao(l,s)}var ph=null,Kl=null,hm=!1,gh=!1,vm=!1,bi=0;function ea(l){l!==Kl&&l.next===null&&(Kl===null?ph=Kl=l:Kl=Kl.next=l),gh=!0,hm||(hm=!0,UN())}function wu(l,s){if(!vm&&gh){vm=!0;do for(var h=!1,m=ph;m!==null;){if(l!==0){var b=m.pendingLanes;if(b===0)var w=0;else{var A=m.suspendedLanes,O=m.pingedLanes;w=(1<<31-It(42|l)+1)-1,w&=b&~(A&~O),w=w&201326741?w&201326741|1:w?w|2:0}w!==0&&(h=!0,Uw(m,w))}else w=Gt,w=Sc(m,m===pe?w:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(w&3)===0||Gs(m,w)||(h=!0,Uw(m,w));m=m.next}while(h);vm=!1}}function GN(){Vw()}function Vw(){gh=hm=!1;var l=0;bi!==0&&JN()&&(l=bi);for(var s=ge(),h=null,m=ph;m!==null;){var b=m.next,w=Fw(m,s);w===0?(m.next=null,h===null?ph=b:h.next=b,b===null&&(Kl=h)):(h=m,(l!==0||(w&3)!==0)&&(gh=!0)),m=b}Fe!==0&&Fe!==5||wu(l),bi!==0&&(bi=0)}function Fw(l,s){for(var h=l.suspendedLanes,m=l.pingedLanes,b=l.expirationTimes,w=l.pendingLanes&-62914561;0<w;){var A=31-It(w),O=1<<A,F=b[A];F===-1?((O&h)===0||(O&m)!==0)&&(b[A]=pz(O,s)):F<=s&&(l.expiredLanes|=O),w&=~O}if(s=pe,h=Gt,h=Sc(l,l===s?h:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),m=l.callbackNode,h===0||l===s&&(le===2||le===9)||l.cancelPendingCommit!==null)return m!==null&&m!==null&&vt(m),l.callbackNode=null,l.callbackPriority=0;if((h&3)===0||Gs(l,h)){if(s=h&-h,s===l.callbackPriority)return s;switch(m!==null&&vt(m),Dp(h)){case 2:case 8:h=Ir;break;case 32:h=nn;break;case 268435456:h=ya;break;default:h=nn}return m=Gw.bind(null,l),h=ao(h,m),l.callbackPriority=s,l.callbackNode=h,s}return m!==null&&m!==null&&vt(m),l.callbackPriority=2,l.callbackNode=null,2}function Gw(l,s){if(Fe!==0&&Fe!==5)return l.callbackNode=null,l.callbackPriority=0,null;var h=l.callbackNode;if(dh()&&l.callbackNode!==h)return null;var m=Gt;return m=Sc(l,l===pe?m:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),m===0?null:(ww(l,m,s),Fw(l,ge()),l.callbackNode!=null&&l.callbackNode===h?Gw.bind(null,l):null)}function Uw(l,s){if(dh())return null;ww(l,s,!0)}function UN(){eI(function(){(re&6)!==0?ao(gn,GN):Vw()})}function dm(){if(bi===0){var l=kl;l===0&&(l=ml,ml<<=1,(ml&261888)===0&&(ml=256)),bi=l}return bi}function jw(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:Mc(""+l)}function Yw(l,s){var h=s.ownerDocument.createElement("input");return h.name=s.name,h.value=s.value,l.id&&h.setAttribute("form",l.id),s.parentNode.insertBefore(h,s),l=new FormData(l),h.parentNode.removeChild(h),l}function jN(l,s,h,m,b){if(s==="submit"&&h&&h.stateNode===b){var w=jw((b[En]||null).action),A=m.submitter;A&&(s=(s=A[En]||null)?jw(s.formAction):A.getAttribute("formAction"),s!==null&&(w=s,A=null));var O=new Dc("action","action",null,m,b);l.push({event:O,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(bi!==0){var F=A?Yw(b,A):new FormData(b);Ng(h,{pending:!0,data:F,method:b.method,action:w},null,F)}}else typeof w=="function"&&(O.preventDefault(),F=A?Yw(b,A):new FormData(b),Ng(h,{pending:!0,data:F,method:b.method,action:w},w,F))},currentTarget:b}]})}}for(var pm=0;pm<Qp.length;pm++){var gm=Qp[pm],YN=gm.toLowerCase(),qN=gm[0].toUpperCase()+gm.slice(1);Br(YN,"on"+qN)}Br(bb,"onAnimationEnd"),Br(xb,"onAnimationIteration"),Br(wb,"onAnimationStart"),Br("dblclick","onDoubleClick"),Br("focusin","onFocus"),Br("focusout","onBlur"),Br(sN,"onTransitionRun"),Br(uN,"onTransitionStart"),Br(fN,"onTransitionCancel"),Br(Mb,"onTransitionEnd"),wl("onMouseEnter",["mouseout","mouseover"]),wl("onMouseLeave",["mouseout","mouseover"]),wl("onPointerEnter",["pointerout","pointerover"]),wl("onPointerLeave",["pointerout","pointerover"]),lo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),lo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),lo("onBeforeInput",["compositionend","keypress","textInput","paste"]),lo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),lo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),lo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mu="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(" "),XN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Mu));function qw(l,s){s=(s&4)!==0;for(var h=0;h<l.length;h++){var m=l[h],b=m.event;m=m.listeners;t:{var w=void 0;if(s)for(var A=m.length-1;0<=A;A--){var O=m[A],F=O.instance,W=O.currentTarget;if(O=O.listener,F!==w&&b.isPropagationStopped())break t;w=O,b.currentTarget=W;try{w(b)}catch(et){Lc(et)}b.currentTarget=null,w=F}else for(A=0;A<m.length;A++){if(O=m[A],F=O.instance,W=O.currentTarget,O=O.listener,F!==w&&b.isPropagationStopped())break t;w=O,b.currentTarget=W;try{w(b)}catch(et){Lc(et)}b.currentTarget=null,w=F}}}}function Ft(l,s){var h=s[Rp];h===void 0&&(h=s[Rp]=new Set);var m=l+"__bubble";h.has(m)||(Xw(s,l,2,!1),h.add(m))}function mm(l,s,h){var m=0;s&&(m|=4),Xw(h,l,m,s)}var mh="_reactListening"+Math.random().toString(36).slice(2);function ym(l){if(!l[mh]){l[mh]=!0,H1.forEach(function(h){h!=="selectionchange"&&(XN.has(h)||mm(h,!1,l),mm(h,!0,l))});var s=l.nodeType===9?l:l.ownerDocument;s===null||s[mh]||(s[mh]=!0,mm("selectionchange",!1,s))}}function Xw(l,s,h,m){switch(xM(s)){case 2:var b=bI;break;case 8:b=xI;break;default:b=zm}h=b.bind(null,s,h,l),b=void 0,!Pp||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(b=!0),m?b!==void 0?l.addEventListener(s,h,{capture:!0,passive:b}):l.addEventListener(s,h,!0):b!==void 0?l.addEventListener(s,h,{passive:b}):l.addEventListener(s,h,!1)}function _m(l,s,h,m,b){var w=m;if((s&1)===0&&(s&2)===0&&m!==null)t:for(;;){if(m===null)return;var A=m.tag;if(A===3||A===4){var O=m.stateNode.containerInfo;if(O===b)break;if(A===4)for(A=m.return;A!==null;){var F=A.tag;if((F===3||F===4)&&A.stateNode.containerInfo===b)return;A=A.return}for(;O!==null;){if(A=Sl(O),A===null)return;if(F=A.tag,F===5||F===6||F===26||F===27){m=w=A;continue t}O=O.parentNode}}m=m.return}Q1(function(){var W=w,et=Bp(h),at=[];t:{var K=Cb.get(l);if(K!==void 0){var tt=Dc,ht=l;switch(l){case"keypress":if(Tc(h)===0)break t;case"keydown":case"keyup":tt=Vz;break;case"focusin":ht="focus",tt=Gp;break;case"focusout":ht="blur",tt=Gp;break;case"beforeblur":case"afterblur":tt=Gp;break;case"click":if(h.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":tt=tb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":tt=Dz;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":tt=Uz;break;case bb:case xb:case wb:tt=Lz;break;case Mb:tt=Yz;break;case"scroll":case"scrollend":tt=Tz;break;case"wheel":tt=Xz;break;case"copy":case"cut":case"paste":tt=zz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":tt=nb;break;case"toggle":case"beforetoggle":tt=$z}var xt=(s&4)!==0,he=!xt&&(l==="scroll"||l==="scrollend"),Y=xt?K!==null?K+"Capture":null:K;xt=[];for(var U=W,$;U!==null;){var nt=U;if($=nt.stateNode,nt=nt.tag,nt!==5&&nt!==26&&nt!==27||$===null||Y===null||(nt=qs(U,Y),nt!=null&&xt.push(Cu(U,nt,$))),he)break;U=U.return}0<xt.length&&(K=new tt(K,ht,null,h,et),at.push({event:K,listeners:xt}))}}if((s&7)===0){t:{if(K=l==="mouseover"||l==="pointerover",tt=l==="mouseout"||l==="pointerout",K&&h!==Ip&&(ht=h.relatedTarget||h.fromElement)&&(Sl(ht)||ht[_l]))break t;if((tt||K)&&(K=et.window===et?et:(K=et.ownerDocument)?K.defaultView||K.parentWindow:window,tt?(ht=h.relatedTarget||h.toElement,tt=W,ht=ht?Sl(ht):null,ht!==null&&(he=i(ht),xt=ht.tag,ht!==he||xt!==5&&xt!==27&&xt!==6)&&(ht=null)):(tt=null,ht=W),tt!==ht)){if(xt=tb,nt="onMouseLeave",Y="onMouseEnter",U="mouse",(l==="pointerout"||l==="pointerover")&&(xt=nb,nt="onPointerLeave",Y="onPointerEnter",U="pointer"),he=tt==null?K:Ys(tt),$=ht==null?K:Ys(ht),K=new xt(nt,U+"leave",tt,h,et),K.target=he,K.relatedTarget=$,nt=null,Sl(et)===W&&(xt=new xt(Y,U+"enter",ht,h,et),xt.target=$,xt.relatedTarget=he,nt=xt),he=nt,tt&&ht)e:{for(xt=ZN,Y=tt,U=ht,$=0,nt=Y;nt;nt=xt(nt))$++;nt=0;for(var yt=U;yt;yt=xt(yt))nt++;for(;0<$-nt;)Y=xt(Y),$--;for(;0<nt-$;)U=xt(U),nt--;for(;$--;){if(Y===U||U!==null&&Y===U.alternate){xt=Y;break e}Y=xt(Y),U=xt(U)}xt=null}else xt=null;tt!==null&&Zw(at,K,tt,xt,!1),ht!==null&&he!==null&&Zw(at,he,ht,xt,!0)}}t:{if(K=W?Ys(W):window,tt=K.nodeName&&K.nodeName.toLowerCase(),tt==="select"||tt==="input"&&K.type==="file")var ee=fb;else if(sb(K))if(cb)ee=iN;else{ee=rN;var dt=nN}else tt=K.nodeName,!tt||tt.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?W&&Np(W.elementType)&&(ee=fb):ee=aN;if(ee&&(ee=ee(l,W))){ub(at,ee,h,et);break t}dt&&dt(l,K,W),l==="focusout"&&W&&K.type==="number"&&W.memoizedProps.value!=null&&zp(K,"number",K.value)}switch(dt=W?Ys(W):window,l){case"focusin":(sb(dt)||dt.contentEditable==="true")&&(Rl=dt,Zp=W,tu=null);break;case"focusout":tu=Zp=Rl=null;break;case"mousedown":$p=!0;break;case"contextmenu":case"mouseup":case"dragend":$p=!1,_b(at,h,et);break;case"selectionchange":if(lN)break;case"keydown":case"keyup":_b(at,h,et)}var kt;if(jp)t:{switch(l){case"compositionstart":var Ut="onCompositionStart";break t;case"compositionend":Ut="onCompositionEnd";break t;case"compositionupdate":Ut="onCompositionUpdate";break t}Ut=void 0}else Dl?ob(l,h)&&(Ut="onCompositionEnd"):l==="keydown"&&h.keyCode===229&&(Ut="onCompositionStart");Ut&&(rb&&h.locale!=="ko"&&(Dl||Ut!=="onCompositionStart"?Ut==="onCompositionEnd"&&Dl&&(kt=K1()):(ii=et,Hp="value"in ii?ii.value:ii.textContent,Dl=!0)),dt=yh(W,Ut),0<dt.length&&(Ut=new eb(Ut,l,null,h,et),at.push({event:Ut,listeners:dt}),kt?Ut.data=kt:(kt=lb(h),kt!==null&&(Ut.data=kt)))),(kt=Qz?Kz(l,h):Jz(l,h))&&(Ut=yh(W,"onBeforeInput"),0<Ut.length&&(dt=new eb("onBeforeInput","beforeinput",null,h,et),at.push({event:dt,listeners:Ut}),dt.data=kt)),jN(at,l,W,h,et)}qw(at,s)})}function Cu(l,s,h){return{instance:l,listener:s,currentTarget:h}}function yh(l,s){for(var h=s+"Capture",m=[];l!==null;){var b=l,w=b.stateNode;if(b=b.tag,b!==5&&b!==26&&b!==27||w===null||(b=qs(l,h),b!=null&&m.unshift(Cu(l,b,w)),b=qs(l,s),b!=null&&m.push(Cu(l,b,w))),l.tag===3)return m;l=l.return}return[]}function ZN(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function Zw(l,s,h,m,b){for(var w=s._reactName,A=[];h!==null&&h!==m;){var O=h,F=O.alternate,W=O.stateNode;if(O=O.tag,F!==null&&F===m)break;O!==5&&O!==26&&O!==27||W===null||(F=W,b?(W=qs(h,w),W!=null&&A.unshift(Cu(h,W,F))):b||(W=qs(h,w),W!=null&&A.push(Cu(h,W,F)))),h=h.return}A.length!==0&&l.push({event:s,listeners:A})}var $N=/\r\n?/g,WN=/\u0000|\uFFFD/g;function $w(l){return(typeof l=="string"?l:""+l).replace($N,`
49
+ `).replace(WN,"")}function Ww(l,s){return s=$w(s),$w(l)===s}function ce(l,s,h,m,b,w){switch(h){case"children":typeof m=="string"?s==="body"||s==="textarea"&&m===""||Cl(l,m):(typeof m=="number"||typeof m=="bigint")&&s!=="body"&&Cl(l,""+m);break;case"className":xc(l,"class",m);break;case"tabIndex":xc(l,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":xc(l,h,m);break;case"style":$1(l,m,w);break;case"data":if(s!=="object"){xc(l,"data",m);break}case"src":case"href":if(m===""&&(s!=="a"||h!=="href")){l.removeAttribute(h);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){l.removeAttribute(h);break}m=Mc(""+m),l.setAttribute(h,m);break;case"action":case"formAction":if(typeof m=="function"){l.setAttribute(h,"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 w=="function"&&(h==="formAction"?(s!=="input"&&ce(l,s,"name",b.name,b,null),ce(l,s,"formEncType",b.formEncType,b,null),ce(l,s,"formMethod",b.formMethod,b,null),ce(l,s,"formTarget",b.formTarget,b,null)):(ce(l,s,"encType",b.encType,b,null),ce(l,s,"method",b.method,b,null),ce(l,s,"target",b.target,b,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){l.removeAttribute(h);break}m=Mc(""+m),l.setAttribute(h,m);break;case"onClick":m!=null&&(l.onclick=wa);break;case"onScroll":m!=null&&Ft("scroll",l);break;case"onScrollEnd":m!=null&&Ft("scrollend",l);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(h=m.__html,h!=null){if(b.children!=null)throw Error(r(60));l.innerHTML=h}}break;case"multiple":l.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":l.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){l.removeAttribute("xlink:href");break}h=Mc(""+m),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",h);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?l.setAttribute(h,""+m):l.removeAttribute(h);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":m&&typeof m!="function"&&typeof m!="symbol"?l.setAttribute(h,""):l.removeAttribute(h);break;case"capture":case"download":m===!0?l.setAttribute(h,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?l.setAttribute(h,m):l.removeAttribute(h);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?l.setAttribute(h,m):l.removeAttribute(h);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?l.removeAttribute(h):l.setAttribute(h,m);break;case"popover":Ft("beforetoggle",l),Ft("toggle",l),bc(l,"popover",m);break;case"xlinkActuate":xa(l,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":xa(l,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":xa(l,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":xa(l,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":xa(l,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":xa(l,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":xa(l,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":xa(l,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":xa(l,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":bc(l,"is",m);break;case"innerText":case"textContent":break;default:(!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(h=Mz.get(h)||h,bc(l,h,m))}}function Sm(l,s,h,m,b,w){switch(h){case"style":$1(l,m,w);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(h=m.__html,h!=null){if(b.children!=null)throw Error(r(60));l.innerHTML=h}}break;case"children":typeof m=="string"?Cl(l,m):(typeof m=="number"||typeof m=="bigint")&&Cl(l,""+m);break;case"onScroll":m!=null&&Ft("scroll",l);break;case"onScrollEnd":m!=null&&Ft("scrollend",l);break;case"onClick":m!=null&&(l.onclick=wa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!V1.hasOwnProperty(h))t:{if(h[0]==="o"&&h[1]==="n"&&(b=h.endsWith("Capture"),s=h.slice(2,b?h.length-7:void 0),w=l[En]||null,w=w!=null?w[h]:null,typeof w=="function"&&l.removeEventListener(s,w,b),typeof m=="function")){typeof w!="function"&&w!==null&&(h in l?l[h]=null:l.hasAttribute(h)&&l.removeAttribute(h)),l.addEventListener(s,m,b);break t}h in l?l[h]=m:m===!0?l.setAttribute(h,""):bc(l,h,m)}}}function Qe(l,s,h){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ft("error",l),Ft("load",l);var m=!1,b=!1,w;for(w in h)if(h.hasOwnProperty(w)){var A=h[w];if(A!=null)switch(w){case"src":m=!0;break;case"srcSet":b=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:ce(l,s,w,A,h,null)}}b&&ce(l,s,"srcSet",h.srcSet,h,null),m&&ce(l,s,"src",h.src,h,null);return;case"input":Ft("invalid",l);var O=w=A=b=null,F=null,W=null;for(m in h)if(h.hasOwnProperty(m)){var et=h[m];if(et!=null)switch(m){case"name":b=et;break;case"type":A=et;break;case"checked":F=et;break;case"defaultChecked":W=et;break;case"value":w=et;break;case"defaultValue":O=et;break;case"children":case"dangerouslySetInnerHTML":if(et!=null)throw Error(r(137,s));break;default:ce(l,s,m,et,h,null)}}Y1(l,w,O,F,W,A,b,!1);return;case"select":Ft("invalid",l),m=A=w=null;for(b in h)if(h.hasOwnProperty(b)&&(O=h[b],O!=null))switch(b){case"value":w=O;break;case"defaultValue":A=O;break;case"multiple":m=O;default:ce(l,s,b,O,h,null)}s=w,h=A,l.multiple=!!m,s!=null?Ml(l,!!m,s,!1):h!=null&&Ml(l,!!m,h,!0);return;case"textarea":Ft("invalid",l),w=b=m=null;for(A in h)if(h.hasOwnProperty(A)&&(O=h[A],O!=null))switch(A){case"value":m=O;break;case"defaultValue":b=O;break;case"children":w=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(91));break;default:ce(l,s,A,O,h,null)}X1(l,m,b,w);return;case"option":for(F in h)if(h.hasOwnProperty(F)&&(m=h[F],m!=null))switch(F){case"selected":l.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:ce(l,s,F,m,h,null)}return;case"dialog":Ft("beforetoggle",l),Ft("toggle",l),Ft("cancel",l),Ft("close",l);break;case"iframe":case"object":Ft("load",l);break;case"video":case"audio":for(m=0;m<Mu.length;m++)Ft(Mu[m],l);break;case"image":Ft("error",l),Ft("load",l);break;case"details":Ft("toggle",l);break;case"embed":case"source":case"link":Ft("error",l),Ft("load",l);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(W in h)if(h.hasOwnProperty(W)&&(m=h[W],m!=null))switch(W){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:ce(l,s,W,m,h,null)}return;default:if(Np(s)){for(et in h)h.hasOwnProperty(et)&&(m=h[et],m!==void 0&&Sm(l,s,et,m,h,void 0));return}}for(O in h)h.hasOwnProperty(O)&&(m=h[O],m!=null&&ce(l,s,O,m,h,null))}function QN(l,s,h,m){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var b=null,w=null,A=null,O=null,F=null,W=null,et=null;for(tt in h){var at=h[tt];if(h.hasOwnProperty(tt)&&at!=null)switch(tt){case"checked":break;case"value":break;case"defaultValue":F=at;default:m.hasOwnProperty(tt)||ce(l,s,tt,null,m,at)}}for(var K in m){var tt=m[K];if(at=h[K],m.hasOwnProperty(K)&&(tt!=null||at!=null))switch(K){case"type":w=tt;break;case"name":b=tt;break;case"checked":W=tt;break;case"defaultChecked":et=tt;break;case"value":A=tt;break;case"defaultValue":O=tt;break;case"children":case"dangerouslySetInnerHTML":if(tt!=null)throw Error(r(137,s));break;default:tt!==at&&ce(l,s,K,tt,m,at)}}Op(l,A,O,F,W,et,w,b);return;case"select":tt=A=O=K=null;for(w in h)if(F=h[w],h.hasOwnProperty(w)&&F!=null)switch(w){case"value":break;case"multiple":tt=F;default:m.hasOwnProperty(w)||ce(l,s,w,null,m,F)}for(b in m)if(w=m[b],F=h[b],m.hasOwnProperty(b)&&(w!=null||F!=null))switch(b){case"value":K=w;break;case"defaultValue":O=w;break;case"multiple":A=w;default:w!==F&&ce(l,s,b,w,m,F)}s=O,h=A,m=tt,K!=null?Ml(l,!!h,K,!1):!!m!=!!h&&(s!=null?Ml(l,!!h,s,!0):Ml(l,!!h,h?[]:"",!1));return;case"textarea":tt=K=null;for(O in h)if(b=h[O],h.hasOwnProperty(O)&&b!=null&&!m.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:ce(l,s,O,null,m,b)}for(A in m)if(b=m[A],w=h[A],m.hasOwnProperty(A)&&(b!=null||w!=null))switch(A){case"value":K=b;break;case"defaultValue":tt=b;break;case"children":break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(91));break;default:b!==w&&ce(l,s,A,b,m,w)}q1(l,K,tt);return;case"option":for(var ht in h)if(K=h[ht],h.hasOwnProperty(ht)&&K!=null&&!m.hasOwnProperty(ht))switch(ht){case"selected":l.selected=!1;break;default:ce(l,s,ht,null,m,K)}for(F in m)if(K=m[F],tt=h[F],m.hasOwnProperty(F)&&K!==tt&&(K!=null||tt!=null))switch(F){case"selected":l.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:ce(l,s,F,K,m,tt)}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 xt in h)K=h[xt],h.hasOwnProperty(xt)&&K!=null&&!m.hasOwnProperty(xt)&&ce(l,s,xt,null,m,K);for(W in m)if(K=m[W],tt=h[W],m.hasOwnProperty(W)&&K!==tt&&(K!=null||tt!=null))switch(W){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(r(137,s));break;default:ce(l,s,W,K,m,tt)}return;default:if(Np(s)){for(var he in h)K=h[he],h.hasOwnProperty(he)&&K!==void 0&&!m.hasOwnProperty(he)&&Sm(l,s,he,void 0,m,K);for(et in m)K=m[et],tt=h[et],!m.hasOwnProperty(et)||K===tt||K===void 0&&tt===void 0||Sm(l,s,et,K,m,tt);return}}for(var Y in h)K=h[Y],h.hasOwnProperty(Y)&&K!=null&&!m.hasOwnProperty(Y)&&ce(l,s,Y,null,m,K);for(at in m)K=m[at],tt=h[at],!m.hasOwnProperty(at)||K===tt||K==null&&tt==null||ce(l,s,at,K,m,tt)}function Qw(l){switch(l){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function KN(){if(typeof performance.getEntriesByType=="function"){for(var l=0,s=0,h=performance.getEntriesByType("resource"),m=0;m<h.length;m++){var b=h[m],w=b.transferSize,A=b.initiatorType,O=b.duration;if(w&&O&&Qw(A)){for(A=0,O=b.responseEnd,m+=1;m<h.length;m++){var F=h[m],W=F.startTime;if(W>O)break;var et=F.transferSize,at=F.initiatorType;et&&Qw(at)&&(F=F.responseEnd,A+=et*(F<O?1:(O-W)/(F-W)))}if(--m,s+=8*(w+A)/(b.duration/1e3),l++,10<l)break}}if(0<l)return s/l/1e6}return navigator.connection&&(l=navigator.connection.downlink,typeof l=="number")?l:5}var bm=null,xm=null;function _h(l){return l.nodeType===9?l:l.ownerDocument}function Kw(l){switch(l){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Jw(l,s){if(l===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return l===1&&s==="foreignObject"?0:l}function wm(l,s){return l==="textarea"||l==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Mm=null;function JN(){var l=window.event;return l&&l.type==="popstate"?l===Mm?!1:(Mm=l,!0):(Mm=null,!1)}var tM=typeof setTimeout=="function"?setTimeout:void 0,tI=typeof clearTimeout=="function"?clearTimeout:void 0,eM=typeof Promise=="function"?Promise:void 0,eI=typeof queueMicrotask=="function"?queueMicrotask:typeof eM<"u"?function(l){return eM.resolve(null).then(l).catch(nI)}:tM;function nI(l){setTimeout(function(){throw l})}function xi(l){return l==="head"}function nM(l,s){var h=s,m=0;do{var b=h.nextSibling;if(l.removeChild(h),b&&b.nodeType===8)if(h=b.data,h==="/$"||h==="/&"){if(m===0){l.removeChild(b),ns(s);return}m--}else if(h==="$"||h==="$?"||h==="$~"||h==="$!"||h==="&")m++;else if(h==="html")Tu(l.ownerDocument.documentElement);else if(h==="head"){h=l.ownerDocument.head,Tu(h);for(var w=h.firstChild;w;){var A=w.nextSibling,O=w.nodeName;w[js]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&w.rel.toLowerCase()==="stylesheet"||h.removeChild(w),w=A}}else h==="body"&&Tu(l.ownerDocument.body);h=b}while(h);ns(s)}function rM(l,s){var h=l;l=0;do{var m=h.nextSibling;if(h.nodeType===1?s?(h._stashedDisplay=h.style.display,h.style.display="none"):(h.style.display=h._stashedDisplay||"",h.getAttribute("style")===""&&h.removeAttribute("style")):h.nodeType===3&&(s?(h._stashedText=h.nodeValue,h.nodeValue=""):h.nodeValue=h._stashedText||""),m&&m.nodeType===8)if(h=m.data,h==="/$"){if(l===0)break;l--}else h!=="$"&&h!=="$?"&&h!=="$~"&&h!=="$!"||l++;h=m}while(h)}function Cm(l){var s=l.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var h=s;switch(s=s.nextSibling,h.nodeName){case"HTML":case"HEAD":case"BODY":Cm(h),Ep(h);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(h.rel.toLowerCase()==="stylesheet")continue}l.removeChild(h)}}function rI(l,s,h,m){for(;l.nodeType===1;){var b=h;if(l.nodeName.toLowerCase()!==s.toLowerCase()){if(!m&&(l.nodeName!=="INPUT"||l.type!=="hidden"))break}else if(m){if(!l[js])switch(s){case"meta":if(!l.hasAttribute("itemprop"))break;return l;case"link":if(w=l.getAttribute("rel"),w==="stylesheet"&&l.hasAttribute("data-precedence"))break;if(w!==b.rel||l.getAttribute("href")!==(b.href==null||b.href===""?null:b.href)||l.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin)||l.getAttribute("title")!==(b.title==null?null:b.title))break;return l;case"style":if(l.hasAttribute("data-precedence"))break;return l;case"script":if(w=l.getAttribute("src"),(w!==(b.src==null?null:b.src)||l.getAttribute("type")!==(b.type==null?null:b.type)||l.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin))&&w&&l.hasAttribute("async")&&!l.hasAttribute("itemprop"))break;return l;default:return l}}else if(s==="input"&&l.type==="hidden"){var w=b.name==null?null:""+b.name;if(b.type==="hidden"&&l.getAttribute("name")===w)return l}else return l;if(l=gr(l.nextSibling),l===null)break}return null}function aI(l,s,h){if(s==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!h||(l=gr(l.nextSibling),l===null))return null;return l}function aM(l,s){for(;l.nodeType!==8;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!s||(l=gr(l.nextSibling),l===null))return null;return l}function Tm(l){return l.data==="$?"||l.data==="$~"}function Am(l){return l.data==="$!"||l.data==="$?"&&l.ownerDocument.readyState!=="loading"}function iI(l,s){var h=l.ownerDocument;if(l.data==="$~")l._reactRetry=s;else if(l.data!=="$?"||h.readyState!=="loading")s();else{var m=function(){s(),h.removeEventListener("DOMContentLoaded",m)};h.addEventListener("DOMContentLoaded",m),l._reactRetry=m}}function gr(l){for(;l!=null;l=l.nextSibling){var s=l.nodeType;if(s===1||s===3)break;if(s===8){if(s=l.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return l}var Dm=null;function iM(l){l=l.nextSibling;for(var s=0;l;){if(l.nodeType===8){var h=l.data;if(h==="/$"||h==="/&"){if(s===0)return gr(l.nextSibling);s--}else h!=="$"&&h!=="$!"&&h!=="$?"&&h!=="$~"&&h!=="&"||s++}l=l.nextSibling}return null}function oM(l){l=l.previousSibling;for(var s=0;l;){if(l.nodeType===8){var h=l.data;if(h==="$"||h==="$!"||h==="$?"||h==="$~"||h==="&"){if(s===0)return l;s--}else h!=="/$"&&h!=="/&"||s++}l=l.previousSibling}return null}function lM(l,s,h){switch(s=_h(h),l){case"html":if(l=s.documentElement,!l)throw Error(r(452));return l;case"head":if(l=s.head,!l)throw Error(r(453));return l;case"body":if(l=s.body,!l)throw Error(r(454));return l;default:throw Error(r(451))}}function Tu(l){for(var s=l.attributes;s.length;)l.removeAttributeNode(s[0]);Ep(l)}var mr=new Map,sM=new Set;function Sh(l){return typeof l.getRootNode=="function"?l.getRootNode():l.nodeType===9?l:l.ownerDocument}var Ha=Q.d;Q.d={f:oI,r:lI,D:sI,C:uI,L:fI,m:cI,X:vI,S:hI,M:dI};function oI(){var l=Ha.f(),s=ch();return l||s}function lI(l){var s=bl(l);s!==null&&s.tag===5&&s.type==="form"?Cx(s):Ha.r(l)}var Jl=typeof document>"u"?null:document;function uM(l,s,h){var m=Jl;if(m&&typeof s=="string"&&s){var b=ur(s);b='link[rel="'+l+'"][href="'+b+'"]',typeof h=="string"&&(b+='[crossorigin="'+h+'"]'),sM.has(b)||(sM.add(b),l={rel:l,crossOrigin:h,href:s},m.querySelector(b)===null&&(s=m.createElement("link"),Qe(s,"link",l),Ge(s),m.head.appendChild(s)))}}function sI(l){Ha.D(l),uM("dns-prefetch",l,null)}function uI(l,s){Ha.C(l,s),uM("preconnect",l,s)}function fI(l,s,h){Ha.L(l,s,h);var m=Jl;if(m&&l&&s){var b='link[rel="preload"][as="'+ur(s)+'"]';s==="image"&&h&&h.imageSrcSet?(b+='[imagesrcset="'+ur(h.imageSrcSet)+'"]',typeof h.imageSizes=="string"&&(b+='[imagesizes="'+ur(h.imageSizes)+'"]')):b+='[href="'+ur(l)+'"]';var w=b;switch(s){case"style":w=ts(l);break;case"script":w=es(l)}mr.has(w)||(l=d({rel:"preload",href:s==="image"&&h&&h.imageSrcSet?void 0:l,as:s},h),mr.set(w,l),m.querySelector(b)!==null||s==="style"&&m.querySelector(Au(w))||s==="script"&&m.querySelector(Du(w))||(s=m.createElement("link"),Qe(s,"link",l),Ge(s),m.head.appendChild(s)))}}function cI(l,s){Ha.m(l,s);var h=Jl;if(h&&l){var m=s&&typeof s.as=="string"?s.as:"script",b='link[rel="modulepreload"][as="'+ur(m)+'"][href="'+ur(l)+'"]',w=b;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":w=es(l)}if(!mr.has(w)&&(l=d({rel:"modulepreload",href:l},s),mr.set(w,l),h.querySelector(b)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(h.querySelector(Du(w)))return}m=h.createElement("link"),Qe(m,"link",l),Ge(m),h.head.appendChild(m)}}}function hI(l,s,h){Ha.S(l,s,h);var m=Jl;if(m&&l){var b=xl(m).hoistableStyles,w=ts(l);s=s||"default";var A=b.get(w);if(!A){var O={loading:0,preload:null};if(A=m.querySelector(Au(w)))O.loading=5;else{l=d({rel:"stylesheet",href:l,"data-precedence":s},h),(h=mr.get(w))&&Rm(l,h);var F=A=m.createElement("link");Ge(F),Qe(F,"link",l),F._p=new Promise(function(W,et){F.onload=W,F.onerror=et}),F.addEventListener("load",function(){O.loading|=1}),F.addEventListener("error",function(){O.loading|=2}),O.loading|=4,bh(A,s,m)}A={type:"stylesheet",instance:A,count:1,state:O},b.set(w,A)}}}function vI(l,s){Ha.X(l,s);var h=Jl;if(h&&l){var m=xl(h).hoistableScripts,b=es(l),w=m.get(b);w||(w=h.querySelector(Du(b)),w||(l=d({src:l,async:!0},s),(s=mr.get(b))&&Em(l,s),w=h.createElement("script"),Ge(w),Qe(w,"link",l),h.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},m.set(b,w))}}function dI(l,s){Ha.M(l,s);var h=Jl;if(h&&l){var m=xl(h).hoistableScripts,b=es(l),w=m.get(b);w||(w=h.querySelector(Du(b)),w||(l=d({src:l,async:!0,type:"module"},s),(s=mr.get(b))&&Em(l,s),w=h.createElement("script"),Ge(w),Qe(w,"link",l),h.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},m.set(b,w))}}function fM(l,s,h,m){var b=(b=gt.current)?Sh(b):null;if(!b)throw Error(r(446));switch(l){case"meta":case"title":return null;case"style":return typeof h.precedence=="string"&&typeof h.href=="string"?(s=ts(h.href),h=xl(b).hoistableStyles,m=h.get(s),m||(m={type:"style",instance:null,count:0,state:null},h.set(s,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(h.rel==="stylesheet"&&typeof h.href=="string"&&typeof h.precedence=="string"){l=ts(h.href);var w=xl(b).hoistableStyles,A=w.get(l);if(A||(b=b.ownerDocument||b,A={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},w.set(l,A),(w=b.querySelector(Au(l)))&&!w._p&&(A.instance=w,A.state.loading=5),mr.has(l)||(h={rel:"preload",as:"style",href:h.href,crossOrigin:h.crossOrigin,integrity:h.integrity,media:h.media,hrefLang:h.hrefLang,referrerPolicy:h.referrerPolicy},mr.set(l,h),w||pI(b,l,h,A.state))),s&&m===null)throw Error(r(528,""));return A}if(s&&m!==null)throw Error(r(529,""));return null;case"script":return s=h.async,h=h.src,typeof h=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=es(h),h=xl(b).hoistableScripts,m=h.get(s),m||(m={type:"script",instance:null,count:0,state:null},h.set(s,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,l))}}function ts(l){return'href="'+ur(l)+'"'}function Au(l){return'link[rel="stylesheet"]['+l+"]"}function cM(l){return d({},l,{"data-precedence":l.precedence,precedence:null})}function pI(l,s,h,m){l.querySelector('link[rel="preload"][as="style"]['+s+"]")?m.loading=1:(s=l.createElement("link"),m.preload=s,s.addEventListener("load",function(){return m.loading|=1}),s.addEventListener("error",function(){return m.loading|=2}),Qe(s,"link",h),Ge(s),l.head.appendChild(s))}function es(l){return'[src="'+ur(l)+'"]'}function Du(l){return"script[async]"+l}function hM(l,s,h){if(s.count++,s.instance===null)switch(s.type){case"style":var m=l.querySelector('style[data-href~="'+ur(h.href)+'"]');if(m)return s.instance=m,Ge(m),m;var b=d({},h,{"data-href":h.href,"data-precedence":h.precedence,href:null,precedence:null});return m=(l.ownerDocument||l).createElement("style"),Ge(m),Qe(m,"style",b),bh(m,h.precedence,l),s.instance=m;case"stylesheet":b=ts(h.href);var w=l.querySelector(Au(b));if(w)return s.state.loading|=4,s.instance=w,Ge(w),w;m=cM(h),(b=mr.get(b))&&Rm(m,b),w=(l.ownerDocument||l).createElement("link"),Ge(w);var A=w;return A._p=new Promise(function(O,F){A.onload=O,A.onerror=F}),Qe(w,"link",m),s.state.loading|=4,bh(w,h.precedence,l),s.instance=w;case"script":return w=es(h.src),(b=l.querySelector(Du(w)))?(s.instance=b,Ge(b),b):(m=h,(b=mr.get(w))&&(m=d({},h),Em(m,b)),l=l.ownerDocument||l,b=l.createElement("script"),Ge(b),Qe(b,"link",m),l.head.appendChild(b),s.instance=b);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(m=s.instance,s.state.loading|=4,bh(m,h.precedence,l));return s.instance}function bh(l,s,h){for(var m=h.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=m.length?m[m.length-1]:null,w=b,A=0;A<m.length;A++){var O=m[A];if(O.dataset.precedence===s)w=O;else if(w!==b)break}w?w.parentNode.insertBefore(l,w.nextSibling):(s=h.nodeType===9?h.head:h,s.insertBefore(l,s.firstChild))}function Rm(l,s){l.crossOrigin==null&&(l.crossOrigin=s.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=s.referrerPolicy),l.title==null&&(l.title=s.title)}function Em(l,s){l.crossOrigin==null&&(l.crossOrigin=s.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=s.referrerPolicy),l.integrity==null&&(l.integrity=s.integrity)}var xh=null;function vM(l,s,h){if(xh===null){var m=new Map,b=xh=new Map;b.set(h,m)}else b=xh,m=b.get(h),m||(m=new Map,b.set(h,m));if(m.has(l))return m;for(m.set(l,null),h=h.getElementsByTagName(l),b=0;b<h.length;b++){var w=h[b];if(!(w[js]||w[Xe]||l==="link"&&w.getAttribute("rel")==="stylesheet")&&w.namespaceURI!=="http://www.w3.org/2000/svg"){var A=w.getAttribute(s)||"";A=l+A;var O=m.get(A);O?O.push(w):m.set(A,[w])}}return m}function dM(l,s,h){l=l.ownerDocument||l,l.head.insertBefore(h,s==="title"?l.querySelector("head > title"):null)}function gI(l,s,h){if(h===1||s.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return l=s.disabled,typeof s.precedence=="string"&&l==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function pM(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}function mI(l,s,h,m){if(h.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(h.state.loading&4)===0){if(h.instance===null){var b=ts(m.href),w=s.querySelector(Au(b));if(w){s=w._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(l.count++,l=wh.bind(l),s.then(l,l)),h.state.loading|=4,h.instance=w,Ge(w);return}w=s.ownerDocument||s,m=cM(m),(b=mr.get(b))&&Rm(m,b),w=w.createElement("link"),Ge(w);var A=w;A._p=new Promise(function(O,F){A.onload=O,A.onerror=F}),Qe(w,"link",m),h.instance=w}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(h,s),(s=h.state.preload)&&(h.state.loading&3)===0&&(l.count++,h=wh.bind(l),s.addEventListener("load",h),s.addEventListener("error",h))}}var Lm=0;function yI(l,s){return l.stylesheets&&l.count===0&&Ch(l,l.stylesheets),0<l.count||0<l.imgCount?function(h){var m=setTimeout(function(){if(l.stylesheets&&Ch(l,l.stylesheets),l.unsuspend){var w=l.unsuspend;l.unsuspend=null,w()}},6e4+s);0<l.imgBytes&&Lm===0&&(Lm=62500*KN());var b=setTimeout(function(){if(l.waitingForImages=!1,l.count===0&&(l.stylesheets&&Ch(l,l.stylesheets),l.unsuspend)){var w=l.unsuspend;l.unsuspend=null,w()}},(l.imgBytes>Lm?50:800)+s);return l.unsuspend=h,function(){l.unsuspend=null,clearTimeout(m),clearTimeout(b)}}:null}function wh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ch(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var Mh=null;function Ch(l,s){l.stylesheets=null,l.unsuspend!==null&&(l.count++,Mh=new Map,s.forEach(_I,l),Mh=null,wh.call(l))}function _I(l,s){if(!(s.state.loading&4)){var h=Mh.get(l);if(h)var m=h.get(null);else{h=new Map,Mh.set(l,h);for(var b=l.querySelectorAll("link[data-precedence],style[data-precedence]"),w=0;w<b.length;w++){var A=b[w];(A.nodeName==="LINK"||A.getAttribute("media")!=="not all")&&(h.set(A.dataset.precedence,A),m=A)}m&&h.set(null,m)}b=s.instance,A=b.getAttribute("data-precedence"),w=h.get(A)||m,w===m&&h.set(null,b),h.set(A,b),this.count++,m=wh.bind(this),b.addEventListener("load",m),b.addEventListener("error",m),w?w.parentNode.insertBefore(b,w.nextSibling):(l=l.nodeType===9?l.head:l,l.insertBefore(b,l.firstChild)),s.state.loading|=4}}var Ru={$$typeof:C,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function SI(l,s,h,m,b,w,A,O,F){this.tag=1,this.containerInfo=l,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=Tp(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tp(0),this.hiddenUpdates=Tp(null),this.identifierPrefix=m,this.onUncaughtError=b,this.onCaughtError=w,this.onRecoverableError=A,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=F,this.incompleteTransitions=new Map}function gM(l,s,h,m,b,w,A,O,F,W,et,at){return l=new SI(l,s,h,A,F,W,et,at,O),s=1,w===!0&&(s|=24),w=Wn(3,null,null,s),l.current=w,w.stateNode=l,s=fg(),s.refCount++,l.pooledCache=s,s.refCount++,w.memoizedState={element:m,isDehydrated:h,cache:s},dg(w),l}function mM(l){return l?(l=Ol,l):Ol}function yM(l,s,h,m,b,w){b=mM(b),m.context===null?m.context=b:m.pendingContext=b,m=ci(s),m.payload={element:h},w=w===void 0?null:w,w!==null&&(m.callback=w),h=hi(l,m,s),h!==null&&(Bn(h,l,s),lu(h,l,s))}function _M(l,s){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var h=l.retryLane;l.retryLane=h!==0&&h<s?h:s}}function Om(l,s){_M(l,s),(l=l.alternate)&&_M(l,s)}function SM(l){if(l.tag===13||l.tag===31){var s=co(l,67108864);s!==null&&Bn(s,l,67108864),Om(l,67108864)}}function bM(l){if(l.tag===13||l.tag===31){var s=er();s=Ap(s);var h=co(l,s);h!==null&&Bn(h,l,s),Om(l,s)}}var Th=!0;function bI(l,s,h,m){var b=H.T;H.T=null;var w=Q.p;try{Q.p=2,zm(l,s,h,m)}finally{Q.p=w,H.T=b}}function xI(l,s,h,m){var b=H.T;H.T=null;var w=Q.p;try{Q.p=8,zm(l,s,h,m)}finally{Q.p=w,H.T=b}}function zm(l,s,h,m){if(Th){var b=Nm(m);if(b===null)_m(l,s,m,Ah,h),wM(l,m);else if(MI(b,l,s,h,m))m.stopPropagation();else if(wM(l,m),s&4&&-1<wI.indexOf(l)){for(;b!==null;){var w=bl(b);if(w!==null)switch(w.tag){case 3:if(w=w.stateNode,w.current.memoizedState.isDehydrated){var A=oo(w.pendingLanes);if(A!==0){var O=w;for(O.pendingLanes|=2,O.entangledLanes|=2;A;){var F=1<<31-It(A);O.entanglements[1]|=F,A&=~F}ea(w),(re&6)===0&&(uh=ge()+500,wu(0))}}break;case 31:case 13:O=co(w,2),O!==null&&Bn(O,w,2),ch(),Om(w,2)}if(w=Nm(m),w===null&&_m(l,s,m,Ah,h),w===b)break;b=w}b!==null&&m.stopPropagation()}else _m(l,s,m,null,h)}}function Nm(l){return l=Bp(l),Im(l)}var Ah=null;function Im(l){if(Ah=null,l=Sl(l),l!==null){var s=i(l);if(s===null)l=null;else{var h=s.tag;if(h===13){if(l=o(s),l!==null)return l;l=null}else if(h===31){if(l=u(s),l!==null)return l;l=null}else if(h===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;l=null}else s!==l&&(l=null)}}return Ah=l,null}function xM(l){switch(l){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(lr()){case gn:return 2;case Ir:return 8;case nn:case io:return 32;case ya:return 268435456;default:return 32}default:return 32}}var Bm=!1,wi=null,Mi=null,Ci=null,Eu=new Map,Lu=new Map,Ti=[],wI="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 wM(l,s){switch(l){case"focusin":case"focusout":wi=null;break;case"dragenter":case"dragleave":Mi=null;break;case"mouseover":case"mouseout":Ci=null;break;case"pointerover":case"pointerout":Eu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lu.delete(s.pointerId)}}function Ou(l,s,h,m,b,w){return l===null||l.nativeEvent!==w?(l={blockedOn:s,domEventName:h,eventSystemFlags:m,nativeEvent:w,targetContainers:[b]},s!==null&&(s=bl(s),s!==null&&SM(s)),l):(l.eventSystemFlags|=m,s=l.targetContainers,b!==null&&s.indexOf(b)===-1&&s.push(b),l)}function MI(l,s,h,m,b){switch(s){case"focusin":return wi=Ou(wi,l,s,h,m,b),!0;case"dragenter":return Mi=Ou(Mi,l,s,h,m,b),!0;case"mouseover":return Ci=Ou(Ci,l,s,h,m,b),!0;case"pointerover":var w=b.pointerId;return Eu.set(w,Ou(Eu.get(w)||null,l,s,h,m,b)),!0;case"gotpointercapture":return w=b.pointerId,Lu.set(w,Ou(Lu.get(w)||null,l,s,h,m,b)),!0}return!1}function MM(l){var s=Sl(l.target);if(s!==null){var h=i(s);if(h!==null){if(s=h.tag,s===13){if(s=o(h),s!==null){l.blockedOn=s,k1(l.priority,function(){bM(h)});return}}else if(s===31){if(s=u(h),s!==null){l.blockedOn=s,k1(l.priority,function(){bM(h)});return}}else if(s===3&&h.stateNode.current.memoizedState.isDehydrated){l.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}l.blockedOn=null}function Dh(l){if(l.blockedOn!==null)return!1;for(var s=l.targetContainers;0<s.length;){var h=Nm(l.nativeEvent);if(h===null){h=l.nativeEvent;var m=new h.constructor(h.type,h);Ip=m,h.target.dispatchEvent(m),Ip=null}else return s=bl(h),s!==null&&SM(s),l.blockedOn=h,!1;s.shift()}return!0}function CM(l,s,h){Dh(l)&&h.delete(s)}function CI(){Bm=!1,wi!==null&&Dh(wi)&&(wi=null),Mi!==null&&Dh(Mi)&&(Mi=null),Ci!==null&&Dh(Ci)&&(Ci=null),Eu.forEach(CM),Lu.forEach(CM)}function Rh(l,s){l.blockedOn===s&&(l.blockedOn=null,Bm||(Bm=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,CI)))}var Eh=null;function TM(l){Eh!==l&&(Eh=l,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Eh===l&&(Eh=null);for(var s=0;s<l.length;s+=3){var h=l[s],m=l[s+1],b=l[s+2];if(typeof m!="function"){if(Im(m||h)===null)continue;break}var w=bl(h);w!==null&&(l.splice(s,3),s-=3,Ng(w,{pending:!0,data:b,method:h.method,action:m},m,b))}}))}function ns(l){function s(F){return Rh(F,l)}wi!==null&&Rh(wi,l),Mi!==null&&Rh(Mi,l),Ci!==null&&Rh(Ci,l),Eu.forEach(s),Lu.forEach(s);for(var h=0;h<Ti.length;h++){var m=Ti[h];m.blockedOn===l&&(m.blockedOn=null)}for(;0<Ti.length&&(h=Ti[0],h.blockedOn===null);)MM(h),h.blockedOn===null&&Ti.shift();if(h=(l.ownerDocument||l).$$reactFormReplay,h!=null)for(m=0;m<h.length;m+=3){var b=h[m],w=h[m+1],A=b[En]||null;if(typeof w=="function")A||TM(h);else if(A){var O=null;if(w&&w.hasAttribute("formAction")){if(b=w,A=w[En]||null)O=A.formAction;else if(Im(b)!==null)continue}else O=A.action;typeof O=="function"?h[m+1]=O:(h.splice(m,3),m-=3),TM(h)}}}function AM(){function l(w){w.canIntercept&&w.info==="react-transition"&&w.intercept({handler:function(){return new Promise(function(A){return b=A})},focusReset:"manual",scroll:"manual"})}function s(){b!==null&&(b(),b=null),m||setTimeout(h,20)}function h(){if(!m&&!navigation.transition){var w=navigation.currentEntry;w&&w.url!=null&&navigation.navigate(w.url,{state:w.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,b=null;return navigation.addEventListener("navigate",l),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(h,100),function(){m=!0,navigation.removeEventListener("navigate",l),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),b!==null&&(b(),b=null)}}}function km(l){this._internalRoot=l}Lh.prototype.render=km.prototype.render=function(l){var s=this._internalRoot;if(s===null)throw Error(r(409));var h=s.current,m=er();yM(h,m,l,s,null,null)},Lh.prototype.unmount=km.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var s=l.containerInfo;yM(l.current,2,null,l,null,null),ch(),s[_l]=null}};function Lh(l){this._internalRoot=l}Lh.prototype.unstable_scheduleHydration=function(l){if(l){var s=B1();l={blockedOn:null,target:l,priority:s};for(var h=0;h<Ti.length&&s!==0&&s<Ti[h].priority;h++);Ti.splice(h,0,l),h===0&&MM(l)}};var DM=e.version;if(DM!=="19.2.4")throw Error(r(527,DM,"19.2.4"));Q.findDOMNode=function(l){var s=l._reactInternals;if(s===void 0)throw typeof l.render=="function"?Error(r(188)):(l=Object.keys(l).join(","),Error(r(268,l)));return l=c(s),l=l!==null?v(l):null,l=l===null?null:l.stateNode,l};var TI={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Oh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Oh.isDisabled&&Oh.supportsFiber)try{_a=Oh.inject(TI),rn=Oh}catch{}}return Nu.createRoot=function(l,s){if(!a(l))throw Error(r(299));var h=!1,m="",b=Ix,w=Bx,A=kx;return s!=null&&(s.unstable_strictMode===!0&&(h=!0),s.identifierPrefix!==void 0&&(m=s.identifierPrefix),s.onUncaughtError!==void 0&&(b=s.onUncaughtError),s.onCaughtError!==void 0&&(w=s.onCaughtError),s.onRecoverableError!==void 0&&(A=s.onRecoverableError)),s=gM(l,1,!1,null,null,h,m,null,b,w,A,AM),l[_l]=s.current,ym(l),new km(s)},Nu.hydrateRoot=function(l,s,h){if(!a(l))throw Error(r(299));var m=!1,b="",w=Ix,A=Bx,O=kx,F=null;return h!=null&&(h.unstable_strictMode===!0&&(m=!0),h.identifierPrefix!==void 0&&(b=h.identifierPrefix),h.onUncaughtError!==void 0&&(w=h.onUncaughtError),h.onCaughtError!==void 0&&(A=h.onCaughtError),h.onRecoverableError!==void 0&&(O=h.onRecoverableError),h.formState!==void 0&&(F=h.formState)),s=gM(l,1,!0,s,h??null,m,b,F,w,A,O,AM),s.context=mM(null),h=s.current,m=er(),m=Ap(m),b=ci(m),b.callback=null,hi(h,b,m),h=m,s.current.lanes=h,Us(s,h),ea(s),l[_l]=s.current,ym(l),new Lh(s)},Nu.version="19.2.4",Nu}var PM;function BI(){if(PM)return Vm.exports;PM=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Vm.exports=II(),Vm.exports}var kI=BI();const PI=eS(kI),HM="".replace(/\/$/,"");function Uv(t){return HM?`${HM}${t}`:t}async function Hr(t){const e=await fetch(Uv(t));if(!e.ok)throw new Error(`API error: ${e.status}`);return e.json()}async function VM(t,e=null,n={}){const r=e?{"Content-Type":"application/json"}:void 0,a=await fetch(Uv(t),{method:"POST",...n,headers:{...r||{},...n.headers||{}},body:e?JSON.stringify(e):void 0});if(!a.ok)throw new Error(`API error: ${a.status}`);return a.json()}const un={url:Uv,progress:()=>Hr("/api/progress"),overview:()=>Hr("/api/overview"),repos:()=>Hr("/api/repos"),models:()=>Hr("/api/models"),daily:()=>Hr("/api/daily"),sessions:(t="")=>Hr(`/api/sessions${t?`?q=${encodeURIComponent(t)}`:""}`),heatmap:()=>Hr("/api/heatmap"),families:()=>Hr("/api/families"),live:()=>new EventSource(Uv("/api/live")),rerun:()=>VM("/api/rerun"),startOverviewVideoExport:()=>VM("/api/export/overview-video",null,{headers:{"x-codexmeter-client-base":window.location.origin}}),exportStatus:t=>Hr(`/api/export/${encodeURIComponent(t)}/status`),activeExport:()=>Hr("/api/export/active"),exportRenderData:t=>Hr(`/api/export/${encodeURIComponent(t)}/render-data`)};var zh={};/*! *****************************************************************************
50
+ Copyright (c) Microsoft Corporation.
51
+
52
+ Permission to use, copy, modify, and/or distribute this software for any
53
+ purpose with or without fee is hereby granted.
54
+
55
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
56
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
57
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
58
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
59
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
60
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
61
+ PERFORMANCE OF THIS SOFTWARE.
62
+ ***************************************************************************** */var B0=function(t,e){return B0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},B0(t,e)};function ut(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");B0(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var k0=function(){return k0=Object.assign||function(e){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},k0.apply(this,arguments)};function HI(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n}function VI(t,e,n,r){var a=arguments.length,i=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(i=(a<3?o(i):a>3?o(e,n,i):o(e,n))||i);return a>3&&i&&Object.defineProperty(e,n,i),i}function FI(t,e){return function(n,r){e(n,r,t)}}function GI(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function UI(t,e,n,r){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function u(v){try{c(r.next(v))}catch(d){o(d)}}function f(v){try{c(r.throw(v))}catch(d){o(d)}}function c(v){v.done?i(v.value):a(v.value).then(u,f)}c((r=r.apply(t,e||[])).next())})}function jI(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(c){return function(v){return f([c,v])}}function f(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,a&&(i=c[0]&2?a.return:c[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,c[1])).done)return i;switch(a=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(v){c=[6,v],a=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var nS=Object.create?(function(t,e,n,r){r===void 0&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}):(function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]});function YI(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&nS(e,t,n)}function P0(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function R2(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),a,i=[],o;try{for(;(e===void 0||e-- >0)&&!(a=r.next()).done;)i.push(a.value)}catch(u){o={error:u}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return i}function qI(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(R2(arguments[e]));return t}function XI(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),a=0,e=0;e<n;e++)for(var i=arguments[e],o=0,u=i.length;o<u;o++,a++)r[a]=i[o];return r}function ZI(t,e,n){if(n||arguments.length===2)for(var r=0,a=e.length,i;r<a;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||e)}function If(t){return this instanceof If?(this.v=t,this):new If(t)}function $I(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),a,i=[];return a={},o("next"),o("throw"),o("return"),a[Symbol.asyncIterator]=function(){return this},a;function o(g){r[g]&&(a[g]=function(p){return new Promise(function(y,_){i.push([g,p,y,_])>1||u(g,p)})})}function u(g,p){try{f(r[g](p))}catch(y){d(i[0][3],y)}}function f(g){g.value instanceof If?Promise.resolve(g.value.v).then(c,v):d(i[0][2],g)}function c(g){u("next",g)}function v(g){u("throw",g)}function d(g,p){g(p),i.shift(),i.length&&u(i[0][0],i[0][1])}}function WI(t){var e,n;return e={},r("next"),r("throw",function(a){throw a}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(a,i){e[a]=t[a]?function(o){return(n=!n)?{value:If(t[a](o)),done:a==="return"}:i?i(o):o}:i}}function QI(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof P0=="function"?P0(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=t[i]&&function(o){return new Promise(function(u,f){o=t[i](o),a(u,f,o.done,o.value)})}}function a(i,o,u,f){Promise.resolve(f).then(function(c){i({value:c,done:u})},o)}}function KI(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var JI=Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e};function t3(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&nS(e,t,n);return JI(e,t),e}function e3(t){return t&&t.__esModule?t:{default:t}}function n3(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)}function r3(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n}const a3=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return k0},__asyncDelegator:WI,__asyncGenerator:$I,__asyncValues:QI,__await:If,__awaiter:UI,__classPrivateFieldGet:n3,__classPrivateFieldSet:r3,__createBinding:nS,__decorate:VI,__exportStar:YI,__extends:ut,__generator:jI,__importDefault:e3,__importStar:t3,__makeTemplateObject:KI,__metadata:GI,__param:FI,__read:R2,__rest:HI,__spread:qI,__spreadArray:ZI,__spreadArrays:XI,__values:P0},Symbol.toStringTag,{value:"Module"})),E2=DI(a3);var Va={},Fa={},jm={},FM;function i3(){return FM||(FM=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=1;t.default=function(){return"".concat(e++)}})(jm)),jm}var Iu={},Bu={},Ym={},GM;function L2(){return GM||(GM=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,a=null;return function(){for(var i=this,o=arguments.length,u=new Array(o),f=0;f<o;f++)u[f]=arguments[f];clearTimeout(a),a=setTimeout(function(){n.apply(i,u)},r)}}})(Ym)),Ym}var Ga={},UM;function rS(){return UM||(UM=1,Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.SizeSensorId=Ga.SensorTabIndex=Ga.SensorClassName=void 0,Ga.SizeSensorId="size-sensor-id",Ga.SensorClassName="size-sensor-object",Ga.SensorTabIndex="-1"),Ga}var jM;function o3(){if(jM)return Bu;jM=1,Object.defineProperty(Bu,"__esModule",{value:!0}),Bu.createSensor=void 0;var t=n(L2()),e=rS();function n(r){return r&&r.__esModule?r:{default:r}}return Bu.createSensor=function(a,i){var o=void 0,u=[],f=function(){getComputedStyle(a).position==="static"&&(a.style.position="relative");var y=document.createElement("object");return y.onload=function(){y.contentDocument.defaultView.addEventListener("resize",c),c()},y.style.display="block",y.style.position="absolute",y.style.top="0",y.style.left="0",y.style.height="100%",y.style.width="100%",y.style.overflow="hidden",y.style.pointerEvents="none",y.style.zIndex="-1",y.style.opacity="0",y.setAttribute("class",e.SensorClassName),y.setAttribute("tabindex",e.SensorTabIndex),y.type="text/html",a.appendChild(y),y.data="about:blank",y},c=(0,t.default)(function(){u.forEach(function(p){p(a)})}),v=function(y){o||(o=f()),u.indexOf(y)===-1&&u.push(y)},d=function(){o&&o.parentNode&&(o.contentDocument&&o.contentDocument.defaultView.removeEventListener("resize",c),o.parentNode.removeChild(o),a.removeAttribute(e.SizeSensorId),o=void 0,u=[],i&&i())},g=function(y){var _=u.indexOf(y);_!==-1&&u.splice(_,1),u.length===0&&o&&d()};return{element:a,bind:v,destroy:d,unbind:g}},Bu}var ku={},YM;function l3(){if(YM)return ku;YM=1,Object.defineProperty(ku,"__esModule",{value:!0}),ku.createSensor=void 0;var t=rS(),e=n(L2());function n(r){return r&&r.__esModule?r:{default:r}}return ku.createSensor=function(a,i){var o=void 0,u=[],f=(0,e.default)(function(){u.forEach(function(p){p(a)})}),c=function(){var y=new ResizeObserver(f);return y.observe(a),f(),y},v=function(y){o||(o=c()),u.indexOf(y)===-1&&u.push(y)},d=function(){o&&o.disconnect(),u=[],o=void 0,a.removeAttribute(t.SizeSensorId),i&&i()},g=function(y){var _=u.indexOf(y);_!==-1&&u.splice(_,1),u.length===0&&o&&d()};return{element:a,bind:v,destroy:d,unbind:g}},ku}var qM;function s3(){if(qM)return Iu;qM=1,Object.defineProperty(Iu,"__esModule",{value:!0}),Iu.createSensor=void 0;var t=o3(),e=l3();return Iu.createSensor=typeof ResizeObserver<"u"?e.createSensor:t.createSensor,Iu}var XM;function u3(){if(XM)return Fa;XM=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.removeSensor=Fa.getSensor=Fa.Sensors=void 0;var t=r(i3()),e=s3(),n=rS();function r(o){return o&&o.__esModule?o:{default:o}}var a=Fa.Sensors={};function i(o){o&&a[o]&&delete a[o]}return Fa.getSensor=function(u){var f=u.getAttribute(n.SizeSensorId);if(f&&a[f])return a[f];var c=(0,t.default)();u.setAttribute(n.SizeSensorId,c);var v=(0,e.createSensor)(u,function(){return i(c)});return a[c]=v,v},Fa.removeSensor=function(u){var f=u.element.getAttribute(n.SizeSensorId);u.destroy(),i(f)},Fa}var ZM;function f3(){if(ZM)return Va;ZM=1,Object.defineProperty(Va,"__esModule",{value:!0}),Va.ver=Va.clear=Va.bind=void 0;var t=u3();return Va.bind=function(n,r){var a=(0,t.getSensor)(n);return a.bind(r),function(){a.unbind(r)}},Va.clear=function(n){var r=(0,t.getSensor)(n);(0,t.removeSensor)(r)},Va.ver="1.0.3",Va}var Pu={},$M;function c3(){if($M)return Pu;$M=1,Object.defineProperty(Pu,"__esModule",{value:!0}),Pu.pick=void 0;function t(e,n){var r={};return n.forEach(function(a){r[a]=e[a]}),r}return Pu.pick=t,Pu}var Hu={},WM;function h3(){if(WM)return Hu;WM=1,Object.defineProperty(Hu,"__esModule",{value:!0}),Hu.isFunction=void 0;function t(e){return typeof e=="function"}return Hu.isFunction=t,Hu}var Vu={},QM;function v3(){if(QM)return Vu;QM=1,Object.defineProperty(Vu,"__esModule",{value:!0}),Vu.isString=void 0;function t(e){return typeof e=="string"}return Vu.isString=t,Vu}var Fu={},qm,KM;function d3(){return KM||(KM=1,qm=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,a,i;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!t(e[a],n[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;for(a=r;a--!==0;){var o=i[a];if(!t(e[o],n[o]))return!1}return!0}return e!==e&&n!==n}),qm}var JM;function p3(){if(JM)return Fu;JM=1,Object.defineProperty(Fu,"__esModule",{value:!0}),Fu.isEqual=void 0;var t=E2,e=t.__importDefault(d3());return Fu.isEqual=e.default,Fu}var tC;function g3(){if(tC)return zh;tC=1,Object.defineProperty(zh,"__esModule",{value:!0});var t=E2,e=t.__importStar(Rd()),n=f3(),r=c3(),a=h3(),i=v3(),o=p3(),u=(function(f){t.__extends(c,f);function c(v){var d=f.call(this,v)||this;return d.echarts=v.echarts,d.ele=null,d.isInitialResize=!0,d.eventHandlerRefs={},d}return c.prototype.componentDidMount=function(){this.renderNewEcharts()},c.prototype.componentDidUpdate=function(v){var d=this.props.shouldSetOption;if(!((0,a.isFunction)(d)&&!d(v,this.props))){if(!(0,o.isEqual)(v.theme,this.props.theme)||!(0,o.isEqual)(v.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var g=this.getEchartsInstance();(0,o.isEqual)(v.onEvents,this.props.onEvents)||(this.unbindEvents(g),this.bindEvents(g,this.props.onEvents));var p=["option","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption"];(0,o.isEqual)((0,r.pick)(this.props,p),(0,r.pick)(v,p))||this.updateEChartsOption(),(!(0,o.isEqual)(v.style,this.props.style)||!(0,o.isEqual)(v.className,this.props.className))&&this.resize()}},c.prototype.componentWillUnmount=function(){this.dispose()},c.prototype.initEchartsInstance=function(){return t.__awaiter(this,void 0,void 0,function(){var v=this;return t.__generator(this,function(d){return[2,new Promise(function(g){v.echarts.init(v.ele,v.props.theme,v.props.opts);var p=v.getEchartsInstance();p.on("finished",function(){var y=v.ele.clientWidth,_=v.ele.clientHeight;v.echarts.dispose(v.ele);var S=t.__assign({width:y,height:_},v.props.opts);g(v.echarts.init(v.ele,v.props.theme,S))})})]})})},c.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},c.prototype.dispose=function(){if(this.ele){try{(0,n.clear)(this.ele)}catch(v){console.warn(v)}this.echarts.dispose(this.ele)}},c.prototype.renderNewEcharts=function(){return t.__awaiter(this,void 0,void 0,function(){var v,d,g,p,y,_,S=this;return t.__generator(this,function(x){switch(x.label){case 0:return v=this.props,d=v.onEvents,g=v.onChartReady,p=v.autoResize,y=p===void 0?!0:p,[4,this.initEchartsInstance()];case 1:return x.sent(),_=this.updateEChartsOption(),this.bindEvents(_,d||{}),(0,a.isFunction)(g)&&g(_),this.ele&&y&&(0,n.bind)(this.ele,function(){S.resize()}),[2]}})})},c.prototype.bindEvents=function(v,d){var g=this,p=function(_,S){if((0,i.isString)(_)&&(0,a.isFunction)(S)){var x=function(M){S(M,v)};v.on(_,x),g.eventHandlerRefs[_]=x}};for(var y in d)Object.prototype.hasOwnProperty.call(d,y)&&p(y,d[y])},c.prototype.unbindEvents=function(v){for(var d=0,g=Object.entries(this.eventHandlerRefs);d<g.length;d++){var p=g[d],y=p[0],_=p[1];v.off(y,_)}this.eventHandlerRefs={}},c.prototype.updateEChartsOption=function(){var v=this.props,d=v.option,g=v.notMerge,p=g===void 0?!1:g,y=v.replaceMerge,_=y===void 0?null:y,S=v.lazyUpdate,x=S===void 0?!1:S,M=v.showLoading,C=v.loadingOption,T=C===void 0?null:C,D=this.getEchartsInstance();return D.setOption(d,{notMerge:p,replaceMerge:_,lazyUpdate:x}),M?D.showLoading(T):D.hideLoading(),D},c.prototype.resize=function(){var v=this.getEchartsInstance();if(!this.isInitialResize)try{v.resize({width:"auto",height:"auto"})}catch(d){console.warn(d)}this.isInitialResize=!1},c.prototype.render=function(){var v=this,d=this.props,g=d.style,p=d.className,y=p===void 0?"":p;d.echarts,d.option,d.theme,d.notMerge,d.replaceMerge,d.lazyUpdate,d.showLoading,d.loadingOption,d.opts,d.onChartReady,d.onEvents,d.shouldSetOption,d.autoResize;var _=t.__rest(d,["style","className","echarts","option","theme","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption","opts","onChartReady","onEvents","shouldSetOption","autoResize"]),S=t.__assign({height:300},g);return e.default.createElement("div",t.__assign({ref:function(x){v.ele=x},style:S,className:"echarts-for-react ".concat(y)},_))},c})(e.PureComponent);return zh.default=u,zh}var m3=g3();const wn=eS(m3);var y3=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),_3=(function(){function t(){this.browser=new y3,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t})(),Dt=new _3;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Dt.wxa=!0,Dt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Dt.worker=!0:!Dt.hasGlobalWindow||"Deno"in window?(Dt.node=!0,Dt.svgSupported=!0):S3(navigator.userAgent,Dt);function S3(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),i=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),a&&(n.ie=!0,n.version=a[1]),i&&(n.edge=!0,n.version=i[1],n.newEdge=+i[1].split(".")[0]>18),o&&(n.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported=typeof document<"u";var u=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in u||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in u)&&!("OTransition"in u),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}var aS=12,b3="sans-serif",il=aS+"px "+b3,x3=20,w3=100,M3="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function C3(t){var e={};if(typeof JSON>"u")return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),a=(t.charCodeAt(n)-x3)/w3;e[r]=a}return e}var T3=C3(M3),Ka={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(n,r){if(!t){var a=Ka.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==r&&(e=t.font=r||il),t.measureText(n);n=n||"",r=r||il;var i=/((?:\d+)?\.?\d*)px/.exec(r),o=i&&+i[1]||aS,u=0;if(r.indexOf("mono")>=0)u=o*n.length;else for(var f=0;f<n.length;f++){var c=T3[n[f]];u+=c==null?o:c*o}return{width:u}}})(),loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}};function O2(t){for(var e in Ka)t[e]&&(Ka[e]=t[e])}var z2=$r(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),N2=$r(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Ps=Object.prototype.toString,Ld=Array.prototype,A3=Ld.forEach,D3=Ld.filter,iS=Ld.slice,R3=Ld.map,eC=(function(){}).constructor,Nh=eC?eC.prototype:null,oS="__proto__",E3=2311;function lS(){return E3++}function Od(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function Ht(t){if(t==null||typeof t!="object")return t;var e=t,n=Ps.call(t);if(n==="[object Array]"){if(!Ds(t)){e=[];for(var r=0,a=t.length;r<a;r++)e[r]=Ht(t[r])}}else if(N2[n]){if(!Ds(t)){var i=t.constructor;if(i.from)e=i.from(t);else{e=new i(t.length);for(var r=0,a=t.length;r<a;r++)e[r]=t[r]}}}else if(!z2[n]&&!Ds(t)&&!zs(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==oS&&(e[o]=Ht(t[o]))}return e}function qt(t,e,n){if(!_t(e)||!_t(t))return n?Ht(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==oS){var a=t[r],i=e[r];_t(i)&&_t(a)&&!ct(i)&&!ct(a)&&!zs(i)&&!zs(a)&&!H0(i)&&!H0(a)&&!Ds(i)&&!Ds(a)?qt(a,i,n):(n||!(r in t))&&(t[r]=Ht(e[r]))}return t}function L3(t,e){for(var n=t[0],r=1,a=t.length;r<a;r++)n=qt(n,t[r],e);return n}function st(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==oS&&(t[n]=e[n]);return t}function Qt(t,e,n){for(var r=ae(e),a=0,i=r.length;a<i;a++){var o=r[a];(n?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var O3=Ka.createCanvas;function Yt(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1}function sS(t,e){var n=t.prototype;function r(){}r.prototype=e.prototype,t.prototype=new r;for(var a in n)n.hasOwnProperty(a)&&(t.prototype[a]=n[a]);t.prototype.constructor=t,t.superClass=e}function Lr(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),a=0;a<r.length;a++){var i=r[a];i!=="constructor"&&(n?e[i]!=null:t[i]==null)&&(t[i]=e[i])}else Qt(t,e,n)}function vn(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function k(t,e,n){if(t&&e)if(t.forEach&&t.forEach===A3)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,a=t.length;r<a;r++)e.call(n,t[r],r,t);else for(var i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function mt(t,e,n){if(!t)return[];if(!e)return zd(t);if(t.map&&t.map===R3)return t.map(e,n);for(var r=[],a=0,i=t.length;a<i;a++)r.push(e.call(n,t[a],a,t));return r}function $r(t,e,n,r){if(t&&e){for(var a=0,i=t.length;a<i;a++)n=e.call(r,n,t[a],a,t);return n}}function Re(t,e,n){if(!t)return[];if(!e)return zd(t);if(t.filter&&t.filter===D3)return t.filter(e,n);for(var r=[],a=0,i=t.length;a<i;a++)e.call(n,t[a],a,t)&&r.push(t[a]);return r}function z3(t,e,n){if(t&&e){for(var r=0,a=t.length;r<a;r++)if(e.call(n,t[r],r,t))return t[r]}}function ae(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function N3(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(iS.call(arguments)))}}var Mt=Nh&&Rt(Nh.bind)?Nh.call.bind(Nh.bind):N3;function _e(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(iS.call(arguments)))}}function ct(t){return Array.isArray?Array.isArray(t):Ps.call(t)==="[object Array]"}function Rt(t){return typeof t=="function"}function pt(t){return typeof t=="string"}function jv(t){return Ps.call(t)==="[object String]"}function de(t){return typeof t=="number"}function _t(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function H0(t){return!!z2[Ps.call(t)]}function An(t){return!!N2[Ps.call(t)]}function zs(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function nc(t){return t.colorStops!=null}function I2(t){return t.image!=null}function I3(t){return Ps.call(t)==="[object RegExp]"}function Bf(t){return t!==t}function Ns(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(t[n]!=null)return t[n]}function Pt(t,e){return t??e}function As(t,e,n){return t??e??n}function zd(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return iS.apply(t,e)}function uS(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function ca(t,e){if(!t)throw new Error(e)}function qr(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var B2="__ec_primitive__";function Yv(t){t[B2]=!0}function Ds(t){return t[B2]}var B3=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var n=this.has(e);return n&&delete this.data[e],n},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,n){return this.data[e]=n,this},t.prototype.keys=function(){return ae(this.data)},t.prototype.forEach=function(e){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&e(n[r],r)},t})(),k2=typeof Map=="function";function k3(){return k2?new Map:new B3}var P2=(function(){function t(e){var n=ct(e);this.data=k3();var r=this;e instanceof t?e.each(a):e&&k(e,a);function a(i,o){n?r.set(i,o):r.set(o,i)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,n){return this.data.set(e,n),n},t.prototype.each=function(e,n){this.data.forEach(function(r,a){e.call(n,r,a)})},t.prototype.keys=function(){var e=this.data.keys();return k2?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function Ct(t){return new P2(t)}function H2(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];for(var a=t.length,r=0;r<e.length;r++)n[r+a]=e[r];return n}function rc(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&st(n,e),n}function fS(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function zt(t,e){return t.hasOwnProperty(e)}function hn(){}var V2=180/Math.PI;const P3=Object.freeze(Object.defineProperty({__proto__:null,HashMap:P2,RADIAN_TO_DEGREE:V2,assert:ca,bind:Mt,clone:Ht,concatArray:H2,createCanvas:O3,createHashMap:Ct,createObject:rc,curry:_e,defaults:Qt,disableUserSelect:fS,each:k,eqNaN:Bf,extend:st,filter:Re,find:z3,guid:lS,hasOwn:zt,indexOf:Yt,inherits:sS,isArray:ct,isArrayLike:vn,isBuiltInObject:H0,isDom:zs,isFunction:Rt,isGradientObject:nc,isImagePatternObject:I2,isNumber:de,isObject:_t,isPrimitive:Ds,isRegExp:I3,isString:pt,isStringSafe:jv,isTypedArray:An,keys:ae,logError:Od,map:mt,merge:qt,mergeAll:L3,mixin:Lr,noop:hn,normalizeCssArray:uS,reduce:$r,retrieve:Ns,retrieve2:Pt,retrieve3:As,setAsPrimitive:Yv,slice:zd,trim:qr},Symbol.toStringTag,{value:"Module"}));function hl(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function H3(t,e){return t[0]=e[0],t[1]=e[1],t}function F2(t){return[t[0],t[1]]}function V3(t,e,n){return t[0]=e,t[1]=n,t}function V0(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function F3(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function G2(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function cS(t){return Math.sqrt(hS(t))}var G3=cS;function hS(t){return t[0]*t[0]+t[1]*t[1]}var U3=hS;function j3(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function Y3(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function q3(t,e){return t[0]*e[0]+t[1]*e[1]}function Tv(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function U2(t,e){var n=cS(e);return n===0?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function qv(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Xv=qv;function j2(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Ko=j2;function X3(t,e){return t[0]=-e[0],t[1]=-e[1],t}function Av(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function Mn(t,e,n){var r=e[0],a=e[1];return t[0]=n[0]*r+n[2]*a+n[4],t[1]=n[1]*r+n[3]*a+n[5],t}function Pi(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function Hi(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}const Z3=Object.freeze(Object.defineProperty({__proto__:null,add:V0,applyTransform:Mn,clone:F2,copy:H3,create:hl,dist:Xv,distSquare:Ko,distance:qv,distanceSquare:j2,div:Y3,dot:q3,len:cS,lenSquare:hS,length:G3,lengthSquare:U3,lerp:Av,max:Hi,min:Pi,mul:j3,negate:X3,normalize:U2,scale:Tv,scaleAndAdd:F3,set:V3,sub:G2},Symbol.toStringTag,{value:"Module"}));var rs=(function(){function t(e,n){this.target=e,this.topTarget=n&&n.topTarget}return t})(),$3=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var n=e.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new rs(n,e),"dragstart",e.event))},t.prototype._drag=function(e){var n=this._draggingTarget;if(n){var r=e.offsetX,a=e.offsetY,i=r-this._x,o=a-this._y;this._x=r,this._y=a,n.drift(i,o,e),this.handler.dispatchToElement(new rs(n,e),"drag",e.event);var u=this.handler.findHover(r,a,n).target,f=this._dropTarget;this._dropTarget=u,n!==u&&(f&&u!==f&&this.handler.dispatchToElement(new rs(f,e),"dragleave",e.event),u&&u!==f&&this.handler.dispatchToElement(new rs(u,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new rs(n,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new rs(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),Wr=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,n,r,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof n=="function"&&(a=r,r=n,n=null),!r||!e)return this;var o=this._$eventProcessor;n!=null&&o&&o.normalizeQuery&&(n=o.normalizeQuery(n)),i[e]||(i[e]=[]);for(var u=0;u<i[e].length;u++)if(i[e][u].h===r)return this;var f={h:r,query:n,ctx:a||this,callAtLast:r.zrEventfulCallAtLast},c=i[e].length-1,v=i[e][c];return v&&v.callAtLast?i[e].splice(c,0,f):i[e].push(f),this},t.prototype.isSilent=function(e){var n=this._$handlers;return!n||!n[e]||!n[e].length},t.prototype.off=function(e,n){var r=this._$handlers;if(!r)return this;if(!e)return this._$handlers={},this;if(n){if(r[e]){for(var a=[],i=0,o=r[e].length;i<o;i++)r[e][i].h!==n&&a.push(r[e][i]);r[e]=a}r[e]&&r[e].length===0&&delete r[e]}else delete r[e];return this},t.prototype.trigger=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=n.length,u=a.length,f=0;f<u;f++){var c=a[f];if(!(i&&i.filter&&c.query!=null&&!i.filter(e,c.query)))switch(o){case 0:c.h.call(c.ctx);break;case 1:c.h.call(c.ctx,n[0]);break;case 2:c.h.call(c.ctx,n[0],n[1]);break;default:c.h.apply(c.ctx,n);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=n.length,u=n[o-1],f=a.length,c=0;c<f;c++){var v=a[c];if(!(i&&i.filter&&v.query!=null&&!i.filter(e,v.query)))switch(o){case 0:v.h.call(u);break;case 1:v.h.call(u,n[0]);break;case 2:v.h.call(u,n[0],n[1]);break;default:v.h.apply(u,n.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t})(),W3=Math.log(2);function F0(t,e,n,r,a,i){var o=r+"-"+a,u=t.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var f=Math.round(Math.log((1<<u)-1&~a)/W3);return t[n][f]}for(var c=r|1<<n,v=n+1;r&1<<v;)v++;for(var d=0,g=0,p=0;g<u;g++){var y=1<<g;y&a||(d+=(p%2?-1:1)*t[n][g]*F0(t,e-1,v,c,a|y,i),p++)}return i[o]=d,d}function nC(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},a=F0(n,8,0,0,0,r);if(a!==0){for(var i=[],o=0;o<8;o++)for(var u=0;u<8;u++)i[u]==null&&(i[u]=0),i[u]+=((o+u)%2?-1:1)*F0(n,7,o===0?1:0,1<<o,1<<u,r)/a*e[o];return function(f,c,v){var d=c*i[6]+v*i[7]+1;f[0]=(c*i[0]+v*i[1]+i[2])/d,f[1]=(c*i[3]+v*i[4]+i[5])/d}}}var rC="___zrEVENTSAVED",Xm=[];function Q3(t,e,n,r,a){return G0(Xm,e,r,a,!0)&&G0(t,n,Xm[0],Xm[1])}function G0(t,e,n,r,a){if(e.getBoundingClientRect&&Dt.domSupported&&!Y2(e)){var i=e[rC]||(e[rC]={}),o=K3(e,i),u=J3(o,i,a);if(u)return u(t,n,r),!0}return!1}function K3(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),u=o.style,f=i%2,c=(i>>1)%2;u.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[f]+":0",a[c]+":0",r[1-f]+":auto",a[1-c]+":auto",""].join("!important;"),t.appendChild(o),n.push(o)}return n}function J3(t,e,n){for(var r=n?"invTrans":"trans",a=e[r],i=e.srcCoords,o=[],u=[],f=!0,c=0;c<4;c++){var v=t[c].getBoundingClientRect(),d=2*c,g=v.left,p=v.top;o.push(g,p),f=f&&i&&g===i[d]&&p===i[d+1],u.push(t[c].offsetLeft,t[c].offsetTop)}return f&&a?a:(e.srcCoords=o,e[r]=n?nC(u,o):nC(o,u))}function Y2(t){return t.nodeName.toUpperCase()==="CANVAS"}var t5=/([&<>"'])/g,e5={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function xn(t){return t==null?"":(t+"").replace(t5,function(e,n){return e5[n]})}var n5=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Zm=[],r5=Dt.browser.firefox&&+Dt.browser.version.split(".")[0]<39;function U0(t,e,n,r){return n=n||{},r?aC(t,e,n):r5&&e.layerX!=null&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):e.offsetX!=null?(n.zrX=e.offsetX,n.zrY=e.offsetY):aC(t,e,n),n}function aC(t,e,n){if(Dt.domSupported&&t.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(Y2(t)){var i=t.getBoundingClientRect();n.zrX=r-i.left,n.zrY=a-i.top;return}else if(G0(Zm,t,r,a)){n.zrX=Zm[0],n.zrY=Zm[1];return}}n.zrX=n.zrY=0}function vS(t){return t||window.event}function br(t,e,n){if(e=vS(e),e.zrX!=null)return e;var r=e.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&U0(t,o,e,n)}else{U0(t,e,e,n);var i=a5(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var u=e.button;return e.which==null&&u!==void 0&&n5.test(e.type)&&(e.which=u&1?1:u&2?3:u&4?2:0),e}function a5(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(n==null||r==null)return e;var a=Math.abs(r!==0?r:n),i=r>0?-1:r<0?1:n>0?-1:1;return 3*a*i}function i5(t,e,n,r){t.addEventListener(e,n,r)}function o5(t,e,n,r){t.removeEventListener(e,n,r)}var Is=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function iC(t){return t.which===2||t.which===3}var l5=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,n,r){return this._doTrack(e,n,r),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,n,r){var a=e.touches;if(a){for(var i={points:[],touches:[],target:n,event:e},o=0,u=a.length;o<u;o++){var f=a[o],c=U0(r,f,{});i.points.push([c.zrX,c.zrY]),i.touches.push(f)}this._track.push(i)}},t.prototype._recognize=function(e){for(var n in $m)if($m.hasOwnProperty(n)){var r=$m[n](this._track,e);if(r)return r}},t})();function oC(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function s5(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var $m={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,a=(t[n-2]||{}).points||r;if(a&&a.length>1&&r&&r.length>1){var i=oC(r)/oC(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=s5(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function Xi(){return[1,0,0,1,0,0]}function ac(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function dS(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Zi(t,e,n){var r=e[0]*n[0]+e[2]*n[1],a=e[1]*n[0]+e[3]*n[1],i=e[0]*n[2]+e[2]*n[3],o=e[1]*n[2]+e[3]*n[3],u=e[0]*n[4]+e[2]*n[5]+e[4],f=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=a,t[2]=i,t[3]=o,t[4]=u,t[5]=f,t}function Zv(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Nd(t,e,n,r){r===void 0&&(r=[0,0]);var a=e[0],i=e[2],o=e[4],u=e[1],f=e[3],c=e[5],v=Math.sin(n),d=Math.cos(n);return t[0]=a*d+u*v,t[1]=-a*v+u*d,t[2]=i*d+f*v,t[3]=-i*v+d*f,t[4]=d*(o-r[0])+v*(c-r[1])+r[0],t[5]=d*(c-r[1])-v*(o-r[0])+r[1],t}function q2(t,e,n){var r=n[0],a=n[1];return t[0]=e[0]*r,t[1]=e[1]*a,t[2]=e[2]*r,t[3]=e[3]*a,t[4]=e[4]*r,t[5]=e[5]*a,t}function ic(t,e){var n=e[0],r=e[2],a=e[4],i=e[1],o=e[3],u=e[5],f=n*o-i*r;return f?(f=1/f,t[0]=o*f,t[1]=-i*f,t[2]=-r*f,t[3]=n*f,t[4]=(r*u-o*a)*f,t[5]=(i*a-n*u)*f,t):null}function u5(t){var e=Xi();return dS(e,t),e}const f5=Object.freeze(Object.defineProperty({__proto__:null,clone:u5,copy:dS,create:Xi,identity:ac,invert:ic,mul:Zi,rotate:Nd,scale:q2,translate:Zv},Symbol.toStringTag,{value:"Module"}));var Et=(function(){function t(e,n){this.x=e||0,this.y=n||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,n){return this.x=e,this.y=n,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,n){this.x+=e.x*n,this.y+=e.y*n},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var n=this.x-e.x,r=this.y-e.y;return Math.sqrt(n*n+r*r)},t.prototype.distanceSquare=function(e){var n=this.x-e.x,r=this.y-e.y;return n*n+r*r},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var n=this.x,r=this.y;return this.x=e[0]*n+e[2]*r+e[4],this.y=e[1]*n+e[3]*r+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,n,r){e.x=n,e.y=r},t.copy=function(e,n){e.x=n.x,e.y=n.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,n){return e.x*n.x+e.y*n.y},t.add=function(e,n,r){e.x=n.x+r.x,e.y=n.y+r.y},t.sub=function(e,n,r){e.x=n.x-r.x,e.y=n.y-r.y},t.scale=function(e,n,r){e.x=n.x*r,e.y=n.y*r},t.scaleAndAdd=function(e,n,r,a){e.x=n.x+r.x*a,e.y=n.y+r.y*a},t.lerp=function(e,n,r,a){var i=1-a;e.x=i*n.x+a*r.x,e.y=i*n.y+a*r.y},t})(),Ih=Math.min,Bh=Math.max,Co=new Et,To=new Et,Ao=new Et,Do=new Et,Gu=new Et,Uu=new Et,Wt=(function(){function t(e,n,r,a){r<0&&(e=e+r,r=-r),a<0&&(n=n+a,a=-a),this.x=e,this.y=n,this.width=r,this.height=a}return t.prototype.union=function(e){var n=Ih(e.x,this.x),r=Ih(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Bh(e.x+e.width,this.x+this.width)-n:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Bh(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=n,this.y=r},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var n=this,r=e.width/n.width,a=e.height/n.height,i=Xi();return Zv(i,i,[-n.x,-n.y]),q2(i,i,[r,a]),Zv(i,i,[e.x,e.y]),i},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,a=r.x,i=r.x+r.width,o=r.y,u=r.y+r.height,f=e.x,c=e.x+e.width,v=e.y,d=e.y+e.height,g=!(i<f||c<a||u<v||d<o);if(n){var p=1/0,y=0,_=Math.abs(i-f),S=Math.abs(c-a),x=Math.abs(u-v),M=Math.abs(d-o),C=Math.min(_,S),T=Math.min(x,M);i<f||c<a?C>y&&(y=C,_<S?Et.set(Uu,-_,0):Et.set(Uu,S,0)):C<p&&(p=C,_<S?Et.set(Gu,_,0):Et.set(Gu,-S,0)),u<v||d<o?T>y&&(y=T,x<M?Et.set(Uu,0,-x):Et.set(Uu,0,M)):C<p&&(p=C,x<M?Et.set(Gu,0,x):Et.set(Gu,0,-M))}return n&&Et.copy(n,g?Gu:Uu),g},t.prototype.contain=function(e,n){var r=this;return e>=r.x&&e<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,n){e.x=n.x,e.y=n.y,e.width=n.width,e.height=n.height},t.applyTransform=function(e,n,r){if(!r){e!==n&&t.copy(e,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],u=r[5];e.x=n.x*a+o,e.y=n.y*i+u,e.width=n.width*a,e.height=n.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}Co.x=Ao.x=n.x,Co.y=Do.y=n.y,To.x=Do.x=n.x+n.width,To.y=Ao.y=n.y+n.height,Co.transform(r),Do.transform(r),To.transform(r),Ao.transform(r),e.x=Ih(Co.x,To.x,Ao.x,Do.x),e.y=Ih(Co.y,To.y,Ao.y,Do.y);var f=Bh(Co.x,To.x,Ao.x,Do.x),c=Bh(Co.y,To.y,Ao.y,Do.y);e.width=f-e.x,e.height=c-e.y},t})(),X2="silent";function c5(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:h5}}function h5(){Is(this.event)}var v5=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.handler=null,n}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Wr),ju=(function(){function t(e,n){this.x=e,this.y=n}return t})(),d5=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Wm=new Wt(0,0,0,0),Z2=(function(t){ut(e,t);function e(n,r,a,i,o){var u=t.call(this)||this;return u._hovered=new ju(0,0),u.storage=n,u.painter=r,u.painterRoot=i,u._pointerSize=o,a=a||new v5,u.proxy=null,u.setHandlerProxy(a),u._draggingMgr=new $3(u),u}return e.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(k(d5,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},e.prototype.mousemove=function(n){var r=n.zrX,a=n.zrY,i=$2(this,r,a),o=this._hovered,u=o.target;u&&!u.__zr&&(o=this.findHover(o.x,o.y),u=o.target);var f=this._hovered=i?new ju(r,a):this.findHover(r,a),c=f.target,v=this.proxy;v.setCursor&&v.setCursor(c?c.cursor:"default"),u&&c!==u&&this.dispatchToElement(o,"mouseout",n),this.dispatchToElement(f,"mousemove",n),c&&c!==u&&this.dispatchToElement(f,"mouseover",n)},e.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},e.prototype.resize=function(){this._hovered=new ju(0,0)},e.prototype.dispatch=function(n,r){var a=this[n];a&&a.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},e.prototype.dispatchToElement=function(n,r,a){n=n||{};var i=n.target;if(!(i&&i.silent)){for(var o="on"+r,u=c5(r,n,a);i&&(i[o]&&(u.cancelBubble=!!i[o].call(i,u)),i.trigger(r,u),i=i.__hostTarget?i.__hostTarget:i.parent,!u.cancelBubble););u.cancelBubble||(this.trigger(r,u),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(f){typeof f[o]=="function"&&f[o].call(f,u),f.trigger&&f.trigger(r,u)}))}},e.prototype.findHover=function(n,r,a){var i=this.storage.getDisplayList(),o=new ju(n,r);if(lC(i,o,n,r,a),this._pointerSize&&!o.target){for(var u=[],f=this._pointerSize,c=f/2,v=new Wt(n-c,r-c,f,f),d=i.length-1;d>=0;d--){var g=i[d];g!==a&&!g.ignore&&!g.ignoreCoarsePointer&&(!g.parent||!g.parent.ignoreCoarsePointer)&&(Wm.copy(g.getBoundingRect()),g.transform&&Wm.applyTransform(g.transform),Wm.intersect(v)&&u.push(g))}if(u.length)for(var p=4,y=Math.PI/12,_=Math.PI*2,S=0;S<c;S+=p)for(var x=0;x<_;x+=y){var M=n+S*Math.cos(x),C=r+S*Math.sin(x);if(lC(u,o,M,C,a),o.target)return o}}return o},e.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new l5);var a=this._gestureMgr;r==="start"&&a.clear();var i=a.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&a.clear(),i){var o=i.type;n.gestureEvent=o;var u=new ju;u.target=i.target,this.dispatchToElement(u,o,i.event)}},e})(Wr);k(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Z2.prototype[t]=function(e){var n=e.zrX,r=e.zrY,a=$2(this,n,r),i,o;if((t!=="mouseup"||!a)&&(i=this.findHover(n,r),o=i.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||Xv(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});function p5(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(e,n))return!1}r.silent&&(a=!0);var u=r.__hostTarget;r=u||r.parent}return a?X2:!0}return!1}function lC(t,e,n,r,a){for(var i=t.length-1;i>=0;i--){var o=t[i],u=void 0;if(o!==a&&!o.ignore&&(u=p5(o,n,r))&&(!e.topTarget&&(e.topTarget=o),u!==X2)){e.target=o;break}}}function $2(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}var W2=32,Yu=7;function g5(t){for(var e=0;t>=W2;)e|=t&1,t>>=1;return t+e}function sC(t,e,n,r){var a=e+1;if(a===n)return 1;if(r(t[a++],t[e])<0){for(;a<n&&r(t[a],t[a-1])<0;)a++;m5(t,e,a)}else for(;a<n&&r(t[a],t[a-1])>=0;)a++;return a-e}function m5(t,e,n){for(n--;e<n;){var r=t[e];t[e++]=t[n],t[n--]=r}}function uC(t,e,n,r,a){for(r===e&&r++;r<n;r++){for(var i=t[r],o=e,u=r,f;o<u;)f=o+u>>>1,a(i,t[f])<0?u=f:o=f+1;var c=r-o;switch(c){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;c>0;)t[o+c]=t[o+c-1],c--}t[o]=i}}function Qm(t,e,n,r,a,i){var o=0,u=0,f=1;if(i(t,e[n+a])>0){for(u=r-a;f<u&&i(t,e[n+a+f])>0;)o=f,f=(f<<1)+1,f<=0&&(f=u);f>u&&(f=u),o+=a,f+=a}else{for(u=a+1;f<u&&i(t,e[n+a-f])<=0;)o=f,f=(f<<1)+1,f<=0&&(f=u);f>u&&(f=u);var c=o;o=a-f,f=a-c}for(o++;o<f;){var v=o+(f-o>>>1);i(t,e[n+v])>0?o=v+1:f=v}return f}function Km(t,e,n,r,a,i){var o=0,u=0,f=1;if(i(t,e[n+a])<0){for(u=a+1;f<u&&i(t,e[n+a-f])<0;)o=f,f=(f<<1)+1,f<=0&&(f=u);f>u&&(f=u);var c=o;o=a-f,f=a-c}else{for(u=r-a;f<u&&i(t,e[n+a+f])>=0;)o=f,f=(f<<1)+1,f<=0&&(f=u);f>u&&(f=u),o+=a,f+=a}for(o++;o<f;){var v=o+(f-o>>>1);i(t,e[n+v])<0?f=v:o=v+1}return f}function y5(t,e){var n=Yu,r,a,i=0,o=[];r=[],a=[];function u(p,y){r[i]=p,a[i]=y,i+=1}function f(){for(;i>1;){var p=i-2;if(p>=1&&a[p-1]<=a[p]+a[p+1]||p>=2&&a[p-2]<=a[p]+a[p-1])a[p-1]<a[p+1]&&p--;else if(a[p]>a[p+1])break;v(p)}}function c(){for(;i>1;){var p=i-2;p>0&&a[p-1]<a[p+1]&&p--,v(p)}}function v(p){var y=r[p],_=a[p],S=r[p+1],x=a[p+1];a[p]=_+x,p===i-3&&(r[p+1]=r[p+2],a[p+1]=a[p+2]),i--;var M=Km(t[S],t,y,_,0,e);y+=M,_-=M,_!==0&&(x=Qm(t[y+_-1],t,S,x,x-1,e),x!==0&&(_<=x?d(y,_,S,x):g(y,_,S,x)))}function d(p,y,_,S){var x=0;for(x=0;x<y;x++)o[x]=t[p+x];var M=0,C=_,T=p;if(t[T++]=t[C++],--S===0){for(x=0;x<y;x++)t[T+x]=o[M+x];return}if(y===1){for(x=0;x<S;x++)t[T+x]=t[C+x];t[T+S]=o[M];return}for(var D=n,R,E,z;;){R=0,E=0,z=!1;do if(e(t[C],o[M])<0){if(t[T++]=t[C++],E++,R=0,--S===0){z=!0;break}}else if(t[T++]=o[M++],R++,E=0,--y===1){z=!0;break}while((R|E)<D);if(z)break;do{if(R=Km(t[C],o,M,y,0,e),R!==0){for(x=0;x<R;x++)t[T+x]=o[M+x];if(T+=R,M+=R,y-=R,y<=1){z=!0;break}}if(t[T++]=t[C++],--S===0){z=!0;break}if(E=Qm(o[M],t,C,S,0,e),E!==0){for(x=0;x<E;x++)t[T+x]=t[C+x];if(T+=E,C+=E,S-=E,S===0){z=!0;break}}if(t[T++]=o[M++],--y===1){z=!0;break}D--}while(R>=Yu||E>=Yu);if(z)break;D<0&&(D=0),D+=2}if(n=D,n<1&&(n=1),y===1){for(x=0;x<S;x++)t[T+x]=t[C+x];t[T+S]=o[M]}else{if(y===0)throw new Error;for(x=0;x<y;x++)t[T+x]=o[M+x]}}function g(p,y,_,S){var x=0;for(x=0;x<S;x++)o[x]=t[_+x];var M=p+y-1,C=S-1,T=_+S-1,D=0,R=0;if(t[T--]=t[M--],--y===0){for(D=T-(S-1),x=0;x<S;x++)t[D+x]=o[x];return}if(S===1){for(T-=y,M-=y,R=T+1,D=M+1,x=y-1;x>=0;x--)t[R+x]=t[D+x];t[T]=o[C];return}for(var E=n;;){var z=0,I=0,N=!1;do if(e(o[C],t[M])<0){if(t[T--]=t[M--],z++,I=0,--y===0){N=!0;break}}else if(t[T--]=o[C--],I++,z=0,--S===1){N=!0;break}while((z|I)<E);if(N)break;do{if(z=y-Km(o[C],t,p,y,y-1,e),z!==0){for(T-=z,M-=z,y-=z,R=T+1,D=M+1,x=z-1;x>=0;x--)t[R+x]=t[D+x];if(y===0){N=!0;break}}if(t[T--]=o[C--],--S===1){N=!0;break}if(I=S-Qm(t[M],o,0,S,S-1,e),I!==0){for(T-=I,C-=I,S-=I,R=T+1,D=C+1,x=0;x<I;x++)t[R+x]=o[D+x];if(S<=1){N=!0;break}}if(t[T--]=t[M--],--y===0){N=!0;break}E--}while(z>=Yu||I>=Yu);if(N)break;E<0&&(E=0),E+=2}if(n=E,n<1&&(n=1),S===1){for(T-=y,M-=y,R=T+1,D=M+1,x=y-1;x>=0;x--)t[R+x]=t[D+x];t[T]=o[C]}else{if(S===0)throw new Error;for(D=T-(S-1),x=0;x<S;x++)t[D+x]=o[x]}}return{mergeRuns:f,forceMergeRuns:c,pushRun:u}}function Dv(t,e,n,r){n||(n=0),r||(r=t.length);var a=r-n;if(!(a<2)){var i=0;if(a<W2){i=sC(t,n,r,e),uC(t,n,r,n+i,e);return}var o=y5(t,e),u=g5(a);do{if(i=sC(t,n,r,e),i<u){var f=a;f>u&&(f=u),uC(t,n,n+f,n+i,e),i=f}o.pushRun(n,i),o.mergeRuns(),a-=i,n+=i}while(a!==0);o.forceMergeRuns()}}var nr=1,vf=2,Ss=4,fC=!1;function Jm(){fC||(fC=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function cC(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var _5=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=cC}return t.prototype.traverse=function(e,n){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(e,n)},t.prototype.getDisplayList=function(e,n){n=n||!1;var r=this._displayList;return(e||!r.length)&&this.updateDisplayList(n),r},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var n=this._roots,r=this._displayList,a=0,i=n.length;a<i;a++)this._updateAndAddDisplayable(n[a],null,e);r.length=this._displayListLen,Dv(r,cC)},t.prototype._updateAndAddDisplayable=function(e,n,r){if(!(e.ignore&&!r)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath();if(e.ignoreClip)n=null;else if(a){n?n=n.slice():n=[];for(var i=a,o=e;i;)i.parent=o,i.updateTransform(),n.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var u=e.childrenRef(),f=0;f<u.length;f++){var c=u[f];e.__dirty&&(c.__dirty|=nr),this._updateAndAddDisplayable(c,n,r)}e.__dirty=0}else{var v=e;n&&n.length?v.__clipPaths=n:v.__clipPaths&&v.__clipPaths.length>0&&(v.__clipPaths=[]),isNaN(v.z)&&(Jm(),v.z=0),isNaN(v.z2)&&(Jm(),v.z2=0),isNaN(v.zlevel)&&(Jm(),v.zlevel=0),this._displayList[this._displayListLen++]=v}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,n,r);var g=e.getTextGuideLine();g&&this._updateAndAddDisplayable(g,n,r);var p=e.getTextContent();p&&this._updateAndAddDisplayable(p,n,r)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var n=0,r=e.length;n<r;n++)this.delRoot(e[n]);return}var a=Yt(this._roots,e);a>=0&&this._roots.splice(a,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),$v;$v=Dt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var bf={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)))},elasticOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)):n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-bf.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?bf.bounceIn(t*2)*.5:bf.bounceOut(t*2-1)*.5+.5}},kh=Math.pow,$i=Math.sqrt,Wv=1e-8,Q2=1e-4,hC=$i(3),Ph=1/3,la=hl(),Cr=hl(),Rs=hl();function Vi(t){return t>-Wv&&t<Wv}function K2(t){return t>Wv||t<-Wv}function tn(t,e,n,r,a){var i=1-a;return i*i*(i*t+3*a*e)+a*a*(a*r+3*i*n)}function vC(t,e,n,r,a){var i=1-a;return 3*(((e-t)*i+2*(n-e)*a)*i+(r-n)*a*a)}function Qv(t,e,n,r,a,i){var o=r+3*(e-n)-t,u=3*(n-e*2+t),f=3*(e-t),c=t-a,v=u*u-3*o*f,d=u*f-9*o*c,g=f*f-3*u*c,p=0;if(Vi(v)&&Vi(d))if(Vi(u))i[0]=0;else{var y=-f/u;y>=0&&y<=1&&(i[p++]=y)}else{var _=d*d-4*v*g;if(Vi(_)){var S=d/v,y=-u/o+S,x=-S/2;y>=0&&y<=1&&(i[p++]=y),x>=0&&x<=1&&(i[p++]=x)}else if(_>0){var M=$i(_),C=v*u+1.5*o*(-d+M),T=v*u+1.5*o*(-d-M);C<0?C=-kh(-C,Ph):C=kh(C,Ph),T<0?T=-kh(-T,Ph):T=kh(T,Ph);var y=(-u-(C+T))/(3*o);y>=0&&y<=1&&(i[p++]=y)}else{var D=(2*v*u-3*o*d)/(2*$i(v*v*v)),R=Math.acos(D)/3,E=$i(v),z=Math.cos(R),y=(-u-2*E*z)/(3*o),x=(-u+E*(z+hC*Math.sin(R)))/(3*o),I=(-u+E*(z-hC*Math.sin(R)))/(3*o);y>=0&&y<=1&&(i[p++]=y),x>=0&&x<=1&&(i[p++]=x),I>=0&&I<=1&&(i[p++]=I)}}return p}function J2(t,e,n,r,a){var i=6*n-12*e+6*t,o=9*e+3*r-3*t-9*n,u=3*e-3*t,f=0;if(Vi(o)){if(K2(i)){var c=-u/i;c>=0&&c<=1&&(a[f++]=c)}}else{var v=i*i-4*o*u;if(Vi(v))a[0]=-i/(2*o);else if(v>0){var d=$i(v),c=(-i+d)/(2*o),g=(-i-d)/(2*o);c>=0&&c<=1&&(a[f++]=c),g>=0&&g<=1&&(a[f++]=g)}}return f}function Kv(t,e,n,r,a,i){var o=(e-t)*a+t,u=(n-e)*a+e,f=(r-n)*a+n,c=(u-o)*a+o,v=(f-u)*a+u,d=(v-c)*a+c;i[0]=t,i[1]=o,i[2]=c,i[3]=d,i[4]=d,i[5]=v,i[6]=f,i[7]=r}function S5(t,e,n,r,a,i,o,u,f,c,v){var d,g=.005,p=1/0,y,_,S,x;la[0]=f,la[1]=c;for(var M=0;M<1;M+=.05)Cr[0]=tn(t,n,a,o,M),Cr[1]=tn(e,r,i,u,M),S=Ko(la,Cr),S<p&&(d=M,p=S);p=1/0;for(var C=0;C<32&&!(g<Q2);C++)y=d-g,_=d+g,Cr[0]=tn(t,n,a,o,y),Cr[1]=tn(e,r,i,u,y),S=Ko(Cr,la),y>=0&&S<p?(d=y,p=S):(Rs[0]=tn(t,n,a,o,_),Rs[1]=tn(e,r,i,u,_),x=Ko(Rs,la),_<=1&&x<p?(d=_,p=x):g*=.5);return $i(p)}function b5(t,e,n,r,a,i,o,u,f){for(var c=t,v=e,d=0,g=1/f,p=1;p<=f;p++){var y=p*g,_=tn(t,n,a,o,y),S=tn(e,r,i,u,y),x=_-c,M=S-v;d+=Math.sqrt(x*x+M*M),c=_,v=S}return d}function Vn(t,e,n,r){var a=1-r;return a*(a*t+2*r*e)+r*r*n}function dC(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function x5(t,e,n,r,a){var i=t-2*e+n,o=2*(e-t),u=t-r,f=0;if(Vi(i)){if(K2(o)){var c=-u/o;c>=0&&c<=1&&(a[f++]=c)}}else{var v=o*o-4*i*u;if(Vi(v)){var c=-o/(2*i);c>=0&&c<=1&&(a[f++]=c)}else if(v>0){var d=$i(v),c=(-o+d)/(2*i),g=(-o-d)/(2*i);c>=0&&c<=1&&(a[f++]=c),g>=0&&g<=1&&(a[f++]=g)}}return f}function tR(t,e,n){var r=t+n-2*e;return r===0?.5:(t-e)/r}function Jv(t,e,n,r,a){var i=(e-t)*r+t,o=(n-e)*r+e,u=(o-i)*r+i;a[0]=t,a[1]=i,a[2]=u,a[3]=u,a[4]=o,a[5]=n}function w5(t,e,n,r,a,i,o,u,f){var c,v=.005,d=1/0;la[0]=o,la[1]=u;for(var g=0;g<1;g+=.05){Cr[0]=Vn(t,n,a,g),Cr[1]=Vn(e,r,i,g);var p=Ko(la,Cr);p<d&&(c=g,d=p)}d=1/0;for(var y=0;y<32&&!(v<Q2);y++){var _=c-v,S=c+v;Cr[0]=Vn(t,n,a,_),Cr[1]=Vn(e,r,i,_);var p=Ko(Cr,la);if(_>=0&&p<d)c=_,d=p;else{Rs[0]=Vn(t,n,a,S),Rs[1]=Vn(e,r,i,S);var x=Ko(Rs,la);S<=1&&x<d?(c=S,d=x):v*=.5}}return $i(d)}function M5(t,e,n,r,a,i,o){for(var u=t,f=e,c=0,v=1/o,d=1;d<=o;d++){var g=d*v,p=Vn(t,n,a,g),y=Vn(e,r,i,g),_=p-u,S=y-f;c+=Math.sqrt(_*_+S*S),u=p,f=y}return c}var C5=/cubic-bezier\(([0-9,\.e ]+)\)/;function eR(t){var e=t&&C5.exec(t);if(e){var n=e[1].split(","),r=+qr(n[0]),a=+qr(n[1]),i=+qr(n[2]),o=+qr(n[3]);if(isNaN(r+a+i+o))return;var u=[];return function(f){return f<=0?0:f>=1?1:Qv(0,r,i,1,f,u)&&tn(0,a,o,1,u[0])}}}var T5=(function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||hn,this.ondestroy=e.ondestroy||hn,this.onrestart=e.onrestart||hn,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,n){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,a=e-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,u=o?o(i):i;if(this.onframe(u),i===1)if(this.loop){var f=a%r;this._startTime=e-f,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Rt(e)?e:bf[e]||eR(e)},t})(),nR=(function(){function t(e){this.value=e}return t})(),A5=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var n=new nR(e);return this.insertEntry(n),n},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var n=e.prev,r=e.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})(),oc=(function(){function t(e){this._list=new A5,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,n){var r=this._list,a=this._map,i=null;if(a[e]==null){var o=r.len(),u=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var f=r.head;r.remove(f),delete a[f.key],i=f.value,this._lastRemovedEntry=f}u?u.value=n:u=new nR(n),u.key=e,r.insertEntry(u),a[e]=u}return i},t.prototype.get=function(e){var n=this._map[e],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),pC={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 Xr(t){return t=Math.round(t),t<0?0:t>255?255:t}function D5(t){return t=Math.round(t),t<0?0:t>360?360:t}function kf(t){return t<0?0:t>1?1:t}function ty(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Xr(parseFloat(e)/100*255):Xr(parseInt(e,10))}function Jo(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?kf(parseFloat(e)/100):kf(parseFloat(e))}function ey(t,e,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?t+(e-t)*n*6:n*2<1?e:n*3<2?t+(e-t)*(2/3-n)*6:t}function Fi(t,e,n){return t+(e-t)*n}function Sr(t,e,n,r,a){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,t}function j0(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var rR=new oc(20),Hh=null;function as(t,e){Hh&&j0(Hh,e),Hh=rR.put(t,Hh||e.slice())}function rr(t,e){if(t){e=e||[];var n=rR.get(t);if(n)return j0(e,n);t=t+"";var r=t.replace(/ /g,"").toLowerCase();if(r in pC)return j0(e,pC[r]),as(t,e),e;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){Sr(e,0,0,0,1);return}return Sr(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),as(t,e),e}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Sr(e,0,0,0,1);return}return Sr(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),as(t,e),e}return}var o=r.indexOf("("),u=r.indexOf(")");if(o!==-1&&u+1===a){var f=r.substr(0,o),c=r.substr(o+1,u-(o+1)).split(","),v=1;switch(f){case"rgba":if(c.length!==4)return c.length===3?Sr(e,+c[0],+c[1],+c[2],1):Sr(e,0,0,0,1);v=Jo(c.pop());case"rgb":if(c.length>=3)return Sr(e,ty(c[0]),ty(c[1]),ty(c[2]),c.length===3?v:Jo(c[3])),as(t,e),e;Sr(e,0,0,0,1);return;case"hsla":if(c.length!==4){Sr(e,0,0,0,1);return}return c[3]=Jo(c[3]),Y0(c,e),as(t,e),e;case"hsl":if(c.length!==3){Sr(e,0,0,0,1);return}return Y0(c,e),as(t,e),e;default:return}}Sr(e,0,0,0,1)}}function Y0(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=Jo(t[1]),a=Jo(t[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return e=e||[],Sr(e,Xr(ey(o,i,n+1/3)*255),Xr(ey(o,i,n)*255),Xr(ey(o,i,n-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function R5(t){if(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255,a=Math.min(e,n,r),i=Math.max(e,n,r),o=i-a,u=(i+a)/2,f,c;if(o===0)f=0,c=0;else{u<.5?c=o/(i+a):c=o/(2-i-a);var v=((i-e)/6+o/2)/o,d=((i-n)/6+o/2)/o,g=((i-r)/6+o/2)/o;e===i?f=g-d:n===i?f=1/3+v-g:r===i&&(f=2/3+d-v),f<0&&(f+=1),f>1&&(f-=1)}var p=[f*360,c,u];return t[3]!=null&&p.push(t[3]),p}}function q0(t,e){var n=rr(t);if(n){for(var r=0;r<3;r++)e<0?n[r]=n[r]*(1-e)|0:n[r]=(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return eo(n,n.length===4?"rgba":"rgb")}}function E5(t){var e=rr(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function aR(t,e,n){if(!(!(e&&e.length)||!(t>=0&&t<=1))){n=n||[];var r=t*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=e[a],u=e[i],f=r-a;return n[0]=Xr(Fi(o[0],u[0],f)),n[1]=Xr(Fi(o[1],u[1],f)),n[2]=Xr(Fi(o[2],u[2],f)),n[3]=kf(Fi(o[3],u[3],f)),n}}var L5=aR;function pS(t,e,n){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var r=t*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=rr(e[a]),u=rr(e[i]),f=r-a,c=eo([Xr(Fi(o[0],u[0],f)),Xr(Fi(o[1],u[1],f)),Xr(Fi(o[2],u[2],f)),kf(Fi(o[3],u[3],f))],"rgba");return n?{color:c,leftIndex:a,rightIndex:i,value:r}:c}}var O5=pS;function z5(t,e,n,r){var a=rr(t);if(t)return a=R5(a),e!=null&&(a[0]=D5(e)),n!=null&&(a[1]=Jo(n)),r!=null&&(a[2]=Jo(r)),eo(Y0(a),"rgba")}function N5(t,e){var n=rr(t);if(n&&e!=null)return n[3]=kf(e),eo(n,"rgba")}function eo(t,e){if(!(!t||!t.length)){var n=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(n+=","+t[3]),e+"("+n+")"}}function Pf(t,e){var n=rr(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function I5(){return eo([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var gC=new oc(100);function X0(t){if(pt(t)){var e=gC.get(t);return e||(e=q0(t,-.1),gC.put(t,e)),e}else if(nc(t)){var n=st({},t);return n.colorStops=mt(t.colorStops,function(r){return{offset:r.offset,color:q0(r.color,-.1)}}),n}return t}const B5=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:aR,fastMapToColor:L5,lerp:pS,lift:q0,liftColor:X0,lum:Pf,mapToColor:O5,modifyAlpha:N5,modifyHSL:z5,parse:rr,random:I5,stringify:eo,toHex:E5},Symbol.toStringTag,{value:"Module"}));function k5(t){return t.type==="linear"}function P5(t){return t.type==="radial"}(function(){return Dt.hasGlobalWindow&&Rt(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}})();var Z0=Array.prototype.slice;function Ya(t,e,n){return(e-t)*n+t}function ny(t,e,n,r){for(var a=e.length,i=0;i<a;i++)t[i]=Ya(e[i],n[i],r);return t}function H5(t,e,n,r){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var u=0;u<i;u++)t[o][u]=Ya(e[o][u],n[o][u],r)}return t}function Vh(t,e,n,r){for(var a=e.length,i=0;i<a;i++)t[i]=e[i]+n[i]*r;return t}function mC(t,e,n,r){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var u=0;u<i;u++)t[o][u]=e[o][u]+n[o][u]*r}return t}function V5(t,e){for(var n=t.length,r=e.length,a=n>r?e:t,i=Math.min(n,r),o=a[i-1]||{color:[0,0,0,0],offset:0},u=i;u<Math.max(n,r);u++)a.push({offset:o.offset,color:o.color.slice()})}function F5(t,e,n){var r=t,a=e;if(!(!r.push||!a.push)){var i=r.length,o=a.length;if(i!==o){var u=i>o;if(u)r.length=o;else for(var f=i;f<o;f++)r.push(n===1?a[f]:Z0.call(a[f]))}for(var c=r[0]&&r[0].length,f=0;f<r.length;f++)if(n===1)isNaN(r[f])&&(r[f]=a[f]);else for(var v=0;v<c;v++)isNaN(r[f][v])&&(r[f][v]=a[f][v])}}function xf(t){if(vn(t)){var e=t.length;if(vn(t[0])){for(var n=[],r=0;r<e;r++)n.push(Z0.call(t[r]));return n}return Z0.call(t)}return t}function Rv(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function G5(t){return vn(t&&t[0])?2:1}var Fh=0,Ev=1,iR=2,df=3,$0=4,W0=5,yC=6;function _C(t){return t===$0||t===W0}function Gh(t){return t===Ev||t===iR}var qu=[0,0,0,0],U5=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,n,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,u=yC,f=n;if(vn(n)){var c=G5(n);u=c,(c===1&&!de(n[0])||c===2&&!de(n[0][0]))&&(o=!0)}else if(de(n)&&!Bf(n))u=Fh;else if(pt(n))if(!isNaN(+n))u=Fh;else{var v=rr(n);v&&(f=v,u=df)}else if(nc(n)){var d=st({},f);d.colorStops=mt(n.colorStops,function(p){return{offset:p.offset,color:rr(p.color)}}),k5(n)?u=$0:P5(n)&&(u=W0),f=d}i===0?this.valType=u:(u!==this.valType||u===yC)&&(o=!0),this.discrete=this.discrete||o;var g={time:e,value:f,rawValue:n,percent:0};return r&&(g.easing=r,g.easingFunc=Rt(r)?r:bf[r]||eR(r)),a.push(g),g},t.prototype.prepare=function(e,n){var r=this.keyframes;this._needsSort&&r.sort(function(_,S){return _.time-S.time});for(var a=this.valType,i=r.length,o=r[i-1],u=this.discrete,f=Gh(a),c=_C(a),v=0;v<i;v++){var d=r[v],g=d.value,p=o.value;d.percent=d.time/e,u||(f&&v!==i-1?F5(g,p,a):c&&V5(g.colorStops,p.colorStops))}if(!u&&a!==W0&&n&&this.needsAnimate()&&n.needsAnimate()&&a===n.valType&&!n._finished){this._additiveTrack=n;for(var y=r[0].value,v=0;v<i;v++)a===Fh?r[v].additiveValue=r[v].value-y:a===df?r[v].additiveValue=Vh([],r[v].value,y,-1):Gh(a)&&(r[v].additiveValue=a===Ev?Vh([],r[v].value,y,-1):mC([],r[v].value,y,-1))}},t.prototype.step=function(e,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,a=r?"additiveValue":"value",i=this.valType,o=this.keyframes,u=o.length,f=this.propName,c=i===df,v,d=this._lastFr,g=Math.min,p,y;if(u===1)p=y=o[0];else{if(n<0)v=0;else if(n<this._lastFrP){var _=g(d+1,u-1);for(v=_;v>=0&&!(o[v].percent<=n);v--);v=g(v,u-2)}else{for(v=d;v<u&&!(o[v].percent>n);v++);v=g(v-1,u-2)}y=o[v+1],p=o[v]}if(p&&y){this._lastFr=v,this._lastFrP=n;var S=y.percent-p.percent,x=S===0?1:g((n-p.percent)/S,1);y.easingFunc&&(x=y.easingFunc(x));var M=r?this._additiveValue:c?qu:e[f];if((Gh(i)||c)&&!M&&(M=this._additiveValue=[]),this.discrete)e[f]=x<1?p.rawValue:y.rawValue;else if(Gh(i))i===Ev?ny(M,p[a],y[a],x):H5(M,p[a],y[a],x);else if(_C(i)){var C=p[a],T=y[a],D=i===$0;e[f]={type:D?"linear":"radial",x:Ya(C.x,T.x,x),y:Ya(C.y,T.y,x),colorStops:mt(C.colorStops,function(E,z){var I=T.colorStops[z];return{offset:Ya(E.offset,I.offset,x),color:Rv(ny([],E.color,I.color,x))}}),global:T.global},D?(e[f].x2=Ya(C.x2,T.x2,x),e[f].y2=Ya(C.y2,T.y2,x)):e[f].r=Ya(C.r,T.r,x)}else if(c)ny(M,p[a],y[a],x),r||(e[f]=Rv(M));else{var R=Ya(p[a],y[a],x);r?this._additiveValue=R:e[f]=R}r&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var n=this.valType,r=this.propName,a=this._additiveValue;n===Fh?e[r]=e[r]+a:n===df?(rr(e[r],qu),Vh(qu,qu,a,1),e[r]=Rv(qu)):n===Ev?Vh(e[r],e[r],a,1):n===iR&&mC(e[r],e[r],a,1)},t})(),gS=(function(){function t(e,n,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=n,n&&a){Od("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,n,r){return this.whenWithKeys(e,n,ae(n),r)},t.prototype.whenWithKeys=function(e,n,r,a){for(var i=this._tracks,o=0;o<r.length;o++){var u=r[o],f=i[u];if(!f){f=i[u]=new U5(u);var c=void 0,v=this._getAdditiveTrack(u);if(v){var d=v.keyframes,g=d[d.length-1];c=g&&g.value,v.valType===df&&c&&(c=Rv(c))}else c=this._target[u];if(c==null)continue;e>0&&f.addKeyframe(0,xf(c),a),this._trackKeys.push(u)}f.addKeyframe(e,xf(n[u]),a)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var n=e.length,r=0;r<n;r++)e[r].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,n=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,n)for(var r=0;r<n.length;r++)n[r].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,n=this._trackKeys,r=0;r<n.length;r++)e[n[r]].setFinished()},t.prototype._getAdditiveTrack=function(e){var n,r=this._additiveAnimators;if(r)for(var a=0;a<r.length;a++){var i=r[a].getTrack(e);i&&(n=i)}return n},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var n=this,r=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],u=this._tracks[o],f=this._getAdditiveTrack(o),c=u.keyframes,v=c.length;if(u.prepare(a,f),u.needsAnimate())if(!this._allowDiscrete&&u.discrete){var d=c[v-1];d&&(n._target[u.propName]=d.rawValue),u.setFinished()}else r.push(u)}if(r.length||this._force){var g=new T5({life:a,loop:this._loop,delay:this._delay||0,onframe:function(p){n._started=2;var y=n._additiveAnimators;if(y){for(var _=!1,S=0;S<y.length;S++)if(y[S]._clip){_=!0;break}_||(n._additiveAnimators=null)}for(var S=0;S<r.length;S++)r[S].step(n._target,p);var x=n._onframeCbs;if(x)for(var S=0;S<x.length;S++)x[S](n._target,p)},ondestroy:function(){n._doneCallback()}});this._clip=g,this.animation&&this.animation.addClip(g),e&&g.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var n=this._clip;e&&n.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return mt(this._trackKeys,function(n){return e._tracks[n]})},t.prototype.stopTracks=function(e,n){if(!e.length||!this._clip)return!0;for(var r=this._tracks,a=this._trackKeys,i=0;i<e.length;i++){var o=r[e[i]];o&&!o.isFinished()&&(n?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var u=!0,i=0;i<a.length;i++)if(!r[a[i]].isFinished()){u=!1;break}return u&&this._abortedCallback(),u},t.prototype.saveTo=function(e,n,r){if(e){n=n||this._trackKeys;for(var a=0;a<n.length;a++){var i=n[a],o=this._tracks[i];if(!(!o||o.isFinished())){var u=o.keyframes,f=u[r?0:u.length-1];f&&(e[i]=xf(f.rawValue))}}}},t.prototype.__changeFinalValue=function(e,n){n=n||ae(e);for(var r=0;r<n.length;r++){var a=n[r],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var u=o.pop();i.addKeyframe(u.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t})();function ws(){return new Date().getTime()}var j5=(function(t){ut(e,t);function e(n){var r=t.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return e.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},e.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(n){if(n.animation){var r=n.prev,a=n.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},e.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},e.prototype.update=function(n){for(var r=ws()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,u=i.step(r,a);u&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,n||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&($v(r),!n._paused&&n.update())}$v(r)},e.prototype.start=function(){this._running||(this._time=ws(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ws(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ws()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(n,r){r=r||{},this.start();var a=new gS(n,r.loop);return this.addAnimator(a),a},e})(Wr),Y5=300,ry=Dt.domSupported,ay=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=mt(t,function(a){var i=a.replace("mouse","pointer");return n.hasOwnProperty(i)?i:a});return{mouse:t,touch:e,pointer:r}})(),SC={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},bC=!1;function Q0(t){var e=t.pointerType;return e==="pen"||e==="touch"}function q5(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function iy(t){t&&(t.zrByTouch=!0)}function X5(t,e){return br(t.dom,new Z5(t,e),!0)}function oR(t,e){for(var n=e,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var Z5=(function(){function t(e,n){this.stopPropagation=hn,this.stopImmediatePropagation=hn,this.preventDefault=hn,this.type=n.type,this.target=this.currentTarget=e.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return t})(),jr={mousedown:function(t){t=br(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=br(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=br(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=br(this.dom,t);var e=t.toElement||t.relatedTarget;oR(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){bC=!0,t=br(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){bC||(t=br(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=br(this.dom,t),iy(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),jr.mousemove.call(this,t),jr.mousedown.call(this,t)},touchmove:function(t){t=br(this.dom,t),iy(t),this.handler.processGesture(t,"change"),jr.mousemove.call(this,t)},touchend:function(t){t=br(this.dom,t),iy(t),this.handler.processGesture(t,"end"),jr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<Y5&&jr.click.call(this,t)},pointerdown:function(t){jr.mousedown.call(this,t)},pointermove:function(t){Q0(t)||jr.mousemove.call(this,t)},pointerup:function(t){jr.mouseup.call(this,t)},pointerout:function(t){Q0(t)||jr.mouseout.call(this,t)}};k(["click","dblclick","contextmenu"],function(t){jr[t]=function(e){e=br(this.dom,e),this.trigger(t,e)}});var K0={pointermove:function(t){Q0(t)||K0.mousemove.call(this,t)},pointerup:function(t){K0.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function $5(t,e){var n=e.domHandlers;Dt.pointerEventsSupported?k(ay.pointer,function(r){Lv(e,r,function(a){n[r].call(t,a)})}):(Dt.touchEventsSupported&&k(ay.touch,function(r){Lv(e,r,function(a){n[r].call(t,a),q5(e)})}),k(ay.mouse,function(r){Lv(e,r,function(a){a=vS(a),e.touching||n[r].call(t,a)})}))}function W5(t,e){Dt.pointerEventsSupported?k(SC.pointer,n):Dt.touchEventsSupported||k(SC.mouse,n);function n(r){function a(i){i=vS(i),oR(t,i.target)||(i=X5(t,i),e.domHandlers[r].call(t,i))}Lv(e,r,a,{capture:!0})}}function Lv(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,i5(t.domTarget,e,n,r)}function oy(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&o5(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var xC=(function(){function t(e,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=n}return t})(),Q5=(function(t){ut(e,t);function e(n,r){var a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=n,a.painterRoot=r,a._localHandlerScope=new xC(n,jr),ry&&(a._globalHandlerScope=new xC(document,K0)),$5(a,a._localHandlerScope),a}return e.prototype.dispose=function(){oy(this._localHandlerScope),ry&&oy(this._globalHandlerScope)},e.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},e.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,ry&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?W5(this,r):oy(r)}},e})(Wr),lR=1;Dt.hasGlobalWindow&&(lR=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var td=lR,J0=.4,t_="#333",e_="#ccc",K5="#eee",wC=ac,MC=5e-5;function Ro(t){return t>MC||t<-MC}var Eo=[],is=[],ly=Xi(),sy=Math.abs,mS=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Ro(this.rotation)||Ro(this.x)||Ro(this.y)||Ro(this.scaleX-1)||Ro(this.scaleY-1)||Ro(this.skewX)||Ro(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||e)){r&&(wC(r),this.invTransform=null);return}r=r||Xi(),n?this.getLocalTransform(r):wC(r),e&&(n?Zi(r,e,r):dS(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},t.prototype._resolveGlobalScaleRatio=function(e){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(Eo);var r=Eo[0]<0?-1:1,a=Eo[1]<0?-1:1,i=((Eo[0]-r)*n+r)/Eo[0]||0,o=((Eo[1]-a)*n+a)/Eo[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Xi(),ic(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,n=[];e;)n.push(e),e=e.parent;for(;e=n.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var n=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(i),n=Math.sqrt(n),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,n=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Xi(),Zi(is,e.invTransform,n),n=is);var r=this.originX,a=this.originY;(r||a)&&(ly[4]=r,ly[5]=a,Zi(is,n,ly),is[4]-=r,is[5]-=a,n=is),this.setLocalTransform(n)}},t.prototype.getGlobalScale=function(e){var n=this.transform;return e=e||[],n?(e[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),e[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(e[0]=-e[0]),n[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,n){var r=[e,n],a=this.invTransform;return a&&Mn(r,r,a),r},t.prototype.transformCoordToGlobal=function(e,n){var r=[e,n],a=this.transform;return a&&Mn(r,r,a),r},t.prototype.getLineScale=function(){var e=this.transform;return e&&sy(e[0]-1)>1e-10&&sy(e[3]-1)>1e-10?Math.sqrt(sy(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){J5(this,e)},t.getLocalTransform=function(e,n){n=n||[];var r=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,u=e.anchorX,f=e.anchorY,c=e.rotation||0,v=e.x,d=e.y,g=e.skewX?Math.tan(e.skewX):0,p=e.skewY?Math.tan(-e.skewY):0;if(r||a||u||f){var y=r+u,_=a+f;n[4]=-y*i-g*_*o,n[5]=-_*o-p*y*i}else n[4]=n[5]=0;return n[0]=i,n[3]=o,n[1]=p*i,n[2]=g*o,c&&Nd(n,n,c),n[4]+=r+v,n[5]+=a+d,n},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),ha=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function J5(t,e){for(var n=0;n<ha.length;n++){var r=ha[n];t[r]=e[r]}}var CC={};function ar(t,e){e=e||il;var n=CC[e];n||(n=CC[e]=new oc(500));var r=n.get(t);return r==null&&(r=Ka.measureText(t,e).width,n.put(t,r)),r}function TC(t,e,n,r){var a=ar(t,e),i=_S(e),o=pf(0,a,n),u=bs(0,i,r),f=new Wt(o,u,a,i);return f}function yS(t,e,n,r){var a=((t||"")+"").split(`
63
+ `),i=a.length;if(i===1)return TC(a[0],e,n,r);for(var o=new Wt(0,0,0,0),u=0;u<a.length;u++){var f=TC(a[u],e,n,r);u===0?o.copy(f):o.union(f)}return o}function pf(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function bs(t,e,n){return n==="middle"?t-=e/2:n==="bottom"&&(t-=e),t}function _S(t){return ar("国",t)}function Ji(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function ed(t,e,n){var r=e.position||"inside",a=e.distance!=null?e.distance:5,i=n.height,o=n.width,u=i/2,f=n.x,c=n.y,v="left",d="top";if(r instanceof Array)f+=Ji(r[0],n.width),c+=Ji(r[1],n.height),v=null,d=null;else switch(r){case"left":f-=a,c+=u,v="right",d="middle";break;case"right":f+=a+o,c+=u,d="middle";break;case"top":f+=o/2,c-=a,v="center",d="bottom";break;case"bottom":f+=o/2,c+=i+a,v="center";break;case"inside":f+=o/2,c+=u,v="center",d="middle";break;case"insideLeft":f+=a,c+=u,d="middle";break;case"insideRight":f+=o-a,c+=u,v="right",d="middle";break;case"insideTop":f+=o/2,c+=a,v="center";break;case"insideBottom":f+=o/2,c+=i-a,v="center",d="bottom";break;case"insideTopLeft":f+=a,c+=a;break;case"insideTopRight":f+=o-a,c+=a,v="right";break;case"insideBottomLeft":f+=a,c+=i-a,d="bottom";break;case"insideBottomRight":f+=o-a,c+=i-a,v="right",d="bottom";break}return t=t||{},t.x=f,t.y=c,t.align=v,t.verticalAlign=d,t}var uy="__zr_normal__",fy=ha.concat(["ignore"]),tB=$r(ha,function(t,e){return t[e]=!0,t},{ignore:!1}),os={},eB=new Wt(0,0,0,0),Id=(function(){function t(e){this.id=lS(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=n,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var n=this._textContent;if(n&&(!n.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=n.innerTransformable,o=void 0,u=void 0,f=!1;i.parent=a?this:null;var c=!1;if(i.copyTransform(n),r.position!=null){var v=eB;r.layoutRect?v.copy(r.layoutRect):v.copy(this.getBoundingRect()),a||v.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(os,r,v):ed(os,r,v),i.x=os.x,i.y=os.y,o=os.align,u=os.verticalAlign;var d=r.origin;if(d&&r.rotation!=null){var g=void 0,p=void 0;d==="center"?(g=v.width*.5,p=v.height*.5):(g=Ji(d[0],v.width),p=Ji(d[1],v.height)),c=!0,i.originX=-i.x+g+(a?0:v.x),i.originY=-i.y+p+(a?0:v.y)}}r.rotation!=null&&(i.rotation=r.rotation);var y=r.offset;y&&(i.x+=y[0],i.y+=y[1],c||(i.originX=-y[0],i.originY=-y[1]));var _=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,S=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),x=void 0,M=void 0,C=void 0;_&&this.canBeInsideText()?(x=r.insideFill,M=r.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(M==null||M==="auto")&&(M=this.getInsideTextStroke(x),C=!0)):(x=r.outsideFill,M=r.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(M==null||M==="auto")&&(M=this.getOutsideStroke(x),C=!0)),x=x||"#000",(x!==S.fill||M!==S.stroke||C!==S.autoStroke||o!==S.align||u!==S.verticalAlign)&&(f=!0,S.fill=x,S.stroke=M,S.autoStroke=C,S.align=o,S.verticalAlign=u,n.setDefaultTextStyle(S)),n.__dirty|=nr,f&&n.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?e_:t_},t.prototype.getOutsideStroke=function(e){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&rr(n);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,eo(r,"rgba")},t.prototype.traverse=function(e,n){},t.prototype.attrKV=function(e,n){e==="textConfig"?this.setTextConfig(n):e==="textContent"?this.setTextContent(n):e==="clipPath"?this.setClipPath(n):e==="extra"?(this.extra=this.extra||{},st(this.extra,n)):this[e]=n},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,n){if(typeof e=="string")this.attrKV(e,n);else if(_t(e))for(var r=e,a=ae(r),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var n=this._normalState,r=0;r<this.animators.length;r++){var a=this.animators[r],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==uy)){var o=a.targetName,u=o?n[o]:n;a.saveTo(u)}}},t.prototype._innerSaveToNormal=function(e){var n=this._normalState;n||(n=this._normalState={}),e.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(e,n,fy)},t.prototype._savePrimaryToNormal=function(e,n,r){for(var a=0;a<r.length;a++){var i=r[a];e[i]!=null&&!(i in n)&&(n[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var n=this.states;return n[e]||(n[e]={}),n[e]},t.prototype.clearStates=function(e){this.useState(uy,!1,e)},t.prototype.useState=function(e,n,r,a){var i=e===uy,o=this.hasState();if(!(!o&&i)){var u=this.currentStates,f=this.stateTransition;if(!(Yt(u,e)>=0&&(n||u.length===1))){var c;if(this.stateProxy&&!i&&(c=this.stateProxy(e)),c||(c=this.states&&this.states[e]),!c&&!i){Od("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(c);var v=!!(c&&c.hoverLayer||a);v&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,c,this._normalState,n,!r&&!this.__inHover&&f&&f.duration>0,f);var d=this._textContent,g=this._textGuide;return d&&d.useState(e,n,r,v),g&&g.useState(e,n,r,v),i?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~nr),c}}},t.prototype.useStates=function(e,n,r){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,u=o===i.length;if(u){for(var f=0;f<o;f++)if(e[f]!==i[f]){u=!1;break}}if(u)return;for(var f=0;f<o;f++){var c=e[f],v=void 0;this.stateProxy&&(v=this.stateProxy(c,e)),v||(v=this.states[c]),v&&a.push(v)}var d=a[o-1],g=!!(d&&d.hoverLayer||r);g&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(a),y=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(","),p,this._normalState,!1,!n&&!this.__inHover&&y&&y.duration>0,y);var _=this._textContent,S=this._textGuide;_&&_.useStates(e,n,g),S&&S.useStates(e,n,g),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!g&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~nr)}},t.prototype.isSilent=function(){for(var e=this.silent,n=this.parent;!e&&n;){if(n.silent){e=!0;break}n=n.parent}return e},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var n=this.animators[e];n.targetName&&n.changeTarget(this[n.targetName])}},t.prototype.removeState=function(e){var n=Yt(this.currentStates,e);if(n>=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},t.prototype.replaceState=function(e,n,r){var a=this.currentStates.slice(),i=Yt(a,e),o=Yt(a,n)>=0;i>=0?o?a.splice(i,1):a[i]=n:r&&!o&&a.push(n),this.useStates(a)},t.prototype.toggleState=function(e,n){n?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var n={},r,a=0;a<e.length;a++){var i=e[a];st(n,i),i.textConfig&&(r=r||{},st(r,i.textConfig))}return r&&(n.textConfig=r),n},t.prototype._applyStateObj=function(e,n,r,a,i,o){var u=!(n&&a);n&&n.textConfig?(this.textConfig=st({},a?this.textConfig:r.textConfig),st(this.textConfig,n.textConfig)):u&&r.textConfig&&(this.textConfig=r.textConfig);for(var f={},c=!1,v=0;v<fy.length;v++){var d=fy[v],g=i&&tB[d];n&&n[d]!=null?g?(c=!0,f[d]=n[d]):this[d]=n[d]:u&&r[d]!=null&&(g?(c=!0,f[d]=r[d]):this[d]=r[d])}if(!i)for(var v=0;v<this.animators.length;v++){var p=this.animators[v],y=p.targetName;p.getLoop()||p.__changeFinalValue(y?(n||r)[y]:n||r)}c&&this._transitionState(e,f,o)},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var n=this.__zr;n&&e.addSelfToZr(n),e.__zr=n,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var n=this._textContent;n!==e&&(n&&n!==e&&this.removeTextContent(),e.innerTransformable=new mS,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),st(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=nr;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var n=this._textContent,r=this._textGuide;n&&(n.__inHover=e),r&&(r.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var n=this.animators;if(n)for(var r=0;r<n.length;r++)e.animation.addAnimator(n[r]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var n=this.animators;if(n)for(var r=0;r<n.length;r++)e.animation.removeAnimator(n[r]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,n,r){var a=e?this[e]:this,i=new gS(a,n,r);return e&&(i.targetName=e),this.addAnimator(i,e),i},t.prototype.addAnimator=function(e,n){var r=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(n)}).done(function(){var i=a.animators,o=Yt(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,n){for(var r=this.animators,a=r.length,i=[],o=0;o<a;o++){var u=r[o];!e||e===u.scope?u.stop(n):i.push(u)}return this.animators=i,this},t.prototype.animateTo=function(e,n,r){cy(this,e,n,r)},t.prototype.animateFrom=function(e,n,r){cy(this,e,n,r,!0)},t.prototype._transitionState=function(e,n,r,a){for(var i=cy(this,n,r,a),o=0;o<i.length;o++)i[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=nr;function n(r,a,i,o){Object.defineProperty(e,r,{get:function(){if(!this[a]){var f=this[a]=[];u(this,f)}return this[a]},set:function(f){this[i]=f[0],this[o]=f[1],this[a]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[i]},set:function(v){f[i]=v}}),Object.defineProperty(c,1,{get:function(){return f[o]},set:function(v){f[o]=v}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),t})();Lr(Id,Wr);Lr(Id,mS);function cy(t,e,n,r,a){n=n||{};var i=[];sR(t,"",t,e,n,r,i,a);var o=i.length,u=!1,f=n.done,c=n.aborted,v=function(){u=!0,o--,o<=0&&(u?f&&f():c&&c())},d=function(){o--,o<=0&&(u?f&&f():c&&c())};o||f&&f(),i.length>0&&n.during&&i[0].during(function(y,_){n.during(_)});for(var g=0;g<i.length;g++){var p=i[g];v&&p.done(v),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return i}function hy(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function nB(t){return vn(t[0])}function rB(t,e,n){if(vn(e[n]))if(vn(t[n])||(t[n]=[]),An(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),hy(t[n],e[n],r))}else{var a=e[n],i=t[n],o=a.length;if(nB(a))for(var u=a[0].length,f=0;f<o;f++)i[f]?hy(i[f],a[f],u):i[f]=Array.prototype.slice.call(a[f]);else hy(i,a,o);i.length=a.length}else t[n]=e[n]}function aB(t,e){return t===e||vn(t)&&vn(e)&&iB(t,e)}function iB(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function sR(t,e,n,r,a,i,o,u){for(var f=ae(r),c=a.duration,v=a.delay,d=a.additive,g=a.setToFinal,p=!_t(i),y=t.animators,_=[],S=0;S<f.length;S++){var x=f[S],M=r[x];if(M!=null&&n[x]!=null&&(p||i[x]))if(_t(M)&&!vn(M)&&!nc(M)){if(e){u||(n[x]=M,t.updateDuringAnimation(e));continue}sR(t,x,n[x],M,a,i&&i[x],o,u)}else _.push(x);else u||(n[x]=M,t.updateDuringAnimation(e),_.push(x))}var C=_.length;if(!d&&C)for(var T=0;T<y.length;T++){var D=y[T];if(D.targetName===e){var R=D.stopTracks(_);if(R){var E=Yt(y,D);y.splice(E,1)}}}if(a.force||(_=Re(_,function(L){return!aB(r[L],n[L])}),C=_.length),C>0||a.force&&!o.length){var z=void 0,I=void 0,N=void 0;if(u){I={},g&&(z={});for(var T=0;T<C;T++){var x=_[T];I[x]=n[x],g?z[x]=r[x]:n[x]=r[x]}}else if(g){N={};for(var T=0;T<C;T++){var x=_[T];N[x]=xf(n[x]),rB(n,r,x)}}var D=new gS(n,!1,!1,d?Re(y,function(V){return V.targetName===e}):null);D.targetName=e,a.scope&&(D.scope=a.scope),g&&z&&D.whenWithKeys(0,z,_),N&&D.whenWithKeys(0,N,_),D.whenWithKeys(c??500,u?I:r,_).delay(v||0),t.addAnimator(D,e),o.push(D)}}var Ie=(function(t){ut(e,t);function e(n){var r=t.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(n){return this._children[n]},e.prototype.childOfName=function(n){for(var r=this._children,a=0;a<r.length;a++)if(r[a].name===n)return r[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},e.prototype.addBefore=function(n,r){if(n&&n!==this&&n.parent!==this&&r&&r.parent===this){var a=this._children,i=a.indexOf(r);i>=0&&(a.splice(i,0,n),this._doAdd(n))}return this},e.prototype.replace=function(n,r){var a=Yt(this._children,n);return a>=0&&this.replaceAt(r,a),this},e.prototype.replaceAt=function(n,r){var a=this._children,i=a[r];if(n&&n!==this&&n.parent!==this&&n!==i){a[r]=n,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(n)}return this},e.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(n){var r=this.__zr,a=this._children,i=Yt(a,n);return i<0?this:(a.splice(i,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,a=0;a<n.length;a++){var i=n[a];r&&i.removeSelfFromZr(r),i.parent=null}return n.length=0,this},e.prototype.eachChild=function(n,r){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];n.call(r,o,i)}return this},e.prototype.traverse=function(n,r){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=n.call(r,i);i.isGroup&&!o&&i.traverse(n,r)}return this},e.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.addSelfToZr(n)}},e.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.removeSelfFromZr(n)}},e.prototype.getBoundingRect=function(n){for(var r=new Wt(0,0,0,0),a=n||this._children,i=[],o=null,u=0;u<a.length;u++){var f=a[u];if(!(f.ignore||f.invisible)){var c=f.getBoundingRect(),v=f.getLocalTransform(i);v?(Wt.applyTransform(r,c,v),o=o||r.clone(),o.union(r)):(o=o||c.clone(),o.union(c))}}return o||r},e})(Id);Ie.prototype.type="group";/*!
64
+ * ZRender, a high performance 2d drawing library.
65
+ *
66
+ * Copyright (c) 2013, Baidu Inc.
67
+ * All rights reserved.
68
+ *
69
+ * LICENSE
70
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
71
+ */var Ov={},Xo={};function oB(t){delete Xo[t]}function lB(t){if(!t)return!1;if(typeof t=="string")return Pf(t,1)<J0;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,a=0;a<r;a++)n+=Pf(e[a].color,1);return n/=r,n<J0}return!1}var sB=(function(){function t(e,n,r){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=n,this.id=e;var i=new _5,o=r.renderer||"canvas";Ov[o]||(o=ae(Ov)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var u=new Ov[o](n,i,r,e),f=r.ssr||u.ssrOnly;this.storage=i,this.painter=u;var c=!Dt.node&&!Dt.worker&&!f?new Q5(u.getViewportRoot(),u.root):null,v=r.useCoarsePointer,d=v==null||v==="auto"?Dt.touchEventsSupported:!!v,g=44,p;d&&(p=Pt(r.pointerSize,g)),this.handler=new Z2(i,u,c,u.root,p),this.animation=new j5({stage:{update:f?null:function(){return a._flush(!0)}}}),f||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,n){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,n),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=lB(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(e){var n,r=ws();this._needsRefresh&&(n=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var a=ws();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,n){if(!this._disposed)return this.handler.findHover(e,n)},t.prototype.on=function(e,n,r){return this._disposed||this.handler.on(e,n,r),this},t.prototype.off=function(e,n){this._disposed||this.handler.off(e,n)},t.prototype.trigger=function(e,n){this._disposed||this.handler.trigger(e,n)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),n=0;n<e.length;n++)e[n]instanceof Ie&&e[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,oB(this.id))},t})();function n_(t,e){var n=new sB(lS(),t,e);return Xo[n.id]=n,n}function uB(t){t.dispose()}function fB(){for(var t in Xo)Xo.hasOwnProperty(t)&&Xo[t].dispose();Xo={}}function cB(t){return Xo[t]}function uR(t,e){Ov[t]=e}var r_;function hB(t){if(typeof r_=="function")return r_(t)}function fR(t){r_=t}var vB="5.6.1";const dB=Object.freeze(Object.defineProperty({__proto__:null,dispose:uB,disposeAll:fB,getElementSSRData:hB,getInstance:cB,init:n_,registerPainter:uR,registerSSRDataGetter:fR,version:vB},Symbol.toStringTag,{value:"Module"}));var AC=1e-4,cR=20;function pB(t){return t.replace(/^\s+|\s+$/g,"")}function je(t,e,n,r){var a=e[0],i=e[1],o=n[0],u=n[1],f=i-a,c=u-o;if(f===0)return c===0?o:(o+u)/2;if(r)if(f>0){if(t<=a)return o;if(t>=i)return u}else{if(t>=a)return o;if(t<=i)return u}else{if(t===a)return o;if(t===i)return u}return(t-a)/f*c+o}function ve(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return pt(t)?pB(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function Ne(t,e,n){return e==null&&(e=10),e=Math.min(Math.max(0,e),cR),t=(+t).toFixed(e),n?t:+t}function Ms(t){return t.sort(function(e,n){return e-n}),t}function ua(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n}return hR(t)}function hR(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,a=n>0?n:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function SS(t,e){var n=Math.log,r=Math.LN10,a=Math.floor(n(t[1]-t[0])/r),i=Math.round(n(Math.abs(e[1]-e[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function gB(t,e,n){if(!t[e])return 0;var r=vR(t,n);return r[e]||0}function vR(t,e){var n=$r(t,function(p,y){return p+(isNaN(y)?0:y)},0);if(n===0)return[];for(var r=Math.pow(10,e),a=mt(t,function(p){return(isNaN(p)?0:p)/n*r*100}),i=r*100,o=mt(a,function(p){return Math.floor(p)}),u=$r(o,function(p,y){return p+y},0),f=mt(a,function(p,y){return p-o[y]});u<i;){for(var c=Number.NEGATIVE_INFINITY,v=null,d=0,g=f.length;d<g;++d)f[d]>c&&(c=f[d],v=d);++o[v],f[v]=0,++u}return mt(o,function(p){return p/r})}function mB(t,e){var n=Math.max(ua(t),ua(e)),r=t+e;return n>cR?r:Ne(r,n)}var yB=9007199254740991;function bS(t){var e=Math.PI*2;return(t%e+e)%e}function Hf(t){return t>-AC&&t<AC}var _B=/^(?:(\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 Rr(t){if(t instanceof Date)return t;if(pt(t)){var e=_B.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function dR(t){return Math.pow(10,Bd(t))}function Bd(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function xS(t,e){var n=Bd(t),r=Math.pow(10,n),a=t/r,i;return e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,t=i*r,n>=-20?+t.toFixed(n<0?-n:0):t}function SB(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),a=+t[r-1],i=n-r;return i?a+i*(t[r]-a):a}function bB(t){t.sort(function(f,c){return u(f,c,0)?-1:1});for(var e=-1/0,n=1,r=0;r<t.length;){for(var a=t[r].interval,i=t[r].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,i[o]=o?1:1-n),e=a[o],n=i[o];a[0]===a[1]&&i[0]*i[1]!==1?t.splice(r,1):r++}return t;function u(f,c,v){return f.interval[v]<c.interval[v]||f.interval[v]===c.interval[v]&&(f.close[v]-c.close[v]===(v?-1:1)||!v&&u(f,c,1))}}function Vf(t){var e=parseFloat(t);return e==t&&(e!==0||!pt(t)||t.indexOf("x")<=0)?e:NaN}function pR(t){return!isNaN(Vf(t))}function gR(){return Math.round(Math.random()*9)}function mR(t,e){return e===0?t:mR(e,t%e)}function DC(t,e){return t==null?e:e==null?t:t*e/mR(t,e)}function Fn(t){throw new Error(t)}function RC(t,e,n){return(e-t)*n+t}var yR="series\0",xB="\0_ec_\0";function qe(t){return t instanceof Array?t:t==null?[]:[t]}function a_(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,a=n.length;r<a;r++){var i=n[r];!t.emphasis[e].hasOwnProperty(i)&&t[e].hasOwnProperty(i)&&(t.emphasis[e][i]=t[e][i])}}}var EC=["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 lc(t){return _t(t)&&!ct(t)&&!(t instanceof Date)?t.value:t}function wB(t){return _t(t)&&!(t instanceof Array)}function _R(t,e,n){var r=n==="normalMerge",a=n==="replaceMerge",i=n==="replaceAll";t=t||[],e=(e||[]).slice();var o=Ct();k(e,function(f,c){if(!_t(f)){e[c]=null;return}});var u=MB(t,o,n);return(r||a)&&CB(u,t,o,e),r&&TB(u,e),r||a?AB(u,e,a):i&&DB(u,e),RB(u),u}function MB(t,e,n){var r=[];if(n==="replaceAll")return r;for(var a=0;a<t.length;a++){var i=t[a];i&&i.id!=null&&e.set(i.id,a),r.push({existing:n==="replaceMerge"||Ff(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return r}function CB(t,e,n,r){k(r,function(a,i){if(!(!a||a.id==null)){var o=wf(a.id),u=n.get(o);if(u!=null){var f=t[u];ca(!f.newOption,'Duplicated option on id "'+o+'".'),f.newOption=a,f.existing=e[u],r[i]=null}}})}function TB(t,e){k(e,function(n,r){if(!(!n||n.name==null))for(var a=0;a<t.length;a++){var i=t[a].existing;if(!t[a].newOption&&i&&(i.id==null||n.id==null)&&!Ff(n)&&!Ff(i)&&SR("name",i,n)){t[a].newOption=n,e[r]=null;return}}})}function AB(t,e,n){k(e,function(r){if(r){for(var a,i=0;(a=t[i])&&(a.newOption||Ff(a.existing)||a.existing&&r.id!=null&&!SR("id",r,a.existing));)i++;a?(a.newOption=r,a.brandNew=n):t.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),i++}})}function DB(t,e){k(e,function(n){t.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function RB(t){var e=Ct();k(t,function(n){var r=n.existing;r&&e.set(r.id,n)}),k(t,function(n){var r=n.newOption;ca(!r||r.id==null||!e.get(r.id)||e.get(r.id)===n,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&e.set(r.id,n),!n.keyInfo&&(n.keyInfo={})}),k(t,function(n,r){var a=n.existing,i=n.newOption,o=n.keyInfo;if(_t(i)){if(o.name=i.name!=null?wf(i.name):a?a.name:yR+r,a)o.id=wf(a.id);else if(i.id!=null)o.id=wf(i.id);else{var u=0;do o.id="\0"+o.name+"\0"+u++;while(e.get(o.id))}e.set(o.id,n)}})}function SR(t,e,n){var r=Un(e[t],null),a=Un(n[t],null);return r!=null&&a!=null&&r===a}function wf(t){return Un(t,"")}function Un(t,e){return t==null?e:pt(t)?t:de(t)||jv(t)?t+"":e}function wS(t){var e=t.name;return!!(e&&e.indexOf(yR))}function Ff(t){return t&&t.id!=null&&wf(t.id).indexOf(xB)===0}function EB(t,e,n){k(t,function(r){var a=r.newOption;_t(a)&&(r.keyInfo.mainType=e,r.keyInfo.subType=LB(e,a,r.existing,n))})}function LB(t,e,n,r){var a=e.type?e.type:n?n.subType:r.determineSubType(t,e);return a}function ol(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return ct(e.dataIndex)?mt(e.dataIndex,function(n){return t.indexOfRawIndex(n)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return ct(e.name)?mt(e.name,function(n){return t.indexOfName(n)}):t.indexOfName(e.name)}function xe(){var t="__ec_inner_"+OB++;return function(e){return e[t]||(e[t]={})}}var OB=gR();function vy(t,e,n){var r=MS(e,n),a=r.mainTypeSpecified,i=r.queryOptionMap,o=r.others,u=o,f=n?n.defaultMainType:null;return!a&&f&&i.set(f,{}),i.each(function(c,v){var d=sc(t,v,c,{useDefault:f===v,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});u[v+"Models"]=d.models,u[v+"Model"]=d.models[0]}),u}function MS(t,e){var n;if(pt(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var a=Ct(),i={},o=!1;return k(n,function(u,f){if(f==="dataIndex"||f==="dataIndexInside"){i[f]=u;return}var c=f.match(/^(\w+)(Index|Id|Name)$/)||[],v=c[1],d=(c[2]||"").toLowerCase();if(!(!v||!d||e&&e.includeMainTypes&&Yt(e.includeMainTypes,v)<0)){o=o||!!v;var g=a.get(v)||a.set(v,{});g[d]=u}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var jn={useDefault:!0,enableAll:!1,enableNone:!1},zB={useDefault:!1,enableAll:!0,enableNone:!0};function sc(t,e,n,r){r=r||jn;var a=n.index,i=n.id,o=n.name,u={models:null,specified:a!=null||i!=null||o!=null};if(!u.specified){var f=void 0;return u.models=r.useDefault&&(f=t.getComponent(e))?[f]:[],u}return a==="none"||a===!1?(ca(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),u.models=[],u):(a==="all"&&(ca(r.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),u.models=t.queryComponents({mainType:e,index:a,id:i,name:o}),u)}function bR(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function NB(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function IB(t){return t==="auto"?Dt.domSupported?"html":"richText":t||"html"}function BB(t,e,n,r,a){var i=e==null||e==="auto";if(r==null)return r;if(de(r)){var o=RC(n||0,r,a);return Ne(o,i?Math.max(ua(n||0),ua(r)):e)}else{if(pt(r))return a<1?n:r;for(var u=[],f=n,c=r,v=Math.max(f?f.length:0,c.length),d=0;d<v;++d){var g=t.getDimensionInfo(d);if(g&&g.type==="ordinal")u[d]=(a<1&&f?f:c)[d];else{var p=f&&f[d]?f[d]:0,y=c[d],o=RC(p,y,a);u[d]=Ne(o,i?Math.max(ua(p),ua(y)):e)}}return u}}var kB=".",Lo="___EC__COMPONENT__CONTAINER___",xR="___EC__EXTENDED_CLASS___";function fa(t){var e={main:"",sub:""};if(t){var n=t.split(kB);e.main=n[0]||"",e.sub=n[1]||""}return e}function PB(t){ca(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function HB(t){return!!(t&&t[xR])}function CS(t,e){t.$constructor=t,t.extend=function(n){var r=this,a;return VB(r)?a=(function(i){ut(o,i);function o(){return i.apply(this,arguments)||this}return o})(r):(a=function(){(n.$constructor||r).apply(this,arguments)},sS(a,this)),st(a.prototype,n),a[xR]=!0,a.extend=this.extend,a.superCall=UB,a.superApply=jB,a.superClass=r,a}}function VB(t){return Rt(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function wR(t,e){t.extend=e.extend}var FB=Math.round(Math.random()*10);function GB(t){var e=["__\0is_clz",FB++].join("_");t.prototype[e]=!0,t.isInstance=function(n){return!!(n&&n[e])}}function UB(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function jB(t,e,n){return this.superClass.prototype[e].apply(t,n)}function kd(t){var e={};t.registerClass=function(r){var a=r.type||r.prototype.type;if(a){PB(a),r.prototype.type=a;var i=fa(a);if(!i.sub)e[i.main]=r;else if(i.sub!==Lo){var o=n(i);o[i.sub]=r}}return r},t.getClass=function(r,a,i){var o=e[r];if(o&&o[Lo]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+r+"."+(a||"")+" is used but not imported.":r+".type should be specified.");return o},t.getClassesByMainType=function(r){var a=fa(r),i=[],o=e[a.main];return o&&o[Lo]?k(o,function(u,f){f!==Lo&&i.push(u)}):i.push(o),i},t.hasClass=function(r){var a=fa(r);return!!e[a.main]},t.getAllClassMainTypes=function(){var r=[];return k(e,function(a,i){r.push(i)}),r},t.hasSubTypes=function(r){var a=fa(r),i=e[a.main];return i&&i[Lo]};function n(r){var a=e[r.main];return(!a||!a[Lo])&&(a=e[r.main]={},a[Lo]=!0),a}}function Gf(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(r,a,i){for(var o={},u=0;u<t.length;u++){var f=t[u][1];if(!(a&&Yt(a,f)>=0||i&&Yt(i,f)<0)){var c=r.getShallow(f,e);c!=null&&(o[t[u][0]]=c)}}return o}}var YB=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],qB=Gf(YB),XB=(function(){function t(){}return t.prototype.getAreaStyle=function(e,n){return qB(this,e,n)},t})(),i_=new oc(50);function ZB(t){if(typeof t=="string"){var e=i_.get(t);return e&&e.image}else return t}function MR(t,e,n,r,a){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!n)return e;var i=i_.get(t),o={hostEl:n,cb:r,cbPayload:a};return i?(e=i.image,!Pd(e)&&i.pending.push(o)):(e=Ka.loadImage(t,LC,LC),e.__zrImageSrc=t,i_.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function LC(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Pd(t){return t&&t.width&&t.height}var dy=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function $B(t,e,n,r,a){var i={};return CR(i,t,e,n,r,a),i.text}function CR(t,e,n,r,a,i){if(!n){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
72
+ `);i=TR(n,r,a,i);for(var u=!1,f={},c=0,v=o.length;c<v;c++)AR(f,o[c],i),o[c]=f.textLine,u=u||f.isTruncated;t.text=o.join(`
73
+ `),t.isTruncated=u}function TR(t,e,n,r){r=r||{};var a=st({},r);a.font=e,n=Pt(n,"..."),a.maxIterations=Pt(r.maxIterations,2);var i=a.minChar=Pt(r.minChar,0);a.cnCharWidth=ar("国",e);var o=a.ascCharWidth=ar("a",e);a.placeholder=Pt(r.placeholder,"");for(var u=t=Math.max(0,t-1),f=0;f<i&&u>=o;f++)u-=o;var c=ar(n,e);return c>u&&(n="",c=0),u=t-c,a.ellipsis=n,a.ellipsisWidth=c,a.contentWidth=u,a.containerWidth=t,a}function AR(t,e,n){var r=n.containerWidth,a=n.font,i=n.contentWidth;if(!r){t.textLine="",t.isTruncated=!1;return}var o=ar(e,a);if(o<=r){t.textLine=e,t.isTruncated=!1;return}for(var u=0;;u++){if(o<=i||u>=n.maxIterations){e+=n.ellipsis;break}var f=u===0?WB(e,i,n.ascCharWidth,n.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,f),o=ar(e,a)}e===""&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function WB(t,e,n,r){for(var a=0,i=0,o=t.length;i<o&&a<e;i++){var u=t.charCodeAt(i);a+=0<=u&&u<=127?n:r}return i}function QB(t,e){t!=null&&(t+="");var n=e.overflow,r=e.padding,a=e.font,i=n==="truncate",o=_S(a),u=Pt(e.lineHeight,o),f=!!e.backgroundColor,c=e.lineOverflow==="truncate",v=!1,d=e.width,g;d!=null&&(n==="break"||n==="breakAll")?g=t?DR(t,e.font,d,n==="breakAll",0).lines:[]:g=t?t.split(`
74
+ `):[];var p=g.length*u,y=Pt(e.height,p);if(p>y&&c){var _=Math.floor(y/u);v=v||g.length>_,g=g.slice(0,_)}if(t&&i&&d!=null)for(var S=TR(d,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),x={},M=0;M<g.length;M++)AR(x,g[M],S),g[M]=x.textLine,v=v||x.isTruncated;for(var C=y,T=0,M=0;M<g.length;M++)T=Math.max(ar(g[M],a),T);d==null&&(d=T);var D=T;return r&&(C+=r[0]+r[2],D+=r[1]+r[3],d+=r[1]+r[3]),f&&(D=d),{lines:g,height:y,outerWidth:D,outerHeight:C,lineHeight:u,calculatedLineHeight:o,contentWidth:T,contentHeight:p,width:d,isTruncated:v}}var KB=(function(){function t(){}return t})(),OC=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),JB=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function tk(t,e){var n=new JB;if(t!=null&&(t+=""),!t)return n;for(var r=e.width,a=e.height,i=e.overflow,o=(i==="break"||i==="breakAll")&&r!=null?{width:r,accumWidth:0,breakAll:i==="breakAll"}:null,u=dy.lastIndex=0,f;(f=dy.exec(t))!=null;){var c=f.index;c>u&&py(n,t.substring(u,c),e,o),py(n,f[2],e,o,f[1]),u=dy.lastIndex}u<t.length&&py(n,t.substring(u,t.length),e,o);var v=[],d=0,g=0,p=e.padding,y=i==="truncate",_=e.lineOverflow==="truncate",S={};function x(ot,P,q){ot.width=P,ot.lineHeight=q,d+=q,g=Math.max(g,P)}t:for(var M=0;M<n.lines.length;M++){for(var C=n.lines[M],T=0,D=0,R=0;R<C.tokens.length;R++){var E=C.tokens[R],z=E.styleName&&e.rich[E.styleName]||{},I=E.textPadding=z.padding,N=I?I[1]+I[3]:0,L=E.font=z.font||e.font;E.contentHeight=_S(L);var V=Pt(z.height,E.contentHeight);if(E.innerHeight=V,I&&(V+=I[0]+I[2]),E.height=V,E.lineHeight=As(z.lineHeight,e.lineHeight,V),E.align=z&&z.align||e.align,E.verticalAlign=z&&z.verticalAlign||"middle",_&&a!=null&&d+E.lineHeight>a){var G=n.lines.length;R>0?(C.tokens=C.tokens.slice(0,R),x(C,D,T),n.lines=n.lines.slice(0,M+1)):n.lines=n.lines.slice(0,M),n.isTruncated=n.isTruncated||n.lines.length<G;break t}var j=z.width,X=j==null||j==="auto";if(typeof j=="string"&&j.charAt(j.length-1)==="%")E.percentWidth=j,v.push(E),E.contentWidth=ar(E.text,L);else{if(X){var H=z.backgroundColor,Q=H&&H.image;Q&&(Q=ZB(Q),Pd(Q)&&(E.width=Math.max(E.width,Q.width*V/Q.height)))}var Z=y&&r!=null?r-D:null;Z!=null&&Z<E.width?!X||Z<N?(E.text="",E.width=E.contentWidth=0):(CR(S,E.text,Z-N,L,e.ellipsis,{minChar:e.truncateMinChar}),E.text=S.text,n.isTruncated=n.isTruncated||S.isTruncated,E.width=E.contentWidth=ar(E.text,L)):E.contentWidth=ar(E.text,L)}E.width+=N,D+=E.width,z&&(T=Math.max(T,E.lineHeight))}x(C,D,T)}n.outerWidth=n.width=Pt(r,g),n.outerHeight=n.height=Pt(a,d),n.contentHeight=d,n.contentWidth=g,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]);for(var M=0;M<v.length;M++){var E=v[M],J=E.percentWidth;E.width=parseInt(J,10)/100*n.width}return n}function py(t,e,n,r,a){var i=e==="",o=a&&n.rich[a]||{},u=t.lines,f=o.font||n.font,c=!1,v,d;if(r){var g=o.padding,p=g?g[1]+g[3]:0;if(o.width!=null&&o.width!=="auto"){var y=Ji(o.width,r.width)+p;u.length>0&&y+r.accumWidth>r.width&&(v=e.split(`
75
+ `),c=!0),r.accumWidth=y}else{var _=DR(e,f,r.width,r.breakAll,r.accumWidth);r.accumWidth=_.accumWidth+p,d=_.linesWidths,v=_.lines}}else v=e.split(`
76
+ `);for(var S=0;S<v.length;S++){var x=v[S],M=new KB;if(M.styleName=a,M.text=x,M.isLineHolder=!x&&!i,typeof o.width=="number"?M.width=o.width:M.width=d?d[S]:ar(x,f),!S&&!c){var C=(u[u.length-1]||(u[0]=new OC)).tokens,T=C.length;T===1&&C[0].isLineHolder?C[0]=M:(x||!T||i)&&C.push(M)}else u.push(new OC([M]))}}function ek(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var nk=$r(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function rk(t){return ek(t)?!!nk[t]:!0}function DR(t,e,n,r,a){for(var i=[],o=[],u="",f="",c=0,v=0,d=0;d<t.length;d++){var g=t.charAt(d);if(g===`
77
+ `){f&&(u+=f,v+=c),i.push(u),o.push(v),u="",f="",c=0,v=0;continue}var p=ar(g,e),y=r?!1:!rk(g);if(i.length?v+p>n:a+v+p>n){v?(u||f)&&(y?(u||(u=f,f="",c=0,v=c),i.push(u),o.push(v-c),f+=g,c+=p,u="",v=c):(f&&(u+=f,f="",c=0),i.push(u),o.push(v),u=g,v=p)):y?(i.push(f),o.push(c),f=g,c=p):(i.push(g),o.push(p));continue}v+=p,y?(f+=g,c+=p):(f&&(u+=f,f="",c=0),u+=g)}return!i.length&&!u&&(u=t,f="",c=0),f&&(u+=f),u&&(i.push(u),o.push(v)),i.length===1&&(v+=a),{accumWidth:v,lines:i,linesWidths:o}}var o_="__zr_style_"+Math.round(Math.random()*10),tl={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Hd={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};tl[o_]=!0;var zC=["z","z2","invisible"],ak=["invisible"],vl=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype._init=function(n){for(var r=ae(n),a=0;a<r.length;a++){var i=r[a];i==="style"?this.useStyle(n[i]):t.prototype.attrKV.call(this,i,n[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(n,r,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&ik(this,n,r)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var u=0;u<this.__clipPaths.length;++u)if(this.__clipPaths[u].isZeroArea())return!1}if(i&&this.parent)for(var f=this.parent;f;){if(f.ignore)return!1;f=f.parent}return!0},e.prototype.contain=function(n,r){return this.rectContain(n,r)},e.prototype.traverse=function(n,r){n.call(r,this)},e.prototype.rectContain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();return i.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,u=i.shadowOffsetX||0,f=i.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new Wt(0,0,0,0)),r?Wt.applyTransform(n,a,r):n.copy(a),(o||u||f)&&(n.width+=o*2+Math.abs(u),n.height+=o*2+Math.abs(f),n.x=Math.min(n.x,n.x+u-o),n.y=Math.min(n.y,n.y+f-o));var c=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-c),n.y=Math.floor(n.y-c),n.width=Math.ceil(n.width+1+c*2),n.height=Math.ceil(n.height+1+c*2))}return n},e.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new Wt(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(n){return this.animate("style",n)},e.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(n,r){n!=="style"?t.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},e.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:st(this.style,n),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=vf,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&vf)},e.prototype.styleUpdated=function(){this.__dirty&=~vf},e.prototype.createStyle=function(n){return rc(tl,n)},e.prototype.useStyle=function(n){n[o_]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},e.prototype.isStyleObject=function(n){return n[o_]},e.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,r,zC)},e.prototype._applyStateObj=function(n,r,a,i,o,u){t.prototype._applyStateObj.call(this,n,r,a,i,o,u);var f=!(r&&i),c;if(r&&r.style?o?i?c=r.style:(c=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(c,r.style)):(c=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(c,r.style)):f&&(c=a.style),c)if(o){var v=this.style;if(this.style=this.createStyle(f?{}:v),f)for(var d=ae(v),g=0;g<d.length;g++){var p=d[g];p in c&&(c[p]=c[p],this.style[p]=v[p])}for(var y=ae(c),g=0;g<y.length;g++){var p=y[g];this.style[p]=this.style[p]}this._transitionState(n,{style:c},u,this.getAnimationStyleProps())}else this.useStyle(c);for(var _=this.__inHover?ak:zC,g=0;g<_.length;g++){var p=_[g];r&&r[p]!=null?this[p]=r[p]:f&&a[p]!=null&&(this[p]=a[p])}},e.prototype._mergeStates=function(n){for(var r=t.prototype._mergeStates.call(this,n),a,i=0;i<n.length;i++){var o=n[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(r.style=a),r},e.prototype._mergeStyle=function(n,r){return st(n,r),n},e.prototype.getAnimationStyleProps=function(){return Hd},e.initDefaultProps=(function(){var n=e.prototype;n.type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,n.__dirty=nr|vf})(),e})(Id),gy=new Wt(0,0,0,0),my=new Wt(0,0,0,0);function ik(t,e,n){return gy.copy(t.getBoundingRect()),t.transform&&gy.applyTransform(t.transform),my.width=e,my.height=n,!gy.intersect(my)}var Tr=Math.min,Ar=Math.max,yy=Math.sin,_y=Math.cos,Oo=Math.PI*2,Uh=hl(),jh=hl(),Yh=hl();function NC(t,e,n,r,a,i){a[0]=Tr(t,n),a[1]=Tr(e,r),i[0]=Ar(t,n),i[1]=Ar(e,r)}var IC=[],BC=[];function ok(t,e,n,r,a,i,o,u,f,c){var v=J2,d=tn,g=v(t,n,a,o,IC);f[0]=1/0,f[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var p=0;p<g;p++){var y=d(t,n,a,o,IC[p]);f[0]=Tr(y,f[0]),c[0]=Ar(y,c[0])}g=v(e,r,i,u,BC);for(var p=0;p<g;p++){var _=d(e,r,i,u,BC[p]);f[1]=Tr(_,f[1]),c[1]=Ar(_,c[1])}f[0]=Tr(t,f[0]),c[0]=Ar(t,c[0]),f[0]=Tr(o,f[0]),c[0]=Ar(o,c[0]),f[1]=Tr(e,f[1]),c[1]=Ar(e,c[1]),f[1]=Tr(u,f[1]),c[1]=Ar(u,c[1])}function lk(t,e,n,r,a,i,o,u){var f=tR,c=Vn,v=Ar(Tr(f(t,n,a),1),0),d=Ar(Tr(f(e,r,i),1),0),g=c(t,n,a,v),p=c(e,r,i,d);o[0]=Tr(t,a,g),o[1]=Tr(e,i,p),u[0]=Ar(t,a,g),u[1]=Ar(e,i,p)}function sk(t,e,n,r,a,i,o,u,f){var c=Pi,v=Hi,d=Math.abs(a-i);if(d%Oo<1e-4&&d>1e-4){u[0]=t-n,u[1]=e-r,f[0]=t+n,f[1]=e+r;return}if(Uh[0]=_y(a)*n+t,Uh[1]=yy(a)*r+e,jh[0]=_y(i)*n+t,jh[1]=yy(i)*r+e,c(u,Uh,jh),v(f,Uh,jh),a=a%Oo,a<0&&(a=a+Oo),i=i%Oo,i<0&&(i=i+Oo),a>i&&!o?i+=Oo:a<i&&o&&(a+=Oo),o){var g=i;i=a,a=g}for(var p=0;p<i;p+=Math.PI/2)p>a&&(Yh[0]=_y(p)*n+t,Yh[1]=yy(p)*r+e,c(u,Yh,u),v(f,Yh,f))}var ie={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},zo=[],No=[],na=[],Di=[],ra=[],aa=[],Sy=Math.min,by=Math.max,Io=Math.cos,Bo=Math.sin,Ua=Math.abs,l_=Math.PI,Bi=l_*2,xy=typeof Float32Array<"u",Xu=[];function wy(t){var e=Math.round(t/l_*1e8)/1e8;return e%2*l_}function RR(t,e){var n=wy(t[0]);n<0&&(n+=Bi);var r=n-t[0],a=t[1];a+=r,!e&&a-n>=Bi?a=n+Bi:e&&n-a>=Bi?a=n-Bi:!e&&n>a?a=n+(Bi-wy(n-a)):e&&n<a&&(a=n-(Bi-wy(a-n))),t[0]=n,t[1]=a}var ll=(function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,n,r){r=r||0,r>0&&(this._ux=Ua(r/td/e)||0,this._uy=Ua(r/td/n)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,n){return this._drawPendingPt(),this.addData(ie.M,e,n),this._ctx&&this._ctx.moveTo(e,n),this._x0=e,this._y0=n,this._xi=e,this._yi=n,this},t.prototype.lineTo=function(e,n){var r=Ua(e-this._xi),a=Ua(n-this._yi),i=r>this._ux||a>this._uy;if(this.addData(ie.L,e,n),this._ctx&&i&&this._ctx.lineTo(e,n),i)this._xi=e,this._yi=n,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=n,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,n,r,a,i,o){return this._drawPendingPt(),this.addData(ie.C,e,n,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,n,r,a,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,n,r,a){return this._drawPendingPt(),this.addData(ie.Q,e,n,r,a),this._ctx&&this._ctx.quadraticCurveTo(e,n,r,a),this._xi=r,this._yi=a,this},t.prototype.arc=function(e,n,r,a,i,o){this._drawPendingPt(),Xu[0]=a,Xu[1]=i,RR(Xu,o),a=Xu[0],i=Xu[1];var u=i-a;return this.addData(ie.A,e,n,r,r,a,u,0,o?0:1),this._ctx&&this._ctx.arc(e,n,r,a,i,o),this._xi=Io(i)*r+e,this._yi=Bo(i)*r+n,this},t.prototype.arcTo=function(e,n,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,n,r,a,i),this},t.prototype.rect=function(e,n,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,n,r,a),this.addData(ie.R,e,n,r,a),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(ie.Z);var e=this._ctx,n=this._x0,r=this._y0;return e&&e.closePath(),this._xi=n,this._yi=r,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var n=e.length;!(this.data&&this.data.length===n)&&xy&&(this.data=new Float32Array(n));for(var r=0;r<n;r++)this.data[r]=e[r];this._len=n},t.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var n=e.length,r=0,a=this._len,i=0;i<n;i++)r+=e[i].len();xy&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+r));for(var i=0;i<n;i++)for(var o=e[i].data,u=0;u<o.length;u++)this.data[a++]=o[u];this._len=a},t.prototype.addData=function(e,n,r,a,i,o,u,f,c){if(this._saveData){var v=this.data;this._len+arguments.length>v.length&&(this._expandData(),v=this.data);for(var d=0;d<arguments.length;d++)v[this._len++]=arguments[d]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],n=0;n<this._len;n++)e[n]=this.data[n];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,xy&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){na[0]=na[1]=ra[0]=ra[1]=Number.MAX_VALUE,Di[0]=Di[1]=aa[0]=aa[1]=-Number.MAX_VALUE;var e=this.data,n=0,r=0,a=0,i=0,o;for(o=0;o<this._len;){var u=e[o++],f=o===1;switch(f&&(n=e[o],r=e[o+1],a=n,i=r),u){case ie.M:n=a=e[o++],r=i=e[o++],ra[0]=a,ra[1]=i,aa[0]=a,aa[1]=i;break;case ie.L:NC(n,r,e[o],e[o+1],ra,aa),n=e[o++],r=e[o++];break;case ie.C:ok(n,r,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],ra,aa),n=e[o++],r=e[o++];break;case ie.Q:lk(n,r,e[o++],e[o++],e[o],e[o+1],ra,aa),n=e[o++],r=e[o++];break;case ie.A:var c=e[o++],v=e[o++],d=e[o++],g=e[o++],p=e[o++],y=e[o++]+p;o+=1;var _=!e[o++];f&&(a=Io(p)*d+c,i=Bo(p)*g+v),sk(c,v,d,g,p,y,_,ra,aa),n=Io(y)*d+c,r=Bo(y)*g+v;break;case ie.R:a=n=e[o++],i=r=e[o++];var S=e[o++],x=e[o++];NC(a,i,a+S,i+x,ra,aa);break;case ie.Z:n=a,r=i;break}Pi(na,na,ra),Hi(Di,Di,aa)}return o===0&&(na[0]=na[1]=Di[0]=Di[1]=0),new Wt(na[0],na[1],Di[0]-na[0],Di[1]-na[1])},t.prototype._calculateLength=function(){var e=this.data,n=this._len,r=this._ux,a=this._uy,i=0,o=0,u=0,f=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,v=0,d=0,g=0;g<n;){var p=e[g++],y=g===1;y&&(i=e[g],o=e[g+1],u=i,f=o);var _=-1;switch(p){case ie.M:i=u=e[g++],o=f=e[g++];break;case ie.L:{var S=e[g++],x=e[g++],M=S-i,C=x-o;(Ua(M)>r||Ua(C)>a||g===n-1)&&(_=Math.sqrt(M*M+C*C),i=S,o=x);break}case ie.C:{var T=e[g++],D=e[g++],S=e[g++],x=e[g++],R=e[g++],E=e[g++];_=b5(i,o,T,D,S,x,R,E,10),i=R,o=E;break}case ie.Q:{var T=e[g++],D=e[g++],S=e[g++],x=e[g++];_=M5(i,o,T,D,S,x,10),i=S,o=x;break}case ie.A:var z=e[g++],I=e[g++],N=e[g++],L=e[g++],V=e[g++],G=e[g++],j=G+V;g+=1,y&&(u=Io(V)*N+z,f=Bo(V)*L+I),_=by(N,L)*Sy(Bi,Math.abs(G)),i=Io(j)*N+z,o=Bo(j)*L+I;break;case ie.R:{u=i=e[g++],f=o=e[g++];var X=e[g++],H=e[g++];_=X*2+H*2;break}case ie.Z:{var M=u-i,C=f-o;_=Math.sqrt(M*M+C*C),i=u,o=f;break}}_>=0&&(c[d++]=_,v+=_)}return this._pathLen=v,v},t.prototype.rebuildPath=function(e,n){var r=this.data,a=this._ux,i=this._uy,o=this._len,u,f,c,v,d,g,p=n<1,y,_,S=0,x=0,M,C=0,T,D;if(!(p&&(this._pathSegLen||this._calculateLength(),y=this._pathSegLen,_=this._pathLen,M=n*_,!M)))t:for(var R=0;R<o;){var E=r[R++],z=R===1;switch(z&&(c=r[R],v=r[R+1],u=c,f=v),E!==ie.L&&C>0&&(e.lineTo(T,D),C=0),E){case ie.M:u=c=r[R++],f=v=r[R++],e.moveTo(c,v);break;case ie.L:{d=r[R++],g=r[R++];var I=Ua(d-c),N=Ua(g-v);if(I>a||N>i){if(p){var L=y[x++];if(S+L>M){var V=(M-S)/L;e.lineTo(c*(1-V)+d*V,v*(1-V)+g*V);break t}S+=L}e.lineTo(d,g),c=d,v=g,C=0}else{var G=I*I+N*N;G>C&&(T=d,D=g,C=G)}break}case ie.C:{var j=r[R++],X=r[R++],H=r[R++],Q=r[R++],Z=r[R++],J=r[R++];if(p){var L=y[x++];if(S+L>M){var V=(M-S)/L;Kv(c,j,H,Z,V,zo),Kv(v,X,Q,J,V,No),e.bezierCurveTo(zo[1],No[1],zo[2],No[2],zo[3],No[3]);break t}S+=L}e.bezierCurveTo(j,X,H,Q,Z,J),c=Z,v=J;break}case ie.Q:{var j=r[R++],X=r[R++],H=r[R++],Q=r[R++];if(p){var L=y[x++];if(S+L>M){var V=(M-S)/L;Jv(c,j,H,V,zo),Jv(v,X,Q,V,No),e.quadraticCurveTo(zo[1],No[1],zo[2],No[2]);break t}S+=L}e.quadraticCurveTo(j,X,H,Q),c=H,v=Q;break}case ie.A:var ot=r[R++],P=r[R++],q=r[R++],rt=r[R++],it=r[R++],ft=r[R++],gt=r[R++],wt=!r[R++],Kt=q>rt?q:rt,St=Ua(q-rt)>.001,te=it+ft,bt=!1;if(p){var L=y[x++];S+L>M&&(te=it+ft*(M-S)/L,bt=!0),S+=L}if(St&&e.ellipse?e.ellipse(ot,P,q,rt,gt,it,te,wt):e.arc(ot,P,Kt,it,te,wt),bt)break t;z&&(u=Io(it)*q+ot,f=Bo(it)*rt+P),c=Io(te)*q+ot,v=Bo(te)*rt+P;break;case ie.R:u=c=r[R],f=v=r[R+1],d=r[R++],g=r[R++];var Nt=r[R++],pn=r[R++];if(p){var L=y[x++];if(S+L>M){var ue=M-S;e.moveTo(d,g),e.lineTo(d+Sy(ue,Nt),g),ue-=Nt,ue>0&&e.lineTo(d+Nt,g+Sy(ue,pn)),ue-=pn,ue>0&&e.lineTo(d+by(Nt-ue,0),g+pn),ue-=Nt,ue>0&&e.lineTo(d,g+by(pn-ue,0));break t}S+=L}e.rect(d,g,Nt,pn);break;case ie.Z:if(p){var L=y[x++];if(S+L>M){var V=(M-S)/L;e.lineTo(c*(1-V)+u*V,v*(1-V)+f*V);break t}S+=L}e.closePath(),c=u,v=f}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=ie,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})();function ls(t,e,n,r,a,i,o){if(a===0)return!1;var u=a,f=0,c=t;if(o>e+u&&o>r+u||o<e-u&&o<r-u||i>t+u&&i>n+u||i<t-u&&i<n-u)return!1;if(t!==n)f=(e-r)/(t-n),c=(t*r-n*e)/(t-n);else return Math.abs(i-t)<=u/2;var v=f*i-o+c,d=v*v/(f*f+1);return d<=u/2*u/2}function uk(t,e,n,r,a,i,o,u,f,c,v){if(f===0)return!1;var d=f;if(v>e+d&&v>r+d&&v>i+d&&v>u+d||v<e-d&&v<r-d&&v<i-d&&v<u-d||c>t+d&&c>n+d&&c>a+d&&c>o+d||c<t-d&&c<n-d&&c<a-d&&c<o-d)return!1;var g=S5(t,e,n,r,a,i,o,u,c,v);return g<=d/2}function fk(t,e,n,r,a,i,o,u,f){if(o===0)return!1;var c=o;if(f>e+c&&f>r+c&&f>i+c||f<e-c&&f<r-c&&f<i-c||u>t+c&&u>n+c&&u>a+c||u<t-c&&u<n-c&&u<a-c)return!1;var v=w5(t,e,n,r,a,i,u,f);return v<=c/2}var kC=Math.PI*2;function qh(t){return t%=kC,t<0&&(t+=kC),t}var Zu=Math.PI*2;function ck(t,e,n,r,a,i,o,u,f){if(o===0)return!1;var c=o;u-=t,f-=e;var v=Math.sqrt(u*u+f*f);if(v-c>n||v+c<n)return!1;if(Math.abs(r-a)%Zu<1e-4)return!0;if(i){var d=r;r=qh(a),a=qh(d)}else r=qh(r),a=qh(a);r>a&&(a+=Zu);var g=Math.atan2(f,u);return g<0&&(g+=Zu),g>=r&&g<=a||g+Zu>=r&&g+Zu<=a}function qa(t,e,n,r,a,i){if(i>e&&i>r||i<e&&i<r||r===e)return 0;var o=(i-e)/(r-e),u=r<e?1:-1;(o===1||o===0)&&(u=r<e?.5:-.5);var f=o*(n-t)+t;return f===a?1/0:f>a?u:0}var Ri=ll.CMD,ko=Math.PI*2,hk=1e-4;function vk(t,e){return Math.abs(t-e)<hk}var _n=[-1,-1,-1],wr=[-1,-1];function dk(){var t=wr[0];wr[0]=wr[1],wr[1]=t}function pk(t,e,n,r,a,i,o,u,f,c){if(c>e&&c>r&&c>i&&c>u||c<e&&c<r&&c<i&&c<u)return 0;var v=Qv(e,r,i,u,c,_n);if(v===0)return 0;for(var d=0,g=-1,p=void 0,y=void 0,_=0;_<v;_++){var S=_n[_],x=S===0||S===1?.5:1,M=tn(t,n,a,o,S);M<f||(g<0&&(g=J2(e,r,i,u,wr),wr[1]<wr[0]&&g>1&&dk(),p=tn(e,r,i,u,wr[0]),g>1&&(y=tn(e,r,i,u,wr[1]))),g===2?S<wr[0]?d+=p<e?x:-x:S<wr[1]?d+=y<p?x:-x:d+=u<y?x:-x:S<wr[0]?d+=p<e?x:-x:d+=u<p?x:-x)}return d}function gk(t,e,n,r,a,i,o,u){if(u>e&&u>r&&u>i||u<e&&u<r&&u<i)return 0;var f=x5(e,r,i,u,_n);if(f===0)return 0;var c=tR(e,r,i);if(c>=0&&c<=1){for(var v=0,d=Vn(e,r,i,c),g=0;g<f;g++){var p=_n[g]===0||_n[g]===1?.5:1,y=Vn(t,n,a,_n[g]);y<o||(_n[g]<c?v+=d<e?p:-p:v+=i<d?p:-p)}return v}else{var p=_n[0]===0||_n[0]===1?.5:1,y=Vn(t,n,a,_n[0]);return y<o?0:i<e?p:-p}}function mk(t,e,n,r,a,i,o,u){if(u-=e,u>n||u<-n)return 0;var f=Math.sqrt(n*n-u*u);_n[0]=-f,_n[1]=f;var c=Math.abs(r-a);if(c<1e-4)return 0;if(c>=ko-1e-4){r=0,a=ko;var v=i?1:-1;return o>=_n[0]+t&&o<=_n[1]+t?v:0}if(r>a){var d=r;r=a,a=d}r<0&&(r+=ko,a+=ko);for(var g=0,p=0;p<2;p++){var y=_n[p];if(y+t>o){var _=Math.atan2(u,y),v=i?1:-1;_<0&&(_=ko+_),(_>=r&&_<=a||_+ko>=r&&_+ko<=a)&&(_>Math.PI/2&&_<Math.PI*1.5&&(v=-v),g+=v)}}return g}function ER(t,e,n,r,a){for(var i=t.data,o=t.len(),u=0,f=0,c=0,v=0,d=0,g,p,y=0;y<o;){var _=i[y++],S=y===1;switch(_===Ri.M&&y>1&&(n||(u+=qa(f,c,v,d,r,a))),S&&(f=i[y],c=i[y+1],v=f,d=c),_){case Ri.M:v=i[y++],d=i[y++],f=v,c=d;break;case Ri.L:if(n){if(ls(f,c,i[y],i[y+1],e,r,a))return!0}else u+=qa(f,c,i[y],i[y+1],r,a)||0;f=i[y++],c=i[y++];break;case Ri.C:if(n){if(uk(f,c,i[y++],i[y++],i[y++],i[y++],i[y],i[y+1],e,r,a))return!0}else u+=pk(f,c,i[y++],i[y++],i[y++],i[y++],i[y],i[y+1],r,a)||0;f=i[y++],c=i[y++];break;case Ri.Q:if(n){if(fk(f,c,i[y++],i[y++],i[y],i[y+1],e,r,a))return!0}else u+=gk(f,c,i[y++],i[y++],i[y],i[y+1],r,a)||0;f=i[y++],c=i[y++];break;case Ri.A:var x=i[y++],M=i[y++],C=i[y++],T=i[y++],D=i[y++],R=i[y++];y+=1;var E=!!(1-i[y++]);g=Math.cos(D)*C+x,p=Math.sin(D)*T+M,S?(v=g,d=p):u+=qa(f,c,g,p,r,a);var z=(r-x)*T/C+x;if(n){if(ck(x,M,T,D,D+R,E,e,z,a))return!0}else u+=mk(x,M,T,D,D+R,E,z,a);f=Math.cos(D+R)*C+x,c=Math.sin(D+R)*T+M;break;case Ri.R:v=f=i[y++],d=c=i[y++];var I=i[y++],N=i[y++];if(g=v+I,p=d+N,n){if(ls(v,d,g,d,e,r,a)||ls(g,d,g,p,e,r,a)||ls(g,p,v,p,e,r,a)||ls(v,p,v,d,e,r,a))return!0}else u+=qa(g,d,g,p,r,a),u+=qa(v,p,v,d,r,a);break;case Ri.Z:if(n){if(ls(f,c,v,d,e,r,a))return!0}else u+=qa(f,c,v,d,r,a);f=v,c=d;break}}return!n&&!vk(c,d)&&(u+=qa(f,c,v,d,r,a)||0),u!==0}function yk(t,e,n){return ER(t,0,!1,e,n)}function _k(t,e,n,r){return ER(t,e,!0,n,r)}var LR=Qt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},tl),Sk={style:Qt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Hd.style)},My=ha.concat(["invisible","culling","z","z2","zlevel","parent"]),oe=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(f){n.buildPath(f,n.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var u=0;u<My.length;++u)a[My[u]]=this[My[u]];a.__dirty|=nr}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(n){var r=ae(n);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<r.length;i++){var o=r[i],u=n[o];o==="style"?this.style?st(this.style,u):this.useStyle(u):o==="shape"?st(this.shape,u):t.prototype.attrKV.call(this,o,u)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var n=this.style.fill;if(n!=="none"){if(pt(n)){var r=Pf(n,0);return r>.5?t_:r>.2?K5:e_}else if(n)return e_}return t_},e.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(pt(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=Pf(n,0)<J0;if(i===o)return r}},e.prototype.buildPath=function(n,r,a){},e.prototype.pathUpdated=function(){this.__dirty&=~Ss},e.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},e.prototype.createPathProxy=function(){this.path=new ll(!1)},e.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return!(r==null||r==="none"||!(n.lineWidth>0))},e.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,a=!n;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Ss)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),n=o.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var u=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||a){u.copy(n);var f=r.strokeNoScale?this.getLineScale():1,c=r.lineWidth;if(!this.hasFill()){var v=this.strokeContainThreshold;c=Math.max(c,v??4)}f>1e-10&&(u.width+=c/f,u.height+=c/f,u.x-=c/f/2,u.y-=c/f/2)}return u}return n},e.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect(),o=this.style;if(n=a[0],r=a[1],i.contain(n,r)){var u=this.path;if(this.hasStroke()){var f=o.lineWidth,c=o.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(this.hasFill()||(f=Math.max(f,this.strokeContainThreshold)),_k(u,f/c,n,r)))return!0}if(this.hasFill())return yk(u,n,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Ss,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(n){return this.animate("shape",n)},e.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):t.prototype.attrKV.call(this,n,r)},e.prototype.setShape=function(n,r){var a=this.shape;return a||(a=this.shape={}),typeof n=="string"?a[n]=r:st(a,n),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Ss)},e.prototype.createStyle=function(n){return rc(LR,n)},e.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=st({},this.shape))},e.prototype._applyStateObj=function(n,r,a,i,o,u){t.prototype._applyStateObj.call(this,n,r,a,i,o,u);var f=!(r&&i),c;if(r&&r.shape?o?i?c=r.shape:(c=st({},a.shape),st(c,r.shape)):(c=st({},i?this.shape:a.shape),st(c,r.shape)):f&&(c=a.shape),c)if(o){this.shape=st({},this.shape);for(var v={},d=ae(c),g=0;g<d.length;g++){var p=d[g];typeof c[p]=="object"?this.shape[p]=c[p]:v[p]=c[p]}this._transitionState(n,{shape:v},u)}else this.shape=c,this.dirtyShape()},e.prototype._mergeStates=function(n){for(var r=t.prototype._mergeStates.call(this,n),a,i=0;i<n.length;i++){var o=n[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(r.shape=a),r},e.prototype.getAnimationStyleProps=function(){return Sk},e.prototype.isZeroArea=function(){return!1},e.extend=function(n){var r=(function(i){ut(o,i);function o(u){var f=i.call(this,u)||this;return n.init&&n.init.call(f,u),f}return o.prototype.getDefaultStyle=function(){return Ht(n.style)},o.prototype.getDefaultShape=function(){return Ht(n.shape)},o})(e);for(var a in n)typeof n[a]=="function"&&(r.prototype[a]=n[a]);return r},e.initDefaultProps=(function(){var n=e.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=nr|vf|Ss})(),e})(vl),bk=Qt({strokeFirst:!0,font:il,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},LR),nd=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return r!=null&&r!=="none"&&n.lineWidth>0},e.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(n){return rc(bk,n)},e.prototype.setBoundingRect=function(n){this._rect=n},e.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var a=yS(r,n.font,n.textAlign,n.textBaseline);if(a.x+=n.x||0,a.y+=n.y||0,this.hasStroke()){var i=n.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=(function(){var n=e.prototype;n.dirtyRectTolerance=10})(),e})(vl);nd.prototype.type="tspan";var xk=Qt({x:0,y:0},tl),wk={style:Qt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Hd.style)};function Mk(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var pa=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(n){return rc(xk,n)},e.prototype._getSize=function(n){var r=this.style,a=r[n];if(a!=null)return a;var i=Mk(r.image)?r.image:this.__image;if(!i)return 0;var o=n==="width"?"height":"width",u=r[o];return u==null?i[n]:i[n]/i[o]*u},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return wk},e.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Wt(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},e})(vl);pa.prototype.type="image";function Ck(t,e){var n=e.x,r=e.y,a=e.width,i=e.height,o=e.r,u,f,c,v;a<0&&(n=n+a,a=-a),i<0&&(r=r+i,i=-i),typeof o=="number"?u=f=c=v=o:o instanceof Array?o.length===1?u=f=c=v=o[0]:o.length===2?(u=c=o[0],f=v=o[1]):o.length===3?(u=o[0],f=v=o[1],c=o[2]):(u=o[0],f=o[1],c=o[2],v=o[3]):u=f=c=v=0;var d;u+f>a&&(d=u+f,u*=a/d,f*=a/d),c+v>a&&(d=c+v,c*=a/d,v*=a/d),f+c>i&&(d=f+c,f*=i/d,c*=i/d),u+v>i&&(d=u+v,u*=i/d,v*=i/d),t.moveTo(n+u,r),t.lineTo(n+a-f,r),f!==0&&t.arc(n+a-f,r+f,f,-Math.PI/2,0),t.lineTo(n+a,r+i-c),c!==0&&t.arc(n+a-c,r+i-c,c,0,Math.PI/2),t.lineTo(n+v,r+i),v!==0&&t.arc(n+v,r+i-v,v,Math.PI/2,Math.PI),t.lineTo(n,r+u),u!==0&&t.arc(n+u,r+u,u,Math.PI,Math.PI*1.5)}var Cs=Math.round;function OR(t,e,n){if(e){var r=e.x1,a=e.x2,i=e.y1,o=e.y2;t.x1=r,t.x2=a,t.y1=i,t.y2=o;var u=n&&n.lineWidth;return u&&(Cs(r*2)===Cs(a*2)&&(t.x1=t.x2=Zo(r,u,!0)),Cs(i*2)===Cs(o*2)&&(t.y1=t.y2=Zo(i,u,!0))),t}}function zR(t,e,n){if(e){var r=e.x,a=e.y,i=e.width,o=e.height;t.x=r,t.y=a,t.width=i,t.height=o;var u=n&&n.lineWidth;return u&&(t.x=Zo(r,u,!0),t.y=Zo(a,u,!0),t.width=Math.max(Zo(r+i,u,!1)-t.x,i===0?0:1),t.height=Math.max(Zo(a+o,u,!1)-t.y,o===0?0:1)),t}}function Zo(t,e,n){if(!e)return t;var r=Cs(t*2);return(r+Cs(e))%2===0?r/2:(r+(n?1:-1))/2}var Tk=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})(),Ak={},be=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Tk},e.prototype.buildPath=function(n,r){var a,i,o,u;if(this.subPixelOptimize){var f=zR(Ak,r,this.style);a=f.x,i=f.y,o=f.width,u=f.height,f.r=r.r,r=f}else a=r.x,i=r.y,o=r.width,u=r.height;r.r?Ck(n,r):n.rect(a,i,o,u)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(oe);be.prototype.type="rect";var PC={fill:"#000"},HC=2,Dk={style:Qt({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},Hd.style)},Me=(function(t){ut(e,t);function e(n){var r=t.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=PC,r.attr(n),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n<this._children.length;n++){var r=this._children[n];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},e.prototype.updateTransform=function(){var n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(n){var r=this.innerTransformable;return r?r.getLocalTransform(n):t.prototype.getLocalTransform.call(this,n)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,zk(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=n},e.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new Wt(0,0,0,0),r=this._children,a=[],i=null,o=0;o<r.length;o++){var u=r[o],f=u.getBoundingRect(),c=u.getLocalTransform(a);c?(n.copy(f),n.applyTransform(c),i=i||n.clone(),i.union(n)):(i=i||f.clone(),i.union(f))}this._rect=i||n}return this._rect},e.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||PC},e.prototype.setTextContent=function(n){},e.prototype._mergeStyle=function(n,r){if(!r)return n;var a=r.rich,i=n.rich||a&&{};return st(n,r),a&&i?(this._mergeRich(i,a),n.rich=i):i&&(n.rich=i),n},e.prototype._mergeRich=function(n,r){for(var a=ae(r),i=0;i<a.length;i++){var o=a[i];n[o]=n[o]||{},st(n[o],r[o])}},e.prototype.getAnimationStyleProps=function(){return Dk},e.prototype._getOrCreateChild=function(n){var r=this._children[this._childCursor];return(!r||!(r instanceof n))&&(r=new n),this._children[this._childCursor++]=r,r.__zr=this.__zr,r.parent=this,r},e.prototype._updatePlainTexts=function(){var n=this.style,r=n.font||il,a=n.padding,i=qC(n),o=QB(i,n),u=Cy(n),f=!!n.backgroundColor,c=o.outerHeight,v=o.outerWidth,d=o.contentWidth,g=o.lines,p=o.lineHeight,y=this._defaultStyle;this.isTruncated=!!o.isTruncated;var _=n.x||0,S=n.y||0,x=n.align||y.align||"left",M=n.verticalAlign||y.verticalAlign||"top",C=_,T=bs(S,o.contentHeight,M);if(u||a){var D=pf(_,v,x),R=bs(S,c,M);u&&this._renderBackground(n,n,D,R,v,c)}T+=p/2,a&&(C=YC(_,x,a),M==="top"?T+=a[0]:M==="bottom"&&(T-=a[2]));for(var E=0,z=!1,I=jC("fill"in n?n.fill:(z=!0,y.fill)),N=UC("stroke"in n?n.stroke:!f&&(!y.autoStroke||z)?(E=HC,y.stroke):null),L=n.textShadowBlur>0,V=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),G=o.calculatedLineHeight,j=0;j<g.length;j++){var X=this._getOrCreateChild(nd),H=X.createStyle();X.useStyle(H),H.text=g[j],H.x=C,H.y=T,H.textAlign=x,H.textBaseline="middle",H.opacity=n.opacity,H.strokeFirst=!0,L&&(H.shadowBlur=n.textShadowBlur||0,H.shadowColor=n.textShadowColor||"transparent",H.shadowOffsetX=n.textShadowOffsetX||0,H.shadowOffsetY=n.textShadowOffsetY||0),H.stroke=N,H.fill=I,N&&(H.lineWidth=n.lineWidth||E,H.lineDash=n.lineDash,H.lineDashOffset=n.lineDashOffset||0),H.font=r,FC(H,n),T+=p,V&&X.setBoundingRect(new Wt(pf(H.x,d,H.textAlign),bs(H.y,G,H.textBaseline),d,G))}},e.prototype._updateRichTexts=function(){var n=this.style,r=qC(n),a=tk(r,n),i=a.width,o=a.outerWidth,u=a.outerHeight,f=n.padding,c=n.x||0,v=n.y||0,d=this._defaultStyle,g=n.align||d.align,p=n.verticalAlign||d.verticalAlign;this.isTruncated=!!a.isTruncated;var y=pf(c,o,g),_=bs(v,u,p),S=y,x=_;f&&(S+=f[3],x+=f[0]);var M=S+i;Cy(n)&&this._renderBackground(n,n,y,_,o,u);for(var C=!!n.backgroundColor,T=0;T<a.lines.length;T++){for(var D=a.lines[T],R=D.tokens,E=R.length,z=D.lineHeight,I=D.width,N=0,L=S,V=M,G=E-1,j=void 0;N<E&&(j=R[N],!j.align||j.align==="left");)this._placeToken(j,n,z,x,L,"left",C),I-=j.width,L+=j.width,N++;for(;G>=0&&(j=R[G],j.align==="right");)this._placeToken(j,n,z,x,V,"right",C),I-=j.width,V-=j.width,G--;for(L+=(i-(L-S)-(M-V)-I)/2;N<=G;)j=R[N],this._placeToken(j,n,z,x,L+j.width/2,"center",C),L+=j.width,N++;x+=z}},e.prototype._placeToken=function(n,r,a,i,o,u,f){var c=r.rich[n.styleName]||{};c.text=n.text;var v=n.verticalAlign,d=i+a/2;v==="top"?d=i+n.height/2:v==="bottom"&&(d=i+a-n.height/2);var g=!n.isLineHolder&&Cy(c);g&&this._renderBackground(c,r,u==="right"?o-n.width:u==="center"?o-n.width/2:o,d-n.height/2,n.width,n.height);var p=!!c.backgroundColor,y=n.textPadding;y&&(o=YC(o,u,y),d-=n.height/2-y[0]-n.innerHeight/2);var _=this._getOrCreateChild(nd),S=_.createStyle();_.useStyle(S);var x=this._defaultStyle,M=!1,C=0,T=jC("fill"in c?c.fill:"fill"in r?r.fill:(M=!0,x.fill)),D=UC("stroke"in c?c.stroke:"stroke"in r?r.stroke:!p&&!f&&(!x.autoStroke||M)?(C=HC,x.stroke):null),R=c.textShadowBlur>0||r.textShadowBlur>0;S.text=n.text,S.x=o,S.y=d,R&&(S.shadowBlur=c.textShadowBlur||r.textShadowBlur||0,S.shadowColor=c.textShadowColor||r.textShadowColor||"transparent",S.shadowOffsetX=c.textShadowOffsetX||r.textShadowOffsetX||0,S.shadowOffsetY=c.textShadowOffsetY||r.textShadowOffsetY||0),S.textAlign=u,S.textBaseline="middle",S.font=n.font||il,S.opacity=As(c.opacity,r.opacity,1),FC(S,c),D&&(S.lineWidth=As(c.lineWidth,r.lineWidth,C),S.lineDash=Pt(c.lineDash,r.lineDash),S.lineDashOffset=r.lineDashOffset||0,S.stroke=D),T&&(S.fill=T);var E=n.contentWidth,z=n.contentHeight;_.setBoundingRect(new Wt(pf(S.x,E,S.textAlign),bs(S.y,z,S.textBaseline),E,z))},e.prototype._renderBackground=function(n,r,a,i,o,u){var f=n.backgroundColor,c=n.borderWidth,v=n.borderColor,d=f&&f.image,g=f&&!d,p=n.borderRadius,y=this,_,S;if(g||n.lineHeight||c&&v){_=this._getOrCreateChild(be),_.useStyle(_.createStyle()),_.style.fill=null;var x=_.shape;x.x=a,x.y=i,x.width=o,x.height=u,x.r=p,_.dirtyShape()}if(g){var M=_.style;M.fill=f||null,M.fillOpacity=Pt(n.fillOpacity,1)}else if(d){S=this._getOrCreateChild(pa),S.onload=function(){y.dirtyStyle()};var C=S.style;C.image=f.image,C.x=a,C.y=i,C.width=o,C.height=u}if(c&&v){var M=_.style;M.lineWidth=c,M.stroke=v,M.strokeOpacity=Pt(n.strokeOpacity,1),M.lineDash=n.borderDash,M.lineDashOffset=n.borderDashOffset||0,_.strokeContainThreshold=0,_.hasFill()&&_.hasStroke()&&(M.strokeFirst=!0,M.lineWidth*=2)}var T=(_||S).style;T.shadowBlur=n.shadowBlur||0,T.shadowColor=n.shadowColor||"transparent",T.shadowOffsetX=n.shadowOffsetX||0,T.shadowOffsetY=n.shadowOffsetY||0,T.opacity=As(n.opacity,r.opacity,1)},e.makeFont=function(n){var r="";return Ok(n)&&(r=[n.fontStyle,n.fontWeight,Lk(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&qr(r)||n.textFont||n.font},e})(vl),Rk={left:!0,right:1,center:1},Ek={top:1,bottom:1,middle:1},VC=["fontStyle","fontWeight","fontSize","fontFamily"];function Lk(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?aS+"px":t+"px"}function FC(t,e){for(var n=0;n<VC.length;n++){var r=VC[n],a=e[r];a!=null&&(t[r]=a)}}function Ok(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function zk(t){return GC(t),k(t.rich,GC),t}function GC(t){if(t){t.font=Me.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||Rk[e]?e:"left";var n=t.verticalAlign;n==="center"&&(n="middle"),t.verticalAlign=n==null||Ek[n]?n:"top";var r=t.padding;r&&(t.padding=uS(t.padding))}}function UC(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function jC(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function YC(t,e,n){return e==="right"?t-n[1]:e==="center"?t+n[3]/2-n[1]/2:t+n[3]}function qC(t){var e=t.text;return e!=null&&(e+=""),e}function Cy(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var jt=xe(),Nk=function(t,e,n,r){if(r){var a=jt(r);a.dataIndex=n,a.dataType=e,a.seriesIndex=t,a.ssrType="chart",r.type==="group"&&r.traverse(function(i){var o=jt(i);o.seriesIndex=t,o.dataIndex=n,o.dataType=e,o.ssrType="chart"})}},XC=1,ZC={},NR=xe(),TS=xe(),AS=0,Vd=1,Fd=2,Er=["emphasis","blur","select"],rd=["normal","emphasis","blur","select"],Ik=10,Bk=9,el="highlight",zv="downplay",Mf="select",Nv="unselect",Cf="toggleSelect";function ss(t){return t!=null&&t!=="none"}function Gd(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function IR(t){Gd(t,"emphasis",Fd)}function BR(t){t.hoverState===Fd&&Gd(t,"normal",AS)}function DS(t){Gd(t,"blur",Vd)}function kR(t){t.hoverState===Vd&&Gd(t,"normal",AS)}function kk(t){t.selected=!0}function Pk(t){t.selected=!1}function $C(t,e,n){e(t,n)}function ni(t,e,n){$C(t,e,n),t.isGroup&&t.traverse(function(r){$C(r,e,n)})}function WC(t,e){switch(e){case"emphasis":t.hoverState=Fd;break;case"normal":t.hoverState=AS;break;case"blur":t.hoverState=Vd;break;case"select":t.selected=!0}}function Hk(t,e,n,r){for(var a=t.style,i={},o=0;o<e.length;o++){var u=e[o],f=a[u];i[u]=f??(r&&r[u])}for(var o=0;o<t.animators.length;o++){var c=t.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName==="style"&&c.saveTo(i,e)}return i}function Vk(t,e,n,r){var a=n&&Yt(n,"select")>=0,i=!1;if(t instanceof oe){var o=NR(t),u=a&&o.selectFill||o.normalFill,f=a&&o.selectStroke||o.normalStroke;if(ss(u)||ss(f)){r=r||{};var c=r.style||{};c.fill==="inherit"?(i=!0,r=st({},r),c=st({},c),c.fill=u):!ss(c.fill)&&ss(u)?(i=!0,r=st({},r),c=st({},c),c.fill=X0(u)):!ss(c.stroke)&&ss(f)&&(i||(r=st({},r),c=st({},c)),c.stroke=X0(f)),r.style=c}}if(r&&r.z2==null){i||(r=st({},r));var v=t.z2EmphasisLift;r.z2=t.z2+(v??Ik)}return r}function Fk(t,e,n){if(n&&n.z2==null){n=st({},n);var r=t.z2SelectLift;n.z2=t.z2+(r??Bk)}return n}function Gk(t,e,n){var r=Yt(t.currentStates,e)>=0,a=t.style.opacity,i=r?null:Hk(t,["opacity"],e,{opacity:1});n=n||{};var o=n.style||{};return o.opacity==null&&(n=st({},n),o=st({opacity:r?a:i.opacity*.1},o),n.style=o),n}function Ty(t,e){var n=this.states[t];if(this.style){if(t==="emphasis")return Vk(this,t,e,n);if(t==="blur")return Gk(this,t,n);if(t==="select")return Fk(this,t,n)}return n}function Uk(t){t.stateProxy=Ty;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=Ty),n&&(n.stateProxy=Ty)}function QC(t,e){!FR(t,e)&&!t.__highByOuter&&ni(t,IR)}function KC(t,e){!FR(t,e)&&!t.__highByOuter&&ni(t,BR)}function ad(t,e){t.__highByOuter|=1<<(e||0),ni(t,IR)}function id(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&ni(t,BR)}function jk(t){ni(t,DS)}function PR(t){ni(t,kR)}function HR(t){ni(t,kk)}function VR(t){ni(t,Pk)}function FR(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function GR(t){var e=t.getModel(),n=[],r=[];e.eachComponent(function(a,i){var o=TS(i),u=a==="series",f=u?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!u&&r.push(f),o.isBlured&&(f.group.traverse(function(c){kR(c)}),u&&n.push(i)),o.isBlured=!1}),k(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(n,!1,e)})}function s_(t,e,n,r){var a=r.getModel();n=n||"coordinateSystem";function i(c,v){for(var d=0;d<v.length;d++){var g=c.getItemGraphicEl(v[d]);g&&PR(g)}}if(t!=null&&!(!e||e==="none")){var o=a.getSeriesByIndex(t),u=o.coordinateSystem;u&&u.master&&(u=u.master);var f=[];a.eachSeries(function(c){var v=o===c,d=c.coordinateSystem;d&&d.master&&(d=d.master);var g=d&&u?d===u:v;if(!(n==="series"&&!v||n==="coordinateSystem"&&!g||e==="series"&&v)){var p=r.getViewOfSeriesModel(c);if(p.group.traverse(function(S){S.__highByOuter&&v&&e==="self"||DS(S)}),vn(e))i(c.getData(),e);else if(_t(e))for(var y=ae(e),_=0;_<y.length;_++)i(c.getData(y[_]),e[y[_]]);f.push(c),TS(c).isBlured=!0}}),a.eachComponent(function(c,v){if(c!=="series"){var d=r.getViewOfComponentModel(v);d&&d.toggleBlurSeries&&d.toggleBlurSeries(f,!0,a)}})}}function u_(t,e,n){if(!(t==null||e==null)){var r=n.getModel().getComponent(t,e);if(r){TS(r).isBlured=!0;var a=n.getViewOfComponentModel(r);!a||!a.focusBlurEnabled||a.group.traverse(function(i){DS(i)})}}}function Yk(t,e,n){var r=t.seriesIndex,a=t.getData(e.dataType);if(a){var i=ol(a,e);i=(ct(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var u=a.count(),f=0;!o&&f<u;)o=a.getItemGraphicEl(f++);if(o){var c=jt(o);s_(r,c.focus,c.blurScope,n)}else{var v=t.get(["emphasis","focus"]),d=t.get(["emphasis","blurScope"]);v!=null&&s_(r,v,d,n)}}}function RS(t,e,n,r){var a={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||n==null)return a;var i=r.getModel().getComponent(t,e);if(!i)return a;var o=r.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var u=o.findHighDownDispatchers(n),f,c=0;c<u.length;c++)if(jt(u[c]).focus==="self"){f=!0;break}return{focusSelf:f,dispatchers:u}}function qk(t,e,n){var r=jt(t),a=RS(r.componentMainType,r.componentIndex,r.componentHighDownName,n),i=a.dispatchers,o=a.focusSelf;i?(o&&u_(r.componentMainType,r.componentIndex,n),k(i,function(u){return QC(u,e)})):(s_(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&u_(r.componentMainType,r.componentIndex,n),QC(t,e))}function Xk(t,e,n){GR(n);var r=jt(t),a=RS(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;a?k(a,function(i){return KC(i,e)}):KC(t,e)}function Zk(t,e,n){if(c_(e)){var r=e.dataType,a=t.getData(r),i=ol(a,e);ct(i)||(i=[i]),t[e.type===Cf?"toggleSelect":e.type===Mf?"select":"unselect"](i,r)}}function JC(t){var e=t.getAllData();k(e,function(n){var r=n.data,a=n.type;r.eachItemGraphicEl(function(i,o){t.isSelected(o,a)?HR(i):VR(i)})})}function $k(t){var e=[];return t.eachSeries(function(n){var r=n.getAllData();k(r,function(a){a.data;var i=a.type,o=n.getSelectedDataIndices();if(o.length>0){var u={dataIndex:o,seriesIndex:n.seriesIndex};i!=null&&(u.dataType=i),e.push(u)}})}),e}function Uf(t,e,n){UR(t,!0),ni(t,Uk),Qk(t,e,n)}function Wk(t){UR(t,!1)}function jf(t,e,n,r){r?Wk(t):Uf(t,e,n)}function Qk(t,e,n){var r=jt(t);e!=null?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var tT=["emphasis","blur","select"],Kk={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function od(t,e,n,r){n=n||"itemStyle";for(var a=0;a<tT.length;a++){var i=tT[a],o=e.getModel([i,n]),u=t.ensureState(i);u.style=o[Kk[n]]()}}function UR(t,e){var n=e===!1,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function f_(t){return!!(t&&t.__highDownDispatcher)}function Jk(t){var e=ZC[t];return e==null&&XC<=32&&(e=ZC[t]=XC++),e}function c_(t){var e=t.type;return e===Mf||e===Nv||e===Cf}function eT(t){var e=t.type;return e===el||e===zv}function tP(t){var e=NR(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}var us=ll.CMD,eP=[[],[],[]],nT=Math.sqrt,nP=Math.atan2;function rP(t,e){if(e){var n=t.data,r=t.len(),a,i,o,u,f,c,v=us.M,d=us.C,g=us.L,p=us.R,y=us.A,_=us.Q;for(o=0,u=0;o<r;){switch(a=n[o++],u=o,i=0,a){case v:i=1;break;case g:i=1;break;case d:i=3;break;case _:i=2;break;case y:var S=e[4],x=e[5],M=nT(e[0]*e[0]+e[1]*e[1]),C=nT(e[2]*e[2]+e[3]*e[3]),T=nP(-e[1]/C,e[0]/M);n[o]*=M,n[o++]+=S,n[o]*=C,n[o++]+=x,n[o++]*=M,n[o++]*=C,n[o++]+=T,n[o++]+=T,o+=2,u=o;break;case p:c[0]=n[o++],c[1]=n[o++],Mn(c,c,e),n[u++]=c[0],n[u++]=c[1],c[0]+=n[o++],c[1]+=n[o++],Mn(c,c,e),n[u++]=c[0],n[u++]=c[1]}for(f=0;f<i;f++){var D=eP[f];D[0]=n[o++],D[1]=n[o++],Mn(D,D,e),n[u++]=D[0],n[u++]=D[1]}}t.increaseVersion()}}var Ay=Math.sqrt,Xh=Math.sin,Zh=Math.cos,$u=Math.PI;function rT(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function h_(t,e){return(t[0]*e[0]+t[1]*e[1])/(rT(t)*rT(e))}function aT(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(h_(t,e))}function iT(t,e,n,r,a,i,o,u,f,c,v){var d=f*($u/180),g=Zh(d)*(t-n)/2+Xh(d)*(e-r)/2,p=-1*Xh(d)*(t-n)/2+Zh(d)*(e-r)/2,y=g*g/(o*o)+p*p/(u*u);y>1&&(o*=Ay(y),u*=Ay(y));var _=(a===i?-1:1)*Ay((o*o*(u*u)-o*o*(p*p)-u*u*(g*g))/(o*o*(p*p)+u*u*(g*g)))||0,S=_*o*p/u,x=_*-u*g/o,M=(t+n)/2+Zh(d)*S-Xh(d)*x,C=(e+r)/2+Xh(d)*S+Zh(d)*x,T=aT([1,0],[(g-S)/o,(p-x)/u]),D=[(g-S)/o,(p-x)/u],R=[(-1*g-S)/o,(-1*p-x)/u],E=aT(D,R);if(h_(D,R)<=-1&&(E=$u),h_(D,R)>=1&&(E=0),E<0){var z=Math.round(E/$u*1e6)/1e6;E=$u*2+z%2*$u}v.addData(c,M,C,o,u,T,E,d,i)}var aP=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,iP=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function oP(t){var e=new ll;if(!t)return e;var n=0,r=0,a=n,i=r,o,u=ll.CMD,f=t.match(aP);if(!f)return e;for(var c=0;c<f.length;c++){for(var v=f[c],d=v.charAt(0),g=void 0,p=v.match(iP)||[],y=p.length,_=0;_<y;_++)p[_]=parseFloat(p[_]);for(var S=0;S<y;){var x=void 0,M=void 0,C=void 0,T=void 0,D=void 0,R=void 0,E=void 0,z=n,I=r,N=void 0,L=void 0;switch(d){case"l":n+=p[S++],r+=p[S++],g=u.L,e.addData(g,n,r);break;case"L":n=p[S++],r=p[S++],g=u.L,e.addData(g,n,r);break;case"m":n+=p[S++],r+=p[S++],g=u.M,e.addData(g,n,r),a=n,i=r,d="l";break;case"M":n=p[S++],r=p[S++],g=u.M,e.addData(g,n,r),a=n,i=r,d="L";break;case"h":n+=p[S++],g=u.L,e.addData(g,n,r);break;case"H":n=p[S++],g=u.L,e.addData(g,n,r);break;case"v":r+=p[S++],g=u.L,e.addData(g,n,r);break;case"V":r=p[S++],g=u.L,e.addData(g,n,r);break;case"C":g=u.C,e.addData(g,p[S++],p[S++],p[S++],p[S++],p[S++],p[S++]),n=p[S-2],r=p[S-1];break;case"c":g=u.C,e.addData(g,p[S++]+n,p[S++]+r,p[S++]+n,p[S++]+r,p[S++]+n,p[S++]+r),n+=p[S-2],r+=p[S-1];break;case"S":x=n,M=r,N=e.len(),L=e.data,o===u.C&&(x+=n-L[N-4],M+=r-L[N-3]),g=u.C,z=p[S++],I=p[S++],n=p[S++],r=p[S++],e.addData(g,x,M,z,I,n,r);break;case"s":x=n,M=r,N=e.len(),L=e.data,o===u.C&&(x+=n-L[N-4],M+=r-L[N-3]),g=u.C,z=n+p[S++],I=r+p[S++],n+=p[S++],r+=p[S++],e.addData(g,x,M,z,I,n,r);break;case"Q":z=p[S++],I=p[S++],n=p[S++],r=p[S++],g=u.Q,e.addData(g,z,I,n,r);break;case"q":z=p[S++]+n,I=p[S++]+r,n+=p[S++],r+=p[S++],g=u.Q,e.addData(g,z,I,n,r);break;case"T":x=n,M=r,N=e.len(),L=e.data,o===u.Q&&(x+=n-L[N-4],M+=r-L[N-3]),n=p[S++],r=p[S++],g=u.Q,e.addData(g,x,M,n,r);break;case"t":x=n,M=r,N=e.len(),L=e.data,o===u.Q&&(x+=n-L[N-4],M+=r-L[N-3]),n+=p[S++],r+=p[S++],g=u.Q,e.addData(g,x,M,n,r);break;case"A":C=p[S++],T=p[S++],D=p[S++],R=p[S++],E=p[S++],z=n,I=r,n=p[S++],r=p[S++],g=u.A,iT(z,I,n,r,R,E,C,T,D,g,e);break;case"a":C=p[S++],T=p[S++],D=p[S++],R=p[S++],E=p[S++],z=n,I=r,n+=p[S++],r+=p[S++],g=u.A,iT(z,I,n,r,R,E,C,T,D,g,e);break}}(d==="z"||d==="Z")&&(g=u.Z,e.addData(g),n=a,r=i),o=g}return e.toStatic(),e}var jR=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(n){},e})(oe);function YR(t){return t.setData!=null}function qR(t,e){var n=oP(t),r=st({},e);return r.buildPath=function(a){if(YR(a)){a.setData(n.data);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=a;n.rebuildPath(i,1)}},r.applyTransform=function(a){rP(n,a),this.dirtyShape()},r}function lP(t,e){return new jR(qR(t,e))}function sP(t,e){var n=qR(t,e),r=(function(a){ut(i,a);function i(o){var u=a.call(this,o)||this;return u.applyTransform=n.applyTransform,u.buildPath=n.buildPath,u}return i})(jR);return r}function uP(t,e){for(var n=[],r=t.length,a=0;a<r;a++){var i=t[a];n.push(i.getUpdatedPathProxy(!0))}var o=new oe(e);return o.createPathProxy(),o.buildPath=function(u){if(YR(u)){u.appendPath(n);var f=u.getContext();f&&u.rebuildPath(f,1)}},o}var fP=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})(),uc=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new fP},e.prototype.buildPath=function(n,r){n.moveTo(r.cx+r.r,r.cy),n.arc(r.cx,r.cy,r.r,0,Math.PI*2)},e})(oe);uc.prototype.type="circle";var cP=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})(),Ud=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new cP},e.prototype.buildPath=function(n,r){var a=.5522848,i=r.cx,o=r.cy,u=r.rx,f=r.ry,c=u*a,v=f*a;n.moveTo(i-u,o),n.bezierCurveTo(i-u,o-v,i-c,o-f,i,o-f),n.bezierCurveTo(i+c,o-f,i+u,o-v,i+u,o),n.bezierCurveTo(i+u,o+v,i+c,o+f,i,o+f),n.bezierCurveTo(i-c,o+f,i-u,o+v,i-u,o),n.closePath()},e})(oe);Ud.prototype.type="ellipse";var XR=Math.PI,Dy=XR*2,Po=Math.sin,fs=Math.cos,hP=Math.acos,on=Math.atan2,oT=Math.abs,Tf=Math.sqrt,gf=Math.max,ia=Math.min,Ur=1e-4;function vP(t,e,n,r,a,i,o,u){var f=n-t,c=r-e,v=o-a,d=u-i,g=d*f-v*c;if(!(g*g<Ur))return g=(v*(e-i)-d*(t-a))/g,[t+g*f,e+g*c]}function $h(t,e,n,r,a,i,o){var u=t-n,f=e-r,c=(o?i:-i)/Tf(u*u+f*f),v=c*f,d=-c*u,g=t+v,p=e+d,y=n+v,_=r+d,S=(g+y)/2,x=(p+_)/2,M=y-g,C=_-p,T=M*M+C*C,D=a-i,R=g*_-y*p,E=(C<0?-1:1)*Tf(gf(0,D*D*T-R*R)),z=(R*C-M*E)/T,I=(-R*M-C*E)/T,N=(R*C+M*E)/T,L=(-R*M+C*E)/T,V=z-S,G=I-x,j=N-S,X=L-x;return V*V+G*G>j*j+X*X&&(z=N,I=L),{cx:z,cy:I,x0:-v,y0:-d,x1:z*(a/D-1),y1:I*(a/D-1)}}function dP(t){var e;if(ct(t)){var n=t.length;if(!n)return t;n===1?e=[t[0],t[0],0,0]:n===2?e=[t[0],t[0],t[1],t[1]]:n===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function pP(t,e){var n,r=gf(e.r,0),a=gf(e.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var u=r;r=a,a=u}var f=e.startAngle,c=e.endAngle;if(!(isNaN(f)||isNaN(c))){var v=e.cx,d=e.cy,g=!!e.clockwise,p=oT(c-f),y=p>Dy&&p%Dy;if(y>Ur&&(p=y),!(r>Ur))t.moveTo(v,d);else if(p>Dy-Ur)t.moveTo(v+r*fs(f),d+r*Po(f)),t.arc(v,d,r,f,c,!g),a>Ur&&(t.moveTo(v+a*fs(c),d+a*Po(c)),t.arc(v,d,a,c,f,g));else{var _=void 0,S=void 0,x=void 0,M=void 0,C=void 0,T=void 0,D=void 0,R=void 0,E=void 0,z=void 0,I=void 0,N=void 0,L=void 0,V=void 0,G=void 0,j=void 0,X=r*fs(f),H=r*Po(f),Q=a*fs(c),Z=a*Po(c),J=p>Ur;if(J){var ot=e.cornerRadius;ot&&(n=dP(ot),_=n[0],S=n[1],x=n[2],M=n[3]);var P=oT(r-a)/2;if(C=ia(P,x),T=ia(P,M),D=ia(P,_),R=ia(P,S),I=E=gf(C,T),N=z=gf(D,R),(E>Ur||z>Ur)&&(L=r*fs(c),V=r*Po(c),G=a*fs(f),j=a*Po(f),p<XR)){var q=vP(X,H,G,j,L,V,Q,Z);if(q){var rt=X-q[0],it=H-q[1],ft=L-q[0],gt=V-q[1],wt=1/Po(hP((rt*ft+it*gt)/(Tf(rt*rt+it*it)*Tf(ft*ft+gt*gt)))/2),Kt=Tf(q[0]*q[0]+q[1]*q[1]);I=ia(E,(r-Kt)/(wt+1)),N=ia(z,(a-Kt)/(wt-1))}}}if(!J)t.moveTo(v+X,d+H);else if(I>Ur){var St=ia(x,I),te=ia(M,I),bt=$h(G,j,X,H,r,St,g),Nt=$h(L,V,Q,Z,r,te,g);t.moveTo(v+bt.cx+bt.x0,d+bt.cy+bt.y0),I<E&&St===te?t.arc(v+bt.cx,d+bt.cy,I,on(bt.y0,bt.x0),on(Nt.y0,Nt.x0),!g):(St>0&&t.arc(v+bt.cx,d+bt.cy,St,on(bt.y0,bt.x0),on(bt.y1,bt.x1),!g),t.arc(v,d,r,on(bt.cy+bt.y1,bt.cx+bt.x1),on(Nt.cy+Nt.y1,Nt.cx+Nt.x1),!g),te>0&&t.arc(v+Nt.cx,d+Nt.cy,te,on(Nt.y1,Nt.x1),on(Nt.y0,Nt.x0),!g))}else t.moveTo(v+X,d+H),t.arc(v,d,r,f,c,!g);if(!(a>Ur)||!J)t.lineTo(v+Q,d+Z);else if(N>Ur){var St=ia(_,N),te=ia(S,N),bt=$h(Q,Z,L,V,a,-te,g),Nt=$h(X,H,G,j,a,-St,g);t.lineTo(v+bt.cx+bt.x0,d+bt.cy+bt.y0),N<z&&St===te?t.arc(v+bt.cx,d+bt.cy,N,on(bt.y0,bt.x0),on(Nt.y0,Nt.x0),!g):(te>0&&t.arc(v+bt.cx,d+bt.cy,te,on(bt.y0,bt.x0),on(bt.y1,bt.x1),!g),t.arc(v,d,a,on(bt.cy+bt.y1,bt.cx+bt.x1),on(Nt.cy+Nt.y1,Nt.cx+Nt.x1),g),St>0&&t.arc(v+Nt.cx,d+Nt.cy,St,on(Nt.y1,Nt.x1),on(Nt.y0,Nt.x0),!g))}else t.lineTo(v+Q,d+Z),t.arc(v,d,a,c,f,g)}t.closePath()}}}var gP=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t})(),ri=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new gP},e.prototype.buildPath=function(n,r){pP(n,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(oe);ri.prototype.type="sector";var mP=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})(),jd=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new mP},e.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.PI*2;n.moveTo(a+r.r,i),n.arc(a,i,r.r,0,o,!1),n.moveTo(a+r.r0,i),n.arc(a,i,r.r0,0,o,!0)},e})(oe);jd.prototype.type="ring";function yP(t,e,n,r){var a=[],i=[],o=[],u=[],f,c,v,d;if(r){v=[1/0,1/0],d=[-1/0,-1/0];for(var g=0,p=t.length;g<p;g++)Pi(v,v,t[g]),Hi(d,d,t[g]);Pi(v,v,r[0]),Hi(d,d,r[1])}for(var g=0,p=t.length;g<p;g++){var y=t[g];if(n)f=t[g?g-1:p-1],c=t[(g+1)%p];else if(g===0||g===p-1){a.push(F2(t[g]));continue}else f=t[g-1],c=t[g+1];G2(i,c,f),Tv(i,i,e);var _=qv(y,f),S=qv(y,c),x=_+S;x!==0&&(_/=x,S/=x),Tv(o,i,-_),Tv(u,i,S);var M=V0([],y,o),C=V0([],y,u);r&&(Hi(M,M,v),Pi(M,M,d),Hi(C,C,v),Pi(C,C,d)),a.push(M),a.push(C)}return n&&a.push(a.shift()),a}function ZR(t,e,n){var r=e.smooth,a=e.points;if(a&&a.length>=2){if(r){var i=yP(a,r,n,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var o=a.length,u=0;u<(n?o:o-1);u++){var f=i[u*2],c=i[u*2+1],v=a[(u+1)%o];t.bezierCurveTo(f[0],f[1],c[0],c[1],v[0],v[1])}}else{t.moveTo(a[0][0],a[0][1]);for(var u=1,d=a.length;u<d;u++)t.lineTo(a[u][0],a[u][1])}n&&t.closePath()}}var _P=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})(),fc=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new _P},e.prototype.buildPath=function(n,r){ZR(n,r,!0)},e})(oe);fc.prototype.type="polygon";var SP=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})(),dl=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new SP},e.prototype.buildPath=function(n,r){ZR(n,r,!1)},e})(oe);dl.prototype.type="polyline";var bP={},xP=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})(),Ja=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new xP},e.prototype.buildPath=function(n,r){var a,i,o,u;if(this.subPixelOptimize){var f=OR(bP,r,this.style);a=f.x1,i=f.y1,o=f.x2,u=f.y2}else a=r.x1,i=r.y1,o=r.x2,u=r.y2;var c=r.percent;c!==0&&(n.moveTo(a,i),c<1&&(o=a*(1-c)+o*c,u=i*(1-c)+u*c),n.lineTo(o,u))},e.prototype.pointAt=function(n){var r=this.shape;return[r.x1*(1-n)+r.x2*n,r.y1*(1-n)+r.y2*n]},e})(oe);Ja.prototype.type="line";var kn=[],wP=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function lT(t,e,n){var r=t.cpx2,a=t.cpy2;return r!=null||a!=null?[(n?vC:tn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?vC:tn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?dC:Vn)(t.x1,t.cpx1,t.x2,e),(n?dC:Vn)(t.y1,t.cpy1,t.y2,e)]}var Yd=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new wP},e.prototype.buildPath=function(n,r){var a=r.x1,i=r.y1,o=r.x2,u=r.y2,f=r.cpx1,c=r.cpy1,v=r.cpx2,d=r.cpy2,g=r.percent;g!==0&&(n.moveTo(a,i),v==null||d==null?(g<1&&(Jv(a,f,o,g,kn),f=kn[1],o=kn[2],Jv(i,c,u,g,kn),c=kn[1],u=kn[2]),n.quadraticCurveTo(f,c,o,u)):(g<1&&(Kv(a,f,v,o,g,kn),f=kn[1],v=kn[2],o=kn[3],Kv(i,c,d,u,g,kn),c=kn[1],d=kn[2],u=kn[3]),n.bezierCurveTo(f,c,v,d,o,u)))},e.prototype.pointAt=function(n){return lT(this.shape,n,!1)},e.prototype.tangentAt=function(n){var r=lT(this.shape,n,!0);return U2(r,r)},e})(oe);Yd.prototype.type="bezier-curve";var MP=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),cc=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new MP},e.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.max(r.r,0),u=r.startAngle,f=r.endAngle,c=r.clockwise,v=Math.cos(u),d=Math.sin(u);n.moveTo(v*o+a,d*o+i),n.arc(a,i,o,u,f,!c)},e})(oe);cc.prototype.type="arc";var $R=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="compound",n}return e.prototype._updatePathDirty=function(){for(var n=this.shape.paths,r=this.shapeChanged(),a=0;a<n.length;a++)r=r||n[a].shapeChanged();r&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],r=this.getGlobalScale(),a=0;a<n.length;a++)n[a].path||n[a].createPathProxy(),n[a].path.setScale(r[0],r[1],n[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(n,r){for(var a=r.paths||[],i=0;i<a.length;i++)a[i].buildPath(n,a[i].shape,!0)},e.prototype.afterBrush=function(){for(var n=this.shape.paths||[],r=0;r<n.length;r++)n[r].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),oe.prototype.getBoundingRect.call(this)},e})(oe),WR=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,n){this.colorStops.push({offset:e,color:n})},t})(),ES=(function(t){ut(e,t);function e(n,r,a,i,o,u){var f=t.call(this,o)||this;return f.x=n??0,f.y=r??0,f.x2=a??1,f.y2=i??0,f.type="linear",f.global=u||!1,f}return e})(WR),QR=(function(t){ut(e,t);function e(n,r,a,i,o){var u=t.call(this,i)||this;return u.x=n??.5,u.y=r??.5,u.r=a??.5,u.type="radial",u.global=o||!1,u}return e})(WR),Ho=[0,0],Vo=[0,0],Wh=new Et,Qh=new Et,ld=(function(){function t(e,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new Et;for(var r=0;r<2;r++)this._axes[r]=new Et;e&&this.fromBoundingRect(e,n)}return t.prototype.fromBoundingRect=function(e,n){var r=this._corners,a=this._axes,i=e.x,o=e.y,u=i+e.width,f=o+e.height;if(r[0].set(i,o),r[1].set(u,o),r[2].set(u,f),r[3].set(i,f),n)for(var c=0;c<4;c++)r[c].transform(n);Et.sub(a[0],r[1],r[0]),Et.sub(a[1],r[3],r[0]),a[0].normalize(),a[1].normalize();for(var c=0;c<2;c++)this._origin[c]=a[c].dot(r[0])},t.prototype.intersect=function(e,n){var r=!0,a=!n;return Wh.set(1/0,1/0),Qh.set(0,0),!this._intersectCheckOneSide(this,e,Wh,Qh,a,1)&&(r=!1,a)||!this._intersectCheckOneSide(e,this,Wh,Qh,a,-1)&&(r=!1,a)||a||Et.copy(n,r?Wh:Qh),r},t.prototype._intersectCheckOneSide=function(e,n,r,a,i,o){for(var u=!0,f=0;f<2;f++){var c=this._axes[f];if(this._getProjMinMaxOnAxis(f,e._corners,Ho),this._getProjMinMaxOnAxis(f,n._corners,Vo),Ho[1]<Vo[0]||Ho[0]>Vo[1]){if(u=!1,i)return u;var v=Math.abs(Vo[0]-Ho[1]),d=Math.abs(Ho[0]-Vo[1]);Math.min(v,d)>a.len()&&(v<d?Et.scale(a,c,-v*o):Et.scale(a,c,d*o))}else if(r){var v=Math.abs(Vo[0]-Ho[1]),d=Math.abs(Ho[0]-Vo[1]);Math.min(v,d)<r.len()&&(v<d?Et.scale(r,c,v*o):Et.scale(r,c,-d*o))}}return u},t.prototype._getProjMinMaxOnAxis=function(e,n,r){for(var a=this._axes[e],i=this._origin,o=n[0].dot(a)+i[e],u=o,f=o,c=1;c<n.length;c++){var v=n[c].dot(a)+i[e];u=Math.min(v,u),f=Math.max(v,f)}r[0]=u,r[1]=f},t})(),CP=[],KR=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return e.prototype.traverse=function(n,r){n.call(r,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(n,r){r?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},e.prototype.addDisplayables=function(n,r){r=r||!1;for(var a=0;a<n.length;a++)this.addDisplayable(n[a],r)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(n){for(var r=this._cursor;r<this._displayables.length;r++)n&&n(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)n&&n(this._temporaryDisplayables[r])},e.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var r=this._displayables[n];r.parent=this,r.update(),r.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var r=this._temporaryDisplayables[n];r.parent=this,r.update(),r.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new Wt(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var a=this._displayables[r],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(CP)),n.union(i)}this._rect=n}return this._rect},e.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var u=this._displayables[o];if(u.contain(n,r))return!0}return!1},e})(vl),TP=xe();function LS(t,e,n,r,a){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var u=e&&e.isAnimationEnabled(),f=t==="update";if(u){var c=void 0,v=void 0,d=void 0;r?(c=Pt(r.duration,200),v=Pt(r.easing,"cubicOut"),d=0):(c=e.getShallow(f?"animationDurationUpdate":"animationDuration"),v=e.getShallow(f?"animationEasingUpdate":"animationEasing"),d=e.getShallow(f?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(c=i.duration),i.easing!=null&&(v=i.easing),i.delay!=null&&(d=i.delay)),Rt(d)&&(d=d(n,a)),Rt(c)&&(c=c(n));var g={duration:c||0,delay:d,easing:v};return g}else return null}function OS(t,e,n,r,a,i,o){var u=!1,f;Rt(a)?(o=i,i=a,a=null):_t(a)&&(i=a.cb,o=a.during,u=a.isFrom,f=a.removeOpt,a=a.dataIndex);var c=t==="leave";c||e.stopAnimation("leave");var v=LS(t,r,a,c?f||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,a):null);if(v&&v.duration>0){var d=v.duration,g=v.delay,p=v.easing,y={duration:d,delay:g||0,easing:p,done:i,force:!!i||!!o,setToFinal:!c,scope:t,during:o};u?e.animateFrom(n,y):e.animateTo(n,y)}else e.stopAnimation(),!u&&e.attr(n),o&&o(1),i&&i()}function en(t,e,n,r,a,i){OS("update",t,e,n,r,a,i)}function ir(t,e,n,r,a,i){OS("enter",t,e,n,r,a,i)}function Af(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if(n.scope==="leave")return!0}return!1}function sd(t,e,n,r,a,i){Af(t)||OS("leave",t,e,n,r,a,i)}function sT(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),sd(t,{style:{opacity:0}},e,n,r)}function ud(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(a){a.isGroup||sT(a,e,n,r)}):sT(t,e,n,r)}function zS(t){TP(t).oldStyle=t.style}var fd=Math.max,cd=Math.min,v_={};function JR(t){return oe.extend(t)}var AP=sP;function tE(t,e){return AP(t,e)}function Or(t,e){v_[t]=e}function NS(t){if(v_.hasOwnProperty(t))return v_[t]}function qd(t,e,n,r){var a=lP(t,e);return n&&(r==="center"&&(n=eE(n,a.getBoundingRect())),BS(a,n)),a}function IS(t,e,n){var r=new pa({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(n==="center"){var i={width:a.width,height:a.height};r.setStyle(eE(e,i))}}});return r}function eE(t,e){var n=e.width/e.height,r=t.height*n,a;r<=t.width?a=t.height:(r=t.width,a=r/n);var i=t.x+t.width/2,o=t.y+t.height/2;return{x:i-r/2,y:o-a/2,width:r,height:a}}var nE=uP;function BS(t,e){if(t.applyTransform){var n=t.getBoundingRect(),r=n.calculateTransform(e);t.applyTransform(r)}}function Yf(t,e){return OR(t,t,{lineWidth:e}),t}function DP(t){return zR(t.shape,t.shape,t.style),t}var RP=Zo;function kS(t,e){for(var n=ac([]);t&&t!==e;)Zi(n,t.getLocalTransform(),n),t=t.parent;return n}function qf(t,e,n){return e&&!vn(e)&&(e=mS.getLocalTransform(e)),n&&(e=ic([],e)),Mn([],t,e)}function rE(t,e,n){var r=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),i=[t==="left"?-r:t==="right"?r:0,t==="top"?-a:t==="bottom"?a:0];return i=qf(i,e,n),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function uT(t){return!t.isGroup}function EP(t){return t.shape!=null}function aE(t,e,n){if(!t||!e)return;function r(o){var u={};return o.traverse(function(f){uT(f)&&f.anid&&(u[f.anid]=f)}),u}function a(o){var u={x:o.x,y:o.y,rotation:o.rotation};return EP(o)&&(u.shape=st({},o.shape)),u}var i=r(t);e.traverse(function(o){if(uT(o)&&o.anid){var u=i[o.anid];if(u){var f=a(o);o.attr(a(u)),en(o,f,n,jt(o).dataIndex)}}})}function iE(t,e){return mt(t,function(n){var r=n[0];r=fd(r,e.x),r=cd(r,e.x+e.width);var a=n[1];return a=fd(a,e.y),a=cd(a,e.y+e.height),[r,a]})}function oE(t,e){var n=fd(t.x,e.x),r=cd(t.x+t.width,e.x+e.width),a=fd(t.y,e.y),i=cd(t.y+t.height,e.y+e.height);if(r>=n&&i>=a)return{x:n,y:a,width:r-n,height:i-a}}function Xd(t,e,n){var r=st({rectHover:!0},e),a=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(a.image=t.slice(8),Qt(a,n),new pa(r)):qd(t.replace("path://",""),r,n,"center")}function LP(t,e,n,r,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var u=a[i];if(lE(t,e,n,r,u[0],u[1],o[0],o[1]))return!0;o=u}}function lE(t,e,n,r,a,i,o,u){var f=n-t,c=r-e,v=o-a,d=u-i,g=Ry(v,d,f,c);if(OP(g))return!1;var p=t-a,y=e-i,_=Ry(p,y,f,c)/g;if(_<0||_>1)return!1;var S=Ry(p,y,v,d)/g;return!(S<0||S>1)}function Ry(t,e,n,r){return t*r-n*e}function OP(t){return t<=1e-6&&t>=-1e-6}function hc(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,a=pt(e)?{formatter:e}:e,i=n.mainType,o=n.componentIndex,u={componentType:i,name:r,$vars:["name"]};u[i+"Index"]=o;var f=t.formatterParamsExtra;f&&k(ae(f),function(v){zt(u,v)||(u[v]=f[v],u.$vars.push(v))});var c=jt(t.el);c.componentMainType=i,c.componentIndex=o,c.tooltipConfig={name:r,option:Qt({content:r,encodeHTMLContent:!0,formatterParams:u},a)}}function fT(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Zd(t,e){if(t)if(ct(t))for(var n=0;n<t.length;n++)fT(t[n],e);else fT(t,e)}Or("circle",uc);Or("ellipse",Ud);Or("sector",ri);Or("ring",jd);Or("polygon",fc);Or("polyline",dl);Or("rect",be);Or("line",Ja);Or("bezierCurve",Yd);Or("arc",cc);const zP=Object.freeze(Object.defineProperty({__proto__:null,Arc:cc,BezierCurve:Yd,BoundingRect:Wt,Circle:uc,CompoundPath:$R,Ellipse:Ud,Group:Ie,Image:pa,IncrementalDisplayable:KR,Line:Ja,LinearGradient:ES,OrientedBoundingRect:ld,Path:oe,Point:Et,Polygon:fc,Polyline:dl,RadialGradient:QR,Rect:be,Ring:jd,Sector:ri,Text:Me,applyTransform:qf,clipPointsByRect:iE,clipRectByRect:oE,createIcon:Xd,extendPath:tE,extendShape:JR,getShapeClass:NS,getTransform:kS,groupTransition:aE,initProps:ir,isElementRemoved:Af,lineLineIntersect:lE,linePolygonIntersect:LP,makeImage:IS,makePath:qd,mergePath:nE,registerShape:Or,removeElement:sd,removeElementWithFadeOut:ud,resizePath:BS,setTooltipConfig:hc,subPixelOptimize:RP,subPixelOptimizeLine:Yf,subPixelOptimizeRect:DP,transformDirection:rE,traverseElements:Zd,updateProps:en},Symbol.toStringTag,{value:"Module"}));var $d={};function NP(t,e){for(var n=0;n<Er.length;n++){var r=Er[n],a=e[r],i=t.ensureState(r);i.style=i.style||{},i.style.text=a}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function cT(t,e,n){var r=t.labelFetcher,a=t.labelDataIndex,i=t.labelDimIndex,o=e.normal,u;r&&(u=r.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),n!=null?{interpolatedValue:n}:null)),u==null&&(u=Rt(t.defaultText)?t.defaultText(a,t,n):t.defaultText);for(var f={normal:u},c=0;c<Er.length;c++){var v=Er[c],d=e[v];f[v]=Pt(r?r.getFormattedLabel(a,v,null,i,d&&d.get("formatter")):null,u)}return f}function vc(t,e,n,r){n=n||$d;for(var a=t instanceof Me,i=!1,o=0;o<rd.length;o++){var u=e[rd[o]];if(u&&u.getShallow("show")){i=!0;break}}var f=a?t:t.getTextContent();if(i){a||(f||(f=new Me,t.setTextContent(f)),t.stateProxy&&(f.stateProxy=t.stateProxy));var c=cT(n,e),v=e.normal,d=!!v.getShallow("show"),g=va(v,r&&r.normal,n,!1,!a);g.text=c.normal,a||t.setTextConfig(hT(v,n,!1));for(var o=0;o<Er.length;o++){var p=Er[o],u=e[p];if(u){var y=f.ensureState(p),_=!!Pt(u.getShallow("show"),d);if(_!==d&&(y.ignore=!_),y.style=va(u,r&&r[p],n,!0,!a),y.style.text=c[p],!a){var S=t.ensureState(p);S.textConfig=hT(u,n,!0)}}}f.silent=!!v.getShallow("silent"),f.style.x!=null&&(g.x=f.style.x),f.style.y!=null&&(g.y=f.style.y),f.ignore=!d,f.useStyle(g),f.dirty(),n.enableTextSetter&&(Wd(f).setLabelText=function(x){var M=cT(n,e,x);NP(f,M)})}else f&&(f.ignore=!0);t.dirty()}function dc(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<Er.length;r++){var a=Er[r];n[a]=t.getModel([a,e])}return n}function va(t,e,n,r,a){var i={};return IP(i,t,n,r,a),e&&st(i,e),i}function hT(t,e,n){e=e||{};var r={},a,i=t.getShallow("rotate"),o=Pt(t.getShallow("distance"),n?null:5),u=t.getShallow("offset");return a=t.getShallow("position")||(n?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(r.position=a),u!=null&&(r.offset=u),i!=null&&(i*=Math.PI/180,r.rotation=i),o!=null&&(r.distance=o),r.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",r}function IP(t,e,n,r,a){n=n||$d;var i=e.ecModel,o=i&&i.option.textStyle,u=BP(e),f;if(u){f={};for(var c in u)if(u.hasOwnProperty(c)){var v=e.getModel(["rich",c]);gT(f[c]={},v,o,n,r,a,!1,!0)}}f&&(t.rich=f);var d=e.get("overflow");d&&(t.overflow=d);var g=e.get("minMargin");g!=null&&(t.margin=g),gT(t,e,o,n,r,a,!0,!1)}function BP(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||$d).rich;if(n){e=e||{};for(var r=ae(n),a=0;a<r.length;a++){var i=r[a];e[i]=1}}t=t.parentModel}return e}var vT=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],dT=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],pT=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function gT(t,e,n,r,a,i,o,u){n=!a&&n||$d;var f=r&&r.inheritColor,c=e.getShallow("color"),v=e.getShallow("textBorderColor"),d=Pt(e.getShallow("opacity"),n.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(v==="inherit"||v==="auto")&&(f?v=f:v=null),i||(c=c||n.color,v=v||n.textBorderColor),c!=null&&(t.fill=c),v!=null&&(t.stroke=v);var g=Pt(e.getShallow("textBorderWidth"),n.textBorderWidth);g!=null&&(t.lineWidth=g);var p=Pt(e.getShallow("textBorderType"),n.textBorderType);p!=null&&(t.lineDash=p);var y=Pt(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);y!=null&&(t.lineDashOffset=y),!a&&d==null&&!u&&(d=r&&r.defaultOpacity),d!=null&&(t.opacity=d),!a&&!i&&t.fill==null&&r.inheritColor&&(t.fill=r.inheritColor);for(var _=0;_<vT.length;_++){var S=vT[_],x=Pt(e.getShallow(S),n[S]);x!=null&&(t[S]=x)}for(var _=0;_<dT.length;_++){var S=dT[_],x=e.getShallow(S);x!=null&&(t[S]=x)}if(t.verticalAlign==null){var M=e.getShallow("baseline");M!=null&&(t.verticalAlign=M)}if(!o||!r.disableBox){for(var _=0;_<pT.length;_++){var S=pT[_],x=e.getShallow(S);x!=null&&(t[S]=x)}var C=e.getShallow("borderType");C!=null&&(t.borderDash=C),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function kP(t,e){var n=e&&e.getModel("textStyle");return qr([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var Wd=xe();function PP(t,e,n,r){if(t){var a=Wd(t);a.prevValue=a.value,a.value=n;var i=e.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=r,a.statesModels=e)}}var HP=["textStyle","color"],Ey=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Ly=new Me,VP=(function(){function t(){}return t.prototype.getTextColor=function(e){var n=this.ecModel;return this.getShallow("color")||(!e&&n?n.get(HP):null)},t.prototype.getFont=function(){return kP({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var n={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<Ey.length;r++)n[Ey[r]]=this.getShallow(Ey[r]);return Ly.useStyle(n),Ly.update(),Ly.getBoundingRect()},t})(),sE=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],FP=Gf(sE),GP=(function(){function t(){}return t.prototype.getLineStyle=function(e){return FP(this,e)},t})(),uE=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],UP=Gf(uE),jP=(function(){function t(){}return t.prototype.getItemStyle=function(e,n){return UP(this,e,n)},t})(),Se=(function(){function t(e,n,r){this.parentModel=n,this.ecModel=r,this.option=e}return t.prototype.init=function(e,n,r){},t.prototype.mergeOption=function(e,n){qt(this.option,e,!0)},t.prototype.get=function(e,n){return e==null?this.option:this._doGet(this.parsePath(e),!n&&this.parentModel)},t.prototype.getShallow=function(e,n){var r=this.option,a=r==null?r:r[e];if(a==null&&!n){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},t.prototype.getModel=function(e,n){var r=e!=null,a=r?this.parsePath(e):null,i=r?this._doGet(a):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new t(i,n,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(Ht(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!Dt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,n){var r=this.option;if(!e)return r;for(var a=0;a<e.length&&!(e[a]&&(r=r&&typeof r=="object"?r[e[a]]:null,r==null));a++);return r==null&&n&&(r=n._doGet(this.resolveParentPath(e),n.parentModel)),r},t})();CS(Se);GB(Se);Lr(Se,GP);Lr(Se,jP);Lr(Se,XB);Lr(Se,VP);var YP=Math.round(Math.random()*10);function Qd(t){return[t||"",YP++].join("_")}function qP(t){var e={};t.registerSubTypeDefaulter=function(n,r){var a=fa(n);e[a.main]=r},t.determineSubType=function(n,r){var a=r.type;if(!a){var i=fa(n).main;t.hasSubTypes(n)&&e[i]&&(a=e[i](r))}return a}}function XP(t,e){t.topologicalTravel=function(i,o,u,f){if(!i.length)return;var c=n(o),v=c.graph,d=c.noEntryList,g={};for(k(i,function(M){g[M]=!0});d.length;){var p=d.pop(),y=v[p],_=!!g[p];_&&(u.call(f,p,y.originalDeps.slice()),delete g[p]),k(y.successor,_?x:S)}k(g,function(){var M="";throw new Error(M)});function S(M){v[M].entryCount--,v[M].entryCount===0&&d.push(M)}function x(M){g[M]=!0,S(M)}};function n(i){var o={},u=[];return k(i,function(f){var c=r(o,f),v=c.originalDeps=e(f),d=a(v,i);c.entryCount=d.length,c.entryCount===0&&u.push(f),k(d,function(g){Yt(c.predecessor,g)<0&&c.predecessor.push(g);var p=r(o,g);Yt(p.successor,g)<0&&p.successor.push(f)})}),{graph:o,noEntryList:u}}function r(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var u=[];return k(i,function(f){Yt(o,f)>=0&&u.push(f)}),u}}function Kd(t,e){return qt(qt({},t,!0),e,!0)}const ZP={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},$P={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var hd="ZH",PS="EN",Es=PS,Iv={},HS={},fE=Dt.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Es).toUpperCase();return t.indexOf(hd)>-1?hd:Es})():Es;function VS(t,e){t=t.toUpperCase(),HS[t]=new Se(e),Iv[t]=e}function WP(t){if(pt(t)){var e=Iv[t.toUpperCase()]||{};return t===hd||t===PS?Ht(e):qt(Ht(e),Ht(Iv[Es]),!1)}else return qt(Ht(t),Ht(Iv[Es]),!1)}function QP(t){return HS[t]}function KP(){return HS[Es]}VS(PS,ZP);VS(hd,$P);var FS=1e3,GS=FS*60,Df=GS*60,Dr=Df*24,mT=Dr*365,mf={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}"},Kh="{yyyy}-{MM}-{dd}",yT={year:"{yyyy}",month:"{yyyy}-{MM}",day:Kh,hour:Kh+" "+mf.hour,minute:Kh+" "+mf.minute,second:Kh+" "+mf.second,millisecond:mf.none},Oy=["year","month","day","hour","minute","second","millisecond"],cE=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Sn(t,e){return t+="","0000".substr(0,e-t.length)+t}function Ls(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function JP(t){return t===Ls(t)}function t4(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function pc(t,e,n,r){var a=Rr(t),i=a[US(n)](),o=a[Os(n)]()+1,u=Math.floor((o-1)/3)+1,f=a[Jd(n)](),c=a["get"+(n?"UTC":"")+"Day"](),v=a[Xf(n)](),d=(v-1)%12+1,g=a[tp(n)](),p=a[ep(n)](),y=a[np(n)](),_=v>=12?"pm":"am",S=_.toUpperCase(),x=r instanceof Se?r:QP(r||fE)||KP(),M=x.getModel("time"),C=M.get("month"),T=M.get("monthAbbr"),D=M.get("dayOfWeek"),R=M.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,_+"").replace(/{A}/g,S+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Sn(i%100+"",2)).replace(/{Q}/g,u+"").replace(/{MMMM}/g,C[o-1]).replace(/{MMM}/g,T[o-1]).replace(/{MM}/g,Sn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Sn(f,2)).replace(/{d}/g,f+"").replace(/{eeee}/g,D[c]).replace(/{ee}/g,R[c]).replace(/{e}/g,c+"").replace(/{HH}/g,Sn(v,2)).replace(/{H}/g,v+"").replace(/{hh}/g,Sn(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Sn(g,2)).replace(/{m}/g,g+"").replace(/{ss}/g,Sn(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Sn(y,3)).replace(/{S}/g,y+"")}function e4(t,e,n,r,a){var i=null;if(pt(n))i=n;else if(Rt(n))i=n(t.value,e,{level:t.level});else{var o=st({},mf);if(t.level>0)for(var u=0;u<Oy.length;++u)o[Oy[u]]="{primary|"+o[Oy[u]]+"}";var f=n?n.inherit===!1?n:Qt(n,o):o,c=hE(t.value,a);if(f[c])i=f[c];else if(f.inherit){for(var v=cE.indexOf(c),u=v-1;u>=0;--u)if(f[c]){i=f[c];break}i=i||o.none}if(ct(i)){var d=t.level==null?0:t.level>=0?t.level:i.length+t.level;d=Math.min(d,i.length-1),i=i[d]}}return pc(new Date(t.value),i,a,r)}function hE(t,e){var n=Rr(t),r=n[Os(e)]()+1,a=n[Jd(e)](),i=n[Xf(e)](),o=n[tp(e)](),u=n[ep(e)](),f=n[np(e)](),c=f===0,v=c&&u===0,d=v&&o===0,g=d&&i===0,p=g&&a===1,y=p&&r===1;return y?"year":p?"month":g?"day":d?"hour":v?"minute":c?"second":"millisecond"}function _T(t,e,n){var r=de(t)?Rr(t):t;switch(e=e||hE(t,n),e){case"year":return r[US(n)]();case"half-year":return r[Os(n)]()>=6?1:0;case"quarter":return Math.floor((r[Os(n)]()+1)/4);case"month":return r[Os(n)]();case"day":return r[Jd(n)]();case"half-day":return r[Xf(n)]()/24;case"hour":return r[Xf(n)]();case"minute":return r[tp(n)]();case"second":return r[ep(n)]();case"millisecond":return r[np(n)]()}}function US(t){return t?"getUTCFullYear":"getFullYear"}function Os(t){return t?"getUTCMonth":"getMonth"}function Jd(t){return t?"getUTCDate":"getDate"}function Xf(t){return t?"getUTCHours":"getHours"}function tp(t){return t?"getUTCMinutes":"getMinutes"}function ep(t){return t?"getUTCSeconds":"getSeconds"}function np(t){return t?"getUTCMilliseconds":"getMilliseconds"}function n4(t){return t?"setUTCFullYear":"setFullYear"}function vE(t){return t?"setUTCMonth":"setMonth"}function dE(t){return t?"setUTCDate":"setDate"}function pE(t){return t?"setUTCHours":"setHours"}function gE(t){return t?"setUTCMinutes":"setMinutes"}function mE(t){return t?"setUTCSeconds":"setSeconds"}function yE(t){return t?"setUTCMilliseconds":"setMilliseconds"}function r4(t,e,n,r,a,i,o,u){var f=new Me({style:{text:t,font:e,align:n,verticalAlign:r,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:u}});return f.getBoundingRect()}function jS(t){if(!pR(t))return pt(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function YS(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var gc=uS;function d_(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(v){return v&&qr(v)?v:"-"}function i(v){return!!(v!=null&&!isNaN(v)&&isFinite(v))}var o=e==="time",u=t instanceof Date;if(o||u){var f=o?Rr(t):t;if(isNaN(+f)){if(u)return"-"}else return pc(f,r,n)}if(e==="ordinal")return jv(t)?a(t):de(t)&&i(t)?t+"":"-";var c=Vf(t);return i(c)?jS(c):jv(t)?a(t):typeof t=="boolean"?t+"":"-"}var ST=["a","b","c","d","e","f","g"],zy=function(t,e){return"{"+t+(e??"")+"}"};function qS(t,e,n){ct(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var o=ST[i];t=t.replace(zy(o),zy(o,0))}for(var u=0;u<r;u++)for(var f=0;f<a.length;f++){var c=e[u][a[f]];t=t.replace(zy(ST[f],u),n?xn(c):c)}return t}function _E(t,e){var n=pt(t)?{color:t,extraCssText:e}:t||{},r=n.color,a=n.type;e=n.extraCssText;var i=n.renderMode||"html";if(!r)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+xn(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+xn(r)+";"+(e||"")+'"></span>';var o=n.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function a4(t,e,n){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
78
+ yyyy`);var r=Rr(e),a=n?"getUTC":"get",i=r[a+"FullYear"](),o=r[a+"Month"]()+1,u=r[a+"Date"](),f=r[a+"Hours"](),c=r[a+"Minutes"](),v=r[a+"Seconds"](),d=r[a+"Milliseconds"]();return t=t.replace("MM",Sn(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Sn(i%100+"",2)).replace("dd",Sn(u,2)).replace("d",u).replace("hh",Sn(f,2)).replace("h",f).replace("mm",Sn(c,2)).replace("m",c).replace("ss",Sn(v,2)).replace("s",v).replace("SSS",Sn(d,3)),t}function i4(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function sl(t,e){return e=e||"transparent",pt(t)?t:_t(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function bT(t,e){if(e==="_blank"||e==="blank"){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var Bv=k,SE=["left","right","top","bottom","width","height"],Jh=[["width","left","right"],["height","top","bottom"]];function XS(t,e,n,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var u=0;e.eachChild(function(f,c){var v=f.getBoundingRect(),d=e.childAt(c+1),g=d&&d.getBoundingRect(),p,y;if(t==="horizontal"){var _=v.width+(g?-g.x+v.x:0);p=i+_,p>r||f.newline?(i=0,p=_,o+=u+n,u=v.height):u=Math.max(u,v.height)}else{var S=v.height+(g?-g.y+v.y:0);y=o+S,y>a||f.newline?(i+=u+n,o=0,y=S,u=v.width):u=Math.max(u,v.width)}f.newline||(f.x=i,f.y=o,f.markRedraw(),t==="horizontal"?i=p+n:o=y+n)})}var Rf=XS;_e(XS,"vertical");_e(XS,"horizontal");function ti(t,e,n){n=gc(n||0);var r=e.width,a=e.height,i=ve(t.left,r),o=ve(t.top,a),u=ve(t.right,r),f=ve(t.bottom,a),c=ve(t.width,r),v=ve(t.height,a),d=n[2]+n[0],g=n[1]+n[3],p=t.aspect;switch(isNaN(c)&&(c=r-u-g-i),isNaN(v)&&(v=a-f-d-o),p!=null&&(isNaN(c)&&isNaN(v)&&(p>r/a?c=r*.8:v=a*.8),isNaN(c)&&(c=p*v),isNaN(v)&&(v=c/p)),isNaN(i)&&(i=r-u-c-g),isNaN(o)&&(o=a-f-v-d),t.left||t.right){case"center":i=r/2-c/2-n[3];break;case"right":i=r-c-g;break}switch(t.top||t.bottom){case"middle":case"center":o=a/2-v/2-n[0];break;case"bottom":o=a-v-d;break}i=i||0,o=o||0,isNaN(c)&&(c=r-g-i-(u||0)),isNaN(v)&&(v=a-d-o-(f||0));var y=new Wt(i+n[3],o+n[0],c,v);return y.margin=n,y}function o4(t,e,n,r,a,i){var o=!a||!a.hv||a.hv[0],u=!a||!a.hv||a.hv[1],f=a&&a.boundingMode||"all";if(i=i||t,i.x=t.x,i.y=t.y,!o&&!u)return!1;var c;if(f==="raw")c=t.type==="group"?new Wt(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(c=t.getBoundingRect(),t.needLocalTransform()){var v=t.getLocalTransform();c=c.clone(),c.applyTransform(v)}var d=ti(Qt({width:c.width,height:c.height},e),n,r),g=o?d.x-c.x:0,p=u?d.y-c.y:0;return f==="raw"?(i.x=g,i.y=p):(i.x+=g,i.y+=p),i===t&&t.markRedraw(),!0}function Zf(t){var e=t.layoutMode||t.constructor.layoutMode;return _t(e)?e:e?{type:e}:null}function ul(t,e,n){var r=n&&n.ignoreSize;!ct(r)&&(r=[r,r]);var a=o(Jh[0],0),i=o(Jh[1],1);c(Jh[0],t,a),c(Jh[1],t,i);function o(v,d){var g={},p=0,y={},_=0,S=2;if(Bv(v,function(C){y[C]=t[C]}),Bv(v,function(C){u(e,C)&&(g[C]=y[C]=e[C]),f(g,C)&&p++,f(y,C)&&_++}),r[d])return f(e,v[1])?y[v[2]]=null:f(e,v[2])&&(y[v[1]]=null),y;if(_===S||!p)return y;if(p>=S)return g;for(var x=0;x<v.length;x++){var M=v[x];if(!u(g,M)&&u(t,M)){g[M]=t[M];break}}return g}function u(v,d){return v.hasOwnProperty(d)}function f(v,d){return v[d]!=null&&v[d]!=="auto"}function c(v,d,g){Bv(v,function(p){d[p]=g[p]})}}function mc(t){return bE({},t)}function bE(t,e){return e&&t&&Bv(SE,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var l4=xe(),$t=(function(t){ut(e,t);function e(n,r,a){var i=t.call(this,n,r,a)||this;return i.uid=Qd("ec_cpt_model"),i}return e.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},e.prototype.mergeDefaultAndTheme=function(n,r){var a=Zf(this),i=a?mc(n):{},o=r.getTheme();qt(n,o.get(this.mainType)),qt(n,this.getDefaultOption()),a&&ul(n,i,a)},e.prototype.mergeOption=function(n,r){qt(this.option,n,!0);var a=Zf(this);a&&ul(this.option,n,a)},e.prototype.optionUpdated=function(n,r){},e.prototype.getDefaultOption=function(){var n=this.constructor;if(!HB(n))return n.defaultOption;var r=l4(this);if(!r.defaultOption){for(var a=[],i=n;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var u={},f=a.length-1;f>=0;f--)u=qt(u,a[f],!0);r.defaultOption=u}return r.defaultOption},e.prototype.getReferringComponents=function(n,r){var a=n+"Index",i=n+"Id";return sc(this.ecModel,n,{index:this.get(a,!0),id:this.get(i,!0)},r)},e.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(n){this.option.zlevel=n},e.protoInitialize=(function(){var n=e.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0})(),e})(Se);wR($t,Se);kd($t);qP($t);XP($t,s4);function s4(t){var e=[];return k($t.getClassesByMainType(t),function(n){e=e.concat(n.dependencies||n.prototype.dependencies||[])}),e=mt(e,function(n){return fa(n).main}),t!=="dataset"&&Yt(e,"dataset")<=0&&e.unshift("dataset"),e}var xE="";typeof navigator<"u"&&(xE=navigator.platform||"");var cs="rgba(0, 0, 0, 0.2)";const u4={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:cs,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:cs,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:cs,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:cs,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:cs,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:cs,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:xE.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 wE=Ct(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),zr="original",Yn="arrayRows",Qr="objectRows",ga="keyedColumns",Wi="typedArray",ME="unknown",Qa="column",Hs="row",Ke={Must:1,Might:2,Not:3},CE=xe();function f4(t){CE(t).datasetMap=Ct()}function c4(t,e,n){var r={},a=ZS(e);if(!a||!t)return r;var i=[],o=[],u=e.ecModel,f=CE(u).datasetMap,c=a.uid+"_"+n.seriesLayoutBy,v,d;t=t.slice(),k(t,function(_,S){var x=_t(_)?_:t[S]={name:_};x.type==="ordinal"&&v==null&&(v=S,d=y(x)),r[x.name]=[]});var g=f.get(c)||f.set(c,{categoryWayDim:d,valueWayDim:0});k(t,function(_,S){var x=_.name,M=y(_);if(v==null){var C=g.valueWayDim;p(r[x],C,M),p(o,C,M),g.valueWayDim+=M}else if(v===S)p(r[x],0,M),p(i,0,M);else{var C=g.categoryWayDim;p(r[x],C,M),p(o,C,M),g.categoryWayDim+=M}});function p(_,S,x){for(var M=0;M<x;M++)_.push(S+M)}function y(_){var S=_.dimsDef;return S?S.length:1}return i.length&&(r.itemName=i),o.length&&(r.seriesName=o),r}function h4(t,e,n){var r={},a=ZS(t);if(!a)return r;var i=e.sourceFormat,o=e.dimensionsDefine,u;(i===Qr||i===ga)&&k(o,function(v,d){(_t(v)?v.name:v)==="name"&&(u=d)});var f=(function(){for(var v={},d={},g=[],p=0,y=Math.min(5,n);p<y;p++){var _=AE(e.data,i,e.seriesLayoutBy,o,e.startIndex,p);g.push(_);var S=_===Ke.Not;if(S&&v.v==null&&p!==u&&(v.v=p),(v.n==null||v.n===v.v||!S&&g[v.n]===Ke.Not)&&(v.n=p),x(v)&&g[v.n]!==Ke.Not)return v;S||(_===Ke.Might&&d.v==null&&p!==u&&(d.v=p),(d.n==null||d.n===d.v)&&(d.n=p))}function x(M){return M.v!=null&&M.n!=null}return x(v)?v:x(d)?d:null})();if(f){r.value=[f.v];var c=u??f.n;r.itemName=[c],r.seriesName=[c]}return r}function ZS(t){var e=t.get("data",!0);if(!e)return sc(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},jn).models[0]}function v4(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:sc(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},jn).models}function TE(t,e){return AE(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function AE(t,e,n,r,a,i){var o,u=5;if(An(t))return Ke.Not;var f,c;if(r){var v=r[i];_t(v)?(f=v.name,c=v.type):pt(v)&&(f=v)}if(c!=null)return c==="ordinal"?Ke.Must:Ke.Not;if(e===Yn){var d=t;if(n===Hs){for(var g=d[i],p=0;p<(g||[]).length&&p<u;p++)if((o=T(g[a+p]))!=null)return o}else for(var p=0;p<d.length&&p<u;p++){var y=d[a+p];if(y&&(o=T(y[i]))!=null)return o}}else if(e===Qr){var _=t;if(!f)return Ke.Not;for(var p=0;p<_.length&&p<u;p++){var S=_[p];if(S&&(o=T(S[f]))!=null)return o}}else if(e===ga){var x=t;if(!f)return Ke.Not;var g=x[f];if(!g||An(g))return Ke.Not;for(var p=0;p<g.length&&p<u;p++)if((o=T(g[p]))!=null)return o}else if(e===zr)for(var M=t,p=0;p<M.length&&p<u;p++){var S=M[p],C=lc(S);if(!ct(C))return Ke.Not;if((o=T(C[i]))!=null)return o}function T(D){var R=pt(D);if(D!=null&&Number.isFinite(Number(D))&&D!=="")return R?Ke.Might:Ke.Not;if(R&&D!=="-")return Ke.Must}return Ke.Not}var d4=Ct();function p4(t,e,n){var r=d4.get(e);if(!r)return n;var a=r(t);return a?n.concat(a):n}var xT=xe();xe();var $S=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,n,r){var a=qe(this.get("color",!0)),i=this.get("colorLayer",!0);return m4(this,xT,a,i,e,n,r)},t.prototype.clearColorPalette=function(){y4(this,xT)},t})();function g4(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}function m4(t,e,n,r,a,i,o){i=i||t;var u=e(i),f=u.paletteIdx||0,c=u.paletteNameMap=u.paletteNameMap||{};if(c.hasOwnProperty(a))return c[a];var v=o==null||!r?n:g4(r,o);if(v=v||n,!(!v||!v.length)){var d=v[f];return a&&(c[a]=d),u.paletteIdx=(f+1)%v.length,d}}function y4(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var tv,Wu,wT,MT="\0_ec_inner",_4=1,WS=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(n,r,a,i,o,u){i=i||{},this.option=null,this._theme=new Se(i),this._locale=new Se(o),this._optionManager=u},e.prototype.setOption=function(n,r,a){var i=AT(r);this._optionManager.setOption(n,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(n,r){return this._resetOption(n,AT(r))},e.prototype._resetOption=function(n,r){var a=!1,i=this._optionManager;if(!n||n==="recreate"){var o=i.mountOption(n==="recreate");!this.option||n==="recreate"?wT(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var u=i.getTimelineOption(this);u&&(a=!0,this._mergeOption(u,r))}if(!n||n==="recreate"||n==="media"){var f=i.getMediaOption(this);f.length&&k(f,function(c){a=!0,this._mergeOption(c,r)},this)}return a},e.prototype.mergeOption=function(n){this._mergeOption(n,null)},e.prototype._mergeOption=function(n,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,u=[],f=Ct(),c=r&&r.replaceMergeMainTypeMap;f4(this),k(n,function(d,g){d!=null&&($t.hasClass(g)?g&&(u.push(g),f.set(g,!0)):a[g]=a[g]==null?Ht(d):qt(a[g],d,!0))}),c&&c.each(function(d,g){$t.hasClass(g)&&!f.get(g)&&(u.push(g),f.set(g,!0))}),$t.topologicalTravel(u,$t.getAllClassMainTypes(),v,this);function v(d){var g=p4(this,d,qe(n[d])),p=i.get(d),y=p?c&&c.get(d)?"replaceMerge":"normalMerge":"replaceAll",_=_R(p,g,y);EB(_,d,$t),a[d]=null,i.set(d,null),o.set(d,0);var S=[],x=[],M=0,C;k(_,function(T,D){var R=T.existing,E=T.newOption;if(!E)R&&(R.mergeOption({},this),R.optionUpdated({},!1));else{var z=d==="series",I=$t.getClass(d,T.keyInfo.subType,!z);if(!I)return;if(d==="tooltip"){if(C)return;C=!0}if(R&&R.constructor===I)R.name=T.keyInfo.name,R.mergeOption(E,this),R.optionUpdated(E,!1);else{var N=st({componentIndex:D},T.keyInfo);R=new I(E,this,this,N),st(R,N),T.brandNew&&(R.__requireNewView=!0),R.init(E,this,this),R.optionUpdated(null,!0)}}R?(S.push(R.option),x.push(R),M++):(S.push(void 0),x.push(void 0))},this),a[d]=S,i.set(d,x),o.set(d,M),d==="series"&&tv(this)}this._seriesIndices||tv(this)},e.prototype.getOption=function(){var n=Ht(this.option);return k(n,function(r,a){if($t.hasClass(a)){for(var i=qe(r),o=i.length,u=!1,f=o-1;f>=0;f--)i[f]&&!Ff(i[f])?u=!0:(i[f]=null,!u&&o--);i.length=o,n[a]=i}}),delete n[MT],n},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(n){this._payload=n},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(n,r){var a=this._componentsMap.get(n);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},e.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var a=n.index,i=n.id,o=n.name,u=this._componentsMap.get(r);if(!u||!u.length)return[];var f;return a!=null?(f=[],k(qe(a),function(c){u[c]&&f.push(u[c])})):i!=null?f=CT("id",i,u):o!=null?f=CT("name",o,u):f=Re(u,function(c){return!!c}),TT(f,n)},e.prototype.findComponents=function(n){var r=n.query,a=n.mainType,i=u(r),o=i?this.queryComponents(i):Re(this._componentsMap.get(a),function(c){return!!c});return f(TT(o,n));function u(c){var v=a+"Index",d=a+"Id",g=a+"Name";return c&&(c[v]!=null||c[d]!=null||c[g]!=null)?{mainType:a,index:c[v],id:c[d],name:c[g]}:null}function f(c){return n.filter?Re(c,n.filter):c}},e.prototype.eachComponent=function(n,r,a){var i=this._componentsMap;if(Rt(n)){var o=r,u=n;i.each(function(d,g){for(var p=0;d&&p<d.length;p++){var y=d[p];y&&u.call(o,g,y,y.componentIndex)}})}else for(var f=pt(n)?i.get(n):_t(n)?this.findComponents(n):null,c=0;f&&c<f.length;c++){var v=f[c];v&&r.call(a,v,v.componentIndex)}},e.prototype.getSeriesByName=function(n){var r=Un(n,null);return Re(this._componentsMap.get("series"),function(a){return!!a&&r!=null&&a.name===r})},e.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},e.prototype.getSeriesByType=function(n){return Re(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},e.prototype.getSeries=function(){return Re(this._componentsMap.get("series"),function(n){return!!n})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(n,r){Wu(this),k(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];n.call(r,i,a)},this)},e.prototype.eachRawSeries=function(n,r){k(this._componentsMap.get("series"),function(a){a&&n.call(r,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(n,r,a){Wu(this),k(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===n&&r.call(a,o,i)},this)},e.prototype.eachRawSeriesByType=function(n,r,a){return k(this.getSeriesByType(n),r,a)},e.prototype.isSeriesFiltered=function(n){return Wu(this),this._seriesIndicesMap.get(n.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(n,r){Wu(this);var a=[];k(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];n.call(r,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=Ct(a)},e.prototype.restoreData=function(n){tv(this);var r=this._componentsMap,a=[];r.each(function(i,o){$t.hasClass(o)&&a.push(o)}),$t.topologicalTravel(a,$t.getAllClassMainTypes(),function(i){k(r.get(i),function(o){o&&(i!=="series"||!S4(o,n))&&o.restoreData()})})},e.internalField=(function(){tv=function(n){var r=n._seriesIndices=[];k(n._componentsMap.get("series"),function(a){a&&r.push(a.componentIndex)}),n._seriesIndicesMap=Ct(r)},Wu=function(n){},wT=function(n,r){n.option={},n.option[MT]=_4,n._componentsMap=Ct({series:[]}),n._componentsCount=Ct();var a=r.aria;_t(a)&&a.enabled==null&&(a.enabled=!0),b4(r,n._theme.option),qt(r,u4,!1),n._mergeOption(r,null)}})(),e})(Se);function S4(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,a=e.seriesName;return n!=null&&t.componentIndex!==n||r!=null&&t.id!==r||a!=null&&t.name!==a}}function b4(t,e){var n=t.color&&!t.colorLayer;k(e,function(r,a){a==="colorLayer"&&n||$t.hasClass(a)||(typeof r=="object"?t[a]=t[a]?qt(t[a],r,!1):Ht(r):t[a]==null&&(t[a]=r))})}function CT(t,e,n){if(ct(e)){var r=Ct();return k(e,function(i){if(i!=null){var o=Un(i,null);o!=null&&r.set(i,!0)}}),Re(n,function(i){return i&&r.get(i[t])})}else{var a=Un(e,null);return Re(n,function(i){return i&&a!=null&&i[t]===a})}}function TT(t,e){return e.hasOwnProperty("subType")?Re(t,function(n){return n&&n.subType===e.subType}):t}function AT(t){var e=Ct();return t&&k(qe(t.replaceMerge),function(n){e.set(n,!0)}),{replaceMergeMainTypeMap:e}}Lr(WS,$S);var x4=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],DE=(function(){function t(e){k(x4,function(n){this[n]=Mt(e[n],e)},this)}return t})(),Ny={},rp=(function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,n){var r=[];k(Ny,function(a,i){var o=a.create(e,n);r=r.concat(o||[])}),this._coordinateSystems=r},t.prototype.update=function(e,n){k(this._coordinateSystems,function(r){r.update&&r.update(e,n)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(e,n){Ny[e]=n},t.get=function(e){return Ny[e]},t})(),w4=/^(min|max)?(.+)$/,M4=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,n,r){e&&(k(qe(e.series),function(o){o&&o.data&&An(o.data)&&Yv(o.data)}),k(qe(e.dataset),function(o){o&&o.source&&An(o.source)&&Yv(o.source)})),e=Ht(e);var a=this._optionBackup,i=C4(e,n,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(e){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],Ht(e?n.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var n,r=this._timelineOptions;if(r.length){var a=e.getComponent("timeline");a&&(n=Ht(r[a.getCurrentIndex()]))}return n},t.prototype.getMediaOption=function(e){var n=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],u=[];if(!a.length&&!i)return u;for(var f=0,c=a.length;f<c;f++)T4(a[f].query,n,r)&&o.push(f);return!o.length&&i&&(o=[-1]),o.length&&!D4(o,this._currentMediaIndices)&&(u=mt(o,function(v){return Ht(v===-1?i.option:a[v].option)})),this._currentMediaIndices=o,u},t})();function C4(t,e,n){var r=[],a,i,o=t.baseOption,u=t.timeline,f=t.options,c=t.media,v=!!t.media,d=!!(f||u||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=u)):((d||v)&&(t.options=t.media=null),i=t),v&&ct(c)&&k(c,function(p){p&&p.option&&(p.query?r.push(p):a||(a=p))}),g(i),k(f,function(p){return g(p)}),k(r,function(p){return g(p.option)});function g(p){k(e,function(y){y(p,n)})}return{baseOption:i,timelineOptions:f||[],mediaDefault:a,mediaList:r}}function T4(t,e,n){var r={width:e,height:n,aspectratio:e/n},a=!0;return k(t,function(i,o){var u=o.match(w4);if(!(!u||!u[1]||!u[2])){var f=u[1],c=u[2].toLowerCase();A4(r[c],i,f)||(a=!1)}}),a}function A4(t,e,n){return n==="min"?t>=e:n==="max"?t<=e:t===e}function D4(t,e){return t.join(",")===e.join(",")}var Vr=k,$f=_t,DT=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Iy(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=DT.length;n<r;n++){var a=DT[n],i=e.normal,o=e.emphasis;i&&i[a]&&(t[a]=t[a]||{},t[a].normal?qt(t[a].normal,i[a]):t[a].normal=i[a],i[a]=null),o&&o[a]&&(t[a]=t[a]||{},t[a].emphasis?qt(t[a].emphasis,o[a]):t[a].emphasis=o[a],o[a]=null)}}function cn(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,a=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,Qt(t[e],r)):t[e]=r),a&&(t.emphasis=t.emphasis||{},t.emphasis[e]=a,a.focus&&(t.emphasis.focus=a.focus),a.blurScope&&(t.emphasis.blurScope=a.blurScope))}}function yf(t){cn(t,"itemStyle"),cn(t,"lineStyle"),cn(t,"areaStyle"),cn(t,"label"),cn(t,"labelLine"),cn(t,"upperLabel"),cn(t,"edgeLabel")}function ze(t,e){var n=$f(t)&&t[e],r=$f(n)&&n.textStyle;if(r)for(var a=0,i=EC.length;a<i;a++){var o=EC[a];r.hasOwnProperty(o)&&(n[o]=r[o])}}function xr(t){t&&(yf(t),ze(t,"label"),t.emphasis&&ze(t.emphasis,"label"))}function R4(t){if($f(t)){Iy(t),yf(t),ze(t,"label"),ze(t,"upperLabel"),ze(t,"edgeLabel"),t.emphasis&&(ze(t.emphasis,"label"),ze(t.emphasis,"upperLabel"),ze(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Iy(e),xr(e));var n=t.markLine;n&&(Iy(n),xr(n));var r=t.markArea;r&&xr(r);var a=t.data;if(t.type==="graph"){a=a||t.nodes;var i=t.links||t.edges;if(i&&!An(i))for(var o=0;o<i.length;o++)xr(i[o]);k(t.categories,function(c){yf(c)})}if(a&&!An(a))for(var o=0;o<a.length;o++)xr(a[o]);if(e=t.markPoint,e&&e.data)for(var u=e.data,o=0;o<u.length;o++)xr(u[o]);if(n=t.markLine,n&&n.data)for(var f=n.data,o=0;o<f.length;o++)ct(f[o])?(xr(f[o][0]),xr(f[o][1])):xr(f[o]);t.type==="gauge"?(ze(t,"axisLabel"),ze(t,"title"),ze(t,"detail")):t.type==="treemap"?(cn(t.breadcrumb,"itemStyle"),k(t.levels,function(c){yf(c)})):t.type==="tree"&&yf(t.leaves)}}function ja(t){return ct(t)?t:t?[t]:[]}function RT(t){return(ct(t)?t[0]:t)||{}}function E4(t,e){Vr(ja(t.series),function(r){$f(r)&&R4(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Vr(n,function(r){Vr(ja(t[r]),function(a){a&&(ze(a,"axisLabel"),ze(a.axisPointer,"label"))})}),Vr(ja(t.parallel),function(r){var a=r&&r.parallelAxisDefault;ze(a,"axisLabel"),ze(a&&a.axisPointer,"label")}),Vr(ja(t.calendar),function(r){cn(r,"itemStyle"),ze(r,"dayLabel"),ze(r,"monthLabel"),ze(r,"yearLabel")}),Vr(ja(t.radar),function(r){ze(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap)}),Vr(ja(t.geo),function(r){$f(r)&&(xr(r),Vr(ja(r.regions),function(a){xr(a)}))}),Vr(ja(t.timeline),function(r){xr(r),cn(r,"label"),cn(r,"itemStyle"),cn(r,"controlStyle",!0);var a=r.data;ct(a)&&k(a,function(i){_t(i)&&(cn(i,"label"),cn(i,"itemStyle"))})}),Vr(ja(t.toolbox),function(r){cn(r,"iconStyle"),Vr(r.feature,function(a){cn(a,"iconStyle")})}),ze(RT(t.axisPointer),"label"),ze(RT(t.tooltip).axisPointer,"label")}function L4(t,e){for(var n=e.split(","),r=t,a=0;a<n.length&&(r=r&&r[n[a]],r!=null);a++);return r}function O4(t,e,n,r){for(var a=e.split(","),i=t,o,u=0;u<a.length-1;u++)o=a[u],i[o]==null&&(i[o]={}),i=i[o];i[a[u]]==null&&(i[a[u]]=n)}function ET(t){t&&k(z4,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var z4=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],N4=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],By=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Qu(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<By.length;n++){var r=By[n][1],a=By[n][0];e[r]!=null&&(e[a]=e[r])}}function LT(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function OT(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function I4(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function RE(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&RE(t[n].children,e)}function EE(t,e){E4(t,e),t.series=qe(t.series),k(t.series,function(n){if(_t(n)){var r=n.type;if(r==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow);else if(r==="pie"||r==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise),LT(n.label);var a=n.data;if(a&&!An(a))for(var i=0;i<a.length;i++)LT(a[i]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var o=L4(n,"pointer.color");o!=null&&O4(n,"itemStyle.color",o)}else if(r==="bar"){Qu(n),Qu(n.backgroundStyle),Qu(n.emphasis);var a=n.data;if(a&&!An(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(Qu(a[i]),Qu(a[i]&&a[i].emphasis))}else if(r==="sunburst"){var u=n.highlightPolicy;u&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=u)),OT(n),RE(n.data,OT)}else r==="graph"||r==="sankey"?I4(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&Qt(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),ET(n)}}),t.dataRange&&(t.visualMap=t.dataRange),k(N4,function(n){var r=t[n];r&&(ct(r)||(r=[r]),k(r,function(a){ET(a)}))})}function B4(t){var e=Ct();t.eachSeries(function(n){var r=n.get("stack");if(r){var a=e.get(r)||e.set(r,[]),i=n.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:n};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),e.each(k4)}function k4(t){k(t,function(e,n){var r=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,u=e.isStackedByIndex,f=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(c,v,d){var g=o.get(e.stackedDimension,d);if(isNaN(g))return a;var p,y;u?y=o.getRawIndex(d):p=o.get(e.stackedByDimension,d);for(var _=NaN,S=n-1;S>=0;S--){var x=t[S];if(u||(y=x.data.rawIndexOf(x.stackedByDimension,p)),y>=0){var M=x.data.getByRawIndex(x.stackResultDimension,y);if(f==="all"||f==="positive"&&M>0||f==="negative"&&M<0||f==="samesign"&&g>=0&&M>0||f==="samesign"&&g<=0&&M<0){g=mB(g,M),_=M;break}}}return r[0]=g,r[1]=_,r})})}var ap=(function(){function t(e){this.data=e.data||(e.sourceFormat===ga?{}:[]),this.sourceFormat=e.sourceFormat||ME,this.seriesLayoutBy=e.seriesLayoutBy||Qa,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var n=this.dimensionsDefine=e.dimensionsDefine;if(n)for(var r=0;r<n.length;r++){var a=n[r];a.type==null&&TE(this,r)===Ke.Must&&(a.type="ordinal")}}return t})();function QS(t){return t instanceof ap}function p_(t,e,n){n=n||OE(t);var r=e.seriesLayoutBy,a=H4(t,n,r,e.sourceHeader,e.dimensions),i=new ap({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:Ht(e)});return i}function LE(t){return new ap({data:t,sourceFormat:An(t)?Wi:zr})}function P4(t){return new ap({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Ht(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function OE(t){var e=ME;if(An(t))e=Wi;else if(ct(t)){t.length===0&&(e=Yn);for(var n=0,r=t.length;n<r;n++){var a=t[n];if(a!=null){if(ct(a)||An(a)){e=Yn;break}else if(_t(a)){e=Qr;break}}}}else if(_t(t)){for(var i in t)if(zt(t,i)&&vn(t[i])){e=ga;break}}return e}function H4(t,e,n,r,a){var i,o;if(!t)return{dimensionsDefine:zT(a),startIndex:o,dimensionsDetectedCount:i};if(e===Yn){var u=t;r==="auto"||r==null?NT(function(c){c!=null&&c!=="-"&&(pt(c)?o==null&&(o=1):o=0)},n,u,10):o=de(r)?r:r?1:0,!a&&o===1&&(a=[],NT(function(c,v){a[v]=c!=null?c+"":""},n,u,1/0)),i=a?a.length:n===Hs?u.length:u[0]?u[0].length:null}else if(e===Qr)a||(a=V4(t));else if(e===ga)a||(a=[],k(t,function(c,v){a.push(v)}));else if(e===zr){var f=lc(t[0]);i=ct(f)&&f.length||1}return{startIndex:o,dimensionsDefine:zT(a),dimensionsDetectedCount:i}}function V4(t){for(var e=0,n;e<t.length&&!(n=t[e++]););if(n)return ae(n)}function zT(t){if(t){var e=Ct();return mt(t,function(n,r){n=_t(n)?n:{name:n};var a={name:n.name,displayName:n.displayName,type:n.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function NT(t,e,n,r){if(e===Hs)for(var a=0;a<n.length&&a<r;a++)t(n[a]?n[a][0]:null,a);else for(var i=n[0]||[],a=0;a<i.length&&a<r;a++)t(i[a],a)}function zE(t){var e=t.sourceFormat;return e===Qr||e===ga}var Fo,Go,Uo,IT,BT,NE=(function(){function t(e,n){var r=QS(e)?e:LE(e);this._source=r;var a=this._data=r.data;r.sourceFormat===Wi&&(this._offset=0,this._dimSize=n,this._data=a),BT(this,a,r)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,n){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;BT=function(o,u,f){var c=f.sourceFormat,v=f.seriesLayoutBy,d=f.startIndex,g=f.dimensionsDefine,p=IT[KS(c,v)];if(st(o,p),c===Wi)o.getItem=n,o.count=a,o.fillStorage=r;else{var y=IE(c,v);o.getItem=Mt(y,null,u,d,g);var _=BE(c,v);o.count=Mt(_,null,u,d,g)}};var n=function(o,u){o=o-this._offset,u=u||[];for(var f=this._data,c=this._dimSize,v=c*o,d=0;d<c;d++)u[d]=f[v+d];return u},r=function(o,u,f,c){for(var v=this._data,d=this._dimSize,g=0;g<d;g++){for(var p=c[g],y=p[0]==null?1/0:p[0],_=p[1]==null?-1/0:p[1],S=u-o,x=f[g],M=0;M<S;M++){var C=v[M*d+g];x[o+M]=C,C<y&&(y=C),C>_&&(_=C)}p[0]=y,p[1]=_}},a=function(){return this._data?this._data.length/this._dimSize:0};IT=(e={},e[Yn+"_"+Qa]={pure:!0,appendData:i},e[Yn+"_"+Hs]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Qr]={pure:!0,appendData:i},e[ga]={pure:!0,appendData:function(o){var u=this._data;k(o,function(f,c){for(var v=u[c]||(u[c]=[]),d=0;d<(f||[]).length;d++)v.push(f[d])})}},e[zr]={appendData:i},e[Wi]={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 u=0;u<o.length;u++)this._data.push(o[u])}})(),t})(),kT=function(t,e,n,r){return t[r]},F4=(Fo={},Fo[Yn+"_"+Qa]=function(t,e,n,r){return t[r+e]},Fo[Yn+"_"+Hs]=function(t,e,n,r,a){r+=e;for(var i=a||[],o=t,u=0;u<o.length;u++){var f=o[u];i[u]=f?f[r]:null}return i},Fo[Qr]=kT,Fo[ga]=function(t,e,n,r,a){for(var i=a||[],o=0;o<n.length;o++){var u=n[o].name,f=t[u];i[o]=f?f[r]:null}return i},Fo[zr]=kT,Fo);function IE(t,e){var n=F4[KS(t,e)];return n}var PT=function(t,e,n){return t.length},G4=(Go={},Go[Yn+"_"+Qa]=function(t,e,n){return Math.max(0,t.length-e)},Go[Yn+"_"+Hs]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},Go[Qr]=PT,Go[ga]=function(t,e,n){var r=n[0].name,a=t[r];return a?a.length:0},Go[zr]=PT,Go);function BE(t,e){var n=G4[KS(t,e)];return n}var ky=function(t,e,n){return t[e]},U4=(Uo={},Uo[Yn]=ky,Uo[Qr]=function(t,e,n){return t[n]},Uo[ga]=ky,Uo[zr]=function(t,e,n){var r=lc(t);return r instanceof Array?r[e]:r},Uo[Wi]=ky,Uo);function kE(t){var e=U4[t];return e}function KS(t,e){return t===Yn?t+"_"+e:t}function Bs(t,e,n){if(t){var r=t.getRawDataItem(e);if(r!=null){var a=t.getStore(),i=a.getSource().sourceFormat;if(n!=null){var o=t.getDimensionIndex(n),u=a.getDimensionProperty(o);return kE(i)(r,o,u)}else{var f=r;return i===zr&&(f=lc(r)),f}}}}var j4=/\{@(.+?)\}/g,Y4=(function(){function t(){}return t.prototype.getDataParams=function(e,n){var r=this.getData(n),a=this.getRawValue(e,n),i=r.getRawIndex(e),o=r.getName(e),u=r.getRawDataItem(e),f=r.getItemVisual(e,"style"),c=f&&f[r.getItemVisual(e,"drawType")||"fill"],v=f&&f.stroke,d=this.mainType,g=d==="series",p=r.userOutput&&r.userOutput.get();return{componentType:d,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:g?this.subType:null,seriesIndex:this.seriesIndex,seriesId:g?this.id:null,seriesName:g?this.name:null,name:o,dataIndex:i,data:u,dataType:n,value:a,color:c,borderColor:v,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,n,r,a,i,o){n=n||"normal";var u=this.getData(r),f=this.getDataParams(e,r);if(o&&(f.value=o.interpolatedValue),a!=null&&ct(f.value)&&(f.value=f.value[a]),!i){var c=u.getItemModel(e);i=c.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(Rt(i))return f.status=n,f.dimensionIndex=a,i(f);if(pt(i)){var v=qS(i,f);return v.replace(j4,function(d,g){var p=g.length,y=g;y.charAt(0)==="["&&y.charAt(p-1)==="]"&&(y=+y.slice(1,p-1));var _=Bs(u,e,y);if(o&&ct(o.interpolatedValue)){var S=u.getDimensionIndex(y);S>=0&&(_=o.interpolatedValue[S])}return _!=null?_+"":""})}},t.prototype.getRawValue=function(e,n){return Bs(this.getData(n),e)},t.prototype.formatTooltip=function(e,n,r){},t})();function HT(t){var e,n;return _t(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Ef(t){return new q4(t)}var q4=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=v(this._modBy),u=this._modDataCount||0,f=v(e&&e.modBy),c=e&&e.modDataCount||0;(o!==f||u!==c)&&(i="reset");function v(M){return!(M>=1)&&(M=1),M}var d;(this._dirty||i==="reset")&&(this._dirty=!1,d=this._doReset(r)),this._modBy=f,this._modDataCount=c;var g=e&&e.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,y=Math.min(g!=null?this._dueIndex+g:1/0,this._dueEnd);if(!r&&(d||p<y)){var _=this._progress;if(ct(_))for(var S=0;S<_.length;S++)this._doProgress(_[S],p,y,f,c);else this._doProgress(_,p,y,f,c)}this._dueIndex=y;var x=this._settedOutputEnd!=null?this._settedOutputEnd:y;this._outputDueEnd=x}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,n,r,a,i){VT.reset(n,r,a,i),this._callingProgress=e,this._callingProgress({start:n,end:r,count:r-n,next:VT.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,r;!e&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),ct(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),r},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})(),VT=(function(){var t,e,n,r,a,i={reset:function(f,c,v,d){e=f,t=c,n=v,r=d,a=Math.ceil(r/n),i.next=n>1&&r>0?u:o}};return i;function o(){return e<t?e++:null}function u(){var f=e%a*n+Math.ceil(e/a),c=e>=t?null:f<r?f:e;return e++,c}})();function kv(t,e){var n=e&&e.type;return n==="ordinal"?t:(n==="time"&&!de(t)&&t!=null&&t!=="-"&&(t=+Rr(t)),t==null||t===""?NaN:Number(t))}Ct({number:function(t){return parseFloat(t)},time:function(t){return+Rr(t)},trim:function(t){return pt(t)?qr(t):t}});var X4=(function(){function t(e,n){var r=e==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,n){var r=de(e)?e:Vf(e),a=de(n)?n:Vf(n),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var u=pt(e),f=pt(n);u&&(r=f?e:0),f&&(a=u?n:0)}return r<a?this._resultLT:r>a?-this._resultLT:0},t})(),Z4=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,n){},t.prototype.retrieveValueFromItem=function(e,n){},t.prototype.convertValue=function(e,n){return kv(e,n)},t})();function $4(t,e){var n=new Z4,r=t.data,a=n.sourceFormat=t.sourceFormat,i=t.startIndex,o="";t.seriesLayoutBy!==Qa&&Fn(o);var u=[],f={},c=t.dimensionsDefine;if(c)k(c,function(_,S){var x=_.name,M={index:S,name:x,displayName:_.displayName};if(u.push(M),x!=null){var C="";zt(f,x)&&Fn(C),f[x]=M}});else for(var v=0;v<t.dimensionsDetectedCount;v++)u.push({index:v});var d=IE(a,Qa);e.__isBuiltIn&&(n.getRawDataItem=function(_){return d(r,i,u,_)},n.getRawData=Mt(W4,null,t)),n.cloneRawData=Mt(Q4,null,t);var g=BE(a,Qa);n.count=Mt(g,null,r,i,u);var p=kE(a);n.retrieveValue=function(_,S){var x=d(r,i,u,_);return y(x,S)};var y=n.retrieveValueFromItem=function(_,S){if(_!=null){var x=u[S];if(x)return p(_,S,x.name)}};return n.getDimensionInfo=Mt(K4,null,u,f),n.cloneAllDimensionInfo=Mt(J4,null,u),n}function W4(t){var e=t.sourceFormat;if(!JS(e)){var n="";Fn(n)}return t.data}function Q4(t){var e=t.sourceFormat,n=t.data;if(!JS(e)){var r="";Fn(r)}if(e===Yn){for(var a=[],i=0,o=n.length;i<o;i++)a.push(n[i].slice());return a}else if(e===Qr){for(var a=[],i=0,o=n.length;i<o;i++)a.push(st({},n[i]));return a}}function K4(t,e,n){if(n!=null){if(de(n)||!isNaN(n)&&!zt(e,n))return t[n];if(zt(e,n))return e[n]}}function J4(t){return Ht(t)}var PE=Ct();function tH(t){t=Ht(t);var e=t.type,n="";e||Fn(n);var r=e.split(":");r.length!==2&&Fn(n);var a=!1;r[0]==="echarts"&&(e=r[1],a=!0),t.__isBuiltIn=a,PE.set(e,t)}function eH(t,e,n){var r=qe(t),a=r.length,i="";a||Fn(i);for(var o=0,u=a;o<u;o++){var f=r[o];e=nH(f,e),o!==u-1&&(e.length=Math.max(e.length,1))}return e}function nH(t,e,n,r){var a="";e.length||Fn(a),_t(t)||Fn(a);var i=t.type,o=PE.get(i);o||Fn(a);var u=mt(e,function(c){return $4(c,o)}),f=qe(o.transform({upstream:u[0],upstreamList:u,config:Ht(t.config)}));return mt(f,function(c,v){var d="";_t(c)||Fn(d),c.data||Fn(d);var g=OE(c.data);JS(g)||Fn(d);var p,y=e[0];if(y&&v===0&&!c.dimensions){var _=y.startIndex;_&&(c.data=y.data.slice(0,_).concat(c.data)),p={seriesLayoutBy:Qa,sourceHeader:_,dimensions:y.metaRawOption.dimensions}}else p={seriesLayoutBy:Qa,sourceHeader:0,dimensions:c.dimensions};return p_(c.data,p,null)})}function JS(t){return t===Yn||t===Qr}var ip="undefined",rH=typeof Uint32Array===ip?Array:Uint32Array,aH=typeof Uint16Array===ip?Array:Uint16Array,HE=typeof Int32Array===ip?Array:Int32Array,FT=typeof Float64Array===ip?Array:Float64Array,VE={float:FT,int:HE,ordinal:Array,number:Array,time:FT},Py;function hs(t){return t>65535?rH:aH}function vs(){return[1/0,-1/0]}function iH(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function GT(t,e,n,r,a){var i=VE[n||"float"];if(a){var o=t[e],u=o&&o.length;if(u!==r){for(var f=new i(r),c=0;c<u;c++)f[c]=o[c];t[e]=f}}else t[e]=new i(r)}var g_=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Ct()}return t.prototype.initData=function(e,n,r){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),i=this.defaultDimValueGetter=Py[a.sourceFormat];this._dimValueGetter=r||i,this._rawExtent=[],zE(a),this._dimensions=mt(n,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,n){var r=this._calcDimNameToIdx,a=this._dimensions,i=r.get(e);if(i!=null){if(a[i].type===n)return i}else i=a.length;return a[i]={type:n},r.set(e,i),this._chunks[i]=new VE[n||"float"](this._rawCount),this._rawExtent[i]=vs(),i},t.prototype.collectOrdinalMeta=function(e,n){var r=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,o=a.ordinalOffset||0,u=r.length;o===0&&(i[e]=vs());for(var f=i[e],c=o;c<u;c++){var v=r[c]=n.parseAndCollect(r[c]);isNaN(v)||(f[0]=Math.min(v,f[0]),f[1]=Math.max(v,f[1]))}a.ordinalMeta=n,a.ordinalOffset=u,a.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var n=this._dimensions[e],r=n.ordinalMeta;return r},t.prototype.getDimensionProperty=function(e){var n=this._dimensions[e];return n&&n.property},t.prototype.appendData=function(e){var n=this._provider,r=this.count();n.appendData(e);var a=n.count();return n.persistent||(a+=r),r<a&&this._initDataFromProvider(r,a,!0),[r,a]},t.prototype.appendValues=function(e,n){for(var r=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,u=this.count(),f=u+Math.max(e.length,n||0),c=0;c<i;c++){var v=a[c];GT(r,c,v.type,f,!0)}for(var d=[],g=u;g<f;g++)for(var p=g-u,y=0;y<i;y++){var v=a[y],_=Py.arrayRows.call(this,e[p]||d,v.property,p,y);r[y][g]=_;var S=o[y];_<S[0]&&(S[0]=_),_>S[1]&&(S[1]=_)}return this._rawCount=this._count=f,{start:u,end:f}},t.prototype._initDataFromProvider=function(e,n,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,u=o.length,f=this._rawExtent,c=mt(o,function(M){return M.property}),v=0;v<u;v++){var d=o[v];f[v]||(f[v]=vs()),GT(i,v,d.type,n,r)}if(a.fillStorage)a.fillStorage(e,n,i,f);else for(var g=[],p=e;p<n;p++){g=a.getItem(p,g);for(var y=0;y<u;y++){var _=i[y],S=this._dimValueGetter(g,c[y],p,y);_[p]=S;var x=f[y];S<x[0]&&(x[0]=S),S>x[1]&&(x[1]=S)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=n,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,n){if(!(n>=0&&n<this._count))return NaN;var r=this._chunks[e];return r?r[this.getRawIndex(n)]:NaN},t.prototype.getValues=function(e,n){var r=[],a=[];if(n==null){n=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;for(var i=0,o=a.length;i<o;i++)r.push(this.get(a[i],n));return r},t.prototype.getByRawIndex=function(e,n){if(!(n>=0&&n<this._rawCount))return NaN;var r=this._chunks[e];return r?r[n]:NaN},t.prototype.getSum=function(e){var n=this._chunks[e],r=0;if(n)for(var a=0,i=this.count();a<i;a++){var o=this.get(e,a);isNaN(o)||(r+=o)}return r},t.prototype.getMedian=function(e){var n=[];this.each([e],function(i){isNaN(i)||n.push(i)});var r=n.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?r[(a-1)/2]:(r[a/2]+r[a/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var n=this._indices,r=n[e];if(r!=null&&r<this._count&&r===e)return e;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(n[o]<e)a=o+1;else if(n[o]>e)i=o-1;else return o}return-1},t.prototype.indicesOfNearest=function(e,n,r){var a=this._chunks,i=a[e],o=[];if(!i)return o;r==null&&(r=1/0);for(var u=1/0,f=-1,c=0,v=0,d=this.count();v<d;v++){var g=this.getRawIndex(v),p=n-i[g],y=Math.abs(p);y<=r&&((y<u||y===u&&p>=0&&f<0)&&(u=y,f=p,c=0),p===f&&(o[c++]=v))}return o.length=c,o},t.prototype.getIndices=function(){var e,n=this._indices;if(n){var r=n.constructor,a=this._count;if(r===Array){e=new r(a);for(var i=0;i<a;i++)e[i]=n[i]}else e=new r(n.buffer,0,a)}else{var r=hs(this._rawCount);e=new r(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},t.prototype.filter=function(e,n){if(!this._count)return this;for(var r=this.clone(),a=r.count(),i=hs(r._rawCount),o=new i(a),u=[],f=e.length,c=0,v=e[0],d=r._chunks,g=0;g<a;g++){var p=void 0,y=r.getRawIndex(g);if(f===0)p=n(g);else if(f===1){var _=d[v][y];p=n(_,g)}else{for(var S=0;S<f;S++)u[S]=d[e[S]][y];u[S]=g,p=n.apply(null,u)}p&&(o[c++]=y)}return c<a&&(r._indices=o),r._count=c,r._extent=[],r._updateGetRawIdx(),r},t.prototype.selectRange=function(e){var n=this.clone(),r=n._count;if(!r)return this;var a=ae(e),i=a.length;if(!i)return this;var o=n.count(),u=hs(n._rawCount),f=new u(o),c=0,v=a[0],d=e[v][0],g=e[v][1],p=n._chunks,y=!1;if(!n._indices){var _=0;if(i===1){for(var S=p[a[0]],x=0;x<r;x++){var M=S[x];(M>=d&&M<=g||isNaN(M))&&(f[c++]=_),_++}y=!0}else if(i===2){for(var S=p[a[0]],C=p[a[1]],T=e[a[1]][0],D=e[a[1]][1],x=0;x<r;x++){var M=S[x],R=C[x];(M>=d&&M<=g||isNaN(M))&&(R>=T&&R<=D||isNaN(R))&&(f[c++]=_),_++}y=!0}}if(!y)if(i===1)for(var x=0;x<o;x++){var E=n.getRawIndex(x),M=p[a[0]][E];(M>=d&&M<=g||isNaN(M))&&(f[c++]=E)}else for(var x=0;x<o;x++){for(var z=!0,E=n.getRawIndex(x),I=0;I<i;I++){var N=a[I],M=p[N][E];(M<e[N][0]||M>e[N][1])&&(z=!1)}z&&(f[c++]=n.getRawIndex(x))}return c<o&&(n._indices=f),n._count=c,n._extent=[],n._updateGetRawIdx(),n},t.prototype.map=function(e,n){var r=this.clone(e);return this._updateDims(r,e,n),r},t.prototype.modify=function(e,n){this._updateDims(this,e,n)},t.prototype._updateDims=function(e,n,r){for(var a=e._chunks,i=[],o=n.length,u=e.count(),f=[],c=e._rawExtent,v=0;v<n.length;v++)c[n[v]]=vs();for(var d=0;d<u;d++){for(var g=e.getRawIndex(d),p=0;p<o;p++)f[p]=a[n[p]][g];f[o]=d;var y=r&&r.apply(null,f);if(y!=null){typeof y!="object"&&(i[0]=y,y=i);for(var v=0;v<y.length;v++){var _=n[v],S=y[v],x=c[_],M=a[_];M&&(M[g]=S),S<x[0]&&(x[0]=S),S>x[1]&&(x[1]=S)}}}},t.prototype.lttbDownSample=function(e,n){var r=this.clone([e],!0),a=r._chunks,i=a[e],o=this.count(),u=0,f=Math.floor(1/n),c=this.getRawIndex(0),v,d,g,p=new(hs(this._rawCount))(Math.min((Math.ceil(o/f)+2)*2,o));p[u++]=c;for(var y=1;y<o-1;y+=f){for(var _=Math.min(y+f,o-1),S=Math.min(y+f*2,o),x=(S+_)/2,M=0,C=_;C<S;C++){var T=this.getRawIndex(C),D=i[T];isNaN(D)||(M+=D)}M/=S-_;var R=y,E=Math.min(y+f,o),z=y-1,I=i[c];v=-1,g=R;for(var N=-1,L=0,C=R;C<E;C++){var T=this.getRawIndex(C),D=i[T];if(isNaN(D)){L++,N<0&&(N=T);continue}d=Math.abs((z-x)*(D-I)-(z-C)*(M-I)),d>v&&(v=d,g=T)}L>0&&L<E-R&&(p[u++]=Math.min(N,g),g=Math.max(N,g)),p[u++]=g,c=g}return p[u++]=this.getRawIndex(o-1),r._count=u,r._indices=p,r.getRawIndex=this._getRawIdx,r},t.prototype.minmaxDownSample=function(e,n){for(var r=this.clone([e],!0),a=r._chunks,i=Math.floor(1/n),o=a[e],u=this.count(),f=new(hs(this._rawCount))(Math.ceil(u/i)*2),c=0,v=0;v<u;v+=i){var d=v,g=o[this.getRawIndex(d)],p=v,y=o[this.getRawIndex(p)],_=i;v+i>u&&(_=u-v);for(var S=0;S<_;S++){var x=this.getRawIndex(v+S),M=o[x];M<g&&(g=M,d=v+S),M>y&&(y=M,p=v+S)}var C=this.getRawIndex(d),T=this.getRawIndex(p);d<p?(f[c++]=C,f[c++]=T):(f[c++]=T,f[c++]=C)}return r._count=c,r._indices=f,r._updateGetRawIdx(),r},t.prototype.downSample=function(e,n,r,a){for(var i=this.clone([e],!0),o=i._chunks,u=[],f=Math.floor(1/n),c=o[e],v=this.count(),d=i._rawExtent[e]=vs(),g=new(hs(this._rawCount))(Math.ceil(v/f)),p=0,y=0;y<v;y+=f){f>v-y&&(f=v-y,u.length=f);for(var _=0;_<f;_++){var S=this.getRawIndex(y+_);u[_]=c[S]}var x=r(u),M=this.getRawIndex(Math.min(y+a(u,x)||0,v-1));c[M]=x,x<d[0]&&(d[0]=x),x>d[1]&&(d[1]=x),g[p++]=M}return i._count=p,i._indices=g,i._updateGetRawIdx(),i},t.prototype.each=function(e,n){if(this._count)for(var r=e.length,a=this._chunks,i=0,o=this.count();i<o;i++){var u=this.getRawIndex(i);switch(r){case 0:n(i);break;case 1:n(a[e[0]][u],i);break;case 2:n(a[e[0]][u],a[e[1]][u],i);break;default:for(var f=0,c=[];f<r;f++)c[f]=a[e[f]][u];c[f]=i,n.apply(null,c)}}},t.prototype.getDataExtent=function(e){var n=this._chunks[e],r=vs();if(!n)return r;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=r;for(var u=o[0],f=o[1],c=0;c<a;c++){var v=this.getRawIndex(c),d=n[v];d<u&&(u=d),d>f&&(f=d)}return o=[u,f],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var n=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],a=this._chunks,i=0;i<a.length;i++)r.push(a[i][n]);return r},t.prototype.clone=function(e,n){var r=new t,a=this._chunks,i=e&&$r(e,function(u,f){return u[f]=!0,u},{});if(i)for(var o=0;o<a.length;o++)r._chunks[o]=i[o]?iH(a[o]):a[o];else r._chunks=a;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Ht(this._extent),e._rawExtent=Ht(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,n=void 0;if(e===Array){var r=this._indices.length;n=new e(r);for(var a=0;a<r;a++)n[a]=this._indices[a]}else n=new e(this._indices);return n}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(n,r,a,i){return kv(n[i],this._dimensions[i])}Py={arrayRows:e,objectRows:function(n,r,a,i){return kv(n[r],this._dimensions[i])},keyedColumns:e,original:function(n,r,a,i){var o=n&&(n.value==null?n:n.value);return kv(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(n,r,a,i){return n[i]}}})(),t})(),oH=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,n){this._sourceList=e,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,a,i;if(ev(e)){var o=e,u=void 0,f=void 0,c=void 0;if(r){var v=n[0];v.prepareSource(),c=v.getSource(),u=c.data,f=c.sourceFormat,i=[v._getVersionSign()]}else u=o.get("data",!0),f=An(u)?Wi:zr,i=[];var d=this._getSourceMetaRawOption()||{},g=c&&c.metaRawOption||{},p=Pt(d.seriesLayoutBy,g.seriesLayoutBy)||null,y=Pt(d.sourceHeader,g.sourceHeader),_=Pt(d.dimensions,g.dimensions),S=p!==g.seriesLayoutBy||!!y!=!!g.sourceHeader||_;a=S?[p_(u,{seriesLayoutBy:p,sourceHeader:y,dimensions:_},f)]:[]}else{var x=e;if(r){var M=this._applyTransform(n);a=M.sourceList,i=M.upstreamSignList}else{var C=x.get("source",!0);a=[p_(C,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},t.prototype._applyTransform=function(e){var n=this._sourceHost,r=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&UT(i)}var o,u=[],f=[];return k(e,function(c){c.prepareSource();var v=c.getSource(a||0),d="";a!=null&&!v&&UT(d),u.push(v),f.push(c._getVersionSign())}),r?o=eH(r,u,{datasetIndex:n.componentIndex}):a!=null&&(o=[P4(u[0])]),{sourceList:o,upstreamSignList:f}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),n=0;n<e.length;n++){var r=e[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var n=this._sourceList[e];if(!n){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(e)}return n},t.prototype.getSharedDataStore=function(e){var n=e.makeStoreSchema();return this._innerGetDataStore(n.dimensions,e.source,n.hash)},t.prototype._innerGetDataStore=function(e,n,r){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var u=o[r];if(!u){var f=this._getUpstreamSourceManagers()[0];ev(this._sourceHost)&&f?u=f._innerGetDataStore(e,n,r):(u=new g_,u.initData(new NE(n,e.length),e)),o[r]=u}return u},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(ev(e)){var n=ZS(e);return n?[n.getSourceManager()]:[]}else return mt(v4(e),function(r){return r.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,n,r,a;if(ev(e))n=e.get("seriesLayoutBy",!0),r=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;n=i.get("seriesLayoutBy",!0),r=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:r,dimensions:a}},t})();function ev(t){return t.mainType==="series"}function UT(t){throw new Error(t)}var lH="line-height:1";function FE(t){var e=t.lineHeight;return e==null?lH:"line-height:"+xn(e+"")+"px"}function GE(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,a=t.fontWeight||"400",i=t.color||"#464646",o=t.fontSize||14,u=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+xn(r+"")+"px;color:"+xn(n)+";font-weight:"+xn(a+""),valueStyle:"font-size:"+xn(o+"")+"px;color:"+xn(i)+";font-weight:"+xn(u+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:u}}}var sH=[0,10,20,30],uH=["",`
79
+ `,`
80
+
81
+ `,`
82
+
83
+
84
+ `];function Wf(t,e){return e.type=t,e}function m_(t){return t.type==="section"}function UE(t){return m_(t)?fH:cH}function jE(t){if(m_(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return k(t.blocks,function(a){var i=jE(a);i>=e&&(e=i+ +(r&&(!i||m_(a)&&!a.noHeader)))}),e}return 0}function fH(t,e,n,r){var a=e.noHeader,i=hH(jE(e)),o=[],u=e.blocks||[];ca(!u||ct(u)),u=u||[];var f=t.orderMode;if(e.sortBlocks&&f){u=u.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(zt(c,f)){var v=new X4(c[f],null);u.sort(function(_,S){return v.evaluate(_.sortParam,S.sortParam)})}else f==="seriesDesc"&&u.reverse()}k(u,function(_,S){var x=e.valueFormatter,M=UE(_)(x?st(st({},t),{valueFormatter:x}):t,_,S>0?i.html:0,r);M!=null&&o.push(M)});var d=t.renderMode==="richText"?o.join(i.richText):y_(r,o.join(""),a?n:i.html);if(a)return d;var g=d_(e.header,"ordinal",t.useUTC),p=GE(r,t.renderMode).nameStyle,y=FE(r);return t.renderMode==="richText"?YE(t,g,p)+i.richText+d:y_(r,'<div style="'+p+";"+y+';">'+xn(g)+"</div>"+d,n)}function cH(t,e,n,r){var a=t.renderMode,i=e.noName,o=e.noValue,u=!e.markerType,f=e.name,c=t.useUTC,v=e.valueFormatter||t.valueFormatter||function(T){return T=ct(T)?T:[T],mt(T,function(D,R){return d_(D,ct(p)?p[R]:p,c)})};if(!(i&&o)){var d=u?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),g=i?"":d_(f,"ordinal",c),p=e.valueType,y=o?[]:v(e.value,e.dataIndex),_=!u||!i,S=!u&&i,x=GE(r,a),M=x.nameStyle,C=x.valueStyle;return a==="richText"?(u?"":d)+(i?"":YE(t,g,M))+(o?"":pH(t,y,_,S,C)):y_(r,(u?"":d)+(i?"":vH(g,!u,M))+(o?"":dH(y,_,S,C)),n)}}function jT(t,e,n,r,a,i){if(t){var o=UE(t),u={useUTC:a,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(u,t,0,i)}}function hH(t){return{html:sH[t],richText:uH[t]}}function y_(t,e,n){var r='<div style="clear:both"></div>',a="margin: "+n+"px 0 0",i=FE(t);return'<div style="'+a+";"+i+';">'+e+r+"</div>"}function vH(t,e,n){var r=e?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+xn(t)+"</span>"}function dH(t,e,n,r){var a=n?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return t=ct(t)?t:[t],'<span style="'+i+";"+r+'">'+mt(t,function(o){return xn(o)}).join("&nbsp;&nbsp;")+"</span>"}function YE(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function pH(t,e,n,r,a){var i=[a],o=r?10:20;return n&&i.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(ct(e)?e.join(" "):e,i)}function gH(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return sl(r)}function qE(t,e){var n=t.get("padding");return n??(e==="richText"?[8,10]:10)}var Hy=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=gR()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,n,r){var a=r==="richText"?this._generateStyleName():null,i=_E({color:n,type:e,renderMode:r,markerId:a});return pt(i)?i:(this.richTextStyles[a]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(e,n){var r={};ct(n)?k(n,function(i){return st(r,i)}):st(r,n);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+e+"}"},t})();function mH(t){var e=t.series,n=t.dataIndex,r=t.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,u=e.getRawValue(n),f=ct(u),c=gH(e,n),v,d,g,p;if(o>1||f&&!o){var y=yH(u,e,n,i,c);v=y.inlineValues,d=y.inlineValueTypes,g=y.blocks,p=y.inlineValues[0]}else if(o){var _=a.getDimensionInfo(i[0]);p=v=Bs(a,n,i[0]),d=_.type}else p=v=f?u[0]:u;var S=wS(e),x=S&&e.name||"",M=a.getName(n),C=r?x:M;return Wf("section",{header:x,noHeader:r||!S,sortParam:p,blocks:[Wf("nameValue",{markerType:"item",markerColor:c,name:C,noName:!qr(C),value:v,valueType:d,dataIndex:n})].concat(g||[])})}function yH(t,e,n,r,a){var i=e.getData(),o=$r(t,function(d,g,p){var y=i.getDimensionInfo(p);return d=d||y&&y.tooltip!==!1&&y.displayName!=null},!1),u=[],f=[],c=[];r.length?k(r,function(d){v(Bs(i,n,d),d)}):k(t,v);function v(d,g){var p=i.getDimensionInfo(g);!p||p.otherDims.tooltip===!1||(o?c.push(Wf("nameValue",{markerType:"subItem",markerColor:a,name:p.displayName,value:d,valueType:p.type})):(u.push(d),f.push(p.type)))}return{inlineValues:u,inlineValueTypes:f,blocks:c}}var Ei=xe();function nv(t,e){return t.getName(e)||t.getId(e)}var _H="__universalTransitionEnabled",qn=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return e.prototype.init=function(n,r,a){this.seriesIndex=this.componentIndex,this.dataTask=Ef({count:bH,reset:xH}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,a);var i=Ei(this).sourceManager=new oH(this);i.prepareSource();var o=this.getInitialData(n,a);qT(o,this),this.dataTask.context.data=o,Ei(this).dataBeforeProcessed=o,YT(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(n,r){var a=Zf(this),i=a?mc(n):{},o=this.subType;$t.hasClass(o)&&(o+="Series"),qt(n,r.getTheme().get(this.subType)),qt(n,this.getDefaultOption()),a_(n,"label",["show"]),this.fillDataTextStyle(n.data),a&&ul(n,i,a)},e.prototype.mergeOption=function(n,r){n=qt(this.option,n,!0),this.fillDataTextStyle(n.data);var a=Zf(this);a&&ul(this.option,n,a);var i=Ei(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(n,r);qT(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ei(this).dataBeforeProcessed=o,YT(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(n){if(n&&!An(n))for(var r=["show"],a=0;a<n.length;a++)n[a]&&n[a].label&&a_(n[a],"label",r)},e.prototype.getInitialData=function(n,r){},e.prototype.appendData=function(n){var r=this.getRawData();r.appendData(n.data)},e.prototype.getData=function(n){var r=__(this);if(r){var a=r.context.data;return n==null||!a.getLinkedData?a:a.getLinkedData(n)}else return Ei(this).data},e.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},e.prototype.setData=function(n){var r=__(this);if(r){var a=r.context;a.outputData=n,r!==this.dataTask&&(a.data=n)}Ei(this).data=n},e.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return Ct(n)},e.prototype.getSourceManager=function(){return Ei(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Ei(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},e.prototype.formatTooltip=function(n,r,a){return mH({series:this,dataIndex:n,multipleSeries:r})},e.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(Dt.node&&!(n&&n.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(n,r,a){var i=this.ecModel,o=$S.prototype.getColorFromPalette.call(this,n,r,a);return o||(o=i.getColorFromPalette(n,r,a)),o},e.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},e.prototype.unselect=function(n,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var u=0;u<n.length;u++){var f=n[u],c=nv(o,f);a[c]=!1,this._selectedDataIndicesMap[c]=-1}}},e.prototype.toggleSelect=function(n,r){for(var a=[],i=0;i<n.length;i++)a[0]=n[i],this.isSelected(n[i],r)?this.unselect(a,r):this.select(a,r)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,r=ae(n),a=[],i=0;i<r.length;i++){var o=n[r[i]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(n,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[nv(i,n)])&&!i.getItemModel(n).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[_H])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},e.prototype._innerSelect=function(n,r){var a,i,o=this.option,u=o.selectedMode,f=r.length;if(!(!u||!f)){if(u==="series")o.selectedMap="all";else if(u==="multiple"){_t(o.selectedMap)||(o.selectedMap={});for(var c=o.selectedMap,v=0;v<f;v++){var d=r[v],g=nv(n,d);c[g]=!0,this._selectedDataIndicesMap[g]=n.getRawIndex(d)}}else if(u==="single"||u===!0){var p=r[f-1],g=nv(n,p);o.selectedMap=(a={},a[g]=!0,a),this._selectedDataIndicesMap=(i={},i[g]=n.getRawIndex(p),i)}}},e.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var r=[];n.hasItemOption&&n.each(function(a){var i=n.getRawDataItem(a);i&&i.selected&&r.push(a)}),r.length>0&&this._innerSelect(n,r)}},e.registerClass=function(n){return $t.registerClass(n)},e.protoInitialize=(function(){var n=e.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"})(),e})($t);Lr(qn,Y4);Lr(qn,$S);wR(qn,$t);function YT(t){var e=t.name;wS(t)||(t.name=SH(t)||e)}function SH(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return k(n,function(a){var i=e.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function bH(t){return t.model.getRawData().count()}function xH(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),wH}function wH(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function qT(t,e){k(H2(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,_e(MH,e))})}function MH(t,e){var n=__(t);return n&&n.setOutputEnd((e||this).count()),e}function __(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(t.uid))}return r}}var dn=(function(){function t(){this.group=new Ie,this.uid=Qd("viewComponent")}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,a){},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,a){},t.prototype.updateLayout=function(e,n,r,a){},t.prototype.updateVisual=function(e,n,r,a){},t.prototype.toggleBlurSeries=function(e,n,r){},t.prototype.eachRendered=function(e){var n=this.group;n&&n.traverse(e)},t})();CS(dn);kd(dn);function t1(){var t=xe();return function(e){var n=t(e),r=e.pipelineContext,a=!!n.large,i=!!n.progressiveRender,o=n.large=!!(r&&r.large),u=n.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==u)&&"reset"}}var XE=xe(),CH=t1(),Cn=(function(){function t(){this.group=new Ie,this.uid=Qd("viewChart"),this.renderTask=Ef({plan:TH,reset:AH}),this.renderTask.context={view:this}}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,a){},t.prototype.highlight=function(e,n,r,a){var i=e.getData(a&&a.dataType);i&&ZT(i,a,"emphasis")},t.prototype.downplay=function(e,n,r,a){var i=e.getData(a&&a.dataType);i&&ZT(i,a,"normal")},t.prototype.remove=function(e,n){this.group.removeAll()},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,a){this.render(e,n,r,a)},t.prototype.updateLayout=function(e,n,r,a){this.render(e,n,r,a)},t.prototype.updateVisual=function(e,n,r,a){this.render(e,n,r,a)},t.prototype.eachRendered=function(e){Zd(this.group,e)},t.markUpdateMethod=function(e,n){XE(e).updateMethod=n},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function XT(t,e,n){t&&f_(t)&&(e==="emphasis"?ad:id)(t,n)}function ZT(t,e,n){var r=ol(t,e),a=e&&e.highlightKey!=null?Jk(e.highlightKey):null;r!=null?k(qe(r),function(i){XT(t.getItemGraphicEl(i),n,a)}):t.eachItemGraphicEl(function(i){XT(i,n,a)})}CS(Cn);kd(Cn);function TH(t){return CH(t.model)}function AH(t){var e=t.model,n=t.ecModel,r=t.api,a=t.payload,i=e.pipelineContext.progressiveRender,o=t.view,u=a&&XE(a).updateMethod,f=i?"incrementalPrepareRender":u&&o[u]?u:"render";return f!=="render"&&o[f](e,n,r,a),DH[f]}var DH={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},vd="\0__throttleOriginMethod",$T="\0__throttleRate",WT="\0__throttleType";function op(t,e,n){var r,a=0,i=0,o=null,u,f,c,v;e=e||0;function d(){i=new Date().getTime(),o=null,t.apply(f,c||[])}var g=function(){for(var p=[],y=0;y<arguments.length;y++)p[y]=arguments[y];r=new Date().getTime(),f=this,c=p;var _=v||e,S=v||n;v=null,u=r-(S?a:i)-_,clearTimeout(o),S?o=setTimeout(d,_):u>=0?d():o=setTimeout(d,-u),a=r};return g.clear=function(){o&&(clearTimeout(o),o=null)},g.debounceNextCall=function(p){v=p},g}function lp(t,e,n,r){var a=t[e];if(a){var i=a[vd]||a,o=a[WT],u=a[$T];if(u!==n||o!==r){if(n==null||!r)return t[e]=i;a=t[e]=op(i,n,r==="debounce"),a[vd]=i,a[WT]=r,a[$T]=n}return a}}function dd(t,e){var n=t[e];n&&n[vd]&&(n.clear&&n.clear(),t[e]=n[vd])}var QT=xe(),KT={itemStyle:Gf(uE,!0),lineStyle:Gf(sE,!0)},RH={lineStyle:"stroke",itemStyle:"fill"};function ZE(t,e){var n=t.visualStyleMapper||KT[e];return n||(console.warn("Unknown style type '"+e+"'."),KT.itemStyle)}function $E(t,e){var n=t.visualDrawType||RH[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var EH={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",a=t.getModel(r),i=ZE(t,r),o=i(a),u=a.getShallow("decal");u&&(n.setVisual("decal",u),u.dirty=!0);var f=$E(t,r),c=o[f],v=Rt(c)?c:null,d=o.fill==="auto"||o.stroke==="auto";if(!o[f]||v||d){var g=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[f]||(o[f]=g,n.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Rt(o.fill)?g:o.fill,o.stroke=o.stroke==="auto"||Rt(o.stroke)?g:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",f),!e.isSeriesFiltered(t)&&v)return n.setVisual("colorFromPalette",!1),{dataEach:function(p,y){var _=t.getDataParams(y),S=st({},o);S[f]=v(_),p.setItemVisual(y,"style",S)}}}},Ku=new Se,LH={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",a=ZE(t,r),i=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(o,u){var f=o.getRawDataItem(u);if(f&&f[r]){Ku.option=f[r];var c=a(Ku),v=o.ensureUniqueItemVisual(u,"style");st(v,c),Ku.option.decal&&(o.setItemVisual(u,"decal",Ku.option.decal),Ku.option.decal.dirty=!0),i in c&&o.setItemVisual(u,"colorFromPalette",!1)}}:null}}}},OH={performRawSeries:!0,overallReset:function(t){var e=Ct();t.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var a=n.type+"-"+r,i=e.get(a);i||(i={},e.set(a,i)),QT(n).scope=i}}),t.eachSeries(function(n){if(!(n.isColorBySeries()||t.isSeriesFiltered(n))){var r=n.getRawData(),a={},i=n.getData(),o=QT(n).scope,u=n.visualStyleAccessPath||"itemStyle",f=$E(n,u);i.each(function(c){var v=i.getRawIndex(c);a[v]=c}),r.each(function(c){var v=a[c],d=i.getItemVisual(v,"colorFromPalette");if(d){var g=i.ensureUniqueItemVisual(v,"style"),p=r.getName(c)||c+"",y=r.count();g[f]=n.getColorFromPalette(p,o,y)}})}})}},rv=Math.PI;function zH(t,e){e=e||{},Qt(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Ie,r=new be({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var a=new Me({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 be({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});n.add(i);var o;return e.showSpinner&&(o=new cc({shape:{startAngle:-rv/2,endAngle:-rv/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:rv*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:rv*3/2}).delay(300).start("circularInOut"),n.add(o)),n.resize=function(){var u=a.getBoundingRect().width,f=e.showSpinner?e.spinnerRadius:0,c=(t.getWidth()-f*2-(e.showSpinner&&u?10:0)-u)/2-(e.showSpinner&&u?0:5+u/2)+(e.showSpinner?0:u/2)+(u?0:f),v=t.getHeight()/2;e.showSpinner&&o.setShape({cx:c,cy:v}),i.setShape({x:c-f,y:v-f,width:f*2,height:f*2}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var WE=(function(){function t(e,n,r,a){this._stageTaskMap=Ct(),this.ecInstance=e,this.api=n,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return t.prototype.restoreData=function(e,n){e.restoreData(n),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},t.prototype.getPerformArgs=function(e,n){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),a=r.context,i=!n&&r.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=i?r.step:null,u=a&&a.modDataCount,f=u!=null?Math.ceil(u/o):null;return{step:o,modBy:f,modDataCount:u}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,n){var r=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=r.progressiveEnabled&&n.incrementalPrepareRender&&i>=r.threshold,u=e.get("large")&&i>=e.get("largeThreshold"),f=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:f,large:u}},t.prototype.restorePipelines=function(e){var n=this,r=n._pipelineMap=Ct();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,n=this.api.getModel(),r=this.api;k(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";ca(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,n,r),a.overallReset&&this._createOverallStageTask(a,i,n,r)},this)},t.prototype.prepareView=function(e,n,r,a){var i=e.renderTask,o=i.context;o.model=n,o.ecModel=r,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(n,i)},t.prototype.performDataProcessorTasks=function(e,n){this._performStageTasks(this._dataProcessorHandlers,e,n,{block:!0})},t.prototype.performVisualTasks=function(e,n,r){this._performStageTasks(this._visualHandlers,e,n,r)},t.prototype._performStageTasks=function(e,n,r,a){a=a||{};var i=!1,o=this;k(e,function(f,c){if(!(a.visualType&&a.visualType!==f.visualType)){var v=o._stageTaskMap.get(f.uid),d=v.seriesTaskMap,g=v.overallTask;if(g){var p,y=g.agentStubMap;y.each(function(S){u(a,S)&&(S.dirty(),p=!0)}),p&&g.dirty(),o.updatePayload(g,r);var _=o.getPerformArgs(g,a.block);y.each(function(S){S.perform(_)}),g.perform(_)&&(i=!0)}else d&&d.each(function(S,x){u(a,S)&&S.dirty();var M=o.getPerformArgs(S,a.block);M.skip=!f.performRawSeries&&n.isSeriesFiltered(S.context.model),o.updatePayload(S,r),S.perform(M)&&(i=!0)})}});function u(f,c){return f.setDirty&&(!f.dirtyMap||f.dirtyMap.get(c.__pipeline.id))}this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(e){var n;e.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var n=e.tail;do{if(n.__block){e.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},t.prototype.updatePayload=function(e,n){n!=="remain"&&(e.context.payload=n)},t.prototype._createSeriesStageTask=function(e,n,r,a){var i=this,o=n.seriesTaskMap,u=n.seriesTaskMap=Ct(),f=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(v):f?r.eachRawSeriesByType(f,v):c&&c(r,a).each(v);function v(d){var g=d.uid,p=u.set(g,o&&o.get(g)||Ef({plan:PH,reset:HH,count:FH}));p.context={model:d,ecModel:r,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(d,p)}},t.prototype._createOverallStageTask=function(e,n,r,a){var i=this,o=n.overallTask=n.overallTask||Ef({reset:NH});o.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:i};var u=o.agentStubMap,f=o.agentStubMap=Ct(),c=e.seriesType,v=e.getTargetSeries,d=!0,g=!1,p="";ca(!e.createOnAllSeries,p),c?r.eachRawSeriesByType(c,y):v?v(r,a).each(y):(d=!1,k(r.getSeries(),y));function y(_){var S=_.uid,x=f.set(S,u&&u.get(S)||(g=!0,Ef({reset:IH,onDirty:kH})));x.context={model:_,overallProgress:d},x.agent=o,x.__block=d,i._pipe(_,x)}g&&o.dirty()},t.prototype._pipe=function(e,n){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=n),a.tail&&a.tail.pipe(n),a.tail=n,n.__idxInPipeline=a.count++,n.__pipeline=a},t.wrapStageHandler=function(e,n){return Rt(e)&&(e={overallReset:e,seriesType:GH(e)}),e.uid=Qd("stageHandler"),n&&(e.visualType=n),e},t})();function NH(t){t.overallReset(t.ecModel,t.api,t.payload)}function IH(t){return t.overallProgress&&BH}function BH(){this.agent.dirty(),this.getDownstream().dirty()}function kH(){this.agent&&this.agent.dirty()}function PH(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function HH(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=qe(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?mt(e,function(n,r){return QE(r)}):VH}var VH=QE(0);function QE(t){return function(e,n){var r=n.data,a=n.resetDefines[t];if(a&&a.dataEach)for(var i=e.start;i<e.end;i++)a.dataEach(r,i);else a&&a.progress&&a.progress(e,r)}}function FH(t){return t.data.count()}function GH(t){pd=null;try{t(Qf,KE)}catch{}return pd}var Qf={},KE={},pd;JE(Qf,WS);JE(KE,DE);Qf.eachSeriesByType=Qf.eachRawSeriesByType=function(t){pd=t};Qf.eachComponent=function(t){t.mainType==="series"&&t.subType&&(pd=t.subType)};function JE(t,e){for(var n in e.prototype)t[n]=hn}var JT=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const UH={color:JT,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],JT]};var fn="#B9B8CE",tA="#100C2A",av=function(){return{axisLine:{lineStyle:{color:fn}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},eA=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],tL={darkMode:!0,color:eA,backgroundColor:tA,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:fn},pageTextStyle:{color:fn}},textStyle:{color:fn},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:fn}},dataZoom:{borderColor:"#71708A",textStyle:{color:fn},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:fn}},timeline:{lineStyle:{color:fn},label:{color:fn},controlStyle:{color:fn,borderColor:fn}},calendar:{itemStyle:{color:tA},dayLabel:{color:fn},monthLabel:{color:fn},yearLabel:{color:fn}},timeAxis:av(),logAxis:av(),valueAxis:av(),categoryAxis:av(),line:{symbol:"circle"},graph:{color:eA},gauge:{title:{color:fn},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:fn},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};tL.categoryAxis.splitLine.show=!1;var jH=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var n={},r={},a={};if(pt(e)){var i=fa(e);n.mainType=i.main||null,n.subType=i.sub||null}else{var o=["Index","Name","Id"],u={name:1,dataIndex:1,dataType:1};k(e,function(f,c){for(var v=!1,d=0;d<o.length;d++){var g=o[d],p=c.lastIndexOf(g);if(p>0&&p===c.length-g.length){var y=c.slice(0,p);y!=="data"&&(n.mainType=y,n[g.toLowerCase()]=f,v=!0)}}u.hasOwnProperty(c)&&(r[c]=f,v=!0),v||(a[c]=f)})}return{cptQuery:n,dataQuery:r,otherQuery:a}},t.prototype.filter=function(e,n){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,u=r.view;if(!o||!u)return!0;var f=n.cptQuery,c=n.dataQuery;return v(f,o,"mainType")&&v(f,o,"subType")&&v(f,o,"index","componentIndex")&&v(f,o,"name")&&v(f,o,"id")&&v(c,i,"name")&&v(c,i,"dataIndex")&&v(c,i,"dataType")&&(!u.filterForExposedEvent||u.filterForExposedEvent(e,n.otherQuery,a,i));function v(d,g,p,y){return d[p]==null||g[y||p]===d[p]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})(),S_=["symbol","symbolSize","symbolRotate","symbolOffset"],nA=S_.concat(["symbolKeepAspect"]),YH={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o<S_.length;o++){var u=S_[o],f=t.get(u);Rt(f)?(i=!0,a[u]=f):r[u]=f}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(st({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),e.isSeriesFiltered(t))return;var c=ae(a);function v(d,g){for(var p=t.getRawValue(g),y=t.getDataParams(g),_=0;_<c.length;_++){var S=c[_];d.setItemVisual(g,S,a[S](p,y))}}return{dataEach:i?v:null}}},qH={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var n=t.getData();function r(a,i){for(var o=a.getItemModel(i),u=0;u<nA.length;u++){var f=nA[u],c=o.getShallow(f,!0);c!=null&&a.setItemVisual(i,f,c)}}return{dataEach:n.hasItemOption?r:null}}};function XH(t,e,n){switch(n){case"color":var r=t.getItemVisual(e,"style");return r[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function ZH(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function $H(t,e){function n(r,a){var i=[];return r.eachComponent({mainType:"series",subType:t,query:a},function(o){i.push(o.seriesIndex)}),i}k([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(r){e(r[0],function(a,i,o){a=st({},a),o.dispatchAction(st(a,{type:r[1],seriesIndex:n(i,a)}))})})}function ds(t,e,n,r,a){var i=t+e;n.isSilent(i)||r.eachComponent({mainType:"series",subType:"pie"},function(o){for(var u=o.seriesIndex,f=o.option.selectedMap,c=a.selected,v=0;v<c.length;v++)if(c[v].seriesIndex===u){var d=o.getData(),g=ol(d,a.fromActionPayload);n.trigger(i,{type:i,seriesId:o.id,name:ct(g)?d.getName(g[0]):d.getName(g),selected:pt(f)?f:st({},f)})}})}function WH(t,e,n){t.on("selectchanged",function(r){var a=n.getModel();r.isFromClick?(ds("map","selectchanged",e,a,r),ds("pie","selectchanged",e,a,r)):r.fromAction==="select"?(ds("map","selected",e,a,r),ds("pie","selected",e,a,r)):r.fromAction==="unselect"&&(ds("map","unselected",e,a,r),ds("pie","unselected",e,a,r))})}function _f(t,e,n){for(var r;t&&!(e(t)&&(r=t,n));)t=t.__hostTarget||t.parent;return r}var QH=Math.round(Math.random()*9),KH=typeof Object.defineProperty=="function",JH=(function(){function t(){this._id="__ec_inner_"+QH++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,n){var r=this._guard(e);return KH?Object.defineProperty(r,this._id,{value:n,enumerable:!1,configurable:!0}):r[this._id]=n,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})(),tV=oe.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,a=e.width/2,i=e.height/2;t.moveTo(n,r-i),t.lineTo(n+a,r+i),t.lineTo(n-a,r+i),t.closePath()}}),eV=oe.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,a=e.width/2,i=e.height/2;t.moveTo(n,r-i),t.lineTo(n+a,r),t.lineTo(n,r+i),t.lineTo(n-a,r),t.closePath()}}),nV=oe.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,a=e.width/5*3,i=Math.max(a,e.height),o=a/2,u=o*o/(i-o),f=r-i+o+u,c=Math.asin(u/o),v=Math.cos(c)*o,d=Math.sin(c),g=Math.cos(c),p=o*.6,y=o*.7;t.moveTo(n-v,f+u),t.arc(n,f,o,Math.PI-c,Math.PI*2+c),t.bezierCurveTo(n+v-d*p,f+u+g*p,n,r-y,n,r),t.bezierCurveTo(n,r-y,n-v+d*p,f+u+g*p,n-v,f+u),t.closePath()}}),rV=oe.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,a=e.x,i=e.y,o=r/3*2;t.moveTo(a,i),t.lineTo(a+o,i+n),t.lineTo(a,i+n/4*3),t.lineTo(a-o,i+n),t.lineTo(a,i),t.closePath()}}),aV={line:Ja,rect:be,roundRect:be,square:be,circle:uc,diamond:eV,pin:nV,arrow:rV,triangle:tV},iV={line:function(t,e,n,r,a){a.x1=t,a.y1=e+r/2,a.x2=t+n,a.y2=e+r/2},rect:function(t,e,n,r,a){a.x=t,a.y=e,a.width=n,a.height=r},roundRect:function(t,e,n,r,a){a.x=t,a.y=e,a.width=n,a.height=r,a.r=Math.min(n,r)/4},square:function(t,e,n,r,a){var i=Math.min(n,r);a.x=t,a.y=e,a.width=i,a.height=i},circle:function(t,e,n,r,a){a.cx=t+n/2,a.cy=e+r/2,a.r=Math.min(n,r)/2},diamond:function(t,e,n,r,a){a.cx=t+n/2,a.cy=e+r/2,a.width=n,a.height=r},pin:function(t,e,n,r,a){a.x=t+n/2,a.y=e+r/2,a.width=n,a.height=r},arrow:function(t,e,n,r,a){a.x=t+n/2,a.y=e+r/2,a.width=n,a.height=r},triangle:function(t,e,n,r,a){a.cx=t+n/2,a.cy=e+r/2,a.width=n,a.height=r}},gd={};k(aV,function(t,e){gd[e]=new t});var oV=oe.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=ed(t,e,n),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(r.y=n.y+n.height*.4),r},buildPath:function(t,e,n){var r=e.symbolType;if(r!=="none"){var a=gd[r];a||(r="rect",a=gd[r]),iV[r](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,n)}}});function lV(t,e){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=t:n.fill=t,this.markRedraw()}}function ei(t,e,n,r,a,i,o){var u=t.indexOf("empty")===0;u&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var f;return t.indexOf("image://")===0?f=IS(t.slice(8),new Wt(e,n,r,a),o?"center":"cover"):t.indexOf("path://")===0?f=qd(t.slice(7),{},new Wt(e,n,r,a),o?"center":"cover"):f=new oV({shape:{symbolType:t,x:e,y:n,width:r,height:a}}),f.__isEmptyBrush=u,f.setColor=lV,i&&f.setColor(i),f}function sV(t){return ct(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function eL(t,e){if(t!=null)return ct(t)||(t=[t,t]),[ve(t[0],e[0])||0,ve(Pt(t[1],t[0]),e[1])||0]}function $o(t){return isFinite(t)}function uV(t,e,n){var r=e.x==null?0:e.x,a=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(r=r*n.width+n.x,a=a*n.width+n.x,i=i*n.height+n.y,o=o*n.height+n.y),r=$o(r)?r:0,a=$o(a)?a:1,i=$o(i)?i:0,o=$o(o)?o:0;var u=t.createLinearGradient(r,i,a,o);return u}function fV(t,e,n){var r=n.width,a=n.height,i=Math.min(r,a),o=e.x==null?.5:e.x,u=e.y==null?.5:e.y,f=e.r==null?.5:e.r;e.global||(o=o*r+n.x,u=u*a+n.y,f=f*i),o=$o(o)?o:.5,u=$o(u)?u:.5,f=f>=0&&$o(f)?f:.5;var c=t.createRadialGradient(o,u,0,o,u,f);return c}function b_(t,e,n){for(var r=e.type==="radial"?fV(t,e,n):uV(t,e,n),a=e.colorStops,i=0;i<a.length;i++)r.addColorStop(a[i].offset,a[i].color);return r}function cV(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function iv(t){return parseInt(t,10)}function ov(t,e,n){var r=["width","height"][e],a=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(n[r]!=null&&n[r]!=="auto")return parseFloat(n[r]);var u=document.defaultView.getComputedStyle(t);return(t[a]||iv(u[r])||iv(t.style[r]))-(iv(u[i])||0)-(iv(u[o])||0)|0}function hV(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:de(t)?[t]:ct(t)?t:null}function nL(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&hV(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&a!==1&&(n=mt(n,function(i){return i/a}),r/=a)}return[n,r]}var vV=new ll(!0);function md(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function rA(t){return typeof t=="string"&&t!=="none"}function yd(t){var e=t.fill;return e!=null&&e!=="none"}function aA(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function iA(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function x_(t,e,n){var r=MR(e.image,e.__image,n);if(Pd(r)){var a=t.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*V2),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function dV(t,e,n,r){var a,i=md(n),o=yd(n),u=n.strokePercent,f=u<1,c=!e.path;(!e.silent||f)&&c&&e.createPathProxy();var v=e.path||vV,d=e.__dirty;if(!r){var g=n.fill,p=n.stroke,y=o&&!!g.colorStops,_=i&&!!p.colorStops,S=o&&!!g.image,x=i&&!!p.image,M=void 0,C=void 0,T=void 0,D=void 0,R=void 0;(y||_)&&(R=e.getBoundingRect()),y&&(M=d?b_(t,g,R):e.__canvasFillGradient,e.__canvasFillGradient=M),_&&(C=d?b_(t,p,R):e.__canvasStrokeGradient,e.__canvasStrokeGradient=C),S&&(T=d||!e.__canvasFillPattern?x_(t,g,e):e.__canvasFillPattern,e.__canvasFillPattern=T),x&&(D=d||!e.__canvasStrokePattern?x_(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=T),y?t.fillStyle=M:S&&(T?t.fillStyle=T:o=!1),_?t.strokeStyle=C:x&&(D?t.strokeStyle=D:i=!1)}var E=e.getGlobalScale();v.setScale(E[0],E[1],e.segmentIgnoreThreshold);var z,I;t.setLineDash&&n.lineDash&&(a=nL(e),z=a[0],I=a[1]);var N=!0;(c||d&Ss)&&(v.setDPR(t.dpr),f?v.setContext(null):(v.setContext(t),N=!1),v.reset(),e.buildPath(v,e.shape,r),v.toStatic(),e.pathUpdated()),N&&v.rebuildPath(t,f?u:1),z&&(t.setLineDash(z),t.lineDashOffset=I),r||(n.strokeFirst?(i&&iA(t,n),o&&aA(t,n)):(o&&aA(t,n),i&&iA(t,n))),z&&t.setLineDash([])}function pV(t,e,n){var r=e.__image=MR(n.image,e.__image,e,e.onload);if(!(!r||!Pd(r))){var a=n.x||0,i=n.y||0,o=e.getWidth(),u=e.getHeight(),f=r.width/r.height;if(o==null&&u!=null?o=u*f:u==null&&o!=null?u=o/f:o==null&&u==null&&(o=r.width,u=r.height),n.sWidth&&n.sHeight){var c=n.sx||0,v=n.sy||0;t.drawImage(r,c,v,n.sWidth,n.sHeight,a,i,o,u)}else if(n.sx&&n.sy){var c=n.sx,v=n.sy,d=o-c,g=u-v;t.drawImage(r,c,v,d,g,a,i,o,u)}else t.drawImage(r,a,i,o,u)}}function gV(t,e,n){var r,a=n.text;if(a!=null&&(a+=""),a){t.font=n.font||il,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var i=void 0,o=void 0;t.setLineDash&&n.lineDash&&(r=nL(e),i=r[0],o=r[1]),i&&(t.setLineDash(i),t.lineDashOffset=o),n.strokeFirst?(md(n)&&t.strokeText(a,n.x,n.y),yd(n)&&t.fillText(a,n.x,n.y)):(yd(n)&&t.fillText(a,n.x,n.y),md(n)&&t.strokeText(a,n.x,n.y)),i&&t.setLineDash([])}}var oA=["shadowBlur","shadowOffsetX","shadowOffsetY"],lA=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function rL(t,e,n,r,a){var i=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){Gn(t,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?tl.opacity:o}(r||e.blend!==n.blend)&&(i||(Gn(t,a),i=!0),t.globalCompositeOperation=e.blend||tl.blend);for(var u=0;u<oA.length;u++){var f=oA[u];(r||e[f]!==n[f])&&(i||(Gn(t,a),i=!0),t[f]=t.dpr*(e[f]||0))}return(r||e.shadowColor!==n.shadowColor)&&(i||(Gn(t,a),i=!0),t.shadowColor=e.shadowColor||tl.shadowColor),i}function sA(t,e,n,r,a){var i=Kf(e,a.inHover),o=r?null:n&&Kf(n,a.inHover)||{};if(i===o)return!1;var u=rL(t,i,o,r,a);if((r||i.fill!==o.fill)&&(u||(Gn(t,a),u=!0),rA(i.fill)&&(t.fillStyle=i.fill)),(r||i.stroke!==o.stroke)&&(u||(Gn(t,a),u=!0),rA(i.stroke)&&(t.strokeStyle=i.stroke)),(r||i.opacity!==o.opacity)&&(u||(Gn(t,a),u=!0),t.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var f=i.lineWidth,c=f/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==c&&(u||(Gn(t,a),u=!0),t.lineWidth=c)}for(var v=0;v<lA.length;v++){var d=lA[v],g=d[0];(r||i[g]!==o[g])&&(u||(Gn(t,a),u=!0),t[g]=i[g]||d[1])}return u}function mV(t,e,n,r,a){return rL(t,Kf(e,a.inHover),n&&Kf(n,a.inHover),r,a)}function aL(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function yV(t,e,n){for(var r=!1,a=0;a<t.length;a++){var i=t[a];r=r||i.isZeroArea(),aL(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}n.allClipped=r}function _V(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var uA=1,fA=2,cA=3,hA=4;function SV(t){var e=yd(t),n=md(t);return!(t.lineDash||!(+e^+n)||e&&typeof t.fill!="string"||n&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Gn(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Kf(t,e){return e&&t.__hoverStyle||t.style}function e1(t,e){Wo(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Wo(t,e,n,r){var a=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){e.__dirty&=~nr,e.__isRendered=!1;return}var i=e.__clipPaths,o=n.prevElClipPaths,u=!1,f=!1;if((!o||cV(i,o))&&(o&&o.length&&(Gn(t,n),t.restore(),f=u=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(Gn(t,n),t.save(),yV(i,t,n),u=!0),n.prevElClipPaths=i),n.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var c=n.prevEl;c||(f=u=!0);var v=e instanceof oe&&e.autoBatch&&SV(e.style);u||_V(a,c.transform)?(Gn(t,n),aL(t,e)):v||Gn(t,n);var d=Kf(e,n.inHover);e instanceof oe?(n.lastDrawType!==uA&&(f=!0,n.lastDrawType=uA),sA(t,e,c,f,n),(!v||!n.batchFill&&!n.batchStroke)&&t.beginPath(),dV(t,e,d,v),v&&(n.batchFill=d.fill||"",n.batchStroke=d.stroke||"")):e instanceof nd?(n.lastDrawType!==cA&&(f=!0,n.lastDrawType=cA),sA(t,e,c,f,n),gV(t,e,d)):e instanceof pa?(n.lastDrawType!==fA&&(f=!0,n.lastDrawType=fA),mV(t,e,c,f,n),pV(t,e,d)):e.getTemporalDisplayables&&(n.lastDrawType!==hA&&(f=!0,n.lastDrawType=hA),bV(t,e,n)),v&&r&&Gn(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}function bV(t,e,n){var r=e.getDisplayables(),a=e.getTemporalDisplayables();t.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},o,u;for(o=e.getCursor(),u=r.length;o<u;o++){var f=r[o];f.beforeBrush&&f.beforeBrush(),f.innerBeforeBrush(),Wo(t,f,i,o===u-1),f.innerAfterBrush(),f.afterBrush&&f.afterBrush(),i.prevEl=f}for(var c=0,v=a.length;c<v;c++){var f=a[c];f.beforeBrush&&f.beforeBrush(),f.innerBeforeBrush(),Wo(t,f,i,c===v-1),f.innerAfterBrush(),f.afterBrush&&f.afterBrush(),i.prevEl=f}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Vy=new JH,vA=new oc(100),dA=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function w_(t,e){if(t==="none")return null;var n=e.getDevicePixelRatio(),r=e.getZr(),a=r.painter.type==="svg";t.dirty&&Vy.delete(t);var i=Vy.get(t);if(i)return i;var o=Qt(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var u={repeat:"repeat"};return f(u),u.rotation=o.rotation,u.scaleX=u.scaleY=a?1:1/n,Vy.set(t,u),t.dirty=!1,u;function f(c){for(var v=[n],d=!0,g=0;g<dA.length;++g){var p=o[dA[g]];if(p!=null&&!ct(p)&&!pt(p)&&!de(p)&&typeof p!="boolean"){d=!1;break}v.push(p)}var y;if(d){y=v.join(",")+(a?"-svg":"");var _=vA.get(y);_&&(a?c.svgElement=_:c.image=_)}var S=oL(o.dashArrayX),x=xV(o.dashArrayY),M=iL(o.symbol),C=wV(S),T=lL(x),D=!a&&Ka.createCanvas(),R=a&&{tag:"g",attrs:{},key:"dcl",children:[]},E=I(),z;D&&(D.width=E.width*n,D.height=E.height*n,z=D.getContext("2d")),N(),d&&vA.put(y,D||R),c.image=D,c.svgElement=R,c.svgWidth=E.width,c.svgHeight=E.height;function I(){for(var L=1,V=0,G=C.length;V<G;++V)L=DC(L,C[V]);for(var j=1,V=0,G=M.length;V<G;++V)j=DC(j,M[V].length);L*=j;var X=T*C.length*M.length;return{width:Math.max(1,Math.min(L,o.maxTileWidth)),height:Math.max(1,Math.min(X,o.maxTileHeight))}}function N(){z&&(z.clearRect(0,0,D.width,D.height),o.backgroundColor&&(z.fillStyle=o.backgroundColor,z.fillRect(0,0,D.width,D.height)));for(var L=0,V=0;V<x.length;++V)L+=x[V];if(L<=0)return;for(var G=-T,j=0,X=0,H=0;G<E.height;){if(j%2===0){for(var Q=X/2%M.length,Z=0,J=0,ot=0;Z<E.width*2;){for(var P=0,V=0;V<S[H].length;++V)P+=S[H][V];if(P<=0)break;if(J%2===0){var q=(1-o.symbolSize)*.5,rt=Z+S[H][J]*q,it=G+x[j]*q,ft=S[H][J]*o.symbolSize,gt=x[j]*o.symbolSize,wt=ot/2%M[Q].length;Kt(rt,it,ft,gt,M[Q][wt])}Z+=S[H][J],++ot,++J,J===S[H].length&&(J=0)}++H,H===S.length&&(H=0)}G+=x[j],++X,++j,j===x.length&&(j=0)}function Kt(St,te,bt,Nt,pn){var ue=a?1:n,Dn=ei(pn,St*ue,te*ue,bt*ue,Nt*ue,o.color,o.symbolKeepAspect);if(a){var Be=r.painter.renderOneToVNode(Dn);Be&&R.children.push(Be)}else e1(z,Dn)}}}}function iL(t){if(!t||t.length===0)return[["rect"]];if(pt(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!pt(t[n])){e=!1;break}if(e)return iL([t]);for(var r=[],n=0;n<t.length;++n)pt(t[n])?r.push([t[n]]):r.push(t[n]);return r}function oL(t){if(!t||t.length===0)return[[0,0]];if(de(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,r=0;r<t.length;++r)if(!de(t[r])){n=!1;break}if(n)return oL([t]);for(var a=[],r=0;r<t.length;++r)if(de(t[r])){var e=Math.ceil(t[r]);a.push([e,e])}else{var e=mt(t[r],function(u){return Math.ceil(u)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function xV(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(de(t)){var e=Math.ceil(t);return[e,e]}var n=mt(t,function(r){return Math.ceil(r)});return t.length%2?n.concat(n):n}function wV(t){return mt(t,function(e){return lL(e)})}function lL(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?e*2:e}function MV(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(o){var u=r.getItemVisual(o,"decal");if(u){var f=r.ensureUniqueItemVisual(o,"style");f.decal=w_(u,e)}});var a=r.getVisual("decal");if(a){var i=r.getVisual("style");i.decal=w_(a,e)}}})}var Yr=new Wr,sL={};function CV(t,e){sL[t]=e}function uL(t){return sL[t]}var TV="5.6.0",AV={zrender:"5.6.1"},DV=1,RV=800,EV=900,LV=1e3,OV=2e3,zV=5e3,fL=1e3,NV=1100,n1=2e3,cL=3e3,IV=4e3,sp=4500,BV=4600,kV=5e3,PV=6e3,hL=7e3,vL={PROCESSOR:{FILTER:LV,SERIES_FILTER:RV,STATISTIC:zV},VISUAL:{LAYOUT:fL,PROGRESSIVE_LAYOUT:NV,GLOBAL:n1,CHART:cL,POST_CHART_LAYOUT:BV,COMPONENT:IV,BRUSH:kV,CHART_ITEM:sp,ARIA:PV,DECAL:hL}},ln="__flagInMainProcess",Pn="__pendingUpdate",Fy="__needsUpdateStatus",pA=/^[a-zA-Z0-9_]+$/,Gy="__connectUpdateStatus",gA=0,HV=1,VV=2;function dL(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this.isDisposed()){this.id;return}return gL(this,t,e)}}function pL(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return gL(this,t,e)}}function gL(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),Wr.prototype[e].apply(t,n)}var mL=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Wr),yL=mL.prototype;yL.on=pL("on");yL.off=pL("off");var ps,Uy,lv,Li,jy,Yy,qy,Ju,tf,mA,yA,Xy,_A,sv,SA,_L,yr,bA,_d=(function(t){ut(e,t);function e(n,r,a){var i=t.call(this,new jH)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},pt(r)&&(r=SL[r]),i._dom=n;var o="canvas",u="auto",f=!1;a.ssr&&fR(function(g){var p=jt(g),y=p.dataIndex;if(y!=null){var _=Ct();return _.set("series_index",p.seriesIndex),_.set("data_index",y),p.ssrType&&_.set("ssr_type",p.ssrType),_}});var c=i._zr=n_(n,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:Pt(a.useDirtyRect,f),useCoarsePointer:Pt(a.useCoarsePointer,u),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=op(Mt(c.flush,c),17),r=Ht(r),r&&EE(r,!0),i._theme=r,i._locale=WP(a.locale||fE),i._coordSysMgr=new rp;var v=i._api=SA(i);function d(g,p){return g.__prio-p.__prio}return Dv(bd,d),Dv(M_,d),i._scheduler=new WE(i,v,M_,bd),i._messageCenter=new mL,i._initEvents(),i.resize=Mt(i.resize,i),c.animation.on("frame",i._onframe,i),mA(c,i),yA(c,i),Yv(i),i}return e.prototype._onframe=function(){if(!this._disposed){bA(this);var n=this._scheduler;if(this[Pn]){var r=this[Pn].silent;this[ln]=!0;try{ps(this),Li.update.call(this,null,this[Pn].updateParams)}catch(f){throw this[ln]=!1,this[Pn]=null,f}this._zr.flush(),this[ln]=!1,this[Pn]=null,Ju.call(this,r),tf.call(this,r)}else if(n.unfinished){var a=DV,i=this._model,o=this._api;n.unfinished=!1;do{var u=+new Date;n.performSeriesTasks(i),n.performDataProcessorTasks(i),Yy(this,i),n.performVisualTasks(i),sv(this,this._model,o,"remain",{}),a-=+new Date-u}while(a>0&&n.unfinished);n.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(n,r,a){if(!this[ln]){if(this._disposed){this.id;return}var i,o,u;if(_t(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,u=r.transition,r=r.notMerge),this[ln]=!0,!this._model||r){var f=new M4(this._api),c=this._theme,v=this._model=new WS;v.scheduler=this._scheduler,v.ssr=this._ssr,v.init(null,null,null,c,this._locale,f)}this._model.setOption(n,{replaceMerge:o},C_);var d={seriesTransition:u,optionChanged:!0};if(a)this[Pn]={silent:i,updateParams:d},this[ln]=!1,this.getZr().wakeUp();else{try{ps(this),Li.update.call(this,null,d)}catch(g){throw this[Pn]=null,this[ln]=!1,g}this._ssr||this._zr.flush(),this[Pn]=null,this[ln]=!1,Ju.call(this,i),tf.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||Dt.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},e.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},e.prototype.getSvgDataURL=function(){if(Dt.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return k(r,function(a){a.stopAnimation(null,!0)}),n.painter.toDataURL()}},e.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,a=this._model,i=[],o=this;k(r,function(f){a.eachComponent({mainType:f},function(c){var v=o._componentsMap[c.__viewId];v.group.ignore||(i.push(v),v.group.ignore=!0)})});var u=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return k(i,function(f){f.group.ignore=!1}),u},e.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",a=this.group,i=Math.min,o=Math.max,u=1/0;if(xd[a]){var f=u,c=u,v=-u,d=-u,g=[],p=n&&n.pixelRatio||this.getDevicePixelRatio();k(nl,function(C,T){if(C.group===a){var D=r?C.getZr().painter.getSvgDom().innerHTML:C.renderToCanvas(Ht(n)),R=C.getDom().getBoundingClientRect();f=i(R.left,f),c=i(R.top,c),v=o(R.right,v),d=o(R.bottom,d),g.push({dom:D,left:R.left,top:R.top})}}),f*=p,c*=p,v*=p,d*=p;var y=v-f,_=d-c,S=Ka.createCanvas(),x=n_(S,{renderer:r?"svg":"canvas"});if(x.resize({width:y,height:_}),r){var M="";return k(g,function(C){var T=C.left-f,D=C.top-c;M+='<g transform="translate('+T+","+D+')">'+C.dom+"</g>"}),x.painter.getSvgRoot().innerHTML=M,n.connectedBackgroundColor&&x.painter.setBackgroundColor(n.connectedBackgroundColor),x.refreshImmediately(),x.painter.toDataURL()}else return n.connectedBackgroundColor&&x.add(new be({shape:{x:0,y:0,width:y,height:_},style:{fill:n.connectedBackgroundColor}})),k(g,function(C){var T=new pa({style:{x:C.left*p-f,y:C.top*p-c,image:C.dom}});x.add(T)}),x.refreshImmediately(),S.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},e.prototype.convertToPixel=function(n,r){return jy(this,"convertToPixel",n,r)},e.prototype.convertFromPixel=function(n,r){return jy(this,"convertFromPixel",n,r)},e.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var a=this._model,i,o=vy(a,n);return k(o,function(u,f){f.indexOf("Models")>=0&&k(u,function(c){var v=c.coordinateSystem;if(v&&v.containPoint)i=i||!!v.containPoint(r);else if(f==="seriesModels"){var d=this._chartsMap[c.__viewId];d&&d.containPoint&&(i=i||d.containPoint(r,c))}},this)},this),!!i},e.prototype.getVisual=function(n,r){var a=this._model,i=vy(a,n,{defaultMainType:"series"}),o=i.seriesModel,u=o.getData(),f=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?u.indexOfRawIndex(i.dataIndex):null;return f!=null?XH(u,f,r):ZH(u,r)},e.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},e.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},e.prototype._initEvents=function(){var n=this;k(FV,function(r){var a=function(i){var o=n.getModel(),u=i.target,f,c=r==="globalout";if(c?f={}:u&&_f(u,function(y){var _=jt(y);if(_&&_.dataIndex!=null){var S=_.dataModel||o.getSeriesByIndex(_.seriesIndex);return f=S&&S.getDataParams(_.dataIndex,_.dataType,u)||{},!0}else if(_.eventData)return f=st({},_.eventData),!0},!0),f){var v=f.componentType,d=f.componentIndex;(v==="markLine"||v==="markPoint"||v==="markArea")&&(v="series",d=f.seriesIndex);var g=v&&d!=null&&o.getComponent(v,d),p=g&&n[g.mainType==="series"?"_chartsMap":"_componentsMap"][g.__viewId];f.event=i,f.type=r,n._$eventProcessor.eventInfo={targetEl:u,packedEvent:f,model:g,view:p},n.trigger(r,f)}};a.zrEventfulCallAtLast=!0,n._zr.on(r,a,n)}),k(Lf,function(r,a){n._messageCenter.on(a,function(i){this.trigger(a,i)},n)}),k(["selectchanged"],function(r){n._messageCenter.on(r,function(a){this.trigger(r,a)},n)}),WH(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 n=this.getDom();n&&bR(this.getDom(),a1,"");var r=this,a=r._api,i=r._model;k(r._componentsViews,function(o){o.dispose(i,a)}),k(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete nl[r.id]},e.prototype.resize=function(n){if(!this[ln]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=n&&n.silent;this[Pn]&&(i==null&&(i=this[Pn].silent),a=!0,this[Pn]=null),this[ln]=!0;try{a&&ps(this),Li.update.call(this,{type:"resize",animation:st({duration:0},n&&n.animation)})}catch(o){throw this[ln]=!1,o}this[ln]=!1,Ju.call(this,i),tf.call(this,i)}}},e.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(_t(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!T_[n]){var a=T_[n](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(n){var r=st({},n);return r.type=Lf[n.type],r},e.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(_t(r)||(r={silent:!!r}),!!Sd[n.type]&&this._model){if(this[ln]){this._pendingActions.push(n);return}var a=r.silent;qy.call(this,n,a);var i=r.flush;i?this._zr.flush():i!==!1&&Dt.browser.weChat&&this._throttledZrFlush(),Ju.call(this,a),tf.call(this,a)}},e.prototype.updateLabelLayout=function(){Yr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){ps=function(d){var g=d._scheduler;g.restorePipelines(d._model),g.prepareStageTasks(),Uy(d,!0),Uy(d,!1),g.plan()},Uy=function(d,g){for(var p=d._model,y=d._scheduler,_=g?d._componentsViews:d._chartsViews,S=g?d._componentsMap:d._chartsMap,x=d._zr,M=d._api,C=0;C<_.length;C++)_[C].__alive=!1;g?p.eachComponent(function(R,E){R!=="series"&&T(E)}):p.eachSeries(T);function T(R){var E=R.__requireNewView;R.__requireNewView=!1;var z="_ec_"+R.id+"_"+R.type,I=!E&&S[z];if(!I){var N=fa(R.type),L=g?dn.getClass(N.main,N.sub):Cn.getClass(N.sub);I=new L,I.init(p,M),S[z]=I,_.push(I),x.add(I.group)}R.__viewId=I.__id=z,I.__alive=!0,I.__model=R,I.group.__ecComponentInfo={mainType:R.mainType,index:R.componentIndex},!g&&y.prepareView(I,R,p,M)}for(var C=0;C<_.length;){var D=_[C];D.__alive?C++:(!g&&D.renderTask.dispose(),x.remove(D.group),D.dispose(p,M),_.splice(C,1),S[D.__id]===D&&delete S[D.__id],D.__id=D.group.__ecComponentInfo=null)}},lv=function(d,g,p,y,_){var S=d._model;if(S.setUpdatePayload(p),!y){k([].concat(d._componentsViews).concat(d._chartsViews),D);return}var x={};x[y+"Id"]=p[y+"Id"],x[y+"Index"]=p[y+"Index"],x[y+"Name"]=p[y+"Name"];var M={mainType:y,query:x};_&&(M.subType=_);var C=p.excludeSeriesId,T;C!=null&&(T=Ct(),k(qe(C),function(R){var E=Un(R,null);E!=null&&T.set(E,!0)})),S&&S.eachComponent(M,function(R){var E=T&&T.get(R.id)!=null;if(!E)if(eT(p))if(R instanceof qn)p.type===el&&!p.notBlur&&!R.get(["emphasis","disabled"])&&Yk(R,p,d._api);else{var z=RS(R.mainType,R.componentIndex,p.name,d._api),I=z.focusSelf,N=z.dispatchers;p.type===el&&I&&!p.notBlur&&u_(R.mainType,R.componentIndex,d._api),N&&k(N,function(L){p.type===el?ad(L):id(L)})}else c_(p)&&R instanceof qn&&(Zk(R,p,d._api),JC(R),yr(d))},d),S&&S.eachComponent(M,function(R){var E=T&&T.get(R.id)!=null;E||D(d[y==="series"?"_chartsMap":"_componentsMap"][R.__viewId])},d);function D(R){R&&R.__alive&&R[g]&&R[g](R.__model,S,d._api,p)}},Li={prepareAndUpdate:function(d){ps(this),Li.update.call(this,d,{optionChanged:d.newOption!=null})},update:function(d,g){var p=this._model,y=this._api,_=this._zr,S=this._coordSysMgr,x=this._scheduler;if(p){p.setUpdatePayload(d),x.restoreData(p,d),x.performSeriesTasks(p),S.create(p,y),x.performDataProcessorTasks(p,d),Yy(this,p),S.update(p,y),n(p),x.performVisualTasks(p,d),Xy(this,p,y,d,g);var M=p.get("backgroundColor")||"transparent",C=p.get("darkMode");_.setBackgroundColor(M),C!=null&&C!=="auto"&&_.setDarkMode(C),Yr.trigger("afterupdate",p,y)}},updateTransform:function(d){var g=this,p=this._model,y=this._api;if(p){p.setUpdatePayload(d);var _=[];p.eachComponent(function(x,M){if(x!=="series"){var C=g.getViewOfComponentModel(M);if(C&&C.__alive)if(C.updateTransform){var T=C.updateTransform(M,p,y,d);T&&T.update&&_.push(C)}else _.push(C)}});var S=Ct();p.eachSeries(function(x){var M=g._chartsMap[x.__viewId];if(M.updateTransform){var C=M.updateTransform(x,p,y,d);C&&C.update&&S.set(x.uid,1)}else S.set(x.uid,1)}),n(p),this._scheduler.performVisualTasks(p,d,{setDirty:!0,dirtyMap:S}),sv(this,p,y,d,{},S),Yr.trigger("afterupdate",p,y)}},updateView:function(d){var g=this._model;g&&(g.setUpdatePayload(d),Cn.markUpdateMethod(d,"updateView"),n(g),this._scheduler.performVisualTasks(g,d,{setDirty:!0}),Xy(this,g,this._api,d,{}),Yr.trigger("afterupdate",g,this._api))},updateVisual:function(d){var g=this,p=this._model;p&&(p.setUpdatePayload(d),p.eachSeries(function(y){y.getData().clearAllVisual()}),Cn.markUpdateMethod(d,"updateVisual"),n(p),this._scheduler.performVisualTasks(p,d,{visualType:"visual",setDirty:!0}),p.eachComponent(function(y,_){if(y!=="series"){var S=g.getViewOfComponentModel(_);S&&S.__alive&&S.updateVisual(_,p,g._api,d)}}),p.eachSeries(function(y){var _=g._chartsMap[y.__viewId];_.updateVisual(y,p,g._api,d)}),Yr.trigger("afterupdate",p,this._api))},updateLayout:function(d){Li.update.call(this,d)}},jy=function(d,g,p,y){if(d._disposed){d.id;return}for(var _=d._model,S=d._coordSysMgr.getCoordinateSystems(),x,M=vy(_,p),C=0;C<S.length;C++){var T=S[C];if(T[g]&&(x=T[g](_,M,y))!=null)return x}},Yy=function(d,g){var p=d._chartsMap,y=d._scheduler;g.eachSeries(function(_){y.updateStreamModes(_,p[_.__viewId])})},qy=function(d,g){var p=this,y=this.getModel(),_=d.type,S=d.escapeConnect,x=Sd[_],M=x.actionInfo,C=(M.update||"update").split(":"),T=C.pop(),D=C[0]!=null&&fa(C[0]);this[ln]=!0;var R=[d],E=!1;d.batch&&(E=!0,R=mt(d.batch,function(j){return j=Qt(st({},j),d),j.batch=null,j}));var z=[],I,N=c_(d),L=eT(d);if(L&&GR(this._api),k(R,function(j){if(I=x.action(j,p._model,p._api),I=I||st({},j),I.type=M.event||I.type,z.push(I),L){var X=MS(d),H=X.queryOptionMap,Q=X.mainTypeSpecified,Z=Q?H.keys()[0]:"series";lv(p,T,j,Z),yr(p)}else N?(lv(p,T,j,"series"),yr(p)):D&&lv(p,T,j,D.main,D.sub)}),T!=="none"&&!L&&!N&&!D)try{this[Pn]?(ps(this),Li.update.call(this,d),this[Pn]=null):Li[T].call(this,d)}catch(j){throw this[ln]=!1,j}if(E?I={type:M.event||_,escapeConnect:S,batch:z}:I=z[0],this[ln]=!1,!g){var V=this._messageCenter;if(V.trigger(I.type,I),N){var G={type:"selectchanged",escapeConnect:S,selected:$k(y),isFromClick:d.isFromClick||!1,fromAction:d.type,fromActionPayload:d};V.trigger(G.type,G)}}},Ju=function(d){for(var g=this._pendingActions;g.length;){var p=g.shift();qy.call(this,p,d)}},tf=function(d){!d&&this.trigger("updated")},mA=function(d,g){d.on("rendered",function(p){g.trigger("rendered",p),d.animation.isFinished()&&!g[Pn]&&!g._scheduler.unfinished&&!g._pendingActions.length&&g.trigger("finished")})},yA=function(d,g){d.on("mouseover",function(p){var y=p.target,_=_f(y,f_);_&&(qk(_,p,g._api),yr(g))}).on("mouseout",function(p){var y=p.target,_=_f(y,f_);_&&(Xk(_,p,g._api),yr(g))}).on("click",function(p){var y=p.target,_=_f(y,function(M){return jt(M).dataIndex!=null},!0);if(_){var S=_.selected?"unselect":"select",x=jt(_);g._api.dispatchAction({type:S,dataType:x.dataType,dataIndexInside:x.dataIndex,seriesIndex:x.seriesIndex,isFromClick:!0})}})};function n(d){d.clearColorPalette(),d.eachSeries(function(g){g.clearColorPalette()})}function r(d){var g=[],p=[],y=!1;if(d.eachComponent(function(M,C){var T=C.get("zlevel")||0,D=C.get("z")||0,R=C.getZLevelKey();y=y||!!R,(M==="series"?p:g).push({zlevel:T,z:D,idx:C.componentIndex,type:M,key:R})}),y){var _=g.concat(p),S,x;Dv(_,function(M,C){return M.zlevel===C.zlevel?M.z-C.z:M.zlevel-C.zlevel}),k(_,function(M){var C=d.getComponent(M.type,M.idx),T=M.zlevel,D=M.key;S!=null&&(T=Math.max(S,T)),D?(T===S&&D!==x&&T++,x=D):x&&(T===S&&T++,x=""),S=T,C.setZLevel(T)})}}Xy=function(d,g,p,y,_){r(g),_A(d,g,p,y,_),k(d._chartsViews,function(S){S.__alive=!1}),sv(d,g,p,y,_),k(d._chartsViews,function(S){S.__alive||S.remove(g,p)})},_A=function(d,g,p,y,_,S){k(S||d._componentsViews,function(x){var M=x.__model;c(M,x),x.render(M,g,p,y),u(M,x),v(M,x)})},sv=function(d,g,p,y,_,S){var x=d._scheduler;_=st(_||{},{updatedSeries:g.getSeries()}),Yr.trigger("series:beforeupdate",g,p,_);var M=!1;g.eachSeries(function(C){var T=d._chartsMap[C.__viewId];T.__alive=!0;var D=T.renderTask;x.updatePayload(D,y),c(C,T),S&&S.get(C.uid)&&D.dirty(),D.perform(x.getPerformArgs(D))&&(M=!0),T.group.silent=!!C.get("silent"),o(C,T),JC(C)}),x.unfinished=M||x.unfinished,Yr.trigger("series:layoutlabels",g,p,_),Yr.trigger("series:transition",g,p,_),g.eachSeries(function(C){var T=d._chartsMap[C.__viewId];u(C,T),v(C,T)}),i(d,g),Yr.trigger("series:afterupdate",g,p,_)},yr=function(d){d[Fy]=!0,d.getZr().wakeUp()},bA=function(d){d[Fy]&&(d.getZr().storage.traverse(function(g){Af(g)||a(g)}),d[Fy]=!1)};function a(d){for(var g=[],p=d.currentStates,y=0;y<p.length;y++){var _=p[y];_==="emphasis"||_==="blur"||_==="select"||g.push(_)}d.selected&&d.states.select&&g.push("select"),d.hoverState===Fd&&d.states.emphasis?g.push("emphasis"):d.hoverState===Vd&&d.states.blur&&g.push("blur"),d.useStates(g)}function i(d,g){var p=d._zr,y=p.storage,_=0;y.traverse(function(S){S.isGroup||_++}),_>g.get("hoverLayerThreshold")&&!Dt.node&&!Dt.worker&&g.eachSeries(function(S){if(!S.preventUsingHoverLayer){var x=d._chartsMap[S.__viewId];x.__alive&&x.eachRendered(function(M){M.states.emphasis&&(M.states.emphasis.hoverLayer=!0)})}})}function o(d,g){var p=d.get("blendMode")||null;g.eachRendered(function(y){y.isGroup||(y.style.blend=p)})}function u(d,g){if(!d.preventAutoZ){var p=d.get("z")||0,y=d.get("zlevel")||0;g.eachRendered(function(_){return f(_,p,y,-1/0),!0})}}function f(d,g,p,y){var _=d.getTextContent(),S=d.getTextGuideLine(),x=d.isGroup;if(x)for(var M=d.childrenRef(),C=0;C<M.length;C++)y=Math.max(f(M[C],g,p,y),y);else d.z=g,d.zlevel=p,y=Math.max(d.z2,y);if(_&&(_.z=g,_.zlevel=p,isFinite(y)&&(_.z2=y+2)),S){var T=d.textGuideLineConfig;S.z=g,S.zlevel=p,isFinite(y)&&(S.z2=y+(T&&T.showAbove?1:-1))}return y}function c(d,g){g.eachRendered(function(p){if(!Af(p)){var y=p.getTextContent(),_=p.getTextGuideLine();p.stateTransition&&(p.stateTransition=null),y&&y.stateTransition&&(y.stateTransition=null),_&&_.stateTransition&&(_.stateTransition=null),p.hasState()?(p.prevStates=p.currentStates,p.clearStates()):p.prevStates&&(p.prevStates=null)}})}function v(d,g){var p=d.getModel("stateAnimation"),y=d.isAnimationEnabled(),_=p.get("duration"),S=_>0?{duration:_,delay:p.get("delay"),easing:p.get("easing")}:null;g.eachRendered(function(x){if(x.states&&x.states.emphasis){if(Af(x))return;if(x instanceof oe&&tP(x),x.__dirty){var M=x.prevStates;M&&x.useStates(M)}if(y){x.stateTransition=S;var C=x.getTextContent(),T=x.getTextGuideLine();C&&(C.stateTransition=S),T&&(T.stateTransition=S)}x.__dirty&&a(x)}})}SA=function(d){return new((function(g){ut(p,g);function p(){return g!==null&&g.apply(this,arguments)||this}return p.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},p.prototype.getComponentByElement=function(y){for(;y;){var _=y.__ecComponentInfo;if(_!=null)return d._model.getComponent(_.mainType,_.index);y=y.parent}},p.prototype.enterEmphasis=function(y,_){ad(y,_),yr(d)},p.prototype.leaveEmphasis=function(y,_){id(y,_),yr(d)},p.prototype.enterBlur=function(y){jk(y),yr(d)},p.prototype.leaveBlur=function(y){PR(y),yr(d)},p.prototype.enterSelect=function(y){HR(y),yr(d)},p.prototype.leaveSelect=function(y){VR(y),yr(d)},p.prototype.getModel=function(){return d.getModel()},p.prototype.getViewOfComponentModel=function(y){return d.getViewOfComponentModel(y)},p.prototype.getViewOfSeriesModel=function(y){return d.getViewOfSeriesModel(y)},p})(DE))(d)},_L=function(d){function g(p,y){for(var _=0;_<p.length;_++){var S=p[_];S[Gy]=y}}k(Lf,function(p,y){d._messageCenter.on(y,function(_){if(xd[d.group]&&d[Gy]!==gA){if(_&&_.escapeConnect)return;var S=d.makeActionFromEvent(_),x=[];k(nl,function(M){M!==d&&M.group===d.group&&x.push(M)}),g(x,gA),k(x,function(M){M[Gy]!==HV&&M.dispatchAction(S)}),g(x,VV)}})})}})(),e})(Wr),r1=_d.prototype;r1.on=dL("on");r1.off=dL("off");r1.one=function(t,e,n){var r=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),r.off(t,a)}this.on.call(this,t,a,n)};var FV=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Sd={},Lf={},M_=[],C_=[],bd=[],SL={},T_={},nl={},xd={},GV=+new Date-0,UV=+new Date-0,a1="_echarts_instance_";function jV(t,e,n){var r=!(n&&n.ssr);if(r){var a=i1(t);if(a)return a}var i=new _d(t,e,n);return i.id="ec_"+GV++,nl[i.id]=i,r&&bR(t,a1,i.id),_L(i),Yr.trigger("afterinit",i),i}function YV(t){if(ct(t)){var e=t;t=null,k(e,function(n){n.group!=null&&(t=n.group)}),t=t||"g_"+UV++,k(e,function(n){n.group=t})}return xd[t]=!0,t}function bL(t){xd[t]=!1}var qV=bL;function XV(t){pt(t)?t=nl[t]:t instanceof _d||(t=i1(t)),t instanceof _d&&!t.isDisposed()&&t.dispose()}function i1(t){return nl[NB(t,a1)]}function ZV(t){return nl[t]}function o1(t,e){SL[t]=e}function l1(t){Yt(C_,t)<0&&C_.push(t)}function s1(t,e){u1(M_,t,e,OV)}function xL(t){up("afterinit",t)}function wL(t){up("afterupdate",t)}function up(t,e){Yr.on(t,e)}function no(t,e,n){Rt(e)&&(n=e,e="");var r=_t(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,!Lf[e]&&(ca(pA.test(r)&&pA.test(e)),Sd[r]||(Sd[r]={action:n,actionInfo:t}),Lf[e]=r)}function ML(t,e){rp.register(t,e)}function $V(t){var e=rp.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function CL(t,e){u1(bd,t,e,fL,"layout")}function ro(t,e){u1(bd,t,e,cL,"visual")}var xA=[];function u1(t,e,n,r,a){if((Rt(e)||_t(e))&&(n=e,e=r),!(Yt(xA,n)>=0)){xA.push(n);var i=WE.wrapStageHandler(n,a);i.__prio=e,i.__raw=n,t.push(i)}}function f1(t,e){T_[t]=e}function WV(t){O2({createCanvas:t})}function TL(t,e,n){var r=uL("registerMap");r&&r(t,e,n)}function QV(t){var e=uL("getMap");return e&&e(t)}var AL=tH;ro(n1,EH);ro(sp,LH);ro(sp,OH);ro(n1,YH);ro(sp,qH);ro(hL,MV);l1(EE);s1(EV,B4);f1("default",zH);no({type:el,event:el,update:el},hn);no({type:zv,event:zv,update:zv},hn);no({type:Mf,event:Mf,update:Mf},hn);no({type:Nv,event:Nv,update:Nv},hn);no({type:Cf,event:Cf,update:Cf},hn);o1("light",UH);o1("dark",tL);var KV={};function ef(t){return t==null?0:t.length||1}function wA(t){return t}var JV=(function(){function t(e,n,r,a,i,o){this._old=e,this._new=n,this._oldKeyGetter=r||wA,this._newKeyGetter=a||wA,this.context=i,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,n=this._new,r={},a=new Array(e.length),i=new Array(n.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(n,r,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var u=a[o],f=r[u],c=ef(f);if(c>1){var v=f.shift();f.length===1&&(r[u]=f[0]),this._update&&this._update(v,o)}else c===1?(r[u]=null,this._update&&this._update(f,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},t.prototype._executeMultiple=function(){var e=this._old,n=this._new,r={},a={},i=[],o=[];this._initIndexMap(e,r,i,"_oldKeyGetter"),this._initIndexMap(n,a,o,"_newKeyGetter");for(var u=0;u<i.length;u++){var f=i[u],c=r[f],v=a[f],d=ef(c),g=ef(v);if(d>1&&g===1)this._updateManyToOne&&this._updateManyToOne(v,c),a[f]=null;else if(d===1&&g>1)this._updateOneToMany&&this._updateOneToMany(v,c),a[f]=null;else if(d===1&&g===1)this._update&&this._update(v,c),a[f]=null;else if(d>1&&g>1)this._updateManyToMany&&this._updateManyToMany(v,c),a[f]=null;else if(d>1)for(var p=0;p<d;p++)this._remove&&this._remove(c[p]);else this._remove&&this._remove(c)}this._performRestAdd(o,a)},t.prototype._performRestAdd=function(e,n){for(var r=0;r<e.length;r++){var a=e[r],i=n[a],o=ef(i);if(o>1)for(var u=0;u<o;u++)this._add&&this._add(i[u]);else o===1&&this._add&&this._add(i);n[a]=null}},t.prototype._initIndexMap=function(e,n,r,a){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var u="_ec_"+this[a](e[o],o);if(i||(r[o]=u),!!n){var f=n[u],c=ef(f);c===0?(n[u]=o,i&&r.push(u)):c===1?n[u]=[f,o]:f.push(o)}}},t})(),t6=(function(){function t(e,n){this._encode=e,this._schema=n}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function e6(t,e){var n={},r=n.encode={},a=Ct(),i=[],o=[],u={};k(t.dimensions,function(g){var p=t.getDimensionInfo(g),y=p.coordDim;if(y){var _=p.coordDimIndex;Zy(r,y)[_]=g,p.isExtraCoord||(a.set(y,1),r6(p.type)&&(i[0]=g),Zy(u,y)[_]=t.getDimensionIndex(p.name)),p.defaultTooltip&&o.push(g)}wE.each(function(S,x){var M=Zy(r,x),C=p.otherDims[x];C!=null&&C!==!1&&(M[C]=p.name)})});var f=[],c={};a.each(function(g,p){var y=r[p];c[p]=y[0],f=f.concat(y)}),n.dataDimsOnCoord=f,n.dataDimIndicesOnCoord=mt(f,function(g){return t.getDimensionInfo(g).storeDimIndex}),n.encodeFirstDimNotExtra=c;var v=r.label;v&&v.length&&(i=v.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=i.slice()),r.defaultedLabel=i,r.defaultedTooltip=o,n.userOutput=new t6(u,e),n}function Zy(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function n6(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function r6(t){return!(t==="ordinal"||t==="time")}var Pv=(function(){function t(e){this.otherDims={},e!=null&&st(this,e)}return t})(),a6=xe(),i6={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},DL=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=LL(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Pt(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var n=this.source.dimensionsDefine;if(n)return n[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,n=zE(this.source),r=!OL(e),a="",i=[],o=0,u=0;o<e;o++){var f=void 0,c=void 0,v=void 0,d=this.dimensions[u];if(d&&d.storeDimIndex===o)f=n?d.name:null,c=d.type,v=d.ordinalMeta,u++;else{var g=this.getSourceDimension(o);g&&(f=n?g.name:null,c=g.type)}i.push({property:f,type:c,ordinalMeta:v}),n&&f!=null&&(!d||!d.isCalculationCoord)&&(a+=r?f.replace(/\`/g,"`1").replace(/\$/g,"`2"):f),a+="$",a+=i6[c]||"f",v&&(a+=v.uid),a+="$"}var p=this.source,y=[p.seriesLayoutBy,p.startIndex,a].join("$$");return{dimensions:i,hash:y}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],n=0,r=0;n<this._fullDimCount;n++){var a=void 0,i=this.dimensions[r];if(i&&i.storeDimIndex===n)i.isCalculationCoord||(a=i.name),r++;else{var o=this.getSourceDimension(n);o&&(a=o.name)}e.push(a)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function RL(t){return t instanceof DL}function EL(t){for(var e=Ct(),n=0;n<(t||[]).length;n++){var r=t[n],a=_t(r)?r.name:r;a!=null&&e.get(a)==null&&e.set(a,n)}return e}function LL(t){var e=a6(t);return e.dimNameMap||(e.dimNameMap=EL(t.dimensionsDefine))}function OL(t){return t>30}var nf=_t,Oi=mt,o6=typeof Int32Array>"u"?Array:Int32Array,l6="e\0\0",MA=-1,s6=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],u6=["_approximateExtent"],CA,uv,rf,af,$y,of,Wy,c1=(function(){function t(e,n){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r,a=!1;RL(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,r=e),r=r||["x","y"];for(var i={},o=[],u={},f=!1,c={},v=0;v<r.length;v++){var d=r[v],g=pt(d)?new Pv({name:d}):d instanceof Pv?d:new Pv(d),p=g.name;g.type=g.type||"float",g.coordDim||(g.coordDim=p,g.coordDimIndex=0);var y=g.otherDims=g.otherDims||{};o.push(p),i[p]=g,c[p]!=null&&(f=!0),g.createInvertedIndices&&(u[p]=[]),y.itemName===0&&(this._nameDimIdx=v),y.itemId===0&&(this._idDimIdx=v),a&&(g.storeDimIndex=v)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(f),this.hostModel=n,this._invertedIndicesMap=u,this._dimOmitted){var _=this._dimIdxToName=Ct();k(o,function(S){_.set(i[S].storeDimIndex,S)})}}return t.prototype.getDimension=function(e){var n=this._recognizeDimIndex(e);if(n==null)return e;if(n=e,!this._dimOmitted)return this.dimensions[n];var r=this._dimIdxToName.get(n);if(r!=null)return r;var a=this._schema.getSourceDimension(n);if(a)return a.name},t.prototype.getDimensionIndex=function(e){var n=this._recognizeDimIndex(e);if(n!=null)return n;if(e==null)return-1;var r=this._getDimInfo(e);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(de(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var n=this.getDimensionIndex(e);return n},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var n=this._dimInfos;this._getDimInfo=e?function(r){return n.hasOwnProperty(r)?n[r]:void 0}:function(r){return n[r]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,n){var r=this._dimSummary;if(n==null)return r.encodeFirstDimNotExtra[e];var a=r.encode[e];return a?a[n]:null},t.prototype.mapDimensionsAll=function(e){var n=this._dimSummary,r=n.encode[e];return(r||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,n,r){var a=this,i;if(e instanceof g_&&(i=e),!i){var o=this.dimensions,u=QS(e)||vn(e)?new NE(e,o.length):e;i=new g_;var f=Oi(o,function(c){return{type:a._dimInfos[c].type,property:c}});i.initData(u,f,r)}this._store=i,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=e6(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var n=this._store.appendData(e);this._doInit(n[0],n[1])},t.prototype.appendValues=function(e,n){var r=this._store.appendValues(e,n&&n.length),a=r.start,i=r.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var u=a;u<i;u++){var f=u-a;this._nameList[u]=n[f],o&&Wy(this,u)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,n=this.dimensions,r=0;r<n.length;r++){var a=this._dimInfos[n[r]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Wi&&!e.fillStorage},t.prototype._doInit=function(e,n){if(!(e>=n)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,u=a.getSource().sourceFormat,f=u===zr;if(f&&!a.pure)for(var c=[],v=e;v<n;v++){var d=a.getItem(v,c);if(!this.hasItemOption&&wB(d)&&(this.hasItemOption=!0),d){var g=d.name;i[v]==null&&g!=null&&(i[v]=Un(g,null));var p=d.id;o[v]==null&&p!=null&&(o[v]=Un(p,null))}}if(this._shouldMakeIdFromName())for(var v=e;v<n;v++)Wy(this,v);CA(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,n){n=this.getDimension(n),this._approximateExtent[n]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,n){nf(e)?st(this._calculationInfo,e):this._calculationInfo[e]=n},t.prototype.getName=function(e){var n=this.getRawIndex(e),r=this._nameList[n];return r==null&&this._nameDimIdx!=null&&(r=rf(this,this._nameDimIdx,n)),r==null&&(r=""),r},t.prototype._getCategory=function(e,n){var r=this._store.get(e,n),a=this._store.getOrdinalMeta(e);return a?a.categories[r]:r},t.prototype.getId=function(e){return uv(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,n){var r=this._store,a=this._dimInfos[e];if(a)return r.get(a.storeDimIndex,n)},t.prototype.getByRawIndex=function(e,n){var r=this._store,a=this._dimInfos[e];if(a)return r.getByRawIndex(a.storeDimIndex,n)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,n){var r=this,a=this._store;return ct(e)?a.getValues(Oi(e,function(i){return r._getStoreDimIndex(i)}),n):a.getValues(e)},t.prototype.hasValue=function(e){for(var n=this._dimSummary.dataDimIndicesOnCoord,r=0,a=n.length;r<a;r++)if(isNaN(this._store.get(n[r],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var n=0,r=this._store.count();n<r;n++)if(this.getName(n)===e)return n;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,n){var r=e&&this._invertedIndicesMap[e],a=r&&r[n];return a==null||isNaN(a)?MA:a},t.prototype.indicesOfNearest=function(e,n,r){return this._store.indicesOfNearest(this._getStoreDimIndex(e),n,r)},t.prototype.each=function(e,n,r){Rt(e)&&(r=n,n=e,e=[]);var a=r||this,i=Oi(af(e),this._getStoreDimIndex,this);this._store.each(i,a?Mt(n,a):n)},t.prototype.filterSelf=function(e,n,r){Rt(e)&&(r=n,n=e,e=[]);var a=r||this,i=Oi(af(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?Mt(n,a):n),this},t.prototype.selectRange=function(e){var n=this,r={},a=ae(e);return k(a,function(i){var o=n._getStoreDimIndex(i);r[o]=e[i]}),this._store=this._store.selectRange(r),this},t.prototype.mapArray=function(e,n,r){Rt(e)&&(r=n,n=e,e=[]),r=r||this;var a=[];return this.each(e,function(){a.push(n&&n.apply(this,arguments))},r),a},t.prototype.map=function(e,n,r,a){var i=r||a||this,o=Oi(af(e),this._getStoreDimIndex,this),u=of(this);return u._store=this._store.map(o,i?Mt(n,i):n),u},t.prototype.modify=function(e,n,r,a){var i=r||a||this,o=Oi(af(e),this._getStoreDimIndex,this);this._store.modify(o,i?Mt(n,i):n)},t.prototype.downSample=function(e,n,r,a){var i=of(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),n,r,a),i},t.prototype.minmaxDownSample=function(e,n){var r=of(this);return r._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),n),r},t.prototype.lttbDownSample=function(e,n){var r=of(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(e),n),r},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var n=this.hostModel,r=this.getRawDataItem(e);return new Se(r,n,n&&n.ecModel)},t.prototype.diff=function(e){var n=this;return new JV(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(r){return uv(e,r)},function(r){return uv(n,r)})},t.prototype.getVisual=function(e){var n=this._visual;return n&&n[e]},t.prototype.setVisual=function(e,n){this._visual=this._visual||{},nf(e)?st(this._visual,e):this._visual[e]=n},t.prototype.getItemVisual=function(e,n){var r=this._itemVisuals[e],a=r&&r[n];return a??this.getVisual(n)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,n){var r=this._itemVisuals,a=r[e];a||(a=r[e]={});var i=a[n];return i==null&&(i=this.getVisual(n),ct(i)?i=i.slice():nf(i)&&(i=st({},i)),a[n]=i),i},t.prototype.setItemVisual=function(e,n,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,nf(n)?st(a,n):a[n]=r},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,n){nf(e)?st(this._layout,e):this._layout[e]=n},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,n,r){this._itemLayouts[e]=r?st(this._itemLayouts[e]||{},n):n},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,n){var r=this.hostModel&&this.hostModel.seriesIndex;Nk(r,this.dataType,e,n),this._graphicEls[e]=n},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,n){k(this._graphicEls,function(r,a){r&&e&&e.call(n,r,a)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Oi(this.dimensions,this._getDimInfo,this),this.hostModel)),$y(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,n){var r=this[e];Rt(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=r.apply(this,arguments);return n.apply(this,[a].concat(zd(arguments)))})},t.internalField=(function(){CA=function(e){var n=e._invertedIndicesMap;k(n,function(r,a){var i=e._dimInfos[a],o=i.ordinalMeta,u=e._store;if(o){r=n[a]=new o6(o.categories.length);for(var f=0;f<r.length;f++)r[f]=MA;for(var f=0;f<u.count();f++)r[u.get(i.storeDimIndex,f)]=f}})},rf=function(e,n,r){return Un(e._getCategory(n,r),null)},uv=function(e,n){var r=e._idList[n];return r==null&&e._idDimIdx!=null&&(r=rf(e,e._idDimIdx,n)),r==null&&(r=l6+n),r},af=function(e){return ct(e)||(e=e!=null?[e]:[]),e},of=function(e){var n=new t(e._schema?e._schema:Oi(e.dimensions,e._getDimInfo,e),e.hostModel);return $y(n,e),n},$y=function(e,n){k(s6.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(e[r]=n[r])}),e.__wrappedMethods=n.__wrappedMethods,k(u6,function(r){e[r]=Ht(n[r])}),e._calculationInfo=st({},n._calculationInfo)},Wy=function(e,n){var r=e._nameList,a=e._idList,i=e._nameDimIdx,o=e._idDimIdx,u=r[n],f=a[n];if(u==null&&i!=null&&(r[n]=u=rf(e,i,n)),f==null&&o!=null&&(a[n]=f=rf(e,o,n)),f==null&&u!=null){var c=e._nameRepeatCount,v=c[u]=(c[u]||0)+1;f=u,v>1&&(f+="__ec__"+v),a[n]=f}}})(),t})();function f6(t,e){return h1(t,e).dimensions}function h1(t,e){QS(t)||(t=LE(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],a=Ct(),i=[],o=h6(t,n,r,e.dimensionsCount),u=e.canOmitUnusedDimensions&&OL(o),f=r===t.dimensionsDefine,c=f?LL(t):EL(r),v=e.encodeDefine;!v&&e.encodeDefaulter&&(v=e.encodeDefaulter(t,o));for(var d=Ct(v),g=new HE(o),p=0;p<g.length;p++)g[p]=-1;function y(I){var N=g[I];if(N<0){var L=r[I],V=_t(L)?L:{name:L},G=new Pv,j=V.name;j!=null&&c.get(j)!=null&&(G.name=G.displayName=j),V.type!=null&&(G.type=V.type),V.displayName!=null&&(G.displayName=V.displayName);var X=i.length;return g[I]=X,G.storeDimIndex=I,i.push(G),G}return i[N]}if(!u)for(var p=0;p<o;p++)y(p);d.each(function(I,N){var L=qe(I).slice();if(L.length===1&&!pt(L[0])&&L[0]<0){d.set(N,!1);return}var V=d.set(N,[]);k(L,function(G,j){var X=pt(G)?c.get(G):G;X!=null&&X<o&&(V[j]=X,S(y(X),N,j))})});var _=0;k(n,function(I){var N,L,V,G;if(pt(I))N=I,G={};else{G=I,N=G.name;var j=G.ordinalMeta;G.ordinalMeta=null,G=st({},G),G.ordinalMeta=j,L=G.dimsDef,V=G.otherDims,G.name=G.coordDim=G.coordDimIndex=G.dimsDef=G.otherDims=null}var X=d.get(N);if(X!==!1){if(X=qe(X),!X.length)for(var H=0;H<(L&&L.length||1);H++){for(;_<o&&y(_).coordDim!=null;)_++;_<o&&X.push(_++)}k(X,function(Q,Z){var J=y(Q);if(f&&G.type!=null&&(J.type=G.type),S(Qt(J,G),N,Z),J.name==null&&L){var ot=L[Z];!_t(ot)&&(ot={name:ot}),J.name=J.displayName=ot.name,J.defaultTooltip=ot.defaultTooltip}V&&Qt(J.otherDims,V)})}});function S(I,N,L){wE.get(N)!=null?I.otherDims[N]=L:(I.coordDim=N,I.coordDimIndex=L,a.set(N,!0))}var x=e.generateCoord,M=e.generateCoordCount,C=M!=null;M=x?M||1:0;var T=x||"value";function D(I){I.name==null&&(I.name=I.coordDim)}if(u)k(i,function(I){D(I)}),i.sort(function(I,N){return I.storeDimIndex-N.storeDimIndex});else for(var R=0;R<o;R++){var E=y(R),z=E.coordDim;z==null&&(E.coordDim=v6(T,a,C),E.coordDimIndex=0,(!x||M<=0)&&(E.isExtraCoord=!0),M--),D(E),E.type==null&&(TE(t,R)===Ke.Must||E.isExtraCoord&&(E.otherDims.itemName!=null||E.otherDims.seriesName!=null))&&(E.type="ordinal")}return c6(i),new DL({source:t,dimensions:i,fullDimensionCount:o,dimensionOmitted:u})}function c6(t){for(var e=Ct(),n=0;n<t.length;n++){var r=t[n],a=r.name,i=e.get(a)||0;i>0&&(r.name=a+(i-1)),i++,e.set(a,i)}}function h6(t,e,n,r){var a=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return k(e,function(i){var o;_t(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function v6(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}var d6=(function(){function t(e){this.coordSysDims=[],this.axisMap=Ct(),this.categoryAxisMap=Ct(),this.coordSysName=e}return t})();function p6(t){var e=t.get("coordinateSystem"),n=new d6(e),r=g6[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var g6={cartesian2d:function(t,e,n,r){var a=t.getReferringComponents("xAxis",jn).models[0],i=t.getReferringComponents("yAxis",jn).models[0];e.coordSysDims=["x","y"],n.set("x",a),n.set("y",i),gs(a)&&(r.set("x",a),e.firstCategoryDimIndex=0),gs(i)&&(r.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var a=t.getReferringComponents("singleAxis",jn).models[0];e.coordSysDims=["single"],n.set("single",a),gs(a)&&(r.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var a=t.getReferringComponents("polar",jn).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",i),n.set("angle",o),gs(i)&&(r.set("radius",i),e.firstCategoryDimIndex=0),gs(o)&&(r.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var a=t.ecModel,i=a.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();k(i.parallelAxisIndex,function(u,f){var c=a.getComponent("parallelAxis",u),v=o[f];n.set(v,c),gs(c)&&(r.set(v,c),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=f))})}};function gs(t){return t.get("type")==="category"}function zL(t,e,n){n=n||{};var r=n.byIndex,a=n.stackedCoordDimension,i,o,u;m6(e)?i=e:(o=e.schema,i=o.dimensions,u=e.store);var f=!!(t&&t.get("stack")),c,v,d,g;if(k(i,function(M,C){pt(M)&&(i[C]=M={name:M}),f&&!M.isExtraCoord&&(!r&&!c&&M.ordinalMeta&&(c=M),!v&&M.type!=="ordinal"&&M.type!=="time"&&(!a||a===M.coordDim)&&(v=M))}),v&&!r&&!c&&(r=!0),v){d="__\0ecstackresult_"+t.id,g="__\0ecstackedover_"+t.id,c&&(c.createInvertedIndices=!0);var p=v.coordDim,y=v.type,_=0;k(i,function(M){M.coordDim===p&&_++});var S={name:d,coordDim:p,coordDimIndex:_,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},x={name:g,coordDim:g,coordDimIndex:_+1,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(u&&(S.storeDimIndex=u.ensureCalculationDimension(g,y),x.storeDimIndex=u.ensureCalculationDimension(d,y)),o.appendCalculationDimension(S),o.appendCalculationDimension(x)):(i.push(S),i.push(x))}return{stackedDimension:v&&v.name,stackedByDimension:c&&c.name,isStackedByIndex:r,stackedOverDimension:g,stackResultDimension:d}}function m6(t){return!RL(t.schema)}function fl(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function NL(t,e){return fl(t,e)?t.getCalculationInfo("stackResultDimension"):e}function y6(t,e){var n=t.get("coordinateSystem"),r=rp.get(n),a;return e&&e.coordSysDims&&(a=mt(e.coordSysDims,function(i){var o={name:i},u=e.axisMap.get(i);if(u){var f=u.get("type");o.type=n6(f)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function _6(t,e,n){var r,a;return n&&k(t,function(i,o){var u=i.coordDim,f=n.categoryAxisMap.get(u);f&&(r==null&&(r=o),i.ordinalMeta=f.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(t[r].otherDims.itemName=0),r}function fp(t,e,n){n=n||{};var r=e.getSourceManager(),a,i=!1;a=r.getSource(),i=a.sourceFormat===zr;var o=p6(e),u=y6(e,o),f=n.useEncodeDefaulter,c=Rt(f)?f:f?_e(c4,u,e):null,v={coordDimensions:u,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!i},d=h1(a,v),g=_6(d.dimensions,n.createInvertedIndices,o),p=i?null:r.getSharedDataStore(d),y=zL(e,{schema:d,store:p}),_=new c1(d,e);_.setCalculationInfo(y);var S=g!=null&&S6(a)?function(x,M,C,T){return T===g?C:this.defaultDimValueGetter(x,M,C,T)}:null;return _.hasItemOption=!1,_.initData(i?a:p,null,S),_}function S6(t){if(t.sourceFormat===zr){var e=b6(t.data||[]);return!ct(lc(e))}}function b6(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var ma=(function(){function t(e){this._setting=e||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype.unionExtent=function(e){var n=this._extent;e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1])},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,n){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(n)||(r[1]=n)},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();kd(ma);var x6=0,A_=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++x6}return t.createByAxisModel=function(e){var n=e.option,r=n.data,a=r&&mt(r,w6);return new t({categories:a,needCollect:!a,deduplication:n.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var n,r=this._needCollect;if(!pt(e)&&!r)return e;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=e,n;var a=this._getOrCreateMap();return n=a.get(e),n==null&&(r?(n=this.categories.length,this.categories[n]=e,a.set(e,n)):n=NaN),n},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Ct(this.categories))},t})();function w6(t){return _t(t)&&t.value!=null?t.value:t+""}function D_(t){return t.type==="interval"||t.type==="log"}function M6(t,e,n,r){var a={},i=t[1]-t[0],o=a.interval=xS(i/e,!0);n!=null&&o<n&&(o=a.interval=n),r!=null&&o>r&&(o=a.interval=r);var u=a.intervalPrecision=IL(o),f=a.niceTickExtent=[Ne(Math.ceil(t[0]/o)*o,u),Ne(Math.floor(t[1]/o)*o,u)];return C6(f,t),a}function Qy(t){var e=Math.pow(10,Bd(t)),n=t/e;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Ne(n*e)}function IL(t){return ua(t)+2}function TA(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function C6(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),TA(t,0,e),TA(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function cp(t,e){return t>=e[0]&&t<=e[1]}function hp(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function vp(t,e){return t*(e[1]-e[0])+e[0]}var v1=(function(t){ut(e,t);function e(n){var r=t.call(this,n)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new A_({})),ct(a)&&(a=new A_({categories:mt(a,function(i){return _t(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return e.prototype.parse=function(n){return n==null?NaN:pt(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},e.prototype.contain=function(n){return n=this.parse(n),cp(n,this._extent)&&this._ordinalMeta.categories[n]!=null},e.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),hp(n,this._extent)},e.prototype.scale=function(n){return n=Math.round(vp(n,this._extent)),this.getRawOrdinalNumber(n)},e.prototype.getTicks=function(){for(var n=[],r=this._extent,a=r[0];a<=r[1];)n.push({value:a}),a++;return n},e.prototype.getMinorTicks=function(n){},e.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,u=this._ordinalMeta.categories.length,f=Math.min(u,r.length);o<f;++o){var c=r[o];a[o]=c,i[c]=o}for(var v=0;o<u;++o){for(;i[v]!=null;)v++;a.push(v),i[v]=o}},e.prototype._getTickNumber=function(n){var r=this._ticksByOrdinalNumber;return r&&n>=0&&n<r.length?r[n]:n},e.prototype.getRawOrdinalNumber=function(n){var r=this._ordinalNumbersByTick;return r&&n>=0&&n<r.length?r[n]:n},e.prototype.getLabel=function(n){if(!this.isBlank()){var r=this.getRawOrdinalNumber(n.value),a=this._ordinalMeta.categories[r];return a==null?"":a+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},e.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e})(ma);ma.registerClass(v1);var jo=Ne,Vs=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return e.prototype.parse=function(n){return n},e.prototype.contain=function(n){return cp(n,this._extent)},e.prototype.normalize=function(n){return hp(n,this._extent)},e.prototype.scale=function(n){return vp(n,this._extent)},e.prototype.setExtent=function(n,r){var a=this._extent;isNaN(n)||(a[0]=parseFloat(n)),isNaN(r)||(a[1]=parseFloat(r))},e.prototype.unionExtent=function(n){var r=this._extent;n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=IL(n)},e.prototype.getTicks=function(n){var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,u=[];if(!r)return u;var f=1e4;a[0]<i[0]&&(n?u.push({value:jo(i[0]-r,o)}):u.push({value:a[0]}));for(var c=i[0];c<=i[1]&&(u.push({value:c}),c=jo(c+r,o),c!==u[u.length-1].value);)if(u.length>f)return[];var v=u.length?u[u.length-1].value:i[1];return a[1]>v&&(n?u.push({value:jo(v+r,o)}):u.push({value:a[1]})),u},e.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),a=[],i=this.getExtent(),o=1;o<r.length;o++){for(var u=r[o],f=r[o-1],c=0,v=[],d=u.value-f.value,g=d/n;c<n-1;){var p=jo(f.value+(c+1)*g);p>i[0]&&p<i[1]&&v.push(p),c++}a.push(v)}return a},e.prototype.getLabel=function(n,r){if(n==null)return"";var a=r&&r.precision;a==null?a=ua(n.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=jo(n.value,a,!0);return jS(i)},e.prototype.calcNiceTicks=function(n,r,a){n=n||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var u=M6(i,n,r,a);this._intervalPrecision=u.intervalPrecision,this._interval=u.interval,this._niceExtent=u.niceTickExtent}},e.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1])if(r[0]!==0){var a=Math.abs(r[0]);n.fixMax||(r[1]+=a/2),r[0]-=a/2}else r[1]=1;var i=r[1]-r[0];isFinite(i)||(r[0]=0,r[1]=1),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var o=this._interval;n.fixMin||(r[0]=jo(Math.floor(r[0]/o)*o)),n.fixMax||(r[1]=jo(Math.ceil(r[1]/o)*o))},e.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},e.type="interval",e})(ma);ma.registerClass(Vs);var BL=typeof Float32Array<"u",T6=BL?Float32Array:Array;function $a(t){return ct(t)?BL?new Float32Array(t):t:new T6(t)}var A6="__ec_stack_";function kL(t){return t.get("stack")||A6+t.seriesIndex}function d1(t){return t.dim+t.index}function PL(t,e){var n=[];return e.eachSeriesByType(t,function(r){VL(r)&&n.push(r)}),n}function D6(t){var e={};k(t,function(f){var c=f.coordinateSystem,v=c.getBaseAxis();if(!(v.type!=="time"&&v.type!=="value"))for(var d=f.getData(),g=v.dim+"_"+v.index,p=d.getDimensionIndex(d.mapDimension(v.dim)),y=d.getStore(),_=0,S=y.count();_<S;++_){var x=y.get(p,_);e[g]?e[g].push(x):e[g]=[x]}});var n={};for(var r in e)if(e.hasOwnProperty(r)){var a=e[r];if(a){a.sort(function(f,c){return f-c});for(var i=null,o=1;o<a.length;++o){var u=a[o]-a[o-1];u>0&&(i=i===null?u:Math.min(i,u))}n[r]=i}}return n}function HL(t){var e=D6(t),n=[];return k(t,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),u;if(i.type==="category")u=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var f=i.dim+"_"+i.index,c=e[f],v=Math.abs(o[1]-o[0]),d=i.scale.getExtent(),g=Math.abs(d[1]-d[0]);u=c?v/g*c:v}else{var p=r.getData();u=Math.abs(o[1]-o[0])/p.count()}var y=ve(r.get("barWidth"),u),_=ve(r.get("barMaxWidth"),u),S=ve(r.get("barMinWidth")||(FL(r)?.5:1),u),x=r.get("barGap"),M=r.get("barCategoryGap");n.push({bandWidth:u,barWidth:y,barMaxWidth:_,barMinWidth:S,barGap:x,barCategoryGap:M,axisKey:d1(i),stackId:kL(r)})}),R6(n)}function R6(t){var e={};k(t,function(r,a){var i=r.axisKey,o=r.bandWidth,u=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},f=u.stacks;e[i]=u;var c=r.stackId;f[c]||u.autoWidthCount++,f[c]=f[c]||{width:0,maxWidth:0};var v=r.barWidth;v&&!f[c].width&&(f[c].width=v,v=Math.min(u.remainedWidth,v),u.remainedWidth-=v);var d=r.barMaxWidth;d&&(f[c].maxWidth=d);var g=r.barMinWidth;g&&(f[c].minWidth=g);var p=r.barGap;p!=null&&(u.gap=p);var y=r.barCategoryGap;y!=null&&(u.categoryGap=y)});var n={};return k(e,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,u=r.categoryGap;if(u==null){var f=ae(i).length;u=Math.max(35-f*4,15)+"%"}var c=ve(u,o),v=ve(r.gap,1),d=r.remainedWidth,g=r.autoWidthCount,p=(d-c)/(g+(g-1)*v);p=Math.max(p,0),k(i,function(x){var M=x.maxWidth,C=x.minWidth;if(x.width){var T=x.width;M&&(T=Math.min(T,M)),C&&(T=Math.max(T,C)),x.width=T,d-=T+v*T,g--}else{var T=p;M&&M<T&&(T=Math.min(M,d)),C&&C>T&&(T=C),T!==p&&(x.width=T,d-=T+v*T,g--)}}),p=(d-c)/(g+(g-1)*v),p=Math.max(p,0);var y=0,_;k(i,function(x,M){x.width||(x.width=p),_=x,y+=x.width*(1+v)}),_&&(y-=_.width*v);var S=-y/2;k(i,function(x,M){n[a][M]=n[a][M]||{bandWidth:o,offset:S,width:x.width},S+=x.width*(1+v)})}),n}function E6(t,e,n){if(t&&e){var r=t[d1(e)];return r}}function L6(t,e){var n=PL(t,e),r=HL(n);k(n,function(a){var i=a.getData(),o=a.coordinateSystem,u=o.getBaseAxis(),f=kL(a),c=r[d1(u)][f],v=c.offset,d=c.width;i.setLayout({bandWidth:c.bandWidth,offset:v,size:d})})}function O6(t){return{seriesType:t,plan:t1(),reset:function(e){if(VL(e)){var n=e.getData(),r=e.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=n.getDimensionIndex(n.mapDimension(i.dim)),u=n.getDimensionIndex(n.mapDimension(a.dim)),f=e.get("showBackground",!0),c=n.mapDimension(i.dim),v=n.getCalculationInfo("stackResultDimension"),d=fl(n,c)&&!!n.getCalculationInfo("stackedOnSeries"),g=i.isHorizontal(),p=z6(a,i),y=FL(e),_=e.get("barMinHeight")||0,S=v&&n.getDimensionIndex(v),x=n.getLayout("size"),M=n.getLayout("offset");return{progress:function(C,T){for(var D=C.count,R=y&&$a(D*3),E=y&&f&&$a(D*3),z=y&&$a(D),I=r.master.getRect(),N=g?I.width:I.height,L,V=T.getStore(),G=0;(L=C.next())!=null;){var j=V.get(d?S:o,L),X=V.get(u,L),H=p,Q=void 0;d&&(Q=+j-V.get(o,L));var Z=void 0,J=void 0,ot=void 0,P=void 0;if(g){var q=r.dataToPoint([j,X]);if(d){var rt=r.dataToPoint([Q,X]);H=rt[0]}Z=H,J=q[1]+M,ot=q[0]-H,P=x,Math.abs(ot)<_&&(ot=(ot<0?-1:1)*_)}else{var q=r.dataToPoint([X,j]);if(d){var rt=r.dataToPoint([X,Q]);H=rt[1]}Z=q[0]+M,J=H,ot=x,P=q[1]-H,Math.abs(P)<_&&(P=(P<=0?-1:1)*_)}y?(R[G]=Z,R[G+1]=J,R[G+2]=g?ot:P,E&&(E[G]=g?I.x:Z,E[G+1]=g?J:I.y,E[G+2]=N),z[L]=L):T.setItemLayout(L,{x:Z,y:J,width:ot,height:P}),G+=3}y&&T.setLayout({largePoints:R,largeDataIndices:z,largeBackgroundPoints:E,valueAxisHorizontal:g})}}}}}}function VL(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function FL(t){return t.pipelineContext&&t.pipelineContext.large}function z6(t,e){var n=e.model.get("startValue");return n||(n=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?n>0?n:1:n))}var N6=function(t,e,n,r){for(;n<r;){var a=n+r>>>1;t[a][1]<e?n=a+1:r=a}return n},GL=(function(t){ut(e,t);function e(n){var r=t.call(this,n)||this;return r.type="time",r}return e.prototype.getLabel=function(n){var r=this.getSetting("useUTC");return pc(n.value,yT[t4(Ls(this._minLevelUnit))]||yT.second,r,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(n,r,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return e4(n,r,a,o,i)},e.prototype.getTicks=function(){var n=this._interval,r=this._extent,a=[];if(!n)return a;a.push({value:r[0],level:0});var i=this.getSetting("useUTC"),o=F6(this._minLevelUnit,this._approxInterval,i,r);return a=a.concat(o),a.push({value:r[1],level:0}),a},e.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=Dr,r[1]+=Dr),r[1]===-1/0&&r[0]===1/0){var a=new Date;r[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),r[0]=r[1]-Dr}this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},e.prototype.calcNiceTicks=function(n,r,a){n=n||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/n,r!=null&&this._approxInterval<r&&(this._approxInterval=r),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var u=fv.length,f=Math.min(N6(fv,this._approxInterval,0,u),u-1);this._interval=fv[f][1],this._minLevelUnit=fv[Math.max(f-1,0)][0]},e.prototype.parse=function(n){return de(n)?n:+Rr(n)},e.prototype.contain=function(n){return cp(this.parse(n),this._extent)},e.prototype.normalize=function(n){return hp(this.parse(n),this._extent)},e.prototype.scale=function(n){return vp(n,this._extent)},e.type="time",e})(Vs),fv=[["second",FS],["minute",GS],["hour",Df],["quarter-day",Df*6],["half-day",Df*12],["day",Dr*1.2],["half-week",Dr*3.5],["week",Dr*7],["month",Dr*31],["quarter",Dr*95],["half-year",mT/2],["year",mT]];function I6(t,e,n,r){var a=Rr(e),i=Rr(n),o=function(y){return _T(a,y,r)===_T(i,y,r)},u=function(){return o("year")},f=function(){return u()&&o("month")},c=function(){return f()&&o("day")},v=function(){return c()&&o("hour")},d=function(){return v()&&o("minute")},g=function(){return d()&&o("second")},p=function(){return g()&&o("millisecond")};switch(t){case"year":return u();case"month":return f();case"day":return c();case"hour":return v();case"minute":return d();case"second":return g();case"millisecond":return p()}}function B6(t,e){return t/=Dr,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function k6(t){var e=30*Dr;return t/=e,t>6?6:t>3?3:t>2?2:1}function P6(t){return t/=Df,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function AA(t,e){return t/=e?GS:FS,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function H6(t){return xS(t,!0)}function V6(t,e,n){var r=new Date(t);switch(Ls(e)){case"year":case"month":r[vE(n)](0);case"day":r[dE(n)](1);case"hour":r[pE(n)](0);case"minute":r[gE(n)](0);case"second":r[mE(n)](0),r[yE(n)](0)}return r.getTime()}function F6(t,e,n,r){var a=1e4,i=cE,o=0;function u(N,L,V,G,j,X,H){for(var Q=new Date(L),Z=L,J=Q[G]();Z<V&&Z<=r[1];)H.push({value:Z}),J+=N,Q[j](J),Z=Q.getTime();H.push({value:Z,notAdd:!0})}function f(N,L,V){var G=[],j=!L.length;if(!I6(Ls(N),r[0],r[1],n)){j&&(L=[{value:V6(new Date(r[0]),N,n)},{value:r[1]}]);for(var X=0;X<L.length-1;X++){var H=L[X].value,Q=L[X+1].value;if(H!==Q){var Z=void 0,J=void 0,ot=void 0,P=!1;switch(N){case"year":Z=Math.max(1,Math.round(e/Dr/365)),J=US(n),ot=n4(n);break;case"half-year":case"quarter":case"month":Z=k6(e),J=Os(n),ot=vE(n);break;case"week":case"half-week":case"day":Z=B6(e),J=Jd(n),ot=dE(n),P=!0;break;case"half-day":case"quarter-day":case"hour":Z=P6(e),J=Xf(n),ot=pE(n);break;case"minute":Z=AA(e,!0),J=tp(n),ot=gE(n);break;case"second":Z=AA(e,!1),J=ep(n),ot=mE(n);break;case"millisecond":Z=H6(e),J=np(n),ot=yE(n);break}u(Z,H,Q,J,ot,P,G),N==="year"&&V.length>1&&X===0&&V.unshift({value:V[0].value-Z})}}for(var X=0;X<G.length;X++)V.push(G[X]);return G}}for(var c=[],v=[],d=0,g=0,p=0;p<i.length&&o++<a;++p){var y=Ls(i[p]);if(JP(i[p])){f(i[p],c[c.length-1]||[],v);var _=i[p+1]?Ls(i[p+1]):null;if(y!==_){if(v.length){g=d,v.sort(function(N,L){return N.value-L.value});for(var S=[],x=0;x<v.length;++x){var M=v[x].value;(x===0||v[x-1].value!==M)&&(S.push(v[x]),M>=r[0]&&M<=r[1]&&d++)}var C=(r[1]-r[0])/e;if(d>C*1.5&&g>C/1.5||(c.push(S),d>C||t===i[p]))break}v=[]}}}for(var T=Re(mt(c,function(N){return Re(N,function(L){return L.value>=r[0]&&L.value<=r[1]&&!L.notAdd})}),function(N){return N.length>0}),D=[],R=T.length-1,p=0;p<T.length;++p)for(var E=T[p],z=0;z<E.length;++z)D.push({value:E[z].value,level:R-p});D.sort(function(N,L){return N.value-L.value});for(var I=[],p=0;p<D.length;++p)(p===0||D[p].value!==D[p-1].value)&&I.push(D[p]);return I}ma.registerClass(GL);var DA=ma.prototype,Of=Vs.prototype,G6=Ne,U6=Math.floor,j6=Math.ceil,cv=Math.pow,Fr=Math.log,p1=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new Vs,n._interval=0,n}return e.prototype.getTicks=function(n){var r=this._originalScale,a=this._extent,i=r.getExtent(),o=Of.getTicks.call(this,n);return mt(o,function(u){var f=u.value,c=Ne(cv(this.base,f));return c=f===a[0]&&this._fixMin?hv(c,i[0]):c,c=f===a[1]&&this._fixMax?hv(c,i[1]):c,{value:c}},this)},e.prototype.setExtent=function(n,r){var a=Fr(this.base);n=Fr(Math.max(0,n))/a,r=Fr(Math.max(0,r))/a,Of.setExtent.call(this,n,r)},e.prototype.getExtent=function(){var n=this.base,r=DA.getExtent.call(this);r[0]=cv(n,r[0]),r[1]=cv(n,r[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(r[0]=hv(r[0],i[0])),this._fixMax&&(r[1]=hv(r[1],i[1])),r},e.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var r=this.base;n[0]=Fr(n[0])/Fr(r),n[1]=Fr(n[1])/Fr(r),DA.unionExtent.call(this,n)},e.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},e.prototype.calcNiceTicks=function(n){n=n||10;var r=this._extent,a=r[1]-r[0];if(!(a===1/0||a<=0)){var i=dR(a),o=n/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var u=[Ne(j6(r[0]/i)*i),Ne(U6(r[1]/i)*i)];this._interval=i,this._niceExtent=u}},e.prototype.calcNiceExtent=function(n){Of.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},e.prototype.parse=function(n){return n},e.prototype.contain=function(n){return n=Fr(n)/Fr(this.base),cp(n,this._extent)},e.prototype.normalize=function(n){return n=Fr(n)/Fr(this.base),hp(n,this._extent)},e.prototype.scale=function(n){return n=vp(n,this._extent),cv(this.base,n)},e.type="log",e})(ma),UL=p1.prototype;UL.getMinorTicks=Of.getMinorTicks;UL.getLabel=Of.getLabel;function hv(t,e){return G6(t,ua(e))}ma.registerClass(p1);var Y6=(function(){function t(e,n,r){this._prepareParams(e,n,r)}return t.prototype._prepareParams=function(e,n,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var a=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var i=n.get("min",!0);i==null&&(i=n.get("startValue",!0));var o=this._modelMinRaw=i;Rt(o)?this._modelMinNum=vv(e,o({min:r[0],max:r[1]})):o!=="dataMin"&&(this._modelMinNum=vv(e,o));var u=this._modelMaxRaw=n.get("max",!0);if(Rt(u)?this._modelMaxNum=vv(e,u({min:r[0],max:r[1]})):u!=="dataMax"&&(this._modelMaxNum=vv(e,u)),a)this._axisDataLen=n.getCategories().length;else{var f=n.get("boundaryGap"),c=ct(f)?f:[f||0,f||0];typeof c[0]=="boolean"||typeof c[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Ji(c[0],1),Ji(c[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,n=this._dataMin,r=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=e?null:r-n||Math.abs(n),u=this._modelMinRaw==="dataMin"?n:this._modelMinNum,f=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,c=u!=null,v=f!=null;u==null&&(u=e?a?0:NaN:n-i[0]*o),f==null&&(f=e?a?a-1:NaN:r+i[1]*o),(u==null||!isFinite(u))&&(u=NaN),(f==null||!isFinite(f))&&(f=NaN);var d=Bf(u)||Bf(f)||e&&!a;this._needCrossZero&&(u>0&&f>0&&!c&&(u=0),u<0&&f<0&&!v&&(f=0));var g=this._determinedMin,p=this._determinedMax;return g!=null&&(u=g,c=!0),p!=null&&(f=p,v=!0),{min:u,max:f,minFixed:c,maxFixed:v,isBlank:d}},t.prototype.modifyDataMinMax=function(e,n){this[X6[e]]=n},t.prototype.setDeterminedMinMax=function(e,n){var r=q6[e];this[r]=n},t.prototype.freeze=function(){this.frozen=!0},t})(),q6={min:"_determinedMin",max:"_determinedMax"},X6={min:"_dataMin",max:"_dataMax"};function jL(t,e,n){var r=t.rawExtentInfo;return r||(r=new Y6(t,e,n),t.rawExtentInfo=r,r)}function vv(t,e){return e==null?null:Bf(e)?NaN:t.parse(e)}function YL(t,e){var n=t.type,r=jL(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var a=r.min,i=r.max,o=e.ecModel;if(o&&n==="time"){var u=PL("bar",o),f=!1;if(k(u,function(d){f=f||d.getBaseAxis()===e.axis}),f){var c=HL(u),v=Z6(a,i,e,c);a=v.min,i=v.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function Z6(t,e,n,r){var a=n.axis.getExtent(),i=Math.abs(a[1]-a[0]),o=E6(r,n.axis);if(o===void 0)return{min:t,max:e};var u=1/0;k(o,function(p){u=Math.min(p.offset,u)});var f=-1/0;k(o,function(p){f=Math.max(p.offset+p.width,f)}),u=Math.abs(u),f=Math.abs(f);var c=u+f,v=e-t,d=1-(u+f)/i,g=v/d-v;return e+=g*(f/c),t-=g*(u/c),{min:t,max:e}}function R_(t,e){var n=e,r=YL(t,n),a=r.extent,i=n.get("splitNumber");t instanceof p1&&(t.base=n.get("logBase"));var o=t.type,u=n.get("interval"),f=o==="interval"||o==="time";t.setExtent(a[0],a[1]),t.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:f?n.get("minInterval"):null,maxInterval:f?n.get("maxInterval"):null}),u!=null&&t.setInterval&&t.setInterval(u)}function qL(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new v1({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new GL({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(ma.getClass(e)||Vs)}}function $6(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function Fs(t){var e=t.getLabelModel().get("formatter"),n=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?(function(r){return function(a,i){return t.scale.getFormattedLabel(a,i,r)}})(e):pt(e)?(function(r){return function(a){var i=t.scale.getLabel(a),o=r.replace("{value}",i??"");return o}})(e):Rt(e)?(function(r){return function(a,i){return n!=null&&(i=a.value-n),r(g1(t,a),i,a.level!=null?{level:a.level}:null)}})(e):function(r){return t.scale.getLabel(r)}}function g1(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function W6(t){var e=t.model,n=t.scale;if(!(!e.get(["axisLabel","show"])||n.isBlank())){var r,a,i=n.getExtent();n instanceof v1?a=n.count():(r=n.getTicks(),a=r.length);var o=t.getLabelModel(),u=Fs(t),f,c=1;a>40&&(c=Math.ceil(a/40));for(var v=0;v<a;v+=c){var d=r?r[v]:{value:i[0]+v},g=u(d,v),p=o.getTextRect(g),y=Q6(p,o.get("rotate")||0);f?f.union(y):f=y}return f}}function Q6(t,e){var n=e*Math.PI/180,r=t.width,a=t.height,i=r*Math.abs(Math.cos(n))+Math.abs(a*Math.sin(n)),o=r*Math.abs(Math.sin(n))+Math.abs(a*Math.cos(n)),u=new Wt(t.x,t.y,i,o);return u}function m1(t){var e=t.get("interval");return e??"auto"}function XL(t){return t.type==="category"&&m1(t.getLabelModel())===0}function ZL(t,e){var n={};return k(t.mapDimensionsAll(e),function(r){n[NL(t,r)]=!0}),ae(n)}function K6(t,e,n){e&&k(ZL(e,n),function(r){var a=e.getApproximateExtent(r);a[0]<t[0]&&(t[0]=a[0]),a[1]>t[1]&&(t[1]=a[1])})}var $L=(function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t})();function J6(t){return fp(null,t)}var tF={isDimensionStacked:fl,enableDataStack:zL,getStackedDimension:NL};function eF(t,e){var n=e;e instanceof Se||(n=new Se(e));var r=qL(n);return r.setExtent(t[0],t[1]),R_(r,n),r}function nF(t){Lr(t,$L)}function rF(t,e){return e=e||{},va(t,null,null,e.state!=="normal")}const aF=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:f6,createList:J6,createScale:eF,createSymbol:ei,createTextStyle:rF,dataStack:tF,enableHoverEmphasis:Uf,getECData:jt,getLayoutRect:ti,mixinAxisModelCommonMethods:nF},Symbol.toStringTag,{value:"Module"}));var RA=[],iF={registerPreprocessor:l1,registerProcessor:s1,registerPostInit:xL,registerPostUpdate:wL,registerUpdateLifecycle:up,registerAction:no,registerCoordinateSystem:ML,registerLayout:CL,registerVisual:ro,registerTransform:AL,registerLoading:f1,registerMap:TL,registerImpl:CV,PRIORITY:vL,ComponentModel:$t,ComponentView:dn,SeriesModel:qn,ChartView:Cn,registerComponentModel:function(t){$t.registerClass(t)},registerComponentView:function(t){dn.registerClass(t)},registerSeriesModel:function(t){qn.registerClass(t)},registerChartView:function(t){Cn.registerClass(t)},registerSubTypeDefaulter:function(t,e){$t.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){uR(t,e)}};function Xn(t){if(ct(t)){k(t,function(e){Xn(e)});return}Yt(RA,t)>=0||(RA.push(t),Rt(t)&&(t={install:t}),t.install(iF))}var oF=1e-8;function EA(t,e){return Math.abs(t-e)<oF}function LA(t,e,n){var r=0,a=t[0];if(!a)return!1;for(var i=1;i<t.length;i++){var o=t[i];r+=qa(a[0],a[1],o[0],o[1],e,n),a=o}var u=t[0];return(!EA(a[0],u[0])||!EA(a[1],u[1]))&&(r+=qa(a[0],a[1],u[0],u[1],e,n)),r!==0}var lF=[];function Ky(t,e){for(var n=0;n<t.length;n++)Mn(t[n],t[n],e)}function OA(t,e,n,r){for(var a=0;a<t.length;a++){var i=t[a];r&&(i=r.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Pi(e,e,i),Hi(n,n,i))}}function sF(t){for(var e=0,n=0,r=0,a=t.length,i=t[a-1][0],o=t[a-1][1],u=0;u<a;u++){var f=t[u][0],c=t[u][1],v=i*c-f*o;e+=v,n+=(i+f)*v,r+=(o+c)*v,i=f,o=c}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}var WL=(function(){function t(e){this.name=e}return t.prototype.setCenter=function(e){this._center=e},t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},t})(),zA=(function(){function t(e,n){this.type="polygon",this.exterior=e,this.interiors=n}return t})(),NA=(function(){function t(e){this.type="linestring",this.points=e}return t})(),uF=(function(t){ut(e,t);function e(n,r,a){var i=t.call(this,n)||this;return i.type="geoJSON",i.geometries=r,i._center=a&&[a[0],a[1]],i}return e.prototype.calcCenter=function(){for(var n=this.geometries,r,a=0,i=0;i<n.length;i++){var o=n[i],u=o.exterior,f=u&&u.length;f>a&&(r=o,a=f)}if(r)return sF(r.exterior);var c=this.getBoundingRect();return[c.x+c.width/2,c.y+c.height/2]},e.prototype.getBoundingRect=function(n){var r=this._rect;if(r&&!n)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return k(o,function(u){u.type==="polygon"?OA(u.exterior,a,i,n):k(u.points,function(f){OA(f,a,i,n)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new Wt(a[0],a[1],i[0]-a[0],i[1]-a[1]),n||(this._rect=r),r},e.prototype.contain=function(n){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(n[0],n[1]))return!1;t:for(var i=0,o=a.length;i<o;i++){var u=a[i];if(u.type==="polygon"){var f=u.exterior,c=u.interiors;if(LA(f,n[0],n[1])){for(var v=0;v<(c?c.length:0);v++)if(LA(c[v],n[0],n[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(n,r,a,i){var o=this.getBoundingRect(),u=o.width/o.height;a?i||(i=a/u):a=u*i;for(var f=new Wt(n,r,a,i),c=o.calculateTransform(f),v=this.geometries,d=0;d<v.length;d++){var g=v[d];g.type==="polygon"?(Ky(g.exterior,c),k(g.interiors,function(p){Ky(p,c)})):k(g.points,function(p){Ky(p,c)})}o=this._rect,o.copy(f),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(n){n==null&&(n=this.name);var r=new e(n,this.geometries,this._center);return r._rect=this._rect,r.transformTo=null,r},e})(WL);(function(t){ut(e,t);function e(n,r){var a=t.call(this,n)||this;return a.type="geoSVG",a._elOnlyForCalculate=r,a}return e.prototype.calcCenter=function(){for(var n=this._elOnlyForCalculate,r=n.getBoundingRect(),a=[r.x+r.width/2,r.y+r.height/2],i=ac(lF),o=n;o&&!o.isGeoSVGGraphicRoot;)Zi(i,o.getLocalTransform(),i),o=o.parent;return ic(i,i),Mn(a,a,i),a},e})(WL);function fF(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;n==null&&(n=1024);var r=e.features;return k(r,function(a){var i=a.geometry,o=i.encodeOffsets,u=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=QL(u,o,n);break;case"Polygon":Jy(u,o,n);break;case"MultiLineString":Jy(u,o,n);break;case"MultiPolygon":k(u,function(f,c){return Jy(f,o[c],n)})}}),e.UTF8Encoding=!1,e}function Jy(t,e,n){for(var r=0;r<t.length;r++)t[r]=QL(t[r],e[r],n)}function QL(t,e,n){for(var r=[],a=e[0],i=e[1],o=0;o<t.length;o+=2){var u=t.charCodeAt(o)-64,f=t.charCodeAt(o+1)-64;u=u>>1^-(u&1),f=f>>1^-(f&1),u+=a,f+=i,a=u,i=f,r.push([u/n,f/n])}return r}function IA(t,e){return t=fF(t),mt(Re(t.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var r=n.properties,a=n.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new zA(o[0],o.slice(1)));break;case"MultiPolygon":k(a.coordinates,function(f){f[0]&&i.push(new zA(f[0],f.slice(1)))});break;case"LineString":i.push(new NA([a.coordinates]));break;case"MultiLineString":i.push(new NA(a.coordinates))}var u=new uF(r[e||"name"],i,r.cp);return u.properties=r,u})}const cF=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:yB,asc:Ms,getPercentWithPrecision:gB,getPixelPrecision:SS,getPrecision:ua,getPrecisionSafe:hR,isNumeric:pR,isRadianAroundZero:Hf,linearMap:je,nice:xS,numericToNumber:Vf,parseDate:Rr,quantile:SB,quantity:dR,quantityExponent:Bd,reformIntervals:bB,remRadian:bS,round:Ne},Symbol.toStringTag,{value:"Module"})),hF=Object.freeze(Object.defineProperty({__proto__:null,format:pc,parse:Rr},Symbol.toStringTag,{value:"Module"})),vF=Object.freeze(Object.defineProperty({__proto__:null,Arc:cc,BezierCurve:Yd,BoundingRect:Wt,Circle:uc,CompoundPath:$R,Ellipse:Ud,Group:Ie,Image:pa,IncrementalDisplayable:KR,Line:Ja,LinearGradient:ES,Polygon:fc,Polyline:dl,RadialGradient:QR,Rect:be,Ring:jd,Sector:ri,Text:Me,clipPointsByRect:iE,clipRectByRect:oE,createIcon:Xd,extendPath:tE,extendShape:JR,getShapeClass:NS,getTransform:kS,initProps:ir,makeImage:IS,makePath:qd,mergePath:nE,registerShape:Or,resizePath:BS,updateProps:en},Symbol.toStringTag,{value:"Module"})),dF=Object.freeze(Object.defineProperty({__proto__:null,addCommas:jS,capitalFirst:i4,encodeHTML:xn,formatTime:a4,formatTpl:qS,getTextRect:r4,getTooltipMarker:_E,normalizeCssArray:gc,toCamelCase:YS,truncateText:$B},Symbol.toStringTag,{value:"Module"})),pF=Object.freeze(Object.defineProperty({__proto__:null,bind:Mt,clone:Ht,curry:_e,defaults:Qt,each:k,extend:st,filter:Re,indexOf:Yt,inherits:sS,isArray:ct,isFunction:Rt,isObject:_t,isString:pt,map:mt,merge:qt,reduce:$r},Symbol.toStringTag,{value:"Module"}));var Jf=xe();function KL(t,e){var n=mt(e,function(r){return t.scale.parse(r)});return t.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function gF(t){var e=t.getLabelModel().get("customValues");if(e){var n=Fs(t),r=t.scale.getExtent(),a=KL(t,e),i=Re(a,function(o){return o>=r[0]&&o<=r[1]});return{labels:mt(i,function(o){var u={value:o};return{formattedLabel:n(u),rawLabel:t.scale.getLabel(u),tickValue:o}})}}return t.type==="category"?yF(t):SF(t)}function mF(t,e){var n=t.getTickModel().get("customValues");if(n){var r=t.scale.getExtent(),a=KL(t,n);return{ticks:Re(a,function(i){return i>=r[0]&&i<=r[1]})}}return t.type==="category"?_F(t,e):{ticks:mt(t.scale.getTicks(),function(i){return i.value})}}function yF(t){var e=t.getLabelModel(),n=JL(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function JL(t,e){var n=tO(t,"labels"),r=m1(e),a=eO(n,r);if(a)return a;var i,o;return Rt(r)?i=aO(t,r):(o=r==="auto"?bF(t):r,i=rO(t,o)),nO(n,r,{labels:i,labelCategoryInterval:o})}function _F(t,e){var n=tO(t,"ticks"),r=m1(e),a=eO(n,r);if(a)return a;var i,o;if((!e.get("show")||t.scale.isBlank())&&(i=[]),Rt(r))i=aO(t,r,!0);else if(r==="auto"){var u=JL(t,t.getLabelModel());o=u.labelCategoryInterval,i=mt(u.labels,function(f){return f.tickValue})}else o=r,i=rO(t,o,!0);return nO(n,r,{ticks:i,tickCategoryInterval:o})}function SF(t){var e=t.scale.getTicks(),n=Fs(t);return{labels:mt(e,function(r,a){return{level:r.level,formattedLabel:n(r,a),rawLabel:t.scale.getLabel(r),tickValue:r.value}})}}function tO(t,e){return Jf(t)[e]||(Jf(t)[e]=[])}function eO(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function nO(t,e,n){return t.push({key:e,value:n}),n}function bF(t){var e=Jf(t).autoInterval;return e??(Jf(t).autoInterval=t.calculateCategoryInterval())}function xF(t){var e=wF(t),n=Fs(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var u=1;o>40&&(u=Math.max(1,Math.floor(o/40)));for(var f=i[0],c=t.dataToCoord(f+1)-t.dataToCoord(f),v=Math.abs(c*Math.cos(r)),d=Math.abs(c*Math.sin(r)),g=0,p=0;f<=i[1];f+=u){var y=0,_=0,S=yS(n({value:f}),e.font,"center","top");y=S.width*1.3,_=S.height*1.3,g=Math.max(g,y,7),p=Math.max(p,_,7)}var x=g/v,M=p/d;isNaN(x)&&(x=1/0),isNaN(M)&&(M=1/0);var C=Math.max(0,Math.floor(Math.min(x,M))),T=Jf(t.model),D=t.getExtent(),R=T.lastAutoInterval,E=T.lastTickCount;return R!=null&&E!=null&&Math.abs(R-C)<=1&&Math.abs(E-o)<=1&&R>C&&T.axisExtent0===D[0]&&T.axisExtent1===D[1]?C=R:(T.lastTickCount=o,T.lastAutoInterval=C,T.axisExtent0=D[0],T.axisExtent1=D[1]),C}function wF(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function rO(t,e,n){var r=Fs(t),a=t.scale,i=a.getExtent(),o=t.getLabelModel(),u=[],f=Math.max((e||0)+1,1),c=i[0],v=a.count();c!==0&&f>1&&v/f>2&&(c=Math.round(Math.ceil(c/f)*f));var d=XL(t),g=o.get("showMinLabel")||d,p=o.get("showMaxLabel")||d;g&&c!==i[0]&&_(i[0]);for(var y=c;y<=i[1];y+=f)_(y);p&&y-f!==i[1]&&_(i[1]);function _(S){var x={value:S};u.push(n?S:{formattedLabel:r(x),rawLabel:a.getLabel(x),tickValue:S})}return u}function aO(t,e,n){var r=t.scale,a=Fs(t),i=[];return k(r.getTicks(),function(o){var u=r.getLabel(o),f=o.value;e(o.value,u)&&i.push(n?f:{formattedLabel:a(o),rawLabel:u,tickValue:f})}),i}var BA=[0,1],iO=(function(){function t(e,n,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=n,this._extent=r||[0,0]}return t.prototype.contain=function(e){var n=this._extent,r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return e>=r&&e<=a},t.prototype.containData=function(e){return this.scale.contain(e)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return SS(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,n){var r=this._extent;r[0]=e,r[1]=n},t.prototype.dataToCoord=function(e,n){var r=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(r=r.slice(),kA(r,a.count())),je(e,BA,r,n)},t.prototype.coordToData=function(e,n){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),kA(r,a.count()));var i=je(e,r,BA,n);return this.scale.scale(i)},t.prototype.pointToData=function(e,n){},t.prototype.getTicksCoords=function(e){e=e||{};var n=e.tickModel||this.getTickModel(),r=mF(this,n),a=r.ticks,i=mt(a,function(u){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(u):u),tickValue:u}},this),o=n.get("alignWithLabel");return MF(this,i,o,e.clamp),i},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),n=e.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),a=mt(r,function(i){return mt(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},t.prototype.getViewLabels=function(){return gF(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/r},t.prototype.calculateCategoryInterval=function(){return xF(this)},t})();function kA(t,e){var n=t[1]-t[0],r=e,a=n/r/2;t[0]+=a,t[1]-=a}function MF(t,e,n,r){var a=e.length;if(!t.onBand||n||!a)return;var i=t.getExtent(),o,u;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[1],tickValue:e[0].tickValue};else{var f=e[a-1].tickValue-e[0].tickValue,c=(e[a-1].coord-e[0].coord)/f;k(e,function(p){p.coord-=c/2});var v=t.scale.getExtent();u=1+v[1]-e[a-1].tickValue,o={coord:e[a-1].coord+c*u,tickValue:v[1]+1},e.push(o)}var d=i[0]>i[1];g(e[0].coord,i[0])&&(r?e[0].coord=i[0]:e.shift()),r&&g(i[0],e[0].coord)&&e.unshift({coord:i[0]}),g(i[1],o.coord)&&(r?o.coord=i[1]:e.pop()),r&&g(o.coord,i[1])&&e.push({coord:i[1]});function g(p,y){return p=Ne(p),y=Ne(y),d?p>y:p<y}}function CF(t){var e=$t.extend(t);return $t.registerClass(e),e}function TF(t){var e=dn.extend(t);return dn.registerClass(e),e}function AF(t){var e=qn.extend(t);return qn.registerClass(e),e}function DF(t){var e=Cn.extend(t);return Cn.registerClass(e),e}function oO(t,e,n,r,a,i,o,u){var f=a-t,c=i-e,v=n-t,d=r-e,g=Math.sqrt(v*v+d*d);v/=g,d/=g;var p=f*v+c*d,y=p/g;y*=g;var _=o[0]=t+y*v,S=o[1]=e+y*d;return Math.sqrt((_-a)*(_-a)+(S-i)*(S-i))}var Gi=new Et,De=new Et,Je=new Et,Ui=new Et,sa=new Et,wd=[],bn=new Et;function RF(t,e){if(e<=180&&e>0){e=e/180*Math.PI,Gi.fromArray(t[0]),De.fromArray(t[1]),Je.fromArray(t[2]),Et.sub(Ui,Gi,De),Et.sub(sa,Je,De);var n=Ui.len(),r=sa.len();if(!(n<.001||r<.001)){Ui.scale(1/n),sa.scale(1/r);var a=Ui.dot(sa),i=Math.cos(e);if(i<a){var o=oO(De.x,De.y,Je.x,Je.y,Gi.x,Gi.y,wd);bn.fromArray(wd),bn.scaleAndAdd(sa,o/Math.tan(Math.PI-e));var u=Je.x!==De.x?(bn.x-De.x)/(Je.x-De.x):(bn.y-De.y)/(Je.y-De.y);if(isNaN(u))return;u<0?Et.copy(bn,De):u>1&&Et.copy(bn,Je),bn.toArray(t[1])}}}}function EF(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,Gi.fromArray(t[0]),De.fromArray(t[1]),Je.fromArray(t[2]),Et.sub(Ui,De,Gi),Et.sub(sa,Je,De);var r=Ui.len(),a=sa.len();if(!(r<.001||a<.001)){Ui.scale(1/r),sa.scale(1/a);var i=Ui.dot(e),o=Math.cos(n);if(i<o){var u=oO(De.x,De.y,Je.x,Je.y,Gi.x,Gi.y,wd);bn.fromArray(wd);var f=Math.PI/2,c=Math.acos(sa.dot(e)),v=f+c-n;if(v>=f)Et.copy(bn,Je);else{bn.scaleAndAdd(sa,u/Math.tan(Math.PI/2-v));var d=Je.x!==De.x?(bn.x-De.x)/(Je.x-De.x):(bn.y-De.y)/(Je.y-De.y);if(isNaN(d))return;d<0?Et.copy(bn,De):d>1&&Et.copy(bn,Je)}bn.toArray(t[1])}}}}function t0(t,e,n,r){var a=n==="normal",i=a?t:t.ensureState(n);i.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var u=r.getModel("lineStyle").getLineStyle();a?t.useStyle(u):i.style=u}function LF(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var a=Xv(r[0],r[1]),i=Xv(r[1],r[2]);if(!a||!i){t.lineTo(r[1][0],r[1][1]),t.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*n,u=Av([],r[1],r[0],o/a),f=Av([],r[1],r[2],o/i),c=Av([],u,f,.5);t.bezierCurveTo(u[0],u[1],u[0],u[1],c[0],c[1]),t.bezierCurveTo(f[0],f[1],f[0],f[1],r[2][0],r[2][1])}else for(var v=1;v<r.length;v++)t.lineTo(r[v][0],r[v][1])}function OF(t,e,n){var r=t.getTextGuideLine(),a=t.getTextContent();if(!a){r&&t.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),u=a.ignore,f=0;f<rd.length;f++){var c=rd[f],v=e[c],d=c==="normal";if(v){var g=v.get("show"),p=d?u:Pt(a.states[c]&&a.states[c].ignore,u);if(p||!Pt(g,o)){var y=d?r:r&&r.states[c];y&&(y.ignore=!0),r&&t0(r,!0,c,v);continue}r||(r=new dl,t.setTextGuideLine(r),!d&&(u||!o)&&t0(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),t0(r,!1,c,v)}}if(r){Qt(r.style,n),r.style.fill=null;var _=i.get("showAbove"),S=t.textGuideLineConfig=t.textGuideLineConfig||{};S.showAbove=_||!1,r.buildPath=LF}}function zF(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<Er.length;r++){var a=Er[r];n[a]=t.getModel([a,e])}return n}function NF(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var a=r.label,i=a.getComputedTransform(),o=a.getBoundingRect(),u=!i||i[1]<1e-5&&i[2]<1e-5,f=a.style.margin||0,c=o.clone();c.applyTransform(i),c.x-=f/2,c.y-=f/2,c.width+=f,c.height+=f;var v=u?new ld(o,i):null;e.push({label:a,labelLine:r.labelLine,rect:c,localRect:o,obb:v,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:u,transform:i})}}return e}function IF(t,e,n,r,a,i){var o=t.length;if(o<2)return;t.sort(function(R,E){return R.rect[e]-E.rect[e]});for(var u=0,f,c=!1,v=0;v<o;v++){var d=t[v],g=d.rect;f=g[e]-u,f<0&&(g[e]-=f,d.label[e]-=f,c=!0),u=g[e]+g[n]}var p=t[0],y=t[o-1],_,S;x(),_<0&&T(-_,.8),S<0&&T(S,.8),x(),M(_,S,1),M(S,_,-1),x(),_<0&&D(-_),S<0&&D(S);function x(){_=p.rect[e]-r,S=a-y.rect[e]-y.rect[n]}function M(R,E,z){if(R<0){var I=Math.min(E,-R);if(I>0){C(I*z,0,o);var N=I+R;N<0&&T(-N*z,1)}else T(-R*z,1)}}function C(R,E,z){R!==0&&(c=!0);for(var I=E;I<z;I++){var N=t[I],L=N.rect;L[e]+=R,N.label[e]+=R}}function T(R,E){for(var z=[],I=0,N=1;N<o;N++){var L=t[N-1].rect,V=Math.max(t[N].rect[e]-L[e]-L[n],0);z.push(V),I+=V}if(I){var G=Math.min(Math.abs(R)/I,E);if(R>0)for(var N=0;N<o-1;N++){var j=z[N]*G;C(j,0,N+1)}else for(var N=o-1;N>0;N--){var j=z[N-1]*G;C(-j,N,o)}}}function D(R){var E=R<0?-1:1;R=Math.abs(R);for(var z=Math.ceil(R/(o-1)),I=0;I<o-1;I++)if(E>0?C(z,0,I+1):C(-z,o-I-1,o),R-=z,R<=0)return}return c}function BF(t,e,n,r){return IF(t,"y","height",e,n)}function kF(t){var e=[];t.sort(function(_,S){return S.priority-_.priority});var n=new Wt(0,0,0,0);function r(_){if(!_.ignore){var S=_.ensureState("emphasis");S.ignore==null&&(S.ignore=!1)}_.ignore=!0}for(var a=0;a<t.length;a++){var i=t[a],o=i.axisAligned,u=i.localRect,f=i.transform,c=i.label,v=i.labelLine;n.copy(i.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=i.obb,g=!1,p=0;p<e.length;p++){var y=e[p];if(n.intersect(y.rect)){if(o&&y.axisAligned){g=!0;break}if(y.obb||(y.obb=new ld(y.localRect,y.transform)),d||(d=new ld(u,f)),d.intersect(y.obb)){g=!0;break}}}g?(r(c),v&&r(v)):(c.attr("ignore",i.defaultAttr.ignore),v&&v.attr("ignore",i.defaultAttr.labelGuideIgnore),e.push(i))}}const Tn=Object.freeze(Object.defineProperty({__proto__:null,Axis:iO,ChartView:Cn,ComponentModel:$t,ComponentView:dn,List:c1,Model:Se,PRIORITY:vL,SeriesModel:qn,color:B5,connect:YV,dataTool:KV,dependencies:AV,disConnect:qV,disconnect:bL,dispose:XV,env:Dt,extendChartView:DF,extendComponentModel:CF,extendComponentView:TF,extendSeriesModel:AF,format:dF,getCoordinateSystemDimensions:$V,getInstanceByDom:i1,getInstanceById:ZV,getMap:QV,graphic:vF,helper:aF,init:jV,innerDrawElementOnCanvas:e1,matrix:f5,number:cF,parseGeoJSON:IA,parseGeoJson:IA,registerAction:no,registerCoordinateSystem:ML,registerLayout:CL,registerLoading:f1,registerLocale:VS,registerMap:TL,registerPostInit:xL,registerPostUpdate:wL,registerPreprocessor:l1,registerProcessor:s1,registerTheme:o1,registerTransform:AL,registerUpdateLifecycle:up,registerVisual:ro,setCanvasCreator:WV,setPlatformAPI:O2,throttle:op,time:hF,use:Xn,util:pF,vector:Z3,version:TV,zrUtil:P3,zrender:dB},Symbol.toStringTag,{value:"Module"}));var PF=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.getInitialData=function(n){return fp(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(n){var r=new Ie,a=ei("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);r.add(a),a.setStyle(n.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),u=i==="none"?"circle":i,f=n.itemHeight*.8,c=ei(u,(n.itemWidth-f)/2,(n.itemHeight-f)/2,f,f,n.itemStyle.fill);r.add(c),c.setStyle(n.itemStyle);var v=n.iconRotate==="inherit"?o:n.iconRotate||0;return c.rotation=v*Math.PI/180,c.setOrigin([n.itemWidth/2,n.itemHeight/2]),u.indexOf("empty")>-1&&(c.style.stroke=c.style.fill,c.style.fill="#fff",c.style.lineWidth=2),r},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})(qn);function y1(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var a=Bs(t,e,n[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o<n.length;o++)i.push(Bs(t,e,n[o]));return i.join(" ")}}function lO(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!ct(e))return e+"";for(var r=[],a=0;a<n.length;a++){var i=t.getDimensionIndex(n[a]);i>=0&&r.push(e[i])}return r.join(" ")}var _1=(function(t){ut(e,t);function e(n,r,a,i){var o=t.call(this)||this;return o.updateData(n,r,a,i),o}return e.prototype._createSymbol=function(n,r,a,i,o){this.removeAll();var u=ei(n,-1,-1,2,2,null,o);u.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),u.drift=HF,this._symbolType=n,this.add(u)},e.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ad(this.childAt(0))},e.prototype.downplay=function(){id(this.childAt(0))},e.prototype.setZ=function(n,r){var a=this.childAt(0);a.zlevel=n,a.z=r},e.prototype.setDraggable=function(n,r){var a=this.childAt(0);a.draggable=n,a.cursor=!r&&n?"move":a.cursor},e.prototype.updateData=function(n,r,a,i){this.silent=!1;var o=n.getItemVisual(r,"symbol")||"circle",u=n.hostModel,f=e.getSymbolSize(n,r),c=o!==this._symbolType,v=i&&i.disableAnimation;if(c){var d=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,n,r,f,d)}else{var g=this.childAt(0);g.silent=!1;var p={scaleX:f[0]/2,scaleY:f[1]/2};v?g.attr(p):en(g,p,u,r),zS(g)}if(this._updateCommon(n,r,f,a,i),c){var g=this.childAt(0);if(!v){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:g.style.opacity}};g.scaleX=g.scaleY=0,g.style.opacity=0,ir(g,p,u,r)}}v&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(n,r,a,i,o){var u=this.childAt(0),f=n.hostModel,c,v,d,g,p,y,_,S,x;if(i&&(c=i.emphasisItemStyle,v=i.blurItemStyle,d=i.selectItemStyle,g=i.focus,p=i.blurScope,_=i.labelStatesModels,S=i.hoverScale,x=i.cursorStyle,y=i.emphasisDisabled),!i||n.hasItemOption){var M=i&&i.itemModel?i.itemModel:n.getItemModel(r),C=M.getModel("emphasis");c=C.getModel("itemStyle").getItemStyle(),d=M.getModel(["select","itemStyle"]).getItemStyle(),v=M.getModel(["blur","itemStyle"]).getItemStyle(),g=C.get("focus"),p=C.get("blurScope"),y=C.get("disabled"),_=dc(M),S=C.getShallow("scale"),x=M.getShallow("cursor")}var T=n.getItemVisual(r,"symbolRotate");u.attr("rotation",(T||0)*Math.PI/180||0);var D=eL(n.getItemVisual(r,"symbolOffset"),a);D&&(u.x=D[0],u.y=D[1]),x&&u.attr("cursor",x);var R=n.getItemVisual(r,"style"),E=R.fill;if(u instanceof pa){var z=u.style;u.useStyle(st({image:z.image,x:z.x,y:z.y,width:z.width,height:z.height},R))}else u.__isEmptyBrush?u.useStyle(st({},R)):u.useStyle(R),u.style.decal=null,u.setColor(E,o&&o.symbolInnerColor),u.style.strokeNoScale=!0;var I=n.getItemVisual(r,"liftZ"),N=this._z2;I!=null?N==null&&(this._z2=u.z2,u.z2+=I):N!=null&&(u.z2=N,this._z2=null);var L=o&&o.useNameLabel;vc(u,_,{labelFetcher:f,labelDataIndex:r,defaultText:V,inheritColor:E,defaultOpacity:R.opacity});function V(X){return L?n.getName(X):y1(n,X)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var G=u.ensureState("emphasis");G.style=c,u.ensureState("select").style=d,u.ensureState("blur").style=v;var j=S==null||S===!0?Math.max(1.1,3/this._sizeY):isFinite(S)&&S>0?+S:1;G.scaleX=this._sizeX*j,G.scaleY=this._sizeY*j,this.setSymbolScale(1),jf(this,g,p,y)},e.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},e.prototype.fadeOut=function(n,r,a){var i=this.childAt(0),o=jt(this).dataIndex,u=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var f=i.getTextContent();f&&sd(f,{style:{opacity:0}},r,{dataIndex:o,removeOpt:u,cb:function(){i.removeTextContent()}})}else i.removeTextContent();sd(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:n,removeOpt:u})},e.getSymbolSize=function(n,r){return sV(n.getItemVisual(r,"symbolSize"))},e})(Ie);function HF(t,e){this.parent.drift(t,e)}function e0(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&t.getItemVisual(n,"symbol")!=="none"}function PA(t){return t!=null&&!_t(t)&&(t={isIgnore:t}),t||{}}function HA(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:dc(e),cursorStyle:e.get("cursor")}}var VF=(function(){function t(e){this.group=new Ie,this._SymbolCtor=e||_1}return t.prototype.updateData=function(e,n){this._progressiveEls=null,n=PA(n);var r=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,u=n.disableAnimation,f=HA(e),c={disableAnimation:u},v=n.getSymbolPoint||function(d){return e.getItemLayout(d)};i||r.removeAll(),e.diff(i).add(function(d){var g=v(d);if(e0(e,g,d,n)){var p=new o(e,d,f,c);p.setPosition(g),e.setItemGraphicEl(d,p),r.add(p)}}).update(function(d,g){var p=i.getItemGraphicEl(g),y=v(d);if(!e0(e,y,d,n)){r.remove(p);return}var _=e.getItemVisual(d,"symbol")||"circle",S=p&&p.getSymbolType&&p.getSymbolType();if(!p||S&&S!==_)r.remove(p),p=new o(e,d,f,c),p.setPosition(y);else{p.updateData(e,d,f,c);var x={x:y[0],y:y[1]};u?p.attr(x):en(p,x,a)}r.add(p),e.setItemGraphicEl(d,p)}).remove(function(d){var g=i.getItemGraphicEl(d);g&&g.fadeOut(function(){r.remove(g)},a)}).execute(),this._getSymbolPoint=v,this._data=e},t.prototype.updateLayout=function(){var e=this,n=this._data;n&&n.eachItemGraphicEl(function(r,a){var i=e._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=HA(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,n,r){this._progressiveEls=[],r=PA(r);function a(f){f.isGroup||(f.incremental=!0,f.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=n.getItemLayout(i);if(e0(n,o,i,r)){var u=new this._SymbolCtor(n,i,this._seriesScope);u.traverse(a),u.setPosition(o),this.group.add(u),n.setItemGraphicEl(i,u),this._progressiveEls.push(u)}}},t.prototype.eachRendered=function(e){Zd(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var n=this.group,r=this._data;r&&e?r.eachItemGraphicEl(function(a){a.fadeOut(function(){n.remove(a)},r.hostModel)}):n.removeAll()},t})();function sO(t,e,n){var r=t.getBaseAxis(),a=t.getOtherAxis(r),i=FF(a,n),o=r.dim,u=a.dim,f=e.mapDimension(u),c=e.mapDimension(o),v=u==="x"||u==="radius"?1:0,d=mt(t.dimensions,function(y){return e.mapDimension(y)}),g=!1,p=e.getCalculationInfo("stackResultDimension");return fl(e,d[0])&&(g=!0,d[0]=p),fl(e,d[1])&&(g=!0,d[1]=p),{dataDimsForPoint:d,valueStart:i,valueAxisDim:u,baseAxisDim:o,stacked:!!g,valueDim:f,baseDim:c,baseDataOffset:v,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function FF(t,e){var n=0,r=t.scale.getExtent();return e==="start"?n=r[0]:e==="end"?n=r[1]:de(e)&&!isNaN(e)?n=e:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function uO(t,e,n,r){var a=NaN;t.stacked&&(a=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=t.valueStart);var i=t.baseDataOffset,o=[];return o[i]=n.get(t.baseDim,r),o[1-i]=a,e.dataToPoint(o)}function GF(t,e){var n=[];return e.diff(t).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,a){n.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function UF(t,e,n,r,a,i,o,u){for(var f=GF(t,e),c=[],v=[],d=[],g=[],p=[],y=[],_=[],S=sO(a,e,o),x=t.getLayout("points")||[],M=e.getLayout("points")||[],C=0;C<f.length;C++){var T=f[C],D=!0,R=void 0,E=void 0;switch(T.cmd){case"=":R=T.idx*2,E=T.idx1*2;var z=x[R],I=x[R+1],N=M[E],L=M[E+1];(isNaN(z)||isNaN(I))&&(z=N,I=L),c.push(z,I),v.push(N,L),d.push(n[R],n[R+1]),g.push(r[E],r[E+1]),_.push(e.getRawIndex(T.idx1));break;case"+":var V=T.idx,G=S.dataDimsForPoint,j=a.dataToPoint([e.get(G[0],V),e.get(G[1],V)]);E=V*2,c.push(j[0],j[1]),v.push(M[E],M[E+1]);var X=uO(S,a,e,V);d.push(X[0],X[1]),g.push(r[E],r[E+1]),_.push(e.getRawIndex(V));break;case"-":D=!1}D&&(p.push(T),y.push(y.length))}y.sort(function(ft,gt){return _[ft]-_[gt]});for(var H=c.length,Q=$a(H),Z=$a(H),J=$a(H),ot=$a(H),P=[],C=0;C<y.length;C++){var q=y[C],rt=C*2,it=q*2;Q[rt]=c[it],Q[rt+1]=c[it+1],Z[rt]=v[it],Z[rt+1]=v[it+1],J[rt]=d[it],J[rt+1]=d[it+1],ot[rt]=g[it],ot[rt+1]=g[it+1],P[C]=p[q]}return{current:Q,next:Z,stackedOnCurrent:J,stackedOnNext:ot,status:P}}var zi=Math.min,Ni=Math.max;function rl(t,e){return isNaN(t)||isNaN(e)}function E_(t,e,n,r,a,i,o,u,f){for(var c,v,d,g,p,y,_=n,S=0;S<r;S++){var x=e[_*2],M=e[_*2+1];if(_>=a||_<0)break;if(rl(x,M)){if(f){_+=i;continue}break}if(_===n)t[i>0?"moveTo":"lineTo"](x,M),d=x,g=M;else{var C=x-c,T=M-v;if(C*C+T*T<.5){_+=i;continue}if(o>0){for(var D=_+i,R=e[D*2],E=e[D*2+1];R===x&&E===M&&S<r;)S++,D+=i,_+=i,R=e[D*2],E=e[D*2+1],x=e[_*2],M=e[_*2+1],C=x-c,T=M-v;var z=S+1;if(f)for(;rl(R,E)&&z<r;)z++,D+=i,R=e[D*2],E=e[D*2+1];var I=.5,N=0,L=0,V=void 0,G=void 0;if(z>=r||rl(R,E))p=x,y=M;else{N=R-c,L=E-v;var j=x-c,X=R-x,H=M-v,Q=E-M,Z=void 0,J=void 0;if(u==="x"){Z=Math.abs(j),J=Math.abs(X);var ot=N>0?1:-1;p=x-ot*Z*o,y=M,V=x+ot*J*o,G=M}else if(u==="y"){Z=Math.abs(H),J=Math.abs(Q);var P=L>0?1:-1;p=x,y=M-P*Z*o,V=x,G=M+P*J*o}else Z=Math.sqrt(j*j+H*H),J=Math.sqrt(X*X+Q*Q),I=J/(J+Z),p=x-N*o*(1-I),y=M-L*o*(1-I),V=x+N*o*I,G=M+L*o*I,V=zi(V,Ni(R,x)),G=zi(G,Ni(E,M)),V=Ni(V,zi(R,x)),G=Ni(G,zi(E,M)),N=V-x,L=G-M,p=x-N*Z/J,y=M-L*Z/J,p=zi(p,Ni(c,x)),y=zi(y,Ni(v,M)),p=Ni(p,zi(c,x)),y=Ni(y,zi(v,M)),N=x-p,L=M-y,V=x+N*J/Z,G=M+L*J/Z}t.bezierCurveTo(d,g,p,y,x,M),d=V,g=G}else t.lineTo(x,M)}c=x,v=M,_+=i}return S}var fO=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),jF=(function(t){ut(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new fO},e.prototype.buildPath=function(n,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&rl(a[o*2-2],a[o*2-1]);o--);for(;i<o&&rl(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=E_(n,a,i,o,o,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},e.prototype.getPointOn=function(n,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=ll.CMD,u,f,c=r==="x",v=[],d=0;d<i.length;){var g=i[d++],p=void 0,y=void 0,_=void 0,S=void 0,x=void 0,M=void 0,C=void 0;switch(g){case o.M:u=i[d++],f=i[d++];break;case o.L:if(p=i[d++],y=i[d++],C=c?(n-u)/(p-u):(n-f)/(y-f),C<=1&&C>=0){var T=c?(y-f)*C+f:(p-u)*C+u;return c?[n,T]:[T,n]}u=p,f=y;break;case o.C:p=i[d++],y=i[d++],_=i[d++],S=i[d++],x=i[d++],M=i[d++];var D=c?Qv(u,p,_,x,n,v):Qv(f,y,S,M,n,v);if(D>0)for(var R=0;R<D;R++){var E=v[R];if(E<=1&&E>=0){var T=c?tn(f,y,S,M,E):tn(u,p,_,x,E);return c?[n,T]:[T,n]}}u=x,f=M;break}}},e})(oe),YF=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(fO),qF=(function(t){ut(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new YF},e.prototype.buildPath=function(n,r){var a=r.points,i=r.stackedOnPoints,o=0,u=a.length/2,f=r.smoothMonotone;if(r.connectNulls){for(;u>0&&rl(a[u*2-2],a[u*2-1]);u--);for(;o<u&&rl(a[o*2],a[o*2+1]);o++);}for(;o<u;){var c=E_(n,a,o,u,u,1,r.smooth,f,r.connectNulls);E_(n,i,o+c-1,c,u,-1,r.stackedOnSmooth,f,r.connectNulls),o+=c+1,n.closePath()}},e})(oe);function cO(t,e,n,r,a){var i=t.getArea(),o=i.x,u=i.y,f=i.width,c=i.height,v=n.get(["lineStyle","width"])||0;o-=v/2,u-=v/2,f+=v,c+=v,f=Math.ceil(f),o!==Math.floor(o)&&(o=Math.floor(o),f++);var d=new be({shape:{x:o,y:u,width:f,height:c}});if(e){var g=t.getBaseAxis(),p=g.isHorizontal(),y=g.inverse;p?(y&&(d.shape.x+=f),d.shape.width=0):(y||(d.shape.y+=c),d.shape.height=0);var _=Rt(a)?function(S){a(S,d)}:null;ir(d,{shape:{width:f,height:c,x:o,y:u}},n,null,r,_)}return d}function hO(t,e,n){var r=t.getArea(),a=Ne(r.r0,1),i=Ne(r.r,1),o=new ri({shape:{cx:Ne(t.cx,1),cy:Ne(t.cy,1),r0:a,r:i,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(e){var u=t.getBaseAxis().dim==="angle";u?o.shape.endAngle=r.startAngle:o.shape.r=a,ir(o,{shape:{endAngle:r.endAngle,r:i}},n)}return o}function XF(t,e,n,r,a){if(t){if(t.type==="polar")return hO(t,e,n);if(t.type==="cartesian2d")return cO(t,e,n,r,a)}else return null;return null}function S1(t,e){return t.type===e}function VA(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function FA(t){for(var e=1/0,n=1/0,r=-1/0,a=-1/0,i=0;i<t.length;){var o=t[i++],u=t[i++];isNaN(o)||(e=Math.min(o,e),r=Math.max(o,r)),isNaN(u)||(n=Math.min(u,n),a=Math.max(u,a))}return[[e,n],[r,a]]}function GA(t,e){var n=FA(t),r=n[0],a=n[1],i=FA(e),o=i[0],u=i[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(a[0]-u[0]),Math.abs(a[1]-u[1]))}function UA(t){return de(t)?t:t?.5:0}function ZF(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),a=$a(r*2),i=0;i<r;i++){var o=uO(n,t,e,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Ii(t,e,n,r,a){var i=n.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,u=[],f=0,c=[],v=[],d=[],g=[];if(a){for(f=0;f<t.length;f+=2){var p=e||t;!isNaN(p[f])&&!isNaN(p[f+1])&&g.push(t[f],t[f+1])}t=g}for(f=0;f<t.length-2;f+=2)switch(d[0]=t[f+2],d[1]=t[f+3],v[0]=t[f],v[1]=t[f+1],u.push(v[0],v[1]),r){case"end":c[o]=d[o],c[1-o]=v[1-o],u.push(c[0],c[1]);break;case"middle":var y=(v[o]+d[o])/2,_=[];c[o]=_[o]=y,c[1-o]=v[1-o],_[1-o]=d[1-o],u.push(c[0],c[1]),u.push(_[0],_[1]);break;default:c[o]=v[o],c[1-o]=d[1-o],u.push(c[0],c[1])}return u.push(t[f++],t[f++]),u}function $F(t,e){var n=[],r=t.length,a,i;function o(v,d,g){var p=v.coord,y=(g-p)/(d.coord-p),_=pS(y,[v.color,d.color]);return{coord:g,color:_}}for(var u=0;u<r;u++){var f=t[u],c=f.coord;if(c<0)a=f;else if(c>e){i?n.push(o(i,f,e)):a&&n.push(o(a,f,0),o(a,f,e));break}else a&&(n.push(o(a,f,0)),a=null),n.push(f),i=f}return n}function WF(t,e,n){var r=t.getVisual("visualMeta");if(!(!r||!r.length||!t.count())&&e.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var u=t.getDimensionInfo(r[o].dimension);if(a=u&&u.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var f=e.getAxis(a),c=mt(i.stops,function(C){return{coord:f.toGlobalCoord(f.dataToCoord(C.value)),color:C.color}}),v=c.length,d=i.outerColors.slice();v&&c[0].coord>c[v-1].coord&&(c.reverse(),d.reverse());var g=$F(c,a==="x"?n.getWidth():n.getHeight()),p=g.length;if(!p&&v)return c[0].coord<0?d[1]?d[1]:c[v-1].color:d[0]?d[0]:c[0].color;var y=10,_=g[0].coord-y,S=g[p-1].coord+y,x=S-_;if(x<.001)return"transparent";k(g,function(C){C.offset=(C.coord-_)/x}),g.push({offset:p?g[p-1].offset:.5,color:d[1]||"transparent"}),g.unshift({offset:p?g[0].offset:.5,color:d[0]||"transparent"});var M=new ES(0,0,0,0,g,!0);return M[a]=_,M[a+"2"]=S,M}}}function QF(t,e,n){var r=t.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=n.getAxesByScale("ordinal")[0];if(i&&!(a&&KF(i,e))){var o=e.mapDimension(i.dim),u={};return k(i.getViewLabels(),function(f){var c=i.scale.getRawOrdinalNumber(f.tickValue);u[c]=1}),function(f){return!u.hasOwnProperty(e.get(o,f))}}}}function KF(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(_1.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>r)return!1;return!0}function JF(t,e){return isNaN(t)||isNaN(e)}function tG(t){for(var e=t.length/2;e>0&&JF(t[e*2-2],t[e*2-1]);e--);return e-1}function jA(t,e){return[t[e*2],t[e*2+1]]}function eG(t,e,n){for(var r=t.length/2,a=n==="x"?0:1,i,o,u=0,f=-1,c=0;c<r;c++)if(o=t[c*2+a],!(isNaN(o)||isNaN(t[c*2+1-a]))){if(c===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){f=c;break}u=c,i=o}return{range:[u,f],t:(e-i)/(o-i)}}function vO(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Er.length;e++)if(t.get([Er[e],"endLabel","show"]))return!0;return!1}function n0(t,e,n,r){if(S1(e,"cartesian2d")){var a=r.getModel("endLabel"),i=a.get("valueAnimation"),o=r.getData(),u={lastFrameIndex:0},f=vO(r)?function(p,y){t._endLabelOnDuring(p,y,o,u,i,a,e)}:null,c=e.getBaseAxis().isHorizontal(),v=cO(e,n,r,function(){var p=t._endLabel;p&&n&&u.originalX!=null&&p.attr({x:u.originalX,y:u.originalY})},f);if(!r.get("clip",!0)){var d=v.shape,g=Math.max(d.width,d.height);c?(d.y-=g,d.height+=g*2):(d.x-=g,d.width+=g*2)}return f&&f(1,v),v}else return hO(e,n,r)}function nG(t,e){var n=e.getBaseAxis(),r=n.isHorizontal(),a=n.inverse,i=r?a?"right":"left":"center",o=r?"middle":a?"top":"bottom";return{normal:{align:t.get("align")||i,verticalAlign:t.get("verticalAlign")||o}}}var rG=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var n=new Ie,r=new VF;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=n,this._changePolyState=Mt(this._changePolyState,this)},e.prototype.render=function(n,r,a){var i=n.coordinateSystem,o=this.group,u=n.getData(),f=n.getModel("lineStyle"),c=n.getModel("areaStyle"),v=u.getLayout("points")||[],d=i.type==="polar",g=this._coordSys,p=this._symbolDraw,y=this._polyline,_=this._polygon,S=this._lineGroup,x=!r.ssr&&n.get("animation"),M=!c.isEmpty(),C=c.get("origin"),T=sO(i,u,C),D=M&&ZF(i,u,T),R=n.get("showSymbol"),E=n.get("connectNulls"),z=R&&!d&&QF(n,u,i),I=this._data;I&&I.eachItemGraphicEl(function(ft,gt){ft.__temp&&(o.remove(ft),I.setItemGraphicEl(gt,null))}),R||p.remove(),o.add(S);var N=d?!1:n.get("step"),L;i&&i.getArea&&n.get("clip",!0)&&(L=i.getArea(),L.width!=null?(L.x-=.1,L.y-=.1,L.width+=.2,L.height+=.2):L.r0&&(L.r0-=.5,L.r+=.5)),this._clipShapeForSymbol=L;var V=WF(u,i,a)||u.getVisual("style")[u.getVisual("drawType")];if(!(y&&g.type===i.type&&N===this._step))R&&p.updateData(u,{isIgnore:z,clipShape:L,disableAnimation:!0,getSymbolPoint:function(ft){return[v[ft*2],v[ft*2+1]]}}),x&&this._initSymbolLabelAnimation(u,i,L),N&&(D&&(D=Ii(D,v,i,N,E)),v=Ii(v,null,i,N,E)),y=this._newPolyline(v),M?_=this._newPolygon(v,D):_&&(S.remove(_),_=this._polygon=null),d||this._initOrUpdateEndLabel(n,i,sl(V)),S.setClipPath(n0(this,i,!0,n));else{M&&!_?_=this._newPolygon(v,D):_&&!M&&(S.remove(_),_=this._polygon=null),d||this._initOrUpdateEndLabel(n,i,sl(V));var G=S.getClipPath();if(G){var j=n0(this,i,!1,n);ir(G,{shape:j.shape},n)}else S.setClipPath(n0(this,i,!0,n));R&&p.updateData(u,{isIgnore:z,clipShape:L,disableAnimation:!0,getSymbolPoint:function(ft){return[v[ft*2],v[ft*2+1]]}}),(!VA(this._stackedOnPoints,D)||!VA(this._points,v))&&(x?this._doUpdateAnimation(u,D,i,a,N,C,E):(N&&(D&&(D=Ii(D,v,i,N,E)),v=Ii(v,null,i,N,E)),y.setShape({points:v}),_&&_.setShape({points:v,stackedOnPoints:D})))}var X=n.getModel("emphasis"),H=X.get("focus"),Q=X.get("blurScope"),Z=X.get("disabled");if(y.useStyle(Qt(f.getLineStyle(),{fill:"none",stroke:V,lineJoin:"bevel"})),od(y,n,"lineStyle"),y.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var J=y.getState("emphasis").style;J.lineWidth=+y.style.lineWidth+1}jt(y).seriesIndex=n.seriesIndex,jf(y,H,Q,Z);var ot=UA(n.get("smooth")),P=n.get("smoothMonotone");if(y.setShape({smooth:ot,smoothMonotone:P,connectNulls:E}),_){var q=u.getCalculationInfo("stackedOnSeries"),rt=0;_.useStyle(Qt(c.getAreaStyle(),{fill:V,opacity:.7,lineJoin:"bevel",decal:u.getVisual("style").decal})),q&&(rt=UA(q.get("smooth"))),_.setShape({smooth:ot,stackedOnSmooth:rt,smoothMonotone:P,connectNulls:E}),od(_,n,"areaStyle"),jt(_).seriesIndex=n.seriesIndex,jf(_,H,Q,Z)}var it=this._changePolyState;u.eachItemGraphicEl(function(ft){ft&&(ft.onHoverStateChange=it)}),this._polyline.onHoverStateChange=it,this._data=u,this._coordSys=i,this._stackedOnPoints=D,this._points=v,this._step=N,this._valueOrigin=C,n.get("triggerLineEvent")&&(this.packEventData(n,y),_&&this.packEventData(n,_))},e.prototype.packEventData=function(n,r){jt(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},e.prototype.highlight=function(n,r,a,i){var o=n.getData(),u=ol(o,i);if(this._changePolyState("emphasis"),!(u instanceof Array)&&u!=null&&u>=0){var f=o.getLayout("points"),c=o.getItemGraphicEl(u);if(!c){var v=f[u*2],d=f[u*2+1];if(isNaN(v)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(v,d))return;var g=n.get("zlevel")||0,p=n.get("z")||0;c=new _1(o,u),c.x=v,c.y=d,c.setZ(g,p);var y=c.getSymbolPath().getTextContent();y&&(y.zlevel=g,y.z=p,y.z2=this._polyline.z2+1),c.__temp=!0,o.setItemGraphicEl(u,c),c.stopSymbolAnimation(!0),this.group.add(c)}c.highlight()}else Cn.prototype.highlight.call(this,n,r,a,i)},e.prototype.downplay=function(n,r,a,i){var o=n.getData(),u=ol(o,i);if(this._changePolyState("normal"),u!=null&&u>=0){var f=o.getItemGraphicEl(u);f&&(f.__temp?(o.setItemGraphicEl(u,null),this.group.remove(f)):f.downplay())}else Cn.prototype.downplay.call(this,n,r,a,i)},e.prototype._changePolyState=function(n){var r=this._polygon;WC(this._polyline,n),r&&WC(r,n)},e.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new jF({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(n,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new qF({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(n,r,a){var i,o,u=r.getBaseAxis(),f=u.inverse;r.type==="cartesian2d"?(i=u.isHorizontal(),o=!1):r.type==="polar"&&(i=u.dim==="angle",o=!0);var c=n.hostModel,v=c.get("animationDuration");Rt(v)&&(v=v(null));var d=c.get("animationDelay")||0,g=Rt(d)?d(null):d;n.eachItemGraphicEl(function(p,y){var _=p;if(_){var S=[p.x,p.y],x=void 0,M=void 0,C=void 0;if(a)if(o){var T=a,D=r.pointToCoord(S);i?(x=T.startAngle,M=T.endAngle,C=-D[1]/180*Math.PI):(x=T.r0,M=T.r,C=D[0])}else{var R=a;i?(x=R.x,M=R.x+R.width,C=p.x):(x=R.y+R.height,M=R.y,C=p.y)}var E=M===x?0:(C-x)/(M-x);f&&(E=1-E);var z=Rt(d)?d(y):v*E+g,I=_.getSymbolPath(),N=I.getTextContent();_.attr({scaleX:0,scaleY:0}),_.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:z}),N&&N.animateFrom({style:{opacity:0}},{duration:300,delay:z}),I.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(n,r,a){var i=n.getModel("endLabel");if(vO(n)){var o=n.getData(),u=this._polyline,f=o.getLayout("points");if(!f){u.removeTextContent(),this._endLabel=null;return}var c=this._endLabel;c||(c=this._endLabel=new Me({z2:200}),c.ignoreClip=!0,u.setTextContent(this._endLabel),u.disableLabelAnimation=!0);var v=tG(f);v>=0&&(vc(u,dc(n,"endLabel"),{inheritColor:a,labelFetcher:n,labelDataIndex:v,defaultText:function(d,g,p){return p!=null?lO(o,p):y1(o,d)},enableTextSetter:!0},nG(i,r)),u.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(n,r,a,i,o,u,f){var c=this._endLabel,v=this._polyline;if(c){n<1&&i.originalX==null&&(i.originalX=c.x,i.originalY=c.y);var d=a.getLayout("points"),g=a.hostModel,p=g.get("connectNulls"),y=u.get("precision"),_=u.get("distance")||0,S=f.getBaseAxis(),x=S.isHorizontal(),M=S.inverse,C=r.shape,T=M?x?C.x:C.y+C.height:x?C.x+C.width:C.y,D=(x?_:0)*(M?-1:1),R=(x?0:-_)*(M?-1:1),E=x?"x":"y",z=eG(d,T,E),I=z.range,N=I[1]-I[0],L=void 0;if(N>=1){if(N>1&&!p){var V=jA(d,I[0]);c.attr({x:V[0]+D,y:V[1]+R}),o&&(L=g.getRawValue(I[0]))}else{var V=v.getPointOn(T,E);V&&c.attr({x:V[0]+D,y:V[1]+R});var G=g.getRawValue(I[0]),j=g.getRawValue(I[1]);o&&(L=BB(a,y,G,j,z.t))}i.lastFrameIndex=I[0]}else{var X=n===1||i.lastFrameIndex>0?I[0]:0,V=jA(d,X);o&&(L=g.getRawValue(X)),c.attr({x:V[0]+D,y:V[1]+R})}if(o){var H=Wd(c);typeof H.setLabelText=="function"&&H.setLabelText(L)}}},e.prototype._doUpdateAnimation=function(n,r,a,i,o,u,f){var c=this._polyline,v=this._polygon,d=n.hostModel,g=UF(this._data,n,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),p=g.current,y=g.stackedOnCurrent,_=g.next,S=g.stackedOnNext;if(o&&(y=Ii(g.stackedOnCurrent,g.current,a,o,f),p=Ii(g.current,null,a,o,f),S=Ii(g.stackedOnNext,g.next,a,o,f),_=Ii(g.next,null,a,o,f)),GA(p,_)>3e3||v&&GA(y,S)>3e3){c.stopAnimation(),c.setShape({points:_}),v&&(v.stopAnimation(),v.setShape({points:_,stackedOnPoints:S}));return}c.shape.__points=g.current,c.shape.points=p;var x={shape:{points:_}};g.current!==p&&(x.shape.__points=g.next),c.stopAnimation(),en(c,x,d),v&&(v.setShape({points:p,stackedOnPoints:y}),v.stopAnimation(),en(v,{shape:{stackedOnPoints:S}},d),c.shape.points!==v.shape.points&&(v.shape.points=c.shape.points));for(var M=[],C=g.status,T=0;T<C.length;T++){var D=C[T].cmd;if(D==="="){var R=n.getItemGraphicEl(C[T].idx1);R&&M.push({el:R,ptIdx:T})}}c.animators&&c.animators.length&&c.animators[0].during(function(){v&&v.dirtyShape();for(var E=c.shape.__points,z=0;z<M.length;z++){var I=M[z].el,N=M[z].ptIdx*2;I.x=E[N],I.y=E[N+1],I.markRedraw()}})},e.prototype.remove=function(n){var r=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(r.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(Cn);function aG(t,e){return{seriesType:t,plan:t1(),reset:function(n){var r=n.getData(),a=n.coordinateSystem;if(n.pipelineContext,!!a){var i=mt(a.dimensions,function(d){return r.mapDimension(d)}).slice(0,2),o=i.length,u=r.getCalculationInfo("stackResultDimension");fl(r,i[0])&&(i[0]=u),fl(r,i[1])&&(i[1]=u);var f=r.getStore(),c=r.getDimensionIndex(i[0]),v=r.getDimensionIndex(i[1]);return o&&{progress:function(d,g){for(var p=d.end-d.start,y=$a(p*o),_=[],S=[],x=d.start,M=0;x<d.end;x++){var C=void 0;if(o===1){var T=f.get(c,x);C=a.dataToPoint(T,null,S)}else _[0]=f.get(c,x),_[1]=f.get(v,x),C=a.dataToPoint(_,null,S);y[M++]=C[0],y[M++]=C[1]}g.setLayout("points",y)}}}}}}var iG={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],n++);return n===0?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},oG=function(t){return Math.round(t.length/2)};function dO(t){return{seriesType:t,reset:function(e,n,r){var a=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,u=a.count();if(u>10&&o.type==="cartesian2d"&&i){var f=o.getBaseAxis(),c=o.getOtherAxis(f),v=f.getExtent(),d=r.getDevicePixelRatio(),g=Math.abs(v[1]-v[0])*(d||1),p=Math.round(u/g);if(isFinite(p)&&p>1){i==="lttb"?e.setData(a.lttbDownSample(a.mapDimension(c.dim),1/p)):i==="minmax"&&e.setData(a.minmaxDownSample(a.mapDimension(c.dim),1/p));var y=void 0;pt(i)?y=iG[i]:Rt(i)&&(y=i),y&&e.setData(a.downSample(a.mapDimension(c.dim),1/p,y,oG))}}}}}function lG(t){t.registerChartView(rG),t.registerSeriesModel(PF),t.registerLayout(aG("line")),t.registerVisual({seriesType:"line",reset:function(e){var n=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,dO("line"))}var L_=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){return fp(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(n,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(n),u=i.dataToPoint(o);if(a)k(i.getAxes(),function(g,p){if(g.type==="category"&&r!=null){var y=g.getTicksCoords(),_=g.getTickModel().get("alignWithLabel"),S=o[p],x=r[p]==="x1"||r[p]==="y1";if(x&&!_&&(S+=1),y.length<2)return;if(y.length===2){u[p]=g.toGlobalCoord(g.getExtent()[x?1:0]);return}for(var M=void 0,C=void 0,T=1,D=0;D<y.length;D++){var R=y[D].coord,E=D===y.length-1?y[D-1].tickValue+T:y[D].tickValue;if(E===S){C=R;break}else if(E<S)M=R;else if(M!=null&&E>S){C=(R+M)/2;break}D===1&&(T=E-y[0].tickValue)}C==null&&(M?M&&(C=y[y.length-1].coord):C=y[0].coord),u[p]=g.toGlobalCoord(C)}});else{var f=this.getData(),c=f.getLayout("offset"),v=f.getLayout("size"),d=i.getBaseAxis().isHorizontal()?0:1;u[d]+=c+v/2}return u}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e})(qn);qn.registerClass(L_);var sG=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(){return fp(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},e.prototype.brushSelector=function(n,r,a){return a.rect(r.getItemLayout(n))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Kd(L_.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})(L_),uG=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),YA=(function(t){ut(e,t);function e(n){var r=t.call(this,n)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new uG},e.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),u=Math.max(r.r,0),f=(u-o)*.5,c=o+f,v=r.startAngle,d=r.endAngle,g=r.clockwise,p=Math.PI*2,y=g?d-v<p:v-d<p;y||(v=d-(g?p:-p));var _=Math.cos(v),S=Math.sin(v),x=Math.cos(d),M=Math.sin(d);y?(n.moveTo(_*o+a,S*o+i),n.arc(_*c+a,S*c+i,f,-Math.PI+v,v,!g)):n.moveTo(_*u+a,S*u+i),n.arc(a,i,u,v,d,!g),n.arc(x*c+a,M*c+i,f,d-Math.PI*2,d-Math.PI,!g),o!==0&&n.arc(a,i,o,d,v,g)},e})(oe);function fG(t,e){e=e||{};var n=e.isRoundCap;return function(r,a,i){var o=a.position;if(!o||o instanceof Array)return ed(r,a,i);var u=t(o),f=a.distance!=null?a.distance:5,c=this.shape,v=c.cx,d=c.cy,g=c.r,p=c.r0,y=(g+p)/2,_=c.startAngle,S=c.endAngle,x=(_+S)/2,M=n?Math.abs(g-p)/2:0,C=Math.cos,T=Math.sin,D=v+g*C(_),R=d+g*T(_),E="left",z="top";switch(u){case"startArc":D=v+(p-f)*C(x),R=d+(p-f)*T(x),E="center",z="top";break;case"insideStartArc":D=v+(p+f)*C(x),R=d+(p+f)*T(x),E="center",z="bottom";break;case"startAngle":D=v+y*C(_)+dv(_,f+M,!1),R=d+y*T(_)+pv(_,f+M,!1),E="right",z="middle";break;case"insideStartAngle":D=v+y*C(_)+dv(_,-f+M,!1),R=d+y*T(_)+pv(_,-f+M,!1),E="left",z="middle";break;case"middle":D=v+y*C(x),R=d+y*T(x),E="center",z="middle";break;case"endArc":D=v+(g+f)*C(x),R=d+(g+f)*T(x),E="center",z="bottom";break;case"insideEndArc":D=v+(g-f)*C(x),R=d+(g-f)*T(x),E="center",z="top";break;case"endAngle":D=v+y*C(S)+dv(S,f+M,!0),R=d+y*T(S)+pv(S,f+M,!0),E="left",z="middle";break;case"insideEndAngle":D=v+y*C(S)+dv(S,-f+M,!0),R=d+y*T(S)+pv(S,-f+M,!0),E="right",z="middle";break;default:return ed(r,a,i)}return r=r||{},r.x=D,r.y=R,r.align=E,r.verticalAlign=z,r}}function cG(t,e,n,r){if(de(r)){t.setTextConfig({rotation:r});return}else if(ct(e)){t.setTextConfig({rotation:0});return}var a=t.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,u=(i+o)/2,f,c=n(e);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":f=u;break;case"startAngle":case"insideStartAngle":f=i;break;case"endAngle":case"insideEndAngle":f=o;break;default:t.setTextConfig({rotation:0});return}var v=Math.PI*1.5-f;c==="middle"&&v>Math.PI/2&&v<Math.PI*1.5&&(v-=Math.PI),t.setTextConfig({rotation:v})}function dv(t,e,n){return e*Math.sin(t)*(n?-1:1)}function pv(t,e,n){return e*Math.cos(t)*(n?1:-1)}function Sf(t,e,n){var r=t.get("borderRadius");if(r==null)return n?{cornerRadius:0}:null;ct(r)||(r=[r,r,r,r]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:mt(r,function(i){return Ji(i,a)})}}var r0=Math.max,a0=Math.min;function hG(t,e){var n=t.getArea&&t.getArea();if(S1(t,"cartesian2d")){var r=t.getBaseAxis();if(r.type!=="category"||!r.onBand){var a=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=a,n.width+=a*2):(n.y-=a,n.height+=a*2)}}return n}var vG=(function(t){ut(e,t);function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return e.prototype.render=function(n,r,a,i){this._model=n,this._removeOnRenderedListener(a),this._updateDrawMode(n);var o=n.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(n,r,a):this._renderNormal(n,r,a,i))},e.prototype.incrementalPrepareRender=function(n){this._clear(),this._updateDrawMode(n),this._updateLargeClip(n)},e.prototype.incrementalRender=function(n,r){this._progressiveEls=[],this._incrementalRenderLarge(n,r)},e.prototype.eachRendered=function(n){Zd(this._progressiveEls||this.group,n)},e.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(n,r,a,i){var o=this.group,u=n.getData(),f=this._data,c=n.coordinateSystem,v=c.getBaseAxis(),d;c.type==="cartesian2d"?d=v.isHorizontal():c.type==="polar"&&(d=v.dim==="angle");var g=n.isAnimationEnabled()?n:null,p=dG(n,c);p&&this._enableRealtimeSort(p,u,a);var y=n.get("clip",!0)||p,_=hG(c,u);o.removeClipPath();var S=n.get("roundCap",!0),x=n.get("showBackground",!0),M=n.getModel("backgroundStyle"),C=M.get("borderRadius")||0,T=[],D=this._backgroundEls,R=i&&i.isInitSort,E=i&&i.type==="changeAxisOrder";function z(L){var V=gv[c.type](u,L),G=bG(c,d,V);return G.useStyle(M.getItemStyle()),c.type==="cartesian2d"?G.setShape("r",C):G.setShape("cornerRadius",C),T[L]=G,G}u.diff(f).add(function(L){var V=u.getItemModel(L),G=gv[c.type](u,L,V);if(x&&z(L),!(!u.hasValue(L)||!WA[c.type](G))){var j=!1;y&&(j=qA[c.type](_,G));var X=XA[c.type](n,u,L,G,d,g,v.model,!1,S);p&&(X.forceLabelAnimation=!0),QA(X,u,L,V,G,n,d,c.type==="polar"),R?X.attr({shape:G}):p?ZA(p,g,X,G,L,d,!1,!1):ir(X,{shape:G},n,L),u.setItemGraphicEl(L,X),o.add(X),X.ignore=j}}).update(function(L,V){var G=u.getItemModel(L),j=gv[c.type](u,L,G);if(x){var X=void 0;D.length===0?X=z(V):(X=D[V],X.useStyle(M.getItemStyle()),c.type==="cartesian2d"?X.setShape("r",C):X.setShape("cornerRadius",C),T[L]=X);var H=gv[c.type](u,L),Q=gO(d,H,c);en(X,{shape:Q},g,L)}var Z=f.getItemGraphicEl(V);if(!u.hasValue(L)||!WA[c.type](j)){o.remove(Z);return}var J=!1;if(y&&(J=qA[c.type](_,j),J&&o.remove(Z)),Z?zS(Z):Z=XA[c.type](n,u,L,j,d,g,v.model,!!Z,S),p&&(Z.forceLabelAnimation=!0),E){var ot=Z.getTextContent();if(ot){var P=Wd(ot);P.prevValue!=null&&(P.prevValue=P.value)}}else QA(Z,u,L,G,j,n,d,c.type==="polar");R?Z.attr({shape:j}):p?ZA(p,g,Z,j,L,d,!0,E):en(Z,{shape:j},n,L,null),u.setItemGraphicEl(L,Z),Z.ignore=J,o.add(Z)}).remove(function(L){var V=f.getItemGraphicEl(L);V&&ud(V,n,L)}).execute();var I=this._backgroundGroup||(this._backgroundGroup=new Ie);I.removeAll();for(var N=0;N<T.length;++N)I.add(T[N]);o.add(I),this._backgroundEls=T,this._data=u},e.prototype._renderLarge=function(n,r,a){this._clear(),JA(n,this.group),this._updateLargeClip(n)},e.prototype._incrementalRenderLarge=function(n,r){this._removeBackground(),JA(r,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(n){var r=n.get("clip",!0)&&XF(n.coordinateSystem,!1,n),a=this.group;r?a.setClipPath(r):a.removeClipPath()},e.prototype._enableRealtimeSort=function(n,r,a){var i=this;if(r.count()){var o=n.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,n,a),this._isFirstFrame=!1;else{var u=function(f){var c=r.getItemGraphicEl(f),v=c&&c.shape;return v&&Math.abs(o.isHorizontal()?v.height:v.width)||0};this._onRendered=function(){i._updateSortWithinSameData(r,u,o,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(n,r,a){var i=[];return n.each(n.mapDimension(r.dim),function(o,u){var f=a(u);f=f??NaN,i.push({dataIndex:u,mappedValue:f,ordinalNumber:o})}),i.sort(function(o,u){return u.mappedValue-o.mappedValue}),{ordinalNumbers:mt(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(n,r,a){for(var i=a.scale,o=n.mapDimension(a.dim),u=Number.MAX_VALUE,f=0,c=i.getOrdinalMeta().categories.length;f<c;++f){var v=n.rawIndexOf(o,i.getRawOrdinalNumber(f)),d=v<0?Number.MIN_VALUE:r(n.indexOfRawIndex(v));if(d>u)return!0;u=d}return!1},e.prototype._isOrderDifferentInView=function(n,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),u=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=u;++o)if(n.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(n,r,a,i){if(this._isOrderChangedWithinSameData(n,r,a)){var o=this._dataSort(n,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(n,r,a){var i=r.baseAxis,o=this._dataSort(n,i,function(u){return n.get(n.mapDimension(r.otherAxis.dim),u)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(n){var r=this.group,a=this._data;n&&n.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){ud(i,n,jt(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e})(Cn),qA={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var a=t.x+t.width,i=t.y+t.height,o=r0(e.x,t.x),u=a0(e.x+e.width,a),f=r0(e.y,t.y),c=a0(e.y+e.height,i),v=u<o,d=c<f;return e.x=v&&o>a?u:o,e.y=d&&f>i?c:f,e.width=v?0:u-o,e.height=d?0:c-f,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),v||d},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var a=a0(e.r,t.r),i=r0(e.r0,t.r0);e.r=a,e.r0=i;var o=a-i<0;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},XA={cartesian2d:function(t,e,n,r,a,i,o,u,f){var c=new be({shape:st({},r),z2:1});if(c.__dataIndex=n,c.name="item",i){var v=c.shape,d=a?"height":"width";v[d]=0}return c},polar:function(t,e,n,r,a,i,o,u,f){var c=!a&&f?YA:ri,v=new c({shape:r,z2:1});v.name="item";var d=pO(a);if(v.calculateTextPosition=fG(d,{isRoundCap:c===YA}),i){var g=v.shape,p=a?"r":"endAngle",y={};g[p]=a?r.r0:r.startAngle,y[p]=r[p],(u?en:ir)(v,{shape:y},i)}return v}};function dG(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();if(n&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function ZA(t,e,n,r,a,i,o,u){var f,c;i?(c={x:r.x,width:r.width},f={y:r.y,height:r.height}):(c={y:r.y,height:r.height},f={x:r.x,width:r.width}),u||(o?en:ir)(n,{shape:f},e,a,null);var v=e?t.baseAxis.model:null;(o?en:ir)(n,{shape:c},v,a)}function $A(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var pG=["x","y","width","height"],gG=["cx","cy","r","startAngle","endAngle"],WA={cartesian2d:function(t){return!$A(t,pG)},polar:function(t){return!$A(t,gG)}},gv={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),a=n?yG(n,r):0,i=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function mG(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function pO(t){return(function(e){var n=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}})(t)}function QA(t,e,n,r,a,i,o,u){var f=e.getItemVisual(n,"style");if(u){if(!i.get("roundCap")){var v=t.shape,d=Sf(r.getModel("itemStyle"),v,!0);st(v,d),t.setShape(v)}}else{var c=r.get(["itemStyle","borderRadius"])||0;t.setShape("r",c)}t.useStyle(f);var g=r.getShallow("cursor");g&&t.attr("cursor",g);var p=u?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",y=dc(r);vc(t,y,{labelFetcher:i,labelDataIndex:n,defaultText:y1(i.getData(),n),inheritColor:f.fill,defaultOpacity:f.opacity,defaultOutsidePosition:p});var _=t.getTextContent();if(u&&_){var S=r.get(["label","position"]);t.textConfig.inside=S==="middle"?!0:null,cG(t,S==="outside"?p:S,pO(o),r.get(["label","rotate"]))}PP(_,y,i.getRawValue(n),function(M){return lO(e,M)});var x=r.getModel(["emphasis"]);jf(t,x.get("focus"),x.get("blurScope"),x.get("disabled")),od(t,r),mG(a)&&(t.style.fill="none",t.style.stroke="none",k(t.states,function(M){M.style&&(M.style.fill=M.style.stroke="none")}))}function yG(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=t.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,a,i)}var _G=(function(){function t(){}return t})(),KA=(function(t){ut(e,t);function e(n){var r=t.call(this,n)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new _G},e.prototype.buildPath=function(n,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,u=[],f=[],c=this.barWidth,v=0;v<a.length;v+=3)f[i]=c,f[o]=a[v+2],u[i]=a[v+i],u[o]=a[v+o],n.rect(u[0],u[1],f[0],f[1])},e})(oe);function JA(t,e,n,r){var a=t.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),u=a.getLayout("size"),f=t.getModel("backgroundStyle"),c=a.getLayout("largeBackgroundPoints");if(c){var v=new KA({shape:{points:c},incremental:!!r,silent:!0,z2:0});v.baseDimIdx=i,v.largeDataIndices=o,v.barWidth=u,v.useStyle(f.getItemStyle()),e.add(v),n&&n.push(v)}var d=new KA({shape:{points:a.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=i,d.largeDataIndices=o,d.barWidth=u,e.add(d),d.useStyle(a.getVisual("style")),d.style.stroke=null,jt(d).seriesIndex=t.seriesIndex,t.get("silent")||(d.on("mousedown",tD),d.on("mousemove",tD)),n&&n.push(d)}var tD=op(function(t){var e=this,n=SG(e,t.offsetX,t.offsetY);jt(e).dataIndex=n>=0?n:null},30,!1);function SG(t,e,n){for(var r=t.baseDimIdx,a=1-r,i=t.shape.points,o=t.largeDataIndices,u=[],f=[],c=t.barWidth,v=0,d=i.length/3;v<d;v++){var g=v*3;if(f[r]=c,f[a]=i[g+2],u[r]=i[g+r],u[a]=i[g+a],f[a]<0&&(u[a]+=f[a],f[a]=-f[a]),e>=u[0]&&e<=u[0]+f[0]&&n>=u[1]&&n<=u[1]+f[1])return o[v]}return-1}function gO(t,e,n){if(S1(n,"cartesian2d")){var r=e,a=n.getArea();return{x:t?r.x:a.x,y:t?a.y:r.y,width:t?r.width:a.width,height:t?a.height:r.height}}else{var a=n.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:t?a.r0:i.r0,r:t?a.r:i.r,startAngle:t?i.startAngle:0,endAngle:t?i.endAngle:Math.PI*2}}}function bG(t,e,n){var r=t.type==="polar"?ri:be;return new r({shape:gO(e,n,t),silent:!0,z2:0})}function dp(t){t.registerChartView(vG),t.registerSeriesModel(sG),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,_e(L6,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,O6("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,dO("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,n){var r=e.componentType||"series";n.eachComponent({mainType:r,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var eD=Math.PI*2,mv=Math.PI/180;function mO(t,e){return ti(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function yO(t,e){var n=mO(t,e),r=t.get("center"),a=t.get("radius");ct(a)||(a=[0,a]);var i=ve(n.width,e.getWidth()),o=ve(n.height,e.getHeight()),u=Math.min(i,o),f=ve(a[0],u/2),c=ve(a[1],u/2),v,d,g=t.coordinateSystem;if(g){var p=g.dataToPoint(r);v=p[0]||0,d=p[1]||0}else ct(r)||(r=[r,r]),v=ve(r[0],i)+n.x,d=ve(r[1],o)+n.y;return{cx:v,cy:d,r0:f,r:c}}function xG(t,e,n){e.eachSeriesByType(t,function(r){var a=r.getData(),i=a.mapDimension("value"),o=mO(r,n),u=yO(r,n),f=u.cx,c=u.cy,v=u.r,d=u.r0,g=-r.get("startAngle")*mv,p=r.get("endAngle"),y=r.get("padAngle")*mv;p=p==="auto"?g-eD:-p*mv;var _=r.get("minAngle")*mv,S=_+y,x=0;a.each(i,function(Q){!isNaN(Q)&&x++});var M=a.getSum(i),C=Math.PI/(M||x)*2,T=r.get("clockwise"),D=r.get("roseType"),R=r.get("stillShowZeroSum"),E=a.getDataExtent(i);E[0]=0;var z=T?1:-1,I=[g,p],N=z*y/2;RR(I,!T),g=I[0],p=I[1];var L=_O(r);L.startAngle=g,L.endAngle=p,L.clockwise=T;var V=Math.abs(p-g),G=V,j=0,X=g;if(a.setLayout({viewRect:o,r:v}),a.each(i,function(Q,Z){var J;if(isNaN(Q)){a.setItemLayout(Z,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:T,cx:f,cy:c,r0:d,r:D?NaN:v});return}D!=="area"?J=M===0&&R?C:Q*C:J=V/x,J<S?(J=S,G-=S):j+=Q;var ot=X+z*J,P=0,q=0;y>J?(P=X+z*J/2,q=P):(P=X+N,q=ot-N),a.setItemLayout(Z,{angle:J,startAngle:P,endAngle:q,clockwise:T,cx:f,cy:c,r0:d,r:D?je(Q,E,[d,v]):v}),X=ot}),G<eD&&x)if(G<=.001){var H=V/x;a.each(i,function(Q,Z){if(!isNaN(Q)){var J=a.getItemLayout(Z);J.angle=H;var ot=0,P=0;H<y?(ot=g+z*(Z+1/2)*H,P=ot):(ot=g+z*Z*H+N,P=g+z*(Z+1)*H-N),J.startAngle=ot,J.endAngle=P}})}else C=G/j,X=g,a.each(i,function(Q,Z){if(!isNaN(Q)){var J=a.getItemLayout(Z),ot=J.angle===S?S:Q*C,P=0,q=0;ot<y?(P=X+z*ot/2,q=P):(P=X+N,q=X+z*ot-N),J.startAngle=P,J.endAngle=q,X+=z*ot}})})}var _O=xe();function wG(t){return{seriesType:t,reset:function(e,n){var r=n.findComponents({mainType:"legend"});if(!(!r||!r.length)){var a=e.getData();a.filterSelf(function(i){for(var o=a.getName(i),u=0;u<r.length;u++)if(!r[u].isSelected(o))return!1;return!0})}}}}var MG=Math.PI/180;function nD(t,e,n,r,a,i,o,u,f,c){if(t.length<2)return;function v(_){for(var S=_.rB,x=S*S,M=0;M<_.list.length;M++){var C=_.list[M],T=Math.abs(C.label.y-n),D=r+C.len,R=D*D,E=Math.sqrt(Math.abs((1-T*T/x)*R)),z=e+(E+C.len2)*a,I=z-C.label.x,N=C.targetTextWidth-I*a;SO(C,N,!0),C.label.x=z}}function d(_){for(var S={list:[],maxY:0},x={list:[],maxY:0},M=0;M<_.length;M++)if(_[M].labelAlignTo==="none"){var C=_[M],T=C.label.y>n?x:S,D=Math.abs(C.label.y-n);if(D>=T.maxY){var R=C.label.x-e-C.len2*a,E=r+C.len,z=Math.abs(R)<E?Math.sqrt(D*D/(1-R*R/E/E)):E;T.rB=z,T.maxY=D}T.list.push(C)}v(S),v(x)}for(var g=t.length,p=0;p<g;p++)if(t[p].position==="outer"&&t[p].labelAlignTo==="labelLine"){var y=t[p].label.x-c;t[p].linePoints[1][0]+=y,t[p].label.x=c}BF(t,f,f+o)&&d(t)}function CG(t,e,n,r,a,i,o,u){for(var f=[],c=[],v=Number.MAX_VALUE,d=-Number.MAX_VALUE,g=0;g<t.length;g++){var p=t[g].label;i0(t[g])||(p.x<e?(v=Math.min(v,p.x),f.push(t[g])):(d=Math.max(d,p.x),c.push(t[g])))}for(var g=0;g<t.length;g++){var y=t[g];if(!i0(y)&&y.linePoints){if(y.labelStyleWidth!=null)continue;var p=y.label,_=y.linePoints,S=void 0;y.labelAlignTo==="edge"?p.x<e?S=_[2][0]-y.labelDistance-o-y.edgeDistance:S=o+a-y.edgeDistance-_[2][0]-y.labelDistance:y.labelAlignTo==="labelLine"?p.x<e?S=v-o-y.bleedMargin:S=o+a-d-y.bleedMargin:p.x<e?S=p.x-o-y.bleedMargin:S=o+a-p.x-y.bleedMargin,y.targetTextWidth=S,SO(y,S)}}nD(c,e,n,r,1,a,i,o,u,d),nD(f,e,n,r,-1,a,i,o,u,v);for(var g=0;g<t.length;g++){var y=t[g];if(!i0(y)&&y.linePoints){var p=y.label,_=y.linePoints,x=y.labelAlignTo==="edge",M=p.style.padding,C=M?M[1]+M[3]:0,T=p.style.backgroundColor?0:C,D=y.rect.width+T,R=_[1][0]-_[2][0];x?p.x<e?_[2][0]=o+y.edgeDistance+D+y.labelDistance:_[2][0]=o+a-y.edgeDistance-D-y.labelDistance:(p.x<e?_[2][0]=p.x+y.labelDistance:_[2][0]=p.x-y.labelDistance,_[1][0]=_[2][0]+R),_[1][1]=_[2][1]=p.y}}}function SO(t,e,n){if(n===void 0&&(n=!1),t.labelStyleWidth==null){var r=t.label,a=r.style,i=t.rect,o=a.backgroundColor,u=a.padding,f=u?u[1]+u[3]:0,c=a.overflow,v=i.width+(o?0:f);if(e<v||n){var d=i.height;if(c&&c.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-f);var g=r.getBoundingRect();r.setStyle("width",Math.ceil(g.width)),r.setStyle("backgroundColor",o)}else{var p=e-f,y=e<v?p:n?p>t.unconstrainedWidth?null:p:null;r.setStyle("width",y)}var _=r.getBoundingRect();i.width=_.width;var S=(r.style.margin||0)+2.1;i.height=_.height+S,i.y-=(i.height-d)/2}}}function i0(t){return t.position==="center"}function TG(t){var e=t.getData(),n=[],r,a,i=!1,o=(t.get("minShowLabelAngle")||0)*MG,u=e.getLayout("viewRect"),f=e.getLayout("r"),c=u.width,v=u.x,d=u.y,g=u.height;function p(R){R.ignore=!0}function y(R){if(!R.ignore)return!0;for(var E in R.states)if(R.states[E].ignore===!1)return!0;return!1}e.each(function(R){var E=e.getItemGraphicEl(R),z=E.shape,I=E.getTextContent(),N=E.getTextGuideLine(),L=e.getItemModel(R),V=L.getModel("label"),G=V.get("position")||L.get(["emphasis","label","position"]),j=V.get("distanceToLabelLine"),X=V.get("alignTo"),H=ve(V.get("edgeDistance"),c),Q=V.get("bleedMargin"),Z=L.getModel("labelLine"),J=Z.get("length");J=ve(J,c);var ot=Z.get("length2");if(ot=ve(ot,c),Math.abs(z.endAngle-z.startAngle)<o){k(I.states,p),I.ignore=!0,N&&(k(N.states,p),N.ignore=!0);return}if(y(I)){var P=(z.startAngle+z.endAngle)/2,q=Math.cos(P),rt=Math.sin(P),it,ft,gt,wt;r=z.cx,a=z.cy;var Kt=G==="inside"||G==="inner";if(G==="center")it=z.cx,ft=z.cy,wt="center";else{var St=(Kt?(z.r+z.r0)/2*q:z.r*q)+r,te=(Kt?(z.r+z.r0)/2*rt:z.r*rt)+a;if(it=St+q*3,ft=te+rt*3,!Kt){var bt=St+q*(J+f-z.r),Nt=te+rt*(J+f-z.r),pn=bt+(q<0?-1:1)*ot,ue=Nt;X==="edge"?it=q<0?v+H:v+c-H:it=pn+(q<0?-j:j),ft=ue,gt=[[St,te],[bt,Nt],[pn,ue]]}wt=Kt?"center":X==="edge"?q>0?"right":"left":q>0?"left":"right"}var Dn=Math.PI,Be=0,Nr=V.get("rotate");if(de(Nr))Be=Nr*(Dn/180);else if(G==="center")Be=0;else if(Nr==="radial"||Nr===!0){var Ce=q<0?-P+Dn:-P;Be=Ce}else if(Nr==="tangential"&&G!=="outside"&&G!=="outer"){var Zn=Math.atan2(q,rt);Zn<0&&(Zn=Dn*2+Zn);var ao=rt>0;ao&&(Zn=Dn+Zn),Be=Zn-Dn}if(i=!!Be,I.x=it,I.y=ft,I.rotation=Be,I.setStyle({verticalAlign:"middle"}),Kt){I.setStyle({align:wt});var Zt=I.states.select;Zt&&(Zt.x+=I.x,Zt.y+=I.y)}else{var vt=I.getBoundingRect().clone();vt.applyTransform(I.getComputedTransform());var Ee=(I.style.margin||0)+2.1;vt.y-=Ee/2,vt.height+=Ee,n.push({label:I,labelLine:N,position:G,len:J,len2:ot,minTurnAngle:Z.get("minTurnAngle"),maxSurfaceAngle:Z.get("maxSurfaceAngle"),surfaceNormal:new Et(q,rt),linePoints:gt,textAlign:wt,labelDistance:j,labelAlignTo:X,edgeDistance:H,bleedMargin:Q,rect:vt,unconstrainedWidth:vt.width,labelStyleWidth:I.style.width})}E.setTextConfig({inside:Kt})}}),!i&&t.get("avoidLabelOverlap")&&CG(n,r,a,f,c,g,v,d);for(var _=0;_<n.length;_++){var S=n[_],x=S.label,M=S.labelLine,C=isNaN(x.x)||isNaN(x.y);if(x){x.setStyle({align:S.textAlign}),C&&(k(x.states,p),x.ignore=!0);var T=x.states.select;T&&(T.x+=x.x,T.y+=x.y)}if(M){var D=S.linePoints;C||!D?(k(M.states,p),M.ignore=!0):(RF(D,S.minTurnAngle),EF(D,S.surfaceNormal,S.maxSurfaceAngle),M.setShape({points:D}),x.__hostTarget.textGuideLineConfig={anchor:new Et(D[0][0],D[0][1])})}}}var AG=(function(t){ut(e,t);function e(n,r,a){var i=t.call(this)||this;i.z2=2;var o=new Me;return i.setTextContent(o),i.updateData(n,r,a,!0),i}return e.prototype.updateData=function(n,r,a,i){var o=this,u=n.hostModel,f=n.getItemModel(r),c=f.getModel("emphasis"),v=n.getItemLayout(r),d=st(Sf(f.getModel("itemStyle"),v,!0),v);if(isNaN(d.startAngle)){o.setShape(d);return}if(i){o.setShape(d);var g=u.getShallow("animationType");u.ecModel.ssr?(ir(o,{scaleX:0,scaleY:0},u,{dataIndex:r,isFrom:!0}),o.originX=d.cx,o.originY=d.cy):g==="scale"?(o.shape.r=v.r0,ir(o,{shape:{r:v.r}},u,r)):a!=null?(o.setShape({startAngle:a,endAngle:a}),ir(o,{shape:{startAngle:v.startAngle,endAngle:v.endAngle}},u,r)):(o.shape.endAngle=v.startAngle,en(o,{shape:{endAngle:v.endAngle}},u,r))}else zS(o),en(o,{shape:d},u,r);o.useStyle(n.getItemVisual(r,"style")),od(o,f);var p=(v.startAngle+v.endAngle)/2,y=u.get("selectedOffset"),_=Math.cos(p)*y,S=Math.sin(p)*y,x=f.getShallow("cursor");x&&o.attr("cursor",x),this._updateLabel(u,n,r),o.ensureState("emphasis").shape=st({r:v.r+(c.get("scale")&&c.get("scaleSize")||0)},Sf(c.getModel("itemStyle"),v)),st(o.ensureState("select"),{x:_,y:S,shape:Sf(f.getModel(["select","itemStyle"]),v)}),st(o.ensureState("blur"),{shape:Sf(f.getModel(["blur","itemStyle"]),v)});var M=o.getTextGuideLine(),C=o.getTextContent();M&&st(M.ensureState("select"),{x:_,y:S}),st(C.ensureState("select"),{x:_,y:S}),jf(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype._updateLabel=function(n,r,a){var i=this,o=r.getItemModel(a),u=o.getModel("labelLine"),f=r.getItemVisual(a,"style"),c=f&&f.fill,v=f&&f.opacity;vc(i,dc(o),{labelFetcher:r.hostModel,labelDataIndex:a,inheritColor:c,defaultOpacity:v,defaultText:n.getFormattedLabel(a,"normal")||r.getName(a)});var d=i.getTextContent();i.setTextConfig({position:null,rotation:null}),d.attr({z2:10});var g=n.get(["label","position"]);if(g!=="outside"&&g!=="outer")i.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new dl,this.setTextGuideLine(p)),OF(this,zF(o),{stroke:c,opacity:As(u.get(["lineStyle","opacity"]),v,1)})}},e})(ri),DG=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ignoreLabelLineUpdate=!0,n}return e.prototype.render=function(n,r,a,i){var o=n.getData(),u=this._data,f=this.group,c;if(!u&&o.count()>0){for(var v=o.getItemLayout(0),d=1;isNaN(v&&v.startAngle)&&d<o.count();++d)v=o.getItemLayout(d);v&&(c=v.startAngle)}if(this._emptyCircleSector&&f.remove(this._emptyCircleSector),o.count()===0&&n.get("showEmptyCircle")){var g=_O(n),p=new ri({shape:st(yO(n,a),g)});p.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=p,f.add(p)}o.diff(u).add(function(y){var _=new AG(o,y,c);o.setItemGraphicEl(y,_),f.add(_)}).update(function(y,_){var S=u.getItemGraphicEl(_);S.updateData(o,y,c),S.off("click"),f.add(S),o.setItemGraphicEl(y,S)}).remove(function(y){var _=u.getItemGraphicEl(y);ud(_,n,y)}).execute(),TG(n),n.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(n,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=n[0]-i.cx,u=n[1]-i.cy,f=Math.sqrt(o*o+u*u);return f<=i.r&&f>=i.r0}},e.type="pie",e})(Cn);function RG(t,e,n){e=ct(e)&&{coordDimensions:e}||st({encodeDefine:t.getEncode()},e);var r=t.getSource(),a=h1(r,e).dimensions,i=new c1(a,t);return i.initData(r,n),i}var EG=(function(){function t(e,n){this._getDataWithEncodedVisual=e,this._getRawData=n}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var n=this._getRawData();return n.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var n=this._getDataWithEncodedVisual();return n.indexOfName(e)},t.prototype.getItemVisual=function(e,n){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,n)},t})(),LG=xe(),OG=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new EG(Mt(this.getData,this),Mt(this.getRawData,this)),this._defaultLabelLine(n)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return RG(this,{coordDimensions:["value"],encodeDefaulter:_e(h4,this)})},e.prototype.getDataParams=function(n){var r=this.getData(),a=LG(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(f){o.push(f)}),i=a.seats=vR(o,r.hostModel.get("percentPrecision"))}var u=t.prototype.getDataParams.call(this,n);return u.percent=i[n]||0,u.$vars.push("percent"),u},e.prototype._defaultLabelLine=function(n){a_(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.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,endAngle:"auto",padAngle:0,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})(qn);function zG(t){return{seriesType:t,reset:function(e,n){var r=e.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(de(o)&&!isNaN(o)&&o<0)})}}}function pp(t){t.registerChartView(DG),t.registerSeriesModel(OG),$H("pie",t.registerAction),t.registerLayout(_e(xG,"pie")),t.registerProcessor(wG("pie")),t.registerProcessor(zG("pie"))}var NG=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e})($t),O_=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",jn).models[0]},e.type="cartesian2dAxis",e})($t);Lr(O_,$L);var bO={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,showMinLine:!0,showMaxLine:!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)"]}}},IG=qt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},bO),b1=qt({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}}},bO),BG=qt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},b1),kG=Qt({logBase:10},b1);const PG={category:IG,value:b1,time:BG,log:kG};var HG={value:1,category:1,time:1,log:1};function rD(t,e,n,r){k(HG,function(a,i){var o=qt(qt({},PG[i],!0),r,!0),u=(function(f){ut(c,f);function c(){var v=f!==null&&f.apply(this,arguments)||this;return v.type=e+"Axis."+i,v}return c.prototype.mergeDefaultAndTheme=function(v,d){var g=Zf(this),p=g?mc(v):{},y=d.getTheme();qt(v,y.get(i+"Axis")),qt(v,this.getDefaultOption()),v.type=aD(v),g&&ul(v,p,g)},c.prototype.optionUpdated=function(){var v=this.option;v.type==="category"&&(this.__ordinalMeta=A_.createByAxisModel(this))},c.prototype.getCategories=function(v){var d=this.option;if(d.type==="category")return v?d.data:this.__ordinalMeta.categories},c.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},c.type=e+"Axis."+i,c.defaultOption=o,c})(n);t.registerComponentModel(u)}),t.registerSubTypeDefaulter(e+"Axis",aD)}function aD(t){return t.type||(t.data?"category":"value")}var VG=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return mt(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Re(this.getAxes(),function(n){return n.scale.type===e})},t.prototype.addAxis=function(e){var n=e.dim;this._axes[n]=e,this._dimList.push(n)},t})(),z_=["x","y"];function iD(t){return t.type==="interval"||t.type==="time"}var FG=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=z_,n}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!iD(n)||!iD(r))){var a=n.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),u=this.dataToPoint([a[1],i[1]]),f=a[1]-a[0],c=i[1]-i[0];if(!(!f||!c)){var v=(u[0]-o[0])/f,d=(u[1]-o[1])/c,g=o[0]-a[0]*v,p=o[1]-i[0]*d,y=this._transform=[v,0,0,d,g,p];this._invTransform=ic([],y)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(n){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&a.contain(a.toLocalCoord(n[1]))},e.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},e.prototype.containZone=function(n,r){var a=this.dataToPoint(n),i=this.dataToPoint(r),o=this.getArea(),u=new Wt(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(u)},e.prototype.dataToPoint=function(n,r,a){a=a||[];var i=n[0],o=n[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Mn(a,n,this._transform);var u=this.getAxis("x"),f=this.getAxis("y");return a[0]=u.toGlobalCoord(u.dataToCoord(i,r)),a[1]=f.toGlobalCoord(f.dataToCoord(o,r)),a},e.prototype.clampData=function(n,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),u=i.getExtent(),f=a.parse(n[0]),c=i.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),f),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(u[0],u[1]),c),Math.max(u[0],u[1])),r},e.prototype.pointToData=function(n,r){var a=[];if(this._invTransform)return Mn(a,n,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(n[0]),r),a[1]=o.coordToData(o.toLocalCoord(n[1]),r),a},e.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},e.prototype.getArea=function(n){n=n||0;var r=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(r[0],r[1])-n,o=Math.min(a[0],a[1])-n,u=Math.max(r[0],r[1])-i+n,f=Math.max(a[0],a[1])-o+n;return new Wt(i,o,u,f)},e})(VG),GG=(function(t){ut(e,t);function e(n,r,a,i,o){var u=t.call(this,n,r,a)||this;return u.index=0,u.type=i||"value",u.position=o||"bottom",u}return e.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},e.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},e})(iO);function N_(t,e,n){n=n||{};var r=t.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],u=a.position,f=o?"onZero":u,c=a.dim,v=r.getRect(),d=[v.x,v.x+v.width,v.y,v.y+v.height],g={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,y=c==="x"?[d[2]-p,d[3]+p]:[d[0]-p,d[1]+p];if(o){var _=o.toGlobalCoord(o.dataToCoord(0));y[g.onZero]=Math.max(Math.min(_,y[1]),y[0])}i.position=[c==="y"?y[g[f]]:d[0],c==="x"?y[g[f]]:d[3]],i.rotation=Math.PI/2*(c==="x"?0:1);var S={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=S[u],i.labelOffset=o?y[g[u]]-y[g.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Ns(n.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var x=e.get(["axisLabel","rotate"]);return i.labelRotate=f==="top"?-x:x,i.z2=1,i}function oD(t){return t.get("coordinateSystem")==="cartesian2d"}function lD(t){var e={xAxisModel:null,yAxisModel:null};return k(e,function(n,r){var a=r.replace(/Model$/,""),i=t.getReferringComponents(a,jn).models[0];e[r]=i}),e}var o0=Math.log;function UG(t,e,n){var r=Vs.prototype,a=r.getTicks.call(n),i=r.getTicks.call(n,!0),o=a.length-1,u=r.getInterval.call(n),f=YL(t,e),c=f.extent,v=f.fixMin,d=f.fixMax;if(t.type==="log"){var g=o0(t.base);c=[o0(c[0])/g,o0(c[1])/g]}t.setExtent(c[0],c[1]),t.calcNiceExtent({splitNumber:o,fixMin:v,fixMax:d});var p=r.getExtent.call(t);v&&(c[0]=p[0]),d&&(c[1]=p[1]);var y=r.getInterval.call(t),_=c[0],S=c[1];if(v&&d)y=(S-_)/o;else if(v)for(S=c[0]+y*o;S<c[1]&&isFinite(S)&&isFinite(c[1]);)y=Qy(y),S=c[0]+y*o;else if(d)for(_=c[1]-y*o;_>c[0]&&isFinite(_)&&isFinite(c[0]);)y=Qy(y),_=c[1]-y*o;else{var x=t.getTicks().length-1;x>o&&(y=Qy(y));var M=y*o;S=Math.ceil(c[1]/y)*y,_=Ne(S-M),_<0&&c[0]>=0?(_=0,S=Ne(M)):S>0&&c[1]<=0&&(S=0,_=-Ne(M))}var C=(a[0].value-i[0].value)/u,T=(a[o].value-i[o].value)/u;r.setExtent.call(t,_+y*C,S+y*T),r.setInterval.call(t,y),(C||T)&&r.setNiceExtent.call(t,_+y,S-y)}var jG=(function(){function t(e,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=z_,this._initCartesian(e,n,r),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,n){var r=this._axesMap;this._updateScale(e,this.model);function a(o){var u,f=ae(o),c=f.length;if(c){for(var v=[],d=c-1;d>=0;d--){var g=+f[d],p=o[g],y=p.model,_=p.scale;D_(_)&&y.get("alignTicks")&&y.get("interval")==null?v.push(p):(R_(_,y),D_(_)&&(u=p))}v.length&&(u||(u=v.pop(),R_(u.scale,u.model)),k(v,function(S){UG(S.scale,S.model,u.scale)}))}}a(r.x),a(r.y);var i={};k(r.x,function(o){sD(r,"y",o,i)}),k(r.y,function(o){sD(r,"x",o,i)}),this.resize(this.model,n)},t.prototype.resize=function(e,n,r){var a=e.getBoxLayoutParams(),i=!r&&e.get("containLabel"),o=ti(a,{width:n.getWidth(),height:n.getHeight()});this._rect=o;var u=this._axesList;f(),i&&(k(u,function(c){if(!c.model.get(["axisLabel","inside"])){var v=W6(c);if(v){var d=c.isHorizontal()?"height":"width",g=c.model.get(["axisLabel","margin"]);o[d]-=v[d]+g,c.position==="top"?o.y+=v.height+g:c.position==="left"&&(o.x+=v.width+g)}}}),f()),k(this._coordsList,function(c){c.calcAffineTransform()});function f(){k(u,function(c){var v=c.isHorizontal(),d=v?[0,o.width]:[0,o.height],g=c.inverse?1:0;c.setExtent(d[g],d[1-g]),YG(c,v?o.x:o.y)})}},t.prototype.getAxis=function(e,n){var r=this._axesMap[e];if(r!=null)return r[n||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,n){if(e!=null&&n!=null){var r="x"+e+"y"+n;return this._coordsMap[r]}_t(e)&&(n=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===e||i[a].getAxis("y").index===n)return i[a]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,n,r){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.dataToPoint(r):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(r)):null},t.prototype.convertFromPixel=function(e,n,r){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.pointToData(r):a.axis?a.axis.coordToData(a.axis.toLocalCoord(r)):null},t.prototype._findConvertTarget=function(e){var n=e.seriesModel,r=e.xAxisModel||n&&n.getReferringComponents("xAxis",jn).models[0],a=e.yAxisModel||n&&n.getReferringComponents("yAxis",jn).models[0],i=e.gridModel,o=this._coordsList,u,f;if(n)u=n.coordinateSystem,Yt(o,u)<0&&(u=null);else if(r&&a)u=this.getCartesian(r.componentIndex,a.componentIndex);else if(r)f=this.getAxis("x",r.componentIndex);else if(a)f=this.getAxis("y",a.componentIndex);else if(i){var c=i.coordinateSystem;c===this&&(u=this._coordsList[0])}return{cartesian:u,axis:f}},t.prototype.containPoint=function(e){var n=this._coordsList[0];if(n)return n.containPoint(e)},t.prototype._initCartesian=function(e,n,r){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},u={x:{},y:{}},f={x:0,y:0};if(n.eachComponent("xAxis",c("x"),this),n.eachComponent("yAxis",c("y"),this),!f.x||!f.y){this._axesMap={},this._axesList=[];return}this._axesMap=u,k(u.x,function(v,d){k(u.y,function(g,p){var y="x"+d+"y"+p,_=new FG(y);_.master=a,_.model=e,a._coordsMap[y]=_,a._coordsList.push(_),_.addAxis(v),_.addAxis(g)})});function c(v){return function(d,g){if(l0(d,e)){var p=d.get("position");v==="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 GG(v,qL(d),[0,0],d.get("type"),p),_=y.type==="category";y.onBand=_&&d.get("boundaryGap"),y.inverse=d.get("inverse"),d.axis=y,y.model=d,y.grid=i,y.index=g,i._axesList.push(y),u[v][g]=y,f[v]++}}}},t.prototype._updateScale=function(e,n){k(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),e.eachSeries(function(a){if(oD(a)){var i=lD(a),o=i.xAxisModel,u=i.yAxisModel;if(!l0(o,n)||!l0(u,n))return;var f=this.getCartesian(o.componentIndex,u.componentIndex),c=a.getData(),v=f.getAxis("x"),d=f.getAxis("y");r(c,v),r(c,d)}},this);function r(a,i){k(ZL(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},t.prototype.getTooltipAxes=function(e){var n=[],r=[];return k(this.getCartesians(),function(a){var i=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(i);Yt(n,i)<0&&n.push(i),Yt(r,o)<0&&r.push(o)}),{baseAxes:n,otherAxes:r}},t.create=function(e,n){var r=[];return e.eachComponent("grid",function(a,i){var o=new t(a,e,n);o.name="grid_"+i,o.resize(a,n,!0),a.coordinateSystem=o,r.push(o)}),e.eachSeries(function(a){if(oD(a)){var i=lD(a),o=i.xAxisModel,u=i.yAxisModel,f=o.getCoordSysModel(),c=f.coordinateSystem;a.coordinateSystem=c.getCartesian(o.componentIndex,u.componentIndex)}}),r},t.dimensions=z_,t})();function l0(t,e){return t.getCoordSysModel()===e}function sD(t,e,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var a=t[e],i,o=n.model,u=o.get(["axisLine","onZero"]),f=o.get(["axisLine","onZeroAxisIndex"]);if(!u)return;if(f!=null)uD(a[f])&&(i=a[f]);else for(var c in a)if(a.hasOwnProperty(c)&&uD(a[c])&&!r[v(a[c])]){i=a[c];break}i&&(r[v(i)]=!0);function v(d){return d.dim+"_"+d.index}}function uD(t){return t&&t.type!=="category"&&t.type!=="time"&&$6(t)}function YG(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord=t.dim==="x"?function(a){return a+e}:function(a){return r-a+e},t.toLocalCoord=t.dim==="x"?function(a){return a-e}:function(a){return r-a+e}}var ji=Math.PI,Qi=(function(){function t(e,n){this.group=new Ie,this.opt=n,this.axisModel=e,Qt(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new Ie({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return t.prototype.hasBuilder=function(e){return!!fD[e]},t.prototype.add=function(e){fD[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,n,r){var a=bS(n-e),i,o;return Hf(a)?(o=r>0?"top":"bottom",i="center"):Hf(a-ji)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a<ji?i=r>0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var n={componentType:e.mainType,componentIndex:e.componentIndex};return n[e.mainType+"Index"]=e.componentIndex,n},t.isLabelSilent=function(e){var n=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||n&&n.show)},t})(),fD={axisLine:function(t,e,n,r){var a=e.get(["axisLine","show"]);if(a==="auto"&&t.handleAutoShown&&(a=t.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=r.transform,u=[i[0],0],f=[i[1],0],c=u[0]>f[0];o&&(Mn(u,u,o),Mn(f,f,o));var v=st({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new Ja({shape:{x1:u[0],y1:u[1],x2:f[0],y2:f[1]},style:v,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Yf(d.shape,d.style.lineWidth),d.anid="line",n.add(d);var g=e.get(["axisLine","symbol"]);if(g!=null){var p=e.get(["axisLine","symbolSize"]);pt(g)&&(g=[g,g]),(pt(p)||de(p))&&(p=[p,p]);var y=eL(e.get(["axisLine","symbolOffset"])||0,p),_=p[0],S=p[1];k([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((u[0]-f[0])*(u[0]-f[0])+(u[1]-f[1])*(u[1]-f[1]))}],function(x,M){if(g[M]!=="none"&&g[M]!=null){var C=ei(g[M],-_/2,-S/2,_,S,v.stroke,!0),T=x.r+x.offset,D=c?f:u;C.attr({rotation:x.rotate,x:D[0]+T*Math.cos(t.rotation),y:D[1]-T*Math.sin(t.rotation),silent:!0,z2:11}),n.add(C)}})}}},axisTickLabel:function(t,e,n,r){var a=ZG(n,r,e,t),i=WG(n,r,e,t);if(XG(e,i,a),$G(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=NF(mt(i,function(u){return{label:u,priority:u.z2,defaultAttr:{ignore:u.ignore}}}));kF(o)}},axisName:function(t,e,n,r){var a=Ns(t.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=t.nameDirection,u=e.getModel("nameTextStyle"),f=e.get("nameGap")||0,c=e.axis.getExtent(),v=c[0]>c[1]?-1:1,d=[i==="start"?c[0]-v*f:i==="end"?c[1]+v*f:(c[0]+c[1])/2,hD(i)?t.labelOffset+o*f:0],g,p=e.get("nameRotate");p!=null&&(p=p*ji/180);var y;hD(i)?g=Qi.innerTextLayout(t.rotation,p??t.rotation,o):(g=qG(t.rotation,i,p||0,c),y=t.axisNameAvailableWidth,y!=null&&(y=Math.abs(y/Math.sin(g.rotation)),!isFinite(y)&&(y=null)));var _=u.getFont(),S=e.get("nameTruncate",!0)||{},x=S.ellipsis,M=Ns(t.nameTruncateMaxWidth,S.maxWidth,y),C=new Me({x:d[0],y:d[1],rotation:g.rotation,silent:Qi.isLabelSilent(e),style:va(u,{text:a,font:_,overflow:"truncate",width:M,ellipsis:x,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||g.textAlign,verticalAlign:u.get("verticalAlign")||g.textVerticalAlign}),z2:1});if(hc({el:C,componentModel:e,itemName:a}),C.__fullText=a,C.anid="name",e.get("triggerEvent")){var T=Qi.makeAxisEventDataBase(e);T.targetType="axisName",T.name=a,jt(C).eventData=T}r.add(C),C.updateTransform(),n.add(C),C.decomposeTransform()}}};function qG(t,e,n,r){var a=bS(n-t),i,o,u=r[0]>r[1],f=e==="start"&&!u||e!=="start"&&u;return Hf(a-ji/2)?(o=f?"bottom":"top",i="center"):Hf(a-ji*1.5)?(o=f?"top":"bottom",i="center"):(o="middle",a<ji*1.5&&a>ji/2?i=f?"left":"right":i=f?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function XG(t,e,n){if(!XL(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var i=e[0],o=e[1],u=e[e.length-1],f=e[e.length-2],c=n[0],v=n[1],d=n[n.length-1],g=n[n.length-2];r===!1?(_r(i),_r(c)):cD(i,o)&&(r?(_r(o),_r(v)):(_r(i),_r(c))),a===!1?(_r(u),_r(d)):cD(f,u)&&(a?(_r(f),_r(g)):(_r(u),_r(d)))}}function _r(t){t&&(t.ignore=!0)}function cD(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!n||!r)){var a=ac([]);return Nd(a,a,-t.rotation),n.applyTransform(Zi([],a,t.getLocalTransform())),r.applyTransform(Zi([],a,e.getLocalTransform())),n.intersect(r)}}function hD(t){return t==="middle"||t==="center"}function xO(t,e,n,r,a){for(var i=[],o=[],u=[],f=0;f<t.length;f++){var c=t[f].coord;o[0]=c,o[1]=0,u[0]=c,u[1]=n,e&&(Mn(o,o,e),Mn(u,u,e));var v=new Ja({shape:{x1:o[0],y1:o[1],x2:u[0],y2:u[1]},style:r,z2:2,autoBatch:!0,silent:!0});Yf(v.shape,v.style.lineWidth),v.anid=a+"_"+t[f].tickValue,i.push(v)}return i}function ZG(t,e,n,r){var a=n.axis,i=n.getModel("axisTick"),o=i.get("show");if(o==="auto"&&r.handleAutoShown&&(o=r.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var u=i.getModel("lineStyle"),f=r.tickDirection*i.get("length"),c=a.getTicksCoords(),v=xO(c,e.transform,f,Qt(u.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d<v.length;d++)t.add(v[d]);return v}}function $G(t,e,n,r){var a=n.axis,i=n.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(o.length)for(var u=i.getModel("lineStyle"),f=r*i.get("length"),c=Qt(u.getLineStyle(),Qt(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),v=0;v<o.length;v++)for(var d=xO(o[v],e.transform,f,c,"minorticks_"+v),g=0;g<d.length;g++)t.add(d[g])}}function WG(t,e,n,r){var a=n.axis,i=Ns(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=n.getModel("axisLabel"),u=o.get("margin"),f=a.getViewLabels(),c=(Ns(r.labelRotate,o.get("rotate"))||0)*ji/180,v=Qi.innerTextLayout(r.rotation,c,r.labelDirection),d=n.getCategories&&n.getCategories(!0),g=[],p=Qi.isLabelSilent(n),y=n.get("triggerEvent");return k(f,function(_,S){var x=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(_.tickValue):_.tickValue,M=_.formattedLabel,C=_.rawLabel,T=o;if(d&&d[x]){var D=d[x];_t(D)&&D.textStyle&&(T=new Se(D.textStyle,o,n.ecModel))}var R=T.getTextColor()||n.get(["axisLine","lineStyle","color"]),E=a.dataToCoord(x),z=T.getShallow("align",!0)||v.textAlign,I=Pt(T.getShallow("alignMinLabel",!0),z),N=Pt(T.getShallow("alignMaxLabel",!0),z),L=T.getShallow("verticalAlign",!0)||T.getShallow("baseline",!0)||v.textVerticalAlign,V=Pt(T.getShallow("verticalAlignMinLabel",!0),L),G=Pt(T.getShallow("verticalAlignMaxLabel",!0),L),j=new Me({x:E,y:r.labelOffset+r.labelDirection*u,rotation:v.rotation,silent:p,z2:10+(_.level||0),style:va(T,{text:M,align:S===0?I:S===f.length-1?N:z,verticalAlign:S===0?V:S===f.length-1?G:L,fill:Rt(R)?R(a.type==="category"?C:a.type==="value"?x+"":x,S):R})});if(j.anid="label_"+x,hc({el:j,componentModel:n,itemName:M,formatterParamsExtra:{isTruncated:function(){return j.isTruncated},value:C,tickIndex:S}}),y){var X=Qi.makeAxisEventDataBase(n);X.targetType="axisLabel",X.value=C,X.tickIndex=S,a.type==="category"&&(X.dataIndex=x),jt(j).eventData=X}e.add(j),j.updateTransform(),g.push(j),t.add(j),j.decomposeTransform()}),g}}function QG(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return KG(n,t,e),n.seriesInvolved&&t8(n,t),n}function KG(t,e,n){var r=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];k(n.getCoordinateSystems(),function(u){if(!u.axisPointerEnabled)return;var f=tc(u.model),c=t.coordSysAxesInfo[f]={};t.coordSysMap[f]=u;var v=u.model,d=v.getModel("tooltip",r);if(k(u.getAxes(),_e(_,!1,null)),u.getTooltipAxes&&r&&d.get("show")){var g=d.get("trigger")==="axis",p=d.get(["axisPointer","type"])==="cross",y=u.getTooltipAxes(d.get(["axisPointer","axis"]));(g||p)&&k(y.baseAxes,_e(_,p?"cross":!0,g)),p&&k(y.otherAxes,_e(_,"cross",!1))}function _(S,x,M){var C=M.model.getModel("axisPointer",a),T=C.get("show");if(!(!T||T==="auto"&&!S&&!I_(C))){x==null&&(x=C.get("triggerTooltip")),C=S?JG(M,d,a,e,S,x):C;var D=C.get("snap"),R=C.get("triggerEmphasis"),E=tc(M.model),z=x||D||M.type==="category",I=t.axesInfo[E]={key:E,axis:M,coordSys:u,axisPointerModel:C,triggerTooltip:x,triggerEmphasis:R,involveSeries:z,snap:D,useHandle:I_(C),seriesModels:[],linkGroup:null};c[E]=I,t.seriesInvolved=t.seriesInvolved||z;var N=e8(i,M);if(N!=null){var L=o[N]||(o[N]={axesInfo:{}});L.axesInfo[E]=I,L.mapper=i[N].mapper,I.linkGroup=L}}}})}function JG(t,e,n,r,a,i){var o=e.getModel("axisPointer"),u=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],f={};k(u,function(g){f[g]=Ht(o.get(g))}),f.snap=t.type!=="category"&&!!i,o.get("type")==="cross"&&(f.type="line");var c=f.label||(f.label={});if(c.show==null&&(c.show=!1),a==="cross"){var v=o.get(["label","show"]);if(c.show=v??!0,!i){var d=f.lineStyle=o.get("crossStyle");d&&Qt(c,d.textStyle)}}return t.model.getModel("axisPointer",new Se(f,n,r))}function t8(t,e){e.eachSeries(function(n){var r=n.coordinateSystem,a=n.get(["tooltip","trigger"],!0),i=n.get(["tooltip","show"],!0);!r||a==="none"||a===!1||a==="item"||i===!1||n.get(["axisPointer","show"],!0)===!1||k(t.coordSysAxesInfo[tc(r.model)],function(o){var u=o.axis;r.getAxis(u.dim)===u&&(o.seriesModels.push(n),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=n.getData().count())})})}function e8(t,e){for(var n=e.model,r=e.dim,a=0;a<t.length;a++){var i=t[a]||{};if(s0(i[r+"AxisId"],n.id)||s0(i[r+"AxisIndex"],n.componentIndex)||s0(i[r+"AxisName"],n.name))return a}}function s0(t,e){return t==="all"||ct(t)&&Yt(t,e)>=0||t===e}function n8(t){var e=x1(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,a=n.option,i=n.get("status"),o=n.get("value");o!=null&&(o=r.parse(o));var u=I_(n);i==null&&(a.status=u?"show":"hide");var f=r.getExtent().slice();f[0]>f[1]&&f.reverse(),(o==null||o>f[1])&&(o=f[1]),o<f[0]&&(o=f[0]),a.value=o,u&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function x1(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[tc(t)]}function r8(t){var e=x1(t);return e&&e.axisPointerModel}function I_(t){return!!t.get(["handle","show"])}function tc(t){return t.type+"||"+t.id}var vD={},wO=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a,i){this.axisPointerClass&&n8(n),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,a,!0)},e.prototype.updateAxisPointer=function(n,r,a,i){this._doUpdateAxisPointerClass(n,a,!1)},e.prototype.remove=function(n,r){var a=this._axisPointer;a&&a.remove(r)},e.prototype.dispose=function(n,r){this._disposeAxisPointer(r),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(n,r,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=r8(n);o?(this._axisPointer||(this._axisPointer=new i)).render(n,o,r,a):this._disposeAxisPointer(r)}},e.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},e.registerAxisPointerClass=function(n,r){vD[n]=r},e.getAxisPointerClass=function(n){return n&&vD[n]},e.type="axis",e})(dn),B_=xe();function a8(t,e,n,r){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitArea"),o=i.getModel("areaStyle"),u=o.get("color"),f=r.coordinateSystem.getRect(),c=a.getTicksCoords({tickModel:i,clamp:!0});if(c.length){var v=u.length,d=B_(t).splitAreaColors,g=Ct(),p=0;if(d)for(var y=0;y<c.length;y++){var _=d.get(c[y].tickValue);if(_!=null){p=(_+(v-1)*y)%v;break}}var S=a.toGlobalCoord(c[0].coord),x=o.getAreaStyle();u=ct(u)?u:[u];for(var y=1;y<c.length;y++){var M=a.toGlobalCoord(c[y].coord),C=void 0,T=void 0,D=void 0,R=void 0;a.isHorizontal()?(C=S,T=f.y,D=M-C,R=f.height,S=C+D):(C=f.x,T=S,D=f.width,R=M-T,S=T+R);var E=c[y-1].tickValue;E!=null&&g.set(E,p),e.add(new be({anid:E!=null?"area_"+E:null,shape:{x:C,y:T,width:D,height:R},style:Qt({fill:u[p]},x),autoBatch:!0,silent:!0})),p=(p+1)%v}B_(t).splitAreaColors=g}}}function i8(t){B_(t).splitAreaColors=null}var o8=["axisLine","axisTickLabel","axisName"],l8=["splitArea","splitLine","minorSplitLine"],MO=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return e.prototype.render=function(n,r,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ie,this.group.add(this._axisGroup),!!n.get("show")){var u=n.getCoordSysModel(),f=N_(u,n),c=new Qi(n,st({handleAutoShown:function(d){for(var g=u.coordinateSystem.getCartesians(),p=0;p<g.length;p++)if(D_(g[p].getOtherAxis(n.axis).scale))return!0;return!1}},f));k(o8,c.add,c),this._axisGroup.add(c.getGroup()),k(l8,function(d){n.get([d,"show"])&&s8[d](this,this._axisGroup,n,u)},this);var v=i&&i.type==="changeAxisOrder"&&i.isInitSort;v||aE(o,this._axisGroup,n),t.prototype.render.call(this,n,r,a,i)}},e.prototype.remove=function(){i8(this)},e.type="cartesianAxis",e})(wO),s8={splitLine:function(t,e,n,r){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitLine"),o=i.getModel("lineStyle"),u=o.get("color"),f=i.get("showMinLine")!==!1,c=i.get("showMaxLine")!==!1;u=ct(u)?u:[u];for(var v=r.coordinateSystem.getRect(),d=a.isHorizontal(),g=0,p=a.getTicksCoords({tickModel:i}),y=[],_=[],S=o.getLineStyle(),x=0;x<p.length;x++){var M=a.toGlobalCoord(p[x].coord);if(!(x===0&&!f||x===p.length-1&&!c)){var C=p[x].tickValue;d?(y[0]=M,y[1]=v.y,_[0]=M,_[1]=v.y+v.height):(y[0]=v.x,y[1]=M,_[0]=v.x+v.width,_[1]=M);var T=g++%u.length,D=new Ja({anid:C!=null?"line_"+C:null,autoBatch:!0,shape:{x1:y[0],y1:y[1],x2:_[0],y2:_[1]},style:Qt({stroke:u[T]},S),silent:!0});Yf(D.shape,S.lineWidth),e.add(D)}}}},minorSplitLine:function(t,e,n,r){var a=n.axis,i=n.getModel("minorSplitLine"),o=i.getModel("lineStyle"),u=r.coordinateSystem.getRect(),f=a.isHorizontal(),c=a.getMinorTicksCoords();if(c.length)for(var v=[],d=[],g=o.getLineStyle(),p=0;p<c.length;p++)for(var y=0;y<c[p].length;y++){var _=a.toGlobalCoord(c[p][y].coord);f?(v[0]=_,v[1]=u.y,d[0]=_,d[1]=u.y+u.height):(v[0]=u.x,v[1]=_,d[0]=u.x+u.width,d[1]=_);var S=new Ja({anid:"minor_line_"+c[p][y].tickValue,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:d[0],y2:d[1]},style:g,silent:!0});Yf(S.shape,g.lineWidth),e.add(S)}},splitArea:function(t,e,n,r){a8(t,e,n,r)}},CO=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="xAxis",e})(MO),u8=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=CO.type,n}return e.type="yAxis",e})(MO),f8=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="grid",n}return e.prototype.render=function(n,r){this.group.removeAll(),n.get("show")&&this.group.add(new be({shape:n.coordinateSystem.getRect(),style:Qt({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(dn),dD={offset:0};function c8(t){t.registerComponentView(f8),t.registerComponentModel(NG),t.registerCoordinateSystem("cartesian2d",jG),rD(t,"x",O_,dD),rD(t,"y",O_,dD),t.registerComponentView(CO),t.registerComponentView(u8),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var pD="\0_ec_interaction_mutex";function gD(t,e){return!!h8(t)[e]}function h8(t){return t[pD]||(t[pD]={})}no({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},hn);var v8=(function(t){ut(e,t);function e(n){var r=t.call(this)||this;r._zr=n;var a=Mt(r._mousedownHandler,r),i=Mt(r._mousemoveHandler,r),o=Mt(r._mouseupHandler,r),u=Mt(r._mousewheelHandler,r),f=Mt(r._pinchHandler,r);return r.enable=function(c,v){this.disable(),this._opt=Qt(Ht(v)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),c==null&&(c=!0),(c===!0||c==="move"||c==="pan")&&(n.on("mousedown",a),n.on("mousemove",i),n.on("mouseup",o)),(c===!0||c==="scale"||c==="zoom")&&(n.on("mousewheel",u),n.on("pinch",f))},r.disable=function(){n.off("mousedown",a),n.off("mousemove",i),n.off("mouseup",o),n.off("mousewheel",u),n.off("pinch",f)},r}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(n){this.pointerChecker=n},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(n){if(!iC(n)){for(var r=n.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var a=n.offsetX,i=n.offsetY;this.pointerChecker&&this.pointerChecker(n,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(n){if(!(!this._dragging||!Hv("moveOnMouseMove",n,this._opt)||n.gestureEvent==="pinch"||gD(this._zr,"globalPan"))){var r=n.offsetX,a=n.offsetY,i=this._x,o=this._y,u=r-i,f=a-o;this._x=r,this._y=a,this._opt.preventDefaultMouseMove&&Is(n.event),TO(this,"pan","moveOnMouseMove",n,{dx:u,dy:f,oldX:i,oldY:o,newX:r,newY:a,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(n){iC(n)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(n){var r=Hv("zoomOnMouseWheel",n,this._opt),a=Hv("moveOnMouseWheel",n,this._opt),i=n.wheelDelta,o=Math.abs(i),u=n.offsetX,f=n.offsetY;if(!(i===0||!r&&!a)){if(r){var c=o>3?1.4:o>1?1.2:1.1,v=i>0?c:1/c;u0(this,"zoom","zoomOnMouseWheel",n,{scale:v,originX:u,originY:f,isAvailableBehavior:null})}if(a){var d=Math.abs(i),g=(i>0?1:-1)*(d>3?.4:d>1?.15:.05);u0(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:g,originX:u,originY:f,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(n){if(!gD(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;u0(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},e})(Wr);function u0(t,e,n,r,a){t.pointerChecker&&t.pointerChecker(r,a.originX,a.originY)&&(Is(r.event),TO(t,e,n,r,a))}function TO(t,e,n,r,a){a.isAvailableBehavior=Mt(Hv,null,n,r),t.trigger(e,a)}function Hv(t,e,n){var r=n[t];return!t||r&&(!pt(r)||e.event[r+"Key"])}function gp(t,e,n,r,a,i){t=t||0;var o=n[1]-n[0];if(a!=null&&(a=ms(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var u=Math.abs(e[1]-e[0]);u=ms(u,[0,o]),a=i=ms(u,[a,i]),r=0}e[0]=ms(e[0],n),e[1]=ms(e[1],n);var f=f0(e,r);e[r]+=t;var c=a||0,v=n.slice();f.sign<0?v[0]+=c:v[1]-=c,e[r]=ms(e[r],v);var d;return d=f0(e,r),a!=null&&(d.sign!==f.sign||d.span<a)&&(e[1-r]=e[r]+f.sign*a),d=f0(e,r),i!=null&&d.span>i&&(e[1-r]=e[r]+d.sign*i),e}function f0(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function ms(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}function d8(t,e,n,r){return t&&(t.legacy||t.legacy!==!1&&!n&&!r&&e!=="tspan"&&(e==="text"||zt(t,"text")))}function p8(t,e,n){var r=t,a,i,o;if(e==="text")o=r;else{o={},zt(r,"text")&&(o.text=r.text),zt(r,"rich")&&(o.rich=r.rich),zt(r,"textFill")&&(o.fill=r.textFill),zt(r,"textStroke")&&(o.stroke=r.textStroke),zt(r,"fontFamily")&&(o.fontFamily=r.fontFamily),zt(r,"fontSize")&&(o.fontSize=r.fontSize),zt(r,"fontStyle")&&(o.fontStyle=r.fontStyle),zt(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var u=zt(r,"textPosition");a.position=u?r.textPosition:"inside",zt(r,"textPosition")&&(a.position=r.textPosition),zt(r,"textOffset")&&(a.offset=r.textOffset),zt(r,"textRotation")&&(a.rotation=r.textRotation),zt(r,"textDistance")&&(a.distance=r.textDistance)}return mD(o,t),k(o.rich,function(f){mD(f,f)}),{textConfig:a,textContent:i}}function mD(t,e){e&&(e.font=e.textFont||e.font,zt(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),zt(e,"textAlign")&&(t.align=e.textAlign),zt(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),zt(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),zt(e,"textWidth")&&(t.width=e.textWidth),zt(e,"textHeight")&&(t.height=e.textHeight),zt(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),zt(e,"textPadding")&&(t.padding=e.textPadding),zt(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),zt(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),zt(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),zt(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),zt(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),zt(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),zt(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}var AO={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},yD=ae(AO);$r(ha,function(t,e){return t[e]=1,t},{});ha.join(", ");var Md=["","style","shape","extra"],ks=xe();function w1(t,e,n,r,a){var i=t+"Animation",o=LS(t,r,a)||{},u=ks(e).userDuring;return o.duration>0&&(o.during=u?Mt(b8,{el:e,userDuring:u}):null,o.setToFinal=!0,o.scope=t),st(o,n[i]),o}function c0(t,e,n,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,u=n.isAnimationEnabled(),f=ks(t),c=e.style;f.userDuring=e.during;var v={},d={};if(w8(t,e,d),SD("shape",e,d),SD("extra",e,d),!i&&u&&(x8(t,e,v),_D("shape",t,e,v),_D("extra",t,e,v),M8(t,e,c,v)),d.style=c,m8(t,d,o),_8(t,e),u)if(i){var g={};k(Md,function(y){var _=y?e[y]:e;_&&_.enterFrom&&(y&&(g[y]=g[y]||{}),st(y?g[y]:g,_.enterFrom))});var p=w1("enter",t,e,n,a);p.duration>0&&t.animateFrom(g,p)}else y8(t,e,a||0,n,v);DO(t,e),c?t.dirty():t.markRedraw()}function DO(t,e){for(var n=ks(t).leaveToProps,r=0;r<Md.length;r++){var a=Md[r],i=a?e[a]:e;i&&i.leaveTo&&(n||(n=ks(t).leaveToProps={}),a&&(n[a]=n[a]||{}),st(a?n[a]:n,i.leaveTo))}}function g8(t,e,n,r){if(t){var a=t.parent,i=ks(t).leaveToProps;if(i){var o=w1("update",t,e,n,0);o.done=function(){a.remove(t)},t.animateTo(i,o)}else a.remove(t)}}function al(t){return t==="all"}function m8(t,e,n){var r=e.style;if(!t.isGroup&&r){if(n){t.useStyle({});for(var a=t.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(t.style)}}t.setStyle(r)}e&&(e.style=null,e&&t.attr(e),e.style=r)}function y8(t,e,n,r,a){if(a){var i=w1("update",t,e,r,n);i.duration>0&&t.animateFrom(a,i)}}function _8(t,e){zt(e,"silent")&&(t.silent=e.silent),zt(e,"ignore")&&(t.ignore=e.ignore),t instanceof vl&&zt(e,"invisible")&&(t.invisible=e.invisible),t instanceof oe&&zt(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var oa={},S8={setTransform:function(t,e){return oa.el[t]=e,this},getTransform:function(t){return oa.el[t]},setShape:function(t,e){var n=oa.el,r=n.shape||(n.shape={});return r[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=oa.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=oa.el,r=n.style;return r&&(r[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=oa.el.style;if(e)return e[t]},setExtra:function(t,e){var n=oa.el.extra||(oa.el.extra={});return n[t]=e,this},getExtra:function(t){var e=oa.el.extra;if(e)return e[t]}};function b8(){var t=this,e=t.el;if(e){var n=ks(e).userDuring,r=t.userDuring;if(n!==r){t.el=t.userDuring=null;return}oa.el=e,r(S8)}}function _D(t,e,n,r){var a=n[t];if(a){var i=e[t],o;if(i){var u=n.transition,f=a.transition;if(f)if(!o&&(o=r[t]={}),al(f))st(o,i);else for(var c=qe(f),v=0;v<c.length;v++){var d=c[v],g=i[d];o[d]=g}else if(al(u)||Yt(u,t)>=0){!o&&(o=r[t]={});for(var p=ae(i),v=0;v<p.length;v++){var d=p[v],g=i[d];C8(a[d],g)&&(o[d]=g)}}}}}function SD(t,e,n){var r=e[t];if(r)for(var a=n[t]={},i=ae(r),o=0;o<i.length;o++){var u=i[o];a[u]=xf(r[u])}}function x8(t,e,n){for(var r=e.transition,a=al(r)?ha:qe(r||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var u=t[o];n[o]=u}}}function w8(t,e,n){for(var r=0;r<yD.length;r++){var a=yD[r],i=AO[a],o=e[a];o&&(n[i[0]]=o[0],n[i[1]]=o[1])}for(var r=0;r<ha.length;r++){var u=ha[r];e[u]!=null&&(n[u]=e[u])}}function M8(t,e,n,r){if(n){var a=t.style,i;if(a){var o=n.transition,u=e.transition;if(o&&!al(o)){var f=qe(o);!i&&(i=r.style={});for(var c=0;c<f.length;c++){var v=f[c],d=a[v];i[v]=d}}else if(t.getAnimationStyleProps&&(al(u)||al(o)||Yt(u,"style")>=0)){var g=t.getAnimationStyleProps(),p=g?g.style:null;if(p){!i&&(i=r.style={});for(var y=ae(n),c=0;c<y.length;c++){var v=y[c];if(p[v]){var d=a[v];i[v]=d}}}}}}}function C8(t,e){return vn(t)?t!==e:t!=null&&isFinite(t)}var RO=xe(),T8=["percent","easing","shape","style","extra"];function A8(t){t.stopAnimation("keyframe"),t.attr(RO(t))}function k_(t,e,n){if(!(!n.isAnimationEnabled()||!e)){if(ct(e)){k(e,function(u){k_(t,u,n)});return}var r=e.keyframes,a=e.duration;if(n&&a==null){var i=LS("enter",n,0);a=i&&i.duration}if(!(!r||!a)){var o=RO(t);k(Md,function(u){if(!(u&&!t[u])){var f;r.sort(function(c,v){return c.percent-v.percent}),k(r,function(c){var v=t.animators,d=u?c[u]:c;if(d){var g=ae(d);if(u||(g=Re(g,function(_){return Yt(T8,_)<0})),!!g.length){f||(f=t.animate(u,e.loop,!0),f.scope="keyframe");for(var p=0;p<v.length;p++)v[p]!==f&&v[p].targetName===f.targetName&&v[p].stopTracks(g);u&&(o[u]=o[u]||{});var y=u?o[u]:o;k(g,function(_){y[_]=((u?t[u]:t)||{})[_]}),f.whenWithKeys(a*c.percent,d,g,c.easing)}}}),f&&f.delay(e.delay||0).duration(a).start(e.easing)}})}}}var qo=xe(),bD=Ht,h0=Mt,D8=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,n,r,a){var i=n.get("value"),o=n.get("status");if(this._axisModel=e,this._axisPointerModel=n,this._api=r,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var u=this._group,f=this._handle;if(!o||o==="hide"){u&&u.hide(),f&&f.hide();return}u&&u.show(),f&&f.show();var c={};this.makeElOption(c,i,e,n,r);var v=c.graphicKey;v!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=v;var d=this._moveAnimation=this.determineAnimation(e,n);if(!u)u=this._group=new Ie,this.createPointerEl(u,c,e,n),this.createLabelEl(u,c,e,n),r.getZr().add(u);else{var g=_e(xD,n,d);this.updatePointerEl(u,c,g),this.updateLabelEl(u,c,g,n)}MD(u,n,!0),this._renderHandle(i)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,n){var r=n.get("animation"),a=e.axis,i=a.type==="category",o=n.get("snap");if(!o&&!i)return!1;if(r==="auto"||r==null){var u=this.animationThreshold;if(i&&a.getBandWidth()>u)return!0;if(o){var f=x1(e).seriesDataCount,c=a.getExtent();return Math.abs(c[0]-c[1])/f>u}return!1}return r===!0},t.prototype.makeElOption=function(e,n,r,a,i){},t.prototype.createPointerEl=function(e,n,r,a){var i=n.pointer;if(i){var o=qo(e).pointerEl=new zP[i.type](bD(n.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,n,r,a){if(n.label){var i=qo(e).labelEl=new Me(bD(n.label));e.add(i),wD(i,a)}},t.prototype.updatePointerEl=function(e,n,r){var a=qo(e).pointerEl;a&&n.pointer&&(a.setStyle(n.pointer.style),r(a,{shape:n.pointer.shape}))},t.prototype.updateLabelEl=function(e,n,r,a){var i=qo(e).labelEl;i&&(i.setStyle(n.label.style),r(i,{x:n.label.x,y:n.label.y}),wD(i,a))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),a=this._handle,i=n.getModel("handle"),o=n.get("status");if(!i.get("show")||!o||o==="hide"){a&&r.remove(a),this._handle=null;return}var u;this._handle||(u=!0,a=this._handle=Xd(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(c){Is(c.event)},onmousedown:h0(this._onHandleDragMove,this,0,0),drift:h0(this._onHandleDragMove,this),ondragend:h0(this._onHandleDragEnd,this)}),r.add(a)),MD(a,n,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var f=i.get("size");ct(f)||(f=[f,f]),a.scaleX=f[0]/2,a.scaleY=f[1]/2,lp(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,u)}},t.prototype._moveHandleToValue=function(e,n){xD(this._axisPointerModel,!n&&this._moveAnimation,this._handle,v0(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,n){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(v0(r),[e,n],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(v0(a)),qo(r).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var n=e.getZr(),r=this._group,a=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),a&&n.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),dd(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,n,r){return r=r||0,{x:e[r],y:e[1-r],width:n[r],height:n[1-r]}},t})();function xD(t,e,n,r){EO(qo(n).lastProp,r)||(qo(n).lastProp=r,e?en(n,r,t):(n.stopAnimation(),n.attr(r)))}function EO(t,e){if(_t(t)&&_t(e)){var n=!0;return k(e,function(r,a){n=n&&EO(t[a],r)}),!!n}else return t===e}function wD(t,e){t[e.get(["label","show"])?"show":"hide"]()}function v0(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function MD(t,e,n){var r=e.get("z"),a=e.get("zlevel");t&&t.traverse(function(i){i.type!=="group"&&(r!=null&&(i.z=r),a!=null&&(i.zlevel=a),i.silent=n)})}function R8(t){var e=t.get("type"),n=t.getModel(e+"Style"),r;return e==="line"?(r=n.getLineStyle(),r.fill=null):e==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function E8(t,e,n,r,a){var i=n.get("value"),o=LO(i,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),u=n.getModel("label"),f=gc(u.get("padding")||0),c=u.getFont(),v=yS(o,c),d=a.position,g=v.width+f[1]+f[3],p=v.height+f[0]+f[2],y=a.align;y==="right"&&(d[0]-=g),y==="center"&&(d[0]-=g/2);var _=a.verticalAlign;_==="bottom"&&(d[1]-=p),_==="middle"&&(d[1]-=p/2),L8(d,g,p,r);var S=u.get("backgroundColor");(!S||S==="auto")&&(S=e.get(["axisLine","lineStyle","color"])),t.label={x:d[0],y:d[1],style:va(u,{text:o,font:c,fill:u.getTextColor(),padding:f,backgroundColor:S}),z2:10}}function L8(t,e,n,r){var a=r.getWidth(),i=r.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+n,i)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function LO(t,e,n,r,a){t=e.scale.parse(t);var i=e.scale.getLabel({value:t},{precision:a.precision}),o=a.formatter;if(o){var u={value:g1(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};k(r,function(f){var c=n.getSeriesByIndex(f.seriesIndex),v=f.dataIndexInside,d=c&&c.getDataParams(v);d&&u.seriesData.push(d)}),pt(o)?i=o.replace("{value}",i):Rt(o)&&(i=o(u))}return i}function OO(t,e,n){var r=Xi();return Nd(r,r,n.rotation),Zv(r,r,n.position),qf([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function O8(t,e,n,r,a,i){var o=Qi.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get(["label","margin"]),E8(e,r,a,i,{position:OO(r.axis,t,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function z8(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function N8(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}var I8=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,a,i,o){var u=a.axis,f=u.grid,c=i.get("type"),v=CD(f,u).getOtherAxis(u).getGlobalExtent(),d=u.toGlobalCoord(u.dataToCoord(r,!0));if(c&&c!=="none"){var g=R8(i),p=B8[c](u,d,v);p.style=g,n.graphicKey=p.type,n.pointer=p}var y=N_(f.model,a);O8(r,n,y,a,i,o)},e.prototype.getHandleTransform=function(n,r,a){var i=N_(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=OO(r.axis,n,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(n,r,a,i){var o=a.axis,u=o.grid,f=o.getGlobalExtent(!0),c=CD(u,o).getOtherAxis(o).getGlobalExtent(),v=o.dim==="x"?0:1,d=[n.x,n.y];d[v]+=r[v],d[v]=Math.min(f[1],d[v]),d[v]=Math.max(f[0],d[v]);var g=(c[1]+c[0])/2,p=[g,g];p[v]=d[v];var y=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:n.rotation,cursorPoint:p,tooltipOption:y[v]}},e})(D8);function CD(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var B8={line:function(t,e,n){var r=z8([e,n[0]],[e,n[1]],TD(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),a=n[1]-n[0];return{type:"Rect",shape:N8([e-r/2,n[0]],[r,a],TD(t))}}};function TD(t){return t.dim==="x"?0:1}var k8=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,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})($t),Wa=xe(),P8=k;function zO(t,e,n){if(!Dt.node){var r=e.getZr();Wa(r).records||(Wa(r).records={}),H8(r,e);var a=Wa(r).records[t]||(Wa(r).records[t]={});a.handler=n}}function H8(t,e){if(Wa(t).initialized)return;Wa(t).initialized=!0,n("click",_e(AD,"click")),n("mousemove",_e(AD,"mousemove")),n("globalout",F8);function n(r,a){t.on(r,function(i){var o=G8(e);P8(Wa(t).records,function(u){u&&a(u,i,o.dispatchAction)}),V8(o.pendings,e)})}}function V8(t,e){var n=t.showTip.length,r=t.hideTip.length,a;n?a=t.showTip[n-1]:r&&(a=t.hideTip[r-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function F8(t,e,n){t.handler("leave",null,n)}function AD(t,e,n,r){e.handler(t,n,r)}function G8(t){var e={showTip:[],hideTip:[]},n=function(r){var a=e[r.type];a?a.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}function P_(t,e){if(!Dt.node){var n=e.getZr(),r=(Wa(n).records||{})[t];r&&(Wa(n).records[t]=null)}}var U8=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var i=r.getComponent("tooltip"),o=n.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";zO("axisPointer",a,function(u,f,c){o!=="none"&&(u==="leave"||o.indexOf(u)>=0)&&c({type:"updateAxisPointer",currTrigger:u,x:f&&f.offsetX,y:f&&f.offsetY})})},e.prototype.remove=function(n,r){P_("axisPointer",r)},e.prototype.dispose=function(n,r){P_("axisPointer",r)},e.type="axisPointer",e})(dn);function NO(t,e){var n=[],r=t.seriesIndex,a;if(r==null||!(a=e.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=ol(i,t);if(o==null||o<0||ct(o))return{point:[]};var u=i.getItemGraphicEl(o),f=a.coordinateSystem;if(a.getTooltipPosition)n=a.getTooltipPosition(o)||[];else if(f&&f.dataToPoint)if(t.isStacked){var c=f.getBaseAxis(),v=f.getOtherAxis(c),d=v.dim,g=c.dim,p=d==="x"||d==="radius"?1:0,y=i.mapDimension(g),_=[];_[p]=i.get(y,o),_[1-p]=i.get(i.getCalculationInfo("stackResultDimension"),o),n=f.dataToPoint(_)||[]}else n=f.dataToPoint(i.getValues(mt(f.dimensions,function(x){return i.mapDimension(x)}),o))||[];else if(u){var S=u.getBoundingRect().clone();S.applyTransform(u.transform),n=[S.x+S.width/2,S.y+S.height/2]}return{point:n,el:u}}var DD=xe();function j8(t,e,n){var r=t.currTrigger,a=[t.x,t.y],i=t,o=t.dispatchAction||Mt(n.dispatchAction,n),u=e.getComponent("axisPointer").coordSysAxesInfo;if(u){Vv(a)&&(a=NO({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var f=Vv(a),c=i.axesInfo,v=u.axesInfo,d=r==="leave"||Vv(a),g={},p={},y={list:[],map:{}},_={showPointer:_e(q8,p),showTooltip:_e(X8,y)};k(u.coordSysMap,function(x,M){var C=f||x.containPoint(a);k(u.coordSysAxesInfo[M],function(T,D){var R=T.axis,E=Q8(c,T);if(!d&&C&&(!c||E)){var z=E&&E.value;z==null&&!f&&(z=R.pointToData(a)),z!=null&&RD(T,z,_,!1,g)}})});var S={};return k(v,function(x,M){var C=x.linkGroup;C&&!p[M]&&k(C.axesInfo,function(T,D){var R=p[D];if(T!==x&&R){var E=R.value;C.mapper&&(E=x.axis.scale.parse(C.mapper(E,ED(T),ED(x)))),S[x.key]=E}})}),k(S,function(x,M){RD(v[M],x,_,!0,g)}),Z8(p,v,g),$8(y,a,t,o),W8(v,o,n),g}}function RD(t,e,n,r,a){var i=t.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!t.involveSeries){n.showPointer(t,e);return}var o=Y8(e,t),u=o.payloadBatch,f=o.snapToValue;u[0]&&a.seriesIndex==null&&st(a,u[0]),!r&&t.snap&&i.containData(f)&&f!=null&&(e=f),n.showPointer(t,e,u),n.showTooltip(t,o,f)}}function Y8(t,e){var n=e.axis,r=n.dim,a=t,i=[],o=Number.MAX_VALUE,u=-1;return k(e.seriesModels,function(f,c){var v=f.getData().mapDimensionsAll(r),d,g;if(f.getAxisTooltipData){var p=f.getAxisTooltipData(v,t,n);g=p.dataIndices,d=p.nestestValue}else{if(g=f.getData().indicesOfNearest(v[0],t,n.type==="category"?.5:null),!g.length)return;d=f.getData().get(v[0],g[0])}if(!(d==null||!isFinite(d))){var y=t-d,_=Math.abs(y);_<=o&&((_<o||y>=0&&u<0)&&(o=_,u=y,a=d,i.length=0),k(g,function(S){i.push({seriesIndex:f.seriesIndex,dataIndexInside:S,dataIndex:f.getData().getRawIndex(S)})}))}}),{payloadBatch:i,snapToValue:a}}function q8(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function X8(t,e,n,r){var a=n.payloadBatch,i=e.axis,o=i.model,u=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var f=e.coordSys.model,c=tc(f),v=t.map[c];v||(v=t.map[c]={coordSysId:f.id,coordSysIndex:f.componentIndex,coordSysType:f.type,coordSysMainType:f.mainType,dataByAxis:[]},t.list.push(v)),v.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:u.get(["label","precision"]),formatter:u.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function Z8(t,e,n){var r=n.axesInfo=[];k(e,function(a,i){var o=a.axisPointerModel.option,u=t[i];u?(!a.useHandle&&(o.status="show"),o.value=u.value,o.seriesDataIndices=(u.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function $8(t,e,n,r){if(Vv(e)||!t.list.length){r({type:"hideTip"});return}var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}function W8(t,e,n){var r=n.getZr(),a="axisPointerLastHighlights",i=DD(r)[a]||{},o=DD(r)[a]={};k(t,function(c,v){var d=c.axisPointerModel.option;d.status==="show"&&c.triggerEmphasis&&k(d.seriesDataIndices,function(g){var p=g.seriesIndex+" | "+g.dataIndex;o[p]=g})});var u=[],f=[];k(i,function(c,v){!o[v]&&f.push(c)}),k(o,function(c,v){!i[v]&&u.push(c)}),f.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:f}),u.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:u})}function Q8(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function ED(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function Vv(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function IO(t){wO.registerAxisPointerClass("CartesianAxisPointer",I8),t.registerComponentModel(k8),t.registerComponentView(U8),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var n=e.axisPointer.link;n&&!ct(n)&&(e.axisPointer.link=[n])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,n){e.getComponent("axisPointer").coordSysAxesInfo=QG(e,n)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},j8)}function mp(t){Xn(c8),Xn(IO)}function K8(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function LD(t,e){var n;return k(e,function(r){t[r]!=null&&t[r]!=="auto"&&(n=!0)}),n}function J8(t,e,n){var r=st({},n),a=t[e],i=n.$action||"merge";i==="merge"?a?(qt(a,r,!0),ul(a,r,{ignoreSize:!0}),bE(n,a),yv(n,a),yv(n,a,"shape"),yv(n,a,"style"),yv(n,a,"extra"),n.clipPath=a.clipPath):t[e]=r:i==="replace"?t[e]=r:i==="remove"&&a&&(t[e]=null)}var BO=["transition","enterFrom","leaveTo"],tU=BO.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function yv(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),!(!t||!e))for(var r=n?BO:tU,a=0;a<r.length;a++){var i=r[a];t[i]==null&&e[i]!=null&&(t[i]=e[i])}}function eU(t,e){if(t&&(t.hv=e.hv=[LD(e,["left","right"]),LD(e,["top","bottom"])],t.type==="group")){var n=t,r=e;n.width==null&&(n.width=r.width=0),n.height==null&&(n.height=r.height=0)}}var nU=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return e.prototype.mergeOption=function(n,r){var a=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,n,r),this.option.elements=a},e.prototype.optionUpdated=function(n,r){var a=this.option,i=(r?a:n).elements,o=a.elements=r?[]:a.elements,u=[];this._flatten(i,u,null);var f=_R(o,u,"normalMerge"),c=this._elOptionsToUpdate=[];k(f,function(v,d){var g=v.newOption;g&&(c.push(g),K8(v,g),J8(o,d,g),eU(o[d],g))},this),a.elements=Re(o,function(v){return v&&delete v.$action,v!=null})},e.prototype._flatten=function(n,r,a){k(n,function(i){if(i){a&&(i.parentOption=a),r.push(i);var o=i.children;o&&o.length&&this._flatten(o,r,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var n=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,n},e.type="graphic",e.defaultOption={elements:[]},e})($t),OD={path:null,compoundPath:null,group:Ie,image:pa,text:Me},Mr=xe(),rU=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(){this._elMap=Ct()},e.prototype.render=function(n,r,a){n!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=n,this._updateElements(n),this._relocate(n,a)},e.prototype._updateElements=function(n){var r=n.useElOptionsToUpdate();if(r){var a=this._elMap,i=this.group,o=n.get("z"),u=n.get("zlevel");k(r,function(f){var c=Un(f.id,null),v=c!=null?a.get(c):null,d=Un(f.parentId,null),g=d!=null?a.get(d):i,p=f.type,y=f.style;p==="text"&&y&&f.hv&&f.hv[1]&&(y.textVerticalAlign=y.textBaseline=y.verticalAlign=y.align=null);var _=f.textContent,S=f.textConfig;if(y&&d8(y,p,!!S,!!_)){var x=p8(y,p);!S&&x.textConfig&&(S=f.textConfig=x.textConfig),!_&&x.textContent&&(_=x.textContent)}var M=aU(f),C=f.$action||"merge",T=C==="merge",D=C==="replace";if(T){var R=!v,E=v;R?E=zD(c,g,f.type,a):(E&&(Mr(E).isNew=!1),A8(E)),E&&(c0(E,M,n,{isInit:R}),ND(E,f,o,u))}else if(D){Fv(v,f,a,n);var z=zD(c,g,f.type,a);z&&(c0(z,M,n,{isInit:!0}),ND(z,f,o,u))}else C==="remove"&&(DO(v,f),Fv(v,f,a,n));var I=a.get(c);if(I&&_)if(T){var N=I.getTextContent();N?N.attr(_):I.setTextContent(new Me(_))}else D&&I.setTextContent(new Me(_));if(I){var L=f.clipPath;if(L){var V=L.type,G=void 0,R=!1;if(T){var j=I.getClipPath();R=!j||Mr(j).type!==V,G=R?H_(V):j}else D&&(R=!0,G=H_(V));I.setClipPath(G),c0(G,L,n,{isInit:R}),k_(G,L.keyframeAnimation,n)}var X=Mr(I);I.setTextConfig(S),X.option=f,iU(I,n,f),hc({el:I,componentModel:n,itemName:I.name,itemTooltipOption:f.tooltip}),k_(I,f.keyframeAnimation,n)}})}},e.prototype._relocate=function(n,r){for(var a=n.option.elements,i=this.group,o=this._elMap,u=r.getWidth(),f=r.getHeight(),c=["x","y"],v=0;v<a.length;v++){var d=a[v],g=Un(d.id,null),p=g!=null?o.get(g):null;if(!(!p||!p.isGroup)){var y=p.parent,_=y===i,S=Mr(p),x=Mr(y);S.width=ve(S.option.width,_?u:x.width)||0,S.height=ve(S.option.height,_?f:x.height)||0}}for(var v=a.length-1;v>=0;v--){var d=a[v],g=Un(d.id,null),p=g!=null?o.get(g):null;if(p){var y=p.parent,x=Mr(y),M=y===i?{width:u,height:f}:{width:x.width,height:x.height},C={},T=o4(p,d,M,null,{hv:d.hv,boundingMode:d.bounding},C);if(!Mr(p).isNew&&T){for(var D=d.transition,R={},E=0;E<c.length;E++){var z=c[E],I=C[z];D&&(al(D)||Yt(D,z)>=0)?R[z]=I:p[z]=I}en(p,R,n,0)}else p.attr(C)}}},e.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(a){Fv(a,Mr(a).option,r,n._lastGraphicModel)}),this._elMap=Ct()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e})(dn);function H_(t){var e=zt(OD,t)?OD[t]:NS(t),n=new e({});return Mr(n).type=t,n}function zD(t,e,n,r){var a=H_(n);return e.add(a),r.set(t,a),Mr(a).id=t,Mr(a).isNew=!0,a}function Fv(t,e,n,r){var a=t&&t.parent;a&&(t.type==="group"&&t.traverse(function(i){Fv(i,e,n,r)}),g8(t,e,r),n.removeKey(Mr(t).id))}function ND(t,e,n,r){t.isGroup||k([["cursor",vl.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(a){var i=a[0];zt(e,i)?t[i]=Pt(e[i],a[1]):t[i]==null&&(t[i]=a[1])}),k(ae(e),function(a){if(a.indexOf("on")===0){var i=e[a];t[a]=Rt(i)?i:null}}),zt(e,"draggable")&&(t.draggable=e.draggable),e.name!=null&&(t.name=e.name),e.id!=null&&(t.id=e.id)}function aU(t){return t=st({},t),k(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(SE),function(e){delete t[e]}),t}function iU(t,e,n){var r=jt(t).eventData;!t.silent&&!t.ignore&&!r&&(r=jt(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),r&&(r.info=n.info)}function oU(t){t.registerComponentModel(nU),t.registerComponentView(rU),t.registerPreprocessor(function(e){var n=e.graphic;ct(n)?!n[0]||!n[0].elements?e.graphic=[{elements:n}]:e.graphic=[e.graphic[0]]:n&&!n.elements&&(e.graphic=[{elements:[n]}])})}var ID=["x","y","radius","angle","single"],lU=["cartesian2d","polar","singleAxis"];function sU(t){var e=t.get("coordinateSystem");return Yt(lU,e)>=0}function Yi(t){return t+"Axis"}function uU(t,e){var n=Ct(),r=[],a=Ct();t.eachComponent({mainType:"dataZoom",query:e},function(v){a.get(v.uid)||u(v)});var i;do i=!1,t.eachComponent("dataZoom",o);while(i);function o(v){!a.get(v.uid)&&f(v)&&(u(v),i=!0)}function u(v){a.set(v.uid,!0),r.push(v),c(v)}function f(v){var d=!1;return v.eachTargetAxis(function(g,p){var y=n.get(g);y&&y[p]&&(d=!0)}),d}function c(v){v.eachTargetAxis(function(d,g){(n.get(d)||n.set(d,[]))[g]=!0})}return r}function kO(t){var e=t.ecModel,n={infoList:[],infoMap:Ct()};return t.eachTargetAxis(function(r,a){var i=e.getComponent(Yi(r),a);if(i){var o=i.getCoordSysModel();if(o){var u=o.uid,f=n.infoMap.get(u);f||(f={model:o,axisModels:[]},n.infoList.push(f),n.infoMap.set(u,f)),f.axisModels.push(i)}}}),n}var d0=(function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},t})(),Cd=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return e.prototype.init=function(n,r,a){var i=BD(n);this.settledOption=i,this.mergeDefaultAndTheme(n,a),this._doInit(i)},e.prototype.mergeOption=function(n){var r=BD(n);qt(this.option,n,!0),qt(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(n){var r=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var a=this.settledOption;k([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var n=this.get("orient",!0),r=this._targetAxisInfoMap=Ct(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(n){var r=!1;return k(ID,function(a){var i=this.getReferringComponents(Yi(a),zB);if(i.specified){r=!0;var o=new d0;k(i.models,function(u){o.add(u.componentIndex)}),n.set(a,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(n,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",u=a.findComponents({mainType:o+"Axis"});f(u,o)}if(i){var u=a.findComponents({mainType:"singleAxis",filter:function(v){return v.get("orient",!0)===r}});f(u,"single")}function f(c,v){var d=c[0];if(d){var g=new d0;if(g.add(d.componentIndex),n.set(v,g),i=!1,v==="x"||v==="y"){var p=d.getReferringComponents("grid",jn).models[0];p&&k(c,function(y){d.componentIndex!==y.componentIndex&&p===y.getReferringComponents("grid",jn).models[0]&&g.add(y.componentIndex)})}}}i&&k(ID,function(c){if(i){var v=a.findComponents({mainType:Yi(c),filter:function(g){return g.get("type",!0)==="category"}});if(v[0]){var d=new d0;d.add(v[0].componentIndex),n.set(c,d),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(r){!n&&(n=r)},this),n==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(n){var r=this._rangePropMode,a=this.get("rangeMode");k([["start","startValue"],["end","endValue"]],function(i,o){var u=n[i[0]]!=null,f=n[i[1]]!=null;u&&!f?r[o]="percent":!u&&f?r[o]="value":a?r[o]=a[o]:u&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(r,a){n==null&&(n=this.ecModel.getComponent(Yi(r),a))},this),n},e.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(a,i){k(a.indexList,function(o){n.call(r,i,o)})})},e.prototype.getAxisProxy=function(n,r){var a=this.getAxisModel(n,r);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(n,r){var a=this._targetAxisInfoMap.get(n);if(a&&a.indexMap[r])return this.ecModel.getComponent(Yi(n),r)},e.prototype.setRawRange=function(n){var r=this.option,a=this.settledOption;k([["start","startValue"],["end","endValue"]],function(i){(n[i[0]]!=null||n[i[1]]!=null)&&(r[i[0]]=a[i[0]]=n[i[0]],r[i[1]]=a[i[1]]=n[i[1]])},this),this._updateRangeUse(n)},e.prototype.setCalculatedRange=function(n){var r=this.option;k(["start","startValue","end","endValue"],function(a){r[a]=n[a]})},e.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},e.prototype.getValueRange=function(n,r){if(n==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(n,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],u=this._targetAxisInfoMap.get(o),f=0;f<u.indexList.length;f++){var c=this.getAxisProxy(o,u.indexList[f]);if(c.hostedBy(this))return c;r||(r=c)}return r},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})($t);function BD(t){var e={};return k(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var PO=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a,i){this.dataZoomModel=n,this.ecModel=r,this.api=a},e.type="dataZoom",e})(dn),xs=k,kD=Ms,fU=(function(){function t(e,n,r,a){this._dimName=e,this._axisIndex=n,this.ecModel=a,this._dataZoomModel=r}return t.prototype.hostedBy=function(e){return this._dataZoomModel===e},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(n){if(sU(n)){var r=Yi(this._dimName),a=n.getReferringComponents(r,jn).models[0];a&&this._axisIndex===a.componentIndex&&e.push(n)}},this),e},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return Ht(this._minMaxSpan)},t.prototype.calculateDataWindow=function(e){var n=this._dataExtent,r=this.getAxisModel(),a=r.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],u=[],f=[],c;xs(["start","end"],function(g,p){var y=e[g],_=e[g+"Value"];i[p]==="percent"?(y==null&&(y=o[p]),_=a.parse(je(y,o,n))):(c=!0,_=_==null?n[p]:a.parse(_),y=je(_,n,o)),f[p]=_==null||isNaN(_)?n[p]:_,u[p]=y==null||isNaN(y)?o[p]:y}),kD(f),kD(u);var v=this._minMaxSpan;c?d(f,u,n,o,!1):d(u,f,o,n,!0);function d(g,p,y,_,S){var x=S?"Span":"ValueSpan";gp(0,g,y,"all",v["min"+x],v["max"+x]);for(var M=0;M<2;M++)p[M]=je(g[M],y,_,!0),S&&(p[M]=a.parse(p[M]))}return{valueWindow:f,percentWindow:u}},t.prototype.reset=function(e){if(e===this._dataZoomModel){var n=this.getTargetSeriesModels();this._dataExtent=cU(this,this._dimName,n),this._updateMinMaxSpan();var r=this.calculateDataWindow(e.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(e,n){if(e!==this._dataZoomModel)return;var r=this._dimName,a=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;if(i==="none")return;xs(a,function(f){var c=f.getData(),v=c.mapDimensionsAll(r);if(v.length){if(i==="weakFilter"){var d=c.getStore(),g=mt(v,function(p){return c.getDimensionIndex(p)},c);c.filterSelf(function(p){for(var y,_,S,x=0;x<v.length;x++){var M=d.get(g[x],p),C=!isNaN(M),T=M<o[0],D=M>o[1];if(C&&!T&&!D)return!0;C&&(S=!0),T&&(y=!0),D&&(_=!0)}return S&&y&&_})}else xs(v,function(p){if(i==="empty")f.setData(c=c.map(p,function(_){return u(_)?_:NaN}));else{var y={};y[p]=o,c.selectRange(y)}});xs(v,function(p){c.setApproximateExtent(o,p)})}});function u(f){return f>=o[0]&&f<=o[1]}},t.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},n=this._dataZoomModel,r=this._dataExtent;xs(["min","max"],function(a){var i=n.get(a+"Span"),o=n.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=je(r[0]+o,r,[0,100],!0):i!=null&&(o=je(i,[0,100],r,!0)-r[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},t.prototype._setAxisModel=function(){var e=this.getAxisModel(),n=this._percentWindow,r=this._valueWindow;if(n){var a=SS(r,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;n[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(a)),n[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(a)),i.freeze()}},t})();function cU(t,e,n){var r=[1/0,-1/0];xs(n,function(o){K6(r,o.getData(),e)});var a=t.getAxisModel(),i=jL(a.axis.scale,a,r).calculate();return[i.min,i.max]}var hU={getTargetSeries:function(t){function e(a){t.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,u){var f=t.getComponent(Yi(o),u);a(o,u,f,i)})})}e(function(a,i,o,u){o.__dzAxisProxy=null});var n=[];e(function(a,i,o,u){o.__dzAxisProxy||(o.__dzAxisProxy=new fU(a,i,u,t),n.push(o.__dzAxisProxy))});var r=Ct();return k(n,function(a){k(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(t,e){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).reset(n)}),n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).filterData(n,e)})}),t.eachComponent("dataZoom",function(n){var r=n.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();n.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function vU(t){t.registerAction("dataZoom",function(e,n){var r=uU(n,e);k(r,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var PD=!1;function HO(t){PD||(PD=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,hU),vU(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function dU(t,e){var n=gc(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new be({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),t}var pU=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e})($t);function VO(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function FO(t){if(Dt.domSupported){for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}}var GO=FO(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),gU=FO(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function UO(t,e){if(!t)return e;e=YS(e,!0);var n=t.indexOf(e);return t=n===-1?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function mU(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?n[e]:null}var yU=UO(gU,"transition"),M1=UO(GO,"transform"),_U="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Dt.transform3dSupported?"will-change:transform;":"");function SU(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function bU(t,e,n){if(!pt(n)||n==="inside")return"";var r=t.get("backgroundColor"),a=t.get("borderWidth");e=sl(e);var i=SU(n),o=Math.max(Math.round(a)*1.5,6),u="",f=M1+":",c;Yt(["left","right"],i)>-1?(u+="top:50%",f+="translateY(-50%) rotate("+(c=i==="left"?-225:-45)+"deg)"):(u+="left:50%",f+="translateX(-50%) rotate("+(c=i==="top"?225:45)+"deg)");var v=c*Math.PI/180,d=o+a,g=d*Math.abs(Math.cos(v))+d*Math.abs(Math.sin(v)),p=Math.round(((g-Math.SQRT2*a)/2+Math.SQRT2*a-(g-d)/2)*100)/100;u+=";"+i+":-"+p+"px";var y=e+" solid "+a+"px;",_=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",u+";"+f+";","border-bottom:"+y,"border-right:"+y,"background-color:"+r+";"];return'<div style="'+_.join("")+'"></div>'}function xU(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,a="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,a+=Dt.transformSupported?","+M1+r:",left"+r+",top"+r),yU+":"+a}function HD(t,e,n){var r=t.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!Dt.transformSupported)return n?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=Dt.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return n?"top:0;left:0;"+M1+":"+o+";":[["top",0],["left",0],[GO,o]]}function wU(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont());var a=Pt(t.get("lineHeight"),Math.round(n*3/2));n&&e.push("line-height:"+a+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,u=t.get("textShadowOffsetX")||0,f=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+u+"px "+f+"px "+o+"px "+i),k(["decoration","align"],function(c){var v=t.get(c);v&&e.push("text-"+c+":"+v)}),e.join(";")}function MU(t,e,n){var r=[],a=t.get("transitionDuration"),i=t.get("backgroundColor"),o=t.get("shadowBlur"),u=t.get("shadowColor"),f=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),v=t.getModel("textStyle"),d=qE(t,"html"),g=f+"px "+c+"px "+o+"px "+u;return r.push("box-shadow:"+g),e&&a&&r.push(xU(a,n)),i&&r.push("background-color:"+i),k(["width","color","radius"],function(p){var y="border-"+p,_=YS(y),S=t.get(_);S!=null&&r.push(y+":"+S+(p==="color"?"":"px"))}),r.push(wU(v)),d!=null&&r.push("padding:"+gc(d).join("px ")+"px"),r.join(";")+";"}function VD(t,e,n,r,a){var i=e&&e.painter;if(n){var o=i&&i.getViewportRoot();o&&Q3(t,o,n,r,a)}else{t[0]=r,t[1]=a;var u=i&&i.getViewportRootOffset();u&&(t[0]+=u.offsetLeft,t[1]+=u.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var CU=(function(){function t(e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Dt.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var a=this._zr=e.getZr(),i=n.appendTo,o=i&&(pt(i)?document.querySelector(i):zs(i)?i:Rt(i)&&i(e.getDom()));VD(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(r),this._api=e,this._container=o;var u=this;r.onmouseenter=function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0},r.onmousemove=function(f){if(f=f||window.event,!u._enterable){var c=a.handler,v=a.painter.getViewportRoot();br(v,f,!0),c.dispatch("mousemove",f)}},r.onmouseleave=function(){u._inContent=!1,u._enterable&&u._show&&u.hideLater(u._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var n=this._api.getDom(),r=mU(n,"position"),a=n.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},t.prototype.show=function(e,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,i=this._styleCoord;r.innerHTML?a.cssText=_U+MU(e,!this._firstShow,this._longHide)+HD(i[0],i[1],!0)+("border-color:"+sl(n)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,n,r,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var u="";if(pt(i)&&r.get("trigger")==="item"&&!VO(r)&&(u=bU(r,a,i)),pt(e))o.innerHTML=e+u;else if(e){o.innerHTML="",ct(e)||(e=[e]);for(var f=0;f<e.length;f++)zs(e[f])&&e[f].parentNode!==o&&o.appendChild(e[f]);if(u&&o.childNodes.length){var c=document.createElement("div");c.innerHTML=u,o.appendChild(c)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,n){if(this.el){var r=this._styleCoord;if(VD(r,this._zr,this._container,e,n),r[0]!=null&&r[1]!=null){var a=this.el.style,i=HD(r[0],r[1]);k(i,function(o){a[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),n*this._zr.getHeight())},t.prototype.hide=function(){var e=this,n=this.el.style;n.visibility="hidden",n.opacity="0",Dt.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Mt(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},t})(),TU=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),GD(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var n=e.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,n,r,a,i){var o=this;_t(e)&&Fn(""),this.el&&this._zr.remove(this.el);var u=r.getModel("textStyle");this.el=new Me({style:{rich:n.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:u.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:qE(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),k(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(c){o.el.style[c]=r.get(c)}),k(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(c){o.el.style[c]=u.get(c)||0}),this._zr.add(this.el);var f=this;this.el.on("mouseover",function(){f._enterable&&(clearTimeout(f._hideTimeout),f._show=!0),f._inContent=!0}),this.el.on("mouseout",function(){f._enterable&&f._show&&f.hideLater(f._hideDelay),f._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,n=this.el.getBoundingRect(),r=FD(e.style);return[n.width+r.left+r.right,n.height+r.top+r.bottom]},t.prototype.moveTo=function(e,n){var r=this.el;if(r){var a=this._styleCoord;GD(a,this._zr,e,n),e=a[0],n=a[1];var i=r.style,o=ki(i.borderWidth||0),u=FD(i);r.x=e+o+u.left,r.y=n+o+u.top,r.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),n*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Mt(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function ki(t){return Math.max(0,t)}function FD(t){var e=ki(t.shadowBlur||0),n=ki(t.shadowOffsetX||0),r=ki(t.shadowOffsetY||0);return{left:ki(e-n),right:ki(e+n),top:ki(e-r),bottom:ki(e+r)}}function GD(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var AU=new be({shape:{x:-1,y:-1,width:2,height:2}}),DU=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){if(!(Dt.node||!r.getDom())){var a=n.getComponent("tooltip"),i=this._renderMode=IB(a.get("renderMode"));this._tooltipContent=i==="richText"?new TU(r):new CU(r,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},e.prototype.render=function(n,r,a){if(!(Dt.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=r,this._api=a;var i=this._tooltipContent;i.update(n),i.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?lp(this,"_updatePosition",50,"fixRate"):dd(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");zO("itemTooltip",this._api,Mt(function(a,i,o){r!=="none"&&(r.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,a=this._api,i=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(n,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(n,r,a,i){if(!(i.from===this.uid||Dt.node||!a.getDom())){var o=UD(i,a);this._ticket="";var u=i.dataByCoordSys,f=OU(i,r,a);if(f){var c=f.el.getBoundingRect().clone();c.applyTransform(f.el.transform),this._tryShow({offsetX:c.x+c.width/2,offsetY:c.y+c.height/2,target:f.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var v=AU;v.x=i.x,v.y=i.y,v.update(),jt(v).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:v},o)}else if(u)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:u,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,a,i))return;var d=NO(i,r),g=d.point[0],p=d.point[1];g!=null&&p!=null&&this._tryShow({offsetX:g,offsetY:p,target:d.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(n,r,a,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(UD(i,a))},e.prototype._manuallyAxisShowTip=function(n,r,a,i){var o=i.seriesIndex,u=i.dataIndex,f=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||u==null||f==null)){var c=r.getSeriesByIndex(o);if(c){var v=c.getData(),d=lf([v.getItemModel(u),c,(c.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:u,position:i.position}),!0}}},e.prototype._tryShow=function(n,r){var a=n.target,i=this._tooltipModel;if(i){this._lastX=n.offsetX,this._lastY=n.offsetY;var o=n.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,n);else if(a){var u=jt(a);if(u.ssrType==="legend")return;this._lastDataByCoordSys=null;var f,c;_f(a,function(v){if(jt(v).dataIndex!=null)return f=v,!0;if(jt(v).tooltipConfig!=null)return c=v,!0},!0),f?this._showSeriesItemTooltip(n,f,r):c?this._showComponentItemTooltip(n,c,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(n,r){var a=n.get("showDelay");r=Mt(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},e.prototype._showAxisTooltip=function(n,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],u=lf([r.tooltipOption],i),f=this._renderMode,c=[],v=Wf("section",{blocks:[],noHeader:!0}),d=[],g=new Hy;k(n,function(M){k(M.dataByAxis,function(C){var T=a.getComponent(C.axisDim+"Axis",C.axisIndex),D=C.value;if(!(!T||D==null)){var R=LO(D,T.axis,a,C.seriesDataIndices,C.valueLabelOpt),E=Wf("section",{header:R,noHeader:!qr(R),sortBlocks:!0,blocks:[]});v.blocks.push(E),k(C.seriesDataIndices,function(z){var I=a.getSeriesByIndex(z.seriesIndex),N=z.dataIndexInside,L=I.getDataParams(N);if(!(L.dataIndex<0)){L.axisDim=C.axisDim,L.axisIndex=C.axisIndex,L.axisType=C.axisType,L.axisId=C.axisId,L.axisValue=g1(T.axis,{value:D}),L.axisValueLabel=R,L.marker=g.makeTooltipMarker("item",sl(L.color),f);var V=HT(I.formatTooltip(N,!0,null)),G=V.frag;if(G){var j=lf([I],i).get("valueFormatter");E.blocks.push(j?st({valueFormatter:j},G):G)}V.text&&d.push(V.text),c.push(L)}})}})}),v.blocks.reverse(),d.reverse();var p=r.position,y=u.get("order"),_=jT(v,g,f,y,a.get("useUTC"),u.get("textStyle"));_&&d.unshift(_);var S=f==="richText"?`
85
+
86
+ `:"<br/>",x=d.join(S);this._showOrMove(u,function(){this._updateContentNotChangedOnAxis(n,c)?this._updatePosition(u,p,o[0],o[1],this._tooltipContent,c):this._showTooltipContent(u,x,c,Math.random()+"",o[0],o[1],p,null,g)})},e.prototype._showSeriesItemTooltip=function(n,r,a){var i=this._ecModel,o=jt(r),u=o.seriesIndex,f=i.getSeriesByIndex(u),c=o.dataModel||f,v=o.dataIndex,d=o.dataType,g=c.getData(d),p=this._renderMode,y=n.positionDefault,_=lf([g.getItemModel(v),c,f&&(f.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),S=_.get("trigger");if(!(S!=null&&S!=="item")){var x=c.getDataParams(v,d),M=new Hy;x.marker=M.makeTooltipMarker("item",sl(x.color),p);var C=HT(c.formatTooltip(v,!1,d)),T=_.get("order"),D=_.get("valueFormatter"),R=C.frag,E=R?jT(D?st({valueFormatter:D},R):R,M,p,T,i.get("useUTC"),_.get("textStyle")):C.text,z="item_"+c.name+"_"+v;this._showOrMove(_,function(){this._showTooltipContent(_,E,x,z,n.offsetX,n.offsetY,n.position,n.target,M)}),a({type:"showTip",dataIndexInside:v,dataIndex:g.getRawIndex(v),seriesIndex:u,from:this.uid})}},e.prototype._showComponentItemTooltip=function(n,r,a){var i=this._renderMode==="html",o=jt(r),u=o.tooltipConfig,f=u.option||{},c=f.encodeHTMLContent;if(pt(f)){var v=f;f={content:v,formatter:v},c=!0}c&&i&&f.content&&(f=Ht(f),f.content=xn(f.content));var d=[f],g=this._ecModel.getComponent(o.componentMainType,o.componentIndex);g&&d.push(g),d.push({formatter:f.content});var p=n.positionDefault,y=lf(d,this._tooltipModel,p?{position:p}:null),_=y.get("content"),S=Math.random()+"",x=new Hy;this._showOrMove(y,function(){var M=Ht(y.get("formatterParams")||{});this._showTooltipContent(y,_,M,S,n.offsetX,n.offsetY,n.position,r,x)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(n,r,a,i,o,u,f,c,v){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var d=this._tooltipContent;d.setEnterable(n.get("enterable"));var g=n.get("formatter");f=f||n.get("position");var p=r,y=this._getNearestPoint([o,u],a,n.get("trigger"),n.get("borderColor")),_=y.color;if(g)if(pt(g)){var S=n.ecModel.get("useUTC"),x=ct(a)?a[0]:a,M=x&&x.axisType&&x.axisType.indexOf("time")>=0;p=g,M&&(p=pc(x.axisValue,p,S)),p=qS(p,a,!0)}else if(Rt(g)){var C=Mt(function(T,D){T===this._ticket&&(d.setContent(D,v,n,_,f),this._updatePosition(n,f,o,u,d,a,c))},this);this._ticket=i,p=g(a,i,C)}else p=g;d.setContent(p,v,n,_,f),d.show(n,_),this._updatePosition(n,f,o,u,d,a,c)}},e.prototype._getNearestPoint=function(n,r,a,i){if(a==="axis"||ct(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!ct(r))return{color:i||r.color||r.borderColor}},e.prototype._updatePosition=function(n,r,a,i,o,u,f){var c=this._api.getWidth(),v=this._api.getHeight();r=r||n.get("position");var d=o.getSize(),g=n.get("align"),p=n.get("verticalAlign"),y=f&&f.getBoundingRect().clone();if(f&&y.applyTransform(f.transform),Rt(r)&&(r=r([a,i],u,o.el,y,{viewSize:[c,v],contentSize:d.slice()})),ct(r))a=ve(r[0],c),i=ve(r[1],v);else if(_t(r)){var _=r;_.width=d[0],_.height=d[1];var S=ti(_,{width:c,height:v});a=S.x,i=S.y,g=null,p=null}else if(pt(r)&&f){var x=LU(r,y,d,n.get("borderWidth"));a=x[0],i=x[1]}else{var x=RU(a,i,o,c,v,g?null:20,p?null:20);a=x[0],i=x[1]}if(g&&(a-=jD(g)?d[0]/2:g==="right"?d[0]:0),p&&(i-=jD(p)?d[1]/2:p==="bottom"?d[1]:0),VO(n)){var x=EU(a,i,o,c,v);a=x[0],i=x[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(n,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===n.length;return o&&k(a,function(u,f){var c=u.dataByAxis||[],v=n[f]||{},d=v.dataByAxis||[];o=o&&c.length===d.length,o&&k(c,function(g,p){var y=d[p]||{},_=g.seriesDataIndices||[],S=y.seriesDataIndices||[];o=o&&g.value===y.value&&g.axisType===y.axisType&&g.axisId===y.axisId&&_.length===S.length,o&&k(_,function(x,M){var C=S[M];o=o&&x.seriesIndex===C.seriesIndex&&x.dataIndex===C.dataIndex}),i&&k(g.seriesDataIndices,function(x){var M=x.seriesIndex,C=r[M],T=i[M];C&&T&&T.data!==C.data&&(o=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!o},e.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},e.prototype.dispose=function(n,r){Dt.node||!r.getDom()||(dd(this,"_updatePosition"),this._tooltipContent.dispose(),P_("itemTooltip",r))},e.type="tooltip",e})(dn);function lf(t,e,n){var r=e.ecModel,a;n?(a=new Se(n,r,r),a=new Se(e.option,a,r)):a=e;for(var i=t.length-1;i>=0;i--){var o=t[i];o&&(o instanceof Se&&(o=o.get("tooltip",!0)),pt(o)&&(o={formatter:o}),o&&(a=new Se(o,a,r)))}return a}function UD(t,e){return t.dispatchAction||Mt(e.dispatchAction,e)}function RU(t,e,n,r,a,i,o){var u=n.getSize(),f=u[0],c=u[1];return i!=null&&(t+f+i+2>r?t-=f+i:t+=i),o!=null&&(e+c+o>a?e-=c+o:e+=o),[t,e]}function EU(t,e,n,r,a){var i=n.getSize(),o=i[0],u=i[1];return t=Math.min(t+o,r)-o,e=Math.min(e+u,a)-u,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function LU(t,e,n,r){var a=n[0],i=n[1],o=Math.ceil(Math.SQRT2*r)+8,u=0,f=0,c=e.width,v=e.height;switch(t){case"inside":u=e.x+c/2-a/2,f=e.y+v/2-i/2;break;case"top":u=e.x+c/2-a/2,f=e.y-i-o;break;case"bottom":u=e.x+c/2-a/2,f=e.y+v+o;break;case"left":u=e.x-a-o,f=e.y+v/2-i/2;break;case"right":u=e.x+c+o,f=e.y+v/2-i/2}return[u,f]}function jD(t){return t==="center"||t==="middle"}function OU(t,e,n){var r=MS(t).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=sc(e,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var u=n.getViewOfComponentModel(o),f;if(u.group.traverse(function(c){var v=jt(c).tooltipConfig;if(v&&v.name===t.name)return f=c,!0}),f)return{componentMainType:a,componentIndex:o.componentIndex,el:f}}}}function yp(t){Xn(IO),t.registerComponentModel(pU),t.registerComponentView(DU),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},hn),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},hn)}var zU=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e})($t),NU=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){if(this.group.removeAll(),!!n.get("show")){var i=this.group,o=n.getModel("textStyle"),u=n.getModel("subtextStyle"),f=n.get("textAlign"),c=Pt(n.get("textBaseline"),n.get("textVerticalAlign")),v=new Me({style:va(o,{text:n.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),d=v.getBoundingRect(),g=n.get("subtext"),p=new Me({style:va(u,{text:g,fill:u.getTextColor(),y:d.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),y=n.get("link"),_=n.get("sublink"),S=n.get("triggerEvent",!0);v.silent=!y&&!S,p.silent=!_&&!S,y&&v.on("click",function(){bT(y,"_"+n.get("target"))}),_&&p.on("click",function(){bT(_,"_"+n.get("subtarget"))}),jt(v).eventData=jt(p).eventData=S?{componentType:"title",componentIndex:n.componentIndex}:null,i.add(v),g&&i.add(p);var x=i.getBoundingRect(),M=n.getBoxLayoutParams();M.width=x.width,M.height=x.height;var C=ti(M,{width:a.getWidth(),height:a.getHeight()},n.get("padding"));f||(f=n.get("left")||n.get("right"),f==="middle"&&(f="center"),f==="right"?C.x+=C.width:f==="center"&&(C.x+=C.width/2)),c||(c=n.get("top")||n.get("bottom"),c==="center"&&(c="middle"),c==="bottom"?C.y+=C.height:c==="middle"&&(C.y+=C.height/2),c=c||"top"),i.x=C.x,i.y=C.y,i.markRedraw();var T={align:f,verticalAlign:c};v.setStyle(T),p.setStyle(T),x=i.getBoundingRect();var D=C.margin,R=n.getItemStyle(["color","opacity"]);R.fill=n.get("backgroundColor");var E=new be({shape:{x:x.x-D[3],y:x.y-D[0],width:x.width+D[1]+D[3],height:x.height+D[0]+D[2],r:n.get("borderRadius")},style:R,subPixelOptimize:!0,silent:!0});i.add(E)}},e.type="title",e})(dn);function _p(t){t.registerComponentModel(zU),t.registerComponentView(NU)}var IU=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},V_=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return e.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),n.selected=n.selected||{},this._updateSelector(n)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},e.prototype._updateSelector=function(n){var r=n.selector,a=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),ct(r)&&k(r,function(i,o){pt(i)&&(i={type:i}),r[o]=qt(i,IU(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a<n.length;a++){var i=n[a].get("name");if(this.isSelected(i)){this.select(i),r=!0;break}}!r&&this.select(n[0].get("name"))}},e.prototype._updateData=function(n){var r=[],a=[];n.eachRawSeries(function(f){var c=f.name;a.push(c);var v;if(f.legendVisualProvider){var d=f.legendVisualProvider,g=d.getAllNames();n.isSeriesFiltered(f)||(a=a.concat(g)),g.length?r=r.concat(g):v=!0}else v=!0;v&&wS(f)&&r.push(f.name)}),this._availableNames=a;var i=this.get("data")||r,o=Ct(),u=mt(i,function(f){return(pt(f)||de(f))&&(f={name:f}),o.get(f.name)?null:(o.set(f.name,!0),new Se(f,this,this.ecModel))},this);this._data=Re(u,function(f){return!!f})},e.prototype.getData=function(){return this._data},e.prototype.select=function(n){var r=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;k(i,function(o){r[o.get("name")]=!1})}r[n]=!0},e.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},e.prototype.toggleSelected=function(n){var r=this.option.selected;r.hasOwnProperty(n)||(r[n]=!0),this[r[n]?"unSelect":"select"](n)},e.prototype.allSelect=function(){var n=this._data,r=this.option.selected;k(n,function(a){r[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;k(n,function(a){var i=a.get("name",!0);r.hasOwnProperty(i)||(r[i]=!0),r[i]=!r[i]})},e.prototype.isSelected=function(n){var r=this.option.selected;return!(r.hasOwnProperty(n)&&!r[n])&&Yt(this._availableNames,n)>=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})($t),ys=_e,F_=k,_v=Ie,jO=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return e.prototype.init=function(){this.group.add(this._contentGroup=new _v),this.group.add(this._selectorGroup=new _v),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(n,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var o=n.get("align"),u=n.get("orient");(!o||o==="auto")&&(o=n.get("left")==="right"&&u==="vertical"?"right":"left");var f=n.get("selector",!0),c=n.get("selectorPosition",!0);f&&(!c||c==="auto")&&(c=u==="horizontal"?"end":"start"),this.renderInner(o,n,r,a,f,u,c);var v=n.getBoxLayoutParams(),d={width:a.getWidth(),height:a.getHeight()},g=n.get("padding"),p=ti(v,d,g),y=this.layoutInner(n,o,p,i,f,c),_=ti(Qt({width:y.width,height:y.height},v),d,g);this.group.x=_.x-y.x,this.group.y=_.y-y.y,this.group.markRedraw(),this.group.add(this._backgroundEl=dU(y,n))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(n,r,a,i,o,u,f){var c=this.getContentGroup(),v=Ct(),d=r.get("selectedMode"),g=[];a.eachRawSeries(function(p){!p.get("legendHoverLink")&&g.push(p.id)}),F_(r.getData(),function(p,y){var _=p.get("name");if(!this.newlineDisabled&&(_===""||_===`
87
+ `)){var S=new _v;S.newline=!0,c.add(S);return}var x=a.getSeriesByName(_)[0];if(!v.get(_))if(x){var M=x.getData(),C=M.getVisual("legendLineStyle")||{},T=M.getVisual("legendIcon"),D=M.getVisual("style"),R=this._createItem(x,_,y,p,r,n,C,D,T,d,i);R.on("click",ys(YD,_,null,i,g)).on("mouseover",ys(G_,x.name,null,i,g)).on("mouseout",ys(U_,x.name,null,i,g)),a.ssr&&R.eachChild(function(E){var z=jt(E);z.seriesIndex=x.seriesIndex,z.dataIndex=y,z.ssrType="legend"}),v.set(_,!0)}else a.eachRawSeries(function(E){if(!v.get(_)&&E.legendVisualProvider){var z=E.legendVisualProvider;if(!z.containName(_))return;var I=z.indexOfName(_),N=z.getItemVisual(I,"style"),L=z.getItemVisual(I,"legendIcon"),V=rr(N.fill);V&&V[3]===0&&(V[3]=.2,N=st(st({},N),{fill:eo(V,"rgba")}));var G=this._createItem(E,_,y,p,r,n,{},N,L,d,i);G.on("click",ys(YD,null,_,i,g)).on("mouseover",ys(G_,null,_,i,g)).on("mouseout",ys(U_,null,_,i,g)),a.ssr&&G.eachChild(function(j){var X=jt(j);X.seriesIndex=E.seriesIndex,X.dataIndex=y,X.ssrType="legend"}),v.set(_,!0)}},this)},this),o&&this._createSelector(o,r,i,u,f)},e.prototype._createSelector=function(n,r,a,i,o){var u=this.getSelectorGroup();F_(n,function(c){var v=c.type,d=new Me({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:v==="all"?"legendAllSelect":"legendInverseSelect",legendId:r.id})}});u.add(d);var g=r.getModel("selectorLabel"),p=r.getModel(["emphasis","selectorLabel"]);vc(d,{normal:g,emphasis:p},{defaultText:c.title}),Uf(d)})},e.prototype._createItem=function(n,r,a,i,o,u,f,c,v,d,g){var p=n.visualDrawType,y=o.get("itemWidth"),_=o.get("itemHeight"),S=o.isSelected(r),x=i.get("symbolRotate"),M=i.get("symbolKeepAspect"),C=i.get("icon");v=C||v||"roundRect";var T=BU(v,i,f,c,p,S,g),D=new _v,R=i.getModel("textStyle");if(Rt(n.getLegendIcon)&&(!C||C==="inherit"))D.add(n.getLegendIcon({itemWidth:y,itemHeight:_,icon:v,iconRotate:x,itemStyle:T.itemStyle,lineStyle:T.lineStyle,symbolKeepAspect:M}));else{var E=C==="inherit"&&n.getData().getVisual("symbol")?x==="inherit"?n.getData().getVisual("symbolRotate"):x:0;D.add(kU({itemWidth:y,itemHeight:_,icon:v,iconRotate:E,itemStyle:T.itemStyle,symbolKeepAspect:M}))}var z=u==="left"?y+5:-5,I=u,N=o.get("formatter"),L=r;pt(N)&&N?L=N.replace("{name}",r??""):Rt(N)&&(L=N(r));var V=S?R.getTextColor():i.get("inactiveColor");D.add(new Me({style:va(R,{text:L,x:z,y:_/2,fill:V,align:I,verticalAlign:"middle"},{inheritColor:V})}));var G=new be({shape:D.getBoundingRect(),style:{fill:"transparent"}}),j=i.getModel("tooltip");return j.get("show")&&hc({el:G,componentModel:o,itemName:r,itemTooltipOption:j.option}),D.add(G),D.eachChild(function(X){X.silent=!0}),G.silent=!d,this.getContentGroup().add(D),Uf(D),D.__legendDataIndex=a,D},e.prototype.layoutInner=function(n,r,a,i,o,u){var f=this.getContentGroup(),c=this.getSelectorGroup();Rf(n.get("orient"),f,n.get("itemGap"),a.width,a.height);var v=f.getBoundingRect(),d=[-v.x,-v.y];if(c.markRedraw(),f.markRedraw(),o){Rf("horizontal",c,n.get("selectorItemGap",!0));var g=c.getBoundingRect(),p=[-g.x,-g.y],y=n.get("selectorButtonGap",!0),_=n.getOrient().index,S=_===0?"width":"height",x=_===0?"height":"width",M=_===0?"y":"x";u==="end"?p[_]+=v[S]+y:d[_]+=g[S]+y,p[1-_]+=v[x]/2-g[x]/2,c.x=p[0],c.y=p[1],f.x=d[0],f.y=d[1];var C={x:0,y:0};return C[S]=v[S]+y+g[S],C[x]=Math.max(v[x],g[x]),C[M]=Math.min(0,g[M]+p[1-_]),C}else return f.x=d[0],f.y=d[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(dn);function BU(t,e,n,r,a,i,o){function u(S,x){S.lineWidth==="auto"&&(S.lineWidth=x.lineWidth>0?2:0),F_(S,function(M,C){S[C]==="inherit"&&(S[C]=x[C])})}var f=e.getModel("itemStyle"),c=f.getItemStyle(),v=t.lastIndexOf("empty",0)===0?"fill":"stroke",d=f.getShallow("decal");c.decal=!d||d==="inherit"?r.decal:w_(d,o),c.fill==="inherit"&&(c.fill=r[a]),c.stroke==="inherit"&&(c.stroke=r[v]),c.opacity==="inherit"&&(c.opacity=(a==="fill"?r:n).opacity),u(c,r);var g=e.getModel("lineStyle"),p=g.getLineStyle();if(u(p,n),c.fill==="auto"&&(c.fill=r.fill),c.stroke==="auto"&&(c.stroke=r.fill),p.stroke==="auto"&&(p.stroke=r.fill),!i){var y=e.get("inactiveBorderWidth"),_=c[v];c.lineWidth=y==="auto"?r.lineWidth>0&&_?2:0:c.lineWidth,c.fill=e.get("inactiveColor"),c.stroke=e.get("inactiveBorderColor"),p.stroke=g.get("inactiveColor"),p.lineWidth=g.get("inactiveWidth")}return{itemStyle:c,lineStyle:p}}function kU(t){var e=t.icon||"roundRect",n=ei(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function YD(t,e,n,r){U_(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:t??e}),G_(t,e,n,r)}function YO(t){for(var e=t.getZr().storage.getDisplayList(),n,r=0,a=e.length;r<a&&!(n=e[r].states.emphasis);)r++;return n&&n.hoverLayer}function G_(t,e,n,r){YO(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function U_(t,e,n,r){YO(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}function PU(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(n){for(var r=0;r<e.length;r++)if(!e[r].isSelected(n.name))return!1;return!0})}function sf(t,e,n){var r=t==="allSelect"||t==="inverseSelect",a={},i=[];n.eachComponent({mainType:"legend",query:e},function(u){r?u[t]():u[t](e.name),qD(u,a),i.push(u.componentIndex)});var o={};return n.eachComponent("legend",function(u){k(a,function(f,c){u[f?"select":"unSelect"](c)}),qD(u,o)}),r?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function qD(t,e){var n=e||{};return k(t.getData(),function(r){var a=r.get("name");if(!(a===`
88
+ `||a==="")){var i=t.isSelected(a);zt(n,a)?n[a]=n[a]&&i:n[a]=i}}),n}function HU(t){t.registerAction("legendToggleSelect","legendselectchanged",_e(sf,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",_e(sf,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",_e(sf,"inverseSelect")),t.registerAction("legendSelect","legendselected",_e(sf,"select")),t.registerAction("legendUnSelect","legendunselected",_e(sf,"unSelect"))}function qO(t){t.registerComponentModel(V_),t.registerComponentView(jO),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,PU),t.registerSubTypeDefaulter("legend",function(){return"plain"}),HU(t)}var VU=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},e.prototype.init=function(n,r,a){var i=mc(n);t.prototype.init.call(this,n,r,a),XD(this,n,i)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),XD(this,this.option,n)},e.type="legend.scroll",e.defaultOption=Kd(V_.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})(V_);function XD(t,e,n){var r=t.getOrient(),a=[1,1];a[r.index]=0,ul(e,n,{type:"box",ignoreSize:!!a})}var ZD=Ie,p0=["width","height"],g0=["x","y"],FU=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new ZD),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new ZD)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(n,r,a,i,o,u,f){var c=this;t.prototype.renderInner.call(this,n,r,a,i,o,u,f);var v=this._controllerGroup,d=r.get("pageIconSize",!0),g=ct(d)?d:[d,d];y("pagePrev",0);var p=r.getModel("pageTextStyle");v.add(new Me({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),y("pageNext",1);function y(_,S){var x=_+"DataIndex",M=Xd(r.get("pageIcons",!0)[r.getOrient().name][S],{onclick:Mt(c._pageGo,c,x,r,i)},{x:-g[0]/2,y:-g[1]/2,width:g[0],height:g[1]});M.name=_,v.add(M)}},e.prototype.layoutInner=function(n,r,a,i,o,u){var f=this.getSelectorGroup(),c=n.getOrient().index,v=p0[c],d=g0[c],g=p0[1-c],p=g0[1-c];o&&Rf("horizontal",f,n.get("selectorItemGap",!0));var y=n.get("selectorButtonGap",!0),_=f.getBoundingRect(),S=[-_.x,-_.y],x=Ht(a);o&&(x[v]=a[v]-_[v]-y);var M=this._layoutContentAndController(n,i,x,c,v,g,p,d);if(o){if(u==="end")S[c]+=M[v]+y;else{var C=_[v]+y;S[c]-=C,M[d]-=C}M[v]+=_[v]+y,S[1-c]+=M[p]+M[g]/2-_[g]/2,M[g]=Math.max(M[g],_[g]),M[p]=Math.min(M[p],_[p]+S[1-c]),f.x=S[0],f.y=S[1],f.markRedraw()}return M},e.prototype._layoutContentAndController=function(n,r,a,i,o,u,f,c){var v=this.getContentGroup(),d=this._containerGroup,g=this._controllerGroup;Rf(n.get("orient"),v,n.get("itemGap"),i?a.width:null,i?null:a.height),Rf("horizontal",g,n.get("pageButtonItemGap",!0));var p=v.getBoundingRect(),y=g.getBoundingRect(),_=this._showController=p[o]>a[o],S=[-p.x,-p.y];r||(S[i]=v[c]);var x=[0,0],M=[-y.x,-y.y],C=Pt(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(_){var T=n.get("pageButtonPosition",!0);T==="end"?M[i]+=a[o]-y[o]:x[i]+=y[o]+C}M[1-i]+=p[u]/2-y[u]/2,v.setPosition(S),d.setPosition(x),g.setPosition(M);var D={x:0,y:0};if(D[o]=_?a[o]:p[o],D[u]=Math.max(p[u],y[u]),D[f]=Math.min(0,y[f]+M[1-i]),d.__rectSize=a[o],_){var R={x:0,y:0};R[o]=Math.max(a[o]-y[o]-C,0),R[u]=D[u],d.setClipPath(new be({shape:R})),d.__rectSize=R[o]}else g.eachChild(function(z){z.attr({invisible:!0,silent:!0})});var E=this._getPageInfo(n);return E.pageIndex!=null&&en(v,{x:E.contentPosition[0],y:E.contentPosition[1]},_?n:null),this._updatePageInfoView(n,E),D},e.prototype._pageGo=function(n,r,a){var i=this._getPageInfo(r)[n];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},e.prototype._updatePageInfoView=function(n,r){var a=this._controllerGroup;k(["pagePrev","pageNext"],function(v){var d=v+"DataIndex",g=r[d]!=null,p=a.childOfName(v);p&&(p.setStyle("fill",g?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),p.cursor=g?"pointer":"default")});var i=a.childOfName("pageText"),o=n.get("pageFormatter"),u=r.pageIndex,f=u!=null?u+1:0,c=r.pageCount;i&&o&&i.setStyle("text",pt(o)?o.replace("{current}",f==null?"":f+"").replace("{total}",c==null?"":c+""):o({current:f,total:c}))},e.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=n.getOrient().index,u=p0[o],f=g0[o],c=this._findTargetItemIndex(r),v=a.children(),d=v[c],g=v.length,p=g?1:0,y={contentPosition:[a.x,a.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return y;var _=T(d);y.contentPosition[o]=-_.s;for(var S=c+1,x=_,M=_,C=null;S<=g;++S)C=T(v[S]),(!C&&M.e>x.s+i||C&&!D(C,x.s))&&(M.i>x.i?x=M:x=C,x&&(y.pageNextDataIndex==null&&(y.pageNextDataIndex=x.i),++y.pageCount)),M=C;for(var S=c-1,x=_,M=_,C=null;S>=-1;--S)C=T(v[S]),(!C||!D(M,C.s))&&x.i<M.i&&(M=x,y.pagePrevDataIndex==null&&(y.pagePrevDataIndex=x.i),++y.pageCount,++y.pageIndex),x=C;return y;function T(R){if(R){var E=R.getBoundingRect(),z=E[f]+R[f];return{s:z,e:z+E[u],i:R.__legendDataIndex}}}function D(R,E){return R.e>=E&&R.s<=E+i}},e.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,u){var f=o.__legendDataIndex;i==null&&f!=null&&(i=u),f===n&&(r=u)}),r??i},e.type="legend.scroll",e})(jO);function GU(t){t.registerAction("legendScroll","legendscroll",function(e,n){var r=e.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(r)})})}function UU(t){Xn(qO),t.registerComponentModel(VU),t.registerComponentView(FU),GU(t)}function XO(t){Xn(qO),Xn(UU)}var jU=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.inside",e.defaultOption=Kd(Cd.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(Cd),C1=xe();function YU(t,e,n){C1(t).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(e.uid);a&&(a.getRange=n)})}function qU(t,e){for(var n=C1(t).coordSysRecordMap,r=n.keys(),a=0;a<r.length;a++){var i=r[a],o=n.get(i),u=o.dataZoomInfoMap;if(u){var f=e.uid,c=u.get(f);c&&(u.removeKey(f),u.keys().length||ZO(n,o))}}}function ZO(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function XU(t,e){var n={model:e,containsPoint:_e($U,e),dispatchAction:_e(ZU,t),dataZoomInfoMap:null,controller:null},r=n.controller=new v8(t.getZr());return k(["pan","zoom","scrollMove"],function(a){r.on(a,function(i){var o=[];n.dataZoomInfoMap.each(function(u){if(i.isAvailableBehavior(u.model.option)){var f=(u.getRange||{})[a],c=f&&f(u.dzReferCoordSysInfo,n.model.mainType,n.controller,i);!u.model.get("disabled",!0)&&c&&o.push({dataZoomId:u.model.id,start:c[0],end:c[1]})}}),o.length&&n.dispatchAction(o)})}),n}function ZU(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function $U(t,e,n,r){return t.coordinateSystem.containPoint([n,r])}function WU(t){var e,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return t.each(function(i){var o=i.model,u=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;r[n+u]>r[n+e]&&(e=u),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function QU(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(e,n){var r=C1(n),a=r.coordSysRecordMap||(r.coordSysRecordMap=Ct());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=kO(i);k(o.infoList,function(u){var f=u.model.uid,c=a.get(f)||a.set(f,XU(n,u.model)),v=c.dataZoomInfoMap||(c.dataZoomInfoMap=Ct());v.set(i.uid,{dzReferCoordSysInfo:u,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,u,f=i.dataZoomInfoMap;if(f){var c=f.keys()[0];c!=null&&(u=f.get(c))}if(!u){ZO(a,i);return}var v=WU(f);o.enable(v.controlType,v.opt),o.setPointerChecker(i.containsPoint),lp(i,"dispatchAction",u.model.get("throttle",!0),"fixRate")})})}var KU=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return e.prototype.render=function(n,r,a){if(t.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),YU(a,n,{pan:Mt(m0.pan,this),zoom:Mt(m0.zoom,this),scrollMove:Mt(m0.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){qU(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(PO),m0={zoom:function(t,e,n,r){var a=this.range,i=a.slice(),o=t.axisModels[0];if(o){var u=y0[e](null,[r.originX,r.originY],o,n,t),f=(u.signal>0?u.pixelStart+u.pixelLength-u.pixel:u.pixel-u.pixelStart)/u.pixelLength*(i[1]-i[0])+i[0],c=Math.max(1/r.scale,0);i[0]=(i[0]-f)*c+f,i[1]=(i[1]-f)*c+f;var v=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(gp(0,i,[0,100],0,v.minSpan,v.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:$D(function(t,e,n,r,a,i){var o=y0[r]([i.oldX,i.oldY],[i.newX,i.newY],e,a,n);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength}),scrollMove:$D(function(t,e,n,r,a,i){var o=y0[r]([0,0],[i.scrollDelta,i.scrollDelta],e,a,n);return o.signal*(t[1]-t[0])*i.scrollDelta})};function $D(t){return function(e,n,r,a){var i=this.range,o=i.slice(),u=e.axisModels[0];if(u){var f=t(o,u,e,n,r,a);if(gp(f,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var y0={grid:function(t,e,n,r,a){var i=n.axis,o={},u=a.model.coordinateSystem.getRect();return t=t||[0,0],i.dim==="x"?(o.pixel=e[0]-t[0],o.pixelLength=u.width,o.pixelStart=u.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u.height,o.pixelStart=u.y,o.signal=i.inverse?-1:1),o},polar:function(t,e,n,r,a){var i=n.axis,o={},u=a.model.coordinateSystem,f=u.getRadiusAxis().getExtent(),c=u.getAngleAxis().getExtent();return t=t?u.pointToCoord(t):[0,0],e=u.pointToCoord(e),n.mainType==="radiusAxis"?(o.pixel=e[0]-t[0],o.pixelLength=f[1]-f[0],o.pixelStart=f[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=i.inverse?-1:1),o},singleAxis:function(t,e,n,r,a){var i=n.axis,o=a.model.coordinateSystem.getRect(),u={};return t=t||[0,0],i.orient==="horizontal"?(u.pixel=e[0]-t[0],u.pixelLength=o.width,u.pixelStart=o.x,u.signal=i.inverse?1:-1):(u.pixel=e[1]-t[1],u.pixelLength=o.height,u.pixelStart=o.y,u.signal=i.inverse?-1:1),u}};function JU(t){HO(t),t.registerComponentModel(jU),t.registerComponentView(KU),QU(t)}var t9=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Kd(Cd.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:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e})(Cd),uf=be,WD=7,e9=1,_0=30,n9=7,ff="horizontal",QD="vertical",r9=5,a9=["line","bar","candlestick","scatter"],i9={easing:"cubicOut",duration:100,delay:0},o9=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return e.prototype.init=function(n,r){this.api=r,this._onBrush=Mt(this._onBrush,this),this._onBrushEnd=Mt(this._onBrushEnd,this)},e.prototype.render=function(n,r,a,i){if(t.prototype.render.apply(this,arguments),lp(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),n.get("show")===!1){this.group.removeAll();return}if(n.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(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){dd(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Ie;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,a=n.get("brushSelect"),i=a?n9:0,o=this._findCoordRect(),u={width:r.getWidth(),height:r.getHeight()},f=this._orient===ff?{right:u.width-o.x-o.width,top:u.height-_0-WD-i,width:o.width,height:_0}:{right:WD,top:o.y,width:_0,height:o.height},c=mc(n.option);k(["right","top","width","height"],function(d){c[d]==="ph"&&(c[d]=f[d])});var v=ti(c,u);this._location={x:v.x,y:v.y},this._size=[v.width,v.height],this._orient===QD&&this._size.reverse()},e.prototype._positionGroup=function(){var n=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),u=this._displayables.sliderGroup,f=(this._dataShadowInfo||{}).otherAxisInverse;u.attr(a===ff&&!o?{scaleY:f?1:-1,scaleX:1}:a===ff&&o?{scaleY:f?1:-1,scaleX:-1}:a===QD&&!o?{scaleY:f?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:f?-1:1,scaleX:-1,rotation:Math.PI/2});var c=n.getBoundingRect([u]);n.x=r.x-c.x,n.y=r.y-c.y,n.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var n=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=n.get("brushSelect");a.add(new uf({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var o=new uf({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:Mt(this._onClickPanel,this)}),u=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",u.on("mousemove",this._onBrush),u.on("mouseup",this._onBrushEnd)):(u.off("mousemove",this._onBrush),u.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,a=this._shadowSize||[],i=n.series,o=i.getRawData(),u=i.getShadowDim&&i.getShadowDim(),f=u&&o.getDimensionInfo(u)?i.getShadowDim():n.otherDim;if(f==null)return;var c=this._shadowPolygonPts,v=this._shadowPolylinePts;if(o!==this._shadowData||f!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var d=o.getDataExtent(f),g=(d[1]-d[0])*.3;d=[d[0]-g,d[1]+g];var p=[0,r[1]],y=[0,r[0]],_=[[r[0],0],[0,0]],S=[],x=y[1]/(o.count()-1),M=0,C=Math.round(o.count()/r[0]),T;o.each([f],function(I,N){if(C>0&&N%C){M+=x;return}var L=I==null||isNaN(I)||I==="",V=L?0:je(I,d,p,!0);L&&!T&&N?(_.push([_[_.length-1][0],0]),S.push([S[S.length-1][0],0])):!L&&T&&(_.push([M,0]),S.push([M,0])),_.push([M,V]),S.push([M,V]),M+=x,T=L}),c=this._shadowPolygonPts=_,v=this._shadowPolylinePts=S}this._shadowData=o,this._shadowDim=f,this._shadowSize=[r[0],r[1]];var D=this.dataZoomModel;function R(I){var N=D.getModel(I?"selectedDataBackground":"dataBackground"),L=new Ie,V=new fc({shape:{points:c},segmentIgnoreThreshold:1,style:N.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),G=new dl({shape:{points:v},segmentIgnoreThreshold:1,style:N.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return L.add(V),L.add(G),L}for(var E=0;E<3;E++){var z=R(E===1);this._displayables.sliderGroup.add(z),this._displayables.dataShadowSegs.push(z)}},e.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return n.eachTargetAxis(function(o,u){var f=n.getAxisProxy(o,u).getTargetSeriesModels();k(f,function(c){if(!a&&!(r!==!0&&Yt(a9,c.get("type"))<0)){var v=i.getComponent(Yi(o),u).axis,d=l9(o),g,p=c.coordinateSystem;d!=null&&p.getOtherAxis&&(g=p.getOtherAxis(v).inverse),d=c.getData().mapDimension(d),a={thisAxis:v,series:c,thisDim:o,otherDim:d,otherAxisInverse:g}}},this)},this),a}},e.prototype._renderHandle=function(){var n=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,u=this._size,f=this.dataZoomModel,c=this.api,v=f.get("borderRadius")||0,d=f.get("brushSelect"),g=r.filler=new uf({silent:d,style:{fill:f.get("fillerColor")},textConfig:{position:"inside"}});o.add(g),o.add(new uf({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:u[0],height:u[1],r:v},style:{stroke:f.get("dataBackgroundColor")||f.get("borderColor"),lineWidth:e9,fill:"rgba(0,0,0,0)"}})),k([0,1],function(C){var T=f.get("handleIcon");!gd[T]&&T.indexOf("path://")<0&&T.indexOf("image://")<0&&(T="path://"+T);var D=ei(T,-1,0,2,2,null,!0);D.attr({cursor:KD(this._orient),draggable:!0,drift:Mt(this._onDragMove,this,C),ondragend:Mt(this._onDragEnd,this),onmouseover:Mt(this._showDataInfo,this,!0),onmouseout:Mt(this._showDataInfo,this,!1),z2:5});var R=D.getBoundingRect(),E=f.get("handleSize");this._handleHeight=ve(E,this._size[1]),this._handleWidth=R.width/R.height*this._handleHeight,D.setStyle(f.getModel("handleStyle").getItemStyle()),D.style.strokeNoScale=!0,D.rectHover=!0,D.ensureState("emphasis").style=f.getModel(["emphasis","handleStyle"]).getItemStyle(),Uf(D);var z=f.get("handleColor");z!=null&&(D.style.fill=z),o.add(a[C]=D);var I=f.getModel("textStyle"),N=f.get("handleLabel")||{},L=N.show||!1;n.add(i[C]=new Me({silent:!0,invisible:!L,style:va(I,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:I.getTextColor(),font:I.getFont()}),z2:10}))},this);var p=g;if(d){var y=ve(f.get("moveHandleSize"),u[1]),_=r.moveHandle=new be({style:f.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:u[1]-.5,height:y}}),S=y*.8,x=r.moveHandleIcon=ei(f.get("moveHandleIcon"),-S/2,-S/2,S,S,"#fff",!0);x.silent=!0,x.y=u[1]+y/2-.5,_.ensureState("emphasis").style=f.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var M=Math.min(u[1]/2,Math.max(y,10));p=r.moveZone=new be({invisible:!0,shape:{y:u[1]-M,height:y+M}}),p.on("mouseover",function(){c.enterEmphasis(_)}).on("mouseout",function(){c.leaveEmphasis(_)}),o.add(_),o.add(x),o.add(p)}p.attr({draggable:!0,cursor:KD(this._orient),drift:Mt(this._onDragMove,this,"all"),ondragstart:Mt(this._showDataInfo,this,!0),ondragend:Mt(this._onDragEnd,this),onmouseover:Mt(this._showDataInfo,this,!0),onmouseout:Mt(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[je(n[0],[0,100],r,!0),je(n[1],[0,100],r,!0)]},e.prototype._updateInterval=function(n,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),u=a.findRepresentativeAxisProxy().getMinMaxSpan(),f=[0,100];gp(r,i,o,a.get("zoomLock")?"all":n,u.minSpan!=null?je(u.minSpan,f,o,!0):null,u.maxSpan!=null?je(u.maxSpan,f,o,!0):null);var c=this._range,v=this._range=Ms([je(i[0],o,f,!0),je(i[1],o,f,!0)]);return!c||c[0]!==v[0]||c[1]!==v[1]},e.prototype._updateView=function(n){var r=this._displayables,a=this._handleEnds,i=Ms(a.slice()),o=this._size;k([0,1],function(p){var y=r.handles[p],_=this._handleHeight;y.attr({scaleX:_/2,scaleY:_/2,x:a[p]+(p?-1:1),y:o[1]/2-_/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var u={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(u),r.moveZone.setShape(u),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",u.x+u.width/2));for(var f=r.dataShadowSegs,c=[0,i[0],i[1],o[0]],v=0;v<f.length;v++){var d=f[v],g=d.getClipPath();g||(g=new be,d.setClipPath(g)),g.setShape({x:c[v],y:0,width:c[v+1]-c[v],height:o[1]})}this._updateDataInfo(n)},e.prototype._updateDataInfo=function(n){var r=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,u=["",""];if(r.get("showDetail")){var f=r.findRepresentativeAxisProxy();if(f){var c=f.getAxisModel().axis,v=this._range,d=n?f.calculateDataWindow({start:v[0],end:v[1]}).valueWindow:f.getDataValueWindow();u=[this._formatLabel(d[0],c),this._formatLabel(d[1],c)]}}var g=Ms(this._handleEnds.slice());p.call(this,0),p.call(this,1);function p(y){var _=kS(a.handles[y].parent,this.group),S=rE(y===0?"right":"left",_),x=this._handleWidth/2+r9,M=qf([g[y]+(y===0?-x:x),this._size[1]/2],_);i[y].setStyle({x:M[0],y:M[1],verticalAlign:o===ff?"middle":S,align:o===ff?S:"center",text:u[y]})}},e.prototype._formatLabel=function(n,r){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=r.getPixelPrecision());var u=n==null||isNaN(n)?"":r.type==="category"||r.type==="time"?r.scale.getLabel({value:Math.round(n)}):n.toFixed(Math.min(o,20));return Rt(i)?i(n,u):pt(i)?i.replace("{value}",u):u},e.prototype._showDataInfo=function(n){var r=this.dataZoomModel.get("handleLabel")||{},a=r.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,u=n||this._dragging?o:a,f=this._displayables,c=f.handleLabels;c[0].attr("invisible",!u),c[1].attr("invisible",!u),f.moveHandle&&this.api[u?"enterEmphasis":"leaveEmphasis"](f.moveHandle,1)},e.prototype._onDragMove=function(n,r,a,i){this._dragging=!0,Is(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),u=qf([r,a],o,!0),f=this._updateInterval(n,u[0]),c=this.dataZoomModel.get("realtime");this._updateView(!c),f&&c&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var n=this.dataZoomModel.get("realtime");!n&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(n){var r=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(n.offsetX,n.offsetY);if(!(a[0]<0||a[0]>r[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,u=this._updateInterval("all",a[0]-o);this._updateView(),u&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(n){var r=n.offsetX,a=n.offsetY;this._brushStart=new Et(r,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(n){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),u=[0,100];this._range=Ms([je(a.x,o,u,!0),je(a.x+a.width,o,u,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(n){this._brushing&&(Is(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},e.prototype._updateBrushRect=function(n,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new uf({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var u=this._brushStart,f=this._displayables.sliderGroup,c=f.transformCoordToLocal(n,r),v=f.transformCoordToLocal(u.x,u.y),d=this._size;c[0]=Math.max(Math.min(d[0],c[0]),0),o.setShape({x:v[0],y:0,width:c[0]-v[0],height:d[1]})},e.prototype._dispatchZoomAction=function(n){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?i9:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var n,r=kO(this.dataZoomModel).infoList;if(!n&&r.length){var a=r[0].model.coordinateSystem;n=a.getRect&&a.getRect()}if(!n){var i=this.api.getWidth(),o=this.api.getHeight();n={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return n},e.type="dataZoom.slider",e})(PO);function l9(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function KD(t){return t==="vertical"?"ns-resize":"ew-resize"}function s9(t){t.registerComponentModel(t9),t.registerComponentView(o9),HO(t)}function u9(t){Xn(JU),Xn(s9)}function JD(t,e,n){var r=Ka.createCanvas(),a=e.getWidth(),i=e.getHeight(),o=r.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",r.setAttribute("data-zr-dom-id",t)),r.width=a*n,r.height=i*n,r}var S0=(function(t){ut(e,t);function e(n,r,a){var i=t.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;a=a||td,typeof n=="string"?o=JD(n,r,a):_t(n)&&(o=n,n=o.id),i.id=n,i.dom=o;var u=o.style;return u&&(fS(o),o.onselectstart=function(){return!1},u.padding="0",u.margin="0",u.borderWidth="0"),i.painter=r,i.dpr=a,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 n=this.dpr;this.domBack=JD("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},e.prototype.createRepaintRects=function(n,r,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],u=this.maxRepaintRectCount,f=!1,c=new Wt(0,0,0,0);function v(M){if(!(!M.isFinite()||M.isZero()))if(o.length===0){var C=new Wt(0,0,0,0);C.copy(M),o.push(C)}else{for(var T=!1,D=1/0,R=0,E=0;E<o.length;++E){var z=o[E];if(z.intersect(M)){var I=new Wt(0,0,0,0);I.copy(z),I.union(M),o[E]=I,T=!0;break}else if(f){c.copy(M),c.union(z);var N=M.width*M.height,L=z.width*z.height,V=c.width*c.height,G=V-N-L;G<D&&(D=G,R=E)}}if(f&&(o[R].union(M),T=!0),!T){var C=new Wt(0,0,0,0);C.copy(M),o.push(C)}f||(f=o.length>=u)}}for(var d=this.__startIndex;d<this.__endIndex;++d){var g=n[d];if(g){var p=g.shouldBePainted(a,i,!0,!0),y=g.__isRendered&&(g.__dirty&nr||!p)?g.getPrevPaintRect():null;y&&v(y);var _=p&&(g.__dirty&nr||!g.__isRendered)?g.getPaintRect():null;_&&v(_)}}for(var d=this.__prevStartIndex;d<this.__prevEndIndex;++d){var g=r[d],p=g&&g.shouldBePainted(a,i,!0,!0);if(g&&(!p||!g.__zr)&&g.__isRendered){var y=g.getPrevPaintRect();y&&v(y)}}var S;do{S=!1;for(var d=0;d<o.length;){if(o[d].isZero()){o.splice(d,1);continue}for(var x=d+1;x<o.length;)o[d].intersect(o[x])?(S=!0,o[d].union(o[x]),o.splice(x,1)):x++;d++}}while(S);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(n,r){var a=this.dpr,i=this.dom,o=i.style,u=this.domBack;o&&(o.width=n+"px",o.height=r+"px"),i.width=n*a,i.height=r*a,u&&(u.width=n*a,u.height=r*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(n,r,a){var i=this.dom,o=this.ctx,u=i.width,f=i.height;r=r||this.clearColor;var c=this.motionBlur&&!n,v=this.lastFrameAlpha,d=this.dpr,g=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,u/d,f/d));var p=this.domBack;function y(_,S,x,M){if(o.clearRect(_,S,x,M),r&&r!=="transparent"){var C=void 0;if(nc(r)){var T=r.global||r.__width===x&&r.__height===M;C=T&&r.__canvasGradient||b_(o,r,{x:0,y:0,width:x,height:M}),r.__canvasGradient=C,r.__width=x,r.__height=M}else I2(r)&&(r.scaleX=r.scaleX||d,r.scaleY=r.scaleY||d,C=x_(o,r,{dirty:function(){g.setUnpainted(),g.painter.refresh()}}));o.save(),o.fillStyle=C||r,o.fillRect(_,S,x,M),o.restore()}c&&(o.save(),o.globalAlpha=v,o.drawImage(p,_,S,x,M),o.restore())}!a||c?y(0,0,u,f):a.length&&k(a,function(_){y(_.x*d,_.y*d,_.width*d,_.height*d)})},e})(Wr),t2=1e5,Yo=314159,Sv=.01,f9=.001;function c9(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function h9(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var v9=(function(){function t(e,n,r,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=r=st({},r||{}),this.dpr=r.devicePixelRatio||td,this._singleCanvas=i,this.root=e;var o=e.style;o&&(fS(e),e.innerHTML=""),this.storage=n;var u=this._zlevelList;this._prevDisplayList=[];var f=this._layers;if(i){var v=e,d=v.width,g=v.height;r.width!=null&&(d=r.width),r.height!=null&&(g=r.height),this.dpr=r.devicePixelRatio||1,v.width=d*this.dpr,v.height=g*this.dpr,this._width=d,this._height=g;var p=new S0(v,this,this.dpr);p.__builtin__=!0,p.initContext(),f[Yo]=p,p.zlevel=Yo,u.push(Yo),this._domRoot=e}else{this._width=ov(e,0,r),this._height=ov(e,1,r);var c=this._domRoot=h9(this._width,this._height);e.appendChild(c)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var n=this.storage.getDisplayList(!0),r=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,r,e,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],u=this._layers[o];if(!u.__builtin__&&u.refresh){var f=i===0?this._backgroundColor:null;u.refresh(f)}}return this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var n=e.length,r=this._hoverlayer;if(r&&r.clear(),!!n){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<n;o++){var u=e[o];u.__inHover&&(r||(r=this._hoverlayer=this.getLayer(t2)),i||(i=r.ctx,i.save()),Wo(i,u,a,o===n-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(t2)},t.prototype.paintOne=function(e,n){e1(e,n)},t.prototype._paintList=function(e,n,r,a){if(this._redrawId===a){r=r||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,n,r),o=i.finished,u=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),u&&this._paintHoverList(e),o)this.eachLayer(function(c){c.afterBrush&&c.afterBrush()});else{var f=this;$v(function(){f._paintList(e,n,r,a)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(Yo).ctx,n=this._domRoot.width,r=this._domRoot.height;e.clearRect(0,0,n,r),this.eachBuiltinLayer(function(a){a.virtual&&e.drawImage(a.dom,0,0,n,r)})},t.prototype._doPaintList=function(e,n,r){for(var a=this,i=[],o=this._opts.useDirtyRect,u=0;u<this._zlevelList.length;u++){var f=this._zlevelList[u],c=this._layers[f];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||r)&&i.push(c)}for(var v=!0,d=!1,g=function(_){var S=i[_],x=S.ctx,M=o&&S.createRepaintRects(e,n,p._width,p._height),C=r?S.__startIndex:S.__drawIndex,T=!r&&S.incremental&&Date.now,D=T&&Date.now(),R=S.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(S.__startIndex===S.__endIndex)S.clear(!1,R,M);else if(C===S.__startIndex){var E=e[C];(!E.incremental||!E.notClear||r)&&S.clear(!1,R,M)}C===-1&&(console.error("For some unknown reason. drawIndex is -1"),C=S.__startIndex);var z,I=function(G){var j={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(z=C;z<S.__endIndex;z++){var X=e[z];if(X.__inHover&&(d=!0),a._doPaintEl(X,S,o,G,j,z===S.__endIndex-1),T){var H=Date.now()-D;if(H>15)break}}j.prevElClipPaths&&x.restore()};if(M)if(M.length===0)z=S.__endIndex;else for(var N=p.dpr,L=0;L<M.length;++L){var V=M[L];x.save(),x.beginPath(),x.rect(V.x*N,V.y*N,V.width*N,V.height*N),x.clip(),I(V),x.restore()}else x.save(),I(),x.restore();S.__drawIndex=z,S.__drawIndex<S.__endIndex&&(v=!1)},p=this,y=0;y<i.length;y++)g(y);return Dt.wxa&&k(this._layers,function(_){_&&_.ctx&&_.ctx.draw&&_.ctx.draw()}),{finished:v,needsRefreshHover:d}},t.prototype._doPaintEl=function(e,n,r,a,i,o){var u=n.ctx;if(r){var f=e.getPaintRect();(!a||f&&f.intersect(a))&&(Wo(u,e,i,o),e.setPrevPaintRect(f))}else Wo(u,e,i,o)},t.prototype.getLayer=function(e,n){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Yo);var r=this._layers[e];return r||(r=new S0("zr_"+e,this,this.dpr),r.zlevel=e,r.__builtin__=!0,this._layerConfig[e]?qt(r,this._layerConfig[e],!0):this._layerConfig[e-Sv]&&qt(r,this._layerConfig[e-Sv],!0),n&&(r.virtual=n),this.insertLayer(e,r),r.initContext()),r},t.prototype.insertLayer=function(e,n){var r=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,u=null,f=-1;if(!r[e]&&c9(n)){if(i>0&&e>a[0]){for(f=0;f<i-1&&!(a[f]<e&&a[f+1]>e);f++);u=r[a[f]]}if(a.splice(f+1,0,e),r[e]=n,!n.virtual)if(u){var c=u.dom;c.nextSibling?o.insertBefore(n.dom,c.nextSibling):o.appendChild(n.dom)}else o.firstChild?o.insertBefore(n.dom,o.firstChild):o.appendChild(n.dom);n.painter||(n.painter=this)}},t.prototype.eachLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var i=r[a];e.call(n,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var i=r[a],o=this._layers[i];o.__builtin__&&e.call(n,o,i)}},t.prototype.eachOtherLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var i=r[a],o=this._layers[i];o.__builtin__||e.call(n,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(d,g){d.__dirty=d.__used=!1});function n(d){i&&(i.__endIndex!==d&&(i.__dirty=!0),i.__endIndex=d)}if(this._singleCanvas)for(var r=1;r<e.length;r++){var a=e[r];if(a.zlevel!==e[r-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,u,f;for(f=0;f<e.length;f++){var a=e[f],c=a.zlevel,v=void 0;u!==c&&(u=c,o=0),a.incremental?(v=this.getLayer(c+f9,this._needsManuallyCompositing),v.incremental=!0,o=1):v=this.getLayer(c+(o>0?Sv:0),this._needsManuallyCompositing),v.__builtin__||Od("ZLevel "+c+" has been used by unkown layer "+v.id),v!==i&&(v.__used=!0,v.__startIndex!==f&&(v.__dirty=!0),v.__startIndex=f,v.incremental?v.__drawIndex=-1:v.__drawIndex=f,n(f),i=v),a.__dirty&nr&&!a.__inHover&&(v.__dirty=!0,v.incremental&&v.__drawIndex<0&&(v.__drawIndex=f))}n(f),this.eachBuiltinLayer(function(d,g){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,k(this._layers,function(n){n.setUnpainted()})},t.prototype.configLayer=function(e,n){if(n){var r=this._layerConfig;r[e]?qt(r[e],n,!0):r[e]=n;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===e||i===e+Sv){var o=this._layers[i];qt(o,r[e],!0)}}}},t.prototype.delLayer=function(e){var n=this._layers,r=this._zlevelList,a=n[e];a&&(a.dom.parentNode.removeChild(a.dom),delete n[e],r.splice(Yt(r,e),1))},t.prototype.resize=function(e,n){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var a=this._opts,i=this.root;if(e!=null&&(a.width=e),n!=null&&(a.height=n),e=ov(i,0,a),n=ov(i,1,a),r.style.display="",this._width!==e||n!==this._height){r.style.width=e+"px",r.style.height=n+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,n);this.refresh(!0)}this._width=e,this._height=n}else{if(e==null||n==null)return;this._width=e,this._height=n,this.getLayer(Yo).resize(e,n)}return this},t.prototype.clearLayer=function(e){var n=this._layers[e];n&&n.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Yo].dom;var n=new S0("image",this,e.pixelRatio||this.dpr);n.initContext(),n.clear(!1,e.backgroundColor||this._backgroundColor);var r=n.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=n.dom.width,i=n.dom.height;this.eachLayer(function(d){d.__builtin__?r.drawImage(d.dom,0,0,a,i):d.renderToCanvas&&(r.save(),d.renderToCanvas(r),r.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},u=this.storage.getDisplayList(!0),f=0,c=u.length;f<c;f++){var v=u[f];Wo(r,v,o,f===c-1)}return n.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t})();function Sp(t){t.registerPainter("canvas",v9)}function $O(t){let e=0;for(let n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n)|0;return Math.abs(e)}const e2=["#6366f1","#f59e0b","#10b981","#ef4444","#8b5cf6","#ec4899","#06b6d4","#f97316","#14b8a6","#a855f7","#84cc16","#e879f9","#22d3ee","#fb923c","#34d399","#c084fc","#fbbf24","#2dd4bf","#f472b6","#a3e635"],n2={"gpt-5.4":"#f472b6","gpt-5.3-codex":"#f59e0b","gpt-5.3-codex-spark":"#fbbf24","gpt-5.2-codex":"#6366f1","gpt-5.2":"#818cf8","gpt-5.1-codex-mini":"#a78bfa","gpt-4.1":"#06b6d4","gpt-4.1-mini":"#14b8a6","gpt-4.1-nano":"#2dd4bf",o3:"#a855f7","o3-mini":"#c084fc","o4-mini":"#e879f9","gpt-4o":"#ec4899","gpt-4o-mini":"#22d3ee","gpt-4-turbo":"#ef4444","gpt-4":"#f97316","gpt-3.5-turbo":"#84cc16",unknown:"#475569"},d9={review:"#06b6d4",exploration:"#f97316",planning:"#eab308",memory:"#ec4899",generic:"#64748b"},p9={low:"#10b981",medium:"#06b6d4",high:"#f59e0b",xhigh:"#a855f7","x-high":"#a855f7",unknown:"#64748b"};function g9(t){if(!t)return"unknown";const e=String(t).toLowerCase().trim().replace(/-/g,"");return e==="low"?"low":e==="medium"?"medium":e==="high"?"high":e==="xhigh"?"xhigh":e==="unknown"?"unknown":e}function Td(t){const e=$O(t)%e2.length;return e2[e]}function j_(t){const e=t.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i);if(!e)return"#ffffff";const n=parseInt(e[1],16)/255,r=parseInt(e[2],16)/255,a=parseInt(e[3],16)/255;return .2126*n+.7152*r+.0722*a>.5?"#1f2937":"#ffffff"}function m9(t,e,n){e/=100,n/=100;const r=(1-Math.abs(2*n-1))*e,a=r*(1-Math.abs(t/60%2-1)),i=n-r/2;let o=0,u=0,f=0;t<60?(o=r,u=a):t<120?(o=a,u=r):t<180?(u=r,f=a):t<240?(u=a,f=r):t<300?(o=a,f=r):(o=r,f=a);const c=v=>Math.round((v+i)*255).toString(16).padStart(2,"0");return"#"+c(o)+c(u)+c(f)}function da(t){if(n2[t])return n2[t];const e=$O(t)%300;return m9(e,72,62)}function cl(t){return d9[t]||"#64748b"}function bv(t){const e=g9(t);return p9[e]??"#64748b"}function yc(t){if(t==null||!Number.isFinite(t))return"—";const e=Math.abs(t);return e>=1e9?b0(t,1e9,"B"):e>=1e6?b0(t,1e6,"M"):e>=1e3?b0(t,1e3,"K"):Math.round(t).toLocaleString()}function b0(t,e,n){const r=t/e,i=Math.abs(r)>=100?0:1;return`${r.toFixed(i)}${n}`}const yn="auto",Ye={speed:1,main:{presentationDurationMs:190,chartAppearDurationMs:0,chartUpdateDurationMs:200,easing:"linear",easingUpdate:"linear"},tail:{startPercent:.85,durationScale:100,easing:"cubicOut"},daily:{chartAppearDurationMs:yn,chartUpdateDurationMs:30,easing:yn,easingUpdate:yn},bars:{chartAppearDurationMs:yn,chartUpdateDurationMs:20,easing:yn,easingUpdate:yn},donuts:{chartAppearDurationMs:yn,chartUpdateDurationMs:yn,easing:yn,easingUpdate:"linear",seriesAnimation:!1},heatmap:{popDurationMs:380,settleThreshold:.998,intensityRiseThreshold:.08,whiteThreshold:.88,nearMaxRatio:.985}},bp={animationDuration:750,animationDurationUpdate:220,animationEasing:"cubicOut",animationEasingUpdate:"cubicOut"},xp={show:!0,animationDuration:250,animationDurationUpdate:220,animationDelay:250,animationDelayUpdate:180,animationEasing:"cubicOut",animationEasingUpdate:"cubicOut"},r2={...bp,animationDurationUpdate:200,animationDelayUpdate:0,animationEasingUpdate:"cubicOut"},y9={animationDuration:700,animationDurationUpdate:220,animationDelay:250,animationDelayUpdate:140,animationEasing:"cubicOut",animationEasingUpdate:"cubicOut"},_9={...xp,animationDelay:950,animationDelayUpdate:360};function S9(t){return Number.isFinite(t)&&t>0?t:1}function WO(t){return Math.max(0,Math.round(t/S9(Ye.speed)))}function a2(t,e){return t===yn?WO(e):t}function i2(t,e){return t===yn?e:t}function wp(t){return{animation:!0,animationDuration:a2(t.chartAppearDurationMs,Ye.main.chartAppearDurationMs),animationDurationUpdate:a2(t.chartUpdateDurationMs,Ye.main.chartUpdateDurationMs),animationEasing:i2(t.easing,Ye.main.easing),animationEasingUpdate:i2(t.easingUpdate,Ye.main.easingUpdate)}}const T1=WO(Ye.main.presentationDurationMs);function QO(t=0,e=!1){const n=T1,r=Ye.tail;if(!e)return n;const a=Math.min(Math.max(r.startPercent,0),.999),i=Math.min(Math.max(t||0,0),1);if(i<=a)return n;const o=(i-a)/Math.max(1-a,.001),u=Math.round(n*Math.max(r.durationScale,1));return Math.round(n+(u-n)*w9(o))}function Y_(t=0,e=!1){const n=Ye.tail;if(!e)return"linear";const r=Math.min(Math.max(n.startPercent,0),.999);return Math.min(Math.max(t||0,0),1)<=r?"linear":n.easing||"cubicOut"}function Ad(t=0,e=!1){const n=Ye.tail;if(!e)return!1;const r=Math.min(Math.max(n.startPercent,0),.999);return Math.min(Math.max(t||0,0),1)>r}wp({chartAppearDurationMs:yn,chartUpdateDurationMs:yn,easing:yn,easingUpdate:yn});const b9=wp(Ye.daily),x9=wp(Ye.bars),o2=wp(Ye.donuts),l2=Ye.donuts.seriesAnimation;function w9(t){const e=Math.min(Math.max(t,0),1);return 1-Math.pow(1-e,3)}function Hn(t,e,n){return t+(e-t)*n}function Ot(t){return Number.isFinite(t)?t:0}function x0(t,e){var n,r;return Array.isArray(t==null?void 0:t.data)?t.data:Array.isArray(t)?t:((n=t==null?void 0:t.data)==null?void 0:n[e])||((r=t==null?void 0:t.data)==null?void 0:r.total)||[]}function M9(t,e){return e!=null&&e.length?t==="d7"?e.slice(-7):t==="d30"?e.slice(-30):e:[]}function w0(t,e,n){return t.map(r=>({key:(r==null?void 0:r[e])||"",label:(r==null?void 0:r[n])||"",tokens:Ot(r==null?void 0:r.tokens)})).filter(r=>r.key)}function C9(t,e){const n=Array.isArray(t==null?void 0:t.data)?t.data:Array.isArray(t)?t:[];if(!n.length)return{dates:[],series:[]};const r=n.map(f=>f.date),a=M9(e,r),i=new Map(n.map(f=>[f.date,f])),o=new Set;for(const f of a){const c=i.get(f);for(const v of Object.keys((c==null?void 0:c.by_model)||{}))o.add(v)}const u=[...o].map(f=>({key:f,label:f,data:a.map(c=>{var v,d,g;return Ot((g=(d=(v=i.get(c))==null?void 0:v.by_model)==null?void 0:d[f])==null?void 0:g.tokens)})}));return{dates:a,series:u}}function T9(t){const e=t!=null&&t.data&&typeof t.data=="object"?t.data:{},n={};for(const[r,a]of Object.entries(e))n[r]={tokens:Ot(a==null?void 0:a.tokens),elapsed:Ot(a==null?void 0:a.elapsed),cost:Ot(a==null?void 0:a.cost)};return n}function Mp({overview:t,heatmap:e,daily:n,families:r,repos:a,models:i,range:o}){const u=t==null?void 0:t.data;if(!u)return{ready:!0,stats:{tokens:0,elapsed:0,cost:0,sessions:0,enriched:0,priced:0,exactPriced:0,fallbackPriced:0,unpriced:0,days:1},topRepos:[],topFamilies:[],topModels:[],daily:{dates:[],series:[]},heatmap:{}};const f=(u==null?void 0:u[o])||(u==null?void 0:u.total)||{},c=f.coverage||{},v=Ot(c.thread_rows??c.total),d=Ot(c.root_sessions??f.total_sessions),g=Ot(c.priced),p=Ot(c.priced_exact),y=Ot(c.priced_fallback),_=Ot(c.unpriced??Math.max(v-g,0)),S=f.date_range,x=(S==null?void 0:S.from)!=null&&(S==null?void 0:S.to)!=null?Math.max(1,Math.ceil((S.to-S.from)/86400)):1;return{ready:!0,stats:{tokens:Ot(f.total_tokens),elapsed:Ot(f.total_elapsed_seconds),cost:Ot(f.total_cost),sessions:d,enriched:Ot(c.enriched),priced:g,exactPriced:p,fallbackPriced:y,unpriced:_,days:x},topRepos:w0(x0(a,o).slice(0,6),"repo_label","repo_label"),topFamilies:w0(x0(r,o),"family","family"),topModels:w0(x0(i,o).slice(0,6),"model_name","model_name"),daily:C9(n,o),heatmap:T9(e)}}function M0(t,e,n){const r=new Map((t||[]).map(f=>[f.key,f])),a=new Map((e||[]).map(f=>[f.key,f])),i=[],o=new Set;for(const f of e||[])o.has(f.key)||(o.add(f.key),i.push(f.key));for(const f of t||[])o.has(f.key)||(o.add(f.key),i.push(f.key));const u=[];for(const f of i){const c=r.get(f),v=a.get(f),d=(v==null?void 0:v.label)||(c==null?void 0:c.label)||f,g=Hn(Ot(c==null?void 0:c.tokens),Ot(v==null?void 0:v.tokens),n);g<=.001&&!v||u.push({key:f,label:d,tokens:g})}return u}function A9(t,e,n){var f;const r=((f=e==null?void 0:e.dates)!=null&&f.length?e.dates:(t==null?void 0:t.dates)||[]).slice(),a=new Map(((t==null?void 0:t.series)||[]).map(c=>[c.key,c])),i=new Map(((e==null?void 0:e.series)||[]).map(c=>[c.key,c])),o=new Set([...a.keys(),...i.keys()]),u=[];for(const c of o){const v=a.get(c),d=i.get(c),g=new Map(((v==null?void 0:v.data)||[]).map((_,S)=>{var x;return[(x=t==null?void 0:t.dates)==null?void 0:x[S],_]})),p=new Map(((d==null?void 0:d.data)||[]).map((_,S)=>{var x;return[(x=e==null?void 0:e.dates)==null?void 0:x[S],_]})),y=r.map(_=>Hn(Ot(g.get(_)),Ot(p.get(_)),n));y.every(_=>_<=.001)&&!d||u.push({key:c,label:(d==null?void 0:d.label)||(v==null?void 0:v.label)||c,data:y})}return{dates:r,series:u}}function D9(t,e,n){const r=new Set([...Object.keys(t||{}),...Object.keys(e||{})]),a={};for(const i of r){const o=t==null?void 0:t[i],u=e==null?void 0:e[i];a[i]={tokens:Hn(Ot(o==null?void 0:o.tokens),Ot(u==null?void 0:u.tokens),n),elapsed:Hn(Ot(o==null?void 0:o.elapsed),Ot(u==null?void 0:u.elapsed),n),cost:Hn(Ot(o==null?void 0:o.cost),Ot(u==null?void 0:u.cost),n)}}return a}function Ts(t,e,n){var r,a,i,o,u,f,c,v,d,g,p,y,_,S,x,M,C,T,D;return{ready:e.ready,stats:{tokens:Hn(Ot((r=t==null?void 0:t.stats)==null?void 0:r.tokens),Ot((a=e==null?void 0:e.stats)==null?void 0:a.tokens),n),elapsed:Hn(Ot((i=t==null?void 0:t.stats)==null?void 0:i.elapsed),Ot((o=e==null?void 0:e.stats)==null?void 0:o.elapsed),n),cost:Hn(Ot((u=t==null?void 0:t.stats)==null?void 0:u.cost),Ot((f=e==null?void 0:e.stats)==null?void 0:f.cost),n),sessions:Hn(Ot((c=t==null?void 0:t.stats)==null?void 0:c.sessions),Ot((v=e==null?void 0:e.stats)==null?void 0:v.sessions),n),enriched:Hn(Ot((d=t==null?void 0:t.stats)==null?void 0:d.enriched),Ot((g=e==null?void 0:e.stats)==null?void 0:g.enriched),n),priced:Hn(Ot((p=t==null?void 0:t.stats)==null?void 0:p.priced),Ot((y=e==null?void 0:e.stats)==null?void 0:y.priced),n),exactPriced:Hn(Ot((_=t==null?void 0:t.stats)==null?void 0:_.exactPriced),Ot((S=e==null?void 0:e.stats)==null?void 0:S.exactPriced),n),fallbackPriced:Hn(Ot((x=t==null?void 0:t.stats)==null?void 0:x.fallbackPriced),Ot((M=e==null?void 0:e.stats)==null?void 0:M.fallbackPriced),n),unpriced:Hn(Ot((C=t==null?void 0:t.stats)==null?void 0:C.unpriced),Ot((T=e==null?void 0:e.stats)==null?void 0:T.unpriced),n),days:Ot((D=e==null?void 0:e.stats)==null?void 0:D.days)||1},topRepos:M0(t==null?void 0:t.topRepos,e==null?void 0:e.topRepos,n),topFamilies:M0(t==null?void 0:t.topFamilies,e==null?void 0:e.topFamilies,n),topModels:M0(t==null?void 0:t.topModels,e==null?void 0:e.topModels,n),daily:A9(t==null?void 0:t.daily,e==null?void 0:e.daily,n),heatmap:D9(t==null?void 0:t.heatmap,e==null?void 0:e.heatmap,n)}}function R9(t,{duration:e=T1,onSettledChange:n,ingestProgress:r=0,isIngestActive:a=!1}={}){const i=lt.useMemo(()=>Mp(t),[t.overview,t.heatmap,t.daily,t.families,t.repos,t.models,t.range]),[o,u]=lt.useState(i),f=lt.useRef(i),c=lt.useRef(i),v=lt.useRef(0),d=lt.useRef(0),g=lt.useRef(o),p=lt.useRef(!0),y=lt.useRef(n),_=lt.useRef(0),S=lt.useRef(i),x=lt.useRef(i),M=lt.useRef("smooth");lt.useEffect(()=>{y.current=n},[n]);const C=T=>{var D;p.current!==T&&(p.current=T,(D=y.current)==null||D.call(y,T))};return lt.useEffect(()=>{g.current=o},[o]),lt.useEffect(()=>{if(c.current=i,e<=0){f.current=i,g.current=i,u(i),C(!0);return}C(!1);const D=Ad(r,a)?"tail":"smooth";if(M.current!==D&&(M.current=D,_.current=0),D==="tail"&&(S.current=f.current,x.current=i,_.current=0),v.current)return;const R=.002,E=z=>{d.current||(d.current=z);const I=Math.max(1,z-d.current);d.current=z;const N=QO(r,a)||e,L=c.current,V=f.current,j=Ad(r,a)?"tail":"smooth";M.current!==j&&(M.current=j,_.current=0);let X,H;if(j==="tail"){x.current!==L&&(S.current=V,x.current=L,_.current=z),_.current||(_.current=z);const Q=Math.max(0,z-_.current),Z=Math.min(1,Q/Math.max(N,1)),J=s2(Z,Y_(r,a));X=Ts(S.current,x.current,J),H=Z>=1||u2(X,L)<=R}else{const Q=1-Math.exp(-I/Math.max(N,1)),Z=s2(Q,Y_(r,a));X=Ts(V,L,Z),H=Z>=.999||u2(X,L)<=R}if(f.current=X,H){f.current=L,g.current=L,u(L),C(!0),v.current=0,d.current=0,_.current=0,S.current=L,x.current=L;return}g.current=X,u(X),v.current=requestAnimationFrame(E)};v.current=requestAnimationFrame(E)},[i,e,r,a]),lt.useEffect(()=>()=>{v.current&&cancelAnimationFrame(v.current),v.current=0,d.current=0},[]),o}function s2(t,e){const n=Math.min(Math.max(t,0),1);return e==="cubicOut"?1-Math.pow(1-n,3):n}function u2(t,e){var u,f,c,v,d,g,p,y,_;if(!t||!e)return 0;const n=Math.max(Math.abs((((u=t.stats)==null?void 0:u.tokens)||0)-(((f=e.stats)==null?void 0:f.tokens)||0)),Math.abs((((c=t.stats)==null?void 0:c.elapsed)||0)-(((v=e.stats)==null?void 0:v.elapsed)||0)),Math.abs((((d=t.stats)==null?void 0:d.cost)||0)-(((g=e.stats)==null?void 0:g.cost)||0)),Math.abs((((p=t.stats)==null?void 0:p.sessions)||0)-(((y=e.stats)==null?void 0:y.sessions)||0))),r=C0(t.topRepos,e.topRepos),a=C0(t.topFamilies,e.topFamilies),i=C0(t.topModels,e.topModels),o=E9(t.daily,e.daily);return Math.max(n,r,a,i,o)/Math.max(1,((_=e.stats)==null?void 0:_.tokens)||1)}function C0(t=[],e=[]){const n=new Map(t.map(a=>[a.key,a.tokens||0]));let r=0;for(const a of e)r=Math.max(r,Math.abs((n.get(a.key)||0)-(a.tokens||0)));return r}function E9(t,e){var a;const n=new Map(((t==null?void 0:t.series)||[]).map(i=>[i.key,i]));let r=0;for(const i of(e==null?void 0:e.series)||[]){const o=n.get(i.key);for(let u=0;u<i.data.length;u+=1)r=Math.max(r,Math.abs((((a=o==null?void 0:o.data)==null?void 0:a[u])||0)-(i.data[u]||0)))}return r}Xn([dp,pp,mp,yp,_p,XO,Sp]);function Za(t){return yc(t)}function q_(t){return t==null?"—":t>=1e3?"$"+(t/1e3).toFixed(1)+"K":"$"+t.toFixed(2)}function X_(t){return t?(t/3600).toFixed(1)+"h":"0h"}function L9(t,e=16){if(!t)return"";const n=String(t).split(/([-/])/).filter(Boolean),r=[""];for(const a of n){const i=r[r.length-1];if(!i.length||(i+a).length<=e){r[r.length-1]=i+a;continue}if(r.length===2){r[1]+=a;break}r.push(a)}return r.join(`
89
+ `)}function O9(t){return t<=7?{barWidth:"72%",barMaxWidth:28}:t<=30?{barWidth:"54%",barMaxWidth:18}:{barWidth:null,barMaxWidth:12}}function z9({daily:t,exportMode:e=!1}){var i;if(!((i=t==null?void 0:t.dates)!=null&&i.length))return B.jsxs("div",{className:"overview-daily-spark overview-daily-spark-empty",children:[B.jsx("span",{className:"overview-daily-spark-title",children:"Daily Usage"}),B.jsx("span",{className:"overview-daily-spark-empty-text",children:"No daily data"})]});const{barWidth:n,barMaxWidth:r}=O9(t.dates.length),a={backgroundColor:"transparent",...b9,tooltip:{trigger:"axis",axisPointer:{type:"shadow"},appendToBody:!0,confine:!0,formatter:o=>{if(!(o!=null&&o.length))return"";let u=`<b>${o[0].axisValue}</b><br/>`,f=0;const c=[...o].filter(v=>v.value>0).sort((v,d)=>(d.value||0)-(v.value||0));for(const v of c)u+=`${v.marker} ${v.seriesName}: ${Za(v.value)}<br/>`,f+=v.value;return u+=`<b>Total: ${Za(f)}</b>`,u}},grid:{left:4,right:4,top:4,bottom:4},xAxis:{type:"category",data:t.dates,show:!1},yAxis:{type:"value",show:!1,scale:!1,min:0},series:t.series.map(o=>({name:o.label,type:"bar",stack:"total",data:o.data,itemStyle:{color:da(o.key)},...n?{barWidth:n}:{},barMaxWidth:r}))};return B.jsxs("div",{className:"overview-daily-spark",children:[B.jsx("span",{className:"overview-daily-spark-title",children:"Daily Usage"}),B.jsx("div",{className:"overview-daily-spark-chart",children:B.jsx(wn,{echarts:Tn,option:a,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!1,notMerge:e})})]})}const f2=[{key:"tokens",label:"Tokens",fmt:Za},{key:"elapsed",label:"Time",fmt:t=>X_(t)},{key:"cost",label:"Cost",fmt:q_}];var T2;const N9=(T2=Ye.heatmap)==null?void 0:T2.popDurationMs;var A2;const I9=(A2=Ye.heatmap)==null?void 0:A2.settleThreshold;function B9({heatmapData:t,isIngestActive:e=!1,ingestProgress:n=0}){var C;const[r,a]=lt.useState("tokens"),[i,o]=lt.useState(new Set),[u,f]=lt.useState(new Set),c=lt.useRef({}),v=lt.useRef(1),d=t||{},g=new Date,p=[],y=[];for(let T=364;T>=0;T--){const D=new Date(g);D.setDate(D.getDate()-T);const R=D.toLocaleDateString("en-CA"),E=d[R]&&d[R][r]||0;p.push({key:R,val:E,date:D}),D.getDate()===1&&y.push({idx:364-T,label:D.toLocaleDateString("en-US",{month:"short"})})}const _=Math.max(...p.map(T=>T.val),1);lt.useEffect(()=>{var j,X,H;if(!e||n>=I9){c.current={},v.current=1;return}const T=new Date,D=c.current,R=v.current,E=new Set,z=new Set,I=Math.max(.05,Math.min(R,_)*.002),N=.02,L=(j=Ye.heatmap)==null?void 0:j.intensityRiseThreshold,V=(X=Ye.heatmap)==null?void 0:X.whiteThreshold,G=(H=Ye.heatmap)==null?void 0:H.nearMaxRatio;for(let Q=364;Q>=0;Q--){const Z=new Date(T);Z.setDate(Z.getDate()-Q);const J=Z.toLocaleDateString("en-CA"),ot=d[J]&&d[J][r]||0,q=D[J]??0,rt=R>0?q/R:0,it=_>0?ot/_:0,ft=_>R+I&&ot>=_*G&&(q<_*G||q===void 0),gt=it>=V&&rt<V,wt=ot>q+I,Kt=it>rt+L;ft||gt||wt||Kt?E.add(J):(ot<q-I||ot>0&&R>0&&_>R+I&&rt>=.85&&it<rt-N)&&z.add(J),D[J]=ot}if(v.current=_,E.size>0||z.size>0){o(E),f(z);const Q=setTimeout(()=>{o(new Set),f(new Set)},N9);return()=>clearTimeout(Q)}},[d,r,e,n,_]);function S(T){if(T===0)return"var(--bg-elevated)";const D=T/_,R=1/4;return D<R?"rgba(99, 102, 241, 0.14)":D<2*R?"rgba(99, 102, 241, 0.38)":D<3*R?"rgba(99, 102, 241, 0.62)":D<1?"rgba(99, 102, 241, 0.88)":"#fff"}const x=((C=p[0])==null?void 0:C.date.getDay())||0,M=Array(x).fill(null).concat(p);return B.jsxs("div",{className:"heatmap-wrap",children:[B.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.75rem"},children:[B.jsx("span",{className:"chart-title",children:"Activity"}),B.jsx("div",{className:"btn-group",children:f2.map(T=>B.jsx("button",{className:`btn ${r===T.key?"active":""}`,onClick:()=>a(T.key),children:T.label},T.key))})]}),B.jsx("div",{className:"heatmap-grid",style:{gridTemplateRows:"repeat(7, 1fr)"},children:M.map((T,D)=>T?B.jsx("div",{className:`heatmap-cell ${T.val>0?"active":""} ${i.has(T.key)?"heatmap-cell-pop":""} ${u.has(T.key)?"heatmap-cell-pop-dim":""}`,style:{background:S(T.val)},title:`${T.key}: ${f2.find(R=>R.key===r).fmt(T.val)}`},T.key):B.jsx("div",{className:"heatmap-cell",style:{visibility:"hidden"}},`pad-${D}`))}),B.jsx("div",{className:"heatmap-labels",children:y.slice(-12).map((T,D)=>B.jsx("span",{children:T.label},D))})]})}function KO({presentation:t,ingestProgress:e=0,isIngestActive:n=!1,exportMode:r=!1}){if(!(t!=null&&t.ready))return null;const{stats:a,topRepos:i,topFamilies:o,topModels:u}=t,f=[...i.slice(0,6)].reverse(),c=Math.max(...i.slice(0,6).map(x=>x.tokens||0),1),v=[...o].sort((x,M)=>String(x.label).localeCompare(String(M.label))),d=[...u.slice(0,6)].sort((x,M)=>String(x.label).localeCompare(String(M.label))),g={backgroundColor:"transparent",...x9,...r?{animation:!1}:{},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},appendToBody:!0,confine:!0,formatter:x=>x!=null&&x.length?`${x[0].axisValue}: ${Za(x[0].value)} tokens`:""},grid:{left:100,right:5,top:5,bottom:5},xAxis:{type:"value",show:!1,max:c||1},yAxis:{type:"category",data:f.map(x=>x.label),axisLabel:{color:"#8b949e",fontSize:11,formatter:x=>L9(x)},axisTick:{show:!1},axisLine:{show:!1}},series:[{type:"bar",data:f.map(x=>{const M=x.tokens||0,T=M/c>=.25,D=Td(x.label);return{value:M,itemStyle:{color:D,borderRadius:[0,3,3,0]},label:{show:!0,position:T?"insideRight":"right",distance:5,offset:[0,1.5],formatter:()=>Za(M),color:T?j_(D):"#8b949e",fontSize:10}}}),barWidth:"80%"}]},p=v.reduce((x,M)=>x+(M.tokens||0),0),y={backgroundColor:"transparent",...o2,...r?{animation:!1}:{},tooltip:{trigger:"item",appendToBody:!0,confine:!0,formatter:x=>`${x.name}: ${Za(x.value)} tokens (${x.percent}%)`},series:[{type:"pie",animation:r?!1:l2,radius:["48%","72%"],center:["50%","50%"],label:{show:!0,color:"#8b949e",fontSize:11,formatter:"{b}"},labelLine:{lineStyle:{color:"#30363d"}},itemStyle:{borderColor:"#161b22",borderWidth:2},data:v.map(x=>{const C=(p>0?(x.tokens||0)/p:0)>=.01;return{name:x.label,value:x.tokens,itemStyle:{color:cl(x.key)},label:{show:C,color:cl(x.key)},labelLine:{show:C}}})}]},_=d.reduce((x,M)=>x+(M.tokens||0),0),S={backgroundColor:"transparent",...o2,...r?{animation:!1}:{},tooltip:{trigger:"item",appendToBody:!0,confine:!0,formatter:x=>`${x.name}: ${Za(x.value)} tokens (${x.percent}%)`},series:[{type:"pie",animation:r?!1:l2,radius:["48%","72%"],center:["50%","50%"],label:{show:!0,color:"#8b949e",fontSize:11,formatter:"{b}"},labelLine:{lineStyle:{color:"#30363d"}},itemStyle:{borderColor:"#161b22",borderWidth:2},data:d.map(x=>{const C=(_>0?(x.tokens||0)/_:0)>=.01;return{name:x.label,value:x.tokens,itemStyle:{color:da(x.key)},label:{show:C,color:da(x.key)},labelLine:{show:C}}})}]};return B.jsxs("div",{className:"animate-in",children:[B.jsxs("div",{className:"stat-row",children:[B.jsxs("div",{className:"stat-cards",children:[B.jsxs("div",{className:"stat-card",children:[B.jsx("div",{className:"stat-label",children:"Tokens"}),B.jsx("div",{className:"stat-value",children:Za(a.tokens)}),B.jsxs("div",{className:"stat-per-day",children:[B.jsx("span",{className:"stat-per-day-value",children:Za(a.tokens/a.days)})," per day"]})]}),B.jsxs("div",{className:"stat-card",children:[B.jsx("div",{className:"stat-label",children:"Agent Time"}),B.jsx("div",{className:"stat-value",children:X_(a.elapsed)}),B.jsxs("div",{className:"stat-per-day",children:[B.jsx("span",{className:"stat-per-day-value",children:X_(a.elapsed/a.days)})," per day"]})]}),B.jsxs("div",{className:"stat-card",children:[B.jsx("div",{className:"stat-label",children:"Est. API Cost"}),B.jsx("div",{className:"stat-value",children:q_(a.cost)}),B.jsxs("div",{className:"stat-per-day",children:[B.jsx("span",{className:"stat-per-day-value",children:q_(a.cost/a.days)})," per day"]})]}),B.jsxs("div",{className:"stat-card",children:[B.jsx("div",{className:"stat-label",children:"Sessions"}),B.jsx("div",{className:"stat-value",children:Math.round(a.sessions).toLocaleString()}),B.jsxs("div",{className:"stat-per-day",children:[B.jsx("span",{className:"stat-per-day-value",children:(a.sessions/a.days).toFixed(1)})," per day"]})]})]}),B.jsx(z9,{daily:t.daily,exportMode:r})]}),B.jsx(B9,{heatmapData:t.heatmap,isIngestActive:n,ingestProgress:e}),B.jsxs("div",{className:"grid-3",children:[B.jsxs("div",{className:"chart-card",children:[B.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Top Repos"}),i.length>0?B.jsx(wn,{echarts:Tn,option:g,style:{height:180},theme:"dark",lazyUpdate:!1,notMerge:r}):B.jsx("div",{style:{color:"var(--text-muted)",padding:"2rem 0",textAlign:"center"},children:"No data"})]}),B.jsxs("div",{className:"chart-card",children:[B.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Work Type"}),o.length>0?B.jsx(wn,{echarts:Tn,option:y,style:{height:180},theme:"dark",lazyUpdate:!1,notMerge:!0}):B.jsx("div",{style:{color:"var(--text-muted)",padding:"2rem 0",textAlign:"center"},children:"No data"})]}),B.jsxs("div",{className:"chart-card",children:[B.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Models"}),u.length>0?B.jsx(wn,{echarts:Tn,option:S,style:{height:180},theme:"dark",lazyUpdate:!1,notMerge:!0}):B.jsx("div",{style:{color:"var(--text-muted)",padding:"2rem 0",textAlign:"center"},children:"No data"})]})]}),B.jsxs("div",{className:"coverage-subtle",children:[B.jsx("span",{style:{fontWeight:500},children:"Session coverage:"}),B.jsxs("span",{className:"coverage-item",children:[B.jsx("span",{className:"coverage-dot",style:{background:"#22c55e"}}),B.jsx("span",{className:"coverage-nums",children:Math.round(a.exactPriced)})," ","exact-priced"]}),B.jsxs("span",{className:"coverage-item",children:[B.jsx("span",{className:"coverage-dot",style:{background:"#c084fc"}}),B.jsx("span",{className:"coverage-nums",children:Math.round(a.fallbackPriced)})," ","fallback-priced"]}),B.jsxs("span",{className:"coverage-item",children:[B.jsx("span",{className:"coverage-dot",style:{background:"#64748b"}}),B.jsx("span",{className:"coverage-nums",children:Math.round(a.unpriced)})," ","unpriced"]})]})]})}function k9({data:t,heatmap:e,daily:n,families:r,repos:a,models:i,range:o="total",onPresentationSettledChange:u=null,ingestProgress:f=0,isIngestActive:c=!1}){const v=R9({overview:t,heatmap:e,daily:n,families:r,repos:a,models:i,range:o},{duration:T1,onSettledChange:u,ingestProgress:f,isIngestActive:c});return B.jsx(KO,{presentation:v,ingestProgress:f,isIngestActive:c})}function P9(t,e){return t.data===e.data&&t.heatmap===e.heatmap&&t.daily===e.daily&&t.families===e.families&&t.repos===e.repos&&t.models===e.models&&t.range===e.range&&t.onPresentationSettledChange===e.onPresentationSettledChange&&t.ingestProgress===e.ingestProgress&&t.isIngestActive===e.isIngestActive}const H9=lt.memo(k9,P9);function V9(t,e){return t==="default"?e:t}function zf(t,e="tokens"){return Object.entries(t||{}).map(([n,r])=>({key:n,...r})).sort((n,r)=>(r[e]||0)-(n[e]||0))}function Ki({title:t,rows:e,valueKey:n="tokens",colorForKey:r,valueFormatter:a,chartMode:i="default",defaultMode:o="bar",emptyLabel:u="No data",renderTitleInChart:f=!0,barLabelProgress:c=1}){const v=V9(i,o),d=(e||[]).map((S,x)=>{const M=(S==null?void 0:S.key)??(S==null?void 0:S.repo_label)??(S==null?void 0:S.model_name)??(S==null?void 0:S.family)??null;return M?{...S,key:String(M),_idx:x}:null}).filter(Boolean),g={xAxis:{show:!1},yAxis:{show:!1},series:[],graphic:{type:"text",left:"center",top:"60%",style:{text:u,fill:"#484f58",fontSize:11}}};if(f&&(g.title={text:t,left:"center",top:"middle",textStyle:{fontSize:12,color:"#484f58",fontWeight:"normal"}}),!d.length)return g;if(v==="donut"){const S=d.reduce((M,C)=>M+(C[n]||0),0),x={backgroundColor:"transparent",...r2,tooltip:{trigger:"item",appendToBody:!0,confine:!0,formatter:M=>`${M.name}: ${a(M.value)} (${M.percent}%)`},series:[{type:"pie",...r2,radius:["40%","62%"],center:["50%","52%"],label:{show:!0,color:"#8b949e",fontSize:10,formatter:"{b}",overflow:"truncate",width:90,...xp},labelLine:{lineStyle:{color:"#30363d"}},itemStyle:{borderColor:"#161b22",borderWidth:2},data:d.map(M=>{const C=M[n]||0,D=(S>0?C/S:0)>=.01;return{name:M.key,value:C,itemStyle:{color:r(M.key)},label:{show:D,color:r(M.key)},labelLine:{show:D}}})}]};return f&&(x.title={text:t,left:"center",top:8,textStyle:{fontSize:11,color:"#8b949e",fontWeight:"normal"}}),x}const p=[...d].reverse(),y=Math.max(...d.map(S=>S[n]||0),0),_={backgroundColor:"transparent",...y9,tooltip:{trigger:"axis",axisPointer:{type:"shadow"},appendToBody:!0,confine:!0,formatter:S=>{var C;const x=(C=S==null?void 0:S[0])==null?void 0:C.dataIndex,M=p[x];return M?`${M.key}: ${a(M[n]||0)}`:""}},grid:{left:65,right:50,top:f?35:20,bottom:20},xAxis:{type:"value",splitNumber:4,max:y||1,axisLabel:{formatter:S=>a(S),color:"#484f58",fontSize:10,showMinLabel:!0,showMaxLabel:!0},splitLine:{lineStyle:{color:["transparent","#21262d","#21262d","#21262d","transparent"]}}},yAxis:{type:"category",data:p.map(S=>S.key),axisLabel:{color:"#8b949e",fontSize:10,overflow:"truncate",width:55},axisTick:{show:!1},axisLine:{show:!1}},series:[{type:"bar",data:p.map(S=>({value:S[n]||0,itemStyle:{color:r(S.key),borderRadius:[0,3,3,0]}})),barMaxWidth:14,label:{show:!0,position:"right",formatter:S=>a((S.value??0)*c),color:"#8b949e",fontSize:9,..._9}}]};return f&&(_.title={text:t,left:"center",top:8,textStyle:{fontSize:11,color:"#8b949e",fontWeight:"normal"}}),_}Xn([dp,pp,mp,yp,_p,Sp]);function Qo(t){return yc(t)}function Z_(t){return t==null||t===0?"—":t>=1e3?"$"+(t/1e3).toFixed(1)+"K":"$"+t.toFixed(2)}const F9=["all","review","exploration","planning","memory","generic"],c2=["review","exploration","planning","memory","generic"];function G9(t){if(!t.current)return;const e=t.current.getEchartsInstance().getDataURL({type:"png",pixelRatio:2,backgroundColor:"#06080f"});Object.assign(document.createElement("a"),{href:e,download:"codexmeter-repos.png"}).click()}function U9(t){const e=t==null?void 0:t.data;return Array.isArray(e)?e:(e==null?void 0:e.total)||[]}function j9({repo:t,chartMode:e}){const[n,r]=lt.useState(!1),a=lt.useMemo(()=>zf(t.by_model),[t.by_model]),i=lt.useMemo(()=>zf(t.by_family),[t.by_family]),o=Ki({title:"Models in repo",rows:a,valueKey:"tokens",colorForKey:da,valueFormatter:Qo,chartMode:e,defaultMode:"donut",renderTitleInChart:!1}),u=Ki({title:"Work type in repo",rows:i,valueKey:"tokens",colorForKey:cl,valueFormatter:Qo,chartMode:e,defaultMode:"donut",renderTitleInChart:!1}),f=[...a.slice(0,4).map(c=>({...c,scope:"model"})),...i.slice(0,4).map(c=>({...c,scope:"family"}))];return B.jsxs("div",{className:"model-detail-wrap",children:[B.jsxs("div",{className:"model-detail-charts",children:[B.jsxs("div",{className:"model-detail-donut",children:[B.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Models in repo"}),B.jsx(wn,{echarts:Tn,option:o,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!0,notMerge:!1})]}),B.jsxs("div",{className:"model-detail-donut",children:[B.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Work type in repo"}),B.jsx(wn,{echarts:Tn,option:u,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!0,notMerge:!1})]})]}),B.jsx("div",{className:"model-detail-footer",children:B.jsxs("button",{type:"button",className:"model-detail-toggle",onClick:()=>r(c=>!c),"aria-expanded":n,children:[B.jsx("span",{className:"model-detail-toggle-text",children:n?"Hide details":"Show details"}),B.jsx("span",{className:`model-detail-toggle-arrow ${n?"expanded":""}`,"aria-hidden":!0,children:"▼"})]})}),B.jsx("div",{className:`model-detail-summary-wrap ${n?"expanded":""}`,children:B.jsx("div",{className:"model-detail-summary",children:f.map(c=>B.jsxs("div",{className:"model-detail-summary-card",children:[B.jsxs("div",{className:"model-detail-summary-head",children:[B.jsx("span",{className:"model-detail-swatch",style:{background:c.scope==="model"?da(c.key):cl(c.key)}}),B.jsx("span",{className:"model-detail-summary-name",title:c.key,children:c.key})]}),B.jsxs("div",{className:"model-detail-summary-line",children:[Qo(c.tokens)," tokens"]}),B.jsxs("div",{className:"model-detail-summary-line",children:[c.sessions||0," sessions"]}),B.jsx("div",{className:"model-detail-summary-line",children:Z_(c.cost)})]},`${c.scope}-${c.key}`))})})]})}function Y9({data:t,chartMode:e="default"}){const[n,r]=lt.useState("all"),[a,i]=lt.useState(null),o=lt.useRef(null),u=U9(t),f=lt.useMemo(()=>u!=null&&u.length?n==="all"?u:u.map(p=>{var _;const y=(_=p.by_family)==null?void 0:_[n];return y?{...p,tokens:y.tokens,cost:y.cost,sessions:y.sessions}:null}).filter(Boolean).sort((p,y)=>y.tokens-p.tokens):[],[u,n]);if(!(u!=null&&u.length))return B.jsx("div",{style:{color:"var(--text-muted)",padding:"2rem"},children:"No data"});const c=f.slice(0,15),v=[...c].reverse(),d=Math.max(...c.map(p=>p.tokens||0),0),g={backgroundColor:"transparent",...bp,tooltip:{trigger:"axis",axisPointer:{type:"shadow"},appendToBody:!0,confine:!0,formatter:p=>{const y=c[c.length-1-p[0].dataIndex];return y?`<b>${y.repo_label}</b><br/>Tokens: ${Qo(y.tokens)}<br/>Cost: ${Z_(y.cost)}<br/>Sessions: ${y.sessions}`:""}},grid:{left:150,right:50,top:8,bottom:8},xAxis:{type:"value",splitNumber:4,max:d||1,axisLabel:{formatter:p=>Qo(p),color:"#484f58",showMinLabel:!0,showMaxLabel:!0},splitLine:{lineStyle:{color:["transparent","#21262d","#21262d","#21262d","transparent"]}}},yAxis:{type:"category",data:v.map(p=>p.repo_label),axisLabel:{color:"#8b949e",fontSize:11},axisTick:{show:!1},axisLine:{show:!1}},series:[{type:"bar",data:v.map(p=>({value:p.tokens,itemStyle:{color:Td(p.repo_label),borderRadius:[0,3,3,0]}})),barMaxWidth:16,label:{show:!0,position:"right",formatter:p=>Qo(p.value??0),color:"#8b949e",fontSize:10,...xp}}]};return B.jsxs("div",{className:"animate-in",children:[B.jsxs("div",{className:"section-header",children:[B.jsx("span",{className:"section-title",children:"Repos"}),B.jsx("div",{className:"btn-group",children:F9.map(p=>B.jsx("button",{className:`btn ${n===p?"active":""}`,onClick:()=>r(p),children:p},p))})]}),B.jsxs("div",{className:"chart-card",children:[B.jsx("button",{className:"export-btn",onClick:()=>G9(o),children:"PNG"}),B.jsx(wn,{ref:o,echarts:Tn,option:g,style:{height:Math.max(250,c.length*28)},theme:"dark",lazyUpdate:!0,notMerge:!1,onEvents:{click:p=>{if((p==null?void 0:p.componentType)==="series"&&(p==null?void 0:p.dataIndex)!=null){const y=c[c.length-1-p.dataIndex];y&&i(a===y.repo_key?null:y.repo_key)}}}})]}),B.jsx("div",{className:"table-wrap",children:B.jsxs("table",{children:[B.jsx("thead",{children:B.jsxs("tr",{children:[B.jsx("th",{children:"Repo"}),B.jsx("th",{children:"Tokens"}),B.jsx("th",{children:"Cost"}),B.jsx("th",{children:"Sessions"}),B.jsx("th",{style:{width:200},children:"Families"})]})}),B.jsx("tbody",{children:f.map(p=>B.jsxs(Ed.Fragment,{children:[B.jsxs("tr",{onClick:()=>i(a===p.repo_key?null:p.repo_key),style:{cursor:"pointer"},children:[B.jsxs("td",{style:{fontWeight:500,color:"var(--text-primary)"},children:[B.jsx("span",{style:{display:"inline-block",width:8,height:8,borderRadius:2,background:Td(p.repo_label),marginRight:8}}),p.repo_label]}),B.jsx("td",{style:{fontFamily:"var(--font-mono)"},children:Qo(p.tokens)}),B.jsx("td",{style:{fontFamily:"var(--font-mono)"},children:Z_(p.cost)}),B.jsx("td",{children:p.sessions}),B.jsx("td",{children:Object.entries(p.by_family||{}).sort(([y],[_])=>{const S=c2.indexOf(y),x=c2.indexOf(_);return(S===-1?999:S)-(x===-1?999:x)}).slice(0,3).map(([y])=>B.jsx("span",{className:`tag tag-${y}`,style:{marginRight:3},children:y},y))})]}),a===p.repo_key&&B.jsx("tr",{children:B.jsx("td",{colSpan:5,style:{background:"var(--bg-surface)",padding:"0.75rem 1rem"},children:B.jsx(j9,{repo:p,chartMode:e})})})]},p.repo_key))})]})})]})}Xn([dp,pp,mp,yp,_p,Sp]);function cf(t){return yc(t)}function $_(t){return t==null||t===0?"—":t>=1e3?"$"+(t/1e3).toFixed(1)+"K":"$"+t.toFixed(2)}const h2=["low","medium","high","xhigh","unknown"];function q9(t){return[...t].sort(([e],[n])=>{const r=h2.indexOf((e||"").toLowerCase()),a=h2.indexOf((n||"").toLowerCase());return(r===-1?999:r)-(a===-1?999:a)})}function X9({model:t,fmt:e,chartMode:n}){const[r,a]=lt.useState(!1),i=lt.useMemo(()=>q9(Object.entries(t.by_effort||{})),[t.by_effort]);if(!i.length)return null;const o=i.map(([d,g])=>({effort:d,sessions:g.sessions,tokens:g.tokens,avgTokens:g.sessions?Math.round(g.tokens/g.sessions):0,cost:g.cost,exactPriced:g.exact_priced||0,fallbackPriced:g.heuristic_priced||0})),u=o.map(d=>({key:d.effort,sessions:d.sessions,tokens:d.tokens,avgTokens:d.avgTokens})),f=Ki({title:"Sessions by effort",rows:u,valueKey:"sessions",colorForKey:bv,valueFormatter:d=>Math.round(d).toLocaleString(),chartMode:n,defaultMode:"donut",renderTitleInChart:!1}),c=Ki({title:"Tokens by effort",rows:u,valueKey:"tokens",colorForKey:bv,valueFormatter:e,chartMode:n,defaultMode:"donut",renderTitleInChart:!1}),v=Ki({title:"Avg tokens per session",rows:u,valueKey:"avgTokens",colorForKey:bv,valueFormatter:e,chartMode:n,defaultMode:"bar",renderTitleInChart:!1,barLabelProgress});return B.jsxs("div",{className:"model-detail-wrap",children:[B.jsxs("div",{className:"model-detail-charts",children:[B.jsxs("div",{className:"model-detail-donut",children:[B.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Sessions by effort"}),B.jsx(wn,{echarts:Tn,option:f,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!0,notMerge:!1})]}),B.jsxs("div",{className:"model-detail-donut",children:[B.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Tokens by effort"}),B.jsx(wn,{echarts:Tn,option:c,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!0,notMerge:!1})]}),B.jsxs("div",{className:"model-detail-bar",children:[B.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Avg tokens per session"}),B.jsx(wn,{echarts:Tn,option:v,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!0,notMerge:!1})]})]}),B.jsx("div",{className:"model-detail-footer",children:B.jsxs("button",{type:"button",className:"model-detail-toggle",onClick:()=>a(d=>!d),"aria-expanded":r,children:[B.jsx("span",{className:"model-detail-toggle-text",children:r?"Hide details":"Show details"}),B.jsx("span",{className:`model-detail-toggle-arrow ${r?"expanded":""}`,"aria-hidden":!0,children:"▼"})]})}),B.jsx("div",{className:`model-detail-summary-wrap ${r?"expanded":""}`,children:B.jsx("div",{className:"model-detail-summary",children:o.map(d=>B.jsxs("div",{className:"model-detail-summary-card",children:[B.jsxs("div",{className:"model-detail-summary-head",children:[B.jsx("span",{className:"model-detail-swatch",style:{background:bv(d.effort)}}),B.jsx("span",{className:"model-detail-summary-name",title:d.effort,children:d.effort})]}),B.jsxs("div",{className:"model-detail-summary-line",children:[d.sessions," sessions"]}),B.jsxs("div",{className:"model-detail-summary-line",children:[e(d.tokens)," tokens"]}),B.jsxs("div",{className:"model-detail-summary-line",children:[e(d.avgTokens)," avg/session"]}),B.jsxs("div",{className:"model-detail-summary-line",children:[$_(d.cost)," cost"]}),B.jsxs("div",{className:"model-detail-summary-line",children:[d.exactPriced," exact · ",d.fallbackPriced," fallback"]})]},d.effort))})})]})}function Z9(t){if(!t.current)return;const e=t.current.getEchartsInstance().getDataURL({type:"png",pixelRatio:2,backgroundColor:"#06080f"});Object.assign(document.createElement("a"),{href:e,download:"codexmeter-models.png"}).click()}function $9(t){const e=t==null?void 0:t.data;return Array.isArray(e)?e:(e==null?void 0:e.total)||[]}function W9({data:t,chartMode:e="default"}){const[n,r]=lt.useState(null),a=lt.useRef(null),i=$9(t);if(!(i!=null&&i.length))return B.jsx("div",{style:{color:"var(--text-muted)",padding:"2rem"},children:"No data"});const o=[...i].reverse(),u=Math.max(...i.map(c=>c.tokens||0),0),f={backgroundColor:"transparent",...bp,tooltip:{trigger:"axis",axisPointer:{type:"shadow"},appendToBody:!0,confine:!0,formatter:c=>{const v=i[i.length-1-c[0].dataIndex];return`<b>${v.model_name}</b><br/>Tokens: ${cf(v.tokens)}<br/>Cost: ${$_(v.cost)}<br/>Sessions: ${v.sessions}`}},grid:{left:160,right:50,top:8,bottom:8},xAxis:{type:"value",splitNumber:4,max:u||1,axisLabel:{formatter:c=>cf(c),color:"#484f58",fontSize:10,showMinLabel:!0,showMaxLabel:!0},splitLine:{lineStyle:{color:["transparent","#21262d","#21262d","#21262d","transparent"]}}},yAxis:{type:"category",data:o.map(c=>c.model_name),axisLabel:{color:"#8b949e",fontSize:11},axisTick:{show:!1},axisLine:{show:!1}},series:[{type:"bar",data:o.map(c=>({value:c.tokens,itemStyle:{color:da(c.model_name),borderRadius:[0,3,3,0]}})),barMaxWidth:18,label:{show:!0,position:"right",formatter:c=>cf(c.value??0),color:"#8b949e",fontSize:10,...xp}}]};return B.jsxs("div",{className:"animate-in",children:[B.jsx("div",{className:"section-header",children:B.jsx("span",{className:"section-title",children:"Models"})}),B.jsxs("div",{className:"chart-card",children:[B.jsx("button",{className:"export-btn",onClick:()=>Z9(a),children:"PNG"}),B.jsx(wn,{ref:a,echarts:Tn,option:f,style:{height:Math.max(180,i.length*34)},theme:"dark",lazyUpdate:!0,notMerge:!1,onEvents:{click:c=>{if((c==null?void 0:c.componentType)==="series"&&(c==null?void 0:c.dataIndex)!=null){const v=i[i.length-1-c.dataIndex];v&&r(n===v.model_name?null:v.model_name)}}}})]}),B.jsx("div",{className:"table-wrap",children:B.jsxs("table",{children:[B.jsx("thead",{children:B.jsxs("tr",{children:[B.jsx("th",{children:"Model"}),B.jsx("th",{children:"Tokens"}),B.jsx("th",{children:"Cost"}),B.jsx("th",{children:"Sessions"}),B.jsx("th",{children:"Effort Levels"})]})}),B.jsx("tbody",{children:i.map(c=>B.jsxs(Ed.Fragment,{children:[B.jsxs("tr",{onClick:()=>r(n===c.model_name?null:c.model_name),style:{cursor:"pointer"},children:[B.jsxs("td",{style:{fontWeight:500,color:"var(--text-primary)",fontFamily:"var(--font-mono)"},children:[B.jsx("span",{style:{display:"inline-block",width:8,height:8,borderRadius:2,background:da(c.model_name),marginRight:8}}),c.model_name]}),B.jsx("td",{style:{fontFamily:"var(--font-mono)"},children:cf(c.tokens)}),B.jsx("td",{style:{fontFamily:"var(--font-mono)"},children:$_(c.cost)}),B.jsx("td",{children:c.sessions}),B.jsx("td",{children:Object.keys(c.by_effort).length})]}),n===c.model_name&&B.jsx("tr",{children:B.jsx("td",{colSpan:5,style:{background:"var(--bg-surface)",padding:"0.75rem 1rem"},children:B.jsx(X9,{model:c,fmt:cf,chartMode:e})})})]},c.model_name))})]})})]})}Xn([dp,lG,pp,mp,yp,_p,XO,u9,oU,Sp]);function Gv(t){return yc(t)}function Q9(t){return t==null||t===0?"$0":"$"+t.toFixed(2)}function K9(t){return t?(t/3600).toFixed(1)+"h":"0h"}const JO=[{key:"tokens",label:"Tokens",fn:Gv},{key:"elapsed_seconds",label:"Time",fn:K9},{key:"cost",label:"Cost",fn:Q9}],J9=[{key:"model",label:"By Model"},{key:"family",label:"By Work"}],t7=[{key:"absolute",label:"Absolute"},{key:"relative",label:"Relative"}];function e7(t){if(!t.current)return;const e=t.current.getEchartsInstance().getDataURL({type:"png",pixelRatio:2,backgroundColor:"#06080f"});Object.assign(document.createElement("a"),{href:e,download:"codexmeter-daily.png"}).click()}function n7(t,e){return e?t==="d7"?Math.max(0,100-7/e*100):t==="d30"?Math.max(0,100-30/e*100):0:0}function r7(t,e){return t==="d7"?44:t==="d30"?22:e<=14?36:e<=31?18:14}function a7(t,e){return t==="d7"?"72%":t==="d30"?"54%":e<=14?"64%":e<=31?"48%":"36%"}function i7(t,e){const n=t.length;if(n===0)return null;const r=new Array(n),a=new Array(n),i=[];for(let v=0;v<n;v++){for(;i.length&&t[i[i.length-1]]>=t[v];)i.pop();r[v]=i.length?i[i.length-1]:-1,i.push(v)}i.length=0;for(let v=n-1;v>=0;v--){for(;i.length&&t[i[i.length-1]]>=t[v];)i.pop();a[v]=i.length?i[i.length-1]:n,i.push(v)}let o=0,u=0;for(let v=0;v<n;v++){const g=(a[v]-r[v]-1)*t[v];g>o&&(o=g,u=v)}const f=(r[u]+a[u])/2,c=e[u]+t[u]/2;return[f,c]}function o7({day:t,chartMode:e}){const n=lt.useMemo(()=>zf(t.by_model),[t.by_model]),r=lt.useMemo(()=>zf(t.by_repo),[t.by_repo]),a=lt.useMemo(()=>zf(t.by_family),[t.by_family]),i=Ki({title:"Models",rows:n,valueKey:"tokens",colorForKey:da,valueFormatter:Gv,chartMode:e,defaultMode:"donut",renderTitleInChart:!1}),o=Ki({title:"Repos",rows:r,valueKey:"tokens",colorForKey:Td,valueFormatter:Gv,chartMode:e,defaultMode:"donut",renderTitleInChart:!1}),u=Ki({title:"Work Type",rows:a,valueKey:"tokens",colorForKey:cl,valueFormatter:Gv,chartMode:e,defaultMode:"donut",renderTitleInChart:!1});return B.jsx("div",{className:"model-detail-wrap",children:B.jsxs("div",{className:"model-detail-charts",children:[B.jsxs("div",{className:"model-detail-donut",children:[B.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Repos"}),B.jsx(wn,{echarts:Tn,option:o,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!0,notMerge:!1})]}),B.jsxs("div",{className:"model-detail-donut",children:[B.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Models"}),B.jsx(wn,{echarts:Tn,option:i,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!0,notMerge:!1})]}),B.jsxs("div",{className:"model-detail-donut",children:[B.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Work Type"}),B.jsx(wn,{echarts:Tn,option:u,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!0,notMerge:!1})]})]})})}const l7=Ed.memo(function({daily:e,range:n,metric:r,split:a,displayMode:i,onSelectDate:o}){const[u,f]=lt.useState({start:0,end:100}),c=lt.useRef(null),v=e.map(N=>N.date),d=JO.find(N=>N.key===r),g=lt.useMemo(()=>n7(n,v.length),[n,v.length]);lt.useEffect(()=>{f({start:g,end:100})},[g]);const p=lt.useMemo(()=>{if(!v.length)return 0;const N=Math.max(0,Math.min(100,u.start??g)),L=Math.max(N,Math.min(100,u.end??100)),V=Math.max(0,Math.floor(N/100*v.length)),G=Math.min(v.length-1,Math.ceil(L/100*v.length)-1);return Math.max(1,G-V+1)},[v.length,u,g]),y=lt.useMemo(()=>r7(n,p),[n,p]),_=lt.useMemo(()=>a7(n,p),[n,p]),S=lt.useMemo(()=>{const N=new Set;for(const L of e){const V=a==="model"?L.by_model:L.by_family||{};for(const G of Object.keys(V))N.add(G)}return[...N]},[e,a]),x=lt.useMemo(()=>S.map(N=>({name:N,values:e.map(L=>{const G=(a==="model"?L.by_model:L.by_family||{})[N];return G?r==="elapsed_seconds"?G.elapsed_seconds||0:r==="cost"?G.cost||0:G.tokens||0:0})})),[S,e,a,r]),M=lt.useMemo(()=>e.map((N,L)=>{let V=0;for(const G of x)V+=G.values[L]||0;return V}),[e,x]),C=lt.useMemo(()=>Math.max(...M,0),[M]),T=i==="relative";let D=null;if(T){const N=x.map(V=>{const G=V.values.map((j,X)=>M[X]>0?j/M[X]*100:0);for(let j=1;j<G.length;j++)M[j]===0&&(G[j]=G[j-1]);return G});let L=N[0].map(()=>0);D=N.map((V,G)=>{const j=[...L];return L=L.map((X,H)=>X+V[H]),{values:V,prevStack:j}})}const R=x.map((N,L)=>{const V=a==="model"?da(N.name):cl(N.name);let G;if(T){const j=D[L];G=j.values,j_(V);let X=0,H=0;for(let Z=0;Z<G.length;Z++)G[Z]>H&&(H=G[Z],X=Z);return H>=8&&j.prevStack[X]+G[X]/2,{name:N.name,type:"line",stack:"total",smooth:.2,areaStyle:{opacity:1},lineStyle:{width:0},symbol:"none",data:G,itemStyle:{color:V}}}return G=N.values,{name:N.name,type:"bar",stack:"total",data:G,itemStyle:{color:V},barWidth:_,barMaxWidth:y,barMinWidth:Math.min(10,y)}}),E=lt.useMemo(()=>!T||!D?[]:D.map((N,L)=>{const V=x[L],G=a==="model"?da(V.name):cl(V.name),j=j_(G),X=i7(N.values,N.prevStack);return!X||Math.max(...N.values)<8?null:{name:V.name,labelColor:j,coord:X}}).filter(Boolean),[T,D,x,a]),z=lt.useCallback(()=>{if(!c.current)return;const N=c.current.getEchartsInstance();if(!T||E.length===0){N.setOption({graphic:{elements:[]}},{notMerge:!1});return}const L=E.map(V=>{const[G,j]=N.convertToPixel({xAxisIndex:0,yAxisIndex:0},V.coord);return{type:"text",left:G,top:j,style:{text:V.name,fill:V.labelColor,fontSize:10,fontWeight:500,textAlign:"center",textVerticalAlign:"middle"},z:10,silent:!0}});N.setOption({graphic:{elements:L}},{notMerge:!1})},[T,E]);lt.useEffect(()=>{const N=setTimeout(z,150);return()=>clearTimeout(N)},[T,E,z]),lt.useEffect(()=>{const N=()=>z();return window.addEventListener("resize",N),()=>window.removeEventListener("resize",N)},[z]);const I={backgroundColor:"transparent",tooltip:{trigger:"axis",axisPointer:{type:T?"line":"shadow"},appendToBody:!0,confine:!0,formatter:N=>{var Q,Z;const L=(Q=N==null?void 0:N[0])==null?void 0:Q.dataIndex,V=L!=null?M[L]:0;let G=L;if(i==="relative"&&V===0&&L!=null){for(let J=L-1;J>=0;J--)if(M[J]>0){G=J;break}}const j=i==="relative"&&V===0?M[G]??0:V;let X=`<b>${N[0].axisValue}</b><br/>`;const H=[...N].filter(J=>J.seriesName!=="__day_click_overlay__"&&J.value>0).sort((J,ot)=>(ot.value||0)-(J.value||0));for(const J of H){const ot=i==="relative"?((Z=x.find(P=>P.name===J.seriesName))==null?void 0:Z.values[G])??0:J.value;i==="relative"?X+=`${J.marker} ${J.seriesName}: ${J.value.toFixed(1)}% (${d.fn(ot)})<br/>`:X+=`${J.marker} ${J.seriesName}: ${d.fn(J.value)}<br/>`}return X+=i==="relative"?`<b>Total: 100% (${d.fn(j)})</b>`:`<b>Total: ${d.fn(V)}</b>`,X}},legend:{data:S,textStyle:{color:"#8b949e",fontSize:10},top:0,itemWidth:10,itemHeight:10},grid:{left:70,right:20,top:35,bottom:55},dataZoom:[{type:"slider",start:u.start,end:u.end,borderColor:"#30363d",fillerColor:"rgba(99, 102, 241, 0.08)",handleStyle:{color:"#6366f1"},textStyle:{color:"#484f58"}}],xAxis:{type:"category",data:v,axisLabel:{color:"#484f58",fontSize:10,rotate:45},axisTick:{show:!1},axisLine:{lineStyle:{color:"#30363d"}}},yAxis:{type:"value",min:i==="relative"?0:void 0,max:i==="relative"?100:void 0,axisLabel:{formatter:i==="relative"?N=>N+"%":N=>d.fn(N),color:"#484f58"},splitLine:{lineStyle:{color:"#21262d"}}},series:[...R,{name:"__day_click_overlay__",type:"bar",data:M.map(()=>i==="relative"?100:C),barWidth:"96%",barGap:"-100%",itemStyle:{color:"rgba(0,0,0,0)"},emphasis:{disabled:!0},tooltip:{show:!1},z:100,animation:!1}],...bp};return B.jsxs("div",{className:"chart-card",children:[B.jsx("button",{className:"export-btn",onClick:()=>e7(c),children:"PNG"}),B.jsx(wn,{ref:c,echarts:Tn,option:I,style:{height:400},theme:"dark",notMerge:!1,replaceMerge:["series","legend","graphic"],lazyUpdate:!0,onChartReady:z,onEvents:{click:N=>{const L=(N==null?void 0:N.axisValue)||(N==null?void 0:N.name);L&&o(L)},datazoom:()=>{var V,G,j;const N=(V=c.current)==null?void 0:V.getEchartsInstance(),L=(j=(G=N==null?void 0:N.getOption())==null?void 0:G.dataZoom)==null?void 0:j[0];L&&f({start:typeof L.start=="number"?L.start:g,end:typeof L.end=="number"?L.end:100}),requestAnimationFrame(()=>z())}}})]})});function s7({data:t,range:e="total",chartMode:n="default"}){var y;const[r,a]=lt.useState("tokens"),[i,o]=lt.useState("model"),[u,f]=lt.useState("absolute"),[c,v]=lt.useState(null);if(!((y=t==null?void 0:t.data)!=null&&y.length))return B.jsx("div",{style:{color:"var(--text-muted)",padding:"2rem"},children:"No data"});const d=t.data;lt.useEffect(()=>{var _,S;!c&&d[0]&&v(((_=d[d.length-1])==null?void 0:_.date)||((S=d[0])==null?void 0:S.date))},[d,c]);const g=lt.useCallback(_=>{_&&v(_)},[]),p=d.find(_=>_.date===c)||null;return B.jsxs("div",{className:"animate-in",children:[B.jsxs("div",{className:"section-header",children:[B.jsx("div",{style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:B.jsx("span",{className:"section-title",children:"Daily Usage"})}),B.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[B.jsx("div",{className:"btn-group",children:JO.map(_=>B.jsx("button",{className:`btn ${r===_.key?"active":""}`,onClick:()=>a(_.key),children:_.label},_.key))}),B.jsx("div",{className:"btn-group",children:J9.map(_=>B.jsx("button",{className:`btn ${i===_.key?"active":""}`,onClick:()=>o(_.key),children:_.label},_.key))}),B.jsx("div",{className:"btn-group",children:t7.map(_=>B.jsx("button",{className:`btn ${u===_.key?"active":""}`,onClick:()=>f(_.key),children:_.label},_.key))})]})]}),B.jsx(l7,{daily:d,range:e,metric:r,split:i,displayMode:u,onSelectDate:g}),p&&B.jsxs("div",{className:"chart-card",children:[B.jsxs("div",{className:"chart-title",style:{marginBottom:"0.75rem"},children:["Day detail: ",p.date]}),B.jsx(o7,{day:p,chartMode:n})]})]})}/**
90
+ * table-core
91
+ *
92
+ * Copyright (c) TanStack
93
+ *
94
+ * This source code is licensed under the MIT license found in the
95
+ * LICENSE.md file in the root directory of this source tree.
96
+ *
97
+ * @license MIT
98
+ */function u7(){return{accessor:(t,e)=>typeof t=="function"?{...e,accessorFn:t}:{...e,accessorKey:t},display:t=>t,group:t=>t}}function qi(t,e){return typeof t=="function"?t(e):t}function or(t,e){return n=>{e.setState(r=>({...r,[t]:qi(n,r[t])}))}}function Cp(t){return t instanceof Function}function f7(t){return Array.isArray(t)&&t.every(e=>typeof e=="number")}function c7(t,e){const n=[],r=a=>{a.forEach(i=>{n.push(i);const o=e(i);o!=null&&o.length&&r(o)})};return r(t),n}function Tt(t,e,n){let r=[],a;return i=>{let o;n.key&&n.debug&&(o=Date.now());const u=t(i);if(!(u.length!==r.length||u.some((v,d)=>r[d]!==v)))return a;r=u;let c;if(n.key&&n.debug&&(c=Date.now()),a=e(...u),n==null||n.onChange==null||n.onChange(a),n.key&&n.debug&&n!=null&&n.debug()){const v=Math.round((Date.now()-o)*100)/100,d=Math.round((Date.now()-c)*100)/100,g=d/16,p=(y,_)=>{for(y=String(y);y.length<_;)y=" "+y;return y};console.info(`%c⏱ ${p(d,5)} /${p(v,5)} ms`,`
99
+ font-size: .6rem;
100
+ font-weight: bold;
101
+ color: hsl(${Math.max(0,Math.min(120-120*g,120))}deg 100% 31%);`,n==null?void 0:n.key)}return a}}function At(t,e,n,r){return{debug:()=>{var a;return(a=t==null?void 0:t.debugAll)!=null?a:t[e]},key:!1,onChange:r}}function h7(t,e,n,r){const a=()=>{var o;return(o=i.getValue())!=null?o:t.options.renderFallbackValue},i={id:`${e.id}_${n.id}`,row:e,column:n,getValue:()=>e.getValue(r),renderValue:a,getContext:Tt(()=>[t,n,e,i],(o,u,f,c)=>({table:o,column:u,row:f,cell:c,getValue:c.getValue,renderValue:c.renderValue}),At(t.options,"debugCells"))};return t._features.forEach(o=>{o.createCell==null||o.createCell(i,n,e,t)},{}),i}function v7(t,e,n,r){var a,i;const u={...t._getDefaultColumnDef(),...e},f=u.accessorKey;let c=(a=(i=u.id)!=null?i:f?typeof String.prototype.replaceAll=="function"?f.replaceAll(".","_"):f.replace(/\./g,"_"):void 0)!=null?a:typeof u.header=="string"?u.header:void 0,v;if(u.accessorFn?v=u.accessorFn:f&&(f.includes(".")?v=g=>{let p=g;for(const _ of f.split(".")){var y;p=(y=p)==null?void 0:y[_]}return p}:v=g=>g[u.accessorKey]),!c)throw new Error;let d={id:`${String(c)}`,accessorFn:v,parent:r,depth:n,columnDef:u,columns:[],getFlatColumns:Tt(()=>[!0],()=>{var g;return[d,...(g=d.columns)==null?void 0:g.flatMap(p=>p.getFlatColumns())]},At(t.options,"debugColumns")),getLeafColumns:Tt(()=>[t._getOrderColumnsFn()],g=>{var p;if((p=d.columns)!=null&&p.length){let y=d.columns.flatMap(_=>_.getLeafColumns());return g(y)}return[d]},At(t.options,"debugColumns"))};for(const g of t._features)g.createColumn==null||g.createColumn(d,t);return d}const sn="debugHeaders";function v2(t,e,n){var r;let i={id:(r=n.id)!=null?r:e.id,column:e,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const o=[],u=f=>{f.subHeaders&&f.subHeaders.length&&f.subHeaders.map(u),o.push(f)};return u(i),o},getContext:()=>({table:t,header:i,column:e})};return t._features.forEach(o=>{o.createHeader==null||o.createHeader(i,t)}),i}const d7={createTable:t=>{t.getHeaderGroups=Tt(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,r,a)=>{var i,o;const u=(i=r==null?void 0:r.map(d=>n.find(g=>g.id===d)).filter(Boolean))!=null?i:[],f=(o=a==null?void 0:a.map(d=>n.find(g=>g.id===d)).filter(Boolean))!=null?o:[],c=n.filter(d=>!(r!=null&&r.includes(d.id))&&!(a!=null&&a.includes(d.id)));return xv(e,[...u,...c,...f],t)},At(t.options,sn)),t.getCenterHeaderGroups=Tt(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,r,a)=>(n=n.filter(i=>!(r!=null&&r.includes(i.id))&&!(a!=null&&a.includes(i.id))),xv(e,n,t,"center")),At(t.options,sn)),t.getLeftHeaderGroups=Tt(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left],(e,n,r)=>{var a;const i=(a=r==null?void 0:r.map(o=>n.find(u=>u.id===o)).filter(Boolean))!=null?a:[];return xv(e,i,t,"left")},At(t.options,sn)),t.getRightHeaderGroups=Tt(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.right],(e,n,r)=>{var a;const i=(a=r==null?void 0:r.map(o=>n.find(u=>u.id===o)).filter(Boolean))!=null?a:[];return xv(e,i,t,"right")},At(t.options,sn)),t.getFooterGroups=Tt(()=>[t.getHeaderGroups()],e=>[...e].reverse(),At(t.options,sn)),t.getLeftFooterGroups=Tt(()=>[t.getLeftHeaderGroups()],e=>[...e].reverse(),At(t.options,sn)),t.getCenterFooterGroups=Tt(()=>[t.getCenterHeaderGroups()],e=>[...e].reverse(),At(t.options,sn)),t.getRightFooterGroups=Tt(()=>[t.getRightHeaderGroups()],e=>[...e].reverse(),At(t.options,sn)),t.getFlatHeaders=Tt(()=>[t.getHeaderGroups()],e=>e.map(n=>n.headers).flat(),At(t.options,sn)),t.getLeftFlatHeaders=Tt(()=>[t.getLeftHeaderGroups()],e=>e.map(n=>n.headers).flat(),At(t.options,sn)),t.getCenterFlatHeaders=Tt(()=>[t.getCenterHeaderGroups()],e=>e.map(n=>n.headers).flat(),At(t.options,sn)),t.getRightFlatHeaders=Tt(()=>[t.getRightHeaderGroups()],e=>e.map(n=>n.headers).flat(),At(t.options,sn)),t.getCenterLeafHeaders=Tt(()=>[t.getCenterFlatHeaders()],e=>e.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),At(t.options,sn)),t.getLeftLeafHeaders=Tt(()=>[t.getLeftFlatHeaders()],e=>e.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),At(t.options,sn)),t.getRightLeafHeaders=Tt(()=>[t.getRightFlatHeaders()],e=>e.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),At(t.options,sn)),t.getLeafHeaders=Tt(()=>[t.getLeftHeaderGroups(),t.getCenterHeaderGroups(),t.getRightHeaderGroups()],(e,n,r)=>{var a,i,o,u,f,c;return[...(a=(i=e[0])==null?void 0:i.headers)!=null?a:[],...(o=(u=n[0])==null?void 0:u.headers)!=null?o:[],...(f=(c=r[0])==null?void 0:c.headers)!=null?f:[]].map(v=>v.getLeafHeaders()).flat()},At(t.options,sn))}};function xv(t,e,n,r){var a,i;let o=0;const u=function(g,p){p===void 0&&(p=1),o=Math.max(o,p),g.filter(y=>y.getIsVisible()).forEach(y=>{var _;(_=y.columns)!=null&&_.length&&u(y.columns,p+1)},0)};u(t);let f=[];const c=(g,p)=>{const y={depth:p,id:[r,`${p}`].filter(Boolean).join("_"),headers:[]},_=[];g.forEach(S=>{const x=[..._].reverse()[0],M=S.column.depth===y.depth;let C,T=!1;if(M&&S.column.parent?C=S.column.parent:(C=S.column,T=!0),x&&(x==null?void 0:x.column)===C)x.subHeaders.push(S);else{const D=v2(n,C,{id:[r,p,C.id,S==null?void 0:S.id].filter(Boolean).join("_"),isPlaceholder:T,placeholderId:T?`${_.filter(R=>R.column===C).length}`:void 0,depth:p,index:_.length});D.subHeaders.push(S),_.push(D)}y.headers.push(S),S.headerGroup=y}),f.push(y),p>0&&c(_,p-1)},v=e.map((g,p)=>v2(n,g,{depth:o,index:p}));c(v,o-1),f.reverse();const d=g=>g.filter(y=>y.column.getIsVisible()).map(y=>{let _=0,S=0,x=[0];y.subHeaders&&y.subHeaders.length?(x=[],d(y.subHeaders).forEach(C=>{let{colSpan:T,rowSpan:D}=C;_+=T,x.push(D)})):_=1;const M=Math.min(...x);return S=S+M,y.colSpan=_,y.rowSpan=S,{colSpan:_,rowSpan:S}});return d((a=(i=f[0])==null?void 0:i.headers)!=null?a:[]),f}const p7=(t,e,n,r,a,i,o)=>{let u={id:e,index:r,original:n,depth:a,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:f=>{if(u._valuesCache.hasOwnProperty(f))return u._valuesCache[f];const c=t.getColumn(f);if(c!=null&&c.accessorFn)return u._valuesCache[f]=c.accessorFn(u.original,r),u._valuesCache[f]},getUniqueValues:f=>{if(u._uniqueValuesCache.hasOwnProperty(f))return u._uniqueValuesCache[f];const c=t.getColumn(f);if(c!=null&&c.accessorFn)return c.columnDef.getUniqueValues?(u._uniqueValuesCache[f]=c.columnDef.getUniqueValues(u.original,r),u._uniqueValuesCache[f]):(u._uniqueValuesCache[f]=[u.getValue(f)],u._uniqueValuesCache[f])},renderValue:f=>{var c;return(c=u.getValue(f))!=null?c:t.options.renderFallbackValue},subRows:[],getLeafRows:()=>c7(u.subRows,f=>f.subRows),getParentRow:()=>u.parentId?t.getRow(u.parentId,!0):void 0,getParentRows:()=>{let f=[],c=u;for(;;){const v=c.getParentRow();if(!v)break;f.push(v),c=v}return f.reverse()},getAllCells:Tt(()=>[t.getAllLeafColumns()],f=>f.map(c=>h7(t,u,c,c.id)),At(t.options,"debugRows")),_getAllCellsByColumnId:Tt(()=>[u.getAllCells()],f=>f.reduce((c,v)=>(c[v.column.id]=v,c),{}),At(t.options,"debugRows"))};for(let f=0;f<t._features.length;f++){const c=t._features[f];c==null||c.createRow==null||c.createRow(u,t)}return u},g7={createColumn:(t,e)=>{t._getFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,t.id),t.getFacetedRowModel=()=>t._getFacetedRowModel?t._getFacetedRowModel():e.getPreFilteredRowModel(),t._getFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,t.id),t.getFacetedUniqueValues=()=>t._getFacetedUniqueValues?t._getFacetedUniqueValues():new Map,t._getFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,t.id),t.getFacetedMinMaxValues=()=>{if(t._getFacetedMinMaxValues)return t._getFacetedMinMaxValues()}}},tz=(t,e,n)=>{var r,a;const i=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((a=t.getValue(e))==null||(a=a.toString())==null||(a=a.toLowerCase())==null)&&a.includes(i))};tz.autoRemove=t=>Zr(t);const ez=(t,e,n)=>{var r;return!!(!((r=t.getValue(e))==null||(r=r.toString())==null)&&r.includes(n))};ez.autoRemove=t=>Zr(t);const nz=(t,e,n)=>{var r;return((r=t.getValue(e))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};nz.autoRemove=t=>Zr(t);const rz=(t,e,n)=>{var r;return(r=t.getValue(e))==null?void 0:r.includes(n)};rz.autoRemove=t=>Zr(t);const az=(t,e,n)=>!n.some(r=>{var a;return!((a=t.getValue(e))!=null&&a.includes(r))});az.autoRemove=t=>Zr(t)||!(t!=null&&t.length);const iz=(t,e,n)=>n.some(r=>{var a;return(a=t.getValue(e))==null?void 0:a.includes(r)});iz.autoRemove=t=>Zr(t)||!(t!=null&&t.length);const oz=(t,e,n)=>t.getValue(e)===n;oz.autoRemove=t=>Zr(t);const lz=(t,e,n)=>t.getValue(e)==n;lz.autoRemove=t=>Zr(t);const A1=(t,e,n)=>{let[r,a]=n;const i=t.getValue(e);return i>=r&&i<=a};A1.resolveFilterValue=t=>{let[e,n]=t,r=typeof e!="number"?parseFloat(e):e,a=typeof n!="number"?parseFloat(n):n,i=e===null||Number.isNaN(r)?-1/0:r,o=n===null||Number.isNaN(a)?1/0:a;if(i>o){const u=i;i=o,o=u}return[i,o]};A1.autoRemove=t=>Zr(t)||Zr(t[0])&&Zr(t[1]);const Xa={includesString:tz,includesStringSensitive:ez,equalsString:nz,arrIncludes:rz,arrIncludesAll:az,arrIncludesSome:iz,equals:oz,weakEquals:lz,inNumberRange:A1};function Zr(t){return t==null||t===""}const m7={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:t=>({columnFilters:[],...t}),getDefaultOptions:t=>({onColumnFiltersChange:or("columnFilters",t),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(t,e)=>{t.getAutoFilterFn=()=>{const n=e.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(t.id);return typeof r=="string"?Xa.includesString:typeof r=="number"?Xa.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Xa.equals:Array.isArray(r)?Xa.arrIncludes:Xa.weakEquals},t.getFilterFn=()=>{var n,r;return Cp(t.columnDef.filterFn)?t.columnDef.filterFn:t.columnDef.filterFn==="auto"?t.getAutoFilterFn():(n=(r=e.options.filterFns)==null?void 0:r[t.columnDef.filterFn])!=null?n:Xa[t.columnDef.filterFn]},t.getCanFilter=()=>{var n,r,a;return((n=t.columnDef.enableColumnFilter)!=null?n:!0)&&((r=e.options.enableColumnFilters)!=null?r:!0)&&((a=e.options.enableFilters)!=null?a:!0)&&!!t.accessorFn},t.getIsFiltered=()=>t.getFilterIndex()>-1,t.getFilterValue=()=>{var n;return(n=e.getState().columnFilters)==null||(n=n.find(r=>r.id===t.id))==null?void 0:n.value},t.getFilterIndex=()=>{var n,r;return(n=(r=e.getState().columnFilters)==null?void 0:r.findIndex(a=>a.id===t.id))!=null?n:-1},t.setFilterValue=n=>{e.setColumnFilters(r=>{const a=t.getFilterFn(),i=r==null?void 0:r.find(v=>v.id===t.id),o=qi(n,i?i.value:void 0);if(d2(a,o,t)){var u;return(u=r==null?void 0:r.filter(v=>v.id!==t.id))!=null?u:[]}const f={id:t.id,value:o};if(i){var c;return(c=r==null?void 0:r.map(v=>v.id===t.id?f:v))!=null?c:[]}return r!=null&&r.length?[...r,f]:[f]})}},createRow:(t,e)=>{t.columnFilters={},t.columnFiltersMeta={}},createTable:t=>{t.setColumnFilters=e=>{const n=t.getAllLeafColumns(),r=a=>{var i;return(i=qi(e,a))==null?void 0:i.filter(o=>{const u=n.find(f=>f.id===o.id);if(u){const f=u.getFilterFn();if(d2(f,o.value,u))return!1}return!0})};t.options.onColumnFiltersChange==null||t.options.onColumnFiltersChange(r)},t.resetColumnFilters=e=>{var n,r;t.setColumnFilters(e?[]:(n=(r=t.initialState)==null?void 0:r.columnFilters)!=null?n:[])},t.getPreFilteredRowModel=()=>t.getCoreRowModel(),t.getFilteredRowModel=()=>(!t._getFilteredRowModel&&t.options.getFilteredRowModel&&(t._getFilteredRowModel=t.options.getFilteredRowModel(t)),t.options.manualFiltering||!t._getFilteredRowModel?t.getPreFilteredRowModel():t._getFilteredRowModel())}};function d2(t,e,n){return(t&&t.autoRemove?t.autoRemove(e,n):!1)||typeof e>"u"||typeof e=="string"&&!e}const y7=(t,e,n)=>n.reduce((r,a)=>{const i=a.getValue(t);return r+(typeof i=="number"?i:0)},0),_7=(t,e,n)=>{let r;return n.forEach(a=>{const i=a.getValue(t);i!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}),r},S7=(t,e,n)=>{let r;return n.forEach(a=>{const i=a.getValue(t);i!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}),r},b7=(t,e,n)=>{let r,a;return n.forEach(i=>{const o=i.getValue(t);o!=null&&(r===void 0?o>=o&&(r=a=o):(r>o&&(r=o),a<o&&(a=o)))}),[r,a]},x7=(t,e)=>{let n=0,r=0;if(e.forEach(a=>{let i=a.getValue(t);i!=null&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},w7=(t,e)=>{if(!e.length)return;const n=e.map(i=>i.getValue(t));if(!f7(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),a=n.sort((i,o)=>i-o);return n.length%2!==0?a[r]:(a[r-1]+a[r])/2},M7=(t,e)=>Array.from(new Set(e.map(n=>n.getValue(t))).values()),C7=(t,e)=>new Set(e.map(n=>n.getValue(t))).size,T7=(t,e)=>e.length,T0={sum:y7,min:_7,max:S7,extent:b7,mean:x7,median:w7,unique:M7,uniqueCount:C7,count:T7},A7={getDefaultColumnDef:()=>({aggregatedCell:t=>{var e,n;return(e=(n=t.getValue())==null||n.toString==null?void 0:n.toString())!=null?e:null},aggregationFn:"auto"}),getInitialState:t=>({grouping:[],...t}),getDefaultOptions:t=>({onGroupingChange:or("grouping",t),groupedColumnMode:"reorder"}),createColumn:(t,e)=>{t.toggleGrouping=()=>{e.setGrouping(n=>n!=null&&n.includes(t.id)?n.filter(r=>r!==t.id):[...n??[],t.id])},t.getCanGroup=()=>{var n,r;return((n=t.columnDef.enableGrouping)!=null?n:!0)&&((r=e.options.enableGrouping)!=null?r:!0)&&(!!t.accessorFn||!!t.columnDef.getGroupingValue)},t.getIsGrouped=()=>{var n;return(n=e.getState().grouping)==null?void 0:n.includes(t.id)},t.getGroupedIndex=()=>{var n;return(n=e.getState().grouping)==null?void 0:n.indexOf(t.id)},t.getToggleGroupingHandler=()=>{const n=t.getCanGroup();return()=>{n&&t.toggleGrouping()}},t.getAutoAggregationFn=()=>{const n=e.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(t.id);if(typeof r=="number")return T0.sum;if(Object.prototype.toString.call(r)==="[object Date]")return T0.extent},t.getAggregationFn=()=>{var n,r;if(!t)throw new Error;return Cp(t.columnDef.aggregationFn)?t.columnDef.aggregationFn:t.columnDef.aggregationFn==="auto"?t.getAutoAggregationFn():(n=(r=e.options.aggregationFns)==null?void 0:r[t.columnDef.aggregationFn])!=null?n:T0[t.columnDef.aggregationFn]}},createTable:t=>{t.setGrouping=e=>t.options.onGroupingChange==null?void 0:t.options.onGroupingChange(e),t.resetGrouping=e=>{var n,r;t.setGrouping(e?[]:(n=(r=t.initialState)==null?void 0:r.grouping)!=null?n:[])},t.getPreGroupedRowModel=()=>t.getFilteredRowModel(),t.getGroupedRowModel=()=>(!t._getGroupedRowModel&&t.options.getGroupedRowModel&&(t._getGroupedRowModel=t.options.getGroupedRowModel(t)),t.options.manualGrouping||!t._getGroupedRowModel?t.getPreGroupedRowModel():t._getGroupedRowModel())},createRow:(t,e)=>{t.getIsGrouped=()=>!!t.groupingColumnId,t.getGroupingValue=n=>{if(t._groupingValuesCache.hasOwnProperty(n))return t._groupingValuesCache[n];const r=e.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(t._groupingValuesCache[n]=r.columnDef.getGroupingValue(t.original),t._groupingValuesCache[n]):t.getValue(n)},t._groupingValuesCache={}},createCell:(t,e,n,r)=>{t.getIsGrouped=()=>e.getIsGrouped()&&e.id===n.groupingColumnId,t.getIsPlaceholder=()=>!t.getIsGrouped()&&e.getIsGrouped(),t.getIsAggregated=()=>{var a;return!t.getIsGrouped()&&!t.getIsPlaceholder()&&!!((a=n.subRows)!=null&&a.length)}}};function D7(t,e,n){if(!(e!=null&&e.length)||!n)return t;const r=t.filter(i=>!e.includes(i.id));return n==="remove"?r:[...e.map(i=>t.find(o=>o.id===i)).filter(Boolean),...r]}const R7={getInitialState:t=>({columnOrder:[],...t}),getDefaultOptions:t=>({onColumnOrderChange:or("columnOrder",t)}),createColumn:(t,e)=>{t.getIndex=Tt(n=>[Nf(e,n)],n=>n.findIndex(r=>r.id===t.id),At(e.options,"debugColumns")),t.getIsFirstColumn=n=>{var r;return((r=Nf(e,n)[0])==null?void 0:r.id)===t.id},t.getIsLastColumn=n=>{var r;const a=Nf(e,n);return((r=a[a.length-1])==null?void 0:r.id)===t.id}},createTable:t=>{t.setColumnOrder=e=>t.options.onColumnOrderChange==null?void 0:t.options.onColumnOrderChange(e),t.resetColumnOrder=e=>{var n;t.setColumnOrder(e?[]:(n=t.initialState.columnOrder)!=null?n:[])},t._getOrderColumnsFn=Tt(()=>[t.getState().columnOrder,t.getState().grouping,t.options.groupedColumnMode],(e,n,r)=>a=>{let i=[];if(!(e!=null&&e.length))i=a;else{const o=[...e],u=[...a];for(;u.length&&o.length;){const f=o.shift(),c=u.findIndex(v=>v.id===f);c>-1&&i.push(u.splice(c,1)[0])}i=[...i,...u]}return D7(i,n,r)},At(t.options,"debugTable"))}},A0=()=>({left:[],right:[]}),E7={getInitialState:t=>({columnPinning:A0(),...t}),getDefaultOptions:t=>({onColumnPinningChange:or("columnPinning",t)}),createColumn:(t,e)=>{t.pin=n=>{const r=t.getLeafColumns().map(a=>a.id).filter(Boolean);e.setColumnPinning(a=>{var i,o;if(n==="right"){var u,f;return{left:((u=a==null?void 0:a.left)!=null?u:[]).filter(d=>!(r!=null&&r.includes(d))),right:[...((f=a==null?void 0:a.right)!=null?f:[]).filter(d=>!(r!=null&&r.includes(d))),...r]}}if(n==="left"){var c,v;return{left:[...((c=a==null?void 0:a.left)!=null?c:[]).filter(d=>!(r!=null&&r.includes(d))),...r],right:((v=a==null?void 0:a.right)!=null?v:[]).filter(d=>!(r!=null&&r.includes(d)))}}return{left:((i=a==null?void 0:a.left)!=null?i:[]).filter(d=>!(r!=null&&r.includes(d))),right:((o=a==null?void 0:a.right)!=null?o:[]).filter(d=>!(r!=null&&r.includes(d)))}})},t.getCanPin=()=>t.getLeafColumns().some(r=>{var a,i,o;return((a=r.columnDef.enablePinning)!=null?a:!0)&&((i=(o=e.options.enableColumnPinning)!=null?o:e.options.enablePinning)!=null?i:!0)}),t.getIsPinned=()=>{const n=t.getLeafColumns().map(u=>u.id),{left:r,right:a}=e.getState().columnPinning,i=n.some(u=>r==null?void 0:r.includes(u)),o=n.some(u=>a==null?void 0:a.includes(u));return i?"left":o?"right":!1},t.getPinnedIndex=()=>{var n,r;const a=t.getIsPinned();return a?(n=(r=e.getState().columnPinning)==null||(r=r[a])==null?void 0:r.indexOf(t.id))!=null?n:-1:0}},createRow:(t,e)=>{t.getCenterVisibleCells=Tt(()=>[t._getAllVisibleCells(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,r,a)=>{const i=[...r??[],...a??[]];return n.filter(o=>!i.includes(o.column.id))},At(e.options,"debugRows")),t.getLeftVisibleCells=Tt(()=>[t._getAllVisibleCells(),e.getState().columnPinning.left],(n,r)=>(r??[]).map(i=>n.find(o=>o.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),At(e.options,"debugRows")),t.getRightVisibleCells=Tt(()=>[t._getAllVisibleCells(),e.getState().columnPinning.right],(n,r)=>(r??[]).map(i=>n.find(o=>o.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),At(e.options,"debugRows"))},createTable:t=>{t.setColumnPinning=e=>t.options.onColumnPinningChange==null?void 0:t.options.onColumnPinningChange(e),t.resetColumnPinning=e=>{var n,r;return t.setColumnPinning(e?A0():(n=(r=t.initialState)==null?void 0:r.columnPinning)!=null?n:A0())},t.getIsSomeColumnsPinned=e=>{var n;const r=t.getState().columnPinning;if(!e){var a,i;return!!((a=r.left)!=null&&a.length||(i=r.right)!=null&&i.length)}return!!((n=r[e])!=null&&n.length)},t.getLeftLeafColumns=Tt(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left],(e,n)=>(n??[]).map(r=>e.find(a=>a.id===r)).filter(Boolean),At(t.options,"debugColumns")),t.getRightLeafColumns=Tt(()=>[t.getAllLeafColumns(),t.getState().columnPinning.right],(e,n)=>(n??[]).map(r=>e.find(a=>a.id===r)).filter(Boolean),At(t.options,"debugColumns")),t.getCenterLeafColumns=Tt(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,r)=>{const a=[...n??[],...r??[]];return e.filter(i=>!a.includes(i.id))},At(t.options,"debugColumns"))}};function L7(t){return t||(typeof document<"u"?document:null)}const wv={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},D0=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),O7={getDefaultColumnDef:()=>wv,getInitialState:t=>({columnSizing:{},columnSizingInfo:D0(),...t}),getDefaultOptions:t=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:or("columnSizing",t),onColumnSizingInfoChange:or("columnSizingInfo",t)}),createColumn:(t,e)=>{t.getSize=()=>{var n,r,a;const i=e.getState().columnSizing[t.id];return Math.min(Math.max((n=t.columnDef.minSize)!=null?n:wv.minSize,(r=i??t.columnDef.size)!=null?r:wv.size),(a=t.columnDef.maxSize)!=null?a:wv.maxSize)},t.getStart=Tt(n=>[n,Nf(e,n),e.getState().columnSizing],(n,r)=>r.slice(0,t.getIndex(n)).reduce((a,i)=>a+i.getSize(),0),At(e.options,"debugColumns")),t.getAfter=Tt(n=>[n,Nf(e,n),e.getState().columnSizing],(n,r)=>r.slice(t.getIndex(n)+1).reduce((a,i)=>a+i.getSize(),0),At(e.options,"debugColumns")),t.resetSize=()=>{e.setColumnSizing(n=>{let{[t.id]:r,...a}=n;return a})},t.getCanResize=()=>{var n,r;return((n=t.columnDef.enableResizing)!=null?n:!0)&&((r=e.options.enableColumnResizing)!=null?r:!0)},t.getIsResizing=()=>e.getState().columnSizingInfo.isResizingColumn===t.id},createHeader:(t,e)=>{t.getSize=()=>{let n=0;const r=a=>{if(a.subHeaders.length)a.subHeaders.forEach(r);else{var i;n+=(i=a.column.getSize())!=null?i:0}};return r(t),n},t.getStart=()=>{if(t.index>0){const n=t.headerGroup.headers[t.index-1];return n.getStart()+n.getSize()}return 0},t.getResizeHandler=n=>{const r=e.getColumn(t.column.id),a=r==null?void 0:r.getCanResize();return i=>{if(!r||!a||(i.persist==null||i.persist(),R0(i)&&i.touches&&i.touches.length>1))return;const o=t.getSize(),u=t?t.getLeafHeaders().map(x=>[x.column.id,x.column.getSize()]):[[r.id,r.getSize()]],f=R0(i)?Math.round(i.touches[0].clientX):i.clientX,c={},v=(x,M)=>{typeof M=="number"&&(e.setColumnSizingInfo(C=>{var T,D;const R=e.options.columnResizeDirection==="rtl"?-1:1,E=(M-((T=C==null?void 0:C.startOffset)!=null?T:0))*R,z=Math.max(E/((D=C==null?void 0:C.startSize)!=null?D:0),-.999999);return C.columnSizingStart.forEach(I=>{let[N,L]=I;c[N]=Math.round(Math.max(L+L*z,0)*100)/100}),{...C,deltaOffset:E,deltaPercentage:z}}),(e.options.columnResizeMode==="onChange"||x==="end")&&e.setColumnSizing(C=>({...C,...c})))},d=x=>v("move",x),g=x=>{v("end",x),e.setColumnSizingInfo(M=>({...M,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p=L7(n),y={moveHandler:x=>d(x.clientX),upHandler:x=>{p==null||p.removeEventListener("mousemove",y.moveHandler),p==null||p.removeEventListener("mouseup",y.upHandler),g(x.clientX)}},_={moveHandler:x=>(x.cancelable&&(x.preventDefault(),x.stopPropagation()),d(x.touches[0].clientX),!1),upHandler:x=>{var M;p==null||p.removeEventListener("touchmove",_.moveHandler),p==null||p.removeEventListener("touchend",_.upHandler),x.cancelable&&(x.preventDefault(),x.stopPropagation()),g((M=x.touches[0])==null?void 0:M.clientX)}},S=z7()?{passive:!1}:!1;R0(i)?(p==null||p.addEventListener("touchmove",_.moveHandler,S),p==null||p.addEventListener("touchend",_.upHandler,S)):(p==null||p.addEventListener("mousemove",y.moveHandler,S),p==null||p.addEventListener("mouseup",y.upHandler,S)),e.setColumnSizingInfo(x=>({...x,startOffset:f,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:u,isResizingColumn:r.id}))}}},createTable:t=>{t.setColumnSizing=e=>t.options.onColumnSizingChange==null?void 0:t.options.onColumnSizingChange(e),t.setColumnSizingInfo=e=>t.options.onColumnSizingInfoChange==null?void 0:t.options.onColumnSizingInfoChange(e),t.resetColumnSizing=e=>{var n;t.setColumnSizing(e?{}:(n=t.initialState.columnSizing)!=null?n:{})},t.resetHeaderSizeInfo=e=>{var n;t.setColumnSizingInfo(e?D0():(n=t.initialState.columnSizingInfo)!=null?n:D0())},t.getTotalSize=()=>{var e,n;return(e=(n=t.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?e:0},t.getLeftTotalSize=()=>{var e,n;return(e=(n=t.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?e:0},t.getCenterTotalSize=()=>{var e,n;return(e=(n=t.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?e:0},t.getRightTotalSize=()=>{var e,n;return(e=(n=t.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?e:0}}};let Mv=null;function z7(){if(typeof Mv=="boolean")return Mv;let t=!1;try{const e={get passive(){return t=!0,!1}},n=()=>{};window.addEventListener("test",n,e),window.removeEventListener("test",n)}catch{t=!1}return Mv=t,Mv}function R0(t){return t.type==="touchstart"}const N7={getInitialState:t=>({columnVisibility:{},...t}),getDefaultOptions:t=>({onColumnVisibilityChange:or("columnVisibility",t)}),createColumn:(t,e)=>{t.toggleVisibility=n=>{t.getCanHide()&&e.setColumnVisibility(r=>({...r,[t.id]:n??!t.getIsVisible()}))},t.getIsVisible=()=>{var n,r;const a=t.columns;return(n=a.length?a.some(i=>i.getIsVisible()):(r=e.getState().columnVisibility)==null?void 0:r[t.id])!=null?n:!0},t.getCanHide=()=>{var n,r;return((n=t.columnDef.enableHiding)!=null?n:!0)&&((r=e.options.enableHiding)!=null?r:!0)},t.getToggleVisibilityHandler=()=>n=>{t.toggleVisibility==null||t.toggleVisibility(n.target.checked)}},createRow:(t,e)=>{t._getAllVisibleCells=Tt(()=>[t.getAllCells(),e.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),At(e.options,"debugRows")),t.getVisibleCells=Tt(()=>[t.getLeftVisibleCells(),t.getCenterVisibleCells(),t.getRightVisibleCells()],(n,r,a)=>[...n,...r,...a],At(e.options,"debugRows"))},createTable:t=>{const e=(n,r)=>Tt(()=>[r(),r().filter(a=>a.getIsVisible()).map(a=>a.id).join("_")],a=>a.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),At(t.options,"debugColumns"));t.getVisibleFlatColumns=e("getVisibleFlatColumns",()=>t.getAllFlatColumns()),t.getVisibleLeafColumns=e("getVisibleLeafColumns",()=>t.getAllLeafColumns()),t.getLeftVisibleLeafColumns=e("getLeftVisibleLeafColumns",()=>t.getLeftLeafColumns()),t.getRightVisibleLeafColumns=e("getRightVisibleLeafColumns",()=>t.getRightLeafColumns()),t.getCenterVisibleLeafColumns=e("getCenterVisibleLeafColumns",()=>t.getCenterLeafColumns()),t.setColumnVisibility=n=>t.options.onColumnVisibilityChange==null?void 0:t.options.onColumnVisibilityChange(n),t.resetColumnVisibility=n=>{var r;t.setColumnVisibility(n?{}:(r=t.initialState.columnVisibility)!=null?r:{})},t.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!t.getIsAllColumnsVisible(),t.setColumnVisibility(t.getAllLeafColumns().reduce((a,i)=>({...a,[i.id]:n||!(i.getCanHide!=null&&i.getCanHide())}),{}))},t.getIsAllColumnsVisible=()=>!t.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),t.getIsSomeColumnsVisible=()=>t.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),t.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;t.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function Nf(t,e){return e?e==="center"?t.getCenterVisibleLeafColumns():e==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns()}const I7={createTable:t=>{t._getGlobalFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,"__global__"),t.getGlobalFacetedRowModel=()=>t.options.manualFiltering||!t._getGlobalFacetedRowModel?t.getPreFilteredRowModel():t._getGlobalFacetedRowModel(),t._getGlobalFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,"__global__"),t.getGlobalFacetedUniqueValues=()=>t._getGlobalFacetedUniqueValues?t._getGlobalFacetedUniqueValues():new Map,t._getGlobalFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,"__global__"),t.getGlobalFacetedMinMaxValues=()=>{if(t._getGlobalFacetedMinMaxValues)return t._getGlobalFacetedMinMaxValues()}}},B7={getInitialState:t=>({globalFilter:void 0,...t}),getDefaultOptions:t=>({onGlobalFilterChange:or("globalFilter",t),globalFilterFn:"auto",getColumnCanGlobalFilter:e=>{var n;const r=(n=t.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[e.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(t,e)=>{t.getCanGlobalFilter=()=>{var n,r,a,i;return((n=t.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=e.options.enableGlobalFilter)!=null?r:!0)&&((a=e.options.enableFilters)!=null?a:!0)&&((i=e.options.getColumnCanGlobalFilter==null?void 0:e.options.getColumnCanGlobalFilter(t))!=null?i:!0)&&!!t.accessorFn}},createTable:t=>{t.getGlobalAutoFilterFn=()=>Xa.includesString,t.getGlobalFilterFn=()=>{var e,n;const{globalFilterFn:r}=t.options;return Cp(r)?r:r==="auto"?t.getGlobalAutoFilterFn():(e=(n=t.options.filterFns)==null?void 0:n[r])!=null?e:Xa[r]},t.setGlobalFilter=e=>{t.options.onGlobalFilterChange==null||t.options.onGlobalFilterChange(e)},t.resetGlobalFilter=e=>{t.setGlobalFilter(e?void 0:t.initialState.globalFilter)}}},k7={getInitialState:t=>({expanded:{},...t}),getDefaultOptions:t=>({onExpandedChange:or("expanded",t),paginateExpandedRows:!0}),createTable:t=>{let e=!1,n=!1;t._autoResetExpanded=()=>{var r,a;if(!e){t._queue(()=>{e=!0});return}if((r=(a=t.options.autoResetAll)!=null?a:t.options.autoResetExpanded)!=null?r:!t.options.manualExpanding){if(n)return;n=!0,t._queue(()=>{t.resetExpanded(),n=!1})}},t.setExpanded=r=>t.options.onExpandedChange==null?void 0:t.options.onExpandedChange(r),t.toggleAllRowsExpanded=r=>{r??!t.getIsAllRowsExpanded()?t.setExpanded(!0):t.setExpanded({})},t.resetExpanded=r=>{var a,i;t.setExpanded(r?{}:(a=(i=t.initialState)==null?void 0:i.expanded)!=null?a:{})},t.getCanSomeRowsExpand=()=>t.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),t.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),t.toggleAllRowsExpanded()},t.getIsSomeRowsExpanded=()=>{const r=t.getState().expanded;return r===!0||Object.values(r).some(Boolean)},t.getIsAllRowsExpanded=()=>{const r=t.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||t.getRowModel().flatRows.some(a=>!a.getIsExpanded()))},t.getExpandedDepth=()=>{let r=0;return(t.getState().expanded===!0?Object.keys(t.getRowModel().rowsById):Object.keys(t.getState().expanded)).forEach(i=>{const o=i.split(".");r=Math.max(r,o.length)}),r},t.getPreExpandedRowModel=()=>t.getSortedRowModel(),t.getExpandedRowModel=()=>(!t._getExpandedRowModel&&t.options.getExpandedRowModel&&(t._getExpandedRowModel=t.options.getExpandedRowModel(t)),t.options.manualExpanding||!t._getExpandedRowModel?t.getPreExpandedRowModel():t._getExpandedRowModel())},createRow:(t,e)=>{t.toggleExpanded=n=>{e.setExpanded(r=>{var a;const i=r===!0?!0:!!(r!=null&&r[t.id]);let o={};if(r===!0?Object.keys(e.getRowModel().rowsById).forEach(u=>{o[u]=!0}):o=r,n=(a=n)!=null?a:!i,!i&&n)return{...o,[t.id]:!0};if(i&&!n){const{[t.id]:u,...f}=o;return f}return r})},t.getIsExpanded=()=>{var n;const r=e.getState().expanded;return!!((n=e.options.getIsRowExpanded==null?void 0:e.options.getIsRowExpanded(t))!=null?n:r===!0||r!=null&&r[t.id])},t.getCanExpand=()=>{var n,r,a;return(n=e.options.getRowCanExpand==null?void 0:e.options.getRowCanExpand(t))!=null?n:((r=e.options.enableExpanding)!=null?r:!0)&&!!((a=t.subRows)!=null&&a.length)},t.getIsAllParentsExpanded=()=>{let n=!0,r=t;for(;n&&r.parentId;)r=e.getRow(r.parentId,!0),n=r.getIsExpanded();return n},t.getToggleExpandedHandler=()=>{const n=t.getCanExpand();return()=>{n&&t.toggleExpanded()}}}},W_=0,Q_=10,E0=()=>({pageIndex:W_,pageSize:Q_}),P7={getInitialState:t=>({...t,pagination:{...E0(),...t==null?void 0:t.pagination}}),getDefaultOptions:t=>({onPaginationChange:or("pagination",t)}),createTable:t=>{let e=!1,n=!1;t._autoResetPageIndex=()=>{var r,a;if(!e){t._queue(()=>{e=!0});return}if((r=(a=t.options.autoResetAll)!=null?a:t.options.autoResetPageIndex)!=null?r:!t.options.manualPagination){if(n)return;n=!0,t._queue(()=>{t.resetPageIndex(),n=!1})}},t.setPagination=r=>{const a=i=>qi(r,i);return t.options.onPaginationChange==null?void 0:t.options.onPaginationChange(a)},t.resetPagination=r=>{var a;t.setPagination(r?E0():(a=t.initialState.pagination)!=null?a:E0())},t.setPageIndex=r=>{t.setPagination(a=>{let i=qi(r,a.pageIndex);const o=typeof t.options.pageCount>"u"||t.options.pageCount===-1?Number.MAX_SAFE_INTEGER:t.options.pageCount-1;return i=Math.max(0,Math.min(i,o)),{...a,pageIndex:i}})},t.resetPageIndex=r=>{var a,i;t.setPageIndex(r?W_:(a=(i=t.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?a:W_)},t.resetPageSize=r=>{var a,i;t.setPageSize(r?Q_:(a=(i=t.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?a:Q_)},t.setPageSize=r=>{t.setPagination(a=>{const i=Math.max(1,qi(r,a.pageSize)),o=a.pageSize*a.pageIndex,u=Math.floor(o/i);return{...a,pageIndex:u,pageSize:i}})},t.setPageCount=r=>t.setPagination(a=>{var i;let o=qi(r,(i=t.options.pageCount)!=null?i:-1);return typeof o=="number"&&(o=Math.max(-1,o)),{...a,pageCount:o}}),t.getPageOptions=Tt(()=>[t.getPageCount()],r=>{let a=[];return r&&r>0&&(a=[...new Array(r)].fill(null).map((i,o)=>o)),a},At(t.options,"debugTable")),t.getCanPreviousPage=()=>t.getState().pagination.pageIndex>0,t.getCanNextPage=()=>{const{pageIndex:r}=t.getState().pagination,a=t.getPageCount();return a===-1?!0:a===0?!1:r<a-1},t.previousPage=()=>t.setPageIndex(r=>r-1),t.nextPage=()=>t.setPageIndex(r=>r+1),t.firstPage=()=>t.setPageIndex(0),t.lastPage=()=>t.setPageIndex(t.getPageCount()-1),t.getPrePaginationRowModel=()=>t.getExpandedRowModel(),t.getPaginationRowModel=()=>(!t._getPaginationRowModel&&t.options.getPaginationRowModel&&(t._getPaginationRowModel=t.options.getPaginationRowModel(t)),t.options.manualPagination||!t._getPaginationRowModel?t.getPrePaginationRowModel():t._getPaginationRowModel()),t.getPageCount=()=>{var r;return(r=t.options.pageCount)!=null?r:Math.ceil(t.getRowCount()/t.getState().pagination.pageSize)},t.getRowCount=()=>{var r;return(r=t.options.rowCount)!=null?r:t.getPrePaginationRowModel().rows.length}}},L0=()=>({top:[],bottom:[]}),H7={getInitialState:t=>({rowPinning:L0(),...t}),getDefaultOptions:t=>({onRowPinningChange:or("rowPinning",t)}),createRow:(t,e)=>{t.pin=(n,r,a)=>{const i=r?t.getLeafRows().map(f=>{let{id:c}=f;return c}):[],o=a?t.getParentRows().map(f=>{let{id:c}=f;return c}):[],u=new Set([...o,t.id,...i]);e.setRowPinning(f=>{var c,v;if(n==="bottom"){var d,g;return{top:((d=f==null?void 0:f.top)!=null?d:[]).filter(_=>!(u!=null&&u.has(_))),bottom:[...((g=f==null?void 0:f.bottom)!=null?g:[]).filter(_=>!(u!=null&&u.has(_))),...Array.from(u)]}}if(n==="top"){var p,y;return{top:[...((p=f==null?void 0:f.top)!=null?p:[]).filter(_=>!(u!=null&&u.has(_))),...Array.from(u)],bottom:((y=f==null?void 0:f.bottom)!=null?y:[]).filter(_=>!(u!=null&&u.has(_)))}}return{top:((c=f==null?void 0:f.top)!=null?c:[]).filter(_=>!(u!=null&&u.has(_))),bottom:((v=f==null?void 0:f.bottom)!=null?v:[]).filter(_=>!(u!=null&&u.has(_)))}})},t.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:a}=e.options;return typeof r=="function"?r(t):(n=r??a)!=null?n:!0},t.getIsPinned=()=>{const n=[t.id],{top:r,bottom:a}=e.getState().rowPinning,i=n.some(u=>r==null?void 0:r.includes(u)),o=n.some(u=>a==null?void 0:a.includes(u));return i?"top":o?"bottom":!1},t.getPinnedIndex=()=>{var n,r;const a=t.getIsPinned();if(!a)return-1;const i=(n=a==="top"?e.getTopRows():e.getBottomRows())==null?void 0:n.map(o=>{let{id:u}=o;return u});return(r=i==null?void 0:i.indexOf(t.id))!=null?r:-1}},createTable:t=>{t.setRowPinning=e=>t.options.onRowPinningChange==null?void 0:t.options.onRowPinningChange(e),t.resetRowPinning=e=>{var n,r;return t.setRowPinning(e?L0():(n=(r=t.initialState)==null?void 0:r.rowPinning)!=null?n:L0())},t.getIsSomeRowsPinned=e=>{var n;const r=t.getState().rowPinning;if(!e){var a,i;return!!((a=r.top)!=null&&a.length||(i=r.bottom)!=null&&i.length)}return!!((n=r[e])!=null&&n.length)},t._getPinnedRows=(e,n,r)=>{var a;return((a=t.options.keepPinnedRows)==null||a?(n??[]).map(o=>{const u=t.getRow(o,!0);return u.getIsAllParentsExpanded()?u:null}):(n??[]).map(o=>e.find(u=>u.id===o))).filter(Boolean).map(o=>({...o,position:r}))},t.getTopRows=Tt(()=>[t.getRowModel().rows,t.getState().rowPinning.top],(e,n)=>t._getPinnedRows(e,n,"top"),At(t.options,"debugRows")),t.getBottomRows=Tt(()=>[t.getRowModel().rows,t.getState().rowPinning.bottom],(e,n)=>t._getPinnedRows(e,n,"bottom"),At(t.options,"debugRows")),t.getCenterRows=Tt(()=>[t.getRowModel().rows,t.getState().rowPinning.top,t.getState().rowPinning.bottom],(e,n,r)=>{const a=new Set([...n??[],...r??[]]);return e.filter(i=>!a.has(i.id))},At(t.options,"debugRows"))}},V7={getInitialState:t=>({rowSelection:{},...t}),getDefaultOptions:t=>({onRowSelectionChange:or("rowSelection",t),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:t=>{t.setRowSelection=e=>t.options.onRowSelectionChange==null?void 0:t.options.onRowSelectionChange(e),t.resetRowSelection=e=>{var n;return t.setRowSelection(e?{}:(n=t.initialState.rowSelection)!=null?n:{})},t.toggleAllRowsSelected=e=>{t.setRowSelection(n=>{e=typeof e<"u"?e:!t.getIsAllRowsSelected();const r={...n},a=t.getPreGroupedRowModel().flatRows;return e?a.forEach(i=>{i.getCanSelect()&&(r[i.id]=!0)}):a.forEach(i=>{delete r[i.id]}),r})},t.toggleAllPageRowsSelected=e=>t.setRowSelection(n=>{const r=typeof e<"u"?e:!t.getIsAllPageRowsSelected(),a={...n};return t.getRowModel().rows.forEach(i=>{K_(a,i.id,r,!0,t)}),a}),t.getPreSelectedRowModel=()=>t.getCoreRowModel(),t.getSelectedRowModel=Tt(()=>[t.getState().rowSelection,t.getCoreRowModel()],(e,n)=>Object.keys(e).length?O0(t,n):{rows:[],flatRows:[],rowsById:{}},At(t.options,"debugTable")),t.getFilteredSelectedRowModel=Tt(()=>[t.getState().rowSelection,t.getFilteredRowModel()],(e,n)=>Object.keys(e).length?O0(t,n):{rows:[],flatRows:[],rowsById:{}},At(t.options,"debugTable")),t.getGroupedSelectedRowModel=Tt(()=>[t.getState().rowSelection,t.getSortedRowModel()],(e,n)=>Object.keys(e).length?O0(t,n):{rows:[],flatRows:[],rowsById:{}},At(t.options,"debugTable")),t.getIsAllRowsSelected=()=>{const e=t.getFilteredRowModel().flatRows,{rowSelection:n}=t.getState();let r=!!(e.length&&Object.keys(n).length);return r&&e.some(a=>a.getCanSelect()&&!n[a.id])&&(r=!1),r},t.getIsAllPageRowsSelected=()=>{const e=t.getPaginationRowModel().flatRows.filter(a=>a.getCanSelect()),{rowSelection:n}=t.getState();let r=!!e.length;return r&&e.some(a=>!n[a.id])&&(r=!1),r},t.getIsSomeRowsSelected=()=>{var e;const n=Object.keys((e=t.getState().rowSelection)!=null?e:{}).length;return n>0&&n<t.getFilteredRowModel().flatRows.length},t.getIsSomePageRowsSelected=()=>{const e=t.getPaginationRowModel().flatRows;return t.getIsAllPageRowsSelected()?!1:e.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},t.getToggleAllRowsSelectedHandler=()=>e=>{t.toggleAllRowsSelected(e.target.checked)},t.getToggleAllPageRowsSelectedHandler=()=>e=>{t.toggleAllPageRowsSelected(e.target.checked)}},createRow:(t,e)=>{t.toggleSelected=(n,r)=>{const a=t.getIsSelected();e.setRowSelection(i=>{var o;if(n=typeof n<"u"?n:!a,t.getCanSelect()&&a===n)return i;const u={...i};return K_(u,t.id,n,(o=r==null?void 0:r.selectChildren)!=null?o:!0,e),u})},t.getIsSelected=()=>{const{rowSelection:n}=e.getState();return D1(t,n)},t.getIsSomeSelected=()=>{const{rowSelection:n}=e.getState();return J_(t,n)==="some"},t.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=e.getState();return J_(t,n)==="all"},t.getCanSelect=()=>{var n;return typeof e.options.enableRowSelection=="function"?e.options.enableRowSelection(t):(n=e.options.enableRowSelection)!=null?n:!0},t.getCanSelectSubRows=()=>{var n;return typeof e.options.enableSubRowSelection=="function"?e.options.enableSubRowSelection(t):(n=e.options.enableSubRowSelection)!=null?n:!0},t.getCanMultiSelect=()=>{var n;return typeof e.options.enableMultiRowSelection=="function"?e.options.enableMultiRowSelection(t):(n=e.options.enableMultiRowSelection)!=null?n:!0},t.getToggleSelectedHandler=()=>{const n=t.getCanSelect();return r=>{var a;n&&t.toggleSelected((a=r.target)==null?void 0:a.checked)}}}},K_=(t,e,n,r,a)=>{var i;const o=a.getRow(e,!0);n?(o.getCanMultiSelect()||Object.keys(t).forEach(u=>delete t[u]),o.getCanSelect()&&(t[e]=!0)):delete t[e],r&&(i=o.subRows)!=null&&i.length&&o.getCanSelectSubRows()&&o.subRows.forEach(u=>K_(t,u.id,n,r,a))};function O0(t,e){const n=t.getState().rowSelection,r=[],a={},i=function(o,u){return o.map(f=>{var c;const v=D1(f,n);if(v&&(r.push(f),a[f.id]=f),(c=f.subRows)!=null&&c.length&&(f={...f,subRows:i(f.subRows)}),v)return f}).filter(Boolean)};return{rows:i(e.rows),flatRows:r,rowsById:a}}function D1(t,e){var n;return(n=e[t.id])!=null?n:!1}function J_(t,e,n){var r;if(!((r=t.subRows)!=null&&r.length))return!1;let a=!0,i=!1;return t.subRows.forEach(o=>{if(!(i&&!a)&&(o.getCanSelect()&&(D1(o,e)?i=!0:a=!1),o.subRows&&o.subRows.length)){const u=J_(o,e);u==="all"?i=!0:(u==="some"&&(i=!0),a=!1)}}),a?"all":i?"some":!1}const tS=/([0-9]+)/gm,F7=(t,e,n)=>sz(to(t.getValue(n)).toLowerCase(),to(e.getValue(n)).toLowerCase()),G7=(t,e,n)=>sz(to(t.getValue(n)),to(e.getValue(n))),U7=(t,e,n)=>R1(to(t.getValue(n)).toLowerCase(),to(e.getValue(n)).toLowerCase()),j7=(t,e,n)=>R1(to(t.getValue(n)),to(e.getValue(n))),Y7=(t,e,n)=>{const r=t.getValue(n),a=e.getValue(n);return r>a?1:r<a?-1:0},q7=(t,e,n)=>R1(t.getValue(n),e.getValue(n));function R1(t,e){return t===e?0:t>e?1:-1}function to(t){return typeof t=="number"?isNaN(t)||t===1/0||t===-1/0?"":String(t):typeof t=="string"?t:""}function sz(t,e){const n=t.split(tS).filter(Boolean),r=e.split(tS).filter(Boolean);for(;n.length&&r.length;){const a=n.shift(),i=r.shift(),o=parseInt(a,10),u=parseInt(i,10),f=[o,u].sort();if(isNaN(f[0])){if(a>i)return 1;if(i>a)return-1;continue}if(isNaN(f[1]))return isNaN(o)?-1:1;if(o>u)return 1;if(u>o)return-1}return n.length-r.length}const hf={alphanumeric:F7,alphanumericCaseSensitive:G7,text:U7,textCaseSensitive:j7,datetime:Y7,basic:q7},X7={getInitialState:t=>({sorting:[],...t}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:t=>({onSortingChange:or("sorting",t),isMultiSortEvent:e=>e.shiftKey}),createColumn:(t,e)=>{t.getAutoSortingFn=()=>{const n=e.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const a of n){const i=a==null?void 0:a.getValue(t.id);if(Object.prototype.toString.call(i)==="[object Date]")return hf.datetime;if(typeof i=="string"&&(r=!0,i.split(tS).length>1))return hf.alphanumeric}return r?hf.text:hf.basic},t.getAutoSortDir=()=>{const n=e.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(t.id))=="string"?"asc":"desc"},t.getSortingFn=()=>{var n,r;if(!t)throw new Error;return Cp(t.columnDef.sortingFn)?t.columnDef.sortingFn:t.columnDef.sortingFn==="auto"?t.getAutoSortingFn():(n=(r=e.options.sortingFns)==null?void 0:r[t.columnDef.sortingFn])!=null?n:hf[t.columnDef.sortingFn]},t.toggleSorting=(n,r)=>{const a=t.getNextSortingOrder(),i=typeof n<"u"&&n!==null;e.setSorting(o=>{const u=o==null?void 0:o.find(p=>p.id===t.id),f=o==null?void 0:o.findIndex(p=>p.id===t.id);let c=[],v,d=i?n:a==="desc";if(o!=null&&o.length&&t.getCanMultiSort()&&r?u?v="toggle":v="add":o!=null&&o.length&&f!==o.length-1?v="replace":u?v="toggle":v="replace",v==="toggle"&&(i||a||(v="remove")),v==="add"){var g;c=[...o,{id:t.id,desc:d}],c.splice(0,c.length-((g=e.options.maxMultiSortColCount)!=null?g:Number.MAX_SAFE_INTEGER))}else v==="toggle"?c=o.map(p=>p.id===t.id?{...p,desc:d}:p):v==="remove"?c=o.filter(p=>p.id!==t.id):c=[{id:t.id,desc:d}];return c})},t.getFirstSortDir=()=>{var n,r;return((n=(r=t.columnDef.sortDescFirst)!=null?r:e.options.sortDescFirst)!=null?n:t.getAutoSortDir()==="desc")?"desc":"asc"},t.getNextSortingOrder=n=>{var r,a;const i=t.getFirstSortDir(),o=t.getIsSorted();return o?o!==i&&((r=e.options.enableSortingRemoval)==null||r)&&(!(n&&(a=e.options.enableMultiRemove)!=null)||a)?!1:o==="desc"?"asc":"desc":i},t.getCanSort=()=>{var n,r;return((n=t.columnDef.enableSorting)!=null?n:!0)&&((r=e.options.enableSorting)!=null?r:!0)&&!!t.accessorFn},t.getCanMultiSort=()=>{var n,r;return(n=(r=t.columnDef.enableMultiSort)!=null?r:e.options.enableMultiSort)!=null?n:!!t.accessorFn},t.getIsSorted=()=>{var n;const r=(n=e.getState().sorting)==null?void 0:n.find(a=>a.id===t.id);return r?r.desc?"desc":"asc":!1},t.getSortIndex=()=>{var n,r;return(n=(r=e.getState().sorting)==null?void 0:r.findIndex(a=>a.id===t.id))!=null?n:-1},t.clearSorting=()=>{e.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==t.id):[])},t.getToggleSortingHandler=()=>{const n=t.getCanSort();return r=>{n&&(r.persist==null||r.persist(),t.toggleSorting==null||t.toggleSorting(void 0,t.getCanMultiSort()?e.options.isMultiSortEvent==null?void 0:e.options.isMultiSortEvent(r):!1))}}},createTable:t=>{t.setSorting=e=>t.options.onSortingChange==null?void 0:t.options.onSortingChange(e),t.resetSorting=e=>{var n,r;t.setSorting(e?[]:(n=(r=t.initialState)==null?void 0:r.sorting)!=null?n:[])},t.getPreSortedRowModel=()=>t.getGroupedRowModel(),t.getSortedRowModel=()=>(!t._getSortedRowModel&&t.options.getSortedRowModel&&(t._getSortedRowModel=t.options.getSortedRowModel(t)),t.options.manualSorting||!t._getSortedRowModel?t.getPreSortedRowModel():t._getSortedRowModel())}},Z7=[d7,N7,R7,E7,g7,m7,I7,B7,X7,A7,k7,P7,H7,V7,O7];function $7(t){var e,n;const r=[...Z7,...(e=t._features)!=null?e:[]];let a={_features:r};const i=a._features.reduce((g,p)=>Object.assign(g,p.getDefaultOptions==null?void 0:p.getDefaultOptions(a)),{}),o=g=>a.options.mergeOptions?a.options.mergeOptions(i,g):{...i,...g};let f={...{},...(n=t.initialState)!=null?n:{}};a._features.forEach(g=>{var p;f=(p=g.getInitialState==null?void 0:g.getInitialState(f))!=null?p:f});const c=[];let v=!1;const d={_features:r,options:{...i,...t},initialState:f,_queue:g=>{c.push(g),v||(v=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();v=!1}).catch(p=>setTimeout(()=>{throw p})))},reset:()=>{a.setState(a.initialState)},setOptions:g=>{const p=qi(g,a.options);a.options=o(p)},getState:()=>a.options.state,setState:g=>{a.options.onStateChange==null||a.options.onStateChange(g)},_getRowId:(g,p,y)=>{var _;return(_=a.options.getRowId==null?void 0:a.options.getRowId(g,p,y))!=null?_:`${y?[y.id,p].join("."):p}`},getCoreRowModel:()=>(a._getCoreRowModel||(a._getCoreRowModel=a.options.getCoreRowModel(a)),a._getCoreRowModel()),getRowModel:()=>a.getPaginationRowModel(),getRow:(g,p)=>{let y=(p?a.getPrePaginationRowModel():a.getRowModel()).rowsById[g];if(!y&&(y=a.getCoreRowModel().rowsById[g],!y))throw new Error;return y},_getDefaultColumnDef:Tt(()=>[a.options.defaultColumn],g=>{var p;return g=(p=g)!=null?p:{},{header:y=>{const _=y.header.column.columnDef;return _.accessorKey?_.accessorKey:_.accessorFn?_.id:null},cell:y=>{var _,S;return(_=(S=y.renderValue())==null||S.toString==null?void 0:S.toString())!=null?_:null},...a._features.reduce((y,_)=>Object.assign(y,_.getDefaultColumnDef==null?void 0:_.getDefaultColumnDef()),{}),...g}},At(t,"debugColumns")),_getColumnDefs:()=>a.options.columns,getAllColumns:Tt(()=>[a._getColumnDefs()],g=>{const p=function(y,_,S){return S===void 0&&(S=0),y.map(x=>{const M=v7(a,x,S,_),C=x;return M.columns=C.columns?p(C.columns,M,S+1):[],M})};return p(g)},At(t,"debugColumns")),getAllFlatColumns:Tt(()=>[a.getAllColumns()],g=>g.flatMap(p=>p.getFlatColumns()),At(t,"debugColumns")),_getAllFlatColumnsById:Tt(()=>[a.getAllFlatColumns()],g=>g.reduce((p,y)=>(p[y.id]=y,p),{}),At(t,"debugColumns")),getAllLeafColumns:Tt(()=>[a.getAllColumns(),a._getOrderColumnsFn()],(g,p)=>{let y=g.flatMap(_=>_.getLeafColumns());return p(y)},At(t,"debugColumns")),getColumn:g=>a._getAllFlatColumnsById()[g]};Object.assign(a,d);for(let g=0;g<a._features.length;g++){const p=a._features[g];p==null||p.createTable==null||p.createTable(a)}return a}function W7(){return t=>Tt(()=>[t.options.data],e=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(a,i,o){i===void 0&&(i=0);const u=[];for(let c=0;c<a.length;c++){const v=p7(t,t._getRowId(a[c],c,o),a[c],c,i,void 0,o==null?void 0:o.id);if(n.flatRows.push(v),n.rowsById[v.id]=v,u.push(v),t.options.getSubRows){var f;v.originalSubRows=t.options.getSubRows(a[c],c),(f=v.originalSubRows)!=null&&f.length&&(v.subRows=r(v.originalSubRows,i+1,v))}}return u};return n.rows=r(e),n},At(t.options,"debugTable","getRowModel",()=>t._autoResetPageIndex()))}function Q7(){return t=>Tt(()=>[t.getState().sorting,t.getPreSortedRowModel()],(e,n)=>{if(!n.rows.length||!(e!=null&&e.length))return n;const r=t.getState().sorting,a=[],i=r.filter(f=>{var c;return(c=t.getColumn(f.id))==null?void 0:c.getCanSort()}),o={};i.forEach(f=>{const c=t.getColumn(f.id);c&&(o[f.id]={sortUndefined:c.columnDef.sortUndefined,invertSorting:c.columnDef.invertSorting,sortingFn:c.getSortingFn()})});const u=f=>{const c=f.map(v=>({...v}));return c.sort((v,d)=>{for(let p=0;p<i.length;p+=1){var g;const y=i[p],_=o[y.id],S=_.sortUndefined,x=(g=y==null?void 0:y.desc)!=null?g:!1;let M=0;if(S){const C=v.getValue(y.id),T=d.getValue(y.id),D=C===void 0,R=T===void 0;if(D||R){if(S==="first")return D?-1:1;if(S==="last")return D?1:-1;M=D&&R?0:D?S:-S}}if(M===0&&(M=_.sortingFn(v,d,y.id)),M!==0)return x&&(M*=-1),_.invertSorting&&(M*=-1),M}return v.index-d.index}),c.forEach(v=>{var d;a.push(v),(d=v.subRows)!=null&&d.length&&(v.subRows=u(v.subRows))}),c};return{rows:u(n.rows),flatRows:a,rowsById:n.rowsById}},At(t.options,"debugTable","getSortedRowModel",()=>t._autoResetPageIndex()))}/**
102
+ * react-table
103
+ *
104
+ * Copyright (c) TanStack
105
+ *
106
+ * This source code is licensed under the MIT license found in the
107
+ * LICENSE.md file in the root directory of this source tree.
108
+ *
109
+ * @license MIT
110
+ */function p2(t,e){return t?K7(t)?lt.createElement(t,e):t:null}function K7(t){return J7(t)||typeof t=="function"||tj(t)}function J7(t){return typeof t=="function"&&(()=>{const e=Object.getPrototypeOf(t);return e.prototype&&e.prototype.isReactComponent})()}function tj(t){return typeof t=="object"&&typeof t.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(t.$$typeof.description)}function ej(t){const e={state:{},onStateChange:()=>{},renderFallbackValue:null,...t},[n]=lt.useState(()=>({current:$7(e)})),[r,a]=lt.useState(()=>n.current.initialState);return n.current.setOptions(i=>({...i,...t,state:{...r,...t.state},onStateChange:o=>{a(o),t.onStateChange==null||t.onStateChange(o)}})),n.current}var uz=D2();function _s(t,e,n){let r=n.initialDeps??[],a,i=!0;function o(){var u,f,c;let v;n.key&&((u=n.debug)!=null&&u.call(n))&&(v=Date.now());const d=t();if(!(d.length!==r.length||d.some((y,_)=>r[_]!==y)))return a;r=d;let p;if(n.key&&((f=n.debug)!=null&&f.call(n))&&(p=Date.now()),a=e(...d),n.key&&((c=n.debug)!=null&&c.call(n))){const y=Math.round((Date.now()-v)*100)/100,_=Math.round((Date.now()-p)*100)/100,S=_/16,x=(M,C)=>{for(M=String(M);M.length<C;)M=" "+M;return M};console.info(`%c⏱ ${x(_,5)} /${x(y,5)} ms`,`
111
+ font-size: .6rem;
112
+ font-weight: bold;
113
+ color: hsl(${Math.max(0,Math.min(120-120*S,120))}deg 100% 31%);`,n==null?void 0:n.key)}return n!=null&&n.onChange&&!(i&&n.skipInitialOnChange)&&n.onChange(a),i=!1,a}return o.updateDeps=u=>{r=u},o}function g2(t,e){if(t===void 0)throw new Error("Unexpected undefined");return t}const nj=(t,e)=>Math.abs(t-e)<1.01,rj=(t,e,n)=>{let r;return function(...a){t.clearTimeout(r),r=t.setTimeout(()=>e.apply(this,a),n)}},m2=t=>{const{offsetWidth:e,offsetHeight:n}=t;return{width:e,height:n}},aj=t=>t,ij=t=>{const e=Math.max(t.startIndex-t.overscan,0),n=Math.min(t.endIndex+t.overscan,t.count-1),r=[];for(let a=e;a<=n;a++)r.push(a);return r},oj=(t,e)=>{const n=t.scrollElement;if(!n)return;const r=t.targetWindow;if(!r)return;const a=o=>{const{width:u,height:f}=o;e({width:Math.round(u),height:Math.round(f)})};if(a(m2(n)),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver(o=>{const u=()=>{const f=o[0];if(f!=null&&f.borderBoxSize){const c=f.borderBoxSize[0];if(c){a({width:c.inlineSize,height:c.blockSize});return}}a(m2(n))};t.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(u):u()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},y2={passive:!0},_2=typeof window>"u"?!0:"onscrollend"in window,lj=(t,e)=>{const n=t.scrollElement;if(!n)return;const r=t.targetWindow;if(!r)return;let a=0;const i=t.options.useScrollendEvent&&_2?()=>{}:rj(r,()=>{e(a,!1)},t.options.isScrollingResetDelay),o=v=>()=>{const{horizontal:d,isRtl:g}=t.options;a=d?n.scrollLeft*(g&&-1||1):n.scrollTop,i(),e(a,v)},u=o(!0),f=o(!1);n.addEventListener("scroll",u,y2);const c=t.options.useScrollendEvent&&_2;return c&&n.addEventListener("scrollend",f,y2),()=>{n.removeEventListener("scroll",u),c&&n.removeEventListener("scrollend",f)}},sj=(t,e,n)=>{if(e!=null&&e.borderBoxSize){const r=e.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return t[n.options.horizontal?"offsetWidth":"offsetHeight"]},uj=(t,{adjustments:e=0,behavior:n},r)=>{var a,i;const o=t+e;(i=(a=r.scrollElement)==null?void 0:a.scrollTo)==null||i.call(a,{[r.options.horizontal?"left":"top"]:o,behavior:n})};class fj{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var n,r,a;return((a=(r=(n=this.targetWindow)==null?void 0:n.performance)==null?void 0:r.now)==null?void 0:a.call(r))??Date.now()},this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(a=>{a.forEach(i=>{const o=()=>{const u=i.target,f=this.indexFromElement(u);if(!u.isConnected){this.observer.unobserve(u),this.elementsCache.delete(this.options.getItemKey(f));return}this.shouldMeasureDuringScroll(f)&&this.resizeItem(f,this.options.measureElement(u,i,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()})}));return{disconnect:()=>{var a;(a=r())==null||a.disconnect(),n=null},observe:a=>{var i;return(i=r())==null?void 0:i.observe(a,{box:"border-box"})},unobserve:a=>{var i;return(i=r())==null?void 0:i.unobserve(a)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,a])=>{typeof a>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:aj,rangeExtractor:ij,onChange:()=>{},measureElement:sj,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var r,a;(a=(r=this.options).onChange)==null||a.call(r,this,n)},this.maybeNotify=_s(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=i,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const a=new Map,i=new Map;for(let o=r-1;o>=0;o--){const u=n[o];if(a.has(u.lane))continue;const f=i.get(u.lane);if(f==null||u.end>f.end?i.set(u.lane,u):u.end<f.end&&a.set(u.lane,!0),a.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((o,u)=>o.end===u.end?o.index-u.index:o.end-u.end)[0]:void 0},this.getMeasurementOptions=_s(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(n,r,a,i,o,u)=>(this.prevLanes!==void 0&&this.prevLanes!==u&&(this.lanesChangedFlag=!0),this.prevLanes=u,this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:a,getItemKey:i,enabled:o,lanes:u}),{key:!1}),this.getMeasurements=_s(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:a,getItemKey:i,enabled:o,lanes:u},f)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>n)for(const g of this.laneAssignments.keys())g>=n&&this.laneAssignments.delete(g);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(g=>{this.itemSizeCache.set(g.key,g.size)}));const c=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===n&&(this.lanesSettling=!1);const v=this.measurementsCache.slice(0,c),d=new Array(u).fill(void 0);for(let g=0;g<c;g++){const p=v[g];p&&(d[p.lane]=g)}for(let g=c;g<n;g++){const p=i(g),y=this.laneAssignments.get(g);let _,S;if(y!==void 0&&this.options.lanes>1){_=y;const T=d[_],D=T!==void 0?v[T]:void 0;S=D?D.end+this.options.gap:r+a}else{const T=this.options.lanes===1?v[g-1]:this.getFurthestMeasurement(v,g);S=T?T.end+this.options.gap:r+a,_=T?T.lane:g%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(g,_)}const x=f.get(p),M=typeof x=="number"?x:this.options.estimateSize(g),C=S+M;v[g]={index:g,start:S,size:M,end:C,key:p,lane:_},d[_]=g}return this.measurementsCache=v,v},{key:!1,debug:()=>this.options.debug}),this.calculateRange=_s(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,a,i)=>this.range=n.length>0&&r>0?cj({measurements:n,outerSize:r,scrollOffset:a,lanes:i}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=_s(()=>{let n=null,r=null;const a=this.calculateRange();return a&&(n=a.startIndex,r=a.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,a,i,o)=>i===null||o===null?[]:n({startIndex:i,endIndex:o,overscan:r,count:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,a=n.getAttribute(r);return a?parseInt(a,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=n=>{var r;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const a=this.scrollState.index??((r=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:r.index);if(a!==void 0&&this.range){const i=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),o=Math.max(0,a-i),u=Math.min(this.options.count-1,a+i);return n>=o&&n<=u}return!0},this.measureElement=n=>{if(!n){this.elementsCache.forEach((o,u)=>{o.isConnected||(this.observer.unobserve(o),this.elementsCache.delete(u))});return}const r=this.indexFromElement(n),a=this.options.getItemKey(r),i=this.elementsCache.get(a);i!==n&&(i&&this.observer.unobserve(i),this.observer.observe(n),this.elementsCache.set(a,n)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(r)&&this.resizeItem(r,this.options.measureElement(n,void 0,this))},this.resizeItem=(n,r)=>{var a;const i=this.measurementsCache[n];if(!i)return;const o=this.itemSizeCache.get(i.key)??i.size,u=r-o;u!==0&&(((a=this.scrollState)==null?void 0:a.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,u,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=u,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.getVirtualItems=_s(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const a=[];for(let i=0,o=n.length;i<o;i++){const u=n[i],f=r[u];a.push(f)}return a},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return g2(r[fz(0,r.length-1,a=>g2(r[a]).start,n)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const n=this.scrollElement.document.documentElement;return this.options.horizontal?n.scrollWidth-this.scrollElement.innerWidth:n.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(n,r,a=0)=>{if(!this.scrollElement)return 0;const i=this.getSize(),o=this.getScrollOffset();r==="auto"&&(r=n>=o+i?"end":"start"),r==="center"?n+=(a-i)/2:r==="end"&&(n-=i);const u=this.getMaxScrollOffset();return Math.max(Math.min(u,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const a=this.getSize(),i=this.getScrollOffset(),o=this.measurementsCache[n];if(!o)return;if(r==="auto")if(o.end>=i+a-this.options.scrollPaddingEnd)r="end";else if(o.start<=i+this.options.scrollPaddingStart)r="start";else return[i,r];if(r==="end"&&n===this.options.count-1)return[this.getMaxScrollOffset(),r];const u=r==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(u,r,o.size),r]},this.scrollToOffset=(n,{align:r="start",behavior:a="auto"}={})=>{const i=this.getOffsetForAlignment(n,r),o=this.now();this.scrollState={index:null,align:r,behavior:a,startedAt:o,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:a}),this.scheduleScrollReconcile()},this.scrollToIndex=(n,{align:r="auto",behavior:a="auto"}={})=>{n=Math.max(0,Math.min(n,this.options.count-1));const i=this.getOffsetForIndex(n,r);if(!i)return;const[o,u]=i,f=this.now();this.scrollState={index:n,align:u,behavior:a,startedAt:f,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:a}),this.scheduleScrollReconcile()},this.scrollBy=(n,{behavior:r="auto"}={})=>{const a=this.getScrollOffset()+n,i=this.now();this.scrollState={index:null,align:"start",behavior:r,startedAt:i,lastTargetOffset:a,stableFrames:0},this._scrollToOffset(a,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let a;if(r.length===0)a=this.options.paddingStart;else if(this.options.lanes===1)a=((n=r[r.length-1])==null?void 0:n.end)??0;else{const i=Array(this.options.lanes).fill(null);let o=r.length-1;for(;o>=0&&i.some(u=>u===null);){const u=r[o];i[u.lane]===null&&(i[u.lane]=u.end),o--}a=Math.max(...i.filter(u=>u!==null))}return Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:a})=>{this.options.scrollToFn(n,{behavior:a,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const r=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,a=r?r[0]:this.scrollState.lastTargetOffset,i=1,o=a!==this.scrollState.lastTargetOffset;if(!o&&nj(a,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=i){this.scrollState=null;return}}else this.scrollState.stableFrames=0,o&&(this.scrollState.lastTargetOffset=a,this.scrollState.behavior="auto",this._scrollToOffset(a,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const fz=(t,e,n,r)=>{for(;t<=e;){const a=(t+e)/2|0,i=n(a);if(i<r)t=a+1;else if(i>r)e=a-1;else return a}return t>0?t-1:0};function cj({measurements:t,outerSize:e,scrollOffset:n,lanes:r}){const a=t.length-1,i=f=>t[f].start;if(t.length<=r)return{startIndex:0,endIndex:a};let o=fz(0,a,i,n),u=o;if(r===1)for(;u<a&&t[u].end<n+e;)u++;else if(r>1){const f=Array(r).fill(0);for(;u<a&&f.some(v=>v<n+e);){const v=t[u];f[v.lane]=v.end,u++}const c=Array(r).fill(n+e);for(;o>=0&&c.some(v=>v>=n);){const v=t[o];c[v.lane]=v.start,o--}o=Math.max(0,o-o%r),u=Math.min(a,u+(r-1-u%r))}return{startIndex:o,endIndex:u}}const S2=typeof document<"u"?lt.useLayoutEffect:lt.useEffect;function hj({useFlushSync:t=!0,...e}){const n=lt.useReducer(()=>({}),{})[1],r={...e,onChange:(i,o)=>{var u;t&&o?uz.flushSync(n):n(),(u=e.onChange)==null||u.call(e,i,o)}},[a]=lt.useState(()=>new fj(r));return a.setOptions(r),S2(()=>a._didMount(),[]),S2(()=>a._willUpdate()),a}function vj(t){return hj({observeElementRect:oj,observeElementOffset:lj,scrollToFn:uj,...t})}function b2(t){return yc(t)}function x2(t){return t==null?"—":"$"+t.toFixed(2)}function w2(t){if(!t||t<=0)return"—";const e=Math.floor(t/60),n=Math.floor(e/60);return n>0?`${n}h ${e%60}m`:`${e}m`}function dj(t){return t?new Date(t*1e3).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}const Gr=u7(),pj={review:"tag-review",exploration:"tag-exploration",planning:"tag-planning",memory:"tag-memory",generic:"tag-generic"};function gj({data:t}){const[e,n]=lt.useState(""),[r,a]=lt.useState([{id:"started_at",desc:!0}]),i=lt.useRef(null),o=lt.useMemo(()=>{if(!(t!=null&&t.data))return[];const _=e.toLowerCase();return _?t.data.filter(S=>(S.repo_label||"").toLowerCase().includes(_)||(S.model_name||"").toLowerCase().includes(_)||(S.agent_role||"").toLowerCase().includes(_)||(S.agent_nickname||"").toLowerCase().includes(_)||(S.title||"").toLowerCase().includes(_)||(S.descendant_models||[]).some(x=>(x||"").toLowerCase().includes(_))||(S.descendant_families||[]).some(x=>(x||"").toLowerCase().includes(_))||(S.descendant_roles||[]).some(x=>(x||"").toLowerCase().includes(_))||(S.descendant_nicknames||[]).some(x=>(x||"").toLowerCase().includes(_))||(S.related_titles||[]).some(x=>(x||"").toLowerCase().includes(_))):t.data},[t,e]),u=lt.useMemo(()=>[Gr.accessor("started_at",{header:"Time",cell:_=>dj(_.getValue()),size:130}),Gr.accessor("repo_label",{header:"Repo",cell:_=>_.getValue()||"—",size:140}),Gr.accessor("model_name",{header:"Model",cell:_=>B.jsx("span",{style:{fontFamily:"var(--font-mono)",fontSize:"0.72rem"},children:_.getValue()||"?"}),size:130}),Gr.accessor("thread_count",{header:"Threads",cell:_=>{const S=_.getValue()||1,x=_.row.original;return S>1?`${S} (${x.subagent_count||0} sub)`:"1"},size:92}),Gr.accessor("agent_family",{header:"Root",cell:_=>B.jsx("span",{className:`tag ${pj[_.getValue()]||"tag-generic"}`,children:_.getValue()}),size:100}),Gr.accessor("agent_nickname",{header:"Agent",cell:_=>_.getValue()||"—",size:85}),Gr.accessor("reasoning_effort",{header:"Effort",cell:_=>_.getValue()||"—",size:70}),Gr.accessor("elapsed_seconds",{header:"Duration",cell:_=>w2(_.getValue()),size:85}),Gr.accessor("tokens_used",{header:"Tokens",cell:_=>B.jsx("span",{style:{fontFamily:"var(--font-mono)"},children:b2(_.getValue())}),size:90}),Gr.accessor("cost",{header:"Cost",cell:_=>B.jsx("span",{style:{fontFamily:"var(--font-mono)"},children:_.getValue()!=null?x2(_.getValue()):"—"}),size:80}),Gr.accessor("title",{header:"Title",cell:_=>B.jsx("span",{title:_.getValue(),style:{opacity:.6},children:(_.getValue()||"").slice(0,55)}),size:240})],[]),f=ej({data:o,columns:u,state:{sorting:r},onSortingChange:a,getCoreRowModel:W7(),getSortedRowModel:Q7()}),c=f.getRowModel().rows,v=lt.useMemo(()=>o.reduce((_,S)=>(_.sessions+=1,_.tokens+=S.tokens_used||0,_.cost+=S.cost||0,_.elapsed+=S.elapsed_seconds||0,_),{sessions:0,tokens:0,cost:0,elapsed:0}),[o]),d=vj({count:c.length,getScrollElement:()=>i.current,estimateSize:()=>36,overscan:10,getItemKey:_=>{var S;return((S=c[_])==null?void 0:S.id)??_}}),g=d.getVirtualItems(),p=g.length>0?g[0].start:0,y=g.length>0?d.getTotalSize()-g[g.length-1].end:0;return B.jsx("div",{className:"animate-in",children:B.jsxs("div",{className:"table-wrap",children:[B.jsx("div",{className:"table-search",children:B.jsx("input",{placeholder:"Search sessions...",value:e,onChange:_=>n(_.target.value)})}),B.jsxs("div",{style:{fontSize:"0.7rem",color:"var(--text-muted)",padding:"0.4rem 1rem",borderBottom:"1px solid var(--border)"},children:[o.length.toLocaleString()," root sessions",t&&!t.complete&&B.jsx("span",{className:"incomplete-badge",style:{marginLeft:"0.5rem"},children:"partial"})]}),B.jsxs("div",{style:{fontSize:"0.7rem",color:"var(--text-muted)",padding:"0.45rem 1rem",borderBottom:"1px solid var(--border)",display:"flex",gap:"1rem",flexWrap:"wrap"},children:[B.jsxs("span",{children:["Filtered sessions: ",B.jsx("strong",{style:{color:"var(--text-secondary)"},children:v.sessions.toLocaleString()})]}),B.jsxs("span",{children:["Tokens: ",B.jsx("strong",{style:{color:"var(--text-secondary)"},children:b2(v.tokens)})]}),B.jsxs("span",{children:["Cost: ",B.jsx("strong",{style:{color:"var(--text-secondary)"},children:x2(v.cost)})]}),B.jsxs("span",{children:["Time: ",B.jsx("strong",{style:{color:"var(--text-secondary)"},children:w2(v.elapsed)})]})]}),B.jsx("div",{ref:i,style:{height:"600px",overflow:"auto"},children:B.jsxs("table",{style:{tableLayout:"fixed",width:"100%"},children:[B.jsx("thead",{style:{position:"sticky",top:0,background:"var(--bg-card)",zIndex:1},children:f.getHeaderGroups().map(_=>B.jsx("tr",{children:_.headers.map(S=>B.jsxs("th",{style:{width:S.getSize()},onClick:S.column.getToggleSortingHandler(),children:[p2(S.column.columnDef.header,S.getContext()),{asc:" ↑",desc:" ↓"}[S.column.getIsSorted()]||""]},S.id))},_.id))}),B.jsxs("tbody",{children:[g.length===0&&B.jsx("tr",{children:B.jsx("td",{colSpan:u.length,style:{textAlign:"center",padding:"2rem",color:"var(--text-muted)"},children:"No sessions"})}),p>0&&B.jsx("tr",{children:B.jsx("td",{colSpan:u.length,style:{height:`${p}px`,padding:0,borderBottom:"none"}})}),g.map(_=>{const S=c[_.index];return B.jsx("tr",{style:{height:_.size},children:S.getVisibleCells().map(x=>B.jsx("td",{style:{width:x.column.getSize()},children:p2(x.column.columnDef.cell,x.getContext())},x.id))},S.id)}),y>0&&B.jsx("tr",{children:B.jsx("td",{colSpan:u.length,style:{height:`${y}px`,padding:0,borderBottom:"none"}})})]})]})})]})})}function mj(){return{ingest_id:null,seq:0,overview:{total:{},d7:{},d30:{},cost_assumptions:null},repos:{total:[],d7:[],d30:[]},models:{total:[],d7:[],d30:[]},families:{total:[],d7:[],d30:[]},daily:{},heatmap:{}}}function E1(t,e,n){var a,i,o,u,f,c;const r=n==="bootstrap"||!t||t.ingest_id!==e.ingest_id?mj():{...t};return r.ingest_id=e.ingest_id,r.seq=e.seq,(a=e.data)!=null&&a.overview?r.overview={...r.overview,...e.data.overview,total:e.data.overview.total?{...r.overview.total,...e.data.overview.total}:r.overview.total,d7:e.data.overview.d7?{...r.overview.d7,...e.data.overview.d7}:r.overview.d7,d30:e.data.overview.d30?{...r.overview.d30,...e.data.overview.d30}:r.overview.d30}:t&&(r.overview=t.overview),r.repos=z0(t==null?void 0:t.repos,(i=e.data)==null?void 0:i.repos,r.repos),r.models=z0(t==null?void 0:t.models,(o=e.data)==null?void 0:o.models,r.models),r.families=z0(t==null?void 0:t.families,(u=e.data)==null?void 0:u.families,r.families),r.daily=(f=e.data)!=null&&f.daily?{...(t==null?void 0:t.daily)||{},...e.data.daily}:(t==null?void 0:t.daily)||r.daily,r.heatmap=(c=e.data)!=null&&c.heatmap?{...(t==null?void 0:t.heatmap)||{},...e.data.heatmap}:(t==null?void 0:t.heatmap)||r.heatmap,r}function z0(t,e,n){if(!e)return t||n;const r={total:t?t.total:n.total,d7:t?t.d7:n.d7,d30:t?t.d30:n.d30};for(const a of["total","d7","d30"])e[a]&&(r[a]=e[a]);return r}function cz(t){var e,n;return t?{overview:{data:t.overview,coverage:((n=(e=t.overview)==null?void 0:e.total)==null?void 0:n.coverage)||{total:0,enriched:0,priced:0,time_valid:0}},repos:{data:t.repos},models:{data:t.models},families:{data:t.families},daily:{data:Object.entries(t.daily).sort(([r],[a])=>r.localeCompare(a)).map(([r,a])=>({date:r,...a}))},heatmap:{data:t.heatmap}}:null}function yj({jobId:t}){const[e,n]=lt.useState(null),[r,a]=lt.useState(null),[i,o]=lt.useState(null),u=lt.useRef(null);if(lt.useEffect(()=>{let c=!0;return(async()=>{try{const v=await fetch(un.url(`/api/export/${encodeURIComponent(t)}/render-data`));if(!v.ok)throw new Error(`API error: ${v.status}`);const d=await v.json();if(!c)return;n(d),u.current=vz(d),o(dz(u.current))}catch(v){if(!c)return;a(v.message||String(v))}})(),()=>{c=!1}},[t]),lt.useEffect(()=>(window.__CODEXMETER_EXPORT__={ready:!!(e&&!r),jobId:t,seek(c){u.current&&uz.flushSync(()=>{o(wj(u.current,c))})}},()=>{delete window.__CODEXMETER_EXPORT__}),[r,t,e]),r)return B.jsx("div",{style:N0,children:B.jsxs("div",{style:M2,children:["Export error: ",r]})});if(!(i!=null&&i.presentation))return B.jsx("div",{style:N0,children:B.jsx("div",{style:M2,children:"Preparing export…"})});const f=i.progress;return B.jsx("div",{style:N0,children:B.jsx("div",{style:Mj,children:B.jsx(KO,{presentation:i.presentation,ingestProgress:Math.min(Math.max((f==null?void 0:f.percent)||0,0),1),isIngestActive:!!(f&&!f.complete)})})})}function hz(t){const e=cz(t);return Mp({overview:e.overview,heatmap:e.heatmap,daily:e.daily,families:e.families,repos:e.repos,models:e.models,range:"total"})}function _j(t){return Mp({overview:t==null?void 0:t.overview,heatmap:t==null?void 0:t.heatmap,daily:t==null?void 0:t.daily,families:t==null?void 0:t.families,repos:t==null?void 0:t.repos,models:t==null?void 0:t.models,range:"total"})}function Cv(t,e){const n=Math.min(Math.max(t,0),1);return e==="cubicOut"?1-Math.pow(1-n,3):n}function ec(t){return Math.min(Math.max(t||0,0),1)}function L1(t,e,n){return t+(e-t)*n}function Dd(t){return t?{...t}:null}function vz(t){const e=Dd(t.replay.bootstrap.payload.progress||null),n=E1(null,t.replay.bootstrap.payload,"bootstrap"),r=hz(n),a=Mp({range:"total"}),i=t.settledEnvelope?_j(t.settledEnvelope):r,o=Math.max(t.introDurationMs||0,0),u=Math.max(t.replayDurationMs||t.replay.duration_ms||1,1),f=Math.max(t.tailDurationMs||0,0),c=Math.max(t.durationMs||o+u+f||1,1),v=ec(t.tailReplayFraction??.72),d=Math.round(f*v),g=Math.max(0,f-d),p=Math.max(1,u+d),y=Math.max(t.replay.duration_ms||0,0),_=Math.round(y*(u/p)),S=Dd(e);return{renderData:t,totalDurationMs:c,introDurationMs:o,replayDurationMs:u,tailDurationMs:f,tailReplayDurationMs:d,tailSettleDurationMs:g,sourceDurationMs:y,mainReplaySourceDurationMs:_,tailReplayStartMs:o+u,tailSettleStartMs:o+u+d,stepMs:1e3/Math.max(1,t.fps||60),currentSeekMs:0,currentReplaySeekMs:0,eventIndex:0,progress:e,progressStart:S,liveState:n,initialTarget:r,emptyTarget:a,target:r,finalTarget:i,presentation:o>0?a:r,tweenMode:"smooth",tweenStartMs:0,tweenFrom:o>0?a:r,tweenTarget:r,finalSettleStarted:!1,finalSettleFrom:r}}function dz(t){return{presentation:t.presentation,progress:t.progress}}function Sj(t){const e=vz(t.renderData);Object.assign(t,e)}function bj(t,e){if(e<=t.introDurationMs)return 0;const n=e-t.introDurationMs;if(n<=t.replayDurationMs){const r=ec(n/Math.max(t.replayDurationMs,1));return Math.round(t.mainReplaySourceDurationMs*r)}if(e<=t.tailSettleStartMs){const r=ec((e-t.tailReplayStartMs)/Math.max(t.tailReplayDurationMs,1));return Math.round(L1(t.mainReplaySourceDurationMs,t.sourceDurationMs,r))}return t.sourceDurationMs}function xj(t,e,n){const r=Dd(e)||Dd(t)||{percent:0,complete:!1},a=(t==null?void 0:t.percent)??0,i=(e==null?void 0:e.percent)??a;return r.percent=L1(a,i,n),r.complete=!1,r}function wj(t,e){var r,a,i,o,u,f;const n=Math.min(Math.max(Number(e)||0,0),t.totalDurationMs);n<t.currentSeekMs&&Sj(t);for(let c=t.currentSeekMs+t.stepMs;c<=n+1e-4;c+=t.stepMs){if(c<=t.introDurationMs){const S=ec(c/Math.max(t.introDurationMs,1)),x=Cv(S,"cubicOut");t.presentation=Ts(t.emptyTarget,t.initialTarget,x),t.progress=xj({percent:0,complete:!1},t.progressStart,x);continue}const v=bj(t,c);for(;t.eventIndex<(t.renderData.replay.events||[]).length;){const S=t.renderData.replay.events[t.eventIndex];if((S.at_ms||0)>v)break;t.eventIndex+=1,t.progress=((r=S.payload)==null?void 0:r.progress)||t.progress,S.event==="patch"&&(t.liveState=E1(t.liveState,S.payload,"patch"));const x=hz(t.liveState),C=Ad(((a=t.progress)==null?void 0:a.percent)||0,!!(t.progress&&!t.progress.complete))?"tail":"smooth";C!==t.tweenMode&&(t.tweenMode=C,t.tweenStartMs=0),C==="tail"&&(t.tweenFrom=t.presentation,t.tweenTarget=x,t.tweenStartMs=c),t.target=x}t.currentReplaySeekMs=v;const d=c>t.tailSettleStartMs,g=!0,p=QO(((i=t.progress)==null?void 0:i.percent)||0,g),y=Y_(((o=t.progress)==null?void 0:o.percent)||0,g),_=Ad(((u=t.progress)==null?void 0:u.percent)||0,g);if(d){t.finalSettleStarted||(t.finalSettleStarted=!0,t.finalSettleFrom=t.presentation);const S=ec((c-t.tailSettleStartMs)/Math.max(t.tailSettleDurationMs||1,1)),x=Cv(S,"cubicOut");t.presentation=Ts(t.finalSettleFrom,t.finalTarget,x),t.progress={...t.progress||{},percent:L1(((f=t.progress)==null?void 0:f.percent)||0,1,x),complete:S>=1}}else if(_){t.tweenStartMs||(t.tweenStartMs=c);const S=Math.min(1,Math.max(0,(c-t.tweenStartMs)/Math.max(p,1))),x=Cv(S,y);t.presentation=Ts(t.tweenFrom,t.tweenTarget,x),S>=1&&(t.presentation=t.tweenTarget,t.tweenFrom=t.tweenTarget,t.tweenTarget=t.target)}else{const S=1-Math.exp(-(t.stepMs/Math.max(p,1))),x=Cv(S,y);t.presentation=Ts(t.presentation,t.target,x)}}return t.currentSeekMs=n,dz(t)}const N0={width:"100vw",minHeight:"100vh",background:"#06080f",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},Mj={width:1080,height:864,padding:"24px 28px 20px",background:"#06080f",overflow:"hidden"},M2={color:"#8b949e",fontFamily:"'JetBrains Mono', 'Fira Code', monospace",fontSize:18},Cj=["Overview","Repos","Models","Daily","Sessions"],Tj=[{key:"d7",label:"7d"},{key:"d30",label:"30d"},{key:"total",label:"All"}];function C2(t){return t?new Date(t*1e3).toLocaleDateString("en-US",{month:"short",day:"2-digit"}):"—"}function I0(t){return!Number.isFinite(t)||t<=0?0:Math.floor(t/86400)*86400}const Aj={idle:"Starting...",inventory:"Reading threads",normalizing:"Normalizing",enrichment:"Enriching rollouts",aggregation:"Building aggregates",finalizing:"Finalizing view",complete:"Complete",error:"Error"};function Dj(){const t=typeof window<"u"?new URLSearchParams(window.location.search):null,e=t==null?void 0:t.get("export"),n=t==null?void 0:t.get("job");if(e==="overview-video"&&n)return B.jsx(yj,{jobId:n});const[r,a]=lt.useState(null),[i,o]=lt.useState("Overview"),[u,f]=lt.useState("total"),[c,v]=lt.useState({}),[d,g]=lt.useState(null),[p,y]=lt.useState(!0),[_,S]=lt.useState(!1),[x,M]=lt.useState(!1),[C,T]=lt.useState(!1),[D,R]=lt.useState(!1),[E,z]=lt.useState(!0),[I,N]=lt.useState(!1),[L,V]=lt.useState(null),[G,j]=lt.useState(!1),[X,H]=lt.useState(null),Q=lt.useRef(!1),Z=lt.useRef(0),J=lt.useRef(null),ot=lt.useCallback(async()=>{try{const[vt,Ee,Zt,ge,lr,gn,Ir]=await Promise.all([un.overview(),un.repos(),un.models(),un.daily(),un.sessions(),un.heatmap(),un.families()]),nn={overview:vt,repos:Ee,models:Zt,daily:ge,sessions:lr,heatmap:gn,families:Ir};return v(nn),nn}catch(vt){throw console.error("Fetch error:",vt),vt}},[]),P=lt.useCallback(async()=>{if(!D)try{R(!0),o("Overview"),await un.rerun(),window.location.reload()}catch(vt){console.error("Rerun error:",vt),R(!1)}},[D]),q=lt.useCallback(async()=>{if(!G)try{j(!0);const vt=await un.startOverviewVideoExport();V(vt)}catch(vt){console.error("Video export error:",vt)}finally{j(!1)}},[G]),rt=lt.useCallback(()=>{!(L!=null&&L.id)||L.status!=="complete"||(window.location.href=un.url(`/api/export/${encodeURIComponent(L.id)}/file`))},[L]);lt.useEffect(()=>{!(L!=null&&L.id)||L.status!=="complete"||J.current!==L.id&&(J.current=L.id,window.location.href=un.url(`/api/export/${encodeURIComponent(L.id)}/file`))},[L]),lt.useEffect(()=>{let vt=!0,Ee=null,Zt=null,ge=!1,lr=!1,gn=!1,Ir=[],nn=0,io=null,ya=null;const pl=()=>{if(nn=0,!vt||Ir.length===0)return;let It=io,Jt=ya;for(const ba of Ir){const{payload:gl,mode:ml,progressOnly:yl}=ba;if(Jt=gl.progress,!yl){if(It&&gl.ingest_id===It.ingest_id&&gl.seq<=It.seq)continue;It=E1(It,gl,ml)}}Ir=[],Jt!==ya&&(ya=Jt,a(Jt)),It!==io&&(io=It,g(It))},Rn=(It,Jt,ba=!1)=>{Ir.push({payload:It,mode:Jt,progressOnly:ba}),nn||(nn=requestAnimationFrame(pl))},_a=async(It,Jt=null)=>{!vt||!(It!=null&&It.complete)||gn||(gn=!0,await ot())},rn=()=>{if(ge||!vt)return;ge=!0;const It=async()=>{try{const Jt=await un.progress();if(!vt)return;if(a(Jt),Jt.percent>.1&&await ot(),Jt.complete){await ot(),clearInterval(Ee);return}(Jt.error||Jt.phase==="error")&&clearInterval(Ee)}catch(Jt){console.error("Polling fallback error:",Jt)}};It(),Ee=setInterval(It,1200)};return(()=>{if(typeof EventSource>"u"){rn();return}Zt=un.live(),Zt.addEventListener("bootstrap",It=>{if(!vt)return;const Jt=JSON.parse(It.data);Rn(Jt,"bootstrap"),_a(Jt.progress,Jt.ingest_id).catch(ba=>{console.error("Settled fetch error:",ba),gn=!1})}),Zt.addEventListener("progress",It=>{if(!vt)return;const Jt=JSON.parse(It.data);Rn(Jt,"progress",!0),_a(Jt.progress,Jt.ingest_id).catch(ba=>{console.error("Settled fetch error:",ba),gn=!1})}),Zt.addEventListener("patch",It=>{if(!vt)return;const Jt=JSON.parse(It.data);Rn(Jt,"patch")}),Zt.addEventListener("complete",async It=>{if(!vt)return;const Jt=JSON.parse(It.data);lr=!0,Rn(Jt,"progress",!0),await _a(Jt.progress,Jt.ingest_id),vt&&(Zt==null||Zt.close())}),Zt.addEventListener("ingest-error",It=>{if(!vt)return;const Jt=JSON.parse(It.data);lr=!0,Rn(Jt,"progress",!0),Zt==null||Zt.close()}),Zt.addEventListener("error",It=>{vt&&(lr||(console.error("SSE stream error:",It),Zt==null||Zt.close(),rn()))})})(),()=>{vt=!1,clearInterval(Ee),nn&&cancelAnimationFrame(nn),Zt==null||Zt.close()}},[ot]),lt.useEffect(()=>{if(r){if(r.percent>.1&&p&&!_){S(!0);const vt=setTimeout(()=>y(!1),600);return()=>clearTimeout(vt)}if(r.complete&&p&&!_){S(!0);const vt=setTimeout(()=>y(!1),600);return()=>clearTimeout(vt)}}},[r,p,_]);const it=!!(r!=null&&r.complete),ft=Math.round(((r==null?void 0:r.percent)||0)*100),gt=Math.min(Math.max((r==null?void 0:r.percent)||0,0),1),wt=!it||I,Kt=!!(r&&wt&&r.phase!=="error");lt.useEffect(()=>{r!=null&&r.complete||z(!1)},[r==null?void 0:r.complete]),lt.useEffect(()=>{const vt=it&&!Q.current;if(Q.current=it,!it){N(!1);return}if(vt&&!E){N(!0);return}I&&E&&N(!1)},[it,E,I]),lt.useEffect(()=>{let vt=!0,Ee=null;const Zt=async()=>{try{const ge=!!(L!=null&&L.id),lr=ge?await un.exportStatus(L.id):await un.activeExport();if(!vt)return;const gn=ge?lr:lr.job;if(!gn){L!=null&&L.id||V(null);return}V(gn),["complete","failed"].includes(gn.status)||(Ee=setTimeout(Zt,900))}catch(ge){if(!vt)return;console.error("Export status error:",ge)}};return it&&Zt(),()=>{vt=!1,Ee&&clearTimeout(Ee)}},[it,L==null?void 0:L.id]),lt.useEffect(()=>{!wt&&!x&&M(!0),wt&&(M(!1),T(!1))},[wt,x]),lt.useEffect(()=>{if(!x)return;const vt=setTimeout(()=>T(!0),350);return()=>clearTimeout(vt)},[x]);const St=lt.useMemo(()=>d?cz(d):null,[d]),te=St?St.overview:c.overview,bt=St?St.heatmap:c.heatmap,Nt=St?St.daily:c.daily,pn=St?St.families:c.families,ue=St?St.repos:c.repos,Dn=St?St.models:c.models,Be=te==null?void 0:te.data,Nr=(Be==null?void 0:Be[u])||(Be==null?void 0:Be.total)||{},Ce=Nr==null?void 0:Nr.date_range;lt.useEffect(()=>{if(Z.current&&(cancelAnimationFrame(Z.current),Z.current=0),!(Ce!=null&&Ce.from)||!(Ce!=null&&Ce.to)){H(null);return}const vt={from:I0(Ce.from),to:I0(Ce.to)};return H(Ee=>{if(!Ee||it||Ee.from!==vt.from||vt.to<=Ee.to)return vt;const Zt=Ee.to,ge=vt.to,lr=Math.max(1,Math.round((ge-Zt)/86400)),gn=Math.min(1400,Math.max(320,lr*110)),Ir=performance.now(),nn=io=>{const ya=Math.min(1,(io-Ir)/gn),pl=I0(Zt+(ge-Zt)*ya);H(Rn=>!Rn||Rn.from!==vt.from||pl<=Rn.to?Rn:{...Rn,to:pl}),ya<1?Z.current=requestAnimationFrame(nn):(Z.current=0,H(vt))};return Z.current=requestAnimationFrame(nn),Ee}),()=>{Z.current&&(cancelAnimationFrame(Z.current),Z.current=0)}},[it,Ce==null?void 0:Ce.from,Ce==null?void 0:Ce.to]);const Zn=G||["queued","running"].includes(L==null?void 0:L.status),ao=(L==null?void 0:L.status)==="complete"?"Download MP4":Zn?`Rendering ${Math.max(1,Math.round(((L==null?void 0:L.progress)||0)*100))}%`:"Render Video";return B.jsxs("div",{className:"app",children:[p&&B.jsxs("div",{className:`loading-overlay ${_?"fading":""}`,children:[B.jsx("div",{className:"loading-logo",children:"CodexMeter"}),B.jsx("div",{className:"loading-bar-wrap",children:B.jsx("div",{className:"loading-bar",style:{width:`${ft}%`}})}),B.jsx("div",{className:"loading-phase",children:Aj[r==null?void 0:r.phase]||"Starting..."}),(r==null?void 0:r.phase)==="enrichment"&&B.jsxs("div",{className:"loading-detail",children:[r.enriched,"/",r.needs_enrichment," rollouts",r.current_date_bucket&&` — ${r.current_date_bucket}`]}),(r==null?void 0:r.phase)==="error"&&(r==null?void 0:r.error)&&B.jsx("div",{className:"loading-detail",children:r.error}),B.jsxs("div",{className:"loading-footer",children:["Made with ",B.jsx("span",{className:"loading-heart",children:"♥"})," by JJ"]})]}),B.jsxs("div",{className:`app-content ${_||!p?"app-content-revealed":""}`,children:[B.jsx("nav",{className:"navbar",children:B.jsxs("div",{className:"navbar-inner",children:[B.jsx("span",{className:"navbar-brand",children:"CodexMeter"}),B.jsx("div",{className:"navbar-tabs",children:Cj.map(vt=>B.jsx("button",{className:`navbar-tab ${i===vt?"active":""} ${!(it&&C)&&vt!=="Overview"?"navbar-tab-dimmed":""}`,onClick:()=>o(vt),disabled:!it&&vt!=="Overview",children:vt},vt))}),B.jsx("div",{className:"navbar-meta",children:Ce&&B.jsxs("div",{className:`navbar-date-wrap ${it?"":"navbar-date-wrap-dimmed"}`,children:[B.jsxs("span",{className:"navbar-date",style:{fontSize:"0.78rem",color:"var(--text-muted)",fontFamily:"var(--font-mono)"},children:[C2((X==null?void 0:X.from)||Ce.from)," — ",C2((X==null?void 0:X.to)||Ce.to)]}),B.jsx("div",{className:"range-toggle",children:Tj.map(vt=>B.jsx("button",{className:`range-btn ${u===vt.key?"active":""}`,onClick:()=>f(vt.key),disabled:!it,children:vt.label},vt.key))}),B.jsx("button",{type:"button",className:"icon-btn","aria-label":"Rerun ingest",title:"Rerun ingest",onClick:P,disabled:D||!it,children:"↻"}),B.jsx("button",{type:"button",className:"range-btn",onClick:(L==null?void 0:L.status)==="complete"?rt:q,disabled:!it||Zn,style:{minWidth:110},title:"Render Overview ingest replay video",children:ao})]})})]})}),B.jsxs("div",{className:"main-content",children:[i==="Overview"&&B.jsx(H9,{data:te,heatmap:bt,daily:Nt,families:pn,repos:ue,models:Dn,range:u,onPresentationSettledChange:z,ingestProgress:gt,isIngestActive:Kt}),i==="Repos"&&B.jsx(Y9,{data:c.repos}),i==="Models"&&B.jsx(W9,{data:c.models}),i==="Daily"&&B.jsx(s7,{data:c.daily,range:u}),i==="Sessions"&&B.jsx(gj,{data:c.sessions})]}),B.jsxs("div",{className:"app-footer",children:["Made with ",B.jsx("span",{className:"loading-heart",children:"♥"})," by JJ"]})]})]})}PI.createRoot(document.getElementById("root")).render(B.jsx(Ed.StrictMode,{children:B.jsx(Dj,{})}));